@hkyhy/marsun-components-core 0.1.132 → 0.1.134
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 +2 -0
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.js +5 -2
- package/dist/_virtual/index4.js.map +1 -1
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index5.js.map +1 -1
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/Disposition/DispositionBar/formatDispositionStatusBadge.d.ts +22 -0
- package/dist/components/Disposition/DispositionBar/formatDispositionStatusBadge.js +14 -0
- package/dist/components/Disposition/DispositionBar/formatDispositionStatusBadge.js.map +1 -0
- package/dist/components/Disposition/DispositionBar/index.js +6 -6
- package/dist/components/Disposition/DispositionBar/index.js.map +1 -1
- package/dist/components/Disposition/DispositionBar/style.module.scss.js +6 -6
- package/dist/components/Disposition/index.d.ts +2 -0
- package/dist/components/Tools/ActionTracking/List/ActionListTable.module.scss.js +4 -4
- package/dist/components/Tools/ActionTracking/List/listTypes.d.ts +5 -0
- package/dist/components/Tools/ActionTracking/index.d.ts +2 -1
- package/dist/components/Tools/ActionTracking/utils/actionExecuteGate.d.ts +18 -0
- package/dist/components/Tools/ActionTracking/utils/actionExecuteGate.js +11 -0
- package/dist/components/Tools/ActionTracking/utils/actionExecuteGate.js.map +1 -0
- package/dist/components/Tools/ActionTracking/utils/index.d.ts +2 -0
- package/dist/components/Tools/Inbox/InboxBell/InboxBell.d.ts +7 -0
- package/dist/components/Tools/Inbox/InboxBell/InboxBell.js +288 -260
- package/dist/components/Tools/Inbox/InboxBell/InboxBell.js.map +1 -1
- package/dist/components/Tools/Inbox/InboxBell/style.module.scss.js +72 -70
- package/dist/components/Tools/Inbox/InboxBell/style.module.scss.js.map +1 -1
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/List/columns.d.ts +5 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/List/columns.js +25 -12
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/List/columns.js.map +1 -1
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/Modal/TemplateFormModal.js +82 -78
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/Modal/TemplateFormModal.js.map +1 -1
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/types.d.ts +5 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/types.js.map +1 -1
- package/dist/components/Tools/index.d.ts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +210 -206
- package/dist/index.js.map +1 -1
- package/dist/marsun-components-core.css +1 -1
- package/dist/node_modules/@ant-design/charts-util/es/react/render.js +27 -27
- package/dist/node_modules/@ant-design/charts-util/es/react/render.js.map +1 -1
- package/dist/node_modules/@antv/component/node_modules/@antv/scale/esm/utils/color.js +1 -1
- package/dist/node_modules/@antv/coord/node_modules/@antv/scale/esm/utils/color.js +1 -1
- package/dist/node_modules/@antv/g6-extension-react/esm/react-node/render18.js +19 -19
- package/dist/node_modules/@antv/g6-extension-react/esm/react-node/render18.js.map +1 -1
- package/dist/node_modules/@antv/scale/esm/utils/color.js +1 -1
- package/dist/node_modules/color-string/index.js +1 -1
- package/dist/node_modules/eventemitter3/index2.js +1 -1
- package/dist/node_modules/pdfast/src/index.js +1 -1
- package/dist/node_modules/simple-swizzle/index.js +1 -1
- package/dist/styles/global.css +1 -1
- package/dist/utils/ensureDayjsZhCn.js +1 -1
- package/package.json +1 -1
- package/dist/_virtual/client.js +0 -28
- package/dist/_virtual/client.js.map +0 -1
- package/dist/_virtual/client2.js +0 -5
- package/dist/_virtual/client2.js.map +0 -1
- package/dist/_virtual/index8.js +0 -5
- package/dist/_virtual/index8.js.map +0 -1
- package/dist/_virtual/react-dom-client.development.js +0 -5
- package/dist/_virtual/react-dom-client.development.js.map +0 -1
- package/dist/_virtual/react-dom-client.production.js +0 -5
- package/dist/_virtual/react-dom-client.production.js.map +0 -1
- package/dist/_virtual/scheduler.development.js +0 -5
- package/dist/_virtual/scheduler.development.js.map +0 -1
- package/dist/_virtual/scheduler.production.js +0 -5
- package/dist/_virtual/scheduler.production.js.map +0 -1
- package/dist/_virtual/zh-cn.js +0 -3
- package/dist/_virtual/zh-cn.js.map +0 -1
- package/dist/_virtual/zh-cn2.js +0 -5
- package/dist/_virtual/zh-cn2.js.map +0 -1
- package/dist/node_modules/dayjs/locale/zh-cn.js +0 -25
- package/dist/node_modules/dayjs/locale/zh-cn.js.map +0 -1
- package/dist/node_modules/react-dom/cjs/react-dom-client.development.js +0 -17062
- package/dist/node_modules/react-dom/cjs/react-dom-client.development.js.map +0 -1
- package/dist/node_modules/react-dom/cjs/react-dom-client.production.js +0 -9790
- package/dist/node_modules/react-dom/cjs/react-dom-client.production.js.map +0 -1
- package/dist/node_modules/react-dom/client.js +0 -24
- package/dist/node_modules/react-dom/client.js.map +0 -1
- package/dist/node_modules/scheduler/cjs/scheduler.development.js +0 -237
- package/dist/node_modules/scheduler/cjs/scheduler.development.js.map +0 -1
- package/dist/node_modules/scheduler/cjs/scheduler.production.js +0 -234
- package/dist/node_modules/scheduler/cjs/scheduler.production.js.map +0 -1
- package/dist/node_modules/scheduler/index.js +0 -11
- package/dist/node_modules/scheduler/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -136,6 +136,8 @@ node scripts/version-check.mjs --apply # → 0.1.99
|
|
|
136
136
|
|
|
137
137
|
也可在 Actions 中手动运行 **Publish npm**,填写已有 tag 重新发布。
|
|
138
138
|
|
|
139
|
+
- 2026-10-14:`v0.1.134` — InboxBell Drawer「清空未读」可选 `markAllRead`;Demo/vitest
|
|
140
|
+
- 2026-10-12:`v0.1.133` — DispositionBar 短徽章;模板来源 Tag;ActionList 去壳/铃铛摘要色;执行门禁 SSOT;vite external 子路径防双 React(feat 分支曾误标 0.1.135 未进 main,顺号回正)
|
|
139
141
|
- 2026-10-11:`v0.1.132` — 重试发布消息模板富文本(0.1.131 CI 绿但 npm 未见)
|
|
140
142
|
- 2026-10-11:`v0.1.131` — 消息模板富文本色/加粗回显(配置页;seed 另仓)
|
|
141
143
|
- 2026-10-11:`v0.1.130` — InboxBell 级别 Tag `selected` 反白(消息类型 Tag 仍默认浅底)
|
package/dist/_virtual/index3.js
CHANGED
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as o } from "../node_modules/color-string/index.js";
|
|
3
|
+
var t = o();
|
|
4
|
+
const a = /* @__PURE__ */ r(t);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
a as default
|
|
4
7
|
};
|
|
5
8
|
//# sourceMappingURL=index4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index4.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index4.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as o } from "../node_modules/color-string/index.js";
|
|
3
|
-
var t = o();
|
|
4
|
-
const a = /* @__PURE__ */ r(t);
|
|
1
|
+
var e = { exports: {} };
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
e as __module
|
|
7
4
|
};
|
|
8
5
|
//# sourceMappingURL=index5.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index5.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/_virtual/index6.js
CHANGED
package/dist/_virtual/index7.js
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 处置条状态徽章:条上只留短文案;时间/备注进 detail(Tooltip)。
|
|
3
|
+
* 对齐 S4「已关闭」短徽章,避免数百字备注撑破条。
|
|
4
|
+
*/
|
|
5
|
+
export type DispositionStatusBadgeParts = {
|
|
6
|
+
statusLabel?: string;
|
|
7
|
+
/** 误报 / 暂缓 / 系统外原因等 */
|
|
8
|
+
typeLabel?: string;
|
|
9
|
+
updatedAt?: string;
|
|
10
|
+
note?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 是否把 typeLabel 拼进短徽章(默认 true;与 statusLabel 相同时自动省略)。
|
|
13
|
+
*/
|
|
14
|
+
includeType?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type DispositionStatusBadgeFormatted = {
|
|
17
|
+
/** 条上展示 */
|
|
18
|
+
short: string;
|
|
19
|
+
/** 完整细节(时间 · 备注);无则 undefined */
|
|
20
|
+
detail?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare function formatDispositionStatusBadge(parts: DispositionStatusBadgeParts): DispositionStatusBadgeFormatted;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function r(t) {
|
|
2
|
+
const e = String(t.statusLabel || "").trim() || "已处置", i = String(t.typeLabel || "").trim(), o = t.includeType !== !1 && i && i !== e ? `${e} · ${i}` : e, n = [
|
|
3
|
+
String(t.updatedAt || "").trim(),
|
|
4
|
+
String(t.note || "").trim()
|
|
5
|
+
].filter(Boolean);
|
|
6
|
+
return {
|
|
7
|
+
short: o,
|
|
8
|
+
detail: n.length ? n.join(" · ") : void 0
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
r as formatDispositionStatusBadge
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=formatDispositionStatusBadge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatDispositionStatusBadge.js","sources":["../../../../src/components/Disposition/DispositionBar/formatDispositionStatusBadge.ts"],"sourcesContent":["/**\n * 处置条状态徽章:条上只留短文案;时间/备注进 detail(Tooltip)。\n * 对齐 S4「已关闭」短徽章,避免数百字备注撑破条。\n */\nexport type DispositionStatusBadgeParts = {\n statusLabel?: string;\n /** 误报 / 暂缓 / 系统外原因等 */\n typeLabel?: string;\n updatedAt?: string;\n note?: string;\n /**\n * 是否把 typeLabel 拼进短徽章(默认 true;与 statusLabel 相同时自动省略)。\n */\n includeType?: boolean;\n};\n\nexport type DispositionStatusBadgeFormatted = {\n /** 条上展示 */\n short: string;\n /** 完整细节(时间 · 备注);无则 undefined */\n detail?: string;\n};\n\nexport function formatDispositionStatusBadge(\n parts: DispositionStatusBadgeParts,\n): DispositionStatusBadgeFormatted {\n const base = String(parts.statusLabel || '').trim() || '已处置';\n const type = String(parts.typeLabel || '').trim();\n const includeType = parts.includeType !== false;\n const short = includeType && type && type !== base ? `${base} · ${type}` : base;\n const detailParts = [\n String(parts.updatedAt || '').trim(),\n String(parts.note || '').trim(),\n ].filter(Boolean);\n return {\n short,\n detail: detailParts.length ? detailParts.join(' · ') : undefined,\n };\n}\n"],"names":["formatDispositionStatusBadge","parts","base","type","short","detailParts"],"mappings":"AAuBO,SAASA,EACdC,GACiC;AACjC,QAAMC,IAAO,OAAOD,EAAM,eAAe,EAAE,EAAE,UAAU,OACjDE,IAAO,OAAOF,EAAM,aAAa,EAAE,EAAE,KAAA,GAErCG,IADcH,EAAM,gBAAgB,MACbE,KAAQA,MAASD,IAAO,GAAGA,CAAI,MAAMC,CAAI,KAAKD,GACrEG,IAAc;AAAA,IAClB,OAAOJ,EAAM,aAAa,EAAE,EAAE,KAAA;AAAA,IAC9B,OAAOA,EAAM,QAAQ,EAAE,EAAE,KAAA;AAAA,EAAK,EAC9B,OAAO,OAAO;AAChB,SAAO;AAAA,IACL,OAAAG;AAAA,IACA,QAAQC,EAAY,SAASA,EAAY,KAAK,KAAK,IAAI;AAAA,EAAA;AAE3D;"}
|
|
@@ -6,22 +6,22 @@ const b = ({
|
|
|
6
6
|
lead: n,
|
|
7
7
|
statusBadge: s,
|
|
8
8
|
actions: l,
|
|
9
|
-
statusLoading:
|
|
10
|
-
className:
|
|
9
|
+
statusLoading: p,
|
|
10
|
+
className: t
|
|
11
11
|
}) => {
|
|
12
|
-
const e = n != null && n !== !1 && n !== "", c = s != null && s !== !1 && s !== "" ? typeof s == "string" || typeof s == "number" ? /* @__PURE__ */ o("span", { className: i["marsun-disposition-badge"], children: s }) : s : null,
|
|
12
|
+
const e = n != null && n !== !1 && n !== "", c = s != null && s !== !1 && s !== "" ? typeof s == "string" || typeof s == "number" ? /* @__PURE__ */ o("span", { className: i["marsun-disposition-badge"], title: String(s), children: s }) : s : null, d = e ? "预警摘要" : r;
|
|
13
13
|
return /* @__PURE__ */ m(
|
|
14
14
|
"div",
|
|
15
15
|
{
|
|
16
|
-
className: a("marsun-disposition-bar", i["marsun-disposition-bar"],
|
|
16
|
+
className: a("marsun-disposition-bar", i["marsun-disposition-bar"], t),
|
|
17
17
|
role: "group",
|
|
18
|
-
"aria-label":
|
|
18
|
+
"aria-label": d,
|
|
19
19
|
children: [
|
|
20
20
|
/* @__PURE__ */ m("div", { className: a("marsun-disposition-status", i["marsun-disposition-status"]), children: [
|
|
21
21
|
e ? /* @__PURE__ */ o("div", { className: a("marsun-disposition-lead", i["marsun-disposition-lead"]), children: n }) : /* @__PURE__ */ o("span", { className: i["marsun-disposition-label"], children: r }),
|
|
22
22
|
c
|
|
23
23
|
] }),
|
|
24
|
-
!
|
|
24
|
+
!p && l ? /* @__PURE__ */ o(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
27
27
|
className: a("marsun-disposition-actions", i["marsun-disposition-actions"]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/Disposition/DispositionBar/index.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport React from 'react';\nimport styles from './style.module.scss';\n\nexport type DispositionBarProps = {\n /** 左侧文案,默认「处置状态」;有 lead 时不渲染 */\n label?: string;\n /**\n * 左侧预警摘要(S3 点操作条 lead)。\n * 有 lead 时不渲染「处置状态」label,左侧只展示摘要(+ 可选 statusBadge)。\n */\n lead?: React.ReactNode;\n /** 状态徽章内容(string 或自定义节点);可与 lead 并存 */\n statusBadge?: React.ReactNode;\n /** 右侧操作区;由调用方注入业务钮 */\n actions?: React.ReactNode;\n /** true → 仅显示状态区,不渲染 actions */\n statusLoading?: boolean;\n className?: string;\n};\n\n/**\n * 处置条布局壳:左状态/摘要 + 右操作。不绑业务 API / EP。\n */\nconst DispositionBar: React.FC<DispositionBarProps> = ({\n label = '处置状态',\n lead,\n statusBadge,\n actions,\n statusLoading,\n className,\n}) => {\n const hasLead = lead != null && lead !== false && lead !== '';\n const hasBadge = statusBadge != null && statusBadge !== false && statusBadge !== '';\n const badgeNode = hasBadge ? (\n typeof statusBadge === 'string' || typeof statusBadge === 'number' ? (\n <span className={styles['marsun-disposition-badge']}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Disposition/DispositionBar/index.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport React from 'react';\nimport styles from './style.module.scss';\n\nexport type DispositionBarProps = {\n /** 左侧文案,默认「处置状态」;有 lead 时不渲染 */\n label?: string;\n /**\n * 左侧预警摘要(S3 点操作条 lead)。\n * 有 lead 时不渲染「处置状态」label,左侧只展示摘要(+ 可选 statusBadge)。\n */\n lead?: React.ReactNode;\n /** 状态徽章内容(string 或自定义节点);可与 lead 并存 */\n statusBadge?: React.ReactNode;\n /** 右侧操作区;由调用方注入业务钮 */\n actions?: React.ReactNode;\n /** true → 仅显示状态区,不渲染 actions */\n statusLoading?: boolean;\n className?: string;\n};\n\n/**\n * 处置条布局壳:左状态/摘要 + 右操作。不绑业务 API / EP。\n */\nconst DispositionBar: React.FC<DispositionBarProps> = ({\n label = '处置状态',\n lead,\n statusBadge,\n actions,\n statusLoading,\n className,\n}) => {\n const hasLead = lead != null && lead !== false && lead !== '';\n const hasBadge = statusBadge != null && statusBadge !== false && statusBadge !== '';\n const badgeNode = hasBadge ? (\n typeof statusBadge === 'string' || typeof statusBadge === 'number' ? (\n <span className={styles['marsun-disposition-badge']} title={String(statusBadge)}>\n {statusBadge}\n </span>\n ) : (\n statusBadge\n )\n ) : null;\n\n const ariaLabel = hasLead ? '预警摘要' : label;\n\n return (\n <div\n className={classNames('marsun-disposition-bar', styles['marsun-disposition-bar'], className)}\n role=\"group\"\n aria-label={ariaLabel}\n >\n <div className={classNames('marsun-disposition-status', styles['marsun-disposition-status'])}>\n {hasLead ? (\n <div className={classNames('marsun-disposition-lead', styles['marsun-disposition-lead'])}>\n {lead}\n </div>\n ) : (\n <span className={styles['marsun-disposition-label']}>{label}</span>\n )}\n {badgeNode}\n </div>\n {!statusLoading && actions ? (\n <div\n className={classNames('marsun-disposition-actions', styles['marsun-disposition-actions'])}\n >\n {actions}\n </div>\n ) : null}\n </div>\n );\n};\n\nexport default DispositionBar;\n"],"names":["DispositionBar","label","lead","statusBadge","actions","statusLoading","className","hasLead","badgeNode","jsx","styles","ariaLabel","jsxs","classNames"],"mappings":";;;AAwBA,MAAMA,IAAgD,CAAC;AAAA,EACrD,OAAAC,IAAQ;AAAA,EACR,MAAAC;AAAA,EACA,aAAAC;AAAA,EACA,SAAAC;AAAA,EACA,eAAAC;AAAA,EACA,WAAAC;AACF,MAAM;AACJ,QAAMC,IAAUL,KAAQ,QAAQA,MAAS,MAASA,MAAS,IAErDM,IADWL,KAAe,QAAQA,MAAgB,MAASA,MAAgB,KAE/E,OAAOA,KAAgB,YAAY,OAAOA,KAAgB,WACxD,gBAAAM,EAAC,QAAA,EAAK,WAAWC,EAAO,0BAA0B,GAAG,OAAO,OAAOP,CAAW,GAC3E,UAAAA,EAAA,CACH,IAEAA,IAEA,MAEEQ,IAAYJ,IAAU,SAASN;AAErC,SACE,gBAAAW;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAW,0BAA0BH,EAAO,wBAAwB,GAAGJ,CAAS;AAAA,MAC3F,MAAK;AAAA,MACL,cAAYK;AAAA,MAEZ,UAAA;AAAA,QAAA,gBAAAC,EAAC,SAAI,WAAWC,EAAW,6BAA6BH,EAAO,2BAA2B,CAAC,GACxF,UAAA;AAAA,UAAAH,sBACE,OAAA,EAAI,WAAWM,EAAW,2BAA2BH,EAAO,yBAAyB,CAAC,GACpF,UAAAR,GACH,IAEA,gBAAAO,EAAC,QAAA,EAAK,WAAWC,EAAO,0BAA0B,GAAI,UAAAT,GAAM;AAAA,UAE7DO;AAAA,QAAA,GACH;AAAA,QACC,CAACH,KAAiBD,IACjB,gBAAAK;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWI,EAAW,8BAA8BH,EAAO,4BAA4B,CAAC;AAAA,YAEvF,UAAAN;AAAA,UAAA;AAAA,QAAA,IAED;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const s = {
|
|
2
|
-
"marsun-disposition-bar": "_marsun-disposition-
|
|
3
|
-
"marsun-disposition-status": "_marsun-disposition-
|
|
4
|
-
"marsun-disposition-label": "_marsun-disposition-
|
|
5
|
-
"marsun-disposition-lead": "_marsun-disposition-
|
|
6
|
-
"marsun-disposition-badge": "_marsun-disposition-
|
|
7
|
-
"marsun-disposition-actions": "_marsun-disposition-
|
|
2
|
+
"marsun-disposition-bar": "_marsun-disposition-bar_2phgc_2",
|
|
3
|
+
"marsun-disposition-status": "_marsun-disposition-status_2phgc_17",
|
|
4
|
+
"marsun-disposition-label": "_marsun-disposition-label_2phgc_27",
|
|
5
|
+
"marsun-disposition-lead": "_marsun-disposition-lead_2phgc_34",
|
|
6
|
+
"marsun-disposition-badge": "_marsun-disposition-badge_2phgc_46",
|
|
7
|
+
"marsun-disposition-actions": "_marsun-disposition-actions_2phgc_65"
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
10
|
s as default
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { default as DispositionBar } from './DispositionBar';
|
|
2
2
|
export type { DispositionBarProps } from './DispositionBar';
|
|
3
|
+
export { formatDispositionStatusBadge } from './DispositionBar/formatDispositionStatusBadge';
|
|
4
|
+
export type { DispositionStatusBadgeParts, DispositionStatusBadgeFormatted, } from './DispositionBar/formatDispositionStatusBadge';
|
|
3
5
|
export { default as AlertDispositionPanel, DispositionAlertLevelLegend, formatDispositionTriggerText, getDispositionAlertLevel, buildDispositionAlertContext, } from './AlertDispositionPanel';
|
|
4
6
|
export type { AlertDispositionPanelProps, DispositionAlertContext, DispositionAlertKind, DispositionAlertLevelSpec, DispositionAlertLevelCatalog, DispositionAlertLevelLegendProps, } from './AlertDispositionPanel';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
"action-list-table-card": "_action-list-table-
|
|
3
|
-
"action-list-table-scroll": "_action-list-table-
|
|
1
|
+
const t = {
|
|
2
|
+
"action-list-table-card": "_action-list-table-card_5c201_1",
|
|
3
|
+
"action-list-table-scroll": "_action-list-table-scroll_5c201_6"
|
|
4
4
|
};
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=ActionListTable.module.scss.js.map
|
|
@@ -4,7 +4,10 @@ import { ColumnsType } from 'antd/es/table';
|
|
|
4
4
|
export type ActionListFilters = {
|
|
5
5
|
dimension?: string;
|
|
6
6
|
status?: string;
|
|
7
|
+
/** 执行人展示名(兼容旧筛);主路径用 assigneeUserId */
|
|
7
8
|
assignee?: string;
|
|
9
|
+
/** 执行人 SSO userId(SuperSelect 取值) */
|
|
10
|
+
assigneeUserId?: string;
|
|
8
11
|
factory?: string;
|
|
9
12
|
q?: string;
|
|
10
13
|
from?: string;
|
|
@@ -22,6 +25,8 @@ export type ActionListRowBase = {
|
|
|
22
25
|
dimension?: string;
|
|
23
26
|
assignee?: string;
|
|
24
27
|
owner?: string;
|
|
28
|
+
/** 业务时间(源事件账期/日);≠ createdAt 任务创建 */
|
|
29
|
+
bizDate?: string;
|
|
25
30
|
createdAt?: string;
|
|
26
31
|
startedAt?: string;
|
|
27
32
|
completedAt?: string;
|
|
@@ -8,4 +8,5 @@ export { default as ActionFollowModal } from './Follow';
|
|
|
8
8
|
export type { ActionFollowModalProps, ActionFollowView } from './Follow';
|
|
9
9
|
export { default as CancelExecutionModal, CancelExecutionForm } from './Cancel';
|
|
10
10
|
export type { CancelExecutionModalProps } from './Cancel';
|
|
11
|
-
export { sanitizeActionHtml } from './utils';
|
|
11
|
+
export { sanitizeActionHtml, isActionExecuteHidden } from './utils';
|
|
12
|
+
export type { ActionExecuteGateRow, ActionExecuteGateOptions } from './utils';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** 行上判定「执行」所需的最小字段 */
|
|
2
|
+
export type ActionExecuteGateRow = {
|
|
3
|
+
status?: string | null;
|
|
4
|
+
assigneeUserId?: string | null;
|
|
5
|
+
};
|
|
6
|
+
export type ActionExecuteGateOptions = {
|
|
7
|
+
/** 是否持有行动执行权限 */
|
|
8
|
+
canExecute: boolean;
|
|
9
|
+
/** 当前登录用户 SSO userId;可空(未登录则凡有执行人的行均 hidden) */
|
|
10
|
+
currentUserId?: string | null;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* 行动跟踪操作列「执行」是否 hidden(EAM/S3 通用)。
|
|
14
|
+
* - 仅 approved + 有执行权
|
|
15
|
+
* - assigneeUserId 空:可显示(开始时认领)
|
|
16
|
+
* - 已有执行人:仅本人可见
|
|
17
|
+
*/
|
|
18
|
+
export declare function isActionExecuteHidden(row: ActionExecuteGateRow, options: ActionExecuteGateOptions): boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function i(r, e) {
|
|
2
|
+
if (!e.canExecute || String(r.status || "").trim() !== "approved") return !0;
|
|
3
|
+
const t = String(r.assigneeUserId || "").trim();
|
|
4
|
+
if (!t) return !1;
|
|
5
|
+
const n = String(e.currentUserId || "").trim();
|
|
6
|
+
return n ? t !== n : !0;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
i as isActionExecuteHidden
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=actionExecuteGate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actionExecuteGate.js","sources":["../../../../../src/components/Tools/ActionTracking/utils/actionExecuteGate.ts"],"sourcesContent":["/** 行上判定「执行」所需的最小字段 */\nexport type ActionExecuteGateRow = {\n status?: string | null;\n assigneeUserId?: string | null;\n};\n\nexport type ActionExecuteGateOptions = {\n /** 是否持有行动执行权限 */\n canExecute: boolean;\n /** 当前登录用户 SSO userId;可空(未登录则凡有执行人的行均 hidden) */\n currentUserId?: string | null;\n};\n\n/**\n * 行动跟踪操作列「执行」是否 hidden(EAM/S3 通用)。\n * - 仅 approved + 有执行权\n * - assigneeUserId 空:可显示(开始时认领)\n * - 已有执行人:仅本人可见\n */\nexport function isActionExecuteHidden(\n row: ActionExecuteGateRow,\n options: ActionExecuteGateOptions,\n): boolean {\n if (!options.canExecute) return true;\n if (String(row.status || '').trim() !== 'approved') return true;\n const assigneeUserId = String(row.assigneeUserId || '').trim();\n if (!assigneeUserId) return false;\n const uid = String(options.currentUserId || '').trim();\n if (!uid) return true;\n return assigneeUserId !== uid;\n}\n"],"names":["isActionExecuteHidden","row","options","assigneeUserId","uid"],"mappings":"AAmBO,SAASA,EACdC,GACAC,GACS;AAET,MADI,CAACA,EAAQ,cACT,OAAOD,EAAI,UAAU,EAAE,EAAE,KAAA,MAAW,WAAY,QAAO;AAC3D,QAAME,IAAiB,OAAOF,EAAI,kBAAkB,EAAE,EAAE,KAAA;AACxD,MAAI,CAACE,EAAgB,QAAO;AAC5B,QAAMC,IAAM,OAAOF,EAAQ,iBAAiB,EAAE,EAAE,KAAA;AAChD,SAAKE,IACED,MAAmBC,IADT;AAEnB;"}
|
|
@@ -54,6 +54,13 @@ export type InboxBellProps = {
|
|
|
54
54
|
fetchInbox: (params: InboxBellListParams) => Promise<InboxBellListResult>;
|
|
55
55
|
/** 标记已读 */
|
|
56
56
|
markRead: (id: string) => Promise<void | InboxBellItem>;
|
|
57
|
+
/**
|
|
58
|
+
* 清空未读(本用户+租户+app 全部未读标已读)。不传则不展示按钮。
|
|
59
|
+
* 成功后铃铛会刷新列表与角标。
|
|
60
|
+
*/
|
|
61
|
+
markAllRead?: () => Promise<{
|
|
62
|
+
updated?: number;
|
|
63
|
+
} | void>;
|
|
57
64
|
/** 点击条目:默认用 window.location / 业务 navigate */
|
|
58
65
|
onNavigate?: (href: string, item: InboxBellItem) => void;
|
|
59
66
|
/**
|