@globalbrain/sefirot 2.4.0 → 2.5.0
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.
|
@@ -125,7 +125,6 @@ function handleClick(option: DropdownSectionFilterOption, value: string | number
|
|
|
125
125
|
|
|
126
126
|
.button {
|
|
127
127
|
display: flex;
|
|
128
|
-
align-items: center;
|
|
129
128
|
border-radius: 6px;
|
|
130
129
|
padding: 0 8px;
|
|
131
130
|
width: 100%;
|
|
@@ -145,6 +144,7 @@ function handleClick(option: DropdownSectionFilterOption, value: string | number
|
|
|
145
144
|
|
|
146
145
|
.checkbox {
|
|
147
146
|
display: block;
|
|
147
|
+
padding-top: 9px;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.checkbox-box {
|
|
@@ -177,6 +177,11 @@ function handleClick(option: DropdownSectionFilterOption, value: string | number
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
+
.option-item {
|
|
181
|
+
padding-left: 8px;
|
|
182
|
+
width: 100%;
|
|
183
|
+
}
|
|
184
|
+
|
|
180
185
|
.empty {
|
|
181
186
|
padding: 16px;
|
|
182
187
|
font-size: 12px;
|
|
@@ -9,23 +9,32 @@ defineProps<{
|
|
|
9
9
|
|
|
10
10
|
<template>
|
|
11
11
|
<span class="SDropdownSectionFilterItemAvatar">
|
|
12
|
-
<
|
|
12
|
+
<div class="avatar">
|
|
13
|
+
<SAvatar size="nano" :avatar="image" :name="label" />
|
|
14
|
+
</div>
|
|
13
15
|
<span class="name">{{ label }}</span>
|
|
14
16
|
</span>
|
|
15
17
|
</template>
|
|
16
18
|
|
|
17
19
|
<style scoped lang="postcss">
|
|
18
20
|
.SDropdownSectionFilterItemAvatar {
|
|
19
|
-
display:
|
|
21
|
+
display: flex;
|
|
20
22
|
align-items: center;
|
|
21
|
-
padding-
|
|
23
|
+
padding-right: 16px;
|
|
22
24
|
min-height: 32px;
|
|
23
25
|
}
|
|
24
26
|
|
|
27
|
+
.avatar {
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
25
31
|
.name {
|
|
26
32
|
display: inline-block;
|
|
27
33
|
padding-left: 8px;
|
|
28
34
|
font-size: 12px;
|
|
29
35
|
font-weight: 500;
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
text-overflow: ellipsis;
|
|
30
39
|
}
|
|
31
40
|
</style>
|
|
@@ -6,14 +6,18 @@ defineProps<{
|
|
|
6
6
|
|
|
7
7
|
<template>
|
|
8
8
|
<span class="SDropdownSectionFilterItemText">
|
|
9
|
-
{{ label }}
|
|
9
|
+
<span class="text">{{ label }}</span>
|
|
10
10
|
</span>
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<style scoped lang="postcss">
|
|
14
14
|
.SDropdownSectionFilterItemText {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
display: inline-block;
|
|
16
|
+
padding: 6px 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.text {
|
|
20
|
+
line-height: 20px;
|
|
17
21
|
font-size: 12px;
|
|
18
22
|
font-weight: 500;
|
|
19
23
|
}
|
package/lib/composables/Table.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MaybeRef } from '@vueuse/core'
|
|
2
|
-
import { reactive } from 'vue'
|
|
2
|
+
import { Component, reactive } from 'vue'
|
|
3
3
|
import { DropdownSection } from './Dropdown'
|
|
4
4
|
|
|
5
5
|
export interface Table {
|
|
@@ -34,8 +34,9 @@ export type TableCell =
|
|
|
34
34
|
| TableCellPill
|
|
35
35
|
| TableCellAvatar
|
|
36
36
|
| TableCellAvatars
|
|
37
|
+
| TableCellComponent
|
|
37
38
|
|
|
38
|
-
export type TableCellType = 'text' | 'day' | 'pill' | 'avatar' | 'avatars'
|
|
39
|
+
export type TableCellType = 'text' | 'day' | 'pill' | 'avatar' | 'avatars' | 'component'
|
|
39
40
|
|
|
40
41
|
export interface TableCellBase {
|
|
41
42
|
type: TableCellType
|
|
@@ -78,6 +79,12 @@ export interface TableCellAvatars extends TableCellBase {
|
|
|
78
79
|
color?: 'neutral' | 'soft' | 'mute'
|
|
79
80
|
}
|
|
80
81
|
|
|
82
|
+
export interface TableCellComponent extends TableCellBase {
|
|
83
|
+
type: 'component'
|
|
84
|
+
component: Component
|
|
85
|
+
props?: Record<string, any>
|
|
86
|
+
}
|
|
87
|
+
|
|
81
88
|
export interface TableCellAvatarsOption {
|
|
82
89
|
image?: string
|
|
83
90
|
name?: string
|