@mintplayer/web-components 2.16.0 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/accordion/index.mjs +5 -5
  2. package/calendar/index.mjs +1 -1
  3. package/carousel/index.mjs +57 -143
  4. package/charts/core/index.mjs +30 -20
  5. package/charts/core/src/attributes.d.ts +18 -0
  6. package/charts/core/src/index.d.ts +2 -0
  7. package/charts/core/src/view-window.d.ts +46 -0
  8. package/charts/hierarchy/index.mjs +245 -256
  9. package/charts/hierarchy/src/components/mp-hierarchy-chart.d.ts +1 -3
  10. package/charts/sparkline/index.mjs +27 -26
  11. package/charts/trend/index.mjs +21 -20
  12. package/checkbox/index.mjs +1 -1
  13. package/checkbox/src/components/mp-checkbox.d.ts +1 -0
  14. package/chunks/attributes-L3eKsbdy.mjs +16 -0
  15. package/chunks/color-mode-warning-71FmlzWX.mjs +13 -0
  16. package/chunks/{form-check.styles-B0pxJ6YC.mjs → form-check.styles-DqvBnspm.mjs} +24 -3
  17. package/chunks/{mp-calendar.element-CJ8-t-Zn.mjs → mp-calendar.element-BIHS9SZZ.mjs} +11 -6
  18. package/chunks/{mp-checkbox-CzwS7Y_t.mjs → mp-checkbox-zV83gILn.mjs} +44 -36
  19. package/chunks/{mp-datatable-B7st6G-I.mjs → mp-datatable-eRpl7-2V.mjs} +173 -173
  20. package/chunks/{mp-datetime-picker.element-DsWA1AFs.mjs → mp-datetime-picker.element-Cxu5-qRE.mjs} +29 -32
  21. package/chunks/{mp-pagination-Dea75mD4.mjs → mp-pagination-hGy4dL7p.mjs} +9 -4
  22. package/chunks/{mp-radio-cL46sUA0.mjs → mp-radio-BhRVNdKp.mjs} +32 -28
  23. package/chunks/{mp-select-BNrbPwN4.mjs → mp-select-CgqYFvUj.mjs} +41 -26
  24. package/chunks/{mp-splitter-Ckn1kN4v.mjs → mp-splitter-DLehrw3Y.mjs} +144 -120
  25. package/chunks/{mp-timepicker.element-CwaAAOcm.mjs → mp-timepicker.element-BiB9lkgc.mjs} +58 -45
  26. package/chunks/{mp-toggle-button-eo_aTQtu.mjs → mp-toggle-button-CaS9uYLE.mjs} +26 -24
  27. package/chunks/{mp-treeview-C8iltDbq.mjs → mp-treeview-CaMTDrvY.mjs} +51 -50
  28. package/chunks/{overlay-controller-DifgO6jT.mjs → overlay-controller-BHDagokg.mjs} +96 -92
  29. package/chunks/{id-DNZVAnGC.mjs → resource.service--lqLwEqk.mjs} +144 -206
  30. package/chunks/view-window-DGvFiDnW.mjs +263 -0
  31. package/code-snippet/index.mjs +70 -66
  32. package/code-snippet/src/hljs-loaders.generated.d.ts +1 -1
  33. package/custom-elements.json +65750 -0
  34. package/datatable/index.mjs +1 -1
  35. package/datatable/src/components/column-resize.d.ts +11 -0
  36. package/datatable/src/components/mp-datatable.d.ts +5 -0
  37. package/datepicker/index.mjs +10 -9
  38. package/datetime-picker/index.mjs +1 -1
  39. package/datetime-picker/src/mp-datetime-picker.element.d.ts +3 -0
  40. package/dock/index.mjs +430 -463
  41. package/dock/src/components/mint-dock-manager.element.d.ts +25 -2
  42. package/dock/src/core/resize.d.ts +60 -0
  43. package/dropdown-menu/index.mjs +4 -2
  44. package/dropdown-menu/src/components/mp-dropdown-menu.d.ts +6 -1
  45. package/dropdown-menu/src/index.d.ts +1 -1
  46. package/dropdown-menu/src/types/dropdown.d.ts +14 -1
  47. package/dropdown-menu/src/types/index.d.ts +1 -1
  48. package/file-manager/index.mjs +63 -61
  49. package/file-manager/src/components/mp-file-manager.d.ts +4 -3
  50. package/multi-range/index.mjs +56 -50
  51. package/multi-range/src/mint-multi-range.element.d.ts +4 -10
  52. package/multi-range/src/pointer-geometry.d.ts +31 -0
  53. package/navbar/index.mjs +89 -439
  54. package/overlay/index.mjs +1 -1
  55. package/overlay/src/overlay-controller.d.ts +0 -14
  56. package/overlay/src/placement.d.ts +48 -0
  57. package/package.json +7 -1
  58. package/pagination/index.mjs +1 -1
  59. package/phone-input/index.mjs +44 -40
  60. package/phone-input/src/components/stack.d.ts +8 -0
  61. package/query-builder/index.mjs +418 -466
  62. package/query-builder/src/dnd/drag-controller.d.ts +12 -8
  63. package/query-builder/src/mp-query-builder.element.d.ts +5 -1
  64. package/query-builder/src/mp-query-condition.element.d.ts +1 -0
  65. package/radio/index.mjs +1 -1
  66. package/radio-group/index.mjs +1 -1
  67. package/ribbon/index.mjs +477 -498
  68. package/ribbon/src/core/band-text-color.d.ts +10 -0
  69. package/ribbon/src/core/key-tip-allocator.d.ts +10 -0
  70. package/ribbon/src/core/plan-reduce-steps.d.ts +62 -0
  71. package/ribbon/src/mp-ribbon.element.d.ts +0 -27
  72. package/scheduler/index.mjs +726 -711
  73. package/scheduler/src/components/mp-scheduler.d.ts +19 -3
  74. package/scheduler/src/drag/drag-manager.d.ts +1 -9
  75. package/scheduler/src/input/input-handler.d.ts +12 -2
  76. package/scheduler/src/utils/geometry.d.ts +39 -0
  77. package/scheduler/src/views/timeline-view.d.ts +0 -1
  78. package/scheduler-core/index.mjs +84 -71
  79. package/scheduler-core/src/services/resource.service.d.ts +0 -12
  80. package/scheduler-core/src/services/timeline.service.d.ts +0 -9
  81. package/select/index.mjs +1 -1
  82. package/select/src/components/mp-select.d.ts +1 -0
  83. package/signature-pad/index.mjs +21 -23
  84. package/signature-pad/src/canvas-point.d.ts +26 -0
  85. package/signature-pad/src/mp-signature-pad.element.d.ts +1 -7
  86. package/splitter/index.mjs +1 -1
  87. package/splitter/src/components/mp-splitter.d.ts +16 -0
  88. package/splitter/src/managers/index.d.ts +1 -0
  89. package/splitter/src/managers/rescale-panel-sizes.d.ts +14 -0
  90. package/swiper-core/index.mjs +2 -2
  91. package/theming/bs-theme-preboot.js +1 -0
  92. package/theming/color-mode.css +36 -0
  93. package/theming/index.d.ts +1 -0
  94. package/theming/index.mjs +327 -0
  95. package/theming/src/components/mp-theme-toggle.d.ts +71 -0
  96. package/theming/src/cookie.d.ts +31 -0
  97. package/theming/src/index.d.ts +5 -0
  98. package/theming/src/preboot.d.ts +1 -0
  99. package/theming/src/resolve.d.ts +36 -0
  100. package/theming/src/store.d.ts +27 -0
  101. package/theming/src/styles/theme-toggle.styles.d.ts +2 -0
  102. package/theming/src/testing/fake-broadcast-channel.d.ts +35 -0
  103. package/theming/src/toggle-modes.d.ts +23 -0
  104. package/tile-manager/index.mjs +252 -211
  105. package/tile-manager/src/components/mint-tile-manager.element.d.ts +8 -0
  106. package/tile-manager/src/utils/grid-geometry.d.ts +49 -0
  107. package/timeline/index.mjs +156 -164
  108. package/timeline/src/components/mp-timeline.d.ts +41 -7
  109. package/timepicker/index.mjs +7 -4
  110. package/timepicker/src/mp-time-list.element.d.ts +26 -0
  111. package/timepicker/src/mp-timepicker.element.d.ts +3 -0
  112. package/toggle-button/index.mjs +1 -1
  113. package/tree-select/index.mjs +21 -9
  114. package/treeview/index.mjs +1 -1
  115. package/treeview/src/components/mp-treeview.d.ts +6 -4
  116. package/chunks/color-DIeST-IS.mjs +0 -224
  117. package/query-builder/src/mp-query-condition.element.template.d.ts +0 -2
