@brggroup/share-lib 0.2.26 → 0.2.28
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 +77 -77
- package/fesm2022/brggroup-share-lib.mjs +4979 -1237
- package/fesm2022/brggroup-share-lib.mjs.map +1 -1
- package/lib/WF/wf-editor/workflow-editor.component.d.ts +1 -1
- package/lib/WF/wf-editor/workflow-editor.component.d.ts.map +1 -1
- package/lib/admin/component/dic-domain/dic-domain-list/dic-domain-list.d.ts.map +1 -1
- package/lib/admin/component/entity-change-log/entity-change-log.component.d.ts +13 -0
- package/lib/admin/component/entity-change-log/entity-change-log.component.d.ts.map +1 -0
- package/lib/admin/component/permission/role-permission/role-permission.component.d.ts +1 -1
- package/lib/admin/component/permission/role-permission/role-permission.component.d.ts.map +1 -1
- package/lib/admin/component/setting/list/setting-list.d.ts.map +1 -1
- package/lib/admin/component/sso-config/sso-config.component.d.ts +200 -0
- package/lib/admin/component/sso-config/sso-config.component.d.ts.map +1 -0
- package/lib/admin/component/user/list/user-list.d.ts.map +1 -1
- package/lib/admin/component/user/profile/user_profile.d.ts +17 -0
- package/lib/admin/component/user/profile/user_profile.d.ts.map +1 -1
- package/lib/admin/model/entity-change-log.model.d.ts +117 -0
- package/lib/admin/model/entity-change-log.model.d.ts.map +1 -0
- package/lib/admin/service/entity-change-log.service.d.ts +25 -0
- package/lib/admin/service/entity-change-log.service.d.ts.map +1 -0
- package/lib/admin/service/org.service.d.ts +1 -1
- package/lib/admin/service/org.service.d.ts.map +1 -1
- package/lib/admin/service/sso-admin.service.d.ts +46 -0
- package/lib/admin/service/sso-admin.service.d.ts.map +1 -0
- package/lib/auth/auth.guard.d.ts.map +1 -1
- package/lib/auth/auth.interceptor.d.ts.map +1 -1
- package/lib/auth/auth.service.d.ts +34 -1
- package/lib/auth/auth.service.d.ts.map +1 -1
- package/lib/auth/session-manager.service.d.ts +5 -1
- package/lib/auth/session-manager.service.d.ts.map +1 -1
- package/lib/auth/sso.model.d.ts +640 -0
- package/lib/auth/sso.model.d.ts.map +1 -0
- package/lib/auth/token.storage.d.ts +6 -0
- package/lib/auth/token.storage.d.ts.map +1 -1
- package/lib/components/base.component.d.ts +1 -0
- package/lib/components/base.component.d.ts.map +1 -1
- package/lib/components/entity-change-history/entity-change-history.component.d.ts +114 -0
- package/lib/components/entity-change-history/entity-change-history.component.d.ts.map +1 -0
- package/lib/components/login/login.component.d.ts +11 -1
- package/lib/components/login/login.component.d.ts.map +1 -1
- package/lib/components/login-1/login.component.d.ts +11 -1
- package/lib/components/login-1/login.component.d.ts.map +1 -1
- package/lib/components/login-2/login.component.d.ts +11 -1
- package/lib/components/login-2/login.component.d.ts.map +1 -1
- package/lib/components/sso-callback/sso-callback.component.d.ts +19 -0
- package/lib/components/sso-callback/sso-callback.component.d.ts.map +1 -0
- package/lib/drive/components/drive-explorer/controllers/drive-explorer-drawers.base.d.ts +10 -0
- package/lib/drive/components/drive-explorer/controllers/drive-explorer-drawers.base.d.ts.map +1 -1
- package/lib/drive/components/drive-permission-matrix/drive-permission-matrix.base.d.ts +43 -40
- package/lib/drive/components/drive-permission-matrix/drive-permission-matrix.base.d.ts.map +1 -1
- package/lib/drive/components/drive-permission-matrix/drive-permission-matrix.d.ts +8 -8
- package/lib/drive/components/drive-permission-matrix/drive-permission-matrix.d.ts.map +1 -1
- package/lib/drive/components/drive-project-permission/drive-project-permission.d.ts +2 -0
- package/lib/drive/components/drive-project-permission/drive-project-permission.d.ts.map +1 -1
- package/lib/drive/models/index.d.ts +1 -0
- package/lib/drive/models/index.d.ts.map +1 -1
- package/lib/drive/models/workflow-drive-permission.model.d.ts +69 -0
- package/lib/drive/models/workflow-drive-permission.model.d.ts.map +1 -0
- package/lib/drive/services/drive-sharing-quota.base.d.ts +9 -1
- package/lib/drive/services/drive-sharing-quota.base.d.ts.map +1 -1
- package/lib/drive/services/drive-state.base.d.ts +12 -0
- package/lib/drive/services/drive-state.base.d.ts.map +1 -1
- package/lib/drive/services/drive-upload.base.d.ts +13 -3
- package/lib/drive/services/drive-upload.base.d.ts.map +1 -1
- package/lib/model.d.ts +1 -1
- package/lib/model.d.ts.map +1 -1
- package/lib/services/noti.service.d.ts +3 -0
- package/lib/services/noti.service.d.ts.map +1 -1
- package/lib/services/router-monitor.service.d.ts.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +8 -0
- package/public-api.d.ts.map +1 -1
- package/styles/button.scss +51 -51
- package/styles/color.scss +36 -36
- package/styles/dropdown.scss +18 -18
- package/styles/layout.scss +238 -238
- package/styles/mobile.scss +39 -39
- package/styles/select.scss +93 -93
- package/styles/single-class.scss +163 -163
- package/styles/tab.scss +71 -71
- package/styles/table.scss +528 -528
- package/styles.scss +615 -592
- package/theme.less +9 -9
package/styles/table.scss
CHANGED
|
@@ -1,528 +1,528 @@
|
|
|
1
|
-
/* ==========================================================================
|
|
2
|
-
ENTERPRISE DATA TABLE DESIGN SYSTEM (NG-ZORRO TABLE — LIGHT / DARK / HC)
|
|
3
|
-
========================================================================== */
|
|
4
|
-
|
|
5
|
-
table {
|
|
6
|
-
border-collapse: separate;
|
|
7
|
-
border-spacing: 0;
|
|
8
|
-
background: inherit;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
table,
|
|
12
|
-
tbody,
|
|
13
|
-
tr,
|
|
14
|
-
td {
|
|
15
|
-
background: inherit;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* 1. Table Container & Wrapper */
|
|
19
|
-
.ant-table-wrapper {
|
|
20
|
-
border-radius: var(--radius-md, 8px);
|
|
21
|
-
background: var(--surface-card, #ffffff);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.ant-table {
|
|
25
|
-
font-size: 13px;
|
|
26
|
-
color: var(--text-primary, #1e293b);
|
|
27
|
-
background: var(--surface-card, #ffffff);
|
|
28
|
-
border-radius: var(--radius-md, 8px);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ant-table.ant-table-bordered > .ant-table-container {
|
|
32
|
-
border-color: var(--border-default, #e2e8f0);
|
|
33
|
-
border-radius: var(--radius-md, 8px);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/* 2. Sticky Table Header & Fixed Columns */
|
|
37
|
-
.ant-table-thead,
|
|
38
|
-
table thead {
|
|
39
|
-
position: sticky;
|
|
40
|
-
top: 0;
|
|
41
|
-
z-index: 12;
|
|
42
|
-
background: var(--surface-subtle, #f8fafc);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.ant-table-thead > tr > th,
|
|
46
|
-
table thead tr th {
|
|
47
|
-
position: sticky;
|
|
48
|
-
top: 0;
|
|
49
|
-
z-index: 12;
|
|
50
|
-
background-color: var(--surface-subtle, #f8fafc) !important;
|
|
51
|
-
color: var(--text-secondary, #334155) !important;
|
|
52
|
-
font-weight: 600 !important;
|
|
53
|
-
font-size: 12.5px;
|
|
54
|
-
letter-spacing: 0.01em;
|
|
55
|
-
padding: 8px 10px !important;
|
|
56
|
-
border-bottom: 1px solid var(--border-default, #e2e8f0) !important;
|
|
57
|
-
border-right-color: var(--border-subtle, #f1f5f9) !important;
|
|
58
|
-
white-space: nowrap;
|
|
59
|
-
user-select: none;
|
|
60
|
-
vertical-align: middle !important;
|
|
61
|
-
transition: background-color 0.15s ease;
|
|
62
|
-
|
|
63
|
-
&.ant-table-column-has-sorters:hover {
|
|
64
|
-
background-color: var(--surface-muted, #f1f5f9) !important;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&.ant-table-cell-fix-left,
|
|
68
|
-
&.ant-table-cell-fix-right {
|
|
69
|
-
z-index: 15 !important;
|
|
70
|
-
background-color: var(--surface-subtle, #f8fafc) !important;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.ant-table-tbody > tr > td.ant-table-cell-fix-left,
|
|
75
|
-
.ant-table-tbody > tr > td.ant-table-cell-fix-right {
|
|
76
|
-
background-color: var(--surface-card, #ffffff);
|
|
77
|
-
z-index: 3;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/* 3. Secondary Filter Row in Header (tr.tr-search) */
|
|
81
|
-
.ant-table-thead > tr.tr-search > th {
|
|
82
|
-
position: sticky;
|
|
83
|
-
top: 35px;
|
|
84
|
-
z-index: 11;
|
|
85
|
-
background-color: var(--surface-muted, #f1f5f9) !important;
|
|
86
|
-
padding: 4px 6px !important;
|
|
87
|
-
border-bottom: 1px solid var(--border-strong, #cbd5e1) !important;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.ant-table-thead > tr:not(.tr-search) > th.text-center,
|
|
91
|
-
.ant-table-thead > tr:not(.tr-search) > th.center,
|
|
92
|
-
.ant-table-thead > tr:not(.tr-search) > th[nzAlign="center"] {
|
|
93
|
-
text-align: center !important;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.ant-table-thead > tr:not(.tr-search) > th.text-right,
|
|
97
|
-
.ant-table-thead > tr:not(.tr-search) > th[nzAlign="right"] {
|
|
98
|
-
text-align: right !important;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/* 4. Table Body Cells & Compact Density */
|
|
102
|
-
.ant-table-body {
|
|
103
|
-
border-bottom: 1px solid var(--border-default, #e2e8f0);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.ant-table-tbody > tr > td {
|
|
107
|
-
padding: 6px 10px !important;
|
|
108
|
-
border-bottom: 1px solid var(--border-subtle, #f1f5f9) !important;
|
|
109
|
-
border-right-color: var(--border-subtle, #f1f5f9) !important;
|
|
110
|
-
vertical-align: middle;
|
|
111
|
-
line-height: 1.45;
|
|
112
|
-
color: var(--text-primary, #1e293b);
|
|
113
|
-
transition:
|
|
114
|
-
background-color 0.12s ease,
|
|
115
|
-
box-shadow 0.12s ease;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.ant-table.ant-table-small .ant-table-title,
|
|
119
|
-
.ant-table.ant-table-small .ant-table-footer,
|
|
120
|
-
.ant-table.ant-table-small .ant-table-thead > tr > th,
|
|
121
|
-
.ant-table.ant-table-small .ant-table-tbody > tr > td,
|
|
122
|
-
.ant-table.ant-table-small tfoot > tr > th,
|
|
123
|
-
.ant-table.ant-table-small tfoot > tr > td {
|
|
124
|
-
padding: 6px 10px !important;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
table tbody tr:first-child {
|
|
128
|
-
position: relative;
|
|
129
|
-
z-index: 0;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/* 5. Zebra Striping, Hover & Single-Click Row Tracking / Selection States */
|
|
133
|
-
.selectedable tbody tr,
|
|
134
|
-
.selectable-row,
|
|
135
|
-
.ant-table-tbody > tr:not(.ant-table-placeholder):not(.ant-table-measure-row) {
|
|
136
|
-
cursor: pointer;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
tbody:not(.no-odd-even)
|
|
140
|
-
> tr:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):not(
|
|
141
|
-
.ant-table-placeholder
|
|
142
|
-
):nth-child(odd)
|
|
143
|
-
> td {
|
|
144
|
-
background-color: var(--surface-card, #ffffff);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
tbody:not(.no-odd-even)
|
|
148
|
-
> tr:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):not(
|
|
149
|
-
.ant-table-placeholder
|
|
150
|
-
):nth-child(even)
|
|
151
|
-
> td {
|
|
152
|
-
background-color: var(--surface-zebra, #fafbfc);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
tbody:not(.no-odd-even)
|
|
156
|
-
> tr:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):not(
|
|
157
|
-
.ant-table-placeholder
|
|
158
|
-
):nth-child(even)
|
|
159
|
-
> td.ant-table-cell-fix-left,
|
|
160
|
-
tbody:not(.no-odd-even)
|
|
161
|
-
> tr:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):not(
|
|
162
|
-
.ant-table-placeholder
|
|
163
|
-
):nth-child(even)
|
|
164
|
-
> td.ant-table-cell-fix-right {
|
|
165
|
-
background-color: var(--surface-zebra, #fafbfc);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/* Hover trên dòng chưa chọn */
|
|
169
|
-
.ant-table-tbody
|
|
170
|
-
> tr.ant-table-row:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):hover
|
|
171
|
-
> td,
|
|
172
|
-
tbody
|
|
173
|
-
> tr:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):not(
|
|
174
|
-
.ant-table-placeholder
|
|
175
|
-
):hover
|
|
176
|
-
> td {
|
|
177
|
-
background-color: var(--surface-hover, #f0f7ff) !important;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/* Dòng được đánh dấu khi Click 1 lần (.row-focus-tracked / [data-row-tracked='true']) hoặc đang chọn (.selected-row / .selected) */
|
|
181
|
-
.ant-table-tbody > tr.row-focus-tracked > td:not([rowspan]),
|
|
182
|
-
.ant-table-tbody > tr.row-focus-tracked > td[rowspan="1"],
|
|
183
|
-
.ant-table-tbody > tr[data-row-tracked="true"] > td:not([rowspan]),
|
|
184
|
-
.ant-table-tbody > tr[data-row-tracked="true"] > td[rowspan="1"],
|
|
185
|
-
tbody > tr.row-focus-tracked > td:not([rowspan]),
|
|
186
|
-
tbody > tr.row-focus-tracked > td[rowspan="1"],
|
|
187
|
-
tbody > tr[data-row-tracked="true"] > td:not([rowspan]),
|
|
188
|
-
tbody > tr[data-row-tracked="true"] > td[rowspan="1"],
|
|
189
|
-
.ant-table-tbody > tr.selected-row > td,
|
|
190
|
-
.ant-table-tbody > tr.selected > td,
|
|
191
|
-
tr.selected > td,
|
|
192
|
-
tr.selected-row > td {
|
|
193
|
-
background-color: var(--surface-row-tracked, #e6f4ff) !important;
|
|
194
|
-
box-shadow:
|
|
195
|
-
inset 0 1px 0 var(--border-row-tracked, rgba(22, 119, 255, 0.28)),
|
|
196
|
-
inset 0 -1px 0 var(--border-row-tracked, rgba(22, 119, 255, 0.28));
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
/* Đảm bảo cột cố định Trái/Phải (nzLeft / nzRight) cũng giữ màu nền đồng bộ khi cuộn ngang */
|
|
200
|
-
.ant-table-tbody > tr.row-focus-tracked > td.ant-table-cell-fix-left,
|
|
201
|
-
.ant-table-tbody > tr.row-focus-tracked > td.ant-table-cell-fix-right,
|
|
202
|
-
.ant-table-tbody > tr[data-row-tracked="true"] > td.ant-table-cell-fix-left,
|
|
203
|
-
.ant-table-tbody > tr[data-row-tracked="true"] > td.ant-table-cell-fix-right,
|
|
204
|
-
.ant-table-tbody > tr.selected-row > td.ant-table-cell-fix-left,
|
|
205
|
-
.ant-table-tbody > tr.selected-row > td.ant-table-cell-fix-right,
|
|
206
|
-
.ant-table-tbody > tr.selected > td.ant-table-cell-fix-left,
|
|
207
|
-
.ant-table-tbody > tr.selected > td.ant-table-cell-fix-right {
|
|
208
|
-
background-color: var(--surface-row-tracked-solid, #e6f4ff) !important;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
/* Thanh chỉ thị dọc 3px bên trái ở ô đầu tiên của dòng đang theo dõi / đang chọn */
|
|
212
|
-
.ant-table-tbody > tr.row-focus-tracked > td:first-child:not([rowspan]),
|
|
213
|
-
.ant-table-tbody > tr.row-focus-tracked > td:first-child[rowspan="1"],
|
|
214
|
-
.ant-table-tbody > tr[data-row-tracked="true"] > td:first-child:not([rowspan]),
|
|
215
|
-
.ant-table-tbody > tr[data-row-tracked="true"] > td:first-child[rowspan="1"],
|
|
216
|
-
tbody > tr.row-focus-tracked > td:first-child:not([rowspan]),
|
|
217
|
-
tbody > tr.row-focus-tracked > td:first-child[rowspan="1"],
|
|
218
|
-
tbody > tr[data-row-tracked="true"] > td:first-child:not([rowspan]),
|
|
219
|
-
tbody > tr[data-row-tracked="true"] > td:first-child[rowspan="1"],
|
|
220
|
-
.ant-table-tbody > tr.selected-row > td:first-child,
|
|
221
|
-
.ant-table-tbody > tr.selected > td:first-child {
|
|
222
|
-
box-shadow:
|
|
223
|
-
inset 3px 0 0 var(--primary-color, #1677ff),
|
|
224
|
-
inset 0 1px 0 var(--border-row-tracked, rgba(22, 119, 255, 0.28)),
|
|
225
|
-
inset 0 -1px 0 var(--border-row-tracked, rgba(22, 119, 255, 0.28)) !important;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/* Hỗ trợ bảng có gộp dòng (rowspan > 1, ví dụ bảng cấu hình giai đoạn quy trình) */
|
|
229
|
-
.ant-table-tbody > tr[data-row-tracked="true"] > td[rowspan]:not([rowspan="1"]),
|
|
230
|
-
.ant-table-tbody > tr[data-rowspan-group-tracked="true"] > td[rowspan]:not([rowspan="1"]),
|
|
231
|
-
tbody > tr[data-row-tracked="true"] > td[rowspan]:not([rowspan="1"]),
|
|
232
|
-
tbody > tr[data-rowspan-group-tracked="true"] > td[rowspan]:not([rowspan="1"]) {
|
|
233
|
-
background-color: var(--surface-hover, #f0f7ff) !important;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.ant-table-tbody > tr[data-row-tracked="true"] > td:first-child[rowspan]:not([rowspan="1"]),
|
|
237
|
-
.ant-table-tbody > tr[data-rowspan-group-tracked="true"] > td:first-child[rowspan]:not([rowspan="1"]),
|
|
238
|
-
tbody > tr[data-row-tracked="true"] > td:first-child[rowspan]:not([rowspan="1"]),
|
|
239
|
-
tbody > tr[data-rowspan-group-tracked="true"] > td:first-child[rowspan]:not([rowspan="1"]) {
|
|
240
|
-
box-shadow: inset 3px 0 0 var(--primary-color, #1677ff) !important;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/* Hover lên dòng đang được đánh dấu (Tracked / Selected) */
|
|
244
|
-
.ant-table-tbody > tr.row-focus-tracked:hover > td:not([rowspan]),
|
|
245
|
-
.ant-table-tbody > tr.row-focus-tracked:hover > td[rowspan="1"],
|
|
246
|
-
.ant-table-tbody > tr[data-row-tracked="true"]:hover > td:not([rowspan]),
|
|
247
|
-
.ant-table-tbody > tr[data-row-tracked="true"]:hover > td[rowspan="1"],
|
|
248
|
-
tbody > tr.row-focus-tracked:hover > td:not([rowspan]),
|
|
249
|
-
tbody > tr.row-focus-tracked:hover > td[rowspan="1"],
|
|
250
|
-
tbody > tr[data-row-tracked="true"]:hover > td:not([rowspan]),
|
|
251
|
-
tbody > tr[data-row-tracked="true"]:hover > td[rowspan="1"],
|
|
252
|
-
tr.selected:hover > td,
|
|
253
|
-
tr.selected-row:hover > td {
|
|
254
|
-
background-color: var(--surface-row-tracked-hover, #d0e8ff) !important;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.ant-table-tbody > tr.row-focus-tracked:hover > td.ant-table-cell-fix-left,
|
|
258
|
-
.ant-table-tbody > tr.row-focus-tracked:hover > td.ant-table-cell-fix-right,
|
|
259
|
-
.ant-table-tbody > tr[data-row-tracked="true"]:hover > td.ant-table-cell-fix-left,
|
|
260
|
-
.ant-table-tbody > tr[data-row-tracked="true"]:hover > td.ant-table-cell-fix-right,
|
|
261
|
-
tr.selected:hover > td.ant-table-cell-fix-left,
|
|
262
|
-
tr.selected:hover > td.ant-table-cell-fix-right,
|
|
263
|
-
tr.selected-row:hover > td.ant-table-cell-fix-left,
|
|
264
|
-
tr.selected-row:hover > td.ant-table-cell-fix-right {
|
|
265
|
-
background-color: var(--surface-row-tracked-hover-solid, #d0e8ff) !important;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
tr.selected.bold-when-selected > td,
|
|
269
|
-
tr.selected-row > td {
|
|
270
|
-
font-weight: 600;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
/* 6. Single-Table Sticky Scroll Container (Prevents Split-Table Header Misalignment) */
|
|
274
|
-
.enterprise-matrix-scroll .ant-table-content {
|
|
275
|
-
max-height: calc(100vh - 255px);
|
|
276
|
-
overflow: auto;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/* 7. Interactive Links, Monospace Pills & Tabular Numbers */
|
|
280
|
-
table tbody tr td.link-detail,
|
|
281
|
-
.link-detail {
|
|
282
|
-
color: var(--primary-color, #1677ff);
|
|
283
|
-
cursor: pointer;
|
|
284
|
-
font-weight: 500;
|
|
285
|
-
transition: color 0.15s ease;
|
|
286
|
-
|
|
287
|
-
&:hover {
|
|
288
|
-
color: var(--primary-hover, #4096ff);
|
|
289
|
-
text-decoration: underline;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
table button.ant-btn-icon-only {
|
|
294
|
-
height: 24px;
|
|
295
|
-
width: 24px;
|
|
296
|
-
min-width: 24px;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.cell-mono,
|
|
300
|
-
.url-code-pill {
|
|
301
|
-
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
|
|
302
|
-
font-size: 12px;
|
|
303
|
-
color: var(--text-secondary, #334155);
|
|
304
|
-
background: var(--surface-muted, #f1f5f9);
|
|
305
|
-
padding: 2px 6px;
|
|
306
|
-
border-radius: var(--radius-xs, 4px);
|
|
307
|
-
border: 1px solid var(--border-default, #e2e8f0);
|
|
308
|
-
display: inline-block;
|
|
309
|
-
max-width: 100%;
|
|
310
|
-
overflow: hidden;
|
|
311
|
-
text-overflow: ellipsis;
|
|
312
|
-
white-space: nowrap;
|
|
313
|
-
vertical-align: middle;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.cell-number {
|
|
317
|
-
font-variant-numeric: tabular-nums;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.order-badge {
|
|
321
|
-
display: inline-flex;
|
|
322
|
-
align-items: center;
|
|
323
|
-
justify-content: center;
|
|
324
|
-
min-width: 34px;
|
|
325
|
-
height: 22px;
|
|
326
|
-
padding: 0 6px;
|
|
327
|
-
border-radius: var(--radius-xs, 4px);
|
|
328
|
-
background: var(--surface-subtle, #f8fafc);
|
|
329
|
-
border: 1px solid var(--border-default, #e2e8f0);
|
|
330
|
-
color: var(--text-secondary, #475569);
|
|
331
|
-
font-weight: 600;
|
|
332
|
-
font-size: 12px;
|
|
333
|
-
font-variant-numeric: tabular-nums;
|
|
334
|
-
cursor: pointer;
|
|
335
|
-
transition: all 0.15s ease;
|
|
336
|
-
|
|
337
|
-
&:hover {
|
|
338
|
-
border-color: var(--primary-color, #1677ff);
|
|
339
|
-
color: var(--primary-color, #1677ff);
|
|
340
|
-
background: var(--primary-bg-subtle, #eff6ff);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
/* 8. Unified Row Action Button Group */
|
|
345
|
-
.action-btn-group {
|
|
346
|
-
display: inline-flex;
|
|
347
|
-
align-items: center;
|
|
348
|
-
justify-content: center;
|
|
349
|
-
gap: 4px;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
.action-icon-btn {
|
|
353
|
-
display: inline-flex;
|
|
354
|
-
align-items: center;
|
|
355
|
-
justify-content: center;
|
|
356
|
-
width: 26px;
|
|
357
|
-
height: 26px;
|
|
358
|
-
border-radius: var(--radius-sm, 6px);
|
|
359
|
-
border: 1px solid transparent;
|
|
360
|
-
color: var(--text-muted, #64748b);
|
|
361
|
-
background: transparent;
|
|
362
|
-
cursor: pointer;
|
|
363
|
-
transition: all 0.15s ease;
|
|
364
|
-
padding: 0;
|
|
365
|
-
font-size: 14px;
|
|
366
|
-
|
|
367
|
-
&:hover {
|
|
368
|
-
background: var(--surface-muted, rgba(24, 144, 255, 0.1));
|
|
369
|
-
color: var(--text-primary, #1e293b);
|
|
370
|
-
border-color: var(--border-default, rgba(24, 144, 255, 0.25));
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
&.color-primary:hover {
|
|
374
|
-
background: var(--primary-bg-subtle, #eff6ff);
|
|
375
|
-
color: var(--primary-color, #1677ff);
|
|
376
|
-
border-color: var(--primary-border-subtle, #bfdbfe);
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
&.color-warn:hover {
|
|
380
|
-
background: var(--danger-bg-subtle, rgba(255, 77, 79, 0.1));
|
|
381
|
-
color: var(--danger-color, #ef4444);
|
|
382
|
-
border-color: rgba(239, 68, 68, 0.3);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
&.color-success:hover {
|
|
386
|
-
background: var(--success-bg-subtle, #ecfdf5);
|
|
387
|
-
color: var(--success-color, #10b981);
|
|
388
|
-
border-color: rgba(16, 185, 129, 0.3);
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
/* 9. Column Filter Dropdown & Sorter Overrides */
|
|
393
|
-
th[nzcustomfilter] {
|
|
394
|
-
vertical-align: middle !important;
|
|
395
|
-
height: 100%;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
th[nzcustomfilter] .ant-table-filter-column {
|
|
399
|
-
display: flex;
|
|
400
|
-
align-items: center;
|
|
401
|
-
gap: 4px;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
.ant-table-column-sorter {
|
|
405
|
-
background-color: transparent;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.ant-table-filter-dropdown {
|
|
409
|
-
border-radius: var(--radius-md, 8px);
|
|
410
|
-
box-shadow: var(--shadow-md);
|
|
411
|
-
background: var(--surface-card, #ffffff);
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
.search-box {
|
|
415
|
-
padding: 10px;
|
|
416
|
-
min-width: 220px;
|
|
417
|
-
|
|
418
|
-
input,
|
|
419
|
-
nz-range-picker,
|
|
420
|
-
extend-date-picker {
|
|
421
|
-
width: 100%;
|
|
422
|
-
margin-bottom: 8px;
|
|
423
|
-
display: block;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
.search-button {
|
|
427
|
-
margin-right: 8px;
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
/* 10. Pagination Alignment */
|
|
432
|
-
.ant-table-pagination.ant-pagination {
|
|
433
|
-
margin: 8px 0 2px 0 !important;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
/* 11. DARK MODE SUPPORT */
|
|
437
|
-
body.dark-theme {
|
|
438
|
-
.ant-table-thead > tr > th,
|
|
439
|
-
table thead tr th {
|
|
440
|
-
background-color: #222731 !important;
|
|
441
|
-
color: #e2e8f0 !important;
|
|
442
|
-
border-bottom-color: #303642 !important;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
.ant-table-thead > tr.tr-search > th {
|
|
446
|
-
background-color: #1a1e26 !important;
|
|
447
|
-
border-bottom-color: #303642 !important;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
tbody:not(.no-odd-even)
|
|
451
|
-
> tr:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):not(
|
|
452
|
-
.ant-table-placeholder
|
|
453
|
-
):nth-child(even)
|
|
454
|
-
> td {
|
|
455
|
-
background-color: #1e232d;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
.ant-table-tbody
|
|
459
|
-
> tr.ant-table-row:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):hover
|
|
460
|
-
> td,
|
|
461
|
-
tbody
|
|
462
|
-
> tr:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):not(
|
|
463
|
-
.ant-table-placeholder
|
|
464
|
-
):hover
|
|
465
|
-
> td {
|
|
466
|
-
background-color: rgba(59, 130, 246, 0.14) !important;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
.ant-table-tbody > tr.row-focus-tracked > td:not([rowspan]),
|
|
470
|
-
.ant-table-tbody > tr.row-focus-tracked > td[rowspan="1"],
|
|
471
|
-
.ant-table-tbody > tr[data-row-tracked="true"] > td:not([rowspan]),
|
|
472
|
-
.ant-table-tbody > tr[data-row-tracked="true"] > td[rowspan="1"],
|
|
473
|
-
tbody > tr.row-focus-tracked > td:not([rowspan]),
|
|
474
|
-
tbody > tr.row-focus-tracked > td[rowspan="1"],
|
|
475
|
-
tbody > tr[data-row-tracked="true"] > td:not([rowspan]),
|
|
476
|
-
tbody > tr[data-row-tracked="true"] > td[rowspan="1"],
|
|
477
|
-
.ant-table-tbody > tr.selected-row > td,
|
|
478
|
-
.ant-table-tbody > tr.selected > td,
|
|
479
|
-
tr.selected > td,
|
|
480
|
-
tr.selected-row > td {
|
|
481
|
-
background-color: rgba(59, 130, 246, 0.24) !important;
|
|
482
|
-
box-shadow:
|
|
483
|
-
inset 0 1px 0 rgba(59, 130, 246, 0.45),
|
|
484
|
-
inset 0 -1px 0 rgba(59, 130, 246, 0.45);
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
.ant-table-tbody > tr.row-focus-tracked > td.ant-table-cell-fix-left,
|
|
488
|
-
.ant-table-tbody > tr.row-focus-tracked > td.ant-table-cell-fix-right,
|
|
489
|
-
.ant-table-tbody > tr[data-row-tracked="true"] > td.ant-table-cell-fix-left,
|
|
490
|
-
.ant-table-tbody > tr[data-row-tracked="true"] > td.ant-table-cell-fix-right,
|
|
491
|
-
.ant-table-tbody > tr.selected-row > td.ant-table-cell-fix-left,
|
|
492
|
-
.ant-table-tbody > tr.selected-row > td.ant-table-cell-fix-right,
|
|
493
|
-
.ant-table-tbody > tr.selected > td.ant-table-cell-fix-left,
|
|
494
|
-
.ant-table-tbody > tr.selected > td.ant-table-cell-fix-right {
|
|
495
|
-
background-color: #1e2d42 !important;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
.ant-table-tbody > tr.row-focus-tracked:hover > td:not([rowspan]),
|
|
499
|
-
.ant-table-tbody > tr.row-focus-tracked:hover > td[rowspan="1"],
|
|
500
|
-
.ant-table-tbody > tr[data-row-tracked="true"]:hover > td:not([rowspan]),
|
|
501
|
-
.ant-table-tbody > tr[data-row-tracked="true"]:hover > td[rowspan="1"],
|
|
502
|
-
tbody > tr.row-focus-tracked:hover > td:not([rowspan]),
|
|
503
|
-
tbody > tr.row-focus-tracked:hover > td[rowspan="1"],
|
|
504
|
-
tbody > tr[data-row-tracked="true"]:hover > td:not([rowspan]),
|
|
505
|
-
tbody > tr[data-row-tracked="true"]:hover > td[rowspan="1"],
|
|
506
|
-
tr.selected:hover > td,
|
|
507
|
-
tr.selected-row:hover > td {
|
|
508
|
-
background-color: rgba(59, 130, 246, 0.32) !important;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
.ant-table-tbody > tr.row-focus-tracked:hover > td.ant-table-cell-fix-left,
|
|
512
|
-
.ant-table-tbody > tr.row-focus-tracked:hover > td.ant-table-cell-fix-right,
|
|
513
|
-
.ant-table-tbody > tr[data-row-tracked="true"]:hover > td.ant-table-cell-fix-left,
|
|
514
|
-
.ant-table-tbody > tr[data-row-tracked="true"]:hover > td.ant-table-cell-fix-right,
|
|
515
|
-
tr.selected:hover > td.ant-table-cell-fix-left,
|
|
516
|
-
tr.selected:hover > td.ant-table-cell-fix-right,
|
|
517
|
-
tr.selected-row:hover > td.ant-table-cell-fix-left,
|
|
518
|
-
tr.selected-row:hover > td.ant-table-cell-fix-right {
|
|
519
|
-
background-color: #243752 !important;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
.cell-mono,
|
|
523
|
-
.url-code-pill {
|
|
524
|
-
background: #262c36;
|
|
525
|
-
color: #e2e8f0;
|
|
526
|
-
border-color: #303642;
|
|
527
|
-
}
|
|
528
|
-
}
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
ENTERPRISE DATA TABLE DESIGN SYSTEM (NG-ZORRO TABLE — LIGHT / DARK / HC)
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
table {
|
|
6
|
+
border-collapse: separate;
|
|
7
|
+
border-spacing: 0;
|
|
8
|
+
background: inherit;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
table,
|
|
12
|
+
tbody,
|
|
13
|
+
tr,
|
|
14
|
+
td {
|
|
15
|
+
background: inherit;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* 1. Table Container & Wrapper */
|
|
19
|
+
.ant-table-wrapper {
|
|
20
|
+
border-radius: var(--radius-md, 8px);
|
|
21
|
+
background: var(--surface-card, #ffffff);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ant-table {
|
|
25
|
+
font-size: 13px;
|
|
26
|
+
color: var(--text-primary, #1e293b);
|
|
27
|
+
background: var(--surface-card, #ffffff);
|
|
28
|
+
border-radius: var(--radius-md, 8px);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ant-table.ant-table-bordered > .ant-table-container {
|
|
32
|
+
border-color: var(--border-default, #e2e8f0);
|
|
33
|
+
border-radius: var(--radius-md, 8px);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* 2. Sticky Table Header & Fixed Columns */
|
|
37
|
+
.ant-table-thead,
|
|
38
|
+
table thead {
|
|
39
|
+
position: sticky;
|
|
40
|
+
top: 0;
|
|
41
|
+
z-index: 12;
|
|
42
|
+
background: var(--surface-subtle, #f8fafc);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ant-table-thead > tr > th,
|
|
46
|
+
table thead tr th {
|
|
47
|
+
position: sticky;
|
|
48
|
+
top: 0;
|
|
49
|
+
z-index: 12;
|
|
50
|
+
background-color: var(--surface-subtle, #f8fafc) !important;
|
|
51
|
+
color: var(--text-secondary, #334155) !important;
|
|
52
|
+
font-weight: 600 !important;
|
|
53
|
+
font-size: 12.5px;
|
|
54
|
+
letter-spacing: 0.01em;
|
|
55
|
+
padding: 8px 10px !important;
|
|
56
|
+
border-bottom: 1px solid var(--border-default, #e2e8f0) !important;
|
|
57
|
+
border-right-color: var(--border-subtle, #f1f5f9) !important;
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
user-select: none;
|
|
60
|
+
vertical-align: middle !important;
|
|
61
|
+
transition: background-color 0.15s ease;
|
|
62
|
+
|
|
63
|
+
&.ant-table-column-has-sorters:hover {
|
|
64
|
+
background-color: var(--surface-muted, #f1f5f9) !important;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&.ant-table-cell-fix-left,
|
|
68
|
+
&.ant-table-cell-fix-right {
|
|
69
|
+
z-index: 15 !important;
|
|
70
|
+
background-color: var(--surface-subtle, #f8fafc) !important;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.ant-table-tbody > tr > td.ant-table-cell-fix-left,
|
|
75
|
+
.ant-table-tbody > tr > td.ant-table-cell-fix-right {
|
|
76
|
+
background-color: var(--surface-card, #ffffff);
|
|
77
|
+
z-index: 3;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* 3. Secondary Filter Row in Header (tr.tr-search) */
|
|
81
|
+
.ant-table-thead > tr.tr-search > th {
|
|
82
|
+
position: sticky;
|
|
83
|
+
top: 35px;
|
|
84
|
+
z-index: 11;
|
|
85
|
+
background-color: var(--surface-muted, #f1f5f9) !important;
|
|
86
|
+
padding: 4px 6px !important;
|
|
87
|
+
border-bottom: 1px solid var(--border-strong, #cbd5e1) !important;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.ant-table-thead > tr:not(.tr-search) > th.text-center,
|
|
91
|
+
.ant-table-thead > tr:not(.tr-search) > th.center,
|
|
92
|
+
.ant-table-thead > tr:not(.tr-search) > th[nzAlign="center"] {
|
|
93
|
+
text-align: center !important;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.ant-table-thead > tr:not(.tr-search) > th.text-right,
|
|
97
|
+
.ant-table-thead > tr:not(.tr-search) > th[nzAlign="right"] {
|
|
98
|
+
text-align: right !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* 4. Table Body Cells & Compact Density */
|
|
102
|
+
.ant-table-body {
|
|
103
|
+
border-bottom: 1px solid var(--border-default, #e2e8f0);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.ant-table-tbody > tr > td {
|
|
107
|
+
padding: 6px 10px !important;
|
|
108
|
+
border-bottom: 1px solid var(--border-subtle, #f1f5f9) !important;
|
|
109
|
+
border-right-color: var(--border-subtle, #f1f5f9) !important;
|
|
110
|
+
vertical-align: middle;
|
|
111
|
+
line-height: 1.45;
|
|
112
|
+
color: var(--text-primary, #1e293b);
|
|
113
|
+
transition:
|
|
114
|
+
background-color 0.12s ease,
|
|
115
|
+
box-shadow 0.12s ease;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.ant-table.ant-table-small .ant-table-title,
|
|
119
|
+
.ant-table.ant-table-small .ant-table-footer,
|
|
120
|
+
.ant-table.ant-table-small .ant-table-thead > tr > th,
|
|
121
|
+
.ant-table.ant-table-small .ant-table-tbody > tr > td,
|
|
122
|
+
.ant-table.ant-table-small tfoot > tr > th,
|
|
123
|
+
.ant-table.ant-table-small tfoot > tr > td {
|
|
124
|
+
padding: 6px 10px !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
table tbody tr:first-child {
|
|
128
|
+
position: relative;
|
|
129
|
+
z-index: 0;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* 5. Zebra Striping, Hover & Single-Click Row Tracking / Selection States */
|
|
133
|
+
.selectedable tbody tr,
|
|
134
|
+
.selectable-row,
|
|
135
|
+
.ant-table-tbody > tr:not(.ant-table-placeholder):not(.ant-table-measure-row) {
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
tbody:not(.no-odd-even)
|
|
140
|
+
> tr:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):not(
|
|
141
|
+
.ant-table-placeholder
|
|
142
|
+
):nth-child(odd)
|
|
143
|
+
> td {
|
|
144
|
+
background-color: var(--surface-card, #ffffff);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
tbody:not(.no-odd-even)
|
|
148
|
+
> tr:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):not(
|
|
149
|
+
.ant-table-placeholder
|
|
150
|
+
):nth-child(even)
|
|
151
|
+
> td {
|
|
152
|
+
background-color: var(--surface-zebra, #fafbfc);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
tbody:not(.no-odd-even)
|
|
156
|
+
> tr:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):not(
|
|
157
|
+
.ant-table-placeholder
|
|
158
|
+
):nth-child(even)
|
|
159
|
+
> td.ant-table-cell-fix-left,
|
|
160
|
+
tbody:not(.no-odd-even)
|
|
161
|
+
> tr:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):not(
|
|
162
|
+
.ant-table-placeholder
|
|
163
|
+
):nth-child(even)
|
|
164
|
+
> td.ant-table-cell-fix-right {
|
|
165
|
+
background-color: var(--surface-zebra, #fafbfc);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* Hover trên dòng chưa chọn */
|
|
169
|
+
.ant-table-tbody
|
|
170
|
+
> tr.ant-table-row:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):hover
|
|
171
|
+
> td,
|
|
172
|
+
tbody
|
|
173
|
+
> tr:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):not(
|
|
174
|
+
.ant-table-placeholder
|
|
175
|
+
):hover
|
|
176
|
+
> td {
|
|
177
|
+
background-color: var(--surface-hover, #f0f7ff) !important;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* Dòng được đánh dấu khi Click 1 lần (.row-focus-tracked / [data-row-tracked='true']) hoặc đang chọn (.selected-row / .selected) */
|
|
181
|
+
.ant-table-tbody > tr.row-focus-tracked > td:not([rowspan]),
|
|
182
|
+
.ant-table-tbody > tr.row-focus-tracked > td[rowspan="1"],
|
|
183
|
+
.ant-table-tbody > tr[data-row-tracked="true"] > td:not([rowspan]),
|
|
184
|
+
.ant-table-tbody > tr[data-row-tracked="true"] > td[rowspan="1"],
|
|
185
|
+
tbody > tr.row-focus-tracked > td:not([rowspan]),
|
|
186
|
+
tbody > tr.row-focus-tracked > td[rowspan="1"],
|
|
187
|
+
tbody > tr[data-row-tracked="true"] > td:not([rowspan]),
|
|
188
|
+
tbody > tr[data-row-tracked="true"] > td[rowspan="1"],
|
|
189
|
+
.ant-table-tbody > tr.selected-row > td,
|
|
190
|
+
.ant-table-tbody > tr.selected > td,
|
|
191
|
+
tr.selected > td,
|
|
192
|
+
tr.selected-row > td {
|
|
193
|
+
background-color: var(--surface-row-tracked, #e6f4ff) !important;
|
|
194
|
+
box-shadow:
|
|
195
|
+
inset 0 1px 0 var(--border-row-tracked, rgba(22, 119, 255, 0.28)),
|
|
196
|
+
inset 0 -1px 0 var(--border-row-tracked, rgba(22, 119, 255, 0.28));
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* Đảm bảo cột cố định Trái/Phải (nzLeft / nzRight) cũng giữ màu nền đồng bộ khi cuộn ngang */
|
|
200
|
+
.ant-table-tbody > tr.row-focus-tracked > td.ant-table-cell-fix-left,
|
|
201
|
+
.ant-table-tbody > tr.row-focus-tracked > td.ant-table-cell-fix-right,
|
|
202
|
+
.ant-table-tbody > tr[data-row-tracked="true"] > td.ant-table-cell-fix-left,
|
|
203
|
+
.ant-table-tbody > tr[data-row-tracked="true"] > td.ant-table-cell-fix-right,
|
|
204
|
+
.ant-table-tbody > tr.selected-row > td.ant-table-cell-fix-left,
|
|
205
|
+
.ant-table-tbody > tr.selected-row > td.ant-table-cell-fix-right,
|
|
206
|
+
.ant-table-tbody > tr.selected > td.ant-table-cell-fix-left,
|
|
207
|
+
.ant-table-tbody > tr.selected > td.ant-table-cell-fix-right {
|
|
208
|
+
background-color: var(--surface-row-tracked-solid, #e6f4ff) !important;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/* Thanh chỉ thị dọc 3px bên trái ở ô đầu tiên của dòng đang theo dõi / đang chọn */
|
|
212
|
+
.ant-table-tbody > tr.row-focus-tracked > td:first-child:not([rowspan]),
|
|
213
|
+
.ant-table-tbody > tr.row-focus-tracked > td:first-child[rowspan="1"],
|
|
214
|
+
.ant-table-tbody > tr[data-row-tracked="true"] > td:first-child:not([rowspan]),
|
|
215
|
+
.ant-table-tbody > tr[data-row-tracked="true"] > td:first-child[rowspan="1"],
|
|
216
|
+
tbody > tr.row-focus-tracked > td:first-child:not([rowspan]),
|
|
217
|
+
tbody > tr.row-focus-tracked > td:first-child[rowspan="1"],
|
|
218
|
+
tbody > tr[data-row-tracked="true"] > td:first-child:not([rowspan]),
|
|
219
|
+
tbody > tr[data-row-tracked="true"] > td:first-child[rowspan="1"],
|
|
220
|
+
.ant-table-tbody > tr.selected-row > td:first-child,
|
|
221
|
+
.ant-table-tbody > tr.selected > td:first-child {
|
|
222
|
+
box-shadow:
|
|
223
|
+
inset 3px 0 0 var(--primary-color, #1677ff),
|
|
224
|
+
inset 0 1px 0 var(--border-row-tracked, rgba(22, 119, 255, 0.28)),
|
|
225
|
+
inset 0 -1px 0 var(--border-row-tracked, rgba(22, 119, 255, 0.28)) !important;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/* Hỗ trợ bảng có gộp dòng (rowspan > 1, ví dụ bảng cấu hình giai đoạn quy trình) */
|
|
229
|
+
.ant-table-tbody > tr[data-row-tracked="true"] > td[rowspan]:not([rowspan="1"]),
|
|
230
|
+
.ant-table-tbody > tr[data-rowspan-group-tracked="true"] > td[rowspan]:not([rowspan="1"]),
|
|
231
|
+
tbody > tr[data-row-tracked="true"] > td[rowspan]:not([rowspan="1"]),
|
|
232
|
+
tbody > tr[data-rowspan-group-tracked="true"] > td[rowspan]:not([rowspan="1"]) {
|
|
233
|
+
background-color: var(--surface-hover, #f0f7ff) !important;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.ant-table-tbody > tr[data-row-tracked="true"] > td:first-child[rowspan]:not([rowspan="1"]),
|
|
237
|
+
.ant-table-tbody > tr[data-rowspan-group-tracked="true"] > td:first-child[rowspan]:not([rowspan="1"]),
|
|
238
|
+
tbody > tr[data-row-tracked="true"] > td:first-child[rowspan]:not([rowspan="1"]),
|
|
239
|
+
tbody > tr[data-rowspan-group-tracked="true"] > td:first-child[rowspan]:not([rowspan="1"]) {
|
|
240
|
+
box-shadow: inset 3px 0 0 var(--primary-color, #1677ff) !important;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* Hover lên dòng đang được đánh dấu (Tracked / Selected) */
|
|
244
|
+
.ant-table-tbody > tr.row-focus-tracked:hover > td:not([rowspan]),
|
|
245
|
+
.ant-table-tbody > tr.row-focus-tracked:hover > td[rowspan="1"],
|
|
246
|
+
.ant-table-tbody > tr[data-row-tracked="true"]:hover > td:not([rowspan]),
|
|
247
|
+
.ant-table-tbody > tr[data-row-tracked="true"]:hover > td[rowspan="1"],
|
|
248
|
+
tbody > tr.row-focus-tracked:hover > td:not([rowspan]),
|
|
249
|
+
tbody > tr.row-focus-tracked:hover > td[rowspan="1"],
|
|
250
|
+
tbody > tr[data-row-tracked="true"]:hover > td:not([rowspan]),
|
|
251
|
+
tbody > tr[data-row-tracked="true"]:hover > td[rowspan="1"],
|
|
252
|
+
tr.selected:hover > td,
|
|
253
|
+
tr.selected-row:hover > td {
|
|
254
|
+
background-color: var(--surface-row-tracked-hover, #d0e8ff) !important;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.ant-table-tbody > tr.row-focus-tracked:hover > td.ant-table-cell-fix-left,
|
|
258
|
+
.ant-table-tbody > tr.row-focus-tracked:hover > td.ant-table-cell-fix-right,
|
|
259
|
+
.ant-table-tbody > tr[data-row-tracked="true"]:hover > td.ant-table-cell-fix-left,
|
|
260
|
+
.ant-table-tbody > tr[data-row-tracked="true"]:hover > td.ant-table-cell-fix-right,
|
|
261
|
+
tr.selected:hover > td.ant-table-cell-fix-left,
|
|
262
|
+
tr.selected:hover > td.ant-table-cell-fix-right,
|
|
263
|
+
tr.selected-row:hover > td.ant-table-cell-fix-left,
|
|
264
|
+
tr.selected-row:hover > td.ant-table-cell-fix-right {
|
|
265
|
+
background-color: var(--surface-row-tracked-hover-solid, #d0e8ff) !important;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
tr.selected.bold-when-selected > td,
|
|
269
|
+
tr.selected-row > td {
|
|
270
|
+
font-weight: 600;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* 6. Single-Table Sticky Scroll Container (Prevents Split-Table Header Misalignment) */
|
|
274
|
+
.enterprise-matrix-scroll .ant-table-content {
|
|
275
|
+
max-height: calc(100vh - 255px);
|
|
276
|
+
overflow: auto;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/* 7. Interactive Links, Monospace Pills & Tabular Numbers */
|
|
280
|
+
table tbody tr td.link-detail,
|
|
281
|
+
.link-detail {
|
|
282
|
+
color: var(--primary-color, #1677ff);
|
|
283
|
+
cursor: pointer;
|
|
284
|
+
font-weight: 500;
|
|
285
|
+
transition: color 0.15s ease;
|
|
286
|
+
|
|
287
|
+
&:hover {
|
|
288
|
+
color: var(--primary-hover, #4096ff);
|
|
289
|
+
text-decoration: underline;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
table button.ant-btn-icon-only {
|
|
294
|
+
height: 24px;
|
|
295
|
+
width: 24px;
|
|
296
|
+
min-width: 24px;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.cell-mono,
|
|
300
|
+
.url-code-pill {
|
|
301
|
+
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
|
|
302
|
+
font-size: 12px;
|
|
303
|
+
color: var(--text-secondary, #334155);
|
|
304
|
+
background: var(--surface-muted, #f1f5f9);
|
|
305
|
+
padding: 2px 6px;
|
|
306
|
+
border-radius: var(--radius-xs, 4px);
|
|
307
|
+
border: 1px solid var(--border-default, #e2e8f0);
|
|
308
|
+
display: inline-block;
|
|
309
|
+
max-width: 100%;
|
|
310
|
+
overflow: hidden;
|
|
311
|
+
text-overflow: ellipsis;
|
|
312
|
+
white-space: nowrap;
|
|
313
|
+
vertical-align: middle;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.cell-number {
|
|
317
|
+
font-variant-numeric: tabular-nums;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.order-badge {
|
|
321
|
+
display: inline-flex;
|
|
322
|
+
align-items: center;
|
|
323
|
+
justify-content: center;
|
|
324
|
+
min-width: 34px;
|
|
325
|
+
height: 22px;
|
|
326
|
+
padding: 0 6px;
|
|
327
|
+
border-radius: var(--radius-xs, 4px);
|
|
328
|
+
background: var(--surface-subtle, #f8fafc);
|
|
329
|
+
border: 1px solid var(--border-default, #e2e8f0);
|
|
330
|
+
color: var(--text-secondary, #475569);
|
|
331
|
+
font-weight: 600;
|
|
332
|
+
font-size: 12px;
|
|
333
|
+
font-variant-numeric: tabular-nums;
|
|
334
|
+
cursor: pointer;
|
|
335
|
+
transition: all 0.15s ease;
|
|
336
|
+
|
|
337
|
+
&:hover {
|
|
338
|
+
border-color: var(--primary-color, #1677ff);
|
|
339
|
+
color: var(--primary-color, #1677ff);
|
|
340
|
+
background: var(--primary-bg-subtle, #eff6ff);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/* 8. Unified Row Action Button Group */
|
|
345
|
+
.action-btn-group {
|
|
346
|
+
display: inline-flex;
|
|
347
|
+
align-items: center;
|
|
348
|
+
justify-content: center;
|
|
349
|
+
gap: 4px;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.action-icon-btn {
|
|
353
|
+
display: inline-flex;
|
|
354
|
+
align-items: center;
|
|
355
|
+
justify-content: center;
|
|
356
|
+
width: 26px;
|
|
357
|
+
height: 26px;
|
|
358
|
+
border-radius: var(--radius-sm, 6px);
|
|
359
|
+
border: 1px solid transparent;
|
|
360
|
+
color: var(--text-muted, #64748b);
|
|
361
|
+
background: transparent;
|
|
362
|
+
cursor: pointer;
|
|
363
|
+
transition: all 0.15s ease;
|
|
364
|
+
padding: 0;
|
|
365
|
+
font-size: 14px;
|
|
366
|
+
|
|
367
|
+
&:hover {
|
|
368
|
+
background: var(--surface-muted, rgba(24, 144, 255, 0.1));
|
|
369
|
+
color: var(--text-primary, #1e293b);
|
|
370
|
+
border-color: var(--border-default, rgba(24, 144, 255, 0.25));
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
&.color-primary:hover {
|
|
374
|
+
background: var(--primary-bg-subtle, #eff6ff);
|
|
375
|
+
color: var(--primary-color, #1677ff);
|
|
376
|
+
border-color: var(--primary-border-subtle, #bfdbfe);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
&.color-warn:hover {
|
|
380
|
+
background: var(--danger-bg-subtle, rgba(255, 77, 79, 0.1));
|
|
381
|
+
color: var(--danger-color, #ef4444);
|
|
382
|
+
border-color: rgba(239, 68, 68, 0.3);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
&.color-success:hover {
|
|
386
|
+
background: var(--success-bg-subtle, #ecfdf5);
|
|
387
|
+
color: var(--success-color, #10b981);
|
|
388
|
+
border-color: rgba(16, 185, 129, 0.3);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/* 9. Column Filter Dropdown & Sorter Overrides */
|
|
393
|
+
th[nzcustomfilter] {
|
|
394
|
+
vertical-align: middle !important;
|
|
395
|
+
height: 100%;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
th[nzcustomfilter] .ant-table-filter-column {
|
|
399
|
+
display: flex;
|
|
400
|
+
align-items: center;
|
|
401
|
+
gap: 4px;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.ant-table-column-sorter {
|
|
405
|
+
background-color: transparent;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.ant-table-filter-dropdown {
|
|
409
|
+
border-radius: var(--radius-md, 8px);
|
|
410
|
+
box-shadow: var(--shadow-md);
|
|
411
|
+
background: var(--surface-card, #ffffff);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.search-box {
|
|
415
|
+
padding: 10px;
|
|
416
|
+
min-width: 220px;
|
|
417
|
+
|
|
418
|
+
input,
|
|
419
|
+
nz-range-picker,
|
|
420
|
+
extend-date-picker {
|
|
421
|
+
width: 100%;
|
|
422
|
+
margin-bottom: 8px;
|
|
423
|
+
display: block;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.search-button {
|
|
427
|
+
margin-right: 8px;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/* 10. Pagination Alignment */
|
|
432
|
+
.ant-table-pagination.ant-pagination {
|
|
433
|
+
margin: 8px 0 2px 0 !important;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/* 11. DARK MODE SUPPORT */
|
|
437
|
+
body.dark-theme {
|
|
438
|
+
.ant-table-thead > tr > th,
|
|
439
|
+
table thead tr th {
|
|
440
|
+
background-color: #222731 !important;
|
|
441
|
+
color: #e2e8f0 !important;
|
|
442
|
+
border-bottom-color: #303642 !important;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.ant-table-thead > tr.tr-search > th {
|
|
446
|
+
background-color: #1a1e26 !important;
|
|
447
|
+
border-bottom-color: #303642 !important;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
tbody:not(.no-odd-even)
|
|
451
|
+
> tr:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):not(
|
|
452
|
+
.ant-table-placeholder
|
|
453
|
+
):nth-child(even)
|
|
454
|
+
> td {
|
|
455
|
+
background-color: #1e232d;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.ant-table-tbody
|
|
459
|
+
> tr.ant-table-row:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):hover
|
|
460
|
+
> td,
|
|
461
|
+
tbody
|
|
462
|
+
> tr:not(.selected):not(.selected-row):not(.row-focus-tracked):not([data-row-tracked="true"]):not(
|
|
463
|
+
.ant-table-placeholder
|
|
464
|
+
):hover
|
|
465
|
+
> td {
|
|
466
|
+
background-color: rgba(59, 130, 246, 0.14) !important;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.ant-table-tbody > tr.row-focus-tracked > td:not([rowspan]),
|
|
470
|
+
.ant-table-tbody > tr.row-focus-tracked > td[rowspan="1"],
|
|
471
|
+
.ant-table-tbody > tr[data-row-tracked="true"] > td:not([rowspan]),
|
|
472
|
+
.ant-table-tbody > tr[data-row-tracked="true"] > td[rowspan="1"],
|
|
473
|
+
tbody > tr.row-focus-tracked > td:not([rowspan]),
|
|
474
|
+
tbody > tr.row-focus-tracked > td[rowspan="1"],
|
|
475
|
+
tbody > tr[data-row-tracked="true"] > td:not([rowspan]),
|
|
476
|
+
tbody > tr[data-row-tracked="true"] > td[rowspan="1"],
|
|
477
|
+
.ant-table-tbody > tr.selected-row > td,
|
|
478
|
+
.ant-table-tbody > tr.selected > td,
|
|
479
|
+
tr.selected > td,
|
|
480
|
+
tr.selected-row > td {
|
|
481
|
+
background-color: rgba(59, 130, 246, 0.24) !important;
|
|
482
|
+
box-shadow:
|
|
483
|
+
inset 0 1px 0 rgba(59, 130, 246, 0.45),
|
|
484
|
+
inset 0 -1px 0 rgba(59, 130, 246, 0.45);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.ant-table-tbody > tr.row-focus-tracked > td.ant-table-cell-fix-left,
|
|
488
|
+
.ant-table-tbody > tr.row-focus-tracked > td.ant-table-cell-fix-right,
|
|
489
|
+
.ant-table-tbody > tr[data-row-tracked="true"] > td.ant-table-cell-fix-left,
|
|
490
|
+
.ant-table-tbody > tr[data-row-tracked="true"] > td.ant-table-cell-fix-right,
|
|
491
|
+
.ant-table-tbody > tr.selected-row > td.ant-table-cell-fix-left,
|
|
492
|
+
.ant-table-tbody > tr.selected-row > td.ant-table-cell-fix-right,
|
|
493
|
+
.ant-table-tbody > tr.selected > td.ant-table-cell-fix-left,
|
|
494
|
+
.ant-table-tbody > tr.selected > td.ant-table-cell-fix-right {
|
|
495
|
+
background-color: #1e2d42 !important;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.ant-table-tbody > tr.row-focus-tracked:hover > td:not([rowspan]),
|
|
499
|
+
.ant-table-tbody > tr.row-focus-tracked:hover > td[rowspan="1"],
|
|
500
|
+
.ant-table-tbody > tr[data-row-tracked="true"]:hover > td:not([rowspan]),
|
|
501
|
+
.ant-table-tbody > tr[data-row-tracked="true"]:hover > td[rowspan="1"],
|
|
502
|
+
tbody > tr.row-focus-tracked:hover > td:not([rowspan]),
|
|
503
|
+
tbody > tr.row-focus-tracked:hover > td[rowspan="1"],
|
|
504
|
+
tbody > tr[data-row-tracked="true"]:hover > td:not([rowspan]),
|
|
505
|
+
tbody > tr[data-row-tracked="true"]:hover > td[rowspan="1"],
|
|
506
|
+
tr.selected:hover > td,
|
|
507
|
+
tr.selected-row:hover > td {
|
|
508
|
+
background-color: rgba(59, 130, 246, 0.32) !important;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.ant-table-tbody > tr.row-focus-tracked:hover > td.ant-table-cell-fix-left,
|
|
512
|
+
.ant-table-tbody > tr.row-focus-tracked:hover > td.ant-table-cell-fix-right,
|
|
513
|
+
.ant-table-tbody > tr[data-row-tracked="true"]:hover > td.ant-table-cell-fix-left,
|
|
514
|
+
.ant-table-tbody > tr[data-row-tracked="true"]:hover > td.ant-table-cell-fix-right,
|
|
515
|
+
tr.selected:hover > td.ant-table-cell-fix-left,
|
|
516
|
+
tr.selected:hover > td.ant-table-cell-fix-right,
|
|
517
|
+
tr.selected-row:hover > td.ant-table-cell-fix-left,
|
|
518
|
+
tr.selected-row:hover > td.ant-table-cell-fix-right {
|
|
519
|
+
background-color: #243752 !important;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.cell-mono,
|
|
523
|
+
.url-code-pill {
|
|
524
|
+
background: #262c36;
|
|
525
|
+
color: #e2e8f0;
|
|
526
|
+
border-color: #303642;
|
|
527
|
+
}
|
|
528
|
+
}
|