@francofantomius/material-components 1.0.2 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/README.md +41 -9
  3. package/custom-elements.json +19060 -9017
  4. package/dist/chunks/account-menu-Dau0UHTl.js +1290 -0
  5. package/dist/chunks/account-menu-Dau0UHTl.js.map +1 -0
  6. package/dist/chunks/app-drawer-Du1ePzxZ.js +903 -0
  7. package/dist/chunks/app-drawer-Du1ePzxZ.js.map +1 -0
  8. package/dist/chunks/bottom-sheet-q79BBYAj.js +402 -0
  9. package/dist/chunks/bottom-sheet-q79BBYAj.js.map +1 -0
  10. package/dist/chunks/{button-B4TSZ7Sl.js → button-D2vn7kJ8.js} +9 -8
  11. package/dist/chunks/button-D2vn7kJ8.js.map +1 -0
  12. package/dist/chunks/button-group-CNqvJx1n.js +143 -0
  13. package/dist/chunks/button-group-CNqvJx1n.js.map +1 -0
  14. package/dist/chunks/carousel-item-BG6kjjjk.js +371 -0
  15. package/dist/chunks/carousel-item-BG6kjjjk.js.map +1 -0
  16. package/dist/chunks/date-picker-DJeHi4w-.js +777 -0
  17. package/dist/chunks/date-picker-DJeHi4w-.js.map +1 -0
  18. package/dist/chunks/fab-menu.css-3pu930sZ.js +320 -0
  19. package/dist/chunks/fab-menu.css-3pu930sZ.js.map +1 -0
  20. package/dist/chunks/{icon-button-BdSc7eot.js → icon-button-BQz73GLa.js} +2 -2
  21. package/dist/chunks/icon-button-BQz73GLa.js.map +1 -0
  22. package/dist/chunks/loading-indicator-CvWnZr9o.js +193 -0
  23. package/dist/chunks/loading-indicator-CvWnZr9o.js.map +1 -0
  24. package/dist/chunks/menu-item-BBSp5Cqc.js +390 -0
  25. package/dist/chunks/menu-item-BBSp5Cqc.js.map +1 -0
  26. package/dist/chunks/navigation-bar-item-C9DfOEzg.js +397 -0
  27. package/dist/chunks/navigation-bar-item-C9DfOEzg.js.map +1 -0
  28. package/dist/chunks/navigation-rail-item-6pdhNHJK.js +357 -0
  29. package/dist/chunks/navigation-rail-item-6pdhNHJK.js.map +1 -0
  30. package/dist/chunks/{search-bar-TXnqJ-gd.js → search-bar-fUD0qU2P.js} +22 -4
  31. package/dist/chunks/search-bar-fUD0qU2P.js.map +1 -0
  32. package/dist/chunks/segmented-button-B0BvGSQ7.js +265 -0
  33. package/dist/chunks/segmented-button-B0BvGSQ7.js.map +1 -0
  34. package/dist/chunks/side-sheet-S2w081AK.js +360 -0
  35. package/dist/chunks/side-sheet-S2w081AK.js.map +1 -0
  36. package/dist/chunks/slider-D-mnO8yQ.js +450 -0
  37. package/dist/chunks/slider-D-mnO8yQ.js.map +1 -0
  38. package/dist/chunks/split-button-DUfjukQY.js +450 -0
  39. package/dist/chunks/split-button-DUfjukQY.js.map +1 -0
  40. package/dist/chunks/{table-aRTYzDyE.js → table-CqHnneAj.js} +2 -2
  41. package/dist/chunks/{table-aRTYzDyE.js.map → table-CqHnneAj.js.map} +1 -1
  42. package/dist/chunks/time-picker-CZnb2sWz.js +785 -0
  43. package/dist/chunks/time-picker-CZnb2sWz.js.map +1 -0
  44. package/dist/chunks/toolbar-DXVQbQKJ.js +271 -0
  45. package/dist/chunks/toolbar-DXVQbQKJ.js.map +1 -0
  46. package/dist/chunks/tooltip-CE7JMHMu.js +398 -0
  47. package/dist/chunks/tooltip-CE7JMHMu.js.map +1 -0
  48. package/dist/components/account-menu/account-menu.js +8 -0
  49. package/dist/components/app-drawer/app-drawer.js +9 -0
  50. package/dist/components/bottom-sheet/bottom-sheet.css.d.ts +2 -0
  51. package/dist/components/bottom-sheet/bottom-sheet.css.d.ts.map +1 -0
  52. package/dist/components/bottom-sheet/bottom-sheet.d.ts +69 -0
  53. package/dist/components/bottom-sheet/bottom-sheet.d.ts.map +1 -0
  54. package/dist/components/bottom-sheet/bottom-sheet.js +4 -0
  55. package/dist/components/button/button.css.d.ts.map +1 -1
  56. package/dist/components/button/button.js +1 -1
  57. package/dist/components/button-group/button-group.css.d.ts +2 -0
  58. package/dist/components/button-group/button-group.css.d.ts.map +1 -0
  59. package/dist/components/button-group/button-group.d.ts +28 -0
  60. package/dist/components/button-group/button-group.d.ts.map +1 -0
  61. package/dist/components/button-group/button-group.js +4 -0
  62. package/dist/components/carousel/carousel-item.d.ts +33 -0
  63. package/dist/components/carousel/carousel-item.d.ts.map +1 -0
  64. package/dist/components/carousel/carousel-item.js +4 -0
  65. package/dist/components/carousel/carousel.css.d.ts +3 -0
  66. package/dist/components/carousel/carousel.css.d.ts.map +1 -0
  67. package/dist/components/carousel/carousel.d.ts +81 -0
  68. package/dist/components/carousel/carousel.d.ts.map +1 -0
  69. package/dist/components/carousel/carousel.js +284 -0
  70. package/dist/components/carousel/carousel.js.map +1 -0
  71. package/dist/components/date-picker/date-picker.css.d.ts +2 -0
  72. package/dist/components/date-picker/date-picker.css.d.ts.map +1 -0
  73. package/dist/components/date-picker/date-picker.d.ts +59 -0
  74. package/dist/components/date-picker/date-picker.d.ts.map +1 -0
  75. package/dist/components/date-picker/date-picker.js +4 -0
  76. package/dist/components/fab-menu/fab-menu-item.d.ts +35 -0
  77. package/dist/components/fab-menu/fab-menu-item.d.ts.map +1 -0
  78. package/dist/components/fab-menu/fab-menu-item.js +93 -0
  79. package/dist/components/fab-menu/fab-menu-item.js.map +1 -0
  80. package/dist/components/fab-menu/fab-menu.css.d.ts +3 -0
  81. package/dist/components/fab-menu/fab-menu.css.d.ts.map +1 -0
  82. package/dist/components/fab-menu/fab-menu.d.ts +72 -0
  83. package/dist/components/fab-menu/fab-menu.d.ts.map +1 -0
  84. package/dist/components/fab-menu/fab-menu.js +148 -0
  85. package/dist/components/fab-menu/fab-menu.js.map +1 -0
  86. package/dist/components/icon-button/icon-button.js +1 -1
  87. package/dist/components/loading-indicator/loading-indicator.css.d.ts +2 -0
  88. package/dist/components/loading-indicator/loading-indicator.css.d.ts.map +1 -0
  89. package/dist/components/loading-indicator/loading-indicator.d.ts +48 -0
  90. package/dist/components/loading-indicator/loading-indicator.d.ts.map +1 -0
  91. package/dist/components/loading-indicator/loading-indicator.js +4 -0
  92. package/dist/components/menu/menu-item.d.ts +41 -0
  93. package/dist/components/menu/menu-item.d.ts.map +1 -0
  94. package/dist/components/menu/menu-item.js +4 -0
  95. package/dist/components/menu/menu.css.d.ts +3 -0
  96. package/dist/components/menu/menu.css.d.ts.map +1 -0
  97. package/dist/components/menu/menu.d.ts +91 -0
  98. package/dist/components/menu/menu.d.ts.map +1 -0
  99. package/dist/components/menu/menu.js +205 -0
  100. package/dist/components/menu/menu.js.map +1 -0
  101. package/dist/components/navigation-bar/navigation-bar-item.d.ts +49 -0
  102. package/dist/components/navigation-bar/navigation-bar-item.d.ts.map +1 -0
  103. package/dist/components/navigation-bar/navigation-bar-item.js +5 -0
  104. package/dist/components/navigation-bar/navigation-bar.css.d.ts +3 -0
  105. package/dist/components/navigation-bar/navigation-bar.css.d.ts.map +1 -0
  106. package/dist/components/navigation-bar/navigation-bar.d.ts +50 -0
  107. package/dist/components/navigation-bar/navigation-bar.d.ts.map +1 -0
  108. package/dist/components/navigation-bar/navigation-bar.js +150 -0
  109. package/dist/components/navigation-bar/navigation-bar.js.map +1 -0
  110. package/dist/components/navigation-rail/navigation-rail-item.d.ts +36 -0
  111. package/dist/components/navigation-rail/navigation-rail-item.d.ts.map +1 -0
  112. package/dist/components/navigation-rail/navigation-rail-item.js +5 -0
  113. package/dist/components/navigation-rail/navigation-rail.css.d.ts +3 -0
  114. package/dist/components/navigation-rail/navigation-rail.css.d.ts.map +1 -0
  115. package/dist/components/navigation-rail/navigation-rail.d.ts +43 -0
  116. package/dist/components/navigation-rail/navigation-rail.d.ts.map +1 -0
  117. package/dist/components/navigation-rail/navigation-rail.js +121 -0
  118. package/dist/components/navigation-rail/navigation-rail.js.map +1 -0
  119. package/dist/components/search-bar/search-bar.css.d.ts.map +1 -1
  120. package/dist/components/search-bar/search-bar.js +1 -1
  121. package/dist/components/segmented-button/segmented-button.css.d.ts +3 -0
  122. package/dist/components/segmented-button/segmented-button.css.d.ts.map +1 -0
  123. package/dist/components/segmented-button/segmented-button.d.ts +40 -0
  124. package/dist/components/segmented-button/segmented-button.d.ts.map +1 -0
  125. package/dist/components/segmented-button/segmented-button.js +5 -0
  126. package/dist/components/side-sheet/side-sheet.css.d.ts +2 -0
  127. package/dist/components/side-sheet/side-sheet.css.d.ts.map +1 -0
  128. package/dist/components/side-sheet/side-sheet.d.ts +57 -0
  129. package/dist/components/side-sheet/side-sheet.d.ts.map +1 -0
  130. package/dist/components/side-sheet/side-sheet.js +4 -0
  131. package/dist/components/slider/slider.css.d.ts +2 -0
  132. package/dist/components/slider/slider.css.d.ts.map +1 -0
  133. package/dist/components/slider/slider.d.ts +51 -0
  134. package/dist/components/slider/slider.d.ts.map +1 -0
  135. package/dist/components/slider/slider.js +4 -0
  136. package/dist/components/split-button/split-button.css.d.ts +2 -0
  137. package/dist/components/split-button/split-button.css.d.ts.map +1 -0
  138. package/dist/components/split-button/split-button.d.ts +89 -0
  139. package/dist/components/split-button/split-button.d.ts.map +1 -0
  140. package/dist/components/split-button/split-button.js +4 -0
  141. package/dist/components/table/table.js +1 -1
  142. package/dist/components/time-picker/time-picker.css.d.ts +2 -0
  143. package/dist/components/time-picker/time-picker.css.d.ts.map +1 -0
  144. package/dist/components/time-picker/time-picker.d.ts +87 -0
  145. package/dist/components/time-picker/time-picker.d.ts.map +1 -0
  146. package/dist/components/time-picker/time-picker.js +4 -0
  147. package/dist/components/toolbar/toolbar.css.d.ts +2 -0
  148. package/dist/components/toolbar/toolbar.css.d.ts.map +1 -0
  149. package/dist/components/toolbar/toolbar.d.ts +53 -0
  150. package/dist/components/toolbar/toolbar.d.ts.map +1 -0
  151. package/dist/components/toolbar/toolbar.js +4 -0
  152. package/dist/components/tooltip/tooltip.css.d.ts +2 -0
  153. package/dist/components/tooltip/tooltip.css.d.ts.map +1 -0
  154. package/dist/components/tooltip/tooltip.d.ts +89 -0
  155. package/dist/components/tooltip/tooltip.d.ts.map +1 -0
  156. package/dist/components/tooltip/tooltip.js +4 -0
  157. package/dist/index.d.ts +21 -0
  158. package/dist/index.d.ts.map +1 -1
  159. package/dist/index.js +148 -2263
  160. package/dist/tokens/index.js +4 -2
  161. package/dist/tokens/index.js.map +1 -1
  162. package/dist/tokens/theme.css.d.ts.map +1 -1
  163. package/llms.txt +919 -0
  164. package/package.json +97 -1
  165. package/dist/chunks/button-B4TSZ7Sl.js.map +0 -1
  166. package/dist/chunks/icon-button-BdSc7eot.js.map +0 -1
  167. package/dist/chunks/search-bar-TXnqJ-gd.js.map +0 -1
  168. package/dist/index.js.map +0 -1
