@v1nt1248/3nclient-lib 0.0.41 → 0.1.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.
- package/README.md +4 -4
- package/dist/components/index.d.ts +22 -38
- package/dist/components/ui3n-badge-simple.vue.d.ts +3 -3
- package/dist/components/ui3n-badge.vue.d.ts +2 -2
- package/dist/components/ui3n-breadcrumb.vue.d.ts +7 -7
- package/dist/components/ui3n-breadcrumbs.vue.d.ts +3 -3
- package/dist/components/ui3n-button.vue.d.ts +29 -4
- package/dist/components/ui3n-checkbox.vue.d.ts +3 -3
- package/dist/components/ui3n-chip.vue.d.ts +3 -3
- package/dist/components/ui3n-dialog.vue.d.ts +6 -5
- package/dist/components/ui3n-drop-files.vue.d.ts +23 -3
- package/dist/components/ui3n-emoji.vue.d.ts +3 -3
- package/dist/components/ui3n-icon.vue.d.ts +29 -3
- package/dist/components/ui3n-input.vue.d.ts +9 -9
- package/dist/components/ui3n-list.vue.d.ts +4 -4
- package/dist/components/ui3n-menu.vue.d.ts +3 -3
- package/dist/components/ui3n-notification.vue.d.ts +32 -2
- package/dist/components/ui3n-switch.vue.d.ts +55 -0
- package/dist/components/ui3n-table-sort-icon.vue.d.ts +1 -1
- package/dist/components/ui3n-table.vue.d.ts +4 -3
- package/dist/components/ui3n-tabs.vue.d.ts +3 -3
- package/dist/components/ui3n-text.vue.d.ts +29 -3
- package/dist/components/ui3n-virtual-scroll.vue.d.ts +12 -9
- package/dist/constants/types.d.ts +2 -4
- package/dist/directives/index.d.ts +3 -2
- package/dist/directives/ui3n-click-outside.d.ts +2 -1
- package/dist/directives/ui3n-html.d.ts +1 -0
- package/dist/index.d.ts +27 -29
- package/dist/plugins/dialogs.d.ts +3 -3
- package/dist/plugins/i18n.d.ts +2 -2
- package/dist/plugins/icons.d.ts +1 -0
- package/dist/plugins/index.d.ts +5 -8
- package/dist/plugins/notifications.d.ts +2 -2
- package/dist/plugins/store-dialogs.d.ts +2 -1
- package/dist/plugins/store-notifications.d.ts +2 -1
- package/dist/plugins/store-vue-bus.d.ts +2 -1
- package/dist/plugins/vue-bus.d.ts +3 -3
- package/dist/style.css +1 -1
- package/dist/tools/sqlite-on-3nstorage/index.d.ts +3 -2
- package/dist/tools/ui.helpers.d.ts +1 -0
- package/dist/ui-3n-lib.js +6953 -6615
- package/package.json +57 -58
- package/src/components/index.ts +47 -41
- package/src/components/ui3n-badge-simple.vue +35 -38
- package/src/components/ui3n-badge.vue +25 -25
- package/src/components/ui3n-breadcrumb.vue +44 -44
- package/src/components/ui3n-breadcrumbs.vue +19 -19
- package/src/components/ui3n-button.vue +240 -150
- package/src/components/ui3n-checkbox.vue +199 -158
- package/src/components/ui3n-chip.vue +96 -98
- package/src/components/ui3n-dialog.vue +225 -235
- package/src/components/ui3n-drop-files.vue +146 -154
- package/src/components/ui3n-emoji.vue +62 -64
- package/src/components/ui3n-icon.vue +32 -13
- package/src/components/ui3n-input.vue +239 -221
- package/src/components/ui3n-list.vue +92 -111
- package/src/components/ui3n-menu.vue +101 -100
- package/src/components/ui3n-notification.vue +182 -113
- package/src/components/ui3n-switch.vue +146 -0
- package/src/components/ui3n-table-sort-icon.vue +1 -2
- package/src/components/ui3n-table.vue +229 -223
- package/src/components/ui3n-tabs.vue +141 -148
- package/src/components/ui3n-text.vue +235 -146
- package/src/components/ui3n-virtual-scroll.vue +68 -68
- package/dist/stories/Ui3nBadge.stories.d.ts +0 -124
- package/dist/stories/Ui3nBreadcrumbs.stories.d.ts +0 -252
- package/dist/stories/Ui3nButton.stories.d.ts +0 -152
- package/dist/stories/Ui3nCheckbox.stories.d.ts +0 -186
- package/dist/stories/Ui3nChip.stories.d.ts +0 -562
- package/dist/stories/Ui3nDialog.stories.d.ts +0 -41
- package/dist/stories/Ui3nDropFiles.stories.d.ts +0 -73
- package/dist/stories/Ui3nEmoji.stories.d.ts +0 -39
- package/dist/stories/Ui3nIcon.stories.d.ts +0 -80
- package/dist/stories/Ui3nInput.stories.d.ts +0 -456
- package/dist/stories/Ui3nList.stories.d.ts +0 -54
- package/dist/stories/Ui3nTabs.stories.d.ts +0 -177
- package/dist/stories/data/data-to-list.d.ts +0 -8
- package/dist/stories/data/icons.d.ts +0 -1
|
@@ -1,110 +1,111 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export interface Ui3nTableProps {
|
|
8
|
-
items: ListingEntryTypeExtended[];
|
|
9
|
-
textIfEmpty?: string;
|
|
10
|
-
}
|
|
2
|
+
import { computed, ref } from 'vue';
|
|
3
|
+
import { Icon } from '@iconify/vue';
|
|
4
|
+
import Ui3nTableSortIcon from './ui3n-table-sort-icon.vue';
|
|
5
|
+
import type { ListingEntryTypeExtended, EntityAction, SortField } from '../constants';
|
|
11
6
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
export interface Ui3nTableProps {
|
|
8
|
+
items: ListingEntryTypeExtended[];
|
|
9
|
+
textIfEmpty?: string;
|
|
10
|
+
}
|
|
16
11
|
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
export interface Ui3nTableEmits {
|
|
13
|
+
(ev: 'go', name: string): void;
|
|
19
14
|
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
(ev: 'action', value: { action: EntityAction, entity: ListingEntryTypeExtended }): void;
|
|
16
|
+
}
|
|
22
17
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
const sortByType = (itemA: ListingEntryTypeExtended, itemB: ListingEntryTypeExtended) => {
|
|
30
|
-
if (sortDirection.value === 'desc') {
|
|
31
|
-
return itemA.type! < itemB.type! ? 1 : -1
|
|
32
|
-
}
|
|
33
|
-
return itemA.type! > itemB.type! ? 1 : -1
|
|
34
|
-
}
|
|
35
|
-
const sortByCreatedAt = (itemA: ListingEntryTypeExtended, itemB: ListingEntryTypeExtended) => {
|
|
36
|
-
const tsA = itemA.ctime!.getTime()
|
|
37
|
-
const tsB = itemB.ctime!.getTime()
|
|
38
|
-
return sortDirection.value === 'asc' ? tsA - tsB : tsB - tsA
|
|
39
|
-
}
|
|
40
|
-
const sortByChangedAt = (itemA: ListingEntryTypeExtended, itemB: ListingEntryTypeExtended) => {
|
|
41
|
-
const tsA = itemA.mtime!.getTime()
|
|
42
|
-
const tsB = itemB.mtime!.getTime()
|
|
43
|
-
return sortDirection.value === 'asc' ? tsA - tsB : tsB - tsA
|
|
44
|
-
}
|
|
18
|
+
const props = defineProps<Ui3nTableProps>();
|
|
19
|
+
const emits = defineEmits<Ui3nTableEmits>();
|
|
20
|
+
|
|
21
|
+
const sortField = ref<SortField>('name');
|
|
22
|
+
const sortDirection = ref<'asc' | 'desc'>('asc');
|
|
45
23
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
name:
|
|
49
|
-
type: sortByType,
|
|
50
|
-
createdAt: sortByCreatedAt,
|
|
51
|
-
changedAt: sortByChangedAt,
|
|
24
|
+
const sortByName = (itemA: ListingEntryTypeExtended, itemB: ListingEntryTypeExtended) => {
|
|
25
|
+
if (sortDirection.value === 'desc') {
|
|
26
|
+
return itemA.name < itemB.name ? 1 : -1;
|
|
52
27
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
} else {
|
|
59
|
-
sortDirection.value = sortDirection.value === 'asc' ? 'desc' : 'asc'
|
|
60
|
-
}
|
|
28
|
+
return itemA.name > itemB.name ? 1 : -1;
|
|
29
|
+
};
|
|
30
|
+
const sortByType = (itemA: ListingEntryTypeExtended, itemB: ListingEntryTypeExtended) => {
|
|
31
|
+
if (sortDirection.value === 'desc') {
|
|
32
|
+
return itemA.type! < itemB.type! ? 1 : -1;
|
|
61
33
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
34
|
+
return itemA.type! > itemB.type! ? 1 : -1;
|
|
35
|
+
};
|
|
36
|
+
const sortByCreatedAt = (itemA: ListingEntryTypeExtended, itemB: ListingEntryTypeExtended) => {
|
|
37
|
+
const tsA = itemA.ctime!.getTime();
|
|
38
|
+
const tsB = itemB.ctime!.getTime();
|
|
39
|
+
return sortDirection.value === 'asc' ? tsA - tsB : tsB - tsA;
|
|
40
|
+
};
|
|
41
|
+
const sortByChangedAt = (itemA: ListingEntryTypeExtended, itemB: ListingEntryTypeExtended) => {
|
|
42
|
+
const tsA = itemA.mtime!.getTime();
|
|
43
|
+
const tsB = itemB.mtime!.getTime();
|
|
44
|
+
return sortDirection.value === 'asc' ? tsA - tsB : tsB - tsA;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const placeholder = computed(() => props.textIfEmpty || 'Empty');
|
|
48
|
+
const sortMap = {
|
|
49
|
+
name: sortByName,
|
|
50
|
+
type: sortByType,
|
|
51
|
+
createdAt: sortByCreatedAt,
|
|
52
|
+
changedAt: sortByChangedAt,
|
|
53
|
+
};
|
|
54
|
+
const sortedItems = computed(() => [...props.items].sort(sortMap[sortField.value]));
|
|
55
|
+
const changeSort = (field: SortField) => {
|
|
56
|
+
if (field !== sortField.value) {
|
|
57
|
+
sortField.value = field;
|
|
58
|
+
sortDirection.value = 'asc';
|
|
59
|
+
} else {
|
|
60
|
+
sortDirection.value = sortDirection.value === 'asc' ? 'desc' : 'asc';
|
|
67
61
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const getTimeAsString = (date: Date) => {
|
|
65
|
+
return date
|
|
66
|
+
? `${`${date.getDate()}`.padStart(2, '0')}/${`${date.getMonth() + 1}`.padStart(2, '0')}/${date.getFullYear()} ${`${date.getHours()}`.padStart(2, '0')}:${`${date.getMinutes()}`.padStart(2, '0')}`
|
|
67
|
+
: '';
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const handleClick = (ev: MouseEvent) => {
|
|
71
|
+
ev.preventDefault();
|
|
72
|
+
const { target } = ev;
|
|
73
|
+
const { id, classList } = target as Element;
|
|
74
|
+
if (classList.contains('ui3n-table__item') && id) {
|
|
75
|
+
return props.items.find(i => i.id === id);
|
|
77
76
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
return undefined;
|
|
78
|
+
};
|
|
79
|
+
const onClick = (ev: MouseEvent) => {
|
|
80
|
+
handleClick(ev);
|
|
81
|
+
const entity = handleClick(ev);
|
|
82
|
+
if (entity && entity.isFolder && entity.fullPath) {
|
|
83
|
+
emits('go', entity.fullPath);
|
|
84
84
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
85
|
+
};
|
|
86
|
+
const onRightClick = (ev: MouseEvent) => {
|
|
87
|
+
handleClick(ev);
|
|
88
|
+
const entity = handleClick(ev);
|
|
89
|
+
if (entity) {
|
|
90
|
+
emits('action', { action: 'open:menu', entity });
|
|
91
91
|
}
|
|
92
|
+
};
|
|
92
93
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
const handleActions = (ev: MouseEvent, action: EntityAction, entity: ListingEntryTypeExtended) => {
|
|
95
|
+
ev.preventDefault();
|
|
96
|
+
ev.stopImmediatePropagation();
|
|
97
|
+
emits('action', { action, entity });
|
|
98
|
+
};
|
|
98
99
|
</script>
|
|
99
100
|
|
|
100
101
|
<template>
|
|
101
|
-
<div class="
|
|
102
|
-
<div class="
|
|
102
|
+
<div :class="$style.table">
|
|
103
|
+
<div :class="$style.header">
|
|
103
104
|
<div
|
|
104
|
-
class="
|
|
105
|
+
:class="[$style.cellHeader, $style.cellHeaderSortable, $style.columnName]"
|
|
105
106
|
@click="changeSort('name')"
|
|
106
107
|
>
|
|
107
|
-
<span class="
|
|
108
|
+
<span :class="$style.cellHeaderText">Name</span>
|
|
108
109
|
<ui3n-table-sort-icon
|
|
109
110
|
v-if="sortField === 'name'"
|
|
110
111
|
:value="sortDirection"
|
|
@@ -112,10 +113,10 @@
|
|
|
112
113
|
/>
|
|
113
114
|
</div>
|
|
114
115
|
<div
|
|
115
|
-
class="
|
|
116
|
+
:class="[$style.cellHeader, $style.cellHeaderSortable, $style.columnType]"
|
|
116
117
|
@click="changeSort('type')"
|
|
117
118
|
>
|
|
118
|
-
<span class="
|
|
119
|
+
<span :class="$style.cellHeaderText">Type</span>
|
|
119
120
|
<ui3n-table-sort-icon
|
|
120
121
|
v-if="sortField === 'type'"
|
|
121
122
|
:value="sortDirection"
|
|
@@ -124,10 +125,10 @@
|
|
|
124
125
|
</div>
|
|
125
126
|
|
|
126
127
|
<div
|
|
127
|
-
class="
|
|
128
|
+
:class="[$style.cellHeader, $style.cellHeaderSortable, $style.columnChangeAt]"
|
|
128
129
|
@click="changeSort('changedAt')"
|
|
129
130
|
>
|
|
130
|
-
<span class="
|
|
131
|
+
<span :class="$style.cellHeaderText">Changed At</span>
|
|
131
132
|
<ui3n-table-sort-icon
|
|
132
133
|
v-if="sortField === 'changedAt'"
|
|
133
134
|
:value="sortDirection"
|
|
@@ -136,12 +137,12 @@
|
|
|
136
137
|
</div>
|
|
137
138
|
</div>
|
|
138
139
|
|
|
139
|
-
<div class="
|
|
140
|
+
<div :class="$style.content">
|
|
140
141
|
<div
|
|
141
142
|
v-for="item in sortedItems"
|
|
142
143
|
:id="item.id"
|
|
143
144
|
:key="item.id"
|
|
144
|
-
class="
|
|
145
|
+
:class="$style.row"
|
|
145
146
|
@click="onClick"
|
|
146
147
|
@click.right="onRightClick"
|
|
147
148
|
>
|
|
@@ -149,15 +150,15 @@
|
|
|
149
150
|
:icon="item.isFolder ? 'folder' : 'subject'"
|
|
150
151
|
:width="16"
|
|
151
152
|
:height="16"
|
|
152
|
-
class="
|
|
153
|
+
:class="$style.rowIcon"
|
|
153
154
|
/>
|
|
154
|
-
<div class="
|
|
155
|
+
<div :class="[$style.cellRow, $style.columnName]">
|
|
155
156
|
{{ item.name }}
|
|
156
157
|
</div>
|
|
157
|
-
<div class="
|
|
158
|
+
<div :class="[$style.cellRow, $style.columnType]">
|
|
158
159
|
{{ item.ext || '' }}
|
|
159
160
|
</div>
|
|
160
|
-
<div class="
|
|
161
|
+
<div :class="[$style.cellRow, $style.columnChangeAt]">
|
|
161
162
|
{{ getTimeAsString(item.mtime!) }}
|
|
162
163
|
</div>
|
|
163
164
|
|
|
@@ -166,7 +167,7 @@
|
|
|
166
167
|
icon="bookmark"
|
|
167
168
|
:width="12"
|
|
168
169
|
:height="12"
|
|
169
|
-
class="
|
|
170
|
+
:class="$style.rowBookmark"
|
|
170
171
|
@click="handleActions($event, 'add:favorites', item)"
|
|
171
172
|
/>
|
|
172
173
|
|
|
@@ -174,14 +175,14 @@
|
|
|
174
175
|
icon="baseline-edit"
|
|
175
176
|
:width="12"
|
|
176
177
|
:height="12"
|
|
177
|
-
class="
|
|
178
|
+
:class="$style.rowRename"
|
|
178
179
|
@click="handleActions($event, 'rename', item)"
|
|
179
180
|
/>
|
|
180
181
|
</div>
|
|
181
182
|
|
|
182
183
|
<div
|
|
183
184
|
v-if="!sortedItems.length"
|
|
184
|
-
class="
|
|
185
|
+
:class="$style.emptyText"
|
|
185
186
|
>
|
|
186
187
|
{{ placeholder }}
|
|
187
188
|
</div>
|
|
@@ -189,135 +190,140 @@
|
|
|
189
190
|
</div>
|
|
190
191
|
</template>
|
|
191
192
|
|
|
192
|
-
<style lang="scss"
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
193
|
+
<style lang="scss" module>
|
|
194
|
+
@import "../assets/styles/mixins";
|
|
195
|
+
|
|
196
|
+
.table {
|
|
197
|
+
--table-header-height: 36px;
|
|
198
|
+
--table-row-height: 28px;
|
|
199
|
+
|
|
200
|
+
position: relative;
|
|
201
|
+
width: 100%;
|
|
202
|
+
height: 100%;
|
|
203
|
+
overflow-x: hidden;
|
|
204
|
+
overflow-y: auto;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.header {
|
|
208
|
+
position: sticky;
|
|
209
|
+
top: 0;
|
|
210
|
+
display: flex;
|
|
211
|
+
width: 100%;
|
|
212
|
+
height: var(--table-header-height);
|
|
213
|
+
justify-content: flex-start;
|
|
214
|
+
align-items: center;
|
|
215
|
+
padding: var(--spacing-m);
|
|
216
|
+
background-color: var(--color-bg-table-header-default);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.cellHeader {
|
|
220
|
+
display: flex;
|
|
221
|
+
justify-content: flex-start;
|
|
222
|
+
align-items: center;
|
|
223
|
+
font-size: var(--font-14);
|
|
224
|
+
line-height: var(--font-20);
|
|
225
|
+
font-weight: 500;
|
|
226
|
+
color: var(--color-text-table-primary-default);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.cellHeaderSortable {
|
|
230
|
+
cursor: pointer;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.cellHeaderText {
|
|
234
|
+
display: block;
|
|
235
|
+
position: relative;
|
|
236
|
+
@include text-overflow-ellipsis(100%);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.row {
|
|
240
|
+
display: flex;
|
|
241
|
+
width: 100%;
|
|
242
|
+
height: var(--table-row-height);
|
|
243
|
+
justify-content: flex-start;
|
|
244
|
+
align-items: center;
|
|
245
|
+
padding: 0 var(--spacing-m) 0 calc(var(--spacing-l) + var(--spacing-s));
|
|
246
|
+
cursor: pointer;
|
|
247
|
+
border-bottom: 1px solid var(--color-border-table-primary-default);
|
|
248
|
+
|
|
249
|
+
&:hover {
|
|
250
|
+
background-color: var(--color-bg-control-primary-hover);
|
|
251
|
+
|
|
252
|
+
.rowBookmark,
|
|
253
|
+
.rowRename {
|
|
254
|
+
display: block;
|
|
235
255
|
}
|
|
236
256
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
width: 100%;
|
|
240
|
-
height: var(--table-row-height);
|
|
241
|
-
justify-content: flex-start;
|
|
242
|
-
align-items: center;
|
|
243
|
-
padding: 0 calc(var(--base-size) * 2) 0 calc(var(--base-size) * 5);
|
|
244
|
-
cursor: pointer;
|
|
245
|
-
border-bottom: 1px solid var(--gray-50);
|
|
246
|
-
|
|
247
|
-
&-bookmark,
|
|
248
|
-
&-rename {
|
|
249
|
-
display: none;
|
|
250
|
-
position: absolute;
|
|
251
|
-
z-index: 1;
|
|
252
|
-
color: var(--black-30);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
&-bookmark {
|
|
256
|
-
left: 2px;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
&-rename {
|
|
260
|
-
right: calc(var(--base-size) * 13 + 24px);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
&-icon {
|
|
264
|
-
position: absolute;
|
|
265
|
-
left: calc(var(--base-size) * 2);
|
|
266
|
-
color: var(--black-30);
|
|
267
|
-
pointer-events: none;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
&-cell {
|
|
271
|
-
position: relative;
|
|
272
|
-
font-weight: 400;
|
|
273
|
-
pointer-events: none;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
&:hover {
|
|
277
|
-
background-color: var(--blue-main-30);
|
|
278
|
-
|
|
279
|
-
.ui3n-table__item-bookmark,
|
|
280
|
-
.ui3n-table__item-rename {
|
|
281
|
-
display: block;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
.ui3n-table__item-icon {
|
|
285
|
-
color: var(--blue-main);
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
&__name {
|
|
291
|
-
flex: 1 0;
|
|
292
|
-
|
|
293
|
-
&.ui3n-table__item-cell {
|
|
294
|
-
font-size: var(--font-12);
|
|
295
|
-
}
|
|
257
|
+
.rowIcon {
|
|
258
|
+
color: var(--color-icon-table-accent-hover);
|
|
296
259
|
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.rowBookmark,
|
|
264
|
+
.rowRename {
|
|
265
|
+
display: none;
|
|
266
|
+
position: absolute;
|
|
267
|
+
z-index: 1;
|
|
268
|
+
color: var(--color-icon-control-accent-unselected);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.rowBookmark{
|
|
272
|
+
left: 2px;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.rowRename{
|
|
276
|
+
right: calc(var(--spacing-l) * 4);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.rowIcon {
|
|
280
|
+
position: absolute;
|
|
281
|
+
left: var(--spacing-m);
|
|
282
|
+
color: var(--color-icon-table-secondary-default);
|
|
283
|
+
pointer-events: none;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.cellRow {
|
|
287
|
+
position: relative;
|
|
288
|
+
font-weight: 400;
|
|
289
|
+
pointer-events: none;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.columnName {
|
|
293
|
+
flex: 1 0;
|
|
294
|
+
|
|
295
|
+
.rowCell {
|
|
296
|
+
font-size: var(--font-12);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
297
299
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
300
|
+
.columnType {
|
|
301
|
+
position: relative;
|
|
302
|
+
width: 56px;
|
|
303
|
+
display: flex;
|
|
304
|
+
justify-content: center;
|
|
305
|
+
align-items: center;
|
|
301
306
|
|
|
302
|
-
&.ui3n-table__item-cell {
|
|
303
|
-
font-size: var(--font-10);
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
307
|
|
|
307
|
-
|
|
308
|
-
|
|
308
|
+
.rowCell {
|
|
309
|
+
font-size: var(--font-10);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
309
312
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
313
|
+
.columnChangeAt {
|
|
314
|
+
position: relative;
|
|
315
|
+
width: 104px;
|
|
314
316
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
font-style: italic;
|
|
318
|
-
color: var(--black-30);
|
|
319
|
-
text-align: center;
|
|
320
|
-
padding-top: calc(var(--base-size) * 10);
|
|
321
|
-
}
|
|
317
|
+
.rowCell {
|
|
318
|
+
font-size: var(--font-12);
|
|
322
319
|
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.emptyText {
|
|
323
|
+
font-size: var(--font-14);
|
|
324
|
+
line-height: var(--font-20);
|
|
325
|
+
color: var(--color-text-control-secondary-default);
|
|
326
|
+
text-align: center;
|
|
327
|
+
padding: 56px 0 ;
|
|
328
|
+
}
|
|
323
329
|
</style>
|