@vanelsas/baredom 3.4.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/custom-elements.json +4430 -3627
  3. package/dist/baredom.d.ts +92 -92
  4. package/dist/base.js +394 -388
  5. package/dist/integrity.json +108 -108
  6. package/dist/x-alert.js +16 -16
  7. package/dist/x-avatar-group.js +9 -9
  8. package/dist/x-avatar.js +13 -13
  9. package/dist/x-badge.js +8 -8
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +13 -13
  13. package/dist/x-button.js +1 -1
  14. package/dist/x-calendar.js +31 -31
  15. package/dist/x-cancel-dialogue.js +11 -11
  16. package/dist/x-card.js +7 -7
  17. package/dist/x-carousel.js +25 -25
  18. package/dist/x-chart.js +43 -43
  19. package/dist/x-checkbox.d.ts +11 -4
  20. package/dist/x-checkbox.js +1 -1
  21. package/dist/x-chip.js +1 -1
  22. package/dist/x-code.js +24 -24
  23. package/dist/x-collapse.js +8 -8
  24. package/dist/x-color-picker.d.ts +7 -0
  25. package/dist/x-color-picker.js +34 -34
  26. package/dist/x-combobox.d.ts +12 -5
  27. package/dist/x-combobox.js +30 -29
  28. package/dist/x-command-palette.js +27 -27
  29. package/dist/x-confetti.js +22 -22
  30. package/dist/x-container.js +3 -3
  31. package/dist/x-context-menu.js +18 -18
  32. package/dist/x-copy.js +1 -1
  33. package/dist/x-currency-field.d.ts +5 -0
  34. package/dist/x-currency-field.js +21 -21
  35. package/dist/x-date-picker.d.ts +7 -0
  36. package/dist/x-date-picker.js +36 -35
  37. package/dist/x-divider.js +9 -9
  38. package/dist/x-drawer.js +8 -8
  39. package/dist/x-dropdown.js +12 -12
  40. package/dist/x-fieldset.js +5 -5
  41. package/dist/x-file-download.js +5 -5
  42. package/dist/x-file-upload.d.ts +10 -5
  43. package/dist/x-file-upload.js +23 -20
  44. package/dist/x-form-field.d.ts +7 -0
  45. package/dist/x-form-field.js +13 -12
  46. package/dist/x-form.js +10 -10
  47. package/dist/x-gaussian-blur.js +11 -11
  48. package/dist/x-grid.js +6 -6
  49. package/dist/x-i18n-provider.js +6 -6
  50. package/dist/x-i18n.js +4 -4
  51. package/dist/x-icon.js +7 -7
  52. package/dist/x-image.js +16 -16
  53. package/dist/x-kbd.js +11 -11
  54. package/dist/x-kinetic-canvas.js +24 -24
  55. package/dist/x-kinetic-font.js +22 -22
  56. package/dist/x-kinetic-typography.js +27 -27
  57. package/dist/x-liquid-dock.js +30 -30
  58. package/dist/x-liquid-fill.js +35 -35
  59. package/dist/x-liquid-glass.js +26 -26
  60. package/dist/x-menu-item.js +6 -6
  61. package/dist/x-menu.js +7 -7
  62. package/dist/x-metaball-cursor.js +17 -17
  63. package/dist/x-modal.js +10 -10
  64. package/dist/x-morph-stack.js +28 -28
  65. package/dist/x-multi-combobox.d.ts +7 -0
  66. package/dist/x-multi-combobox.js +36 -36
  67. package/dist/x-navbar.js +12 -12
  68. package/dist/x-neural-glow.js +19 -19
  69. package/dist/x-notification-center.js +9 -9
  70. package/dist/x-organic-divider.js +13 -13
  71. package/dist/x-organic-progress.js +30 -30
  72. package/dist/x-organic-shape.js +7 -7
  73. package/dist/x-otp-input.d.ts +5 -0
  74. package/dist/x-otp-input.js +19 -19
  75. package/dist/x-pagination.js +11 -11
  76. package/dist/x-particle-button.js +40 -40
  77. package/dist/x-popover.js +24 -24
  78. package/dist/x-progress-circle.js +6 -6
  79. package/dist/x-progress.js +6 -6
  80. package/dist/x-proximity-list.js +20 -20
  81. package/dist/x-radio.d.ts +10 -3
  82. package/dist/x-radio.js +12 -11
  83. package/dist/x-range-slider.d.ts +7 -0
  84. package/dist/x-range-slider.js +27 -27
  85. package/dist/x-rating.d.ts +7 -0
  86. package/dist/x-rating.js +19 -18
  87. package/dist/x-ripple-effect.js +7 -7
  88. package/dist/x-scroll-parallax.js +17 -17
  89. package/dist/x-scroll-stack.js +15 -15
  90. package/dist/x-scroll-story.js +29 -29
  91. package/dist/x-scroll-timeline.js +39 -39
  92. package/dist/x-scroll.js +32 -32
  93. package/dist/x-search-field.d.ts +9 -4
  94. package/dist/x-search-field.js +1 -1
  95. package/dist/x-select.d.ts +9 -2
  96. package/dist/x-select.js +1 -1
  97. package/dist/x-sidebar.js +14 -14
  98. package/dist/x-skeleton-group.js +11 -11
  99. package/dist/x-skeleton.js +1 -1
  100. package/dist/x-slider.d.ts +7 -0
  101. package/dist/x-slider.js +16 -15
  102. package/dist/x-soft-body.js +13 -13
  103. package/dist/x-spacer.js +4 -4
  104. package/dist/x-spinner.js +3 -3
  105. package/dist/x-splash.js +11 -11
  106. package/dist/x-split-pane.js +13 -13
  107. package/dist/x-spotlight-card.js +12 -12
  108. package/dist/x-stat.js +7 -7
  109. package/dist/x-stepper.js +13 -13
  110. package/dist/x-switch.d.ts +10 -3
  111. package/dist/x-switch.js +11 -10
  112. package/dist/x-tab.js +6 -6
  113. package/dist/x-table-cell.js +15 -15
  114. package/dist/x-table-row.js +7 -7
  115. package/dist/x-table.d.ts +32 -32
  116. package/dist/x-table.js +12 -12
  117. package/dist/x-tabs.js +9 -9
  118. package/dist/x-text-area.d.ts +7 -0
  119. package/dist/x-text-area.js +18 -18
  120. package/dist/x-theme.js +21 -21
  121. package/dist/x-timeline-item.js +18 -18
  122. package/dist/x-timeline.js +8 -8
  123. package/dist/x-toast.js +20 -20
  124. package/dist/x-toaster.js +6 -6
  125. package/dist/x-tooltip.js +11 -11
  126. package/dist/x-trace-history.js +96 -96
  127. package/dist/x-typography.js +5 -5
  128. package/dist/x-welcome-tour.js +52 -52
  129. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,28 @@