@@ -0,0 +1,357 @@
1
+ import { n as l, t as e } from "./decorate-DXuynaiA.js";
2
+ import "./ripple-squbKHhj.js";
3
+ import "./focus-ring-CuiJuM-y.js";
4
+ import "./icon-DrNqcNEL.js";
5
+ import { css as c, html as r, nothing as o } from "lit";
6
+ import { customElement as h, property as t } from "lit/decorators.js";
7
+ var w = c`
8
+ :host {
9
+ display: inline-flex;
10
+ flex-direction: column;
11
+ width: var(--md-navigation-rail-width, 80px);
12
+ min-width: var(--md-navigation-rail-width, 80px);
13
+ height: var(--md-navigation-rail-height, 100%);
14
+ min-height: 100%;
15
+ box-sizing: border-box;
16
+ background-color: var(--md-navigation-rail-container-color, var(--md-sys-color-surface, #FEF7FF));
17
+ color: var(--md-navigation-rail-on-container-color, var(--md-sys-color-on-surface, #1D1B20));
18
+ border-right: var(--md-navigation-rail-border, 1px solid var(--md-sys-color-outline-variant, #CAC4D0));
19
+ font-family: var(--md-sys-typescale-font-family, inherit);
20
+ user-select: none;
21
+ position: relative;
22
+ }
23
+
24
+ .rail {
25
+ display: flex;
26
+ flex-direction: column;
27
+ align-items: center;
28
+ width: 100%;
29
+ height: 100%;
30
+ padding: 12px 0;
31
+ box-sizing: border-box;
32
+ overflow-y: auto;
33
+ overflow-x: hidden;
34
+ }
35
+
36
+ .rail::-webkit-scrollbar {
37
+ width: 4px;
38
+ }
39
+
40
+ .rail::-webkit-scrollbar-thumb {
41
+ background-color: var(--md-sys-color-outline-variant, #CAC4D0);
42
+ border-radius: 4px;
43
+ }
44
+
45
+ .header {
46
+ display: flex;
47
+ flex-direction: column;
48
+ align-items: center;
49
+ gap: 12px;
50
+ margin-bottom: 12px;
51
+ width: 100%;
52
+ flex-shrink: 0;
53
+ }
54
+
55
+ .destinations {
56
+ display: flex;
57
+ flex-direction: column;
58
+ align-items: center;
59
+ gap: 12px;
60
+ width: 100%;
61
+ flex: 1;
62
+ }
63
+
64
+ /* Alignment Variants */
65
+ :host([alignment="top"]) .destinations {
66
+ justify-content: flex-start;
67
+ }
68
+
69
+ :host([alignment="center"]) .destinations {
70
+ justify-content: center;
71
+ }
72
+
73
+ :host([alignment="bottom"]) .destinations {
74
+ justify-content: flex-end;
75
+ }
76
+
77
+ .footer {
78
+ display: flex;
79
+ flex-direction: column;
80
+ align-items: center;
81
+ gap: 8px;
82
+ margin-top: auto;
83
+ width: 100%;
84
+ padding-top: 12px;
85
+ flex-shrink: 0;
86
+ }
87
+ `, m = c`
88
+ :host {
89
+ display: block;
90
+ width: 100%;
91
+ box-sizing: border-box;
92
+ outline: none;
93
+ -webkit-tap-highlight-color: transparent;
94
+ }
95
+
96
+ :host([disabled]) {
97
+ pointer-events: none;
98
+ opacity: 0.38;
99
+ }
100
+
101
+ .item {
102
+ position: relative;
103
+ display: flex;
104
+ flex-direction: column;
105
+ align-items: center;
106
+ justify-content: center;
107
+ width: 100%;
108
+ min-height: 56px;
109
+ padding: 4px 0 8px 0;
110
+ box-sizing: border-box;
111
+ font-family: var(--md-sys-typescale-font-family, inherit);
112
+ color: var(--md-sys-color-on-surface-variant, #49454F);
113
+ text-decoration: none;
114
+ cursor: pointer;
115
+ outline: none;
116
+ border-radius: 12px;
117
+ transition: color 150ms cubic-bezier(0.2, 0, 0, 1);
118
+ }
119
+
120
+ .indicator-wrapper {
121
+ position: relative;
122
+ display: flex;
123
+ align-items: center;
124
+ justify-content: center;
125
+ }
126
+
127
+ .active-indicator {
128
+ position: relative;
129
+ display: inline-flex;
130
+ align-items: center;
131
+ justify-content: center;
132
+ width: var(--md-navigation-rail-indicator-width, 56px);
133
+ height: var(--md-navigation-rail-indicator-height, 32px);
134
+ border-radius: var(--md-navigation-rail-indicator-shape, 16px);
135
+ background-color: transparent;
136
+ color: var(--md-sys-color-on-surface-variant, #49454F);
137
+ transition: background-color 200ms cubic-bezier(0.2, 0, 0, 1),
138
+ color 200ms cubic-bezier(0.2, 0, 0, 1);
139
+ overflow: hidden;
140
+ }
141
+
142
+ .item:hover .active-indicator {
143
+ background-color: var(--md-sys-color-surface-container-high, #ECE6F0);
144
+ }
145
+
146
+ /* Active / Selected State */
147
+ :host([active]) .active-indicator,
148
+ :host([selected]) .active-indicator {
149
+ background-color: var(--md-navigation-rail-active-indicator-color, var(--md-sys-color-secondary-container, #E8DEF8));
150
+ color: var(--md-navigation-rail-active-icon-color, var(--md-sys-color-on-secondary-container, #1D192B));
151
+ }
152
+
153
+ :host([active]) .item:hover .active-indicator,
154
+ :host([selected]) .item:hover .active-indicator {
155
+ background-color: var(--md-navigation-rail-active-indicator-hover-color, var(--md-sys-color-secondary-container, #E8DEF8));
156
+ }
157
+
158
+ .icon-slot {
159
+ display: inline-flex;
160
+ align-items: center;
161
+ justify-content: center;
162
+ color: inherit;
163
+ font-size: 24px;
164
+ line-height: 1;
165
+ z-index: 1;
166
+ }
167
+
168
+ .label-container {
169
+ display: flex;
170
+ justify-content: center;
171
+ align-items: center;
172
+ width: 100%;
173
+ margin-top: 4px;
174
+ box-sizing: border-box;
175
+ }
176
+
177
+ .label {
178
+ font-size: var(--md-sys-typescale-label-medium-size, 12px);
179
+ line-height: var(--md-sys-typescale-label-medium-line-height, 16px);
180
+ font-weight: 500;
181
+ letter-spacing: 0.5px;
182
+ text-align: center;
183
+ max-width: 72px;
184
+ overflow: hidden;
185
+ text-overflow: ellipsis;
186
+ white-space: nowrap;
187
+ color: var(--md-navigation-rail-label-color, var(--md-sys-color-on-surface-variant, #49454F));
188
+ transition: color 150ms cubic-bezier(0.2, 0, 0, 1),
189
+ font-weight 150ms cubic-bezier(0.2, 0, 0, 1);
190
+ }
191
+
192
+ :host([active]) .label,
193
+ :host([selected]) .label {
194
+ color: var(--md-navigation-rail-active-label-color, var(--md-sys-color-on-surface, #1D1B20));
195
+ font-weight: 700;
196
+ }
197
+
198
+ :host([hide-label]) .label-container,
199
+ :host([hide-labels]) .label-container {
200
+ display: none;
201
+ }
202
+
203
+ /* Badge styling */
204
+ .badge-slot {
205
+ position: absolute;
206
+ top: -2px;
207
+ right: 4px;
208
+ z-index: 2;
209
+ pointer-events: none;
210
+ }
211
+
212
+ .badge {
213
+ display: inline-flex;
214
+ align-items: center;
215
+ justify-content: center;
216
+ min-width: 16px;
217
+ height: 16px;
218
+ padding: 0 4px;
219
+ border-radius: 8px;
220
+ font-size: 11px;
221
+ font-weight: 600;
222
+ line-height: 1;
223
+ background-color: var(--md-sys-color-error, #B3261E);
224
+ color: var(--md-sys-color-on-error, #FFFFFF);
225
+ box-sizing: border-box;
226
+ }
227
+
228
+ .badge.dot {
229
+ min-width: 6px;
230
+ width: 6px;
231
+ height: 6px;
232
+ padding: 0;
233
+ border-radius: 50%;
234
+ }
235
+
236
+ :host([active]) .badge,
237
+ :host([selected]) .badge {
238
+ background-color: var(--md-sys-color-error, #B3261E);
239
+ color: var(--md-sys-color-on-error, #FFFFFF);
240
+ }
241
+ `, i = class extends l {
242
+ constructor(...a) {
243
+ super(...a), this.icon = "", this.activeIcon = "", this.label = "", this.headline = "", this.badge = "", this.badgeDot = !1, this.active = !1, this.selected = !1, this.disabled = !1, this.hideLabel = !1, this.href = "", this.target = "", this.value = "", this.handleClick = (n) => {
244
+ if (this.disabled) {
245
+ n.preventDefault(), n.stopImmediatePropagation();
246
+ return;
247
+ }
248
+ this.emitEvent("item-click", {
249
+ label: this.label || this.headline,
250
+ icon: this.icon,
251
+ active: this.active,
252
+ value: this.value,
253
+ item: this
254
+ });
255
+ };
256
+ }
257
+ static {
258
+ this.styles = [l.styles, m];
259
+ }
260
+ willUpdate(a) {
261
+ super.willUpdate(a), a.has("active") && !a.has("selected") ? this.selected = this.active : a.has("selected") && !a.has("active") ? this.active = this.selected : a.has("active") && a.has("selected") && (this.active ? this.selected = !0 : this.selected && (this.active = !0));
262
+ }
263
+ render() {
264
+ const a = this.label || this.headline, n = this.active && this.activeIcon ? this.activeIcon : this.icon, v = () => this.badgeDot ? r`<span class="badge dot"></span>` : this.badge ? r`<span class="badge">${this.badge}</span>` : o, s = r`
265
+ <div class="indicator-wrapper">
266
+ <div class="active-indicator">
267
+ <md-ripple ?disabled=${this.disabled}></md-ripple>
268
+ <md-focus-ring></md-focus-ring>
269
+ <span class="icon-slot">
270
+ <slot name="icon">
271
+ ${n ? r`<md-icon name=${n}></md-icon>` : o}
272
+ </slot>
273
+ </span>
274
+ </div>
275
+
276
+ <div class="badge-slot">
277
+ <slot name="badge">
278
+ ${v()}
279
+ </slot>
280
+ </div>
281
+ </div>
282
+
283
+ <div class="label-container">
284
+ <slot>
285
+ ${a ? r`<span class="label">${a}</span>` : o}
286
+ </slot>
287
+ </div>
288
+ `;
289
+ return this.href ? r`
290
+ <a
291
+ class="item"
292
+ href=${this.disabled ? o : this.href}
293
+ target=${this.target || o}
294
+ aria-disabled=${this.disabled ? "true" : o}
295
+ aria-current=${this.active ? "page" : o}
296
+ tabindex=${this.disabled ? "-1" : "0"}
297
+ @click=${this.handleClick}
298
+ >
299
+ ${s}
300
+ </a>
301
+ ` : r`
302
+ <div
303
+ class="item"
304
+ role="button"
305
+ tabindex=${this.disabled ? "-1" : "0"}
306
+ aria-disabled=${this.disabled ? "true" : o}
307
+ aria-pressed=${this.active ? "true" : "false"}
308
+ @click=${this.handleClick}
309
+ >
310
+ ${s}
311
+ </div>
312
+ `;
313
+ }
314
+ };
315
+ e([t({ type: String })], i.prototype, "icon", void 0);
316
+ e([t({
317
+ type: String,
318
+ attribute: "active-icon"
319
+ })], i.prototype, "activeIcon", void 0);
320
+ e([t({ type: String })], i.prototype, "label", void 0);
321
+ e([t({ type: String })], i.prototype, "headline", void 0);
322
+ e([t({ type: String })], i.prototype, "badge", void 0);
323
+ e([t({
324
+ type: Boolean,
325
+ attribute: "badge-dot"
326
+ })], i.prototype, "badgeDot", void 0);
327
+ e([t({
328
+ type: Boolean,
329
+ reflect: !0
330
+ })], i.prototype, "active", void 0);
331
+ e([t({
332
+ type: Boolean,
333
+ reflect: !0
334
+ })], i.prototype, "selected", void 0);
335
+ e([t({
336
+ type: Boolean,
337
+ reflect: !0
338
+ })], i.prototype, "disabled", void 0);
339
+ e([t({
340
+ type: Boolean,
341
+ reflect: !0,
342
+ attribute: "hide-label"
343
+ })], i.prototype, "hideLabel", void 0);
344
+ e([t({ type: String })], i.prototype, "href", void 0);
345
+ e([t({ type: String })], i.prototype, "target", void 0);
346
+ e([t({ type: String })], i.prototype, "value", void 0);
347
+ i = e([h("md-navigation-rail-item")], i);
348
+ var d = class extends i {
349
+ };
350
+ d = e([h("md-nav-rail-item")], d);
351
+ export {
352
+ i as n,
353
+ w as r,
354
+ d as t
355
+ };
356
+
357
+ //# sourceMappingURL=navigation-rail-item-6pdhNHJK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation-rail-item-6pdhNHJK.js","names":[],"sources":["../../src/components/navigation-rail/navigation-rail.css.ts","../../src/components/navigation-rail/navigation-rail-item.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const navigationRailStyles = css`\n :host {\n display: inline-flex;\n flex-direction: column;\n width: var(--md-navigation-rail-width, 80px);\n min-width: var(--md-navigation-rail-width, 80px);\n height: var(--md-navigation-rail-height, 100%);\n min-height: 100%;\n box-sizing: border-box;\n background-color: var(--md-navigation-rail-container-color, var(--md-sys-color-surface, #FEF7FF));\n color: var(--md-navigation-rail-on-container-color, var(--md-sys-color-on-surface, #1D1B20));\n border-right: var(--md-navigation-rail-border, 1px solid var(--md-sys-color-outline-variant, #CAC4D0));\n font-family: var(--md-sys-typescale-font-family, inherit);\n user-select: none;\n position: relative;\n }\n\n .rail {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n height: 100%;\n padding: 12px 0;\n box-sizing: border-box;\n overflow-y: auto;\n overflow-x: hidden;\n }\n\n .rail::-webkit-scrollbar {\n width: 4px;\n }\n\n .rail::-webkit-scrollbar-thumb {\n background-color: var(--md-sys-color-outline-variant, #CAC4D0);\n border-radius: 4px;\n }\n\n .header {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 12px;\n margin-bottom: 12px;\n width: 100%;\n flex-shrink: 0;\n }\n\n .destinations {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 12px;\n width: 100%;\n flex: 1;\n }\n\n /* Alignment Variants */\n :host([alignment=\"top\"]) .destinations {\n justify-content: flex-start;\n }\n\n :host([alignment=\"center\"]) .destinations {\n justify-content: center;\n }\n\n :host([alignment=\"bottom\"]) .destinations {\n justify-content: flex-end;\n }\n\n .footer {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n margin-top: auto;\n width: 100%;\n padding-top: 12px;\n flex-shrink: 0;\n }\n`;\n\nexport const navigationRailItemStyles = css`\n :host {\n display: block;\n width: 100%;\n box-sizing: border-box;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n }\n\n :host([disabled]) {\n pointer-events: none;\n opacity: 0.38;\n }\n\n .item {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n min-height: 56px;\n padding: 4px 0 8px 0;\n box-sizing: border-box;\n font-family: var(--md-sys-typescale-font-family, inherit);\n color: var(--md-sys-color-on-surface-variant, #49454F);\n text-decoration: none;\n cursor: pointer;\n outline: none;\n border-radius: 12px;\n transition: color 150ms cubic-bezier(0.2, 0, 0, 1);\n }\n\n .indicator-wrapper {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .active-indicator {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--md-navigation-rail-indicator-width, 56px);\n height: var(--md-navigation-rail-indicator-height, 32px);\n border-radius: var(--md-navigation-rail-indicator-shape, 16px);\n background-color: transparent;\n color: var(--md-sys-color-on-surface-variant, #49454F);\n transition: background-color 200ms cubic-bezier(0.2, 0, 0, 1),\n color 200ms cubic-bezier(0.2, 0, 0, 1);\n overflow: hidden;\n }\n\n .item:hover .active-indicator {\n background-color: var(--md-sys-color-surface-container-high, #ECE6F0);\n }\n\n /* Active / Selected State */\n :host([active]) .active-indicator,\n :host([selected]) .active-indicator {\n background-color: var(--md-navigation-rail-active-indicator-color, var(--md-sys-color-secondary-container, #E8DEF8));\n color: var(--md-navigation-rail-active-icon-color, var(--md-sys-color-on-secondary-container, #1D192B));\n }\n\n :host([active]) .item:hover .active-indicator,\n :host([selected]) .item:hover .active-indicator {\n background-color: var(--md-navigation-rail-active-indicator-hover-color, var(--md-sys-color-secondary-container, #E8DEF8));\n }\n\n .icon-slot {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n color: inherit;\n font-size: 24px;\n line-height: 1;\n z-index: 1;\n }\n\n .label-container {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n margin-top: 4px;\n box-sizing: border-box;\n }\n\n .label {\n font-size: var(--md-sys-typescale-label-medium-size, 12px);\n line-height: var(--md-sys-typescale-label-medium-line-height, 16px);\n font-weight: 500;\n letter-spacing: 0.5px;\n text-align: center;\n max-width: 72px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--md-navigation-rail-label-color, var(--md-sys-color-on-surface-variant, #49454F));\n transition: color 150ms cubic-bezier(0.2, 0, 0, 1),\n font-weight 150ms cubic-bezier(0.2, 0, 0, 1);\n }\n\n :host([active]) .label,\n :host([selected]) .label {\n color: var(--md-navigation-rail-active-label-color, var(--md-sys-color-on-surface, #1D1B20));\n font-weight: 700;\n }\n\n :host([hide-label]) .label-container,\n :host([hide-labels]) .label-container {\n display: none;\n }\n\n /* Badge styling */\n .badge-slot {\n position: absolute;\n top: -2px;\n right: 4px;\n z-index: 2;\n pointer-events: none;\n }\n\n .badge {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 16px;\n height: 16px;\n padding: 0 4px;\n border-radius: 8px;\n font-size: 11px;\n font-weight: 600;\n line-height: 1;\n background-color: var(--md-sys-color-error, #B3261E);\n color: var(--md-sys-color-on-error, #FFFFFF);\n box-sizing: border-box;\n }\n\n .badge.dot {\n min-width: 6px;\n width: 6px;\n height: 6px;\n padding: 0;\n border-radius: 50%;\n }\n\n :host([active]) .badge,\n :host([selected]) .badge {\n background-color: var(--md-sys-color-error, #B3261E);\n color: var(--md-sys-color-on-error, #FFFFFF);\n }\n`;\n","import { html, nothing } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { MdBaseElement } from '../../internal/base-component.js';\nimport '../../internal/ripple/ripple.js';\nimport '../../internal/focus-ring/focus-ring.js';\nimport '../icon/icon.js';\nimport { navigationRailItemStyles } from './navigation-rail.css.js';\n\n/**\n * Material Design 3 Navigation Rail Item component.\n *\n * @slot icon - Custom leading icon.\n * @slot - Default slot for destination label.\n * @slot badge - Custom badge element.\n */\n@customElement('md-navigation-rail-item')\nexport class MdNavigationRailItem extends MdBaseElement {\n static override styles = [MdBaseElement.styles, navigationRailItemStyles];\n\n @property({ type: String })\n icon = '';\n\n @property({ type: String, attribute: 'active-icon' })\n activeIcon = '';\n\n @property({ type: String })\n label = '';\n\n @property({ type: String })\n headline = '';\n\n @property({ type: String })\n badge = '';\n\n @property({ type: Boolean, attribute: 'badge-dot' })\n badgeDot = false;\n\n @property({ type: Boolean, reflect: true })\n active = false;\n\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n @property({ type: Boolean, reflect: true, attribute: 'hide-label' })\n hideLabel = false;\n\n @property({ type: String })\n href = '';\n\n @property({ type: String })\n target = '';\n\n @property({ type: String })\n value = '';\n\n override willUpdate(changedProperties: Map<string, unknown>) {\n super.willUpdate(changedProperties);\n if (changedProperties.has('active') && !changedProperties.has('selected')) {\n this.selected = this.active;\n } else if (changedProperties.has('selected') && !changedProperties.has('active')) {\n this.active = this.selected;\n } else if (changedProperties.has('active') && changedProperties.has('selected')) {\n if (this.active) {\n this.selected = true;\n } else if (this.selected) {\n this.active = true;\n }\n }\n }\n\n private handleClick = (event: MouseEvent) => {\n if (this.disabled) {\n event.preventDefault();\n event.stopImmediatePropagation();\n return;\n }\n this.emitEvent('item-click', {\n label: this.label || this.headline,\n icon: this.icon,\n active: this.active,\n value: this.value,\n item: this,\n });\n };\n\n override render() {\n const text = this.label || this.headline;\n const currentIcon = (this.active && this.activeIcon) ? this.activeIcon : this.icon;\n\n const renderBadge = () => {\n if (this.badgeDot) {\n return html`<span class=\"badge dot\"></span>`;\n }\n if (this.badge) {\n return html`<span class=\"badge\">${this.badge}</span>`;\n }\n return nothing;\n };\n\n const inner = html`\n <div class=\"indicator-wrapper\">\n <div class=\"active-indicator\">\n <md-ripple ?disabled=${this.disabled}></md-ripple>\n <md-focus-ring></md-focus-ring>\n <span class=\"icon-slot\">\n <slot name=\"icon\">\n ${currentIcon ? html`<md-icon name=${currentIcon}></md-icon>` : nothing}\n </slot>\n </span>\n </div>\n\n <div class=\"badge-slot\">\n <slot name=\"badge\">\n ${renderBadge()}\n </slot>\n </div>\n </div>\n\n <div class=\"label-container\">\n <slot>\n ${text ? html`<span class=\"label\">${text}</span>` : nothing}\n </slot>\n </div>\n `;\n\n if (this.href) {\n return html`\n <a\n class=\"item\"\n href=${this.disabled ? nothing : this.href}\n target=${this.target || nothing}\n aria-disabled=${this.disabled ? 'true' : nothing}\n aria-current=${this.active ? 'page' : nothing}\n tabindex=${this.disabled ? '-1' : '0'}\n @click=${this.handleClick}\n >\n ${inner}\n </a>\n `;\n }\n\n return html`\n <div\n class=\"item\"\n role=\"button\"\n tabindex=${this.disabled ? '-1' : '0'}\n aria-disabled=${this.disabled ? 'true' : nothing}\n aria-pressed=${this.active ? 'true' : 'false'}\n @click=${this.handleClick}\n >\n ${inner}\n </div>\n `;\n }\n}\n\n// Aliases\n@customElement('md-nav-rail-item')\nexport class MdNavRailItem extends MdNavigationRailItem {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-navigation-rail-item': MdNavigationRailItem;\n 'md-nav-rail-item': MdNavRailItem;\n }\n}\n"],"mappings":";;;;;;AAEA,IAAa,IAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAkFvB,IAA2B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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A,CAAA,EAAc,yBAAyB,CAAA,GAAA,CAAA;AAkJjC,IAAM,IAAN,cAA4B,EAAqB;AAAC;AADxD,IAAA,EAAA,CAAA,EAAc,kBAAkB,CAAA,GAAA,CAAA"}
@@ -2,7 +2,7 @@ import { t as o } from "./decorate-DXuynaiA.js";
2
2
  import { t as p } from "./form-associated-Cty_ZaS9.js";
