sprintify-ui 0.6.52 → 0.6.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sprintify-ui.es.js +3091 -2933
- package/dist/style.css +1 -1
- package/dist/tailwindcss/button.js +18 -18
- package/dist/types/src/components/BaseDataTableTemplate.vue.d.ts +230 -0
- package/dist/types/src/components/BaseTable.vue.d.ts +32 -203
- package/dist/types/src/components/BaseTableBody.vue.d.ts +9 -0
- package/dist/types/src/components/BaseTableCell.vue.d.ts +59 -0
- package/dist/types/src/components/BaseTableColumn.vue.d.ts +3 -3
- package/dist/types/src/components/BaseTableHead.vue.d.ts +21 -0
- package/dist/types/src/components/BaseTableHeader.vue.d.ts +22 -0
- package/dist/types/src/components/BaseTableRow.vue.d.ts +49 -0
- package/dist/types/src/components/index.d.ts +7 -2
- package/dist/types/src/services/table/classes.d.ts +2 -0
- package/dist/types/src/services/table/types.d.ts +15 -0
- package/package.json +1 -1
- package/src/components/BaseBadge.stories.js +1 -1
- package/src/components/BaseButton.stories.js +0 -5
- package/src/components/BaseButton.vue +1 -1
- package/src/components/BaseDataIteratorSectionColumns.vue +2 -2
- package/src/components/BaseDataTable.vue +4 -4
- package/src/components/BaseDataTableTemplate.vue +887 -0
- package/src/components/BaseTable.stories.js +108 -0
- package/src/components/BaseTable.vue +25 -874
- package/src/components/BaseTableBody.vue +15 -0
- package/src/components/BaseTableCell.vue +87 -0
- package/src/components/BaseTableHead.vue +23 -0
- package/src/components/BaseTableHeader.vue +56 -0
- package/src/components/BaseTableRow.vue +30 -0
- package/src/components/index.ts +12 -2
- package/src/services/table/classes.ts +26 -0
- package/src/services/table/types.ts +19 -0
|
@@ -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,
|
|
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,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
|
@@ -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"
|
|
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>
|
|
@@ -85,11 +85,6 @@ export const Colors = (args) => ({
|
|
|
85
85
|
return { args, colors };
|
|
86
86
|
},
|
|
87
87
|
template: `
|
|
88
|
-
<p class="text-xs text-slate-600 leading-tight mb-1">btn</p>
|
|
89
|
-
<BaseButton class="btn">
|
|
90
|
-
Click here
|
|
91
|
-
</BaseButton>
|
|
92
|
-
<div class="mb-4"></div>
|
|
93
88
|
<div v-for="color in colors" :key="color" class="mb-4">
|
|
94
89
|
<p class="text-xs text-slate-600 leading-tight mb-1">{{ color }}</p>
|
|
95
90
|
<BaseButton v-bind="args" :color="color">
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
<script lang="ts" setup>
|
|
24
24
|
import { cloneDeep } from 'lodash';
|
|
25
25
|
import { PropType } from 'vue';
|
|
26
|
-
import
|
|
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
|
|
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
|
-
<
|
|
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
|
-
</
|
|
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
|
|
267
|
+
const table = ref<null | InstanceType<typeof BaseDataTableTemplate>>(null);
|
|
268
268
|
|
|
269
269
|
const props = defineProps({
|
|
270
270
|
/**
|