@nokecy/qc-ui 2.0.0-beta.3 → 2.0.0-beta.31

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.
@@ -0,0 +1,40 @@
1
+ <!-- qc-ui 工业界面规范:把本段追加到项目 AGENTS.md(Claude Code 在 CLAUDE.md 写 @AGENTS.md 引入)。随 @nokecy/qc-ui 版本更新。 -->
2
+
3
+ ## 界面规范(@nokecy/qc-ui · 工业界面设计规范 DESIGN.md)
4
+
5
+ 改动页面、组件、样式后,**必须**运行并通过:
6
+
7
+ ```bash
8
+ npx qc-ui-lint <改动的文件或目录> # 不带参数时检查 src
9
+ ```
10
+
11
+ 它只跑规范里能从源码判定的红线,不读项目原有 lint 配置。报错文案带 DESIGN.md 章节号;确属例外时用 `eslint-disable-next-line qc-ui/<规则>` 并在同一行写明理由,不得整文件关闭。唯一允许写色值的是主题单源文件(§1 原则 3),登记在 `package.json` 的 `"qc-ui-lint": { "ignore": [...] }` 中,不要自行新增。
12
+
13
+ ### 红线(lint 会查)
14
+
15
+ | 规则 | 要求 | 章节 |
16
+ | --- | --- | --- |
17
+ | `qc-ui/no-hardcoded-color` | 业务代码不写色值;颜色取主题 Token(`theme.useToken()`)或 `var(--ind-*)` | §1 原则 3、§3.1 |
18
+ | `qc-ui/no-status-tag` | 状态是文字 + 颜色:页面用 `StatusText`,表格枚举列用 `valueEnum` 的 `statusKey`;不用 antd `Tag` 的语义色(success / processing / error / warning / default)、`Badge status`、已弃用的 `StatusPill` 与枚举项 `status` 字段 | §3.2、§3.3 |
19
+ | `qc-ui/no-table-row-height` | 表格 / AgGrid 不自设 `rowHeight`、`headerHeight`,由 Provider 按密度注入 | §2 |
20
+ | `qc-ui/no-compact-algorithm` | 不用 antd `compactAlgorithm`;密度只在 Provider / 路由级选三档 | §2 |
21
+ | `qc-ui/no-viewport-calc` | 不写 `calc(100vh - NNNpx)`;表格占满剩余高度并内部滚动 | §4.0 |
22
+ | `qc-ui/formily-feedback-layout` | Formily `feedbackLayout` 统一 `'terse'` | §6.4 |
23
+ | `qc-ui/width-4px-grid`(警告) | 宽度取 4 的整数倍 | §6.3 |
24
+
25
+ `.less` / `.css` 中的色值与 `calc(100vh - …)` 由同一命令经 stylelint 检查。
26
+
27
+ ### 必须遵守但 lint 查不到(评审时核对)
28
+
29
+ - 三档密度:舒适 32/40、紧凑 28/32(默认)、高密 24/28(控件高 / 行高);同一页面层级不混用;12px 是字号下限;工位页(拣货、报工)用舒适档。§2
30
+ - 页面级背景之上不再嵌套第二级卡片。§4
31
+ - 业务动作(审核、打印、作废)在标题行右侧;提交动作(取消在左、确认最右)在底部,仅编辑态出现。§5.3
32
+ - 工具栏按钮超出上限一律收进「更多」,不换行、不缩小按钮。§5.4
33
+ - 行内操作列只放图标、悬停提示,≤ 3 个,其余进「更多」。§5.5
34
+ - 字段 > 6 个必须分组,组名用业务语言,不用「其他」「更多」。§6
35
+ - 必填红 `*` 在标签左侧;校验错误贴在字段上,**不在页面顶部汇总报错**;提交失败必须有可见反馈并定位到字段。§6.4
36
+ - 只读展示用 `Descriptions` / 阅读态,不用置灰的输入框冒充。§6
37
+ - 数值、金额右对齐并用 `tabular-nums`;文本左对齐。§6.3
38
+ - 新增业务状态先扩六态枚举(待处理 / 进行中 / 已完成 / 预警 / 报警 / 已关闭),不自定义颜色;类别色取身份色板。§3.2–§3.4
39
+
40
+ 拿不准时,以 DESIGN.md 原文为准,不要凭感觉补规则。
@@ -0,0 +1,47 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+ /**
4
+ * Claude Code PostToolUse hook:agent 每次写入 / 编辑文件后,对该文件跑 qc-ui-lint。
5
+ * 有错误时以退出码 2 把报告回传给 agent,让它当场改正。
6
+ *
7
+ * 在项目的 .claude/settings.json 中登记:
8
+ * {
9
+ * "hooks": {
10
+ * "PostToolUse": [{
11
+ * "matcher": "Edit|MultiEdit|Write",
12
+ * "hooks": [{ "type": "command", "command": "node node_modules/@nokecy/qc-ui/agent/claude-hook.cjs" }]
13
+ * }]
14
+ * }
15
+ * }
16
+ */
17
+ const path = require('node:path');
18
+ const { spawnSync } = require('node:child_process');
19
+
20
+ const CHECKED = /\.(?:[cm]?[jt]sx?|less|css)$/;
21
+ const SKIPPED = /(?:^|[\\/])(?:node_modules|dist|\.umi[\w-]*)[\\/]/;
22
+
23
+ let input = '';
24
+ process.stdin.on('data', (chunk) => (input += chunk));
25
+ process.stdin.on('end', () => {
26
+ let file;
27
+ try {
28
+ const event = JSON.parse(input || '{}');
29
+ file = event.tool_input && (event.tool_input.file_path || event.tool_input.path);
30
+ if (event.cwd) process.chdir(event.cwd);
31
+ } catch {
32
+ process.exit(0);
33
+ }
34
+ if (!file || !CHECKED.test(file)) process.exit(0);
35
+ const rel = path.relative(process.cwd(), path.resolve(file));
36
+ if (rel.startsWith('..') || SKIPPED.test(rel)) process.exit(0);
37
+
38
+ const cli = path.join(__dirname, '..', 'lint', 'cli.cjs');
39
+ const r = spawnSync(process.execPath, [cli, rel], { encoding: 'utf8' });
40
+ if (r.status === 1) {
41
+ process.stderr.write(`${r.stdout}${r.stderr}\n按提示修正后再继续;规则出处见 DESIGN.md 对应章节。确属例外时,用 eslint-disable-next-line 并写明理由。\n`);
42
+ process.exit(2);
43
+ }
44
+ // 运行失败(缺 eslint / parser)不阻断 agent,只提示一次
45
+ if (r.status === 2) process.stderr.write(r.stderr);
46
+ process.exit(0);
47
+ });
@@ -2,7 +2,7 @@
2
2
  position: relative;
