@tmagic/form 1.8.0-beta.22 → 1.8.0-beta.24
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/es/containers/Container.vue_vue_type_script_setup_true_lang.js +23 -20
- package/dist/es/index.js +4 -3
- package/dist/es/schema.js +4 -4
- package/dist/es/submitForm.js +3 -2
- package/dist/es/utils/silentLeafFieldTypes.js +49 -0
- package/dist/es/utils/typeMatch.js +9 -6
- package/dist/tmagic-form.umd.cjs +221 -159
- package/package.json +10 -10
- package/src/containers/Container.vue +117 -61
- package/src/index.ts +9 -0
- package/src/schema.ts +4 -3
- package/src/utils/silentLeafFieldTypes.ts +71 -0
- package/src/utils/typeMatch.ts +13 -9
- package/types/index.d.ts +72 -35
- package/dist/es/_virtual/_rolldown/runtime.js +0 -27
package/types/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { App, AppContext, Component, ComputedRef, InjectionKey } from "vue";
|
|
2
2
|
import { FlexLayoutConfig, FormItemConfig, GroupListConfig, TableConfig } from "@tmagic/form-schema";
|
|
3
3
|
export * from "@tmagic/form-schema";
|
|
4
|
-
|
|
5
|
-
//#region \0rolldown/runtime.js
|
|
6
4
|
declare namespace schema_d_exports {
|
|
7
5
|
export { ChangeRecord, ContainerChangeEventData, FORM_DIFF_CONFIG_KEY, FORM_SILENT_MODE_KEY, FORM_TYPE_MATCH_VALID_KEY, FormDiffConfig, FormLabelSlotProps, FormSlots, ValidateError };
|
|
8
6
|
}
|
|
@@ -37,11 +35,12 @@ declare const FORM_TYPE_MATCH_VALID_KEY: InjectionKey<ComputedRef<boolean>>;
|
|
|
37
35
|
/**
|
|
38
36
|
* 静默模式标记,由 `submitForm` / `validateForm` 以隐藏方式挂载临时表单时 provide(debug 弹层模式不提供)。
|
|
39
37
|
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
38
|
+
* Container 会基于该标记,并对照 `getSilentLeafFieldTypes()`(默认 `LEAF_FIELD_TYPES`)
|
|
39
|
+
* 跳过叶子字段的渲染,只保留 FormItem:字段校验由 FormItem 基于 model 值完成,与叶子 UI 组件实例无关。
|
|
40
|
+
* 重型字段组件(如 vs-code)也可 inject 该标记跳过自身渲染,省去无谓的实例化开销。
|
|
42
41
|
*
|
|
43
42
|
* 注意:仅「挂载无值副作用」(不在 onMounted/watch immediate 中 emit change、不依赖 DOM 计算值)的
|
|
44
|
-
*
|
|
43
|
+
* 字段组件可以安全跳过,接入前需逐一审计;业务扩展请使用 `registerSilentLeafFieldTypes`。
|
|
45
44
|
*/
|
|
46
45
|
declare const FORM_SILENT_MODE_KEY: InjectionKey<boolean>;
|
|
47
46
|
interface ValidateError {
|
|
@@ -278,20 +277,14 @@ declare const createValues: (mForm: schema_d_exports.FormState | undefined, conf
|
|
|
278
277
|
declare const filterFunction: <T = any>(mForm: schema_d_exports.FormState | undefined, config: T | schema_d_exports.FilterFunction<T> | undefined, props: any) => T | undefined;
|
|
279
278
|
declare const display: (mForm: schema_d_exports.FormState | undefined, config: any, props: any) => any;
|
|
280
279
|
declare const getRules: (mForm: schema_d_exports.FormState | undefined, r: (schema_d_exports.Rule[] | schema_d_exports.Rule) | undefined, props: any, typeMatchValid?: ComputedRef<boolean>) => schema_d_exports.Rule[];
|
|
281
|
-
declare const initValue: (mForm: schema_d_exports.FormState | undefined, {
|
|
282
|
-
initValues,
|
|
283
|
-
config
|
|
284
|
-
}: {
|
|
280
|
+
declare const initValue: (mForm: schema_d_exports.FormState | undefined, { initValues, config }: {
|
|
285
281
|
initValues: schema_d_exports.FormValue;
|
|
286
282
|
config: schema_d_exports.FormConfig;
|
|
287
283
|
}) => Promise<schema_d_exports.FormValue>;
|
|
288
284
|
declare const datetimeFormatter: (v: string | Date, defaultValue?: string, format?: string) => string | number;
|
|
289
285
|
declare const getDataByPage: (data: any[] | undefined, pagecontext: number, pagesize: number) => any[];
|
|
290
286
|
declare const sortArray: (data: any[], newIndex: number, oldIndex: number, sortKey?: string) => any[];
|
|
291
|
-
declare const sortChange: (data: any[], {
|
|
292
|
-
prop,
|
|
293
|
-
order
|
|
294
|
-
}: schema_d_exports.SortProp) => void;
|
|
287
|
+
declare const sortChange: (data: any[], { prop, order }: schema_d_exports.SortProp) => void;
|
|
295
288
|
/**
|
|
296
289
|
* 将 extendState 返回的扩展字段合并进 formState。
|
|
297
290
|
*
|
|
@@ -318,12 +311,17 @@ declare const useAddField: (prop?: string) => void;
|
|
|
318
311
|
//#region temp/packages/form/src/Form.vue.d.ts
|
|
319
312
|
type __VLS_Slots$5 = FormSlots;
|
|
320
313
|
type __VLS_Props$30 = {
|
|
321
|
-
/** 表单配置 */
|
|
322
|
-
|
|
323
|
-
|
|
314
|
+
/** 表单配置 */
|
|
315
|
+
config: schema_d_exports.FormConfig;
|
|
316
|
+
/** 表单值 */
|
|
317
|
+
initValues: Record<string, any>;
|
|
318
|
+
/** 需对比的值(开启对比模式时传入) */
|
|
319
|
+
lastValues?: Record<string, any>;
|
|
320
|
+
/** 是否开启对比模式 */
|
|
324
321
|
isCompare?: boolean;
|
|
325
322
|
parentValues?: Record<string, any>;
|
|
326
|
-
labelWidth?: string;
|
|
323
|
+
labelWidth?: string;
|
|
324
|
+
/** 是否开启类型匹配校验 */
|
|
327
325
|
typeMatchValid?: boolean;
|
|
328
326
|
/**
|
|
329
327
|
* 初始化(`config` / `initValues` 就绪)后是否立即执行一次表单校验。
|
|
@@ -459,8 +457,10 @@ type __VLS_Props$29 = {
|
|
|
459
457
|
values?: Object;
|
|
460
458
|
parentValues?: Object;
|
|
461
459
|
width?: string | number;
|
|
462
|
-
labelWidth?: string;
|
|
463
|
-
|
|
460
|
+
labelWidth?: string;
|
|
461
|
+
/** 是否开启类型匹配校验 */
|
|
462
|
+
typeMatchValid?: boolean;
|
|
463
|
+
/** 透传给内部 `MForm`,初始化完成后是否立即校验(默认 `false`) */
|
|
464
464
|
validateOnInit?: boolean;
|
|
465
465
|
fullscreen?: boolean;
|
|
466
466
|
disabled?: boolean;
|
|
@@ -475,8 +475,10 @@ type __VLS_Props$29 = {
|
|
|
475
475
|
closeOnPressEscape?: boolean;
|
|
476
476
|
destroyOnClose?: boolean;
|
|
477
477
|
showClose?: boolean;
|
|
478
|
-
showCancel?: boolean;
|
|
479
|
-
|
|
478
|
+
showCancel?: boolean;
|
|
479
|
+
/** 透传给内部 `MForm`,控制表单校验失败时错误提示前缀是否使用字段的 text 文案 */
|
|
480
|
+
useFieldTextInError?: boolean;
|
|
481
|
+
/** 透传给内部 `MForm`,用于扩展 `formState`(如注入 `$message` / `$store` 等) */
|
|
480
482
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
481
483
|
/**
|
|
482
484
|
* 主题名。优先级:传入 `theme` prop > 祖先 `provide(M_THEME_KEY)` > 空串。
|
|
@@ -925,8 +927,10 @@ type __VLS_Props$28 = {
|
|
|
925
927
|
values?: Object;
|
|
926
928
|
parentValues?: Object;
|
|
927
929
|
width?: string | number;
|
|
928
|
-
labelWidth?: string;
|
|
929
|
-
|
|
930
|
+
labelWidth?: string;
|
|
931
|
+
/** 是否开启类型匹配校验 */
|
|
932
|
+
typeMatchValid?: boolean;
|
|
933
|
+
/** 透传给内部 `MForm`,初始化完成后是否立即校验(默认 `false`) */
|
|
930
934
|
validateOnInit?: boolean;
|
|
931
935
|
disabled?: boolean;
|
|
932
936
|
closeOnPressEscape?: boolean;
|
|
@@ -936,9 +940,12 @@ type __VLS_Props$28 = {
|
|
|
936
940
|
confirmText?: string;
|
|
937
941
|
inline?: boolean;
|
|
938
942
|
labelPosition?: string;
|
|
939
|
-
preventSubmitDefault?: boolean;
|
|
940
|
-
|
|
941
|
-
|
|
943
|
+
preventSubmitDefault?: boolean;
|
|
944
|
+
/** 透传给内部 `MForm`,控制表单校验失败时错误提示前缀是否使用字段的 text 文案 */
|
|
945
|
+
useFieldTextInError?: boolean;
|
|
946
|
+
/** 关闭前的回调,会暂停 Drawer 的关闭; done 是个 function type 接受一个 boolean 参数, 执行 done 使用 true 参数或不提供参数将会终止关闭 */
|
|
947
|
+
beforeClose?: (_done: (_cancel?: boolean) => void) => void;
|
|
948
|
+
/** 透传给内部 `MForm`,用于扩展 `formState`(如注入 `$message` / `$store` 等) */
|
|
942
949
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
943
950
|
/**
|
|
944
951
|
* 主题名。优先级:传入 `theme` prop > 祖先 `provide(M_THEME_KEY)` > 空串。
|
|
@@ -1392,19 +1399,22 @@ type __VLS_Props$27 = {
|
|
|
1392
1399
|
parentValues?: Object;
|
|
1393
1400
|
width?: number;
|
|
1394
1401
|
height?: number;
|
|
1395
|
-
labelWidth?: string;
|
|
1396
|
-
|
|
1402
|
+
labelWidth?: string;
|
|
1403
|
+
/** 是否开启类型匹配校验 */
|
|
1404
|
+
typeMatchValid?: boolean;
|
|
1405
|
+
/** 透传给内部 `MForm`,初始化完成后是否立即校验(默认 `false`) */
|
|
1397
1406
|
validateOnInit?: boolean;
|
|
1398
1407
|
disabled?: boolean;
|
|
1399
1408
|
size?: 'small' | 'default' | 'large';
|
|
1400
1409
|
confirmText?: string;
|
|
1401
1410
|
inline?: boolean;
|
|
1402
1411
|
labelPosition?: string;
|
|
1403
|
-
preventSubmitDefault?: boolean;
|
|
1412
|
+
preventSubmitDefault?: boolean;
|
|
1413
|
+
/** 透传给内部 `MForm`,控制表单校验失败时错误提示前缀是否使用字段的 text 文案 */
|
|
1404
1414
|
useFieldTextInError?: boolean;
|
|
1405
1415
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1406
1416
|
};
|
|
1407
|
-
declare var __VLS_16$1: {}, __VLS_18: {}, __VLS_20: {};
|
|
1417
|
+
declare var __VLS_16$1: {}, __VLS_18$1: {}, __VLS_20: {};
|
|
1408
1418
|
type __VLS_Slots$2 = {} & {
|
|
1409
1419
|
default?: (props: typeof __VLS_16$1) => any;
|
|
1410
1420
|
} & {
|
|
@@ -1831,7 +1841,9 @@ type __VLS_WithSlots$2<T, S> = T & {
|
|
|
1831
1841
|
//#region temp/packages/form/src/containers/Container.vue.d.ts
|
|
1832
1842
|
type __VLS_Slots$1 = FormSlots;
|
|
1833
1843
|
type __VLS_Props$26 = {
|
|
1834
|
-
/** 表单值 */
|
|
1844
|
+
/** 表单值 */
|
|
1845
|
+
model: schema_d_exports.FormValue;
|
|
1846
|
+
/** 需对比的值(开启对比模式时传入) */
|
|
1835
1847
|
lastValues?: schema_d_exports.FormValue;
|
|
1836
1848
|
config: schema_d_exports.FormItemConfig;
|
|
1837
1849
|
prop?: string;
|
|
@@ -1839,8 +1851,10 @@ type __VLS_Props$26 = {
|
|
|
1839
1851
|
labelWidth?: string | number;
|
|
1840
1852
|
expandMore?: boolean;
|
|
1841
1853
|
stepActive?: string | number;
|
|
1842
|
-
size?: string;
|
|
1843
|
-
|
|
1854
|
+
size?: string;
|
|
1855
|
+
/** 是否开启对比模式 */
|
|
1856
|
+
isCompare?: boolean;
|
|
1857
|
+
/** 是否在行容器中 */
|
|
1844
1858
|
isInRow?: boolean;
|
|
1845
1859
|
};
|
|
1846
1860
|
declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Props$26, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
@@ -2243,6 +2257,18 @@ declare const registerField: (tagName: string, component: Component) => void;
|
|
|
2243
2257
|
declare const getField: (tagName: string) => Component | undefined;
|
|
2244
2258
|
declare const deleteField: (tagName: string) => boolean;
|
|
2245
2259
|
//#endregion
|
|
2260
|
+
//#region temp/packages/form/src/utils/silentLeafFieldTypes.d.ts
|
|
2261
|
+
/**
|
|
2262
|
+
* 注册可在静默校验中跳过渲染的叶子字段 type(追加到默认 `LEAF_FIELD_TYPES` 之上)。
|
|
2263
|
+
*
|
|
2264
|
+
* 仅应纳入「无嵌套 FormItem、无挂载值副作用」的字段;复合 / 动态子表单不可加入。
|
|
2265
|
+
*/
|
|
2266
|
+
declare const registerSilentLeafFieldTypes: (types: Iterable<string>) => void;
|
|
2267
|
+
/** 当前生效的静默叶子字段集合:内置默认 ∪ 已注册扩展 */
|
|
2268
|
+
declare const getSilentLeafFieldTypes: () => ReadonlySet<string>;
|
|
2269
|
+
/** 清空业务侧追加的静默叶子字段(不影响内置默认集合;主要用于单测) */
|
|
2270
|
+
declare const clearSilentLeafFieldTypes: () => void;
|
|
2271
|
+
//#endregion
|
|
2246
2272
|
//#region temp/packages/form/src/utils/typeMatch.d.ts
|
|
2247
2273
|
interface TypeMatchValidateContext {
|
|
2248
2274
|
fieldType: string;
|
|
@@ -2266,6 +2292,17 @@ declare const getTypeMatchRule: (type: string) => TypeMatchValidator | undefined
|
|
|
2266
2292
|
declare const deleteTypeMatchRule: (type: string) => boolean;
|
|
2267
2293
|
/** 清空所有自定义 typeMatch 校验规则 */
|
|
2268
2294
|
declare const clearTypeMatchRules: () => void;
|
|
2295
|
+
/**
|
|
2296
|
+
* 将值格式化为可读的参考示例字符串。
|
|
2297
|
+
*/
|
|
2298
|
+
declare const stringifyExampleValue: (value: any) => string;
|
|
2299
|
+
/** 参考建议中可选值全量展示上限;超出时仅举例 EXAMPLE_SUGGESTION_COUNT 个并标明总数。 */
|
|
2300
|
+
declare const MAX_SUGGESTION_OPTIONS = 20;
|
|
2301
|
+
/**
|
|
2302
|
+
* 生成可选项参考建议;无可选值时返回空字符串(不追加建议)。
|
|
2303
|
+
* 未超过 MAX_SUGGESTION_OPTIONS 时全部列举;超过时仅举例前 EXAMPLE_SUGGESTION_COUNT 个并标明总数,避免 AI 误以为仅有举例值合法。
|
|
2304
|
+
*/
|
|
2305
|
+
declare const optionSuggestion: (optionValues: any[]) => string;
|
|
2269
2306
|
/**
|
|
2270
2307
|
* 校验取值与字段 type 是否匹配;通过返回 undefined,否则返回错误文案。
|
|
2271
2308
|
*
|
|
@@ -2284,8 +2321,8 @@ declare const _default$31: {
|
|
|
2284
2321
|
install(app: App, opt?: FormInstallOptions): void;
|
|
2285
2322
|
};
|
|
2286
2323
|
declare namespace index_d_exports {
|
|
2287
|
-
export { ChangeRecord, ContainerChangeEventData, FORM_DIFF_CONFIG_KEY, FORM_SILENT_MODE_KEY, FORM_TYPE_MATCH_VALID_KEY, FormDiffConfig, FormInstallOptions, FormLabelSlotProps, FormSlots, _default as MCascader, _default$1 as MCheckbox, _default$2 as MCheckboxGroup, _default$3 as MColorPicker, _default$4 as MContainer, _default$5 as MDate, _default$6 as MDateTime, _default$7 as MDaterange, _default$8 as MDisplay, _default$9 as MDynamicField, _default$10 as MFieldset, _default$11 as MFlexLayout, _default$12 as MForm, _default$13 as MFormBox, _default$14 as MFormDialog, _default$15 as MFormDrawer, _default$16 as MGroupList, _default$17 as MHidden, _default$18 as MLink, _default$19 as MNumber, _default$20 as MNumberRange, _default$21 as MPanel, _default$22 as MRadioGroup, _default$23 as MRow, _default$24 as MSelect, _default$25 as MSwitch, _default$16 as MTable, _default$16 as MTableGroupList, _default$26 as MTabs, _default$27 as MText, _default$28 as MTextarea, _default$29 as MTime, _default$30 as MTimerange, SubmitFormOptions, SubmitFormResult, TypeMatchValidateContext, TypeMatchValidator, ValidateError, ValidateFormOptions, adaptFormValidator, applyExtendState, clearTypeMatchRules, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, deleteTypeMatchRule, display, filterFunction, getDataByPage, getField as getFormField, getRules, getTypeMatchRule, initValue, registerField as registerFormField, registerTypeMatchRule, registerTypeMatchRules, sortArray, sortChange, stripTabItemsLazy, submitForm, useAddField, validateForm, validateTypeMatch };
|
|
2324
|
+
export { ChangeRecord, ContainerChangeEventData, FORM_DIFF_CONFIG_KEY, FORM_SILENT_MODE_KEY, FORM_TYPE_MATCH_VALID_KEY, FormDiffConfig, FormInstallOptions, FormLabelSlotProps, FormSlots, MAX_SUGGESTION_OPTIONS, _default as MCascader, _default$1 as MCheckbox, _default$2 as MCheckboxGroup, _default$3 as MColorPicker, _default$4 as MContainer, _default$5 as MDate, _default$6 as MDateTime, _default$7 as MDaterange, _default$8 as MDisplay, _default$9 as MDynamicField, _default$10 as MFieldset, _default$11 as MFlexLayout, _default$12 as MForm, _default$13 as MFormBox, _default$14 as MFormDialog, _default$15 as MFormDrawer, _default$16 as MGroupList, _default$17 as MHidden, _default$18 as MLink, _default$19 as MNumber, _default$20 as MNumberRange, _default$21 as MPanel, _default$22 as MRadioGroup, _default$23 as MRow, _default$24 as MSelect, _default$25 as MSwitch, _default$16 as MTable, _default$16 as MTableGroupList, _default$26 as MTabs, _default$27 as MText, _default$28 as MTextarea, _default$29 as MTime, _default$30 as MTimerange, SubmitFormOptions, SubmitFormResult, TypeMatchValidateContext, TypeMatchValidator, ValidateError, ValidateFormOptions, adaptFormValidator, applyExtendState, clearSilentLeafFieldTypes, clearTypeMatchRules, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, deleteTypeMatchRule, display, filterFunction, getDataByPage, getField as getFormField, getRules, getSilentLeafFieldTypes, getTypeMatchRule, initValue, optionSuggestion, registerField as registerFormField, registerSilentLeafFieldTypes, registerTypeMatchRule, registerTypeMatchRules, sortArray, sortChange, stringifyExampleValue, stripTabItemsLazy, submitForm, useAddField, validateForm, validateTypeMatch };
|
|
2288
2325
|
}
|
|
2289
2326
|
declare const createForm: <T extends [] = []>(config: schema_d_exports.FormConfig | T) => schema_d_exports.FormConfig | T;
|
|
2290
2327
|
//#endregion
|
|
2291
|
-
export { ChangeRecord, ContainerChangeEventData, FORM_DIFF_CONFIG_KEY, FORM_SILENT_MODE_KEY, FORM_TYPE_MATCH_VALID_KEY, FormDiffConfig, type FormInstallOptions, FormLabelSlotProps, FormSlots, _default as MCascader, _default$1 as MCheckbox, _default$2 as MCheckboxGroup, _default$3 as MColorPicker, _default$4 as MContainer, _default$5 as MDate, _default$6 as MDateTime, _default$7 as MDaterange, _default$8 as MDisplay, _default$9 as MDynamicField, _default$10 as MFieldset, _default$11 as MFlexLayout, _default$12 as MForm, _default$13 as MFormBox, _default$14 as MFormDialog, _default$15 as MFormDrawer, _default$16 as MGroupList, _default$16 as MTable, _default$16 as MTableGroupList, _default$17 as MHidden, _default$18 as MLink, _default$19 as MNumber, _default$20 as MNumberRange, _default$21 as MPanel, _default$22 as MRadioGroup, _default$23 as MRow, _default$24 as MSelect, _default$25 as MSwitch, _default$26 as MTabs, _default$27 as MText, _default$28 as MTextarea, _default$29 as MTime, _default$30 as MTimerange, SubmitFormOptions, SubmitFormResult, type TypeMatchValidateContext, type TypeMatchValidator, ValidateError, ValidateFormOptions, adaptFormValidator, applyExtendState, clearTypeMatchRules, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, deleteTypeMatchRule, display, filterFunction, getDataByPage, getField as getFormField, getRules, getTypeMatchRule, initValue, registerField as registerFormField, registerTypeMatchRule, registerTypeMatchRules, sortArray, sortChange, stripTabItemsLazy, submitForm, useAddField, validateForm, validateTypeMatch };
|
|
2328
|
+
export { ChangeRecord, ContainerChangeEventData, FORM_DIFF_CONFIG_KEY, FORM_SILENT_MODE_KEY, FORM_TYPE_MATCH_VALID_KEY, FormDiffConfig, type FormInstallOptions, FormLabelSlotProps, FormSlots, MAX_SUGGESTION_OPTIONS, _default as MCascader, _default$1 as MCheckbox, _default$2 as MCheckboxGroup, _default$3 as MColorPicker, _default$4 as MContainer, _default$5 as MDate, _default$6 as MDateTime, _default$7 as MDaterange, _default$8 as MDisplay, _default$9 as MDynamicField, _default$10 as MFieldset, _default$11 as MFlexLayout, _default$12 as MForm, _default$13 as MFormBox, _default$14 as MFormDialog, _default$15 as MFormDrawer, _default$16 as MGroupList, _default$16 as MTable, _default$16 as MTableGroupList, _default$17 as MHidden, _default$18 as MLink, _default$19 as MNumber, _default$20 as MNumberRange, _default$21 as MPanel, _default$22 as MRadioGroup, _default$23 as MRow, _default$24 as MSelect, _default$25 as MSwitch, _default$26 as MTabs, _default$27 as MText, _default$28 as MTextarea, _default$29 as MTime, _default$30 as MTimerange, SubmitFormOptions, SubmitFormResult, type TypeMatchValidateContext, type TypeMatchValidator, ValidateError, ValidateFormOptions, adaptFormValidator, applyExtendState, clearSilentLeafFieldTypes, clearTypeMatchRules, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, deleteTypeMatchRule, display, filterFunction, getDataByPage, getField as getFormField, getRules, getSilentLeafFieldTypes, getTypeMatchRule, initValue, optionSuggestion, registerField as registerFormField, registerSilentLeafFieldTypes, registerTypeMatchRule, registerTypeMatchRules, sortArray, sortChange, stringifyExampleValue, stripTabItemsLazy, submitForm, useAddField, validateForm, validateTypeMatch };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __exportAll = (all, no_symbols) => {
|
|
7
|
-
let target = {};
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
13
|
-
return target;
|
|
14
|
-
};
|
|
15
|
-
var __copyProps = (to, from, except, desc) => {
|
|
16
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
17
|
-
key = keys[i];
|
|
18
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
19
|
-
get: ((k) => from[k]).bind(null, key),
|
|
20
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
return to;
|
|
24
|
-
};
|
|
25
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
26
|
-
//#endregion
|
|
27
|
-
export { __exportAll, __reExport };
|