@hkyhy/marsun-components-core 0.1.147 → 0.1.149

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 (32) hide show
  1. package/README.md +2 -0
  2. package/dist/components/Filter/createKneFilterField.js +52 -51
  3. package/dist/components/Filter/createKneFilterField.js.map +1 -1
  4. package/dist/components/Form/SuperSelect.d.ts +1 -1
  5. package/dist/components/Form/SuperSelect.js +70 -67
  6. package/dist/components/Form/SuperSelect.js.map +1 -1
  7. package/dist/components/Form/createPagedSuperSelectApi.d.ts +5 -0
  8. package/dist/components/Form/createPagedSuperSelectApi.js +5 -0
  9. package/dist/components/Form/createPagedSuperSelectApi.js.map +1 -1
  10. package/dist/components/Form/index.d.ts +1 -1
  11. package/dist/components/Form/kneFormInfo.d.ts +5 -0
  12. package/dist/components/Form/kneFormInfo.js +42 -38
  13. package/dist/components/Form/kneFormInfo.js.map +1 -1
  14. package/dist/components/Form/superSelectEmpty.d.ts +5 -0
  15. package/dist/components/Form/superSelectEmpty.js +28 -5
  16. package/dist/components/Form/superSelectEmpty.js.map +1 -1
  17. package/dist/components/FormInfo/FormModal.js +2 -0
  18. package/dist/components/FormInfo/FormModal.js.map +1 -1
  19. package/dist/components/Modal/Modal/index.d.ts +2 -1
  20. package/dist/components/Modal/Modal/index.js +45 -38
  21. package/dist/components/Modal/Modal/index.js.map +1 -1
  22. package/dist/components/Modal/Modal/style.module.scss.js +13 -13
  23. package/dist/components/Modal/utils/resolveModalSize.d.ts +1 -1
  24. package/dist/components/Modal/utils/resolveModalSize.js.map +1 -1
  25. package/dist/components/ReactFilter/fields/index.js +27 -26
  26. package/dist/components/ReactFilter/fields/index.js.map +1 -1
  27. package/dist/form-info.d.ts +1 -1
  28. package/dist/form-info.js +71 -70
  29. package/dist/index.js +205 -204
  30. package/dist/marsun-components-core.css +1 -1
  31. package/dist/styles/global.css +1 -1
  32. package/package.json +1 -1
@@ -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,GAAGN,KAAS;AAC5E,SACE,gBAAAG;AAAA,IAACI;AAAA,IAAA;AAAA,MACE,GAAGP;AAAA,MACJ,OAAOM,KAASE,EAAA;AAAA,MAChB,mBAAmBH,KAAqBI;AAAA,IAAA;AAAA,EAAA;AAG9C;AAEO,MAAMC,IAAkBf,EAA4BgB,CAAoB,GAClEC,IAAwBjB,EAA4BkB,CAA0B,GAM9EC,IAAwBC,EAAcX,GAA8B;AAAA,EAC/E,YAAY;AACd,CAAC,GACYY,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;"}
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;"}
@@ -18,7 +18,7 @@ export { normalizeLabelTips, withNormalizedLabelTips } from './components/Form/n
18
18
  /** Form SuperSelect(allowSelectedAll);实现在 Form/ */
19
19
  export { SuperSelect, SUPER_SELECT_ALL_VALUE, isSuperSelectAllValue, } from './components/Form/SuperSelect';
20
20
  export type { SuperSelectProps, SuperSelectOption } from './components/Form/SuperSelect';
21
- export { SUPER_SELECT_EMPTY_TEXT, defaultSuperSelectEmpty, } from './components/Form/superSelectEmpty';
21
+ export { SUPER_SELECT_EMPTY_TEXT, defaultSuperSelectEmpty, defaultSuperSelectLoading, } from './components/Form/superSelectEmpty';
22
22
  export { createPagedSuperSelectApi, pagedSuperSelectGetSearchProps, pagedSuperSelectPagination, PAGED_SUPER_SELECT_PAGE_SIZE, } from './components/Form/createPagedSuperSelectApi';
23
23
  export type { PagedSuperSelectOption, PagedSuperSelectQuery, PagedSuperSelectPage, CreatePagedSuperSelectApiOptions, } from './components/Form/createPagedSuperSelectApi';
24
24
  export { InputRange } from './components/Form/InputRange';
package/dist/form-info.js CHANGED
@@ -1,88 +1,89 @@
1
- import { default as t } from "./components/Form/FormDataSync.js";
1
+ import { default as r } from "./components/Form/FormDataSync.js";
2
2
  import { default as a } from "./components/Form/FetchSelect.js";
3
3
  import { default as l } from "./components/Form/FetchTreeSelect.js";