3
3
  }
4
4
 
5
- // 刷新时表里已有数据:不盖遮罩,只在表格顶部给一条 2px 的流动加载条
5
+ // 刷新时表里已有数据:整表 Spin 遮罩之外,表格顶部再给一条 2px 的流动加载条,标出加载的是哪张表。@author nokecy
6
6
  .qc-grid-busy-bar {
7
7
  position: absolute;
8
8
  top: 0;
@@ -98,3 +98,15 @@
98
98
  .ag-overlay-no-rows-wrapper :is(button, a, input, [role='button']) {
99
99
  pointer-events: auto;
100
100
  }
101
+
102
+ // 加载骨架要铺满表体并贴着表头:AG-Grid 33 的加载浮层是水平、垂直都居中的 flex 容器,
103
+ // 自定义浮层外层的 .ag-react-container 按内容收缩,骨架的 width: 100% 只剩几十像素、挤在表体正中。
104
+ // AgGridPlus 的加载浮层只有骨架一种,按表格外壳限定,不用 :has(),兼容较旧的工控机浏览器。@author nokecy
105
+ .qc-table-container .ag-overlay-loading-wrapper {
106
+ align-items: flex-start;
107
+
108
+ > .ag-react-container {
109
+ flex: 1;
110
+ min-width: 0;
111
+ }
112
+ }
@@ -5,7 +5,8 @@
5
5
 
6
6
  .@{pro-table-search-prefix-cls} {
7
7
  margin-bottom: 8px;
8
- padding: 8px;
8
+ // 上下内边距随密度变化(主题作用域外回到 8px)。@author nokecy
9
+ padding: var(--qc-query-py, 8px) 8px;
9
10
  // padding-bottom: 0;
10
11
  // 背景由组件读取 Ant Design 主题 token,支持浅色和深色。@author nokecy
11
12
 
@@ -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
- font-size: 16px;
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));
@@ -2,6 +2,13 @@
2
2
  .modal-wrap-resized {
3
3
  .ant-modal {
4
4
  transition: none;
5
+
6
+ // 新版的 render 包装层和旧版的焦点容器都要传递外框高度。@author jwy
7
+ > .ant-modal-render,
8
+ > div[tabindex] {
9
+ height: 100%;
10
+ min-height: 0;
11
+ }
5
12
  }
6
13
 
7
14
  .ant-modal-container {
@@ -40,18 +47,26 @@
40
47
  }
41
48
  }
