@mijalowcode/materials 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/DesensitizationDisplay-XCB4GDPW.js +3 -0
  2. package/dist/{DesensitizationDisplay-CBKBVL2V.js.map → DesensitizationDisplay-XCB4GDPW.js.map} +1 -1
  3. package/dist/DrawerWrapper-MPT3IWYD.css +104 -0
  4. package/dist/DrawerWrapper-MPT3IWYD.css.map +1 -0
  5. package/dist/DrawerWrapper-MQOCGF7M.js +3 -0
  6. package/dist/{DrawerWrapper-S4DWP4YO.js.map → DrawerWrapper-MQOCGF7M.js.map} +1 -1
  7. package/dist/{ProTableWrapper-ATFZXHWT.js → ProTableWrapper-DOKMBYWN.js} +3 -3
  8. package/dist/{ProTableWrapper-ATFZXHWT.js.map → ProTableWrapper-DOKMBYWN.js.map} +1 -1
  9. package/dist/{chunk-C7UZWG4J.js → chunk-3E4U7ZQZ.js} +209 -156
  10. package/dist/chunk-3E4U7ZQZ.js.map +1 -0
  11. package/dist/{chunk-YIFEQ2KZ.js → chunk-DL6YUG5R.js} +36 -13
  12. package/dist/chunk-DL6YUG5R.js.map +1 -0
  13. package/dist/{chunk-RWMCWXH3.js → chunk-ECOW5GPV.js} +6 -6
  14. package/dist/{chunk-RWMCWXH3.js.map → chunk-ECOW5GPV.js.map} +1 -1
  15. package/dist/{chunk-HSEAHONQ.js → chunk-ICDNHCBG.js} +95 -4
  16. package/dist/chunk-ICDNHCBG.js.map +1 -0
  17. package/dist/{chunk-BVDSN573.js → chunk-PJFDO4E6.js} +18 -7
  18. package/dist/chunk-PJFDO4E6.js.map +1 -0
  19. package/dist/index.css +99 -10
  20. package/dist/index.css.map +1 -1
  21. package/dist/index.js +39 -7
  22. package/dist/index.js.map +1 -1
  23. package/dist/meta-AKNOVCWP.js +3 -0
  24. package/dist/{meta-BYJ4YSP5.js.map → meta-AKNOVCWP.js.map} +1 -1
  25. package/dist/runtime.css +99 -10
  26. package/dist/runtime.css.map +1 -1
  27. package/dist/runtime.js +1 -1
  28. package/package.json +3 -3
  29. package/dist/DesensitizationDisplay-CBKBVL2V.js +0 -3
  30. package/dist/DesensitizationDisplay-X2JJGJ3P.css +0 -15
  31. package/dist/DesensitizationDisplay-X2JJGJ3P.css.map +0 -1
  32. package/dist/DrawerWrapper-S4DWP4YO.js +0 -3
  33. package/dist/chunk-BVDSN573.js.map +0 -1
  34. package/dist/chunk-C7UZWG4J.js.map +0 -1
  35. package/dist/chunk-HSEAHONQ.js.map +0 -1
  36. package/dist/chunk-YIFEQ2KZ.js.map +0 -1
  37. package/dist/meta-BYJ4YSP5.js +0 -3
