sprintify-ui 0.8.35 → 0.8.37
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/README.md +1 -1
- package/dist/sprintify-ui.es.js +7597 -7492
- package/dist/types/components/BaseActionItem.vue.d.ts +12 -2
- package/dist/types/components/BaseActionItemButton.vue.d.ts +3 -3
- package/dist/types/components/BaseAddressForm.vue.d.ts +19 -19
- package/dist/types/components/BaseAlert.vue.d.ts +19 -17
- package/dist/types/components/BaseApp.vue.d.ts +4 -2
- package/dist/types/components/BaseAppDialogs.vue.d.ts +2 -2
- package/dist/types/components/BaseAutocomplete.vue.d.ts +47 -44
- package/dist/types/components/BaseAutocompleteDrawer.vue.d.ts +22 -19
- package/dist/types/components/BaseAutocompleteFetch.vue.d.ts +44 -41
- package/dist/types/components/BaseAvatar.vue.d.ts +4 -4
- package/dist/types/components/BaseAvatarGroup.vue.d.ts +1 -1
- package/dist/types/components/BaseBadge.vue.d.ts +22 -19
- package/dist/types/components/BaseBelongsTo.vue.d.ts +38 -35
- package/dist/types/components/BaseBelongsToFetch.vue.d.ts +39 -36
- package/dist/types/components/BaseButton.vue.d.ts +54 -31
- package/dist/types/components/BaseButtonGroup.vue.d.ts +22 -19
- package/dist/types/components/BaseCalendar.vue.d.ts +24 -22
- package/dist/types/components/BaseCard.vue.d.ts +6 -4
- package/dist/types/components/BaseCardRow.vue.d.ts +9 -7
- package/dist/types/components/BaseCharacterCounter.vue.d.ts +1 -1
- package/dist/types/components/BaseClipboard.vue.d.ts +6 -4
- package/dist/types/components/BaseCollapse.vue.d.ts +34 -32
- package/dist/types/components/BaseColor.vue.d.ts +5 -4
- package/dist/types/components/BaseContainer.vue.d.ts +19 -13
- package/dist/types/components/BaseCounter.vue.d.ts +1 -1
- package/dist/types/components/BaseCropper.vue.d.ts +24 -22
- package/dist/types/components/BaseCropperModal.vue.d.ts +4 -4
- package/dist/types/components/BaseDataIterator.vue.d.ts +13 -24
- package/dist/types/components/BaseDataIteratorSectionBox.vue.d.ts +6 -4
- package/dist/types/components/BaseDataIteratorSectionColumns.vue.d.ts +3 -818
- package/dist/types/components/BaseDataIteratorSectionModal.vue.d.ts +6 -4
- package/dist/types/components/BaseDataTable.vue.d.ts +37 -40
- package/dist/types/components/BaseDataTableRowAction.vue.d.ts +2 -2
- package/dist/types/components/BaseDataTableTemplate.vue.d.ts +28 -25
- package/dist/types/components/BaseDatePicker.vue.d.ts +33 -33
- package/dist/types/components/BaseDateSelect.vue.d.ts +3 -2
- package/dist/types/components/BaseDescriptionList.vue.d.ts +4 -2
- package/dist/types/components/BaseDescriptionListItem.vue.d.ts +4 -2
- package/dist/types/components/BaseDialog.vue.d.ts +9 -7
- package/dist/types/components/BaseDisplayRelativeTime.vue.d.ts +9 -7
- package/dist/types/components/BaseDraggable.vue.d.ts +10 -8
- package/dist/types/components/BaseDropdown.vue.d.ts +10 -8
- package/dist/types/components/BaseDropdownAutocomplete.vue.d.ts +20 -18
- package/dist/types/components/BaseField.vue.d.ts +11 -8
- package/dist/types/components/BaseFieldI18n.vue.d.ts +6 -6
- package/dist/types/components/BaseFilePicker.vue.d.ts +24 -22
- package/dist/types/components/BaseFilePickerCrop.vue.d.ts +18 -16
- package/dist/types/components/BaseFileUploader.vue.d.ts +58 -56
- package/dist/types/components/BaseForm.vue.d.ts +21 -19
- package/dist/types/components/BaseGantt.vue.d.ts +20 -411
- package/dist/types/components/BaseHasMany.vue.d.ts +39 -37
- package/dist/types/components/BaseHeader.vue.d.ts +20 -20
- package/dist/types/components/BaseIconPicker.vue.d.ts +7 -7
- package/dist/types/components/BaseInput.vue.d.ts +32 -31
- package/dist/types/components/BaseInputError.vue.d.ts +9 -6
- package/dist/types/components/BaseInputLabel.vue.d.ts +3 -2
- package/dist/types/components/BaseInputPercent.vue.d.ts +8 -8
- package/dist/types/components/BaseJsonReader.vue.d.ts +7 -7
- package/dist/types/components/BaseJsonReaderItem.vue.d.ts +4 -4
- package/dist/types/components/BaseLayoutNotificationDropdown.vue.d.ts +1 -1
- package/dist/types/components/BaseLayoutSidebar.vue.d.ts +13 -10
- package/dist/types/components/BaseLayoutSidebarConfigurable.vue.d.ts +10 -8
- package/dist/types/components/BaseLayoutStacked.vue.d.ts +25 -23
- package/dist/types/components/BaseLayoutStackedConfigurable.vue.d.ts +9 -7
- package/dist/types/components/BaseLoadingCover.vue.d.ts +3 -3
- package/dist/types/components/BaseMediaGallery.vue.d.ts +1 -1
- package/dist/types/components/BaseMediaLibrary.vue.d.ts +39 -38
- package/dist/types/components/BaseMediaList.vue.d.ts +1 -1
- package/dist/types/components/BaseMediaListItem.vue.d.ts +1 -1
- package/dist/types/components/BaseMediaPictures.vue.d.ts +1 -1
- package/dist/types/components/BaseMenu.vue.d.ts +26 -18
- package/dist/types/components/BaseMenuItem.vue.d.ts +5 -5
- package/dist/types/components/BaseModalCenter.vue.d.ts +8 -6
- package/dist/types/components/BaseModalSide.vue.d.ts +8 -6
- package/dist/types/components/BaseNavbar.vue.d.ts +17 -15
- package/dist/types/components/BaseNavbarItem.vue.d.ts +1 -1
- package/dist/types/components/BaseNavbarItemContent.vue.d.ts +4 -4
- package/dist/types/components/BaseNavbarSideItem.vue.d.ts +1 -1
- package/dist/types/components/BaseNavbarSideItemContent.vue.d.ts +4 -4
- package/dist/types/components/BasePanel.vue.d.ts +1 -1
- package/dist/types/components/BasePassword.vue.d.ts +6 -5
- package/dist/types/components/BaseProgressCircle.vue.d.ts +2 -2
- package/dist/types/components/BaseRadioGroup.vue.d.ts +10 -8
- package/dist/types/components/BaseReadMore.vue.d.ts +6 -4
- package/dist/types/components/BaseRichText.vue.d.ts +6 -5
- package/dist/types/components/BaseScrollColumn.vue.d.ts +1 -1
- package/dist/types/components/BaseSelect.vue.d.ts +13 -10
- package/dist/types/components/BaseShortcut.vue.d.ts +4 -4
- package/dist/types/components/BaseSideNavigation.vue.d.ts +8 -6
- package/dist/types/components/BaseSideNavigationItem.vue.d.ts +12 -10
- package/dist/types/components/BaseStatistic.vue.d.ts +1 -1
- package/dist/types/components/BaseSwitch.vue.d.ts +14 -12
- package/dist/types/components/BaseSystemAlert.vue.d.ts +13 -11
- package/dist/types/components/BaseTabItem.vue.d.ts +12 -10
- package/dist/types/components/BaseTable.vue.d.ts +27 -24
- package/dist/types/components/BaseTableBody.vue.d.ts +4 -2
- package/dist/types/components/BaseTableCell.vue.d.ts +29 -27
- package/dist/types/components/BaseTableColumn.vue.d.ts +11 -11
- package/dist/types/components/BaseTableHead.vue.d.ts +6 -4
- package/dist/types/components/BaseTableHeader.vue.d.ts +11 -9
- package/dist/types/components/BaseTableRow.vue.d.ts +20 -18
- package/dist/types/components/BaseTabs.vue.d.ts +8 -6
- package/dist/types/components/BaseTagAutocomplete.vue.d.ts +47 -44
- package/dist/types/components/BaseTagAutocompleteFetch.vue.d.ts +40 -38
- package/dist/types/components/BaseTextarea.vue.d.ts +8 -7
- package/dist/types/components/BaseTextareaAutoresize.vue.d.ts +7 -6
- package/dist/types/components/BaseTimePicker.vue.d.ts +4 -3
- package/dist/types/components/BaseTooltip.vue.d.ts +15 -13
- package/dist/types/composables/breakpoints.d.ts +6 -6
- package/dist/types/composables/mediaQuery.d.ts +1 -1
- package/dist/types/composables/modal.d.ts +1 -1
- package/package.json +14 -20
- package/src/components/BaseAddressForm.stories.js +32 -33
- package/src/components/BaseAlert.stories.js +13 -13
- package/src/components/BaseAutocomplete.stories.js +26 -26
- package/src/components/BaseAutocomplete.vue +10 -3
- package/src/components/BaseAutocompleteFetch.stories.js +24 -28
- package/src/components/BaseAvatar.stories.js +11 -11
- package/src/components/BaseAvatarGroup.stories.js +9 -9
- package/src/components/BaseBadge.stories.js +18 -19
- package/src/components/BaseBelongsTo.stories.js +20 -20
- package/src/components/BaseBelongsToFetch.stories.js +21 -25
- package/src/components/BaseBoolean.stories.js +3 -3
- package/src/components/BaseBreadcrumbs.stories.js +14 -14
- package/src/components/BaseButton.stories.js +34 -34
- package/src/components/BaseButtonGroup.stories.js +18 -18
- package/src/components/BaseCalendar.stories.js +122 -46
- package/src/components/BaseCard.stories.js +3 -3
- package/src/components/BaseCharacterCounter.stories.js +5 -5
- package/src/components/BaseClipboard.stories.js +6 -6
- package/src/components/BaseCollapse.stories.js +81 -82
- package/src/components/BaseColor.stories.js +8 -8
- package/src/components/BaseContainer.stories.js +6 -6
- package/src/components/BaseCounter.stories.js +9 -9
- package/src/components/BaseCropper.stories.js +11 -11
- package/src/components/BaseCropperModal.stories.js +6 -6
- package/src/components/BaseDataIterator.stories.js +30 -33
- package/src/components/BaseDataTable.stories.js +61 -56
- package/src/components/BaseDatePicker.stories.js +29 -29
- package/src/components/BaseDateSelect.stories.js +9 -9
- package/src/components/BaseDescriptionList.stories.js +4 -4
- package/src/components/BaseDialog.stories.js +27 -27
- package/src/components/BaseDisplayRelativeTime.stories.js +4 -4
- package/src/components/BaseDropdown.stories.js +13 -13
- package/src/components/BaseDropdownAutocomplete.stories.js +25 -25
- package/src/components/BaseFieldI18n.stories.js +9 -9
- package/src/components/BaseFilePicker.stories.js +8 -8
- package/src/components/BaseFilePickerCrop.stories.js +15 -15
- package/src/components/BaseFileUploader.stories.js +12 -13
- package/src/components/BaseForm.stories.js +7 -7
- package/src/components/BaseGantt.stories.js +22 -16
- package/src/components/BaseHasMany.stories.js +18 -22
- package/src/components/BaseHeader.stories.js +43 -43
- package/src/components/BaseIconPicker.stories.js +4 -4
- package/src/components/BaseInput.stories.js +48 -48
- package/src/components/BaseInputLabel.stories.js +6 -6
- package/src/components/BaseInputPercent.stories.js +8 -8
- package/src/components/BaseJsonReader.stories.js +42 -49
- package/src/components/BaseJsonReader.vue +0 -1
- package/src/components/BaseLayoutSidebar.vue +1 -1
- package/src/components/BaseLayoutSidebarConfigurable.stories.js +72 -73
- package/src/components/BaseLayoutSidebarConfigurable.vue +1 -1
- package/src/components/BaseLayoutStackedConfigurable.stories.js +68 -69
- package/src/components/BaseLoadingCover.stories.js +9 -9
- package/src/components/BaseMediaItem.stories.js +10 -10
- package/src/components/BaseMediaLibrary.stories.js +58 -58
- package/src/components/BaseMediaPreview.stories.js +21 -21
- package/src/components/BaseMenu.stories.js +34 -34
- package/src/components/BaseModalCenter.stories.js +9 -9
- package/src/components/BaseModalSide.stories.js +6 -6
- package/src/components/BaseNavbar.stories.js +26 -26
- package/src/components/BasePagination.stories.js +2 -2
- package/src/components/BasePanel.stories.js +9 -9
- package/src/components/BasePassword.stories.js +11 -12
- package/src/components/BaseProgressCircle.stories.js +3 -3
- package/src/components/BaseRadioGroup.stories.js +15 -15
- package/src/components/BaseReadMore.stories.js +3 -3
- package/src/components/BaseRichText.stories.js +32 -32
- package/src/components/BaseSelect.stories.js +19 -19
- package/src/components/BaseShortcut.stories.js +28 -28
- package/src/components/BaseSideNavigation.stories.js +11 -11
- package/src/components/BaseSkeleton.stories.js +3 -3
- package/src/components/BaseStatistic.stories.js +16 -16
- package/src/components/BaseStepper.stories.js +29 -29
- package/src/components/BaseStepperItem.stories.js +11 -11
- package/src/components/BaseSwitch.stories.js +25 -25
- package/src/components/BaseSystemAlert.stories.js +7 -7
- package/src/components/BaseTable.stories.js +14 -16
- package/src/components/BaseTabs.stories.js +12 -13
- package/src/components/BaseTagAutocomplete.stories.js +19 -19
- package/src/components/BaseTagAutocompleteFetch.stories.js +11 -11
- package/src/components/BaseTextarea.stories.js +10 -10
- package/src/components/BaseTextareaAutoresize.stories.js +13 -13
- package/src/components/BaseTimePicker.stories.js +9 -9
- package/src/components/BaseTimeline.stories.js +22 -22
- package/src/components/BaseTimelineItem.stories.js +23 -22
- package/src/components/BaseToast.stories.js +6 -6
- package/src/components/BaseTooltip.stories.js +27 -27
- package/src/components/BaseUniqueCode.stories.js +7 -7
- package/src/stories/InputSizes.stories.js +13 -14
- package/src/stories/List.stories.js +92 -92
- package/src/stories/Show.stories.js +13 -14
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import BaseApp from
|
|
2
|
-
import BaseMediaLibrary from
|
|
3
|
-
import ShowValue from
|
|
4
|
-
import { createFieldStory } from
|
|
1
|
+
import BaseApp from "./BaseApp.vue";
|
|
2
|
+
import BaseMediaLibrary from "./BaseMediaLibrary.vue";
|
|
3
|
+
import ShowValue from "../../.storybook/components/ShowValue.vue";
|
|
4
|
+
import { createFieldStory } from "@/../.storybook/utils";
|
|
5
5
|
|
|
6
6
|
const mediaModel = {
|
|
7
|
-
id:
|
|
8
|
-
name:
|
|
9
|
-
file_name:
|
|
10
|
-
mime_type:
|
|
11
|
-
url:
|
|
7
|
+
id: "xxxxx",
|
|
8
|
+
name: "picture0-1-2dfjjje-23refg-45t",
|
|
9
|
+
file_name: "picture0-1-2dfjjje-23refg-45t.jpg",
|
|
10
|
+
mime_type: "image/jpg",
|
|
11
|
+
url: "https://images.unsplash.com/photo-1670139018938-af8bf748a1bc?auto=format&fit=crop&w=1200&h=800&q=80",
|
|
12
12
|
size: 430 * 1024,
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
const mediaModel2 = {
|
|
16
|
-
id:
|
|
17
|
-
name:
|
|
18
|
-
file_name:
|
|
19
|
-
mime_type:
|
|
20
|
-
url:
|
|
16
|
+
id: "yyyyy",
|
|
17
|
+
name: "photo-1678729465418-ee8127e8c5cd",
|
|
18
|
+
file_name: "photo-1678729465418-ee8127e8c5cd.jpg",
|
|
19
|
+
mime_type: "image/jpg",
|
|
20
|
+
url: "https://images.unsplash.com/photo-1678729465418-ee8127e8c5cd?auto=format&fit=crop&w=800&q=80",
|
|
21
21
|
size: 430 * 1024,
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
export default {
|
|
25
|
-
title:
|
|
25
|
+
title: "Form/BaseMediaLibrary",
|
|
26
26
|
component: BaseMediaLibrary,
|
|
27
27
|
args: {
|
|
28
28
|
max: null,
|
|
29
29
|
min: 2,
|
|
30
|
-
acceptedExtensions: [
|
|
31
|
-
uploadUrl:
|
|
30
|
+
acceptedExtensions: ["jpg", "jpeg", "png", "webp"],
|
|
31
|
+
uploadUrl: "https://faker.witify.io/api/todos/upload",
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
34
|
|
|
@@ -43,35 +43,35 @@ const Template = (args) => ({
|
|
|
43
43
|
mediaModel,
|
|
44
44
|
mediaModel2,
|
|
45
45
|
{
|
|
46
|
-
id:
|
|
47
|
-
url:
|
|
48
|
-
mime_type:
|
|
49
|
-
name:
|
|
50
|
-
file_name:
|
|
46
|
+
id: "1",
|
|
47
|
+
url: "",
|
|
48
|
+
mime_type: "application/pdf",
|
|
49
|
+
name: "document",
|
|
50
|
+
file_name: "document.pdf",
|
|
51
51
|
size: 40012,
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
id:
|
|
55
|
-
url:
|
|
56
|
-
mime_type:
|
|
57
|
-
name:
|
|
58
|
-
file_name:
|
|
54
|
+
id: "2",
|
|
55
|
+
url: "",
|
|
56
|
+
mime_type: "application/excel",
|
|
57
|
+
name: "finance-2022",
|
|
58
|
+
file_name: "finance-2022.xlsx",
|
|
59
59
|
size: 5461,
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
id:
|
|
63
|
-
url:
|
|
64
|
-
mime_type:
|
|
65
|
-
name:
|
|
66
|
-
file_name:
|
|
62
|
+
id: "3",
|
|
63
|
+
url: "",
|
|
64
|
+
mime_type: "image/png",
|
|
65
|
+
name: "34345-1",
|
|
66
|
+
file_name: "34345-1.png",
|
|
67
67
|
size: 40012,
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
id:
|
|
71
|
-
url:
|
|
72
|
-
mime_type:
|
|
73
|
-
name:
|
|
74
|
-
file_name:
|
|
70
|
+
id: "4",
|
|
71
|
+
url: "",
|
|
72
|
+
mime_type: "audio/mp3",
|
|
73
|
+
name: "test",
|
|
74
|
+
file_name: "test.mp3",
|
|
75
75
|
size: 792834,
|
|
76
76
|
},
|
|
77
77
|
]);
|
|
@@ -88,30 +88,30 @@ const Template = (args) => ({
|
|
|
88
88
|
|
|
89
89
|
export const LayoutGallery = Template.bind({});
|
|
90
90
|
LayoutGallery.args = {
|
|
91
|
-
layout:
|
|
91
|
+
layout: "gallery",
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
export const LayoutGalleryMultiple = Template.bind({});
|
|
95
95
|
LayoutGalleryMultiple.args = {
|
|
96
|
-
layout:
|
|
97
|
-
multiple: true
|
|
96
|
+
layout: "gallery",
|
|
97
|
+
multiple: true,
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
export const LayoutGalleryDisabled = Template.bind({});
|
|
101
101
|
LayoutGalleryDisabled.args = {
|
|
102
|
-
layout:
|
|
102
|
+
layout: "gallery",
|
|
103
103
|
disabled: true,
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
export const LayoutGalleryDraggable = Template.bind({});
|
|
107
107
|
LayoutGalleryDraggable.args = {
|
|
108
|
-
layout:
|
|
108
|
+
layout: "gallery",
|
|
109
109
|
draggable: true,
|
|
110
110
|
};
|
|
111
111
|
|
|
112
112
|
export const LayoutGalleryDraggableDisabled = Template.bind({});
|
|
113
113
|
LayoutGalleryDraggableDisabled.args = {
|
|
114
|
-
layout:
|
|
114
|
+
layout: "gallery",
|
|
115
115
|
disabled: true,
|
|
116
116
|
draggable: true,
|
|
117
117
|
};
|
|
@@ -120,24 +120,24 @@ LayoutGalleryDraggableDisabled.args = {
|
|
|
120
120
|
|
|
121
121
|
export const LayoutList = Template.bind({});
|
|
122
122
|
LayoutList.args = {
|
|
123
|
-
layout:
|
|
123
|
+
layout: "list",
|
|
124
124
|
};
|
|
125
125
|
|
|
126
126
|
export const LayoutListDisabled = Template.bind({});
|
|
127
127
|
LayoutListDisabled.args = {
|
|
128
|
-
layout:
|
|
128
|
+
layout: "list",
|
|
129
129
|
disabled: true,
|
|
130
130
|
};
|
|
131
131
|
|
|
132
132
|
export const LayoutListDraggable = Template.bind({});
|
|
133
133
|
LayoutListDraggable.args = {
|
|
134
|
-
layout:
|
|
134
|
+
layout: "list",
|
|
135
135
|
draggable: true,
|
|
136
136
|
};
|
|
137
137
|
|
|
138
138
|
export const LayoutListDraggableDisabled = Template.bind({});
|
|
139
139
|
LayoutListDraggableDisabled.args = {
|
|
140
|
-
layout:
|
|
140
|
+
layout: "list",
|
|
141
141
|
disabled: true,
|
|
142
142
|
draggable: true,
|
|
143
143
|
};
|
|
@@ -146,40 +146,40 @@ LayoutListDraggableDisabled.args = {
|
|
|
146
146
|
|
|
147
147
|
export const LayoutImages = Template.bind({});
|
|
148
148
|
LayoutImages.args = {
|
|
149
|
-
pickerComponent:
|
|
150
|
-
layout:
|
|
149
|
+
pickerComponent: "BaseFilePickerCrop",
|
|
150
|
+
layout: "images",
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
export const LayoutImagesDisabled = Template.bind({});
|
|
154
154
|
LayoutImagesDisabled.args = {
|
|
155
|
-
pickerComponent:
|
|
156
|
-
layout:
|
|
155
|
+
pickerComponent: "BaseFilePickerCrop",
|
|
156
|
+
layout: "images",
|
|
157
157
|
disabled: true,
|
|
158
158
|
};
|
|
159
159
|
|
|
160
160
|
export const LayoutImagesDraggable = Template.bind({});
|
|
161
161
|
LayoutImagesDraggable.args = {
|
|
162
|
-
pickerComponent:
|
|
163
|
-
layout:
|
|
162
|
+
pickerComponent: "BaseFilePickerCrop",
|
|
163
|
+
layout: "images",
|
|
164
164
|
draggable: true,
|
|
165
165
|
};
|
|
166
166
|
|
|
167
167
|
export const LayoutImagesDraggableDisabled = Template.bind({});
|
|
168
168
|
LayoutImagesDraggableDisabled.args = {
|
|
169
|
-
pickerComponent:
|
|
170
|
-
layout:
|
|
169
|
+
pickerComponent: "BaseFilePickerCrop",
|
|
170
|
+
layout: "images",
|
|
171
171
|
disabled: true,
|
|
172
172
|
draggable: true,
|
|
173
173
|
};
|
|
174
174
|
|
|
175
175
|
export const Crop = Template.bind({});
|
|
176
176
|
Crop.args = {
|
|
177
|
-
pickerComponent:
|
|
177
|
+
pickerComponent: "BaseFilePickerCrop",
|
|
178
178
|
cropper: {
|
|
179
179
|
config: {
|
|
180
180
|
maxWidth: 300,
|
|
181
181
|
},
|
|
182
|
-
preset:
|
|
182
|
+
preset: "avatar",
|
|
183
183
|
presetOptions: {
|
|
184
184
|
size: 300,
|
|
185
185
|
},
|
|
@@ -193,7 +193,7 @@ MaxSize.args = {
|
|
|
193
193
|
|
|
194
194
|
export const Field = createFieldStory({
|
|
195
195
|
component: BaseMediaLibrary,
|
|
196
|
-
componentName:
|
|
196
|
+
componentName: "BaseMediaLibrary",
|
|
197
197
|
});
|
|
198
198
|
|
|
199
199
|
// Slots
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import BaseMediaPreview from
|
|
1
|
+
import BaseMediaPreview from "./BaseMediaPreview.vue";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
title:
|
|
4
|
+
title: "Media/BaseMediaPreview",
|
|
5
5
|
component: BaseMediaPreview,
|
|
6
6
|
};
|
|
7
7
|
|
|
@@ -20,9 +20,9 @@ const Template = (args) => ({
|
|
|
20
20
|
export const Image = Template.bind({});
|
|
21
21
|
Image.args = {
|
|
22
22
|
media: {
|
|
23
|
-
id:
|
|
24
|
-
file_name:
|
|
25
|
-
mime_type:
|
|
23
|
+
id: "xxxxxxxxxxx",
|
|
24
|
+
file_name: "picture.jpg",
|
|
25
|
+
mime_type: "image/jpg",
|
|
26
26
|
size: 430 * 1024,
|
|
27
27
|
},
|
|
28
28
|
};
|
|
@@ -30,10 +30,10 @@ Image.args = {
|
|
|
30
30
|
export const ImageUrl = Template.bind({});
|
|
31
31
|
ImageUrl.args = {
|
|
32
32
|
media: {
|
|
33
|
-
id:
|
|
34
|
-
file_name:
|
|
35
|
-
mime_type:
|
|
36
|
-
url:
|
|
33
|
+
id: "xxxxxxxxxxx",
|
|
34
|
+
file_name: "picture.jpg",
|
|
35
|
+
mime_type: "image/jpg",
|
|
36
|
+
url: "https://images.unsplash.com/photo-1670139018938-af8bf748a1bc?auto=format&fit=crop&w=800&h=800&q=80",
|
|
37
37
|
size: 430 * 1024,
|
|
38
38
|
},
|
|
39
39
|
};
|
|
@@ -41,10 +41,10 @@ ImageUrl.args = {
|
|
|
41
41
|
export const PDF = Template.bind({});
|
|
42
42
|
PDF.args = {
|
|
43
43
|
media: {
|
|
44
|
-
id:
|
|
45
|
-
file_name:
|
|
46
|
-
mime_type:
|
|
47
|
-
url:
|
|
44
|
+
id: "xxxxxxxxxxx",
|
|
45
|
+
file_name: "picture.pdf",
|
|
46
|
+
mime_type: "application/pdf",
|
|
47
|
+
url: "https://images.unsplash.com/photo-1670139018938-af8bf748a1bc?auto=format&fit=crop&w=800&h=800&q=80",
|
|
48
48
|
size: 430 * 1024,
|
|
49
49
|
},
|
|
50
50
|
};
|
|
@@ -52,10 +52,10 @@ PDF.args = {
|
|
|
52
52
|
export const Music = Template.bind({});
|
|
53
53
|
Music.args = {
|
|
54
54
|
media: {
|
|
55
|
-
id:
|
|
56
|
-
file_name:
|
|
57
|
-
mime_type:
|
|
58
|
-
url:
|
|
55
|
+
id: "xxxxxxxxxxx",
|
|
56
|
+
file_name: "picture.mp3",
|
|
57
|
+
mime_type: "audio/mpeg",
|
|
58
|
+
url: "https://images.unsplash.com/photo-1670139018938-af8bf748a1bc?auto=format&fit=crop&w=800&h=800&q=80",
|
|
59
59
|
size: 430 * 1024,
|
|
60
60
|
},
|
|
61
61
|
};
|
|
@@ -63,10 +63,10 @@ Music.args = {
|
|
|
63
63
|
export const Other = Template.bind({});
|
|
64
64
|
Other.args = {
|
|
65
65
|
media: {
|
|
66
|
-
id:
|
|
67
|
-
file_name:
|
|
68
|
-
mime_type:
|
|
69
|
-
url:
|
|
66
|
+
id: "xxxxxxxxxxx",
|
|
67
|
+
file_name: "picture.mp3",
|
|
68
|
+
mime_type: "application/excel",
|
|
69
|
+
url: "https://images.unsplash.com/photo-1670139018938-af8bf748a1bc?auto=format&fit=crop&w=800&h=800&q=80",
|
|
70
70
|
size: 430 * 1024,
|
|
71
71
|
},
|
|
72
72
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import BaseMenu from
|
|
2
|
-
import { Icon as BaseIcon } from
|
|
3
|
-
import BaseAvatar from
|
|
1
|
+
import BaseMenu from "./BaseMenu.vue";
|
|
2
|
+
import { Icon as BaseIcon } from "@iconify/vue";
|
|
3
|
+
import BaseAvatar from "./BaseAvatar.vue";
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
title:
|
|
6
|
+
title: "Components/BaseMenu",
|
|
7
7
|
component: BaseMenu,
|
|
8
8
|
args: {
|
|
9
|
-
position:
|
|
9
|
+
position: "bottom-right",
|
|
10
10
|
},
|
|
11
11
|
argTypes: {
|
|
12
12
|
position: {
|
|
13
|
-
control: { type:
|
|
14
|
-
options: [
|
|
13
|
+
control: { type: "select" },
|
|
14
|
+
options: ["bottom-left", "bottom-right"],
|
|
15
15
|
},
|
|
16
16
|
size: {
|
|
17
|
-
control: { type:
|
|
18
|
-
options: [
|
|
19
|
-
}
|
|
17
|
+
control: { type: "select" },
|
|
18
|
+
options: ["xs", "sm", "md"],
|
|
19
|
+
},
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -29,46 +29,46 @@ const Template = (args) => ({
|
|
|
29
29
|
setup() {
|
|
30
30
|
const items = [
|
|
31
31
|
{
|
|
32
|
-
label:
|
|
33
|
-
icon:
|
|
32
|
+
label: "Export file",
|
|
33
|
+
icon: "mdi-export",
|
|
34
34
|
action() {
|
|
35
|
-
alert(
|
|
35
|
+
alert("Export!");
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
label:
|
|
40
|
-
icon:
|
|
41
|
-
href:
|
|
39
|
+
label: "Open the Google Website on new tab",
|
|
40
|
+
icon: "mdi-google",
|
|
41
|
+
href: "https://google.com",
|
|
42
42
|
count: 1000,
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
icon:
|
|
46
|
-
label:
|
|
47
|
-
to:
|
|
48
|
-
color:
|
|
45
|
+
icon: "mdi-access-point",
|
|
46
|
+
label: "Reconnect",
|
|
47
|
+
to: "home",
|
|
48
|
+
color: "success",
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
icon:
|
|
52
|
-
label:
|
|
53
|
-
href:
|
|
54
|
-
color:
|
|
51
|
+
icon: "mdi-archive",
|
|
52
|
+
label: "Archive",
|
|
53
|
+
href: "https://google.com",
|
|
54
|
+
color: "warning",
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
|
-
icon:
|
|
58
|
-
label:
|
|
59
|
-
href:
|
|
60
|
-
color:
|
|
57
|
+
icon: "mdi-trash-can",
|
|
58
|
+
label: "Delete",
|
|
59
|
+
href: "https://google.com",
|
|
60
|
+
color: "danger",
|
|
61
61
|
count: 1,
|
|
62
62
|
},
|
|
63
63
|
];
|
|
64
64
|
|
|
65
65
|
const user = {
|
|
66
|
-
email:
|
|
67
|
-
first_name:
|
|
68
|
-
last_name:
|
|
69
|
-
full_name:
|
|
66
|
+
email: "jane@witify.io",
|
|
67
|
+
first_name: "Jane",
|
|
68
|
+
last_name: "Doe",
|
|
69
|
+
full_name: "Jane Doe",
|
|
70
70
|
avatar_url:
|
|
71
|
-
|
|
71
|
+
"https://images.unsplash.com/photo-1494790108377-be9c29b29330??auto=format&fit=crop&w=200&h=200&q=80&g=face",
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
args.items = items;
|
|
@@ -130,5 +130,5 @@ Demo.args = {};
|
|
|
130
130
|
|
|
131
131
|
export const FixedWidth = Template.bind({});
|
|
132
132
|
FixedWidth.args = {
|
|
133
|
-
width: 280
|
|
133
|
+
width: 280,
|
|
134
134
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import BaseModalCenter from
|
|
2
|
-
import { Icon as BaseIcon } from
|
|
3
|
-
import BaseAvatar from
|
|
1
|
+
import BaseModalCenter from "./BaseModalCenter.vue";
|
|
2
|
+
import { Icon as BaseIcon } from "@iconify/vue";
|
|
3
|
+
import BaseAvatar from "./BaseAvatar.vue";
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
title:
|
|
6
|
+
title: "Components/BaseModalCenter",
|
|
7
7
|
component: BaseModalCenter,
|
|
8
8
|
args: {
|
|
9
|
-
position:
|
|
9
|
+
position: "bottom-right",
|
|
10
10
|
},
|
|
11
11
|
argTypes: {
|
|
12
12
|
verticalAlign: {
|
|
13
|
-
control: { type:
|
|
14
|
-
options: [
|
|
13
|
+
control: { type: "select" },
|
|
14
|
+
options: ["center", "top"],
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
};
|
|
@@ -49,7 +49,7 @@ Demo.args = {};
|
|
|
49
49
|
|
|
50
50
|
export const VerticalAlignTop = Template.bind({});
|
|
51
51
|
VerticalAlignTop.args = {
|
|
52
|
-
verticalAlign:
|
|
52
|
+
verticalAlign: "top",
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
export const NoCloseButton = Template.bind({});
|
|
@@ -59,7 +59,7 @@ NoCloseButton.args = {
|
|
|
59
59
|
|
|
60
60
|
export const CustomBackdropClass = Template.bind({});
|
|
61
61
|
CustomBackdropClass.args = {
|
|
62
|
-
backdropClass:
|
|
62
|
+
backdropClass: "bg-red-500 bg-opacity-70",
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
export const PreventLeave = Template.bind({});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import BaseModalSide from
|
|
2
|
-
import { Icon as BaseIcon } from
|
|
3
|
-
import BaseAvatar from
|
|
1
|
+
import BaseModalSide from "./BaseModalSide.vue";
|
|
2
|
+
import { Icon as BaseIcon } from "@iconify/vue";
|
|
3
|
+
import BaseAvatar from "./BaseAvatar.vue";
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
title:
|
|
6
|
+
title: "Components/BaseModalSide",
|
|
7
7
|
component: BaseModalSide,
|
|
8
8
|
args: {},
|
|
9
9
|
};
|
|
@@ -41,12 +41,12 @@ Demo.args = {};
|
|
|
41
41
|
|
|
42
42
|
export const CustomMaxWidth = Template.bind({});
|
|
43
43
|
CustomMaxWidth.args = {
|
|
44
|
-
maxWidth:
|
|
44
|
+
maxWidth: "16rem",
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
export const CustomBackdropClass = Template.bind({});
|
|
48
48
|
CustomBackdropClass.args = {
|
|
49
|
-
backdropClass:
|
|
49
|
+
backdropClass: "bg-red-500 bg-opacity-70",
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
export const PreventLeave = Template.bind({});
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import BaseNavbar from
|
|
2
|
-
import BaseNavbarItem from
|
|
3
|
-
import BaseNavbarSideItem from
|
|
4
|
-
import BaseAvatar from
|
|
5
|
-
import BaseMenu from
|
|
6
|
-
import { Icon as BaseIcon } from
|
|
1
|
+
import BaseNavbar from "./BaseNavbar.vue";
|
|
2
|
+
import BaseNavbarItem from "./BaseNavbarItem.vue";
|
|
3
|
+
import BaseNavbarSideItem from "./BaseNavbarSideItem.vue";
|
|
4
|
+
import BaseAvatar from "./BaseAvatar.vue";
|
|
5
|
+
import BaseMenu from "./BaseMenu.vue";
|
|
6
|
+
import { Icon as BaseIcon } from "@iconify/vue";
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
|
-
title:
|
|
9
|
+
title: "Navigation/BaseNavbar",
|
|
10
10
|
component: BaseNavbar,
|
|
11
11
|
args: {},
|
|
12
12
|
parameters: {
|
|
13
|
-
layout:
|
|
13
|
+
layout: "fullscreen",
|
|
14
14
|
},
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -25,43 +25,43 @@ const Template = (args) => ({
|
|
|
25
25
|
},
|
|
26
26
|
setup() {
|
|
27
27
|
const user = {
|
|
28
|
-
email:
|
|
29
|
-
first_name:
|
|
30
|
-
last_name:
|
|
31
|
-
full_name:
|
|
28
|
+
email: "jane@witify.io",
|
|
29
|
+
first_name: "Jane",
|
|
30
|
+
last_name: "Doe",
|
|
31
|
+
full_name: "Jane Doe",
|
|
32
32
|
avatar_url:
|
|
33
|
-
|
|
33
|
+
"https://images.unsplash.com/photo-1494790108377-be9c29b29330??auto=format&fit=crop&w=200&h=200&q=80&g=face",
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
const menu = [
|
|
37
37
|
{
|
|
38
|
-
label:
|
|
39
|
-
to:
|
|
38
|
+
label: "Home",
|
|
39
|
+
to: "/",
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
label:
|
|
43
|
-
to:
|
|
42
|
+
label: "Products",
|
|
43
|
+
to: "/setup",
|
|
44
44
|
count: 234,
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
label:
|
|
48
|
-
to:
|
|
47
|
+
label: "Settings",
|
|
48
|
+
to: "/settings",
|
|
49
49
|
},
|
|
50
50
|
];
|
|
51
51
|
|
|
52
52
|
const userMenu = [
|
|
53
53
|
{
|
|
54
|
-
label:
|
|
55
|
-
icon:
|
|
56
|
-
href:
|
|
54
|
+
label: "Home",
|
|
55
|
+
icon: "heroicons:home",
|
|
56
|
+
href: "https://google.com",
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
meta: { line: true },
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
label:
|
|
63
|
-
icon:
|
|
64
|
-
href:
|
|
62
|
+
label: "Logout",
|
|
63
|
+
icon: "heroicons:arrow-right-on-rectangle",
|
|
64
|
+
href: "https://google.com",
|
|
65
65
|
},
|
|
66
66
|
];
|
|
67
67
|
|
|
@@ -79,7 +79,7 @@ const Template = (args) => ({
|
|
|
79
79
|
<RouterLink to="/" class="flex flex-shrink-0 items-center">
|
|
80
80
|
<img
|
|
81
81
|
class="block h-8 w-auto"
|
|
82
|
-
src="https://sprintify.
|
|
82
|
+
src="https://demo.sprintify.app/img/logo/logo-side.svg"
|
|
83
83
|
alt="Sprintify"
|
|
84
84
|
/>
|
|
85
85
|
</RouterLink>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import BaseContainer from
|
|
2
|
-
import BasePanel from
|
|
3
|
-
import BaseCard from
|
|
4
|
-
import BaseCardRow from
|
|
5
|
-
import BaseInputLabel from
|
|
6
|
-
import BaseInput from
|
|
1
|
+
import BaseContainer from "./BaseContainer.vue";
|
|
2
|
+
import BasePanel from "./BasePanel.vue";
|
|
3
|
+
import BaseCard from "./BaseCard.vue";
|
|
4
|
+
import BaseCardRow from "./BaseCardRow.vue";
|
|
5
|
+
import BaseInputLabel from "./BaseInputLabel.vue";
|
|
6
|
+
import BaseInput from "./BaseInput.vue";
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
|
-
title:
|
|
9
|
+
title: "Layout/BasePanel",
|
|
10
10
|
component: BasePanel,
|
|
11
11
|
args: {
|
|
12
|
-
title:
|
|
12
|
+
title: "General information",
|
|
13
13
|
description:
|
|
14
|
-
|
|
14
|
+
"Enter general user information, name and age. User must be more than 10 years old to participate.",
|
|
15
15
|
},
|
|
16
16
|
};
|
|
17
17
|
|