@wow-two-beta/fe 0.0.39 → 0.0.41

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 (49) hide show
  1. package/dist/auth/BffSession.d.ts +3 -3
  2. package/dist/auth/BffSession.js +3 -3
  3. package/dist/auth/BffSession.js.map +1 -1
  4. package/dist/auth/BffSessionSync.d.ts +2 -2
  5. package/dist/auth/BffSessionSync.js.map +1 -1
  6. package/dist/auth/BffStrategy.d.ts +7 -7
  7. package/dist/auth/BffStrategy.js +7 -7
  8. package/dist/auth/BffStrategy.js.map +1 -1
  9. package/dist/auth/index.d.ts +1 -1
  10. package/dist/auth/index.js +2 -2
  11. package/dist/formsEngine/AppForm.d.ts +12 -3
  12. package/dist/formsEngine/FormOperations.d.ts +18 -0
  13. package/dist/formsEngine/FormOperations.js +9 -0
  14. package/dist/formsEngine/FormOperations.js.map +1 -1
  15. package/dist/formsEngine/adapters/house/HouseFormCore.js +15 -6
  16. package/dist/formsEngine/adapters/house/HouseFormCore.js.map +1 -1
  17. package/dist/formsEngine/adapters/tanstack/TanstackFormOverlay.d.ts +4 -0
  18. package/dist/formsEngine/adapters/tanstack/TanstackFormOverlay.js +10 -1
  19. package/dist/formsEngine/adapters/tanstack/TanstackFormOverlay.js.map +1 -1
  20. package/dist/formsEngine/adapters/tanstack/UseAppForm.js +9 -6
  21. package/dist/formsEngine/adapters/tanstack/UseAppForm.js.map +1 -1
  22. package/dist/foundation/animation/animatedLayout/AnimatedLayout.d.ts +3 -3
  23. package/dist/foundation/dom/FocusTarget.d.ts +13 -0
  24. package/dist/foundation/dom/FocusTarget.js +12 -0
  25. package/dist/foundation/dom/FocusTarget.js.map +1 -0
  26. package/dist/foundation/dom/index.d.ts +1 -0
  27. package/dist/foundation/dom/index.js +3 -0
  28. package/dist/foundation/dom/index.js.map +1 -1
  29. package/dist/foundation/primitives/index.d.ts +1 -0
  30. package/dist/foundation/primitives/index.js +3 -0
  31. package/dist/foundation/primitives/index.js.map +1 -1
  32. package/dist/foundation/primitives/swapTransition/SwapTransition.d.ts +76 -0
  33. package/dist/foundation/primitives/swapTransition/SwapTransition.js +240 -0
  34. package/dist/foundation/primitives/swapTransition/SwapTransition.js.map +1 -0
  35. package/dist/foundation/primitives/swapTransition/index.d.ts +1 -0
  36. package/dist/index.css +11 -0
  37. package/dist/presentation/actions/refreshButton/RefreshButton.vue.js.map +1 -1
  38. package/dist/presentation/display/animatedNumberText/AnimatedNumberText.vue.d.ts +1 -1
  39. package/dist/presentation/display/carousel/Carousel.vue.d.ts +1 -1
  40. package/dist/presentation/display/countUpText/CountUpText.vue.d.ts +1 -1
  41. package/dist/presentation/display/scrollRevealGroup/ScrollRevealGroup.vue.d.ts +2 -2
  42. package/dist/presentation/forms/imageCropEditor/ImageCropEditor.vue.d.ts +1 -1
  43. package/dist/presentation/forms/imageEditor/ImageEditor.vue.d.ts +1 -1
  44. package/dist/presentation/forms/phoneInput/PhoneInput.vue.d.ts +4 -0
  45. package/dist/presentation/forms/phoneInput/PhoneInput.vue.js +19 -6
  46. package/dist/presentation/forms/phoneInput/PhoneInput.vue.js.map +1 -1
  47. package/dist/router/adapters/vueRouter/routeAnnouncer/RouteAnnouncer.vue.js +17 -5
  48. package/dist/router/adapters/vueRouter/routeAnnouncer/RouteAnnouncer.vue.js.map +1 -1
  49. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneInput.vue.js","sources":["../../../../src/presentation/forms/phoneInput/PhoneInput.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { NativeInputAttributes } from '../NativeControlAttributes';\n\nexport interface PhoneInputProps extends /* @vue-ignore */ NativeInputAttributes {\n /** The E.164 value, controlled. The `v-model` binding target. */\n readonly modelValue?: string;\n\n /** The initial E.164 value when uncontrolled. */\n readonly defaultValue?: string;\n\n /** The ISO code selected before the value carries a recognisable dial prefix. Default `US`. */\n readonly defaultCountry?: string;\n\n /** The ISO codes the reader may pick, in display order; unknown codes are ignored. Default every known country. */\n readonly countries?: ReadonlyArray<string>;\n\n /** The disabled state. Falls back to the surrounding form control's `isDisabled`. */\n readonly isDisabled?: boolean;\n\n /** The read-only state. Falls back to the surrounding form control's `isReadOnly`. */\n readonly isReadOnly?: boolean;\n\n /** The invalid surface override. Falls back to the surrounding form control's `isInvalid`. */\n readonly isInvalid?: boolean;\n\n /** The national-number placeholder. Default the country's mask with zeros (`00-000-00-00`), none without a mask. */\n readonly placeholder?: string;\n\n /** The hidden input name; the hidden input emits the full E.164 value. */\n readonly name?: string;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, ref, useAttrs, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { useLocale } from '../../../foundation/i18n';\nimport { PhoneFormats, PhoneNumberExtensions } from '../../../foundation/phone';\nimport { useFormControl } from '../../../foundation/primitives';\nimport { useControlled } from '../../../foundation/state';\nimport { cn } from '../../../foundation/styles';\nimport { inputBaseVariants, InputSize } from '../InputStyles';\nimport { useNativeFormReset } from '../UseNativeFormReset';\n\n/**\n * Renders a country dial-code select beside a national-number field, emitting one E.164 string.\n *\n * The field takes digits only and shows them through the country's mask (`foundation/phone` `PhoneFormats`); the\n * value never carries a mask character. Pair it with the `phone()` validator for the per-country digit count.\n */\n/* `inheritAttrs: false` so `class` folds into the root's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\ndefineOptions({ name: 'PhoneInput', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<PhoneInputProps>(), {\n defaultCountry: 'US',\n placeholder: undefined,\n /* Explicit `undefined` defaults: `useControlled` keys on `=== undefined`, and Vue casts an\n absent `boolean` prop to `false` — which would shadow the form control context. */\n modelValue: undefined,\n isDisabled: undefined,\n isReadOnly: undefined,\n isInvalid: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the reader edits the number or switches country — the `v-model` half. */\n 'update:modelValue': [e164: string];\n}>();\n\nconst attrs = useAttrs();\n\nconst controlled = useControlled<string>({\n controlled: () => props.modelValue,\n default: () => props.defaultValue ?? '',\n onChange: (next) => {\n emit('update:modelValue', next);\n },\n});\n\nconst e164 = controlled.value;\n\n/* FormControlContext adoption — explicit props stay as overrides. The national-number\n input is the composite's primary control (carries the context id + describedby);\n a user `id` attr stays on the root div. */\nconst ctx = useFormControl();\nconst disabled = computed(() => props.isDisabled ?? ctx?.isDisabled);\nconst readOnly = computed(() => props.isReadOnly ?? ctx?.isReadOnly);\nconst invalid = computed(() => props.isInvalid ?? ctx?.isInvalid);\n\nconst allowed = computed(() => PhoneNumberExtensions.resolveCountries(props.countries));\n/* The fallback must be selectable: a `defaultCountry` outside the list gives way to the first allowed country. */\nconst fallbackIso = computed(\n () => allowed.value.find((c) => c.iso === props.defaultCountry)?.iso ?? allowed.value[0]!.iso,\n);\n\n/* Selected ISO is state — shared dial codes (+1 US/CA) make it unrecoverable from the value\n alone. Re-derive only when the value's dial prefix becomes incompatible with the selection. */\nconst selectedIso = ref(fallbackIso.value);\n\n/* A value whose dial prefix is outside the list matches no allowed country: its digits stay, under the fallback. */\nconst split = computed(() => {\n const selected = allowed.value.find((c) => c.iso === selectedIso.value);\n if (selected && (!e164.value || e164.value.startsWith(selected.dial))) {\n return {\n iso: selected.iso,\n national: PhoneNumberExtensions.digitsOf(e164.value.slice(selected.dial.length)),\n };\n }\n return PhoneNumberExtensions.split(e164.value, allowed.value, fallbackIso.value);\n});\n\nconst iso = computed(() => split.value.iso);\nconst national = computed(() => split.value.national);\nconst country = computed(() => allowed.value.find((c) => c.iso === iso.value) ?? allowed.value[0]!);\nconst format = computed(() => PhoneNumberExtensions.formatOf(country.value));\n/* A value under a dial code the field does not show (outside `countries`) displays its bare digits: the country's\n mask would read them as a national number they are not. */\nconst isForeign = computed(() => e164.value !== '' && !e164.value.startsWith(country.value.dial));\nconst displayed = computed(() =>\n isForeign.value ? national.value : PhoneNumberExtensions.formatNational(national.value, format.value),\n);\nconst placeholderText = computed(() => {\n if (props.placeholder !== undefined) return props.placeholder;\n const mask = PhoneFormats[country.value.iso]?.mask;\n return mask ? mask.replace(/X/g, '0') : undefined;\n});\n\n/* A dial code alone is not a phone number: with no national digits the value is empty, so a blank field submits\n nothing and fails `required` — the selected country survives in `selectedIso`. */\nfunction e164For(dial: string, digits: string): string {\n return digits ? `${dial}${digits}` : '';\n}\n\nfunction setCountry(event: Event): void {\n const nextIso = (event.target as HTMLSelectElement).value;\n const next = allowed.value.find((c) => c.iso === nextIso) ?? country.value;\n selectedIso.value = next.iso;\n const nextValue = e164For(next.dial, national.value);\n if (nextValue !== e164.value) controlled.setValue(nextValue);\n}\n\nfunction setDigits(digits: string): void {\n /* Deriving the country before the write keeps a shared dial code (+1 US / CA) on the reader's pick. */\n selectedIso.value = country.value.iso;\n const nextValue = e164For(country.value.dial, digits);\n if (nextValue !== e164.value) controlled.setValue(nextValue);\n}\n\n/* An international number replaces the whole field: an allowed dial prefix picks its country, any other keeps every\n digit as a foreign value, where the `phone()` rule reports it. Returns the text the field shows for it — computed\n here, since a controlled value reaches `displayed` only after the parent re-renders. */\nfunction setInternational(text: string): string {\n const parsed = PhoneNumberExtensions.parseInternational(text, allowed.value, country.value.iso);\n if (parsed.country) {\n const max = PhoneNumberExtensions.lengthOf(parsed.country).max;\n const digits = parsed.e164.slice(parsed.country.dial.length, parsed.country.dial.length + max);\n selectedIso.value = parsed.country.iso;\n const nextValue = e164For(parsed.country.dial, digits);\n if (nextValue !== e164.value) controlled.setValue(nextValue);\n return PhoneNumberExtensions.formatNational(digits, PhoneNumberExtensions.formatOf(parsed.country));\n }\n\n const nextValue = parsed.e164.length > 1 ? parsed.e164 : '';\n if (nextValue !== e164.value) controlled.setValue(nextValue);\n return nextValue.slice(1);\n}\n\n/* Replacement text (autofill, drop, an untyped `input`) may carry a full `+…` number; typed text never does. */\nconst ReplacementInputTypes: ReadonlySet<string | undefined> = new Set([\n undefined,\n 'insertReplacementText',\n 'insertFromDrop',\n 'insertFromPaste',\n]);\n\n/* The text is rewritten in place on every input: a rejected character changes no state, so Vue would leave it on\n screen. The caret goes back after the digit it followed. */\nfunction setNational(event: Event): void {\n const field = event.target as HTMLInputElement;\n const inputEvent = event as InputEvent;\n if (inputEvent.isComposing) return;\n\n if (ReplacementInputTypes.has(inputEvent.inputType) && field.value.trimStart().startsWith('+')) {\n field.value = setInternational(field.value);\n placeCaret(field, field.value.length);\n return;\n }\n\n const edit = PhoneNumberExtensions.editNational({\n text: field.value,\n caret: field.selectionStart ?? field.value.length,\n previousDigits: national.value,\n inputType: inputEvent.inputType,\n format: format.value,\n });\n field.value = edit.text;\n placeCaret(field, edit.caret);\n setDigits(edit.digits);\n}\n\n/* A pasted `+…` number is international; digits that spell the selected country's dial code and a full national\n number (`998996632582`) lose the dial code; any other paste inserts at the caret as digits. */\nfunction pasteNational(event: ClipboardEvent): void {\n const text = event.clipboardData?.getData('text') ?? '';\n const field = event.target as HTMLInputElement;\n if (text.trimStart().startsWith('+')) {\n event.preventDefault();\n field.value = setInternational(text);\n placeCaret(field, field.value.length);\n return;\n }\n\n const digits = PhoneNumberExtensions.digitsOf(text);\n const stripped = PhoneNumberExtensions.withoutDialCode(digits, country.value);\n if (stripped === digits) return;\n event.preventDefault();\n setDigits(stripped);\n field.value = PhoneNumberExtensions.formatNational(stripped, format.value);\n placeCaret(field, field.value.length);\n}\n\nfunction placeCaret(field: HTMLInputElement, caret: number): void {\n if (field.ownerDocument.activeElement === field) field.setSelectionRange(caret, caret);\n}\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst rootClass = computed(() =>\n cn(\n 'inline-flex items-stretch overflow-hidden rounded-md border bg-background',\n invalid.value ? 'border-destructive' : 'border-input',\n disabled.value && 'opacity-60',\n readOnly.value && 'bg-muted text-muted-foreground',\n attrs.class as ClassValue,\n ),\n);\n\n/* The country select is a native `<select>`, which has no `readonly`: a read-only phone input disables it, so it\n takes the frame's muted surface and the default cursor rather than the pointer. */\nconst selectClass = computed(() =>\n cn(\n 'h-10 cursor-pointer border-r border-input bg-card pl-2 pr-1 text-sm outline-hidden focus-visible:ring-2 focus-visible:ring-ring',\n readOnly.value && 'cursor-default bg-muted text-muted-foreground',\n ),\n);\n\n/* One allowed country leaves nothing to pick: its flag and dial code sit in the select's place as plain text. */\nconst prefixClass = computed(() =>\n cn(\n 'flex h-10 items-center border-r border-input bg-card px-2 text-sm',\n readOnly.value && 'bg-muted text-muted-foreground',\n ),\n);\n\nconst inputClass = cn(\n inputBaseVariants({ size: InputSize.Md }),\n 'rounded-none border-0 focus-visible:ring-0 readonly:focus-visible:ring-0',\n);\n\nconst formResetAnchor = useTemplateRef<HTMLInputElement>('formResetAnchor');\nconst formResetRevision = useNativeFormReset(formResetAnchor, () => {\n controlled.reset();\n});\n\nconst locale = useLocale();\n</script>\n\n<template>\n <div :key=\"formResetRevision\" :data-readonly=\"readOnly || undefined\" :class=\"rootClass\" v-bind=\"passthroughAttrs\">\n <span v-if=\"allowed.length === 1\" :class=\"prefixClass\">{{ country.flag }} {{ country.dial }}</span>\n <select\n v-else\n :aria-label=\"locale.t('PhoneInput.country', undefined, 'Country')\"\n :value=\"iso\"\n :disabled=\"disabled || readOnly\"\n :class=\"selectClass\"\n :style=\"{ minWidth: '90px' }\"\n @change=\"setCountry\"\n >\n <option v-for=\"c in allowed\" :key=\"c.iso\" :value=\"c.iso\">{{ c.flag }} {{ c.dial }}</option>\n </select>\n <input\n type=\"tel\"\n inputmode=\"tel\"\n autocomplete=\"tel-national\"\n :id=\"ctx?.id\"\n :value=\"displayed\"\n :placeholder=\"placeholderText\"\n :disabled=\"disabled\"\n :readonly=\"readOnly\"\n :aria-invalid=\"invalid || undefined\"\n :aria-describedby=\"ctx?.describedBy\"\n :aria-required=\"ctx?.isRequired || undefined\"\n :class=\"inputClass\"\n @input=\"setNational\"\n @paste=\"pasteNational\"\n />\n <input\n v-if=\"name\"\n type=\"hidden\"\n :disabled=\"disabled\"\n :form=\"typeof $attrs.form === 'string' ? $attrs.form : undefined\"\n :name=\"name\"\n :value=\"e164\"\n />\n <input\n ref=\"formResetAnchor\"\n type=\"hidden\"\n :form=\"typeof $attrs.form === 'string' ? $attrs.form : undefined\"\n aria-hidden=\"true\"\n />\n </div>\n</template>\n"],"names":["nextValue","_openBlock","_createElementBlock","_mergeProps","_unref","_toDisplayString","_Fragment","_renderList","_createElementVNode","$attrs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,UAAM,QAAQ;AAWd,UAAM,OAAO;AAKb,UAAM,QAAQ,SAAA;AAEd,UAAM,aAAa,cAAsB;AAAA,MACvC,YAAY,MAAM,MAAM;AAAA,MACxB,SAAS,MAAM,MAAM,gBAAgB;AAAA,MACrC,UAAU,CAAC,SAAS;AAClB,aAAK,qBAAqB,IAAI;AAAA,MAChC;AAAA,IAAA,CACD;AAED,UAAM,OAAO,WAAW;AAKxB,UAAM,MAAM,eAAA;AACZ,UAAM,WAAW,SAAS,MAAM,MAAM,cAAc,KAAK,UAAU;AACnE,UAAM,WAAW,SAAS,MAAM,MAAM,cAAc,KAAK,UAAU;AACnE,UAAM,UAAU,SAAS,MAAM,MAAM,aAAa,KAAK,SAAS;AAEhE,UAAM,UAAU,SAAS,MAAM,sBAAsB,iBAAiB,MAAM,SAAS,CAAC;AAEtF,UAAM,cAAc;AAAA,MAClB,MAAM,QAAQ,MAAM,KAAK,CAAC,MAAM,EAAE,QAAQ,MAAM,cAAc,GAAG,OAAO,QAAQ,MAAM,CAAC,EAAG;AAAA,IAAA;AAK5F,UAAM,cAAc,IAAI,YAAY,KAAK;AAGzC,UAAM,QAAQ,SAAS,MAAM;AAC3B,YAAM,WAAW,QAAQ,MAAM,KAAK,CAAC,MAAM,EAAE,QAAQ,YAAY,KAAK;AACtE,UAAI,aAAa,CAAC,KAAK,SAAS,KAAK,MAAM,WAAW,SAAS,IAAI,IAAI;AACrE,eAAO;AAAA,UAC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IAAI,GAAA,GAAA,UAAA;AAAA;;QAEjFG,mBAeE,SAAA;AAAA,UAdA,MAAK;AAAA,UACL,WAAU;AAAA,UACV,cAAa;AAAA,UACZ,IAAIJ,MAAA,GAAA,GAAK;AAAA,UACT,OAAO,UAAA;AAAA,UACP,aAAa,gBAAA;AAAA,UACb,UAAU,SAAA;AAAA,UACV,UAAU,SAAA;AAAA,UACV,gBAAc,QAAA,SAAW;AAAA,UACzB,oBAAkBA,MAAA,GAAA,GAAK;AAAA,UACvB,iBAAeA,MAAA,GAAA,GAAK,cAAc;AAAA,UAClC,sBAAOA,MAAA,UAAA,CAAU;AAAA,UACjB,SAAO;AAAA,UACP,SAAO;AAAA,QAAA;QAGF,QAAA,qBADRF,mBAOE,SAAA;AAAA;UALA,MAAK;AAAA,UACJ,UAAU,SAAA;AAAA,UACV,MAAI,OAASO,YAAO,oBAAoBA,KAAAA,OAAO,OAAO;AAAA,UACtD,MAAM,QAAA;AAAA,UACN,OAAOL,MAAA,IAAA;AAAA,QAAA;QAEVI,mBAKE,SAAA;AAAA,mBAJI;AAAA,UAAJ,KAAI;AAAA,UACJ,MAAK;AAAA,UACJ,MAAI,OAASC,YAAO,oBAAoBA,KAAAA,OAAO,OAAO;AAAA,UACvD,eAAY;AAAA,QAAA;;;;;"}
