@hkyhy/marsun-components-core 0.1.146 → 0.1.148
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/components/Filter/createKneFilterField.js +52 -51
- package/dist/components/Filter/createKneFilterField.js.map +1 -1
- package/dist/components/Form/SuperSelect.d.ts +1 -1
- package/dist/components/Form/SuperSelect.js +70 -67
- package/dist/components/Form/SuperSelect.js.map +1 -1
- package/dist/components/Form/createPagedSuperSelectApi.d.ts +5 -0
- package/dist/components/Form/createPagedSuperSelectApi.js +5 -0
- package/dist/components/Form/createPagedSuperSelectApi.js.map +1 -1
- package/dist/components/Form/index.d.ts +1 -1
- package/dist/components/Form/superSelectEmpty.d.ts +5 -0
- package/dist/components/Form/superSelectEmpty.js +28 -5
- package/dist/components/Form/superSelectEmpty.js.map +1 -1
- package/dist/components/ReactFilter/fields/index.js +27 -26
- package/dist/components/ReactFilter/fields/index.js.map +1 -1
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.d.ts +2 -0
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.js +217 -210
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.js.map +1 -1
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionModal.js +94 -93
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionModal.js.map +1 -1
- package/dist/components/Tools/ActionTracking/CreateAction/types.d.ts +2 -0
- package/dist/form-info.d.ts +1 -1
- package/dist/form-info.js +71 -70
- package/dist/index.js +205 -204
- package/package.json +1 -1
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { useIntl as p } from "@kne/react-intl";
|
|
3
3
|
import e from "../withFieldItem.js";
|
|
4
4
|
import u from "./InputFilterItem.js";
|
|
5
5
|
import n from "./NumberRangeFilterItem.js";
|
|
6
6
|
import a from "../withLocale.js";
|
|
7
|
-
import s, { SelectTableList as f, SelectCascader as
|
|
8
|
-
import { SelectFunction as
|
|
7
|
+
import s, { SelectTableList as f, SelectCascader as d } from "@kne/super-select";
|
|
8
|
+
import { SelectFunction as I, SelectIndustry as S, SelectAddress as F } from "@kne/super-select-plus";
|
|
9
9
|
/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { renderSelectListItemContent as P } from "../renderSelectListItemContent.js";
|
|
13
|
-
import {
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
const
|
|
13
|
+
import { defaultSuperSelectLoading as h, defaultSuperSelectEmpty as g } from "../../Form/superSelectEmpty.js";
|
|
14
|
+
import { default as K } from "./DatePickerFilterItem.js";
|
|
15
|
+
import { default as Q } from "./DateRangePickerFilterItem.js";
|
|
16
|
+
import { default as V } from "./TypeDateRangePickerFilterItem.js";
|
|
17
|
+
import { default as Y } from "./SelectTreeFilterItem.js";
|
|
18
|
+
const i = (r) => a(({ placeholder: o, label: t, ...l }) => {
|
|
19
19
|
const { formatMessage: c } = p({ moduleName: "Filter" });
|
|
20
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ m(
|
|
21
21
|
r,
|
|
22
22
|
{
|
|
23
|
-
...
|
|
23
|
+
...l,
|
|
24
24
|
label: t,
|
|
25
25
|
placeholder: o || c({ id: "defaultInputPlaceholder" }, { label: t })
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
28
|
});
|
|
29
|
-
function x({ renderItemContent: r, empty: o,
|
|
30
|
-
return /* @__PURE__ */
|
|
29
|
+
function x({ renderItemContent: r, empty: o, loading: t, ...l }) {
|
|
30
|
+
return /* @__PURE__ */ m(
|
|
31
31
|
s,
|
|
32
32
|
{
|
|
33
|
-
...
|
|
34
|
-
empty: o ??
|
|
33
|
+
...l,
|
|
34
|
+
empty: o ?? g(),
|
|
35
|
+
loading: t === void 0 ? h() : t,
|
|
35
36
|
renderItemContent: r || P
|
|
36
37
|
}
|
|
37
38
|
);
|
|
38
39
|
}
|
|
39
|
-
const
|
|
40
|
+
const j = i(u), v = i(n), M = e(x, {
|
|
40
41
|
forcePopup: !0
|
|
41
|
-
}), W = e(f, { forcePopup: !0 }), q = e(
|
|
42
|
+
}), W = e(f, { forcePopup: !0 }), q = e(d, { forcePopup: !0 }), z = e(I, { forcePopup: !0 }), B = e(S, { forcePopup: !0 }), G = e(F, { forcePopup: !0 });
|
|
42
43
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
K as DatePickerFilterItem,
|
|
45
|
+
Q as DateRangePickerFilterItem,
|
|
46
|
+
j as InputFilterItem,
|
|
47
|
+
v as NumberRangeFilterItem,
|
|
48
|
+
G as SelectAddressFilterItem,
|
|
48
49
|
q as SelectCascaderFilterItem,
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
z as SelectFunctionFilterItem,
|
|
51
|
+
B as SelectIndustryFilterItem,
|
|
51
52
|
W as SelectTableListFilterItem,
|
|
52
|
-
|
|
53
|
+
Y as SelectTreeFilterItem,
|
|
53
54
|
M as SuperSelectFilterItem,
|
|
54
|
-
|
|
55
|
+
V as TypeDateRangePickerFilterItem
|
|
55
56
|
};
|
|
56
57
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/ReactFilter/fields/index.jsx"],"sourcesContent":["// @ts-nocheck\nimport { useIntl } from '@kne/react-intl';\nimport withFieldItem from '../withFieldItem';\nimport InputFilterItemField from './InputFilterItem';\nimport NumberRangeFilterItemField from './NumberRangeFilterItem';\nimport withLocale from '../withLocale';\nimport SuperSelect, { SelectCascader, SelectTableList } from '@kne/super-select';\nimport { SelectAddress, SelectFunction, SelectIndustry } from '@kne/super-select-plus';\nimport '@kne/super-select/dist/index.css';\nimport '@kne/super-select-plus/dist/index.css';\n/** SuperSelect / SelectTree 弹层全局修补(选项撑满、checkbox、叶子 switcher-noop) */\nimport '../superSelectPopup.scss';\nimport { renderSelectListItemContent } from '../renderSelectListItemContent';\nimport { defaultSuperSelectEmpty } from '../../Form/superSelectEmpty';\n\nconst withInputDefaultPlaceholder = (WrappedComponent) =>\n withLocale(({ placeholder, label, ...props }) => {\n const { formatMessage } = useIntl({ moduleName: 'Filter' });\n return (\n <WrappedComponent\n {...props}\n label={label}\n placeholder={placeholder || formatMessage({ id: 'defaultInputPlaceholder' }, { label })}\n />\n );\n });\n\n/** 默认超长省略 + title hover;空态中文;业务可传 renderItemContent / empty 覆盖 */\nfunction SuperSelectWithLabelEllipsis({ renderItemContent, empty, ...props }) {\n return (\n <SuperSelect\n {...props}\n empty={empty ?? defaultSuperSelectEmpty()}\n renderItemContent={renderItemContent || renderSelectListItemContent}\n />\n );\n}\n\nexport const InputFilterItem = withInputDefaultPlaceholder(InputFilterItemField);\nexport const NumberRangeFilterItem = withInputDefaultPlaceholder(NumberRangeFilterItemField);\n\nexport { default as DatePickerFilterItem } from './DatePickerFilterItem';\nexport { default as DateRangePickerFilterItem } from './DateRangePickerFilterItem';\nexport { default as TypeDateRangePickerFilterItem } from './TypeDateRangePickerFilterItem';\n\nexport const SuperSelectFilterItem = withFieldItem(SuperSelectWithLabelEllipsis, {\n forcePopup: true,\n});\nexport const SelectTableListFilterItem = withFieldItem(SelectTableList, { forcePopup: true });\nexport { default as SelectTreeFilterItem } from './SelectTreeFilterItem';\nexport const SelectCascaderFilterItem = withFieldItem(SelectCascader, { forcePopup: true });\nexport const SelectFunctionFilterItem = withFieldItem(SelectFunction, { forcePopup: true });\nexport const SelectIndustryFilterItem = withFieldItem(SelectIndustry, { forcePopup: true });\nexport const SelectAddressFilterItem = withFieldItem(SelectAddress, { forcePopup: true });\n"],"names":["withInputDefaultPlaceholder","WrappedComponent","withLocale","placeholder","label","props","formatMessage","useIntl","jsx","SuperSelectWithLabelEllipsis","renderItemContent","empty","SuperSelect","defaultSuperSelectEmpty","renderSelectListItemContent","InputFilterItem","InputFilterItemField","NumberRangeFilterItem","NumberRangeFilterItemField","SuperSelectFilterItem","withFieldItem","SelectTableListFilterItem","SelectTableList","SelectCascaderFilterItem","SelectCascader","SelectFunctionFilterItem","SelectFunction","SelectIndustryFilterItem","SelectIndustry","SelectAddressFilterItem","SelectAddress"],"mappings":";;;;;;;;;;;;;;;;;AAeA,MAAMA,IAA8B,CAACC,MACnCC,EAAW,CAAC,EAAE,aAAAC,GAAa,OAAAC,GAAO,GAAGC,QAAY;AAC/C,QAAM,EAAE,eAAAC,EAAA,IAAkBC,EAAQ,EAAE,YAAY,UAAU;AAC1D,SACE,gBAAAC;AAAA,IAACP;AAAA,IAAA;AAAA,MACE,GAAGI;AAAA,MACJ,OAAAD;AAAA,MACA,aAAaD,KAAeG,EAAc,EAAE,IAAI,0BAAA,GAA6B,EAAE,OAAAF,EAAA,CAAO;AAAA,IAAA;AAAA,EAAA;AAG5F,CAAC;AAGH,SAASK,EAA6B,EAAE,mBAAAC,GAAmB,OAAAC,GAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/ReactFilter/fields/index.jsx"],"sourcesContent":["// @ts-nocheck\nimport { useIntl } from '@kne/react-intl';\nimport withFieldItem from '../withFieldItem';\nimport InputFilterItemField from './InputFilterItem';\nimport NumberRangeFilterItemField from './NumberRangeFilterItem';\nimport withLocale from '../withLocale';\nimport SuperSelect, { SelectCascader, SelectTableList } from '@kne/super-select';\nimport { SelectAddress, SelectFunction, SelectIndustry } from '@kne/super-select-plus';\nimport '@kne/super-select/dist/index.css';\nimport '@kne/super-select-plus/dist/index.css';\n/** SuperSelect / SelectTree 弹层全局修补(选项撑满、checkbox、叶子 switcher-noop) */\nimport '../superSelectPopup.scss';\nimport { renderSelectListItemContent } from '../renderSelectListItemContent';\nimport { defaultSuperSelectEmpty, defaultSuperSelectLoading } from '../../Form/superSelectEmpty';\n\nconst withInputDefaultPlaceholder = (WrappedComponent) =>\n withLocale(({ placeholder, label, ...props }) => {\n const { formatMessage } = useIntl({ moduleName: 'Filter' });\n return (\n <WrappedComponent\n {...props}\n label={label}\n placeholder={placeholder || formatMessage({ id: 'defaultInputPlaceholder' }, { label })}\n />\n );\n });\n\n/** 默认超长省略 + title hover;空态中文;业务可传 renderItemContent / empty 覆盖 */\nfunction SuperSelectWithLabelEllipsis({ renderItemContent, empty, loading, ...props }) {\n return (\n <SuperSelect\n {...props}\n empty={empty ?? defaultSuperSelectEmpty()}\n loading={loading === undefined ? defaultSuperSelectLoading() : loading}\n renderItemContent={renderItemContent || renderSelectListItemContent}\n />\n );\n}\n\nexport const InputFilterItem = withInputDefaultPlaceholder(InputFilterItemField);\nexport const NumberRangeFilterItem = withInputDefaultPlaceholder(NumberRangeFilterItemField);\n\nexport { default as DatePickerFilterItem } from './DatePickerFilterItem';\nexport { default as DateRangePickerFilterItem } from './DateRangePickerFilterItem';\nexport { default as TypeDateRangePickerFilterItem } from './TypeDateRangePickerFilterItem';\n\nexport const SuperSelectFilterItem = withFieldItem(SuperSelectWithLabelEllipsis, {\n forcePopup: true,\n});\nexport const SelectTableListFilterItem = withFieldItem(SelectTableList, { forcePopup: true });\nexport { default as SelectTreeFilterItem } from './SelectTreeFilterItem';\nexport const SelectCascaderFilterItem = withFieldItem(SelectCascader, { forcePopup: true });\nexport const SelectFunctionFilterItem = withFieldItem(SelectFunction, { forcePopup: true });\nexport const SelectIndustryFilterItem = withFieldItem(SelectIndustry, { forcePopup: true });\nexport const SelectAddressFilterItem = withFieldItem(SelectAddress, { forcePopup: true });\n"],"names":["withInputDefaultPlaceholder","WrappedComponent","withLocale","placeholder","label","props","formatMessage","useIntl","jsx","SuperSelectWithLabelEllipsis","renderItemContent","empty","loading","SuperSelect","defaultSuperSelectEmpty","defaultSuperSelectLoading","renderSelectListItemContent","InputFilterItem","InputFilterItemField","NumberRangeFilterItem","NumberRangeFilterItemField","SuperSelectFilterItem","withFieldItem","SelectTableListFilterItem","SelectTableList","SelectCascaderFilterItem","SelectCascader","SelectFunctionFilterItem","SelectFunction","SelectIndustryFilterItem","SelectIndustry","SelectAddressFilterItem","SelectAddress"],"mappings":";;;;;;;;;;;;;;;;;AAeA,MAAMA,IAA8B,CAACC,MACnCC,EAAW,CAAC,EAAE,aAAAC,GAAa,OAAAC,GAAO,GAAGC,QAAY;AAC/C,QAAM,EAAE,eAAAC,EAAA,IAAkBC,EAAQ,EAAE,YAAY,UAAU;AAC1D,SACE,gBAAAC;AAAA,IAACP;AAAA,IAAA;AAAA,MACE,GAAGI;AAAA,MACJ,OAAAD;AAAA,MACA,aAAaD,KAAeG,EAAc,EAAE,IAAI,0BAAA,GAA6B,EAAE,OAAAF,EAAA,CAAO;AAAA,IAAA;AAAA,EAAA;AAG5F,CAAC;AAGH,SAASK,EAA6B,EAAE,mBAAAC,GAAmB,OAAAC,GAAO,SAAAC,GAAS,GAAGP,KAAS;AACrF,SACE,gBAAAG;AAAA,IAACK;AAAA,IAAA;AAAA,MACE,GAAGR;AAAA,MACJ,OAAOM,KAASG,EAAA;AAAA,MAChB,SAASF,MAAY,SAAYG,EAAA,IAA8BH;AAAA,MAC/D,mBAAmBF,KAAqBM;AAAA,IAAA;AAAA,EAAA;AAG9C;AAEO,MAAMC,IAAkBjB,EAA4BkB,CAAoB,GAClEC,IAAwBnB,EAA4BoB,CAA0B,GAM9EC,IAAwBC,EAAcb,GAA8B;AAAA,EAC/E,YAAY;AACd,CAAC,GACYc,IAA4BD,EAAcE,GAAiB,EAAE,YAAY,IAAM,GAE/EC,IAA2BH,EAAcI,GAAgB,EAAE,YAAY,IAAM,GAC7EC,IAA2BL,EAAcM,GAAgB,EAAE,YAAY,IAAM,GAC7EC,IAA2BP,EAAcQ,GAAgB,EAAE,YAAY,IAAM,GAC7EC,IAA0BT,EAAcU,GAAe,EAAE,YAAY,IAAM;"}
|
|
@@ -32,6 +32,8 @@ export type CreateActionFormProps = {
|
|
|
32
32
|
* 值由 pickDefaultAllocatorUserId / 表单初值写入。
|
|
33
33
|
*/
|
|
34
34
|
allocatorDisabled?: boolean;
|
|
35
|
+
/** 编辑回填:执行人角色 IAM code(联动选人) */
|
|
36
|
+
defaultAssigneeRoleCode?: string;
|
|
35
37
|
/** 编辑回填:执行人 userId(级联选项就绪后写入) */
|
|
36
38
|
defaultAssigneeUserId?: string;
|
|
37
39
|
/** 编辑回填:执行人展示名(联动选人时作 options 种子) */
|