@tmagic/form 1.8.0-beta.21 → 1.8.0-beta.23

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.8.0-beta.21",
2
+ "version": "1.8.0-beta.23",
3
3
  "name": "@tmagic/form",
4
4
  "type": "module",
5
5
  "sideEffects": [
@@ -40,21 +40,21 @@
40
40
  "dependencies": {
41
41
  "@element-plus/icons-vue": "^2.3.2",
42
42
  "@popperjs/core": "^2.11.8",
43
- "dayjs": "^1.11.19",
44
- "lodash-es": "^4.17.21",
45
- "sortablejs": "^1.15.6"
43
+ "dayjs": "^1.11.21",
44
+ "lodash-es": "^4.18.1",
45
+ "sortablejs": "^1.15.7"
46
46
  },
47
47
  "devDependencies": {
48
- "@types/lodash-es": "^4.17.4",
48
+ "@types/lodash-es": "^4.17.12",
49
49
  "@types/sortablejs": "^1.15.9",
50
- "@vue/test-utils": "^2.4.6"
50
+ "@vue/test-utils": "^2.4.11"
51
51
  },
52
52
  "peerDependencies": {
53
- "vue": "^3.5.40",
54
53
  "typescript": "^6.0.3",
55
- "@tmagic/design": "1.8.0-beta.21",
56
- "@tmagic/utils": "1.8.0-beta.21",
57
- "@tmagic/form-schema": "1.8.0-beta.21"
54
+ "vue": "^3.5.40",
55
+ "@tmagic/design": "1.8.0-beta.23",
56
+ "@tmagic/form-schema": "1.8.0-beta.23",
57
+ "@tmagic/utils": "1.8.0-beta.23"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
60
  "typescript": {
package/src/index.ts CHANGED
@@ -67,8 +67,11 @@ export {
67
67
  clearTypeMatchRules,
68
68
  deleteTypeMatchRule,
69
69
  getTypeMatchRule,
70
+ MAX_SUGGESTION_OPTIONS,
71
+ optionSuggestion,
70
72
  registerTypeMatchRule,
71
73
  registerTypeMatchRules,
74
+ stringifyExampleValue,
72
75
  validateTypeMatch,
73
76
  } from './utils/typeMatch';
74
77
 
package/src/utils/form.ts CHANGED
@@ -327,39 +327,48 @@ export const getRules = function (
327
327
  });
328
328
  }
329
329
 
330
- return rules.map((item) => {
331
- if (item.typeMatch) {
332
- (item as any).validator = adaptFormValidator(createTypeMatchValidator(mForm, props, item));
333
- return item;
334
- }
330
+ return rules
331
+ .map((item) => {
332
+ if (item.typeMatch) {
333
+ (item as any).validator = adaptFormValidator(createTypeMatchValidator(mForm, props, item));
334
+ return item;
335
+ }
335
336
 
336
- if (typeof item.validator === 'function') {
337
- const fnc = item.validator;
338
-
339
- (item as any).validator = adaptFormValidator(
340
- (rule: any, value: any, callback: Function, source: any, options: any) =>
341
- fnc(
342
- {
343
- rule,
344
- value: props.config.names ? props.model : value,
345
- callback,
346
- source,
347
- options,
348
- },
349
- {
350
- values: mForm?.initValues || {},
351
- model: props.model,
352
- parent: mForm?.parentValues || {},
353
- formValue: mForm?.values || props.model,
354
- prop: props.prop,
355
- config: props.config,
356
- },
357
- mForm,
358
- ),
359
- );
360
- }
361
- return item;
362
- });
337
+ if (typeof item.validator === 'function') {
338
+ const fnc = item.validator;
339
+
340
+ (item as any).validator = adaptFormValidator(
341
+ (rule: any, value: any, callback: Function, source: any, options: any) =>
342
+ fnc(
343
+ {
344
+ rule,
345
+ value: props.config.names ? props.model : value,
346
+ callback,
347
+ source,
348
+ options,
349
+ },
350
+ {
351
+ values: mForm?.initValues || {},
352
+ model: props.model,
353
+ parent: mForm?.parentValues || {},
354
+ formValue: mForm?.values || props.model,
355
+ prop: props.prop,
356
+ config: props.config,
357
+ },
358
+ mForm,
359
+ ),
360
+ );
361
+ }
362
+ return item;
363
+ })
364
+ .filter((item) => {
365
+ // typeMatch: false 仅用于关闭自动注入,本身没有校验能力。
366
+ // 若原样交给 async-validator,会因默认 type=string 误杀 number 等合法值。
367
+ if (item.typeMatch === false && typeof item.validator !== 'function') {
368
+ return false;
369
+ }
370
+ return true;
371
+ });
363
372
  };