2
2
 
3
3
  All notable changes to BareDOM will be documented in this file.
4
4
 
5
+ ## [3.5.0] - 2026-07-24
6
+
7
+ Form-associated components gain the instance-level validation API they were missing, and two form-control bugs are fixed: emptying an `x-date-picker` input now clears the committed date, and a form reset now clears validation errors.
8
+
9
+ ### Added
10
+
11
+ - **The native validation API on all 17 form-associated components** — read-only `validity`, `validationMessage`, `willValidate`, `form` and `labels`, plus `checkValidity()` and `reportValidity()`. `ElementInternals` never mirrors these onto the host element, so only `x-search-field`, `x-currency-field`, `x-otp-input` and `x-file-upload` exposed any of it (the two methods), and every other control could be validated only by attempting a submit. `x-checkbox`, `x-color-picker`, `x-combobox`, `x-date-picker`, `x-form-field`, `x-multi-combobox`, `x-radio`, `x-range-slider`, `x-rating`, `x-select`, `x-slider`, `x-switch` and `x-text-area` now expose the full surface, and the four above are extended to match.
12
+
13
+ ### Fixed
14
+
15
+ - **`x-date-picker` ignored a cleared input.** Deleting the text and committing it (blur, `Enter`, or `commit()`) left the previous date committed and repainted the old text — there was no way to clear the field from the keyboard. It now clears the value through the same cancelable `x-date-picker-change-request` path a normal commit uses, reports empty strings in the change detail (`{ value: "" }`, or `{ start: "", end: "" }` in range mode), and resets the range step so a half-picked range cannot complete against a start that no longer exists. Committing a blank input when nothing is committed stays a no-op.
16
+ - **`form.reset()` left stale validation errors.** Reset cleared the value but not the `error` attribute, so the inline message, `data-invalid`, `aria-invalid` and the `customError` flag survived it on `x-date-picker`, `x-select`, `x-combobox`, `x-multi-combobox`, `x-form-field` and `x-text-area`. All six now drop the attribute on reset.
17
+
18
+ ### Changed — internal
19
+
20
+ - **`forms/install-validity-api!`** (new, in `baredom.utils.forms`) is the single implementation of the validation surface; the four components that hand-rolled `checkValidity` / `reportValidity` are migrated onto it. The five read-only members are declared in each `property-api` as `:readonly true` — the framework adapters skip them and the generated declarations mark them `readonly` — and the two methods in `method-api`.
21
+ - Twelve validity assertions across five test suites sat behind a `(when (.-validity el) …)` guard that was never true, and an input-commit regression test dispatched an event the component never listens for. All of them now genuinely run, alongside a new cross-component suite covering the surface on all 17 tags.
22
+
23
+ ### Notes
24
+
25
+ - No adapter release accompanies this one: the new members are read-only, so the generated wrappers filter them out and the adapter packages are functionally unchanged.
26
+
5
27
  ## [3.4.0] - 2026-07-22
6
28
 
7
29
  The four popup-selection form controls — `x-select`, `x-date-picker`, `x-combobox`, and `x-multi-combobox` — become **real form controls**: they display inline validation errors and participate in native `<form>` submission and constraint validation via `ElementInternals`. Two internal refactors extract the resulting form-control policy into one shared, unit-tested place.