sprintify-ui 0.6.53 → 0.6.56

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.
@@ -79,11 +79,16 @@ import BaseStepper from './BaseStepper.vue';
79
79
  import BaseStepperItem from './BaseStepperItem.vue';
80
80
  import BaseSwitch from './BaseSwitch.vue';
81
81
  import BaseSystemAlert from './BaseSystemAlert.vue';
82
+ import BaseTable from './BaseTable.vue';
83
+ import BaseTableBody from './BaseTableBody.vue';
84
+ import BaseTableCell from './BaseTableCell.vue';
85
+ import BaseTableHead from './BaseTableHead.vue';
86
+ import BaseTableHeader from './BaseTableHeader.vue';
87
+ import BaseTableRow from './BaseTableRow.vue';
82
88
  import BaseTabs from './BaseTabs.vue';
83
89
  import BaseTabItem from './BaseTabItem.vue';
84
90
  import BaseTagAutocomplete from './BaseTagAutocomplete.vue';
85
91
  import BaseTagAutocompleteFetch from './BaseTagAutocompleteFetch.vue';
86
- import BaseTable from './BaseTable.vue';
87
92
  import BaseTableColumn from './BaseTableColumn.vue';
88
93
  import BaseTextarea from './BaseTextarea.vue';
89
94
  import BaseTextareaAutoresize from './BaseTextareaAutoresize.vue';
@@ -95,4 +100,4 @@ import BaseLayoutStacked from './BaseLayoutStacked.vue';
95
100
  import BaseLayoutStackedConfigurable from './BaseLayoutStackedConfigurable.vue';
96
101
  import BaseLayoutSidebar from './BaseLayoutSidebar.vue';
97
102
  import BaseLayoutSidebarConfigurable from './BaseLayoutSidebarConfigurable.vue';
