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,7 +1,7 @@
|
|
|
1
|
-
import BaseStepper from
|
|
1
|
+
import BaseStepper from "./BaseStepper.vue";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
title:
|
|
4
|
+
title: "Layout/BaseStepper",
|
|
5
5
|
component: BaseStepper,
|
|
6
6
|
};
|
|
7
7
|
|
|
@@ -15,24 +15,24 @@ const Template = (args) => ({
|
|
|
15
15
|
|
|
16
16
|
const threeItems = [
|
|
17
17
|
{
|
|
18
|
-
title:
|
|
19
|
-
description:
|
|
18
|
+
title: "Job details",
|
|
19
|
+
description: "Vitae sed mi luctus laoreet.",
|
|
20
20
|
stepNumber: 1,
|
|
21
|
-
status:
|
|
21
|
+
status: "completed",
|
|
22
22
|
index: 0,
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
title:
|
|
26
|
-
description:
|
|
25
|
+
title: "Application form",
|
|
26
|
+
description: "Cursus semper viverra.",
|
|
27
27
|
stepNumber: 2,
|
|
28
|
-
status:
|
|
28
|
+
status: "current",
|
|
29
29
|
index: 1,
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
title:
|
|
33
|
-
description:
|
|
32
|
+
title: "Preview",
|
|
33
|
+
description: "Penatibus eu quis ante.",
|
|
34
34
|
stepNumber: 3,
|
|
35
|
-
status:
|
|
35
|
+
status: "pending",
|
|
36
36
|
index: 2,
|
|
37
37
|
},
|
|
38
38
|
];
|
|
@@ -45,45 +45,45 @@ Demo.args = {
|
|
|
45
45
|
|
|
46
46
|
const sixItems = [
|
|
47
47
|
{
|
|
48
|
-
title:
|
|
49
|
-
description:
|
|
48
|
+
title: "Job details",
|
|
49
|
+
description: "Vitae sed mi luctus laoreet.",
|
|
50
50
|
stepNumber: 1,
|
|
51
|
-
status:
|
|
51
|
+
status: "completed",
|
|
52
52
|
index: 0,
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
title:
|
|
56
|
-
description:
|
|
55
|
+
title: "Application form",
|
|
56
|
+
description: "Cursus semper viverra.",
|
|
57
57
|
stepNumber: 2,
|
|
58
|
-
status:
|
|
58
|
+
status: "completed",
|
|
59
59
|
index: 1,
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
title:
|
|
63
|
-
description:
|
|
62
|
+
title: "Preview",
|
|
63
|
+
description: "Penatibus eu quis ante.",
|
|
64
64
|
stepNumber: 3,
|
|
65
|
-
status:
|
|
65
|
+
status: "completed",
|
|
66
66
|
index: 2,
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
title:
|
|
70
|
-
description:
|
|
69
|
+
title: "HR interview",
|
|
70
|
+
description: "Penatibus eu quis ante.",
|
|
71
71
|
stepNumber: 4,
|
|
72
|
-
status:
|
|
72
|
+
status: "completed",
|
|
73
73
|
index: 3,
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
|
-
title:
|
|
77
|
-
description:
|
|
76
|
+
title: "Technical interview",
|
|
77
|
+
description: "Penatibus eu quis ante.",
|
|
78
78
|
stepNumber: 5,
|
|
79
|
-
status:
|
|
79
|
+
status: "current",
|
|
80
80
|
index: 4,
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
|
-
title:
|
|
84
|
-
description:
|
|
83
|
+
title: "Hiring",
|
|
84
|
+
description: "Penatibus eu quis ante.",
|
|
85
85
|
stepNumber: 6,
|
|
86
|
-
status:
|
|
86
|
+
status: "pending",
|
|
87
87
|
index: 5,
|
|
88
88
|
},
|
|
89
89
|
];
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import BaseStepperItem from
|
|
1
|
+
import BaseStepperItem from "./BaseStepperItem.vue";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
title:
|
|
4
|
+
title: "Layout/BaseStepperItem",
|
|
5
5
|
component: BaseStepperItem,
|
|
6
6
|
argTypes: {
|
|
7
7
|
status: {
|
|
8
|
-
control: { type:
|
|
9
|
-
options: [
|
|
8
|
+
control: { type: "select" },
|
|
9
|
+
options: ["pending", "current", "completed"],
|
|
10
10
|
},
|
|
11
11
|
description: {
|
|
12
|
-
control: { type:
|
|
12
|
+
control: { type: "text" },
|
|
13
13
|
},
|
|
14
14
|
},
|
|
15
15
|
};
|
|
@@ -47,19 +47,19 @@ const Template = (args) => ({
|
|
|
47
47
|
export const Simple = Template.bind({});
|
|
48
48
|
|
|
49
49
|
Simple.args = {
|
|
50
|
-
title:
|
|
51
|
-
description:
|
|
50
|
+
title: "Job application",
|
|
51
|
+
description: "",
|
|
52
52
|
stepNumber: 1,
|
|
53
|
-
status:
|
|
53
|
+
status: "pending",
|
|
54
54
|
index: 0,
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
export const WithDescription = Template.bind({});
|
|
58
58
|
|
|
59
59
|
WithDescription.args = {
|
|
60
|
-
title:
|
|
61
|
-
description:
|
|
60
|
+
title: "Job application",
|
|
61
|
+
description: "Vitae sed mi luctus laoreet.",
|
|
62
62
|
stepNumber: 1,
|
|
63
|
-
status:
|
|
63
|
+
status: "current",
|
|
64
64
|
index: 0,
|
|
65
65
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import BaseSwitch from
|
|
2
|
-
import BaseContainer from
|
|
3
|
-
import { createFieldStory, sizes } from
|
|
1
|
+
import BaseSwitch from "./BaseSwitch.vue";
|
|
2
|
+
import BaseContainer from "./BaseContainer.vue";
|
|
3
|
+
import { createFieldStory, sizes } from "../../.storybook/utils";
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
title:
|
|
6
|
+
title: "Form/BaseSwitch",
|
|
7
7
|
component: BaseSwitch,
|
|
8
8
|
args: {},
|
|
9
9
|
argTypes: {
|
|
10
10
|
color: {
|
|
11
|
-
control: { type:
|
|
11
|
+
control: { type: "select" },
|
|
12
12
|
options: [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
"primary",
|
|
14
|
+
"success",
|
|
15
|
+
"info",
|
|
16
|
+
"warning",
|
|
17
|
+
"danger",
|
|
18
|
+
"light",
|
|
19
|
+
"dark",
|
|
20
20
|
],
|
|
21
21
|
},
|
|
22
22
|
size: {
|
|
23
|
-
control: { type:
|
|
24
|
-
options: [
|
|
23
|
+
control: { type: "select" },
|
|
24
|
+
options: ["xs", "sm", "base", "lg", "xl"],
|
|
25
25
|
},
|
|
26
26
|
},
|
|
27
27
|
};
|
|
@@ -51,13 +51,13 @@ Disabled.args = {
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
const colors = [
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
"primary",
|
|
55
|
+
"info",
|
|
56
|
+
"success",
|
|
57
|
+
"warning",
|
|
58
|
+
"danger",
|
|
59
|
+
"light",
|
|
60
|
+
"dark",
|
|
61
61
|
];
|
|
62
62
|
|
|
63
63
|
const Colors = (args) => ({
|
|
@@ -106,8 +106,8 @@ AllSizes.args = {};
|
|
|
106
106
|
|
|
107
107
|
export const Field = createFieldStory({
|
|
108
108
|
component: BaseSwitch,
|
|
109
|
-
componentName:
|
|
110
|
-
label:
|
|
109
|
+
componentName: "BaseSwitch",
|
|
110
|
+
label: "Activate",
|
|
111
111
|
});
|
|
112
112
|
|
|
113
113
|
const Icons = (args) => ({
|
|
@@ -128,6 +128,6 @@ const Icons = (args) => ({
|
|
|
128
128
|
|
|
129
129
|
export const WithIcons = Icons.bind({});
|
|
130
130
|
WithIcons.args = {
|
|
131
|
-
checkedIcon:
|
|
132
|
-
unCheckedIcon:
|
|
131
|
+
checkedIcon: "heroicons-solid:check",
|
|
132
|
+
unCheckedIcon: "heroicons-solid:x",
|
|
133
133
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import BaseSystemAlert from
|
|
1
|
+
import BaseSystemAlert from "./BaseSystemAlert.vue";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
title:
|
|
4
|
+
title: "Layout/BaseSystemAlert",
|
|
5
5
|
component: BaseSystemAlert,
|
|
6
6
|
args: {
|
|
7
|
-
to:
|
|
7
|
+
to: "https://google.com",
|
|
8
8
|
},
|
|
9
9
|
argTypes: {
|
|
10
10
|
color: {
|
|
11
|
-
control: { type:
|
|
12
|
-
options: [
|
|
11
|
+
control: { type: "select" },
|
|
12
|
+
options: ["success", "info", "warning", "danger"],
|
|
13
13
|
},
|
|
14
14
|
},
|
|
15
15
|
};
|
|
@@ -20,7 +20,7 @@ const Template = (args) => ({
|
|
|
20
20
|
},
|
|
21
21
|
setup() {
|
|
22
22
|
function onClose() {
|
|
23
|
-
alert(
|
|
23
|
+
alert("close");
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
return { args, onClose };
|
|
@@ -40,7 +40,7 @@ Closable.args = {
|
|
|
40
40
|
closable: true,
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
const colors = [
|
|
43
|
+
const colors = ["info", "success", "warning", "danger"];
|
|
44
44
|
|
|
45
45
|
const Colors = (args) => ({
|
|
46
46
|
components: {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import BaseTable from
|
|
2
|
-
import BaseTableHead from
|
|
3
|
-
import BaseTableBody from
|
|
4
|
-
import BaseTableRow from
|
|
5
|
-
import BaseTableCell from
|
|
6
|
-
import BaseTableHeader from
|
|
7
|
-
import BaseBadge from
|
|
8
|
-
import { options, optionsLarge } from
|
|
1
|
+
import BaseTable from "./BaseTable.vue";
|
|
2
|
+
import BaseTableHead from "./BaseTableHead.vue";
|
|
3
|
+
import BaseTableBody from "./BaseTableBody.vue";
|
|
4
|
+
import BaseTableRow from "./BaseTableRow.vue";
|
|
5
|
+
import BaseTableCell from "./BaseTableCell.vue";
|
|
6
|
+
import BaseTableHeader from "./BaseTableHeader.vue";
|
|
7
|
+
import BaseBadge from "./BaseBadge.vue";
|
|
8
|
+
import { options, optionsLarge } from "../../.storybook/utils";
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
|
-
title:
|
|
11
|
+
title: "Data/BaseTable",
|
|
12
12
|
component: BaseTable,
|
|
13
13
|
args: {},
|
|
14
14
|
argTypes: {
|
|
15
15
|
size: {
|
|
16
16
|
control: {
|
|
17
|
-
type:
|
|
17
|
+
type: "select",
|
|
18
18
|
},
|
|
19
|
-
options: [
|
|
19
|
+
options: ["none", "xs", "sm", "md", "lg"],
|
|
20
20
|
},
|
|
21
21
|
loading: {
|
|
22
22
|
control: {
|
|
23
|
-
type:
|
|
23
|
+
type: "boolean",
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
26
|
},
|
|
@@ -61,7 +61,6 @@ const components = {
|
|
|
61
61
|
BaseBadge,
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
|
|
65
64
|
const Template = (args) => ({
|
|
66
65
|
components: components,
|
|
67
66
|
setup() {
|
|
@@ -177,9 +176,8 @@ RouterLink.args = {};
|
|
|
177
176
|
const TemplateCellClick = (args) => ({
|
|
178
177
|
components: components,
|
|
179
178
|
setup() {
|
|
180
|
-
|
|
181
179
|
const al = function () {
|
|
182
|
-
alert(
|
|
180
|
+
alert("clicked");
|
|
183
181
|
};
|
|
184
182
|
|
|
185
183
|
return { args, options, al };
|
|
@@ -240,4 +238,4 @@ const TemplateCellClick = (args) => ({
|
|
|
240
238
|
});
|
|
241
239
|
|
|
242
240
|
export const CellClick = TemplateCellClick.bind({});
|
|
243
|
-
CellClick.args = {};
|
|
241
|
+
CellClick.args = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import BaseTabs from
|
|
2
|
-
import BaseTabItem from
|
|
3
|
-
import BaseContainer from
|
|
4
|
-
import BaseCard from
|
|
5
|
-
import BaseCardRow from
|
|
6
|
-
import BaseCounter from
|
|
1
|
+
import BaseTabs from "./BaseTabs.vue";
|
|
2
|
+
import BaseTabItem from "./BaseTabItem.vue";
|
|
3
|
+
import BaseContainer from "./BaseContainer.vue";
|
|
4
|
+
import BaseCard from "./BaseCard.vue";
|
|
5
|
+
import BaseCardRow from "./BaseCardRow.vue";
|
|
6
|
+
import BaseCounter from "./BaseCounter.vue";
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
|
-
title:
|
|
9
|
+
title: "Navigation/BaseTabs",
|
|
10
10
|
component: BaseTabs,
|
|
11
11
|
args: {},
|
|
12
12
|
};
|
|
@@ -21,8 +21,7 @@ const Template = (args) => ({
|
|
|
21
21
|
BaseCounter,
|
|
22
22
|
},
|
|
23
23
|
setup() {
|
|
24
|
-
|
|
25
|
-
const label = ref('Home');
|
|
24
|
+
const label = ref("Home");
|
|
26
25
|
|
|
27
26
|
setInterval(() => {
|
|
28
27
|
label.value = Math.random().toString(36).substring(7);
|
|
@@ -77,20 +76,20 @@ Demo.args = {};
|
|
|
77
76
|
|
|
78
77
|
export const SizeXS = Template.bind({});
|
|
79
78
|
SizeXS.args = {
|
|
80
|
-
size:
|
|
79
|
+
size: "xs",
|
|
81
80
|
};
|
|
82
81
|
|
|
83
82
|
export const SizeSM = Template.bind({});
|
|
84
83
|
SizeSM.args = {
|
|
85
|
-
size:
|
|
84
|
+
size: "sm",
|
|
86
85
|
};
|
|
87
86
|
|
|
88
87
|
export const SizeMD = Template.bind({});
|
|
89
88
|
SizeMD.args = {
|
|
90
|
-
size:
|
|
89
|
+
size: "md",
|
|
91
90
|
};
|
|
92
91
|
|
|
93
92
|
export const SizeLG = Template.bind({});
|
|
94
93
|
SizeLG.args = {
|
|
95
|
-
size:
|
|
94
|
+
size: "lg",
|
|
96
95
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { createFieldStory, options, sizes } from
|
|
2
|
-
import BaseTagAutocomplete from
|
|
3
|
-
import ShowValue from
|
|
4
|
-
import BaseAppSnackbars from
|
|
1
|
+
import { createFieldStory, options, sizes } from "../../.storybook/utils";
|
|
2
|
+
import BaseTagAutocomplete from "./BaseTagAutocomplete.vue";
|
|
3
|
+
import ShowValue from "@/../.storybook/components/ShowValue.vue";
|
|
4
|
+
import BaseAppSnackbars from "./BaseAppSnackbars.vue";
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
|
-
title:
|
|
7
|
+
title: "Form/BaseTagAutocomplete",
|
|
8
8
|
component: BaseTagAutocomplete,
|
|
9
9
|
argTypes: {
|
|
10
10
|
size: {
|
|
11
|
-
control: { type:
|
|
11
|
+
control: { type: "select" },
|
|
12
12
|
options: sizes,
|
|
13
13
|
},
|
|
14
14
|
dropdownShow: {
|
|
15
|
-
control: { type:
|
|
16
|
-
options: [
|
|
15
|
+
control: { type: "select" },
|
|
16
|
+
options: ["always", "focus"],
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
args: {
|
|
20
|
-
labelKey:
|
|
21
|
-
valueKey:
|
|
20
|
+
labelKey: "label",
|
|
21
|
+
valueKey: "value",
|
|
22
22
|
options: options,
|
|
23
23
|
},
|
|
24
24
|
decorators: [() => ({ template: '<div class="mb-36"><story/></div>' })],
|
|
@@ -42,13 +42,13 @@ Demo.args = {};
|
|
|
42
42
|
|
|
43
43
|
export const Max = Template.bind({});
|
|
44
44
|
Max.args = {
|
|
45
|
-
max: 3
|
|
45
|
+
max: 3,
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
export const AlwaysShowDropdown = Template.bind({});
|
|
49
49
|
AlwaysShowDropdown.args = {
|
|
50
50
|
inline: true,
|
|
51
|
-
dropdownShow:
|
|
51
|
+
dropdownShow: "always",
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
export const NoFocus = Template.bind({});
|
|
@@ -93,11 +93,11 @@ export const SlotOption = (args) => ({
|
|
|
93
93
|
const value = ref(null);
|
|
94
94
|
|
|
95
95
|
const options = [
|
|
96
|
-
{ label:
|
|
97
|
-
{ label:
|
|
98
|
-
{ label:
|
|
99
|
-
{ label:
|
|
100
|
-
{ label:
|
|
96
|
+
{ label: "Red", value: "red" },
|
|
97
|
+
{ label: "Blue", value: "blue" },
|
|
98
|
+
{ label: "Green", value: "green" },
|
|
99
|
+
{ label: "Black", value: "black" },
|
|
100
|
+
{ label: "Gray", value: "gray" },
|
|
101
101
|
];
|
|
102
102
|
|
|
103
103
|
return { value, options, args };
|
|
@@ -253,6 +253,6 @@ export const SlotEmpty = (args) => {
|
|
|
253
253
|
|
|
254
254
|
export const Field = createFieldStory({
|
|
255
255
|
component: BaseTagAutocomplete,
|
|
256
|
-
componentName:
|
|
257
|
-
label:
|
|
256
|
+
componentName: "BaseTagAutocomplete",
|
|
257
|
+
label: "Name",
|
|
258
258
|
});
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import BaseTagAutocompleteFetch from
|
|
2
|
-
import ShowValue from
|
|
3
|
-
import { createFieldStory, sizes } from
|
|
4
|
-
import BaseAppSnackbars from
|
|
1
|
+
import BaseTagAutocompleteFetch from "./BaseTagAutocompleteFetch.vue";
|
|
2
|
+
import ShowValue from "@/../.storybook/components/ShowValue.vue";
|
|
3
|
+
import { createFieldStory, sizes } from "../../.storybook/utils";
|
|
4
|
+
import BaseAppSnackbars from "./BaseAppSnackbars.vue";
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
|
-
title:
|
|
7
|
+
title: "Form/BaseTagAutocompleteFetch",
|
|
8
8
|
component: BaseTagAutocompleteFetch,
|
|
9
9
|
argTypes: {
|
|
10
10
|
size: {
|
|
11
|
-
control: { type:
|
|
11
|
+
control: { type: "select" },
|
|
12
12
|
options: sizes,
|
|
13
13
|
},
|
|
14
14
|
},
|
|
15
15
|
args: {
|
|
16
|
-
url:
|
|
17
|
-
labelKey:
|
|
18
|
-
valueKey:
|
|
16
|
+
url: "https://effettandem.com/api/content/articles",
|
|
17
|
+
labelKey: "title",
|
|
18
|
+
valueKey: "id",
|
|
19
19
|
},
|
|
20
20
|
decorators: [() => ({ template: '<div class="mb-36"><story/></div>' })],
|
|
21
21
|
};
|
|
@@ -199,6 +199,6 @@ export const SlotEmpty = (args) => {
|
|
|
199
199
|
|
|
200
200
|
export const Field = createFieldStory({
|
|
201
201
|
component: BaseTagAutocompleteFetch,
|
|
202
|
-
componentName:
|
|
203
|
-
label:
|
|
202
|
+
componentName: "BaseTagAutocompleteFetch",
|
|
203
|
+
label: "Name",
|
|
204
204
|
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { createFieldStory, sizes } from
|
|
2
|
-
import BaseTextarea from
|
|
1
|
+
import { createFieldStory, sizes } from "../../.storybook/utils";
|
|
2
|
+
import BaseTextarea from "./BaseTextarea.vue";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
-
title:
|
|
5
|
+
title: "Form/BaseTextarea",
|
|
6
6
|
component: BaseTextarea,
|
|
7
7
|
args: {
|
|
8
|
-
placeholder:
|
|
8
|
+
placeholder: "Describe your complete life in 4 sentences...",
|
|
9
9
|
},
|
|
10
10
|
argTypes: {
|
|
11
11
|
size: {
|
|
12
|
-
control: { type:
|
|
12
|
+
control: { type: "select" },
|
|
13
13
|
options: sizes,
|
|
14
14
|
},
|
|
15
15
|
},
|
|
@@ -20,7 +20,7 @@ const Template = (args) => ({
|
|
|
20
20
|
BaseTextarea,
|
|
21
21
|
},
|
|
22
22
|
setup() {
|
|
23
|
-
const value = ref(
|
|
23
|
+
const value = ref("");
|
|
24
24
|
return { args, value };
|
|
25
25
|
},
|
|
26
26
|
template: `
|
|
@@ -38,14 +38,14 @@ Demo.args = {
|
|
|
38
38
|
|
|
39
39
|
export const Disabled = Template.bind({});
|
|
40
40
|
Disabled.args = {
|
|
41
|
-
modelValue:
|
|
41
|
+
modelValue: "Lorem ipsum...",
|
|
42
42
|
disabled: true,
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
export const Field = createFieldStory({
|
|
46
46
|
component: BaseTextarea,
|
|
47
|
-
componentName:
|
|
48
|
-
label:
|
|
47
|
+
componentName: "BaseTextarea",
|
|
48
|
+
label: "Biography",
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
const TemplateSizes = (args) => ({
|
|
@@ -78,4 +78,4 @@ const FocusTemplate = (args) => ({
|
|
|
78
78
|
`,
|
|
79
79
|
});
|
|
80
80
|
|
|
81
|
-
export const Focus = FocusTemplate.bind({});
|
|
81
|
+
export const Focus = FocusTemplate.bind({});
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import BaseTextareaAutoresize from
|
|
2
|
-
import ShowValue from
|
|
3
|
-
import { createFieldStory, sizes } from
|
|
1
|
+
import BaseTextareaAutoresize from "./BaseTextareaAutoresize.vue";
|
|
2
|
+
import ShowValue from "@/../.storybook/components/ShowValue.vue";
|
|
3
|
+
import { createFieldStory, sizes } from "../../.storybook/utils";
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
title:
|
|
6
|
+
title: "Form/BaseTextareaAutoresize",
|
|
7
7
|
component: BaseTextareaAutoresize,
|
|
8
8
|
args: {
|
|
9
|
-
name:
|
|
10
|
-
placeholder:
|
|
9
|
+
name: "name",
|
|
10
|
+
placeholder: "Describe your complete life in 4 sentences...",
|
|
11
11
|
},
|
|
12
12
|
argTypes: {
|
|
13
13
|
size: {
|
|
14
|
-
control: { type:
|
|
14
|
+
control: { type: "select" },
|
|
15
15
|
options: sizes,
|
|
16
16
|
},
|
|
17
17
|
},
|
|
@@ -24,7 +24,7 @@ const Template = (args) => ({
|
|
|
24
24
|
},
|
|
25
25
|
setup() {
|
|
26
26
|
function onSubmit() {
|
|
27
|
-
alert(
|
|
27
|
+
alert("submit");
|
|
28
28
|
}
|
|
29
29
|
const value = ref(null);
|
|
30
30
|
return { args, value, onSubmit };
|
|
@@ -53,7 +53,7 @@ SubmitOnEnter.args = {
|
|
|
53
53
|
|
|
54
54
|
export const Disabled = Template.bind({});
|
|
55
55
|
Disabled.args = {
|
|
56
|
-
modelValue:
|
|
56
|
+
modelValue: "Lorem ipsum...",
|
|
57
57
|
disabled: true,
|
|
58
58
|
};
|
|
59
59
|
|
|
@@ -64,7 +64,7 @@ const TemplateTWTextarea = (args) => ({
|
|
|
64
64
|
},
|
|
65
65
|
setup() {
|
|
66
66
|
function onSubmit() {
|
|
67
|
-
alert(
|
|
67
|
+
alert("submit");
|
|
68
68
|
}
|
|
69
69
|
const value = ref(null);
|
|
70
70
|
return { args, value, onSubmit };
|
|
@@ -88,8 +88,8 @@ export const TWTextarea = TemplateTWTextarea.bind({});
|
|
|
88
88
|
|
|
89
89
|
export const Field = createFieldStory({
|
|
90
90
|
component: BaseTextareaAutoresize,
|
|
91
|
-
componentName:
|
|
92
|
-
label:
|
|
91
|
+
componentName: "BaseTextareaAutoresize",
|
|
92
|
+
label: "Biography",
|
|
93
93
|
});
|
|
94
94
|
|
|
95
95
|
const TemplateSizes = (args) => ({
|
|
@@ -122,4 +122,4 @@ const FocusTemplate = (args) => ({
|
|
|
122
122
|
`,
|
|
123
123
|
});
|
|
124
124
|
|
|
125
|
-
export const Focus = FocusTemplate.bind({});
|
|
125
|
+
export const Focus = FocusTemplate.bind({});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { createFieldStory, sizes } from
|
|
2
|
-
import BaseTimePicker from
|
|
3
|
-
import ShowValue from
|
|
1
|
+
import { createFieldStory, sizes } from "../../.storybook/utils";
|
|
2
|
+
import BaseTimePicker from "./BaseTimePicker.vue";
|
|
3
|
+
import ShowValue from "@/../.storybook/components/ShowValue.vue";
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
title:
|
|
6
|
+
title: "Form/BaseTimePicker",
|
|
7
7
|
component: BaseTimePicker,
|
|
8
8
|
argTypes: {
|
|
9
9
|
size: {
|
|
10
|
-
control: { type:
|
|
10
|
+
control: { type: "select" },
|
|
11
11
|
options: sizes,
|
|
12
|
-
}
|
|
12
|
+
},
|
|
13
13
|
},
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -63,6 +63,6 @@ export const Sizes = TemplateSizes.bind({});
|
|
|
63
63
|
|
|
64
64
|
export const Field = createFieldStory({
|
|
65
65
|
component: BaseTimePicker,
|
|
66
|
-
componentName:
|
|
67
|
-
label:
|
|
68
|
-
});
|
|
66
|
+
componentName: "BaseTimePicker",
|
|
67
|
+
label: "Time",
|
|
68
|
+
});
|