@mhmo91/schmancy 0.5.13 → 0.5.14
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/dist/{avatar-B4h1VX0D.js → avatar-B7Bt-YJN.js} +2 -2
- package/dist/{avatar-B4h1VX0D.js.map → avatar-B7Bt-YJN.js.map} +1 -1
- package/dist/{avatar-ChPbO8ia.cjs → avatar-C3slTj0d.cjs} +2 -2
- package/dist/{avatar-ChPbO8ia.cjs.map → avatar-C3slTj0d.cjs.map} +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/{suggestion-chip-Bu7sdEk7.cjs → suggestion-chip-CAqeh7fF.cjs} +27 -18
- package/dist/suggestion-chip-CAqeh7fF.cjs.map +1 -0
- package/dist/{suggestion-chip-CZU8_pIO.js → suggestion-chip-D4Y6ptgj.js} +39 -30
- package/dist/suggestion-chip-D4Y6ptgj.js.map +1 -0
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/package.json +1 -1
- package/types/src/chips/chips.d.ts +1 -1
- package/dist/suggestion-chip-Bu7sdEk7.cjs.map +0 -1
- package/dist/suggestion-chip-CZU8_pIO.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -2,13 +2,13 @@ import "./animated-text-icbUBg1E.js";
|
|
|
2
2
|
import { F as C, H as g, c as u, S as D, b, a as w, r as R } from "./area.component-BEyvt3QC.js";
|
|
3
3
|
import { p as I, k as M, c as N, j as A, m as v, b as E, d as H, h as B, a as F, e as L, f as O, o as $, g as j, i as k, l as z, n as P, s as V } from "./utils-CYOVFxSx.js";
|
|
4
4
|
import "./autocomplete-D_GGoGWg.js";
|
|
5
|
-
import { $ as G, H as W, a as K, r as _, S as q, g as Q, d as J, h as U, e as X, f as Z, i as aa, b as ea, c as ra, k as ta, m as oa, n as ca, o as sa, l as ma, p as na, q as Sa, W as ia, s as ha, j as ya, t as pa } from "./avatar-
|
|
5
|
+
import { $ as G, H as W, a as K, r as _, S as q, g as Q, d as J, h as U, e as X, f as Z, i as aa, b as ea, c as ra, k as ta, m as oa, n as ca, o as sa, l as ma, p as na, q as Sa, W as ia, s as ha, j as ya, t as pa } from "./avatar-B7Bt-YJN.js";
|
|
6
6
|
import { S as fa } from "./boat-DCT-dcG5.js";
|
|
7
7
|
import "./spinner-CCWR7Sws.js";
|
|
8
8
|
import { S as da, a as Ca } from "./icon-button-BAcBicRW.js";
|
|
9
9
|
import "./media-DO3qNgGt.js";
|
|
10
10
|
import { S as ua } from "./checkbox-DtJfIIRW.js";
|
|
11
|
-
import { S as ba, a as wa, a as Ra, b as Ta } from "./suggestion-chip-
|
|
11
|
+
import { S as ba, a as wa, a as Ra, b as Ta } from "./suggestion-chip-D4Y6ptgj.js";
|
|
12
12
|
import { S as Ma } from "./input-chip-B_YxvaM_.js";
|
|
13
13
|
import { S as Aa, S as va, a as Ea } from "./code-preview-DC9KAoBU.js";
|
|
14
14
|
import { S as Ba } from "./payment-card-form-BNSDRorv.js";
|
package/dist/nav-drawer.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./avatar-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./avatar-C3slTj0d.cjs");exports.$drawer=e.$drawer,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>e.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=e.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=e.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>e.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerSidebar}),exports.schmancyNavDrawer=e.schmancyNavDrawer;
|
|
2
2
|
//# sourceMappingURL=nav-drawer.cjs.map
|
package/dist/nav-drawer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const f=require("./tailwind.mixin-2ShBHr1a.cjs"),
|
|
1
|
+
"use strict";const f=require("./tailwind.mixin-2ShBHr1a.cjs"),a=require("lit"),n=require("lit/decorators.js"),g=require("lit/directives/class-map.js"),h=require("rxjs"),m=require("rxjs/operators");require("lit/directives/style-map.js");const $=require("./litElement.mixin-BPPLJYFS.cjs"),w=require("lit/directives/when.js");var x=Object.defineProperty,S=Object.getOwnPropertyDescriptor,d=(t,e,s,o)=>{for(var l,i=o>1?void 0:o?S(e,s):e,r=t.length-1;r>=0;r--)(l=t[r])&&(i=(o?l(e,s,i):l(i))||i);return o&&i&&x(e,s,i),i};exports.SchmancyAssistChip=class extends f.TailwindElement(a.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
outline: none;
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
:host(:not([disabled])) button:active .state-layer {
|
|
48
48
|
opacity: 0.1;
|
|
49
49
|
}
|
|
50
|
-
`){constructor(){super(...arguments),this.value="",this.icon="",this.href="",this.target="",this.disabled=!1,this.elevated=!0,this.hover$=new h.BehaviorSubject(!1),this.pressed$=new h.BehaviorSubject(!1),this.focused$=new h.BehaviorSubject(!1),this.ripples=[],this.nextRippleId=0,this.handleClick=t=>{if(this.disabled)return;const e=this.shadowRoot?.querySelector("button");if(e){const s=e.getBoundingClientRect(),o=t.clientX-s.left,l=t.clientY-s.top,i=this.nextRippleId++;this.ripples=[...this.ripples,{x:o,y:l,id:i}],setTimeout(()=>{this.ripples=this.ripples.filter(
|
|
50
|
+
`){constructor(){super(...arguments),this.value="",this.icon="",this.href="",this.target="",this.disabled=!1,this.elevated=!0,this.hover$=new h.BehaviorSubject(!1),this.pressed$=new h.BehaviorSubject(!1),this.focused$=new h.BehaviorSubject(!1),this.ripples=[],this.nextRippleId=0,this.handleClick=t=>{if(this.disabled)return;const e=this.shadowRoot?.querySelector("button");if(e){const s=e.getBoundingClientRect(),o=t.clientX-s.left,l=t.clientY-s.top,i=this.nextRippleId++;this.ripples=[...this.ripples,{x:o,y:l,id:i}],setTimeout(()=>{this.ripples=this.ripples.filter(r=>r.id!==i)},600)}this.href&&(this.target==="_blank"?window.open(this.href,"_blank"):window.location.href=this.href),this.dispatchEvent(new CustomEvent("action",{detail:{value:this.value},bubbles:!0,composed:!0}))},this.handleKeyDown=t=>{if(!this.disabled&&(t.key==="Enter"||t.key===" ")){t.preventDefault(),this.pressed$.next(!0);const e=new MouseEvent("click",{bubbles:!0,cancelable:!0,clientX:0,clientY:0});this.handleClick(e),setTimeout(()=>this.pressed$.next(!1),100)}},this.handleFocus=()=>{this.focused$.next(!0)},this.handleBlur=()=>{this.focused$.next(!1)}}connectedCallback(){super.connectedCallback(),h.combineLatest([this.hover$,this.pressed$,this.focused$]).pipe(m.takeUntil(this.disconnecting)).subscribe()}render(){const t=!!this.icon,e={relative:!0,"inline-flex":!0,"items-center":!0,"gap-2":!0,"h-8":!0,"min-h-[32px]":!0,"rounded-full":!0,"cursor-pointer":!this.disabled,"transition-all":!0,"duration-200":!0,"select-none":!0,"overflow-hidden":!0,"pl-2":t,"pl-4":!t,"pr-4":!0,"bg-surface-containerLow":!0,"text-surface-onVariant":!0,"shadow-sm":this.elevated&&!this.disabled,"hover:shadow-md":this.elevated&&!this.disabled,"focus-visible:outline":!this.disabled,"focus-visible:outline-2":!this.disabled,"focus-visible:outline-primary":!this.disabled,"focus-visible:outline-offset-2":!this.disabled,"opacity-38":this.disabled,"cursor-not-allowed":this.disabled};return a.html`
|
|
51
51
|
<button
|
|
52
52
|
type="button"
|
|
53
53
|
class=${g.classMap(e)}
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
aria-disabled=${this.disabled}
|
|
66
66
|
aria-label=${this.value}
|
|
67
67
|
>
|
|
68
|
-
${this.icon?
|
|
68
|
+
${this.icon?a.html`
|
|
69
69
|
<schmancy-icon class="text-[18px] shrink-0">${this.icon}</schmancy-icon>
|
|
70
70
|
`:""}
|
|
71
71
|
<span class="text-sm font-medium leading-5">
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
</span>
|
|
74
74
|
|
|
75
75
|
<!-- Ripple effects -->
|
|
76
|
-
${this.ripples.map(s=>
|
|
76
|
+
${this.ripples.map(s=>a.html`
|
|
77
77
|
<span
|
|
78
78
|
class="ripple"
|
|
79
79
|
style="left: ${s.x}px; top: ${s.y}px;"
|
|
@@ -83,13 +83,22 @@
|
|
|
83
83
|
<!-- State layer for M3 hover/focus/pressed states -->
|
|
84
84
|
<div class="state-layer"></div>
|
|
85
85
|
</button>
|
|
86
|
-
`}},exports.SchmancyAssistChip.shadowRootOptions={...
|
|
86
|
+
`}},exports.SchmancyAssistChip.shadowRootOptions={...a.LitElement.shadowRootOptions,delegatesFocus:!0},d([n.property({reflect:!0})],exports.SchmancyAssistChip.prototype,"value",2),d([n.property({reflect:!0})],exports.SchmancyAssistChip.prototype,"icon",2),d([n.property({reflect:!0})],exports.SchmancyAssistChip.prototype,"href",2),d([n.property({reflect:!0})],exports.SchmancyAssistChip.prototype,"target",2),d([n.property({type:Boolean,reflect:!0})],exports.SchmancyAssistChip.prototype,"disabled",2),d([n.property({type:Boolean,reflect:!0})],exports.SchmancyAssistChip.prototype,"elevated",2),d([n.state()],exports.SchmancyAssistChip.prototype,"ripples",2),exports.SchmancyAssistChip=d([n.customElement("schmancy-assist-chip")],exports.SchmancyAssistChip);var C=Object.defineProperty,k=Object.getOwnPropertyDescriptor,v=(t,e,s,o)=>{for(var l,i=o>1?void 0:o?k(e,s):e,r=t.length-1;r>=0;r--)(l=t[r])&&(i=(o?l(e,s,i):l(i))||i);return o&&i&&C(e,s,i),i};let u=class extends $.$LitElement(a.css`
|
|
87
|
+
|
|
88
|
+
.scrollbar-hide {
|
|
89
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
90
|
+
scrollbar-width: none; /* Firefox */
|
|
91
|
+
}
|
|
92
|
+
.scrollbar-hide::-webkit-scrollbar {
|
|
93
|
+
display: none; /* Chrome, Safari, and Opera */
|
|
94
|
+
}
|
|
95
|
+
`){constructor(){super(...arguments),this.value$=new h.BehaviorSubject(""),this.values$=new h.BehaviorSubject([]),this._value="",this._values=[],this._multi=!1,this._valueSet=!1,this._valuesSet=!1,this.wrap=!1}get multi(){return this._multi}set multi(t){this._multi=t}get mode(){return this._valuesSet?"multi":this._valueSet?"single":this.hasAttribute("values")?"multi":this.hasAttribute("value")?"single":this._multi===!0?"multi":"none"}get values(){return this._values}set values(t){this._values=t||[],this._valuesSet=!0,this.values$.next(this._values)}get value(){return this._value}set value(t){this._value=t||"",this._valueSet=!0,this.value$.next(this._value)}connectedCallback(){super.connectedCallback(),this.value$.next(this._value),this.values$.next(this._values),h.combineLatest([this.value$.pipe(m.distinctUntilChanged()),this.values$.pipe(m.distinctUntilChanged((t,e)=>t.length===e.length&&t.every((s,o)=>s===e[o])))]).pipe(m.debounceTime(0),m.takeUntil(this.disconnecting)).subscribe(([t,e])=>{this.updateChipStates(this.mode,t,e)})}updateChipStates(t,e,s){this.chips&&t!=="none"&&this.chips.forEach(o=>{if("value"in o&&"selected"in o){const l=o;t==="multi"?l.selected=s.length>0&&s.includes(l.value):t==="single"&&(l.selected=e!==""&&e===l.value)}})}async change(t){if(t.preventDefault(),t.stopPropagation(),this.mode==="none")return;const{value:e,selected:s}=t.detail;this.mode==="multi"?s?this._values.includes(e)||(this._values=[...this._values,e],this.values$.next(this._values)):(this._values=this._values.filter(o=>o!==e),this.values$.next(this._values)):this.mode==="single"&&(this._value=s?e:"",this.value$.next(this._value)),this.requestUpdate(),this.dispatchEvent(new CustomEvent("change",{detail:this.mode==="multi"?this._values:this._value,bubbles:!0}))}firstUpdated(t){super.firstUpdated(t),this.updateChipStates(this.mode,this._value,this._values)}render(){const t=this.classMap({"inset-2":!0,flex:!0,"gap-2":!0,"items-center":!0,"flex-wrap":this.wrap,"overflow-x-auto":!this.wrap,"scrollbar-hide":!this.wrap});return a.html`
|
|
87
96
|
<div class=${t} @change=${this.change}>
|
|
88
97
|
<slot
|
|
89
98
|
@slotchange=${()=>{this.updateChipStates(this.mode,this._value,this._values)}}
|
|
90
99
|
></slot>
|
|
91
100
|
</div>
|
|
92
|
-
`}};v([n.property({type:Boolean,reflect:!0})],u.prototype,"multi",1),v([n.property({type:Array,reflect:!0})],u.prototype,"values",1),v([n.property({type:String,reflect:!0})],u.prototype,"value",1),v([n.queryAssignedElements({selector:"schmancy-chip, schmancy-filter-chip, schmancy-assist-chip, schmancy-input-chip, schmancy-suggestion-chip",flatten:!0})],u.prototype,"chips",2),v([n.property({type:Boolean,reflect:!0})],u.prototype,"wrap",2),u=v([n.customElement("schmancy-chips")],u);var _=Object.defineProperty,E=Object.getOwnPropertyDescriptor,b=(t,e,s,o)=>{for(var l,i=o>1?void 0:o?E(e,s):e,
|
|
101
|
+
`}};v([n.property({type:Boolean,reflect:!0})],u.prototype,"multi",1),v([n.property({type:Array,reflect:!0})],u.prototype,"values",1),v([n.property({type:String,reflect:!0})],u.prototype,"value",1),v([n.queryAssignedElements({selector:"schmancy-chip, schmancy-filter-chip, schmancy-assist-chip, schmancy-input-chip, schmancy-suggestion-chip",flatten:!0})],u.prototype,"chips",2),v([n.property({type:Boolean,reflect:!0})],u.prototype,"wrap",2),u=v([n.customElement("schmancy-chips")],u);var _=Object.defineProperty,E=Object.getOwnPropertyDescriptor,b=(t,e,s,o)=>{for(var l,i=o>1?void 0:o?E(e,s):e,r=t.length-1;r>=0;r--)(l=t[r])&&(i=(o?l(e,s,i):l(i))||i);return o&&i&&_(e,s,i),i};const y=class y extends f.TailwindElement(a.css`
|
|
93
102
|
:host {
|
|
94
103
|
display: inline-block;
|
|
95
104
|
outline: none;
|
|
@@ -124,7 +133,7 @@
|
|
|
124
133
|
font-feature-settings: 'liga';
|
|
125
134
|
vertical-align: middle;
|
|
126
135
|
}
|
|
127
|
-
`){constructor(){super(),this.value="",this._selected=!1,this.icon="",this.removable=!1,this.disabled=!1,this.elevated=!1,this.hover$=new h.BehaviorSubject(!1),this.pressed$=new h.BehaviorSubject(!1),this.focused$=new h.BehaviorSubject(!1),this.handleClick=()=>{this.disabled||this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,selected:!this._selected},bubbles:!0,composed:!0}))},this.handleRemove=e=>{this.disabled||(e.stopPropagation(),this.dispatchEvent(new CustomEvent("remove",{detail:{value:this.value},bubbles:!0,composed:!0})))},this.handleKeyDown=e=>{this.disabled||e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,selected:!this._selected},bubbles:!0,composed:!0})))},this.handleMouseEnter=()=>{this.hover$.next(!0)},this.handleMouseLeave=()=>{this.hover$.next(!1),this.pressed$.next(!1)},this.handleMouseDown=()=>{this.pressed$.next(!0)},this.handleMouseUp=()=>{this.pressed$.next(!1)},this.handleFocus=()=>{this.focused$.next(!0)},this.handleBlur=()=>{this.focused$.next(!1)};try{this.internals=this.attachInternals()}catch{this.internals=void 0}}get selected(){return this._selected}set selected(e){const s=this._selected;this._selected=e,this.requestUpdate("selected",s)}get form(){return this.internals?.form}connectedCallback(){super.connectedCallback(),h.combineLatest([this.hover$,this.pressed$,this.focused$]).pipe(m.takeUntil(this.disconnecting)).subscribe()}render(){const e={"inline-flex":!0,"items-center":!0,"gap-2":!0,"rounded-full":!0,"h-8 px-4":!0,"cursor-pointer":!this.disabled,"transition-all":!0,"duration-200":!0,"select-none":!0,"text-sm":!0,"font-medium":!0,border:!0,relative:!0,"min-h-[32px]":!0,"bg-secondary-container":this._selected,"text-secondary-onContainer":this._selected,"border-secondary-container":this._selected,"bg-surface-container":!this._selected,"text-surface-on":!this._selected,"border-outline-variant":!this._selected,"hover:brightness-95":this._selected&&!this.disabled,"hover:bg-surface-containerHigh":!this._selected&&!this.disabled,"active:scale-95":!this.disabled,"focus-visible:outline":!this.disabled,"focus-visible:outline-2":!this.disabled,"focus-visible:outline-offset-2":!this.disabled,"focus-visible:outline-primary-default":!this.disabled,"shadow-md":this.elevated&&!this.disabled,"hover:shadow-lg":this.elevated&&!this.disabled,"opacity-50":this.disabled,"cursor-not-allowed":this.disabled};return
|
|
136
|
+
`){constructor(){super(),this.value="",this._selected=!1,this.icon="",this.removable=!1,this.disabled=!1,this.elevated=!1,this.hover$=new h.BehaviorSubject(!1),this.pressed$=new h.BehaviorSubject(!1),this.focused$=new h.BehaviorSubject(!1),this.handleClick=()=>{this.disabled||this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,selected:!this._selected},bubbles:!0,composed:!0}))},this.handleRemove=e=>{this.disabled||(e.stopPropagation(),this.dispatchEvent(new CustomEvent("remove",{detail:{value:this.value},bubbles:!0,composed:!0})))},this.handleKeyDown=e=>{this.disabled||e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,selected:!this._selected},bubbles:!0,composed:!0})))},this.handleMouseEnter=()=>{this.hover$.next(!0)},this.handleMouseLeave=()=>{this.hover$.next(!1),this.pressed$.next(!1)},this.handleMouseDown=()=>{this.pressed$.next(!0)},this.handleMouseUp=()=>{this.pressed$.next(!1)},this.handleFocus=()=>{this.focused$.next(!0)},this.handleBlur=()=>{this.focused$.next(!1)};try{this.internals=this.attachInternals()}catch{this.internals=void 0}}get selected(){return this._selected}set selected(e){const s=this._selected;this._selected=e,this.requestUpdate("selected",s)}get form(){return this.internals?.form}connectedCallback(){super.connectedCallback(),h.combineLatest([this.hover$,this.pressed$,this.focused$]).pipe(m.takeUntil(this.disconnecting)).subscribe()}render(){const e={"inline-flex":!0,"items-center":!0,"gap-2":!0,"rounded-full":!0,"h-8 px-4":!0,"cursor-pointer":!this.disabled,"transition-all":!0,"duration-200":!0,"select-none":!0,"text-sm":!0,"font-medium":!0,border:!0,relative:!0,"min-h-[32px]":!0,"bg-secondary-container":this._selected,"text-secondary-onContainer":this._selected,"border-secondary-container":this._selected,"bg-surface-container":!this._selected,"text-surface-on":!this._selected,"border-outline-variant":!this._selected,"hover:brightness-95":this._selected&&!this.disabled,"hover:bg-surface-containerHigh":!this._selected&&!this.disabled,"active:scale-95":!this.disabled,"focus-visible:outline":!this.disabled,"focus-visible:outline-2":!this.disabled,"focus-visible:outline-offset-2":!this.disabled,"focus-visible:outline-primary-default":!this.disabled,"shadow-md":this.elevated&&!this.disabled,"hover:shadow-lg":this.elevated&&!this.disabled,"opacity-50":this.disabled,"cursor-not-allowed":this.disabled};return a.html`
|
|
128
137
|
<button
|
|
129
138
|
class=${this.classMap(e)}
|
|
130
139
|
@click=${this.handleClick}
|
|
@@ -141,17 +150,17 @@
|
|
|
141
150
|
tabindex="0"
|
|
142
151
|
>
|
|
143
152
|
<!-- Icon container - conditionally shown using when directive -->
|
|
144
|
-
${w.when(this._selected||this.icon||this.iconSlotElements?.length>0,()=>
|
|
153
|
+
${w.when(this._selected||this.icon||this.iconSlotElements?.length>0,()=>a.html`
|
|
145
154
|
<span class="inline-flex w-[18px] h-[18px] items-center justify-center shrink-0">
|
|
146
|
-
${this._selected?
|
|
155
|
+
${this._selected?a.html`
|
|
147
156
|
<span class="material-symbols-outlined text-[18px]">
|
|
148
157
|
check
|
|
149
158
|
</span>
|
|
150
|
-
`:this.icon?
|
|
159
|
+
`:this.icon?a.html`
|
|
151
160
|
<span class="material-symbols-outlined text-[18px]">
|
|
152
161
|
${this.icon}
|
|
153
162
|
</span>
|
|
154
|
-
`:
|
|
163
|
+
`:a.html`
|
|
155
164
|
<slot name="icon"></slot>
|
|
156
165
|
`}
|
|
157
166
|
</span>
|
|
@@ -161,7 +170,7 @@
|
|
|
161
170
|
<slot></slot>
|
|
162
171
|
|
|
163
172
|
<!-- Remove button (if removable) -->
|
|
164
|
-
${this.removable?
|
|
173
|
+
${this.removable?a.html`
|
|
165
174
|
<button
|
|
166
175
|
class="ml-1 -mr-1 p-0.5 rounded-full hover:bg-surface-containerHighest transition-colors"
|
|
167
176
|
@click=${this.handleRemove}
|
|
@@ -174,7 +183,7 @@
|
|
|
174
183
|
</button>
|
|
175
184
|
`:""}
|
|
176
185
|
</button>
|
|
177
|
-
`}};y.shadowRootOptions={...
|
|
186
|
+
`}};y.shadowRootOptions={...a.LitElement.shadowRootOptions,delegatesFocus:!0},y.formAssociated=!0;let c=y;if(b([n.property({type:String,reflect:!0})],c.prototype,"value",2),b([n.property({type:Boolean,reflect:!0})],c.prototype,"selected",1),b([n.property({type:String,reflect:!0})],c.prototype,"icon",2),b([n.property({type:Boolean,reflect:!0})],c.prototype,"removable",2),b([n.property({type:Boolean,reflect:!0})],c.prototype,"disabled",2),b([n.property({type:Boolean,reflect:!0})],c.prototype,"elevated",2),b([n.queryAssignedElements({slot:"icon"})],c.prototype,"iconSlotElements",2),customElements.get("schmancy-filter-chip")||customElements.define("schmancy-filter-chip",c),!customElements.get("schmancy-chip")){class t extends c{}customElements.define("schmancy-chip",t)}var B=Object.defineProperty,j=Object.getOwnPropertyDescriptor,p=(t,e,s,o)=>{for(var l,i=o>1?void 0:o?j(e,s):e,r=t.length-1;r>=0;r--)(l=t[r])&&(i=(o?l(e,s,i):l(i))||i);return o&&i&&B(e,s,i),i};exports.SchmancySuggestionChip=class extends f.TailwindElement(a.css`
|
|
178
187
|
:host {
|
|
179
188
|
display: inline-block;
|
|
180
189
|
outline: none;
|
|
@@ -223,7 +232,7 @@
|
|
|
223
232
|
:host(:not([disabled])) button:active .state-layer {
|
|
224
233
|
opacity: 0.1;
|
|
225
234
|
}
|
|
226
|
-
`){constructor(){super(...arguments),this.value="",this.icon="",this.href="",this.target="",this.disabled=!1,this.elevated=!1,this.hover$=new h.BehaviorSubject(!1),this.pressed$=new h.BehaviorSubject(!1),this.focused$=new h.BehaviorSubject(!1),this.ripples=[],this.nextRippleId=0,this.handleClick=t=>{if(this.disabled)return;const e=this.shadowRoot?.querySelector("button");if(e){const s=e.getBoundingClientRect(),o=t.clientX-s.left,l=t.clientY-s.top,i=this.nextRippleId++;this.ripples=[...this.ripples,{x:o,y:l,id:i}],setTimeout(()=>{this.ripples=this.ripples.filter(
|
|
235
|
+
`){constructor(){super(...arguments),this.value="",this.icon="",this.href="",this.target="",this.disabled=!1,this.elevated=!1,this.hover$=new h.BehaviorSubject(!1),this.pressed$=new h.BehaviorSubject(!1),this.focused$=new h.BehaviorSubject(!1),this.ripples=[],this.nextRippleId=0,this.handleClick=t=>{if(this.disabled)return;const e=this.shadowRoot?.querySelector("button");if(e){const s=e.getBoundingClientRect(),o=t.clientX-s.left,l=t.clientY-s.top,i=this.nextRippleId++;this.ripples=[...this.ripples,{x:o,y:l,id:i}],setTimeout(()=>{this.ripples=this.ripples.filter(r=>r.id!==i)},600)}this.href&&(this.target==="_blank"?window.open(this.href,"_blank"):window.location.href=this.href),this.dispatchEvent(new CustomEvent("action",{detail:{value:this.value},bubbles:!0,composed:!0}))},this.handleKeyDown=t=>{if(!this.disabled&&(t.key==="Enter"||t.key===" ")){t.preventDefault(),this.pressed$.next(!0);const e=new MouseEvent("click",{bubbles:!0,cancelable:!0,clientX:0,clientY:0});this.handleClick(e),setTimeout(()=>this.pressed$.next(!1),100)}},this.handleFocus=()=>{this.focused$.next(!0)},this.handleBlur=()=>{this.focused$.next(!1)}}connectedCallback(){super.connectedCallback(),h.combineLatest([this.hover$,this.pressed$,this.focused$]).pipe(m.takeUntil(this.disconnecting)).subscribe()}render(){const t=!!this.icon,e={relative:!0,"inline-flex":!0,"items-center":!0,"gap-2":!0,"h-8":!0,"min-h-[32px]":!0,"rounded-full":!0,"cursor-pointer":!this.disabled,"transition-all":!0,"duration-200":!0,"select-none":!0,"overflow-hidden":!0,border:!0,"pl-2":t,"pl-4":!t,"pr-4":!0,"bg-surface-containerLow":!0,"text-surface-onVariant":!0,"border-outline":!0,"focus-visible:outline":!this.disabled,"focus-visible:outline-2":!this.disabled,"focus-visible:outline-primary":!this.disabled,"focus-visible:outline-offset-2":!this.disabled,"opacity-38":this.disabled,"cursor-not-allowed":this.disabled};return a.html`
|
|
227
236
|
<button
|
|
228
237
|
type="button"
|
|
229
238
|
class=${g.classMap(e)}
|
|
@@ -241,7 +250,7 @@
|
|
|
241
250
|
aria-disabled=${this.disabled}
|
|
242
251
|
aria-label=${this.value}
|
|
243
252
|
>
|
|
244
|
-
${this.icon?
|
|
253
|
+
${this.icon?a.html`
|
|
245
254
|
<schmancy-icon class="text-[18px] shrink-0">${this.icon}</schmancy-icon>
|
|
246
255
|
`:""}
|
|
247
256
|
<span class="text-sm font-medium leading-5">
|
|
@@ -249,7 +258,7 @@
|
|
|
249
258
|
</span>
|
|
250
259
|
|
|
251
260
|
<!-- Ripple effects -->
|
|
252
|
-
${this.ripples.map(s=>
|
|
261
|
+
${this.ripples.map(s=>a.html`
|
|
253
262
|
<span
|
|
254
263
|
class="ripple"
|
|
255
264
|
style="left: ${s.x}px; top: ${s.y}px;"
|
|
@@ -259,5 +268,5 @@
|
|
|
259
268
|
<!-- State layer for M3 hover/focus/pressed states -->
|
|
260
269
|
<div class="state-layer"></div>
|
|
261
270
|
</button>
|
|
262
|
-
`}},exports.SchmancySuggestionChip.shadowRootOptions={...
|
|
263
|
-
//# sourceMappingURL=suggestion-chip-
|
|
271
|
+
`}},exports.SchmancySuggestionChip.shadowRootOptions={...a.LitElement.shadowRootOptions,delegatesFocus:!0},p([n.property({reflect:!0})],exports.SchmancySuggestionChip.prototype,"value",2),p([n.property({reflect:!0})],exports.SchmancySuggestionChip.prototype,"icon",2),p([n.property({reflect:!0})],exports.SchmancySuggestionChip.prototype,"href",2),p([n.property({reflect:!0})],exports.SchmancySuggestionChip.prototype,"target",2),p([n.property({type:Boolean,reflect:!0})],exports.SchmancySuggestionChip.prototype,"disabled",2),p([n.property({type:Boolean,reflect:!0})],exports.SchmancySuggestionChip.prototype,"elevated",2),p([n.state()],exports.SchmancySuggestionChip.prototype,"ripples",2),exports.SchmancySuggestionChip=p([n.customElement("schmancy-suggestion-chip")],exports.SchmancySuggestionChip),exports.SchmancyFilterChip=c;
|
|
272
|
+
//# sourceMappingURL=suggestion-chip-CAqeh7fF.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suggestion-chip-CAqeh7fF.cjs","sources":["../src/chips/assist-chip.ts","../src/chips/chips.ts","../src/chips/filter-chip.ts","../src/chips/suggestion-chip.ts"],"sourcesContent":["import { TailwindElement } from '@mixins/tailwind.mixin'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { classMap } from 'lit/directives/class-map.js'\nimport { BehaviorSubject, combineLatest } from 'rxjs'\nimport { takeUntil } from 'rxjs/operators'\n\n/**\n * Assist chip component - prompts user actions like opening calendar events or sharing content\n * Pure Schmancy implementation with Tailwind CSS and RxJS state management\n */\n@customElement('schmancy-assist-chip')\nexport class SchmancyAssistChip extends TailwindElement(css`\n\t:host {\n\t\tdisplay: inline-block;\n\t\toutline: none;\n\t\tmin-width:fit-content\n\t}\n\n\t:host([disabled]) {\n\t\tpointer-events: none;\n\t}\n\n\t.ripple {\n\t\tposition: absolute;\n\t\tborder-radius: 50%;\n\t\ttransform: scale(0);\n\t\tanimation: ripple 600ms linear;\n\t\tbackground-color: rgba(0, 0, 0, 0.08);\n\t\tpointer-events: none;\n\t}\n\n\t@keyframes ripple {\n\t\tto {\n\t\t\ttransform: scale(4);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t/* State layer for M3 hover/focus/pressed states */\n\t.state-layer {\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tborder-radius: inherit;\n\t\tpointer-events: none;\n\t\tbackground-color: currentColor;\n\t\topacity: 0;\n\t\ttransition: opacity 200ms ease;\n\t}\n\n\t:host(:not([disabled])) button:hover .state-layer {\n\t\topacity: 0.08;\n\t}\n\n\t:host(:not([disabled])) button:focus-visible .state-layer {\n\t\topacity: 0.1;\n\t}\n\n\t:host(:not([disabled])) button:active .state-layer {\n\t\topacity: 0.1;\n\t}\n`) {\n\t/** Value identifier for the chip */\n\t@property({ reflect: true }) value = ''\n\n\t/** Optional icon name (Material Symbols) */\n\t@property({ reflect: true }) icon = ''\n\n\t/** Optional href for navigation */\n\t@property({ reflect: true }) href = ''\n\n\t/** Target for navigation (e.g., '_blank') */\n\t@property({ reflect: true }) target = ''\n\n\t/** Disable the chip */\n\t@property({ type: Boolean, reflect: true }) disabled = false\n\n\t/** Elevated style variant - true by default per M3 spec for assist chips */\n\t@property({ type: Boolean, reflect: true }) elevated = true\n\n\t// RxJS state streams\n\tprivate hover$ = new BehaviorSubject<boolean>(false)\n\tprivate pressed$ = new BehaviorSubject<boolean>(false)\n\tprivate focused$ = new BehaviorSubject<boolean>(false)\n\n\t// UI state - only ripples needed for rendering\n\t@state() private ripples: Array<{ x: number; y: number; id: number }> = []\n\n\tprotected static shadowRootOptions = { ...LitElement.shadowRootOptions, delegatesFocus: true }\n\n\tprivate nextRippleId = 0\n\n\tconnectedCallback() {\n\t\tsuper.connectedCallback()\n\n\t\t// Stream management for future extensions\n\t\t// Currently, states are handled directly in event handlers\n\t\t// This pipeline can be extended for more complex state interactions\n\t\tcombineLatest([\n\t\t\tthis.hover$,\n\t\t\tthis.pressed$,\n\t\t\tthis.focused$\n\t\t]).pipe(\n\t\t\t// States are managed through event handlers directly\n\t\t\t// This pipeline is kept for potential future state combinations\n\t\t\ttakeUntil(this.disconnecting)\n\t\t).subscribe()\n\t}\n\n\tprivate handleClick = (e: MouseEvent) => {\n\t\tif (this.disabled) return\n\n\t\t// Add ripple effect\n\t\tconst button = this.shadowRoot?.querySelector('button')\n\t\tif (button) {\n\t\t\tconst rect = button.getBoundingClientRect()\n\t\t\tconst x = e.clientX - rect.left\n\t\t\tconst y = e.clientY - rect.top\n\t\t\tconst id = this.nextRippleId++\n\n\t\t\tthis.ripples = [...this.ripples, { x, y, id }]\n\n\t\t\t// Remove ripple after animation\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.ripples = this.ripples.filter(r => r.id !== id)\n\t\t\t}, 600)\n\t\t}\n\n\t\t// Navigate if href is provided\n\t\tif (this.href) {\n\t\t\tif (this.target === '_blank') {\n\t\t\t\twindow.open(this.href, '_blank')\n\t\t\t} else {\n\t\t\t\twindow.location.href = this.href\n\t\t\t}\n\t\t}\n\n\t\t// Dispatch action event\n\t\tthis.dispatchEvent(new CustomEvent('action', {\n\t\t\tdetail: { value: this.value },\n\t\t\tbubbles: true,\n\t\t\tcomposed: true\n\t\t}))\n\t}\n\n\tprivate handleKeyDown = (e: KeyboardEvent) => {\n\t\tif (this.disabled) return\n\n\t\tif (e.key === 'Enter' || e.key === ' ') {\n\t\t\te.preventDefault()\n\t\t\tthis.pressed$.next(true)\n\n\t\t\t// Simulate click\n\t\t\tconst clickEvent = new MouseEvent('click', {\n\t\t\t\tbubbles: true,\n\t\t\t\tcancelable: true,\n\t\t\t\tclientX: 0,\n\t\t\t\tclientY: 0\n\t\t\t})\n\t\t\tthis.handleClick(clickEvent)\n\n\t\t\tsetTimeout(() => this.pressed$.next(false), 100)\n\t\t}\n\t}\n\n\tprivate handleFocus = () => {\n\t\tthis.focused$.next(true)\n\t}\n\n\tprivate handleBlur = () => {\n\t\tthis.focused$.next(false)\n\t}\n\n\trender() {\n\t\tconst hasIcon = !!this.icon;\n\n\t\tconst classes = {\n\t\t\t'relative': true,\n\t\t\t'inline-flex': true,\n\t\t\t'items-center': true,\n\t\t\t'gap-2': true,\n\t\t\t'h-8': true, // M3: 32px height\n\t\t\t'min-h-[32px]': true,\n\t\t\t'rounded-full': true,\n\t\t\t'cursor-pointer': !this.disabled,\n\t\t\t'transition-all': true,\n\t\t\t'duration-200': true,\n\t\t\t'select-none': true,\n\t\t\t'overflow-hidden': true,\n\n\t\t\t// M3 Padding: 8px with icon, 16px without (leading), 16px trailing\n\t\t\t'pl-2': hasIcon, // 8px with icon\n\t\t\t'pl-4': !hasIcon, // 16px without icon\n\t\t\t'pr-4': true, // 16px trailing\n\n\t\t\t// M3 Colors - assist chips are elevated by default\n\t\t\t'bg-surface-containerLow': true,\n\t\t\t'text-surface-onVariant': true,\n\n\t\t\t// M3: Assist chips elevated by default (shadow-1)\n\t\t\t'shadow-sm': this.elevated && !this.disabled, // shadow-1 for elevation\n\t\t\t'hover:shadow-md': this.elevated && !this.disabled, // elevated on hover\n\n\t\t\t// Focus state\n\t\t\t'focus-visible:outline': !this.disabled,\n\t\t\t'focus-visible:outline-2': !this.disabled,\n\t\t\t'focus-visible:outline-primary': !this.disabled,\n\t\t\t'focus-visible:outline-offset-2': !this.disabled,\n\n\t\t\t// Disabled\n\t\t\t'opacity-38': this.disabled, // M3 disabled opacity\n\t\t\t'cursor-not-allowed': this.disabled\n\t\t}\n\n\t\treturn html`\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=${classMap(classes)}\n\t\t\t\t?disabled=${this.disabled}\n\t\t\t\t@click=${this.handleClick}\n\t\t\t\t@keydown=${this.handleKeyDown}\n\t\t\t\t@mouseenter=${() => this.hover$.next(true)}\n\t\t\t\t@mouseleave=${() => this.hover$.next(false)}\n\t\t\t\t@mousedown=${() => this.pressed$.next(true)}\n\t\t\t\t@mouseup=${() => this.pressed$.next(false)}\n\t\t\t\t@focus=${this.handleFocus}\n\t\t\t\t@blur=${this.handleBlur}\n\t\t\t\ttabindex=${this.disabled ? '-1' : '0'}\n\t\t\t\trole=\"button\"\n\t\t\t\taria-disabled=${this.disabled}\n\t\t\t\taria-label=${this.value}\n\t\t\t>\n\t\t\t\t${this.icon ? html`\n\t\t\t\t\t<schmancy-icon class=\"text-[18px] shrink-0\">${this.icon}</schmancy-icon>\n\t\t\t\t` : ''}\n\t\t\t\t<span class=\"text-sm font-medium leading-5\">\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</span>\n\n\t\t\t\t<!-- Ripple effects -->\n\t\t\t\t${this.ripples.map(ripple => html`\n\t\t\t\t\t<span\n\t\t\t\t\t\tclass=\"ripple\"\n\t\t\t\t\t\tstyle=\"left: ${ripple.x}px; top: ${ripple.y}px;\"\n\t\t\t\t\t></span>\n\t\t\t\t`)}\n\n\t\t\t\t<!-- State layer for M3 hover/focus/pressed states -->\n\t\t\t\t<div class=\"state-layer\"></div>\n\t\t\t</button>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-assist-chip': SchmancyAssistChip\n\t}\n}\n\nexport type AssistChipActionEvent = { value: string }","import { $LitElement } from '@mixins/index'\nimport { css, html, PropertyValues } from 'lit'\nimport { customElement, property, queryAssignedElements } from 'lit/decorators.js'\nimport { BehaviorSubject, combineLatest } from 'rxjs'\nimport { debounceTime, distinctUntilChanged, takeUntil } from 'rxjs/operators'\nimport type { FilterChipChangeEvent as SchmancyChipChangeEvent } from './filter-chip'\nimport { SchmancyFilterChip as SchmancyChip } from './filter-chip'\n\n@customElement('schmancy-chips')\nexport default class SchmancyChips extends $LitElement(\ncss`\n\n\t.scrollbar-hide {\n\t\t-ms-overflow-style: none; /* IE and Edge */\n\t\tscrollbar-width: none; /* Firefox */\n\t}\n\t.scrollbar-hide::-webkit-scrollbar {\n\t\tdisplay: none; /* Chrome, Safari, and Opera */\n\t}\n`\n) {\n\t// RxJS state streams - initialized with undefined to detect if properties were set\n\tprivate value$ = new BehaviorSubject<string>('')\n\tprivate values$ = new BehaviorSubject<string[]>([])\n\n\t// Track if properties were initialized from attributes/properties\n\tprivate _value: string = ''\n\tprivate _values: string[] = []\n\tprivate _multi: boolean = false\n\n\t// Track if properties have been explicitly set\n\tprivate _valueSet: boolean = false\n\tprivate _valuesSet: boolean = false\n\n\t/**\n\t * @deprecated Use .values for multi-selection or .value for single-selection instead.\n\t * The mode is now automatically determined based on which property is used.\n\t */\n\t@property({\n\t\ttype: Boolean,\n\t\treflect: true,\n\t})\n\tget multi(): boolean {\n\t\treturn this._multi\n\t}\n\tset multi(value: boolean) {\n\t\tthis._multi = value\n\t\t// Note: We don't update any BehaviorSubject here as mode is now computed\n\t}\n\n\t/**\n\t * Automatically determines the selection mode based on which properties are in use\n\t */\n\tprivate get mode(): 'multi' | 'single' | 'none' {\n\t\t// Check if values array is being used (explicitly set)\n\t\tif (this._valuesSet) {\n\t\t\treturn 'multi'\n\t\t}\n\t\t// Check if value string is being used (explicitly set)\n\t\tif (this._valueSet) {\n\t\t\treturn 'single'\n\t\t}\n\t\t// Check if either property has been set via attributes\n\t\tif (this.hasAttribute('values')) {\n\t\t\treturn 'multi'\n\t\t}\n\t\tif (this.hasAttribute('value')) {\n\t\t\treturn 'single'\n\t\t}\n\t\t// Fallback to deprecated multi prop for backward compatibility\n\t\tif (this._multi === true) {\n\t\t\treturn 'multi'\n\t\t}\n\t\t// Default to none (no selection management)\n\t\treturn 'none'\n\t}\n\n\t@property({\n\t\ttype: Array,\n\t\treflect: true,\n\t})\n\tget values(): string[] {\n\t\treturn this._values\n\t}\n\tset values(value: string[]) {\n\t\tthis._values = value || []\n\t\tthis._valuesSet = true // Mark that values has been explicitly set\n\t\tthis.values$.next(this._values)\n\t}\n\n\t@property({\n\t\ttype: String,\n\t\treflect: true,\n\t})\n\tget value(): string {\n\t\treturn this._value\n\t}\n\tset value(value: string) {\n\t\tthis._value = value || ''\n\t\tthis._valueSet = true // Mark that value has been explicitly set\n\t\tthis.value$.next(this._value)\n\t}\n\n\t@queryAssignedElements({\n\t\tselector:\n\t\t\t'schmancy-chip, schmancy-filter-chip, schmancy-assist-chip, schmancy-input-chip, schmancy-suggestion-chip',\n\t\tflatten: true,\n\t})\n\tchips!: (SchmancyChip | HTMLElement)[]\n\n\t@property({\n\t\ttype: Boolean,\n\t\treflect: true,\n\t})\n\twrap: boolean = false\n\n\tconnectedCallback() {\n\t\tsuper.connectedCallback()\n\n\t\t// Initialize BehaviorSubjects with current property values\n\t\t// This ensures properties set before connectedCallback are respected\n\t\tthis.value$.next(this._value)\n\t\tthis.values$.next(this._values)\n\n\t\t// Set up reactive pipeline for state synchronization\n\t\tcombineLatest([\n\t\t\tthis.value$.pipe(distinctUntilChanged()),\n\t\t\tthis.values$.pipe(\n\t\t\t\tdistinctUntilChanged((prev, curr) => prev.length === curr.length && prev.every((v, i) => v === curr[i])),\n\t\t\t),\n\t\t])\n\t\t\t.pipe(\n\t\t\t\tdebounceTime(0), // Ensure DOM is ready\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t)\n\t\t\t.subscribe(([value, values]) => {\n\t\t\t\t// Reactively update chip states based on container state and auto-detected mode\n\t\t\t\tthis.updateChipStates(this.mode, value, values)\n\t\t\t})\n\t}\n\n\tprivate updateChipStates(mode: 'multi' | 'single' | 'none', value: string, values: string[]) {\n\t\tif (!this.chips) return\n\n\t\t// If mode is 'none', don't manage selection state\n\t\tif (mode === 'none') return\n\n\t\tthis.chips.forEach(chip => {\n\t\t\tif ('value' in chip && 'selected' in chip) {\n\t\t\t\tconst filterChip = chip as SchmancyChip\n\t\t\t\tif (mode === 'multi') {\n\t\t\t\t\t// In multi mode: only select if values array explicitly includes this chip's value\n\t\t\t\t\tfilterChip.selected = values.length > 0 && values.includes(filterChip.value)\n\t\t\t\t} else if (mode === 'single') {\n\t\t\t\t\t// In single mode: only select if value is non-empty AND matches this chip's value\n\t\t\t\t\t// This prevents chips from being selected when value is empty string\n\t\t\t\t\tfilterChip.selected = value !== '' && value === filterChip.value\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t}\n\n\tasync change(e: CustomEvent<SchmancyChipChangeEvent>) {\n\t\te.preventDefault()\n\t\te.stopPropagation()\n\n\t\t// If mode is 'none', don't handle selection changes\n\t\tif (this.mode === 'none') return\n\n\t\tconst { value, selected } = e.detail\n\n\t\t// Update the reactive streams and internal tracking, which will trigger state synchronization\n\t\tif (this.mode === 'multi') {\n\t\t\tif (selected) {\n\t\t\t\t// Add value if not already present\n\t\t\t\tif (!this._values.includes(value)) {\n\t\t\t\t\tthis._values = [...this._values, value]\n\t\t\t\t\tthis.values$.next(this._values)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Remove value\n\t\t\t\tthis._values = this._values.filter(v => v !== value)\n\t\t\t\tthis.values$.next(this._values)\n\t\t\t}\n\t\t} else if (this.mode === 'single') {\n\t\t\t// Single selection mode\n\t\t\tthis._value = selected ? value : ''\n\t\t\tthis.value$.next(this._value)\n\t\t}\n\n\t\t// Request update to trigger re-render and property reflection\n\t\tthis.requestUpdate()\n\n\t\t// Dispatch change event with appropriate detail based on mode\n\t\tthis.dispatchEvent(\n\t\t\tnew CustomEvent<SchmancyChipsChangeEvent>('change', {\n\t\t\t\tdetail: this.mode === 'multi' ? this._values : this._value,\n\t\t\t\tbubbles: true,\n\t\t\t}),\n\t\t)\n\t}\n\n\tprotected firstUpdated(_changedProperties: PropertyValues): void {\n\t\tsuper.firstUpdated(_changedProperties)\n\t\t// Initial state synchronization will happen through the reactive pipeline\n\t\t// Force an initial update to ensure chips are synchronized\n\t\tthis.updateChipStates(this.mode, this._value, this._values)\n\t}\n\n\tprotected render(): unknown {\n\t\tconst containerClasses = this.classMap({\n\t\t\t'inset-2': true,\n\t\t\tflex: true,\n\t\t\t'gap-2': true,\n\t\t\t'items-center': true,\n\t\t\t'flex-wrap': this.wrap,\n\t\t\t'overflow-x-auto': !this.wrap,\n\t\t\t'scrollbar-hide': !this.wrap,\n\t\t})\n\n\t\treturn html`\n\t\t\t<div class=${containerClasses} @change=${this.change}>\n\t\t\t\t<slot\n\t\t\t\t\t@slotchange=${() => {\n\t\t\t\t\t\t// When slot changes, trigger state update through reactive pipeline\n\t\t\t\t\t\tthis.updateChipStates(this.mode, this._value, this._values)\n\t\t\t\t\t}}\n\t\t\t\t></slot>\n\t\t\t</div>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-chips': SchmancyChips\n\t}\n}\nexport type SchmancyChipsChangeEvent = string | Array<string>\n","import { TailwindElement } from '@mixins/tailwind.mixin'\nimport { css, html, LitElement } from 'lit'\nimport { property, queryAssignedElements } from 'lit/decorators.js'\nimport { when } from 'lit/directives/when.js'\nimport { BehaviorSubject, combineLatest } from 'rxjs'\nimport { takeUntil } from 'rxjs/operators'\n\n/**\n * Filter chip component for content filtering.\n *\n * Filter chips are the ONLY chip type that maintains persistent selected state.\n * They are used for filtering content by toggling on/off different filter criteria.\n *\n * @fires change - Dispatched when selection state changes with {value, selected}\n * @fires remove - Dispatched when remove button is clicked (if removable)\n *\n * @example\n * ```html\n * <schmancy-filter-chip value=\"category-1\" selected>\n * Category 1\n * </schmancy-filter-chip>\n * ```\n */\nexport class SchmancyFilterChip extends TailwindElement(css`\n\t:host {\n\t\tdisplay: inline-block;\n\t\toutline: none;\n\t\tmin-width:fit-content\n\t}\n\n\t:host([disabled]) {\n\t\tpointer-events: none;\n\t\topacity: 0.5;\n\t}\n\n\tbutton {\n\t\tfont-family: inherit;\n\t}\n\n\t/* Material Symbols font for icons */\n\t.material-symbols-outlined {\n\t\tfont-family: 'Material Symbols Outlined';\n\t\tfont-weight: normal;\n\t\tfont-style: normal;\n\t\tfont-size: 18px;\n\t\tline-height: 1;\n\t\tletter-spacing: normal;\n\t\ttext-transform: none;\n\t\tdisplay: inline-block;\n\t\twhite-space: nowrap;\n\t\tword-wrap: normal;\n\t\tdirection: ltr;\n\t\t-webkit-font-smoothing: antialiased;\n\t\ttext-rendering: optimizeLegibility;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tfont-feature-settings: 'liga';\n\t\tvertical-align: middle;\n\t}\n`) {\n\t/** Unique identifier for this filter chip */\n\t@property({ type: String, reflect: true })\n\tvalue: string = ''\n\n\t/** Whether the filter chip is selected (active filter) */\n\tprivate _selected: boolean = false\n\n\t@property({ type: Boolean, reflect: true })\n\tget selected(): boolean {\n\t\treturn this._selected\n\t}\n\tset selected(value: boolean) {\n\t\tconst oldValue = this._selected\n\t\tthis._selected = value\n\t\tthis.requestUpdate('selected', oldValue)\n\t}\n\n\t/** Optional icon to display (Material Symbols name) */\n\t@property({ type: String, reflect: true })\n\ticon: string = ''\n\n\t/** Whether to show a remove button */\n\t@property({ type: Boolean, reflect: true })\n\tremovable: boolean = false\n\n\t/** Whether the chip is disabled */\n\t@property({ type: Boolean, reflect: true })\n\tdisabled: boolean = false\n\n\t/** Whether to use elevated style with shadow */\n\t@property({ type: Boolean, reflect: true })\n\televated: boolean = false\n\n\t// Reactive state management with RxJS\n\tprivate hover$ = new BehaviorSubject<boolean>(false)\n\tprivate pressed$ = new BehaviorSubject<boolean>(false)\n\tprivate focused$ = new BehaviorSubject<boolean>(false)\n\n\t// Query assigned elements in the icon slot\n\t@queryAssignedElements({ slot: 'icon' }) iconSlotElements!: Element[]\n\n\tconstructor() {\n\t\tsuper()\n\t\ttry {\n\t\t\tthis.internals = this.attachInternals()\n\t\t} catch {\n\t\t\tthis.internals = undefined\n\t\t}\n\t}\n\n\tprotected static shadowRootOptions = {\n\t\t...LitElement.shadowRootOptions,\n\t\tdelegatesFocus: true,\n\t}\n\n\tstatic formAssociated = true\n\tinternals: ElementInternals | undefined\n\tget form() {\n\t\treturn this.internals?.form\n\t}\n\n\tconnectedCallback() {\n\t\tsuper.connectedCallback()\n\n\t\t// RxJS streams are maintained for potential future use\n\t\t// Currently state is handled directly through event handlers\n\t\tcombineLatest([\n\t\t\tthis.hover$,\n\t\t\tthis.pressed$,\n\t\t\tthis.focused$,\n\t\t]).pipe(\n\t\t\t// States are managed through event handlers directly\n\t\t\t// This pipeline is kept for potential future state combinations\n\t\t\ttakeUntil(this.disconnecting),\n\t\t).subscribe()\n\t}\n\n\tprivate handleClick = () => {\n\t\tif (this.disabled) return\n\n\t\t// Don't modify this.selected - let the parent container control it\n\t\t// Dispatch change event with the INTENDED state\n\t\tthis.dispatchEvent(\n\t\t\tnew CustomEvent('change', {\n\t\t\t\tdetail: { value: this.value, selected: !this._selected },\n\t\t\t\tbubbles: true,\n\t\t\t\tcomposed: true,\n\t\t\t}),\n\t\t)\n\t}\n\n\tprivate handleRemove = (e: Event) => {\n\t\tif (this.disabled) return\n\n\t\te.stopPropagation()\n\n\t\t// Dispatch remove event\n\t\tthis.dispatchEvent(\n\t\t\tnew CustomEvent('remove', {\n\t\t\t\tdetail: { value: this.value },\n\t\t\t\tbubbles: true,\n\t\t\t\tcomposed: true,\n\t\t\t}),\n\t\t)\n\t}\n\n\tprivate handleKeyDown = (e: KeyboardEvent) => {\n\t\tif (this.disabled) return\n\n\t\tif (e.key === 'Enter' || e.key === ' ') {\n\t\t\te.preventDefault()\n\t\t\t// Dispatch event directly rather than calling handleClick to be explicit\n\t\t\tthis.dispatchEvent(\n\t\t\t\tnew CustomEvent('change', {\n\t\t\t\t\tdetail: { value: this.value, selected: !this._selected },\n\t\t\t\t\tbubbles: true,\n\t\t\t\t\tcomposed: true,\n\t\t\t\t}),\n\t\t\t)\n\t\t}\n\t}\n\n\tprivate handleMouseEnter = () => {\n\t\tthis.hover$.next(true)\n\t}\n\n\tprivate handleMouseLeave = () => {\n\t\tthis.hover$.next(false)\n\t\tthis.pressed$.next(false)\n\t}\n\n\tprivate handleMouseDown = () => {\n\t\tthis.pressed$.next(true)\n\t}\n\n\tprivate handleMouseUp = () => {\n\t\tthis.pressed$.next(false)\n\t}\n\n\tprivate handleFocus = () => {\n\t\tthis.focused$.next(true)\n\t}\n\n\tprivate handleBlur = () => {\n\t\tthis.focused$.next(false)\n\t}\n\n\tprotected render(): unknown {\n\t\tconst chipClasses = {\n\t\t\t'inline-flex': true,\n\t\t\t'items-center': true,\n\t\t\t'gap-2': true,\n\t\t\t'rounded-full': true,\n\t\t\t'h-8 px-4': true,\n\t\t\t'cursor-pointer': !this.disabled,\n\t\t\t'transition-all': true,\n\t\t\t'duration-200': true,\n\t\t\t'select-none': true,\n\t\t\t'text-sm': true,\n\t\t\t'font-medium': true,\n\t\t\t'border': true,\n\t\t\t'relative': true,\n\t\t\t'min-h-[32px]': true,\n\n\t\t\t// Background and text colors based on selection state\n\t\t\t'bg-secondary-container': this._selected,\n\t\t\t'text-secondary-onContainer': this._selected,\n\t\t\t'border-secondary-container': this._selected,\n\t\t\t'bg-surface-container': !this._selected,\n\t\t\t'text-surface-on': !this._selected,\n\t\t\t'border-outline-variant': !this._selected,\n\n\t\t\t// Hover states\n\t\t\t'hover:brightness-95': this._selected && !this.disabled,\n\t\t\t'hover:bg-surface-containerHigh': !this._selected && !this.disabled,\n\n\t\t\t// Pressed state\n\t\t\t'active:scale-95': !this.disabled,\n\n\t\t\t// Focus-visible state for better UX\n\t\t\t'focus-visible:outline': !this.disabled,\n\t\t\t'focus-visible:outline-2': !this.disabled,\n\t\t\t'focus-visible:outline-offset-2': !this.disabled,\n\t\t\t'focus-visible:outline-primary-default': !this.disabled,\n\n\t\t\t// Elevated style\n\t\t\t'shadow-md': this.elevated && !this.disabled,\n\t\t\t'hover:shadow-lg': this.elevated && !this.disabled,\n\n\t\t\t// Disabled state\n\t\t\t'opacity-50': this.disabled,\n\t\t\t'cursor-not-allowed': this.disabled\n\t\t}\n\n\t\treturn html`\n\t\t\t<button\n\t\t\t\tclass=${this.classMap(chipClasses)}\n\t\t\t\t@click=${this.handleClick}\n\t\t\t\t@keydown=${this.handleKeyDown}\n\t\t\t\t@mouseenter=${this.handleMouseEnter}\n\t\t\t\t@mouseleave=${this.handleMouseLeave}\n\t\t\t\t@mousedown=${this.handleMouseDown}\n\t\t\t\t@mouseup=${this.handleMouseUp}\n\t\t\t\t@focus=${this.handleFocus}\n\t\t\t\t@blur=${this.handleBlur}\n\t\t\t\t?disabled=${this.disabled}\n\t\t\t\taria-pressed=${this._selected ? 'true' : 'false'}\n\t\t\t\trole=\"checkbox\"\n\t\t\t\ttabindex=\"0\"\n\t\t\t>\n\t\t\t\t<!-- Icon container - conditionally shown using when directive -->\n\t\t\t\t${when(\n\t\t\t\t\tthis._selected || this.icon || this.iconSlotElements?.length > 0,\n\t\t\t\t\t() => html`\n\t\t\t\t\t\t<span class=\"inline-flex w-[18px] h-[18px] items-center justify-center shrink-0\">\n\t\t\t\t\t\t\t${this._selected ? html`\n\t\t\t\t\t\t\t\t<span class=\"material-symbols-outlined text-[18px]\">\n\t\t\t\t\t\t\t\t\tcheck\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t` : this.icon ? html`\n\t\t\t\t\t\t\t\t<span class=\"material-symbols-outlined text-[18px]\">\n\t\t\t\t\t\t\t\t\t${this.icon}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t` : html`\n\t\t\t\t\t\t\t\t<slot name=\"icon\"></slot>\n\t\t\t\t\t\t\t`}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t`\n\t\t\t\t)}\n\n\t\t\t\t<!-- Chip content -->\n\t\t\t\t<slot></slot>\n\n\t\t\t\t<!-- Remove button (if removable) -->\n\t\t\t\t${this.removable ? html`\n\t\t\t\t\t<button\n\t\t\t\t\t\tclass=\"ml-1 -mr-1 p-0.5 rounded-full hover:bg-surface-containerHighest transition-colors\"\n\t\t\t\t\t\t@click=${this.handleRemove}\n\t\t\t\t\t\taria-label=\"Remove filter\"\n\t\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<span class=\"material-symbols-outlined text-sm sm:text-[16px]\">\n\t\t\t\t\t\t\tclose\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</button>\n\t\t\t\t` : ''}\n\t\t\t</button>\n\t\t`\n\t}\n}\n\n// Register the element with both names for backward compatibility\n// Check if not already registered to prevent duplicate registration errors\nif (!customElements.get('schmancy-filter-chip')) {\n\tcustomElements.define('schmancy-filter-chip', SchmancyFilterChip)\n}\n\n// For backward compatibility, register 'schmancy-chip' with a subclass\n// to avoid duplicate constructor registration error\nif (!customElements.get('schmancy-chip')) {\n\tclass SchmancyChipCompat extends SchmancyFilterChip {}\n\tcustomElements.define('schmancy-chip', SchmancyChipCompat)\n}\n\n// Export alias for backward compatibility\nexport { SchmancyFilterChip as SchmancyChip }\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-chip': SchmancyFilterChip\n\t\t'schmancy-filter-chip': SchmancyFilterChip\n\t}\n}\n\nexport type FilterChipChangeEvent = { value: string; selected: boolean }\nexport type FilterChipRemoveEvent = { value: string }\n// Alias for backward compatibility\nexport type SchmancyChipChangeEvent = FilterChipChangeEvent","import { TailwindElement } from '@mixins/tailwind.mixin'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { classMap } from 'lit/directives/class-map.js'\nimport { BehaviorSubject, combineLatest } from 'rxjs'\nimport { takeUntil } from 'rxjs/operators'\n\n/**\n * Suggestion chip component - provides contextual recommendations to users\n *\n * IMPORTANT: Suggestion chips do NOT have a selected state. They are designed to\n * provide suggestions and recommendations that trigger actions when clicked.\n * Unlike filter chips, they cannot be toggled on/off.\n *\n * Pure Schmancy implementation with Tailwind CSS and RxJS state management\n */\n@customElement('schmancy-suggestion-chip')\nexport class SchmancySuggestionChip extends TailwindElement(css`\n\t:host {\n\t\tdisplay: inline-block;\n\t\toutline: none;\n\t\tmin-width:fit-content\n\t}\n\n\t:host([disabled]) {\n\t\tpointer-events: none;\n\t}\n\n\t.ripple {\n\t\tposition: absolute;\n\t\tborder-radius: 50%;\n\t\ttransform: scale(0);\n\t\tanimation: ripple 600ms linear;\n\t\tbackground-color: rgba(0, 0, 0, 0.08);\n\t\tpointer-events: none;\n\t}\n\n\t@keyframes ripple {\n\t\tto {\n\t\t\ttransform: scale(4);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t/* State layer for M3 hover/focus/pressed states */\n\t.state-layer {\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tborder-radius: inherit;\n\t\tpointer-events: none;\n\t\tbackground-color: currentColor;\n\t\topacity: 0;\n\t\ttransition: opacity 200ms ease;\n\t}\n\n\t:host(:not([disabled])) button:hover .state-layer {\n\t\topacity: 0.08;\n\t}\n\n\t:host(:not([disabled])) button:focus-visible .state-layer {\n\t\topacity: 0.1;\n\t}\n\n\t:host(:not([disabled])) button:active .state-layer {\n\t\topacity: 0.1;\n\t}\n`) {\n\t/** Value identifier for the chip */\n\t@property({ reflect: true }) value = ''\n\n\t/** Optional icon name (Material Symbols) */\n\t@property({ reflect: true }) icon = ''\n\n\t/** Optional href for navigation */\n\t@property({ reflect: true }) href = ''\n\n\t/** Target for navigation (e.g., '_blank') */\n\t@property({ reflect: true }) target = ''\n\n\t/** Disable the chip */\n\t@property({ type: Boolean, reflect: true }) disabled = false\n\n\t/** Elevated style variant - flat by default per M3 spec */\n\t@property({ type: Boolean, reflect: true }) elevated = false\n\n\t// RxJS state streams\n\tprivate hover$ = new BehaviorSubject<boolean>(false)\n\tprivate pressed$ = new BehaviorSubject<boolean>(false)\n\tprivate focused$ = new BehaviorSubject<boolean>(false)\n\n\t// UI state - only ripples needed for rendering\n\t@state() private ripples: Array<{ x: number; y: number; id: number }> = []\n\n\tprotected static shadowRootOptions = { ...LitElement.shadowRootOptions, delegatesFocus: true }\n\n\tprivate nextRippleId = 0\n\n\tconnectedCallback() {\n\t\tsuper.connectedCallback()\n\n\t\t// Stream management for future extensions\n\t\t// Currently, states are handled directly in event handlers\n\t\t// This pipeline can be extended for more complex state interactions\n\t\tcombineLatest([\n\t\t\tthis.hover$,\n\t\t\tthis.pressed$,\n\t\t\tthis.focused$\n\t\t]).pipe(\n\t\t\t// States are managed through event handlers directly\n\t\t\t// This pipeline is kept for potential future state combinations\n\t\t\ttakeUntil(this.disconnecting)\n\t\t).subscribe()\n\t}\n\n\tprivate handleClick = (e: MouseEvent) => {\n\t\tif (this.disabled) return\n\n\t\t// Add ripple effect\n\t\tconst button = this.shadowRoot?.querySelector('button')\n\t\tif (button) {\n\t\t\tconst rect = button.getBoundingClientRect()\n\t\t\tconst x = e.clientX - rect.left\n\t\t\tconst y = e.clientY - rect.top\n\t\t\tconst id = this.nextRippleId++\n\n\t\t\tthis.ripples = [...this.ripples, { x, y, id }]\n\n\t\t\t// Remove ripple after animation\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.ripples = this.ripples.filter(r => r.id !== id)\n\t\t\t}, 600)\n\t\t}\n\n\t\t// Navigate if href is provided\n\t\tif (this.href) {\n\t\t\tif (this.target === '_blank') {\n\t\t\t\twindow.open(this.href, '_blank')\n\t\t\t} else {\n\t\t\t\twindow.location.href = this.href\n\t\t\t}\n\t\t}\n\n\t\t// Dispatch action event\n\t\tthis.dispatchEvent(new CustomEvent('action', {\n\t\t\tdetail: { value: this.value },\n\t\t\tbubbles: true,\n\t\t\tcomposed: true\n\t\t}))\n\t}\n\n\tprivate handleKeyDown = (e: KeyboardEvent) => {\n\t\tif (this.disabled) return\n\n\t\tif (e.key === 'Enter' || e.key === ' ') {\n\t\t\te.preventDefault()\n\t\t\tthis.pressed$.next(true)\n\n\t\t\t// Simulate click\n\t\t\tconst clickEvent = new MouseEvent('click', {\n\t\t\t\tbubbles: true,\n\t\t\t\tcancelable: true,\n\t\t\t\tclientX: 0,\n\t\t\t\tclientY: 0\n\t\t\t})\n\t\t\tthis.handleClick(clickEvent)\n\n\t\t\tsetTimeout(() => this.pressed$.next(false), 100)\n\t\t}\n\t}\n\n\tprivate handleFocus = () => {\n\t\tthis.focused$.next(true)\n\t}\n\n\tprivate handleBlur = () => {\n\t\tthis.focused$.next(false)\n\t}\n\n\tprotected render(): unknown {\n\t\tconst hasIcon = !!this.icon;\n\n\t\tconst classes = {\n\t\t\t'relative': true,\n\t\t\t'inline-flex': true,\n\t\t\t'items-center': true,\n\t\t\t'gap-2': true,\n\t\t\t'h-8': true, // M3: 32px height\n\t\t\t'min-h-[32px]': true,\n\t\t\t'rounded-full': true,\n\t\t\t'cursor-pointer': !this.disabled,\n\t\t\t'transition-all': true,\n\t\t\t'duration-200': true,\n\t\t\t'select-none': true,\n\t\t\t'overflow-hidden': true,\n\t\t\t'border': true,\n\n\t\t\t// M3 Padding: 8px with icon, 16px without (leading), 16px trailing\n\t\t\t'pl-2': hasIcon, // 8px with icon\n\t\t\t'pl-4': !hasIcon, // 16px without icon\n\t\t\t'pr-4': true, // 16px trailing\n\n\t\t\t// M3 Colors for suggestion chips\n\t\t\t'bg-surface-containerLow': true,\n\t\t\t'text-surface-onVariant': true,\n\t\t\t'border-outline': true,\n\n\t\t\t// Suggestion chips are flat by default (no elevation per M3)\n\n\t\t\t// Focus state\n\t\t\t'focus-visible:outline': !this.disabled,\n\t\t\t'focus-visible:outline-2': !this.disabled,\n\t\t\t'focus-visible:outline-primary': !this.disabled,\n\t\t\t'focus-visible:outline-offset-2': !this.disabled,\n\n\t\t\t// Disabled\n\t\t\t'opacity-38': this.disabled, // M3 disabled opacity\n\t\t\t'cursor-not-allowed': this.disabled\n\t\t}\n\n\t\treturn html`\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=${classMap(classes)}\n\t\t\t\t?disabled=${this.disabled}\n\t\t\t\t@click=${this.handleClick}\n\t\t\t\t@keydown=${this.handleKeyDown}\n\t\t\t\t@mouseenter=${() => this.hover$.next(true)}\n\t\t\t\t@mouseleave=${() => this.hover$.next(false)}\n\t\t\t\t@mousedown=${() => this.pressed$.next(true)}\n\t\t\t\t@mouseup=${() => this.pressed$.next(false)}\n\t\t\t\t@focus=${this.handleFocus}\n\t\t\t\t@blur=${this.handleBlur}\n\t\t\t\ttabindex=${this.disabled ? '-1' : '0'}\n\t\t\t\trole=\"button\"\n\t\t\t\taria-disabled=${this.disabled}\n\t\t\t\taria-label=${this.value}\n\t\t\t>\n\t\t\t\t${this.icon ? html`\n\t\t\t\t\t<schmancy-icon class=\"text-[18px] shrink-0\">${this.icon}</schmancy-icon>\n\t\t\t\t` : ''}\n\t\t\t\t<span class=\"text-sm font-medium leading-5\">\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</span>\n\n\t\t\t\t<!-- Ripple effects -->\n\t\t\t\t${this.ripples.map(ripple => html`\n\t\t\t\t\t<span\n\t\t\t\t\t\tclass=\"ripple\"\n\t\t\t\t\t\tstyle=\"left: ${ripple.x}px; top: ${ripple.y}px;\"\n\t\t\t\t\t></span>\n\t\t\t\t`)}\n\n\t\t\t\t<!-- State layer for M3 hover/focus/pressed states -->\n\t\t\t\t<div class=\"state-layer\"></div>\n\t\t\t</button>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-suggestion-chip': SchmancySuggestionChip\n\t}\n}\n\nexport type SuggestionChipActionEvent = { value: string }"],"names":["SchmancyAssistChip","TailwindElement","css","constructor","super","arguments","this","value","icon","href","target","disabled","elevated","hover$","BehaviorSubject","pressed$","focused$","ripples","nextRippleId","handleClick","e","button","shadowRoot","querySelector","rect","getBoundingClientRect","x","clientX","left","y","clientY","top","id","setTimeout","filter","r","window","open","location","dispatchEvent","CustomEvent","detail","bubbles","composed","handleKeyDown","key","preventDefault","next","clickEvent","MouseEvent","cancelable","handleFocus","handleBlur","connectedCallback","combineLatest","pipe","takeUntil","disconnecting","subscribe","render","hasIcon","classes","relative","html","classMap","map","ripple","shadowRootOptions","LitElement","delegatesFocus","__decorateClass","property","reflect","prototype","type","Boolean","state","customElement","SchmancyChips","$LitElement","value$","values$","_value","_values","_multi","_valueSet","_valuesSet","wrap","hasAttribute","values","distinctUntilChanged","prev","curr","length","every","v","i","debounceTime","updateChipStates","mode","chips","forEach","chip","filterChip","selected","includes","stopPropagation","requestUpdate","_changedProperties","firstUpdated","containerClasses","flex","change","Array","String","queryAssignedElements","selector","flatten","SchmancyFilterChip","_selected","removable","handleRemove","handleMouseEnter","handleMouseLeave","handleMouseDown","handleMouseUp","internals","attachInternals","oldValue","form","chipClasses","border","when","iconSlotElements","formAssociated","_y","slot","customElements","get","define","SchmancyChipCompat","SchmancySuggestionChip"],"mappings":"mgBAYaA,QAAAA,mBAAN,cAAiCC,EAAAA,gBAAgBC,EAAAA;AAAAA;AAAAA;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AS,CAAEG,KAAMC,QAASH,QAAAA,MAlEfqE,+BAkEgCpE,UAAA,WAAA,CAAA,EAQ3BH,EAAA,CAAhBM,EAAAA,MAAAA,CAAAA,EA1EWiE,+BA0EKpE,UAAA,UAAA,CAAA,EA1ELoE,QAAAA,uBAANvE,EAAA,CADNO,EAAAA,cAAc,0BAAA,CAAA,EACFgE"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { T as
|
|
2
|
-
import { css as
|
|
3
|
-
import { property as n, state as E, customElement as
|
|
4
|
-
import { classMap as
|
|
5
|
-
import { BehaviorSubject as c, combineLatest as
|
|
6
|
-
import { takeUntil as
|
|
1
|
+
import { T as w } from "./tailwind.mixin-DmqqUtYJ.js";
|
|
2
|
+
import { css as $, html as r, LitElement as k } from "lit";
|
|
3
|
+
import { property as n, state as E, customElement as _, queryAssignedElements as S } from "lit/decorators.js";
|
|
4
|
+
import { classMap as O } from "lit/directives/class-map.js";
|
|
5
|
+
import { BehaviorSubject as c, combineLatest as g } from "rxjs";
|
|
6
|
+
import { takeUntil as x, distinctUntilChanged as C, debounceTime as B } from "rxjs/operators";
|
|
7
7
|
import "lit/directives/style-map.js";
|
|
8
|
-
import { $ as
|
|
8
|
+
import { $ as M } from "./litElement.mixin-BLL01IwU.js";
|
|
9
9
|
import { when as R } from "lit/directives/when.js";
|
|
10
10
|
var D = Object.defineProperty, j = Object.getOwnPropertyDescriptor, u = (t, e, s, o) => {
|
|
11
11
|
for (var l, i = o > 1 ? void 0 : o ? j(e, s) : e, a = t.length - 1; a >= 0; a--) (l = t[a]) && (i = (o ? l(e, s, i) : l(i)) || i);
|
|
12
12
|
return o && i && D(e, s, i), i;
|
|
13
13
|
};
|
|
14
|
-
let d = class extends
|
|
14
|
+
let d = class extends w($`
|
|
15
15
|
:host {
|
|
16
16
|
display: inline-block;
|
|
17
17
|
outline: none;
|
|
@@ -85,14 +85,14 @@ let d = class extends x(w`
|
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
connectedCallback() {
|
|
88
|
-
super.connectedCallback(),
|
|
88
|
+
super.connectedCallback(), g([this.hover$, this.pressed$, this.focused$]).pipe(x(this.disconnecting)).subscribe();
|
|
89
89
|
}
|
|
90
90
|
render() {
|
|
91
91
|
const t = !!this.icon, e = { relative: !0, "inline-flex": !0, "items-center": !0, "gap-2": !0, "h-8": !0, "min-h-[32px]": !0, "rounded-full": !0, "cursor-pointer": !this.disabled, "transition-all": !0, "duration-200": !0, "select-none": !0, "overflow-hidden": !0, "pl-2": t, "pl-4": !t, "pr-4": !0, "bg-surface-containerLow": !0, "text-surface-onVariant": !0, "shadow-sm": this.elevated && !this.disabled, "hover:shadow-md": this.elevated && !this.disabled, "focus-visible:outline": !this.disabled, "focus-visible:outline-2": !this.disabled, "focus-visible:outline-primary": !this.disabled, "focus-visible:outline-offset-2": !this.disabled, "opacity-38": this.disabled, "cursor-not-allowed": this.disabled };
|
|
92
92
|
return r`
|
|
93
93
|
<button
|
|
94
94
|
type="button"
|
|
95
|
-
class=${
|
|
95
|
+
class=${O(e)}
|
|
96
96
|
?disabled=${this.disabled}
|
|
97
97
|
@click=${this.handleClick}
|
|
98
98
|
@keydown=${this.handleKeyDown}
|
|
@@ -128,12 +128,21 @@ let d = class extends x(w`
|
|
|
128
128
|
`;
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
|
-
d.shadowRootOptions = { ...
|
|
132
|
-
var
|
|
133
|
-
for (var l, i = o > 1 ? void 0 : o ?
|
|
134
|
-
return o && i &&
|
|
131
|
+
d.shadowRootOptions = { ...k.shadowRootOptions, delegatesFocus: !0 }, u([n({ reflect: !0 })], d.prototype, "value", 2), u([n({ reflect: !0 })], d.prototype, "icon", 2), u([n({ reflect: !0 })], d.prototype, "href", 2), u([n({ reflect: !0 })], d.prototype, "target", 2), u([n({ type: Boolean, reflect: !0 })], d.prototype, "disabled", 2), u([n({ type: Boolean, reflect: !0 })], d.prototype, "elevated", 2), u([E()], d.prototype, "ripples", 2), d = u([_("schmancy-assist-chip")], d);
|
|
132
|
+
var F = Object.defineProperty, P = Object.getOwnPropertyDescriptor, m = (t, e, s, o) => {
|
|
133
|
+
for (var l, i = o > 1 ? void 0 : o ? P(e, s) : e, a = t.length - 1; a >= 0; a--) (l = t[a]) && (i = (o ? l(e, s, i) : l(i)) || i);
|
|
134
|
+
return o && i && F(e, s, i), i;
|
|
135
135
|
};
|
|
136
|
-
let v = class extends
|
|
136
|
+
let v = class extends M($`
|
|
137
|
+
|
|
138
|
+
.scrollbar-hide {
|
|
139
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
140
|
+
scrollbar-width: none; /* Firefox */
|
|
141
|
+
}
|
|
142
|
+
.scrollbar-hide::-webkit-scrollbar {
|
|
143
|
+
display: none; /* Chrome, Safari, and Opera */
|
|
144
|
+
}
|
|
145
|
+
`) {
|
|
137
146
|
constructor() {
|
|
138
147
|
super(...arguments), this.value$ = new c(""), this.values$ = new c([]), this._value = "", this._values = [], this._multi = !1, this._valueSet = !1, this._valuesSet = !1, this.wrap = !1;
|
|
139
148
|
}
|
|
@@ -159,7 +168,7 @@ let v = class extends O() {
|
|
|
159
168
|
this._value = t || "", this._valueSet = !0, this.value$.next(this._value);
|
|
160
169
|
}
|
|
161
170
|
connectedCallback() {
|
|
162
|
-
super.connectedCallback(), this.value$.next(this._value), this.values$.next(this._values),
|
|
171
|
+
super.connectedCallback(), this.value$.next(this._value), this.values$.next(this._values), g([this.value$.pipe(C()), this.values$.pipe(C((t, e) => t.length === e.length && t.every((s, o) => s === e[o])))]).pipe(B(0), x(this.disconnecting)).subscribe(([t, e]) => {
|
|
163
172
|
this.updateChipStates(this.mode, t, e);
|
|
164
173
|
});
|
|
165
174
|
}
|
|
@@ -192,12 +201,12 @@ let v = class extends O() {
|
|
|
192
201
|
`;
|
|
193
202
|
}
|
|
194
203
|
};
|
|
195
|
-
m([n({ type: Boolean, reflect: !0 })], v.prototype, "multi", 1), m([n({ type: Array, reflect: !0 })], v.prototype, "values", 1), m([n({ type: String, reflect: !0 })], v.prototype, "value", 1), m([S({ selector: "schmancy-chip, schmancy-filter-chip, schmancy-assist-chip, schmancy-input-chip, schmancy-suggestion-chip", flatten: !0 })], v.prototype, "chips", 2), m([n({ type: Boolean, reflect: !0 })], v.prototype, "wrap", 2), v = m([
|
|
196
|
-
var U = Object.defineProperty,
|
|
197
|
-
for (var l, i = o > 1 ? void 0 : o ?
|
|
204
|
+
m([n({ type: Boolean, reflect: !0 })], v.prototype, "multi", 1), m([n({ type: Array, reflect: !0 })], v.prototype, "values", 1), m([n({ type: String, reflect: !0 })], v.prototype, "value", 1), m([S({ selector: "schmancy-chip, schmancy-filter-chip, schmancy-assist-chip, schmancy-input-chip, schmancy-suggestion-chip", flatten: !0 })], v.prototype, "chips", 2), m([n({ type: Boolean, reflect: !0 })], v.prototype, "wrap", 2), v = m([_("schmancy-chips")], v);
|
|
205
|
+
var U = Object.defineProperty, I = Object.getOwnPropertyDescriptor, f = (t, e, s, o) => {
|
|
206
|
+
for (var l, i = o > 1 ? void 0 : o ? I(e, s) : e, a = t.length - 1; a >= 0; a--) (l = t[a]) && (i = (o ? l(e, s, i) : l(i)) || i);
|
|
198
207
|
return o && i && U(e, s, i), i;
|
|
199
208
|
};
|
|
200
|
-
const y = class y extends
|
|
209
|
+
const y = class y extends w($`
|
|
201
210
|
:host {
|
|
202
211
|
display: inline-block;
|
|
203
212
|
outline: none;
|
|
@@ -270,7 +279,7 @@ const y = class y extends x(w`
|
|
|
270
279
|
return this.internals?.form;
|
|
271
280
|
}
|
|
272
281
|
connectedCallback() {
|
|
273
|
-
super.connectedCallback(),
|
|
282
|
+
super.connectedCallback(), g([this.hover$, this.pressed$, this.focused$]).pipe(x(this.disconnecting)).subscribe();
|
|
274
283
|
}
|
|
275
284
|
render() {
|
|
276
285
|
const e = { "inline-flex": !0, "items-center": !0, "gap-2": !0, "rounded-full": !0, "h-8 px-4": !0, "cursor-pointer": !this.disabled, "transition-all": !0, "duration-200": !0, "select-none": !0, "text-sm": !0, "font-medium": !0, border: !0, relative: !0, "min-h-[32px]": !0, "bg-secondary-container": this._selected, "text-secondary-onContainer": this._selected, "border-secondary-container": this._selected, "bg-surface-container": !this._selected, "text-surface-on": !this._selected, "border-outline-variant": !this._selected, "hover:brightness-95": this._selected && !this.disabled, "hover:bg-surface-containerHigh": !this._selected && !this.disabled, "active:scale-95": !this.disabled, "focus-visible:outline": !this.disabled, "focus-visible:outline-2": !this.disabled, "focus-visible:outline-offset-2": !this.disabled, "focus-visible:outline-primary-default": !this.disabled, "shadow-md": this.elevated && !this.disabled, "hover:shadow-lg": this.elevated && !this.disabled, "opacity-50": this.disabled, "cursor-not-allowed": this.disabled };
|
|
@@ -327,18 +336,18 @@ const y = class y extends x(w`
|
|
|
327
336
|
`;
|
|
328
337
|
}
|
|
329
338
|
};
|
|
330
|
-
y.shadowRootOptions = { ...
|
|
339
|
+
y.shadowRootOptions = { ...k.shadowRootOptions, delegatesFocus: !0 }, y.formAssociated = !0;
|
|
331
340
|
let h = y;
|
|
332
341
|
if (f([n({ type: String, reflect: !0 })], h.prototype, "value", 2), f([n({ type: Boolean, reflect: !0 })], h.prototype, "selected", 1), f([n({ type: String, reflect: !0 })], h.prototype, "icon", 2), f([n({ type: Boolean, reflect: !0 })], h.prototype, "removable", 2), f([n({ type: Boolean, reflect: !0 })], h.prototype, "disabled", 2), f([n({ type: Boolean, reflect: !0 })], h.prototype, "elevated", 2), f([S({ slot: "icon" })], h.prototype, "iconSlotElements", 2), customElements.get("schmancy-filter-chip") || customElements.define("schmancy-filter-chip", h), !customElements.get("schmancy-chip")) {
|
|
333
342
|
class t extends h {
|
|
334
343
|
}
|
|
335
344
|
customElements.define("schmancy-chip", t);
|
|
336
345
|
}
|
|
337
|
-
var
|
|
338
|
-
for (var l, i = o > 1 ? void 0 : o ?
|
|
339
|
-
return o && i &&
|
|
346
|
+
var L = Object.defineProperty, T = Object.getOwnPropertyDescriptor, b = (t, e, s, o) => {
|
|
347
|
+
for (var l, i = o > 1 ? void 0 : o ? T(e, s) : e, a = t.length - 1; a >= 0; a--) (l = t[a]) && (i = (o ? l(e, s, i) : l(i)) || i);
|
|
348
|
+
return o && i && L(e, s, i), i;
|
|
340
349
|
};
|
|
341
|
-
let p = class extends
|
|
350
|
+
let p = class extends w($`
|
|
342
351
|
:host {
|
|
343
352
|
display: inline-block;
|
|
344
353
|
outline: none;
|
|
@@ -412,14 +421,14 @@ let p = class extends x(w`
|
|
|
412
421
|
};
|
|
413
422
|
}
|
|
414
423
|
connectedCallback() {
|
|
415
|
-
super.connectedCallback(),
|
|
424
|
+
super.connectedCallback(), g([this.hover$, this.pressed$, this.focused$]).pipe(x(this.disconnecting)).subscribe();
|
|
416
425
|
}
|
|
417
426
|
render() {
|
|
418
427
|
const t = !!this.icon, e = { relative: !0, "inline-flex": !0, "items-center": !0, "gap-2": !0, "h-8": !0, "min-h-[32px]": !0, "rounded-full": !0, "cursor-pointer": !this.disabled, "transition-all": !0, "duration-200": !0, "select-none": !0, "overflow-hidden": !0, border: !0, "pl-2": t, "pl-4": !t, "pr-4": !0, "bg-surface-containerLow": !0, "text-surface-onVariant": !0, "border-outline": !0, "focus-visible:outline": !this.disabled, "focus-visible:outline-2": !this.disabled, "focus-visible:outline-primary": !this.disabled, "focus-visible:outline-offset-2": !this.disabled, "opacity-38": this.disabled, "cursor-not-allowed": this.disabled };
|
|
419
428
|
return r`
|
|
420
429
|
<button
|
|
421
430
|
type="button"
|
|
422
|
-
class=${
|
|
431
|
+
class=${O(e)}
|
|
423
432
|
?disabled=${this.disabled}
|
|
424
433
|
@click=${this.handleClick}
|
|
425
434
|
@keydown=${this.handleKeyDown}
|
|
@@ -455,10 +464,10 @@ let p = class extends x(w`
|
|
|
455
464
|
`;
|
|
456
465
|
}
|
|
457
466
|
};
|
|
458
|
-
p.shadowRootOptions = { ...
|
|
467
|
+
p.shadowRootOptions = { ...k.shadowRootOptions, delegatesFocus: !0 }, b([n({ reflect: !0 })], p.prototype, "value", 2), b([n({ reflect: !0 })], p.prototype, "icon", 2), b([n({ reflect: !0 })], p.prototype, "href", 2), b([n({ reflect: !0 })], p.prototype, "target", 2), b([n({ type: Boolean, reflect: !0 })], p.prototype, "disabled", 2), b([n({ type: Boolean, reflect: !0 })], p.prototype, "elevated", 2), b([E()], p.prototype, "ripples", 2), p = b([_("schmancy-suggestion-chip")], p);
|
|
459
468
|
export {
|
|
460
469
|
d as S,
|
|
461
470
|
h as a,
|
|
462
471
|
p as b
|
|
463
472
|
};
|
|
464
|
-
//# sourceMappingURL=suggestion-chip-
|
|
473
|
+
//# sourceMappingURL=suggestion-chip-D4Y6ptgj.js.map
|