sprintify-ui 0.2.0 → 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 (95) hide show
  1. package/dist/sprintify-ui.es.js +1146 -1146
  2. package/dist/style.css +1 -1
  3. package/package.json +2 -4
  4. package/src/assets/main.css +3 -3
  5. package/src/components/BaseActionItem.vue +9 -4
  6. package/src/components/BaseActionItemButton.vue +1 -1
  7. package/src/components/BaseAddressForm.vue +6 -5
  8. package/src/components/BaseAlert.vue +8 -2
  9. package/src/components/BaseAppNotifications.vue +4 -1
  10. package/src/components/BaseAutocomplete.vue +18 -9
  11. package/src/components/BaseAutocompleteDrawer.vue +28 -10
  12. package/src/components/BaseAutocompleteFetch.vue +14 -3
  13. package/src/components/BaseAvatar.vue +1 -1
  14. package/src/components/BaseBadge.vue +1 -2
  15. package/src/components/BaseBelongsTo.vue +12 -3
  16. package/src/components/BaseBreadcrumbs.vue +8 -2
  17. package/src/components/BaseButton.vue +9 -2
  18. package/src/components/BaseButtonGroup.vue +4 -1
  19. package/src/components/BaseCharacterCounter.vue +4 -1
  20. package/src/components/BaseClickOutside.vue +1 -1
  21. package/src/components/BaseClipboard.vue +5 -2
  22. package/src/components/BaseColor.vue +4 -1
  23. package/src/components/BaseCropper.vue +17 -5
  24. package/src/components/BaseCropperModal.vue +4 -1
  25. package/src/components/BaseDataIterator.vue +29 -11
  26. package/src/components/BaseDataIteratorSectionBox.vue +5 -2
  27. package/src/components/BaseDataIteratorSectionButton.vue +6 -4
  28. package/src/components/BaseDataIteratorSectionColumns.vue +5 -2
  29. package/src/components/BaseDataTable.vue +43 -20
  30. package/src/components/BaseDataTableRowAction.vue +8 -2
  31. package/src/components/BaseDatePicker.vue +5 -2
  32. package/src/components/BaseDateSelect.vue +33 -6
  33. package/src/components/BaseDisplayRelativeTime.vue +4 -1
  34. package/src/components/BaseDraggable.vue +1 -1
  35. package/src/components/BaseDropdown.vue +16 -5
  36. package/src/components/BaseDropdownAutocomplete.vue +8 -4
  37. package/src/components/BaseField.vue +5 -2
  38. package/src/components/BaseFieldI18n.vue +10 -2
  39. package/src/components/BaseFilePicker.vue +6 -2
  40. package/src/components/BaseFilePickerCrop.vue +4 -1
  41. package/src/components/BaseForm.vue +9 -2
  42. package/src/components/BaseHasMany.vue +16 -4
  43. package/src/components/BaseHeader.vue +4 -1
  44. package/src/components/BaseIconPicker.vue +14 -4
  45. package/src/components/BaseInput.vue +10 -7
  46. package/src/components/BaseInputError.vue +1 -1
  47. package/src/components/BaseInputLabel.vue +4 -1
  48. package/src/components/BaseInputPercent.vue +1 -1
  49. package/src/components/BaseLayoutNotificationDropdown.vue +11 -5
  50. package/src/components/BaseLayoutNotificationItem.vue +15 -5
  51. package/src/components/BaseLayoutNotificationItemContent.vue +5 -2
  52. package/src/components/BaseLayoutSidebar.vue +22 -5
  53. package/src/components/BaseLayoutSidebarConfigurable.vue +19 -5
  54. package/src/components/BaseLayoutStackedConfigurable.vue +24 -7
  55. package/src/components/BaseMediaGallery.vue +4 -1
  56. package/src/components/BaseMediaGalleryItem.vue +13 -4
  57. package/src/components/BaseMediaItem.vue +12 -3
  58. package/src/components/BaseMediaLibrary.vue +10 -5
  59. package/src/components/BaseMediaList.vue +1 -1
  60. package/src/components/BaseMediaListItem.vue +15 -6
  61. package/src/components/BaseMediaPictures.vue +1 -1
  62. package/src/components/BaseMediaPicturesItem.vue +9 -3
  63. package/src/components/BaseMediaPreview.vue +2 -2
  64. package/src/components/BaseMenu.vue +37 -9
  65. package/src/components/BaseMenuItem.vue +14 -3
  66. package/src/components/BaseModalCenter.vue +4 -1
  67. package/src/components/BaseNavbarItemContent.vue +14 -3
  68. package/src/components/BaseNavbarSideItem.vue +4 -1
  69. package/src/components/BaseNavbarSideItemContent.vue +9 -2
  70. package/src/components/BaseNumber.vue +7 -4
  71. package/src/components/BasePagination.vue +2 -2
  72. package/src/components/BasePanel.vue +4 -1
  73. package/src/components/BasePassword.vue +6 -2
  74. package/src/components/BaseProgressCircle.vue +4 -1
  75. package/src/components/BaseRadioGroup.vue +5 -2
  76. package/src/components/BaseRichText.vue +1 -2
  77. package/src/components/BaseSelect.vue +6 -2
  78. package/src/components/BaseShortcut.vue +11 -4
  79. package/src/components/BaseSideNavigation.vue +4 -1
  80. package/src/components/BaseSideNavigationItem.vue +5 -2
  81. package/src/components/BaseSkeleton.vue +2 -2
  82. package/src/components/BaseStatistic.vue +15 -4
  83. package/src/components/BaseStepper.vue +4 -1
  84. package/src/components/BaseSwitch.stories.js +0 -1
  85. package/src/components/BaseSwitch.vue +8 -2
  86. package/src/components/BaseSystemAlert.vue +4 -1
  87. package/src/components/BaseTabItem.vue +5 -2
  88. package/src/components/BaseTable.vue +19 -9
  89. package/src/components/BaseTagAutocomplete.vue +13 -4
  90. package/src/components/BaseTagAutocompleteFetch.vue +18 -4
  91. package/src/components/BaseTextareaAutoresize.vue +6 -2
  92. package/src/components/BaseTimeline.vue +8 -2
  93. package/src/svg/BaseEmptyState.vue +5 -1
  94. package/src/svg/BaseSpinnerLarge.vue +15 -3
  95. package/src/svg/BaseSpinnerSmall.vue +8 -2
