@airalogy/aimd-editor 1.13.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -38,7 +38,7 @@ Do not call this normalizer from automatic draft saving. `AimdSourceEditor` sepa
38
38
 
39
39
  ## Input Field Authoring
40
40
 
41
- The toolbar provides Text, Integer, Decimal, Single choice, Multiple choice, and Yes/no shortcuts. More inputs contains dates, times, date/time, text lists, attachments, and custom types. Each shortcut opens a preselected form; choices are entered one per line without writing type syntax. A unique `field_1`, `field_2`, etc. ID is generated and written into AIMD on insertion; existing IDs never change just because fields move. Names are optional. Advanced settings expose the editable ID, custom type, and default value, with invalid or duplicate IDs rejected.
41
+ The toolbar provides Text, Integer, Decimal, Single choice, Multiple choice, and Yes/no shortcuts. More inputs contains dates, times, date/time, text lists, attachments, and custom types. Each shortcut opens a preselected form; choices are entered one per line without writing type syntax. A unique `field_1`, `field_2`, etc. ID is generated and written into AIMD on insertion; existing IDs never change just because fields move. Names are optional. Required and default value are independent: a required input can be prefilled without allowing the user to clear it. Advanced settings expose the editable ID and custom type, with invalid or duplicate IDs rejected.
42
42
 
43
43
  Use `mode="wysiwyg" field-display="compact"` to hide technical syntax in visual field placeholders. Click a placeholder to edit its properties. The package defaults remain source mode and detailed display. For actual data entry in the same editable document, use `AimdRecorderWysiwygSurface` from `@airalogy/aimd-recorder`; `AimdEditor` edits definitions, not Record values.
44
44
 
package/README.zh-CN.md CHANGED
@@ -38,7 +38,7 @@ source = prepared.content
38
38
 
39
39
  ## 输入框编辑
40
40
 
41
- 工具栏提供“文本、整数、小数、单选、多选、是/否”快捷入口,“更多输入框”收纳日期、时间、日期时间、文本列表、附件及其他类型。点击后直接打开对应类型的配置;单选和多选只需逐行填写选项,不必写类型语法。插入时自动生成唯一的 `field_1`、`field_2` 等 ID 并写入 AIMD;移动字段不会重新编号。名称选填,高级设置中可修改 ID、自定义类型和默认值,非法或重复的 ID 会被阻止。
41
+ 工具栏提供“文本、整数、小数、单选、多选、是/否”快捷入口,“更多输入框”收纳日期、时间、日期时间、文本列表、附件及其他类型。点击后直接打开对应类型的配置;单选和多选只需逐行填写选项,不必写类型语法。插入时自动生成唯一的 `field_1`、`field_2` 等 ID 并写入 AIMD;移动字段不会重新编号。名称选填。“必填”和“默认值”独立设置:填写者可以沿用预填值,只有允许留空的输入才可以清空后提交。高级设置中可修改 ID 和自定义类型,非法或重复的 ID 会被阻止。
42
42
 
43
43
  设置 `mode="wysiwyg" field-display="compact"` 可隐藏可视化占位块中的技术语法,点击占位块可修改属性。组件默认仍为源码模式和详细显示。如果需要在同一文档里编辑说明文字并直接填写数据,使用 `@airalogy/aimd-recorder` 的 `AimdRecorderWysiwygSurface`;`AimdEditor` 只编辑定义,不填写 Record 值。
44
44