364
373
 
365
374
  export const initValue = async (
@@ -135,7 +135,7 @@ const TIMESTAMP_VALUE_FORMATS = new Set(['x', 'timestamp']);
135
135
  /**
136
136
  * 将值格式化为可读的参考示例字符串。
137
137
  */
138
- const stringifyExampleValue = (value: any): string => {
138
+ export const stringifyExampleValue = (value: any): string => {
139
139
  if (typeof value === 'string') return `"${value}"`;
140
140
  if (value === null || value === undefined) return String(value);
141
141
  if (typeof value === 'object') {
@@ -148,19 +148,23 @@ const stringifyExampleValue = (value: any): string => {
148
148
  return String(value);
149
149
  };
150
150
 
151
- // 参考建议中最多展示的可选值个数,超出以「等」省略。
152
- const MAX_SUGGESTION_OPTIONS = 20;
151
+ /** 参考建议中可选值全量展示上限;超出时仅举例 EXAMPLE_SUGGESTION_COUNT 个并标明总数。 */
152
+ export const MAX_SUGGESTION_OPTIONS = 20;
153
+ const EXAMPLE_SUGGESTION_COUNT = 5;
153
154
 
154
155
  /**
155
- * 生成「请使用以下某一个值:xxx;xxx」形式的参考建议;无可选值时返回空字符串(不追加建议)。
156
- * 可选值超过 MAX_SUGGESTION_OPTIONS 个时仅展示前若干个并以「等」省略。
156
+ * 生成可选项参考建议;无可选值时返回空字符串(不追加建议)。
157
+ * 未超过 MAX_SUGGESTION_OPTIONS 时全部列举;超过时仅举例前 EXAMPLE_SUGGESTION_COUNT 个并标明总数,避免 AI 误以为仅有举例值合法。
157
158
  */
158
- const optionSuggestion = (optionValues: any[]): string => {
159
+ export const optionSuggestion = (optionValues: any[]): string => {
159
160
  const values = optionValues.filter((item) => typeof item !== 'undefined');
160
161
  if (!values.length) return '';
161
- const shown = values.slice(0, MAX_SUGGESTION_OPTIONS).map(stringifyExampleValue);
162
- const suffix = values.length > MAX_SUGGESTION_OPTIONS ? ' 等' : '';
163
- return `请使用以下某一个值:${shown.join(';')}${suffix}`;
162
+ const truncated = values.length > MAX_SUGGESTION_OPTIONS;
163
+ const shown = values.slice(0, truncated ? EXAMPLE_SUGGESTION_COUNT : values.length).map(stringifyExampleValue);
164
+ if (truncated) {
165
+ return `请从可选项中选用合法值(共 ${values.length} 个,例如:${shown.join(';')})`;
166
+ }
167
+ return `请使用以下某一个值:${shown.join(';')}`;
164
168
  };
165
169
 
166
170
  /**
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
  }
@@ -278,20 +276,14 @@ declare const createValues: (mForm: schema_d_exports.FormState | undefined, conf
278
276
  declare const filterFunction: <T = any>(mForm: schema_d_exports.FormState | undefined, config: T | schema_d_exports.FilterFunction<T> | undefined, props: any) => T | undefined;
279
277
  declare const display: (mForm: schema_d_exports.FormState | undefined, config: any, props: any) => any;
280
278
  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
- }: {
279
+ declare const initValue: (mForm: schema_d_exports.FormState | undefined, { initValues, config }: {
285
280
  initValues: schema_d_exports.FormValue;
286
281
  config: schema_d_exports.FormConfig;
287
282
  }) => Promise<schema_d_exports.FormValue>;
288
283
  declare const datetimeFormatter: (v: string | Date, defaultValue?: string, format?: string) => string | number;
289
284
  declare const getDataByPage: (data: any[] | undefined, pagecontext: number, pagesize: number) => any[];
290
285
  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;
286
+ declare const sortChange: (data: any[], { prop, order }: schema_d_exports.SortProp) => void;
295
287
  /**
296
288
  * 将 extendState 返回的扩展字段合并进 formState。
297
289
  *
@@ -318,12 +310,17 @@ declare const useAddField: (prop?: string) => void;
318
310
  //#region temp/packages/form/src/Form.vue.d.ts
319
311
  type __VLS_Slots$5 = FormSlots;
320
312
  type __VLS_Props$30 = {
321
- /** 表单配置 */config: schema_d_exports.FormConfig; /** 表单值 */
322
- initValues: Record<string, any>; /** 需对比的值(开启对比模式时传入) */
323
- lastValues?: Record<string, any>; /** 是否开启对比模式 */
313
+ /** 表单配置 */
314
+ config: schema_d_exports.FormConfig;
315
+ /** 表单值 */
316
+ initValues: Record<string, any>;
317
+ /** 需对比的值(开启对比模式时传入) */
318
+ lastValues?: Record<string, any>;
319
+ /** 是否开启对比模式 */
324
320
  isCompare?: boolean;
325
321
  parentValues?: Record<string, any>;
326
- labelWidth?: string; /** 是否开启类型匹配校验 */
322
+ labelWidth?: string;
323
+ /** 是否开启类型匹配校验 */
327
324
  typeMatchValid?: boolean;
328
325
  /**
329
326
  * 初始化(`config` / `initValues` 就绪)后是否立即执行一次表单校验。
@@ -459,8 +456,10 @@ type __VLS_Props$29 = {
459
456
  values?: Object;
460
457
  parentValues?: Object;
461
458
  width?: string | number;
462
- labelWidth?: string; /** 是否开启类型匹配校验 */
463
- typeMatchValid?: boolean; /** 透传给内部 `MForm`,初始化完成后是否立即校验(默认 `false`) */
459
+ labelWidth?: string;
460
+ /** 是否开启类型匹配校验 */
461
+ typeMatchValid?: boolean;
462
+ /** 透传给内部 `MForm`,初始化完成后是否立即校验(默认 `false`) */
464
463
  validateOnInit?: boolean;
465
464
  fullscreen?: boolean;
466
465
  disabled?: boolean;
@@ -475,8 +474,10 @@ type __VLS_Props$29 = {
475
474
  closeOnPressEscape?: boolean;
476
475
  destroyOnClose?: boolean;
477
476
  showClose?: boolean;
478
- showCancel?: boolean; /** 透传给内部 `MForm`,控制表单校验失败时错误提示前缀是否使用字段的 text 文案 */
479
- useFieldTextInError?: boolean; /** 透传给内部 `MForm`,用于扩展 `formState`(如注入 `$message` / `$store` 等) */
477
+ showCancel?: boolean;
478
+ /** 透传给内部 `MForm`,控制表单校验失败时错误提示前缀是否使用字段的 text 文案 */
479
+ useFieldTextInError?: boolean;
480
+ /** 透传给内部 `MForm`,用于扩展 `formState`(如注入 `$message` / `$store` 等) */
480
481
  extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
481
482
  /**
482
483
  * 主题名。优先级:传入 `theme` prop > 祖先 `provide(M_THEME_KEY)` > 空串。
@@ -925,8 +926,10 @@ type __VLS_Props$28 = {
925
926
  values?: Object;
926
927
  parentValues?: Object;
927
928
  width?: string | number;
928
- labelWidth?: string; /** 是否开启类型匹配校验 */
929
- typeMatchValid?: boolean; /** 透传给内部 `MForm`,初始化完成后是否立即校验(默认 `false`) */
929
+ labelWidth?: string;
930
+ /** 是否开启类型匹配校验 */
931
+ typeMatchValid?: boolean;
932
+ /** 透传给内部 `MForm`,初始化完成后是否立即校验(默认 `false`) */
930
933
  validateOnInit?: boolean;
931
934
  disabled?: boolean;
932
935
  closeOnPressEscape?: boolean;
@@ -936,9 +939,12 @@ type __VLS_Props$28 = {
936
939
  confirmText?: string;
937
940
  inline?: boolean;
938
941
  labelPosition?: string;
939
- preventSubmitDefault?: boolean; /** 透传给内部 `MForm`,控制表单校验失败时错误提示前缀是否使用字段的 text 文案 */
940
- useFieldTextInError?: boolean; /** 关闭前的回调,会暂停 Drawer 的关闭; done 是个 function type 接受一个 boolean 参数, 执行 done 使用 true 参数或不提供参数将会终止关闭 */
941
- beforeClose?: (_done: (_cancel?: boolean) => void) => void; /** 透传给内部 `MForm`,用于扩展 `formState`(如注入 `$message` / `$store` 等) */
942
+ preventSubmitDefault?: boolean;
943
+ /** 透传给内部 `MForm`,控制表单校验失败时错误提示前缀是否使用字段的 text 文案 */
944
+ useFieldTextInError?: boolean;
945
+ /** 关闭前的回调,会暂停 Drawer 的关闭; done 是个 function type 接受一个 boolean 参数, 执行 done 使用 true 参数或不提供参数将会终止关闭 */
946
+ beforeClose?: (_done: (_cancel?: boolean) => void) => void;
947
+ /** 透传给内部 `MForm`,用于扩展 `formState`(如注入 `$message` / `$store` 等) */
942
948
  extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
943
949
  /**
944
950
  * 主题名。优先级:传入 `theme` prop > 祖先 `provide(M_THEME_KEY)` > 空串。
@@ -1392,19 +1398,22 @@ type __VLS_Props$27 = {
1392
1398
  parentValues?: Object;
1393
1399
  width?: number;
1394
1400
  height?: number;
1395
- labelWidth?: string; /** 是否开启类型匹配校验 */
1396
- typeMatchValid?: boolean; /** 透传给内部 `MForm`,初始化完成后是否立即校验(默认 `false`) */
1401
+ labelWidth?: string;
1402
+ /** 是否开启类型匹配校验 */
1403
+ typeMatchValid?: boolean;
1404
+ /** 透传给内部 `MForm`,初始化完成后是否立即校验(默认 `false`) */
1397
1405
  validateOnInit?: boolean;
1398
1406
  disabled?: boolean;
1399
1407
  size?: 'small' | 'default' | 'large';
1400
1408
  confirmText?: string;
1401
1409
  inline?: boolean;
1402
1410
  labelPosition?: string;
1403
- preventSubmitDefault?: boolean; /** 透传给内部 `MForm`,控制表单校验失败时错误提示前缀是否使用字段的 text 文案 */
1411
+ preventSubmitDefault?: boolean;
1412
+ /** 透传给内部 `MForm`,控制表单校验失败时错误提示前缀是否使用字段的 text 文案 */
1404
1413
  useFieldTextInError?: boolean;
1405
1414
  extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
1406
1415
  };
1407
- declare var __VLS_16$1: {}, __VLS_18: {}, __VLS_20: {};
1416
+ declare var __VLS_16$1: {}, __VLS_18$1: {}, __VLS_20: {};
1408
1417
  type __VLS_Slots$2 = {} & {
1409
1418
  default?: (props: typeof __VLS_16$1) => any;
1410
1419
  } & {
@@ -1831,7 +1840,9 @@ type __VLS_WithSlots$2<T, S> = T & {
1831
1840
  //#region temp/packages/form/src/containers/Container.vue.d.ts
1832
1841
  type __VLS_Slots$1 = FormSlots;
1833
1842
  type __VLS_Props$26 = {
1834
- /** 表单值 */model: schema_d_exports.FormValue; /** 需对比的值(开启对比模式时传入) */
1843
+ /** 表单值 */
1844
+ model: schema_d_exports.FormValue;
1845
+ /** 需对比的值(开启对比模式时传入) */
1835
1846
  lastValues?: schema_d_exports.FormValue;
1836
1847
  config: schema_d_exports.FormItemConfig;
1837
1848
  prop?: string;
@@ -1839,8 +1850,10 @@ type __VLS_Props$26 = {
1839
1850
  labelWidth?: string | number;
1840
1851
  expandMore?: boolean;
1841
1852
  stepActive?: string | number;
1842
- size?: string; /** 是否开启对比模式 */
1843
- isCompare?: boolean; /** 是否在行容器中 */
1853
+ size?: string;
1854
+ /** 是否开启对比模式 */
1855
+ isCompare?: boolean;
1856
+ /** 是否在行容器中 */
1844
1857
  isInRow?: boolean;
1845
1858
  };
1846
1859
  declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Props$26, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
@@ -2266,6 +2279,17 @@ declare const getTypeMatchRule: (type: string) => TypeMatchValidator | undefined
2266
2279
  declare const deleteTypeMatchRule: (type: string) => boolean;
2267
2280
  /** 清空所有自定义 typeMatch 校验规则 */
2268
2281
  declare const clearTypeMatchRules: () => void;
2282
+ /**
2283
+ * 将值格式化为可读的参考示例字符串。
2284
+ */
2285
+ declare const stringifyExampleValue: (value: any) => string;
2286
+ /** 参考建议中可选值全量展示上限;超出时仅举例 EXAMPLE_SUGGESTION_COUNT 个并标明总数。 */
2287
+ declare const MAX_SUGGESTION_OPTIONS = 20;
2288
+ /**
2289
+ * 生成可选项参考建议;无可选值时返回空字符串(不追加建议)。
2290
+ * 未超过 MAX_SUGGESTION_OPTIONS 时全部列举;超过时仅举例前 EXAMPLE_SUGGESTION_COUNT 个并标明总数,避免 AI 误以为仅有举例值合法。
2291
+ */
2292
+ declare const optionSuggestion: (optionValues: any[]) => string;
2269
2293
  /**
2270
2294
  * 校验取值与字段 type 是否匹配;通过返回 undefined,否则返回错误文案。
2271
2295
  *
@@ -2284,8 +2308,8 @@ declare const _default$31: {
2284
2308
  install(app: App, opt?: FormInstallOptions): void;
2285
2309
  };
2286
2310
  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 };
2311
+ 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, clearTypeMatchRules, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, deleteTypeMatchRule, display, filterFunction, getDataByPage, getField as getFormField, getRules, getTypeMatchRule, initValue, optionSuggestion, registerField as registerFormField, registerTypeMatchRule, registerTypeMatchRules, sortArray, sortChange, stringifyExampleValue, stripTabItemsLazy, submitForm, useAddField, validateForm, validateTypeMatch };
2288
2312
  }
2289
2313
  declare const createForm: <T extends [] = []>(config: schema_d_exports.FormConfig | T) => schema_d_exports.FormConfig | T;
2290
2314
  //#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 };
2315
+ 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, clearTypeMatchRules, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, deleteTypeMatchRule, display, filterFunction, getDataByPage, getField as getFormField, getRules, getTypeMatchRule, initValue, optionSuggestion, registerField as registerFormField, 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 };