@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.scss
CHANGED
|
@@ -1,592 +1,615 @@
|
|
|
1
|
-
/* ==========================================================================
|
|
2
|
-
ENTERPRISE DESIGN SYSTEM & GLOBAL STYLESHEET (ANGULAR 19 + NG-ZORRO 19)
|
|
3
|
-
Architecture:
|
|
4
|
-
1. Design Tokens (:root, .dark-theme, .high-contrast)
|
|
5
|
-
2. Base Reset, Typography & Custom Scrollbars
|
|
6
|
-
3. Global NG-ZORRO Component Overrides (Modal, Drawer, Form, Input, Alert, Card)
|
|
7
|
-
4. Modular Style Partials (@import './styles/...')
|
|
8
|
-
========================================================================== */
|
|
9
|
-
|
|
10
|
-
/* --------------------------------------------------------------------------
|
|
11
|
-
1. DESIGN TOKENS (CSS CUSTOM PROPERTIES)
|
|
12
|
-
-------------------------------------------------------------------------- */
|
|
13
|
-
:root {
|
|
14
|
-
/* Layout Dimensions */
|
|
15
|
-
--app-header-height: 45px;
|
|
16
|
-
--app-footer-height: 22px;
|
|
17
|
-
--sidebar-width: 256px;
|
|
18
|
-
|
|
19
|
-
/* Theme & Brand Colors (Dynamically configurable via SettingService) */
|
|
20
|
-
--theme-color: #001529;
|
|
21
|
-
--theme-text-color: #ffffff;
|
|
22
|
-
--theme-menu-color: #ffffff;
|
|
23
|
-
--theme-menu-text-color: #1e293b;
|
|
24
|
-
|
|
25
|
-
--primary-color: #1677ff;
|
|
26
|
-
--primary-hover: #4096ff;
|
|
27
|
-
--primary-active: #0958d9;
|
|
28
|
-
--primary-bg-subtle: #eff6ff;
|
|
29
|
-
--primary-border-subtle: #bfdbfe;
|
|
30
|
-
|
|
31
|
-
/* Semantic Status Colors */
|
|
32
|
-
--success-color: #10b981;
|
|
33
|
-
--success-bg-subtle: #ecfdf5;
|
|
34
|
-
--warning-color: #f59e0b;
|
|
35
|
-
--warning-bg-subtle: #fffbeb;
|
|
36
|
-
--danger-color: #ef4444;
|
|
37
|
-
--danger-bg-subtle: #fef2f2;
|
|
38
|
-
--info-color: #0ea5e9;
|
|
39
|
-
--info-bg-subtle: #f0f9ff;
|
|
40
|
-
|
|
41
|
-
/* Surfaces & Backgrounds */
|
|
42
|
-
--surface-app: #f8fafc;
|
|
43
|
-
--surface-card: #ffffff;
|
|
44
|
-
--surface-elevated: #ffffff;
|
|
45
|
-
--surface-subtle: #f8fafc;
|
|
46
|
-
--surface-muted: #f1f5f9;
|
|
47
|
-
--surface-hover: #f0f7ff;
|
|
48
|
-
--surface-selected: #e6f4ff;
|
|
49
|
-
--surface-row-tracked: #e6f4ff;
|
|
50
|
-
--surface-row-tracked-solid: #e6f4ff;
|
|
51
|
-
--surface-row-tracked-hover: #d0e8ff;
|
|
52
|
-
--surface-row-tracked-hover-solid: #d0e8ff;
|
|
53
|
-
--border-row-tracked: rgba(22, 119, 255, 0.28);
|
|
54
|
-
--surface-zebra: #fafbfc;
|
|
55
|
-
--surface-code: #0f172a;
|
|
56
|
-
--text-code: #e2e8f0;
|
|
57
|
-
|
|
58
|
-
/* Text Hierarchy */
|
|
59
|
-
--text-primary: #1e293b;
|
|
60
|
-
--text-secondary: #475569;
|
|
61
|
-
--text-muted: #64748b;
|
|
62
|
-
--text-placeholder: #94a3b8;
|
|
63
|
-
--text-disabled: #334155;
|
|
64
|
-
--text-inverse: #ffffff;
|
|
65
|
-
|
|
66
|
-
/* Borders & Dividers */
|
|
67
|
-
--border-subtle: #f1f5f9;
|
|
68
|
-
--border-default: #e2e8f0;
|
|
69
|
-
--border-strong: #cbd5e1;
|
|
70
|
-
--border-focus: #1677ff;
|
|
71
|
-
|
|
72
|
-
/* Border Radius Scale */
|
|
73
|
-
--radius-xs: 4px;
|
|
74
|
-
--radius-sm: 6px;
|
|
75
|
-
--radius-md: 8px;
|
|
76
|
-
--radius-lg: 10px;
|
|
77
|
-
--radius-xl: 12px;
|
|
78
|
-
|
|
79
|
-
/* Elevation & Shadows */
|
|
80
|
-
--shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
|
|
81
|
-
--shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
|
|
82
|
-
--shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
|
|
83
|
-
--shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
|
|
84
|
-
|
|
85
|
-
/* Typography */
|
|
86
|
-
--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
87
|
-
--font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/* Dark Mode Palette (GitLab / Enterprise Dark Standard) */
|
|
91
|
-
body.dark-theme {
|
|
92
|
-
--theme-color: #1f242d;
|
|
93
|
-
--theme-text-color: #e2e8f0;
|
|
94
|
-
--theme-menu-color: #181c24;
|
|
95
|
-
--theme-menu-text-color: #cbd5e1;
|
|
96
|
-
|
|
97
|
-
--primary-color: #3b82f6;
|
|
98
|
-
--primary-hover: #60a5fa;
|
|
99
|
-
--primary-active: #2563eb;
|
|
100
|
-
--primary-bg-subtle: rgba(59, 130, 246, 0.15);
|
|
101
|
-
--primary-border-subtle: rgba(59, 130, 246, 0.35);
|
|
102
|
-
|
|
103
|
-
--surface-app: #11141a;
|
|
104
|
-
--surface-card: #1a1e26;
|
|
105
|
-
--surface-elevated: #222731;
|
|
106
|
-
--surface-subtle: #161a22;
|
|
107
|
-
--surface-muted: #262c36;
|
|
108
|
-
--surface-hover: rgba(59, 130, 246, 0.12);
|
|
109
|
-
--surface-selected: rgba(59, 130, 246, 0.22);
|
|
110
|
-
--surface-row-tracked: rgba(59, 130, 246, 0.24);
|
|
111
|
-
--surface-row-tracked-solid: #1e2d42;
|
|
112
|
-
--surface-row-tracked-hover: rgba(59, 130, 246, 0.32);
|
|
113
|
-
--surface-row-tracked-hover-solid: #243752;
|
|
114
|
-
--border-row-tracked: rgba(59, 130, 246, 0.45);
|
|
115
|
-
--surface-zebra: rgba(255, 255, 255, 0.015);
|
|
116
|
-
--surface-code: #0d1117;
|
|
117
|
-
--text-code: #e6edf3;
|
|
118
|
-
|
|
119
|
-
--text-primary: #e2e8f0;
|
|
120
|
-
--text-secondary: #94a3b8;
|
|
121
|
-
--text-muted: #64748b;
|
|
122
|
-
--text-placeholder: #475569;
|
|
123
|
-
--text-disabled: #94a3b8;
|
|
124
|
-
|
|
125
|
-
--border-subtle: #262c36;
|
|
126
|
-
--border-default: #303642;
|
|
127
|
-
--border-strong: #475569;
|
|
128
|
-
|
|
129
|
-
--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
|
|
130
|
-
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
|
|
131
|
-
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
|
|
132
|
-
--shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
|
|
133
|
-
|
|
134
|
-
color: var(--text-primary);
|
|
135
|
-
background-color: var(--surface-app);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/* High-Contrast Mode (Accessibility / Dense Readability) */
|
|
139
|
-
body.high-contrast {
|
|
140
|
-
--text-primary: #000000;
|
|
141
|
-
--text-secondary: #111827;
|
|
142
|
-
--border-default: #94a3b8;
|
|
143
|
-
--border-strong: #475569;
|
|
144
|
-
--surface-row-tracked: #dbeafe;
|
|
145
|
-
--surface-row-tracked-solid: #dbeafe;
|
|
146
|
-
--border-row-tracked: #2563eb;
|
|
147
|
-
font-weight: 500;
|
|
148
|
-
|
|
149
|
-
.ant-btn,
|
|
150
|
-
.ant-table,
|
|
151
|
-
.ant-menu-title-content,
|
|
152
|
-
.ant-select,
|
|
153
|
-
.ant-input,
|
|
154
|
-
.ant-form-item-label > label,
|
|
155
|
-
.ant-pagination,
|
|
156
|
-
.ant-tag {
|
|
157
|
-
font-weight: 500 !important;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.ant-table-thead > tr > th,
|
|
161
|
-
.ant-card-head-title,
|
|
162
|
-
.ant-modal-title,
|
|
163
|
-
.ant-drawer-title {
|
|
164
|
-
font-weight: 700 !important;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/* --------------------------------------------------------------------------
|
|
169
|
-
2. BASE RESET, TYPOGRAPHY & SCROLLBARS
|
|
170
|
-
-------------------------------------------------------------------------- */
|
|
171
|
-
*,
|
|
172
|
-
*::before,
|
|
173
|
-
*::after {
|
|
174
|
-
box-sizing: border-box;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
html,
|
|
178
|
-
body {
|
|
179
|
-
height: 100%;
|
|
180
|
-
margin: 0;
|
|
181
|
-
font-family: var(--font-sans);
|
|
182
|
-
font-size: 13px;
|
|
183
|
-
line-height: 1.5;
|
|
184
|
-
color: var(--text-primary);
|
|
185
|
-
background-color: var(--surface-app);
|
|
186
|
-
text-rendering: optimizeLegibility;
|
|
187
|
-
-webkit-font-smoothing: antialiased;
|
|
188
|
-
-moz-osx-font-smoothing: grayscale;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/* Custom Subtle Scrollbars for Enterprise Density */
|
|
192
|
-
* {
|
|
193
|
-
scrollbar-width: thin;
|
|
194
|
-
scrollbar-color: var(--border-strong) transparent;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
*::-webkit-scrollbar {
|
|
198
|
-
width: 6px;
|
|
199
|
-
height: 6px;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
*::-webkit-scrollbar-track {
|
|
203
|
-
background: transparent;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
*::-webkit-scrollbar-thumb {
|
|
207
|
-
background-color: var(--border-strong);
|
|
208
|
-
border-radius: 999px;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
*::-webkit-scrollbar-thumb:hover {
|
|
212
|
-
background-color: var(--text-muted);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
code,
|
|
216
|
-
pre {
|
|
217
|
-
font-family: var(--font-mono);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/* --------------------------------------------------------------------------
|
|
221
|
-
3. GLOBAL NG-ZORRO ENTERPRISE OVERRIDES
|
|
222
|
-
-------------------------------------------------------------------------- */
|
|
223
|
-
|
|
224
|
-
/* 3.1. Form Items & Labels */
|
|
225
|
-
.ant-form-item {
|
|
226
|
-
margin-bottom: 12px;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.form-item-no-bottom .ant-form-item,
|
|
230
|
-
.ant-form-item.form-item-no-bottom {
|
|
231
|
-
margin-bottom: 0 !important;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.ant-form-item-label > label {
|
|
235
|
-
display: inline-flex;
|
|
236
|
-
align-items: center;
|
|
237
|
-
width: 100%;
|
|
238
|
-
color: var(--text-primary);
|
|
239
|
-
font-weight: 500;
|
|
240
|
-
font-size: 13px;
|
|
241
|
-
white-space: normal;
|
|
242
|
-
height: auto;
|
|
243
|
-
min-height: 22px;
|
|
244
|
-
line-height: 1.35;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
/* Chuyển dấu * đỏ báo required ra phía sau label như chuẩn cũ của hệ thống */
|
|
248
|
-
.ant-form-item-label > label.ant-form-item-required::before,
|
|
249
|
-
.ant-form-item-required::before {
|
|
250
|
-
display: none !important;
|
|
251
|
-
margin-right: 0px !important;
|
|
252
|
-
content: "" !important;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.ant-form-item-label > label.ant-form-item-required::after,
|
|
256
|
-
.ant-form-item-required::after {
|
|
257
|
-
display: inline-block !important;
|
|
258
|
-
margin-left: 4px !important;
|
|
259
|
-
color: #ff4d4f !important;
|
|
260
|
-
font-size: 14px !important;
|
|
261
|
-
font-family: SimSun, sans-serif !important;
|
|
262
|
-
line-height: 1 !important;
|
|
263
|
-
content: "*" !important;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/* Floating Label đè nhẹ lên viền trên của input (notch style) nhưng không cao quá 16px gây che chữ bên trong */
|
|
267
|
-
.floating-label,
|
|
268
|
-
.has-floating-label.floating-label {
|
|
269
|
-
position: relative;
|
|
270
|
-
padding-top: 14px !important;
|
|
271
|
-
|
|
272
|
-
nz-form-item,
|
|
273
|
-
.ant-form-item {
|
|
274
|
-
position: static !important;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.ant-form-item-label,
|
|
278
|
-
nz-form-label {
|
|
279
|
-
position: absolute !important;
|
|
280
|
-
top: 12px !important;
|
|
281
|
-
left: 5px !important;
|
|
282
|
-
transform: translateY(-50%) !important;
|
|
283
|
-
z-index: 2 !important;
|
|
284
|
-
height: auto !important;
|
|
285
|
-
min-height: 0 !important;
|
|
286
|
-
max-height: 16px;
|
|
287
|
-
line-height: 1.15 !important;
|
|
288
|
-
max-width: calc(100% - 10px);
|
|
289
|
-
padding: 0 4px !important;
|
|
290
|
-
margin: 0 !important;
|
|
291
|
-
overflow: hidden;
|
|
292
|
-
white-space: nowrap !important;
|
|
293
|
-
text-overflow: ellipsis;
|
|
294
|
-
pointer-events: none;
|
|
295
|
-
background: linear-gradient(
|
|
296
|
-
to bottom,
|
|
297
|
-
var(--form-bg-color, var(--surface-card, #ffffff)) 80%,
|
|
298
|
-
var(--surface-card, #ffffff) 80%
|
|
299
|
-
) !important;
|
|
300
|
-
|
|
301
|
-
> label {
|
|
302
|
-
display: inline-flex !important;
|
|
303
|
-
align-items: center;
|
|
304
|
-
width: auto !important;
|
|
305
|
-
max-width: 100%;
|
|
306
|
-
height: auto !important;
|
|
307
|
-
min-height: 0 !important;
|
|
308
|
-
line-height: 1.15 !important;
|
|
309
|
-
padding: 0 !important;
|
|
310
|
-
margin: 0 !important;
|
|
311
|
-
font-size: 12px !important;
|
|
312
|
-
font-weight: bold !important;
|
|
313
|
-
color: var(--darkgray, #565656);
|
|
314
|
-
white-space: nowrap !important;
|
|
315
|
-
overflow: hidden;
|
|
316
|
-
text-overflow: ellipsis;
|
|
317
|
-
pointer-events: auto;
|
|
318
|
-
|
|
319
|
-
&.ant-form-item-required::before {
|
|
320
|
-
display: none !important;
|
|
321
|
-
margin-right: 0 !important;
|
|
322
|
-
content: "" !important;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
&.ant-form-item-required::after {
|
|
326
|
-
display: inline-block !important;
|
|
327
|
-
margin-left: 4px !important;
|
|
328
|
-
color: #ff4d4f !important;
|
|
329
|
-
font-size: 14px !important;
|
|
330
|
-
font-family: SimSun, sans-serif !important;
|
|
331
|
-
line-height: 1 !important;
|
|
332
|
-
content: "*" !important;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
&:not(.ant-form-item-required)::after {
|
|
336
|
-
display: none !important;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
/* Disabled Inputs: Maintain High Readability in Both Light & Dark Themes */
|
|
343
|
-
.ant-input[disabled],
|
|
344
|
-
.ant-input-disabled,
|
|
345
|
-
input[disabled],
|
|
346
|
-
textarea[disabled],
|
|
347
|
-
.ant-input-number-disabled,
|
|
348
|
-
.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
349
|
-
color: var(--text-disabled) !important;
|
|
350
|
-
background-color: var(--surface-muted) !important;
|
|
351
|
-
border-color: var(--border-default) !important;
|
|
352
|
-
cursor: not-allowed;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
.ant-checkbox-disabled + span {
|
|
356
|
-
color: var(--text-disabled) !important;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
/* 3.2. Floating Label Pattern (Used by extend-input / extend-select) */
|
|
360
|
-
.floating-group {
|
|
361
|
-
position: relative;
|
|
362
|
-
display: block;
|
|
363
|
-
|
|
364
|
-
.floating-input {
|
|
365
|
-
height: 36px;
|
|
366
|
-
padding: 0 11px;
|
|
367
|
-
font-size: 13px;
|
|
368
|
-
border-radius: var(--radius-xs);
|
|
369
|
-
transition:
|
|
370
|
-
border-color 0.2s ease,
|
|
371
|
-
box-shadow 0.2s ease;
|
|
372
|
-
|
|
373
|
-
&:focus,
|
|
374
|
-
&.ant-select-focused {
|
|
375
|
-
border-color: var(--border-focus);
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.floating-label {
|
|
380
|
-
position: absolute;
|
|
381
|
-
left: 10px;
|
|
382
|
-
top: 50%;
|
|
383
|
-
transform: translateY(-50%);
|
|
384
|
-
background: transparent;
|
|
385
|
-
padding: 0 4px;
|
|
386
|
-
color: var(--text-placeholder);
|
|
387
|
-
font-size: 13px;
|
|
388
|
-
pointer-events: none;
|
|
389
|
-
transition: all 0.16s ease;
|
|
390
|
-
z-index: 2;
|
|
391
|
-
line-height: 1;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
&.active .floating-label {
|
|
395
|
-
top: 0;
|
|
396
|
-
transform: translateY(-50%);
|
|
397
|
-
font-size: 11.5px;
|
|
398
|
-
color: var(--primary-color);
|
|
399
|
-
font-weight: 600;
|
|
400
|
-
background: linear-gradient(to bottom, transparent 45%, var(--surface-card) 45%);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
&.active.disabled .floating-label {
|
|
404
|
-
background: linear-gradient(to bottom, var(--surface-card) 50%, var(--surface-muted) 50%);
|
|
405
|
-
color: var(--text-muted);
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
/* 3.3. Modals & Drawers */
|
|
410
|
-
.ant-modal-content {
|
|
411
|
-
border-radius: var(--radius-md);
|
|
412
|
-
overflow: hidden;
|
|
413
|
-
box-shadow: var(--shadow-lg);
|
|
414
|
-
background-color: var(--surface-card);
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
.ant-modal-header {
|
|
418
|
-
padding: 12px 16px !important;
|
|
419
|
-
background-color: var(--surface-subtle) !important;
|
|
420
|
-
border-bottom: 1px solid var(--border-default) !important;
|
|
421
|
-
|
|
422
|
-
.ant-modal-title {
|
|
423
|
-
font-size: 15px;
|
|
424
|
-
font-weight: 600;
|
|
425
|
-
color: var(--text-primary);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.ant-modal-close-x {
|
|
430
|
-
width: 44px;
|
|
431
|
-
height: 44px;
|
|
432
|
-
line-height: 44px;
|
|
433
|
-
color: var(--text-muted);
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
.ant-modal-body {
|
|
437
|
-
padding: 16px !important;
|
|
438
|
-
max-height: calc(100vh - 180px);
|
|
439
|
-
overflow-y: auto;
|
|
440
|
-
background-color: var(--surface-card);
|
|
441
|
-
color: var(--text-primary);
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
.ant-modal-footer {
|
|
445
|
-
padding: 10px 16px !important;
|
|
446
|
-
background-color: var(--surface-subtle) !important;
|
|
447
|
-
border-top: 1px solid var(--border-default) !important;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
.ant-drawer-header {
|
|
451
|
-
padding: 12px 16px !important;
|
|
452
|
-
background-color: var(--surface-subtle);
|
|
453
|
-
border-bottom: 1px solid var(--border-default);
|
|
454
|
-
|
|
455
|
-
.ant-drawer-title {
|
|
456
|
-
font-size: 15px;
|
|
457
|
-
font-weight: 600;
|
|
458
|
-
color: var(--text-primary);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
.ant-drawer-body {
|
|
463
|
-
padding: 16px;
|
|
464
|
-
background-color: var(--surface-card);
|
|
465
|
-
color: var(--text-primary);
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
.ant-drawer-footer {
|
|
469
|
-
padding: 10px 16px !important;
|
|
470
|
-
background-color: var(--surface-subtle);
|
|
471
|
-
border-top: 1px solid var(--border-default);
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
/* 3.4. Dividers, Alerts, Cards & Descriptions */
|
|
475
|
-
.ant-divider-horizontal {
|
|
476
|
-
margin: 12px 0;
|
|
477
|
-
border-top-color: var(--border-default);
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
.ant-alert {
|
|
481
|
-
padding: 8px 12px;
|
|
482
|
-
border-radius: var(--radius-sm);
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
.ant-card {
|
|
486
|
-
border-radius: var(--radius-md);
|
|
487
|
-
border-color: var(--border-default);
|
|
488
|
-
background-color: var(--surface-card);
|
|
489
|
-
color: var(--text-primary);
|
|
490
|
-
box-shadow: var(--shadow-xs);
|
|
491
|
-
|
|
492
|
-
.ant-card-head {
|
|
493
|
-
min-height: 40px;
|
|
494
|
-
padding: 0 16px;
|
|
495
|
-
background-color: var(--surface-subtle);
|
|
496
|
-
border-bottom: 1px solid var(--border-default);
|
|
497
|
-
font-weight: 600;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
.ant-card-head-title {
|
|
501
|
-
padding: 10px 0;
|
|
502
|
-
font-size: 14px;
|
|
503
|
-
color: var(--text-primary);
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
.ant-card-body {
|
|
507
|
-
padding: 16px;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
.ant-descriptions-header {
|
|
512
|
-
margin-bottom: 8px;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
/* 3.5. Segmented Control */
|
|
516
|
-
.ant-segmented {
|
|
517
|
-
background-color: var(--surface-muted);
|
|
518
|
-
padding: 2px;
|
|
519
|
-
border-radius: var(--radius-sm);
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
.ant-segmented-item-selected {
|
|
523
|
-
background-color: var(--primary-color) !important;
|
|
524
|
-
color: var(--text-inverse) !important;
|
|
525
|
-
font-weight: 600;
|
|
526
|
-
border-radius: var(--radius-xs);
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
/* 3.6. Dark Mode Component Adjustments */
|
|
530
|
-
body.dark-theme {
|
|
531
|
-
.ant-input,
|
|
532
|
-
.ant-input-number,
|
|
533
|
-
.ant-input-affix-wrapper,
|
|
534
|
-
.ant-picker,
|
|
535
|
-
.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
536
|
-
background-color: var(--surface-subtle);
|
|
537
|
-
border-color: var(--border-default);
|
|
538
|
-
color: var(--text-primary);
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
.ant-input::placeholder,
|
|
542
|
-
.ant-select-selection-placeholder {
|
|
543
|
-
color: var(--text-placeholder);
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
.ant-btn-default {
|
|
547
|
-
background-color: var(--surface-elevated);
|
|
548
|
-
border-color: var(--border-default);
|
|
549
|
-
color: var(--text-primary);
|
|
550
|
-
|
|
551
|
-
&:hover {
|
|
552
|
-
border-color: var(--primary-hover);
|
|
553
|
-
color: var(--primary-hover);
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
.ant-dropdown-menu,
|
|
558
|
-
.ant-select-dropdown,
|
|
559
|
-
.ant-picker-panel-container {
|
|
560
|
-
background-color: var(--surface-elevated);
|
|
561
|
-
border: 1px solid var(--border-default);
|
|
562
|
-
color: var(--text-primary);
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
.ant-select-item,
|
|
566
|
-
.ant-dropdown-menu-item {
|
|
567
|
-
color: var(--text-primary);
|
|
568
|
-
|
|
569
|
-
&:hover,
|
|
570
|
-
&.ant-select-item-option-active {
|
|
571
|
-
background-color: var(--surface-hover);
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
.ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
|
|
576
|
-
background-color: var(--surface-selected);
|
|
577
|
-
color: var(--primary-hover);
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
ENTERPRISE DESIGN SYSTEM & GLOBAL STYLESHEET (ANGULAR 19 + NG-ZORRO 19)
|
|
3
|
+
Architecture:
|
|
4
|
+
1. Design Tokens (:root, .dark-theme, .high-contrast)
|
|
5
|
+
2. Base Reset, Typography & Custom Scrollbars
|
|
6
|
+
3. Global NG-ZORRO Component Overrides (Modal, Drawer, Form, Input, Alert, Card)
|
|
7
|
+
4. Modular Style Partials (@import './styles/...')
|
|
8
|
+
========================================================================== */
|
|
9
|
+
|
|
10
|
+
/* --------------------------------------------------------------------------
|
|
11
|
+
1. DESIGN TOKENS (CSS CUSTOM PROPERTIES)
|
|
12
|
+
-------------------------------------------------------------------------- */
|
|
13
|
+
:root {
|
|
14
|
+
/* Layout Dimensions */
|
|
15
|
+
--app-header-height: 45px;
|
|
16
|
+
--app-footer-height: 22px;
|
|
17
|
+
--sidebar-width: 256px;
|
|
18
|
+
|
|
19
|
+
/* Theme & Brand Colors (Dynamically configurable via SettingService) */
|
|
20
|
+
--theme-color: #001529;
|
|
21
|
+
--theme-text-color: #ffffff;
|
|
22
|
+
--theme-menu-color: #ffffff;
|
|
23
|
+
--theme-menu-text-color: #1e293b;
|
|
24
|
+
|
|
25
|
+
--primary-color: #1677ff;
|
|
26
|
+
--primary-hover: #4096ff;
|
|
27
|
+
--primary-active: #0958d9;
|
|
28
|
+
--primary-bg-subtle: #eff6ff;
|
|
29
|
+
--primary-border-subtle: #bfdbfe;
|
|
30
|
+
|
|
31
|
+
/* Semantic Status Colors */
|
|
32
|
+
--success-color: #10b981;
|
|
33
|
+
--success-bg-subtle: #ecfdf5;
|
|
34
|
+
--warning-color: #f59e0b;
|
|
35
|
+
--warning-bg-subtle: #fffbeb;
|
|
36
|
+
--danger-color: #ef4444;
|
|
37
|
+
--danger-bg-subtle: #fef2f2;
|
|
38
|
+
--info-color: #0ea5e9;
|
|
39
|
+
--info-bg-subtle: #f0f9ff;
|
|
40
|
+
|
|
41
|
+
/* Surfaces & Backgrounds */
|
|
42
|
+
--surface-app: #f8fafc;
|
|
43
|
+
--surface-card: #ffffff;
|
|
44
|
+
--surface-elevated: #ffffff;
|
|
45
|
+
--surface-subtle: #f8fafc;
|
|
46
|
+
--surface-muted: #f1f5f9;
|
|
47
|
+
--surface-hover: #f0f7ff;
|
|
48
|
+
--surface-selected: #e6f4ff;
|
|
49
|
+
--surface-row-tracked: #e6f4ff;
|
|
50
|
+
--surface-row-tracked-solid: #e6f4ff;
|
|
51
|
+
--surface-row-tracked-hover: #d0e8ff;
|
|
52
|
+
--surface-row-tracked-hover-solid: #d0e8ff;
|
|
53
|
+
--border-row-tracked: rgba(22, 119, 255, 0.28);
|
|
54
|
+
--surface-zebra: #fafbfc;
|
|
55
|
+
--surface-code: #0f172a;
|
|
56
|
+
--text-code: #e2e8f0;
|
|
57
|
+
|
|
58
|
+
/* Text Hierarchy */
|
|
59
|
+
--text-primary: #1e293b;
|
|
60
|
+
--text-secondary: #475569;
|
|
61
|
+
--text-muted: #64748b;
|
|
62
|
+
--text-placeholder: #94a3b8;
|
|
63
|
+
--text-disabled: #334155;
|
|
64
|
+
--text-inverse: #ffffff;
|
|
65
|
+
|
|
66
|
+
/* Borders & Dividers */
|
|
67
|
+
--border-subtle: #f1f5f9;
|
|
68
|
+
--border-default: #e2e8f0;
|
|
69
|
+
--border-strong: #cbd5e1;
|
|
70
|
+
--border-focus: #1677ff;
|
|
71
|
+
|
|
72
|
+
/* Border Radius Scale */
|
|
73
|
+
--radius-xs: 4px;
|
|
74
|
+
--radius-sm: 6px;
|
|
75
|
+
--radius-md: 8px;
|
|
76
|
+
--radius-lg: 10px;
|
|
77
|
+
--radius-xl: 12px;
|
|
78
|
+
|
|
79
|
+
/* Elevation & Shadows */
|
|
80
|
+
--shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
|
|
81
|
+
--shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
|
|
82
|
+
--shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
|
|
83
|
+
--shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
|
|
84
|
+
|
|
85
|
+
/* Typography */
|
|
86
|
+
--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
87
|
+
--font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Dark Mode Palette (GitLab / Enterprise Dark Standard) */
|
|
91
|
+
body.dark-theme {
|
|
92
|
+
--theme-color: #1f242d;
|
|
93
|
+
--theme-text-color: #e2e8f0;
|
|
94
|
+
--theme-menu-color: #181c24;
|
|
95
|
+
--theme-menu-text-color: #cbd5e1;
|
|
96
|
+
|
|
97
|
+
--primary-color: #3b82f6;
|
|
98
|
+
--primary-hover: #60a5fa;
|
|
99
|
+
--primary-active: #2563eb;
|
|
100
|
+
--primary-bg-subtle: rgba(59, 130, 246, 0.15);
|
|
101
|
+
--primary-border-subtle: rgba(59, 130, 246, 0.35);
|
|
102
|
+
|
|
103
|
+
--surface-app: #11141a;
|
|
104
|
+
--surface-card: #1a1e26;
|
|
105
|
+
--surface-elevated: #222731;
|
|
106
|
+
--surface-subtle: #161a22;
|
|
107
|
+
--surface-muted: #262c36;
|
|
108
|
+
--surface-hover: rgba(59, 130, 246, 0.12);
|
|
109
|
+
--surface-selected: rgba(59, 130, 246, 0.22);
|
|
110
|
+
--surface-row-tracked: rgba(59, 130, 246, 0.24);
|
|
111
|
+
--surface-row-tracked-solid: #1e2d42;
|
|
112
|
+
--surface-row-tracked-hover: rgba(59, 130, 246, 0.32);
|
|
113
|
+
--surface-row-tracked-hover-solid: #243752;
|
|
114
|
+
--border-row-tracked: rgba(59, 130, 246, 0.45);
|
|
115
|
+
--surface-zebra: rgba(255, 255, 255, 0.015);
|
|
116
|
+
--surface-code: #0d1117;
|
|
117
|
+
--text-code: #e6edf3;
|
|
118
|
+
|
|
119
|
+
--text-primary: #e2e8f0;
|
|
120
|
+
--text-secondary: #94a3b8;
|
|
121
|
+
--text-muted: #64748b;
|
|
122
|
+
--text-placeholder: #475569;
|
|
123
|
+
--text-disabled: #94a3b8;
|
|
124
|
+
|
|
125
|
+
--border-subtle: #262c36;
|
|
126
|
+
--border-default: #303642;
|
|
127
|
+
--border-strong: #475569;
|
|
128
|
+
|
|
129
|
+
--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
|
|
130
|
+
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
|
|
131
|
+
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
|
|
132
|
+
--shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
|
|
133
|
+
|
|
134
|
+
color: var(--text-primary);
|
|
135
|
+
background-color: var(--surface-app);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* High-Contrast Mode (Accessibility / Dense Readability) */
|
|
139
|
+
body.high-contrast {
|
|
140
|
+
--text-primary: #000000;
|
|
141
|
+
--text-secondary: #111827;
|
|
142
|
+
--border-default: #94a3b8;
|
|
143
|
+
--border-strong: #475569;
|
|
144
|
+
--surface-row-tracked: #dbeafe;
|
|
145
|
+
--surface-row-tracked-solid: #dbeafe;
|
|
146
|
+
--border-row-tracked: #2563eb;
|
|
147
|
+
font-weight: 500;
|
|
148
|
+
|
|
149
|
+
.ant-btn,
|
|
150
|
+
.ant-table,
|
|
151
|
+
.ant-menu-title-content,
|
|
152
|
+
.ant-select,
|
|
153
|
+
.ant-input,
|
|
154
|
+
.ant-form-item-label > label,
|
|
155
|
+
.ant-pagination,
|
|
156
|
+
.ant-tag {
|
|
157
|
+
font-weight: 500 !important;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.ant-table-thead > tr > th,
|
|
161
|
+
.ant-card-head-title,
|
|
162
|
+
.ant-modal-title,
|
|
163
|
+
.ant-drawer-title {
|
|
164
|
+
font-weight: 700 !important;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* --------------------------------------------------------------------------
|
|
169
|
+
2. BASE RESET, TYPOGRAPHY & SCROLLBARS
|
|
170
|
+
-------------------------------------------------------------------------- */
|
|
171
|
+
*,
|
|
172
|
+
*::before,
|
|
173
|
+
*::after {
|
|
174
|
+
box-sizing: border-box;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
html,
|
|
178
|
+
body {
|
|
179
|
+
height: 100%;
|
|
180
|
+
margin: 0;
|
|
181
|
+
font-family: var(--font-sans);
|
|
182
|
+
font-size: 13px;
|
|
183
|
+
line-height: 1.5;
|
|
184
|
+
color: var(--text-primary);
|
|
185
|
+
background-color: var(--surface-app);
|
|
186
|
+
text-rendering: optimizeLegibility;
|
|
187
|
+
-webkit-font-smoothing: antialiased;
|
|
188
|
+
-moz-osx-font-smoothing: grayscale;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* Custom Subtle Scrollbars for Enterprise Density */
|
|
192
|
+
* {
|
|
193
|
+
scrollbar-width: thin;
|
|
194
|
+
scrollbar-color: var(--border-strong) transparent;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
*::-webkit-scrollbar {
|
|
198
|
+
width: 6px;
|
|
199
|
+
height: 6px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
*::-webkit-scrollbar-track {
|
|
203
|
+
background: transparent;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
*::-webkit-scrollbar-thumb {
|
|
207
|
+
background-color: var(--border-strong);
|
|
208
|
+
border-radius: 999px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
*::-webkit-scrollbar-thumb:hover {
|
|
212
|
+
background-color: var(--text-muted);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
code,
|
|
216
|
+
pre {
|
|
217
|
+
font-family: var(--font-mono);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/* --------------------------------------------------------------------------
|
|
221
|
+
3. GLOBAL NG-ZORRO ENTERPRISE OVERRIDES
|
|
222
|
+
-------------------------------------------------------------------------- */
|
|
223
|
+
|
|
224
|
+
/* 3.1. Form Items & Labels */
|
|
225
|
+
.ant-form-item {
|
|
226
|
+
margin-bottom: 12px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.form-item-no-bottom .ant-form-item,
|
|
230
|
+
.ant-form-item.form-item-no-bottom {
|
|
231
|
+
margin-bottom: 0 !important;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.ant-form-item-label > label {
|
|
235
|
+
display: inline-flex;
|
|
236
|
+
align-items: center;
|
|
237
|
+
width: 100%;
|
|
238
|
+
color: var(--text-primary);
|
|
239
|
+
font-weight: 500;
|
|
240
|
+
font-size: 13px;
|
|
241
|
+
white-space: normal;
|
|
242
|
+
height: auto;
|
|
243
|
+
min-height: 22px;
|
|
244
|
+
line-height: 1.35;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* Chuyển dấu * đỏ báo required ra phía sau label như chuẩn cũ của hệ thống */
|
|
248
|
+
.ant-form-item-label > label.ant-form-item-required::before,
|
|
249
|
+
.ant-form-item-required::before {
|
|
250
|
+
display: none !important;
|
|
251
|
+
margin-right: 0px !important;
|
|
252
|
+
content: "" !important;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.ant-form-item-label > label.ant-form-item-required::after,
|
|
256
|
+
.ant-form-item-required::after {
|
|
257
|
+
display: inline-block !important;
|
|
258
|
+
margin-left: 4px !important;
|
|
259
|
+
color: #ff4d4f !important;
|
|
260
|
+
font-size: 14px !important;
|
|
261
|
+
font-family: SimSun, sans-serif !important;
|
|
262
|
+
line-height: 1 !important;
|
|
263
|
+
content: "*" !important;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* Floating Label đè nhẹ lên viền trên của input (notch style) nhưng không cao quá 16px gây che chữ bên trong */
|
|
267
|
+
.floating-label,
|
|
268
|
+
.has-floating-label.floating-label {
|
|
269
|
+
position: relative;
|
|
270
|
+
padding-top: 14px !important;
|
|
271
|
+
|
|
272
|
+
nz-form-item,
|
|
273
|
+
.ant-form-item {
|
|
274
|
+
position: static !important;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.ant-form-item-label,
|
|
278
|
+
nz-form-label {
|
|
279
|
+
position: absolute !important;
|
|
280
|
+
top: 12px !important;
|
|
281
|
+
left: 5px !important;
|
|
282
|
+
transform: translateY(-50%) !important;
|
|
283
|
+
z-index: 2 !important;
|
|
284
|
+
height: auto !important;
|
|
285
|
+
min-height: 0 !important;
|
|
286
|
+
max-height: 16px;
|
|
287
|
+
line-height: 1.15 !important;
|
|
288
|
+
max-width: calc(100% - 10px);
|
|
289
|
+
padding: 0 4px !important;
|
|
290
|
+
margin: 0 !important;
|
|
291
|
+
overflow: hidden;
|
|
292
|
+
white-space: nowrap !important;
|
|
293
|
+
text-overflow: ellipsis;
|
|
294
|
+
pointer-events: none;
|
|
295
|
+
background: linear-gradient(
|
|
296
|
+
to bottom,
|
|
297
|
+
var(--form-bg-color, var(--surface-card, #ffffff)) 80%,
|
|
298
|
+
var(--surface-card, #ffffff) 80%
|
|
299
|
+
) !important;
|
|
300
|
+
|
|
301
|
+
> label {
|
|
302
|
+
display: inline-flex !important;
|
|
303
|
+
align-items: center;
|
|
304
|
+
width: auto !important;
|
|
305
|
+
max-width: 100%;
|
|
306
|
+
height: auto !important;
|
|
307
|
+
min-height: 0 !important;
|
|
308
|
+
line-height: 1.15 !important;
|
|
309
|
+
padding: 0 !important;
|
|
310
|
+
margin: 0 !important;
|
|
311
|
+
font-size: 12px !important;
|
|
312
|
+
font-weight: bold !important;
|
|
313
|
+
color: var(--darkgray, #565656);
|
|
314
|
+
white-space: nowrap !important;
|
|
315
|
+
overflow: hidden;
|
|
316
|
+
text-overflow: ellipsis;
|
|
317
|
+
pointer-events: auto;
|
|
318
|
+
|
|
319
|
+
&.ant-form-item-required::before {
|
|
320
|
+
display: none !important;
|
|
321
|
+
margin-right: 0 !important;
|
|
322
|
+
content: "" !important;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
&.ant-form-item-required::after {
|
|
326
|
+
display: inline-block !important;
|
|
327
|
+
margin-left: 4px !important;
|
|
328
|
+
color: #ff4d4f !important;
|
|
329
|
+
font-size: 14px !important;
|
|
330
|
+
font-family: SimSun, sans-serif !important;
|
|
331
|
+
line-height: 1 !important;
|
|
332
|
+
content: "*" !important;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
&:not(.ant-form-item-required)::after {
|
|
336
|
+
display: none !important;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* Disabled Inputs: Maintain High Readability in Both Light & Dark Themes */
|
|
343
|
+
.ant-input[disabled],
|
|
344
|
+
.ant-input-disabled,
|
|
345
|
+
input[disabled],
|
|
346
|
+
textarea[disabled],
|
|
347
|
+
.ant-input-number-disabled,
|
|
348
|
+
.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
349
|
+
color: var(--text-disabled) !important;
|
|
350
|
+
background-color: var(--surface-muted) !important;
|
|
351
|
+
border-color: var(--border-default) !important;
|
|
352
|
+
cursor: not-allowed;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.ant-checkbox-disabled + span {
|
|
356
|
+
color: var(--text-disabled) !important;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/* 3.2. Floating Label Pattern (Used by extend-input / extend-select) */
|
|
360
|
+
.floating-group {
|
|
361
|
+
position: relative;
|
|
362
|
+
display: block;
|
|
363
|
+
|
|
364
|
+
.floating-input {
|
|
365
|
+
height: 36px;
|
|
366
|
+
padding: 0 11px;
|
|
367
|
+
font-size: 13px;
|
|
368
|
+
border-radius: var(--radius-xs);
|
|
369
|
+
transition:
|
|
370
|
+
border-color 0.2s ease,
|
|
371
|
+
box-shadow 0.2s ease;
|
|
372
|
+
|
|
373
|
+
&:focus,
|
|
374
|
+
&.ant-select-focused {
|
|
375
|
+
border-color: var(--border-focus);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.floating-label {
|
|
380
|
+
position: absolute;
|
|
381
|
+
left: 10px;
|
|
382
|
+
top: 50%;
|
|
383
|
+
transform: translateY(-50%);
|
|
384
|
+
background: transparent;
|
|
385
|
+
padding: 0 4px;
|
|
386
|
+
color: var(--text-placeholder);
|
|
387
|
+
font-size: 13px;
|
|
388
|
+
pointer-events: none;
|
|
389
|
+
transition: all 0.16s ease;
|
|
390
|
+
z-index: 2;
|
|
391
|
+
line-height: 1;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
&.active .floating-label {
|
|
395
|
+
top: 0;
|
|
396
|
+
transform: translateY(-50%);
|
|
397
|
+
font-size: 11.5px;
|
|
398
|
+
color: var(--primary-color);
|
|
399
|
+
font-weight: 600;
|
|
400
|
+
background: linear-gradient(to bottom, transparent 45%, var(--surface-card) 45%);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
&.active.disabled .floating-label {
|
|
404
|
+
background: linear-gradient(to bottom, var(--surface-card) 50%, var(--surface-muted) 50%);
|
|
405
|
+
color: var(--text-muted);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/* 3.3. Modals & Drawers */
|
|
410
|
+
.ant-modal-content {
|
|
411
|
+
border-radius: var(--radius-md);
|
|
412
|
+
overflow: hidden;
|
|
413
|
+
box-shadow: var(--shadow-lg);
|
|
414
|
+
background-color: var(--surface-card);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.ant-modal-header {
|
|
418
|
+
padding: 12px 16px !important;
|
|
419
|
+
background-color: var(--surface-subtle) !important;
|
|
420
|
+
border-bottom: 1px solid var(--border-default) !important;
|
|
421
|
+
|
|
422
|
+
.ant-modal-title {
|
|
423
|
+
font-size: 15px;
|
|
424
|
+
font-weight: 600;
|
|
425
|
+
color: var(--text-primary);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.ant-modal-close-x {
|
|
430
|
+
width: 44px;
|
|
431
|
+
height: 44px;
|
|
432
|
+
line-height: 44px;
|
|
433
|
+
color: var(--text-muted);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.ant-modal-body {
|
|
437
|
+
padding: 16px !important;
|
|
438
|
+
max-height: calc(100vh - 180px);
|
|
439
|
+
overflow-y: auto;
|
|
440
|
+
background-color: var(--surface-card);
|
|
441
|
+
color: var(--text-primary);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.ant-modal-footer {
|
|
445
|
+
padding: 10px 16px !important;
|
|
446
|
+
background-color: var(--surface-subtle) !important;
|
|
447
|
+
border-top: 1px solid var(--border-default) !important;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.ant-drawer-header {
|
|
451
|
+
padding: 12px 16px !important;
|
|
452
|
+
background-color: var(--surface-subtle);
|
|
453
|
+
border-bottom: 1px solid var(--border-default);
|
|
454
|
+
|
|
455
|
+
.ant-drawer-title {
|
|
456
|
+
font-size: 15px;
|
|
457
|
+
font-weight: 600;
|
|
458
|
+
color: var(--text-primary);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.ant-drawer-body {
|
|
463
|
+
padding: 16px;
|
|
464
|
+
background-color: var(--surface-card);
|
|
465
|
+
color: var(--text-primary);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.ant-drawer-footer {
|
|
469
|
+
padding: 10px 16px !important;
|
|
470
|
+
background-color: var(--surface-subtle);
|
|
471
|
+
border-top: 1px solid var(--border-default);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/* 3.4. Dividers, Alerts, Cards & Descriptions */
|
|
475
|
+
.ant-divider-horizontal {
|
|
476
|
+
margin: 12px 0;
|
|
477
|
+
border-top-color: var(--border-default);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.ant-alert {
|
|
481
|
+
padding: 8px 12px;
|
|
482
|
+
border-radius: var(--radius-sm);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.ant-card {
|
|
486
|
+
border-radius: var(--radius-md);
|
|
487
|
+
border-color: var(--border-default);
|
|
488
|
+
background-color: var(--surface-card);
|
|
489
|
+
color: var(--text-primary);
|
|
490
|
+
box-shadow: var(--shadow-xs);
|
|
491
|
+
|
|
492
|
+
.ant-card-head {
|
|
493
|
+
min-height: 40px;
|
|
494
|
+
padding: 0 16px;
|
|
495
|
+
background-color: var(--surface-subtle);
|
|
496
|
+
border-bottom: 1px solid var(--border-default);
|
|
497
|
+
font-weight: 600;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.ant-card-head-title {
|
|
501
|
+
padding: 10px 0;
|
|
502
|
+
font-size: 14px;
|
|
503
|
+
color: var(--text-primary);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.ant-card-body {
|
|
507
|
+
padding: 16px;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.ant-descriptions-header {
|
|
512
|
+
margin-bottom: 8px;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/* 3.5. Segmented Control */
|
|
516
|
+
.ant-segmented {
|
|
517
|
+
background-color: var(--surface-muted);
|
|
518
|
+
padding: 2px;
|
|
519
|
+
border-radius: var(--radius-sm);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.ant-segmented-item-selected {
|
|
523
|
+
background-color: var(--primary-color) !important;
|
|
524
|
+
color: var(--text-inverse) !important;
|
|
525
|
+
font-weight: 600;
|
|
526
|
+
border-radius: var(--radius-xs);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/* 3.6. Dark Mode Component Adjustments */
|
|
530
|
+
body.dark-theme {
|
|
531
|
+
.ant-input,
|
|
532
|
+
.ant-input-number,
|
|
533
|
+
.ant-input-affix-wrapper,
|
|
534
|
+
.ant-picker,
|
|
535
|
+
.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
536
|
+
background-color: var(--surface-subtle);
|
|
537
|
+
border-color: var(--border-default);
|
|
538
|
+
color: var(--text-primary);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
.ant-input::placeholder,
|
|
542
|
+
.ant-select-selection-placeholder {
|
|
543
|
+
color: var(--text-placeholder);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.ant-btn-default {
|
|
547
|
+
background-color: var(--surface-elevated);
|
|
548
|
+
border-color: var(--border-default);
|
|
549
|
+
color: var(--text-primary);
|
|
550
|
+
|
|
551
|
+
&:hover {
|
|
552
|
+
border-color: var(--primary-hover);
|
|
553
|
+
color: var(--primary-hover);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.ant-dropdown-menu,
|
|
558
|
+
.ant-select-dropdown,
|
|
559
|
+
.ant-picker-panel-container {
|
|
560
|
+
background-color: var(--surface-elevated);
|
|
561
|
+
border: 1px solid var(--border-default);
|
|
562
|
+
color: var(--text-primary);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.ant-select-item,
|
|
566
|
+
.ant-dropdown-menu-item {
|
|
567
|
+
color: var(--text-primary);
|
|
568
|
+
|
|
569
|
+
&:hover,
|
|
570
|
+
&.ant-select-item-option-active {
|
|
571
|
+
background-color: var(--surface-hover);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
|
|
576
|
+
background-color: var(--surface-selected);
|
|
577
|
+
color: var(--primary-hover);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.error-detail-modal {
|
|
582
|
+
.ant-modal-confirm-body,
|
|
583
|
+
.ant-modal-confirm-content {
|
|
584
|
+
max-width: 100%;
|
|
585
|
+
overflow: hidden;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
pre {
|
|
589
|
+
white-space: pre-wrap !important;
|
|
590
|
+
overflow-wrap: anywhere !important;
|
|
591
|
+
word-break: break-word !important;
|
|
592
|
+
background-color: #f5f5f5;
|
|
593
|
+
padding: 12px;
|
|
594
|
+
border-radius: 4px;
|
|
595
|
+
font-family: monospace;
|
|
596
|
+
font-size: 13px;
|
|
597
|
+
max-height: 60vh;
|
|
598
|
+
overflow-y: auto;
|
|
599
|
+
overflow-x: hidden;
|
|
600
|
+
margin: 0;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/* --------------------------------------------------------------------------
|
|
605
|
+
4. MODULAR ENTERPRISE STYLE PARTIALS (BUILD-TIME BUNDLED)
|
|
606
|
+
-------------------------------------------------------------------------- */
|
|
607
|
+
@import "./styles/color.scss";
|
|
608
|
+
@import "./styles/single-class.scss";
|
|
609
|
+
@import "./styles/layout.scss";
|
|
610
|
+
@import "./styles/table.scss";
|
|
611
|
+
@import "./styles/button.scss";
|
|
612
|
+
@import "./styles/tab.scss";
|
|
613
|
+
@import "./styles/dropdown.scss";
|
|
614
|
+
@import "./styles/select.scss";
|
|
615
|
+
@import "./styles/mobile.scss";
|