42
49
 
50
+ // 只在手势入口禁止文本选择,正文保持正常选中和复制。@author jwy
51
+ [data-draggable-modal-handle],
52
+ .resize-handle {
53
+ user-select: none;
54
+ -webkit-user-select: none;
55
+ touch-action: none;
56
+ }
57
+
43
58
  // 拖动调整大小的手柄样式
44
59
  .resize-handle {
45
60
  position: absolute;
46
61
  z-index: 9999; // 确保在 Modal 内容之上
47
62
  background: transparent;
48
- transition: all 0.2s ease;
63
+ transition: background-color 0.15s ease;
49
64
  pointer-events: auto !important; // 确保可以接收鼠标事件
50
65
  opacity: 0;
51
66
 
52
67
  &:hover {
53
68
  opacity: 1;
54
- background-color: rgba(24, 144, 255, 0.5);
69
+ background-color: color-mix(in srgb, var(--draggable-modal-resize-color) 50%, transparent);
55
70
  }
56
71
  }
57
72
 
@@ -59,7 +74,7 @@
59
74
  .ant-modal:hover .resize-handle,
60
75
  div:hover > .resize-handle {
61
76
  opacity: 0.5;
62
- background: rgba(24, 144, 255, 0.15);
77
+ background: color-mix(in srgb, var(--draggable-modal-resize-color) 15%, transparent);
63
78
  }
64
79
 
65
80
 
@@ -21,12 +21,16 @@ import ConfirmPro from "@nokecy/qc-ui-components/ConfirmPro/index";
21
21
  import { GeneratedListPage } from "@nokecy/qc-ui-business/generatedListPage/index";
22
22
  import { StandardFormDialog, withStandardForm, FieldCreators, createSelectField, createCascaderField } from "@nokecy/qc-ui-business/standardFormDialog/index";
23
23
  import DeleteConfirm from "@nokecy/qc-ui-components/deleteConfirm/index";
24
+ import SaveStatus from "@nokecy/qc-ui-components/saveStatus/index";
25
+ import LoadState from "@nokecy/qc-ui-components/loadState/index";
24
26
  import { RuleBuilder } from "@nokecy/qc-ui-components/RuleBuilder/index";
25
27
  import { RegexEditor, useRegexValidation, useTemplateManager, TemplateSelector, TemplateCategory, RegexTester, FlagsSelector, MatchItem, RegexRailroadDiagram } from "@nokecy/qc-ui-components/components/RegexEditor/index";
26
- export { AgGridColumn, AgGridPlus, ArrayTable, ArrayTableIndex, ColumnPresets, Card, Dashboard, DialogSelect, DraggableModal, Editable, ExtensibleGrid, flattenTreeDeep, FormDesigner, FormProContext, FormProLayout, GridPlusContext, useGridPlusColumnState, ImportModal, QueryBuilder, ToolBar, FullScreenAlert, ConfirmPro, GeneratedListPage, StandardFormDialog, withStandardForm, FieldCreators, createSelectField, createCascaderField, DeleteConfirm, RuleBuilder, RegexEditor, useRegexValidation, useTemplateManager, TemplateSelector, TemplateCategory, RegexTester, FlagsSelector, MatchItem, RegexRailroadDiagram, useSchemeManager, useGridSchemes, LocalStorageSchemeAdapter, BackendApiSchemeAdapter, };
28
+ export { AgGridColumn, AgGridPlus, ArrayTable, ArrayTableIndex, ColumnPresets, Card, Dashboard, DialogSelect, DraggableModal, Editable, ExtensibleGrid, flattenTreeDeep, FormDesigner, FormProContext, FormProLayout, GridPlusContext, useGridPlusColumnState, ImportModal, QueryBuilder, ToolBar, FullScreenAlert, ConfirmPro, GeneratedListPage, StandardFormDialog, withStandardForm, FieldCreators, createSelectField, createCascaderField, DeleteConfirm, SaveStatus, LoadState, RuleBuilder, RegexEditor, useRegexValidation, useTemplateManager, TemplateSelector, TemplateCategory, RegexTester, FlagsSelector, MatchItem, RegexRailroadDiagram, useSchemeManager, useGridSchemes, LocalStorageSchemeAdapter, BackendApiSchemeAdapter, };
27
29
  export type * from "@nokecy/qc-ui-business/generatedListPage/index";
