@leavepulse/ui 0.77.2 → 0.77.3
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.
- package/dist/chunks/{LpAddressInput-sYMvYzcY.js → LpAddressInput-E8KtwU7-.js} +1 -1
- package/dist/chunks/{LpAutocomplete-DOu7FN5P.js → LpAutocomplete-C-SpPfBG.js} +2 -0
- package/dist/components/LpAddressInput.vue.js +1 -1
- package/dist/components/LpAutocomplete.vue.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/components/LpAutocomplete.vue +5 -0
|
@@ -2,7 +2,7 @@ import { defineComponent, defineAsyncComponent, computed, watch, ref, onMounted,
|
|
|
2
2
|
import { useAsyncTask } from "../composables/useAsyncTask.js";
|
|
3
3
|
import { OSM_TILES, createNominatimProvider, emptyAddress, formatAddress } from "../components/address.js";
|
|
4
4
|
import { flagEmoji, loadCountries } from "../components/countries.js";
|
|
5
|
-
import { _ as _sfc_main$2 } from "./LpAutocomplete-
|
|
5
|
+
import { _ as _sfc_main$2 } from "./LpAutocomplete-C-SpPfBG.js";
|
|
6
6
|
import { _ as _sfc_main$3 } from "./LpButton-CFb44IjC.js";
|
|
7
7
|
import { _ as _sfc_main$1 } from "./LpFormField-Ch69Jd-X.js";
|
|
8
8
|
import { _ as _sfc_main$4 } from "./LpIcon--5WSb3jJ.js";
|
|
@@ -269,6 +269,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
269
269
|
"side-offset": 6,
|
|
270
270
|
class: normalizeClass([unref(POPOVER_PANEL), "z-(--z-popover) max-h-72 w-(--reka-combobox-trigger-width) overflow-hidden"]),
|
|
271
271
|
onOpenAutoFocus: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
272
|
+
}, ["prevent"])),
|
|
273
|
+
onMousedown: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
272
274
|
}, ["prevent"]))
|
|
273
275
|
}, {
|
|
274
276
|
default: withCtx(() => [
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { _ } from "./chunks/LayoutCanvas-CNOAUk7D.js";
|
|
2
|
-
import { _ as _2 } from "./chunks/LpAddressInput-
|
|
2
|
+
import { _ as _2 } from "./chunks/LpAddressInput-E8KtwU7-.js";
|
|
3
3
|
import { _ as _3 } from "./chunks/LpMapPicker-DRGgh89B.js";
|
|
4
4
|
import { OSM_TILES, createNominatimProvider, emptyAddress, formatAddress, project, tileUrl, unproject } from "./components/address.js";
|
|
5
5
|
import { _ as _4 } from "./chunks/LpActionBar-BP1ld7-S.js";
|
|
6
6
|
import { _ as _5 } from "./chunks/LpAlert-n5XPAZfv.js";
|
|
7
7
|
import { _ as _6 } from "./chunks/LpAppShell-Dgejipzz.js";
|
|
8
|
-
import { _ as _7 } from "./chunks/LpAutocomplete-
|
|
8
|
+
import { _ as _7 } from "./chunks/LpAutocomplete-C-SpPfBG.js";
|
|
9
9
|
import { _ as _8 } from "./chunks/LpAvatar-Cg6Az3wz.js";
|
|
10
10
|
import { _ as _9 } from "./chunks/LpBadge-wUYLN4U9.js";
|
|
11
11
|
import { _ as _10 } from "./chunks/LpBreadcrumbs-DPdbth-c.js";
|
package/package.json
CHANGED
|
@@ -389,6 +389,10 @@ usePaletteControl({ disabled: () => field.value.disabled, invalid: () => field.v
|
|
|
389
389
|
</button>
|
|
390
390
|
</ComboboxAnchor>
|
|
391
391
|
|
|
392
|
+
<!-- A press on the list keeps focus in the field. Otherwise the field
|
|
393
|
+
blurs before the click lands, and a host that settles its text on
|
|
394
|
+
blur (back to the last pick) empties the list under the pointer: the
|
|
395
|
+
option clicked is gone and the choice is lost. -->
|
|
392
396
|
<ComboboxPortal :to="portalTo">
|
|
393
397
|
<ComboboxContent
|
|
394
398
|
@interact-outside="guardOutside"
|
|
@@ -398,6 +402,7 @@ usePaletteControl({ disabled: () => field.value.disabled, invalid: () => field.v
|
|
|
398
402
|
:side-offset="6"
|
|
399
403
|
:class="[POPOVER_PANEL, 'z-(--z-popover) max-h-72 w-(--reka-combobox-trigger-width) overflow-hidden']"
|
|
400
404
|
@open-auto-focus.prevent
|
|
405
|
+
@mousedown.prevent
|
|
401
406
|
>
|
|
402
407
|
<ComboboxViewport class="max-h-72 overflow-y-auto p-1">
|
|
403
408
|
<div v-if="loading" class="px-3 py-4 text-center text-sm italic text-muted">
|