@mekari/pixel3-autocomplete 0.0.17-dev.0 → 0.0.17-dev.2

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.
@@ -254,14 +254,14 @@ declare const MpAutocomplete: vue.DefineComponent<{
254
254
  default: boolean;
255
255
  };
256
256
  }>> & {
257
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
258
- onInput?: ((...args: any[]) => any) | undefined;
257
+ onFocus?: ((...args: any[]) => any) | undefined;
259
258
  onChange?: ((...args: any[]) => any) | undefined;
259
+ onInput?: ((...args: any[]) => any) | undefined;
260
+ onClear?: ((...args: any[]) => any) | undefined;
261
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
260
262
  onEnter?: ((...args: any[]) => any) | undefined;
261
263
  onScrollEnd?: ((...args: any[]) => any) | undefined;
262
264
  onButtonAction?: ((...args: any[]) => any) | undefined;
263
- onFocus?: ((...args: any[]) => any) | undefined;
264
- onClear?: ((...args: any[]) => any) | undefined;
265
265
  }, {
266
266
  id: string;
267
267
  data: unknown[];
@@ -254,14 +254,14 @@ declare const MpAutocomplete: vue.DefineComponent<{
254
254
  default: boolean;
255
255
  };
256
256
  }>> & {
257
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
258
- onInput?: ((...args: any[]) => any) | undefined;
257
+ onFocus?: ((...args: any[]) => any) | undefined;
259
258
  onChange?: ((...args: any[]) => any) | undefined;
259
+ onInput?: ((...args: any[]) => any) | undefined;
260
+ onClear?: ((...args: any[]) => any) | undefined;
261
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
260
262
  onEnter?: ((...args: any[]) => any) | undefined;
261
263
  onScrollEnd?: ((...args: any[]) => any) | undefined;
262
264
  onButtonAction?: ((...args: any[]) => any) | undefined;
263
- onFocus?: ((...args: any[]) => any) | undefined;
264
- onClear?: ((...args: any[]) => any) | undefined;
265
265
  }, {
266
266
  id: string;
267
267
  data: unknown[];
@@ -268,7 +268,7 @@ function useAutocomplete(props, emit) {
268
268
  __name(onOpenPopover, "onOpenPopover");
269
269
  function onBlur() {
270
270
  isPopoverOpen.value = false;
271
- const inputEl = document.getElementById(`${getId}-control`);
271
+ const inputEl = document.getElementById(`${getId}`);
272
272
  inputEl == null ? void 0 : inputEl.blur();
273
273
  if (isInfinityScroll.value) {
274
274
  disableIntersectionObserver();
@@ -321,7 +321,7 @@ function useAutocomplete(props, emit) {
321
321
  }
322
322
  __name(onModelValueChange, "onModelValueChange");
323
323
  function handleForceFocusToInput() {
324
- const inputEl = document.getElementById(`${getId}-control`);
324
+ const inputEl = document.getElementById(`${getId}`);
325
325
  inputEl == null ? void 0 : inputEl.focus();
326
326
  }
327
327
  __name(handleForceFocusToInput, "handleForceFocusToInput");
@@ -463,8 +463,9 @@ function useAutocomplete(props, emit) {
463
463
  },
464
464
  onClear: (e) => {
465
465
  onSelectListItem("");
466
- const inputEl = document.getElementById(`${getId}-control`);
467
- inputEl.value = "";
466
+ const inputEl = document.getElementById(`${getId}`);
467
+ if (inputEl)
468
+ inputEl.value = "";
468
469
  emit("clear", e);
469
470
  }
470
471
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MpAutocomplete
3
- } from "./chunk-LYRFHUJ3.mjs";
4
- import "./chunk-INYWMPCZ.mjs";
3
+ } from "./chunk-R5D752AH.mjs";
4
+ import "./chunk-5TPEEDUH.mjs";
5
5
  import "./chunk-Q7SGQCOH.mjs";
6
6
  import "./chunk-QZ7VFGWC.mjs";
7
7
  export {
@@ -117,7 +117,7 @@ function useAutocomplete(props, emit) {
117
117
  __name(onOpenPopover, "onOpenPopover");
118
118
  function onBlur() {
119
119
  isPopoverOpen.value = false;
120
- const inputEl = document.getElementById(`${getId}-control`);
120
+ const inputEl = document.getElementById(`${getId}`);
121
121
  inputEl == null ? void 0 : inputEl.blur();
122
122
  if (isInfinityScroll.value) {
123
123
  disableIntersectionObserver();
@@ -170,7 +170,7 @@ function useAutocomplete(props, emit) {
170
170
  }
171
171
  __name(onModelValueChange, "onModelValueChange");
172
172
  function handleForceFocusToInput() {
173
- const inputEl = document.getElementById(`${getId}-control`);
173
+ const inputEl = document.getElementById(`${getId}`);
174
174
  inputEl == null ? void 0 : inputEl.focus();
175
175
  }
176
176
  __name(handleForceFocusToInput, "handleForceFocusToInput");
@@ -312,8 +312,9 @@ function useAutocomplete(props, emit) {
312
312
  },
313
313
  onClear: (e) => {
314
314
  onSelectListItem("");
315
- const inputEl = document.getElementById(`${getId}-control`);
316
- inputEl.value = "";
315
+ const inputEl = document.getElementById(`${getId}`);
316
+ if (inputEl)
317
+ inputEl.value = "";
317
318
  emit("clear", e);
318
319
  }
319
320
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useAutocomplete
3
- } from "./chunk-INYWMPCZ.mjs";
3
+ } from "./chunk-5TPEEDUH.mjs";
4
4
  import {
5
5
  autocompleteProps
6
6
  } from "./chunk-Q7SGQCOH.mjs";
package/dist/index.js CHANGED
@@ -270,7 +270,7 @@ function useAutocomplete(props, emit) {
270
270
  __name(onOpenPopover, "onOpenPopover");
271
271
  function onBlur() {
272
272
  isPopoverOpen.value = false;
273
- const inputEl = document.getElementById(`${getId}-control`);
273
+ const inputEl = document.getElementById(`${getId}`);
274
274
  inputEl == null ? void 0 : inputEl.blur();
275
275
  if (isInfinityScroll.value) {
276
276
  disableIntersectionObserver();
@@ -323,7 +323,7 @@ function useAutocomplete(props, emit) {
323
323
  }
324
324
  __name(onModelValueChange, "onModelValueChange");
325
325
  function handleForceFocusToInput() {
326
- const inputEl = document.getElementById(`${getId}-control`);
326
+ const inputEl = document.getElementById(`${getId}`);
327
327
  inputEl == null ? void 0 : inputEl.focus();
328
328
  }
329
329
  __name(handleForceFocusToInput, "handleForceFocusToInput");
@@ -465,8 +465,9 @@ function useAutocomplete(props, emit) {
465
465
  },
466
466
  onClear: (e) => {
467
467
  onSelectListItem("");
468
- const inputEl = document.getElementById(`${getId}-control`);
469
- inputEl.value = "";
468
+ const inputEl = document.getElementById(`${getId}`);
469
+ if (inputEl)
470
+ inputEl.value = "";
470
471
  emit("clear", e);
471
472
  }
472
473
  };
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MpAutocomplete
3
- } from "./chunk-LYRFHUJ3.mjs";
4
- import "./chunk-INYWMPCZ.mjs";
3
+ } from "./chunk-R5D752AH.mjs";
4
+ import "./chunk-5TPEEDUH.mjs";
5
5
  import "./chunk-Q7SGQCOH.mjs";
6
6
  import "./chunk-QZ7VFGWC.mjs";
7
7
  export {
@@ -1 +1 @@
1
- {"inputs":{"src/modules/autocomplete.props.ts":{"bytes":3480,"imports":[],"format":"esm"},"src/modules/autocomplete.hooks.ts":{"bytes":12678,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/autocomplete.tsx":{"bytes":5127,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-input","kind":"import-statement","external":true},{"path":"@mekari/pixel3-spinner","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"src/modules/autocomplete.props.ts","kind":"import-statement","original":"./modules/autocomplete.props"},{"path":"src/modules/autocomplete.hooks.ts","kind":"import-statement","original":"./modules/autocomplete.hooks"},{"path":"@mekari/pixel3-styled-system/patterns","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":133,"imports":[{"path":"src/autocomplete.tsx","kind":"import-statement","original":"./autocomplete"}],"format":"esm"}},"outputs":{"dist/autocomplete.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-popover","kind":"require-call","external":true},{"path":"@mekari/pixel3-input","kind":"require-call","external":true},{"path":"@mekari/pixel3-spinner","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true},{"path":"@mekari/pixel3-text","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/autocomplete.tsx","inputs":{"src/autocomplete.tsx":{"bytesInOutput":5506},"src/modules/autocomplete.props.ts":{"bytesInOutput":1882},"src/modules/autocomplete.hooks.ts":{"bytesInOutput":12727}},"bytes":21238},"dist/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-popover","kind":"require-call","external":true},{"path":"@mekari/pixel3-input","kind":"require-call","external":true},{"path":"@mekari/pixel3-spinner","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true},{"path":"@mekari/pixel3-text","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":133},"src/autocomplete.tsx":{"bytesInOutput":5346},"src/modules/autocomplete.props.ts":{"bytesInOutput":1882},"src/modules/autocomplete.hooks.ts":{"bytesInOutput":12727}},"bytes":21228},"dist/modules/autocomplete.hooks.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/autocomplete.hooks.ts","inputs":{"src/modules/autocomplete.hooks.ts":{"bytesInOutput":12907}},"bytes":13943},"dist/modules/autocomplete.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/autocomplete.props.ts","inputs":{"src/modules/autocomplete.props.ts":{"bytesInOutput":2231}},"bytes":3199}}}
1
+ {"inputs":{"src/modules/autocomplete.props.ts":{"bytes":3480,"imports":[],"format":"esm"},"src/modules/autocomplete.hooks.ts":{"bytes":12667,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/autocomplete.tsx":{"bytes":5127,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-input","kind":"import-statement","external":true},{"path":"@mekari/pixel3-spinner","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"src/modules/autocomplete.props.ts","kind":"import-statement","original":"./modules/autocomplete.props"},{"path":"src/modules/autocomplete.hooks.ts","kind":"import-statement","original":"./modules/autocomplete.hooks"},{"path":"@mekari/pixel3-styled-system/patterns","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":133,"imports":[{"path":"src/autocomplete.tsx","kind":"import-statement","original":"./autocomplete"}],"format":"esm"}},"outputs":{"dist/autocomplete.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-popover","kind":"require-call","external":true},{"path":"@mekari/pixel3-input","kind":"require-call","external":true},{"path":"@mekari/pixel3-spinner","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true},{"path":"@mekari/pixel3-text","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/autocomplete.tsx","inputs":{"src/autocomplete.tsx":{"bytesInOutput":5506},"src/modules/autocomplete.props.ts":{"bytesInOutput":1882},"src/modules/autocomplete.hooks.ts":{"bytesInOutput":12726}},"bytes":21237},"dist/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-popover","kind":"require-call","external":true},{"path":"@mekari/pixel3-input","kind":"require-call","external":true},{"path":"@mekari/pixel3-spinner","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true},{"path":"@mekari/pixel3-text","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":133},"src/autocomplete.tsx":{"bytesInOutput":5346},"src/modules/autocomplete.props.ts":{"bytesInOutput":1882},"src/modules/autocomplete.hooks.ts":{"bytesInOutput":12726}},"bytes":21227},"dist/modules/autocomplete.hooks.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/autocomplete.hooks.ts","inputs":{"src/modules/autocomplete.hooks.ts":{"bytesInOutput":12906}},"bytes":13942},"dist/modules/autocomplete.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/autocomplete.props.ts","inputs":{"src/modules/autocomplete.props.ts":{"bytesInOutput":2231}},"bytes":3199}}}
@@ -1 +1 @@
1
- {"inputs":{"src/modules/autocomplete.props.ts":{"bytes":3480,"imports":[],"format":"esm"},"src/modules/autocomplete.hooks.ts":{"bytes":12678,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/autocomplete.tsx":{"bytes":5127,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-input","kind":"import-statement","external":true},{"path":"@mekari/pixel3-spinner","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"src/modules/autocomplete.props.ts","kind":"import-statement","original":"./modules/autocomplete.props"},{"path":"src/modules/autocomplete.hooks.ts","kind":"import-statement","original":"./modules/autocomplete.hooks"},{"path":"@mekari/pixel3-styled-system/patterns","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":133,"imports":[{"path":"src/autocomplete.tsx","kind":"import-statement","original":"./autocomplete"}],"format":"esm"}},"outputs":{"dist/autocomplete.mjs":{"imports":[{"path":"dist/chunk-LYRFHUJ3.mjs","kind":"import-statement"},{"path":"dist/chunk-INYWMPCZ.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7SGQCOH.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpAutocomplete"],"entryPoint":"src/autocomplete.tsx","inputs":{},"bytes":179},"dist/index.mjs":{"imports":[{"path":"dist/chunk-LYRFHUJ3.mjs","kind":"import-statement"},{"path":"dist/chunk-INYWMPCZ.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7SGQCOH.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpAutocomplete"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":179},"dist/chunk-LYRFHUJ3.mjs":{"imports":[{"path":"dist/chunk-INYWMPCZ.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7SGQCOH.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-input","kind":"import-statement","external":true},{"path":"@mekari/pixel3-spinner","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["MpAutocomplete"],"inputs":{"src/autocomplete.tsx":{"bytesInOutput":4625}},"bytes":4798},"dist/modules/autocomplete.hooks.mjs":{"imports":[{"path":"dist/chunk-INYWMPCZ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["useAutocomplete"],"entryPoint":"src/modules/autocomplete.hooks.ts","inputs":{},"bytes":121},"dist/chunk-INYWMPCZ.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true}],"exports":["useAutocomplete"],"inputs":{"src/modules/autocomplete.hooks.ts":{"bytesInOutput":12099}},"bytes":12217},"dist/modules/autocomplete.props.mjs":{"imports":[{"path":"dist/chunk-Q7SGQCOH.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["autocompleteEmit","autocompleteProps"],"entryPoint":"src/modules/autocomplete.props.ts","inputs":{},"bytes":165},"dist/chunk-Q7SGQCOH.mjs":{"imports":[],"exports":["autocompleteEmit","autocompleteProps"],"inputs":{"src/modules/autocomplete.props.ts":{"bytesInOutput":2003}},"bytes":2093},"dist/chunk-QZ7VFGWC.mjs":{"imports":[],"exports":["__name"],"inputs":{},"bytes":151}}}
1
+ {"inputs":{"src/modules/autocomplete.props.ts":{"bytes":3480,"imports":[],"format":"esm"},"src/modules/autocomplete.hooks.ts":{"bytes":12667,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/autocomplete.tsx":{"bytes":5127,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-input","kind":"import-statement","external":true},{"path":"@mekari/pixel3-spinner","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"src/modules/autocomplete.props.ts","kind":"import-statement","original":"./modules/autocomplete.props"},{"path":"src/modules/autocomplete.hooks.ts","kind":"import-statement","original":"./modules/autocomplete.hooks"},{"path":"@mekari/pixel3-styled-system/patterns","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":133,"imports":[{"path":"src/autocomplete.tsx","kind":"import-statement","original":"./autocomplete"}],"format":"esm"}},"outputs":{"dist/autocomplete.mjs":{"imports":[{"path":"dist/chunk-R5D752AH.mjs","kind":"import-statement"},{"path":"dist/chunk-5TPEEDUH.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7SGQCOH.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpAutocomplete"],"entryPoint":"src/autocomplete.tsx","inputs":{},"bytes":179},"dist/index.mjs":{"imports":[{"path":"dist/chunk-R5D752AH.mjs","kind":"import-statement"},{"path":"dist/chunk-5TPEEDUH.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7SGQCOH.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpAutocomplete"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":179},"dist/chunk-R5D752AH.mjs":{"imports":[{"path":"dist/chunk-5TPEEDUH.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7SGQCOH.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-input","kind":"import-statement","external":true},{"path":"@mekari/pixel3-spinner","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["MpAutocomplete"],"inputs":{"src/autocomplete.tsx":{"bytesInOutput":4625}},"bytes":4798},"dist/modules/autocomplete.hooks.mjs":{"imports":[{"path":"dist/chunk-5TPEEDUH.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["useAutocomplete"],"entryPoint":"src/modules/autocomplete.hooks.ts","inputs":{},"bytes":121},"dist/chunk-5TPEEDUH.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true}],"exports":["useAutocomplete"],"inputs":{"src/modules/autocomplete.hooks.ts":{"bytesInOutput":12098}},"bytes":12216},"dist/modules/autocomplete.props.mjs":{"imports":[{"path":"dist/chunk-Q7SGQCOH.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["autocompleteEmit","autocompleteProps"],"entryPoint":"src/modules/autocomplete.props.ts","inputs":{},"bytes":165},"dist/chunk-Q7SGQCOH.mjs":{"imports":[],"exports":["autocompleteEmit","autocompleteProps"],"inputs":{"src/modules/autocomplete.props.ts":{"bytesInOutput":2003}},"bytes":2093},"dist/chunk-QZ7VFGWC.mjs":{"imports":[],"exports":["__name"],"inputs":{},"bytes":151}}}
@@ -138,7 +138,7 @@ function useAutocomplete(props, emit) {
138
138
  __name(onOpenPopover, "onOpenPopover");
139
139
  function onBlur() {
140
140
  isPopoverOpen.value = false;
141
- const inputEl = document.getElementById(`${getId}-control`);
141
+ const inputEl = document.getElementById(`${getId}`);
142
142
  inputEl == null ? void 0 : inputEl.blur();
143
143
  if (isInfinityScroll.value) {
144
144
  disableIntersectionObserver();
@@ -191,7 +191,7 @@ function useAutocomplete(props, emit) {
191
191
  }
192
192
  __name(onModelValueChange, "onModelValueChange");
193
193
  function handleForceFocusToInput() {
194
- const inputEl = document.getElementById(`${getId}-control`);
194
+ const inputEl = document.getElementById(`${getId}`);
195
195
  inputEl == null ? void 0 : inputEl.focus();
196
196
  }
197
197
  __name(handleForceFocusToInput, "handleForceFocusToInput");
@@ -333,8 +333,9 @@ function useAutocomplete(props, emit) {
333
333
  },
334
334
  onClear: (e) => {
335
335
  onSelectListItem("");
336
- const inputEl = document.getElementById(`${getId}-control`);
337
- inputEl.value = "";
336
+ const inputEl = document.getElementById(`${getId}`);
337
+ if (inputEl)
338
+ inputEl.value = "";
338
339
  emit("clear", e);
339
340
  }
340
341
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useAutocomplete
3
- } from "../chunk-INYWMPCZ.mjs";
3
+ } from "../chunk-5TPEEDUH.mjs";
4
4
  import "../chunk-QZ7VFGWC.mjs";
5
5
  export {
6
6
  useAutocomplete
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@mekari/pixel3-autocomplete",
3
3
  "description": "Autocomplete component for mekari pixel 3",
4
- "version": "0.0.17-dev.0",
4
+ "version": "0.0.17-dev.2",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "dist"
9
9
  ],
10
10
  "dependencies": {
11
- "@mekari/pixel3-styled-system": "0.1.2-dev.0",
12
- "@mekari/pixel3-utils": "0.0.7-dev.0",
13
- "@mekari/pixel3-input": "0.0.17-dev.0",
14
- "@mekari/pixel3-spinner": "0.0.17-dev.0",
15
- "@mekari/pixel3-icon": "0.0.17-dev.0",
16
- "@mekari/pixel3-popover": "0.0.17-dev.0",
17
- "@mekari/pixel3-text": "0.0.16-dev.0"
11
+ "@mekari/pixel3-styled-system": "0.1.2-dev.1",
12
+ "@mekari/pixel3-utils": "0.0.7-dev.1",
13
+ "@mekari/pixel3-input": "0.0.17-dev.2",
14
+ "@mekari/pixel3-spinner": "0.0.17-dev.2",
15
+ "@mekari/pixel3-icon": "0.0.17-dev.2",
16
+ "@mekari/pixel3-popover": "0.0.17-dev.2",
17
+ "@mekari/pixel3-text": "0.0.16-dev.1"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "vue": "^3.4.9"
@@ -41,6 +41,7 @@
41
41
  "build:types": "tsup src --dts-only",
42
42
  "types:check": "tsc --noEmit",
43
43
  "replace-config": "clean-package",
44
- "restore-config": "clean-package restore"
44
+ "restore-config": "clean-package restore",
45
+ "types:vue": "vue-tsc --noEmit"
45
46
  }
46
47
  }