28
30
  export type * from "@nokecy/qc-ui-business/standardFormDialog/index";
29
31
  export type * from "@nokecy/qc-ui-components/deleteConfirm/index";
32
+ export type { SaveStatusKind, SaveStatusProps } from "@nokecy/qc-ui-components/saveStatus/index";
33
+ export type { LoadStateProps, LoadStateStatus } from "@nokecy/qc-ui-components/loadState/index";
30
34
  export type * from "@nokecy/qc-ui-business/importModal/index";
31
35
  export type * from "@nokecy/qc-ui-components/fullScreenAlert/index";
32
36
  export type * from "@nokecy/qc-ui-components/RuleBuilder/index";
@@ -50,6 +54,7 @@ export { GridPlusError, ErrorType, ErrorSeverity } from "@nokecy/qc-ui-component
50
54
  export type { ErrorHandlingConfig } from "@nokecy/qc-ui-components/ag-grid-plus/errors/index";
51
55
  export * from "@nokecy/qc-ui-components/scanCollect/index";
52
56
  export * from "@nokecy/qc-ui-components/documentPage/index";
57
+ export * from "@nokecy/qc-ui-components/theme/index";
53
58
  export type { EntitySelectConfig, EntitySelectProps, EntitySelectQuery } from "@nokecy/qc-ui-business/entitySelect/index";
54
59
  export { semanticTextColors, toGridTextColor, gridValueEnum } from "@nokecy/qc-ui-components/ag-grid-plus/utils/valueEnumColor";
55
60
  export type { SemanticPreset } from "@nokecy/qc-ui-components/ag-grid-plus/utils/valueEnumColor";
