@vanelsas/baredom 3.2.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +82 -0
- package/README.md +79 -168
- package/custom-elements.json +4201 -3356
- package/dist/baredom.d.ts +92 -92
- package/dist/base.js +490 -476
- package/dist/integrity.json +108 -108
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.js +9 -9
- package/dist/x-avatar.js +13 -13
- package/dist/x-badge.js +8 -8
- 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 +36 -36
- package/dist/x-cancel-dialogue.js +13 -13
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +33 -33
- package/dist/x-chart.js +47 -47
- package/dist/x-checkbox.d.ts +11 -4
- package/dist/x-checkbox.js +1 -1
- package/dist/x-chip.js +1 -1
- package/dist/x-code.js +26 -26
- package/dist/x-collapse.js +10 -10
- package/dist/x-color-picker.d.ts +7 -0
- package/dist/x-color-picker.js +44 -44
- package/dist/x-combobox.d.ts +12 -4
- package/dist/x-combobox.js +33 -30
- package/dist/x-command-palette.js +27 -27
- package/dist/x-confetti.js +23 -23
- package/dist/x-container.js +5 -5
- package/dist/x-context-menu.js +19 -19
- package/dist/x-copy.js +1 -1
- package/dist/x-currency-field.d.ts +5 -0
- package/dist/x-currency-field.js +24 -24
- package/dist/x-date-picker.d.ts +13 -4
- package/dist/x-date-picker.js +43 -39
- package/dist/x-divider.js +10 -10
- package/dist/x-drawer.js +11 -11
- package/dist/x-dropdown.js +12 -12
- package/dist/x-fieldset.js +5 -5
- package/dist/x-file-download.js +5 -5
- package/dist/x-file-upload.d.ts +10 -5
- package/dist/x-file-upload.js +26 -23
- package/dist/x-form-field.d.ts +7 -0
- package/dist/x-form-field.js +15 -14
- package/dist/x-form.js +11 -10
- package/dist/x-gaussian-blur.js +12 -12
- package/dist/x-grid.js +6 -6
- package/dist/x-i18n-provider.js +7 -7
- package/dist/x-i18n.js +4 -4
- package/dist/x-icon.js +7 -7
- package/dist/x-image.js +17 -17
- package/dist/x-kbd.js +11 -11
- package/dist/x-kinetic-canvas.js +25 -25
- package/dist/x-kinetic-font.js +22 -22
- package/dist/x-kinetic-typography.js +31 -31
- package/dist/x-liquid-dock.js +30 -30
- package/dist/x-liquid-fill.js +38 -38
- package/dist/x-liquid-glass.js +32 -32
- package/dist/x-menu-item.js +7 -7
- package/dist/x-menu.js +9 -9
- package/dist/x-metaball-cursor.js +22 -22
- package/dist/x-modal.js +10 -10
- package/dist/x-morph-stack.js +37 -37
- package/dist/x-multi-combobox.d.ts +13 -5
- package/dist/x-multi-combobox.js +38 -35
- package/dist/x-navbar.js +12 -12
- package/dist/x-neural-glow.js +28 -28
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +16 -16
- package/dist/x-organic-progress.js +31 -31
- package/dist/x-organic-shape.js +12 -12
- package/dist/x-otp-input.d.ts +5 -0
- package/dist/x-otp-input.js +21 -21
- package/dist/x-pagination.js +14 -14
- package/dist/x-particle-button.js +43 -43
- package/dist/x-popover.js +26 -26
- package/dist/x-progress-circle.js +7 -7
- package/dist/x-progress.js +7 -7
- package/dist/x-proximity-list.js +20 -20
- package/dist/x-radio.d.ts +10 -3
- package/dist/x-radio.js +12 -11
- package/dist/x-range-slider.d.ts +7 -0
- package/dist/x-range-slider.js +28 -28
- package/dist/x-rating.d.ts +7 -0
- package/dist/x-rating.js +24 -23
- package/dist/x-ripple-effect.js +9 -9
- package/dist/x-scroll-parallax.js +17 -17
- package/dist/x-scroll-stack.js +16 -16
- package/dist/x-scroll-story.js +29 -29
- package/dist/x-scroll-timeline.js +44 -44
- package/dist/x-scroll.js +33 -33
- package/dist/x-search-field.d.ts +9 -3
- package/dist/x-search-field.js +1 -1
- package/dist/x-select.d.ts +10 -1
- package/dist/x-select.js +1 -1
- package/dist/x-sidebar.js +15 -15
- package/dist/x-skeleton-group.js +12 -12
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.d.ts +7 -0
- package/dist/x-slider.js +16 -15
- package/dist/x-soft-body.js +18 -18
- package/dist/x-spacer.js +4 -4
- package/dist/x-spinner.js +3 -3
- package/dist/x-splash.js +12 -12
- package/dist/x-split-pane.js +14 -14
- package/dist/x-spotlight-card.js +12 -12
- package/dist/x-stat.js +10 -10
- package/dist/x-stepper.js +13 -13
- package/dist/x-switch.d.ts +10 -3
- package/dist/x-switch.js +11 -10
- package/dist/x-tab.js +6 -6
- package/dist/x-table-cell.js +18 -18
- 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.d.ts +7 -0
- package/dist/x-text-area.js +18 -18
- package/dist/x-theme.js +25 -25
- package/dist/x-timeline-item.js +20 -20
- package/dist/x-timeline.js +8 -8
- package/dist/x-toast.js +22 -22
- package/dist/x-toaster.js +6 -6
- package/dist/x-tooltip.js +12 -12
- package/dist/x-trace-history.js +123 -123
- package/dist/x-typography.js +6 -6
- package/dist/x-welcome-tour.js +61 -61
- package/package.json +3 -1
package/dist/x-table.d.ts
CHANGED
|
@@ -39,28 +39,21 @@ 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 XTableRowEventMap {
|
|
43
|
+
"x-table-row-click": CustomEvent<{ rowIndex: number; selected: boolean; disabled: boolean }>;
|
|
44
|
+
"x-table-row-connected": CustomEvent<{ rowIndex: number; selected: boolean; disabled: boolean; interactive: boolean }>;
|
|
45
|
+
"x-table-row-disconnected": CustomEvent<{}>;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export interface
|
|
49
|
-
|
|
50
|
-
rowSpan: number;
|
|
51
|
-
truncate: boolean;
|
|
48
|
+
export interface XTableRow extends HTMLElement {
|
|
49
|
+
selected: boolean;
|
|
52
50
|
disabled: boolean;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
scope: string;
|
|
56
|
-
colSpan: number;
|
|
57
|
-
sticky: string;
|
|
58
|
-
sortable: boolean;
|
|
59
|
-
sortDirection: string;
|
|
51
|
+
interactive: boolean;
|
|
52
|
+
rowIndex: number;
|
|
60
53
|
|
|
61
|
-
addEventListener<K extends keyof
|
|
54
|
+
addEventListener<K extends keyof XTableRowEventMap>(
|
|
62
55
|
type: K,
|
|
63
|
-
listener: (this:
|
|
56
|
+
listener: (this: XTableRow, ev: XTableRowEventMap[K]) => any,
|
|
64
57
|
options?: boolean | AddEventListenerOptions
|
|
65
58
|
): void;
|
|
66
59
|
addEventListener(
|
|
@@ -68,9 +61,9 @@ export interface XTableCell extends HTMLElement {
|
|
|
68
61
|
listener: EventListenerOrEventListenerObject,
|
|
69
62
|
options?: boolean | AddEventListenerOptions
|
|
70
63
|
): void;
|
|
71
|
-
removeEventListener<K extends keyof
|
|
64
|
+
removeEventListener<K extends keyof XTableRowEventMap>(
|
|
72
65
|
type: K,
|
|
73
|
-
listener: (this:
|
|
66
|
+
listener: (this: XTableRow, ev: XTableRowEventMap[K]) => any,
|
|
74
67
|
options?: boolean | EventListenerOptions
|
|
75
68
|
): void;
|
|
76
69
|
removeEventListener(
|
|
@@ -81,21 +74,28 @@ export interface XTableCell extends HTMLElement {
|
|
|
81
74
|
}
|
|
82
75
|
|
|
83
76
|
|
|
84
|
-
export interface
|
|
85
|
-
"x-table-
|
|
86
|
-
"x-table-
|
|
87
|
-
"x-table-
|
|
77
|
+
export interface XTableCellEventMap {
|
|
78
|
+
"x-table-cell-sort": CustomEvent<{ direction: string; previousDirection: string }>;
|
|
79
|
+
"x-table-cell-connected": CustomEvent<{ type: string; scope: string; colSpan: number; rowSpan: number; align: string }>;
|
|
80
|
+
"x-table-cell-disconnected": CustomEvent<{}>;
|
|
88
81
|
}
|
|
89
82
|
|
|
90
|
-
export interface
|
|
91
|
-
|
|
83
|
+
export interface XTableCell extends HTMLElement {
|
|
84
|
+
align: string;
|
|
85
|
+
rowSpan: number;
|
|
86
|
+
truncate: boolean;
|
|
92
87
|
disabled: boolean;
|
|
93
|
-
|
|
94
|
-
|
|
88
|
+
valign: string;
|
|
89
|
+
type: string;
|
|
90
|
+
scope: string;
|
|
91
|
+
colSpan: number;
|
|
92
|
+
sticky: string;
|
|
93
|
+
sortable: boolean;
|
|
94
|
+
sortDirection: string;
|
|
95
95
|
|
|
96
|
-
addEventListener<K extends keyof
|
|
96
|
+
addEventListener<K extends keyof XTableCellEventMap>(
|
|
97
97
|
type: K,
|
|
98
|
-
listener: (this:
|
|
98
|
+
listener: (this: XTableCell, ev: XTableCellEventMap[K]) => any,
|
|
99
99
|
options?: boolean | AddEventListenerOptions
|
|
100
100
|
): void;
|
|
101
101
|
addEventListener(
|
|
@@ -103,9 +103,9 @@ export interface XTableRow extends HTMLElement {
|
|
|
103
103
|
listener: EventListenerOrEventListenerObject,
|
|
104
104
|
options?: boolean | AddEventListenerOptions
|
|
105
105
|
): void;
|
|
106
|
-
removeEventListener<K extends keyof
|
|
106
|
+
removeEventListener<K extends keyof XTableCellEventMap>(
|
|
107
107
|
type: K,
|
|
108
|
-
listener: (this:
|
|
108
|
+
listener: (this: XTableCell, ev: XTableCellEventMap[K]) => any,
|
|
109
109
|
options?: boolean | EventListenerOptions
|
|
110
110
|
): void;
|
|
111
111
|
removeEventListener(
|
|
@@ -118,7 +118,7 @@ export interface XTableRow extends HTMLElement {
|
|
|
118
118
|
declare global {
|
|
119
119
|
interface HTMLElementTagNameMap {
|
|
120
120
|
"x-table": XTable;
|
|
121
|
-
"x-table-cell": XTableCell;
|
|
122
121
|
"x-table-row": XTableRow;
|
|
122
|
+
"x-table-cell": XTableCell;
|
|
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.T(d,"part","caption");$APP.T(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTableRefs",new $APP.M(null,3,[$APP.
|
|
4
|
-
$APP.G(a),c=$APP.C(b,
|
|
5
|
-
|
|
6
|
-
a=$APP.v(a),b=null,c=0),d=0;else return null},
|
|
7
|
-
e!=null?$APP.T(a,"aria-rowcount",""+$APP.P.i(e)):$APP.U(a,"aria-rowcount");$APP.I(f,"")?$APP.T(a,"aria-label",f):$APP.U(a,"aria-label");e=$APP.G(b);e=$APP.C(e,
|
|
8
|
-
"data-full-width");$APP.n(f)?$APP.T(a,"data-compact",""):$APP.U(a,"data-compact");$APP.n(c)&&
|
|
9
|
-
$APP.p(h.hasAttribute("selected")),
|
|
10
|
-
|
|
11
|
-
b);e.sort=d;e["row-click"]=c;e["row-conn"]=b;$APP.Q(a,"__xTableHandlers",e)},
|
|
12
|
-
"");$APP.lj(a,"selectable","selectable","none");$APP.ij(a,"striped","striped");$APP.ij(a,"bordered","bordered");$APP.ij(a,"compact","compact");$APP.ij(a,"fullWidth","full-width");return Object.defineProperty(a,"rowCount",{get:function(){return
|
|
13
|
-
|
|
14
|
-
"caption-raw",-375935083),
|
|
2
|
+
var UM=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},WM=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.T(d,"part","caption");$APP.T(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTableRefs",new $APP.M(null,3,[$APP.Sk,b,VM,d,$APP.qt,e],null));return $APP.l(a,"__xTableRefs")},gN=function(a){a=new $APP.M(null,8,[XM,a.getAttribute("columns"),YM,a.getAttribute("caption"),ZM,a.getAttribute("selectable"),$APP.Ls,a.hasAttribute("striped"),$M,a.hasAttribute("bordered"),aN,a.hasAttribute("full-width"),bN,a.hasAttribute("compact"),cN,a.getAttribute("row-count")],null);var b=
|
|
4
|
+
$APP.G(a),c=$APP.C(b,XM),d=$APP.C(b,YM),e=$APP.C(b,ZM);a=$APP.C(b,$APP.Ls);var f=$APP.C(b,$M),h=$APP.C(b,aN),k=$APP.C(b,bN);b=$APP.C(b,cN);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.bd(Lda,e)?e:"none";return new $APP.M(null,8,[$APP.rs,c,dN,d,eN,e,$APP.Ls,$APP.D(a),$M,$APP.D(f),aN,$APP.D(h),
|
|
5
|
+
bN,$APP.D(k),fN,UM(b)],null)},hN=function(a){a=$APP.q($APP.we.m($APP.Yo,$APP.Cc(a.querySelectorAll("x-table-row")),$APP.oh(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.sd(e+1,2)===0?$APP.T(f,"data-stripe","even"):$APP.U(f,"data-stripe");d+=1}else if(a=$APP.q(a))$APP.Yc(a)?(b=$APP.Db(a),a=$APP.Eb(a),f=b,c=$APP.w(b),b=f):(b=$APP.u(a),f=$APP.B(b,0,null),e=$APP.B(b,1,null),$APP.sd(e+1,2)===0?$APP.T(f,"data-stripe","even"):$APP.U(f,
|
|
6
|
+
"data-stripe"),a=$APP.v(a),b=null,c=0),d=0;else return null},iN=function(a){var b=gN(a);if($APP.I($APP.l(a,"__xTableModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Ls),d=WM(a);d=$APP.G(d);d=$APP.C(d,VM);var e=$APP.G(b);e=$APP.C(e,$APP.rs);$APP.n(e)?a.style.gridTemplateColumns=e:a.style.gridTemplateColumns="";var f=$APP.G(b),h=$APP.C(f,eN);e=$APP.C(f,fN);f=$APP.C(f,dN);$APP.T(a,"role",$APP.z.j(h,"none")?"table":"grid");h=$APP.z.j(h,"multi")?"true":null;$APP.n(h)?$APP.T(a,"aria-multiselectable",h):$APP.U(a,
|
|
7
|
+
"aria-multiselectable");e!=null?$APP.T(a,"aria-rowcount",""+$APP.P.i(e)):$APP.U(a,"aria-rowcount");$APP.I(f,"")?$APP.T(a,"aria-label",f):$APP.U(a,"aria-label");e=$APP.G(b);e=$APP.C(e,dN);$APP.I(e,"")?(d.textContent=e,$APP.U(d,"hidden")):(d.textContent="",$APP.T(d,"hidden",""));f=$APP.G(b);d=$APP.C(f,$APP.Ls);e=$APP.C(f,$M);h=$APP.C(f,aN);f=$APP.C(f,bN);$APP.n(d)?$APP.T(a,"data-striped",""):$APP.U(a,"data-striped");$APP.n(e)?$APP.T(a,"data-bordered",""):$APP.U(a,"data-bordered");$APP.n(h)?$APP.T(a,
|
|
8
|
+
"data-full-width",""):$APP.U(a,"data-full-width");$APP.n(f)?$APP.T(a,"data-compact",""):$APP.U(a,"data-compact");$APP.n(c)&&hN(a);a=$APP.Q(a,"__xTableModel",b)}else a=null;return a},Mda=function(a){function b(){var f=$APP.l(a,"__xTableModel");f=$APP.n(f)?f:gN(a);return $APP.n($APP.Ls.i(f))?hN(a):null}function c(f){var h=$APP.l(a,"__xTableModel");h=$APP.n(h)?h:gN(a);var k=eN.i(h);if($APP.I(k,"none"))if(h=f.target,f=$APP.l(f.detail,"rowIndex"),$APP.fj(a,"x-table-row-select",$APP.tm(new $APP.M(null,
|
|
9
|
+
3,[$APP.mr,$APP.n(f)?f:0,$APP.Rr,$APP.p(h.hasAttribute("selected")),jN,k],null))),$APP.z.j(k,"single")){f=h.hasAttribute("selected");k=$APP.Dc(a.querySelectorAll(""+$APP.P.i("x-table-row")+"["+$APP.P.i("selected")+"]"));k=$APP.q(k);for(var m=null,r=0,t=0;;)if(t<r){var x=m.C(null,t);$APP.U(x,"selected");t+=1}else if(k=$APP.q(k))m=k,$APP.Yc(m)?(k=$APP.Db(m),t=$APP.Eb(m),m=k,r=$APP.w(k),k=t):(k=$APP.u(m),$APP.U(k,"selected"),k=$APP.v(m),m=null,r=0),t=0;else break;h=$APP.n(f)?null:$APP.T(h,"selected",
|
|
10
|
+
"")}else h=$APP.z.j(k,"multi")?$APP.n(h.hasAttribute("selected"))?$APP.U(h,"selected"):$APP.T(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.fj(a,"x-table-sort",$APP.tm(new $APP.M(null,3,[kN,h,$APP.Yq,k,$APP.ru,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)},lN=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)},Nda=function(a){$APP.lj(a,"columns",
|
|
12
|
+
"columns","");$APP.lj(a,"caption","caption","");$APP.lj(a,"selectable","selectable","none");$APP.ij(a,"striped","striped");$APP.ij(a,"bordered","bordered");$APP.ij(a,"compact","compact");$APP.ij(a,"fullWidth","full-width");return Object.defineProperty(a,"rowCount",{get:function(){return UM(this.getAttribute("row-count"))},set:function(b){return b==null?$APP.U(this,"row-count"):$APP.T(this,"row-count",""+$APP.P.i(Math.floor(b)))},enumerable:!0,configurable:!0})},Oda=function(a){WM(a);lN(a);Mda(a);
|
|
13
|
+
return iN(a)},Pda=function(a){return lN(a)},Qda=function(a,b,c,d){return $APP.I(c,d)?iN(a):null},mN=function(){return $APP.qi("x-table",new $APP.M(null,5,[$APP.hi,Rda,$APP.fi,Oda,$APP.ci,Pda,$APP.bi,Qda,$APP.gi,Nda],null))},aN=new $APP.F(null,"full-width?","full-width?",1477288349),cN=new $APP.F(null,"row-count-raw","row-count-raw",-1432781274),ZM=new $APP.F(null,"selectable-raw","selectable-raw",-1276314763),kN=new $APP.F(null,"colIndex","colIndex",171239635),fN=new $APP.F(null,"row-count","row-count",
|
|
14
|
+
1060167988),YM=new $APP.F(null,"caption-raw","caption-raw",-375935083),jN=new $APP.F(null,"selectionMode","selectionMode",1264773367),XM=new $APP.F(null,"columns-raw","columns-raw",-2093994046),eN=new $APP.F(null,"selectable","selectable",370587038),dN=new $APP.F(null,"caption","caption",-855383902),$M=new $APP.F(null,"bordered?","bordered?",562358476),VM=new $APP.F(null,"caption-div","caption-div",1485363333),bN=new $APP.F(null,"compact?","compact?",1216893298);var Rda="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.he(["x-table-sort",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[kN,$APP.Z,$APP.Yq,$APP.X,$APP.ru,$APP.X],null),$APP.Yt,!0],null),"x-table-row-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.mr,$APP.Z,$APP.Rr,$APP.qj,jN,$APP.X],null),$APP.Yt,!0],null)]);var Lda=new $APP.ah(null,new $APP.M(null,3,["none",null,"single",null,"multi",null],null),null);$APP.fa("baredom.exports.x_table.init",mN);export const init=mN;
|
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.Cc(a.children)))},
|
|
4
|
-
$APP.U(a,"selected"))},
|
|
5
|
-
h),m=$APP.z.j(
|
|
6
|
-
|
|
7
|
-
"role","tablist");$APP.T(c,"aria-orientation",$APP.
|
|
8
|
-
var k=
|
|
9
|
-
null;break a}k=null}return k}function c(d){d.stopPropagation();return
|
|
10
|
-
$APP.T(d,"part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTabsBase",d);
|
|
11
|
-
null},
|
|
12
|
-
$APP.he(["value-change-request",new $APP.M(null,2,[$APP.
|
|
2
|
+
var ET=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Si);var c=$APP.C(b,$APP.et),d=$APP.C(b,DT),e=$APP.C(b,$APP.hk);b=$APP.C(b,$APP.su);c=$APP.bd(xha,c)?c:"horizontal";d=$APP.bd(yha,d)?d:"auto";return new $APP.M(null,5,[$APP.Si,a,$APP.et,c,DT,d,$APP.hk,e,$APP.su,$APP.D(b)],null)},FT=function(a){return new $APP.M(null,5,[$APP.Si,a.getAttribute("value"),$APP.et,a.getAttribute("orientation"),DT,a.getAttribute("activation"),$APP.hk,a.getAttribute("label"),$APP.su,a.hasAttribute("loop")],null)},GT=function(a){return $APP.Ye($APP.Ce(function(b){return $APP.z.j("X-TAB",
|
|
3
|
+
b.tagName)},$APP.Cc(a.children)))},HT=function(a){return $APP.p(a.hasAttribute("disabled"))},IT=function(a){return a.getAttribute("value")},zha=function(a){return $APP.ne(function(b){return HT(b)?b:null},a)},JT=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.I(c,b):b)?$APP.T(a,"value",b):(b=b==null||$APP.z.j(b,""),$APP.n(b?c:b)&&$APP.U(a,"value"))},KT=function(a,b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.p(c):b)?$APP.T(a,"selected",""):(b=$APP.p(b),$APP.n(b?c:b)&&
|
|
4
|
+
$APP.U(a,"selected"))},LT=function(a,b){var c=a.getAttribute("tabindex");$APP.I(c,b)&&$APP.T(a,"tabindex",b)},MT=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.T(a,"hidden","")))},NT=function(a){var b=GT(a),c=a.getAttribute("value"),d=$APP.fh($APP.re(IT,b));$APP.n($APP.n(c)?$APP.bd(d,c):c)||(c=zha(b),c=$APP.n(c)?IT(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(IT(k),c);KT(k,m);m&&HT(k)?LT(k,"0"):LT(k,"-1");h+=1}else if(d=$APP.q(d))$APP.Yc(d)?(e=$APP.Db(d),d=$APP.Eb(d),k=e,f=$APP.w(e),e=k):(k=$APP.u(d),e=$APP.z.j(IT(k),c),KT(k,e),e&&HT(k)?LT(k,"0"):LT(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),MT(k,$APP.z.j(IT(k),c)),f+=1;else if(b=$APP.q(b))d=b,$APP.Yc(d)?(b=$APP.Db(d),e=$APP.Eb(d),d=b,k=$APP.w(b),b=e,e=k):(k=$APP.u(d),MT(k,$APP.z.j(IT(k),c)),b=$APP.v(d),d=null,e=0),f=0;else break a;
|
|
6
|
+
JT(a,c)}return c},OT=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.I(c,b):b)&&$APP.fj(a,"value-change-request",{value:b,previousValue:$APP.n(c)?c:""})?(JT(a,b),NT(a),$APP.dj(a,"value-change",{value:$APP.n(b)?b:""})):null},PT=function(a,b,c){b=$APP.w(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},QT=function(a,b,c){var d=a-1;b=$APP.w(b)-1;return d>=0?d:$APP.n(c)?b:a},RT=function(a){var b=ET(FT(a));if($APP.I(b,$APP.l(a,"__xTabsModel"))){var c=$APP.l(a,"__xTabsBase");if($APP.n(c)){$APP.T(c,
|
|
7
|
+
"role","tablist");$APP.T(c,"aria-orientation",$APP.et.i(b));var d=$APP.hk.i(b);$APP.n($APP.n(d)?$APP.I(d,""):d)?$APP.T(c,"aria-label",d):$APP.U(c,"aria-label")}$APP.Q(a,"__xTabsModel",b)}return NT(a)},Aha=function(a){var b=new MutationObserver(function(){return RT(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});$APP.Q(a,"__xTabsObserver",b)},ST=function(a){function b(d){a:{var e=$APP.Ye($APP.Ce(HT,GT(a))),f=ET(FT(a)),h=$APP.et.i(f);
|
|
8
|
+
var k=DT.i(f);f=$APP.su.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")?PT(r,e,f):$APP.z.j(h,"horizontal")&&$APP.z.j(m,"ArrowLeft")?QT(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowDown")?PT(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowUp")?QT(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")?OT(a,IT(d)):null:
|
|
9
|
+
null;break a}k=null}return k}function c(d){d.stopPropagation();return OT(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTabsOnTabSelect",c);$APP.Q(a,"__xTabsOnKeydown",b);Aha(a)},Bha=function(a){if($APP.Ti(a,"__xTabsInitialized"))return ST(a),RT(a);if(!$APP.Ti(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.T(d,"part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTabsBase",d);ST(a);$APP.Ui(a,"__xTabsInitialized")}RT(a);return a},Cha=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},Dha=function(a,b,c,d){return $APP.I(c,d)&&$APP.Ti(a,"__xTabsInitialized")?RT(a):
|
|
11
|
+
null},Fha=function(a){return $APP.sj(a,Eha)},TT=function(){return $APP.qi("x-tabs",new $APP.M(null,5,[$APP.hi,Gha,$APP.fi,Bha,$APP.ci,Cha,$APP.bi,Dha,$APP.gi,Fha],null))},DT=new $APP.F(null,"activation","activation",2128521072);var Gha=["value","orientation","activation","label","loop"],xha=new $APP.ah(null,new $APP.M(null,2,["vertical",null,"horizontal",null],null),null),yha=new $APP.ah(null,new $APP.M(null,2,["auto",null,"manual",null],null),null),Eha=new $APP.M(null,1,[$APP.Si,new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"value"],null)],null);
|
|
12
|
+
$APP.he(["value-change-request",new $APP.M(null,2,[$APP.Yt,!0,$APP.V,new $APP.M(null,2,[$APP.Si,$APP.X,$APP.As,$APP.X],null)],null),"value-change",new $APP.M(null,1,[$APP.V,new $APP.M(null,1,[$APP.Si,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_tabs.init",TT);export const init=TT;
|
package/dist/x-text-area.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ export interface XTextAreaEventMap {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export interface XTextArea extends HTMLElement {
|
|
12
|
+
readonly validationMessage: string;
|
|
13
|
+
readonly labels: NodeList | null;
|
|
14
|
+
readonly willValidate: boolean;
|
|
12
15
|
disabled: boolean;
|
|
13
16
|
name: string;
|
|
14
17
|
value: string;
|
|
@@ -17,7 +20,11 @@ export interface XTextArea extends HTMLElement {
|
|
|
17
20
|
readOnly: boolean;
|
|
18
21
|
maxLength: number;
|
|
19
22
|
autocomplete: string;
|
|
23
|
+
readonly form: HTMLFormElement | null;
|
|
20
24
|
required: boolean;
|
|
25
|
+
readonly validity: ValidityState;
|
|
26
|
+
checkValidity(): boolean;
|
|
27
|
+
reportValidity(): boolean;
|
|
21
28
|
|
|
22
29
|
addEventListener<K extends keyof XTextAreaEventMap>(
|
|
23
30
|
type: K,
|
package/dist/x-text-area.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
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){
|
|
3
|
-
|
|
4
|
-
$APP.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
k
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
$APP.n(b)&&
|
|
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.Aj(b,c,new $APP.M(null,4,[$APP.tj,a.hasAttribute("error"),$APP.uj,a.getAttribute("error"),$APP.vj,a.hasAttribute("required"),$APP.wj,$APP.z.j(c.value,"")],null))},w7=function(a){a=$APP.ug([p7,$APP.Zj,$APP.Kj,$APP.Ln,$APP.Bq,q7,$APP.ak,r7,$APP.bk,$APP.tl,$APP.Xj,$APP.ck,s7,$APP.Yj],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),
|
|
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.Yj),e=$APP.C(b,p7),f=$APP.C(b,$APP.Zj),h=$APP.C(b,$APP.Kj),k=$APP.C(b,$APP.Ln),m=$APP.C(b,$APP.Bq),r=$APP.C(b,q7);a=$APP.C(b,$APP.ak);var t=$APP.C(b,r7),x=$APP.C(b,$APP.bk),y=$APP.C(b,
|
|
4
|
+
$APP.tl),A=$APP.C(b,$APP.Xj);b=$APP.C(b,$APP.ck);var E=$APP.n(k)?k:"",H=$APP.n(m)?m:"",N=$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.bd(Tra,e)?e:"vertical";r=n7(r);return $APP.ug([$APP.vj,$APP.yl,$APP.gk,$APP.Qp,$APP.fk,$APP.Si,t7,$APP.nt,$APP.tj,u7,$APP.Kt,v7,$APP.Uq,$APP.hk,$APP.uj,$APP.jk,$APP.ik],[x,y,d,m,
|
|
5
|
+
h,A,c,f,k,e,H,n7(t),$APP.n(r)?r:3,N,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.ik),r=$APP.C(h,$APP.vj),t=$APP.C(h,$APP.yl),x=$APP.C(h,$APP.gk),y=$APP.C(h,t7),A=$APP.C(h,$APP.fk),E=$APP.C(h,u7),H=$APP.C(h,v7);h=$APP.C(h,$APP.Uq);d.name=A;d.placeholder=x;d.disabled=m;d.readOnly=
|
|
6
|
+
t;d.required=r;d.rows=h;d.autocomplete=k;$APP.n(H)?$APP.T(d,"maxlength",""+$APP.P.i(H)):$APP.U(d,"maxlength");$APP.n(y)?$APP.T(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.vj);m=$APP.C(r,$APP.tj);r=$APP.C(r,$APP.Qp);$APP.T(d,"aria-required",$APP.n(k)?"true":"false");$APP.T(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.T(d,"aria-describedby",
|
|
7
|
+
k):$APP.U(d,"aria-describedby");m=$APP.G(c);k=$APP.C(m,$APP.hk);m=$APP.C(m,$APP.nt);x7(e,k,m,"label-hidden");k=$APP.G(c);e=$APP.C(k,$APP.Kt);k=$APP.C(k,$APP.Qp);x7(f,e,k,"hint-hidden");e=$APP.G(c);f=$APP.C(e,$APP.uj);e=$APP.C(e,$APP.tj);x7(b,f,e,"error-hidden");b=$APP.G(c);b=$APP.C(b,$APP.tj);$APP.Zi(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
|
+
Ura=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.fj(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.dj(a,"x-text-area-input",{name:e,value:c})):b.value=d}return null},Vra=function(a){var b=$APP.l(a,"__xTextAreaRefs");
|
|
9
|
+
if($APP.n(b)){b=$APP.l(b,"textarea");var c=function(){return Ura(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.dj(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},Wra=function(a,b){$APP.Zi(a,"disabled",$APP.D(b));return z7(a)},Xra=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)},Yra=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.T(d,"part","field");$APP.T(e,"part","label");$APP.T(e,"id","label");$APP.T(e,"for","textarea");$APP.T(f,"part","textarea-wrapper");$APP.T(h,"part","textarea");$APP.T(h,"id","textarea");$APP.T(h,"aria-labelledby","label");$APP.T(k,"part","hint");$APP.T(k,"id","hint");$APP.T(k,"aria-live","polite");$APP.T(m,"part","error");$APP.T(m,"id","error");$APP.T(m,"role","alert");$APP.T(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.T(this,"value",b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},
|
|
16
|
-
new $APP.M(null,8,[$APP.hi,
|
|
17
|
-
297367086);var
|
|
18
|
-
$APP.
|
|
19
|
-
null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"maxlength"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"autocomplete"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"required"],null)]);
|
|
20
|
-
$APP.he(["x-text-area-change-request",new $APP.M(null,2,[$APP.
|
|
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:""));Vra(a);return z7(a)},Zra=function(a){return A7(a)},$ra=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},asa=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.T(this,"value",b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},bsa=function(a){$APP.Ej(a,"__xTextAreaInternals");asa(a);$APP.lj(a,"name","name","");$APP.lj(a,"placeholder","placeholder","");$APP.lj(a,"autocomplete","autocomplete","");$APP.ij(a,"disabled","disabled");$APP.ij(a,"readOnly","readonly");$APP.ij(a,"required","required");$APP.nj(a,"rows","rows",3);$APP.nj(a,"maxLength","maxlength",null);return $APP.nj(a,"minLength",
|
|
16
|
+
"minlength",null)},B7=function(){return $APP.qi("x-text-area",new $APP.M(null,8,[$APP.hi,csa,$APP.fi,Yra,$APP.ci,Zra,$APP.bi,$ra,$APP.di,!0,$APP.ai,Wra,$APP.$h,Xra,$APP.gi,bsa],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 csa="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),Tra=new $APP.ah(null,new $APP.M(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
|
|
18
|
+
$APP.ug([$APP.Zu,$APP.lu,$APP.br,$APP.Mm,$APP.fk,$APP.Si,new $APP.F(null,"minLength","minLength",-1538722770),$APP.Uq,$APP.au,new $APP.F(null,"maxLength","maxLength",-1633020073),$APP.jk,$APP.at,$APP.hs,$APP.os],[new $APP.M(null,2,[$APP.O,$APP.X,$APP.pj,!0],null),new $APP.M(null,2,[$APP.O,$APP.Hr,$APP.pj,!0],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.pj,!0],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.O,
|
|
19
|
+
$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"minlength"],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"rows"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"readonly"],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"maxlength"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"autocomplete"],null),new $APP.M(null,2,[$APP.O,$APP.xs,$APP.pj,!0],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"required"],null),new $APP.M(null,2,[$APP.O,$APP.Yr,$APP.pj,!0],null)]);
|
|
20
|
+
$APP.he(["x-text-area-change-request",new $APP.M(null,2,[$APP.Yt,!0,$APP.V,new $APP.M(null,3,[$APP.fk,$APP.X,$APP.Si,$APP.X,$APP.As,$APP.X],null)],null),"x-text-area-input",new $APP.M(null,2,[$APP.Yt,!1,$APP.V,new $APP.M(null,2,[$APP.fk,$APP.X,$APP.Si,$APP.X],null)],null),"x-text-area-change",new $APP.M(null,2,[$APP.Yt,!1,$APP.V,new $APP.M(null,2,[$APP.fk,$APP.X,$APP.Si,$APP.X],null)],null)]);$APP.fa("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
|
|
3
|
-
2,5,$APP.K,[y,$APP.l(e,y)],null),m($APP.ec(
|
|
4
|
-
return $APP.Dd(new $APP.J(null,2,5,$APP.K,[y,$APP.l(f,y)],null),m($APP.ec(
|
|
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.fa("baredom.exports.x_theme.registerPreset",
|
|
2
|
+
var zfa=function(a,b){var c=LQ.i(MQ),d=NQ.i(MQ),e=b.light,f=b.dark;b=$APP.Wg($APP.Cc([c,$APP.n(e)?$APP.If.j($APP.ie,function(){return function m(k){return new $APP.Gd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.Yc(r)){var t=$APP.Db(r),x=$APP.w(t),y=$APP.Jd(x);a:{for(var A=0;;)if(A<x){var E=$APP.Hc(t,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(e,E)],null));A+=1}else{t=!0;break a}t=void 0}return t?$APP.Nd(y.ea(),m($APP.Eb(r))):$APP.Nd(y.ea(),null)}y=$APP.u(r);return $APP.Dd(new $APP.J(null,
|
|
3
|
+
2,5,$APP.K,[y,$APP.l(e,y)],null),m($APP.ec(r)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.Wg($APP.Cc([d,$APP.n(f)?$APP.If.j($APP.ie,function(){return function m(k){return new $APP.Gd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.Yc(r)){var t=$APP.Db(r),x=$APP.w(t),y=$APP.Jd(x);a:{for(var A=0;;)if(A<x){var E=$APP.Hc(t,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(f,E)],null));A+=1}else{t=!0;break a}t=void 0}return t?$APP.Nd(y.ea(),m($APP.Eb(r))):$APP.Nd(y.ea(),null)}y=$APP.u(r);
|
|
4
|
+
return $APP.Dd(new $APP.J(null,2,5,$APP.K,[y,$APP.l(f,y)],null),m($APP.ec(r)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.ja(OQ,a,new $APP.M(null,2,[LQ,b,NQ,d],null))},PQ=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.Yc(a)?(d=$APP.Db(a),a=$APP.Eb(a),c=d,d=$APP.w(d)):(d=$APP.u(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("")},QQ=function(a){var b=new $APP.M(null,1,[$APP.js,a.getAttribute("preset")],null);if($APP.I($APP.l(a,"__xThemeModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.js),d=$APP.l(a,"__xThemeRefs");if($APP.n(d)){d=d.style;c=typeof c!=="string"||!$APP.bd(Afa,c)&&$APP.l(OQ,c)==null?"default":c;var e=$APP.l(OQ,c);$APP.n(e)||(c=$APP.C(Bfa,c),e=$APP.n(c)?c:MQ);c=LQ.i(e);e=NQ.i(e);c=":host{display:contents;"+$APP.P.i(PQ(c))+"}@media(prefers-color-scheme:dark){:host{"+
|
|
6
|
+
$APP.P.i(PQ(e))+"}}";d.textContent=c;a=$APP.Q(a,"__xThemeModel",b)}else a=null}else a=null;return a},Cfa=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 QQ(a)},Dfa=function(){return null},Efa=function(a,b,c,d){return $APP.I(c,d)?QQ(a):null},Ffa=function(a){return $APP.mj(a,"preset","preset")},RQ=function(a,b){return zfa(a,
|
|
7
|
+
b)},SQ=function(){return $APP.qi("x-theme",new $APP.M(null,5,[$APP.hi,Gfa,$APP.fi,Cfa,$APP.ci,Dfa,$APP.bi,Efa,$APP.gi,Ffa],null))},LQ=new $APP.F(null,"light","light",1918998747),NQ=new $APP.F(null,"dark","dark",1818973999);var Gfa=["preset"],TQ=$APP.ug("--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(";")),UQ=$APP.he("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
|
|
8
|
+
VQ=$APP.he(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),WQ=$APP.he("--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(" ")),XQ=$APP.he("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),YQ=$APP.he(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),ZQ=$APP.he("--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
|
+
$Q=$APP.he("--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(";")),MQ=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.ug("--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(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.ug("--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),Hfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.ug("--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(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.ug("--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),Ifa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.ug("--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(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.ug("--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),Jfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.ug("--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(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.ug("--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),Kfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,VQ,WQ,XQ,YQ,$APP.ug("--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(";"))])),NQ,$APP.ug("--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),Lfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,WQ,XQ,YQ,$APP.ug("--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(";"))])),NQ,$APP.ug("--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),Mfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([UQ,VQ,WQ,XQ,YQ,$APP.ug("--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(";"))])),NQ,$APP.ug("--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),Nfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.ug("--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(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.ug("--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),Bfa=new $APP.M(null,8,["default",MQ,"ocean",Hfa,"forest",Ifa,"sunset",Jfa,"neo-brutalist",Kfa,"aurora",Lfa,"mono-ai",Mfa,"warm-mineral",Nfa],null),OQ=Object.create(null),Afa=new $APP.ah(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.fa("baredom.exports.x_theme.registerPreset",RQ);$APP.fa("baredom.exports.x_theme.init",SQ);export const init=SQ;export const registerPreset=RQ;
|