@@ -28,15 +28,26 @@
28
28
  @update:model-value="$emit('update:modelValue', $event)"
29
29
  >
30
30
  <template #option="optionProps">
31
- <slot name="option" v-bind="optionProps" />
31
+ <slot
32
+ name="option"
33
+ v-bind="optionProps"
34
+ />
32
35
  </template>
33
36
 
34
37
  <template #footer="footerProps">
35
- <slot name="footer" v-bind="footerProps" :keywords="keywords" />
38
+ <slot
39
+ name="footer"
40
+ v-bind="footerProps"
41
+ :keywords="keywords"
42
+ />
36
43
  </template>
37
44
 
38
45
  <template #empty="emptyProps">
39
- <slot name="empty" v-bind="emptyProps" :first-search="firstSearch">
46
+ <slot
47
+ name="empty"
48
+ v-bind="emptyProps"
49
+ :first-search="firstSearch"
50
+ >
40
51
  <div
41
52
  v-if="firstSearch"
42
53
  class="flex h-[80px] items-center justify-center px-3 text-center text-base leading-tight text-slate-600"
@@ -8,7 +8,7 @@
8
8
  :src="user.avatar_url"
9
9
  :class="[sizeClass, detailsPosition == 'left' ? 'order-2' : 'order-1']"
10
10
  class="shrink-0 overflow-hidden rounded-full object-cover object-center"
11
- />
11
+ >
12
12
  <div
13
13
  v-if="showDetails"
14
14
  class="max-w-[120px] grow leading-tight"
@@ -9,8 +9,7 @@
9
9
  :icon="icon"
10
10
  class="shrink-0"
11
11
  :class="iconSizeClasses"
12
- >
13
- </BaseIcon>
12
+ />
14
13
  <slot />
15
14
  </span>
16
15
  </template>
@@ -21,13 +21,22 @@
21
21
  @update:model-value="onUpdate"
22
22
  >
23
23
  <template #option="optionProps">
24
- <slot name="option" v-bind="optionProps"></slot>
24
+ <slot
25
+ name="option"
26
+ v-bind="optionProps"
27
+ />
25
28
  </template>