package/dist/cjs/index.js CHANGED
@@ -41,6 +41,8 @@ var _exportNames = {
41
41
  createSelectField: true,
42
42
  createCascaderField: true,
43
43
  DeleteConfirm: true,
44
+ SaveStatus: true,
45
+ LoadState: true,
44
46
  RuleBuilder: true,
45
47
  RegexEditor: true,
46
48
  useRegexValidation: true,
@@ -152,7 +154,7 @@ Object.defineProperty(exports, "DEFAULT_DATE_CELL_FORMAT", {
152
154
  Object.defineProperty(exports, "DEFAULT_EXPORT_TEMPLATE_API", {
153
155
  enumerable: true,
154
156
  get: function get() {
155
- return _index27.DEFAULT_EXPORT_TEMPLATE_API;
157
+ return _index29.DEFAULT_EXPORT_TEMPLATE_API;
156
158
  }
157
159
  });
158
160
  Object.defineProperty(exports, "Dashboard", {
@@ -194,19 +196,19 @@ Object.defineProperty(exports, "Editable", {
194
196
  Object.defineProperty(exports, "ErrorSeverity", {
195
197
  enumerable: true,
196
198
  get: function get() {
197
- return _index28.ErrorSeverity;
199
+ return _index30.ErrorSeverity;
198
200
  }
199
201
  });
200
202
  Object.defineProperty(exports, "ErrorType", {
201
203
  enumerable: true,
202
204
  get: function get() {
203
- return _index28.ErrorType;
205
+ return _index30.ErrorType;
204
206
  }
205
207
  });
206
208
  Object.defineProperty(exports, "ExportButton", {
207
209
  enumerable: true,
208
210
  get: function get() {
209
- return _index27.default;
211
+ return _index29.default;
210
212
  }
211
213
  });
212
214
  Object.defineProperty(exports, "ExtensibleGrid", {
@@ -224,7 +226,7 @@ Object.defineProperty(exports, "FieldCreators", {
224
226
  Object.defineProperty(exports, "FlagsSelector", {
225
227
  enumerable: true,
226
228
  get: function get() {
227
- return _index21.FlagsSelector;
229
+ return _index23.FlagsSelector;
228
230
  }
229
231
  });
230
232
  Object.defineProperty(exports, "FormDesigner", {
@@ -266,7 +268,7 @@ Object.defineProperty(exports, "GridPlusContext", {
266
268
  Object.defineProperty(exports, "GridPlusError", {
267
269
  enumerable: true,
268
270
  get: function get() {
269
- return _index28.GridPlusError;
271
+ return _index30.GridPlusError;
270
272
  }
271
273
  });
272
274
  Object.defineProperty(exports, "ImportModal", {
@@ -281,6 +283,12 @@ Object.defineProperty(exports, "ListToolbarLeft", {
281
283
  return _leftContent.ListToolbarLeft;
282
284
  }
283
285
  });
286
+ Object.defineProperty(exports, "LoadState", {
287
+ enumerable: true,
288
+ get: function get() {
289
+ return _index21.default;
290
+ }
291
+ });
284
292
  Object.defineProperty(exports, "LocalStorageSchemeAdapter", {
285
293
  enumerable: true,
286
294
  get: function get() {
@@ -290,7 +298,7 @@ Object.defineProperty(exports, "LocalStorageSchemeAdapter", {
290
298
  Object.defineProperty(exports, "MatchItem", {
291
299
  enumerable: true,
292
300
  get: function get() {
293
- return _index21.MatchItem;
301
+ return _index23.MatchItem;
294
302
  }
295
303
  });
296
304
  Object.defineProperty(exports, "QueryBuilder", {
@@ -302,25 +310,31 @@ Object.defineProperty(exports, "QueryBuilder", {
302
310
  Object.defineProperty(exports, "RegexEditor", {
303
311
  enumerable: true,
304
312
  get: function get() {
305
- return _index21.RegexEditor;
313
+ return _index23.RegexEditor;
306
314
  }
307
315
  });
308
316
  Object.defineProperty(exports, "RegexRailroadDiagram", {
309
317
  enumerable: true,
310
318
  get: function get() {
311
- return _index21.RegexRailroadDiagram;
319
+ return _index23.RegexRailroadDiagram;
312
320
  }
313
321
  });
314
322
  Object.defineProperty(exports, "RegexTester", {
315
323
  enumerable: true,
316
324
  get: function get() {
317
- return _index21.RegexTester;
325
+ return _index23.RegexTester;
318
326
  }
319
327
  });
320
328
  Object.defineProperty(exports, "RuleBuilder", {
321
329
  enumerable: true,
322
330
  get: function get() {
323
- return _index20.RuleBuilder;
331
+ return _index22.RuleBuilder;
332
+ }
333
+ });
334
+ Object.defineProperty(exports, "SaveStatus", {
335
+ enumerable: true,
336
+ get: function get() {
337
+ return _index20.default;
324
338
  }
325
339
  });
326
340
  Object.defineProperty(exports, "StandardFormDialog", {
@@ -332,13 +346,13 @@ Object.defineProperty(exports, "StandardFormDialog", {
332
346
  Object.defineProperty(exports, "TemplateCategory", {
333
347
  enumerable: true,
334
348
  get: function get() {
335
- return _index21.TemplateCategory;
349
+ return _index23.TemplateCategory;
336
350
  }
337
351
  });
338
352
  Object.defineProperty(exports, "TemplateSelector", {
339
353
  enumerable: true,
340
354
  get: function get() {
341
- return _index21.TemplateSelector;
355
+ return _index23.TemplateSelector;
342
356
  }
343
357
  });
344
358
  Object.defineProperty(exports, "ToolBar", {
@@ -356,7 +370,7 @@ Object.defineProperty(exports, "WidgetSelector", {
356
370
  Object.defineProperty(exports, "buildExportUrl", {
357
371
  enumerable: true,
358
372
  get: function get() {
359
- return _index27.buildExportUrl;
373
+ return _index29.buildExportUrl;
360
374
  }
361
375
  });
362
376
  Object.defineProperty(exports, "contrastRatio", {
@@ -374,7 +388,7 @@ Object.defineProperty(exports, "createCascaderField", {
374
388
  Object.defineProperty(exports, "createEntitySelect", {
375
389
  enumerable: true,
376
390
  get: function get() {
377
- return _index26.createEntitySelect;
391
+ return _index28.createEntitySelect;
378
392
  }
379
393
  });
380
394
  Object.defineProperty(exports, "createSelectField", {
@@ -482,19 +496,19 @@ Object.defineProperty(exports, "relativeLuminance", {
482
496
  Object.defineProperty(exports, "resolveExportAction", {
483
497
  enumerable: true,
484
498
  get: function get() {
485
- return _index27.resolveExportAction;
499
+ return _index29.resolveExportAction;
486
500
  }
487
501
  });
488
502
  Object.defineProperty(exports, "resolveExportError", {
489
503
  enumerable: true,
490
504
  get: function get() {
491
- return _index27.resolveExportError;
505
+ return _index29.resolveExportError;
492
506
  }
493
507
  });
494
508
  Object.defineProperty(exports, "resolveFileName", {
495
509
  enumerable: true,
496
510
  get: function get() {
497
- return _index27.resolveFileName;
511
+ return _index29.resolveFileName;
498
512
  }
499
513
  });
500
514
  Object.defineProperty(exports, "roundDecimal", {
@@ -560,7 +574,7 @@ Object.defineProperty(exports, "useGridSchemes", {
560
574
  Object.defineProperty(exports, "useRegexValidation", {
561
575
  enumerable: true,
562
576
  get: function get() {
563
- return _index21.useRegexValidation;
577
+ return _index23.useRegexValidation;
564
578
  }
565
579
  });
566
580
  Object.defineProperty(exports, "useSchemeManager", {
@@ -572,7 +586,7 @@ Object.defineProperty(exports, "useSchemeManager", {
572
586
  Object.defineProperty(exports, "useTemplateManager", {
573
587
  enumerable: true,
574
588
  get: function get() {
575
- return _index21.useTemplateManager;
589
+ return _index23.useTemplateManager;
576
590
  }
577
591
  });
578
592
  Object.defineProperty(exports, "withReadOnlyFormatter", {
@@ -621,83 +635,97 @@ var _index16 = _interopRequireDefault(require("@nokecy/qc-ui-components/ConfirmP
621
635
  var _index17 = require("@nokecy/qc-ui-business/generatedListPage/index");
622
636
  var _index18 = require("@nokecy/qc-ui-business/standardFormDialog/index");
623
637
  var _index19 = _interopRequireDefault(require("@nokecy/qc-ui-components/deleteConfirm/index"));
624
- var _index20 = require("@nokecy/qc-ui-components/RuleBuilder/index");
625
- var _index21 = require("@nokecy/qc-ui-components/components/RegexEditor/index");
638
+ var _index20 = _interopRequireDefault(require("@nokecy/qc-ui-components/saveStatus/index"));
639
+ var _index21 = _interopRequireDefault(require("@nokecy/qc-ui-components/loadState/index"));
640
+ var _index22 = require("@nokecy/qc-ui-components/RuleBuilder/index");
641
+ var _index23 = require("@nokecy/qc-ui-components/components/RegexEditor/index");
626
642
  var _readOnlyFormatters = require("@nokecy/qc-ui-components/array-table/readOnlyFormatters");
627
- var _index22 = require("./adapters/index");
628
- Object.keys(_index22).forEach(function (key) {
643
+ var _index24 = require("./adapters/index");
644
+ Object.keys(_index24).forEach(function (key) {
629
645
  if (key === "default" || key === "__esModule") return;
630
646
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
631
- if (key in exports && exports[key] === _index22[key]) return;
647
+ if (key in exports && exports[key] === _index24[key]) return;
632
648
  Object.defineProperty(exports, key, {
633
649
  enumerable: true,
634
650
  get: function get() {
635
- return _index22[key];
651
+ return _index24[key];
636
652
  }
637
653
  });
638
654
  });
639
- var _index23 = require("@nokecy/qc-ui-components/readPretty/index");
640
- Object.keys(_index23).forEach(function (key) {
655
+ var _index25 = require("@nokecy/qc-ui-components/readPretty/index");
656
+ Object.keys(_index25).forEach(function (key) {
641
657
  if (key === "default" || key === "__esModule") return;
642
658
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
643
- if (key in exports && exports[key] === _index23[key]) return;
659
+ if (key in exports && exports[key] === _index25[key]) return;
644
660
  Object.defineProperty(exports, key, {
645
661
  enumerable: true,
646
662
  get: function get() {
647
- return _index23[key];
663
+ return _index25[key];
648
664
  }
649
665
  });
650
666
  });
651
- var _index24 = require("@nokecy/qc-ui-business/standardList/index");
652
- Object.keys(_index24).forEach(function (key) {
667
+ var _index26 = require("@nokecy/qc-ui-business/standardList/index");
668
+ Object.keys(_index26).forEach(function (key) {
653
669
  if (key === "default" || key === "__esModule") return;
654
670
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
655
- if (key in exports && exports[key] === _index24[key]) return;
671
+ if (key in exports && exports[key] === _index26[key]) return;
656
672
  Object.defineProperty(exports, key, {
657
673
  enumerable: true,
658
674
  get: function get() {
659
- return _index24[key];
675
+ return _index26[key];
660
676
  }
661
677
  });
662
678
  });
663
- var _index25 = require("@nokecy/qc-ui-business/attachment/index");
664
- Object.keys(_index25).forEach(function (key) {
679
+ var _index27 = require("@nokecy/qc-ui-business/attachment/index");
680
+ Object.keys(_index27).forEach(function (key) {
665
681
  if (key === "default" || key === "__esModule") return;
666
682
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
667
- if (key in exports && exports[key] === _index25[key]) return;
683
+ if (key in exports && exports[key] === _index27[key]) return;
668
684
  Object.defineProperty(exports, key, {
669
685
  enumerable: true,
670
686
  get: function get() {
671
- return _index25[key];
687
+ return _index27[key];
672
688
  }
673
689
  });
674
690
  });
675
- var _index26 = require("@nokecy/qc-ui-business/entitySelect/index");
676
- var _index27 = _interopRequireWildcard(require("@nokecy/qc-ui-business/exportButton/index"));
691
+ var _index28 = require("@nokecy/qc-ui-business/entitySelect/index");
692
+ var _index29 = _interopRequireWildcard(require("@nokecy/qc-ui-business/exportButton/index"));
677
693
  var _DateCellEditor = require("@nokecy/qc-ui-components/dateCellEditor/DateCellEditor");
678
694
  var _download = require("@nokecy/qc-ui-components/shared/download");
679
- var _index28 = require("@nokecy/qc-ui-components/ag-grid-plus/errors/index");
680
- var _index29 = require("@nokecy/qc-ui-components/scanCollect/index");
681
- Object.keys(_index29).forEach(function (key) {
695
+ var _index30 = require("@nokecy/qc-ui-components/ag-grid-plus/errors/index");
696
+ var _index31 = require("@nokecy/qc-ui-components/scanCollect/index");
697
+ Object.keys(_index31).forEach(function (key) {
682
698
  if (key === "default" || key === "__esModule") return;
683
699
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
684
- if (key in exports && exports[key] === _index29[key]) return;
700
+ if (key in exports && exports[key] === _index31[key]) return;
685
701
  Object.defineProperty(exports, key, {
686
702
  enumerable: true,
687
703
  get: function get() {
688
- return _index29[key];
704
+ return _index31[key];
689
705
  }
690
706
  });
691
707
  });
692
- var _index30 = require("@nokecy/qc-ui-components/documentPage/index");
693
- Object.keys(_index30).forEach(function (key) {
708
+ var _index32 = require("@nokecy/qc-ui-components/documentPage/index");
709
+ Object.keys(_index32).forEach(function (key) {
694
710
  if (key === "default" || key === "__esModule") return;
695
711
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
696
- if (key in exports && exports[key] === _index30[key]) return;
712
+ if (key in exports && exports[key] === _index32[key]) return;
697
713
  Object.defineProperty(exports, key, {
698
714
  enumerable: true,
699
715
  get: function get() {
700
- return _index30[key];
716
+ return _index32[key];
717
+ }
718
+ });
719
+ });
720
+ var _index33 = require("@nokecy/qc-ui-components/theme/index");
721
+ Object.keys(_index33).forEach(function (key) {
722
+ if (key === "default" || key === "__esModule") return;
723
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
724
+ if (key in exports && exports[key] === _index33[key]) return;
725
+ Object.defineProperty(exports, key, {
726
+ enumerable: true,
727
+ get: function get() {
728
+ return _index33[key];
701
729
  }
702
730
  });
703
731
  });
@@ -705,15 +733,15 @@ var _valueEnumColor = require("@nokecy/qc-ui-components/ag-grid-plus/utils/value
705
733
  var _agGridCompat = require("@nokecy/qc-ui-components/ag-grid-plus/utils/agGridCompat");
706
734
  var _contrast = require("@nokecy/qc-ui-components/shared/contrast");
707
735
  var _businessDecimal = require("@nokecy/qc-ui-components/shared/businessDecimal");
708
- var _index31 = require("@nokecy/qc-ui-components/formily/index");
709
- Object.keys(_index31).forEach(function (key) {
736
+ var _index34 = require("@nokecy/qc-ui-components/formily/index");
737
+ Object.keys(_index34).forEach(function (key) {
710
738
  if (key === "default" || key === "__esModule") return;
711
739
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
712
- if (key in exports && exports[key] === _index31[key]) return;
740
+ if (key in exports && exports[key] === _index34[key]) return;
713
741
  Object.defineProperty(exports, key, {
714
742
  enumerable: true,
715
743
  get: function get() {
716
- return _index31[key];
744
+ return _index34[key];
717
745
  }
718
746
  });
719
747
  });
@@ -1,15 +1,13 @@
1
- // 复合表头模板:上层居中,组内细线、组间加粗,颜色跟随当前主题。@author nokecy
1
+ // 复合表头模板:上层标题居中。分组边界与组内分隔都沿用表格自身的列线和表头行线,
2
+ // 不另加边框——另加的框会与 AG Grid 已画的 1px 线并排,看起来是两条。
3
+ // 分组标题与列头同字号、同字重,随密度一起收放,不单独放大。@author nokecy
2
4
  .ag-root-wrapper {
3
5
  .app-grid-composite-group {
4
- border-top: 1px solid var(--ag-border-color) !important;
5
- border-inline: 4.5px solid var(--ag-border-color) !important;
6
-
7
6
  .ag-header-group-cell-label {
8
7
  justify-content: center !important;
9
8
  width: 100%;
10
9
  min-width: 0;
11
- font-size: calc(var(--ag-font-size, 12px) + 3px);
12
- line-height: 1.25;
10
+ font-size: inherit;
13
11
  }
14
12
 
15
13
  .ag-header-group-text {
@@ -19,26 +17,4 @@
19
17
  white-space: nowrap;
20
18
  }
21
19
  }
22
-
23
- .app-grid-composite-header {
24
- border-bottom: 1px solid var(--ag-border-color) !important;
25
- border-inline-end: 1px solid var(--ag-border-color) !important;
26
- }
27
-
28
- .app-grid-composite-cell {
29
- border-inline-end: 1px solid var(--ag-border-color) !important;
30
- }
31
-
32
- .app-grid-composite-start {
33
- border-inline-start: 4.5px solid var(--ag-border-color) !important;
34
- }
35
-
36
- .app-grid-composite-end {
37
- border-inline-end: 4.5px solid var(--ag-border-color) !important;
38
- }
39
-
40
- // 相邻分组仅绘制一条4.5px分界;独立分组左右框均保留。@author jwy
41
- .app-grid-composite-shared-start {
42
- border-inline-start: 0 !important;
43
- }
44
20
  }
@@ -2,7 +2,7 @@
2
2
  position: relative;
3
3
  }
4
4
 
5
- // 刷新时表里已有数据:不盖遮罩,只在表格顶部给一条 2px 的流动加载条
5
+ // 刷新时表里已有数据:整表 Spin 遮罩之外,表格顶部再给一条 2px 的流动加载条,标出加载的是哪张表。@author nokecy
6
6
  .qc-grid-busy-bar {
7
7
  position: absolute;
8
8
  top: 0;
@@ -98,3 +98,15 @@
98
98
  .ag-overlay-no-rows-wrapper :is(button, a, input, [role='button']) {
99
99
  pointer-events: auto;
100
100
  }
101
+
102
+ // 加载骨架要铺满表体并贴着表头:AG-Grid 33 的加载浮层是水平、垂直都居中的 flex 容器,
103
+ // 自定义浮层外层的 .ag-react-container 按内容收缩,骨架的 width: 100% 只剩几十像素、挤在表体正中。
104
+ // AgGridPlus 的加载浮层只有骨架一种,按表格外壳限定,不用 :has(),兼容较旧的工控机浏览器。@author nokecy
105
+ .qc-table-container .ag-overlay-loading-wrapper {
106
+ align-items: flex-start;
107
+
108
+ > .ag-react-container {
109
+ flex: 1;
110
+ min-width: 0;
111
+ }
112
+ }
@@ -5,7 +5,8 @@
5
5
 
6
6
  .@{pro-table-search-prefix-cls} {
7
7
  margin-bottom: 8px;
8
- padding: 8px;
8
+ // 上下内边距随密度变化(主题作用域外回到 8px)。@author nokecy
9
+ padding: var(--qc-query-py, 8px) 8px;
9
10
  // padding-bottom: 0;
10
11
  // 背景由组件读取 Ant Design 主题 token,支持浅色和深色。@author nokecy
11
12
 
@@ -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
- font-size: 16px;
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));