sprintify-ui 0.1.7 → 0.1.9
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 +4585 -4412
- package/dist/tailwindcss/index.js +20 -20
- package/dist/types/src/components/BaseActionItemButton.vue.d.ts +29 -0
- package/dist/types/src/components/BaseAddressForm.vue.d.ts +12 -2
- package/dist/types/src/components/BaseAlert.vue.d.ts +3 -3
- package/dist/types/src/components/BaseAppDialogs.vue.d.ts +1 -1
- package/dist/types/src/components/BaseAutocomplete.vue.d.ts +5 -5
- package/dist/types/src/components/BaseAutocompleteDrawer.vue.d.ts +2 -2
- package/dist/types/src/components/BaseAutocompleteFetch.vue.d.ts +5 -5
- package/dist/types/src/components/BaseBelongsTo.vue.d.ts +3 -3
- package/dist/types/src/components/BaseButtonGroup.vue.d.ts +2 -2
- package/dist/types/src/components/BaseCharacterCounter.vue.d.ts +1 -1
- package/dist/types/src/components/BaseColor.vue.d.ts +2 -2
- package/dist/types/src/components/BaseCounter.vue.d.ts +3 -3
- package/dist/types/src/components/BaseDatePicker.vue.d.ts +1 -1
- package/dist/types/src/components/BaseDialog.vue.d.ts +2 -2
- package/dist/types/src/components/BaseDropdownAutocomplete.vue.d.ts +5 -5
- package/dist/types/src/components/BaseFieldI18n.vue.d.ts +2 -2
- package/dist/types/src/components/BaseFilePicker.vue.d.ts +1 -1
- package/dist/types/src/components/BaseFileUploader.vue.d.ts +2 -2
- package/dist/types/src/components/BaseHasMany.vue.d.ts +2 -2
- package/dist/types/src/components/BaseHeader.vue.d.ts +42 -0
- package/dist/types/src/components/BaseInput.vue.d.ts +5 -5
- package/dist/types/src/components/BaseInputPercent.vue.d.ts +4 -4
- package/dist/types/src/components/BaseLoadingCover.vue.d.ts +2 -2
- package/dist/types/src/components/BaseMediaLibrary.vue.d.ts +4 -4
- package/dist/types/src/components/BaseMediaListItem.vue.d.ts +1 -1
- package/dist/types/src/components/BaseMenuItem.vue.d.ts +3 -3
- package/dist/types/src/components/BaseModalCenter.vue.d.ts +1 -1
- package/dist/types/src/components/BaseModalSide.vue.d.ts +1 -1
- package/dist/types/src/components/BaseNavbarItemContent.vue.d.ts +1 -1
- package/dist/types/src/components/BaseNavbarSideItemContent.vue.d.ts +1 -1
- package/dist/types/src/components/BaseNumber.vue.d.ts +7 -7
- package/dist/types/src/components/BasePassword.vue.d.ts +2 -2
- package/dist/types/src/components/BaseRadioGroup.vue.d.ts +1 -1
- package/dist/types/src/components/BaseRichText.vue.d.ts +2 -2
- package/dist/types/src/components/BaseSelect.vue.d.ts +3 -3
- package/dist/types/src/components/BaseSwitch.vue.d.ts +4 -4
- package/dist/types/src/components/BaseSystemAlert.vue.d.ts +3 -3
- package/dist/types/src/components/BaseTagAutocomplete.vue.d.ts +4 -4
- package/dist/types/src/components/BaseTagAutocompleteFetch.vue.d.ts +2 -2
- package/dist/types/src/components/BaseTextarea.vue.d.ts +3 -3
- package/dist/types/src/components/BaseTextareaAutoresize.vue.d.ts +2 -2
- package/dist/types/src/components/index.d.ts +2 -1
- package/dist/types/src/index.d.ts +4 -0
- package/dist/types/src/types/index.d.ts +6 -5
- package/package.json +1 -1
- package/src/components/BaseActionItemButton.vue +73 -0
- package/src/components/BaseAddressForm.vue +6 -0
- package/src/components/BaseBreadcrumbs.vue +25 -6
- package/src/components/BaseHeader.stories.js +120 -0
- package/src/components/BaseHeader.vue +146 -0
- package/src/components/BaseMenuItem.vue +3 -1
- package/src/components/index.ts +2 -0
- package/src/lang/en.json +1 -0
- package/src/lang/fr.json +1 -0
- package/src/types/index.ts +6 -5
|
@@ -87,10 +87,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
87
87
|
};
|
|
88
88
|
}>>, {
|
|
89
89
|
iconClass: string;
|
|
90
|
+
modelValue: boolean;
|
|
90
91
|
duration: string;
|
|
91
|
-
size: "sm" | "lg";
|
|
92
92
|
delay: number;
|
|
93
|
-
|
|
93
|
+
size: "sm" | "lg";
|
|
94
94
|
backdropClass: string;
|
|
95
95
|
}>;
|
|
96
96
|
export default _default;
|
|
@@ -139,13 +139,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
139
139
|
"onUpload:end"?: ((...args: any[]) => any) | undefined;
|
|
140
140
|
}, {
|
|
141
141
|
name: string;
|
|
142
|
-
|
|
143
|
-
accept: string;
|
|
142
|
+
modelValue: MediaLibraryPayload;
|
|
144
143
|
disabled: boolean;
|
|
145
|
-
max: number;
|
|
146
144
|
min: number;
|
|
147
|
-
|
|
145
|
+
max: number;
|
|
148
146
|
hasError: boolean;
|
|
147
|
+
cropper: boolean | BaseCropperConfig | null;
|
|
148
|
+
accept: string;
|
|
149
149
|
layout: "list" | "gallery" | "images";
|
|
150
150
|
maxSize: number;
|
|
151
151
|
acceptedExtensions: string[];
|
|
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
default: boolean;
|
|
19
19
|
type: BooleanConstructor;
|
|
20
20
|
};
|
|
21
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
21
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update" | "remove" | "save:name")[], "update" | "remove" | "save:name", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
22
|
media: {
|
|
23
23
|
required: true;
|
|
24
24
|
type: PropType<UploadedFile | Media>;
|
|
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
};
|
|
19
19
|
color: {
|
|
20
20
|
default: string;
|
|
21
|
-
type: PropType<"
|
|
21
|
+
type: PropType<"dark" | "light" | "danger" | "success" | "warning" | "primary">;
|
|
22
22
|
};
|
|
23
23
|
size: {
|
|
24
24
|
default: string;
|
|
@@ -43,7 +43,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
43
|
};
|
|
44
44
|
color: {
|
|
45
45
|
default: string;
|
|
46
|
-
type: PropType<"
|
|
46
|
+
type: PropType<"dark" | "light" | "danger" | "success" | "warning" | "primary">;
|
|
47
47
|
};
|
|
48
48
|
size: {
|
|
49
49
|
default: string;
|
|
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
}>>, {
|
|
53
53
|
label: string;
|
|
54
54
|
active: boolean;
|
|
55
|
-
color: "
|
|
55
|
+
color: "dark" | "light" | "danger" | "success" | "warning" | "primary";
|
|
56
56
|
icon: string;
|
|
57
57
|
count: number;
|
|
58
58
|
size: "xs" | "sm" | "md";
|
|
@@ -59,8 +59,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
59
59
|
}>> & {
|
|
60
60
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
61
61
|
}, {
|
|
62
|
-
closeOnOutsideClick: boolean;
|
|
63
62
|
modelValue: boolean;
|
|
63
|
+
closeOnOutsideClick: boolean;
|
|
64
64
|
clipped: boolean;
|
|
65
65
|
maxWidth: string;
|
|
66
66
|
backdropClass: string;
|
|
@@ -43,8 +43,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
43
43
|
}>> & {
|
|
44
44
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
45
45
|
}, {
|
|
46
|
-
closeOnOutsideClick: boolean;
|
|
47
46
|
modelValue: boolean;
|
|
47
|
+
closeOnOutsideClick: boolean;
|
|
48
48
|
clipped: boolean;
|
|
49
49
|
maxWidth: string;
|
|
50
50
|
backdropClass: string;
|
|
@@ -45,13 +45,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
45
|
};
|
|
46
46
|
rounded: {
|
|
47
47
|
default: string;
|
|
48
|
-
type: PropType<"left" | "right" | "
|
|
48
|
+
type: PropType<"left" | "right" | "full" | "none">;
|
|
49
49
|
};
|
|
50
50
|
autoFix: {
|
|
51
51
|
default: boolean;
|
|
52
52
|
type: BooleanConstructor;
|
|
53
53
|
};
|
|
54
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "
|
|
54
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "focus" | "blur" | "keydown")[], "update:modelValue" | "focus" | "blur" | "keydown", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
55
|
modelValue: {
|
|
56
56
|
default: undefined;
|
|
57
57
|
type: PropType<number | null>;
|
|
@@ -97,7 +97,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
97
97
|
};
|
|
98
98
|
rounded: {
|
|
99
99
|
default: string;
|
|
100
|
-
type: PropType<"left" | "right" | "
|
|
100
|
+
type: PropType<"left" | "right" | "full" | "none">;
|
|
101
101
|
};
|
|
102
102
|
autoFix: {
|
|
103
103
|
default: boolean;
|
|
@@ -112,14 +112,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
112
112
|
name: string;
|
|
113
113
|
step: number;
|
|
114
114
|
required: boolean;
|
|
115
|
+
modelValue: number | null;
|
|
116
|
+
placeholder: string;
|
|
115
117
|
disabled: boolean;
|
|
116
|
-
max: number;
|
|
117
118
|
min: number;
|
|
118
|
-
|
|
119
|
-
modelValue: number | null;
|
|
119
|
+
max: number;
|
|
120
120
|
hasError: boolean;
|
|
121
|
-
rounded: "left" | "right" | "none" | "full";
|
|
122
121
|
borderless: boolean;
|
|
122
|
+
rounded: "left" | "right" | "full" | "none";
|
|
123
123
|
autoFix: boolean;
|
|
124
124
|
}>;
|
|
125
125
|
export default _default;
|
|
@@ -54,9 +54,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
54
|
}, {
|
|
55
55
|
name: string;
|
|
56
56
|
required: boolean;
|
|
57
|
-
disabled: boolean;
|
|
58
|
-
placeholder: string;
|
|
59
57
|
modelValue: string | null;
|
|
58
|
+
placeholder: string;
|
|
59
|
+
disabled: boolean;
|
|
60
60
|
hasError: boolean;
|
|
61
61
|
}>;
|
|
62
62
|
export default _default;
|
|
@@ -88,8 +88,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
88
88
|
name: string;
|
|
89
89
|
required: boolean;
|
|
90
90
|
labelClass: string;
|
|
91
|
-
disabled: boolean;
|
|
92
91
|
modelValue: OptionValue | undefined;
|
|
92
|
+
disabled: boolean;
|
|
93
93
|
hasError: boolean;
|
|
94
94
|
inputClass: string;
|
|
95
95
|
}>, {
|
|
@@ -81,9 +81,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
81
|
}, {
|
|
82
82
|
name: string;
|
|
83
83
|
required: boolean;
|
|
84
|
-
disabled: boolean;
|
|
85
|
-
placeholder: string;
|
|
86
84
|
modelValue: string | Delta | null | undefined;
|
|
85
|
+
placeholder: string;
|
|
86
|
+
disabled: boolean;
|
|
87
87
|
hasError: boolean;
|
|
88
88
|
enable: boolean;
|
|
89
89
|
toolbar: string | unknown[] | Record<string, any> | undefined;
|
|
@@ -79,13 +79,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
79
79
|
}, {
|
|
80
80
|
name: string;
|
|
81
81
|
required: boolean;
|
|
82
|
-
|
|
82
|
+
modelValue: (string | number | null) | undefined;
|
|
83
83
|
placeholder: string;
|
|
84
|
+
disabled: boolean;
|
|
85
|
+
hasError: boolean;
|
|
84
86
|
options: Option[];
|
|
85
|
-
modelValue: (string | number | null) | undefined;
|
|
86
87
|
labelKey: string;
|
|
87
88
|
valueKey: string;
|
|
88
|
-
hasError: boolean;
|
|
89
89
|
}>, {
|
|
90
90
|
default: (_: {}) => any;
|
|
91
91
|
}>;
|
|
@@ -10,7 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
10
10
|
};
|
|
11
11
|
color: {
|
|
12
12
|
default: string;
|
|
13
|
-
type: PropType<"
|
|
13
|
+
type: PropType<"dark" | "light" | "danger" | "success" | "warning" | "primary" | "info">;
|
|
14
14
|
};
|
|
15
15
|
size: {
|
|
16
16
|
default: string;
|
|
@@ -35,7 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
35
35
|
};
|
|
36
36
|
color: {
|
|
37
37
|
default: string;
|
|
38
|
-
type: PropType<"
|
|
38
|
+
type: PropType<"dark" | "light" | "danger" | "success" | "warning" | "primary" | "info">;
|
|
39
39
|
};
|
|
40
40
|
size: {
|
|
41
41
|
default: string;
|
|
@@ -53,11 +53,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
53
53
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
54
54
|
}, {
|
|
55
55
|
name: string;
|
|
56
|
-
color: "
|
|
56
|
+
color: "dark" | "light" | "danger" | "success" | "warning" | "primary" | "info";
|
|
57
57
|
required: boolean;
|
|
58
|
-
size: "base" | "xs" | "sm" | "lg" | "xl";
|
|
59
58
|
modelValue: string | number | boolean | null | undefined;
|
|
60
59
|
hasError: boolean;
|
|
60
|
+
size: "base" | "xs" | "sm" | "lg" | "xl";
|
|
61
61
|
}>, {
|
|
62
62
|
default: (_: {}) => any;
|
|
63
63
|
}>;
|
|
@@ -11,7 +11,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
color: {
|
|
13
13
|
default: string;
|
|
14
|
-
type: PropType<"
|
|
14
|
+
type: PropType<"danger" | "success" | "warning" | "info">;
|
|
15
15
|
};
|
|
16
16
|
closable: {
|
|
17
17
|
default: boolean;
|
|
@@ -28,7 +28,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
28
28
|
};
|
|
29
29
|
color: {
|
|
30
30
|
default: string;
|
|
31
|
-
type: PropType<"
|
|
31
|
+
type: PropType<"danger" | "success" | "warning" | "info">;
|
|
32
32
|
};
|
|
33
33
|
closable: {
|
|
34
34
|
default: boolean;
|
|
@@ -39,7 +39,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
39
39
|
}, {
|
|
40
40
|
to: RouteLocationRaw | undefined;
|
|
41
41
|
action: () => Promise<void> | void;
|
|
42
|
-
color: "
|
|
42
|
+
color: "danger" | "success" | "warning" | "info";
|
|
43
43
|
closable: boolean;
|
|
44
44
|
}>, {
|
|
45
45
|
default: (_: {}) => any;
|
|
@@ -137,8 +137,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
137
137
|
type: PropType<"focus" | "always">;
|
|
138
138
|
};
|
|
139
139
|
}>> & {
|
|
140
|
-
onScrollBottom?: ((...args: any[]) => any) | undefined;
|
|
141
140
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
141
|
+
onScrollBottom?: ((...args: any[]) => any) | undefined;
|
|
142
142
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
143
143
|
onTyping?: ((...args: any[]) => any) | undefined;
|
|
144
144
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
@@ -146,13 +146,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
146
146
|
filter: (option: NormalizedOption) => boolean;
|
|
147
147
|
name: string;
|
|
148
148
|
required: boolean;
|
|
149
|
+
placeholder: string;
|
|
149
150
|
disabled: boolean;
|
|
150
151
|
max: number;
|
|
151
|
-
|
|
152
|
-
size: "base" | "xs" | "sm";
|
|
152
|
+
hasError: boolean;
|
|
153
153
|
loading: boolean;
|
|
154
154
|
loadingBottom: boolean;
|
|
155
|
-
|
|
155
|
+
size: "base" | "xs" | "sm";
|
|
156
156
|
inline: boolean;
|
|
157
157
|
dropdownShow: "focus" | "always";
|
|
158
158
|
}>, {
|
|
@@ -90,14 +90,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
90
90
|
};
|
|
91
91
|
}>> & {
|
|
92
92
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
93
|
-
onScrollBottom?: ((...args: any[]) => any) | undefined;
|
|
94
93
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
94
|
+
onScrollBottom?: ((...args: any[]) => any) | undefined;
|
|
95
95
|
onTyping?: ((...args: any[]) => any) | undefined;
|
|
96
96
|
}, {
|
|
97
97
|
required: boolean;
|
|
98
|
+
placeholder: string;
|
|
98
99
|
disabled: boolean;
|
|
99
100
|
max: number;
|
|
100
|
-
placeholder: string;
|
|
101
101
|
hasError: boolean;
|
|
102
102
|
queryKey: string;
|
|
103
103
|
}>, {
|
|
@@ -87,11 +87,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
87
87
|
type: string;
|
|
88
88
|
name: string;
|
|
89
89
|
required: boolean;
|
|
90
|
-
autocomplete: boolean;
|
|
91
|
-
disabled: boolean;
|
|
92
|
-
placeholder: string;
|
|
93
90
|
modelValue: string | null | undefined;
|
|
91
|
+
placeholder: string;
|
|
92
|
+
disabled: boolean;
|
|
94
93
|
hasError: boolean;
|
|
94
|
+
autocomplete: boolean;
|
|
95
95
|
preventSubmit: boolean;
|
|
96
96
|
rows: number;
|
|
97
97
|
}>;
|
|
@@ -87,9 +87,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
87
87
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
88
88
|
}, {
|
|
89
89
|
required: boolean;
|
|
90
|
-
disabled: boolean;
|
|
91
|
-
placeholder: string;
|
|
92
90
|
modelValue: string;
|
|
91
|
+
placeholder: string;
|
|
92
|
+
disabled: boolean;
|
|
93
93
|
hasError: boolean;
|
|
94
94
|
maxHeight: number;
|
|
95
95
|
rows: number;
|
|
@@ -42,6 +42,7 @@ import BaseFilePickerCrop from './BaseFilePickerCrop.vue';
|
|
|
42
42
|
import BaseFileUploader from './BaseFileUploader.vue';
|
|
43
43
|
import BaseForm from './BaseForm.vue';
|
|
44
44
|
import BaseHasMany from './BaseHasMany.vue';
|
|
45
|
+
import BaseHeader from './BaseHeader.vue';
|
|
45
46
|
import { Icon as BaseIcon } from '@iconify/vue';
|
|
46
47
|
import BaseIconPicker from './BaseIconPicker.vue';
|
|
47
48
|
import BaseInput from './BaseInput.vue';
|
|
@@ -89,4 +90,4 @@ import BaseLayoutStacked from './BaseLayoutStacked.vue';
|
|
|
89
90
|
import BaseLayoutStackedConfigurable from './BaseLayoutStackedConfigurable.vue';
|
|
90
91
|
import BaseLayoutSidebar from './BaseLayoutSidebar.vue';
|
|
91
92
|
import BaseLayoutSidebarConfigurable from './BaseLayoutSidebarConfigurable.vue';
|
|
92
|
-
export { BaseActionItem, BaseAddressForm, BaseAlert, BaseApp, BaseAppDialogs, BaseAppNotifications, BaseAutocomplete, BaseAutocompleteFetch, BaseAvatar, BaseAvatarGroup, BaseBadge, BaseBelongsTo, BaseBoolean, BaseBreadcrumbs, BaseButton, BaseButtonGroup, BaseCard, BaseCardRow, BaseCharacterCounter, BaseClickOutside, BaseClipboard, BaseColor, BaseContainer, BaseCounter, BaseCropper, BaseCropperModal, BaseDataIterator, BaseDataTable, BaseDatePicker, BaseDateSelect, BaseDescriptionList, BaseDescriptionListItem, BaseDialog, BaseDisplayRelativeTime, BaseDropdown, BaseDropdownAutocomplete, BaseEmptyState, BaseField, BaseFieldI18n, BaseFilePicker, BaseFilePickerCrop, BaseFileUploader, BaseForm, BaseHasMany, BaseIcon, BaseIconPicker, BaseInput, BaseInputLabel, BaseInputPercent, BaseLoadingCover, BaseMediaItem, BaseMediaLibrary, BaseMediaPreview, BaseMenu, BaseMenuItem, BaseModalCenter, BaseModalSide, BaseNavbar, BaseNavbarItem, BaseNavbarItemContent, BaseNavbarSideItem, BaseNumber, BasePagination, BasePanel, BasePassword, BaseProgressCircle, BaseRadioGroup, BaseReadMore, BaseRichText, BaseSelect, BaseShortcut, BaseSideNavigation, BaseSideNavigationItem, BaseSkeleton, BaseStatistic, BaseSwitch, BaseSystemAlert, BaseTabs, BaseTabItem, BaseTagAutocomplete, BaseTagAutocompleteFetch, BaseTable, BaseTableColumn, BaseTextarea, BaseTextareaAutoresize, BaseTimeline, BaseTimelineItem, BaseLayoutStacked, BaseLayoutStackedConfigurable, BaseLayoutSidebar, BaseLayoutSidebarConfigurable, };
|
|
93
|
+
export { BaseActionItem, BaseAddressForm, BaseAlert, BaseApp, BaseAppDialogs, BaseAppNotifications, BaseAutocomplete, BaseAutocompleteFetch, BaseAvatar, BaseAvatarGroup, BaseBadge, BaseBelongsTo, BaseBoolean, BaseBreadcrumbs, BaseButton, BaseButtonGroup, BaseCard, BaseCardRow, BaseCharacterCounter, BaseClickOutside, BaseClipboard, BaseColor, BaseContainer, BaseCounter, BaseCropper, BaseCropperModal, BaseDataIterator, BaseDataTable, BaseDatePicker, BaseDateSelect, BaseDescriptionList, BaseDescriptionListItem, BaseDialog, BaseDisplayRelativeTime, BaseDropdown, BaseDropdownAutocomplete, BaseEmptyState, BaseField, BaseFieldI18n, BaseFilePicker, BaseFilePickerCrop, BaseFileUploader, BaseForm, BaseHasMany, BaseHeader, BaseIcon, BaseIconPicker, BaseInput, BaseInputLabel, BaseInputPercent, BaseLoadingCover, BaseMediaItem, BaseMediaLibrary, BaseMediaPreview, BaseMenu, BaseMenuItem, BaseModalCenter, BaseModalSide, BaseNavbar, BaseNavbarItem, BaseNavbarItemContent, BaseNavbarSideItem, BaseNumber, BasePagination, BasePanel, BasePassword, BaseProgressCircle, BaseRadioGroup, BaseReadMore, BaseRichText, BaseSelect, BaseShortcut, BaseSideNavigation, BaseSideNavigationItem, BaseSkeleton, BaseStatistic, BaseSwitch, BaseSystemAlert, BaseTabs, BaseTabItem, BaseTagAutocomplete, BaseTagAutocompleteFetch, BaseTable, BaseTableColumn, BaseTextarea, BaseTextareaAutoresize, BaseTimeline, BaseTimelineItem, BaseLayoutStacked, BaseLayoutStackedConfigurable, BaseLayoutSidebar, BaseLayoutSidebarConfigurable, };
|
|
@@ -48,6 +48,7 @@ declare const messages: {
|
|
|
48
48
|
maximum_x_decimal_places: string;
|
|
49
49
|
min_x_characters: string;
|
|
50
50
|
month: string;
|
|
51
|
+
more: string;
|
|
51
52
|
next: string;
|
|
52
53
|
next_month: string;
|
|
53
54
|
none: string;
|
|
@@ -134,6 +135,7 @@ declare const messages: {
|
|
|
134
135
|
maximum_x_decimal_places: string;
|
|
135
136
|
min_x_characters: string;
|
|
136
137
|
month: string;
|
|
138
|
+
more: string;
|
|
137
139
|
next: string;
|
|
138
140
|
next_month: string;
|
|
139
141
|
none: string;
|
|
@@ -237,6 +239,7 @@ declare const config: {
|
|
|
237
239
|
maximum_x_decimal_places: string;
|
|
238
240
|
min_x_characters: string;
|
|
239
241
|
month: string;
|
|
242
|
+
more: string;
|
|
240
243
|
next: string;
|
|
241
244
|
next_month: string;
|
|
242
245
|
none: string;
|
|
@@ -323,6 +326,7 @@ declare const config: {
|
|
|
323
326
|
maximum_x_decimal_places: string;
|
|
324
327
|
min_x_characters: string;
|
|
325
328
|
month: string;
|
|
329
|
+
more: string;
|
|
326
330
|
next: string;
|
|
327
331
|
next_month: string;
|
|
328
332
|
none: string;
|
|
@@ -52,13 +52,13 @@ export interface PaginatedCollection extends PaginationMetadata {
|
|
|
52
52
|
}
|
|
53
53
|
export interface MenuItemInterface {
|
|
54
54
|
label?: string;
|
|
55
|
-
icon?: string;
|
|
56
|
-
action?: () => Promise<void> | void;
|
|
57
|
-
to?: RouteLocationRaw;
|
|
58
55
|
href?: string;
|
|
59
|
-
|
|
56
|
+
to?: RouteLocationRaw;
|
|
57
|
+
action?: () => Promise<void> | void;
|
|
58
|
+
icon?: string;
|
|
60
59
|
count?: number;
|
|
61
|
-
color?: 'dark' | 'light' | 'danger' | 'success' | 'warning';
|
|
60
|
+
color?: 'dark' | 'light' | 'danger' | 'success' | 'warning' | 'primary';
|
|
61
|
+
line?: boolean;
|
|
62
62
|
}
|
|
63
63
|
export interface ActionItem {
|
|
64
64
|
label: string;
|
|
@@ -67,6 +67,7 @@ export interface ActionItem {
|
|
|
67
67
|
action?: () => Promise<void> | void;
|
|
68
68
|
icon?: string;
|
|
69
69
|
count?: number;
|
|
70
|
+
color?: 'dark' | 'light' | 'danger' | 'success' | 'warning' | 'primary';
|
|
70
71
|
disabled?: boolean;
|
|
71
72
|
meta?: Record<string, any>;
|
|
72
73
|
actions?: ActionItem[];
|
package/package.json
CHANGED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<BaseActionItem
|
|
3
|
+
:to="action.to"
|
|
4
|
+
:href="action.href"
|
|
5
|
+
:action="action.action"
|
|
6
|
+
:class="classes"
|
|
7
|
+
class="flex items-center"
|
|
8
|
+
>
|
|
9
|
+
<BaseIcon
|
|
10
|
+
v-if="action.icon"
|
|
11
|
+
:icon="action.icon"
|
|
12
|
+
:class="iconClasses"
|
|
13
|
+
class="mr-2"
|
|
14
|
+
></BaseIcon>
|
|
15
|
+
<span :class="[action.icon ? 'pr-1' : '']">{{ action.label }}</span>
|
|
16
|
+
</BaseActionItem>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script lang="ts" setup>
|
|
20
|
+
import { ActionItem } from '@/types';
|
|
21
|
+
import { BaseIcon } from '..';
|
|
22
|
+
import BaseActionItem from './BaseActionItem.vue';
|
|
23
|
+
|
|
24
|
+
const props = withDefaults(
|
|
25
|
+
defineProps<{
|
|
26
|
+
action: ActionItem;
|
|
27
|
+
size: 'sm' | 'md' | 'lg';
|
|
28
|
+
}>(),
|
|
29
|
+
{
|
|
30
|
+
size: 'md',
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
const classes = computed(() => {
|
|
35
|
+
const classList = ['btn'];
|
|
36
|
+
|
|
37
|
+
if (props.action.color == 'primary') {
|
|
38
|
+
classList.push('btn-primary');
|
|
39
|
+
} else if (props.action.color == 'danger') {
|
|
40
|
+
classList.push('btn-danger');
|
|
41
|
+
} else if (props.action.color == 'warning') {
|
|
42
|
+
classList.push('btn-warning');
|
|
43
|
+
} else if (props.action.color == 'success') {
|
|
44
|
+
classList.push('btn-success');
|
|
45
|
+
} else if (props.action.color == 'light') {
|
|
46
|
+
classList.push('');
|
|
47
|
+
} else if (props.action.color == 'dark') {
|
|
48
|
+
classList.push('btn-black');
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (props.size == 'sm') {
|
|
52
|
+
classList.push('btn-sm');
|
|
53
|
+
} else if (props.size == 'lg') {
|
|
54
|
+
classList.push('btn-lg');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return classList;
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
const iconClasses = computed(() => {
|
|
61
|
+
const classList = [];
|
|
62
|
+
|
|
63
|
+
if (props.size == 'sm') {
|
|
64
|
+
classList.push('h-4 w-4');
|
|
65
|
+
} else if (props.size == 'lg') {
|
|
66
|
+
classList.push('h-6 w-6');
|
|
67
|
+
} else {
|
|
68
|
+
classList.push('h-5 w-5');
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return classList;
|
|
72
|
+
});
|
|
73
|
+
</script>
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
</div>
|
|
56
56
|
<div class="sm:flex sm:space-x-3">
|
|
57
57
|
<BaseField
|
|
58
|
+
v-if="!props.hideCountry"
|
|
58
59
|
:label="$t('sui.country')"
|
|
59
60
|
:name="`${namePrefix}country`"
|
|
60
61
|
required
|
|
@@ -72,6 +73,7 @@
|
|
|
72
73
|
</BaseSelect>
|
|
73
74
|
</BaseField>
|
|
74
75
|
<BaseField
|
|
76
|
+
v-if="!props.hideRegion"
|
|
75
77
|
:label="$t('sui.region')"
|
|
76
78
|
:name="`${namePrefix}region`"
|
|
77
79
|
required
|
|
@@ -119,6 +121,8 @@ const props = withDefaults(
|
|
|
119
121
|
countries?: Country[];
|
|
120
122
|
regions?: Region[];
|
|
121
123
|
restrictCountry?: boolean;
|
|
124
|
+
hideRegion?: boolean;
|
|
125
|
+
hideCountry?: boolean;
|
|
122
126
|
}>(),
|
|
123
127
|
{
|
|
124
128
|
modelValue() {
|
|
@@ -132,6 +136,8 @@ const props = withDefaults(
|
|
|
132
136
|
return [];
|
|
133
137
|
},
|
|
134
138
|
restrictCountry: false,
|
|
139
|
+
hideRegion: false,
|
|
140
|
+
hideCountry: false,
|
|
135
141
|
}
|
|
136
142
|
);
|
|
137
143
|
|
|
@@ -8,12 +8,19 @@
|
|
|
8
8
|
<ol role="list" class="flex items-center space-x-3">
|
|
9
9
|
<li v-for="(breadcrumb, index) in breadcrumbs" :key="index">
|
|
10
10
|
<div class="flex items-center">
|
|
11
|
-
<
|
|
11
|
+
<svg
|
|
12
12
|
v-if="index > 0"
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
class="h-5 w-5 flex-shrink-0 text-gray-400"
|
|
14
|
+
viewBox="0 0 20 20"
|
|
15
|
+
fill="currentColor"
|
|
15
16
|
aria-hidden="true"
|
|
16
|
-
|
|
17
|
+
>
|
|
18
|
+
<path
|
|
19
|
+
fill-rule="evenodd"
|
|
20
|
+
d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z"
|
|
21
|
+
clip-rule="evenodd"
|
|
22
|
+
/>
|
|
23
|
+
</svg>
|
|
17
24
|
<RouterLink
|
|
18
25
|
v-slot="{ href, navigate, isExactActive }"
|
|
19
26
|
:to="breadcrumb.to"
|
|
@@ -48,8 +55,19 @@
|
|
|
48
55
|
:to="mobileBreadcrumb.to"
|
|
49
56
|
class="block text-slate-500 sm:hidden"
|
|
50
57
|
>
|
|
51
|
-
<div class="flex items-center">
|
|
52
|
-
<
|
|
58
|
+
<div class="flex items-center text-sm">
|
|
59
|
+
<svg
|
|
60
|
+
class="-ml-1 mr-1 h-5 w-5 flex-shrink-0 text-gray-400"
|
|
61
|
+
viewBox="0 0 20 20"
|
|
62
|
+
fill="currentColor"
|
|
63
|
+
aria-hidden="true"
|
|
64
|
+
>
|
|
65
|
+
<path
|
|
66
|
+
fill-rule="evenodd"
|
|
67
|
+
d="M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z"
|
|
68
|
+
clip-rule="evenodd"
|
|
69
|
+
/>
|
|
70
|
+
</svg>
|
|
53
71
|
<span>
|
|
54
72
|
{{ mobileBreadcrumb.label }}
|
|
55
73
|
</span>
|
|
@@ -62,6 +80,7 @@
|
|
|
62
80
|
import { PropType } from 'vue';
|
|
63
81
|
import { Breadcrumb } from '@/types';
|
|
64
82
|
import { truncate } from 'lodash';
|
|
83
|
+
import { BaseIcon } from '..';
|
|
65
84
|
|
|
66
85
|
const props = defineProps({
|
|
67
86
|
breadcrumbs: {
|