sprintify-ui 0.1.18 → 0.2.1

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 (223) hide show
  1. package/README.md +1 -2
  2. package/dist/sprintify-ui.es.js +15426 -13066
  3. package/dist/style.css +1 -1
  4. package/dist/types/src/components/BaseActionItem.vue.d.ts +3 -3
  5. package/dist/types/src/components/BaseActionItemButton.vue.d.ts +9 -6
  6. package/dist/types/src/components/BaseAddressForm.vue.d.ts +17 -27
  7. package/dist/types/src/components/BaseAlert.vue.d.ts +1 -1
  8. package/dist/types/src/components/BaseApp.vue.d.ts +2 -2
  9. package/dist/types/src/components/BaseAppDialogs.vue.d.ts +1 -1
  10. package/dist/types/src/components/BaseAppNotifications.vue.d.ts +1 -1
  11. package/dist/types/src/components/BaseAutocomplete.vue.d.ts +33 -28
  12. package/dist/types/src/components/BaseAutocompleteDrawer.vue.d.ts +12 -11
  13. package/dist/types/src/components/BaseAutocompleteFetch.vue.d.ts +12 -15
  14. package/dist/types/src/components/BaseAvatar.vue.d.ts +1 -1
  15. package/dist/types/src/components/BaseAvatarGroup.vue.d.ts +1 -1
  16. package/dist/types/src/components/BaseBadge.vue.d.ts +9 -6
  17. package/dist/types/src/components/BaseBelongsTo.vue.d.ts +12 -15
  18. package/dist/types/src/components/BaseBoolean.vue.d.ts +3 -3
  19. package/dist/types/src/components/BaseBreadcrumbs.vue.d.ts +1 -1
  20. package/dist/types/src/components/BaseButton.vue.d.ts +1 -1
  21. package/dist/types/src/components/BaseButtonGroup.vue.d.ts +13 -13
  22. package/dist/types/src/components/BaseCard.vue.d.ts +2 -2
  23. package/dist/types/src/components/BaseCardRow.vue.d.ts +1 -1
  24. package/dist/types/src/components/BaseCharacterCounter.vue.d.ts +1 -1
  25. package/dist/types/src/components/BaseClickOutside.vue.d.ts +2 -2
  26. package/dist/types/src/components/BaseClipboard.vue.d.ts +2 -2
  27. package/dist/types/src/components/BaseColor.vue.d.ts +2 -2
  28. package/dist/types/src/components/BaseContainer.vue.d.ts +1 -1
  29. package/dist/types/src/components/BaseCounter.vue.d.ts +1 -1
  30. package/dist/types/src/components/BaseCropper.vue.d.ts +21 -19
  31. package/dist/types/src/components/BaseCropperModal.vue.d.ts +3 -3
  32. package/dist/types/src/components/BaseDataIterator.vue.d.ts +9 -9
  33. package/dist/types/src/components/BaseDataIteratorSectionBox.vue.d.ts +2 -2
  34. package/dist/types/src/components/BaseDataIteratorSectionButton.vue.d.ts +1 -1
  35. package/dist/types/src/components/BaseDataIteratorSectionColumns.vue.d.ts +141 -169
  36. package/dist/types/src/components/BaseDataIteratorSectionModal.vue.d.ts +2 -2
  37. package/dist/types/src/components/BaseDataTable.vue.d.ts +15 -13
  38. package/dist/types/src/components/BaseDataTableRowAction.vue.d.ts +1 -1
  39. package/dist/types/src/components/BaseDatePicker.vue.d.ts +9 -6
  40. package/dist/types/src/components/BaseDateSelect.vue.d.ts +2 -2
  41. package/dist/types/src/components/BaseDescriptionList.vue.d.ts +2 -2
  42. package/dist/types/src/components/BaseDescriptionListItem.vue.d.ts +3 -3
  43. package/dist/types/src/components/BaseDialog.vue.d.ts +2 -2
  44. package/dist/types/src/components/BaseDisplayRelativeTime.vue.d.ts +3 -3
  45. package/dist/types/src/components/BaseDraggable.vue.d.ts +3 -3
  46. package/dist/types/src/components/BaseDropdown.vue.d.ts +13 -10
  47. package/dist/types/src/components/BaseDropdownAutocomplete.vue.d.ts +7 -7
  48. package/dist/types/src/components/BaseField.vue.d.ts +3 -3
  49. package/dist/types/src/components/BaseFieldI18n.vue.d.ts +9 -12
  50. package/dist/types/src/components/BaseFilePicker.vue.d.ts +13 -10
  51. package/dist/types/src/components/BaseFilePickerCrop.vue.d.ts +13 -10
  52. package/dist/types/src/components/BaseFileUploader.vue.d.ts +40 -13
  53. package/dist/types/src/components/BaseForm.vue.d.ts +24 -21
  54. package/dist/types/src/components/BaseHasMany.vue.d.ts +13 -16
  55. package/dist/types/src/components/BaseHeader.vue.d.ts +7 -4
  56. package/dist/types/src/components/BaseIconPicker.vue.d.ts +6 -3
  57. package/dist/types/src/components/BaseInput.vue.d.ts +5 -5
  58. package/dist/types/src/components/BaseInputError.vue.d.ts +2 -2
  59. package/dist/types/src/components/BaseInputLabel.vue.d.ts +1 -1
  60. package/dist/types/src/components/BaseInputPercent.vue.d.ts +4 -4
  61. package/dist/types/src/components/BaseLayoutNotificationDropdown.vue.d.ts +1 -1
  62. package/dist/types/src/components/BaseLayoutNotificationItem.vue.d.ts +1 -1
  63. package/dist/types/src/components/BaseLayoutNotificationItemContent.vue.d.ts +1 -1
  64. package/dist/types/src/components/BaseLayoutSidebar.vue.d.ts +4 -4
  65. package/dist/types/src/components/BaseLayoutSidebarConfigurable.vue.d.ts +3 -3
  66. package/dist/types/src/components/BaseLayoutStacked.vue.d.ts +4 -4
  67. package/dist/types/src/components/BaseLayoutStackedConfigurable.vue.d.ts +2 -2
  68. package/dist/types/src/components/BaseLoadingCover.vue.d.ts +8 -8
  69. package/dist/types/src/components/BaseMediaGallery.vue.d.ts +2 -2
  70. package/dist/types/src/components/BaseMediaGalleryItem.vue.d.ts +2 -2
  71. package/dist/types/src/components/BaseMediaItem.vue.d.ts +1 -1
  72. package/dist/types/src/components/BaseMediaLibrary.vue.d.ts +26 -8
  73. package/dist/types/src/components/BaseMediaList.vue.d.ts +2 -2
  74. package/dist/types/src/components/BaseMediaListItem.vue.d.ts +2 -2
  75. package/dist/types/src/components/BaseMediaPictures.vue.d.ts +2 -2
  76. package/dist/types/src/components/BaseMediaPicturesItem.vue.d.ts +2 -2
  77. package/dist/types/src/components/BaseMediaPreview.vue.d.ts +1 -1
  78. package/dist/types/src/components/BaseMenu.vue.d.ts +19 -19
  79. package/dist/types/src/components/BaseMenuItem.vue.d.ts +2 -2
  80. package/dist/types/src/components/BaseModalCenter.vue.d.ts +13 -12
  81. package/dist/types/src/components/BaseModalSide.vue.d.ts +13 -12
  82. package/dist/types/src/components/BaseNavbar.vue.d.ts +10 -7
  83. package/dist/types/src/components/BaseNavbarItem.vue.d.ts +1 -1
  84. package/dist/types/src/components/BaseNavbarItemContent.vue.d.ts +1 -1
  85. package/dist/types/src/components/BaseNavbarSideItem.vue.d.ts +1 -1
  86. package/dist/types/src/components/BaseNavbarSideItemContent.vue.d.ts +1 -1
  87. package/dist/types/src/components/BaseNumber.vue.d.ts +4 -4
  88. package/dist/types/src/components/BasePagination.vue.d.ts +1 -1
  89. package/dist/types/src/components/BasePanel.vue.d.ts +1 -1
  90. package/dist/types/src/components/BasePassword.vue.d.ts +3 -3
  91. package/dist/types/src/components/BaseProgressCircle.vue.d.ts +1 -1
  92. package/dist/types/src/components/BaseRadioGroup.vue.d.ts +7 -7
  93. package/dist/types/src/components/BaseReadMore.vue.d.ts +2 -2
  94. package/dist/types/src/components/BaseRichText.vue.d.ts +6 -6
  95. package/dist/types/src/components/BaseSelect.vue.d.ts +8 -7
  96. package/dist/types/src/components/BaseShortcut.vue.d.ts +1 -1
  97. package/dist/types/src/components/BaseSideNavigation.vue.d.ts +8 -5
  98. package/dist/types/src/components/BaseSideNavigationItem.vue.d.ts +9 -6
  99. package/dist/types/src/components/BaseSkeleton.vue.d.ts +8 -7
  100. package/dist/types/src/components/BaseStatistic.vue.d.ts +1 -1
  101. package/dist/types/src/components/BaseStepper.vue.d.ts +1 -1
  102. package/dist/types/src/components/BaseStepperItem.vue.d.ts +1 -1
  103. package/dist/types/src/components/BaseSwitch.vue.d.ts +3 -3
  104. package/dist/types/src/components/BaseSystemAlert.vue.d.ts +5 -5
  105. package/dist/types/src/components/BaseTabItem.vue.d.ts +9 -6
  106. package/dist/types/src/components/BaseTable.vue.d.ts +6 -6
  107. package/dist/types/src/components/BaseTableColumn.vue.d.ts +2 -2
  108. package/dist/types/src/components/BaseTabs.vue.d.ts +8 -5
  109. package/dist/types/src/components/BaseTagAutocomplete.vue.d.ts +39 -34
  110. package/dist/types/src/components/BaseTagAutocompleteFetch.vue.d.ts +12 -15
  111. package/dist/types/src/components/BaseTextarea.vue.d.ts +3 -3
  112. package/dist/types/src/components/BaseTextareaAutoresize.vue.d.ts +13 -3
  113. package/dist/types/src/components/BaseTimeline.vue.d.ts +1 -1
  114. package/dist/types/src/components/BaseTimelineItem.vue.d.ts +1 -1
  115. package/dist/types/src/components/SlotComponent.d.ts +1 -1
  116. package/dist/types/src/svg/BaseEmptyState.vue.d.ts +1 -1
  117. package/dist/types/src/svg/BaseSpinnerLarge.vue.d.ts +1 -1
  118. package/dist/types/src/svg/BaseSpinnerSmall.vue.d.ts +1 -1
  119. package/package.json +5 -8
  120. package/src/assets/main.css +3 -3
  121. package/src/components/BaseActionItem.vue +9 -4
  122. package/src/components/BaseActionItemButton.vue +1 -1
  123. package/src/components/BaseAddressForm.vue +6 -5
  124. package/src/components/BaseAlert.vue +8 -2
  125. package/src/components/BaseAppNotifications.vue +4 -1
  126. package/src/components/BaseAutocomplete.vue +21 -12
  127. package/src/components/BaseAutocompleteDrawer.vue +29 -11
  128. package/src/components/BaseAutocompleteFetch.vue +14 -3
  129. package/src/components/BaseAvatar.vue +1 -1
  130. package/src/components/BaseBadge.vue +1 -2
  131. package/src/components/BaseBelongsTo.vue +12 -3
  132. package/src/components/BaseBreadcrumbs.vue +8 -2
  133. package/src/components/BaseButton.vue +9 -2
  134. package/src/components/BaseButtonGroup.stories.js +5 -4
  135. package/src/components/BaseButtonGroup.vue +9 -6
  136. package/src/components/BaseCharacterCounter.vue +4 -1
  137. package/src/components/BaseClickOutside.vue +1 -1
  138. package/src/components/BaseClipboard.vue +5 -2
  139. package/src/components/BaseColor.vue +7 -4
  140. package/src/components/BaseCropper.vue +17 -5
  141. package/src/components/BaseCropperModal.vue +4 -1
  142. package/src/components/BaseDataIterator.vue +30 -12
  143. package/src/components/BaseDataIteratorSectionBox.vue +5 -2
  144. package/src/components/BaseDataIteratorSectionButton.vue +6 -4
  145. package/src/components/BaseDataIteratorSectionColumns.vue +5 -2
  146. package/src/components/BaseDataTable.stories.js +1 -1
  147. package/src/components/BaseDataTable.vue +44 -21
  148. package/src/components/BaseDataTableRowAction.vue +8 -2
  149. package/src/components/BaseDatePicker.vue +5 -2
  150. package/src/components/BaseDateSelect.vue +33 -6
  151. package/src/components/BaseDisplayRelativeTime.vue +4 -1
  152. package/src/components/BaseDraggable.vue +1 -1
  153. package/src/components/BaseDropdown.vue +16 -5
  154. package/src/components/BaseDropdownAutocomplete.vue +13 -7
  155. package/src/components/BaseField.vue +5 -2
  156. package/src/components/BaseFieldI18n.vue +10 -2
  157. package/src/components/BaseFilePicker.vue +9 -5
  158. package/src/components/BaseFilePickerCrop.stories.js +3 -3
  159. package/src/components/BaseFilePickerCrop.vue +7 -4
  160. package/src/components/BaseFileUploader.stories.js +3 -3
  161. package/src/components/BaseFileUploader.vue +4 -4
  162. package/src/components/BaseForm.vue +14 -6
  163. package/src/components/BaseHasMany.vue +16 -4
  164. package/src/components/BaseHeader.vue +4 -1
  165. package/src/components/BaseIconPicker.vue +14 -4
  166. package/src/components/BaseInput.vue +10 -7
  167. package/src/components/BaseInputError.vue +1 -1
  168. package/src/components/BaseInputLabel.vue +4 -1
  169. package/src/components/BaseInputPercent.vue +1 -1
  170. package/src/components/BaseLayoutNotificationDropdown.vue +12 -6
  171. package/src/components/BaseLayoutNotificationItem.vue +15 -5
  172. package/src/components/BaseLayoutNotificationItemContent.vue +5 -2
  173. package/src/components/BaseLayoutSidebar.vue +22 -5
  174. package/src/components/BaseLayoutSidebarConfigurable.vue +19 -5
  175. package/src/components/BaseLayoutStackedConfigurable.vue +24 -7
  176. package/src/components/BaseLoadingCover.stories.js +2 -2
  177. package/src/components/BaseLoadingCover.vue +14 -7
  178. package/src/components/BaseMediaGallery.vue +4 -1
  179. package/src/components/BaseMediaGalleryItem.vue +13 -4
  180. package/src/components/BaseMediaItem.vue +12 -3
  181. package/src/components/BaseMediaLibrary.vue +11 -6
  182. package/src/components/BaseMediaList.vue +1 -1
  183. package/src/components/BaseMediaListItem.vue +15 -6
  184. package/src/components/BaseMediaPictures.vue +1 -1
  185. package/src/components/BaseMediaPicturesItem.vue +9 -3
  186. package/src/components/BaseMediaPreview.vue +2 -2
  187. package/src/components/BaseMenu.vue +56 -20
  188. package/src/components/BaseMenuItem.vue +14 -3
  189. package/src/components/BaseModalCenter.vue +17 -8
  190. package/src/components/BaseModalSide.vue +12 -6
  191. package/src/components/BaseNavbar.stories.js +1 -1
  192. package/src/components/BaseNavbarItemContent.vue +14 -3
  193. package/src/components/BaseNavbarSideItem.vue +4 -1
  194. package/src/components/BaseNavbarSideItemContent.vue +9 -2
  195. package/src/components/BaseNumber.vue +7 -4
  196. package/src/components/BasePagination.vue +2 -2
  197. package/src/components/BasePanel.vue +4 -1
  198. package/src/components/BasePassword.vue +6 -2
  199. package/src/components/BaseProgressCircle.vue +4 -1
  200. package/src/components/BaseRadioGroup.vue +7 -4
  201. package/src/components/BaseRichText.vue +1 -2
  202. package/src/components/BaseSelect.vue +6 -2
  203. package/src/components/BaseShortcut.vue +11 -4
  204. package/src/components/BaseSideNavigation.vue +4 -1
  205. package/src/components/BaseSideNavigationItem.vue +5 -2
  206. package/src/components/BaseSkeleton.vue +23 -7
  207. package/src/components/BaseStatistic.vue +15 -4
  208. package/src/components/BaseStepper.vue +4 -1
  209. package/src/components/BaseSwitch.stories.js +0 -1
  210. package/src/components/BaseSwitch.vue +8 -2
  211. package/src/components/BaseSystemAlert.vue +4 -1
  212. package/src/components/BaseTabItem.vue +5 -2
  213. package/src/components/BaseTable.vue +19 -9
  214. package/src/components/BaseTagAutocomplete.stories.js +1 -1
  215. package/src/components/BaseTagAutocomplete.vue +19 -9
  216. package/src/components/BaseTagAutocompleteFetch.vue +18 -4
  217. package/src/components/BaseTextarea.vue +2 -2
  218. package/src/components/BaseTextareaAutoresize.stories.js +30 -1
  219. package/src/components/BaseTextareaAutoresize.vue +20 -10
  220. package/src/components/BaseTimeline.vue +8 -2
  221. package/src/svg/BaseEmptyState.vue +5 -1
  222. package/src/svg/BaseSpinnerLarge.vue +15 -3
  223. package/src/svg/BaseSpinnerSmall.vue +8 -2