26
29
  <template #empty="emptyProps">
27
- <slot name="empty" v-bind="emptyProps"></slot>
30
+ <slot
31
+ name="empty"
32
+ v-bind="emptyProps"
33
+ />
28
34
  </template>
29
35
  <template #footer="footerProps">
30
- <slot name="footer" v-bind="footerProps"></slot>
36
+ <slot
37
+ name="footer"
38
+ v-bind="footerProps"
39
+ />
31
40
  </template>
32
41
  </BaseAutocompleteFetch>
33
42
  </template>
@@ -5,8 +5,14 @@
5
5
  class="hidden sm:flex"
6
6
  aria-label="Breadcrumb"
7
7
  >
8
- <ol role="list" class="flex items-center space-x-3">
9
- <li v-for="(breadcrumb, index) in breadcrumbs" :key="index">
8
+ <ol
9
+ role="list"
10
+ class="flex items-center space-x-3"
11
+ >
12
+ <li
13
+ v-for="(breadcrumb, index) in breadcrumbs"
14
+ :key="index"
15
+ >
10
16
  <div class="flex items-center">
11
17
  <svg
12
18
  v-if="index > 0"
@@ -1,5 +1,9 @@
1
1
  <template>
2
- <component :is="as" ref="button" class="btn">
2
+ <component
3
+ :is="as"
4
+ ref="button"
5
+ class="btn"
6
+ >
3
7
  <div
4
8
  class="flex items-center justify-center"
5
9
  :class="{ 'opacity-0': loading }"
@@ -11,7 +15,10 @@
11
15
  v-if="loading"
12
16
  class="absolute inset-0 flex h-full w-full items-center justify-center"
13
17
  >
14
- <svg class="h-4 w-4 animate-spin" viewBox="0 0 24 24">
18
+ <svg
19
+ class="h-4 w-4 animate-spin"
20
+ viewBox="0 0 24 24"
21
+ >
15
22
  <path
16
23
  fill="currentColor"
17
24
  d="M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"
@@ -1,5 +1,8 @@
1
1
  <template>
2
- <div class="flex flex-wrap" :style="{ margin: '-' + spacing }">
2
+ <div
3
+ class="flex flex-wrap"
4
+ :style="{ margin: '-' + spacing }"
5
+ >
3
6
  <div
4
7
  v-for="option in normalizedOptions"
5
8
  :key="option.value ? option.value : 'null'"
@@ -8,7 +8,10 @@
8
8
  >
9
9
  {{ length }}/{{ max }}
10
10
  </div>
11
- <div v-else-if="min && length < min" class="text-red-600">
11
+ <div
12
+ v-else-if="min && length < min"
13
+ class="text-red-600"
14
+ >
12
15
  {{ t('sui.min_x_characters', { x: min }) }} ({{ length }}/{{ min }})
13
16
  </div>
14
17
  </div>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div ref="root">
3
- <slot></slot>
3
+ <slot />
4
4
  </div>
5
5
  </template>
6
6
 
@@ -6,7 +6,7 @@
6
6
  @mouseenter="showTooltip()"
7
7
  @mouseleave="hideTooltip()"
8
8
  >
9
- <slot></slot>
9
+ <slot />
10
10
  <transition
11
11
  enter-active-class="transition duration-200 ease-out"
12
12
  enter-from-class="transform scale-90 opacity-0"
@@ -22,7 +22,10 @@
22
22
  <div
23
23
  class="ml-2 whitespace-nowrap rounded bg-slate-900 bg-opacity-80 px-3 py-2 text-xs leading-tight text-white backdrop-blur"
24
24
  >
25
- <div v-if="showCopied" class="flex items-center">
25
+ <div
26
+ v-if="showCopied"
27
+ class="flex items-center"
28
+ >
26
29
  <BaseIcon
27
30
  class="mr-1 text-green-500"
28
31
  icon="heroicons:check-circle-solid"
@@ -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,8 +63,7 @@
60
63
  <BaseDataIteratorSectionButton
61
64
  :section="section"
62
65
  @open="openSection(i)"
63
- >
64
- </BaseDataIteratorSectionButton>
66
+ />
65
67
  </template>
66
68
  </template>
67
69
 
@@ -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>
@@ -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"
@@ -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