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,14 +1,14 @@
|
|
|
1
|
-
import BaseCalendar from
|
|
1
|
+
import BaseCalendar from "./BaseCalendar.vue";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
title:
|
|
4
|
+
title: "Components/BaseCalendar",
|
|
5
5
|
component: BaseCalendar,
|
|
6
6
|
args: {},
|
|
7
7
|
argTypes: {
|
|
8
8
|
locale: {
|
|
9
|
-
control: { type:
|
|
10
|
-
options: [
|
|
11
|
-
}
|
|
9
|
+
control: { type: "select" },
|
|
10
|
+
options: ["en", "fr"],
|
|
11
|
+
},
|
|
12
12
|
},
|
|
13
13
|
};
|
|
14
14
|
|
|
@@ -25,11 +25,38 @@ function getDateByDay(day) {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
const events = [
|
|
28
|
-
{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
{
|
|
29
|
+
id: 1,
|
|
30
|
+
title: "Reserved",
|
|
31
|
+
start: getDateByDay(15) + " 10:30:00",
|
|
32
|
+
end: getDateByDay(20) + " 13:25:00",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: 2,
|
|
36
|
+
title: "Accepted",
|
|
37
|
+
start: getDateByDay(11),
|
|
38
|
+
end: getDateByDay(17),
|
|
39
|
+
backgroundColor: "green",
|
|
40
|
+
borderColor: "green",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: 3,
|
|
44
|
+
title: "Blocked",
|
|
45
|
+
start: getDateByDay(5),
|
|
46
|
+
end: getDateByDay(5),
|
|
47
|
+
backgroundColor: "#000",
|
|
48
|
+
borderColor: "#000",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 4,
|
|
52
|
+
title: "Removed",
|
|
53
|
+
start: getDateByDay(25),
|
|
54
|
+
end: getDateByDay(26),
|
|
55
|
+
backgroundColor: "orange",
|
|
56
|
+
borderColor: "red",
|
|
57
|
+
textColor: "blue",
|
|
58
|
+
},
|
|
59
|
+
];
|
|
33
60
|
|
|
34
61
|
const Template = (args) => ({
|
|
35
62
|
components: { BaseCalendar },
|
|
@@ -42,39 +69,69 @@ const Template = (args) => ({
|
|
|
42
69
|
`,
|
|
43
70
|
});
|
|
44
71
|
|
|
45
|
-
|
|
46
72
|
const TemplateWithAllEvents = (args) => ({
|
|
47
73
|
components: { BaseCalendar },
|
|
48
74
|
setup() {
|
|
49
75
|
function onSelect(payload) {
|
|
50
|
-
alert(
|
|
76
|
+
alert("selected: start = " + payload.start + ", end = " + payload.end);
|
|
51
77
|
}
|
|
52
78
|
|
|
53
79
|
function onClick(payload) {
|
|
54
|
-
alert(
|
|
80
|
+
alert(
|
|
81
|
+
"clicked: title = " +
|
|
82
|
+
payload.event.title +
|
|
83
|
+
", start = " +
|
|
84
|
+
payload.event.start +
|
|
85
|
+
", end = " +
|
|
86
|
+
payload.event.end,
|
|
87
|
+
);
|
|
55
88
|
}
|
|
56
89
|
|
|
57
90
|
function onAdd() {
|
|
58
|
-
alert(
|
|
91
|
+
alert("added");
|
|
59
92
|
}
|
|
60
93
|
|
|
61
94
|
function onChange(payload) {
|
|
62
|
-
alert(
|
|
95
|
+
alert(
|
|
96
|
+
"changed: start = " +
|
|
97
|
+
payload.event.start +
|
|
98
|
+
", end = " +
|
|
99
|
+
payload.event.end,
|
|
100
|
+
);
|
|
63
101
|
}
|
|
64
102
|
|
|
65
103
|
function onResize(payload) {
|
|
66
|
-
alert(
|
|
104
|
+
alert(
|
|
105
|
+
"resized: start = " +
|
|
106
|
+
payload.event.start +
|
|
107
|
+
", end = " +
|
|
108
|
+
payload.event.end,
|
|
109
|
+
);
|
|
67
110
|
}
|
|
68
111
|
|
|
69
112
|
function onDrop(payload) {
|
|
70
|
-
alert(
|
|
113
|
+
alert(
|
|
114
|
+
"dropped: start = " +
|
|
115
|
+
payload.event.start +
|
|
116
|
+
", end = " +
|
|
117
|
+
payload.event.end,
|
|
118
|
+
);
|
|
71
119
|
}
|
|
72
120
|
|
|
73
121
|
function onDateClick(payload) {
|
|
74
|
-
alert(
|
|
122
|
+
alert("date clicked = " + payload.date);
|
|
75
123
|
}
|
|
76
124
|
|
|
77
|
-
return {
|
|
125
|
+
return {
|
|
126
|
+
args,
|
|
127
|
+
onSelect,
|
|
128
|
+
onClick,
|
|
129
|
+
onAdd,
|
|
130
|
+
onChange,
|
|
131
|
+
onResize,
|
|
132
|
+
onDrop,
|
|
133
|
+
onDateClick,
|
|
134
|
+
};
|
|
78
135
|
},
|
|
79
136
|
template: `
|
|
80
137
|
<BaseCalendar
|
|
@@ -96,11 +153,25 @@ const TemplateWithHoverEvents = (args) => ({
|
|
|
96
153
|
components: { BaseCalendar },
|
|
97
154
|
setup() {
|
|
98
155
|
function onMouseenter(payload) {
|
|
99
|
-
alert(
|
|
156
|
+
alert(
|
|
157
|
+
"mouseenter: title = " +
|
|
158
|
+
payload.event.title +
|
|
159
|
+
", start = " +
|
|
160
|
+
payload.event.start +
|
|
161
|
+
", end = " +
|
|
162
|
+
payload.event.end,
|
|
163
|
+
);
|
|
100
164
|
}
|
|
101
165
|
|
|
102
166
|
function onMouseleave(payload) {
|
|
103
|
-
alert(
|
|
167
|
+
alert(
|
|
168
|
+
"mouseleave: title = " +
|
|
169
|
+
payload.event.title +
|
|
170
|
+
", start = " +
|
|
171
|
+
payload.event.start +
|
|
172
|
+
", end = " +
|
|
173
|
+
payload.event.end,
|
|
174
|
+
);
|
|
104
175
|
}
|
|
105
176
|
return { args, onMouseenter, onMouseleave };
|
|
106
177
|
},
|
|
@@ -134,8 +205,7 @@ const TemplateWithSlot = (args) => ({
|
|
|
134
205
|
});
|
|
135
206
|
|
|
136
207
|
export const Demo = Template.bind({});
|
|
137
|
-
Demo.args = {
|
|
138
|
-
};
|
|
208
|
+
Demo.args = {};
|
|
139
209
|
|
|
140
210
|
export const Event = TemplateWithAllEvents.bind({});
|
|
141
211
|
Event.args = {
|
|
@@ -144,59 +214,65 @@ Event.args = {
|
|
|
144
214
|
|
|
145
215
|
export const HoverEvent = TemplateWithHoverEvents.bind({});
|
|
146
216
|
HoverEvent.args = {
|
|
147
|
-
events: events
|
|
217
|
+
events: events,
|
|
148
218
|
};
|
|
149
219
|
|
|
150
220
|
export const CustomSlot = TemplateWithSlot.bind({});
|
|
151
221
|
CustomSlot.args = {
|
|
152
|
-
events: events
|
|
222
|
+
events: events,
|
|
153
223
|
};
|
|
154
224
|
|
|
155
225
|
export const ToolbarHeaderAll1 = Template.bind({});
|
|
156
226
|
ToolbarHeaderAll1.args = {
|
|
157
|
-
headerToolbarLeft:
|
|
158
|
-
|
|
159
|
-
|
|
227
|
+
headerToolbarLeft:
|
|
228
|
+
"multiMonthYear dayGridMonth timeGridWeek timeGridDay listWeek",
|
|
229
|
+
headerToolbarCenter: "title",
|
|
230
|
+
headerToolbarRight: "prev,next today",
|
|
160
231
|
};
|
|
161
232
|
|
|
162
233
|
export const ToolbarHeaderAll2 = Template.bind({});
|
|
163
234
|
ToolbarHeaderAll2.args = {
|
|
164
|
-
headerToolbarLeft:
|
|
165
|
-
headerToolbarCenter:
|
|
166
|
-
|
|
235
|
+
headerToolbarLeft: "title",
|
|
236
|
+
headerToolbarCenter:
|
|
237
|
+
"multiMonthYear dayGridMonth timeGridWeek timeGridDay listWeek",
|
|
238
|
+
headerToolbarRight: "prev,next today",
|
|
167
239
|
};
|
|
168
240
|
|
|
169
241
|
export const ToolbarHeaderAll3 = Template.bind({});
|
|
170
242
|
ToolbarHeaderAll3.args = {
|
|
171
|
-
headerToolbarLeft:
|
|
172
|
-
|
|
173
|
-
|
|
243
|
+
headerToolbarLeft:
|
|
244
|
+
"multiMonthYear dayGridMonth timeGridWeek timeGridDay listWeek",
|
|
245
|
+
headerToolbarCenter: "prev,next today",
|
|
246
|
+
headerToolbarRight: "title",
|
|
174
247
|
};
|
|
175
248
|
|
|
176
249
|
export const ToolbarHeaderAll4 = Template.bind({});
|
|
177
250
|
ToolbarHeaderAll4.args = {
|
|
178
|
-
headerToolbarLeft:
|
|
179
|
-
headerToolbarCenter:
|
|
180
|
-
|
|
251
|
+
headerToolbarLeft: "prev,next today",
|
|
252
|
+
headerToolbarCenter:
|
|
253
|
+
"multiMonthYear dayGridMonth timeGridWeek timeGridDay listWeek",
|
|
254
|
+
headerToolbarRight: "title",
|
|
181
255
|
};
|
|
182
256
|
|
|
183
257
|
export const ToolbarHeaderAll5 = Template.bind({});
|
|
184
258
|
ToolbarHeaderAll5.args = {
|
|
185
|
-
headerToolbarLeft:
|
|
186
|
-
headerToolbarCenter:
|
|
187
|
-
headerToolbarRight:
|
|
259
|
+
headerToolbarLeft: "title",
|
|
260
|
+
headerToolbarCenter: "prev,next today",
|
|
261
|
+
headerToolbarRight:
|
|
262
|
+
"multiMonthYear dayGridMonth timeGridWeek timeGridDay listWeek",
|
|
188
263
|
};
|
|
189
264
|
|
|
190
265
|
export const ToolbarHeaderAll6 = Template.bind({});
|
|
191
266
|
ToolbarHeaderAll6.args = {
|
|
192
|
-
headerToolbarLeft:
|
|
193
|
-
headerToolbarCenter:
|
|
194
|
-
headerToolbarRight:
|
|
267
|
+
headerToolbarLeft: "prev,next today",
|
|
268
|
+
headerToolbarCenter: "title",
|
|
269
|
+
headerToolbarRight:
|
|
270
|
+
"multiMonthYear dayGridMonth timeGridWeek timeGridDay listWeek",
|
|
195
271
|
};
|
|
196
272
|
|
|
197
273
|
export const ToolbarHeaderSome = Template.bind({});
|
|
198
274
|
ToolbarHeaderSome.args = {
|
|
199
|
-
headerToolbarRight:
|
|
200
|
-
headerToolbarCenter:
|
|
201
|
-
headerToolbarLeft:
|
|
275
|
+
headerToolbarRight: "dayGridMonth timeGridWeek",
|
|
276
|
+
headerToolbarCenter: "title",
|
|
277
|
+
headerToolbarLeft: "prev,next",
|
|
202
278
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import BaseCard from
|
|
2
|
-
import BaseCardRow from
|
|
1
|
+
import BaseCard from "./BaseCard.vue";
|
|
2
|
+
import BaseCardRow from "./BaseCardRow.vue";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
-
title:
|
|
5
|
+
title: "Layout/BaseCard",
|
|
6
6
|
component: BaseCard,
|
|
7
7
|
argTypes: {},
|
|
8
8
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import BaseCharacterCounter from
|
|
2
|
-
import BaseInput from
|
|
1
|
+
import BaseCharacterCounter from "./BaseCharacterCounter.vue";
|
|
2
|
+
import BaseInput from "@/components/BaseInput.vue";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
-
title:
|
|
5
|
+
title: "Data/BaseCharacterCounter",
|
|
6
6
|
component: BaseCharacterCounter,
|
|
7
7
|
args: {
|
|
8
|
-
text:
|
|
8
|
+
text: "Test",
|
|
9
9
|
max: 100,
|
|
10
10
|
min: 10,
|
|
11
11
|
},
|
|
@@ -17,7 +17,7 @@ const Template = (args) => ({
|
|
|
17
17
|
BaseInput,
|
|
18
18
|
},
|
|
19
19
|
setup() {
|
|
20
|
-
const text = ref(
|
|
20
|
+
const text = ref("bla bla");
|
|
21
21
|
return { args, text };
|
|
22
22
|
},
|
|
23
23
|
template: `
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import BaseClipboard from
|
|
2
|
-
import BaseModalCenter from
|
|
1
|
+
import BaseClipboard from "./BaseClipboard.vue";
|
|
2
|
+
import BaseModalCenter from "./BaseModalCenter.vue";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
-
title:
|
|
5
|
+
title: "Components/BaseClipboard",
|
|
6
6
|
component: BaseClipboard,
|
|
7
7
|
args: {},
|
|
8
8
|
argTypes: {},
|
|
@@ -29,7 +29,7 @@ const Template = (args) => ({
|
|
|
29
29
|
|
|
30
30
|
export const Demo = Template.bind({});
|
|
31
31
|
Demo.args = {
|
|
32
|
-
value:
|
|
32
|
+
value: "168.192.0.1",
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
const TemplateModal = (args) => ({
|
|
@@ -51,5 +51,5 @@ const TemplateModal = (args) => ({
|
|
|
51
51
|
|
|
52
52
|
export const Modal = TemplateModal.bind({});
|
|
53
53
|
Modal.args = {
|
|
54
|
-
value:
|
|
55
|
-
};
|
|
54
|
+
value: "testtest",
|
|
55
|
+
};
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { method } from
|
|
2
|
-
import BaseCollapse from
|
|
1
|
+
import { method } from "lodash";
|
|
2
|
+
import BaseCollapse from "./BaseCollapse.vue";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
icon: {
|
|
13
|
-
control: { type: 'text' },
|
|
14
|
-
},
|
|
15
|
-
isOpenIconClass: {
|
|
16
|
-
control: { type: 'text' },
|
|
17
|
-
},
|
|
18
|
-
isCloseIconClass: {
|
|
19
|
-
control: { type: 'text' },
|
|
20
|
-
},
|
|
21
|
-
twIcon: {
|
|
22
|
-
control: { type: 'text' },
|
|
23
|
-
},
|
|
24
|
-
twHeader: {
|
|
25
|
-
control: { type: 'text' },
|
|
26
|
-
},
|
|
27
|
-
twContent: {
|
|
28
|
-
control: { type: 'text' },
|
|
29
|
-
},
|
|
30
|
-
twTitle: {
|
|
31
|
-
control: { type: 'text' },
|
|
32
|
-
},
|
|
33
|
-
iconPosition: {
|
|
34
|
-
control: { type: 'select' },
|
|
35
|
-
options: ['left', 'right'],
|
|
36
|
-
},
|
|
5
|
+
title: "Components/BaseCollapse",
|
|
6
|
+
component: BaseCollapse,
|
|
7
|
+
args: {},
|
|
8
|
+
argTypes: {
|
|
9
|
+
defaultOpen: {
|
|
10
|
+
control: { type: "boolean" },
|
|
37
11
|
},
|
|
12
|
+
icon: {
|
|
13
|
+
control: { type: "text" },
|
|
14
|
+
},
|
|
15
|
+
isOpenIconClass: {
|
|
16
|
+
control: { type: "text" },
|
|
17
|
+
},
|
|
18
|
+
isCloseIconClass: {
|
|
19
|
+
control: { type: "text" },
|
|
20
|
+
},
|
|
21
|
+
twIcon: {
|
|
22
|
+
control: { type: "text" },
|
|
23
|
+
},
|
|
24
|
+
twHeader: {
|
|
25
|
+
control: { type: "text" },
|
|
26
|
+
},
|
|
27
|
+
twContent: {
|
|
28
|
+
control: { type: "text" },
|
|
29
|
+
},
|
|
30
|
+
twTitle: {
|
|
31
|
+
control: { type: "text" },
|
|
32
|
+
},
|
|
33
|
+
iconPosition: {
|
|
34
|
+
control: { type: "select" },
|
|
35
|
+
options: ["left", "right"],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
const Template = (args) => ({
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
components: { BaseCollapse },
|
|
42
|
+
setup() {
|
|
43
|
+
return { args };
|
|
44
|
+
},
|
|
45
|
+
template: `
|
|
46
46
|
<BaseCollapse v-bind="args" class="mb-1">
|
|
47
47
|
<template #title>
|
|
48
48
|
<h6 class="font-semibold"> Qu'est-ce que le Lorem Ipsum? </h6>
|
|
@@ -81,21 +81,20 @@ const Template = (args) => ({
|
|
|
81
81
|
|
|
82
82
|
export const Demo = Template.bind({});
|
|
83
83
|
Demo.args = {
|
|
84
|
-
|
|
84
|
+
defaultOpen: false,
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
-
|
|
88
87
|
const CustomHeaderTemplate = (args) => ({
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
},
|
|
88
|
+
components: { BaseCollapse },
|
|
89
|
+
setup() {
|
|
90
|
+
return { args };
|
|
91
|
+
},
|
|
92
|
+
method: {
|
|
93
|
+
toggle() {
|
|
94
|
+
this.defaultOpen = !this.defaultOpen;
|
|
97
95
|
},
|
|
98
|
-
|
|
96
|
+
},
|
|
97
|
+
template: `
|
|
99
98
|
|
|
100
99
|
<BaseCollapse v-bind="args" class="mb-3">
|
|
101
100
|
<template #header={toggle}>
|
|
@@ -131,39 +130,39 @@ const CustomHeaderTemplate = (args) => ({
|
|
|
131
130
|
</BaseCollapse>
|
|
132
131
|
|
|
133
132
|
`,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
133
|
+
argTypes: {
|
|
134
|
+
defaultOpen: {
|
|
135
|
+
control: { type: "boolean" },
|
|
136
|
+
},
|
|
137
|
+
icon: {
|
|
138
|
+
control: { type: "text" },
|
|
139
|
+
},
|
|
140
|
+
isOpenIconClass: {
|
|
141
|
+
control: { type: "text" },
|
|
142
|
+
},
|
|
143
|
+
isCloseIconClass: {
|
|
144
|
+
control: { type: "text" },
|
|
145
|
+
},
|
|
146
|
+
twIcon: {
|
|
147
|
+
control: { type: "text" },
|
|
148
|
+
},
|
|
149
|
+
twHeader: {
|
|
150
|
+
control: { type: "text" },
|
|
151
|
+
},
|
|
152
|
+
twContent: {
|
|
153
|
+
control: { type: "text" },
|
|
154
|
+
},
|
|
155
|
+
twTitle: {
|
|
156
|
+
control: { type: "text" },
|
|
157
|
+
},
|
|
158
|
+
iconPosition: {
|
|
159
|
+
control: { type: "select" },
|
|
160
|
+
options: ["left", "right"],
|
|
161
|
+
},
|
|
162
|
+
},
|
|
164
163
|
});
|
|
165
164
|
export const CustomHeader = CustomHeaderTemplate.bind({});
|
|
166
165
|
|
|
167
166
|
CustomHeader.args = {
|
|
168
|
-
|
|
169
|
-
};
|
|
167
|
+
defaultOpen: false,
|
|
168
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { createFieldStory, sizes } from
|
|
2
|
-
import BaseColor from
|
|
3
|
-
import ShowValue from
|
|
1
|
+
import { createFieldStory, sizes } from "../../.storybook/utils";
|
|
2
|
+
import BaseColor from "./BaseColor.vue";
|
|
3
|
+
import ShowValue from "../../.storybook/components/ShowValue.vue";
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
title:
|
|
6
|
+
title: "Form/BaseColor",
|
|
7
7
|
component: BaseColor,
|
|
8
8
|
decorators: [() => ({ template: '<div class="mb-36"><story/></div>' })],
|
|
9
9
|
argTypes: {
|
|
10
10
|
size: {
|
|
11
|
-
control: { type:
|
|
11
|
+
control: { type: "select" },
|
|
12
12
|
options: sizes,
|
|
13
13
|
},
|
|
14
14
|
},
|
|
@@ -42,7 +42,7 @@ Multiple.args = {
|
|
|
42
42
|
export const Disabled = Template.bind({});
|
|
43
43
|
Disabled.args = {
|
|
44
44
|
disabled: true,
|
|
45
|
-
modelValue:
|
|
45
|
+
modelValue: "#16a34a",
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
export const Sizes = (args) => ({
|
|
@@ -61,6 +61,6 @@ export const Sizes = (args) => ({
|
|
|
61
61
|
|
|
62
62
|
export const Field = createFieldStory({
|
|
63
63
|
component: BaseColor,
|
|
64
|
-
componentName:
|
|
65
|
-
label:
|
|
64
|
+
componentName: "BaseColor",
|
|
65
|
+
label: "Choose your favorite color",
|
|
66
66
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import BaseContainer from
|
|
1
|
+
import BaseContainer from "./BaseContainer.vue";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
title:
|
|
5
|
-
description:
|
|
4
|
+
title: "Layout/BaseContainer",
|
|
5
|
+
description: "Lorem",
|
|
6
6
|
component: BaseContainer,
|
|
7
7
|
argTypes: {
|
|
8
8
|
size: {
|
|
9
|
-
control: { type:
|
|
10
|
-
options: [
|
|
9
|
+
control: { type: "select" },
|
|
10
|
+
options: ["lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl", "7xl", "full"],
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
};
|
|
@@ -30,5 +30,5 @@ const Template = (args) => ({
|
|
|
30
30
|
export const Demo = Template.bind({});
|
|
31
31
|
|
|
32
32
|
Demo.args = {
|
|
33
|
-
size:
|
|
33
|
+
size: "7xl",
|
|
34
34
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import BaseCounter from
|
|
1
|
+
import BaseCounter from "./BaseCounter.vue";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
title:
|
|
4
|
+
title: "Data/BaseCounter",
|
|
5
5
|
component: BaseCounter,
|
|
6
6
|
argTypes: {
|
|
7
7
|
color: {
|
|
8
|
-
control: { type:
|
|
9
|
-
options: [
|
|
8
|
+
control: { type: "select" },
|
|
9
|
+
options: ["primary", "secondary", "danger", "dark", "light", "white"],
|
|
10
10
|
},
|
|
11
11
|
size: {
|
|
12
|
-
control: { type:
|
|
13
|
-
options: [
|
|
12
|
+
control: { type: "select" },
|
|
13
|
+
options: ["xs", "sm", "base"],
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
};
|
|
@@ -33,15 +33,15 @@ Demo.args = {
|
|
|
33
33
|
|
|
34
34
|
export const SizeXS = Template.bind({});
|
|
35
35
|
SizeXS.args = {
|
|
36
|
-
size:
|
|
36
|
+
size: "xs",
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
export const SizeSM = Template.bind({});
|
|
40
40
|
SizeSM.args = {
|
|
41
|
-
size:
|
|
41
|
+
size: "sm",
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
export const SizeMD = Template.bind({});
|
|
45
45
|
SizeMD.args = {
|
|
46
|
-
size:
|
|
46
|
+
size: "md",
|
|
47
47
|
};
|