@@ -9,9 +9,9 @@
9
9
  :options="colorOptions"
10
10
  :multiple="multiple"
11
11
  :button-type="buttonType"
12
- :button-class="''"
13
- :button-selected-class="''"
14
- :button-unselected-class="''"
12
+ tw-button=""
13
+ tw-button-selected=""
14
+ tw-button-unselected=""
15
15
  @update:model-value="(value) => transformModelValue(value)"
16
16
  >
17
17
  <template #option="option">
@@ -30,7 +30,10 @@
30
30
  : 'border-transparent',
31
31
  ]"
32
32
  >
33
- <BaseIcon icon="heroicons-solid:check-circle" class="h-5 w-5" />
33
+ <BaseIcon
34
+ icon="heroicons-solid:check-circle"
35
+ class="h-5 w-5"
36
+ />
34
37
  </div>
35
38
  </template>
36
39
  </BaseButtonGroup>
@@ -12,7 +12,10 @@
12
12
  v-bind="shared"
13
13
  />
14
14
 
15
- <div ref="container" class="base-cropper-wrapper relative">
15
+ <div
16
+ ref="container"
17
+ class="base-cropper-wrapper relative"
18
+ >
16
19
  <div
17
20
  :style="{
18
21
  width: cropperConfiguration?.boundary?.width + 'px',
