@mekari/pixel3-autocomplete 0.0.0

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.
@@ -0,0 +1,136 @@
1
+ import { PropType, ExtractPropTypes } from 'vue';
2
+ import { PopoverContentProps } from '@mekari/pixel3-popover';
3
+
4
+ type PopoverContentAttrs = {
5
+ class?: unknown;
6
+ style?: unknown;
7
+ [key: string]: unknown;
8
+ } & PopoverContentProps;
9
+ type AnyObject = {
10
+ [key: string]: unknown;
11
+ };
12
+ type StringNumberAnyObject = string | number | AnyObject;
13
+ declare const autocompleteProps: {
14
+ id: {
15
+ type: PropType<string>;
16
+ default: string;
17
+ };
18
+ data: {
19
+ type: PropType<unknown[]>;
20
+ default: () => never[];
21
+ };
22
+ modelValue: {
23
+ type: PropType<StringNumberAnyObject | undefined>;
24
+ };
25
+ defaultValue: (StringConstructor | NumberConstructor | ObjectConstructor)[];
26
+ placeholder: {
27
+ type: PropType<string>;
28
+ };
29
+ labelProp: {
30
+ type: PropType<string>;
31
+ default: string;
32
+ };
33
+ valueProp: {
34
+ type: PropType<string>;
35
+ default: string;
36
+ };
37
+ isReadOnly: {
38
+ type: PropType<boolean>;
39
+ default: boolean;
40
+ };
41
+ isDisabled: {
42
+ type: PropType<boolean>;
43
+ default: boolean;
44
+ };
45
+ isInvalid: {
46
+ type: PropType<boolean>;
47
+ default: boolean;
48
+ };
49
+ isRequired: {
50
+ type: PropType<boolean>;
51
+ default: boolean;
52
+ };
53
+ isFullWidth: {
54
+ type: PropType<boolean>;
55
+ default: boolean;
56
+ };
57
+ isLoading: {
58
+ type: PropType<boolean>;
59
+ default: boolean;
60
+ };
61
+ isContentLoading: {
62
+ type: PropType<boolean>;
63
+ default: boolean;
64
+ };
65
+ isClearable: {
66
+ type: PropType<boolean>;
67
+ default: boolean;
68
+ };
69
+ isSearchable: {
70
+ type: PropType<boolean>;
71
+ default: boolean;
72
+ };
73
+ contentAttrs: {
74
+ type: PropType<PopoverContentAttrs>;
75
+ };
76
+ emptyText: {
77
+ type: PropType<string>;
78
+ default: string;
79
+ };
80
+ contentLoadingText: {
81
+ type: PropType<string>;
82
+ default: string;
83
+ };
84
+ isInfinityScroll: {
85
+ type: PropType<boolean>;
86
+ default: boolean;
87
+ };
88
+ isManualFilter: {
89
+ type: PropType<boolean>;
90
+ default: boolean;
91
+ };
92
+ usePortal: {
93
+ type: PropType<boolean>;
94
+ default: boolean;
95
+ };
96
+ isShowButtonAction: {
97
+ type: PropType<boolean>;
98
+ default: boolean;
99
+ };
100
+ buttonActionText: {
101
+ type: PropType<string>;
102
+ default: string;
103
+ };
104
+ isGroupSuggestions: {
105
+ type: PropType<boolean>;
106
+ default: boolean;
107
+ };
108
+ groupKey: {
109
+ type: PropType<string>;
110
+ default: string;
111
+ };
112
+ keyCode: {
113
+ type: PropType<string[]>;
114
+ default: () => string[];
115
+ };
116
+ isRawValue: {
117
+ type: PropType<boolean>;
118
+ default: boolean;
119
+ };
120
+ isListItemActiveFunction: {
121
+ type: PropType<(selected: StringNumberAnyObject | undefined, item: StringNumberAnyObject | undefined) => boolean>;
122
+ };
123
+ isKeepAlive: {
124
+ type: PropType<boolean>;
125
+ default: boolean;
126
+ };
127
+ isAdaptiveWidth: {
128
+ type: PropType<boolean>;
129
+ default: boolean;
130
+ };
131
+ };
132
+ declare const autocompleteEmit: readonly ["update:modelValue", "input", "change", "enter", "scrollEnd", "buttonAction"];
133
+ type AutocompleteProps = ExtractPropTypes<typeof autocompleteProps>;
134
+ type AutocompleteEmits = (e: typeof autocompleteEmit[number], value?: unknown, value2?: unknown) => void;
135
+
136
+ export { AnyObject, AutocompleteEmits, AutocompleteProps, StringNumberAnyObject, autocompleteEmit, autocompleteProps };
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/modules/autocomplete.props.ts
21
+ var autocomplete_props_exports = {};
22
+ __export(autocomplete_props_exports, {
23
+ autocompleteEmit: () => autocompleteEmit,
24
+ autocompleteProps: () => autocompleteProps
25
+ });
26
+ module.exports = __toCommonJS(autocomplete_props_exports);
27
+ var autocompleteProps = {
28
+ id: {
29
+ type: String,
30
+ default: ""
31
+ },
32
+ data: {
33
+ type: [Array],
34
+ default: () => []
35
+ },
36
+ modelValue: {
37
+ type: [Number, String, Object, Array]
38
+ },
39
+ defaultValue: [Number, String, Object],
40
+ placeholder: {
41
+ type: String
42
+ },
43
+ labelProp: {
44
+ type: String,
45
+ default: "value"
46
+ },
47
+ valueProp: {
48
+ type: String,
49
+ default: "value"
50
+ },
51
+ isReadOnly: {
52
+ type: [Boolean],
53
+ default: false
54
+ },
55
+ isDisabled: {
56
+ type: [Boolean],
57
+ default: false
58
+ },
59
+ isInvalid: {
60
+ type: [Boolean],
61
+ default: false
62
+ },
63
+ isRequired: {
64
+ type: [Boolean],
65
+ default: false
66
+ },
67
+ isFullWidth: {
68
+ type: [Boolean],
69
+ default: true
70
+ },
71
+ isLoading: {
72
+ type: [Boolean],
73
+ default: false
74
+ },
75
+ isContentLoading: {
76
+ type: [Boolean],
77
+ default: false
78
+ },
79
+ isClearable: {
80
+ type: [Boolean],
81
+ default: false
82
+ },
83
+ isSearchable: {
84
+ type: [Boolean],
85
+ default: false
86
+ },
87
+ contentAttrs: {
88
+ type: Object
89
+ },
90
+ emptyText: {
91
+ type: [String],
92
+ default: "No result found"
93
+ },
94
+ contentLoadingText: {
95
+ type: [String],
96
+ default: "Loading"
97
+ },
98
+ isInfinityScroll: {
99
+ type: [Boolean],
100
+ default: false
101
+ },
102
+ isManualFilter: {
103
+ type: [Boolean],
104
+ default: false
105
+ },
106
+ usePortal: {
107
+ type: Boolean,
108
+ default: false
109
+ },
110
+ isShowButtonAction: {
111
+ type: Boolean,
112
+ default: false
113
+ },
114
+ buttonActionText: {
115
+ type: String,
116
+ default: "Button"
117
+ },
118
+ isGroupSuggestions: {
119
+ type: Boolean,
120
+ default: false
121
+ },
122
+ groupKey: {
123
+ type: String,
124
+ default: "group"
125
+ },
126
+ keyCode: {
127
+ type: Array,
128
+ default: () => ["Enter"]
129
+ },
130
+ isRawValue: {
131
+ type: [Boolean],
132
+ default: false
133
+ },
134
+ isListItemActiveFunction: {
135
+ type: Function
136
+ },
137
+ isKeepAlive: {
138
+ type: Boolean,
139
+ default: true
140
+ },
141
+ isAdaptiveWidth: {
142
+ type: Boolean,
143
+ default: true
144
+ }
145
+ };
146
+ var autocompleteEmit = ["update:modelValue", "input", "change", "enter", "scrollEnd", "buttonAction"];
147
+ // Annotate the CommonJS export names for ESM import in node:
148
+ 0 && (module.exports = {
149
+ autocompleteEmit,
150
+ autocompleteProps
151
+ });
@@ -0,0 +1,9 @@
1
+ import {
2
+ autocompleteEmit,
3
+ autocompleteProps
4
+ } from "../chunk-OX7ZBBEQ.mjs";
5
+ import "../chunk-QZ7VFGWC.mjs";
6
+ export {
7
+ autocompleteEmit,
8
+ autocompleteProps
9
+ };
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@mekari/pixel3-autocomplete",
3
+ "version": "0.0.0",
4
+ "main": "dist/index.js",
5
+ "license": "MIT",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "dependencies": {
10
+ "@mekari/pixel3-styled-system": "0.0.0",
11
+ "@mekari/pixel3-input": "0.0.0",
12
+ "@mekari/pixel3-utils": "0.0.0",
13
+ "@mekari/pixel3-spinner": "0.0.0",
14
+ "@mekari/pixel3-icon": "0.0.0",
15
+ "@mekari/pixel3-popover": "0.0.0",
16
+ "@mekari/pixel3-text": "0.0.0"
17
+ },
18
+ "peerDependencies": {
19
+ "vue": "^3.3.7"
20
+ },
21
+ "devDependencies": {
22
+ "vue": "^3.3.7"
23
+ },
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "module": "dist/index.mjs",
28
+ "types": "dist/index.d.ts",
29
+ "exports": {
30
+ ".": {
31
+ "types": "./dist/index.d.ts",
32
+ "require": "./dist/index.js",
33
+ "default": "./dist/index.mjs"
34
+ }
35
+ },
36
+ "scripts": {
37
+ "clean": "rimraf dist .turbo",
38
+ "build": "tsup && pnpm build:types",
39
+ "build:fast": "tsup",
40
+ "build:types": "tsup src --dts-only",
41
+ "build:external": "tsup src/index.tsx --external @acme-org/styled-system",
42
+ "types:check": "tsc --noEmit",
43
+ "replace-config": "clean-package",
44
+ "restore-config": "clean-package restore"
45
+ }
46
+ }