stk-table-vue 1.2.0 → 1.2.1

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: stk-table-vue
3
- * version: v1.2.0
3
+ * version: v1.2.1
4
4
  * description: High performance realtime virtual table for vue3 and vue2.7
5
5
  * author: japlus
6
6
  * homepage: https://ja-plus.github.io/stk-table-vue/
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: stk-table-vue
3
- * version: v1.2.0
3
+ * version: v1.2.1
4
4
  * description: High performance realtime virtual table for vue3 and vue2.7
5
5
  * author: japlus
6
6
  * homepage: https://ja-plus.github.io/stk-table-vue/
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: stk-table-vue
3
- * version: v1.2.0
3
+ * version: v1.2.1
4
4
  * description: High performance realtime virtual table for vue3 and vue2.7
5
5
  * author: japlus
6
6
  * homepage: https://ja-plus.github.io/stk-table-vue/
package/lib/style.css CHANGED
@@ -1,11 +1,170 @@
1
1
  /**
2
2
  * name: stk-table-vue
3
- * version: v1.2.0
3
+ * version: v1.2.1
4
4
  * description: High performance realtime virtual table for vue3 and vue2.7
5
5
  * author: japlus
6
6
  * homepage: https://ja-plus.github.io/stk-table-vue/
7
7
  * license: MIT
8
8
  */
9
+ .stk-table.header-text-overflow .stk-filter > span{
10
+ text-overflow:ellipsis;
11
+ white-space:nowrap;
12
+ }
13
+ .stk-filter{
14
+ display:inline-flex;
15
+ align-items:center;
16
+ gap:4px;
17
+ cursor:pointer;
18
+ flex:1;
19
+ min-width:0;
20
+ }
21
+ .stk-filter--light{
22
+ --icon-active-color:#1b63d9;
23
+ --icon-hover-color:#1890ff;
24
+ }
25
+ .stk-filter--dark{
26
+ --icon-active-color:#1b63d9;
27
+ --icon-hover-color:#4f8df4;
28
+ }
29
+ .stk-filter.stk-filter--active .stk-filter-icon{
30
+ color:var(--icon-active-color);
31
+ }
32
+ .stk-filter > span{
33
+ flex:1;
34
+ min-width:0;
35
+ overflow:hidden;
36
+ }
37
+ .stk-filter .stk-filter-icon{
38
+ display:inline-flex;
39
+ width:16px;
40
+ height:16px;
41
+ cursor:pointer;
42
+ opacity:0.6;
43
+ transition:opacity 0.2s;
44
+ flex-shrink:0;
45
+ }
46
+ .stk-filter .stk-filter-icon:hover{
47
+ opacity:1;
48
+ color:var(--icon-hover-color);
49
+ }
50
+ .stk-filter-dropdown{
51
+ --border-color:#303439;
52
+ --btn-hover-color:#2a2f34;
53
+ --bg-color:#181c21;
54
+ --text-color:rgba(255, 255, 255, 0.85);
55
+ --cell-hover-color:#2a2f34;
56
+ position:absolute;
57
+ width:120px;
58
+ max-height:200px;
59
+ background-color:#181c21;
60
+ background-color:var(--bg-color);
61
+ border:1px solid #303439;
62
+ border:1px solid var(--border-color);
63
+ border-radius:4px;
64
+ box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);
65
+ z-index:1000;
66
+ display:flex;
67
+ flex-direction:column;
68
+ color:rgba(255, 255, 255, 0.85);
69
+ color:var(--text-color);
70
+ }
71
+ .stk-filter-dropdown--light{
72
+ --border-color:#e8e8e8;
73
+ --btn-hover-color:#f5f5f5;
74
+ --bg-color:#ffffff;
75
+ --text-color:rgba(0, 0, 0, 0.85);
76
+ --cell-hover-color:#fafafa;
77
+ box-shadow:0 2px 8px rgba(0, 0, 0, 0.15);
78
+ }
79
+ .stk-filter-dropdown > .stk-table{
80
+ --cell-padding-x:4px;
81
+ padding:8px 0;
82
+ flex:1;
83
+ min-height:0;
84
+ }
85
+ .stk-filter-dropdown > .stk-table tr{
86
+ cursor:pointer;
87
+ }
88
+ .stk-filter-dropdown .stk-filter-dropdown-checkbox{
89
+ text-align:center;
90
+ }
91
+ .stk-filter-dropdown .stk-filter-dropdown-checkbox > [type='checkbox']{
92
+ vertical-align:middle;
93
+ }
94
+ .stk-filter-dropdown footer{
95
+ display:flex;
96
+ border-top:1px solid var(--border-color);
97
+ }
98
+ .stk-filter-dropdown footer button{
99
+ flex:1;
100
+ cursor:pointer;
101
+ background:transparent;
102
+ border:none;
103
+ color:var(--text-color);
104
+ }
105
+ .stk-filter-dropdown footer button:first-child{
106
+ border-right:1px solid var(--border-color);
107
+ }
108
+ .stk-filter-dropdown footer button:hover{
109
+ background-color:var(--btn-hover-color);
110
+ }
111
+ .stk-editable-cell{
112
+ height:100%;
113
+ display:flex;
114
+ align-items:center;
115
+ cursor:default;
116
+ min-width:0;
117
+ }
118
+ .stk-editable-cell-input{
119
+ width:100%;
120
+ font-size:inherit;
121
+ line-height:inherit;
122
+ font-family:inherit;
123
+ box-sizing:border-box;
124
+ outline:none;
125
+ padding:0 4px;
126
+ border:none;
127
+ background:transparent;
128
+ }
129
+ .stk-checkbox-cell{
130
+ display:flex;
131
+ align-items:center;
132
+ justify-content:center;
133
+ width:100%;
134
+ height:100%;
135
+ }
136
+ .stk-checkbox-cell .stk-checkbox-native{
137
+ width:16px;
138
+ height:16px;
139
+ cursor:pointer;
140
+ vertical-align:middle;
141
+ }
142
+ .stk-change-cell{
143
+ --stk-change-red:#e02020;
144
+ --stk-change-green:#00a870;
145
+ --stk-change-flat:#666;
146
+ display:inline-flex;
147
+ align-items:center;
148
+ gap:2px;
149
+ }
150
+ .stk-change-cell--red{
151
+ color:var(--stk-change-red);
152
+ }
153
+ .stk-change-cell--green{
154
+ color:var(--stk-change-green);
155
+ }
156
+ .stk-change-cell--flat{
157
+ color:var(--stk-change-flat);
158
+ }
159
+ .stk-change-cell__arrow{
160
+ font-size:0.85em;
161
+ line-height:1;
162
+ }
163
+ .stk-table.dark .stk-change-cell{
164
+ --stk-change-red:#ff5c5c;
165
+ --stk-change-green:#26c281;
166
+ --stk-change-flat:#aaa;
167
+ }
9
168
  @keyframes stk-table-dim{
10
169
  from{
11
170
  background-color:var(--highlight-color);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stk-table-vue",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "High performance realtime virtual table for vue3 and vue2.7",
5
5
  "main": "./lib/stk-table-vue.js",
6
6
  "types": "./lib/src/StkTable/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "test": "test"
20
20
  },
21
21
  "type": "module",
22
- "sideEffects": false,
22
+ "sideEffects": ["./src/**", "./lib/**/*.css"],
23
23
  "scripts": {
24
24
  "dev": "vite",
25
25
  "build": "vite build",