package/navbar/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { unsafeCSS as n, LitElement as d, html as o } from "lit";
2
- import { O as v } from "../chunks/overlay-controller-DifgO6jT.mjs";
3
- const p = n(`.navbar {
1
+ import { unsafeCSS as o, LitElement as d, html as r } from "lit";
2
+ import { O as h } from "../chunks/overlay-controller-BHDagokg.mjs";
3
+ const p = o(`.navbar {
4
4
  --bs-navbar-padding-x: 0;
5
5
  --bs-navbar-padding-y: 0.5rem;
6
6
  --bs-navbar-color: rgba(var(--bs-emphasis-color-rgb), 0.65);
@@ -16,7 +16,6 @@ const p = n(`.navbar {
16
16
  --bs-navbar-toggler-padding-y: 0.25rem;
17
17
  --bs-navbar-toggler-padding-x: 0.75rem;
18
18
  --bs-navbar-toggler-font-size: 1.25rem;
19
- --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
20
19
  --bs-navbar-toggler-border-color: rgba(var(--bs-emphasis-color-rgb), 0.15);
21
20
  --bs-navbar-toggler-border-radius: var(--bs-border-radius);
22
21
  --bs-navbar-toggler-focus-width: 0.25rem;
@@ -28,25 +27,6 @@ const p = n(`.navbar {
28
27
  justify-content: space-between;
29
28
  padding: var(--bs-navbar-padding-y) var(--bs-navbar-padding-x);
30
29
  }
31
- .navbar > .container-xxl, .navbar > .container-xl, .navbar > .container-lg, .navbar > .container-md, .navbar > .container-sm, .navbar > .container,
32
- .navbar > .container-fluid {
33
- display: flex;
34
- flex-wrap: inherit;
35
- align-items: center;
36
- justify-content: space-between;
37
- }
38
- .navbar-brand {
39
- padding-top: var(--bs-navbar-brand-padding-y);
40
- padding-bottom: var(--bs-navbar-brand-padding-y);
41
- margin-right: var(--bs-navbar-brand-margin-end);
42
- font-size: var(--bs-navbar-brand-font-size);
43
- color: var(--bs-navbar-brand-color);
44
- text-decoration: none;
45
- white-space: nowrap;
46
- }
47
- .navbar-brand:hover, .navbar-brand:focus {
48
- color: var(--bs-navbar-brand-hover-color);
49
- }
50
30
 
51
31
  .navbar-nav {
52
32
  --bs-nav-link-padding-x: 0;
@@ -61,23 +41,6 @@ const p = n(`.navbar {
61
41
  margin-bottom: 0;
62
42
  list-style: none;
63
43
  }
64
- .navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
65
- color: var(--bs-navbar-active-color);
66
- }
67
- .navbar-nav .dropdown-menu {
68
- position: static;
69
- }
70
-
71
- .navbar-text {
72
- padding-top: 0.5rem;
73
- padding-bottom: 0.5rem;
74
- color: var(--bs-navbar-color);
75
- }
76
- .navbar-text a,
77
- .navbar-text a:hover,
78
- .navbar-text a:focus {
79
- color: var(--bs-navbar-active-color);
80
- }
81
44
 
82
45
  .navbar-collapse {
83
46
  flex-grow: 1;
@@ -109,319 +72,6 @@ const p = n(`.navbar {
109
72
  box-shadow: 0 0 0 var(--bs-navbar-toggler-focus-width);
110
73
  }
111
74
 
112
- .navbar-toggler-icon {
113
- display: inline-block;
114
- width: 1.5em;
115
- height: 1.5em;
116
- vertical-align: middle;
117
- background-image: var(--bs-navbar-toggler-icon-bg);
118
- background-repeat: no-repeat;
119
- background-position: center;
120
- background-size: 100%;
121
- }
122
-
123
- .navbar-nav-scroll {
124
- max-height: var(--bs-scroll-height, 75vh);
125
- overflow-y: auto;
126
- }
127
-
128
- @media (min-width: 576px) {
129
- .navbar-expand-sm {
130
- flex-wrap: nowrap;
131
- justify-content: flex-start;
132
- }
133
- .navbar-expand-sm .navbar-nav {
134
- flex-direction: row;
135
- }
136
- .navbar-expand-sm .navbar-nav .dropdown-menu {
137
- position: absolute;
138
- }
139
- .navbar-expand-sm .navbar-nav .nav-link {
140
- padding-right: var(--bs-navbar-nav-link-padding-x);
141
- padding-left: var(--bs-navbar-nav-link-padding-x);
142
- }
143
- .navbar-expand-sm .navbar-nav-scroll {
144
- overflow: visible;
145
- }
146
- .navbar-expand-sm .navbar-collapse {
147
- display: flex !important;
148
- flex-basis: auto;
149
- }
150
- .navbar-expand-sm .navbar-toggler {
151
- display: none;
152
- }
153
- .navbar-expand-sm .offcanvas {
154
- position: static;
155
- z-index: auto;
156
- flex-grow: 1;
157
- width: auto !important;
158
- height: auto !important;
159
- visibility: visible !important;
160
- background-color: transparent !important;
161
- border: 0 !important;
162
- transform: none !important;
163
- transition: none;
164
- }
165
- .navbar-expand-sm .offcanvas .offcanvas-header {
166
- display: none;
167
- }
168
- .navbar-expand-sm .offcanvas .offcanvas-body {
169
- display: flex;
170
- flex-grow: 0;
171
- padding: 0;
172
- overflow-y: visible;
173
- }
174
- }
175
- @media (min-width: 768px) {
176
- .navbar-expand-md {
177
- flex-wrap: nowrap;
178
- justify-content: flex-start;
179
- }
180
- .navbar-expand-md .navbar-nav {
181
- flex-direction: row;
182
- }
183
- .navbar-expand-md .navbar-nav .dropdown-menu {
184
- position: absolute;
185
- }
186
- .navbar-expand-md .navbar-nav .nav-link {
187
- padding-right: var(--bs-navbar-nav-link-padding-x);
188
- padding-left: var(--bs-navbar-nav-link-padding-x);
189
- }
190
- .navbar-expand-md .navbar-nav-scroll {
191
- overflow: visible;
192
- }
193
- .navbar-expand-md .navbar-collapse {
194
- display: flex !important;
195
- flex-basis: auto;
196
- }
197
- .navbar-expand-md .navbar-toggler {
198
- display: none;
199
- }
200
- .navbar-expand-md .offcanvas {
201
- position: static;
202
- z-index: auto;
203
- flex-grow: 1;
204
- width: auto !important;
205
- height: auto !important;
206
- visibility: visible !important;
207
- background-color: transparent !important;
208
- border: 0 !important;
209
- transform: none !important;
210
- transition: none;
211
- }
212
- .navbar-expand-md .offcanvas .offcanvas-header {
213
- display: none;
214
- }
215
- .navbar-expand-md .offcanvas .offcanvas-body {
216
- display: flex;
217
- flex-grow: 0;
218
- padding: 0;
219
- overflow-y: visible;
220
- }
221
- }
222
- @media (min-width: 992px) {
223
- .navbar-expand-lg {
224
- flex-wrap: nowrap;
225
- justify-content: flex-start;
226
- }
227
- .navbar-expand-lg .navbar-nav {
228
- flex-direction: row;
229
- }
230
- .navbar-expand-lg .navbar-nav .dropdown-menu {
231
- position: absolute;
232
- }
233
- .navbar-expand-lg .navbar-nav .nav-link {
234
- padding-right: var(--bs-navbar-nav-link-padding-x);
235
- padding-left: var(--bs-navbar-nav-link-padding-x);
236
- }
237
- .navbar-expand-lg .navbar-nav-scroll {
238
- overflow: visible;
239
- }
240
- .navbar-expand-lg .navbar-collapse {
241
- display: flex !important;
242
- flex-basis: auto;
243
- }
244
- .navbar-expand-lg .navbar-toggler {
245
- display: none;
246
- }
247
- .navbar-expand-lg .offcanvas {
248
- position: static;
249
- z-index: auto;
250
- flex-grow: 1;
251
- width: auto !important;
252
- height: auto !important;
253
- visibility: visible !important;
254
- background-color: transparent !important;
255
- border: 0 !important;
256
- transform: none !important;
257
- transition: none;
258
- }
259
- .navbar-expand-lg .offcanvas .offcanvas-header {
260
- display: none;
261
- }
262
- .navbar-expand-lg .offcanvas .offcanvas-body {
263
- display: flex;
264
- flex-grow: 0;
265
- padding: 0;
266
- overflow-y: visible;
267
- }
268
- }
269
- @media (min-width: 1200px) {
270
- .navbar-expand-xl {
271
- flex-wrap: nowrap;
272
- justify-content: flex-start;
273
- }
274
- .navbar-expand-xl .navbar-nav {
275
- flex-direction: row;
276
- }
277
- .navbar-expand-xl .navbar-nav .dropdown-menu {
278
- position: absolute;
279
- }
280
- .navbar-expand-xl .navbar-nav .nav-link {
281
- padding-right: var(--bs-navbar-nav-link-padding-x);
282
- padding-left: var(--bs-navbar-nav-link-padding-x);
283
- }
284
- .navbar-expand-xl .navbar-nav-scroll {
285
- overflow: visible;
286
- }
287
- .navbar-expand-xl .navbar-collapse {
288
- display: flex !important;
289
- flex-basis: auto;
290
- }
291
- .navbar-expand-xl .navbar-toggler {
292
- display: none;
293
- }
294
- .navbar-expand-xl .offcanvas {
295
- position: static;
296
- z-index: auto;
297
- flex-grow: 1;
298
- width: auto !important;
299
- height: auto !important;
300
- visibility: visible !important;
301
- background-color: transparent !important;
302
- border: 0 !important;
303
- transform: none !important;
304
- transition: none;
305
- }
306
- .navbar-expand-xl .offcanvas .offcanvas-header {
307
- display: none;
308
- }
309
- .navbar-expand-xl .offcanvas .offcanvas-body {
310
- display: flex;
311
- flex-grow: 0;
312
- padding: 0;
313
- overflow-y: visible;
314
- }
315
- }
316
- @media (min-width: 1400px) {
317
- .navbar-expand-xxl {
318
- flex-wrap: nowrap;
319
- justify-content: flex-start;
320
- }
321
- .navbar-expand-xxl .navbar-nav {
322
- flex-direction: row;
323
- }
324
- .navbar-expand-xxl .navbar-nav .dropdown-menu {
325
- position: absolute;
326
- }
327
- .navbar-expand-xxl .navbar-nav .nav-link {
328
- padding-right: var(--bs-navbar-nav-link-padding-x);
329
- padding-left: var(--bs-navbar-nav-link-padding-x);
330
- }
331
- .navbar-expand-xxl .navbar-nav-scroll {
332
- overflow: visible;
333
- }
334
- .navbar-expand-xxl .navbar-collapse {
335
- display: flex !important;
336
- flex-basis: auto;
337
- }
338
- .navbar-expand-xxl .navbar-toggler {
339
- display: none;
340
- }
341
- .navbar-expand-xxl .offcanvas {
342
- position: static;
343
- z-index: auto;
344
- flex-grow: 1;
345
- width: auto !important;
346
- height: auto !important;
347
- visibility: visible !important;
348
- background-color: transparent !important;
349
- border: 0 !important;
350
- transform: none !important;
351
- transition: none;
352
- }
353
- .navbar-expand-xxl .offcanvas .offcanvas-header {
354
- display: none;
355
- }
356
- .navbar-expand-xxl .offcanvas .offcanvas-body {
357
- display: flex;
358
- flex-grow: 0;
359
- padding: 0;
360
- overflow-y: visible;
361
- }
362
- }
363
- .navbar-expand {
364
- flex-wrap: nowrap;
365
- justify-content: flex-start;
366
- }
367
- .navbar-expand .navbar-nav {
368
- flex-direction: row;
369
- }
370
- .navbar-expand .navbar-nav .dropdown-menu {
371
- position: absolute;
372
- }
373
- .navbar-expand .navbar-nav .nav-link {
374
- padding-right: var(--bs-navbar-nav-link-padding-x);
375
- padding-left: var(--bs-navbar-nav-link-padding-x);
376
- }
377
- .navbar-expand .navbar-nav-scroll {
378
- overflow: visible;
379
- }
380
- .navbar-expand .navbar-collapse {
381
- display: flex !important;
382
- flex-basis: auto;
383
- }
384
- .navbar-expand .navbar-toggler {
385
- display: none;
386
- }
387
- .navbar-expand .offcanvas {
388
- position: static;
389
- z-index: auto;
390
- flex-grow: 1;
391
- width: auto !important;
392
- height: auto !important;
393
- visibility: visible !important;
394
- background-color: transparent !important;
395
- border: 0 !important;
396
- transform: none !important;
397
- transition: none;
398
- }
399
- .navbar-expand .offcanvas .offcanvas-header {
400
- display: none;
401
- }
402
- .navbar-expand .offcanvas .offcanvas-body {
403
- display: flex;
404
- flex-grow: 0;
405
- padding: 0;
406
- overflow-y: visible;
407
- }
408
-
409
- .navbar-dark,
410
- .navbar[data-bs-theme=dark] {
411
- --bs-navbar-color: rgba(255, 255, 255, 0.55);
412
- --bs-navbar-hover-color: rgba(255, 255, 255, 0.75);
413
- --bs-navbar-disabled-color: rgba(255, 255, 255, 0.25);
414
- --bs-navbar-active-color: #fff;
415
- --bs-navbar-brand-color: #fff;
416
- --bs-navbar-brand-hover-color: #fff;
417
- --bs-navbar-toggler-border-color: rgba(255, 255, 255, 0.1);
418
- --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
419
- }
420
-
421
- [data-bs-theme=dark] .navbar-toggler-icon {
422
- --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
423
- }
424
-
425
75
  :host, *, *::before, *::after {
426
76
  box-sizing: border-box;
427
77
  }
@@ -806,7 +456,7 @@ const p = n(`.navbar {
806
456
  width: 0;
807
457
  height: 0;
808
458
  }
809
- }`), c = n(`:host, *, *::before, *::after {
459
+ }`), c = o(`:host, *, *::before, *::after {
810
460
  box-sizing: border-box;
811
461
  }
812
462
 
@@ -846,7 +496,7 @@ const p = n(`.navbar {
846
496
  :host([disabled]) ::slotted(button) {
847
497
  color: var(--bs-nav-link-disabled-color, var(--bs-navbar-disabled-color, inherit)) !important;
848
498
  pointer-events: none;
849
- }`), g = n(`:host, *, *::before, *::after {
499
+ }`), v = o(`:host, *, *::before, *::after {
850
500
  box-sizing: border-box;
851
501
  }
852
502
 
@@ -870,7 +520,7 @@ const p = n(`.navbar {
870
520
  ::slotted(a:hover),
871
521
  ::slotted(a:focus) {
872
522
  color: var(--bs-navbar-brand-hover-color, inherit) !important;
873
- }`), h = n(`:host, *, *::before, *::after {
523
+ }`), g = o(`:host, *, *::before, *::after {
874
524
  box-sizing: border-box;
875
525
  }
876
526
 
@@ -1058,7 +708,7 @@ const p = n(`.navbar {
1058
708
  overflow-y: auto;
1059
709
  }
1060
710
  }`);
1061
- class r extends d {
711
+ class n extends d {
1062
712
  static {
1063
713
  this.styles = [p];
1064
714
  }
@@ -1076,10 +726,10 @@ class r extends d {
1076
726
  return this.constructor.observedAttributes.includes("defer-hydration") || this.shadowRoot?.replaceChildren(), super.createRenderRoot();
1077
727
  }
1078
728
  connectedCallback() {
1079
- super.connectedCallback(), this.setAttribute("data-js", ""), this.style.getPropertyValue("--mp-navbar-breakpoint") || this.#b(this.getAttribute("breakpoint")), this.addEventListener("click", this.#o);
729
+ super.connectedCallback(), this.setAttribute("data-js", ""), this.style.getPropertyValue("--mp-navbar-breakpoint") || this.#b(this.getAttribute("breakpoint")), this.addEventListener("click", this.#r);
1080
730
  }
1081
731
  disconnectedCallback() {
1082
- super.disconnectedCallback(), this.removeEventListener("click", this.#o);
732
+ super.disconnectedCallback(), this.removeEventListener("click", this.#r);
1083
733
  }
1084
734
  /**
1085
735
  * Clicking a navigation link (an `<a href>` — a routerLink renders one) should
@@ -1088,23 +738,23 @@ class r extends d {
1088
738
  * (excluded), so opening a dropdown doesn't collapse the bar. Collapsing in
1089
739
  * wide mode is a no-op (the collapse is always shown there).
1090
740
  */
1091
- #o = (a) => {
1092
- a.composedPath().find(
1093
- (t) => t instanceof HTMLAnchorElement && t.hasAttribute("href") && !t.classList.contains("dropdown-toggle")
741
+ #r = (t) => {
742
+ t.composedPath().find(
743
+ (e) => e instanceof HTMLAnchorElement && e.hasAttribute("href") && !e.classList.contains("dropdown-toggle")
1094
744
  ) && (this.querySelectorAll("mp-navbar-dropdown").forEach(
1095
- (t) => t.close?.()
745
+ (e) => e.close?.()
1096
746
  ), this.toggle(!1));
1097
747
  };
1098
- attributeChangedCallback(a, e, t) {
1099
- super.attributeChangedCallback(a, e, t), a === "color" ? this.#n(t) : a === "breakpoint" ? this.#b(t) : a === "expanded" ? this.#s(t !== null) : a === "aria-label" && this.requestUpdate();
748
+ attributeChangedCallback(t, a, e) {
749
+ super.attributeChangedCallback(t, a, e), t === "color" ? this.#o(e) : t === "breakpoint" ? this.#b(e) : t === "expanded" ? this.#s(e !== null) : t === "aria-label" && this.requestUpdate();
1100
750
  }
1101
751
  /** Solid colors need `data-bs-theme` for text/link contrast; adaptive names inherit the page theme. */
1102
- #n(a) {
1103
- const e = this.#r(a);
1104
- e ? this.setAttribute("data-bs-theme", e) : this.getAttribute("data-bs-theme") && this.removeAttribute("data-bs-theme");
752
+ #o(t) {
753
+ const a = this.#n(t);
754
+ a ? this.setAttribute("data-bs-theme", a) : this.getAttribute("data-bs-theme") && this.removeAttribute("data-bs-theme");
1105
755
  }
1106
- #r(a) {
1107
- return a ? a === "light" || a === "white" ? "light" : a === "body" || a === "transparent" || a.startsWith("body-") ? null : "dark" : null;
756
+ #n(t) {
757
+ return t ? t === "light" || t === "white" ? "light" : t === "body" || t === "transparent" || t.startsWith("body-") ? null : "dark" : null;
1108
758
  }
1109
759
  /** min-width px for each Bootstrap breakpoint (xs = always collapsed → 0). */
1110
760
  static #i = {
@@ -1122,11 +772,11 @@ class r extends d {
1122
772
  * inherit THROUGH shadow boundaries, so `mp-navbar-dropdown` reads the px in JS
1123
773
  * (matchMedia gate) without any DI/context.
1124
774
  */
1125
- #b(a) {
1126
- const e = a ?? "md", t = r.#i[e] ?? 768;
1127
- this.setAttribute("data-breakpoint", e), this.style.setProperty("--mp-navbar-breakpoint", `${t}px`);
775
+ #b(t) {
776
+ const a = t ?? "md", e = n.#i[a] ?? 768;
777
+ this.setAttribute("data-breakpoint", a), this.style.setProperty("--mp-navbar-breakpoint", `${e}px`);
1128
778
  }
1129
- get #t() {
779
+ get #e() {
1130
780
  return this.renderRoot?.querySelector(".navbar-toggle") ?? null;
1131
781
  }
1132
782
  /**
@@ -1136,10 +786,10 @@ class r extends d {
1136
786
  * must never clobber what the user toggled). Held here and applied in
1137
787
  * `firstUpdated`.
1138
788
  */
1139
- #e = null;
789
+ #a = null;
1140
790
  /** Whether the collapse is (visually) expanded — the toggle's checked state. */
1141
791
  get expanded() {
1142
- return this.#t?.checked ?? this.#e ?? this.hasAttribute("expanded");
792
+ return this.#e?.checked ?? this.#a ?? this.hasAttribute("expanded");
1143
793
  }
1144
794
  /**
1145
795
  * Accepts the empty string as ON, the way an HTML boolean attribute does.
@@ -1157,11 +807,11 @@ class r extends d {
1157
807
  * consumer's own act, not a change to announce back to them. That matches
1158
808
  * the `expanded` ATTRIBUTE path, which has always been silent.
1159
809
  */
1160
- set expanded(a) {
1161
- this.#s(a === "" ? !0 : !!a);
810
+ set expanded(t) {
811
+ this.#s(t === "" ? !0 : !!t);
1162
812
  }
1163
- #s(a) {
1164
- this.#t ? this.#a(a, !1) : this.#e = a;
813
+ #s(t) {
814
+ this.#e ? this.#t(t, !1) : this.#a = t;
1165
815
  }
1166
816
  /**
1167
817
  * The single write path for the collapse state: checkbox + `aria-expanded`
@@ -1169,37 +819,37 @@ class r extends d {
1169
819
  * dismiss-on-navigate) don't fire the checkbox's `change` event, so syncing
1170
820
  * aria only there left `aria-expanded` stale after every programmatic close.
1171
821
  */
1172
- #a(a, e = !0) {
1173
- const t = this.#t;
1174
- t && (t.checked = a, t.setAttribute("aria-expanded", String(a)), e && this.#v(a));
822
+ #t(t, a = !0) {
823
+ const e = this.#e;
824
+ e && (e.checked = t, e.setAttribute("aria-expanded", String(t)), a && this.#h(t));
1175
825
  }
1176
826
  /** Programmatically open/close the collapse. */
1177
- toggle(a) {
1178
- this.#a(a ?? !(this.#t?.checked ?? !1));
827
+ toggle(t) {
828
+ this.#t(t ?? !(this.#e?.checked ?? !1));
1179
829
  }
1180
830
  firstUpdated() {
1181
- const a = this.#t;
1182
- a && (a.setAttribute("role", "button"), this.#e !== null ? (this.#a(this.#e, !1), this.#e = null) : a.setAttribute("aria-expanded", String(a.checked)));
831
+ const t = this.#e;
832
+ t && (t.setAttribute("role", "button"), this.#a !== null ? (this.#t(this.#a, !1), this.#a = null) : t.setAttribute("aria-expanded", String(t.checked)));
1183
833
  }
1184
834
  #l = () => {
1185
- this.#a(this.#t?.checked ?? !1);
835
+ this.#t(this.#e?.checked ?? !1);
1186
836
  };
1187
- #d = (a) => {
1188
- a.key === "Enter" && (a.preventDefault(), this.toggle());
837
+ #d = (t) => {
838
+ t.key === "Enter" && (t.preventDefault(), this.toggle());
1189
839
  };
1190
- #v(a) {
840
+ #h(t) {
1191
841
  this.dispatchEvent(
1192
842
  new CustomEvent("expandedchange", {
1193
- detail: { expanded: a },
843
+ detail: { expanded: t },
1194
844
  bubbles: !0,
1195
845
  composed: !0
1196
846
  })
1197
847
  );
1198
848
  }
1199
849
  render() {
1200
- const a = this.getAttribute("aria-label") ?? "Main navigation";
1201
- return o`
1202
- <nav class="navbar" part="nav" aria-label=${a}>
850
+ const t = this.getAttribute("aria-label") ?? "Main navigation";
851
+ return r`
852
+ <nav class="navbar" part="nav" aria-label=${t}>
1203
853
  <slot name="brand"></slot>
1204
854
  <!-- No role="button"/aria-expanded HERE: this render is also the
1205
855
  static DSD chrome, where no script can keep aria-expanded true —
@@ -1235,7 +885,7 @@ class r extends d {
1235
885
  `;
1236
886
  }
1237
887
  }
1238
- customElements.get("mp-navbar") || customElements.define("mp-navbar", r);
888
+ customElements.get("mp-navbar") || customElements.define("mp-navbar", n);
1239
889
  class i extends d {
1240
890
  createRenderRoot() {
1241
891
  return this.constructor.observedAttributes.includes("defer-hydration") || this.shadowRoot?.replaceChildren(), super.createRenderRoot();
@@ -1250,35 +900,35 @@ class m extends i {
1250
900
  // a list's required-children contract, so the navbar carries no list
1251
901
  // semantics and items claim no listitem (axe list/aria-required-parent).
1252
902
  render() {
1253
- return o`<slot></slot>`;
903
+ return r`<slot></slot>`;
1254
904
  }
1255
905
  }
1256
906
  customElements.get("mp-navbar-item") || customElements.define("mp-navbar-item", m);
1257
- class x extends i {
907
+ class u extends i {
1258
908
  static {
1259
- this.styles = [g];
909
+ this.styles = [v];
1260
910
  }
1261
911
  render() {
1262
- return o`<slot></slot>`;
912
+ return r`<slot></slot>`;
1263
913
  }
1264
914
  }
1265
- customElements.get("mp-navbar-brand") || customElements.define("mp-navbar-brand", x);
915
+ customElements.get("mp-navbar-brand") || customElements.define("mp-navbar-brand", u);
1266
916
  class s extends i {
1267
917
  static {
1268
- this.styles = [h];
918
+ this.styles = [g];
1269
919
  }
1270
920
  static get observedAttributes() {
1271
921
  return [...super.observedAttributes ?? [], "data-open", "data-menu-open"];
1272
922
  }
1273
- #o = !1;
923
+ #r = !1;
924
+ #o = null;
1274
925
  #n = null;
1275
- #r = null;
1276
926
  /** Open via either path — inline (`data-open`) or overlay (`data-menu-open`). */
1277
927
  get #i() {
1278
928
  return this.hasAttribute("data-open") || this.hasAttribute("data-menu-open");
1279
929
  }
1280
- attributeChangedCallback(a, e, t) {
1281
- super.attributeChangedCallback(a, e, t), (a === "data-open" || a === "data-menu-open") && this.requestUpdate();
930
+ attributeChangedCallback(t, a, e) {
931
+ super.attributeChangedCallback(t, a, e), (t === "data-open" || t === "data-menu-open") && this.requestUpdate();
1282
932
  }
1283
933
  /** min-width px per Bootstrap breakpoint — mirrors mp-navbar's map. */
1284
934
  static #b = {
@@ -1290,17 +940,17 @@ class s extends i {
1290
940
  xxl: 1400
1291
941
  };
1292
942
  /** Wide mode = at/above the navbar breakpoint (matchMedia). Small/no-JS = false. */
1293
- get #t() {
1294
- return this.#r?.matches ?? !1;
943
+ get #e() {
944
+ return this.#n?.matches ?? !1;
1295
945
  }
1296
946
  connectedCallback() {
1297
- super.connectedCallback(), this.setAttribute("data-js", ""), this.#o = !!this.closest("mp-dropdown-menu");
1298
- const a = this.closest("mp-navbar")?.getAttribute("breakpoint") ?? "md";
1299
- if (this.setAttribute("data-expand", a), typeof window < "u" && window.matchMedia) {
1300
- const e = s.#b[a] ?? 768;
1301
- this.#r = window.matchMedia(`(min-width: ${e}px)`), this.#r.addEventListener("change", this.#e);
947
+ super.connectedCallback(), this.setAttribute("data-js", ""), this.#r = !!this.closest("mp-dropdown-menu");
948
+ const t = this.closest("mp-navbar")?.getAttribute("breakpoint") ?? "md";
949
+ if (this.setAttribute("data-expand", t), typeof window < "u" && window.matchMedia) {
950
+ const a = s.#b[t] ?? 768;
951
+ this.#n = window.matchMedia(`(min-width: ${a}px)`), this.#n.addEventListener("change", this.#a);
1302
952
  }
1303
- this.addEventListener("keydown", this.#p), this.#o && (this.setAttribute("data-submenu", ""), this.#n = new v(this, {
953
+ this.addEventListener("keydown", this.#p), this.#r && (this.setAttribute("data-submenu", ""), this.#o = new h(this, {
1304
954
  anchor: () => this.renderRoot?.querySelector(".dropdown-toggle") ?? null,
1305
955
  trigger: () => this.renderRoot?.querySelector(".dropdown-toggle") ?? null,
1306
956
  // The default-slotted panel: `<mp-dropdown-menu>` directly (React/Vue), or a
@@ -1317,29 +967,29 @@ class s extends i {
1317
967
  }));
1318
968
  }
1319
969
  disconnectedCallback() {
1320
- super.disconnectedCallback(), this.removeEventListener("keydown", this.#p), document.removeEventListener("mousedown", this.#l, !0), this.#r?.removeEventListener("change", this.#e);
970
+ super.disconnectedCallback(), this.removeEventListener("keydown", this.#p), document.removeEventListener("mousedown", this.#l, !0), this.#n?.removeEventListener("change", this.#a);
1321
971
  }
1322
972
  // Resize crossed the breakpoint: close any open panel so state doesn't leak
1323
973
  // across the inline↔overlay switch (the CSS + #toggle re-resolve on next open).
1324
- #e = () => {
1325
- this.#n?.close(), this.#a(!1);
974
+ #a = () => {
975
+ this.#o?.close(), this.#t(!1);
1326
976
  };
1327
977
  get #s() {
1328
978
  return this.hasAttribute("data-open");
1329
979
  }
1330
- #a(a) {
1331
- a !== this.#s && (this.toggleAttribute("data-open", a), a ? document.addEventListener("mousedown", this.#l, !0) : document.removeEventListener("mousedown", this.#l, !0));
980
+ #t(t) {
981
+ t !== this.#s && (this.toggleAttribute("data-open", t), t ? document.addEventListener("mousedown", this.#l, !0) : document.removeEventListener("mousedown", this.#l, !0));
1332
982
  }
1333
- #l = (a) => {
1334
- a.composedPath().includes(this) || this.#a(!1);
983
+ #l = (t) => {
984
+ t.composedPath().includes(this) || this.#t(!1);
1335
985
  };
1336
986
  #d() {
1337
- this.#o && this.#t && this.#n ? this.#n.toggle() : this.#a(!this.#s);
987
+ this.#r && this.#e && this.#o ? this.#o.toggle() : this.#t(!this.#s);
1338
988
  }
1339
989
  /** Close the dropdown (both the overlay and the inline paths). Public so the
1340
990
  * parent `mp-navbar` can dismiss every dropdown when a nav link is clicked. */
1341
991
  close() {
1342
- this.#n?.close(), this.#a(!1);
992
+ this.#o?.close(), this.#t(!1);
1343
993
  }
1344
994
  /**
1345
995
  * Toggle on MOUSEDOWN, not click — the whole gesture must resolve at press
@@ -1352,29 +1002,29 @@ class s extends i {
1352
1002
  * is yanked out mid-gesture), and the dropdown silently fails to open.
1353
1003
  * No preventDefault: it would suppress focus moving to the trigger.
1354
1004
  */
1355
- #v = () => {
1005
+ #h = () => {
1356
1006
  this.#d();
1357
1007
  };
1358
- #c = (a) => {
1359
- a.key === "Enter" || a.key === " " || a.key === "Spacebar" ? (a.preventDefault(), this.#d()) : a.key === "ArrowDown" && (a.preventDefault(), this.#i || this.#d(), this.#g());
1008
+ #c = (t) => {
1009
+ t.key === "Enter" || t.key === " " || t.key === "Spacebar" ? (t.preventDefault(), this.#d()) : t.key === "ArrowDown" && (t.preventDefault(), this.#i || this.#d(), this.#v());
1360
1010
  };
1361
1011
  /** Escape closes the INNERMOST open dropdown and returns focus to its
1362
1012
  * trigger — fires for the shadow trigger and slotted menu content alike
1363
1013
  * (keydown is composed). Closed hosts let the event bubble to an open
1364
1014
  * ancestor, so nested submenus unwind one level per press. */
1365
- #p = (a) => {
1366
- a.key !== "Escape" || !this.#i || (a.stopPropagation(), this.close(), this.renderRoot?.querySelector(".dropdown-toggle")?.focus());
1015
+ #p = (t) => {
1016
+ t.key !== "Escape" || !this.#i || (t.stopPropagation(), this.close(), this.renderRoot?.querySelector(".dropdown-toggle")?.focus());
1367
1017
  };
1368
1018
  /** Move focus to the first item control of the slotted menu (this menu's own
1369
1019
  * items only — nested submenus keep theirs). */
1370
- #g() {
1371
- const a = this.querySelector(':scope > :not([slot="label"])'), e = a?.matches("mp-dropdown-menu") ? a : a?.querySelector("mp-dropdown-menu");
1372
- if (!e) return;
1373
- const t = [...e.querySelectorAll(".dropdown-item")].find((b) => b.closest("mp-dropdown-menu") === e);
1374
- (t?.querySelector("a, button") ?? t)?.focus();
1020
+ #v() {
1021
+ const t = this.querySelector(':scope > :not([slot="label"])'), a = t?.matches("mp-dropdown-menu") ? t : t?.querySelector("mp-dropdown-menu");
1022
+ if (!a) return;
1023
+ const e = [...a.querySelectorAll(".dropdown-item")].find((b) => b.closest("mp-dropdown-menu") === a);
1024
+ (e?.querySelector("a, button") ?? e)?.focus();
1375
1025
  }
1376
1026
  render() {
1377
- return o`
1027
+ return r`
1378
1028
  <a
1379
1029
  class="nav-link dropdown-toggle"
1380
1030
  part="toggle"
@@ -1382,7 +1032,7 @@ class s extends i {
1382
1032
  tabindex="0"
1383
1033
  aria-haspopup="menu"
1384
1034
  aria-expanded=${this.#i ? "true" : "false"}
1385
- @mousedown=${this.#v}
1035
+ @mousedown=${this.#h}
1386
1036
  @keydown=${this.#c}
1387
1037
  ><slot name="label"></slot></a>
1388
1038
  <slot></slot>
@@ -1391,12 +1041,12 @@ class s extends i {
1391
1041
  }
1392
1042
  customElements.get("mp-navbar-dropdown") || customElements.define("mp-navbar-dropdown", s);
1393
1043
  export {
1394
- r as MpNavbar,
1395
- x as MpNavbarBrand,
1044
+ n as MpNavbar,
1045
+ u as MpNavbarBrand,
1396
1046
  s as MpNavbarDropdown,
1397
1047
  m as MpNavbarItem,
1398
- g as navbarBrandStyles,
1399
- h as navbarDropdownStyles,
1048
+ v as navbarBrandStyles,
1049
+ g as navbarDropdownStyles,
1400
1050
  c as navbarItemStyles,
1401
1051
  p as navbarStyles
1402
1052
  };