@@ -47,7 +50,10 @@
47
50
  class="border-r border-slate-300 bg-white px-3 py-1.5 hover:bg-slate-100"
48
51
  @click="rotateLeft"
49
52
  >
50
- <BaseIcon icon="mdi:rotate-left" class="h-4 w-4" />
53
+ <BaseIcon
54
+ icon="mdi:rotate-left"
55
+ class="h-4 w-4"
56
+ />
51
57
  </button>
52
58
  <button
53
59
  type="button"
@@ -55,7 +61,10 @@
55
61
  class="bg-white px-3 py-1.5 hover:bg-slate-100"
56
62
  @click="rotateRight"
57
63
  >
58
- <BaseIcon icon="mdi:rotate-right" class="h-4 w-4" />
64
+ <BaseIcon
65
+ icon="mdi:rotate-right"
66
+ class="h-4 w-4"
67
+ />
59
68
  </button>
60
69
  </div>
61
70
  </div>
@@ -67,7 +76,10 @@
67
76
  <div
68
77
  class="flex items-center rounded-lg bg-black bg-opacity-75 px-3 py-1.5 text-center text-white"
69
78
  >
70
- <BaseIcon icon="ri:drag-move-2-fill" class="mr-1 h-5 w-5" />
79
+ <BaseIcon
80
+ icon="ri:drag-move-2-fill"
81
+ class="mr-1 h-5 w-5"
82
+ />
71
83
  <span>
