@vue-interface/select-field 1.0.0-beta.2 → 1.0.0-beta.21

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.
@@ -1,284 +1,101 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{
2
- /**
3
- * The default class name assigned to the control element
4
- *
5
- * @param {String}
6
- * @default 'form-select'
7
- */
8
- defaultControlClass: {
9
- type: StringConstructor;
10
- default: string;
11
- };
12
- }, unknown, unknown, {
13
- controlClass(): any;
14
- }, {
15
- shouldChangeOnFocus(): false;
16
- }, import("vue").DefineComponent<{
17
- activity: {
18
- type: BooleanConstructor;
19
- default: boolean;
20
- };
21
- animated: {
22
- type: BooleanConstructor;
23
- default: () => any;
24
- };
25
- /**
26
- * The default class name assigned to the control element
27
- *
28
- * @param {String}
29
- * @default 'form-select'
30
- */
31
- nativeEvents: {
32
- type: ArrayConstructor;
33
- default(): string[];
34
- };
35
- defaultControlClass: {
36
- type: StringConstructor;
37
- default: () => any;
38
- };
39
- error: {
40
- type: (BooleanConstructor | StringConstructor | ArrayConstructor)[];
41
- default: undefined;
42
- };
43
- errors: {
44
- type: (BooleanConstructor | ArrayConstructor | ObjectConstructor)[];
45
- default(): {};
46
- };
47
- feedback: {
48
- type: (StringConstructor | ArrayConstructor)[];
49
- default: undefined;
50
- };
51
- group: {
52
- type: BooleanConstructor;
53
- default: () => any;
54
- };
55
- helpText: {
56
- type: (StringConstructor | NumberConstructor)[];
57
- default: undefined;
58
- };
59
- hideLabel: BooleanConstructor;
60
- indicator: {
61
- type: (BooleanConstructor | StringConstructor)[];
62
- default: () => any;
63
- };
64
- indicatorSize: {
65
- type: StringConstructor;
66
- default: undefined;
67
- };
68
- inline: BooleanConstructor;
69
- invalid: BooleanConstructor;
70
- label: {
71
- type: (StringConstructor | NumberConstructor)[];
72
- default: undefined;
73
- };
74
- labelClass: {
75
- type: (StringConstructor | ObjectConstructor)[];
76
- default: () => any;
77
- };
78
- modelValue: {
79
- default: undefined;
80
- };
81
- pill: BooleanConstructor;
82
- plaintext: BooleanConstructor;
83
- size: {
84
- type: StringConstructor;
85
- default: undefined;
86
- };
87
- spacing: {
88
- type: StringConstructor;
89
- default: undefined;
90
- };
91
- valid: BooleanConstructor;
92
- }, unknown, {
93
- defaultEmpty: boolean;
94
- hasChanged: boolean;
95
- hasFocus: boolean;
96
- isEmpty: boolean;
97
- }, {
98
- id(): any;
99
- componentName(): any;
100
- controlAttributes(): {
101
- [k: string]: unknown;
102
- };
103
- controlClass(): any;
104
- controlSizeClass(): string;
105
- formGroupClasses(): {
106
- [x: number]: boolean;
107
- animated: any;
108
- 'default-empty': any;
109
- 'form-group': any;
110
- 'has-activity': any;
111
- 'has-changed': any;
112
- 'has-focus': any;
113
- 'has-icon': boolean;
114
- 'is-empty': any;
115
- 'is-invalid': boolean;
116
- 'is-valid': boolean;
117
- } & (false | {
118
- [x: string]: boolean;
119
- });
120
- controlClasses(): any;
121
- hasDefaultSlot(): boolean;
122
- invalidFeedback(): any;
123
- pillClasses(): "rounded rounded-pill";
124
- plaintextClass(): "form-control-plaintext";
125
- validFeedback(): any;
126
- }, {
127
- bindEvents(el: HTMLOptionElement | HTMLSelectElement, fn: Function): void;
128
- blur(): void;
129
- focus(): void;
130
- getInputField(): any;
131
- getFieldErrors(): any;
132
- shouldChangeOnFocus(): boolean;
133
- onInput(value: any): void;
134
- }, import("vue").DefineComponent<{
135
- dropShadow: {
136
- type: (BooleanConstructor | StringConstructor)[];
137
- default: undefined;
138
- };
139
- dropShadowableClassPrefix: {
140
- type: StringConstructor;
141
- default: string;
142
- };
143
- shadow: {
144
- type: (BooleanConstructor | StringConstructor)[];
145
- default: undefined;
146
- };
147
- shadowableClassPrefix: {
148
- type: StringConstructor;
149
- default: string;
150
- };
151
- }, unknown, unknown, {
152
- shadowableClass(): {
153
- [x: string]: boolean;
154
- };
155
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
156
- dropShadow: {
157
- type: (BooleanConstructor | StringConstructor)[];
158
- default: undefined;
159
- };
160
- dropShadowableClassPrefix: {
161
- type: StringConstructor;
162
- default: string;
163
- };
164
- shadow: {
165
- type: (BooleanConstructor | StringConstructor)[];
166
- default: undefined;
167
- };
168
- shadowableClassPrefix: {
169
- type: StringConstructor;
170
- default: string;
171
- };
172
- }>>, {
173
- shadow: string | boolean;
174
- dropShadow: string | boolean;
175
- dropShadowableClassPrefix: string;
176
- shadowableClassPrefix: string;
177
- }>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
178
- activity: {
179
- type: BooleanConstructor;
180
- default: boolean;
181
- };
182
- animated: {
183
- type: BooleanConstructor;
184
- default: () => any;
185
- };
186
- nativeEvents: {
187
- type: ArrayConstructor;
188
- default(): string[];
189
- };
190
- defaultControlClass: {
191
- type: StringConstructor;
192
- default: () => any;
193
- };
194
- error: {
195
- type: (BooleanConstructor | StringConstructor | ArrayConstructor)[];
196
- default: undefined;
197
- };
198
- errors: {
199
- type: (BooleanConstructor | ArrayConstructor | ObjectConstructor)[];
200
- default(): {};
201
- };
202
- feedback: {
203
- type: (StringConstructor | ArrayConstructor)[];
204
- default: undefined;
205
- };
206
- group: {
207
- type: BooleanConstructor;
208
- default: () => any;
209
- };
210
- helpText: {
211
- type: (StringConstructor | NumberConstructor)[];
212
- default: undefined;
213
- };
214
- hideLabel: BooleanConstructor;
215
- indicator: {
216
- type: (BooleanConstructor | StringConstructor)[];
217
- default: () => any;
218
- };
219
- indicatorSize: {
220
- type: StringConstructor;
221
- default: undefined;
222
- };
223
- inline: BooleanConstructor;
224
- invalid: BooleanConstructor;
225
- label: {
226
- type: (StringConstructor | NumberConstructor)[];
227
- default: undefined;
228
- };
229
- labelClass: {
230
- type: (StringConstructor | ObjectConstructor)[];
231
- default: () => any;
232
- };
233
- modelValue: {
234
- default: undefined;
235
- };
236
- pill: BooleanConstructor;
237
- plaintext: BooleanConstructor;
238
- size: {
239
- type: StringConstructor;
240
- default: undefined;
241
- };
242
- spacing: {
243
- type: StringConstructor;
244
- default: undefined;
245
- };
246
- valid: BooleanConstructor;
247
- }>>, {
248
- activity: boolean;
249
- animated: boolean;
250
- nativeEvents: unknown[];
251
- defaultControlClass: string;
252
- error: string | boolean | unknown[];
253
- errors: boolean | unknown[] | Record<string, any>;
254
- feedback: string | unknown[];
255
- group: boolean;
256
- helpText: string | number;
257
- hideLabel: boolean;
258
- indicator: string | boolean;
259
- indicatorSize: string;
260
- inline: boolean;
261
- invalid: boolean;
262
- label: string | number;
263
- labelClass: string | Record<string, any>;
264
- modelValue: undefined;
265
- pill: boolean;
266
- plaintext: boolean;
267
- size: string;
268
- spacing: string;
269
- valid: boolean;
270
- }>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
271
- /**
272
- * The default class name assigned to the control element
273
- *
274
- * @param {String}
275
- * @default 'form-select'
276
- */
277
- defaultControlClass: {
278
- type: StringConstructor;
279
- default: string;
280
- };
281
- }>>, {
282
- defaultControlClass: string;
283
- }>;
284
- export default _sfc_main;
1
+ import type { FormControlEvents, FormControlSlots } from '@vue-interface/form-control';
2
+ declare const _default: <T, V>(__VLS_props: {
3
+ onBlur?: (event: FocusEvent) => any;
4
+ onChange?: (value: T) => any;
5
+ onClick?: (value: T) => any;
6
+ onFocus?: (event: FocusEvent) => any;
7
+ "onUpdate:modelValue"?: (value: T) => any;
8
+ activity?: boolean;
9
+ disabled?: boolean;
10
+ error?: import("@vue-interface/form-control").FormControlErrorProp;
11
+ errors?: import("@vue-interface/form-control").FormControlErrorPropArray | import("@vue-interface/form-control").FormControlErrorPropRecord;
12
+ feedback?: import("@vue-interface/form-control").FormControlFeedbackProp;
13
+ formControlClass?: string;
14
+ helpText?: string;
15
+ id?: string;
16
+ indicator?: import("vue").Component;
17
+ indicatorSize?: string;
18
+ invalid?: boolean;
19
+ label?: string;
20
+ labelClass?: string;
21
+ modelValue?: T;
22
+ name?: string;
23
+ plaintext?: boolean;
24
+ readonly?: boolean;
25
+ valid?: boolean;
26
+ value?: V;
27
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
28
+ attrs: any;
29
+ emit: FormControlEvents<T>;
30
+ slots: Readonly<FormControlSlots<T>> & FormControlSlots<T>;
31
+ }, __VLS_expose?: (exposed: import('vue').ShallowUnwrapRef<{}>) => void, __VLS_setup?: Promise<{
32
+ props: {
33
+ onBlur?: (event: FocusEvent) => any;
34
+ onChange?: (value: T) => any;
35
+ onClick?: (value: T) => any;
36
+ onFocus?: (event: FocusEvent) => any;
37
+ "onUpdate:modelValue"?: (value: T) => any;
38
+ activity?: boolean;
39
+ disabled?: boolean;
40
+ error?: import("@vue-interface/form-control").FormControlErrorProp;
41
+ errors?: import("@vue-interface/form-control").FormControlErrorPropArray | import("@vue-interface/form-control").FormControlErrorPropRecord;
42
+ feedback?: import("@vue-interface/form-control").FormControlFeedbackProp;
43
+ formControlClass?: string;
44
+ helpText?: string;
45
+ id?: string;
46
+ indicator?: import("vue").Component;
47
+ indicatorSize?: string;
48
+ invalid?: boolean;
49
+ label?: string;
50
+ labelClass?: string;
51
+ modelValue?: T;
52
+ name?: string;
53
+ plaintext?: boolean;
54
+ readonly?: boolean;
55
+ valid?: boolean;
56
+ value?: V;
57
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
58
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
59
+ attrs: any;
60
+ slots: Readonly<FormControlSlots<T>> & FormControlSlots<T>;
61
+ emit: FormControlEvents<T>;
62
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
63
+ [key: string]: any;
64
+ }> & {
65
+ __ctx?: {
66
+ props: {
67
+ onBlur?: (event: FocusEvent) => any;
68
+ onChange?: (value: T) => any;
69
+ onClick?: (value: T) => any;
70
+ onFocus?: (event: FocusEvent) => any;
71
+ "onUpdate:modelValue"?: (value: T) => any;
72
+ activity?: boolean;
73
+ disabled?: boolean;
74
+ error?: import("@vue-interface/form-control").FormControlErrorProp;
75
+ errors?: import("@vue-interface/form-control").FormControlErrorPropArray | import("@vue-interface/form-control").FormControlErrorPropRecord;
76
+ feedback?: import("@vue-interface/form-control").FormControlFeedbackProp;
77
+ formControlClass?: string;
78
+ helpText?: string;
79
+ id?: string;
80
+ indicator?: import("vue").Component;
81
+ indicatorSize?: string;
82
+ invalid?: boolean;
83
+ label?: string;
84
+ labelClass?: string;
85
+ modelValue?: T;
86
+ name?: string;
87
+ plaintext?: boolean;
88
+ readonly?: boolean;
89
+ valid?: boolean;
90
+ value?: V;
91
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
92
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
93
+ attrs: any;
94
+ slots: Readonly<FormControlSlots<T>> & FormControlSlots<T>;
95
+ emit: FormControlEvents<T>;
96
+ };
97
+ };
98
+ export default _default;
99
+ type __VLS_Prettify<T> = {
100
+ [K in keyof T]: T[K];
101
+ } & {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-interface/select-field",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.21",
4
4
  "description": "A Vue select field component.",
5
5
  "files": [
6
6
  "dist"
@@ -8,26 +8,19 @@
8
8
  "type": "module",
9
9
  "main": "./dist/select-field.umd.js",
10
10
  "module": "./dist/select-field.js",
11
- "style": "./dist/style.css",
12
11
  "types": "./dist/index.d.ts",
13
12
  "exports": {
14
13
  ".": {
15
14
  "import": "./dist/select-field.js",
16
15
  "require": "./dist/select-field.umd.js",
17
16
  "types": "./dist/index.d.ts"
18
- },
19
- "./dist/style.css": "./dist/style.css"
17
+ }
20
18
  },
21
19
  "browserslist": "last 2 versions, > 0.5%, ie >= 11",
22
20
  "scripts": {
23
21
  "dev": "vite",
24
- "build": "vite build",
25
- "preview": "vite preview",
26
- "pre-release": "npm run build; git add . -A; git commit -m 'pre-release commit'",
27
- "release-patch": "npm run pre-release && npm version patch -m \"%s\" && npm run release;",
28
- "release-minor": "npm run pre-release && npm version minor -m \"%s\" && npm run release;",
29
- "release-major": "npm run pre-release && npm version major -m \"%s\" && npm run release;",
30
- "release": "git add . -A; git commit; git push --tags origin; npm publish;"
22
+ "build": "vite build && vue-tsc",
23
+ "preview": "vite preview"
31
24
  },
32
25
  "repository": {
33
26
  "type": "git",
@@ -46,28 +39,34 @@
46
39
  "bugs": {
47
40
  "url": "https://github.com/vue-interface/select-field/issues"
48
41
  },
49
- "homepage": "https://github.com/vue-interface/select-field/docs#readme",
42
+ "homepage": "https://github.com/vue-interface/select-field",
50
43
  "dependencies": {
51
- "@vue-interface/activity-indicator": "^2.0.0-beta.0",
52
- "@vue-interface/form-control": "^1.0.0-beta.0"
44
+ "@vue-interface/activity-indicator": "^2.0.0-beta.11",
45
+ "@vue-interface/form-control": "^1.0.0-beta.46"
53
46
  },
54
47
  "peerDependencies": {
55
- "vue": "^3.0.0"
48
+ "vue": "^3.3.4"
56
49
  },
57
50
  "devDependencies": {
58
- "@rollup/plugin-babel": "^6.0.3",
59
- "@vitejs/plugin-vue": "^3.0.1",
60
- "autoprefixer": "^10.4.2",
61
- "babel-eslint": "^10.1.0",
62
- "babel-preset-vue": "^2.0.2",
51
+ "@commitlint/config-conventional": "^17.7.0",
52
+ "@semantic-release/changelog": "^6.0.3",
53
+ "@semantic-release/git": "^10.0.1",
54
+ "@semantic-release/npm": "^10.0.5",
55
+ "@vitejs/plugin-vue": "^4.3.3",
56
+ "@vue-interface/eslint-config": "1.0.0-beta.4",
57
+ "autoprefixer": "^10.4.15",
63
58
  "change-case": "^4.1.2",
64
- "eslint": "^8.29.0",
65
- "eslint-plugin-vue": "^9.8.0",
59
+ "commitlint": "^17.7.1",
60
+ "dotenv": "^16.3.1",
61
+ "eslint": "^8.47.0",
62
+ "husky": "^8.0.3",
66
63
  "pascalcase": "^2.0.0",
67
- "postcss": "^8.4.6",
68
- "tailwindcss": "^3.0.18",
69
- "vite": "^3.0.0",
70
- "vite-plugin-dts": "^1.7.1",
71
- "vue": "^3.2.37"
64
+ "postcss": "^8.4.28",
65
+ "semantic-release": "^21.1.1",
66
+ "tailwindcss": "^3.3.3",
67
+ "typescript": "^5.2.2",
68
+ "vite": "^4.4.9",
69
+ "vue": "^3.3.4",
70
+ "vue-tsc": "^1.8.8"
72
71
  }
73
72
  }
package/dist/style.css DELETED
@@ -1 +0,0 @@
1
- .select-field,.select-field .form-group-inner{position:relative;-webkit-transition:all .25s ease-in-out;transition:all .25s ease-in-out}.select-field .activity-indicator{position:absolute;right:1.25em;top:50%;-webkit-transform:translate(-1rem,-50%);transform:translate(-1rem,-50%);-webkit-transition:all .15s ease-in;transition:all .15s ease-in}.select-field .activity-indicator-xs{font-size:.5em;right:2em}.select-field.has-activity .form-control-xs{padding-right:3.75em}.select-field .activity-indicator-sm{font-size:.5em;right:2em}.select-field.has-activity .form-control-sm{padding-right:3em}.select-field .activity-indicator-md{font-size:.666em}.select-field.has-activity .form-control-md{padding-right:3em}.select-field .activity-indicator-lg{font-size:.75em}.select-field.has-activity .form-control-lg{padding-right:3em}.select-field .activity-indicator-xl{font-size:1em}.select-field.has-activity .activity-indicator-xl~.form-control-xl{padding-right:3.75em}.select-field.is-valid .valid-feedback,.select-field.is-invalid .invalid-feedback{display:-webkit-box;display:-ms-flexbox;display:flex}.select-field .form-control-icon{padding-left:2em}.select-field .form-group-inner-icon{position:absolute;top:50%;left:.666em;width:1rem;font-size:1em;-webkit-transform:translateY(-50%);transform:translateY(-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.select-field-sm .form-group-inner-icon{position:absolute;top:50%;left:.666rem;width:.75em;font-size:1.5em;-webkit-transform:translateY(-50%);transform:translateY(-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.select-field-lg .form-group-inner-icon{position:absolute;top:50%;left:.666rem;width:1.25em;font-size:1em;-webkit-transform:translateY(-50%);transform:translateY(-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.select-field .activity-indicator{opacity:1}.select-field .select-field-fade-enter,.select-field .select-field-fade-leave-to{opacity:0}