@mekari/pixel3-autocomplete 0.0.17-dev.0 → 0.0.17-dev.1
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/autocomplete.js +5 -4
- package/dist/autocomplete.mjs +2 -2
- package/dist/{chunk-INYWMPCZ.mjs → chunk-5TPEEDUH.mjs} +5 -4
- package/dist/{chunk-LYRFHUJ3.mjs → chunk-R5D752AH.mjs} +1 -1
- package/dist/index.js +5 -4
- package/dist/index.mjs +2 -2
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/modules/autocomplete.hooks.js +5 -4
- package/dist/modules/autocomplete.hooks.mjs +1 -1
- package/package.json +10 -9
package/dist/autocomplete.js
CHANGED
|
@@ -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}
|
|
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}
|
|
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}
|
|
467
|
-
inputEl
|
|
466
|
+
const inputEl = document.getElementById(`${getId}`);
|
|
467
|
+
if (inputEl)
|
|
468
|
+
inputEl.value = "";
|
|
468
469
|
emit("clear", e);
|
|
469
470
|
}
|
|
470
471
|
};
|
package/dist/autocomplete.mjs
CHANGED
|
@@ -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}
|
|
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}
|
|
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}
|
|
316
|
-
inputEl
|
|
315
|
+
const inputEl = document.getElementById(`${getId}`);
|
|
316
|
+
if (inputEl)
|
|
317
|
+
inputEl.value = "";
|
|
317
318
|
emit("clear", e);
|
|
318
319
|
}
|
|
319
320
|
};
|
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}
|
|
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}
|
|
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}
|
|
469
|
-
inputEl
|
|
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
package/dist/metafile-cjs.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/modules/autocomplete.props.ts":{"bytes":3480,"imports":[],"format":"esm"},"src/modules/autocomplete.hooks.ts":{"bytes":
|
|
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}}}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/modules/autocomplete.props.ts":{"bytes":3480,"imports":[],"format":"esm"},"src/modules/autocomplete.hooks.ts":{"bytes":
|
|
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}
|
|
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}
|
|
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}
|
|
337
|
-
inputEl
|
|
336
|
+
const inputEl = document.getElementById(`${getId}`);
|
|
337
|
+
if (inputEl)
|
|
338
|
+
inputEl.value = "";
|
|
338
339
|
emit("clear", e);
|
|
339
340
|
}
|
|
340
341
|
};
|
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.
|
|
4
|
+
"version": "0.0.17-dev.1",
|
|
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.
|
|
12
|
-
"@mekari/pixel3-utils": "0.0.7-dev.
|
|
13
|
-
"@mekari/pixel3-input": "0.0.17-dev.
|
|
14
|
-
"@mekari/pixel3-spinner": "0.0.17-dev.
|
|
15
|
-
"@mekari/pixel3-icon": "0.0.17-dev.
|
|
16
|
-
"@mekari/pixel3-popover": "0.0.17-dev.
|
|
17
|
-
"@mekari/pixel3-text": "0.0.16-dev.
|
|
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.1",
|
|
14
|
+
"@mekari/pixel3-spinner": "0.0.17-dev.1",
|
|
15
|
+
"@mekari/pixel3-icon": "0.0.17-dev.1",
|
|
16
|
+
"@mekari/pixel3-popover": "0.0.17-dev.1",
|
|
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
|
}
|