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.
Files changed (204) hide show
  1. package/README.md +1 -1
  2. package/dist/sprintify-ui.es.js +7597 -7492
  3. package/dist/types/components/BaseActionItem.vue.d.ts +12 -2
  4. package/dist/types/components/BaseActionItemButton.vue.d.ts +3 -3
  5. package/dist/types/components/BaseAddressForm.vue.d.ts +19 -19
  6. package/dist/types/components/BaseAlert.vue.d.ts +19 -17
  7. package/dist/types/components/BaseApp.vue.d.ts +4 -2
  8. package/dist/types/components/BaseAppDialogs.vue.d.ts +2 -2
  9. package/dist/types/components/BaseAutocomplete.vue.d.ts +47 -44
  10. package/dist/types/components/BaseAutocompleteDrawer.vue.d.ts +22 -19
  11. package/dist/types/components/BaseAutocompleteFetch.vue.d.ts +44 -41
  12. package/dist/types/components/BaseAvatar.vue.d.ts +4 -4
  13. package/dist/types/components/BaseAvatarGroup.vue.d.ts +1 -1
  14. package/dist/types/components/BaseBadge.vue.d.ts +22 -19
  15. package/dist/types/components/BaseBelongsTo.vue.d.ts +38 -35
  16. package/dist/types/components/BaseBelongsToFetch.vue.d.ts +39 -36
  17. package/dist/types/components/BaseButton.vue.d.ts +54 -31
  18. package/dist/types/components/BaseButtonGroup.vue.d.ts +22 -19
  19. package/dist/types/components/BaseCalendar.vue.d.ts +24 -22
  20. package/dist/types/components/BaseCard.vue.d.ts +6 -4
  21. package/dist/types/components/BaseCardRow.vue.d.ts +9 -7
  22. package/dist/types/components/BaseCharacterCounter.vue.d.ts +1 -1
  23. package/dist/types/components/BaseClipboard.vue.d.ts +6 -4
  24. package/dist/types/components/BaseCollapse.vue.d.ts +34 -32
  25. package/dist/types/components/BaseColor.vue.d.ts +5 -4
  26. package/dist/types/components/BaseContainer.vue.d.ts +19 -13
  27. package/dist/types/components/BaseCounter.vue.d.ts +1 -1
  28. package/dist/types/components/BaseCropper.vue.d.ts +24 -22
  29. package/dist/types/components/BaseCropperModal.vue.d.ts +4 -4
  30. package/dist/types/components/BaseDataIterator.vue.d.ts +13 -24
  31. package/dist/types/components/BaseDataIteratorSectionBox.vue.d.ts +6 -4
  32. package/dist/types/components/BaseDataIteratorSectionColumns.vue.d.ts +3 -818
  33. package/dist/types/components/BaseDataIteratorSectionModal.vue.d.ts +6 -4
  34. package/dist/types/components/BaseDataTable.vue.d.ts +37 -40
  35. package/dist/types/components/BaseDataTableRowAction.vue.d.ts +2 -2
  36. package/dist/types/components/BaseDataTableTemplate.vue.d.ts +28 -25
  37. package/dist/types/components/BaseDatePicker.vue.d.ts +33 -33
  38. package/dist/types/components/BaseDateSelect.vue.d.ts +3 -2
  39. package/dist/types/components/BaseDescriptionList.vue.d.ts +4 -2
  40. package/dist/types/components/BaseDescriptionListItem.vue.d.ts +4 -2
  41. package/dist/types/components/BaseDialog.vue.d.ts +9 -7
  42. package/dist/types/components/BaseDisplayRelativeTime.vue.d.ts +9 -7
  43. package/dist/types/components/BaseDraggable.vue.d.ts +10 -8
  44. package/dist/types/components/BaseDropdown.vue.d.ts +10 -8
  45. package/dist/types/components/BaseDropdownAutocomplete.vue.d.ts +20 -18
  46. package/dist/types/components/BaseField.vue.d.ts +11 -8
  47. package/dist/types/components/BaseFieldI18n.vue.d.ts +6 -6
  48. package/dist/types/components/BaseFilePicker.vue.d.ts +24 -22
  49. package/dist/types/components/BaseFilePickerCrop.vue.d.ts +18 -16
  50. package/dist/types/components/BaseFileUploader.vue.d.ts +58 -56
  51. package/dist/types/components/BaseForm.vue.d.ts +21 -19
  52. package/dist/types/components/BaseGantt.vue.d.ts +20 -411
  53. package/dist/types/components/BaseHasMany.vue.d.ts +39 -37
  54. package/dist/types/components/BaseHeader.vue.d.ts +20 -20
  55. package/dist/types/components/BaseIconPicker.vue.d.ts +7 -7
  56. package/dist/types/components/BaseInput.vue.d.ts +32 -31
  57. package/dist/types/components/BaseInputError.vue.d.ts +9 -6
  58. package/dist/types/components/BaseInputLabel.vue.d.ts +3 -2
  59. package/dist/types/components/BaseInputPercent.vue.d.ts +8 -8
  60. package/dist/types/components/BaseJsonReader.vue.d.ts +7 -7
  61. package/dist/types/components/BaseJsonReaderItem.vue.d.ts +4 -4
  62. package/dist/types/components/BaseLayoutNotificationDropdown.vue.d.ts +1 -1
  63. package/dist/types/components/BaseLayoutSidebar.vue.d.ts +13 -10
  64. package/dist/types/components/BaseLayoutSidebarConfigurable.vue.d.ts +10 -8
  65. package/dist/types/components/BaseLayoutStacked.vue.d.ts +25 -23
  66. package/dist/types/components/BaseLayoutStackedConfigurable.vue.d.ts +9 -7
  67. package/dist/types/components/BaseLoadingCover.vue.d.ts +3 -3
  68. package/dist/types/components/BaseMediaGallery.vue.d.ts +1 -1
  69. package/dist/types/components/BaseMediaLibrary.vue.d.ts +39 -38
  70. package/dist/types/components/BaseMediaList.vue.d.ts +1 -1
  71. package/dist/types/components/BaseMediaListItem.vue.d.ts +1 -1
  72. package/dist/types/components/BaseMediaPictures.vue.d.ts +1 -1
  73. package/dist/types/components/BaseMenu.vue.d.ts +26 -18
  74. package/dist/types/components/BaseMenuItem.vue.d.ts +5 -5
  75. package/dist/types/components/BaseModalCenter.vue.d.ts +8 -6
  76. package/dist/types/components/BaseModalSide.vue.d.ts +8 -6
  77. package/dist/types/components/BaseNavbar.vue.d.ts +17 -15
  78. package/dist/types/components/BaseNavbarItem.vue.d.ts +1 -1
  79. package/dist/types/components/BaseNavbarItemContent.vue.d.ts +4 -4
  80. package/dist/types/components/BaseNavbarSideItem.vue.d.ts +1 -1
  81. package/dist/types/components/BaseNavbarSideItemContent.vue.d.ts +4 -4
  82. package/dist/types/components/BasePanel.vue.d.ts +1 -1
  83. package/dist/types/components/BasePassword.vue.d.ts +6 -5
  84. package/dist/types/components/BaseProgressCircle.vue.d.ts +2 -2
  85. package/dist/types/components/BaseRadioGroup.vue.d.ts +10 -8
  86. package/dist/types/components/BaseReadMore.vue.d.ts +6 -4
  87. package/dist/types/components/BaseRichText.vue.d.ts +6 -5
  88. package/dist/types/components/BaseScrollColumn.vue.d.ts +1 -1
  89. package/dist/types/components/BaseSelect.vue.d.ts +13 -10
  90. package/dist/types/components/BaseShortcut.vue.d.ts +4 -4
  91. package/dist/types/components/BaseSideNavigation.vue.d.ts +8 -6
  92. package/dist/types/components/BaseSideNavigationItem.vue.d.ts +12 -10
  93. package/dist/types/components/BaseStatistic.vue.d.ts +1 -1
  94. package/dist/types/components/BaseSwitch.vue.d.ts +14 -12
  95. package/dist/types/components/BaseSystemAlert.vue.d.ts +13 -11
  96. package/dist/types/components/BaseTabItem.vue.d.ts +12 -10
  97. package/dist/types/components/BaseTable.vue.d.ts +27 -24
  98. package/dist/types/components/BaseTableBody.vue.d.ts +4 -2
  99. package/dist/types/components/BaseTableCell.vue.d.ts +29 -27
  100. package/dist/types/components/BaseTableColumn.vue.d.ts +11 -11
  101. package/dist/types/components/BaseTableHead.vue.d.ts +6 -4
  102. package/dist/types/components/BaseTableHeader.vue.d.ts +11 -9
  103. package/dist/types/components/BaseTableRow.vue.d.ts +20 -18
  104. package/dist/types/components/BaseTabs.vue.d.ts +8 -6
  105. package/dist/types/components/BaseTagAutocomplete.vue.d.ts +47 -44
  106. package/dist/types/components/BaseTagAutocompleteFetch.vue.d.ts +40 -38
  107. package/dist/types/components/BaseTextarea.vue.d.ts +8 -7
  108. package/dist/types/components/BaseTextareaAutoresize.vue.d.ts +7 -6
  109. package/dist/types/components/BaseTimePicker.vue.d.ts +4 -3
  110. package/dist/types/components/BaseTooltip.vue.d.ts +15 -13
  111. package/dist/types/composables/breakpoints.d.ts +6 -6
  112. package/dist/types/composables/mediaQuery.d.ts +1 -1
  113. package/dist/types/composables/modal.d.ts +1 -1
  114. package/package.json +14 -20
  115. package/src/components/BaseAddressForm.stories.js +32 -33
  116. package/src/components/BaseAlert.stories.js +13 -13
  117. package/src/components/BaseAutocomplete.stories.js +26 -26
  118. package/src/components/BaseAutocomplete.vue +10 -3
  119. package/src/components/BaseAutocompleteFetch.stories.js +24 -28
  120. package/src/components/BaseAvatar.stories.js +11 -11
  121. package/src/components/BaseAvatarGroup.stories.js +9 -9
  122. package/src/components/BaseBadge.stories.js +18 -19
  123. package/src/components/BaseBelongsTo.stories.js +20 -20
  124. package/src/components/BaseBelongsToFetch.stories.js +21 -25
  125. package/src/components/BaseBoolean.stories.js +3 -3
  126. package/src/components/BaseBreadcrumbs.stories.js +14 -14
  127. package/src/components/BaseButton.stories.js +34 -34
  128. package/src/components/BaseButtonGroup.stories.js +18 -18
  129. package/src/components/BaseCalendar.stories.js +122 -46
  130. package/src/components/BaseCard.stories.js +3 -3
  131. package/src/components/BaseCharacterCounter.stories.js +5 -5
  132. package/src/components/BaseClipboard.stories.js +6 -6
  133. package/src/components/BaseCollapse.stories.js +81 -82
  134. package/src/components/BaseColor.stories.js +8 -8
  135. package/src/components/BaseContainer.stories.js +6 -6
  136. package/src/components/BaseCounter.stories.js +9 -9
  137. package/src/components/BaseCropper.stories.js +11 -11
  138. package/src/components/BaseCropperModal.stories.js +6 -6
  139. package/src/components/BaseDataIterator.stories.js +30 -33
  140. package/src/components/BaseDataTable.stories.js +61 -56
  141. package/src/components/BaseDatePicker.stories.js +29 -29
  142. package/src/components/BaseDateSelect.stories.js +9 -9
  143. package/src/components/BaseDescriptionList.stories.js +4 -4
  144. package/src/components/BaseDialog.stories.js +27 -27
  145. package/src/components/BaseDisplayRelativeTime.stories.js +4 -4
  146. package/src/components/BaseDropdown.stories.js +13 -13
  147. package/src/components/BaseDropdownAutocomplete.stories.js +25 -25
  148. package/src/components/BaseFieldI18n.stories.js +9 -9
  149. package/src/components/BaseFilePicker.stories.js +8 -8
  150. package/src/components/BaseFilePickerCrop.stories.js +15 -15
  151. package/src/components/BaseFileUploader.stories.js +12 -13
  152. package/src/components/BaseForm.stories.js +7 -7
  153. package/src/components/BaseGantt.stories.js +22 -16
  154. package/src/components/BaseHasMany.stories.js +18 -22
  155. package/src/components/BaseHeader.stories.js +43 -43
  156. package/src/components/BaseIconPicker.stories.js +4 -4
  157. package/src/components/BaseInput.stories.js +48 -48
  158. package/src/components/BaseInputLabel.stories.js +6 -6
  159. package/src/components/BaseInputPercent.stories.js +8 -8
  160. package/src/components/BaseJsonReader.stories.js +42 -49
  161. package/src/components/BaseJsonReader.vue +0 -1
  162. package/src/components/BaseLayoutSidebar.vue +1 -1
  163. package/src/components/BaseLayoutSidebarConfigurable.stories.js +72 -73
  164. package/src/components/BaseLayoutSidebarConfigurable.vue +1 -1
  165. package/src/components/BaseLayoutStackedConfigurable.stories.js +68 -69
  166. package/src/components/BaseLoadingCover.stories.js +9 -9
  167. package/src/components/BaseMediaItem.stories.js +10 -10
  168. package/src/components/BaseMediaLibrary.stories.js +58 -58
  169. package/src/components/BaseMediaPreview.stories.js +21 -21
  170. package/src/components/BaseMenu.stories.js +34 -34
  171. package/src/components/BaseModalCenter.stories.js +9 -9
  172. package/src/components/BaseModalSide.stories.js +6 -6
  173. package/src/components/BaseNavbar.stories.js +26 -26
  174. package/src/components/BasePagination.stories.js +2 -2
  175. package/src/components/BasePanel.stories.js +9 -9
  176. package/src/components/BasePassword.stories.js +11 -12
  177. package/src/components/BaseProgressCircle.stories.js +3 -3
  178. package/src/components/BaseRadioGroup.stories.js +15 -15
  179. package/src/components/BaseReadMore.stories.js +3 -3
  180. package/src/components/BaseRichText.stories.js +32 -32
  181. package/src/components/BaseSelect.stories.js +19 -19
  182. package/src/components/BaseShortcut.stories.js +28 -28
  183. package/src/components/BaseSideNavigation.stories.js +11 -11
  184. package/src/components/BaseSkeleton.stories.js +3 -3
  185. package/src/components/BaseStatistic.stories.js +16 -16
  186. package/src/components/BaseStepper.stories.js +29 -29
  187. package/src/components/BaseStepperItem.stories.js +11 -11
  188. package/src/components/BaseSwitch.stories.js +25 -25
  189. package/src/components/BaseSystemAlert.stories.js +7 -7
  190. package/src/components/BaseTable.stories.js +14 -16
  191. package/src/components/BaseTabs.stories.js +12 -13
  192. package/src/components/BaseTagAutocomplete.stories.js +19 -19
  193. package/src/components/BaseTagAutocompleteFetch.stories.js +11 -11
  194. package/src/components/BaseTextarea.stories.js +10 -10
  195. package/src/components/BaseTextareaAutoresize.stories.js +13 -13
  196. package/src/components/BaseTimePicker.stories.js +9 -9
  197. package/src/components/BaseTimeline.stories.js +22 -22
  198. package/src/components/BaseTimelineItem.stories.js +23 -22
  199. package/src/components/BaseToast.stories.js +6 -6
  200. package/src/components/BaseTooltip.stories.js +27 -27
  201. package/src/components/BaseUniqueCode.stories.js +7 -7
  202. package/src/stories/InputSizes.stories.js +13 -14
  203. package/src/stories/List.stories.js +92 -92
  204. package/src/stories/Show.stories.js +13 -14