4
4
  import { default as m } from "./components/Form/PersonOptionRow/index.js";
5
5
  import { normalizeLabelTips as s, withNormalizedLabelTips as d } from "./components/Form/normalizeLabelTips.js";
6
- import { SUPER_SELECT_ALL_VALUE as S, SuperSelect as x, isSuperSelectAllValue as F } from "./components/Form/SuperSelect.js";
7
- import { SUPER_SELECT_EMPTY_TEXT as c, defaultSuperSelectEmpty as E } from "./components/Form/superSelectEmpty.js";
8
- import { PAGED_SUPER_SELECT_PAGE_SIZE as L, createPagedSuperSelectApi as R, pagedSuperSelectGetSearchProps as P, pagedSuperSelectPagination as _ } from "./components/Form/createPagedSuperSelectApi.js";
9
- import { InputRange as A } from "./components/Form/InputRange.js";
10
- import { inputRangeRules as g } from "./components/Form/inputRangeRules.js";
11
- import { default as G } from "./components/FormInfo/ErrorTip.js";
12
- import { default as w } from "./components/FormInfo/Form.js";
13
- import { default as C } from "./components/FormInfo/FormApiButton.js";
14
- import { default as U, useFormDrawer as y } from "./components/FormInfo/FormDrawer.js";
15
- import { default as V } from "./components/FormInfo/FormItem.js";
16
- import { default as z, useFormModal as O } from "./components/FormInfo/FormModal.js";
17
- import { default as X } from "./components/FormInfo/FormSteps.js";
18
- import { default as Z, useFormStepModal as j } from "./components/FormInfo/FormStepsModal.js";
19
- import { default as H } from "./components/FormInfo/MultiField.js";
20
- import { CancelButton as K, DatePicker as Q, Input as W, InputNumber as $, RadioGroup as ee, ResetButton as re, Select as te, SubmitButton as oe, Switch as ae, TextArea as pe, TreeSelect as le } from "./components/FormInfo/fields.js";
21
- import { default as me } from "./components/FormInfo/FormInfo.js";
22
- import { GroupList as se, RULES as de, default as ie, useField as Se, useFormApi as xe, useFormContext as Fe, useGroup as ne, useReset as ce, useSubmit as Ee } from "@kne/react-form";
23
- import { default as Le, default as Re } from "./components/FormInfo/List.js";
24
- import { RichTextField as _e } from "./components/FormInfo/RichTextField/index.js";
25
- import { default as Ae, validateFieldsByName as Me } from "./components/FormInfo/Steps.js";
26
- import { default as he } from "./components/FormInfo/TableList.js";
27
- import { VariableMentionField as Ie } from "./components/FormInfo/VariableMentionInput/index.js";
28
- import { buildFormOverlayProps as Be } from "./components/FormInfo/buildFormOverlayProps.js";
6
+ import { SUPER_SELECT_ALL_VALUE as i, SuperSelect as x, isSuperSelectAllValue as F } from "./components/Form/SuperSelect.js";
7
+ import { SUPER_SELECT_EMPTY_TEXT as c, defaultSuperSelectEmpty as E, defaultSuperSelectLoading as L } from "./components/Form/superSelectEmpty.js";
8
+ import { PAGED_SUPER_SELECT_PAGE_SIZE as R, createPagedSuperSelectApi as P, pagedSuperSelectGetSearchProps as _, pagedSuperSelectPagination as b } from "./components/Form/createPagedSuperSelectApi.js";
9
+ import { InputRange as g } from "./components/Form/InputRange.js";
10
+ import { inputRangeRules as h } from "./components/Form/inputRangeRules.js";
11
+ import { default as I } from "./components/FormInfo/ErrorTip.js";
12
+ import { default as B } from "./components/FormInfo/Form.js";
13
+ import { default as D } from "./components/FormInfo/FormApiButton.js";
14
+ import { default as y, useFormDrawer as N } from "./components/FormInfo/FormDrawer.js";
15
+ import { default as v } from "./components/FormInfo/FormItem.js";
16
+ import { default as O, useFormModal as k } from "./components/FormInfo/FormModal.js";
17
+ import { default as Y } from "./components/FormInfo/FormSteps.js";
18
+ import { default as j, useFormStepModal as q } from "./components/FormInfo/FormStepsModal.js";
19
+ import { default as J } from "./components/FormInfo/MultiField.js";
20
+ import { CancelButton as Q, DatePicker as W, Input as $, InputNumber as ee, RadioGroup as te, ResetButton as re, Select as oe, SubmitButton as ae, Switch as pe, TextArea as le, TreeSelect as ue } from "./components/FormInfo/fields.js";
21
+ import { default as fe } from "./components/FormInfo/FormInfo.js";
22
+ import { GroupList as de, RULES as Se, default as ie, useField as xe, useFormApi as Fe, useFormContext as ne, useGroup as ce, useReset as Ee, useSubmit as Le } from "@kne/react-form";
23
+ import { default as Re, default as Pe } from "./components/FormInfo/List.js";
24
+ import { RichTextField as be } from "./components/FormInfo/RichTextField/index.js";
25
+ import { default as ge, validateFieldsByName as Me } from "./components/FormInfo/Steps.js";
26
+ import { default as Ge } from "./components/FormInfo/TableList.js";
27
+ import { VariableMentionField as we } from "./components/FormInfo/VariableMentionInput/index.js";
28
+ import { buildFormOverlayProps as Ce } from "./components/FormInfo/buildFormOverlayProps.js";
29
29
  export {
30
- K as CancelButton,
31
- Q as DatePicker,
32
- G as ErrorTip,
30
+ Q as CancelButton,
31
+ W as DatePicker,
32
+ I as ErrorTip,
33
33
  a as FetchSelect,
34
34
  l as FetchTreeSelect,
35
- w as Form,
36
- C as FormApiButton,
37
- t as FormDataSync,
38
- U as FormDrawer,
39
- me as FormInfo,
40
- V as FormItem,
41
- z as FormModal,
42
- X as FormSteps,
43
- Z as FormStepsModal,
44
- se as GroupList,
45
- W as Input,
46
- $ as InputNumber,
47
- A as InputRange,
48
- Le as List,
49
- H as MultiField,
50
- L as PAGED_SUPER_SELECT_PAGE_SIZE,
35
+ B as Form,
36
+ D as FormApiButton,
37
+ r as FormDataSync,
38
+ y as FormDrawer,
39
+ fe as FormInfo,
40
+ v as FormItem,
41
+ O as FormModal,
42
+ Y as FormSteps,
43
+ j as FormStepsModal,
44
+ de as GroupList,
45
+ $ as Input,
46
+ ee as InputNumber,
47
+ g as InputRange,
48
+ Re as List,
49
+ J as MultiField,
50
+ R as PAGED_SUPER_SELECT_PAGE_SIZE,
51
51
  m as PersonOptionRow,
52
- de as RULES,
53
- ee as RadioGroup,
52
+ Se as RULES,
53
+ te as RadioGroup,
54
54
  ie as ReactForm,
55
55
  re as ResetButton,
56
- _e as RichTextField,
57
- S as SUPER_SELECT_ALL_VALUE,
56
+ be as RichTextField,
57
+ i as SUPER_SELECT_ALL_VALUE,
58
58
  c as SUPER_SELECT_EMPTY_TEXT,
59
- te as Select,
60
- Ae as Steps,
61
- Re as SubList,
62
- oe as SubmitButton,
59
+ oe as Select,
60
+ ge as Steps,
61
+ Pe as SubList,
62
+ ae as SubmitButton,
63
63
  x as SuperSelect,
64
- ae as Switch,
65
- he as TableList,
66
- pe as TextArea,
67
- le as TreeSelect,
68
- Ie as VariableMentionField,
69
- Be as buildFormOverlayProps,
70
- R as createPagedSuperSelectApi,
64
+ pe as Switch,
65
+ Ge as TableList,
66
+ le as TextArea,
67
+ ue as TreeSelect,
68
+ we as VariableMentionField,
69
+ Ce as buildFormOverlayProps,
70
+ P as createPagedSuperSelectApi,
71
71
  E as defaultSuperSelectEmpty,
72
- g as inputRangeRules,
72
+ L as defaultSuperSelectLoading,
73
+ h as inputRangeRules,
73
74
  F as isSuperSelectAllValue,
74
75
  s as normalizeLabelTips,
75
- P as pagedSuperSelectGetSearchProps,
76
- _ as pagedSuperSelectPagination,
77
- Se as useField,
78
- xe as useFormApi,
79
- Fe as useFormContext,
80
- y as useFormDrawer,
81
- O as useFormModal,
82
- j as useFormStepModal,
83
- ne as useGroup,
84
- ce as useReset,
85
- Ee as useSubmit,
76
+ _ as pagedSuperSelectGetSearchProps,
77
+ b as pagedSuperSelectPagination,
78
+ xe as useField,
79
+ Fe as useFormApi,
80
+ ne as useFormContext,
81
+ N as useFormDrawer,
82
+ k as useFormModal,
83
+ q as useFormStepModal,
84
+ ce as useGroup,
85
+ Ee as useReset,
86
+ Le as useSubmit,
86
87
  Me as validateFieldsByName,
87
88
  d as withNormalizedLabelTips
88
89
  };