1
+ {"version":3,"file":"PhoneInput.vue.js","sources":["../../../../src/presentation/forms/phoneInput/PhoneInput.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { NativeInputAttributes } from '../NativeControlAttributes';\n\nexport interface PhoneInputProps extends /* @vue-ignore */ NativeInputAttributes {\n /** The E.164 value, controlled. The `v-model` binding target. */\n readonly modelValue?: string;\n\n /** The initial E.164 value when uncontrolled. */\n readonly defaultValue?: string;\n\n /** The ISO code selected before the value carries a recognisable dial prefix. Default `US`. */\n readonly defaultCountry?: string;\n\n /** The ISO codes the reader may pick, in display order; unknown codes are ignored. Default every known country. */\n readonly countries?: ReadonlyArray<string>;\n\n /** The disabled state. Falls back to the surrounding form control's `isDisabled`. */\n readonly isDisabled?: boolean;\n\n /** The read-only state. Falls back to the surrounding form control's `isReadOnly`. */\n readonly isReadOnly?: boolean;\n\n /** The invalid surface override. Falls back to the surrounding form control's `isInvalid`. */\n readonly isInvalid?: boolean;\n\n /** The national-number placeholder. Default the country's mask with zeros (`00-000-00-00`), none without a mask. */\n readonly placeholder?: string;\n\n /** The hidden input name; the hidden input emits the full E.164 value. */\n readonly name?: string;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, ref, useAttrs, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { useLocale } from '../../../foundation/i18n';\nimport { PhoneFormats, PhoneNumberExtensions } from '../../../foundation/phone';\nimport { useFormControl } from '../../../foundation/primitives';\nimport { useControlled } from '../../../foundation/state';\nimport { cn } from '../../../foundation/styles';\nimport { inputBaseVariants, InputSize } from '../InputStyles';\nimport { useNativeFormReset } from '../UseNativeFormReset';\n\n/**\n * Renders a country dial-code select beside a national-number field, emitting one E.164 string.\n *\n * The field takes digits only and shows them through the country's mask (`foundation/phone` `PhoneFormats`); the\n * value never carries a mask character. Pair it with the `phone()` validator for the per-country digit count.\n */\n/* `inheritAttrs: false` so `class` folds into the root's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\ndefineOptions({ name: 'PhoneInput', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<PhoneInputProps>(), {\n defaultCountry: 'US',\n placeholder: undefined,\n /* Explicit `undefined` defaults: `useControlled` keys on `=== undefined`, and Vue casts an\n absent `boolean` prop to `false` — which would shadow the form control context. */\n modelValue: undefined,\n isDisabled: undefined,\n isReadOnly: undefined,\n isInvalid: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the reader edits the number or switches country — the `v-model` half. */\n 'update:modelValue': [e164: string];\n /** Fires when focus enters the control from outside it — the country select or the number field. */\n focus: [event: FocusEvent];\n /** Fires when focus leaves the whole control; moving between the country select and the number field stays inside. */\n blur: [event: FocusEvent];\n}>();\n\nconst attrs = useAttrs();\n\nconst controlled = useControlled<string>({\n controlled: () => props.modelValue,\n default: () => props.defaultValue ?? '',\n onChange: (next) => {\n emit('update:modelValue', next);\n },\n});\n\nconst e164 = controlled.value;\n\n/* FormControlContext adoption — explicit props stay as overrides. The national-number\n input is the composite's primary control (carries the context id + describedby);\n a user `id` attr stays on the root div. */\nconst ctx = useFormControl();\nconst disabled = computed(() => props.isDisabled ?? ctx?.isDisabled);\nconst readOnly = computed(() => props.isReadOnly ?? ctx?.isReadOnly);\nconst invalid = computed(() => props.isInvalid ?? ctx?.isInvalid);\n\nconst allowed = computed(() => PhoneNumberExtensions.resolveCountries(props.countries));\n/* The fallback must be selectable: a `defaultCountry` outside the list gives way to the first allowed country. */\nconst fallbackIso = computed(\n () => allowed.value.find((c) => c.iso === props.defaultCountry)?.iso ?? allowed.value[0]!.iso,\n);\n\n/* Selected ISO is state — shared dial codes (+1 US/CA) make it unrecoverable from the value\n alone. Re-derive only when the value's dial prefix becomes incompatible with the selection. */\nconst selectedIso = ref(fallbackIso.value);\n\n/* A value whose dial prefix is outside the list matches no allowed country: its digits stay, under the fallback. */\nconst split = computed(() => {\n const selected = allowed.value.find((c) => c.iso === selectedIso.value);\n if (selected && (!e164.value || e164.value.startsWith(selected.dial))) {\n return {\n iso: selected.iso,\n national: PhoneNumberExtensions.digitsOf(e164.value.slice(selected.dial.length)),\n };\n }\n return PhoneNumberExtensions.split(e164.value, allowed.value, fallbackIso.value);\n});\n\nconst iso = computed(() => split.value.iso);\nconst national = computed(() => split.value.national);\nconst country = computed(() => allowed.value.find((c) => c.iso === iso.value) ?? allowed.value[0]!);\nconst format = computed(() => PhoneNumberExtensions.formatOf(country.value));\n/* A value under a dial code the field does not show (outside `countries`) displays its bare digits: the country's\n mask would read them as a national number they are not. */\nconst isForeign = computed(() => e164.value !== '' && !e164.value.startsWith(country.value.dial));\nconst displayed = computed(() =>\n isForeign.value ? national.value : PhoneNumberExtensions.formatNational(national.value, format.value),\n);\nconst placeholderText = computed(() => {\n if (props.placeholder !== undefined) return props.placeholder;\n const mask = PhoneFormats[country.value.iso]?.mask;\n return mask ? mask.replace(/X/g, '0') : undefined;\n});\n\n/* A dial code alone is not a phone number: with no national digits the value is empty, so a blank field submits\n nothing and fails `required` — the selected country survives in `selectedIso`. */\nfunction e164For(dial: string, digits: string): string {\n return digits ? `${dial}${digits}` : '';\n}\n\nfunction setCountry(event: Event): void {\n const nextIso = (event.target as HTMLSelectElement).value;\n const next = allowed.value.find((c) => c.iso === nextIso) ?? country.value;\n selectedIso.value = next.iso;\n const nextValue = e164For(next.dial, national.value);\n if (nextValue !== e164.value) controlled.setValue(nextValue);\n}\n\nfunction setDigits(digits: string): void {\n /* Deriving the country before the write keeps a shared dial code (+1 US / CA) on the reader's pick. */\n selectedIso.value = country.value.iso;\n const nextValue = e164For(country.value.dial, digits);\n if (nextValue !== e164.value) controlled.setValue(nextValue);\n}\n\n/* An international number replaces the whole field: an allowed dial prefix picks its country, any other keeps every\n digit as a foreign value, where the `phone()` rule reports it. Returns the text the field shows for it — computed\n here, since a controlled value reaches `displayed` only after the parent re-renders. */\nfunction setInternational(text: string): string {\n const parsed = PhoneNumberExtensions.parseInternational(text, allowed.value, country.value.iso);\n if (parsed.country) {\n const max = PhoneNumberExtensions.lengthOf(parsed.country).max;\n const digits = parsed.e164.slice(parsed.country.dial.length, parsed.country.dial.length + max);\n selectedIso.value = parsed.country.iso;\n const nextValue = e164For(parsed.country.dial, digits);\n if (nextValue !== e164.value) controlled.setValue(nextValue);\n return PhoneNumberExtensions.formatNational(digits, PhoneNumberExtensions.formatOf(parsed.country));\n }\n\n const nextValue = parsed.e164.length > 1 ? parsed.e164 : '';\n if (nextValue !== e164.value) controlled.setValue(nextValue);\n return nextValue.slice(1);\n}\n\n/* Replacement text (autofill, drop, an untyped `input`) may carry a full `+…` number; typed text never does. */\nconst ReplacementInputTypes: ReadonlySet<string | undefined> = new Set([\n undefined,\n 'insertReplacementText',\n 'insertFromDrop',\n 'insertFromPaste',\n]);\n\n/* The text is rewritten in place on every input: a rejected character changes no state, so Vue would leave it on\n screen. The caret goes back after the digit it followed. */\nfunction setNational(event: Event): void {\n const field = event.target as HTMLInputElement;\n const inputEvent = event as InputEvent;\n if (inputEvent.isComposing) return;\n\n if (ReplacementInputTypes.has(inputEvent.inputType) && field.value.trimStart().startsWith('+')) {\n field.value = setInternational(field.value);\n placeCaret(field, field.value.length);\n return;\n }\n\n const edit = PhoneNumberExtensions.editNational({\n text: field.value,\n caret: field.selectionStart ?? field.value.length,\n previousDigits: national.value,\n inputType: inputEvent.inputType,\n format: format.value,\n });\n field.value = edit.text;\n placeCaret(field, edit.caret);\n setDigits(edit.digits);\n}\n\n/* A pasted `+…` number is international; digits that spell the selected country's dial code and a full national\n number (`998996632582`) lose the dial code; any other paste inserts at the caret as digits. */\nfunction pasteNational(event: ClipboardEvent): void {\n const text = event.clipboardData?.getData('text') ?? '';\n const field = event.target as HTMLInputElement;\n if (text.trimStart().startsWith('+')) {\n event.preventDefault();\n field.value = setInternational(text);\n placeCaret(field, field.value.length);\n return;\n }\n\n const digits = PhoneNumberExtensions.digitsOf(text);\n const stripped = PhoneNumberExtensions.withoutDialCode(digits, country.value);\n if (stripped === digits) return;\n event.preventDefault();\n setDigits(stripped);\n field.value = PhoneNumberExtensions.formatNational(stripped, format.value);\n placeCaret(field, field.value.length);\n}\n\nfunction placeCaret(field: HTMLInputElement, caret: number): void {\n if (field.ownerDocument.activeElement === field) field.setSelectionRange(caret, caret);\n}\n\n/* The composite's focus is one focus: the root div never takes focus itself, so `focus` and `blur` follow the\n bubbling `focusin` / `focusout` of its parts and skip a move between them. A `null` related target (focus left\n for the body, or the window lost focus) counts as outside. */\nfunction isInside(event: FocusEvent): boolean {\n const root = event.currentTarget as HTMLElement;\n return event.relatedTarget instanceof Node && root.contains(event.relatedTarget);\n}\n\nfunction onFocusin(event: FocusEvent): void {\n if (!isInside(event)) emit('focus', event);\n}\n\nfunction onFocusout(event: FocusEvent): void {\n if (!isInside(event)) emit('blur', event);\n}\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst rootClass = computed(() =>\n cn(\n 'inline-flex h-10 items-stretch overflow-hidden rounded-md border bg-background',\n invalid.value ? 'border-destructive' : 'border-input',\n disabled.value && 'opacity-60',\n readOnly.value && 'bg-muted text-muted-foreground',\n attrs.class as ClassValue,\n ),\n);\n\n/* The frame is the medium input step (`h-10`, border included); its parts fill it rather than add their own height\n to the border. The country select is a native `<select>`, which has no `readonly`: a read-only phone input\n disables it, so it takes the frame's muted surface and the default cursor rather than the pointer. */\nconst selectClass = computed(() =>\n cn(\n 'h-full cursor-pointer border-r border-input bg-card pl-2 pr-1 text-sm outline-hidden focus-visible:ring-2 focus-visible:ring-ring',\n readOnly.value && 'cursor-default bg-muted text-muted-foreground',\n ),\n);\n\n/* One allowed country leaves nothing to pick: its flag and dial code sit in the select's place as plain text. */\nconst prefixClass = computed(() =>\n cn(\n 'flex h-full items-center border-r border-input bg-card px-2 text-sm',\n readOnly.value && 'bg-muted text-muted-foreground',\n ),\n);\n\nconst inputClass = cn(\n inputBaseVariants({ size: InputSize.Md }),\n 'h-full rounded-none border-0 focus-visible:ring-0 readonly:focus-visible:ring-0',\n);\n\nconst formResetAnchor = useTemplateRef<HTMLInputElement>('formResetAnchor');\nconst formResetRevision = useNativeFormReset(formResetAnchor, () => {\n controlled.reset();\n});\n\nconst locale = useLocale();\n</script>\n\n<template>\n <div\n :key=\"formResetRevision\"\n :data-readonly=\"readOnly || undefined\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n @focusin=\"onFocusin\"\n @focusout=\"onFocusout\"\n >\n <span v-if=\"allowed.length === 1\" :class=\"prefixClass\">{{ country.flag }} {{ country.dial }}</span>\n <select\n v-else\n :aria-label=\"locale.t('PhoneInput.country', undefined, 'Country')\"\n :value=\"iso\"\n :disabled=\"disabled || readOnly\"\n :class=\"selectClass\"\n :style=\"{ minWidth: '90px' }\"\n @change=\"setCountry\"\n >\n <option v-for=\"c in allowed\" :key=\"c.iso\" :value=\"c.iso\">{{ c.flag }} {{ c.dial }}</option>\n </select>\n <input\n type=\"tel\"\n inputmode=\"tel\"\n autocomplete=\"tel-national\"\n :id=\"ctx?.id\"\n :value=\"displayed\"\n :placeholder=\"placeholderText\"\n :disabled=\"disabled\"\n :readonly=\"readOnly\"\n :aria-invalid=\"invalid || undefined\"\n :aria-describedby=\"ctx?.describedBy\"\n :aria-required=\"ctx?.isRequired || undefined\"\n :class=\"inputClass\"\n @input=\"setNational\"\n @paste=\"pasteNational\"\n />\n <input\n v-if=\"name\"\n type=\"hidden\"\n :disabled=\"disabled\"\n :form=\"typeof $attrs.form === 'string' ? $attrs.form : undefined\"\n :name=\"name\"\n :value=\"e164\"\n />\n <input\n ref=\"formResetAnchor\"\n type=\"hidden\"\n :form=\"typeof $attrs.form === 'string' ? $attrs.form : undefined\"\n aria-hidden=\"true\"\n />\n </div>\n</template>\n"],"names":["nextValue","_openBlock","_createElementBlock","_mergeProps","_unref","_toDisplayString","_Fragment","_renderList","_createElementVNode","$attrs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,UAAM,QAAQ;AAWd,UAAM,OAAO;AASb,UAAM,QAAQ,SAAA;AAEd,UAAM,aAAa,cAAsB;AAAA,MACvC,YAAY,MAAM,MAAM;AAAA,MACxB,SAAS,MAAM,MAAM,gBAAgB;AAAA,MACrC,UAAU,CAAC,SAAS;AAClB,aAAK,qBAAqB,IAAI;AAAA,MAChC;AAAA,IAAA,CACD;AAED,UAAM,OAAO,WAAW;AAKxB,UAAM,MAAM,eAAA;AACZ,UAAM,WAAW,SAAS,MAAM,MAAM,cAAc,KAAK,UAAU;AACnE,UAAM,WAAW,SAAS,MAAM,MAAM,cAAc,KAAK,UAAU;AACnE,UAAM,UAAU,SAAS,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AA,QAAA;QAGF,QAAA,qBADRF,mBAOE,SAAA;AAAA;UALA,MAAK;AAAA,UACJ,UAAU,SAAA;AAAA,UACV,MAAI,OAASO,YAAO,oBAAoBA,KAAAA,OAAO,OAAO;AAAA,UACtD,MAAM,QAAA;AAAA,UACN,OAAOL,MAAA,IAAA;AAAA,QAAA;QAEVI,mBAKE,SAAA;AAAA,mBAJI;AAAA,UAAJ,KAAI;AAAA,UACJ,MAAK;AAAA,UACJ,MAAI,OAASC,YAAO,oBAAoBA,KAAAA,OAAO,OAAO;AAAA,UACvD,eAAY;AAAA,QAAA;;;;;"}
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, shallowRef, onScopeDispose, onMounted, watch, nextTick, openBlock, createElementBlock, toDisplayString } from "vue";
2
- import { useRoute } from "vue-router";
2
+ import { useRoute, useRouter, START_LOCATION } from "vue-router";
3
3
  import { deepestHandleValue, resolveHandleValue } from "../RouteHandles.js";