@@ -0,0 +1,3 @@
1
+ export { DesensitizationDisplay_default as default } from './chunk-DL6YUG5R.js';
2
+ //# sourceMappingURL=DesensitizationDisplay-XCB4GDPW.js.map
3
+ //# sourceMappingURL=DesensitizationDisplay-XCB4GDPW.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"DesensitizationDisplay-CBKBVL2V.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"DesensitizationDisplay-XCB4GDPW.js"}
@@ -0,0 +1,104 @@
1
+ /* src/antd/overlay/OverlayEditShell.module.css */
2
+ .OverlayEditShell_shell {
3
+ position: relative;
4
+ box-sizing: border-box;
5
+ max-width: 100%;
6
+ overflow: hidden;
7
+ background: #fff;
8
+ border: 1px solid #d9d9d9;
9
+ border-radius: 8px;
10
+ box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
11
+ }
12
+ .OverlayEditShell_modalShell {
13
+ width: min(100%, 520px);
14
+ }
15
+ .OverlayEditShell_drawerShell {
16
+ width: min(100%, 378px);
17
+ min-height: 260px;
18
+ border-radius: 6px;
19
+ }
20
+ .OverlayEditShell_placement-top,
21
+ .OverlayEditShell_placement-bottom {
22
+ width: 100%;
23
+ min-height: 220px;
24
+ }
25
+ .OverlayEditShell_placement-left,
26
+ .OverlayEditShell_placement-right {
27
+ min-height: 300px;
28
+ }
29
+ .OverlayEditShell_closed {
30
+ outline: 1px dashed #faad14;
31
+ outline-offset: -4px;
32
+ }
33
+ .OverlayEditShell_header {
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: space-between;
37
+ gap: 8px;
38
+ min-height: 44px;
39
+ padding: 0 16px;
40
+ border-bottom: 1px solid #f0f0f0;
41
+ }
42
+ .OverlayEditShell_title {
43
+ min-width: 0;
44
+ overflow: hidden;
45
+ color: #1f2937;
46
+ font-weight: 600;
47
+ text-overflow: ellipsis;
48
+ white-space: nowrap;
49
+ }
50
+ .OverlayEditShell_stateTag {
51
+ flex: 0 0 auto;
52
+ padding: 2px 6px;
53
+ color: #ad6800;
54
+ font-size: 12px;
55
+ line-height: 18px;
56
+ background: #fffbe6;
57
+ border: 1px solid #ffe58f;
58
+ border-radius: 4px;
59
+ }
60
+ .OverlayEditShell_body {
61
+ min-height: 160px;
62
+ padding: 16px;
63
+ background: #fff;
64
+ }
65
+ .OverlayEditShell_empty {
66
+ display: flex;
67
+ align-items: center;
68
+ justify-content: center;
69
+ min-height: 128px;
70
+ color: #8c8c8c;
71
+ font-size: 13px;
72
+ border: 1px dashed #d9d9d9;
73
+ border-radius: 6px;
74
+ background: #fafafa;
75
+ }
76
+ .OverlayEditShell_footer {
77
+ display: flex;
78
+ justify-content: flex-end;
79
+ gap: 8px;
80
+ padding: 10px 16px;
81
+ border-top: 1px solid #f0f0f0;
82
+ }
83
+ .OverlayEditShell_footerButton,
84
+ .OverlayEditShell_footerButtonPrimary {
85
+ display: inline-flex;
86
+ align-items: center;
87
+ justify-content: center;
88
+ min-width: 56px;
89
+ height: 28px;
90
+ padding: 0 12px;
91
+ font-size: 13px;
92
+ border-radius: 4px;
93
+ }
94
+ .OverlayEditShell_footerButton {
95
+ color: #1f2937;
96
+ border: 1px solid #d9d9d9;
97
+ background: #fff;
98
+ }
99
+ .OverlayEditShell_footerButtonPrimary {
100
+ color: #fff;
101
+ border: 1px solid #1677ff;
102
+ background: #1677ff;
103
+ }
104
+ /*# sourceMappingURL=DrawerWrapper-MPT3IWYD.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/antd/overlay/OverlayEditShell.module.css"],"sourcesContent":[".shell {\n position: relative;\n box-sizing: border-box;\n max-width: 100%;\n overflow: hidden;\n background: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 8px;\n box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);\n}\n\n.modalShell {\n width: min(100%, 520px);\n}\n\n.drawerShell {\n width: min(100%, 378px);\n min-height: 260px;\n border-radius: 6px;\n}\n\n.placement-top,\n.placement-bottom {\n width: 100%;\n min-height: 220px;\n}\n\n.placement-left,\n.placement-right {\n min-height: 300px;\n}\n\n.closed {\n outline: 1px dashed #faad14;\n outline-offset: -4px;\n}\n\n.header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n min-height: 44px;\n padding: 0 16px;\n border-bottom: 1px solid #f0f0f0;\n}\n\n.title {\n min-width: 0;\n overflow: hidden;\n color: #1f2937;\n font-weight: 600;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.stateTag {\n flex: 0 0 auto;\n padding: 2px 6px;\n color: #ad6800;\n font-size: 12px;\n line-height: 18px;\n background: #fffbe6;\n border: 1px solid #ffe58f;\n border-radius: 4px;\n}\n\n.body {\n min-height: 160px;\n padding: 16px;\n background: #fff;\n}\n\n.empty {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 128px;\n color: #8c8c8c;\n font-size: 13px;\n border: 1px dashed #d9d9d9;\n border-radius: 6px;\n background: #fafafa;\n}\n\n.footer {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n padding: 10px 16px;\n border-top: 1px solid #f0f0f0;\n}\n\n.footerButton,\n.footerButtonPrimary {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 56px;\n height: 28px;\n padding: 0 12px;\n font-size: 13px;\n border-radius: 4px;\n}\n\n.footerButton {\n color: #1f2937;\n border: 1px solid #d9d9d9;\n background: #fff;\n}\n\n.footerButtonPrimary {\n color: #fff;\n border: 1px solid #1677ff;\n background: #1677ff;\n}\r\n"],"mappings":";AAAA,CAACA;AACC,YAAU;AACV,cAAY;AACZ,aAAW;AACX,YAAU;AACV,cAAY;AACZ,UAAQ,IAAI,MAAM;AAClB,iBAAe;AACf,cAAY,EAAE,IAAI,KAAK,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AAC1C;AAEA,CAACC;AACC,SAAO,IAAI,IAAI,EAAE;AACnB;AAEA,CAACC;AACC,SAAO,IAAI,IAAI,EAAE;AACjB,cAAY;AACZ,iBAAe;AACjB;AAEA,CAACC;AACD,CAACC;AACC,SAAO;AACP,cAAY;AACd;AAEA,CAACC;AACD,CAACC;AACC,cAAY;AACd;AAEA,CAACC;AACC,WAAS,IAAI,OAAO;AACpB,kBAAgB;AAClB;AAEA,CAACC;AACC,WAAS;AACT,eAAa;AACb,mBAAiB;AACjB,OAAK;AACL,cAAY;AACZ,WAAS,EAAE;AACX,iBAAe,IAAI,MAAM;AAC3B;AAEA,CAACC;AACC,aAAW;AACX,YAAU;AACV,SAAO;AACP,eAAa;AACb,iBAAe;AACf,eAAa;AACf;AAEA,CAACC;AACC,QAAM,EAAE,EAAE;AACV,WAAS,IAAI;AACb,SAAO;AACP,aAAW;AACX,eAAa;AACb,cAAY;AACZ,UAAQ,IAAI,MAAM;AAClB,iBAAe;AACjB;AAEA,CAACC;AACC,cAAY;AACZ,WAAS;AACT,cAAY;AACd;AAEA,CAACC;AACC,WAAS;AACT,eAAa;AACb,mBAAiB;AACjB,cAAY;AACZ,SAAO;AACP,aAAW;AACX,UAAQ,IAAI,OAAO;AACnB,iBAAe;AACf,cAAY;AACd;AAEA,CAACC;AACC,WAAS;AACT,mBAAiB;AACjB,OAAK;AACL,WAAS,KAAK;AACd,cAAY,IAAI,MAAM;AACxB;AAEA,CAACC;AACD,CAACC;AACC,WAAS;AACT,eAAa;AACb,mBAAiB;AACjB,aAAW;AACX,UAAQ;AACR,WAAS,EAAE;AACX,aAAW;AACX,iBAAe;AACjB;AAEA,CAZCD;AAaC,SAAO;AACP,UAAQ,IAAI,MAAM;AAClB,cAAY;AACd;AAEA,CAjBCC;AAkBC,SAAO;AACP,UAAQ,IAAI,MAAM;AAClB,cAAY;AACd;","names":["shell","modalShell","drawerShell","placement-top","placement-bottom","placement-left","placement-right","closed","header","title","stateTag","body","empty","footer","footerButton","footerButtonPrimary"]}
@@ -0,0 +1,3 @@
1
+ export { DrawerWrapper_default as default } from './chunk-ICDNHCBG.js';
2
+ //# sourceMappingURL=DrawerWrapper-MQOCGF7M.js.map
3
+ //# sourceMappingURL=DrawerWrapper-MQOCGF7M.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"DrawerWrapper-S4DWP4YO.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"DrawerWrapper-MQOCGF7M.js"}
@@ -1,5 +1,5 @@
1
- export { buildProTableFormConfig, buildProTableQueryDelayDetail, buildProTableRequestParamsSummary, buildProTableSlotRuntimeContext, buildSearchInitialValuesFromStorageValue, ProTableWrapper_default as default, resolveProTableQueryActionName, shouldRecordProTableLongTask, unwrapSearchStorageValue } from './chunk-C7UZWG4J.js';
1
+ export { buildProTableFormConfig, buildProTableQueryDelayDetail, buildProTableRequestParamsSummary, buildProTableSlotRuntimeContext, buildSearchInitialValuesFromStorageValue, ProTableWrapper_default as default, resolveProTableQueryActionName, shouldRecordProTableLongTask, unwrapSearchStorageValue } from './chunk-3E4U7ZQZ.js';
2
2
  import './chunk-ERTSEXI5.js';
3
3
  import './chunk-CTF6CVK3.js';
4
- //# sourceMappingURL=ProTableWrapper-ATFZXHWT.js.map
5
- //# sourceMappingURL=ProTableWrapper-ATFZXHWT.js.map
4
+ //# sourceMappingURL=ProTableWrapper-DOKMBYWN.js.map
5
+ //# sourceMappingURL=ProTableWrapper-DOKMBYWN.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"ProTableWrapper-ATFZXHWT.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"ProTableWrapper-DOKMBYWN.js"}
@@ -1,6 +1,6 @@
1
1
  import { useSlotRuntime } from './chunk-ERTSEXI5.js';
2
2
  import { useEventEmitter } from './chunk-CTF6CVK3.js';
3
- import { useRef, useState, useEffect, useMemo, useCallback } from 'react';
3
+ import { memo, useRef, useState, useEffect, useMemo, useCallback } from 'react';
4
4
  import { ProTable } from '@ant-design/pro-components';
5
5
  import * as AntdIcons from '@ant-design/icons';
6
6
  import { jsx } from 'react/jsx-runtime';
@@ -26,108 +26,8 @@ function hasTableRequestBinding(eventMap) {
26
26
  }
27
27
  return Array.isArray(current.actions) && current.actions.length > 0;
28
28
  }
29
- function isRuntimeDebugEnabled() {
30
- if (typeof window === "undefined") return false;
31
- return window.__LC_DEBUG_ENABLED__ === true;
32
- }
33
- function recordProTableDiagnostic(name, detail) {
34
- if (typeof window === "undefined" || !isRuntimeDebugEnabled()) return;
35
- if (!window.__LC_PERF_COUNTS__) {
36
- window.__LC_PERF_COUNTS__ = {};
37
- }
38
- const eventName = String(name || "").trim();
39
- if (!eventName) return;
40
- const nextCount = Number(window.__LC_PERF_COUNTS__[eventName] || 0) + 1;
41
- window.__LC_PERF_COUNTS__[eventName] = nextCount;
42
- console.info("[LC PERF]", {
43
- name: eventName,
44
- count: nextCount,
45
- detail
46
- });
47
- }
48
- function resolveProTableQueryActionName(text) {
49
- const normalized = String(text || "").replace(/\s+/g, "");
50
- if (normalized === "\u67E5\u8BE2") return "query";
51
- if (normalized === "\u91CD\u7F6E") return "reset";
52
- return void 0;
53
- }
54
- function buildProTableQueryDelayDetail(capturedAt, triggeredAt) {
55
- return {
56
- delayMs: Math.round(triggeredAt - capturedAt)
57
- };
58
- }
59
- function getDiagnosticValueType(value) {
60
- if (Array.isArray(value)) return `array(${value.length})`;
61
- if (value === null) return "null";
62
- return typeof value;
63
- }
64
- function buildProTableRequestParamsSummary(params) {
65
- const keys = Object.keys(params || {});
66
- return {
67
- keys,
68
- fieldTypes: keys.reduce((acc, key) => {
69
- acc[key] = getDiagnosticValueType(params[key]);
70
- return acc;
71
- }, {})
72
- };
73
- }
74
- function shouldRecordProTableLongTask(duration) {
75
- return Number(duration || 0) >= 50;
76
- }
77
- function getEventTargetButton(target) {
78
- if (!target || typeof Element === "undefined") return null;
79
- if (!(target instanceof Element)) return null;
80
- return target.closest("button");
81
- }
82
- function getNowTime() {
83
- return typeof performance !== "undefined" ? performance.now() : Date.now();
84
- }
85
- function buildTableRequestSortPayload(sort) {
86
- const [sortField, sortOrder] = Object.entries(sort).find(([, value]) => {
87
- return value === "ascend" || value === "descend";
88
- }) || [void 0, void 0];
89
- if (!sortField || typeof sortOrder !== "string") return {};
90
- return {
91
- sortField,
92
- sortMode: sortOrder === "ascend" ? "ASC" : "DESC"
93
- };
94
- }
95
- function isBindValue(value) {
96
- return Boolean(value) && typeof value === "object" && !Array.isArray(value) && typeof value.__bind === "object";
97
- }
98
- function renderFieldPropsPrefixSuffix(fieldProps) {
99
- if (!fieldProps) return void 0;
100
- const result = { ...fieldProps };
101
- if (fieldProps.prefixType === "icon" && fieldProps.prefixIcon) {
102
- const icons = AntdIcons;
103
- const IconComponent = icons[fieldProps.prefixIcon];
104
- result.prefix = IconComponent ? /* @__PURE__ */ jsx(IconComponent, {}) : void 0;
105
- } else if (fieldProps.prefixText) {
106
- result.prefix = fieldProps.prefixText;
107
- }
108
- if (fieldProps.suffixType === "icon" && fieldProps.suffixIcon) {
109
- const icons = AntdIcons;
110
- const IconComponent = icons[fieldProps.suffixIcon];
111
- result.suffix = IconComponent ? /* @__PURE__ */ jsx(IconComponent, {}) : void 0;
112
- } else if (fieldProps.suffixText) {
113
- result.suffix = fieldProps.suffixText;
114
- }
115
- return result;
116
- }
117
- function resolveColumnValueEnum(col) {
118
- if (isBindValue(col.valueEnum)) {
119
- return col.valueEnum.__bind.fallback;
120
- }
121
- return col.valueEnum;
122
- }
123
- function resolveColumnSlotAreaNames(col) {
124
- const areaNames = [];
125
- const columnId = String(col.columnId || "").trim();
126
- if (columnId) {
127
- areaNames.push(`columnId:${columnId}`);
128
- }
129
- return areaNames;
130
- }
29
+
30
+ // src/antdPro/ProTable/storage-search.ts
131
31
  function isPlainObject(value) {
132
32
  return Boolean(value) && typeof value === "object" && !Array.isArray(value);
133
33
  }
