sprintify-ui 0.8.13 → 0.8.15
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/sprintify-ui.es.js +1597 -1585
- package/dist/types/components/BaseAutocomplete.vue.d.ts +9 -0
- package/dist/types/components/BaseAutocompleteFetch.vue.d.ts +9 -0
- package/dist/types/components/BaseLayoutSidebarConfigurable.vue.d.ts +1 -0
- package/dist/types/components/BaseRadioGroup.vue.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/BaseAutocomplete.vue +6 -1
- package/src/components/BaseAutocompleteFetch.vue +5 -0
- package/src/components/BaseLayoutSidebarConfigurable.stories.js +15 -0
- package/src/components/BaseLayoutSidebarConfigurable.vue +2 -2
|
@@ -96,6 +96,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
96
96
|
default: undefined;
|
|
97
97
|
type: PropType<SelectConfiguration | undefined>;
|
|
98
98
|
};
|
|
99
|
+
twInput: {
|
|
100
|
+
default: undefined;
|
|
101
|
+
type: PropType<string | string[]>;
|
|
102
|
+
};
|
|
99
103
|
}, {
|
|
100
104
|
focus: typeof focus;
|
|
101
105
|
blur: typeof blur;
|
|
@@ -200,6 +204,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
200
204
|
default: undefined;
|
|
201
205
|
type: PropType<SelectConfiguration | undefined>;
|
|
202
206
|
};
|
|
207
|
+
twInput: {
|
|
208
|
+
default: undefined;
|
|
209
|
+
type: PropType<string | string[]>;
|
|
210
|
+
};
|
|
203
211
|
}>> & {
|
|
204
212
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
205
213
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -228,6 +236,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
228
236
|
showEmptyOption: boolean;
|
|
229
237
|
showRemoveButton: boolean;
|
|
230
238
|
emptyOptionLabel: string;
|
|
239
|
+
twInput: string | string[];
|
|
231
240
|
}, {}>, {
|
|
232
241
|
empty?(_: {
|
|
233
242
|
focus: typeof focus;
|
|
@@ -81,6 +81,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
81
81
|
default: undefined;
|
|
82
82
|
type: PropType<SelectConfiguration | undefined>;
|
|
83
83
|
};
|
|
84
|
+
twInput: {
|
|
85
|
+
default: undefined;
|
|
86
|
+
type: PropType<string | string[]>;
|
|
87
|
+
};
|
|
84
88
|
}, {
|
|
85
89
|
focus: () => void | undefined;
|
|
86
90
|
blur: () => void | undefined;
|
|
@@ -174,6 +178,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
174
178
|
default: undefined;
|
|
175
179
|
type: PropType<SelectConfiguration | undefined>;
|
|
176
180
|
};
|
|
181
|
+
twInput: {
|
|
182
|
+
default: undefined;
|
|
183
|
+
type: PropType<string | string[]>;
|
|
184
|
+
};
|
|
177
185
|
}>> & {
|
|
178
186
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
179
187
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -197,6 +205,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
197
205
|
showEmptyOption: boolean;
|
|
198
206
|
showRemoveButton: boolean;
|
|
199
207
|
emptyOptionLabel: string;
|
|
208
|
+
twInput: string | string[];
|
|
200
209
|
queryKey: string;
|
|
201
210
|
}, {}>, {
|
|
202
211
|
option?(_: {
|
|
@@ -92,8 +92,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
92
92
|
name: string;
|
|
93
93
|
disabled: boolean;
|
|
94
94
|
hasError: boolean;
|
|
95
|
-
labelClass: string;
|
|
96
95
|
twInput: string;
|
|
96
|
+
labelClass: string;
|
|
97
97
|
}, {}>, {
|
|
98
98
|
option?(_: {
|
|
99
99
|
option: NormalizedOption;
|
package/package.json
CHANGED
|
@@ -211,6 +211,10 @@ const props = defineProps({
|
|
|
211
211
|
default: undefined,
|
|
212
212
|
type: Object as PropType<SelectConfiguration | undefined>,
|
|
213
213
|
},
|
|
214
|
+
twInput: {
|
|
215
|
+
default: undefined,
|
|
216
|
+
type: [String, Array] as PropType<string | string[]>,
|
|
217
|
+
},
|
|
214
218
|
});
|
|
215
219
|
|
|
216
220
|
const emit = defineEmits([
|
|
@@ -521,7 +525,8 @@ const inputClasses = computed(() => {
|
|
|
521
525
|
return [
|
|
522
526
|
base,
|
|
523
527
|
withSelect,
|
|
524
|
-
paddingRight
|
|
528
|
+
paddingRight,
|
|
529
|
+
props.twInput,
|
|
525
530
|
];
|
|
526
531
|
})
|
|
527
532
|
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
:show-remove-button="showRemoveButton"
|
|
24
24
|
:select="select"
|
|
25
25
|
:filter="filterOptions"
|
|
26
|
+
:tw-input="twInput"
|
|
26
27
|
@clear="onClear"
|
|
27
28
|
@open="onOpen"
|
|
28
29
|
@typing="onTyping"
|
|
@@ -167,6 +168,10 @@ const props = defineProps({
|
|
|
167
168
|
default: undefined,
|
|
168
169
|
type: Object as PropType<SelectConfiguration | undefined>,
|
|
169
170
|
},
|
|
171
|
+
twInput: {
|
|
172
|
+
default: undefined,
|
|
173
|
+
type: [String, Array] as PropType<string | string[]>,
|
|
174
|
+
},
|
|
170
175
|
});
|
|
171
176
|
|
|
172
177
|
const emit = defineEmits([
|
|
@@ -3,6 +3,7 @@ import PageDashboard from '../../.storybook/components/PageDashboard.vue';
|
|
|
3
3
|
import BaseLayoutSidebarConfigurable from './BaseLayoutSidebarConfigurable.vue';
|
|
4
4
|
import { useSystemAlertStore } from '../stores/systemAlerts';
|
|
5
5
|
import { sizes } from '../../.storybook/utils';
|
|
6
|
+
import BaseAutocompleteFetch from './BaseAutocompleteFetch.vue';
|
|
6
7
|
|
|
7
8
|
export default {
|
|
8
9
|
title: 'Layout/BaseLayoutSidebarConfigurable',
|
|
@@ -149,6 +150,7 @@ const Template = (args) => ({
|
|
|
149
150
|
components: {
|
|
150
151
|
BaseLayoutSidebarConfigurable,
|
|
151
152
|
PageDashboard,
|
|
153
|
+
BaseAutocompleteFetch,
|
|
152
154
|
},
|
|
153
155
|
setup() {
|
|
154
156
|
|
|
@@ -162,6 +164,19 @@ const Template = (args) => ({
|
|
|
162
164
|
},
|
|
163
165
|
template: `
|
|
164
166
|
<BaseLayoutSidebarConfigurable v-bind="args">
|
|
167
|
+
|
|
168
|
+
<template #navbar>
|
|
169
|
+
<div class="hidden items-center grow || sm:flex">
|
|
170
|
+
<BaseAutocompleteFetch
|
|
171
|
+
url="https://faker.witify.io/api/todos"
|
|
172
|
+
labelKey="title"
|
|
173
|
+
valueKey="id"
|
|
174
|
+
class="w-full"
|
|
175
|
+
size="md"
|
|
176
|
+
/>
|
|
177
|
+
</div>
|
|
178
|
+
</template>
|
|
179
|
+
|
|
165
180
|
<div class="py-10 bg-slate-50">
|
|
166
181
|
<PageDashboard />
|
|
167
182
|
</div>
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
|
|
68
68
|
<template #navbar>
|
|
69
69
|
<div class="flex flex-1 justify-between px-4">
|
|
70
|
-
<div class="flex
|
|
71
|
-
|
|
70
|
+
<div class="flex grow">
|
|
71
|
+
<slot name="navbar" />
|
|
72
72
|
</div>
|
|
73
73
|
|
|
74
74
|
<div class="ml-4 flex items-center md:ml-6">
|