4
+ import { focusTarget } from "../../../../foundation/dom/FocusTarget.js";
4
5
  const _hoisted_1 = {
5
6
  "aria-live": "polite",
6
7
  "aria-atomic": "true",
@@ -8,9 +9,7 @@ const _hoisted_1 = {
8
9
  };
9
10
  function focusMainContent() {
10
11
  const target = document.getElementById("app-shell-main") ?? document.querySelector("main") ?? document.querySelector("h1");
11
- if (!target) return;
12
- target.tabIndex = -1;
13
- target.focus({ preventScroll: true });
12
+ if (target) focusTarget(target);
14
13
  }
15
14
  const _sfc_main = /* @__PURE__ */ defineComponent({
16
15
  ...{ name: "RouteAnnouncer" },
@@ -22,8 +21,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
21
  setup(__props) {
23
22
  const props = __props;
24
23
  const route = useRoute();
24
+ const router = useRouter();
25
25
  const message = shallowRef("");
26
26
  let lastPath = null;
27
+ let isInitialPending = false;
27
28
  let generation = 0;
28
29
  let disposed = false;
29
30
  onScopeDispose(() => {
@@ -32,13 +33,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
33
  });
33
34
  onMounted(() => {
34
35
  const announcesInitial = props.canAnnounceInitial ?? !(props.skipInitial ?? true);
36
+ if (router.currentRoute.value === START_LOCATION) {
37
+ isInitialPending = true;
38
+ const settleInitial = () => {
39
+ isInitialPending = false;
40
+ if (disposed) return;
41
+ if (announcesInitial) void announce(route.path);
42
+ else lastPath = route.path;
43
+ };
44
+ router.isReady().then(settleInitial, settleInitial);
45
+ return;
46
+ }
35
47
  lastPath = announcesInitial ? null : route.path;
36
48
  if (announcesInitial) void announce(route.path);
37
49
  });
38
50
  watch(
39
51
  () => route.path,
40
52
  (path) => {
41
- if (lastPath === path) return;
53
+ if (isInitialPending || lastPath === path) return;
42
54
  void announce(path);
43
55
  },
44
56
  { flush: "post" }
@@ -1 +1 @@
1
- {"version":3,"file":"RouteAnnouncer.vue.js","sources":["../../../../../src/router/adapters/vueRouter/routeAnnouncer/RouteAnnouncer.vue"],"sourcesContent":["<script lang=\"ts\">\n/** Defines the props for {@link RouteAnnouncer}. */\nexport interface RouteAnnouncerProps {\n /** Whether the very first mount resets focus and announces the route too. Default `false`. */\n readonly canAnnounceInitial?: boolean;\n /** @deprecated Use `canAnnounceInitial` (inverted); this alias is removed next release. */\n readonly skipInitial?: boolean;\n}\n\n/** Moves keyboard and screen-reader focus to main content — the shell `<main>`, else any `<main>`, else `<h1>`. */\nfunction focusMainContent(): void {\n const target =\n document.getElementById('app-shell-main') ??\n document.querySelector<HTMLElement>('main') ??\n document.querySelector<HTMLElement>('h1');\n if (!target) return;\n target.tabIndex = -1;\n target.focus({ preventScroll: true });\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { nextTick, onMounted, onScopeDispose, shallowRef, watch } from 'vue';\nimport { useRoute } from 'vue-router';\n\nimport { deepestHandleValue, resolveHandleValue } from '../RouteHandles';\n\n/**\n * Renders a polite, visually-hidden live region that announces the newly navigated page title and resets\n * focus to the main content; skips the first mount.\n *\n * Unlike the other root behaviors this stays a COMPONENT rather than becoming a router hook — it\n * owns a live region in the DOM, so it has to render.\n */\ndefineOptions({ name: 'RouteAnnouncer' });\n\nconst props = withDefaults(defineProps<RouteAnnouncerProps>(), {\n canAnnounceInitial: undefined,\n skipInitial: undefined,\n});\n\nconst route = useRoute();\nconst message = shallowRef('');\n\n// Keyed on `path` — not `fullPath` — so search/hash-only updates (a filter input syncing through\n// `router.replace`) never yank focus back to main mid-interaction. React needed a ref to absorb\n// StrictMode's double-invoked mount effect; a non-immediate watcher cannot double-fire.\nlet lastPath: string | null = null;\nlet generation = 0;\nlet disposed = false;\nonScopeDispose(() => {\n disposed = true;\n generation += 1;\n});\n\n// `onMounted` never runs on the server, which is what this needs: it reads and focuses the DOM.\nonMounted(() => {\n const announcesInitial = props.canAnnounceInitial ?? !(props.skipInitial ?? true);\n lastPath = announcesInitial ? null : route.path;\n if (announcesInitial) void announce(route.path);\n});\n\nwatch(\n () => route.path,\n (path) => {\n if (lastPath === path) return;\n void announce(path);\n },\n { flush: 'post' },\n);\n\nasync function announce(path: string): Promise<void> {\n const current = ++generation;\n lastPath = path;\n // Clear the live region so adjacent pages with the same title still announce once.\n message.value = '';\n await nextTick();\n if (disposed || current !== generation || route.path !== path) return;\n focusMainContent();\n message.value = deepestHandleValue(route, (handle) => resolveHandleValue(handle.title, route)) ?? document.title;\n}\n</script>\n\n<template>\n <div aria-live=\"polite\" aria-atomic=\"true\" class=\"sr-only\">{{ message }}</div>\n</template>\n"],"names":["_createElementBlock","_toDisplayString"],"mappings":";;;;;;;;AAUA,SAAS,mBAAyB;AAChC,QAAM,SACJ,SAAS,eAAe,gBAAgB,KACxC,SAAS,cAA2B,MAAM,KAC1C,SAAS,cAA2B,IAAI;AAC1C,MAAI,CAAC,OAAQ;AACb,SAAO,WAAW;AAClB,SAAO,MAAM,EAAE,eAAe,KAAA,CAAM;AACtC;;;;;;;;;AAkBA,UAAM,QAAQ;AAKd,UAAM,QAAQ,SAAA;AACd,UAAM,UAAU,WAAW,EAAE;AAK7B,QAAI,WAA0B;AAC9B,QAAI,aAAa;AACjB,QAAI,WAAW;AACf,mBAAe,MAAM;AACnB,iBAAW;AACX,oBAAc;AAAA,IAChB,CAAC;AAGD,cAAU,MAAM;AACd,YAAM,mBAAmB,MAAM,sBAAsB,EAAE,MAAM,eAAe;AAC5E,iBAAW,mBAAmB,OAAO,MAAM;AAC3C,UAAI,iBAAkB,MAAK,SAAS,MAAM,IAAI;AAAA,IAChD,CAAC;AAED;AAAA,MACE,MAAM,MAAM;AAAA,MACZ,CAAC,SAAS;AACR,YAAI,aAAa,KAAM;AACvB,aAAK,SAAS,IAAI;AAAA,MACpB;AAAA,MACA,EAAE,OAAO,OAAA;AAAA,IAAO;AAGlB,mBAAe,SAAS,MAA6B;AACnD,YAAM,UAAU,EAAE;AAClB,iBAAW;AAEX,cAAQ,QAAQ;AAChB,YAAM,SAAA;AACN,UAAI,YAAY,YAAY,cAAc,MAAM,SAAS,KAAM;AAC/D,uBAAA;AACA,cAAQ,QAAQ,mBAAmB,OAAO,CAAC,WAAW,mBAAmB,OAAO,OAAO,KAAK,CAAC,KAAK,SAAS;AAAA,IAC7G;;0BAIEA,mBAA8E,OAA9E,YAA8EC,gBAAhB,QAAA,KAAO,GAAA,CAAA;AAAA;;;"}
1
+ {"version":3,"file":"RouteAnnouncer.vue.js","sources":["../../../../../src/router/adapters/vueRouter/routeAnnouncer/RouteAnnouncer.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { focusTarget } from '../../../../foundation/dom';\n\n/** Defines the props for {@link RouteAnnouncer}. */\nexport interface RouteAnnouncerProps {\n /** Whether the very first mount resets focus and announces the route too. Default `false`. */\n readonly canAnnounceInitial?: boolean;\n /** @deprecated Use `canAnnounceInitial` (inverted); this alias is removed next release. */\n readonly skipInitial?: boolean;\n}\n\n/**\n * Moves keyboard and screen-reader focus to main content — the shell `<main>`, else any `<main>`, else `<h1>` — as a\n * programmatic focus target, which draws no focus ring.\n */\nfunction focusMainContent(): void {\n const target =\n document.getElementById('app-shell-main') ??\n document.querySelector<HTMLElement>('main') ??\n document.querySelector<HTMLElement>('h1');\n if (target) focusTarget(target);\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { nextTick, onMounted, onScopeDispose, shallowRef, watch } from 'vue';\nimport { START_LOCATION, useRoute, useRouter } from 'vue-router';\n\nimport { deepestHandleValue, resolveHandleValue } from '../RouteHandles';\n\n/**\n * Renders a polite, visually-hidden live region that announces the newly navigated page title and resets\n * focus to the main content; skips the initial page, including a first navigation still resolving at mount.\n *\n * Unlike the other root behaviors this stays a COMPONENT rather than becoming a router hook — it\n * owns a live region in the DOM, so it has to render.\n */\ndefineOptions({ name: 'RouteAnnouncer' });\n\nconst props = withDefaults(defineProps<RouteAnnouncerProps>(), {\n canAnnounceInitial: undefined,\n skipInitial: undefined,\n});\n\nconst route = useRoute();\nconst router = useRouter();\nconst message = shallowRef('');\n\n// Keyed on `path` — not `fullPath` — so search/hash-only updates (a filter input syncing through\n// `router.replace`) never yank focus back to main mid-interaction. React needed a ref to absorb\n// StrictMode's double-invoked mount effect; a non-immediate watcher cannot double-fire.\nlet lastPath: string | null = null;\nlet isInitialPending = false;\nlet generation = 0;\nlet disposed = false;\nonScopeDispose(() => {\n disposed = true;\n generation += 1;\n});\n\n// `onMounted` never runs on the server, which is what this needs: it reads and focuses the DOM.\nonMounted(() => {\n const announcesInitial = props.canAnnounceInitial ?? !(props.skipInitial ?? true);\n // An app that mounts before its first navigation resolves (no `await router.isReady()`) still sits on\n // `START_LOCATION` here. That first navigation is the initial page, not a path change: settle on it once the\n // router is ready, in whichever order its path watcher and `isReady` land.\n if (router.currentRoute.value === START_LOCATION) {\n isInitialPending = true;\n const settleInitial = (): void => {\n isInitialPending = false;\n if (disposed) return;\n if (announcesInitial) void announce(route.path);\n else lastPath = route.path;\n };\n router.isReady().then(settleInitial, settleInitial);\n return;\n }\n lastPath = announcesInitial ? null : route.path;\n if (announcesInitial) void announce(route.path);\n});\n\nwatch(\n () => route.path,\n (path) => {\n if (isInitialPending || lastPath === path) return;\n void announce(path);\n },\n { flush: 'post' },\n);\n\nasync function announce(path: string): Promise<void> {\n const current = ++generation;\n lastPath = path;\n // Clear the live region so adjacent pages with the same title still announce once.\n message.value = '';\n await nextTick();\n if (disposed || current !== generation || route.path !== path) return;\n focusMainContent();\n message.value = deepestHandleValue(route, (handle) => resolveHandleValue(handle.title, route)) ?? document.title;\n}\n</script>\n\n<template>\n <div aria-live=\"polite\" aria-atomic=\"true\" class=\"sr-only\">{{ message }}</div>\n</template>\n"],"names":["_createElementBlock","_toDisplayString"],"mappings":";;;;;;;;;AAeA,SAAS,mBAAyB;AAChC,QAAM,SACJ,SAAS,eAAe,gBAAgB,KACxC,SAAS,cAA2B,MAAM,KAC1C,SAAS,cAA2B,IAAI;AAC1C,MAAI,oBAAoB,MAAM;AAChC;;;;;;;;;AAkBA,UAAM,QAAQ;AAKd,UAAM,QAAQ,SAAA;AACd,UAAM,SAAS,UAAA;AACf,UAAM,UAAU,WAAW,EAAE;AAK7B,QAAI,WAA0B;AAC9B,QAAI,mBAAmB;AACvB,QAAI,aAAa;AACjB,QAAI,WAAW;AACf,mBAAe,MAAM;AACnB,iBAAW;AACX,oBAAc;AAAA,IAChB,CAAC;AAGD,cAAU,MAAM;AACd,YAAM,mBAAmB,MAAM,sBAAsB,EAAE,MAAM,eAAe;AAI5E,UAAI,OAAO,aAAa,UAAU,gBAAgB;AAChD,2BAAmB;AACnB,cAAM,gBAAgB,MAAY;AAChC,6BAAmB;AACnB,cAAI,SAAU;AACd,cAAI,iBAAkB,MAAK,SAAS,MAAM,IAAI;AAAA,0BAC9B,MAAM;AAAA,QACxB;AACA,eAAO,QAAA,EAAU,KAAK,eAAe,aAAa;AAClD;AAAA,MACF;AACA,iBAAW,mBAAmB,OAAO,MAAM;AAC3C,UAAI,iBAAkB,MAAK,SAAS,MAAM,IAAI;AAAA,IAChD,CAAC;AAED;AAAA,MACE,MAAM,MAAM;AAAA,MACZ,CAAC,SAAS;AACR,YAAI,oBAAoB,aAAa,KAAM;AAC3C,aAAK,SAAS,IAAI;AAAA,MACpB;AAAA,MACA,EAAE,OAAO,OAAA;AAAA,IAAO;AAGlB,mBAAe,SAAS,MAA6B;AACnD,YAAM,UAAU,EAAE;AAClB,iBAAW;AAEX,cAAQ,QAAQ;AAChB,YAAM,SAAA;AACN,UAAI,YAAY,YAAY,cAAc,MAAM,SAAS,KAAM;AAC/D,uBAAA;AACA,cAAQ,QAAQ,mBAAmB,OAAO,CAAC,WAAW,mBAAmB,OAAO,OAAO,KAAK,CAAC,KAAK,SAAS;AAAA,IAC7G;;0BAIEA,mBAA8E,OAA9E,YAA8EC,gBAAhB,QAAA,KAAO,GAAA,CAAA;AAAA;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wow-two-beta/fe",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "description": "Beta-forever Vue 3 fe sdk for the wow-two ecosystem — components, application adapters and browser capabilities.",
5
5
  "license": "MIT",
6
6
  "repository": {