@@ -170,6 +70,8 @@ function buildProTableFormConfig(searchInitialValues) {
170
70
  initialValues: searchInitialValues
171
71
  };
172
72
  }
73
+
74
+ // src/antdPro/ProTable/slot-cell.tsx
173
75
  function buildProTableSlotRuntimeContext(runtimeContext, slotRuntimeContext) {
174
76
  const baseData = isPlainObject(runtimeContext?.data) ? runtimeContext.data : {};
175
77
  const slotData = isPlainObject(slotRuntimeContext.data) ? slotRuntimeContext.data : {};
@@ -182,6 +84,104 @@ function buildProTableSlotRuntimeContext(runtimeContext, slotRuntimeContext) {
182
84
  }
183
85
  };
184
86
  }
87
+ var ProTableSlotCell = memo(
88
+ function ProTableSlotCell2({
89
+ areaNames,
90
+ column,
91
+ getAreaNodes,
92
+ index,
93
+ record,
94
+ runtimeContext,
95
+ value,
96
+ valueEnum
97
+ }) {
98
+ const enumRecord = valueEnum;
99
+ const enumMatch = enumRecord && value !== void 0 && value !== null ? enumRecord[String(value)] : void 0;
100
+ const slotPayload = {
101
+ record,
102
+ index,
103
+ column,
104
+ value,
105
+ valueEnum,
106
+ valueEnumItem: enumMatch,
107
+ enumText: enumMatch?.text,
108
+ enumStatus: enumMatch?.status
109
+ };
110
+ const slotNodes = areaNames.reduce(
111
+ (matchedNodes, areaName) => {
112
+ if (matchedNodes !== void 0) {
113
+ return matchedNodes;
114
+ }
115
+ const slotRuntimeContext = buildProTableSlotRuntimeContext(
116
+ runtimeContext,
117
+ {
118
+ scope: "table.cell",
119
+ area: areaName,
120
+ container: {
121
+ type: "table",
122
+ area: areaName,
123
+ index,
124
+ column,
125
+ record
126
+ },
127
+ data: {
128
+ ...slotPayload,
129
+ rawValue: value,
130
+ displayValue: enumMatch?.text !== void 0 && enumMatch?.text !== null ? enumMatch.text : value,
131
+ status: enumMatch?.status
132
+ }
133
+ }
134
+ );
135
+ return getAreaNodes?.(areaName, {
136
+ ...slotPayload,
137
+ runtimeContext: slotRuntimeContext
138
+ });
139
+ },
140
+ void 0
141
+ );
142
+ if (slotNodes !== void 0) {
143
+ return slotNodes.length === 1 ? slotNodes[0] : slotNodes;
144
+ }
145
+ return String(record[column.dataIndex] ?? "");
146
+ },
147
+ (prev, next) => prev.areaNames === next.areaNames && prev.column === next.column && prev.getAreaNodes === next.getAreaNodes && prev.index === next.index && prev.record === next.record && prev.runtimeContext === next.runtimeContext && prev.value === next.value && prev.valueEnum === next.valueEnum
148
+ );
149
+ function isBindValue(value) {
150
+ return Boolean(value) && typeof value === "object" && !Array.isArray(value) && typeof value.__bind === "object";
151
+ }
152
+ function renderFieldPropsPrefixSuffix(fieldProps) {
153
+ if (!fieldProps) return void 0;
154
+ const result = { ...fieldProps };
155
+ if (fieldProps.prefixType === "icon" && fieldProps.prefixIcon) {
156
+ const icons = AntdIcons;
157
+ const IconComponent = icons[fieldProps.prefixIcon];
158
+ result.prefix = IconComponent ? /* @__PURE__ */ jsx(IconComponent, {}) : void 0;
159
+ } else if (fieldProps.prefixText) {
160
+ result.prefix = fieldProps.prefixText;
161
+ }
162
+ if (fieldProps.suffixType === "icon" && fieldProps.suffixIcon) {
163
+ const icons = AntdIcons;
164
+ const IconComponent = icons[fieldProps.suffixIcon];
165
+ result.suffix = IconComponent ? /* @__PURE__ */ jsx(IconComponent, {}) : void 0;
166
+ } else if (fieldProps.suffixText) {
167
+ result.suffix = fieldProps.suffixText;
168
+ }
169
+ return result;
170
+ }
171
+ function resolveColumnValueEnum(col) {
172
+ if (isBindValue(col.valueEnum)) {
173
+ return col.valueEnum.__bind.fallback;
174
+ }
175
+ return col.valueEnum;
176
+ }
177
+ function resolveColumnSlotAreaNames(col) {
178
+ const areaNames = [];
179
+ const columnId = String(col.columnId || "").trim();
180
+ if (columnId) {
181
+ areaNames.push(`columnId:${columnId}`);
182
+ }
183
+ return areaNames;
184
+ }
185
185
  function convertColumns(columns = [], getAreaNodes, areaMap = {}, hasExternalRenderSlot = false, runtimeContext) {
186
186
  return columns.map((col) => {
187
187
  const extendedCol = col;
@@ -213,57 +213,106 @@ function convertColumns(columns = [], getAreaNodes, areaMap = {}, hasExternalRen
213
213
  proColumn.render = (_, record, index) => {
214
214
  const rawValue = record[col.dataIndex];
215
215
  const valueEnum = resolveColumnValueEnum(col);
216
- const enumMatch = valueEnum && rawValue !== void 0 && rawValue !== null ? valueEnum[String(rawValue)] : void 0;
217
- const slotPayload = {
218
- record,
219
- index,
220
- column: col,
221
- value: rawValue,
222
- valueEnum,
223
- valueEnumItem: enumMatch,
224
- enumText: enumMatch?.text,
225
- enumStatus: enumMatch?.status
226
- };
227
- const slotNodes = areaNames.reduce(
228
- (matchedNodes, areaName) => {
229
- if (matchedNodes !== void 0) {
230
- return matchedNodes;
231
- }
232
- const slotRuntimeContext = buildProTableSlotRuntimeContext(
233
- runtimeContext,
234
- {
235
- scope: "table.cell",
236
- area: areaName,
237
- container: {
238
- type: "table",
239
- area: areaName,
240
- index,
241
- column: col,
242
- record
243
- },
244
- data: {
245
- ...slotPayload,
246
- rawValue,
247
- displayValue: enumMatch?.text !== void 0 && enumMatch?.text !== null ? enumMatch.text : rawValue,
248
- status: enumMatch?.status
249
- }
250
- }
251
- );
252
- return getAreaNodes?.(areaName, {
253
- ...slotPayload,
254
- runtimeContext: slotRuntimeContext
255
- });
256
- },
257
- void 0
216
+ return /* @__PURE__ */ jsx(
217
+ ProTableSlotCell,
218
+ {
219
+ areaNames,
220
+ column: col,
221
+ getAreaNodes,
222
+ index,
223
+ record,
224
+ runtimeContext,
225
+ value: rawValue,
226
+ valueEnum
227
+ }
258
228
  );
259
- if (slotNodes !== void 0) {
260
- return slotNodes.length === 1 ? slotNodes[0] : slotNodes;
261
- }
262
- return String(record[col.dataIndex] ?? "");
263
229
  };
264
230
  return proColumn;
265
231
  });
266
232
  }
233
+
234
+ // src/antdPro/ProTable/query-diagnostics.ts
235
+ function isRuntimeDebugEnabled() {
236
+ if (typeof window === "undefined") return false;
237
+ return window.__LC_DEBUG_ENABLED__ === true;
238
+ }
239
+ function recordProTableDiagnostic(name, detail) {
240
+ if (typeof window === "undefined" || !isRuntimeDebugEnabled()) return;
241
+ if (!window.__LC_PERF_COUNTS__) {
242
+ window.__LC_PERF_COUNTS__ = {};
243
+ }
244
+ const eventName = String(name || "").trim();
245
+ if (!eventName) return;
246
+ const nextCount = Number(window.__LC_PERF_COUNTS__[eventName] || 0) + 1;
247
+ window.__LC_PERF_COUNTS__[eventName] = nextCount;
248
+ console.info("[LC PERF]", {
249
+ name: eventName,
250
+ count: nextCount,
251
+ detail
252
+ });
253
+ }
254
+ function resolveProTableQueryActionName(text) {
255
+ const normalized = String(text || "").replace(/\s+/g, "");
256
+ if (normalized === "\u67E5\u8BE2") return "query";
257
+ if (normalized === "\u91CD\u7F6E") return "reset";
258
+ return void 0;
259
+ }
260
+ function buildProTableQueryDelayDetail(capturedAt, triggeredAt) {
261
+ return {
262
+ delayMs: Math.round(triggeredAt - capturedAt)
263
+ };
264
+ }
265
+ function getDiagnosticValueType(value) {
266
+ if (Array.isArray(value)) return `array(${value.length})`;
267
+ if (value === null) return "null";
268
+ return typeof value;
269
+ }
270
+ function buildProTableRequestParamsSummary(params) {
271
+ const keys = Object.keys(params || {});
272
+ return {
273
+ keys,
274
+ fieldTypes: keys.reduce((acc, key) => {
275
+ acc[key] = getDiagnosticValueType(params[key]);
276
+ return acc;
277
+ }, {})
278
+ };
279
+ }
280
+ function shouldRecordProTableLongTask(duration) {
281
+ return Number(duration || 0) >= 50;
282
+ }
283
+ function getNowTime() {
284
+ return typeof performance !== "undefined" ? performance.now() : Date.now();
285
+ }
286
+ function yieldProTableRequestPaint() {
287
+ return new Promise((resolve) => {
288
+ if (typeof window === "undefined") {
289
+ resolve();
290
+ return;
291
+ }
292
+ if (typeof window.requestAnimationFrame !== "function") {
293
+ window.setTimeout(resolve, 0);
294
+ return;
295
+ }
296
+ window.requestAnimationFrame(() => {
297
+ window.setTimeout(resolve, 0);
298
+ });
299
+ });
300
+ }
301
+ function getEventTargetButton(target) {
302
+ if (!target || typeof Element === "undefined") return null;
303
+ if (!(target instanceof Element)) return null;
304
+ return target.closest("button");
305
+ }
306
+ function buildTableRequestSortPayload(sort) {
307
+ const [sortField, sortOrder] = Object.entries(sort).find(([, value]) => {
308
+ return value === "ascend" || value === "descend";
309
+ }) || [void 0, void 0];
310
+ if (!sortField || typeof sortOrder !== "string") return {};
311
+ return {
312
+ sortField,
313
+ sortMode: sortOrder === "ascend" ? "ASC" : "DESC"
314
+ };
315
+ }
267
316
  function ProTableWrapper({
268
317
  columns = [],
269
318
  dataSource = [],
@@ -429,11 +478,15 @@ function ProTableWrapper({
429
478
  )
430
479
  } : void 0
431
480
  });
432
- const result = await emitEventRef.current("table.request", {
433
- ...params,
434
- ...buildTableRequestSortPayload(sort),
435
- ...filter
436
- });
481
+ await yieldProTableRequestPaint();
482
+ const result = await emitEventRef.current(
483
+ "table.request",
484
+ {
485
+ ...params,
486
+ ...buildTableRequestSortPayload(sort),
487
+ ...filter
488
+ }
489
+ );
437
490
  const finalResult = result || {
438
491
  data: [],
439
492
  success: true,
@@ -707,5 +760,5 @@ function ProTableWrapper({
707
760
  var ProTableWrapper_default = ProTableWrapper;
708
761
 
709
762
  export { ProTableWrapper_default, buildProTableFormConfig, buildProTableQueryDelayDetail, buildProTableRequestParamsSummary, buildProTableSlotRuntimeContext, buildSearchInitialValuesFromStorageValue, resolveProTableQueryActionName, shouldRecordProTableLongTask, unwrapSearchStorageValue };
710
- //# sourceMappingURL=chunk-C7UZWG4J.js.map
711
- //# sourceMappingURL=chunk-C7UZWG4J.js.map
763
+ //# sourceMappingURL=chunk-3E4U7ZQZ.js.map
764
+ //# sourceMappingURL=chunk-3E4U7ZQZ.js.map