@hkyhy/marsun-components-core 0.1.73 → 0.1.75
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/dist/components/Form/SuperSelect.d.ts +36 -0
- package/dist/components/Form/SuperSelect.js +95 -0
- package/dist/components/Form/SuperSelect.js.map +1 -0
- package/dist/components/Form/SuperSelect.module.scss.js +7 -0
- package/dist/components/Form/SuperSelect.module.scss.js.map +1 -0
- package/dist/components/Form/index.d.ts +2 -0
- package/dist/components/FormInfo/fields.d.ts +2 -1
- package/dist/components/FormInfo/fields.js.map +1 -1
- package/dist/components/FormInfo/index.d.ts +2 -1
- package/dist/components/FormInfo/style.module.scss.js +51 -51
- package/dist/components/ReactModal/drawer.module.scss.js +28 -28
- package/dist/components/ReactModal/layouts.module.scss.js +6 -6
- package/dist/components/ReactModal/style.module.scss.js +34 -34
- package/dist/form-info.d.ts +6 -0
- package/dist/form-info.js +68 -60
- package/dist/form-info.js.map +1 -1
- package/dist/index.js +215 -211
- package/dist/index.js.map +1 -1
- package/dist/marsun-components-core.css +1 -1
- package/dist/styles/global.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
/** 与 @kne/super-select 默认 `selectedAllValue.value` 对齐 */
|
|
3
|
+
export declare const SUPER_SELECT_ALL_VALUE = "all";
|
|
4
|
+
export type SuperSelectOption = {
|
|
5
|
+
value: string | number;
|
|
6
|
+
label: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
};
|
|
10
|
+
export type SuperSelectProps = {
|
|
11
|
+
name: string;
|
|
12
|
+
label?: ReactNode;
|
|
13
|
+
labelTips?: ReactNode | ((props: SuperSelectProps) => ReactNode);
|
|
14
|
+
rule?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
options?: SuperSelectOption[];
|
|
18
|
+
/** true = 单选;默认多选 */
|
|
19
|
+
single?: boolean;
|
|
20
|
+
/** 多选时显示全选(form 值变为 `[selectedAllValue.value]`,默认 `'all'`) */
|
|
21
|
+
allowSelectedAll?: boolean;
|
|
22
|
+
/** 覆盖默认 `{ value: 'all', label: '全选' }` */
|
|
23
|
+
selectedAllValue?: {
|
|
24
|
+
value: string | number;
|
|
25
|
+
label: string;
|
|
26
|
+
};
|
|
27
|
+
showSearch?: boolean;
|
|
28
|
+
allowClear?: boolean;
|
|
29
|
+
className?: string;
|
|
30
|
+
/** 透传 kne SuperSelect */
|
|
31
|
+
[key: string]: unknown;
|
|
32
|
+
};
|
|
33
|
+
/** 业务写路径:是否为全选 sentinel */
|
|
34
|
+
export declare function isSuperSelectAllValue(value: unknown, allValue?: string | number): boolean;
|
|
35
|
+
export declare const SuperSelect: ComponentType<SuperSelectProps>;
|
|
36
|
+
export default SuperSelect;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { jsx as S } from "react/jsx-runtime";
|
|
2
|
+
import A from "@kne/super-select";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import * as C from "@kne/react-form-antd";
|
|
5
|
+
import E from "classnames";
|
|
6
|
+
import { useRef as R, useMemo as l } from "react";
|
|
7
|
+
import { withNormalizedLabelTips as F } from "./normalizeLabelTips.js";
|
|
8
|
+
import { marsunToKne as T, mergeKneLabelMaps as _, kneToMarsun as K } from "../Filter/kneValueAdapter.js";
|
|
9
|
+
import P from "./SuperSelect.module.scss.js";
|
|
10
|
+
const c = "all";
|
|
11
|
+
function U(r, t = c) {
|
|
12
|
+
return r == null || r === "" ? !1 : Array.isArray(r) ? r.length === 1 && String(r[0]) === String(t) : String(r) === String(t);
|
|
13
|
+
}
|
|
14
|
+
function G(r, t = c) {
|
|
15
|
+
return r == null || r === "" ? !1 : Array.isArray(r) ? r.length === 1 && String(r[0]) === String(t) : String(r) === String(t);
|
|
16
|
+
}
|
|
17
|
+
const j = ({
|
|
18
|
+
value: r,
|
|
19
|
+
onChange: t,
|
|
20
|
+
disabled: a,
|
|
21
|
+
options: m = [],
|
|
22
|
+
single: o = !1,
|
|
23
|
+
allowSelectedAll: b = !1,
|
|
24
|
+
selectedAllValue: n = { value: c, label: "全选" },
|
|
25
|
+
placeholder: M,
|
|
26
|
+
showSearch: g = !0,
|
|
27
|
+
allowClear: L = !0,
|
|
28
|
+
className: w,
|
|
29
|
+
...d
|
|
30
|
+
}) => {
|
|
31
|
+
const i = R({
|
|
32
|
+
labelMap: {},
|
|
33
|
+
itemMap: {}
|
|
34
|
+
}), p = l(() => {
|
|
35
|
+
const e = {};
|
|
36
|
+
for (const s of m)
|
|
37
|
+
e[String(s.value)] = s.label;
|
|
38
|
+
return e[String(n.value)] = n.label, e;
|
|
39
|
+
}, [m, n]), y = l(() => {
|
|
40
|
+
const e = {
|
|
41
|
+
labelMap: { ...p, ...i.current.labelMap },
|
|
42
|
+
itemMap: i.current.itemMap
|
|
43
|
+
};
|
|
44
|
+
return U(r, n.value) ? [n] : T(r, { single: o, ...e });
|
|
45
|
+
}, [r, o, p, n]), k = (e) => {
|
|
46
|
+
i.current = _(e, i.current), t == null || t(K(e, o));
|
|
47
|
+
};
|
|
48
|
+
return /* @__PURE__ */ S(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
className: E(
|
|
52
|
+
"marsun-form-super-select",
|
|
53
|
+
P["marsun-form-super-select"],
|
|
54
|
+
w
|
|
55
|
+
),
|
|
56
|
+
children: /* @__PURE__ */ S(
|
|
57
|
+
A,
|
|
58
|
+
{
|
|
59
|
+
...d,
|
|
60
|
+
value: y,
|
|
61
|
+
onChange: k,
|
|
62
|
+
options: m,
|
|
63
|
+
single: o,
|
|
64
|
+
allowSelectedAll: !o && b,
|
|
65
|
+
selectedAllValue: n,
|
|
66
|
+
placeholder: M,
|
|
67
|
+
isPopup: !0,
|
|
68
|
+
getSearchCallback: g ? ({ searchText: e }, s) => {
|
|
69
|
+
if (!e) return !0;
|
|
70
|
+
const u = e.toLowerCase(), N = String(s.label ?? "").toLowerCase(), h = String(s.value ?? "").toLowerCase();
|
|
71
|
+
return N.includes(u) || h.includes(u);
|
|
72
|
+
} : void 0,
|
|
73
|
+
allowClear: L && !a,
|
|
74
|
+
disabled: a
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}, f = (r) => {
|
|
80
|
+
const { useDecorator: t } = C.hooks;
|
|
81
|
+
return t({
|
|
82
|
+
fieldName: "superSelect",
|
|
83
|
+
...r
|
|
84
|
+
})(j);
|
|
85
|
+
};
|
|
86
|
+
f.displayName = "SuperSelect";
|
|
87
|
+
const H = F(
|
|
88
|
+
f
|
|
89
|
+
);
|
|
90
|
+
export {
|
|
91
|
+
c as SUPER_SELECT_ALL_VALUE,
|
|
92
|
+
H as SuperSelect,
|
|
93
|
+
G as isSuperSelectAllValue
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=SuperSelect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuperSelect.js","sources":["../../../src/components/Form/SuperSelect.tsx"],"sourcesContent":["/**\n * FormInfo · SuperSelect 字段(对位 kne-union SuperSelectField 精简版)。\n * 经 `hooks.useDecorator` 接入;多选可开 `allowSelectedAll`(值 sentinel 默认 `'all'`)。\n * 对外 form 值为 Marsun 标量/数组(string | string[]),面板内适配 kne `{ label, value }`。\n */\n// @ts-nocheck — @kne/super-select 无完整 TS 类型\nimport KneSuperSelect from '@kne/super-select';\nimport '@kne/super-select/dist/index.css';\nimport * as ReactFormAntd from '@kne/react-form-antd';\nimport classNames from 'classnames';\nimport type { ComponentType, FC, ReactNode } from 'react';\nimport { useMemo, useRef } from 'react';\nimport { withNormalizedLabelTips } from './normalizeLabelTips';\nimport {\n kneToMarsun,\n marsunToKne,\n mergeKneLabelMaps,\n type KneSelectItem,\n type MarsunSelectValue,\n} from '@/components/Filter/kneValueAdapter';\nimport styles from './SuperSelect.module.scss';\n\n/** 与 @kne/super-select 默认 `selectedAllValue.value` 对齐 */\nexport const SUPER_SELECT_ALL_VALUE = 'all';\n\nexport type SuperSelectOption = {\n value: string | number;\n label: string;\n disabled?: boolean;\n [key: string]: unknown;\n};\n\nexport type SuperSelectProps = {\n name: string;\n label?: ReactNode;\n labelTips?: ReactNode | ((props: SuperSelectProps) => ReactNode);\n rule?: string;\n disabled?: boolean;\n placeholder?: string;\n options?: SuperSelectOption[];\n /** true = 单选;默认多选 */\n single?: boolean;\n /** 多选时显示全选(form 值变为 `[selectedAllValue.value]`,默认 `'all'`) */\n allowSelectedAll?: boolean;\n /** 覆盖默认 `{ value: 'all', label: '全选' }` */\n selectedAllValue?: { value: string | number; label: string };\n showSearch?: boolean;\n allowClear?: boolean;\n className?: string;\n /** 透传 kne SuperSelect */\n [key: string]: unknown;\n};\n\ntype FieldRenderProps = {\n value?: MarsunSelectValue;\n onChange?: (v: MarsunSelectValue) => void;\n disabled?: boolean;\n id?: string;\n};\n\ntype KneHooks = {\n useDecorator: (\n opts: Record<string, unknown>,\n ) => (Comp: ComponentType<FieldRenderProps>) => ReactNode;\n};\n\nfunction isSelectAllMarsun(\n value: MarsunSelectValue,\n allValue: string | number = SUPER_SELECT_ALL_VALUE,\n): boolean {\n if (value == null || value === '') return false;\n if (Array.isArray(value)) {\n return value.length === 1 && String(value[0]) === String(allValue);\n }\n return String(value) === String(allValue);\n}\n\n/** 业务写路径:是否为全选 sentinel */\nexport function isSuperSelectAllValue(\n value: unknown,\n allValue: string | number = SUPER_SELECT_ALL_VALUE,\n): boolean {\n if (value == null || value === '') return false;\n if (Array.isArray(value)) {\n return value.length === 1 && String(value[0]) === String(allValue);\n }\n return String(value) === String(allValue);\n}\n\nconst SuperSelectField: FC<\n FieldRenderProps & {\n options?: SuperSelectOption[];\n single?: boolean;\n allowSelectedAll?: boolean;\n selectedAllValue?: { value: string | number; label: string };\n placeholder?: string;\n showSearch?: boolean;\n allowClear?: boolean;\n className?: string;\n [key: string]: unknown;\n }\n> = ({\n value,\n onChange,\n disabled,\n options = [],\n single = false,\n allowSelectedAll = false,\n selectedAllValue = { value: SUPER_SELECT_ALL_VALUE, label: '全选' },\n placeholder,\n showSearch = true,\n allowClear = true,\n className,\n ...kneRest\n}) => {\n const mapsRef = useRef({\n labelMap: {} as Record<string, string>,\n itemMap: {} as Record<string, KneSelectItem>,\n });\n\n const labelMapFromOptions = useMemo(() => {\n const map: Record<string, string> = {};\n for (const o of options) {\n map[String(o.value)] = o.label;\n }\n map[String(selectedAllValue.value)] = selectedAllValue.label;\n return map;\n }, [options, selectedAllValue]);\n\n const kneValue = useMemo(() => {\n const maps = {\n labelMap: { ...labelMapFromOptions, ...mapsRef.current.labelMap },\n itemMap: mapsRef.current.itemMap,\n };\n if (isSelectAllMarsun(value, selectedAllValue.value)) {\n return [selectedAllValue as KneSelectItem];\n }\n return marsunToKne(value, { single, ...maps });\n }, [value, single, labelMapFromOptions, selectedAllValue]);\n\n const handleChange = (next: KneSelectItem | KneSelectItem[] | null) => {\n mapsRef.current = mergeKneLabelMaps(next, mapsRef.current);\n onChange?.(kneToMarsun(next, single));\n };\n\n return (\n <div\n className={classNames(\n 'marsun-form-super-select',\n styles['marsun-form-super-select'],\n className,\n )}\n >\n <KneSuperSelect\n {...kneRest}\n value={kneValue}\n onChange={handleChange}\n options={options}\n single={single}\n allowSelectedAll={!single && allowSelectedAll}\n selectedAllValue={selectedAllValue}\n placeholder={placeholder}\n isPopup\n getSearchCallback={\n showSearch\n ? ({ searchText }: { searchText?: string }, item: KneSelectItem) => {\n if (!searchText) return true;\n const kw = searchText.toLowerCase();\n const label = String(item.label ?? '').toLowerCase();\n const val = String(item.value ?? '').toLowerCase();\n return label.includes(kw) || val.includes(kw);\n }\n : undefined\n }\n allowClear={allowClear && !disabled}\n disabled={disabled}\n />\n </div>\n );\n};\n\nconst SuperSelectInner: FC<SuperSelectProps> = (props) => {\n const { useDecorator } = (ReactFormAntd as unknown as { hooks: KneHooks }).hooks;\n const render = useDecorator({\n fieldName: 'superSelect',\n ...props,\n });\n return render(SuperSelectField);\n};\n\nSuperSelectInner.displayName = 'SuperSelect';\n\nexport const SuperSelect = withNormalizedLabelTips(\n SuperSelectInner as ComponentType<SuperSelectProps>,\n) as ComponentType<SuperSelectProps>;\n\nexport default SuperSelect;\n"],"names":["SUPER_SELECT_ALL_VALUE","isSelectAllMarsun","value","allValue","isSuperSelectAllValue","SuperSelectField","onChange","disabled","options","single","allowSelectedAll","selectedAllValue","placeholder","showSearch","allowClear","className","kneRest","mapsRef","useRef","labelMapFromOptions","useMemo","map","o","kneValue","maps","marsunToKne","handleChange","next","mergeKneLabelMaps","kneToMarsun","jsx","classNames","styles","KneSuperSelect","searchText","item","kw","label","val","SuperSelectInner","props","useDecorator","ReactFormAntd","SuperSelect","withNormalizedLabelTips"],"mappings":";;;;;;;;;AAuBO,MAAMA,IAAyB;AA2CtC,SAASC,EACPC,GACAC,IAA4BH,GACnB;AACT,SAAIE,KAAS,QAAQA,MAAU,KAAW,KACtC,MAAM,QAAQA,CAAK,IACdA,EAAM,WAAW,KAAK,OAAOA,EAAM,CAAC,CAAC,MAAM,OAAOC,CAAQ,IAE5D,OAAOD,CAAK,MAAM,OAAOC,CAAQ;AAC1C;AAGO,SAASC,EACdF,GACAC,IAA4BH,GACnB;AACT,SAAIE,KAAS,QAAQA,MAAU,KAAW,KACtC,MAAM,QAAQA,CAAK,IACdA,EAAM,WAAW,KAAK,OAAOA,EAAM,CAAC,CAAC,MAAM,OAAOC,CAAQ,IAE5D,OAAOD,CAAK,MAAM,OAAOC,CAAQ;AAC1C;AAEA,MAAME,IAYF,CAAC;AAAA,EACH,OAAAH;AAAA,EACA,UAAAI;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC,IAAU,CAAA;AAAA,EACV,QAAAC,IAAS;AAAA,EACT,kBAAAC,IAAmB;AAAA,EACnB,kBAAAC,IAAmB,EAAE,OAAOX,GAAwB,OAAO,KAAA;AAAA,EAC3D,aAAAY;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,YAAAC,IAAa;AAAA,EACb,WAAAC;AAAA,EACA,GAAGC;AACL,MAAM;AACJ,QAAMC,IAAUC,EAAO;AAAA,IACrB,UAAU,CAAA;AAAA,IACV,SAAS,CAAA;AAAA,EAAC,CACX,GAEKC,IAAsBC,EAAQ,MAAM;AACxC,UAAMC,IAA8B,CAAA;AACpC,eAAWC,KAAKd;AACd,MAAAa,EAAI,OAAOC,EAAE,KAAK,CAAC,IAAIA,EAAE;AAE3B,WAAAD,EAAI,OAAOV,EAAiB,KAAK,CAAC,IAAIA,EAAiB,OAChDU;AAAA,EACT,GAAG,CAACb,GAASG,CAAgB,CAAC,GAExBY,IAAWH,EAAQ,MAAM;AAC7B,UAAMI,IAAO;AAAA,MACX,UAAU,EAAE,GAAGL,GAAqB,GAAGF,EAAQ,QAAQ,SAAA;AAAA,MACvD,SAASA,EAAQ,QAAQ;AAAA,IAAA;AAE3B,WAAIhB,EAAkBC,GAAOS,EAAiB,KAAK,IAC1C,CAACA,CAAiC,IAEpCc,EAAYvB,GAAO,EAAE,QAAAO,GAAQ,GAAGe,GAAM;AAAA,EAC/C,GAAG,CAACtB,GAAOO,GAAQU,GAAqBR,CAAgB,CAAC,GAEnDe,IAAe,CAACC,MAAiD;AACrE,IAAAV,EAAQ,UAAUW,EAAkBD,GAAMV,EAAQ,OAAO,GACzDX,KAAA,QAAAA,EAAWuB,EAAYF,GAAMlB,CAAM;AAAA,EACrC;AAEA,SACE,gBAAAqB;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAC,EAAO,0BAA0B;AAAA,QACjCjB;AAAA,MAAA;AAAA,MAGF,UAAA,gBAAAe;AAAA,QAACG;AAAAA,QAAA;AAAA,UACE,GAAGjB;AAAA,UACJ,OAAOO;AAAA,UACP,UAAUG;AAAA,UACV,SAAAlB;AAAA,UACA,QAAAC;AAAA,UACA,kBAAkB,CAACA,KAAUC;AAAA,UAC7B,kBAAAC;AAAA,UACA,aAAAC;AAAA,UACA,SAAO;AAAA,UACP,mBACEC,IACI,CAAC,EAAE,YAAAqB,EAAA,GAAuCC,MAAwB;AAChE,gBAAI,CAACD,EAAY,QAAO;AACxB,kBAAME,IAAKF,EAAW,YAAA,GAChBG,IAAQ,OAAOF,EAAK,SAAS,EAAE,EAAE,YAAA,GACjCG,IAAM,OAAOH,EAAK,SAAS,EAAE,EAAE,YAAA;AACrC,mBAAOE,EAAM,SAASD,CAAE,KAAKE,EAAI,SAASF,CAAE;AAAA,UAC9C,IACA;AAAA,UAEN,YAAYtB,KAAc,CAACP;AAAA,UAC3B,UAAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN,GAEMgC,IAAyC,CAACC,MAAU;AACxD,QAAM,EAAE,cAAAC,MAAkBC,EAAiD;AAK3E,SAJeD,EAAa;AAAA,IAC1B,WAAW;AAAA,IACX,GAAGD;AAAA,EAAA,CACJ,EACanC,CAAgB;AAChC;AAEAkC,EAAiB,cAAc;AAExB,MAAMI,IAAcC;AAAA,EACzBL;AACF;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuperSelect.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -12,6 +12,8 @@ export { InputRange } from './InputRange';
|
|
|
12
12
|
export type { InputRangeProps, InputRangeValue } from './InputRange';
|
|
13
13
|
export { inputRangeRules, validateRangeAsc, RANGE_ASC_RULE_NAME } from './inputRangeRules';
|
|
14
14
|
export type { KneRuleResult } from './inputRangeRules';
|
|
15
|
+
export { SuperSelect, SUPER_SELECT_ALL_VALUE, isSuperSelectAllValue } from './SuperSelect';
|
|
16
|
+
export type { SuperSelectProps, SuperSelectOption } from './SuperSelect';
|
|
15
17
|
/** @kne/form-info — 业务从包根导入,勿直连 @kne/form-info */
|
|
16
18
|
export { FormInfo, Form, FormModal, FormSteps, FormStepsModal, List, TableList, MultiField, Input, TextArea, Select, TreeSelect, InputNumber, Switch, RadioGroup, SubmitButton, ResetButton, CancelButton, } from './kneFormInfo';
|
|
17
19
|
export type { FormInfoProps, FormProps, FormModalProps, FormStepsProps, FormStepsModalProps, ListProps, TableListProps, MultiFieldProps, } from './kneFormInfo';
|
|
@@ -24,10 +24,11 @@ export declare const Input: InputType;
|
|
|
24
24
|
export declare const TextArea: ComponentType<FieldProps>;
|
|
25
25
|
export declare const Select: ComponentType<FieldProps>;
|
|
26
26
|
export declare const TreeSelect: ComponentType<FieldProps>;
|
|
27
|
+
export { SuperSelect, SUPER_SELECT_ALL_VALUE, isSuperSelectAllValue, } from '../Form/SuperSelect';
|
|
28
|
+
export type { SuperSelectProps, SuperSelectOption } from '../Form/SuperSelect';
|
|
27
29
|
export declare const InputNumber: ComponentType<FieldProps>;
|
|
28
30
|
export declare const Switch: ComponentType<FieldProps>;
|
|
29
31
|
export declare const RadioGroup: ComponentType<FieldProps>;
|
|
30
32
|
export declare const SubmitButton: ComponentType<ButtonProps>;
|
|
31
33
|
export declare const ResetButton: ComponentType<ButtonProps>;
|
|
32
34
|
export declare const CancelButton: ComponentType<ButtonProps>;
|
|
33
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.js","sources":["../../../src/components/FormInfo/fields.ts"],"sourcesContent":["/**\n * 字段包装:withNormalizedLabelTips;引擎按钮再导出。\n */\nimport {\n CancelButton as BaseCancelButton,\n Input as BaseInput,\n InputNumber as BaseInputNumber,\n RadioGroup as BaseRadioGroup,\n ResetButton as BaseResetButton,\n Select as BaseSelect,\n SubmitButton as BaseSubmitButton,\n Switch as BaseSwitch,\n TextArea as BaseTextArea,\n TreeSelect as BaseTreeSelect,\n} from '@kne/react-form-antd';\nimport type { ComponentType, ReactNode } from 'react';\nimport { withNormalizedLabelTips } from '@/components/Form/normalizeLabelTips';\n\ntype FieldProps = {\n name: string;\n label?: ReactNode;\n labelTips?: ReactNode | ((props: FieldProps) => ReactNode);\n rule?: string;\n placeholder?: string;\n disabled?: boolean;\n block?: boolean;\n rows?: number;\n options?: unknown[];\n [key: string]: unknown;\n};\n\ntype ButtonProps = {\n children?: ReactNode;\n type?: string;\n loading?: boolean;\n [key: string]: unknown;\n};\n\ntype InputType = ComponentType<FieldProps> & { Password: ComponentType<FieldProps> };\nconst InputBase = BaseInput as unknown as InputType;\nconst InputWrapped = withNormalizedLabelTips(InputBase);\nexport const Input = Object.assign(InputWrapped, {\n Password: withNormalizedLabelTips(InputBase.Password),\n}) as InputType;\n\nexport const TextArea = withNormalizedLabelTips(\n BaseTextArea as ComponentType<FieldProps>,\n) as ComponentType<FieldProps>;\nexport const Select = withNormalizedLabelTips(\n BaseSelect as ComponentType<FieldProps>,\n) as ComponentType<FieldProps>;\nexport const TreeSelect = withNormalizedLabelTips(\n BaseTreeSelect as ComponentType<FieldProps>,\n) as ComponentType<FieldProps>;\nexport const InputNumber = withNormalizedLabelTips(\n BaseInputNumber as ComponentType<FieldProps>,\n) as ComponentType<FieldProps>;\nexport const Switch = withNormalizedLabelTips(\n BaseSwitch as ComponentType<FieldProps>,\n) as ComponentType<FieldProps>;\nexport const RadioGroup = withNormalizedLabelTips(\n BaseRadioGroup as ComponentType<FieldProps>,\n) as ComponentType<FieldProps>;\n\nexport const SubmitButton = BaseSubmitButton as ComponentType<ButtonProps>;\nexport const ResetButton = BaseResetButton as ComponentType<ButtonProps>;\nexport const CancelButton = BaseCancelButton as ComponentType<ButtonProps>;\n"],"names":["InputBase","BaseInput","InputWrapped","withNormalizedLabelTips","Input","TextArea","BaseTextArea","Select","BaseSelect","TreeSelect","BaseTreeSelect","InputNumber","BaseInputNumber","Switch","BaseSwitch","RadioGroup","BaseRadioGroup","SubmitButton","BaseSubmitButton","ResetButton","BaseResetButton","CancelButton","BaseCancelButton"],"mappings":";;AAuCA,MAAMA,IAAYC,GACZC,IAAeC,EAAwBH,CAAS,GACzCI,IAAQ,OAAO,OAAOF,GAAc;AAAA,EAC/C,UAAUC,EAAwBH,EAAU,QAAQ;AACtD,CAAC,GAEYK,IAAWF;AAAA,EACtBG;AACF,GACaC,IAASJ;AAAA,EACpBK;AACF,GACaC,IAAaN;AAAA,EACxBO;AACF,
|
|
1
|
+
{"version":3,"file":"fields.js","sources":["../../../src/components/FormInfo/fields.ts"],"sourcesContent":["/**\n * 字段包装:withNormalizedLabelTips;引擎按钮再导出。\n */\nimport {\n CancelButton as BaseCancelButton,\n Input as BaseInput,\n InputNumber as BaseInputNumber,\n RadioGroup as BaseRadioGroup,\n ResetButton as BaseResetButton,\n Select as BaseSelect,\n SubmitButton as BaseSubmitButton,\n Switch as BaseSwitch,\n TextArea as BaseTextArea,\n TreeSelect as BaseTreeSelect,\n} from '@kne/react-form-antd';\nimport type { ComponentType, ReactNode } from 'react';\nimport { withNormalizedLabelTips } from '@/components/Form/normalizeLabelTips';\n\ntype FieldProps = {\n name: string;\n label?: ReactNode;\n labelTips?: ReactNode | ((props: FieldProps) => ReactNode);\n rule?: string;\n placeholder?: string;\n disabled?: boolean;\n block?: boolean;\n rows?: number;\n options?: unknown[];\n [key: string]: unknown;\n};\n\ntype ButtonProps = {\n children?: ReactNode;\n type?: string;\n loading?: boolean;\n [key: string]: unknown;\n};\n\ntype InputType = ComponentType<FieldProps> & { Password: ComponentType<FieldProps> };\nconst InputBase = BaseInput as unknown as InputType;\nconst InputWrapped = withNormalizedLabelTips(InputBase);\nexport const Input = Object.assign(InputWrapped, {\n Password: withNormalizedLabelTips(InputBase.Password),\n}) as InputType;\n\nexport const TextArea = withNormalizedLabelTips(\n BaseTextArea as ComponentType<FieldProps>,\n) as ComponentType<FieldProps>;\nexport const Select = withNormalizedLabelTips(\n BaseSelect as ComponentType<FieldProps>,\n) as ComponentType<FieldProps>;\nexport const TreeSelect = withNormalizedLabelTips(\n BaseTreeSelect as ComponentType<FieldProps>,\n) as ComponentType<FieldProps>;\n\nexport {\n SuperSelect,\n SUPER_SELECT_ALL_VALUE,\n isSuperSelectAllValue,\n} from '@/components/Form/SuperSelect';\nexport type { SuperSelectProps, SuperSelectOption } from '@/components/Form/SuperSelect';\nexport const InputNumber = withNormalizedLabelTips(\n BaseInputNumber as ComponentType<FieldProps>,\n) as ComponentType<FieldProps>;\nexport const Switch = withNormalizedLabelTips(\n BaseSwitch as ComponentType<FieldProps>,\n) as ComponentType<FieldProps>;\nexport const RadioGroup = withNormalizedLabelTips(\n BaseRadioGroup as ComponentType<FieldProps>,\n) as ComponentType<FieldProps>;\n\nexport const SubmitButton = BaseSubmitButton as ComponentType<ButtonProps>;\nexport const ResetButton = BaseResetButton as ComponentType<ButtonProps>;\nexport const CancelButton = BaseCancelButton as ComponentType<ButtonProps>;\n"],"names":["InputBase","BaseInput","InputWrapped","withNormalizedLabelTips","Input","TextArea","BaseTextArea","Select","BaseSelect","TreeSelect","BaseTreeSelect","InputNumber","BaseInputNumber","Switch","BaseSwitch","RadioGroup","BaseRadioGroup","SubmitButton","BaseSubmitButton","ResetButton","BaseResetButton","CancelButton","BaseCancelButton"],"mappings":";;AAuCA,MAAMA,IAAYC,GACZC,IAAeC,EAAwBH,CAAS,GACzCI,IAAQ,OAAO,OAAOF,GAAc;AAAA,EAC/C,UAAUC,EAAwBH,EAAU,QAAQ;AACtD,CAAC,GAEYK,IAAWF;AAAA,EACtBG;AACF,GACaC,IAASJ;AAAA,EACpBK;AACF,GACaC,IAAaN;AAAA,EACxBO;AACF,GAQaC,IAAcR;AAAA,EACzBS;AACF,GACaC,IAASV;AAAA,EACpBW;AACF,GACaC,IAAaZ;AAAA,EACxBa;AACF,GAEaC,IAAeC,GACfC,IAAcC,GACdC,IAAeC;"}
|
|
@@ -17,5 +17,6 @@ export { default as Steps, validateFieldsByName } from './Steps';
|
|
|
17
17
|
export { default as FormSteps } from './FormSteps';
|
|
18
18
|
export { default as FormStepsModal, useFormStepModal } from './FormStepsModal';
|
|
19
19
|
export { buildFormOverlayProps } from './buildFormOverlayProps';
|
|
20
|
-
export { Input, TextArea, Select, TreeSelect, InputNumber, Switch, RadioGroup, SubmitButton, ResetButton, CancelButton, } from './fields';
|
|
20
|
+
export { Input, TextArea, Select, TreeSelect, InputNumber, Switch, RadioGroup, SubmitButton, ResetButton, CancelButton, SuperSelect, SUPER_SELECT_ALL_VALUE, isSuperSelectAllValue, } from './fields';
|
|
21
|
+
export type { SuperSelectProps, SuperSelectOption } from './fields';
|
|
21
22
|
export type { FormInfoProps, FormProps, FormModalProps, FormDrawerProps, FormItemProps, ErrorTipProps, FormApiButtonProps, ListProps, TableListProps, MultiFieldProps, StepsProps, StepsItem, FormStepsProps, FormStepsItem, FormStepsModalProps, FormOverlaySharedProps, } from './types';
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
const o = {
|
|
2
|
-
"marsun-form-info-outer": "_marsun-form-info-
|
|
3
|
-
"marsun-form-info": "_marsun-form-
|
|
4
|
-
"marsun-form-info-nest-block-col": "_marsun-form-info-nest-block-
|
|
5
|
-
"marsun-form-info-extra-btn": "_marsun-form-info-extra-
|
|
6
|
-
"marsun-form-info-list-part": "_marsun-form-info-list-
|
|
7
|
-
"marsun-form-info-list-item": "_marsun-form-info-list-
|
|
8
|
-
"marsun-form-info-list-item-part": "_marsun-form-info-list-item-
|
|
9
|
-
"marsun-form-info-list-item-part-in-bordered": "_marsun-form-info-list-item-part-in-
|
|
10
|
-
"marsun-form-info-list-item-part-plain": "_marsun-form-info-list-item-part-
|
|
11
|
-
"marsun-form-info-list-item-part-wraps-nest-beyond": "_marsun-form-info-list-item-part-wraps-nest-
|
|
12
|
-
"marsun-form-info-is-important": "_marsun-form-info-is-
|
|
13
|
-
"marsun-form-info-nest-beyond": "_marsun-form-info-nest-
|
|
14
|
-
"marsun-form-info-table-list-inner": "_marsun-form-info-table-list-
|
|
15
|
-
"marsun-form-info-list-item-part-beyond": "_marsun-form-info-list-item-part-
|
|
16
|
-
"marsun-form-info-extra-container": "_marsun-form-info-extra-
|
|
17
|
-
"marsun-form-info-list-item-part-no-title": "_marsun-form-info-list-item-part-no-
|
|
18
|
-
"marsun-form-info-list-item-title-placeholder": "_marsun-form-info-list-item-title-
|
|
19
|
-
"marsun-form-info-nest-beyond-rail": "_marsun-form-info-nest-beyond-
|
|
20
|
-
"marsun-form-info-nest-beyond-collapsed": "_marsun-form-info-nest-beyond-
|
|
21
|
-
"marsun-form-info-nest-beyond-title": "_marsun-form-info-nest-beyond-
|
|
22
|
-
"marsun-form-info-nest-level-toggle": "_marsun-form-info-nest-level-
|
|
23
|
-
"marsun-form-info-nest-beyond-title-text": "_marsun-form-info-nest-beyond-title-
|
|
24
|
-
"marsun-form-info-nest-parent-tag": "_marsun-form-info-nest-parent-
|
|
25
|
-
"marsun-form-info-nest-block-col-beyond": "_marsun-form-info-nest-block-col-
|
|
26
|
-
"marsun-form-info-multi-field-item": "_marsun-form-info-multi-field-
|
|
27
|
-
"react-form__field-label": "_react-form__field-
|
|
28
|
-
"marsun-form-info-multi-field-add-btn": "_marsun-form-info-multi-field-add-
|
|
29
|
-
"marsun-form-info-table-list-view": "_marsun-form-info-table-list-
|
|
30
|
-
"marsun-form-info-table-list": "_marsun-form-info-table-
|
|
31
|
-
"marsun-form-info-is-mobile": "_marsun-form-info-is-
|
|
32
|
-
"marsun-form-info-table-list-mobile-list": "_marsun-form-info-table-list-mobile-
|
|
33
|
-
"marsun-form-info-table-list-mobile-card": "_marsun-form-info-table-list-mobile-
|
|
34
|
-
"marsun-form-info-table-list-mobile-card-body": "_marsun-form-info-table-list-mobile-card-
|
|
35
|
-
"marsun-form-info-table-list-mobile-field": "_marsun-form-info-table-list-mobile-
|
|
36
|
-
"marsun-form-info-table-list-mobile-actions": "_marsun-form-info-table-list-mobile-
|
|
37
|
-
"marsun-form-info-table-list-field": "_marsun-form-info-table-list-
|
|
38
|
-
"marsun-form-info-table-list-header": "_marsun-form-info-table-list-
|
|
39
|
-
"marsun-form-info-is-req": "_marsun-form-info-is-
|
|
40
|
-
"marsun-form-info-table-options": "_marsun-form-info-table-
|
|
41
|
-
"marsun-form-info-table-options-header": "_marsun-form-info-table-options-
|
|
42
|
-
"marsun-form-info-is-overflow": "_marsun-form-info-is-
|
|
43
|
-
"marsun-form-info-steps": "_marsun-form-info-
|
|
44
|
-
"marsun-form-info-steps-vertical": "_marsun-form-info-steps-
|
|
45
|
-
"marsun-form-info-steps-form-inner": "_marsun-form-info-steps-form-
|
|
46
|
-
"marsun-form-info-steps-embed": "_marsun-form-info-steps-
|
|
47
|
-
"marsun-form-info-steps-embed-panel": "_marsun-form-info-steps-embed-
|
|
48
|
-
"marsun-form-info-steps-actions": "_marsun-form-info-steps-
|
|
49
|
-
"marsun-form-info-steps-actions-side": "_marsun-form-info-steps-actions-
|
|
50
|
-
"marsun-form-info-steps-modal": "_marsun-form-info-steps-
|
|
51
|
-
"marsun-form-info-table-list-empty": "_marsun-form-info-table-list-
|
|
52
|
-
"marsun-form-info-column-not-layout": "_marsun-form-info-column-not-
|
|
2
|
+
"marsun-form-info-outer": "_marsun-form-info-outer_1p627_25",
|
|
3
|
+
"marsun-form-info": "_marsun-form-info_1p627_25",
|
|
4
|
+
"marsun-form-info-nest-block-col": "_marsun-form-info-nest-block-col_1p627_103",
|
|
5
|
+
"marsun-form-info-extra-btn": "_marsun-form-info-extra-btn_1p627_121",
|
|
6
|
+
"marsun-form-info-list-part": "_marsun-form-info-list-part_1p627_131",
|
|
7
|
+
"marsun-form-info-list-item": "_marsun-form-info-list-item_1p627_153",
|
|
8
|
+
"marsun-form-info-list-item-part": "_marsun-form-info-list-item-part_1p627_161",
|
|
9
|
+
"marsun-form-info-list-item-part-in-bordered": "_marsun-form-info-list-item-part-in-bordered_1p627_178",
|
|
10
|
+
"marsun-form-info-list-item-part-plain": "_marsun-form-info-list-item-part-plain_1p627_189",
|
|
11
|
+
"marsun-form-info-list-item-part-wraps-nest-beyond": "_marsun-form-info-list-item-part-wraps-nest-beyond_1p627_201",
|
|
12
|
+
"marsun-form-info-is-important": "_marsun-form-info-is-important_1p627_204",
|
|
13
|
+
"marsun-form-info-nest-beyond": "_marsun-form-info-nest-beyond_1p627_218",
|
|
14
|
+
"marsun-form-info-table-list-inner": "_marsun-form-info-table-list-inner_1p627_278",
|
|
15
|
+
"marsun-form-info-list-item-part-beyond": "_marsun-form-info-list-item-part-beyond_1p627_343",
|
|
16
|
+
"marsun-form-info-extra-container": "_marsun-form-info-extra-container_1p627_436",
|
|
17
|
+
"marsun-form-info-list-item-part-no-title": "_marsun-form-info-list-item-part-no-title_1p627_548",
|
|
18
|
+
"marsun-form-info-list-item-title-placeholder": "_marsun-form-info-list-item-title-placeholder_1p627_559",
|
|
19
|
+
"marsun-form-info-nest-beyond-rail": "_marsun-form-info-nest-beyond-rail_1p627_620",
|
|
20
|
+
"marsun-form-info-nest-beyond-collapsed": "_marsun-form-info-nest-beyond-collapsed_1p627_628",
|
|
21
|
+
"marsun-form-info-nest-beyond-title": "_marsun-form-info-nest-beyond-title_1p627_677",
|
|
22
|
+
"marsun-form-info-nest-level-toggle": "_marsun-form-info-nest-level-toggle_1p627_685",
|
|
23
|
+
"marsun-form-info-nest-beyond-title-text": "_marsun-form-info-nest-beyond-title-text_1p627_702",
|
|
24
|
+
"marsun-form-info-nest-parent-tag": "_marsun-form-info-nest-parent-tag_1p627_707",
|
|
25
|
+
"marsun-form-info-nest-block-col-beyond": "_marsun-form-info-nest-block-col-beyond_1p627_804",
|
|
26
|
+
"marsun-form-info-multi-field-item": "_marsun-form-info-multi-field-item_1p627_816",
|
|
27
|
+
"react-form__field-label": "_react-form__field-label_1p627_28",
|
|
28
|
+
"marsun-form-info-multi-field-add-btn": "_marsun-form-info-multi-field-add-btn_1p627_835",
|
|
29
|
+
"marsun-form-info-table-list-view": "_marsun-form-info-table-list-view_1p627_839",
|
|
30
|
+
"marsun-form-info-table-list": "_marsun-form-info-table-list_1p627_278",
|
|
31
|
+
"marsun-form-info-is-mobile": "_marsun-form-info-is-mobile_1p627_873",
|
|
32
|
+
"marsun-form-info-table-list-mobile-list": "_marsun-form-info-table-list-mobile-list_1p627_899",
|
|
33
|
+
"marsun-form-info-table-list-mobile-card": "_marsun-form-info-table-list-mobile-card_1p627_905",
|
|
34
|
+
"marsun-form-info-table-list-mobile-card-body": "_marsun-form-info-table-list-mobile-card-body_1p627_917",
|
|
35
|
+
"marsun-form-info-table-list-mobile-field": "_marsun-form-info-table-list-mobile-field_1p627_925",
|
|
36
|
+
"marsun-form-info-table-list-mobile-actions": "_marsun-form-info-table-list-mobile-actions_1p627_930",
|
|
37
|
+
"marsun-form-info-table-list-field": "_marsun-form-info-table-list-field_1p627_949",
|
|
38
|
+
"marsun-form-info-table-list-header": "_marsun-form-info-table-list-header_1p627_958",
|
|
39
|
+
"marsun-form-info-is-req": "_marsun-form-info-is-req_1p627_28",
|
|
40
|
+
"marsun-form-info-table-options": "_marsun-form-info-table-options_1p627_978",
|
|
41
|
+
"marsun-form-info-table-options-header": "_marsun-form-info-table-options-header_1p627_991",
|
|
42
|
+
"marsun-form-info-is-overflow": "_marsun-form-info-is-overflow_1p627_995",
|
|
43
|
+
"marsun-form-info-steps": "_marsun-form-info-steps_1p627_1018",
|
|
44
|
+
"marsun-form-info-steps-vertical": "_marsun-form-info-steps-vertical_1p627_1106",
|
|
45
|
+
"marsun-form-info-steps-form-inner": "_marsun-form-info-steps-form-inner_1p627_1131",
|
|
46
|
+
"marsun-form-info-steps-embed": "_marsun-form-info-steps-embed_1p627_1135",
|
|
47
|
+
"marsun-form-info-steps-embed-panel": "_marsun-form-info-steps-embed-panel_1p627_1139",
|
|
48
|
+
"marsun-form-info-steps-actions": "_marsun-form-info-steps-actions_1p627_1143",
|
|
49
|
+
"marsun-form-info-steps-actions-side": "_marsun-form-info-steps-actions-side_1p627_1149",
|
|
50
|
+
"marsun-form-info-steps-modal": "_marsun-form-info-steps-modal_1p627_1159",
|
|
51
|
+
"marsun-form-info-table-list-empty": "_marsun-form-info-table-list-empty_1p627_1171",
|
|
52
|
+
"marsun-form-info-column-not-layout": "_marsun-form-info-column-not-layout_1p627_1179"
|
|
53
53
|
};
|
|
54
54
|
export {
|
|
55
55
|
o as default
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
const r = "
|
|
2
|
-
"kne-responsive-boundary": "_kne-responsive-
|
|
3
|
-
"kne-responsive-scroll": "_kne-responsive-
|
|
1
|
+
const r = "_drawer_1ha0z_25", e = "_small_1ha0z_56", a = "_large_1ha0z_68", _ = {
|
|
2
|
+
"kne-responsive-boundary": "_kne-responsive-boundary_1ha0z_3",
|
|
3
|
+
"kne-responsive-scroll": "_kne-responsive-scroll_1ha0z_7",
|
|
4
4
|
drawer: r,
|
|
5
5
|
small: e,
|
|
6
|
-
"is-mobile": "_is-
|
|
7
|
-
large:
|
|
8
|
-
"drawer-body-inner": "_drawer-body-
|
|
9
|
-
"drawer-antd-header": "_drawer-antd-
|
|
10
|
-
"drawer-antd-footer": "_drawer-antd-
|
|
11
|
-
"drawer-antd-body": "_drawer-antd-
|
|
12
|
-
"drawer-outer": "_drawer-
|
|
13
|
-
"no-title": "_no-
|
|
14
|
-
"no-footer": "_no-
|
|
15
|
-
"no-padding": "_no-
|
|
16
|
-
"drawer-title": "_drawer-
|
|
17
|
-
"drawer-body": "_drawer-
|
|
18
|
-
"body-scroll-off": "_body-scroll-
|
|
19
|
-
"modal-footer-extra": "_modal-footer-
|
|
20
|
-
"drawer-close": "_drawer-
|
|
21
|
-
"drawer-host": "_drawer-
|
|
22
|
-
"drawer-host-render": "_drawer-host-
|
|
23
|
-
"drawer-panel-host": "_drawer-panel-
|
|
24
|
-
"drawer-panel-body": "_drawer-panel-
|
|
25
|
-
"drawer-form-host": "_drawer-form-
|
|
26
|
-
"drawer-wrapper-mobile": "_drawer-wrapper-
|
|
27
|
-
"drawer-wrapper-mobile-vertical": "_drawer-wrapper-mobile-
|
|
28
|
-
"drawer-root-mobile": "_drawer-root-
|
|
6
|
+
"is-mobile": "_is-mobile_1ha0z_59",
|
|
7
|
+
large: a,
|
|
8
|
+
"drawer-body-inner": "_drawer-body-inner_1ha0z_68",
|
|
9
|
+
"drawer-antd-header": "_drawer-antd-header_1ha0z_85",
|
|
10
|
+
"drawer-antd-footer": "_drawer-antd-footer_1ha0z_86",
|
|
11
|
+
"drawer-antd-body": "_drawer-antd-body_1ha0z_90",
|
|
12
|
+
"drawer-outer": "_drawer-outer_1ha0z_103",
|
|
13
|
+
"no-title": "_no-title_1ha0z_119",
|
|
14
|
+
"no-footer": "_no-footer_1ha0z_123",
|
|
15
|
+
"no-padding": "_no-padding_1ha0z_126",
|
|
16
|
+
"drawer-title": "_drawer-title_1ha0z_137",
|
|
17
|
+
"drawer-body": "_drawer-body_1ha0z_68",
|
|
18
|
+
"body-scroll-off": "_body-scroll-off_1ha0z_178",
|
|
19
|
+
"modal-footer-extra": "_modal-footer-extra_1ha0z_217",
|
|
20
|
+
"drawer-close": "_drawer-close_1ha0z_232",
|
|
21
|
+
"drawer-host": "_drawer-host_1ha0z_246",
|
|
22
|
+
"drawer-host-render": "_drawer-host-render_1ha0z_254",
|
|
23
|
+
"drawer-panel-host": "_drawer-panel-host_1ha0z_270",
|
|
24
|
+
"drawer-panel-body": "_drawer-panel-body_1ha0z_280",
|
|
25
|
+
"drawer-form-host": "_drawer-form-host_1ha0z_290",
|
|
26
|
+
"drawer-wrapper-mobile": "_drawer-wrapper-mobile_1ha0z_309",
|
|
27
|
+
"drawer-wrapper-mobile-vertical": "_drawer-wrapper-mobile-vertical_1ha0z_314",
|
|
28
|
+
"drawer-root-mobile": "_drawer-root-mobile_1ha0z_319"
|
|
29
29
|
};
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
_ as default,
|
|
32
32
|
r as drawer,
|
|
33
|
-
|
|
33
|
+
a as large,
|
|
34
34
|
e as small
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=drawer.module.scss.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const l = {
|
|
2
|
-
"modal-tabs-layout": "_modal-tabs-
|
|
3
|
-
"modal-columns-layout": "_modal-columns-
|
|
4
|
-
"modal-columns-layout__col": "_modal-columns-
|
|
5
|
-
"modal-scroll-region": "_modal-scroll-
|
|
6
|
-
"modal-scroll-region-inner": "_modal-scroll-region-
|
|
7
|
-
"is-inset": "_is-
|
|
2
|
+
"modal-tabs-layout": "_modal-tabs-layout_d9ufs_3",
|
|
3
|
+
"modal-columns-layout": "_modal-columns-layout_d9ufs_59",
|
|
4
|
+
"modal-columns-layout__col": "_modal-columns-layout__col_d9ufs_70",
|
|
5
|
+
"modal-scroll-region": "_modal-scroll-region_d9ufs_81",
|
|
6
|
+
"modal-scroll-region-inner": "_modal-scroll-region-inner_d9ufs_131",
|
|
7
|
+
"is-inset": "_is-inset_d9ufs_136"
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
10
|
l as default
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
const
|
|
2
|
-
"kne-responsive-boundary": "_kne-responsive-
|
|
3
|
-
"kne-responsive-scroll": "_kne-responsive-
|
|
4
|
-
modal:
|
|
5
|
-
small:
|
|
6
|
-
large:
|
|
7
|
-
"modal-body-inner": "_modal-body-
|
|
8
|
-
"is-mobile": "_is-
|
|
9
|
-
"modal-container": "_modal-
|
|
10
|
-
"modal-antd-header": "_modal-antd-
|
|
11
|
-
"modal-antd-footer": "_modal-antd-
|
|
12
|
-
"modal-antd-body": "_modal-antd-
|
|
13
|
-
"modal-outer": "_modal-
|
|
14
|
-
"no-title": "_no-
|
|
15
|
-
"no-footer": "_no-
|
|
16
|
-
"no-padding": "_no-
|
|
17
|
-
"modal-title": "_modal-
|
|
18
|
-
"modal-body": "_modal-
|
|
19
|
-
"modal-footer": "_modal-
|
|
20
|
-
"body-scroll-off": "_body-scroll-
|
|
21
|
-
"is-embedded-footer": "_is-embedded-
|
|
22
|
-
"modal-footer-extra": "_modal-footer-
|
|
23
|
-
"modal-footer-actions": "_modal-footer-
|
|
24
|
-
"modal-close": "_modal-
|
|
25
|
-
"modal-host": "_modal-
|
|
26
|
-
"modal-form-host": "_modal-form-
|
|
27
|
-
"modal-wrap": "_modal-
|
|
28
|
-
"modal-wrap-centered": "_modal-wrap-
|
|
29
|
-
"modal-wrap-fullscreen": "_modal-wrap-
|
|
30
|
-
"modal-mask-fullscreen": "_modal-mask-
|
|
1
|
+
const o = "_modal_1jkp8_25", _ = "_small_1jkp8_48", l = "_large_1jkp8_51", a = {
|
|
2
|
+
"kne-responsive-boundary": "_kne-responsive-boundary_1jkp8_3",
|
|
3
|
+
"kne-responsive-scroll": "_kne-responsive-scroll_1jkp8_7",
|
|
4
|
+
modal: o,
|
|
5
|
+
small: _,
|
|
6
|
+
large: l,
|
|
7
|
+
"modal-body-inner": "_modal-body-inner_1jkp8_51",
|
|
8
|
+
"is-mobile": "_is-mobile_1jkp8_54",
|
|
9
|
+
"modal-container": "_modal-container_1jkp8_69",
|
|
10
|
+
"modal-antd-header": "_modal-antd-header_1jkp8_84",
|
|
11
|
+
"modal-antd-footer": "_modal-antd-footer_1jkp8_85",
|
|
12
|
+
"modal-antd-body": "_modal-antd-body_1jkp8_89",
|
|
13
|
+
"modal-outer": "_modal-outer_1jkp8_98",
|
|
14
|
+
"no-title": "_no-title_1jkp8_104",
|
|
15
|
+
"no-footer": "_no-footer_1jkp8_109",
|
|
16
|
+
"no-padding": "_no-padding_1jkp8_112",
|
|
17
|
+
"modal-title": "_modal-title_1jkp8_123",
|
|
18
|
+
"modal-body": "_modal-body_1jkp8_51",
|
|
19
|
+
"modal-footer": "_modal-footer_1jkp8_132",
|
|
20
|
+
"body-scroll-off": "_body-scroll-off_1jkp8_166",
|
|
21
|
+
"is-embedded-footer": "_is-embedded-footer_1jkp8_210",
|
|
22
|
+
"modal-footer-extra": "_modal-footer-extra_1jkp8_210",
|
|
23
|
+
"modal-footer-actions": "_modal-footer-actions_1jkp8_231",
|
|
24
|
+
"modal-close": "_modal-close_1jkp8_236",
|
|
25
|
+
"modal-host": "_modal-host_1jkp8_250",
|
|
26
|
+
"modal-form-host": "_modal-form-host_1jkp8_258",
|
|
27
|
+
"modal-wrap": "_modal-wrap_1jkp8_275",
|
|
28
|
+
"modal-wrap-centered": "_modal-wrap-centered_1jkp8_300",
|
|
29
|
+
"modal-wrap-fullscreen": "_modal-wrap-fullscreen_1jkp8_332",
|
|
30
|
+
"modal-mask-fullscreen": "_modal-mask-fullscreen_1jkp8_371"
|
|
31
31
|
};
|
|
32
32
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
a as default,
|
|
34
|
+
l as large,
|
|
35
|
+
o as modal,
|
|
36
|
+
_ as small
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=style.module.scss.js.map
|
package/dist/form-info.d.ts
CHANGED
|
@@ -15,3 +15,9 @@ export type { PersonOptionRowProps } from './components/Form/PersonOptionRow';
|
|
|
15
15
|
export { useFormApi, useFormContext, useField, useSubmit, useReset, useGroup, GroupList, RULES, ReactForm, } from './components/Form/kneReactForm';
|
|
16
16
|
export type { GroupListRenderProps } from './components/Form/kneReactForm';
|
|
17
17
|
export { normalizeLabelTips, withNormalizedLabelTips } from './components/Form/normalizeLabelTips';
|
|
18
|
+
/** Form SuperSelect(allowSelectedAll);实现在 Form/ */
|
|
19
|
+
export { SuperSelect, SUPER_SELECT_ALL_VALUE, isSuperSelectAllValue, } from './components/Form/SuperSelect';
|
|
20
|
+
export type { SuperSelectProps, SuperSelectOption } from './components/Form/SuperSelect';
|
|
21
|
+
export { InputRange } from './components/Form/InputRange';
|
|
22
|
+
export type { InputRangeProps, InputRangeValue } from './components/Form/InputRange';
|
|
23
|
+
export { inputRangeRules } from './components/Form/inputRangeRules';
|