3
3
  import "./icon-DrNqcNEL.js";
4
4
  import { css as m, html as l, nothing as r } from "lit";
5
- import { customElement as v, property as a, query as x, state as f } from "lit/decorators.js";
5
+ import { customElement as u, property as a, query as x, state as f } from "lit/decorators.js";
6
6
  var y = m`
7
7
  :host {
8
8
  display: block;
@@ -113,6 +113,24 @@ var y = m`
113
113
  padding: 0 4px;
114
114
  margin: 0;
115
115
  box-sizing: border-box;
116
+ -webkit-appearance: none;
117
+ appearance: none;
118
+ }
119
+
120
+ input::-webkit-search-decoration,
121
+ input::-webkit-search-cancel-button,
122
+ input::-webkit-search-results-button,
123
+ input::-webkit-search-results-decoration {
124
+ -webkit-appearance: none;
125
+ appearance: none;
126
+ display: none;
127
+ }
128
+
129
+ input::-ms-clear,
130
+ input::-ms-reveal {
131
+ display: none;
132
+ width: 0;
133
+ height: 0;
116
134
  }
117
135
 
118
136
  input::placeholder {
@@ -686,13 +704,13 @@ o([a({
686
704
  })], i.prototype, "autoDeactivateOnSelect", void 0);
687
705
  o([f()], i.prototype, "highlightedIndex", void 0);
688
706
  o([x("input")], i.prototype, "inputElement", void 0);
689
- i = o([v("md-search-bar")], i);
707
+ i = o([u("md-search-bar")], i);
690
708
  var g = class extends i {
691
709
  };
692
- g = o([v("md-search")], g);
710
+ g = o([u("md-search")], g);
693
711
  export {
694
712
  i as n,
695
713
  g as t
696
714
  };
697
715
 
698
- //# sourceMappingURL=search-bar-TXnqJ-gd.js.map
716
+ //# sourceMappingURL=search-bar-fUD0qU2P.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-bar-fUD0qU2P.js","names":[],"sources":["../../src/components/search-bar/search-bar.css.ts","../../src/components/search-bar/search-bar.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const searchBarStyles = css`\n :host {\n display: block;\n box-sizing: border-box;\n position: relative;\n width: 100%;\n max-width: var(--md-search-bar-max-width, 100%);\n font-family: var(--md-sys-typescale-font-family, inherit);\n color: var(--md-sys-color-on-surface, #1D1B20);\n vertical-align: middle;\n }\n\n :host([disabled]) {\n pointer-events: none;\n opacity: 0.38;\n }\n\n .scrim {\n display: none;\n }\n\n /* Scrim when active in docked mode to catch outside clicks */\n :host([active]) .scrim {\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 40;\n background: transparent;\n }\n\n .search-container {\n position: relative;\n z-index: 1;\n display: flex;\n flex-direction: column;\n width: 100%;\n box-sizing: border-box;\n background-color: var(--md-search-bar-container-color, var(--md-sys-color-surface-container-high, #ECE6F0));\n border-radius: var(--md-sys-shape-corner-full, 28px);\n box-shadow: var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0, 0, 0, 0.15));\n transition: box-shadow 200ms cubic-bezier(0.2, 0, 0, 1),\n border-radius 200ms cubic-bezier(0.2, 0, 0, 1),\n background-color 200ms cubic-bezier(0.2, 0, 0, 1);\n }\n\n .search-bar-header {\n display: flex;\n align-items: center;\n min-height: 56px;\n height: 56px;\n padding: 0 8px 0 16px;\n box-sizing: border-box;\n gap: 8px;\n }\n\n .leading-slot, .trailing-slot {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .icon-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border: none;\n background: transparent;\n border-radius: 50%;\n color: var(--md-sys-color-on-surface-variant, #49454F);\n cursor: pointer;\n padding: 0;\n outline: none;\n position: relative;\n transition: background-color 150ms ease;\n }\n\n .icon-btn:hover {\n background-color: rgba(73, 69, 79, 0.08);\n }\n\n .icon-btn:focus-visible {\n background-color: rgba(73, 69, 79, 0.12);\n }\n\n .input-wrapper {\n display: flex;\n flex: 1;\n min-width: 0;\n align-items: center;\n position: relative;\n }\n\n input {\n width: 100%;\n border: none;\n background: transparent;\n outline: none;\n font-family: inherit;\n font-size: var(--md-sys-typescale-body-large-size, 16px);\n line-height: var(--md-sys-typescale-body-large-line-height, 24px);\n color: var(--md-sys-color-on-surface, #1D1B20);\n padding: 0 4px;\n margin: 0;\n box-sizing: border-box;\n -webkit-appearance: none;\n appearance: none;\n }\n\n input::-webkit-search-decoration,\n input::-webkit-search-cancel-button,\n input::-webkit-search-results-button,\n input::-webkit-search-results-decoration {\n -webkit-appearance: none;\n appearance: none;\n display: none;\n }\n\n input::-ms-clear,\n input::-ms-reveal {\n display: none;\n width: 0;\n height: 0;\n }\n\n input::placeholder {\n color: var(--md-sys-color-on-surface-variant, #49454F);\n opacity: 0.8;\n }\n\n /* Active Docked Mode */\n :host([active]) .search-container {\n z-index: 50;\n border-radius: var(--md-sys-shape-corner-extra-large, 28px 28px 16px 16px);\n box-shadow: var(--md-sys-elevation-level3, 0px 4px 8px 3px rgba(0, 0, 0, 0.15));\n }\n\n /* Divider when active */\n .divider {\n display: none;\n height: 1px;\n background-color: var(--md-sys-color-outline-variant, #CAC4D0);\n margin: 0 16px;\n }\n\n :host([active]) .divider {\n display: block;\n }\n\n /* Suggestions / Content Container */\n .suggestions-container {\n display: none;\n flex-direction: column;\n max-height: 360px;\n overflow-y: auto;\n padding: 8px 0;\n box-sizing: border-box;\n }\n\n :host([active]) .suggestions-container {\n display: flex;\n }\n\n .suggestion-item {\n display: flex;\n align-items: center;\n min-height: 48px;\n padding: 0 16px;\n gap: 16px;\n box-sizing: border-box;\n cursor: pointer;\n position: relative;\n user-select: none;\n color: var(--md-sys-color-on-surface, #1D1B20);\n transition: background-color 150ms ease;\n }\n\n .suggestion-item:hover,\n .suggestion-item.highlighted {\n background-color: rgba(73, 69, 79, 0.08);\n }\n\n .suggestion-item.selected {\n background-color: rgba(73, 69, 79, 0.12);\n }\n\n .suggestion-icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n color: var(--md-sys-color-on-surface-variant, #49454F);\n flex-shrink: 0;\n }\n\n .suggestion-text {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0;\n overflow: hidden;\n }\n\n .suggestion-label {\n font-size: var(--md-sys-typescale-body-large-size, 16px);\n line-height: 20px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .suggestion-supporting {\n font-size: var(--md-sys-typescale-body-medium-size, 14px);\n line-height: 16px;\n color: var(--md-sys-color-on-surface-variant, #49454F);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-top: 2px;\n }\n\n .suggestion-trailing {\n font-size: var(--md-sys-typescale-body-medium-size, 14px);\n color: var(--md-sys-color-on-surface-variant, #49454F);\n flex-shrink: 0;\n }\n\n .search-trigger-container {\n display: none;\n }\n\n /* Responsive Fullscreen / Mobile Collapsed Mode */\n @media (max-width: 768px) {\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])),\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) {\n display: inline-flex;\n width: auto;\n max-width: none;\n vertical-align: middle;\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n background-color: transparent;\n border-radius: 50%;\n box-shadow: none;\n cursor: pointer;\n user-select: none;\n outline: none;\n transition: background-color 200ms ease, box-shadow 200ms ease;\n -webkit-tap-highlight-color: transparent;\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container.has-trailing,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container.has-trailing {\n height: 48px;\n padding: 0 4px;\n gap: 2px;\n background-color: var(--md-search-bar-container-color, var(--md-sys-color-surface-container-high, #ECE6F0));\n border-radius: var(--md-sys-shape-corner-full, 28px);\n box-shadow: var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0, 0, 0, 0.15));\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container.has-trailing:hover,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container.has-trailing:hover {\n box-shadow: var(--md-sys-elevation-level2, 0px 2px 6px 2px rgba(0, 0, 0, 0.15));\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container:focus-visible,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container:focus-visible {\n outline: 2px solid var(--md-sys-color-primary, #6750A4);\n outline-offset: 2px;\n }\n\n .trigger-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n min-width: 40px;\n min-height: 40px;\n border-radius: 50%;\n border: none;\n background: transparent;\n color: var(--md-sys-color-on-surface-variant, #49454F);\n cursor: pointer;\n padding: 0;\n margin: 0;\n outline: none;\n position: relative;\n transition: background-color 150ms ease, color 150ms ease;\n -webkit-tap-highlight-color: transparent;\n }\n\n .trigger-btn:hover {\n background-color: rgba(73, 69, 79, 0.08);\n }\n\n .trigger-btn:focus-visible {\n background-color: rgba(73, 69, 79, 0.12);\n }\n\n .trigger-divider {\n width: 1px;\n height: 22px;\n background-color: var(--md-sys-color-outline-variant, #CAC4D0);\n margin: 0 2px;\n flex-shrink: 0;\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .search-container,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .search-container {\n display: none;\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .scrim,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .scrim {\n display: none;\n }\n\n :host([responsive][active]),\n :host([collapse-on-mobile][active]) {\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100vw;\n height: 100vh;\n height: 100dvh;\n max-width: 100vw;\n margin: 0;\n padding: 0;\n z-index: 99999;\n }\n\n :host([responsive][active]) .search-trigger-container,\n :host([collapse-on-mobile][active]) .search-trigger-container {\n display: none;\n }\n\n :host([responsive][active]) .scrim,\n :host([collapse-on-mobile][active]) .scrim {\n display: none;\n }\n\n :host([responsive][active]) .search-container,\n :host([collapse-on-mobile][active]) .search-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100vw;\n height: 100vh;\n height: 100dvh;\n max-width: 100vw;\n border-radius: 0;\n box-shadow: none;\n z-index: 99999;\n background-color: var(--md-search-bar-container-color, var(--md-sys-color-surface-container-high, #ECE6F0));\n }\n\n :host([responsive][active]) .suggestions-container,\n :host([collapse-on-mobile][active]) .suggestions-container {\n flex: 1;\n max-height: calc(100vh - 57px);\n max-height: calc(100dvh - 57px);\n }\n }\n\n /* Forced Fullscreen attribute */\n :host([fullscreen][active]) {\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100vw;\n height: 100vh;\n height: 100dvh;\n max-width: 100vw;\n z-index: 99999;\n }\n\n :host([fullscreen][active]) .search-trigger-container {\n display: none;\n }\n\n :host([fullscreen][active]) .scrim {\n display: none;\n }\n\n :host([fullscreen][active]) .search-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100vw;\n height: 100vh;\n height: 100dvh;\n max-width: 100vw;\n border-radius: 0;\n box-shadow: none;\n z-index: 99999;\n background-color: var(--md-search-bar-container-color, var(--md-sys-color-surface-container-high, #ECE6F0));\n }\n\n :host([fullscreen][active]) .suggestions-container {\n flex: 1;\n max-height: calc(100vh - 57px);\n max-height: calc(100dvh - 57px);\n }\n`;\n\n","import { html, nothing } from 'lit';\nimport { customElement, property, state, query } from 'lit/decorators.js';\nimport { MdFormAssociatedElement } from '../../internal/form-associated.js';\nimport '../icon/icon.js';\nimport { searchBarStyles } from './search-bar.css.js';\n\nexport interface SearchSuggestion {\n id?: string;\n label: string;\n value?: string;\n supportingText?: string;\n trailingSupportingText?: string;\n icon?: string;\n [key: string]: unknown;\n}\n\n@customElement('md-search-bar')\nexport class MdSearchBar extends MdFormAssociatedElement {\n static override styles = [MdFormAssociatedElement.styles, searchBarStyles];\n\n @property({ type: String })\n value = '';\n\n @property({ type: String })\n placeholder = 'Search';\n\n @property({ type: Boolean, reflect: true })\n active = false;\n\n @property({ type: Array })\n suggestions: Array<string | SearchSuggestion> = [];\n\n @property({ type: String, attribute: 'leading-icon' })\n leadingIcon = 'search';\n\n @property({ type: String, attribute: 'active-leading-icon' })\n activeLeadingIcon = 'arrow_back';\n\n @property({ type: String, attribute: 'trailing-icon' })\n trailingIcon = '';\n\n @property({ type: Boolean, attribute: 'show-back-button' })\n showBackButton = true;\n\n @property({ type: Boolean, attribute: 'show-clear-button' })\n showClearButton = true;\n\n @property({ type: Boolean, reflect: true })\n responsive = true;\n\n @property({ type: Boolean, attribute: 'collapse-on-mobile', reflect: true })\n collapseOnMobile = true;\n\n @property({ type: Boolean, reflect: true })\n fullscreen = false;\n\n @property({ type: Boolean, attribute: 'auto-deactivate-on-select' })\n autoDeactivateOnSelect = true;\n\n @state()\n private highlightedIndex = -1;\n\n @query('input')\n private inputElement?: HTMLInputElement;\n\n override connectedCallback() {\n super.connectedCallback();\n this.setFormValue(this.value);\n this.toggleAttribute('has-value', Boolean(this.value));\n this.toggleAttribute('active', this.active);\n this.toggleAttribute('collapse-on-mobile', this.collapseOnMobile);\n }\n\n override willUpdate(changedProperties: Map<string, unknown>) {\n super.willUpdate(changedProperties);\n if (changedProperties.has('value')) {\n this.setFormValue(this.value);\n this.toggleAttribute('has-value', Boolean(this.value));\n }\n if (changedProperties.has('active')) {\n this.toggleAttribute('active', this.active);\n if (!this.active) {\n this.highlightedIndex = -1;\n }\n }\n if (changedProperties.has('collapseOnMobile')) {\n this.toggleAttribute('collapse-on-mobile', this.collapseOnMobile);\n }\n }\n\n override formResetCallback() {\n this.value = '';\n this.setFormValue(null);\n this.toggleAttribute('has-value', false);\n this.highlightedIndex = -1;\n }\n\n /**\n * Focuses the search input field.\n */\n override focus() {\n this.inputElement?.focus();\n }\n\n /**\n * Opens / activates the search view.\n */\n show() {\n if (!this.active) {\n this.active = true;\n this.emitEvent('active-change', { active: true });\n }\n this.updateComplete.then(() => {\n this.inputElement?.focus();\n });\n }\n\n /**\n * Alias for show()\n */\n open() {\n this.show();\n }\n\n /**\n * Closes / deactivates the search view.\n */\n close() {\n if (this.active) {\n this.active = false;\n this.highlightedIndex = -1;\n this.emitEvent('active-change', { active: false });\n }\n }\n\n /**\n * Alias for close()\n */\n collapse() {\n this.close();\n }\n\n /**\n * Toggles the active state of the search bar.\n */\n toggle() {\n if (this.active) {\n this.close();\n } else {\n this.show();\n }\n }\n\n /**\n * Clears the current search input.\n */\n clear() {\n this.value = '';\n this.setFormValue('');\n this.toggleAttribute('has-value', false);\n this.highlightedIndex = -1;\n this.emitEvent('input', { value: '' });\n this.emitEvent('clear');\n this.inputElement?.focus();\n }\n\n private handleFocus = () => {\n if (!this.active) {\n this.active = true;\n this.emitEvent('active-change', { active: true });\n }\n };\n\n private handleInput = (event: Event) => {\n const target = event.target as HTMLInputElement;\n this.value = target.value;\n this.setFormValue(this.value);\n this.toggleAttribute('has-value', Boolean(this.value));\n this.highlightedIndex = -1;\n this.emitEvent('input', { value: this.value });\n };\n\n private handleChange = () => {\n this.emitEvent('change', { value: this.value });\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n const count = this.suggestions.length;\n\n if (event.key === 'Escape') {\n event.preventDefault();\n this.close();\n this.inputElement?.blur();\n return;\n }\n\n if (event.key === 'ArrowDown') {\n if (!this.active) {\n this.show();\n return;\n }\n if (count > 0) {\n event.preventDefault();\n this.highlightedIndex = (this.highlightedIndex + 1) % count;\n }\n return;\n }\n\n if (event.key === 'ArrowUp') {\n if (count > 0 && this.active) {\n event.preventDefault();\n this.highlightedIndex = this.highlightedIndex <= 0 ? count - 1 : this.highlightedIndex - 1;\n }\n return;\n }\n\n if (event.key === 'Enter') {\n if (this.active && this.highlightedIndex >= 0 && this.highlightedIndex < count) {\n const item = this.suggestions[this.highlightedIndex];\n if (item !== undefined) {\n event.preventDefault();\n this.selectSuggestion(item, this.highlightedIndex);\n }\n } else {\n this.emitEvent('search', { value: this.value });\n }\n }\n };\n\n private handleTriggerClick = (event: MouseEvent) => {\n event.stopPropagation();\n this.show();\n };\n\n private handleTriggerKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.show();\n }\n };\n\n private handleTrailingTriggerClick = (event: MouseEvent) => {\n event.stopPropagation();\n const allowed = this.emitEvent('trailing-icon-click', { icon: this.trailingIcon });\n if (allowed) {\n this.show();\n }\n };\n\n private handleBackClick = (event: MouseEvent) => {\n event.stopPropagation();\n this.close();\n };\n\n private handleScrimClick = () => {\n this.close();\n };\n\n private handleClearClick = (event: MouseEvent) => {\n event.stopPropagation();\n this.clear();\n };\n\n private selectSuggestion(suggestion: string | SearchSuggestion, index: number) {\n const label = typeof suggestion === 'string' ? suggestion : suggestion.label;\n const value = typeof suggestion === 'string' ? suggestion : (suggestion.value ?? suggestion.label);\n\n this.value = value;\n this.setFormValue(this.value);\n this.toggleAttribute('has-value', Boolean(this.value));\n this.emitEvent('suggestion-select', { suggestion, label, value, index });\n this.emitEvent('search', { value: this.value, suggestion });\n\n if (this.autoDeactivateOnSelect) {\n this.close();\n }\n }\n\n private renderSuggestionItem(suggestion: string | SearchSuggestion, index: number) {\n const isString = typeof suggestion === 'string';\n const label = isString ? suggestion : suggestion.label;\n const supportingText = !isString ? suggestion.supportingText : undefined;\n const trailingSupportingText = !isString ? suggestion.trailingSupportingText : undefined;\n const iconName = !isString && suggestion.icon ? suggestion.icon : 'history';\n const isHighlighted = this.highlightedIndex === index;\n\n return html`\n <div\n class=\"suggestion-item ${isHighlighted ? 'highlighted' : ''}\"\n role=\"option\"\n aria-selected=${isHighlighted ? 'true' : 'false'}\n @click=${() => this.selectSuggestion(suggestion, index)}\n >\n <span class=\"suggestion-icon\">\n <md-icon name=${iconName}></md-icon>\n </span>\n <div class=\"suggestion-text\">\n <span class=\"suggestion-label\">${label}</span>\n ${supportingText ? html`<span class=\"suggestion-supporting\">${supportingText}</span>` : nothing}\n </div>\n ${trailingSupportingText ? html`<span class=\"suggestion-trailing\">${trailingSupportingText}</span>` : nothing}\n </div>\n `;\n }\n\n override render() {\n const showBack = this.active && this.showBackButton;\n const hasTrailing = Boolean(this.trailingIcon);\n\n return html`\n <div\n class=\"search-trigger-container ${hasTrailing ? 'has-trailing' : ''}\"\n role=\"button\"\n tabindex=\"0\"\n aria-label=${this.placeholder || 'Search'}\n title=${this.placeholder || 'Search'}\n ?disabled=${this.disabled}\n @click=${this.handleTriggerClick}\n @keydown=${this.handleTriggerKeyDown}\n >\n <button\n class=\"trigger-btn\"\n type=\"button\"\n aria-label=${this.placeholder || 'Search'}\n title=${this.placeholder || 'Search'}\n ?disabled=${this.disabled}\n @click=${this.handleTriggerClick}\n >\n <md-icon name=${this.leadingIcon || 'search'}></md-icon>\n </button>\n\n ${hasTrailing\n ? html`\n <div class=\"trigger-divider\" aria-hidden=\"true\"></div>\n <button\n class=\"trigger-btn trigger-trailing-btn\"\n type=\"button\"\n aria-label=${this.trailingIcon}\n title=${this.trailingIcon}\n ?disabled=${this.disabled}\n @click=${this.handleTrailingTriggerClick}\n >\n <md-icon name=${this.trailingIcon}></md-icon>\n </button>\n `\n : nothing}\n </div>\n\n <div class=\"scrim\" @click=${this.handleScrimClick}></div>\n\n <div class=\"search-container\" role=\"search\">\n <div class=\"search-bar-header\">\n <span class=\"leading-slot\">\n <slot name=\"leading-icon\">\n ${showBack\n ? html`\n <button\n class=\"icon-btn\"\n type=\"button\"\n aria-label=\"Back\"\n @click=${this.handleBackClick}\n >\n <md-icon name=${this.activeLeadingIcon}></md-icon>\n </button>\n `\n : html`\n <span class=\"icon-btn\" style=\"cursor: default;\">\n <md-icon name=${this.leadingIcon}></md-icon>\n </span>\n `}\n </slot>\n </span>\n\n <div class=\"input-wrapper\">\n <input\n type=\"search\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-expanded=${this.active ? 'true' : 'false'}\n aria-label=${this.placeholder}\n placeholder=${this.placeholder}\n .value=${this.value}\n ?disabled=${this.disabled}\n @input=${this.handleInput}\n @change=${this.handleChange}\n @keydown=${this.handleKeyDown}\n @focus=${this.handleFocus}\n @click=${this.handleFocus}\n />\n </div>\n\n <span class=\"trailing-slot\">\n ${this.showClearButton && this.value\n ? html`\n <button\n class=\"icon-btn clear-btn\"\n type=\"button\"\n aria-label=\"Clear search\"\n @click=${this.handleClearClick}\n >\n <md-icon name=\"close\"></md-icon>\n </button>\n `\n : nothing}\n\n <slot name=\"trailing-icon\">\n ${this.trailingIcon\n ? html`\n <span class=\"icon-btn\" style=\"cursor: default;\">\n <md-icon name=${this.trailingIcon}></md-icon>\n </span>\n `\n : nothing}\n </slot>\n </span>\n </div>\n\n <div class=\"divider\"></div>\n\n <div class=\"suggestions-container\" role=\"listbox\" aria-label=\"Suggestions\">\n <slot name=\"suggestions\">\n ${this.suggestions.map((item, idx) => this.renderSuggestionItem(item, idx))}\n </slot>\n <div class=\"extra-content\">\n <slot></slot>\n </div>\n </div>\n </div>\n `;\n }\n}\n\n@customElement('md-search')\nexport class MdSearch extends MdSearchBar {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-search-bar': MdSearchBar;\n 'md-search': MdSearch;\n }\n}\n"],"mappings":";;;;;AAEA,IAAa,IAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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