@m3e/web 2.5.15 → 2.6.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 (67) hide show
  1. package/dist/TextOverflowElement.js +3605 -0
  2. package/dist/TextOverflowElement.js.map +1 -0
  3. package/dist/TextOverflowElement.min.js +7 -0
  4. package/dist/TextOverflowElement.min.js.map +1 -0
  5. package/dist/all.js +1566 -7
  6. package/dist/all.js.map +1 -1
  7. package/dist/all.min.js +89 -81
  8. package/dist/all.min.js.map +1 -1
  9. package/dist/badge.js +2 -1
  10. package/dist/badge.js.map +1 -1
  11. package/dist/badge.min.js +1 -1
  12. package/dist/badge.min.js.map +1 -1
  13. package/dist/core.js +415 -3968
  14. package/dist/core.js.map +1 -1
  15. package/dist/core.min.js +1 -1
  16. package/dist/core.min.js.map +1 -1
  17. package/dist/css-custom-data.json +590 -0
  18. package/dist/custom-elements.json +4385 -611
  19. package/dist/html-custom-data.json +251 -0
  20. package/dist/list.js +12 -4
  21. package/dist/list.js.map +1 -1
  22. package/dist/list.min.js +1 -1
  23. package/dist/list.min.js.map +1 -1
  24. package/dist/nav-bar.js +1 -1
  25. package/dist/nav-bar.js.map +1 -1
  26. package/dist/nav-bar.min.js +1 -1
  27. package/dist/nav-bar.min.js.map +1 -1
  28. package/dist/src/all.d.ts +1 -0
  29. package/dist/src/all.d.ts.map +1 -1
  30. package/dist/src/badge/BadgeElement.d.ts.map +1 -1
  31. package/dist/src/core/shared/converters/index.d.ts +1 -0
  32. package/dist/src/core/shared/converters/index.d.ts.map +1 -1
  33. package/dist/src/core/shared/converters/timeConverter.d.ts +11 -0
  34. package/dist/src/core/shared/converters/timeConverter.d.ts.map +1 -0
  35. package/dist/src/list/ListItemElement.d.ts.map +1 -1
  36. package/dist/src/nav-bar/NavItemElement.d.ts.map +1 -1
  37. package/dist/src/timepicker/TimepickerDialElement.d.ts +76 -0
  38. package/dist/src/timepicker/TimepickerDialElement.d.ts.map +1 -0
  39. package/dist/src/timepicker/TimepickerElement.d.ts +266 -0
  40. package/dist/src/timepicker/TimepickerElement.d.ts.map +1 -0
  41. package/dist/src/timepicker/TimepickerFormat.d.ts +3 -0
  42. package/dist/src/timepicker/TimepickerFormat.d.ts.map +1 -0
  43. package/dist/src/timepicker/TimepickerInputElement.d.ts +110 -0
  44. package/dist/src/timepicker/TimepickerInputElement.d.ts.map +1 -0
  45. package/dist/src/timepicker/TimepickerInputElementBase.d.ts +69 -0
  46. package/dist/src/timepicker/TimepickerInputElementBase.d.ts.map +1 -0
  47. package/dist/src/timepicker/TimepickerInputPeriodToggleElement.d.ts +18 -0
  48. package/dist/src/timepicker/TimepickerInputPeriodToggleElement.d.ts.map +1 -0
  49. package/dist/src/timepicker/TimepickerMode.d.ts +3 -0
  50. package/dist/src/timepicker/TimepickerMode.d.ts.map +1 -0
  51. package/dist/src/timepicker/TimepickerOrientation.d.ts +3 -0
  52. package/dist/src/timepicker/TimepickerOrientation.d.ts.map +1 -0
  53. package/dist/src/timepicker/TimepickerPeriod.d.ts +8 -0
  54. package/dist/src/timepicker/TimepickerPeriod.d.ts.map +1 -0
  55. package/dist/src/timepicker/TimepickerToggleElement.d.ts +21 -0
  56. package/dist/src/timepicker/TimepickerToggleElement.d.ts.map +1 -0
  57. package/dist/src/timepicker/TimepickerVariant.d.ts +3 -0
  58. package/dist/src/timepicker/TimepickerVariant.d.ts.map +1 -0
  59. package/dist/src/timepicker/TimepickerView.d.ts +3 -0
  60. package/dist/src/timepicker/TimepickerView.d.ts.map +1 -0
  61. package/dist/src/timepicker/index.d.ts +11 -0
  62. package/dist/src/timepicker/index.d.ts.map +1 -0
  63. package/dist/timepicker.js +1533 -0
  64. package/dist/timepicker.js.map +1 -0
  65. package/dist/timepicker.min.js +15 -0
  66. package/dist/timepicker.min.js.map +1 -0
  67. package/package.json +6 -1