72
84
  {{ t('drag_to_reposition') }}
73
85
  </span>
@@ -78,7 +90,7 @@
78
90
  :delay="40"
79
91
  class="z-[1]"
80
92
  :model-value="initializing"
81
- ></BaseLoadingCover>
93
+ />
82
94
  </div>
83
95
 
84
96
  <slot
@@ -5,7 +5,10 @@
5
5
  :max-width="cropperSize + 'px'"
6
6
  @update:model-value="$emit('update:modelValue', $event)"
7
7
  >
8
- <div v-if="ready" class="flex items-center justify-center">
8
+ <div
9
+ v-if="ready"
10
+ class="flex items-center justify-center"
11
+ >
9
12
  <BaseCropper
10
13
  v-if="cropperInternal.source"
11
14
  ref="baseCropperRef"
@@ -13,7 +13,10 @@
13
13
  <!-- Header -->
14
14
  <div class="mb-4 flex space-x-2 empty:mb-0">
15
15
  <!-- Search bar -->
16
- <div v-if="searchable" class="grow">
16
+ <div
17
+ v-if="searchable"
18
+ class="grow"
19
+ >
17
20
  <div class="relative h-11">
18
21
  <div
19
22
  class="pointer-events-none absolute left-0 top-0 flex h-full items-center justify-center pl-2.5"
