sprintify-ui 0.0.76 → 0.0.78
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 +7357 -6179
- package/dist/types/src/components/BaseAutocomplete.vue.d.ts +130 -6
- package/dist/types/src/components/BaseAutocompleteFetch.vue.d.ts +99 -5
- package/dist/types/src/components/BaseBelongsTo.vue.d.ts +96 -2
- package/dist/types/src/components/BaseDropdown.vue.d.ts +131 -0
- package/dist/types/src/components/BaseInput.vue.d.ts +1 -1
- package/dist/types/src/components/BaseLocaleForm.vue.d.ts +1 -1
- package/dist/types/src/components/BaseNavbarSideItem.vue.d.ts +3 -3
- package/dist/types/src/components/BaseRadioGroup.vue.d.ts +4 -4
- package/dist/types/src/components/BaseTagAutocomplete.vue.d.ts +3 -3
- package/dist/types/src/components/BaseTagAutocompleteFetch.vue.d.ts +3 -3
- package/dist/types/src/components/index.d.ts +2 -1
- package/package.json +3 -1
- package/src/components/BaseAutocomplete.stories.js +46 -0
- package/src/components/BaseAutocomplete.vue +223 -108
- package/src/components/BaseAutocompleteFetch.stories.js +40 -0
- package/src/components/BaseAutocompleteFetch.vue +43 -6
- package/src/components/BaseBelongsTo.stories.js +40 -0
- package/src/components/BaseBelongsTo.vue +25 -0
- package/src/components/BaseDropdown.stories.js +102 -0
- package/src/components/BaseDropdown.vue +144 -0
- package/src/components/index.ts +2 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { Placement } from '@popperjs/core';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
new (...args: any[]): {
|
|
5
|
+
$: import("vue").ComponentInternalInstance;
|
|
6
|
+
$data: {};
|
|
7
|
+
$props: Partial<{
|
|
8
|
+
placement: Placement;
|
|
9
|
+
offset: [number, number];
|
|
10
|
+
animated: boolean;
|
|
11
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
placement: {
|
|
13
|
+
type: PropType<Placement>;
|
|
14
|
+
default(): "bottom";
|
|
15
|
+
};
|
|
16
|
+
offset: {
|
|
17
|
+
default(): number[];
|
|
18
|
+
type: PropType<[number, number]>;
|
|
19
|
+
};
|
|
20
|
+
animated: {
|
|
21
|
+
default: boolean;
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
};
|
|
24
|
+
}>> & {
|
|
25
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "offset" | "animated">;
|
|
28
|
+
$attrs: {
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
$refs: {
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
$slots: Readonly<{
|
|
35
|
+
[name: string]: import("vue").Slot | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
38
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
39
|
+
$emit: (event: "open" | "close", ...args: any[]) => void;
|
|
40
|
+
$el: any;
|
|
41
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
placement: {
|
|
43
|
+
type: PropType<Placement>;
|
|
44
|
+
default(): "bottom";
|
|
45
|
+
};
|
|
46
|
+
offset: {
|
|
47
|
+
default(): number[];
|
|
48
|
+
type: PropType<[number, number]>;
|
|
49
|
+
};
|
|
50
|
+
animated: {
|
|
51
|
+
default: boolean;
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
};
|
|
54
|
+
}>> & {
|
|
55
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close")[], string, {
|
|
58
|
+
placement: Placement;
|
|
59
|
+
offset: [number, number];
|
|
60
|
+
animated: boolean;
|
|
61
|
+
}, {}, string> & {
|
|
62
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
63
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
65
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
66
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
67
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
68
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
69
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
70
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
71
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
72
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
73
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
74
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
75
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
76
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
77
|
+
};
|
|
78
|
+
$forceUpdate: () => void;
|
|
79
|
+
$nextTick: typeof import("vue").nextTick;
|
|
80
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
81
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
82
|
+
placement: {
|
|
83
|
+
type: PropType<Placement>;
|
|
84
|
+
default(): "bottom";
|
|
85
|
+
};
|
|
86
|
+
offset: {
|
|
87
|
+
default(): number[];
|
|
88
|
+
type: PropType<[number, number]>;
|
|
89
|
+
};
|
|
90
|
+
animated: {
|
|
91
|
+
default: boolean;
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
};
|
|
94
|
+
}>> & {
|
|
95
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
96
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
97
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
98
|
+
__isFragment?: undefined;
|
|
99
|
+
__isTeleport?: undefined;
|
|
100
|
+
__isSuspense?: undefined;
|
|
101
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
102
|
+
placement: {
|
|
103
|
+
type: PropType<Placement>;
|
|
104
|
+
default(): "bottom";
|
|
105
|
+
};
|
|
106
|
+
offset: {
|
|
107
|
+
default(): number[];
|
|
108
|
+
type: PropType<[number, number]>;
|
|
109
|
+
};
|
|
110
|
+
animated: {
|
|
111
|
+
default: boolean;
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
};
|
|
114
|
+
}>> & {
|
|
115
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
116
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
117
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close")[], "open" | "close", {
|
|
118
|
+
placement: Placement;
|
|
119
|
+
offset: [number, number];
|
|
120
|
+
animated: boolean;
|
|
121
|
+
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
122
|
+
$slots: {
|
|
123
|
+
button: (_: {}) => any;
|
|
124
|
+
dropdown: (_: {
|
|
125
|
+
close: () => void;
|
|
126
|
+
open: () => void;
|
|
127
|
+
toggle: () => void;
|
|
128
|
+
}) => any;
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
export default _default;
|
|
@@ -148,9 +148,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
148
148
|
placeholder: string;
|
|
149
149
|
disabled: boolean;
|
|
150
150
|
hasError: boolean;
|
|
151
|
+
autocomplete: boolean;
|
|
151
152
|
min: number;
|
|
152
153
|
max: number;
|
|
153
|
-
autocomplete: boolean;
|
|
154
154
|
preventSubmit: boolean;
|
|
155
155
|
iconLeft: string;
|
|
156
156
|
iconRight: string;
|
|
@@ -430,10 +430,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
430
430
|
};
|
|
431
431
|
}>>, {
|
|
432
432
|
props: Record<string, any>;
|
|
433
|
+
inputClass: string;
|
|
433
434
|
component: string;
|
|
434
435
|
defaultValue: string | number | boolean;
|
|
435
436
|
locales: Locales;
|
|
436
|
-
inputClass: string;
|
|
437
437
|
layout: string;
|
|
438
438
|
}>;
|
|
439
439
|
export default _default;
|
|
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
actionsVisible: {
|
|
13
13
|
default: string;
|
|
14
|
-
type: PropType<"
|
|
14
|
+
type: PropType<"always" | "toggle">;
|
|
15
15
|
};
|
|
16
16
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
item: {
|
|
@@ -24,12 +24,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
};
|
|
25
25
|
actionsVisible: {
|
|
26
26
|
default: string;
|
|
27
|
-
type: PropType<"
|
|
27
|
+
type: PropType<"always" | "toggle">;
|
|
28
28
|
};
|
|
29
29
|
}>> & {
|
|
30
30
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
dark: boolean;
|
|
33
|
-
actionsVisible: "
|
|
33
|
+
actionsVisible: "always" | "toggle";
|
|
34
34
|
}>;
|
|
35
35
|
export default _default;
|
|
@@ -9,8 +9,8 @@ declare const _default: {
|
|
|
9
9
|
modelValue: Option | undefined;
|
|
10
10
|
disabled: boolean;
|
|
11
11
|
hasError: boolean;
|
|
12
|
-
labelClass: string;
|
|
13
12
|
inputClass: string;
|
|
13
|
+
labelClass: string;
|
|
14
14
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
15
15
|
modelValue: {
|
|
16
16
|
default: undefined;
|
|
@@ -54,7 +54,7 @@ declare const _default: {
|
|
|
54
54
|
};
|
|
55
55
|
}>> & {
|
|
56
56
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
57
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "required" | "modelValue" | "disabled" | "hasError" | "
|
|
57
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "required" | "modelValue" | "disabled" | "hasError" | "inputClass" | "labelClass">;
|
|
58
58
|
$attrs: {
|
|
59
59
|
[x: string]: unknown;
|
|
60
60
|
};
|
|
@@ -116,8 +116,8 @@ declare const _default: {
|
|
|
116
116
|
modelValue: Option | undefined;
|
|
117
117
|
disabled: boolean;
|
|
118
118
|
hasError: boolean;
|
|
119
|
-
labelClass: string;
|
|
120
119
|
inputClass: string;
|
|
120
|
+
labelClass: string;
|
|
121
121
|
}, {}, string> & {
|
|
122
122
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
123
123
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -233,8 +233,8 @@ declare const _default: {
|
|
|
233
233
|
modelValue: Option | undefined;
|
|
234
234
|
disabled: boolean;
|
|
235
235
|
hasError: boolean;
|
|
236
|
-
labelClass: string;
|
|
237
236
|
inputClass: string;
|
|
237
|
+
labelClass: string;
|
|
238
238
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
239
239
|
$slots: {
|
|
240
240
|
option: (_: {
|
|
@@ -79,7 +79,7 @@ declare const _default: {
|
|
|
79
79
|
}>;
|
|
80
80
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
81
81
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
82
|
-
$emit: (event: "update:modelValue" | "
|
|
82
|
+
$emit: (event: "update:modelValue" | "focus" | "typing" | "scrollBottom", ...args: any[]) => void;
|
|
83
83
|
$el: any;
|
|
84
84
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
85
85
|
modelValue: {
|
|
@@ -135,7 +135,7 @@ declare const _default: {
|
|
|
135
135
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
136
136
|
onTyping?: ((...args: any[]) => any) | undefined;
|
|
137
137
|
onScrollBottom?: ((...args: any[]) => any) | undefined;
|
|
138
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "
|
|
138
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "focus" | "typing" | "scrollBottom")[], string, {
|
|
139
139
|
filter: (option: NormalizedOption) => boolean;
|
|
140
140
|
required: boolean;
|
|
141
141
|
name: string;
|
|
@@ -276,7 +276,7 @@ declare const _default: {
|
|
|
276
276
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
277
277
|
onTyping?: ((...args: any[]) => any) | undefined;
|
|
278
278
|
onScrollBottom?: ((...args: any[]) => any) | undefined;
|
|
279
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "
|
|
279
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "focus" | "typing" | "scrollBottom")[], "update:modelValue" | "focus" | "typing" | "scrollBottom", {
|
|
280
280
|
filter: (option: NormalizedOption) => boolean;
|
|
281
281
|
required: boolean;
|
|
282
282
|
name: string;
|
|
@@ -69,7 +69,7 @@ declare const _default: {
|
|
|
69
69
|
}>;
|
|
70
70
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
71
71
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
72
|
-
$emit: (event: "update:modelValue" | "
|
|
72
|
+
$emit: (event: "update:modelValue" | "focus" | "typing" | "scrollBottom", ...args: any[]) => void;
|
|
73
73
|
$el: any;
|
|
74
74
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
75
75
|
modelValue: {
|
|
@@ -117,7 +117,7 @@ declare const _default: {
|
|
|
117
117
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
118
118
|
onTyping?: ((...args: any[]) => any) | undefined;
|
|
119
119
|
onScrollBottom?: ((...args: any[]) => any) | undefined;
|
|
120
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "
|
|
120
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "focus" | "typing" | "scrollBottom")[], string, {
|
|
121
121
|
required: boolean;
|
|
122
122
|
placeholder: string;
|
|
123
123
|
disabled: boolean;
|
|
@@ -240,7 +240,7 @@ declare const _default: {
|
|
|
240
240
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
241
241
|
onTyping?: ((...args: any[]) => any) | undefined;
|
|
242
242
|
onScrollBottom?: ((...args: any[]) => any) | undefined;
|
|
243
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "
|
|
243
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "focus" | "typing" | "scrollBottom")[], "update:modelValue" | "focus" | "typing" | "scrollBottom", {
|
|
244
244
|
required: boolean;
|
|
245
245
|
placeholder: string;
|
|
246
246
|
disabled: boolean;
|
|
@@ -26,6 +26,7 @@ import BaseDateSelect from './BaseDateSelect.vue';
|
|
|
26
26
|
import BaseDescriptionList from './BaseDescriptionList.vue';
|
|
27
27
|
import BaseDescriptionListItem from './BaseDescriptionListItem.vue';
|
|
28
28
|
import BaseDialog from './BaseDialog.vue';
|
|
29
|
+
import BaseDropdown from './BaseDropdown.vue';
|
|
29
30
|
import BaseField from './BaseField.vue';
|
|
30
31
|
import BaseFieldI18n from './BaseFieldI18n.vue';
|
|
31
32
|
import BaseFilePicker from './BaseFilePicker.vue';
|
|
@@ -74,4 +75,4 @@ import BaseLayoutStacked from './BaseLayoutStacked.vue';
|
|
|
74
75
|
import BaseLayoutStackedConfigurable from './BaseLayoutStackedConfigurable.vue';
|
|
75
76
|
import BaseLayoutSidebar from './BaseLayoutSidebar.vue';
|
|
76
77
|
import BaseLayoutSidebarConfigurable from './BaseLayoutSidebarConfigurable.vue';
|
|
77
|
-
export { BaseActionItem, BaseAlert, BaseApp, BaseAppDialogs, BaseAppNotifications, BaseAutocomplete, BaseAutocompleteFetch, BaseAvatar, BaseAvatarGroup, BaseBadge, BaseBelongsTo, BaseBoolean, BaseBreadcrumbs, BaseButton, BaseButtonGroup, BaseCard, BaseCardRow, BaseCharacterCounter, BaseClipboard, BaseContainer, BaseCounter, BaseDataIterator, BaseDataTable, BaseDatePicker, BaseDateSelect, BaseDescriptionList, BaseDescriptionListItem, BaseDialog, BaseField, BaseFieldI18n, BaseFilePicker, BaseFileUploader, BaseForm, BaseHasMany, BaseIcon, BaseInput, BaseInputLabel, BaseLoadingCover, BaseMediaItem, BaseMediaLibrary, BaseMediaPreview, BaseMenu, BaseMenuItem, BaseModalCenter, BaseModalSide, BaseNavbar, BaseNavbarItem, BaseNavbarItemContent, BasePagination, BasePanel, BasePassword, BaseProgressCircle, BaseRadioGroup, BaseReadMore, BaseSelect, BaseShortcut, BaseSideNavigation, BaseSideNavigationItem, BaseSkeleton, BaseStatistic, BaseSwitch, BaseSystemAlert, BaseTabs, BaseTabItem, BaseTagAutocomplete, BaseTagAutocompleteFetch, BaseTable, BaseTableColumn, BaseTextarea, BaseTextareaAutoresize, BaseTimeline, BaseTimelineItem, BaseLayoutStacked, BaseLayoutStackedConfigurable, BaseLayoutSidebar, BaseLayoutSidebarConfigurable, };
|
|
78
|
+
export { BaseActionItem, BaseAlert, BaseApp, BaseAppDialogs, BaseAppNotifications, BaseAutocomplete, BaseAutocompleteFetch, BaseAvatar, BaseAvatarGroup, BaseBadge, BaseBelongsTo, BaseBoolean, BaseBreadcrumbs, BaseButton, BaseButtonGroup, BaseCard, BaseCardRow, BaseCharacterCounter, BaseClipboard, BaseContainer, BaseCounter, BaseDataIterator, BaseDataTable, BaseDatePicker, BaseDateSelect, BaseDescriptionList, BaseDescriptionListItem, BaseDialog, BaseDropdown, BaseField, BaseFieldI18n, BaseFilePicker, BaseFileUploader, BaseForm, BaseHasMany, BaseIcon, BaseInput, BaseInputLabel, BaseLoadingCover, BaseMediaItem, BaseMediaLibrary, BaseMediaPreview, BaseMenu, BaseMenuItem, BaseModalCenter, BaseModalSide, BaseNavbar, BaseNavbarItem, BaseNavbarItemContent, BasePagination, BasePanel, BasePassword, BaseProgressCircle, BaseRadioGroup, BaseReadMore, BaseSelect, BaseShortcut, BaseSideNavigation, BaseSideNavigationItem, BaseSkeleton, BaseStatistic, BaseSwitch, BaseSystemAlert, BaseTabs, BaseTabItem, BaseTagAutocomplete, BaseTagAutocompleteFetch, BaseTable, BaseTableColumn, BaseTextarea, BaseTextareaAutoresize, BaseTimeline, BaseTimelineItem, BaseLayoutStacked, BaseLayoutStackedConfigurable, BaseLayoutSidebar, BaseLayoutSidebarConfigurable, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sprintify-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.78",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "rimraf dist && vue-tsc && vite build",
|
|
6
6
|
"build-fast": "rimraf dist && vite build",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"prepack": "npm run build"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
+
"@popperjs/core": "^2.11.6",
|
|
15
16
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
16
17
|
"@tailwindcss/forms": "^0.5.3",
|
|
17
18
|
"@tailwindcss/line-clamp": "^0.4.2",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@babel/core": "^7.20.2",
|
|
39
40
|
"@iconify/vue": "^4.0.0",
|
|
41
|
+
"@popperjs/core": "^2.11.6",
|
|
40
42
|
"@storybook/addon-actions": "^6.5.13",
|
|
41
43
|
"@storybook/addon-essentials": "^6.5.13",
|
|
42
44
|
"@storybook/addon-interactions": "^6.5.13",
|
|
@@ -2,9 +2,25 @@ import { createFieldStory, options } from '../../.storybook/utils';
|
|
|
2
2
|
import BaseAutocomplete from './BaseAutocomplete.vue';
|
|
3
3
|
import ShowValue from '@/../.storybook/components/ShowValue.vue';
|
|
4
4
|
|
|
5
|
+
const sizes = ['xs', 'sm', 'base'];
|
|
6
|
+
|
|
5
7
|
export default {
|
|
6
8
|
title: 'Form/BaseAutocomplete',
|
|
7
9
|
component: BaseAutocomplete,
|
|
10
|
+
argTypes: {
|
|
11
|
+
size: {
|
|
12
|
+
control: {
|
|
13
|
+
type: 'select',
|
|
14
|
+
options: sizes,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
dropdownShow: {
|
|
18
|
+
control: {
|
|
19
|
+
type: 'select',
|
|
20
|
+
options: ['always', 'focus'],
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
8
24
|
args: {
|
|
9
25
|
labelKey: 'label',
|
|
10
26
|
valueKey: 'value',
|
|
@@ -28,6 +44,17 @@ const Template = (args) => ({
|
|
|
28
44
|
export const Demo = Template.bind({});
|
|
29
45
|
Demo.args = {};
|
|
30
46
|
|
|
47
|
+
export const AlwaysShowDropdown = Template.bind({});
|
|
48
|
+
AlwaysShowDropdown.args = {
|
|
49
|
+
inline: true,
|
|
50
|
+
dropdownShow: 'always',
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const NoFocus = Template.bind({});
|
|
54
|
+
NoFocus.args = {
|
|
55
|
+
visibleFocus: false,
|
|
56
|
+
};
|
|
57
|
+
|
|
31
58
|
export const Disabled = Template.bind({});
|
|
32
59
|
Disabled.args = {
|
|
33
60
|
options: [],
|
|
@@ -40,6 +67,25 @@ Loading.args = {
|
|
|
40
67
|
loading: true,
|
|
41
68
|
};
|
|
42
69
|
|
|
70
|
+
export const Inline = Template.bind({});
|
|
71
|
+
Inline.args = {
|
|
72
|
+
inline: true,
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export const Sizes = (args) => ({
|
|
76
|
+
components: { BaseAutocomplete },
|
|
77
|
+
setup() {
|
|
78
|
+
const value = ref(null);
|
|
79
|
+
return { args, sizes, value };
|
|
80
|
+
},
|
|
81
|
+
template: `
|
|
82
|
+
<div v-for="size in sizes" class="mb-1">
|
|
83
|
+
<p class="text-xs text-slate-600 leading-tight">{{ size }}</p>
|
|
84
|
+
<BaseAutocomplete v-model="value" v-bind="args" :size="size"></BaseAutocomplete>
|
|
85
|
+
</div>
|
|
86
|
+
`,
|
|
87
|
+
});
|
|
88
|
+
|
|
43
89
|
export const SlotOption = (args) => ({
|
|
44
90
|
components: { BaseAutocomplete },
|
|
45
91
|
setup() {
|