@leavepulse/ui 0.22.17 → 0.22.18

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.
@@ -7,7 +7,7 @@ import { _ as _sfc_main$1 } from "./LpFormField-Bn-ZwC6z.js";
7
7
  import { _ as _sfc_main$4 } from "./LpIcon-CCnX5_2j.js";
8
8
  import { _ as _sfc_main$5 } from "./LpInput-BkomKdqQ.js";
9
9
  import { _ as _sfc_main$7 } from "./LpModal-CNNSf5pv.js";
10
- import { _ as _sfc_main$6 } from "./LpSelect-D5mU4cZO.js";
10
+ import { _ as _sfc_main$6 } from "./LpSelect-C0QqopPi.js";
11
11
  const _hoisted_1 = { class: "flex flex-col gap-3" };
12
12
  const _hoisted_2 = { class: "flex items-stretch gap-2" };
13
13
  const _hoisted_3 = { class: "grid gap-3 sm:grid-cols-[minmax(0,1fr)_10rem]" };
@@ -69,9 +69,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
69
  function decode(v) {
70
70
  return v === EMPTY_SENTINEL ? "" : v;
71
71
  }
72
+ const hasEmptyOption = computed(
73
+ () => props.options.some((o) => o.value === "")
74
+ );
72
75
  const comboModel = computed(() => {
73
76
  const v = props.modelValue;
74
77
  if (Array.isArray(v)) return v.map((item) => encode(item));
78
+ if (v === "" && !hasEmptyOption.value) return void 0;
75
79
  return encode(v);
76
80
  });
77
81
  const filtered = computed(() => {
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "../chunks/LpAddressInput-C_zAwi_5.js";
1
+ import { _ as _sfc_main } from "../chunks/LpAddressInput-DYN7a67n.js";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "../chunks/LpSelect-D5mU4cZO.js";
1
+ import { _ as _sfc_main } from "../chunks/LpSelect-C0QqopPi.js";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { _ } from "./chunks/LayoutCanvas-Dd20boUG.js";
2
- import { _ as _2 } from "./chunks/LpAddressInput-C_zAwi_5.js";
2
+ import { _ as _2 } from "./chunks/LpAddressInput-DYN7a67n.js";
3
3
  import { _ as _3 } from "./chunks/LpMapPicker-DFKrd1Ne.js";
4
4
  import { OSM_TILES, createNominatimProvider, emptyAddress, formatAddress, project, tileUrl, unproject } from "./components/address.js";
5
5
  import { _ as _4 } from "./chunks/LpAlert-BAYHDSS1.js";
@@ -46,7 +46,7 @@ import { _ as _40 } from "./chunks/LpRadio-CL-pI0_O.js";
46
46
  import { _ as _41 } from "./chunks/LpRadioGroup-B4yDTmi6.js";
47
47
  import { _ as _42 } from "./chunks/LpScrollArea-D8xyKXcF.js";
48
48
  import { _ as _43 } from "./chunks/LpSegmented-BmpanyAo.js";
49
- import { _ as _44 } from "./chunks/LpSelect-D5mU4cZO.js";
49
+ import { _ as _44 } from "./chunks/LpSelect-C0QqopPi.js";
50
50
  import { _ as _45 } from "./chunks/LpServiceNode-D8uJ8sGk.js";
51
51
  import { default as default3 } from "./components/LpShortcutsDialog.vue.js";
52
52
  import { _ as _46 } from "./chunks/LpSidebar-D3GGLSE7.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leavepulse/ui",
3
- "version": "0.22.17",
3
+ "version": "0.22.18",
4
4
  "type": "module",
5
5
  "description": "LeavePulse token-driven Vue component kit.",
6
6
  "repository": {
Binary file