@@ -1,14 +1,14 @@
1
- import BaseCalendar from './BaseCalendar.vue';
1
+ import BaseCalendar from "./BaseCalendar.vue";
2
2
 
3
3
  export default {
4
- title: 'Components/BaseCalendar',
4
+ title: "Components/BaseCalendar",
5
5
  component: BaseCalendar,
6
6
  args: {},
7
7
  argTypes: {
8
8
  locale: {
9
- control: { type: 'select' },
10
- options: ['en', 'fr']
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
- { id: 1, title: 'Reserved', start: getDateByDay(15) + ' 10:30:00', end: getDateByDay(20) + ' 13:25:00' },
29
- { id: 2, title: 'Accepted', start: getDateByDay(11), end: getDateByDay(17), backgroundColor: 'green', borderColor: 'green' },
30
- { id: 3, title: 'Blocked', start: getDateByDay(5), end: getDateByDay(5), backgroundColor: '#000', borderColor: '#000' },
31
- { id: 4, title: 'Removed', start: getDateByDay(25), end: getDateByDay(26), backgroundColor: 'orange', borderColor: 'red', textColor: 'blue' },
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('selected: start = ' + payload.start + ', end = ' + payload.end);
76
+ alert("selected: start = " + payload.start + ", end = " + payload.end);
51
77
  }
52
78
 
53
79
  function onClick(payload) {
54
- alert('clicked: title = ' + payload.event.title + ', start = ' + payload.event.start + ', end = ' + payload.event.end)
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('added')
91
+ alert("added");
59
92
  }
60
93
 
61
94
  function onChange(payload) {
62
- alert('changed: start = ' + payload.event.start + ', end = ' + payload.event.end)
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('resized: start = ' + payload.event.start + ', end = ' + payload.event.end)
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('dropped: start = ' + payload.event.start + ', end = ' + payload.event.end)
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('date clicked = ' + payload.date);
122
+ alert("date clicked = " + payload.date);
75
123
  }
76
124
 
77
- return { args, onSelect, onClick, onAdd, onChange, onResize, onDrop, onDateClick };
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('mouseenter: title = ' + payload.event.title + ', start = ' + payload.event.start + ', end = ' + payload.event.end)
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('mouseleave: title = ' + payload.event.title + ', start = ' + payload.event.start + ', end = ' + payload.event.end)
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: 'multiMonthYear dayGridMonth timeGridWeek timeGridDay listWeek',
158
- headerToolbarCenter: 'title',
159
- headerToolbarRight: 'prev,next today',
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: 'title',
165
- headerToolbarCenter: 'multiMonthYear dayGridMonth timeGridWeek timeGridDay listWeek',
166
- headerToolbarRight: 'prev,next today',
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: 'multiMonthYear dayGridMonth timeGridWeek timeGridDay listWeek',
172
- headerToolbarCenter: 'prev,next today',
173
- headerToolbarRight: 'title',
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: 'prev,next today',
179
- headerToolbarCenter: 'multiMonthYear dayGridMonth timeGridWeek timeGridDay listWeek',
180
- headerToolbarRight: 'title',
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: 'title',
186
- headerToolbarCenter: 'prev,next today',
187
- headerToolbarRight: 'multiMonthYear dayGridMonth timeGridWeek timeGridDay listWeek',
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: 'prev,next today',
193
- headerToolbarCenter: 'title',
194
- headerToolbarRight: 'multiMonthYear dayGridMonth timeGridWeek timeGridDay listWeek',
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: 'dayGridMonth timeGridWeek',
200
- headerToolbarCenter: 'title',
201
- headerToolbarLeft: 'prev,next'
275
+ headerToolbarRight: "dayGridMonth timeGridWeek",
276
+ headerToolbarCenter: "title",
277
+ headerToolbarLeft: "prev,next",
202
278
  };
@@ -1,8 +1,8 @@
1
- import BaseCard from './BaseCard.vue';
2
- import BaseCardRow from './BaseCardRow.vue';
1
+ import BaseCard from "./BaseCard.vue";
2
+ import BaseCardRow from "./BaseCardRow.vue";
3
3
 
4
4
  export default {
5
- title: 'Layout/BaseCard',
5
+ title: "Layout/BaseCard",
6
6
  component: BaseCard,
7
7
  argTypes: {},
8
8
  };
@@ -1,11 +1,11 @@
1
- import BaseCharacterCounter from './BaseCharacterCounter.vue';
2
- import BaseInput from '@/components/BaseInput.vue';
1
+ import BaseCharacterCounter from "./BaseCharacterCounter.vue";
2
+ import BaseInput from "@/components/BaseInput.vue";
3
3
 
4
4
  export default {
5
- title: 'Data/BaseCharacterCounter',
5
+ title: "Data/BaseCharacterCounter",
6
6
  component: BaseCharacterCounter,
7
7
  args: {
8
- text: 'Test',
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('bla bla');
20
+ const text = ref("bla bla");
21
21
  return { args, text };
22
22
  },
23
23
  template: `
@@ -1,8 +1,8 @@
1
- import BaseClipboard from './BaseClipboard.vue';
2
- import BaseModalCenter from './BaseModalCenter.vue';
1
+ import BaseClipboard from "./BaseClipboard.vue";
2
+ import BaseModalCenter from "./BaseModalCenter.vue";
3
3
 
4
4
  export default {
5
- title: 'Components/BaseClipboard',
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: '168.192.0.1',
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: 'testtest',
55
- };
54
+ value: "testtest",
55
+ };
@@ -1,48 +1,48 @@
1
- import { method } from 'lodash';
2
- import BaseCollapse from './BaseCollapse.vue';
1
+ import { method } from "lodash";
2
+ import BaseCollapse from "./BaseCollapse.vue";
3
3
 
4
4
  export default {
5
- title: 'Components/BaseCollapse',
6
- component: BaseCollapse,
7
- args: {},
8
- argTypes: {
9
- defaultOpen: {
10
- control: { type: 'boolean' },
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
- components: { BaseCollapse },
42
- setup() {
43
- return { args };
44
- },
45
- template: `
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
- defaultOpen: false,
84
+ defaultOpen: false,
85
85
  };
86
86
 
87
-
88
87
  const CustomHeaderTemplate = (args) => ({
89
- components: { BaseCollapse },
90
- setup() {
91
- return { args };
92
- },
93
- method: {
94
- toggle() {
95
- this.defaultOpen = !this.defaultOpen;
96
- },
88
+ components: { BaseCollapse },
89
+ setup() {
90
+ return { args };
91
+ },
92
+ method: {
93
+ toggle() {
94
+ this.defaultOpen = !this.defaultOpen;
97
95
  },
98
- template: `
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
- argTypes: {
135
- defaultOpen: {
136
- control: { type: 'boolean' },
137
- },
138
- icon: {
139
- control: { type: 'text' },
140
- },
141
- isOpenIconClass: {
142
- control: { type: 'text' },
143
- },
144
- isCloseIconClass: {
145
- control: { type: 'text' },
146
- },
147
- twIcon: {
148
- control: { type: 'text' },
149
- },
150
- twHeader: {
151
- control: { type: 'text' },
152
- },
153
- twContent: {
154
- control: { type: 'text' },
155
- },
156
- twTitle: {
157
- control: { type: 'text' },
158
- },
159
- iconPosition: {
160
- control: { type: 'select' },
161
- options: ['left', 'right'],
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
- defaultOpen: false,
169
- };
167
+ defaultOpen: false,
168
+ };
@@ -1,14 +1,14 @@
1
- import { createFieldStory, sizes } from '../../.storybook/utils';
2
- import BaseColor from './BaseColor.vue';
3
- import ShowValue from '../../.storybook/components/ShowValue.vue';
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: 'Form/BaseColor',
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: 'select' },
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: '#16a34a',
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: 'BaseColor',
65
- label: 'Choose your favorite color',
64
+ componentName: "BaseColor",
65
+ label: "Choose your favorite color",
66
66
  });
@@ -1,13 +1,13 @@
1
- import BaseContainer from './BaseContainer.vue';
1
+ import BaseContainer from "./BaseContainer.vue";
2
2
 
3
3
  export default {
4
- title: 'Layout/BaseContainer',
5
- description: 'Lorem',
4
+ title: "Layout/BaseContainer",
5
+ description: "Lorem",
6
6
  component: BaseContainer,
7
7
  argTypes: {
8
8
  size: {
9
- control: { type: 'select' },
10
- options: ['lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl', '7xl', 'full'],
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: '7xl',
33
+ size: "7xl",
34
34
  };
@@ -1,16 +1,16 @@
1
- import BaseCounter from './BaseCounter.vue';
1
+ import BaseCounter from "./BaseCounter.vue";
2
2
 
3
3
  export default {
4
- title: 'Data/BaseCounter',
4
+ title: "Data/BaseCounter",
5
5
  component: BaseCounter,
6
6
  argTypes: {
7
7
  color: {
8
- control: { type: 'select' },
9
- options: ['primary', 'secondary', 'danger', 'dark', 'light', 'white'],
8
+ control: { type: "select" },
9
+ options: ["primary", "secondary", "danger", "dark", "light", "white"],
10
10
  },
11
11
  size: {
12
- control: { type: 'select' },
13
- options: ['xs', 'sm', 'base'],
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: 'xs',
36
+ size: "xs",
37
37
  };
38
38
 
39
39
  export const SizeSM = Template.bind({});
40
40
  SizeSM.args = {
41
- size: 'sm',
41
+ size: "sm",
42
42
  };
43
43
 
44
44
  export const SizeMD = Template.bind({});
45
45
  SizeMD.args = {
46
- size: 'md',
46
+ size: "md",
47
47
  };