@@ -30,7 +33,7 @@
30
33
  class="h-11 w-full overflow-hidden rounded-md border border-slate-300 bg-white pl-10 pr-9 shadow-sm"
31
34
  :placeholder="t('sui.autocomplete_placeholder')"
32
35
  @input="onSearch"
33
- />
36
+ >
34
37
  <div
35
38
  v-if="searchQuery"
36
39
  class="absolute right-0 top-0 flex h-full items-center justify-center p-1"
@@ -60,15 +63,14 @@
60
63
  <BaseDataIteratorSectionButton
61
64
  :section="section"
62
65
  @open="openSection(i)"
63
- >
64
- </BaseDataIteratorSectionButton>
66
+ />
65
67
  </template>
66
68
  </template>
67
69
 
68
70
  <!-- Menu -->
69
71
  <BaseMenu
70
72
  v-if="actions && actions.length"
71
- menu-class="w-52"
73
+ tw-menu="w-52"
72
74
  :items="actions"
73
75
  >
74
76
  <template #button="{ open }">
@@ -98,7 +100,10 @@
98
100
 
99
101
  <!-- Pagination -->
100
102
 
101
- <div v-if="paginationMetadata" class="mt-4">
103
+ <div
104
+ v-if="paginationMetadata"
105
+ class="mt-4"
106
+ >
102
107
  <p
103
108
  class="text-center text-sm text-slate-500 sm:text-right [&>b]:font-medium [&>b]:text-slate-600"
104
109
  >
@@ -112,7 +117,10 @@
112
117
  </p>
113
118
  </div>
114
119
 
115
- <div v-if="paginationMetadata" class="mt-4">
120
+ <div
121
+ v-if="paginationMetadata"
122
+ class="mt-4"
123
+ >
116
124
  <BasePagination
117
125
  :model-value="page"
118
126
  :last-page="lastPage"
@@ -121,13 +129,20 @@
121
129
  </div>
122
130
  </div>
123
131
 
124
- <div v-if="!compactLayout" ref="sidebar" class="space-y-3">
132
+ <div
133
+ v-if="!compactLayout"
134
+ ref="sidebar"
135
+ class="space-y-3"
136
+ >
125
137
  <slot
126
138
  name="sidebarTop"
127
139
  :pagination-metadata="paginationMetadata"
128
- ></slot>
140
+ />
129
141
 
130
- <template v-for="section in sectionsInternal" :key="section.name">
142
+ <template
143
+ v-for="section in sectionsInternal"
144
+ :key="section.name"
145
+ >
131
146
  <BaseDataIteratorSectionBox :section="section">
132
147
  <slot
133
148
  :name="section.name"
@@ -141,11 +156,14 @@
141
156
  <slot
142
157
  name="sidebarBottom"
143
158
  :pagination-metadata="paginationMetadata"
144
- ></slot>
159
+ />
145
160
  </div>
146
161
  </div>
147
162
 
148
- <template v-for="(section, i) in sectionsInternal" :key="section.name">
163
+ <template
164
+ v-for="(section, i) in sectionsInternal"
165
+ :key="section.name"
166
+ >
149
167
  <BaseDataIteratorSectionModal
150
168
  :section="section"
151
169
  :model-value="sectionModalActive == i"
@@ -13,9 +13,12 @@
13
13
  class="h-5 w-5 text-slate-500 duration-300"
14
14
  :class="active ? 'rotate-90 transform' : ''"
15
15
  icon="heroicons:chevron-right-20-solid"
16
- ></BaseIcon>
16
+ />
17
17
  </button>
18
- <div v-show="active" class="border-t border-slate-300 py-5 px-4">
18
+ <div
19
+ v-show="active"
20
+ class="border-t border-slate-300 py-5 px-4"
21
+ >
19
22
  <slot />
20
23
  </div>
21
24
  </BaseCard>
@@ -5,17 +5,19 @@
5
5
  type="button"
6
6
  @click="open()"
7
7
  >
8
- <BaseIcon class="h-5 w-5 text-slate-500" :icon="section.icon" />
8
+ <BaseIcon
9
+ class="h-5 w-5 text-slate-500"
10
+ :icon="section.icon"
11
+ />
9
12
  <span
10
13
  v-if="section.title && width > 600"