@@ -3272,6 +3272,257 @@
3272
3272
  ],
3273
3273
  "references": []
3274
3274
  },
3275
+ {
3276
+ "name": "m3e-timepicker-dial",
3277
+ "description": "A clock‑face surface for selecting hours and minutes using a movable hand.\n---\n\n\n### **Events:**\n - **change** - Dispatched when the selected time changes.\n- **view-change** - Dispatched when the view changes.\n\n### **Methods:**\n - **isHourDisabled(hour: _number_): __** - Determines whether the given hour is disabled.\n- **isMinuteDisabled(hour: _number_, minute: _number_): __** - Determines whether the given minute of an hour is disabled.\n\n### **CSS Properties:**\n - **--m3e-timepicker-dial-container-size** - Size of the dial container. _(default: undefined)_\n- **--m3e-timepicker-dial-container-shape** - Corner radius of the dial container. _(default: undefined)_\n- **--m3e-timepicker-dial-container-color** - Background color of the dial container. _(default: undefined)_\n- **--m3e-timepicker-dial-inset** - Inset offset applied to the dial surface. _(default: undefined)_\n- **--m3e-timepicker-dial-center-size** - Size of the dial center. _(default: undefined)_\n- **--m3e-timepicker-dial-handle-color** - Color of the active handle. _(default: undefined)_\n- **--m3e-timepicker-dial-handle-size** - Size of the handle. _(default: undefined)_\n- **--m3e-timepicker-dial-handle-disabled-color** - Color of a disabled handle. _(default: undefined)_\n- **--m3e-timepicker-dial-handle-disabled-opacity** - Opacity of a disabled handle. _(default: undefined)_\n- **--m3e-timepicker-dial-dial-inset** - Inset applied to the handle area. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-size** - Size of the dial numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-color** - Text color of inactive numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-shape** - Corner radius of the numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-font-size** - Font size of the outer numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-font-weight** - Font weight of the outer numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-line-height** - Line height of the outer numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-tracking** - Letter spacing of the outer numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-inner-numeral-font-size** - Font size of the inner numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-inner-numeral-font-weight** - Font weight of the inner numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-inner-numeral-line-height** - Line height of the inner numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-inner-numeral-tracking** - Letter spacing of the inner numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-active-color** - Color of active numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-disabled-color** - Color of disabled numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-disabled-opacity** - Opacity of disabled numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-handle-center-size** - Size of the handle center indicator. _(default: undefined)_",
3278
+ "attributes": [
3279
+ {
3280
+ "name": "format",
3281
+ "description": "Whether to use a 12‑hour or 24‑hour clock.",
3282
+ "values": [{ "name": "TimepickerFormat" }]
3283
+ },
3284
+ {
3285
+ "name": "hour",
3286
+ "description": "The hour, in 24-hour time, from 0..23.",
3287
+ "values": []
3288
+ },
3289
+ {
3290
+ "name": "max-time",
3291
+ "description": "The maximum time that can be selected.",
3292
+ "values": [{ "name": "TimeParts" }]
3293
+ },
3294
+ {
3295
+ "name": "min-time",
3296
+ "description": "The minimum time that can be selected.",
3297
+ "values": [{ "name": "TimeParts" }]
3298
+ },
3299
+ {
3300
+ "name": "minute",
3301
+ "description": "The minute, from 0..59.",
3302
+ "values": []
3303
+ },
3304
+ {
3305
+ "name": "period",
3306
+ "description": "The 12-hour time period.",
3307
+ "values": [{ "name": "TimepickerPeriod" }]
3308
+ },
3309
+ {
3310
+ "name": "view",
3311
+ "description": "The view used to input time.",
3312
+ "values": [{ "name": "TimepickerView" }]
3313
+ },
3314
+ {
3315
+ "name": "blackoutTimes",
3316
+ "description": "A function used to determine whether a time cannot be selected.",
3317
+ "values": [{ "name": "(time: TimeParts) => boolean" }]
3318
+ }
3319
+ ],
3320
+ "references": []
3321
+ },
3322
+ {
3323
+ "name": "m3e-timepicker-input-period-toggle",
3324
+ "description": "\n---\n\n\n### **Events:**\n - **change**",
3325
+ "attributes": [
3326
+ {
3327
+ "name": "period",
3328
+ "description": "The 12-hour time period.",
3329
+ "values": [{ "name": "TimepickerPeriod" }]
3330
+ },
3331
+ {
3332
+ "name": "orientation",
3333
+ "description": "The orientation of the toggle.",
3334
+ "values": [
3335
+ { "name": "Exclude<TimepickerOrientation" },
3336
+ { "name": "\"auto\">" }
3337
+ ]
3338
+ }
3339
+ ],
3340
+ "references": []
3341
+ },
3342
+ {
3343
+ "name": "m3e-timepicker-input",
3344
+ "description": "A keyboard‑based time surface for choosing hours and minutes.\n---\n\n\n### **Events:**\n - **view-change** - Dispatched when the view changes.\n- **change** - Dispatched when the selected time changes.\n\n### **Methods:**\n - **attach(control: _HTMLElement_): _void_** - Attaches the element to an interactive control.\n- **detach(): _void_** - Detaches the element from its current interactive control.\n- **isHourDisabled(hour: _number_): __** - Determines whether the given hour is disabled.\n- **isMinuteDisabled(hour: _number_, minute: _number_): __** - Determines whether the given minute of an hour is disabled.\n\n### **CSS Properties:**\n - **--m3e-timepicker-input-field-container-width** - Width of the input field container. _(default: undefined)_\n- **--m3e-timepicker-input-field-height** - Height of the input fields. _(default: undefined)_\n- **--m3e-timepicker-input-field-container-shape** - Corner radius of the input field container. _(default: undefined)_\n- **--m3e-timepicker-input-field-font-size** - Font size of the input field text. _(default: undefined)_\n- **--m3e-timepicker-input-field-font-weight** - Font weight of the input field text. _(default: undefined)_\n- **--m3e-timepicker-input-field-line-height** - Line height of the input field text. _(default: undefined)_\n- **--m3e-timepicker-input-field-tracking** - Letter spacing of the input field text. _(default: undefined)_\n- **--m3e-timepicker-input-field-label-unselected-color** - Text color of unselected input field labels. _(default: undefined)_\n- **--m3e-timepicker-input-field-unselected-container-color** - Background color of unselected input fields. _(default: undefined)_\n- **--m3e-timepicker-input-field-label-selected-color** - Text color of selected input field labels. _(default: undefined)_\n- **--m3e-timepicker-input-field-selected-container-color** - Background color of selected input fields. _(default: undefined)_\n- **--m3e-timepicker-input-field-label-invalid-color** - Text color of invalid input field labels. _(default: undefined)_\n- **--m3e-timepicker-input-field-invalid-container-color** - Background color of invalid input fields. _(default: undefined)_\n- **--m3e-timepicker-input-field-supporting-text-color** - Text color of supporting labels. _(default: undefined)_\n- **--m3e-timepicker-input-field-supporting-text-font-size** - Font size of supporting labels. _(default: undefined)_\n- **--m3e-timepicker-input-field-supporting-text-font-weight** - Font weight of supporting labels. _(default: undefined)_\n- **--m3e-timepicker-input-field-supporting-text-line-height** - Line height of supporting labels. _(default: undefined)_\n- **--m3e-timepicker-input-field-supporting-text-tracking** - Letter spacing of supporting labels. _(default: undefined)_\n- **--m3e-timepicker-input-field-separator-width** - Width of the field separator. _(default: undefined)_\n- **--m3e-timepicker-input-field-separator-color** - Color of the field separator. _(default: undefined)_\n- **--m3e-timepicker-input-field-separator-font-size** - Font size of the field separator. _(default: undefined)_\n- **--m3e-timepicker-input-field-separator-font-weight** - Font weight of the field separator. _(default: undefined)_\n- **--m3e-timepicker-input-field-separator-tracking** - Letter spacing of the field separator. _(default: undefined)_\n- **--m3e-timepicker-input-horizontal-period-toggle-space** - Space between the fields and period toggle in horizontal orientation. _(default: undefined)_\n- **--m3e-timepicker-input-vertical-period-toggle-space** - Space between the fields and period toggle in vertical orientation. _(default: undefined)_",
3345
+ "attributes": [
3346
+ {
3347
+ "name": "format",
3348
+ "description": "Whether to use a 12‑hour or 24‑hour clock.",
3349
+ "values": [{ "name": "TimepickerFormat" }]
3350
+ },
3351
+ {
3352
+ "name": "hide-labels",
3353
+ "description": "Whether to hide field labels.",
3354
+ "values": []
3355
+ },
3356
+ {
3357
+ "name": "hour",
3358
+ "description": "The hour, in 24-hour time, from 0..23.",
3359
+ "values": []
3360
+ },
3361
+ {
3362
+ "name": "max-time",
3363
+ "description": "The maximum time that can be selected.",
3364
+ "values": [{ "name": "TimeParts" }]
3365
+ },
3366
+ {
3367
+ "name": "min-time",
3368
+ "description": "The minimum time that can be selected.",
3369
+ "values": [{ "name": "TimeParts" }]
3370
+ },
3371
+ {
3372
+ "name": "minute",
3373
+ "description": "The minute, from 0..59.",
3374
+ "values": []
3375
+ },
3376
+ {
3377
+ "name": "orientation",
3378
+ "description": "The orientation of the input.",
3379
+ "values": [
3380
+ { "name": "Exclude<TimepickerOrientation" },
3381
+ { "name": "\"auto\">" }
3382
+ ]
3383
+ },
3384
+ {
3385
+ "name": "period",
3386
+ "description": "The 12-hour time period.",
3387
+ "values": [{ "name": "TimepickerPeriod" }]
3388
+ },
3389
+ {
3390
+ "name": "view",
3391
+ "description": "The view used to input time.",
3392
+ "values": [{ "name": "TimepickerView" }]
3393
+ },
3394
+ {
3395
+ "name": "hour-label",
3396
+ "description": "The label for the hour field.",
3397
+ "values": []
3398
+ },
3399
+ {
3400
+ "name": "minute-label",
3401
+ "description": "The label for the minute field.",
3402
+ "values": []
3403
+ },
3404
+ {
3405
+ "name": "period-toggle-label",
3406
+ "description": "The accessible label given to the period toggle.",
3407
+ "values": []
3408
+ },
3409
+ {
3410
+ "name": "for",
3411
+ "description": "The identifier of the interactive control to which this element is attached.",
3412
+ "values": []
3413
+ },
3414
+ {
3415
+ "name": "blackoutTimes",
3416
+ "description": "A function used to determine whether a time cannot be selected.",
3417
+ "values": [{ "name": "(time: TimeParts) => boolean" }]
3418
+ }
3419
+ ],
3420
+ "references": []
3421
+ },
3422
+ {
3423
+ "name": "m3e-timepicker",
3424
+ "description": "Presents a time picker on a temporary surface.\n---\n\n\n### **Events:**\n - **change** - Dispatched when the selected time is confirmed.\n- **beforetoggle** - Dispatched before the picker toggles.\n- **toggle** - Dispatched when the picker toggles.\n\n### **Methods:**\n - **show(trigger: _HTMLElement_, anchor: _HTMLElement | undefined_): _Promise<void>_** - Opens the picker.\n- **hide(restoreFocus: _boolean_): _void_** - Hides the picker.\n- **toggle(trigger: _HTMLElement_, anchor: _HTMLElement | undefined_): _Promise<void>_** - Toggles the picker.\n\n### **CSS Properties:**\n - **--m3e-timepicker-container-padding-block** - Block padding inside the picker container. _(default: undefined)_\n- **--m3e-timepicker-container-padding-inline** - Inline padding inside the picker container. _(default: undefined)_\n- **--m3e-timepicker-container-color** - Background color of the picker container. _(default: undefined)_\n- **--m3e-timepicker-container-elevation** - Box shadow / elevation of the picker container. _(default: undefined)_\n- **--m3e-timepicker-docked-container-color** - Background color of the docked picker container. _(default: undefined)_\n- **--m3e-timepicker-docked-container-shape** - Border radius of the docked picker container. _(default: undefined)_\n- **--m3e-timepicker-modal-container-color** - Background color of the modal picker container. _(default: undefined)_\n- **--m3e-timepicker-modal-container-shape** - Border radius of the modal picker container. _(default: undefined)_\n- **--m3e-timepicker-headline-color** - Color of the headline. _(default: undefined)_\n- **--m3e-timepicker-headline-font-size** - Font size of the headline. _(default: undefined)_\n- **--m3e-timepicker-headline-font-weight** - Font weight of the headline. _(default: undefined)_\n- **--m3e-timepicker-headline-line-height** - Line height of the headline. _(default: undefined)_\n- **--m3e-timepicker-headline-tracking** - Letter spacing of the headline. _(default: undefined)_\n- **--m3e-timepicker-headline-top-space** - Top margin above the headline. _(default: undefined)_\n- **--m3e-timepicker-actions-space** - Space above the action buttons. _(default: undefined)_\n- **--m3e-timepicker-label-input-space** - Space between Label and the input. _(default: undefined)_\n- **--m3e-timepicker-vertical-input-dial-space** - Space between the input and dial in vertical orientation. _(default: undefined)_\n- **--m3e-timepicker-horizontal-input-dial-space** - Space between the input and dial in horizontal orientation. _(default: undefined)_\n- **--m3e-timepicker-input-field-container-width** - Width of the input field container. _(default: undefined)_\n- **--m3e-timepicker-input-field-height** - Height of the input fields. _(default: undefined)_\n- **--m3e-timepicker-input-field-container-shape** - Corner radius of the input field container. _(default: undefined)_\n- **--m3e-timepicker-input-field-font-size** - Font size of the input field text. _(default: undefined)_\n- **--m3e-timepicker-input-field-font-weight** - Font weight of the input field text. _(default: undefined)_\n- **--m3e-timepicker-input-field-line-height** - Line height of the input field text. _(default: undefined)_\n- **--m3e-timepicker-input-field-tracking** - Letter spacing of the input field text. _(default: undefined)_\n- **--m3e-timepicker-input-field-label-unselected-color** - Text color of unselected input field labels. _(default: undefined)_\n- **--m3e-timepicker-input-field-unselected-container-color** - Background color of unselected input fields. _(default: undefined)_\n- **--m3e-timepicker-input-field-label-selected-color** - Text color of selected input field labels. _(default: undefined)_\n- **--m3e-timepicker-input-field-selected-container-color** - Background color of selected input fields. _(default: undefined)_\n- **--m3e-timepicker-input-field-label-invalid-color** - Text color of invalid input field labels. _(default: undefined)_\n- **--m3e-timepicker-input-field-invalid-container-color** - Background color of invalid input fields. _(default: undefined)_\n- **--m3e-timepicker-input-field-supporting-text-color** - Text color of supporting labels. _(default: undefined)_\n- **--m3e-timepicker-input-field-supporting-text-font-size** - Font size of supporting labels. _(default: undefined)_\n- **--m3e-timepicker-input-field-supporting-text-font-weight** - Font weight of supporting labels. _(default: undefined)_\n- **--m3e-timepicker-input-field-supporting-text-line-height** - Line height of supporting labels. _(default: undefined)_\n- **--m3e-timepicker-input-field-supporting-text-tracking** - Letter spacing of supporting labels. _(default: undefined)_\n- **--m3e-timepicker-input-field-separator-width** - Width of the field separator. _(default: undefined)_\n- **--m3e-timepicker-input-field-separator-color** - Color of the field separator. _(default: undefined)_\n- **--m3e-timepicker-input-field-separator-font-size** - Font size of the field separator. _(default: undefined)_\n- **--m3e-timepicker-input-field-separator-font-weight** - Font weight of the field separator. _(default: undefined)_\n- **--m3e-timepicker-input-field-separator-tracking** - Letter spacing of the field separator. _(default: undefined)_\n- **--m3e-timepicker-input-horizontal-period-toggle-space** - Space between the fields and period toggle in horizontal orientation. _(default: undefined)_\n- **--m3e-timepicker-input-vertical-period-toggle-space** - Space between the fields and period toggle in vertical orientation. _(default: undefined)_\n- **--m3e-timepicker-dial-container-size** - Size of the dial container. _(default: undefined)_\n- **--m3e-timepicker-dial-container-shape** - Corner radius of the dial container. _(default: undefined)_\n- **--m3e-timepicker-dial-container-color** - Background color of the dial container. _(default: undefined)_\n- **--m3e-timepicker-dial-inset** - Inset offset applied to the dial surface. _(default: undefined)_\n- **--m3e-timepicker-dial-center-size** - Size of the dial center. _(default: undefined)_\n- **--m3e-timepicker-dial-handle-color** - Color of the active handle. _(default: undefined)_\n- **--m3e-timepicker-dial-handle-size** - Size of the handle. _(default: undefined)_\n- **--m3e-timepicker-dial-handle-disabled-color** - Color of a disabled handle. _(default: undefined)_\n- **--m3e-timepicker-dial-handle-disabled-opacity** - Opacity of a disabled handle. _(default: undefined)_\n- **--m3e-timepicker-dial-dial-inset** - Inset applied to the handle area. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-size** - Size of the dial numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-color** - Text color of inactive numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-shape** - Corner radius of the numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-font-size** - Font size of the outer numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-font-weight** - Font weight of the outer numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-line-height** - Line height of the outer numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-tracking** - Letter spacing of the outer numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-inner-numeral-font-size** - Font size of the inner numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-inner-numeral-font-weight** - Font weight of the inner numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-inner-numeral-line-height** - Line height of the inner numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-inner-numeral-tracking** - Letter spacing of the inner numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-active-color** - Color of active numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-disabled-color** - Color of disabled numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-numeral-disabled-opacity** - Opacity of disabled numerals. _(default: undefined)_\n- **--m3e-timepicker-dial-handle-center-size** - Size of the handle center indicator. _(default: undefined)_",
3425
+ "attributes": [
3426
+ {
3427
+ "name": "variant",
3428
+ "description": "The appearance variant of the picker.",
3429
+ "values": [{ "name": "TimepickerVariant" }]
3430
+ },
3431
+ {
3432
+ "name": "mode",
3433
+ "description": "The mode in which to select time.",
3434
+ "values": [{ "name": "TimepickerMode" }]
3435
+ },
3436
+ {
3437
+ "name": "orientation",
3438
+ "description": "The orientation of the picker.",
3439
+ "values": [{ "name": "TimepickerOrientation" }]
3440
+ },
3441
+ {
3442
+ "name": "date",
3443
+ "description": "The selected date.",
3444
+ "values": [{ "name": "Date" }]
3445
+ },
3446
+ {
3447
+ "name": "format",
3448
+ "description": "Whether to use a 12‑hour or 24‑hour clock.",
3449
+ "values": [{ "name": "TimepickerFormat" }]
3450
+ },
3451
+ {
3452
+ "name": "max-time",
3453
+ "description": "The maximum time that can be selected.",
3454
+ "values": [{ "name": "TimeParts" }]
3455
+ },
3456
+ {
3457
+ "name": "min-time",
3458
+ "description": "The minimum time that can be selected.",
3459
+ "values": [{ "name": "TimeParts" }]
3460
+ },
3461
+ {
3462
+ "name": "confirm-label",
3463
+ "description": "Label given to the button used apply the selected date and close the picker.",
3464
+ "values": []
3465
+ },
3466
+ {
3467
+ "name": "dismiss-label",
3468
+ "description": "Label given to the button used discard the selected date and close the picker.",
3469
+ "values": []
3470
+ },
3471
+ {
3472
+ "name": "dial-label",
3473
+ "description": "Label given to the the picker when in dial mode.",
3474
+ "values": []
3475
+ },
3476
+ {
3477
+ "name": "input-label",
3478
+ "description": "Label given to the the picker when in input mode.",
3479
+ "values": []
3480
+ },
3481
+ {
3482
+ "name": "hour-label",
3483
+ "description": "Label for the hour field.",
3484
+ "values": []
3485
+ },
3486
+ {
3487
+ "name": "minute-label",
3488
+ "description": "Label for the minute field.",
3489
+ "values": []
3490
+ },
3491
+ {
3492
+ "name": "mode-toggle-label",
3493
+ "description": "The accessible label given to the mode toggle button.",
3494
+ "values": []
3495
+ },
3496
+ {
3497
+ "name": "hide-mode-toggle",
3498
+ "description": "Whether to hide the mode toggle button.",
3499
+ "values": []
3500
+ },
3501
+ {
3502
+ "name": "period-toggle-label",
3503
+ "description": "The accessible label given to the period toggle.",
3504
+ "values": []
3505
+ },
3506
+ {
3507
+ "name": "blackoutTimes",
3508
+ "description": "A function used to determine whether a time cannot be selected.",
3509
+ "values": [{ "name": "(time: TimeParts) => boolean" }]
3510
+ }
3511
+ ],
3512
+ "references": []
3513
+ },
3514
+ {
3515
+ "name": "m3e-timepicker-toggle",
3516
+ "description": "An element, nested within a clickable element, used to toggle a timepicker.\n---\n\n\n### **Methods:**\n \n- **attach(control: _HTMLElement_): _void_** - Attaches the element to an interactive control.\n- **detach(): _void_** - Detaches the element from its current interactive control.",
3517
+ "attributes": [
3518
+ {
3519
+ "name": "for",
3520
+ "description": "The identifier of the interactive control to which this element is attached.",
3521
+ "values": []
3522
+ }
3523
+ ],
3524
+ "references": []
3525
+ },
3275
3526
  {
3276
3527
  "name": "m3e-toc-item",
3277
3528
  "description": "An item in a table of contents.\n---\n\n\n### **Events:**\n - **click** - Dispatched when the element is clicked.\n\n### **Slots:**\n - _default_ - Renders the label of the item.\n\n### **CSS Properties:**\n - **--m3e-toc-item-shape** - Border radius of the TOC item. _(default: undefined)_\n- **--m3e-toc-item-padding-block** - Block padding for the TOC item. _(default: undefined)_\n- **--m3e-toc-item-padding** - Inline padding for the TOC item. _(default: undefined)_\n- **--m3e-toc-item-inset** - Indentation per level for the TOC item. _(default: undefined)_\n- **--m3e-toc-active-indicator-animation-duration** - Animation duration for the active indicator. _(default: undefined)_\n- **--m3e-toc-item-font-size** - Font size for unselected items. _(default: undefined)_\n- **--m3e-toc-item-font-weight** - Font weight for unselected items. _(default: undefined)_\n- **--m3e-toc-item-line-height** - Line height for unselected items. _(default: undefined)_\n- **--m3e-toc-item-tracking** - Letter spacing for unselected items. _(default: undefined)_\n- **--m3e-toc-item-color** - Text color for unselected items. _(default: undefined)_\n- **--m3e-toc-item-selected-font-size** - Font size for selected items. _(default: undefined)_\n- **--m3e-toc-item-selected-font-weight** - Font weight for selected items. _(default: undefined)_\n- **--m3e-toc-item-selected-line-height** - Line height for selected items. _(default: undefined)_\n- **--m3e-toc-item-selected-tracking** - Letter spacing for selected items. _(default: undefined)_\n- **--m3e-toc-item-selected-color** - Text color for selected items. _(default: undefined)_",
package/dist/list.js CHANGED
@@ -10,7 +10,7 @@ import { LitElement, html, unsafeCSS, css } from 'lit';
10
10
  import { property, query } from 'lit/decorators.js';
11
11
  import { ifDefined } from 'lit/directives/if-defined.js';
12
12
 
13
- var _M3eListItemElement_instances, _M3eListItemElement_resizeController, _M3eListItemElement_leadingContentType, _M3eListItemElement_trailingContentType, _M3eListItemElement_initialize, _M3eListItemElement_updateMultiline, _M3eListItemElement_getSlotContentType;
13
+ var _M3eListItemElement_instances, _M3eListItemElement_resizeController, _M3eListItemElement_lines, _M3eListItemElement_leadingContentType, _M3eListItemElement_trailingContentType, _M3eListItemElement_initialize, _M3eListItemElement_updateMultiline, _M3eListItemElement_getSlotContentType;
14
14
  /**
15
15
  * An item in a list.
16
16
  *
@@ -104,6 +104,8 @@ let M3eListItemElement = class M3eListItemElement extends ReconnectedCallback(At
104
104
  callback: () => __classPrivateFieldGet(this, _M3eListItemElement_instances, "m", _M3eListItemElement_updateMultiline).call(this)
105
105
  }));
106
106
  /** @private */
107
+ _M3eListItemElement_lines.set(this, void 0);
108
+ /** @private */
107
109
  _M3eListItemElement_leadingContentType.set(this, void 0);
108
110
  /** @private */
109
111
  _M3eListItemElement_trailingContentType.set(this, void 0);
@@ -154,6 +156,7 @@ let M3eListItemElement = class M3eListItemElement extends ReconnectedCallback(At
154
156
  }
155
157
  };
