@nokecy/qc-ui 2.0.0-beta.0 → 2.0.0-beta.10
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/dist/cjs/ag-grid-plus/index.less +44 -0
- package/dist/cjs/ag-grid-plus/queryForm/index.less +2 -1
- package/dist/cjs/dialogSelect/index.less +21 -1
- package/dist/cjs/fullScreenAlert/index.less +10 -10
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +23 -4
- package/dist/cjs/standardList/groupedHeaders.less +11 -20
- package/dist/esm/ag-grid-plus/index.less +44 -0
- package/dist/esm/ag-grid-plus/queryForm/index.less +2 -1
- package/dist/esm/dialogSelect/index.less +21 -1
- package/dist/esm/fullScreenAlert/index.less +10 -10
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/standardList/groupedHeaders.less +11 -20
- package/dist/umd/qc-ui.min.css +1 -1
- package/dist/umd/qc-ui.min.js +1 -1
- package/package.json +4 -4
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
.qc-table-container {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
// 刷新时表里已有数据:不盖遮罩,只在表格顶部给一条 2px 的流动加载条
|
|
6
|
+
.qc-grid-busy-bar {
|
|
7
|
+
position: absolute;
|
|
8
|
+
top: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
right: 0;
|
|
11
|
+
height: 2px;
|
|
12
|
+
z-index: 3;
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
|
|
16
|
+
> span {
|
|
17
|
+
display: block;
|
|
18
|
+
height: 100%;
|
|
19
|
+
width: 30%;
|
|
20
|
+
animation: qc-grid-busy-slide 1.2s ease-in-out infinite;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@keyframes qc-grid-busy-slide {
|
|
25
|
+
0% { transform: translateX(-100%); }
|
|
26
|
+
100% { transform: translateX(340%); }
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media (prefers-reduced-motion: reduce) {
|
|
30
|
+
.qc-grid-busy-bar > span {
|
|
31
|
+
width: 100%;
|
|
32
|
+
animation: none;
|
|
33
|
+
opacity: 0.6;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
1
37
|
.grid-spin {
|
|
2
38
|
height: 100%;
|
|
3
39
|
|
|
@@ -49,6 +85,14 @@
|
|
|
49
85
|
text-align: right !important;
|
|
50
86
|
}
|
|
51
87
|
|
|
88
|
+
// AG Grid Enterprise 试用水印:组件库不内置 license key(授权由宿主通过 setAgGridLicenseKey 注入),
|
|
89
|
+
// 未注入时 AG Grid 会在每个表格实例里叠一层 .ag-watermark。AgGridPlus 有 .qc-table-container 外壳,
|
|
90
|
+
// 但 ArrayTable / 只读预览直接渲染 AgGridReact、不带该外壳,按容器限定会漏掉它们。
|
|
91
|
+
// 组件库在模块顶层注册 AllEnterpriseModule,企业模块是全局生效的,因此这里统一关闭所有实例的水印。
|
|
92
|
+
.ag-watermark {
|
|
93
|
+
display: none !important;
|
|
94
|
+
}
|
|
95
|
+
|
|
52
96
|
// 空态浮层里的「重试」「新建」「清空筛选」要能点:AG-Grid 给 .ag-overlay 设了 pointer-events: none,
|
|
53
97
|
// 只给加载浮层放开,空态浮层里的按钮因此点不到。只放开可交互元素,空白处仍穿透到表格。@author nokecy
|
|
54
98
|
.ag-overlay-no-rows-wrapper :is(button, a, input, [role='button']) {
|
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
display: inline-flex;
|
|
8
8
|
align-items: center;
|
|
9
9
|
justify-content: center;
|
|
10
|
+
// 点击热区保持 24×24(§2),负外边距让它不参与行高:高密档内容区只有 20px,热区压进上下内边距,选择框与同行输入框等高。
|
|
10
11
|
width: 24px;
|
|
11
12
|
height: 24px;
|
|
12
|
-
|
|
13
|
+
margin-block: -4px;
|
|
14
|
+
font-size: calc(var(--qc-font, 14px) + 2px);
|
|
13
15
|
cursor: pointer;
|
|
14
16
|
pointer-events: auto;
|
|
15
17
|
color: var(--qc-dialog-select-trigger-color, rgba(0, 0, 0, 0.45));
|
|
@@ -47,3 +49,21 @@
|
|
|
47
49
|
padding-inline-end: 38px;
|
|
48
50
|
}
|
|
49
51
|
}
|
|
52
|
+
|
|
53
|
+
// 候选面板挂在 body 下,不在 .qc-dialog-select 里,所以写在顶层:「编码 | 名称」两列,编码等宽数字(§6.12)。
|
|
54
|
+
.qc-dialog-select-option {
|
|
55
|
+
display: grid;
|
|
56
|
+
grid-template-columns: minmax(72px, max-content) 1fr;
|
|
57
|
+
column-gap: 12px;
|
|
58
|
+
align-items: center;
|
|
59
|
+
|
|
60
|
+
.qc-dialog-select-option-code {
|
|
61
|
+
font-variant-numeric: tabular-nums;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.qc-dialog-select-option-name {
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
text-overflow: ellipsis;
|
|
67
|
+
white-space: nowrap;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -21,28 +21,28 @@
|
|
|
21
21
|
.successOverlay::before {
|
|
22
22
|
top: 0;
|
|
23
23
|
left: 0;
|
|
24
|
-
background: linear-gradient(to right, green, transparent);
|
|
24
|
+
background: linear-gradient(to right, var(--ant-color-success, green), transparent);
|
|
25
25
|
transform: rotate(0deg);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.successOverlay::after {
|
|
29
29
|
top: 0%;
|
|
30
30
|
left: 100%;
|
|
31
|
-
background: linear-gradient(to left, green, transparent);
|
|
31
|
+
background: linear-gradient(to left, var(--ant-color-success, green), transparent);
|
|
32
32
|
transform: rotate(0deg) translate(calc(-1 * var(--alert-size)), 0px);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.successOverlay > div::before {
|
|
36
36
|
top: 0;
|
|
37
37
|
left: 0;
|
|
38
|
-
background: linear-gradient(to top, green, transparent);
|
|
38
|
+
background: linear-gradient(to top, var(--ant-color-success, green), transparent);
|
|
39
39
|
transform: rotate(180deg);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.successOverlay > div::after {
|
|
43
43
|
top: 100%;
|
|
44
44
|
left: 0;
|
|
45
|
-
background: linear-gradient(to top, green, transparent);
|
|
45
|
+
background: linear-gradient(to top, var(--ant-color-success, green), transparent);
|
|
46
46
|
transform: rotate(0deg) translate(0px, calc(-1 * var(--alert-size)));
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -78,28 +78,28 @@
|
|
|
78
78
|
.errorOverlay::before {
|
|
79
79
|
top: 0;
|
|
80
80
|
left: 0;
|
|
81
|
-
background: linear-gradient(to right, red, transparent);
|
|
81
|
+
background: linear-gradient(to right, var(--ant-color-error, red), transparent);
|
|
82
82
|
transform: rotate(0deg);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
.errorOverlay::after {
|
|
86
86
|
top: 0%;
|
|
87
87
|
left: 100%;
|
|
88
|
-
background: linear-gradient(to left, red, transparent);
|
|
88
|
+
background: linear-gradient(to left, var(--ant-color-error, red), transparent);
|
|
89
89
|
transform: rotate(0deg) translate(calc(-1 * var(--alert-size)), 0px);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.errorOverlay > div::before {
|
|
93
93
|
top: 0;
|
|
94
94
|
left: 0;
|
|
95
|
-
background: linear-gradient(to top, red, transparent);
|
|
95
|
+
background: linear-gradient(to top, var(--ant-color-error, red), transparent);
|
|
96
96
|
transform: rotate(180deg);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
.errorOverlay > div::after {
|
|
100
100
|
top: 100%;
|
|
101
101
|
left: 0;
|
|
102
|
-
background: linear-gradient(to top, red, transparent);
|
|
102
|
+
background: linear-gradient(to top, var(--ant-color-error, red), transparent);
|
|
103
103
|
transform: rotate(0deg) translate(0px, calc(-1 * var(--alert-size)));
|
|
104
104
|
}
|
|
105
105
|
|
|
@@ -156,9 +156,9 @@
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.alertBadge-success {
|
|
159
|
-
color: green;
|
|
159
|
+
color: var(--ant-color-success, green);
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
.alertBadge-error {
|
|
163
|
-
color: red;
|
|
163
|
+
color: var(--ant-color-error, red);
|
|
164
164
|
}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -50,10 +50,12 @@ export { GridPlusError, ErrorType, ErrorSeverity } from "@nokecy/qc-ui-component
|
|
|
50
50
|
export type { ErrorHandlingConfig } from "@nokecy/qc-ui-components/ag-grid-plus/errors/index";
|
|
51
51
|
export * from "@nokecy/qc-ui-components/scanCollect/index";
|
|
52
52
|
export * from "@nokecy/qc-ui-components/documentPage/index";
|
|
53
|
+
export * from "@nokecy/qc-ui-components/theme/index";
|
|
53
54
|
export type { EntitySelectConfig, EntitySelectProps, EntitySelectQuery } from "@nokecy/qc-ui-business/entitySelect/index";
|
|
54
55
|
export { semanticTextColors, toGridTextColor, gridValueEnum } from "@nokecy/qc-ui-components/ag-grid-plus/utils/valueEnumColor";
|
|
55
56
|
export type { SemanticPreset } from "@nokecy/qc-ui-components/ag-grid-plus/utils/valueEnumColor";
|
|
56
57
|
export { getQcColDefProp } from "@nokecy/qc-ui-components/ag-grid-plus/utils/agGridCompat";
|
|
58
|
+
export { setAgGridLicenseKey } from "@nokecy/qc-ui-components/ag-grid-plus/index";
|
|
57
59
|
export { contrastRatio, relativeLuminance, darkenUntilContrast, lightenUntilContrast, toRgb, toHsl, fromHsl } from "@nokecy/qc-ui-components/shared/contrast";
|
|
58
60
|
export { BusinessDecimal, decimal, decimalText, nonNegativeDecimal, roundDecimal, sumDecimals, formatDecimal } from "@nokecy/qc-ui-components/shared/businessDecimal";
|
|
59
61
|
export type { DecimalValue } from "@nokecy/qc-ui-components/shared/businessDecimal";
|
package/dist/cjs/index.js
CHANGED
|
@@ -13,6 +13,7 @@ var _exportNames = {
|
|
|
13
13
|
useGridSchemes: true,
|
|
14
14
|
LocalStorageSchemeAdapter: true,
|
|
15
15
|
BackendApiSchemeAdapter: true,
|
|
16
|
+
setAgGridLicenseKey: true,
|
|
16
17
|
ArrayTable: true,
|
|
17
18
|
ArrayTableIndex: true,
|
|
18
19
|
ColumnPresets: true,
|
|
@@ -514,6 +515,12 @@ Object.defineProperty(exports, "semanticTextColors", {
|
|
|
514
515
|
return _valueEnumColor.semanticTextColors;
|
|
515
516
|
}
|
|
516
517
|
});
|
|
518
|
+
Object.defineProperty(exports, "setAgGridLicenseKey", {
|
|
519
|
+
enumerable: true,
|
|
520
|
+
get: function get() {
|
|
521
|
+
return _index.setAgGridLicenseKey;
|
|
522
|
+
}
|
|
523
|
+
});
|
|
517
524
|
Object.defineProperty(exports, "sumDecimals", {
|
|
518
525
|
enumerable: true,
|
|
519
526
|
get: function get() {
|
|
@@ -694,19 +701,31 @@ Object.keys(_index30).forEach(function (key) {
|
|
|
694
701
|
}
|
|
695
702
|
});
|
|
696
703
|
});
|
|
704
|
+
var _index31 = require("@nokecy/qc-ui-components/theme/index");
|
|
705
|
+
Object.keys(_index31).forEach(function (key) {
|
|
706
|
+
if (key === "default" || key === "__esModule") return;
|
|
707
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
708
|
+
if (key in exports && exports[key] === _index31[key]) return;
|
|
709
|
+
Object.defineProperty(exports, key, {
|
|
710
|
+
enumerable: true,
|
|
711
|
+
get: function get() {
|
|
712
|
+
return _index31[key];
|
|
713
|
+
}
|
|
714
|
+
});
|
|
715
|
+
});
|
|
697
716
|
var _valueEnumColor = require("@nokecy/qc-ui-components/ag-grid-plus/utils/valueEnumColor");
|
|
698
717
|
var _agGridCompat = require("@nokecy/qc-ui-components/ag-grid-plus/utils/agGridCompat");
|
|
699
718
|
var _contrast = require("@nokecy/qc-ui-components/shared/contrast");
|
|
700
719
|
var _businessDecimal = require("@nokecy/qc-ui-components/shared/businessDecimal");
|
|
701
|
-
var
|
|
702
|
-
Object.keys(
|
|
720
|
+
var _index32 = require("@nokecy/qc-ui-components/formily/index");
|
|
721
|
+
Object.keys(_index32).forEach(function (key) {
|
|
703
722
|
if (key === "default" || key === "__esModule") return;
|
|
704
723
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
705
|
-
if (key in exports && exports[key] ===
|
|
724
|
+
if (key in exports && exports[key] === _index32[key]) return;
|
|
706
725
|
Object.defineProperty(exports, key, {
|
|
707
726
|
enumerable: true,
|
|
708
727
|
get: function get() {
|
|
709
|
-
return
|
|
728
|
+
return _index32[key];
|
|
710
729
|
}
|
|
711
730
|
});
|
|
712
731
|
});
|
|
@@ -1,29 +1,20 @@
|
|
|
1
|
-
//
|
|
1
|
+
// 复合表头模板:上层标题居中。分组边界与组内分隔都沿用表格自身的列线和表头行线,
|
|
2
|
+
// 不另加边框——另加的框会与 AG Grid 已画的 1px 线并排,看起来是两条。@author nokecy
|
|
2
3
|
.ag-root-wrapper {
|
|
3
4
|
.app-grid-composite-group {
|
|
4
|
-
border-top: 1px solid var(--ag-border-color) !important;
|
|
5
|
-
border-inline: 2px solid var(--ag-border-color) !important;
|
|
6
|
-
|
|
7
5
|
.ag-header-group-cell-label {
|
|
8
6
|
justify-content: center !important;
|
|
9
7
|
width: 100%;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
font-size: calc(var(--ag-font-size, 12px) + 3px);
|
|
10
|
+
line-height: 1.25;
|
|
10
11
|
}
|
|
11
|
-
}
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
border-inline-end: 1px solid var(--ag-border-color) !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.app-grid-composite-start {
|
|
23
|
-
border-inline-start: 2px solid var(--ag-border-color) !important;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.app-grid-composite-end {
|
|
27
|
-
border-inline-end: 2px solid var(--ag-border-color) !important;
|
|
13
|
+
.ag-header-group-text {
|
|
14
|
+
min-width: 0;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
text-overflow: ellipsis;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
}
|
|
28
19
|
}
|
|
29
20
|
}
|
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
.qc-table-container {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
// 刷新时表里已有数据:不盖遮罩,只在表格顶部给一条 2px 的流动加载条
|
|
6
|
+
.qc-grid-busy-bar {
|
|
7
|
+
position: absolute;
|
|
8
|
+
top: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
right: 0;
|
|
11
|
+
height: 2px;
|
|
12
|
+
z-index: 3;
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
|
|
16
|
+
> span {
|
|
17
|
+
display: block;
|
|
18
|
+
height: 100%;
|
|
19
|
+
width: 30%;
|
|
20
|
+
animation: qc-grid-busy-slide 1.2s ease-in-out infinite;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@keyframes qc-grid-busy-slide {
|
|
25
|
+
0% { transform: translateX(-100%); }
|
|
26
|
+
100% { transform: translateX(340%); }
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media (prefers-reduced-motion: reduce) {
|
|
30
|
+
.qc-grid-busy-bar > span {
|
|
31
|
+
width: 100%;
|
|
32
|
+
animation: none;
|
|
33
|
+
opacity: 0.6;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
1
37
|
.grid-spin {
|
|
2
38
|
height: 100%;
|
|
3
39
|
|
|
@@ -49,6 +85,14 @@
|
|
|
49
85
|
text-align: right !important;
|
|
50
86
|
}
|
|
51
87
|
|
|
88
|
+
// AG Grid Enterprise 试用水印:组件库不内置 license key(授权由宿主通过 setAgGridLicenseKey 注入),
|
|
89
|
+
// 未注入时 AG Grid 会在每个表格实例里叠一层 .ag-watermark。AgGridPlus 有 .qc-table-container 外壳,
|
|
90
|
+
// 但 ArrayTable / 只读预览直接渲染 AgGridReact、不带该外壳,按容器限定会漏掉它们。
|
|
91
|
+
// 组件库在模块顶层注册 AllEnterpriseModule,企业模块是全局生效的,因此这里统一关闭所有实例的水印。
|
|
92
|
+
.ag-watermark {
|
|
93
|
+
display: none !important;
|
|
94
|
+
}
|
|
95
|
+
|
|
52
96
|
// 空态浮层里的「重试」「新建」「清空筛选」要能点:AG-Grid 给 .ag-overlay 设了 pointer-events: none,
|
|
53
97
|
// 只给加载浮层放开,空态浮层里的按钮因此点不到。只放开可交互元素,空白处仍穿透到表格。@author nokecy
|
|
54
98
|
.ag-overlay-no-rows-wrapper :is(button, a, input, [role='button']) {
|
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
display: inline-flex;
|
|
8
8
|
align-items: center;
|
|
9
9
|
justify-content: center;
|
|
10
|
+
// 点击热区保持 24×24(§2),负外边距让它不参与行高:高密档内容区只有 20px,热区压进上下内边距,选择框与同行输入框等高。
|
|
10
11
|
width: 24px;
|
|
11
12
|
height: 24px;
|
|
12
|
-
|
|
13
|
+
margin-block: -4px;
|
|
14
|
+
font-size: calc(var(--qc-font, 14px) + 2px);
|
|
13
15
|
cursor: pointer;
|
|
14
16
|
pointer-events: auto;
|
|
15
17
|
color: var(--qc-dialog-select-trigger-color, rgba(0, 0, 0, 0.45));
|
|
@@ -47,3 +49,21 @@
|
|
|
47
49
|
padding-inline-end: 38px;
|
|
48
50
|
}
|
|
49
51
|
}
|
|
52
|
+
|
|
53
|
+
// 候选面板挂在 body 下,不在 .qc-dialog-select 里,所以写在顶层:「编码 | 名称」两列,编码等宽数字(§6.12)。
|
|
54
|
+
.qc-dialog-select-option {
|
|
55
|
+
display: grid;
|
|
56
|
+
grid-template-columns: minmax(72px, max-content) 1fr;
|
|
57
|
+
column-gap: 12px;
|
|
58
|
+
align-items: center;
|
|
59
|
+
|
|
60
|
+
.qc-dialog-select-option-code {
|
|
61
|
+
font-variant-numeric: tabular-nums;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.qc-dialog-select-option-name {
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
text-overflow: ellipsis;
|
|
67
|
+
white-space: nowrap;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -21,28 +21,28 @@
|
|
|
21
21
|
.successOverlay::before {
|
|
22
22
|
top: 0;
|
|
23
23
|
left: 0;
|
|
24
|
-
background: linear-gradient(to right, green, transparent);
|
|
24
|
+
background: linear-gradient(to right, var(--ant-color-success, green), transparent);
|
|
25
25
|
transform: rotate(0deg);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.successOverlay::after {
|
|
29
29
|
top: 0%;
|
|
30
30
|
left: 100%;
|
|
31
|
-
background: linear-gradient(to left, green, transparent);
|
|
31
|
+
background: linear-gradient(to left, var(--ant-color-success, green), transparent);
|
|
32
32
|
transform: rotate(0deg) translate(calc(-1 * var(--alert-size)), 0px);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.successOverlay > div::before {
|
|
36
36
|
top: 0;
|
|
37
37
|
left: 0;
|
|
38
|
-
background: linear-gradient(to top, green, transparent);
|
|
38
|
+
background: linear-gradient(to top, var(--ant-color-success, green), transparent);
|
|
39
39
|
transform: rotate(180deg);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.successOverlay > div::after {
|
|
43
43
|
top: 100%;
|
|
44
44
|
left: 0;
|
|
45
|
-
background: linear-gradient(to top, green, transparent);
|
|
45
|
+
background: linear-gradient(to top, var(--ant-color-success, green), transparent);
|
|
46
46
|
transform: rotate(0deg) translate(0px, calc(-1 * var(--alert-size)));
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -78,28 +78,28 @@
|
|
|
78
78
|
.errorOverlay::before {
|
|
79
79
|
top: 0;
|
|
80
80
|
left: 0;
|
|
81
|
-
background: linear-gradient(to right, red, transparent);
|
|
81
|
+
background: linear-gradient(to right, var(--ant-color-error, red), transparent);
|
|
82
82
|
transform: rotate(0deg);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
.errorOverlay::after {
|
|
86
86
|
top: 0%;
|
|
87
87
|
left: 100%;
|
|
88
|
-
background: linear-gradient(to left, red, transparent);
|
|
88
|
+
background: linear-gradient(to left, var(--ant-color-error, red), transparent);
|
|
89
89
|
transform: rotate(0deg) translate(calc(-1 * var(--alert-size)), 0px);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.errorOverlay > div::before {
|
|
93
93
|
top: 0;
|
|
94
94
|
left: 0;
|
|
95
|
-
background: linear-gradient(to top, red, transparent);
|
|
95
|
+
background: linear-gradient(to top, var(--ant-color-error, red), transparent);
|
|
96
96
|
transform: rotate(180deg);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
.errorOverlay > div::after {
|
|
100
100
|
top: 100%;
|
|
101
101
|
left: 0;
|
|
102
|
-
background: linear-gradient(to top, red, transparent);
|
|
102
|
+
background: linear-gradient(to top, var(--ant-color-error, red), transparent);
|
|
103
103
|
transform: rotate(0deg) translate(0px, calc(-1 * var(--alert-size)));
|
|
104
104
|
}
|
|
105
105
|
|
|
@@ -156,9 +156,9 @@
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.alertBadge-success {
|
|
159
|
-
color: green;
|
|
159
|
+
color: var(--ant-color-success, green);
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
.alertBadge-error {
|
|
163
|
-
color: red;
|
|
163
|
+
color: var(--ant-color-error, red);
|
|
164
164
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -50,10 +50,12 @@ export { GridPlusError, ErrorType, ErrorSeverity } from "@nokecy/qc-ui-component
|
|
|
50
50
|
export type { ErrorHandlingConfig } from "@nokecy/qc-ui-components/ag-grid-plus/errors/index";
|
|
51
51
|
export * from "@nokecy/qc-ui-components/scanCollect/index";
|
|
52
52
|
export * from "@nokecy/qc-ui-components/documentPage/index";
|
|
53
|
+
export * from "@nokecy/qc-ui-components/theme/index";
|
|
53
54
|
export type { EntitySelectConfig, EntitySelectProps, EntitySelectQuery } from "@nokecy/qc-ui-business/entitySelect/index";
|
|
54
55
|
export { semanticTextColors, toGridTextColor, gridValueEnum } from "@nokecy/qc-ui-components/ag-grid-plus/utils/valueEnumColor";
|
|
55
56
|
export type { SemanticPreset } from "@nokecy/qc-ui-components/ag-grid-plus/utils/valueEnumColor";
|
|
56
57
|
export { getQcColDefProp } from "@nokecy/qc-ui-components/ag-grid-plus/utils/agGridCompat";
|
|
58
|
+
export { setAgGridLicenseKey } from "@nokecy/qc-ui-components/ag-grid-plus/index";
|
|
57
59
|
export { contrastRatio, relativeLuminance, darkenUntilContrast, lightenUntilContrast, toRgb, toHsl, fromHsl } from "@nokecy/qc-ui-components/shared/contrast";
|
|
58
60
|
export { BusinessDecimal, decimal, decimalText, nonNegativeDecimal, roundDecimal, sumDecimals, formatDecimal } from "@nokecy/qc-ui-components/shared/businessDecimal";
|
|
59
61
|
export type { DecimalValue } from "@nokecy/qc-ui-components/shared/businessDecimal";
|
package/dist/esm/index.js
CHANGED
|
@@ -61,8 +61,11 @@ export { WidgetSelector } from "@nokecy/qc-ui-components/dashboard/index";
|
|
|
61
61
|
export { GridPlusError, ErrorType, ErrorSeverity } from "@nokecy/qc-ui-components/ag-grid-plus/errors/index";
|
|
62
62
|
export * from "@nokecy/qc-ui-components/scanCollect/index";
|
|
63
63
|
export * from "@nokecy/qc-ui-components/documentPage/index";
|
|
64
|
+
export * from "@nokecy/qc-ui-components/theme/index";
|
|
64
65
|
export { semanticTextColors, toGridTextColor, gridValueEnum } from "@nokecy/qc-ui-components/ag-grid-plus/utils/valueEnumColor";
|
|
65
66
|
export { getQcColDefProp } from "@nokecy/qc-ui-components/ag-grid-plus/utils/agGridCompat";
|
|
67
|
+
// 正式 AG Grid Enterprise 授权入口:宿主注入 key 后组件库不再静默试用提示。
|
|
68
|
+
export { setAgGridLicenseKey } from "@nokecy/qc-ui-components/ag-grid-plus/index";
|
|
66
69
|
export { contrastRatio, relativeLuminance, darkenUntilContrast, lightenUntilContrast, toRgb, toHsl, fromHsl } from "@nokecy/qc-ui-components/shared/contrast";
|
|
67
70
|
export { BusinessDecimal, decimal, decimalText, nonNegativeDecimal, roundDecimal, sumDecimals, formatDecimal } from "@nokecy/qc-ui-components/shared/businessDecimal";
|
|
68
71
|
|
|
@@ -1,29 +1,20 @@
|
|
|
1
|
-
//
|
|
1
|
+
// 复合表头模板:上层标题居中。分组边界与组内分隔都沿用表格自身的列线和表头行线,
|
|
2
|
+
// 不另加边框——另加的框会与 AG Grid 已画的 1px 线并排,看起来是两条。@author nokecy
|
|
2
3
|
.ag-root-wrapper {
|
|
3
4
|
.app-grid-composite-group {
|
|
4
|
-
border-top: 1px solid var(--ag-border-color) !important;
|
|
5
|
-
border-inline: 2px solid var(--ag-border-color) !important;
|
|
6
|
-
|
|
7
5
|
.ag-header-group-cell-label {
|
|
8
6
|
justify-content: center !important;
|
|
9
7
|
width: 100%;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
font-size: calc(var(--ag-font-size, 12px) + 3px);
|
|
10
|
+
line-height: 1.25;
|
|
10
11
|
}
|
|
11
|
-
}
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
border-inline-end: 1px solid var(--ag-border-color) !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.app-grid-composite-start {
|
|
23
|
-
border-inline-start: 2px solid var(--ag-border-color) !important;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.app-grid-composite-end {
|
|
27
|
-
border-inline-end: 2px solid var(--ag-border-color) !important;
|
|
13
|
+
.ag-header-group-text {
|
|
14
|
+
min-width: 0;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
text-overflow: ellipsis;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
}
|
|
28
19
|
}
|
|
29
20
|
}
|