customer-riverside/web/modules/custom/riverside_pt
Philip Peterson e3c2e3e3a1 Add nice non-restrictive phone number input formatting for booking
- New pure-vanilla progressive formatter that turns typed digits into
  (123) 456-7890 (or 1 (800) 555-1212 for +1 numbers) on the fly.
- Works for free-form input: typing, pasting, editing anywhere, backspacing,
  extra chars, etc. — no hard mask or input restrictions.
- Applied to:
  - The Preact <rpt-booking> widget phone field (home page quick booking + details).
  - The final Drupal confirmation form at /schedule/book (via lightweight
    enhancer + .rpt-phone class).
- Prefills last_name / phone / comments on the confirmation form when the
  widget was used to pick the slot (so collected phone isn't lost).
- No new dependencies whatsoever:
  * Zero npm / package.json / composer changes.
  * Zero additional CDN / external scripts (uses native String.replace,
    regex, and input event + selection APIs only).
  * The new js/phone-format.js is simply attached via the pre-existing
    'app' library (already loaded on all riverside_pt.* routes).
  * Formatter logic duplicated in the ESM component (tiny pure function).
- The two other modified files (calendar.css, calendar.js) were left
  uncommitted as they are unrelated to this feature.
2026-06-03 20:35:40 -07:00
..
config wip booking flow 2026-05-13 14:55:52 -07:00
css Service-aware booking: selector drives calendar, inline request form 2026-06-03 19:39:35 -07:00
images Fixes 2026-05-28 00:07:02 -07:00
js Add nice non-restrictive phone number input formatting for booking 2026-06-03 20:35:40 -07:00
src Add nice non-restrictive phone number input formatting for booking 2026-06-03 20:35:40 -07:00
templates Service-aware booking: selector drives calendar, inline request form 2026-06-03 19:39:35 -07:00
.DS_Store wip 2026-05-25 00:32:23 -07:00
riverside_pt.info.yml Add declarative site module 2026-05-01 05:24:10 -07:00
riverside_pt.install functionality build out 2026-06-01 01:47:26 -07:00
riverside_pt.libraries.yml Add nice non-restrictive phone number input formatting for booking 2026-06-03 20:35:40 -07:00
riverside_pt.module Fix palette swatches, login styling, and login redirect 2026-06-01 03:00:19 -07:00
riverside_pt.routing.yml add swatch page, rename colors 2026-06-01 02:46:47 -07:00