11
14
  class="ml-2 whitespace-pre text-sm"
12
- >{{ section.title }}</span
13
- >
15
+ >{{ section.title }}</span>
14
16
  <BaseBadge
15
17
  v-if="section.count"
16
18
  class="ml-2"
17
19
  :label="section.count"
18
- ></BaseBadge>
20
+ />
19
21
  </button>
20
22
  </template>
21
23
 
@@ -1,6 +1,9 @@
1
1
  <template>
2
2
  <ul>
3
- <li v-for="col in toggleableColumns" :key="col.newKey">
3
+ <li
4
+ v-for="col in toggleableColumns"
5
+ :key="col.newKey"
6
+ >
4
7
  <label class="cursor-pointer">
5
8
  <input
6
9
  :checked="visibleColumns.includes(col.newKey)"
@@ -8,7 +11,7 @@
8
11
  class="mr-2 h-3.5 w-3.5 cursor-pointer rounded focus:ring-1 focus:ring-primary-300 focus:ring-offset-1"
9
12
  :value="col.newKey"
10
13
  @change="onVisibleColumnChange($event, col.newKey)"
11
- />
14
+ >
12
15
  <span class="text-xs text-slate-700">
13
16
  {{ col.label }}
14
17
  </span>
@@ -52,7 +52,7 @@ const template = `
52
52
  <div class="font-medium text-slate-900 leading-tight truncate">
53
53
  {{ row.title }}
54
54
  </div>
55
- <p v-if="false" class="text-xs leading-tight mt-1 text-slate-500 line-clamp-2">
55
+ <p class="text-xs leading-tight mt-1 text-slate-500 line-clamp-2">
56
56
  {{ row.subtitle }}
57
57
  </p>
58
58
  </div>
@@ -24,19 +24,20 @@
24
24
  firstLoad,
25
25
  }"
26
26
  >
27
- <BaseCard clipped class="w-full overflow-hidden">
27
+ <BaseCard
28
+ clipped
29
+ class="w-full overflow-hidden"
30
+ >
28
31
  <div v-if="newCheckedRows.length">
29
32
  <div
30
33
  class="flex items-center justify-between border-b border-slate-200 bg-slate-50 py-2 pl-3 pr-2 text-sm"
31
34
  >
32
35
  <div>
33
- <span class="mr-3 text-slate-500"
34
- >{{
35
- t('sui.x_rows_selected', {
36
- count: newCheckedRows.length,
37
- })
38
- }}.</span
39
- >
36
+ <span class="mr-3 text-slate-500">{{
37
+ t('sui.x_rows_selected', {
38
+ count: newCheckedRows.length,
39
+ })
40
+ }}.</span>
40
41
  <button
41
42
  type="button"
42
43
  class="mr-3 inline text-slate-700 underline"
@@ -47,7 +48,7 @@
47
48
  </div>
48
49
  <BaseMenu
49
50
  v-if="checkableActions?.length"
50
- menu-class="w-52"
51
+ tw-menu="w-52"
51
52
  :items="checkableActions"
52
53
  >
53
54
  <template #button="{ open }">
@@ -102,7 +103,7 @@
102
103
  <BaseDataTableRowAction
103
104
  :row="row"
104
105
  :row-action="rowAction"
105
- ></BaseDataTableRowAction>
106
+ />
106
107
  </template>
107
108
  <BaseMenu
108
109
  v-if="showRowActionMenu"
@@ -120,15 +121,24 @@
120
121
  </template>
121
122
 
122
123
  <template #detail="propsDetail">
123
- <slot name="detail" v-bind="propsDetail" />
124
+ <slot
125
+ name="detail"
126
+ v-bind="propsDetail"
127
+ />
124
128
  </template>
125
129
 
126
130
  <template #checkedHeader="propsCheckHeader">
127
- <slot name="checkedHeader" v-bind="propsCheckHeader" />
131
+ <slot
132
+ name="checkedHeader"
133
+ v-bind="propsCheckHeader"
134
+ />
128
135
  </template>
129
136
 
130
137
  <template #empty>
131
- <div v-if="error" class="flex items-center justify-center py-16">
138
+ <div
139
+ v-if="error"
140
+ class="flex items-center justify-center py-16"
141
+ >
132
142
  <div class="flex flex-col items-center justify-center">
133
143
  <BaseIcon
134
144
  icon="heroicons:x-circle"
@@ -144,7 +154,7 @@
144
154
  class="flex items-center justify-center py-16"
145
155
  >
146
156
  <div class="flex flex-col items-center">
147
- <BaseEmptyState class="w-32"></BaseEmptyState>
157
+ <BaseEmptyState class="w-32" />
148
158
 
149
159
  <p class="mt-3 text-center text-sm text-slate-600">
150
160
  {{ t('sui.nothing_found') }}
@@ -169,22 +179,35 @@
169
179
  </template>
170
180
 
171
181
  <template #sidebarTop="sidebarProps">
172
- <slot name="sidebarTop" v-bind="sidebarProps"></slot>
182
+ <slot
183
+ name="sidebarTop"
184
+ v-bind="sidebarProps"
185
+ />
173
186
  </template>
174
187
 
175
188
  <template #sidebarBottom="sidebarProps">
176
- <slot name="sidebarBottom" v-bind="sidebarProps"></slot>
189
+ <slot
190
+ name="sidebarBottom"
191
+ v-bind="sidebarProps"
192
+ />
177
193
  </template>
178
194
 
179
- <template v-if="toggleable" #columns>
195
+ <template
196
+ v-if="toggleable"
197
+ #columns
198
+ >
180
199
  <BaseDataIteratorSectionColumns
181
200
  v-model:visibleColumns="visibleColumns"
182
201
  :table="table"
183
202
  @update:visible-columns="onUpdateVisibleColumn"
184
- ></BaseDataIteratorSectionColumns>
203
+ />
185
204
  </template>
186
205
 
187
- <template v-for="section in sections" :key="section.name" #[section.name]>
206
+ <template
207
+ v-for="section in sections"
208
+ :key="section.name"
209
+ #[section.name]
210
+ >
188
211
  <slot :name="section.name" />
189
212
  </template>
190
213
  </BaseDataIterator>
@@ -607,8 +630,8 @@ function rowActionMenuItems(row: CollectionItem): MenuItemInterface[] {
607
630
  disabled: action.disabled && action.disabled(row),
608
631
  action: action.action
609
632
  ? () => {
610
- if (action.action) action.action(row);
611
- }
633
+ if (action.action) action.action(row);
634
+ }
612
635
  : undefined,
613
636
  to: action.to ? action.to(row) : undefined,
614
637
  };
@@ -6,7 +6,10 @@
6
6
  :disabled="rowAction.disabled && rowAction.disabled(row)"
7
7
  @click="rowAction.action ? rowAction.action(row) : null"
8
8
  >
9
- <BaseIcon :icon="rowAction.icon" class="text-slate-500" />
9
+ <BaseIcon
10
+ :icon="rowAction.icon"
11
+ class="text-slate-500"
12
+ />
10
13
  </button>
11
14
  <RouterLink
12
15
  v-else-if="rowAction.to"
@@ -14,7 +17,10 @@
14
17
  :disabled="rowAction.disabled && rowAction.disabled(row)"
15
18
  class="btn btn-white border border-slate-300 p-2 shadow-sm hover:bg-slate-100"
16
19
  >
17
- <BaseIcon :icon="rowAction.icon" class="text-slate-500" />
20
+ <BaseIcon
21
+ :icon="rowAction.icon"
22
+ class="text-slate-500"
23
+ />
18
24
  </RouterLink>
19
25
  </template>
20
26
 
@@ -16,7 +16,7 @@
16
16
  class="flatpickr w-full rounded pl-10 pr-16 disabled:cursor-not-allowed disabled:text-slate-300"
17
17
  :class="[hasErrorInternal ? 'border-red-500' : 'border-slate-300']"
18
18
  :placeholder="t('sui.click_or_select_date')"
19
- />
19
+ >
20
20
  <div
21
21
  v-if="modelValueFormatted && !disabled"
22
22
  class="absolute right-0 top-0 flex h-[42px] items-center justify-center p-1"
@@ -26,7 +26,10 @@
26
26
  class="flex items-center rounded p-1.5 hover:bg-slate-100"
27
27
  @click="clear()"
28
28
  >
29
- <BaseIcon class="h-5 w-5 text-slate-600" icon="heroicons:x-mark" />
29
+ <BaseIcon
30
+ class="h-5 w-5 text-slate-600"
31
+ icon="heroicons:x-mark"
32
+ />
30
33
  </button>
31
34
  </div>
32
35
  </div>
@@ -17,10 +17,19 @@
17
17
  :placeholder="t('sui.year')"
18
18
  @change="update()"
19
19
  >
20
- <option disabled selected hidden :value="null">
20
+ <option
21
+ disabled
22
+ selected
23
+ hidden
24
+ :value="null"
25
+ >
21
26
  {{ t('sui.year') }}
22
27
  </option>
23
- <option v-for="year in years" :key="year" :value="year">
28
+ <option
29
+ v-for="year in years"
30
+ :key="year"
31
+ :value="year"
32
+ >
24
33
  {{ year }}
25
34
  </option>
26
35
  </select>
@@ -42,10 +51,19 @@
42
51
  :placeholder="t('sui.month')"
43
52
  @change="update()"
44
53
  >
45
- <option disabled selected hidden :value="null">
54
+ <option
55
+ disabled
56
+ selected
57
+ hidden
58
+ :value="null"
59
+ >
46
60
  {{ t('sui.month') }}
47
61
  </option>
48
- <option v-for="(month, i) in months" :key="month" :value="i + 1">
62
+ <option
63
+ v-for="(month, i) in months"
64
+ :key="month"
65
+ :value="i + 1"
66
+ >
49
67
  {{ month }}
50
68
  </option>
51
69
  </select>
@@ -67,10 +85,19 @@
67
85
  :placeholder="t('sui.day')"
68
86
  @change="update()"
69
87
  >
70
- <option disabled selected hidden :value="null">
88
+ <option
89
+ disabled
90
+ selected
91
+ hidden
92
+ :value="null"
93
+ >
71
94
  {{ t('sui.day') }}
72
95
  </option>
73
- <option v-for="day in days" :key="day" :value="day">
96
+ <option
97
+ v-for="day in days"
98
+ :key="day"
99
+ :value="day"
100
+ >
74
101
  {{ day }}
75
102
  </option>
76
103
  </select>
@@ -6,7 +6,10 @@
6
6
  :data-microtip-size="showTooltip ? tooltipSize : undefined"
7
7
  :role="showTooltip ? 'tooltip' : undefined"
8
8
  >
9
- <slot name="default" :readable-date="readableDate">
9
+ <slot
10
+ name="default"
11
+ :readable-date="readableDate"
12
+ >
10
13
  <span class="text-xs text-slate-600">
11
14
  {{ readableDate }}
12
15
  </span>
@@ -6,7 +6,7 @@
6
6
  name="item"
7
7
  :element="element"
8
8
  :index="index"
9
- ></slot>
9
+ />
10
10
  </div>
11
11
  </template>
12
12
 
@@ -1,10 +1,18 @@
1
1
  <template>
2
2
  <div>
3
- <button ref="button" type="button" @click="toggle()">
4
- <slot name="button"></slot>
3
+ <button
4
+ ref="button"
5
+ type="button"
6
+ @click="toggle()"
7
+ >
8
+ <slot name="button" />
5
9
  </button>
6
10
  <Teleport to="body">
7
- <div ref="dropdown" class="z-menu" :style="dropdownStyles">
11
+ <div
12
+ ref="dropdown"
13
+ class="z-menu"
14
+ :style="dropdownStyles"
15
+ >
8
16
  <Transition
9
17
  :enter-active-class="
10
18
  animated ? 'transition duration-200 ease-out' : ''
@@ -16,14 +24,17 @@
16
24
  leave-to-class="transform scale-95 opacity-0"
17
25
  >
18
26
  <template v-if="showDropdown || keepAlive">
19
- <div v-show="showDropdown" class="inline-block">
27
+ <div
28
+ v-show="showDropdown"
29
+ class="inline-block"
30
+ >
20
31
  <slot
21
32
  name="dropdown"
22
33
  :show-dropdown="showDropdown"
23
34
  :close="close"
24
35
  :open="open"
25
36
  :toggle="toggle"
26
- ></slot>
37
+ />
27
38
  </div>
28
39
  </template>
29
40
  </Transition>
@@ -8,7 +8,11 @@
8
8
  @close="onClose"
9
9
  >
10
10
  <template #button="buttonProps">
11
- <slot name="button" v-bind="buttonProps" :new-value="newValue"></slot>
11
+ <slot
12
+ name="button"
13
+ v-bind="buttonProps"
14
+ :new-value="newValue"
15
+ />
12
16
  </template>
13
17
  <template #dropdown="{ close }">
14
18
  <div
@@ -31,7 +35,7 @@
31
35
  <template #option="optionProps">
32
36
  <div
33
37
  :class="[optionProps.active ? 'bg-slate-100' : 'bg-white']"
34
- class="mb-px flex items-center rounded py-1 px-1"
38
+ class="mb-px flex items-center rounded px-1 py-1"
35
39
  >
36
40
  <div class="flex grow items-center">
37
41
  <slot
@@ -39,17 +43,17 @@
39
43
  :option="optionProps.option"
40
44
  :active="optionProps.active"
41
45
  :size="size"
42
- ></slot>
46
+ />
43
47
  </div>
44
48
  <div class="shrink-0">
45
49
  <BaseIcon
46
50
  v-if="
47
51
  (optionProps.selected ?? false) ||
48
- (optionProps.option[valueKey] == null && newValue == null)
52
+ (optionProps.option[valueKey] == null && newValue == null)
49
53
  "
50
54
  icon="mdi:check-bold"
51
55
  class="h-4 w-4 text-slate-500"
52
- ></BaseIcon>
56
+ />
53
57
  </div>
54
58
  </div>
55
59
  </template>
@@ -126,7 +130,7 @@ const props = defineProps({
126
130
 
127
131
  const emit = defineEmits(['update:model-value', 'close']);
128
132
 
129
- const componentName = computed(() => {
133
+ const componentName = computed<any>(() => {
130
134
  if (props.multiple) {
131
135
  if (props.url) {
132
136
  return BaseTagAutocompleteFetch;
@@ -141,10 +145,12 @@ const componentName = computed(() => {
141
145
  if (props.url) {
142
146
  return BaseAutocompleteFetch;
143
147
  }
148
+
144
149
  if (props.options) {
145
150
  return BaseAutocomplete;
146
151
  }
147
- console.error('BaseDropdownAutocomplete: options or url is required');
152
+
153
+ throw new Error('BaseDropdownAutocomplete: options or url is required');
148
154
  });
149
155
 
150
156
  const autocomplete = ref<any>(null);
@@ -6,9 +6,12 @@
6
6
  :required="required"
7
7
  :class="labelClassInternal"
8
8
  />
9
- <slot></slot>
9
+ <slot />
10
10
  <template v-if="errorMessage">
11
- <BaseInputError v-if="errorTypeInternal == 'default'" class="mt-1">
11
+ <BaseInputError
12
+ v-if="errorTypeInternal == 'default'"
13
+ class="mt-1"
14
+ >
12
15
  {{ errorMessage }}
13
16
  </BaseInputError>
14
17
  <BaseAlert