156
158
  _M3eListItemElement_resizeController = new WeakMap();
159
+ _M3eListItemElement_lines = new WeakMap();
157
160
  _M3eListItemElement_leadingContentType = new WeakMap();
158
161
  _M3eListItemElement_trailingContentType = new WeakMap();
159
162
  _M3eListItemElement_instances = new WeakSet();
@@ -166,9 +169,14 @@ _M3eListItemElement_initialize = function _M3eListItemElement_initialize() {
166
169
  _M3eListItemElement_updateMultiline = function _M3eListItemElement_updateMultiline() {
167
170
  const content = this.shadowRoot?.querySelector(".content") ?? null;
168
171
  const lines = content === null ? 0 : computeLineCount(content);
169
- setCustomState(this, "--one-line", lines <= 1);
170
- setCustomState(this, "--two-line", lines == 2);
171
- setCustomState(this, "--three-line", lines > 2);
172
+ if (__classPrivateFieldGet(this, _M3eListItemElement_lines, "f") === lines) return;
173
+ __classPrivateFieldSet(this, _M3eListItemElement_lines, lines, "f");
174
+ // Defer state writes to rAF to avoid synchronous layout flush (forced reflow)
175
+ requestAnimationFrame(() => {
176
+ setCustomState(this, "--one-line", lines <= 1);
177
+ setCustomState(this, "--two-line", lines == 2);
178
+ setCustomState(this, "--three-line", lines > 2);
179
+ });
172
180
  };
173
181
  _M3eListItemElement_getSlotContentType = function _M3eListItemElement_getSlotContentType(slot) {
174
182
  const elements = slot.assignedElements({