edvoyui-component-library-test-flight 0.0.245 → 0.0.247
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/components/checkbox/EUICheckbox.vue +22 -13
- package/dist/components/searchTagSelect/EUISearchTagSelect.d.ts +75 -1
- package/dist/components/searchTagSelect/EUISearchTagSelect.vue +320 -104
- package/dist/components/searchTagSelect/SearchInput.d.ts +29 -0
- package/dist/components/searchTagSelect/SearchInput.vue +21 -2
- package/dist/edvoy-ui.cjs.js +17 -17
- package/dist/edvoy-ui.css +1 -1
- package/dist/edvoy-ui.es.js +9151 -8974
- package/dist/edvoy-ui.umd.js +29 -29
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<label class="flex flex-row items-center scale-100 translate-x-0 translate-y-0 eui-checkbox">
|
|
3
|
+
<label class="flex flex-row items-center scale-100 translate-x-0 translate-y-0 eui-checkbox" :class="{'select-none pointer-events-none opacity-50':disabled}">
|
|
4
4
|
<input
|
|
5
5
|
v-model="isChecked"
|
|
6
6
|
type="checkbox"
|
|
@@ -79,46 +79,55 @@ watch(props, (newValue) => {
|
|
|
79
79
|
<style lang="scss">
|
|
80
80
|
.eui-checkbox .cbx-icon {
|
|
81
81
|
transition: all 0.2s ease;
|
|
82
|
-
@apply select-none cursor-pointer p-px rounded-md overflow-hidden inline-block scale-
|
|
82
|
+
@apply select-none cursor-pointer p-px rounded-md overflow-hidden inline-block scale-100;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
.eui-checkbox .cbx-icon span {
|
|
86
86
|
transform: translate3d(0, 0, 0);
|
|
87
87
|
transition: all 0.2s ease;
|
|
88
|
-
@apply float-left align-middle relative size-5
|
|
88
|
+
@apply float-left align-middle relative size-5 -outline-offset-1 outline outline-1 outline-gray-400 rounded scale-100;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.eui-checkbox .cbx-icon span > svg {
|
|
92
|
-
top:
|
|
93
|
-
left:
|
|
92
|
+
top: 5px;
|
|
93
|
+
left: 4px;
|
|
94
94
|
stroke-width: 1.75;
|
|
95
95
|
stroke-linecap: round;
|
|
96
96
|
stroke-linejoin: round;
|
|
97
97
|
stroke-dasharray: 18px;
|
|
98
98
|
stroke-dashoffset: 18px;
|
|
99
|
-
transition:
|
|
100
|
-
transition-delay: 0.1s;
|
|
99
|
+
transition: stroke-dashoffset 0.16s ease-out;
|
|
101
100
|
transform: translate3d(0, 0, 0);
|
|
102
101
|
@apply absolute fill-none stroke-white;
|
|
103
102
|
}
|
|
104
103
|
|
|
105
|
-
.eui-checkbox .input-checkbox:checked + .cbx-icon > span {
|
|
106
|
-
animation: anim 0.
|
|
107
|
-
@apply bg-
|
|
104
|
+
.eui-checkbox .input-checkbox:checked:not(:indeterminate) + .cbx-icon > span {
|
|
105
|
+
animation: anim 0.18s ease-out;
|
|
106
|
+
@apply bg-violet-700 outline-violet-700;
|
|
108
107
|
}
|
|
109
108
|
|
|
110
109
|
.eui-checkbox .input-checkbox:indeterminate + .cbx-icon > span {
|
|
111
|
-
@apply bg-
|
|
110
|
+
@apply bg-violet-700 outline-violet-700;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.eui-checkbox .input-checkbox:indeterminate + .cbx-icon span > svg {
|
|
114
|
+
stroke-dashoffset: 18px;
|
|
115
|
+
transition: none;
|
|
112
116
|
}
|
|
113
117
|
|
|
114
118
|
.eui-checkbox .input-checkbox:indeterminate + .cbx-icon > span::after {
|
|
115
119
|
content: '';
|
|
120
|
+
animation: indeterminate-in 0.14s ease-out both;
|
|
116
121
|
@apply absolute left-1/2 top-1/2 h-0.5 w-2.5 -translate-x-1/2 -translate-y-1/2 rounded bg-white;
|
|
117
122
|
}
|
|
118
123
|
|
|
119
|
-
.eui-checkbox .input-checkbox:checked + .cbx-icon span > svg {
|
|
124
|
+
.eui-checkbox .input-checkbox:checked:not(:indeterminate) + .cbx-icon span > svg {
|
|
120
125
|
stroke-dashoffset: 0;
|
|
121
|
-
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@keyframes indeterminate-in {
|
|
129
|
+
from { opacity: 0; scale: 0.5 1; }
|
|
130
|
+
to { opacity: 1; scale: 1 1; }
|
|
122
131
|
}
|
|
123
132
|
|
|
124
133
|
@keyframes anim {
|
|
@@ -15,6 +15,8 @@ interface Props {
|
|
|
15
15
|
searchable?: boolean;
|
|
16
16
|
backendPagination?: boolean;
|
|
17
17
|
hideNoData?: boolean;
|
|
18
|
+
/** Show a loading state while options are being fetched. */
|
|
19
|
+
loading?: boolean;
|
|
18
20
|
disabled?: boolean;
|
|
19
21
|
tag?: string;
|
|
20
22
|
tagColor?: "None" | "Success" | "Error";
|
|
@@ -23,15 +25,18 @@ interface Props {
|
|
|
23
25
|
searchIcon?: boolean;
|
|
24
26
|
showTags?: boolean;
|
|
25
27
|
clearable?: boolean;
|
|
28
|
+
/** Keep multiple selections in a draft until Apply or dismissal; Cancel discards them. */
|
|
29
|
+
confirmSelection?: boolean;
|
|
26
30
|
ignoreDeselect?: boolean;
|
|
27
31
|
popperClasses?: string;
|
|
28
32
|
showCount?: boolean;
|
|
29
|
-
/**
|
|
33
|
+
/** Show an All row when search has results; it selects every item in `items`. Enabled by default in multiple mode. */
|
|
30
34
|
showSelectAll?: boolean;
|
|
31
35
|
selectAllLabel?: string;
|
|
32
36
|
/** Maximum selected tags shown before the More/Less control; 0 shows all. */
|
|
33
37
|
maxVisibleTags?: number;
|
|
34
38
|
tagSize?: "sm" | "md" | "lg";
|
|
39
|
+
dropdownWidth?: string;
|
|
35
40
|
}
|
|
36
41
|
export type SelectItemKey = string | (string | number)[] | ((item: object, fallback?: any) => any);
|
|
37
42
|
declare function __VLS_template(): {
|
|
@@ -83,10 +88,23 @@ declare function __VLS_template(): {
|
|
|
83
88
|
required: false;
|
|
84
89
|
default: boolean;
|
|
85
90
|
};
|
|
91
|
+
listboxId: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
95
|
+
activeOptionId: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: undefined;
|
|
98
|
+
};
|
|
99
|
+
expanded: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
86
103
|
}>> & Readonly<{
|
|
87
104
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
88
105
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
89
106
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
107
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
90
108
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
91
109
|
onCleared?: ((...args: any[]) => any) | undefined;
|
|
92
110
|
}>, {
|
|
@@ -95,6 +113,7 @@ declare function __VLS_template(): {
|
|
|
95
113
|
click: (...args: any[]) => void;
|
|
96
114
|
blur: (...args: any[]) => void;
|
|
97
115
|
focus: (...args: any[]) => void;
|
|
116
|
+
keydown: (...args: any[]) => void;
|
|
98
117
|
"update:modelValue": (...args: any[]) => void;
|
|
99
118
|
cleared: (...args: any[]) => void;
|
|
100
119
|
}, import('../../../node_modules/vue').PublicProps, {
|
|
@@ -103,6 +122,9 @@ declare function __VLS_template(): {
|
|
|
103
122
|
placeholder: string;
|
|
104
123
|
isToFocus: boolean;
|
|
105
124
|
hasError: boolean;
|
|
125
|
+
listboxId: string;
|
|
126
|
+
activeOptionId: string;
|
|
127
|
+
expanded: boolean;
|
|
106
128
|
}, true, {}, {}, import('../../../node_modules/vue').GlobalComponents, import('../../../node_modules/vue').GlobalDirectives, string, {
|
|
107
129
|
searchInput: HTMLInputElement;
|
|
108
130
|
}, HTMLDivElement, import('../../../node_modules/vue').ComponentProvideOptions, {
|
|
@@ -141,10 +163,23 @@ declare function __VLS_template(): {
|
|
|
141
163
|
required: false;
|
|
142
164
|
default: boolean;
|
|
143
165
|
};
|
|
166
|
+
listboxId: {
|
|
167
|
+
type: StringConstructor;
|
|
168
|
+
default: undefined;
|
|
169
|
+
};
|
|
170
|
+
activeOptionId: {
|
|
171
|
+
type: StringConstructor;
|
|
172
|
+
default: undefined;
|
|
173
|
+
};
|
|
174
|
+
expanded: {
|
|
175
|
+
type: BooleanConstructor;
|
|
176
|
+
default: boolean;
|
|
177
|
+
};
|
|
144
178
|
}>> & Readonly<{
|
|
145
179
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
146
180
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
147
181
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
182
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
148
183
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
149
184
|
onCleared?: ((...args: any[]) => any) | undefined;
|
|
150
185
|
}>, {
|
|
@@ -155,6 +190,9 @@ declare function __VLS_template(): {
|
|
|
155
190
|
placeholder: string;
|
|
156
191
|
isToFocus: boolean;
|
|
157
192
|
hasError: boolean;
|
|
193
|
+
listboxId: string;
|
|
194
|
+
activeOptionId: string;
|
|
195
|
+
expanded: boolean;
|
|
158
196
|
}> | null;
|
|
159
197
|
options: HTMLUListElement;
|
|
160
198
|
};
|
|
@@ -182,6 +220,7 @@ declare const __VLS_component: import('../../../node_modules/vue').DefineCompone
|
|
|
182
220
|
onCreate?: ((value: string) => any) | undefined;
|
|
183
221
|
"onOn-deselect"?: ((value: any) => any) | undefined;
|
|
184
222
|
}>, {
|
|
223
|
+
loading: boolean;
|
|
185
224
|
disabled: boolean;
|
|
186
225
|
name: string;
|
|
187
226
|
items: any[];
|
|
@@ -202,6 +241,7 @@ declare const __VLS_component: import('../../../node_modules/vue').DefineCompone
|
|
|
202
241
|
hideNoData: boolean;
|
|
203
242
|
searchIcon: boolean;
|
|
204
243
|
showTags: boolean;
|
|
244
|
+
confirmSelection: boolean;
|
|
205
245
|
ignoreDeselect: boolean;
|
|
206
246
|
popperClasses: string;
|
|
207
247
|
showCount: boolean;
|
|
@@ -209,6 +249,7 @@ declare const __VLS_component: import('../../../node_modules/vue').DefineCompone
|
|
|
209
249
|
selectAllLabel: string;
|
|
210
250
|
maxVisibleTags: number;
|
|
211
251
|
tagSize: "sm" | "md" | "lg";
|
|
252
|
+
dropdownWidth: string;
|
|
212
253
|
}, {}, {}, {}, string, import('../../../node_modules/vue').ComponentProvideOptions, false, {
|
|
213
254
|
componentRef: HTMLDivElement;
|
|
214
255
|
searchInputRef: import('../../../node_modules/vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../../node_modules/vue').ExtractPropTypes<{
|
|
@@ -240,10 +281,23 @@ declare const __VLS_component: import('../../../node_modules/vue').DefineCompone
|
|
|
240
281
|
required: false;
|
|
241
282
|
default: boolean;
|
|
242
283
|
};
|
|
284
|
+
listboxId: {
|
|
285
|
+
type: StringConstructor;
|
|
286
|
+
default: undefined;
|
|
287
|
+
};
|
|
288
|
+
activeOptionId: {
|
|
289
|
+
type: StringConstructor;
|
|
290
|
+
default: undefined;
|
|
291
|
+
};
|
|
292
|
+
expanded: {
|
|
293
|
+
type: BooleanConstructor;
|
|
294
|
+
default: boolean;
|
|
295
|
+
};
|
|
243
296
|
}>> & Readonly<{
|
|
244
297
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
245
298
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
246
299
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
300
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
247
301
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
248
302
|
onCleared?: ((...args: any[]) => any) | undefined;
|
|
249
303
|
}>, {
|
|
@@ -252,6 +306,7 @@ declare const __VLS_component: import('../../../node_modules/vue').DefineCompone
|
|
|
252
306
|
click: (...args: any[]) => void;
|
|
253
307
|
blur: (...args: any[]) => void;
|
|
254
308
|
focus: (...args: any[]) => void;
|
|
309
|
+
keydown: (...args: any[]) => void;
|
|
255
310
|
"update:modelValue": (...args: any[]) => void;
|
|
256
311
|
cleared: (...args: any[]) => void;
|
|
257
312
|
}, import('../../../node_modules/vue').PublicProps, {
|
|
@@ -260,6 +315,9 @@ declare const __VLS_component: import('../../../node_modules/vue').DefineCompone
|
|
|
260
315
|
placeholder: string;
|
|
261
316
|
isToFocus: boolean;
|
|
262
317
|
hasError: boolean;
|
|
318
|
+
listboxId: string;
|
|
319
|
+
activeOptionId: string;
|
|
320
|
+
expanded: boolean;
|
|
263
321
|
}, true, {}, {}, import('../../../node_modules/vue').GlobalComponents, import('../../../node_modules/vue').GlobalDirectives, string, {
|
|
264
322
|
searchInput: HTMLInputElement;
|
|
265
323
|
}, HTMLDivElement, import('../../../node_modules/vue').ComponentProvideOptions, {
|
|
@@ -298,10 +356,23 @@ declare const __VLS_component: import('../../../node_modules/vue').DefineCompone
|
|
|
298
356
|
required: false;
|
|
299
357
|
default: boolean;
|
|
300
358
|
};
|
|
359
|
+
listboxId: {
|
|
360
|
+
type: StringConstructor;
|
|
361
|
+
default: undefined;
|
|
362
|
+
};
|
|
363
|
+
activeOptionId: {
|
|
364
|
+
type: StringConstructor;
|
|
365
|
+
default: undefined;
|
|
366
|
+
};
|
|
367
|
+
expanded: {
|
|
368
|
+
type: BooleanConstructor;
|
|
369
|
+
default: boolean;
|
|
370
|
+
};
|
|
301
371
|
}>> & Readonly<{
|
|
302
372
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
303
373
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
304
374
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
375
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
305
376
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
306
377
|
onCleared?: ((...args: any[]) => any) | undefined;
|
|
307
378
|
}>, {
|
|
@@ -312,6 +383,9 @@ declare const __VLS_component: import('../../../node_modules/vue').DefineCompone
|
|
|
312
383
|
placeholder: string;
|
|
313
384
|
isToFocus: boolean;
|
|
314
385
|
hasError: boolean;
|
|
386
|
+
listboxId: string;
|
|
387
|
+
activeOptionId: string;
|
|
388
|
+
expanded: boolean;
|
|
315
389
|
}> | null;
|
|
316
390
|
options: HTMLUListElement;
|
|
317
391
|
}, HTMLDivElement>;
|