98
- export { BaseActionItem, BaseAddressForm, BaseAlert, BaseApp, BaseAppDialogs, BaseAppNotifications, BaseAutocomplete, BaseAutocompleteFetch, BaseAvatar, BaseAvatarGroup, BaseBadge, BaseBelongsTo, BaseBelongsToFetch, BaseBoolean, BaseBreadcrumbs, BaseButton, BaseButtonGroup, BaseCard, BaseCardRow, BaseCharacterCounter, BaseClipboard, BaseCalendar, BaseColor, BaseContainer, BaseCounter, BaseCropper, BaseCropperModal, BaseDataIterator, BaseDataTable, BaseDatePicker, BaseDateSelect, BaseDescriptionList, BaseDescriptionListItem, BaseDialog, BaseDisplayRelativeTime, BaseDropdown, BaseDropdownAutocomplete, BaseEmptyState, BaseField, BaseFieldI18n, BaseFilePicker, BaseFilePickerCrop, BaseFileUploader, BaseForm, BaseGantt, BaseHasMany, BaseHeader, BaseIcon, BaseIconPicker, BaseInput, BaseInputLabel, BaseInputPercent, BaseLoadingCover, BaseMediaItem, BaseMediaLibrary, BaseMediaPreview, BaseMenu, BaseMenuItem, BaseModalCenter, BaseModalSide, BaseNavbar, BaseNavbarItem, BaseNavbarItemContent, BaseNavbarSideItem, BasePagination, BasePanel, BasePassword, BaseProgressCircle, BaseRadioGroup, BaseReadMore, BaseRichText, BaseSelect, BaseShortcut, BaseSideNavigation, BaseSideNavigationItem, BaseSkeleton, BaseStatistic, BaseStepper, BaseStepperItem, BaseSwitch, BaseSystemAlert, BaseTabs, BaseTabItem, BaseTagAutocomplete, BaseTagAutocompleteFetch, BaseTable, BaseTableColumn, BaseTextarea, BaseTextareaAutoresize, BaseTimeline, BaseTimelineItem, BaseTooltip, BaseUniqueCode, BaseLayoutStacked, BaseLayoutStackedConfigurable, BaseLayoutSidebar, BaseLayoutSidebarConfigurable, };
103
+ export { BaseActionItem, BaseAddressForm, BaseAlert, BaseApp, BaseAppDialogs, BaseAppNotifications, BaseAutocomplete, BaseAutocompleteFetch, BaseAvatar, BaseAvatarGroup, BaseBadge, BaseBelongsTo, BaseBelongsToFetch, BaseBoolean, BaseBreadcrumbs, BaseButton, BaseButtonGroup, BaseCard, BaseCardRow, BaseCharacterCounter, BaseClipboard, BaseCalendar, BaseColor, BaseContainer, BaseCounter, BaseCropper, BaseCropperModal, BaseDataIterator, BaseDataTable, BaseDatePicker, BaseDateSelect, BaseDescriptionList, BaseDescriptionListItem, BaseDialog, BaseDisplayRelativeTime, BaseDropdown, BaseDropdownAutocomplete, BaseEmptyState, BaseField, BaseFieldI18n, BaseFilePicker, BaseFilePickerCrop, BaseFileUploader, BaseForm, BaseGantt, BaseHasMany, BaseHeader, BaseIcon, BaseIconPicker, BaseInput, BaseInputLabel, BaseInputPercent, BaseLoadingCover, BaseMediaItem, BaseMediaLibrary, BaseMediaPreview, BaseMenu, BaseMenuItem, BaseModalCenter, BaseModalSide, BaseNavbar, BaseNavbarItem, BaseNavbarItemContent, BaseNavbarSideItem, BasePagination, BasePanel, BasePassword, BaseProgressCircle, BaseRadioGroup, BaseReadMore, BaseRichText, BaseSelect, BaseShortcut, BaseSideNavigation, BaseSideNavigationItem, BaseSkeleton, BaseStatistic, BaseStepper, BaseStepperItem, BaseSwitch, BaseSystemAlert, BaseTable, BaseTableBody, BaseTableCell, BaseTableHead, BaseTableHeader, BaseTableRow, BaseTabs, BaseTabItem, BaseTagAutocomplete, BaseTagAutocompleteFetch, BaseTableColumn, BaseTextarea, BaseTextareaAutoresize, BaseTimeline, BaseTimelineItem, BaseTooltip, BaseUniqueCode, BaseLayoutStacked, BaseLayoutStackedConfigurable, BaseLayoutSidebar, BaseLayoutSidebarConfigurable, };
@@ -0,0 +1,2 @@
1
+ import { CellConfig } from "./types";
2
+ export declare function cellClasses(config: CellConfig): string;
@@ -0,0 +1,15 @@
1
+ import { RouteLocationRaw } from "vue-router";
2
+ export type CellSpacing = 'none' | 'sm' | 'md' | 'lg';
3
+ export interface TableProps {
4
+ spacing?: CellSpacing;
5
+ flush?: boolean;
6
+ }
7
+ export type CellConfig = {
8
+ flush?: boolean;
9
+ } & TableProps;
10
+ export interface CellProps {
11
+ title?: string;
12
+ href?: string;
13
+ to?: RouteLocationRaw;
14
+ target?: string;
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.6.53",
3
+ "version": "0.6.56",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -116,7 +116,7 @@ export const Wrap = (args) => ({
116
116
 
117
117
  <p class="text-xs text-slate-600 leading-tight mb-1">Wrap</p>
118
118
 
119
- <BaseBadge v-bind="args" :color="color" wrap icon="heroicons:beaker-20-solid">
119
+ <BaseBadge v-bind="args" :color="color" icon="heroicons:beaker-20-solid">
120
120
  Administrator And More And More And More
121
121
  </BaseBadge>
122
122
  </div>
@@ -23,12 +23,12 @@
23
23
  <script lang="ts" setup>
24
24
  import { cloneDeep } from 'lodash';
25
25
  import { PropType } from 'vue';
26
- import BaseTable from './BaseTable.vue';
26
+ import BaseDataTableTemplate from './BaseDataTableTemplate.vue';
27
27
 
28
28
  const props = defineProps({
29
29
  table: {
30
30
  required: true,
31
- type: [Object, null] as PropType<InstanceType<typeof BaseTable> | null>,
31
+ type: [Object, null] as PropType<InstanceType<typeof BaseDataTableTemplate> | null>,
32
32
  },
33
33
  visibleColumns: {
34
34
  required: true,
@@ -73,7 +73,7 @@
73
73
  </div>
74
74
  </div>
75
75
 
76
- <BaseTable
76
+ <BaseDataTableTemplate
77
77
  ref="table"
78
78
  :checked-rows="newCheckedRows"
79
79
  :data="items"
@@ -175,7 +175,7 @@
175
175
  </div>
176
176
  </div>
177
177
  </template>
178
- </BaseTable>
178
+ </BaseDataTableTemplate>
179
179
  </BaseCard>
180
180
  </template>
181
181
 
@@ -244,7 +244,6 @@ import BaseDataIterator from './BaseDataIterator.vue';
244
244
  import { cloneDeep, isArray } from 'lodash';
245
245
 
246
246
  import BaseCard from './BaseCard.vue';
247
- import BaseTable from './BaseTable.vue';
248
247
  import BaseTableColumn from './BaseTableColumn.vue';
249
248
  import BaseDataIteratorSectionColumns from './BaseDataIteratorSectionColumns.vue';
250
249
  import { BaseIcon, config } from '@/index';
@@ -256,6 +255,7 @@ import { ActionItem } from '@/types';
256
255
  import { Size } from '@/utils/sizes';
257
256
  import { useInputSize } from '@/composables/inputSize';
258
257
  import BaseButton from './BaseButton.vue';
258
+ import BaseDataTableTemplate from './BaseDataTableTemplate.vue';
259
259
 
260
260
  const router = useRouter();
261
261
 
@@ -264,7 +264,7 @@ const http = config.http;
264
264
  const dialogs = useDialogsStore();
265
265
  const notifications = useNotificationsStore();
266
266
 
267
- const table = ref<null | InstanceType<typeof BaseTable>>(null);
267
+ const table = ref<null | InstanceType<typeof BaseDataTableTemplate>>(null);
268
268
 
269
269
  const props = defineProps({
270
270
  /**