webcake-ui-kit 1.2.13 → 1.2.14
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/package.json +1 -2
- package/src/components/date-picker/date-picker.css +3 -1
- package/src/components/dropdown/Dropdown.vue +2 -2
- package/src/components/select-option/SelectOption.vue +2 -1
- package/src/components/select-option/select_option.css +0 -62
- package/src/components/select-option/select_option_sub.css +61 -0
- package/src/components/{table-v2 → table}/ColumnDragHandle.vue +2 -2
- package/src/components/table/Table.vue +250 -772
- package/src/components/{table-v2 → table}/TableColGroup.vue +2 -2
- package/src/components/{table-v2 → table}/TableEmpty.vue +2 -2
- package/src/components/{table-v2 → table}/TableLoading.vue +3 -3
- package/src/components/{table-v2 → table}/TableWrapper.vue +14 -9
- package/src/components/{table-v2 → table}/body/DragPreview.vue +4 -18
- package/src/components/{table-v2 → table}/body/TableBody.vue +6 -6
- package/src/components/{table-v2 → table}/body/TableCell.vue +8 -8
- package/src/components/{table-v2 → table}/body/TableRow.vue +4 -4
- package/src/components/{table-v2 → table}/header/TableHeader.vue +2 -2
- package/src/components/{table-v2 → table}/header/TableHeaderCell.vue +9 -9
- package/src/components/{table-v2 → table}/header/TableHeaderRow.vue +3 -3
- package/src/components/{table-v2 → table}/style/table-loading.css +3 -3
- package/src/components/{table-v2 → table}/style/table-wrapper.css +67 -51
- package/src/components/{table-v2 → table}/style/table.css +1 -1
- package/src/components/textarea/Textarea.vue +1 -1
- package/src/index.js +0 -1
- package/src/components/table/table.css +0 -396
- package/src/components/table-v2/Table.vue +0 -305
- /package/src/components/{table-v2 → table}/TableResizeObserver.vue +0 -0
- /package/src/components/{table-v2 → table}/body/MeasureCell.vue +0 -0
- /package/src/components/{table-v2 → table}/composables/useColumns.js +0 -0
- /package/src/components/{table-v2 → table}/composables/useSorter.js +0 -0
- /package/src/components/{table-v2 → table}/composables/useSticky.js +0 -0
- /package/src/components/{table-v2 → table}/constants.js +0 -0
- /package/src/components/{table-v2 → table}/context/createTableContext.js +0 -0
- /package/src/components/{table-v2 → table}/style/table-body.css +0 -0
- /package/src/components/{table-v2 → table}/style/table-header.css +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webcake-ui-kit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.14",
|
|
4
4
|
"description": "UI Kit for Vue 2 && 3 - Pure Options API",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
"./WkSwitch": "./src/components/switch/Switch.vue",
|
|
59
59
|
"./WkSwitchGroup": "./src/components/switch-group/SwitchGroup.vue",
|
|
60
60
|
"./WkTable": "./src/components/table/Table.vue",
|
|
61
|
-
"./WkTableV2": "./src/components/table-v2/Table.vue",
|
|
62
61
|
"./WkTabs": "./src/components/tabs/Tabs.vue",
|
|
63
62
|
"./WkTag": "./src/components/tag/Tag.vue",
|
|
64
63
|
"./WkTextarea": "./src/components/textarea/Textarea.vue",
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
align-items: center;
|
|
8
8
|
gap: var(--spacing-xs);
|
|
9
9
|
width: 100%;
|
|
10
|
-
min-width: 200px;
|
|
11
10
|
box-sizing: border-box;
|
|
12
11
|
height: 36px;
|
|
13
12
|
padding: 0 var(--spacing-sm);
|
|
@@ -27,6 +26,9 @@
|
|
|
27
26
|
.ui-date-picker__trigger--sm {
|
|
28
27
|
height: 28px;
|
|
29
28
|
padding: 0 var(--spacing-xs);
|
|
29
|
+
font-size: var(--paragraph-mini-font-size);
|
|
30
|
+
line-height: var(--paragraph-mini-line-height);
|
|
31
|
+
letter-spacing: var(--paragraph-mini-letter-spacing);
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
.ui-date-picker__trigger--lg {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
:ref="triggerRef"
|
|
20
20
|
class="ui-dropdown__anchor"
|
|
21
21
|
@click.stop="triggerHasClick && handleClick()"
|
|
22
|
-
@mouseenter="triggerHasHover && handleMouseEnter()"
|
|
23
|
-
@mouseleave="triggerHasHover && handleMouseLeave()"
|
|
22
|
+
@mouseenter.stop="triggerHasHover && handleMouseEnter()"
|
|
23
|
+
@mouseleave.stop="triggerHasHover && handleMouseLeave()"
|
|
24
24
|
>
|
|
25
25
|
<slot></slot>
|
|
26
26
|
</span>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
role="option"
|
|
14
14
|
:aria-selected="isSelected ? 'true' : 'false'"
|
|
15
15
|
:aria-disabled="isDisabled ? 'true' : null"
|
|
16
|
-
@click="handleClick"
|
|
16
|
+
@click.stop="handleClick"
|
|
17
17
|
>
|
|
18
18
|
<span v-if="hasPrefix()" class="ui-select-option__prefix">
|
|
19
19
|
<slot name="prefix" />
|
|
@@ -214,3 +214,4 @@ export default {
|
|
|
214
214
|
</script>
|
|
215
215
|
|
|
216
216
|
<style src="./select_option.css" scoped></style>
|
|
217
|
+
<style src="./select_option_sub.css"></style>
|
|
@@ -98,65 +98,3 @@
|
|
|
98
98
|
font-size: var(--paragraph-mini-font-size);
|
|
99
99
|
line-height: var(--paragraph-mini-line-height);
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
.ui-select-option ::v-deep .ui-dropdown__anchor {
|
|
103
|
-
align-self: stretch;
|
|
104
|
-
display: flex;
|
|
105
|
-
align-items: center;
|
|
106
|
-
--submenu-offset: calc(var(--spacing-2xs) + 1px);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.ui-select-option--sm ::v-deep .ui-dropdown__anchor {
|
|
110
|
-
margin-top: calc(var(--spacing-2xs) * -1 - var(--submenu-offset));
|
|
111
|
-
margin-right: calc(var(--spacing-xs) * -1);
|
|
112
|
-
margin-bottom: calc(var(--spacing-2xs) * -1 + var(--submenu-offset));
|
|
113
|
-
padding: 0 var(--spacing-xs);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.ui-select-option--md ::v-deep .ui-dropdown__anchor {
|
|
117
|
-
margin-top: calc(var(--spacing-5p5) * -1 - var(--submenu-offset));
|
|
118
|
-
margin-right: calc(var(--spacing-xs) * -1);
|
|
119
|
-
margin-bottom: calc(var(--spacing-5p5) * -1 + var(--submenu-offset));
|
|
120
|
-
padding: 0 var(--spacing-xs);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.ui-select-option--lg ::v-deep .ui-dropdown__anchor {
|
|
124
|
-
margin-top: calc(var(--spacing-7p5) * -1 - var(--submenu-offset));
|
|
125
|
-
margin-right: calc(var(--spacing-sm) * -1);
|
|
126
|
-
margin-bottom: calc(var(--spacing-7p5) * -1 + var(--submenu-offset));
|
|
127
|
-
padding: 0 var(--spacing-sm);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.expand-trigger {
|
|
131
|
-
display: flex;
|
|
132
|
-
align-items: center;
|
|
133
|
-
transform: translateY(var(--submenu-offset));
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.ui-select__list {
|
|
137
|
-
display: flex;
|
|
138
|
-
flex-direction: column;
|
|
139
|
-
overflow-y: auto;
|
|
140
|
-
padding: var(--spacing-2xs);
|
|
141
|
-
gap: var(--spacing-3xs);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.ui-select__list::-webkit-scrollbar {
|
|
145
|
-
width: 6px;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.ui-select__list::-webkit-scrollbar-thumb {
|
|
149
|
-
background: var(--border-primary);
|
|
150
|
-
border-radius: 3px;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.ui-select__list ::v-deep .select-empty {
|
|
154
|
-
height: 100px;
|
|
155
|
-
width: 100px;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.ui-select__list ::v-deep .select-empty img {
|
|
159
|
-
width: 100%;
|
|
160
|
-
height: 100%;
|
|
161
|
-
object-fit: cover;
|
|
162
|
-
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
.ui-select-option .ui-dropdown__anchor {
|
|
2
|
+
align-self: stretch;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
--submenu-offset: calc(var(--spacing-2xs) + 1px);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ui-select-option--sm .ui-dropdown__anchor {
|
|
9
|
+
margin-top: calc(var(--spacing-2xs) * -1 - var(--submenu-offset));
|
|
10
|
+
margin-right: calc(var(--spacing-xs) * -1);
|
|
11
|
+
margin-bottom: calc(var(--spacing-2xs) * -1 + var(--submenu-offset));
|
|
12
|
+
padding: 0 var(--spacing-xs);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ui-select-option--md .ui-dropdown__anchor {
|
|
16
|
+
margin-top: calc(var(--spacing-5p5) * -1 - var(--submenu-offset));
|
|
17
|
+
margin-right: calc(var(--spacing-xs) * -1);
|
|
18
|
+
margin-bottom: calc(var(--spacing-5p5) * -1 + var(--submenu-offset));
|
|
19
|
+
padding: 0 var(--spacing-xs);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ui-select-option--lg .ui-dropdown__anchor {
|
|
23
|
+
margin-top: calc(var(--spacing-7p5) * -1 - var(--submenu-offset));
|
|
24
|
+
margin-right: calc(var(--spacing-sm) * -1);
|
|
25
|
+
margin-bottom: calc(var(--spacing-7p5) * -1 + var(--submenu-offset));
|
|
26
|
+
padding: 0 var(--spacing-sm);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.expand-trigger {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
transform: translateY(var(--submenu-offset));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ui-select__list {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
overflow-y: auto;
|
|
39
|
+
padding: var(--spacing-2xs);
|
|
40
|
+
gap: var(--spacing-3xs);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ui-select__list::-webkit-scrollbar {
|
|
44
|
+
width: 6px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ui-select__list::-webkit-scrollbar-thumb {
|
|
48
|
+
background: var(--border-primary);
|
|
49
|
+
border-radius: 3px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ui-select__list .select-empty {
|
|
53
|
+
height: 100px;
|
|
54
|
+
width: 100px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ui-select__list .select-empty img {
|
|
58
|
+
width: 100%;
|
|
59
|
+
height: 100%;
|
|
60
|
+
object-fit: cover;
|
|
61
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
:class="['ui-
|
|
3
|
+
:class="['ui-table__cell-resize-handle', dragging && 'dragging', reversed && 'reversed']"
|
|
4
4
|
@mousedown.stop.prevent="handleMouseDown"
|
|
5
5
|
@touchstart.stop.prevent="handleTouchStart"
|
|
6
6
|
@click.stop.prevent
|
|
7
7
|
>
|
|
8
|
-
<div class="ui-
|
|
8
|
+
<div class="ui-table__cell-resize-line"></div>
|
|
9
9
|
</div>
|
|
10
10
|
</template>
|
|
11
11
|
|