sprintify-ui 0.8.2 → 0.8.4
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 +2174 -2117
- package/dist/types/components/BaseCollapse.vue.d.ts +86 -0
- package/dist/types/components/BaseDataIteratorSectionColumns.vue.d.ts +4 -12
- package/dist/types/components/BaseDataTableTemplate.vue.d.ts +1 -3
- package/dist/types/components/BaseLoadingCover.vue.d.ts +1 -1
- package/dist/types/components/BaseTableCell.vue.d.ts +1 -1
- package/dist/types/components/BaseTableColumn.vue.d.ts +3 -25
- package/dist/types/components/BaseTableHeader.vue.d.ts +1 -1
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/types/index.d.ts +1 -3
- package/package.json +1 -1
- package/src/components/BaseCollapse.stories.js +169 -0
- package/src/components/BaseCollapse.vue +98 -0
- package/src/components/BaseDataTable.stories.js +13 -0
- package/src/components/BaseDataTableTemplate.vue +10 -7
- package/src/components/BaseTableColumn.vue +1 -11
- package/src/components/index.ts +3 -1
- package/src/types/index.ts +1 -5
|
@@ -39,7 +39,7 @@ export default defineComponent({
|
|
|
39
39
|
default: false,
|
|
40
40
|
type: Boolean,
|
|
41
41
|
},
|
|
42
|
-
|
|
42
|
+
align: {
|
|
43
43
|
default: 'left',
|
|
44
44
|
type: String as PropType<'left' | 'center' | 'right'>,
|
|
45
45
|
},
|
|
@@ -87,16 +87,6 @@ export default defineComponent({
|
|
|
87
87
|
default: undefined,
|
|
88
88
|
type: Function as PropType<(row: CollectionItem, index: number, column: BaseTableColumnData, colIndex: number, event: MouseEvent) => void>,
|
|
89
89
|
},
|
|
90
|
-
/** Adds native attributes to th :th-attrs="(column)" => ({})" */
|
|
91
|
-
thAttrs: {
|
|
92
|
-
type: Function,
|
|
93
|
-
default: () => ({}),
|
|
94
|
-
},
|
|
95
|
-
/** Adds native attributes to td :td-attrs="(row, column)" => ({})" */
|
|
96
|
-
tdAttrs: {
|
|
97
|
-
type: Function,
|
|
98
|
-
default: () => ({}),
|
|
99
|
-
},
|
|
100
90
|
},
|
|
101
91
|
setup() {
|
|
102
92
|
const nextSequence = inject('nextSequence') as any;
|
package/src/components/index.ts
CHANGED
|
@@ -20,6 +20,7 @@ import BaseCardRow from './BaseCardRow.vue';
|
|
|
20
20
|
import BaseCharacterCounter from './BaseCharacterCounter.vue';
|
|
21
21
|
import BaseClipboard from './BaseClipboard.vue';
|
|
22
22
|
import BaseCalendar from './BaseCalendar.vue';
|
|
23
|
+
import BaseCollapse from './BaseCollapse.vue';
|
|
23
24
|
import BaseColor from './BaseColor.vue';
|
|
24
25
|
import BaseContainer from './BaseContainer.vue';
|
|
25
26
|
import BaseCounter from './BaseCounter.vue';
|
|
@@ -127,6 +128,7 @@ export {
|
|
|
127
128
|
BaseCharacterCounter,
|
|
128
129
|
BaseClipboard,
|
|
129
130
|
BaseCalendar,
|
|
131
|
+
BaseCollapse,
|
|
130
132
|
BaseColor,
|
|
131
133
|
BaseContainer,
|
|
132
134
|
BaseCounter,
|
|
@@ -135,7 +137,6 @@ export {
|
|
|
135
137
|
BaseDataIterator,
|
|
136
138
|
BaseDataTable,
|
|
137
139
|
BaseDatePicker,
|
|
138
|
-
BaseTimePicker,
|
|
139
140
|
BaseDateSelect,
|
|
140
141
|
BaseDescriptionList,
|
|
141
142
|
BaseDescriptionListItem,
|
|
@@ -203,6 +204,7 @@ export {
|
|
|
203
204
|
BaseTextareaAutoresize,
|
|
204
205
|
BaseTimeline,
|
|
205
206
|
BaseTimelineItem,
|
|
207
|
+
BaseTimePicker,
|
|
206
208
|
BaseTooltip,
|
|
207
209
|
BaseUniqueCode,
|
|
208
210
|
BaseLayoutStacked,
|
package/src/types/index.ts
CHANGED
|
@@ -105,7 +105,7 @@ export interface BaseTableColumnData {
|
|
|
105
105
|
meta: undefined | Record<string, any>;
|
|
106
106
|
newKey: string;
|
|
107
107
|
numeric: boolean;
|
|
108
|
-
|
|
108
|
+
align: 'left' | 'center' | 'right';
|
|
109
109
|
searchable: boolean;
|
|
110
110
|
sortable: boolean;
|
|
111
111
|
ignoreRowInteractions: boolean;
|
|
@@ -120,10 +120,6 @@ export interface BaseTableColumnData {
|
|
|
120
120
|
style: {
|
|
121
121
|
width: undefined | number;
|
|
122
122
|
};
|
|
123
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
124
|
-
thAttrs: (column: BaseTableColumnData) => Record<string, any>;
|
|
125
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
126
|
-
tdAttrs: (row: Row, column: BaseTableColumnData) => Record<string, any>;
|
|
127
123
|
}
|
|
128
124
|
|
|
129
125
|
/**
|