@robot-admin/naive-ui-components 0.25.0 → 0.27.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/CHANGELOG.md +14 -0
- package/README.md +7 -9
- package/README_EN.md +6 -8
- package/dist/C_Form.base.css +31 -13
- package/dist/C_Form.css +31 -13
- package/dist/C_Form.d.cts +3 -2
- package/dist/C_Form.d.ts +3 -19
- package/dist/C_FormModal.d.cts +1 -1
- package/dist/C_FormModal.d.ts +2 -17
- package/dist/C_FormSearch.css +79 -79
- package/dist/C_FormSearch.d.cts +2 -1
- package/dist/C_FormSearch.d.ts +2 -2
- package/dist/C_FormulaEditor.d.cts +1 -1
- package/dist/C_FormulaEditor.d.ts +1 -1
- package/dist/C_Guide.d.cts +1 -1
- package/dist/C_Guide.d.ts +1 -1
- package/dist/C_Icon.d.cts +1 -1
- package/dist/C_Icon.d.ts +1 -1
- package/dist/C_Language.d.cts +1 -1
- package/dist/C_Language.d.ts +1 -1
- package/dist/C_Loading.d.cts +1 -1
- package/dist/C_Loading.d.ts +1 -1
- package/dist/C_Login.d.cts +1 -1
- package/dist/C_Login.d.ts +1 -1
- package/dist/C_Markdown.d.cts +1 -1
- package/dist/C_Markdown.d.ts +1 -1
- package/dist/C_Menu.d.ts +1 -1
- package/dist/C_OrgChart.d.cts +1 -1
- package/dist/C_OrgChart.d.ts +1 -1
- package/dist/C_Progress.d.cts +1 -1
- package/dist/C_Progress.d.ts +1 -1
- package/dist/C_SectionNav.d.cts +1 -1
- package/dist/C_SectionNav.d.ts +1 -1
- package/dist/C_Skeleton.d.cts +1 -1
- package/dist/C_Skeleton.d.ts +1 -1
- package/dist/C_Steps.d.cts +1 -1
- package/dist/C_Steps.d.ts +1 -1
- package/dist/C_Table.base.css +140 -135
- package/dist/C_Table.css +109 -122
- package/dist/C_Table.d.cts +1 -1
- package/dist/C_Table.d.ts +7 -5
- package/dist/C_Table2.cjs +3 -3
- package/dist/C_Table2.js +3 -3
- package/dist/C_TagsView.d.cts +1 -1
- package/dist/C_TagsView.d.ts +1 -1
- package/dist/C_Theme.d.cts +1 -1
- package/dist/C_Theme.d.ts +1 -1
- package/dist/C_Timeline.d.cts +1 -1
- package/dist/C_Timeline.d.ts +1 -1
- package/dist/C_Transfer.d.cts +1 -1
- package/dist/C_Transfer.d.ts +1 -1
- package/dist/C_Tree.d.cts +1 -1
- package/dist/C_Tree.d.ts +7 -5
- package/dist/C_Upload.d.cts +1 -1
- package/dist/C_Upload.d.ts +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +1 -4
- package/dist/config.d.ts +1 -4
- package/dist/config.js +1 -1
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants2.d.cts +173 -402
- package/dist/constants2.d.ts +173 -402
- package/dist/constants3.d.cts +3 -3
- package/dist/constants3.d.ts +3 -3
- package/dist/constants4.d.cts +402 -173
- package/dist/constants4.d.ts +402 -173
- package/dist/constants5.d.cts +4 -4
- package/dist/constants5.d.ts +4 -4
- package/dist/data.cjs +1 -1
- package/dist/data.d.cts +1 -2
- package/dist/data.d.ts +1 -2
- package/dist/data.js +1 -1
- package/dist/data2.d.cts +10 -10
- package/dist/data2.d.ts +10 -10
- package/dist/dateRange.d.cts +3 -2
- package/dist/dateRange.d.ts +3 -2
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +34 -34
- package/dist/index.d.ts +41 -42
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +4 -4
- package/dist/index.vue.d.ts +4 -4
- package/dist/index10.vue.d.cts +4 -4
- package/dist/index10.vue.d.ts +3 -3
- package/dist/index11.vue.d.cts +3 -3
- package/dist/index11.vue.d.ts +7 -6
- package/dist/index12.vue.d.cts +7 -6
- package/dist/index13.vue.d.ts +5 -5
- package/dist/index14.vue.d.cts +5 -5
- package/dist/index15.vue.d.ts +52 -54
- package/dist/index16.vue.d.cts +52 -54
- package/dist/index16.vue.d.ts +125 -13
- package/dist/index17.vue.d.cts +125 -13
- package/dist/index17.vue.d.ts +51 -123
- package/dist/index18.vue.d.cts +51 -123
- package/dist/index18.vue.d.ts +26 -47
- package/dist/index19.vue.d.cts +26 -47
- package/dist/index19.vue.d.ts +13 -38
- package/dist/index20.vue.d.cts +13 -38
- package/dist/index20.vue.d.ts +128 -11
- package/dist/index21.vue.d.cts +128 -11
- package/dist/index21.vue.d.ts +75 -25
- package/dist/index22.vue.d.cts +75 -25
- package/dist/index22.vue.d.ts +72 -78
- package/dist/index23.vue.d.cts +97 -75
- package/dist/index23.vue.d.ts +96 -68
- package/dist/index24.vue.d.cts +47 -89
- package/dist/index24.vue.d.ts +47 -89
- package/dist/index25.vue.d.cts +19 -127
- package/dist/index25.vue.d.ts +19 -127
- package/dist/index26.vue.d.cts +87 -94
- package/dist/index26.vue.d.ts +87 -94
- package/dist/index27.vue.d.cts +36 -66
- package/dist/index27.vue.d.ts +36 -66
- package/dist/index28.vue.d.cts +12 -96
- package/dist/index28.vue.d.ts +12 -96
- package/dist/index29.vue.d.cts +85 -94
- package/dist/index29.vue.d.ts +85 -94
- package/dist/index3.vue.d.cts +3 -3
- package/dist/index3.vue.d.ts +3 -3
- package/dist/index30.vue.d.cts +103 -21
- package/dist/index30.vue.d.ts +103 -21
- package/dist/index31.vue.d.cts +75 -0
- package/dist/index31.vue.d.ts +75 -0
- package/dist/index5.vue.d.cts +3 -3
- package/dist/index7.vue.d.ts +1 -1
- package/dist/index8.vue.d.cts +1 -1
- package/dist/index9.vue.d.ts +4 -4
- package/dist/mapUtils.d.cts +4 -4
- package/dist/mapUtils.d.ts +4 -4
- package/dist/options.cjs +1 -0
- package/dist/options.d.cts +9 -0
- package/dist/options.js +1 -0
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/style.css +219 -214
- package/dist/useCollapsePanel.d.cts +4 -4
- package/dist/useCollapsePanel.d.ts +4 -4
- package/dist/useComponentLocale.cjs +1 -1
- package/dist/useComponentLocale.js +1 -1
- package/dist/useCropperCore.d.cts +6 -6
- package/dist/useCropperCore.d.ts +6 -6
- package/dist/useDynamicFormState.d.cts +12 -970
- package/dist/useDynamicFormState.d.ts +12 -960
- package/dist/useEdgeInteraction.d.cts +1 -1
- package/dist/useEdgeInteraction.d.ts +1 -1
- package/dist/useFormConfig.d.cts +5 -5
- package/dist/useFormConfig.d.ts +13 -6
- package/dist/useFullscreen.d.cts +2 -2
- package/dist/useFullscreen.d.ts +2 -2
- package/dist/useInfiniteScroll.d.cts +1 -1
- package/dist/useInfiniteScroll.d.ts +1 -1
- package/dist/useQRCode.d.cts +4 -4
- package/dist/useQRCode.d.ts +4 -4
- package/dist/useSignatureHistory.d.cts +4 -4
- package/dist/useSignatureHistory.d.ts +4 -4
- package/dist/useSplitResize.d.cts +7 -7
- package/dist/useSplitResize.d.ts +7 -7
- package/dist/useTableQuery.d.cts +899 -0
- package/dist/useTableQuery.d.ts +889 -0
- package/dist/useWorkflowValidation.d.cts +4 -4
- package/dist/useWorkflowValidation.d.ts +4 -4
- package/dist/verification.d.cts +2 -2
- package/dist/verification.d.ts +2 -2
- package/docs/guides/data-workflows.md +8 -38
- package/docs/guides/search-workflows.md +3 -5
- package/docs/guides/table-density.md +9 -1
- package/package.json +1 -1
- package/dist/dictionary.cjs +0 -1
- package/dist/dictionary.d.cts +0 -47
- package/dist/dictionary.d.ts +0 -47
- package/dist/dictionary.js +0 -1
- package/dist/useDictionary.cjs +0 -1
- package/dist/useDictionary.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @robot-admin/naive-ui-components
|
|
2
2
|
|
|
3
|
+
## 0.27.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 修复受控选项重试按钮卸载时清空业务校验反馈的问题;普通布尔选项与自由输入保持原始类型,真实字符串不与控件内部编码混淆。
|
|
8
|
+
|
|
9
|
+
- 移除表单、搜索和表格中的字典字段、注入协议、源订阅和自动翻译。组件只消费普通选项、formatter/render 和通用受控 optionsState,数据插件由项目组合。布尔选项的类型保留改为通用控件能力,外部加载错误与重试不触发组件内数据请求。删除公开字典 API,升级需迁移旧 dictionary 字段与 Provider 接入。
|
|
10
|
+
|
|
11
|
+
## 0.26.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 表单、搜索和表格通过稳定只读协议自动消费独立字典插件,无需使用侧手工桥接组件库 key,不增加字典 SDK 的强制依赖。保留既有公开 key 与 provide 写法、应用隔离和页面覆盖优先级。修复同源暂停或身份失效时旧 AbortError 短暂覆盖新状态的反馈,真实请求失败保持可见。
|
|
16
|
+
|
|
3
17
|
## 0.25.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
| 按需消费 | 60 个独立组件入口、自动导入 Resolver、组件样式入口,以及表单/表格的基础样式层级 |
|
|
34
34
|
| 独立接入 | 支持全量注册与局部导入;反馈、文案和全局配置可由宿主提供,表单弹窗可接入结构兼容的 Headless CRUD |
|
|
35
35
|
|
|
36
|
-
组件库负责界面与交互;业务接口、身份权限、上传服务和第三方平台配置由应用接入。当前仓库版本 **0.
|
|
36
|
+
组件库负责界面与交互;业务接口、身份权限、上传服务和第三方平台配置由应用接入。当前仓库版本 **0.27.0**,版本变化见 [CHANGELOG](./CHANGELOG.md)。
|
|
37
37
|
|
|
38
38
|
0.24.3–0.24.4 复核了异步校验与编辑会话、字典订阅、列拖拽、媒体与图实例、数据快照及依赖边界,修复已复现的问题并删除死状态与不可达重试分支。审查范围、性能约束和验证证据见[稳定性复核](./docs/stability-review-20261031.md)。
|
|
39
39
|
|
|
@@ -41,15 +41,13 @@
|
|
|
41
41
|
|
|
42
42
|
0.24.5 修复表单弹窗首行紧贴标题的问题:标题、内容与页脚通过原生分区样式保持留白,长表单仅内容区滚动,页脚保持可见;样式不穿透内嵌业务卡片。
|
|
43
43
|
|
|
44
|
-
0.25.0 完善共享字典源的加载、失败与重试反馈,表单和搜索在本地恢复,表格汇总字典状态;支持数组多值翻译,保留原始类型、历史标签和已有校验提示。数据源可直接使用 `@robot-admin/dictionary`,无需组件库与表格互相依赖。
|
|
45
|
-
|
|
46
44
|
0.24.6 修复 `C_Table` 编辑弹窗未应用 `edit.modalWidth` 导致通栏的问题。表格编辑与 `C_FormModal` 共用原生分区样式和视口约束;桌面按配置宽度居中,窄屏自动单列,超高内容内部滚动,无需宿主原子类或页面样式补丁。
|
|
47
45
|
|
|
48
|
-
普通下拉列的 `editProps.options`
|
|
46
|
+
普通下拉列的 `editProps.options` 同步传递到弹窗字段;显示标签、编辑及保存继续使用各自的原始值协议。
|
|
49
47
|
|
|
50
|
-
|
|
48
|
+
业务工作台支持容器搜索、区域密度、远程选择、错误导航及批量结果;纯值工具走 `/data`,组合函数走 `/workflows`。接入见[业务数据与工作台](./docs/guides/data-workflows.md)、[搜索工作流](./docs/guides/search-workflows.md)、[远程选择](./docs/guides/data-picker.md)和[批量结果](./docs/guides/batch-results.md)。
|
|
51
49
|
|
|
52
|
-
|
|
50
|
+
本版移除组件内的字典字段、注入、订阅与翻译。表单和搜索接收普通选项及通用 `optionsState`,表格接收 formatter/render 与 editProps.options;数据插件在项目层组合,组件包不识别插件名称、实例或协议。升级时将旧 dictionary 字段转换为普通选项/格式化配置,见[项目组合指南](./docs/guides/data-workflows.md)。
|
|
53
51
|
|
|
54
52
|
## 能力地图
|
|
55
53
|
|
|
@@ -236,7 +234,7 @@ bun run check:audit # 单独运行依赖安全审计,CI 在 verify 前执行
|
|
|
236
234
|
const columns = [
|
|
237
235
|
{ type: 'index' },
|
|
238
236
|
{ key: 'customer', title: '客户', maxWidth: 280 },
|
|
239
|
-
{ key: 'status', title: '状态',
|
|
237
|
+
{ key: 'status', title: '状态', status: true },
|
|
240
238
|
{
|
|
241
239
|
key: 'planStatus',
|
|
242
240
|
title: '计划状态',
|
|
@@ -249,9 +247,9 @@ const columns = [
|
|
|
249
247
|
]
|
|
250
248
|
```
|
|
251
249
|
|
|
252
|
-
状态列复用 Naive UI 标签和主题。支持 `success/warning/danger/info/neutral`,也支持 Naive 的 `error/default/primary` 和 CSS 颜色。未知代码保持中性;`0/false` 是有效值,空值保留空态。显式 render 优先;formatter
|
|
250
|
+
状态列复用 Naive UI 标签和主题。支持 `success/warning/danger/info/neutral`,也支持 Naive 的 `error/default/primary` 和 CSS 颜色。未知代码保持中性;`0/false` 是有效值,空值保留空态。显式 render 优先;formatter 文字会用于默认颜色判断和测宽。状态配置只改变展示,不会改写数据、排序、筛选或导出。
|
|
253
251
|
|
|
254
|
-
测宽不额外挂载或执行 render;图标、进度条和复杂自定义内容请显式指定 width
|
|
252
|
+
测宽不额外挂载或执行 render;图标、进度条和复杂自定义内容请显式指定 width。数据与列配置更新会触发新的有界测量,配置和缓存只属于当前组件实例。此版本将未声明宽度的业务列由自然布局改为有界内容宽度;既有显式布局及原生 table-layout 覆盖仍保留。
|
|
255
253
|
|
|
256
254
|
表头默认完整展示,不随单元格 ellipsis 配置省略。所有业务列的最小宽度计入完整标题及排序/筛选控件;初始布局、显式窄列宽、恢复列设置与拖拽缩列均受此下限保护。360px 仅限制数据内容测宽;标题更长时允许超过该值,并使用表格内部横向滚动。复杂自定义标题请配置 minWidth。
|
|
257
255
|
|
package/README_EN.md
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
| Selective loading | 60 component entries, an auto-import resolver, component CSS and base styles for forms and tables |
|
|
34
34
|
| Application integration | Global registration or local imports; injectable feedback, locale and defaults; form dialogs compatible with structurally matching headless CRUD controllers |
|
|
35
35
|
|
|
36
|
-
The library handles UI and interaction. Applications supply business APIs, authentication, authorization, upload services and platform configuration. The current repository version is **0.
|
|
36
|
+
The library handles UI and interaction. Applications supply business APIs, authentication, authorization, upload services and platform configuration. The current repository version is **0.27.0**; see the [changelog](./CHANGELOG.md) for release details.
|
|
37
37
|
|
|
38
38
|
The 0.24.3–0.24.4 review covers async validation and edit sessions, dictionaries, column dragging, media and graph instances, data snapshots and dependency boundaries. Reproduced issues are fixed; dead state and unreachable retry branches are removed. See the [stability review](./docs/stability-review-20261031.md) for scope, performance constraints and verification evidence.
|
|
39
39
|
|
|
@@ -41,15 +41,13 @@ Forms and search share `config.density: 'compact'`, reducing field spacing and e
|
|
|
41
41
|
|
|
42
42
|
0.24.5 restores spacing between form modal titles and the first field using native card section styles. Long forms scroll inside the content area while the footer stays visible; modal styles do not override nested business cards.
|
|
43
43
|
|
|
44
|
-
0.25.0 adds shared dictionary state, local retry feedback in forms and searches, and one status summary per table. Array values translate item by item while preserving model types, historical labels and validation messages. Structurally compatible sources from `@robot-admin/dictionary` need no additional UI adapter.
|
|
45
|
-
|
|
46
44
|
0.24.6 fixes full-width `C_Table` editor dialogs ignoring `edit.modalWidth`. Table editors and `C_FormModal` share native section styles and viewport bounds. Dialogs honor configured widths on desktop, use one form column when space is limited, and scroll tall content without relying on application utility CSS.
|
|
47
45
|
|
|
48
|
-
Ordinary select columns retain `editProps.options` in modal fields
|
|
46
|
+
Ordinary select columns retain `editProps.options` in modal fields through the ordinary option contract. Labels are displayed while editing and saving preserve the original value types.
|
|
49
47
|
|
|
50
|
-
Business workspaces
|
|
48
|
+
Business workspaces support container-aware search, regional density, remote pickers, error navigation and batch results. Pure value utilities live at `/data`; opt-in composables live at `/workflows`. See the [data and workspace guide](./docs/guides/data-workflows.md), [search workflows](./docs/guides/search-workflows.md), [data picker](./docs/guides/data-picker.md) and [batch results](./docs/guides/batch-results.md).
|
|
51
49
|
|
|
52
|
-
|
|
50
|
+
This release removes dictionary fields, injection, subscriptions and translation from components. Forms and search accept ordinary options and controlled `optionsState`; tables accept formatters/renderers and `editProps.options`. Applications compose data plugins; the component package does not recognize plugin names, instances or protocols. See the [project composition guide](./docs/guides/data-workflows.md) for migration.
|
|
53
51
|
|
|
54
52
|
## Capability map
|
|
55
53
|
|
|
@@ -230,9 +228,9 @@ See [development and build](./docs/engineering.en.md) for individual checks and
|
|
|
230
228
|
|
|
231
229
|
## Content widths and status columns (0.24)
|
|
232
230
|
|
|
233
|
-
Columns without `width` now measure their header and up to 100 evenly sampled loaded rows, using formatted
|
|
231
|
+
Columns without `width` now measure their header and up to 100 evenly sampled loaded rows, using formatted values and status labels. Automatic widths default to 80–360px; use `minWidth/maxWidth` to adjust. Explicit widths (including native strings), saved column widths and `display.columnWidth` take precedence. `autoWidth: false` restores the 180px default. Long automatic cells use ellipsis and a tooltip; horizontal virtualization uses the same numeric widths.
|
|
234
232
|
|
|
235
|
-
Use `{ key: 'status', status: true }` for themed status tags, or `status: { S1B: { label: 'Review', color: 'danger' }, S1C: 'success' }`. Semantic colors and CSS colors are supported. Unknown codes stay neutral, zero/false stay valid, and explicit render functions win. Display changes never rewrite data or export policy. Measurement does not invoke render functions; give graphical/custom columns explicit widths. Data and
|
|
233
|
+
Use `{ key: 'status', status: true }` for themed status tags, or `status: { S1B: { label: 'Review', color: 'danger' }, S1C: 'success' }`. Semantic colors and CSS colors are supported. Unknown codes stay neutral, zero/false stay valid, and explicit render functions win. Display changes never rewrite data or export policy. Measurement does not invoke render functions; give graphical/custom columns explicit widths. Data and column updates remeasure a bounded sample; all caches remain component-local.
|
|
236
234
|
|
|
237
235
|
Headers display their full text by default, independently of cell ellipsis. Initial layout, explicit or restored narrow widths, and interactive resizing share a minimum that includes the entire title and its sort/filter controls. The 360px measurement cap applies only to cell content; longer headers use internal horizontal scrolling. Custom header content should declare an appropriate minWidth.
|
|
238
236
|
|
package/dist/C_Form.base.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:root{--c-primary: var(--primary-color, #2080f0);--c-primary-hover: var(--primary-color-hover, #4098fc);--c-primary-pressed: var(--primary-color-pressed, #1060c9);--c-success: var(--success-color, #18a058);--c-warning: var(--warning-color, #f0a020);--c-error: var(--error-color, #d03050);--c-info: var(--info-color, #2080f0);--c-bg-body: var(--body-color, #ffffff);--c-bg-card: var(--card-color, #ffffff);--c-bg-surface: var(--popover-color, #ffffff);--c-text-1: var(--text-color-1, #262626);--c-text-2: var(--text-color-2, #525252);--c-text-3: var(--text-color-3, #a3a3a3);--c-text-4: var(--text-color-4, #c0c0c0);--c-border: var(--border-color, #e5e7eb);--c-radius-sm: var(--border-radius-small, 4px);--c-radius: var(--border-radius, 6px);--c-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);--c-transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);--c-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);--c-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);--c-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1)}
|
|
2
2
|
|
|
3
|
-
.c-form[data-v-
|
|
3
|
+
.c-form[data-v-8bb3b468] .c-form-option-state {
|
|
4
4
|
width: 100%;
|
|
5
5
|
min-width: 0;
|
|
6
6
|
}
|
|
7
|
-
.c-form[data-v-
|
|
7
|
+
.c-form[data-v-8bb3b468] .c-form-option-error {
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
gap: 8px;
|
|
@@ -12,13 +12,31 @@
|
|
|
12
12
|
color: var(--error-color, #d03050);
|
|
13
13
|
font-size: 12px;
|
|
14
14
|
}
|
|
15
|
-
.c-form .c-form-
|
|
15
|
+
.c-form[data-v-8bb3b468] .c-form-option-retry {
|
|
16
|
+
padding: 0 4px;
|
|
17
|
+
border: 0;
|
|
18
|
+
background: transparent;
|
|
19
|
+
color: var(--primary-color, #2080f0);
|
|
20
|
+
font: inherit;
|
|
21
|
+
line-height: inherit;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
}
|
|
24
|
+
.c-form[data-v-8bb3b468] .c-form-option-retry:focus-visible {
|
|
25
|
+
outline: 2px solid currentColor;
|
|
26
|
+
outline-offset: 2px;
|
|
27
|
+
border-radius: 3px;
|
|
28
|
+
}
|
|
29
|
+
.c-form[data-v-8bb3b468] .c-form-option-retry:disabled {
|
|
30
|
+
cursor: wait;
|
|
31
|
+
opacity: 0.5;
|
|
32
|
+
}
|
|
33
|
+
.c-form .c-form-actions[data-v-8bb3b468] {
|
|
16
34
|
margin-top: var(--c-form-row-gap, 20px);
|
|
17
35
|
}
|
|
18
|
-
:is(.c-form--default[data-v-
|
|
36
|
+
:is(.c-form--default[data-v-8bb3b468], .c-form--compact[data-v-8bb3b468], .c-form--comfortable[data-v-8bb3b468]) .c-form-field .n-form-item-feedback-wrapper {
|
|
19
37
|
min-height: var(--c-form-item-gap);
|
|
20
38
|
}
|
|
21
|
-
:is(.c-form--default[data-v-
|
|
39
|
+
:is(.c-form--default[data-v-8bb3b468], .c-form--compact[data-v-8bb3b468], .c-form--comfortable[data-v-8bb3b468]) :is(
|
|
22
40
|
.c-form-card > .n-card,
|
|
23
41
|
.c-form-card > .form-content > .n-card,
|
|
24
42
|
.c-form-steps > .steps-container > .steps-content,
|
|
@@ -31,14 +49,14 @@
|
|
|
31
49
|
}
|
|
32
50
|
|
|
33
51
|
/* layer: default */
|
|
34
|
-
.visible[data-v-
|
|
35
|
-
.grid[data-v-
|
|
36
|
-
.inline[data-v-
|
|
37
|
-
.block[data-v-
|
|
38
|
-
.hidden[data-v-
|
|
39
|
-
.px[data-v-
|
|
40
|
-
.blur[data-v-
|
|
41
|
-
.filter[data-v-
|
|
52
|
+
.visible[data-v-8bb3b468]{visibility:visible;}
|
|
53
|
+
.grid[data-v-8bb3b468]{display:grid;}
|
|
54
|
+
.inline[data-v-8bb3b468]{display:inline;}
|
|
55
|
+
.block[data-v-8bb3b468]{display:block;}
|
|
56
|
+
.hidden[data-v-8bb3b468]{display:none;}
|
|
57
|
+
.px[data-v-8bb3b468]{padding-left:1rem;padding-right:1rem;}
|
|
58
|
+
.blur[data-v-8bb3b468]{--un-blur:blur(8px);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia);}
|
|
59
|
+
.filter[data-v-8bb3b468]{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia);}
|
|
42
60
|
|
|
43
61
|
/* Card 布局样式 */
|
|
44
62
|
.c-form-card[data-v-a53d698e] {
|
package/dist/C_Form.css
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@import "./C_Editor.css";
|
|
2
|
-
.c-form[data-v-
|
|
2
|
+
.c-form[data-v-8bb3b468] .c-form-option-state {
|
|
3
3
|
width: 100%;
|
|
4
4
|
min-width: 0;
|
|
5
5
|
}
|
|
6
|
-
.c-form[data-v-
|
|
6
|
+
.c-form[data-v-8bb3b468] .c-form-option-error {
|
|
7
7
|
display: flex;
|
|
8
8
|
align-items: center;
|
|
9
9
|
gap: 8px;
|
|
@@ -11,13 +11,31 @@
|
|
|
11
11
|
color: var(--error-color, #d03050);
|
|
12
12
|
font-size: 12px;
|
|
13
13
|
}
|
|
14
|
-
.c-form .c-form-
|
|
14
|
+
.c-form[data-v-8bb3b468] .c-form-option-retry {
|
|
15
|
+
padding: 0 4px;
|
|
16
|
+
border: 0;
|
|
17
|
+
background: transparent;
|
|
18
|
+
color: var(--primary-color, #2080f0);
|
|
19
|
+
font: inherit;
|
|
20
|
+
line-height: inherit;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
.c-form[data-v-8bb3b468] .c-form-option-retry:focus-visible {
|
|
24
|
+
outline: 2px solid currentColor;
|
|
25
|
+
outline-offset: 2px;
|
|
26
|
+
border-radius: 3px;
|
|
27
|
+
}
|
|
28
|
+
.c-form[data-v-8bb3b468] .c-form-option-retry:disabled {
|
|
29
|
+
cursor: wait;
|
|
30
|
+
opacity: 0.5;
|
|
31
|
+
}
|
|
32
|
+
.c-form .c-form-actions[data-v-8bb3b468] {
|
|
15
33
|
margin-top: var(--c-form-row-gap, 20px);
|
|
16
34
|
}
|
|
17
|
-
:is(.c-form--default[data-v-
|
|
35
|
+
:is(.c-form--default[data-v-8bb3b468], .c-form--compact[data-v-8bb3b468], .c-form--comfortable[data-v-8bb3b468]) .c-form-field .n-form-item-feedback-wrapper {
|
|
18
36
|
min-height: var(--c-form-item-gap);
|
|
19
37
|
}
|
|
20
|
-
:is(.c-form--default[data-v-
|
|
38
|
+
:is(.c-form--default[data-v-8bb3b468], .c-form--compact[data-v-8bb3b468], .c-form--comfortable[data-v-8bb3b468]) :is(
|
|
21
39
|
.c-form-card > .n-card,
|
|
22
40
|
.c-form-card > .form-content > .n-card,
|
|
23
41
|
.c-form-steps > .steps-container > .steps-content,
|
|
@@ -30,14 +48,14 @@
|
|
|
30
48
|
}
|
|
31
49
|
|
|
32
50
|
/* layer: default */
|
|
33
|
-
.visible[data-v-
|
|
34
|
-
.grid[data-v-
|
|
35
|
-
.inline[data-v-
|
|
36
|
-
.block[data-v-
|
|
37
|
-
.hidden[data-v-
|
|
38
|
-
.px[data-v-
|
|
39
|
-
.blur[data-v-
|
|
40
|
-
.filter[data-v-
|
|
51
|
+
.visible[data-v-8bb3b468]{visibility:visible;}
|
|
52
|
+
.grid[data-v-8bb3b468]{display:grid;}
|
|
53
|
+
.inline[data-v-8bb3b468]{display:inline;}
|
|
54
|
+
.block[data-v-8bb3b468]{display:block;}
|
|
55
|
+
.hidden[data-v-8bb3b468]{display:none;}
|
|
56
|
+
.px[data-v-8bb3b468]{padding-left:1rem;padding-right:1rem;}
|
|
57
|
+
.blur[data-v-8bb3b468]{--un-blur:blur(8px);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia);}
|
|
58
|
+
.filter[data-v-8bb3b468]{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia);}
|
|
41
59
|
|
|
42
60
|
/* Card 布局样式 */
|
|
43
61
|
.c-form-card[data-v-a53d698e] {
|
package/dist/C_Form.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { t as OptionsState } from "./options.cjs";
|
|
1
2
|
import { A as FormTabActionsSlotProps, B as TabsLayoutConfig, C as FormMode, D as FormSlots, E as FormRecord, F as LayoutType, G as SPEC_RULES, H as NAIVE_COMBOS, I as MaybePromise, L as OptionItem, M as InlineLayoutConfig, N as LabelPlacement, O as FormStepActionsSlotProps, P as LayoutConfig, R as StepsLayoutConfig, S as FormInstance, T as FormOption, U as PRESET_RULES, V as FormValidationRule, W as RuleSpec, _ as DynamicFormState, a as ResolvedFormConfig, b as FormActionSlotProps, c as shouldShowActions, d as CardLayoutConfig, f as ComponentType, g as DynamicFormController, h as DynamicFormConfig, i as LayoutCallbacks, j as GridLayoutConfig, k as FormSubmitContext, l as useFormGlobalConfig, m as DynamicFieldConfig, n as FormConfig, o as mergeFormConfig, p as CustomLayoutConfig, r as LAYOUTS_WITH_OWN_CONTROLS, s as resolveFormConfig, t as FORM_DEFAULTS, u as AsyncOptionsContext, v as FieldPath, w as FormModel, x as FormErrorContext, y as FieldPathValue, z as SubmitEventPayload } from "./useFormConfig.cjs";
|
|
2
3
|
import { t as ComponentDensity } from "./density.cjs";
|
|
3
4
|
import { FORM_GLOBAL_CONFIG_KEY } from "./config.cjs";
|
|
4
|
-
import {
|
|
5
|
-
export { type AsyncOptionsContext, _default as C_Form, type CardLayoutConfig, type ComponentDensity, type ComponentMap, type ComponentType, type CustomLayoutConfig, DYNAMIC_FORM_STATE_KEY, type DynamicFieldConfig, type DynamicFormConfig, type DynamicFormController, type DynamicFormState, type DynamicFormStateType, FIELD_TYPE_OPTIONS, FORM_DEFAULTS, FORM_GLOBAL_CONFIG_KEY, FORM_RENDERER_REGISTRY_KEY, type FieldPath, type FieldPathValue, type FormActionSlotProps, type FormConfig, type FormErrorContext, type FormInstance, type FormMode, type FormModel, type FormOption, type FormRecord, type FormRenderer, type FormRendererContext, type FormRendererRegistry, type FormSlots, type FormStepActionsSlotProps, type FormSubmitContext, type FormTabActionsSlotProps, type FormValidationRule, type GridLayoutConfig, type InlineLayoutConfig, LAYOUTS_WITH_OWN_CONTROLS, type LabelPlacement, type LayoutCallbacks, type LayoutConfig, type LayoutType, type MaybePromise, NAIVE_COMBOS, type OptionItem, PRESET_RULES, type RendererProps, type ResolvedFormConfig, type RuleSpec, SPEC_RULES, type StepsLayoutConfig, type SubmitEventPayload, type TabsLayoutConfig, type UseCFormOptions, type UseCFormReturn, type UseFormDirtyReturn, type UseFormRendererOptions, createFormRendererRegistry, defineFormConfig, defineFormOptions, mergeFormConfig, registerRenderer, resolveFormConfig, shouldShowActions, unregisterRenderer, useCForm, useDynamicFormState, useFormDirty, useFormGlobalConfig, useFormRenderer, useFormState };
|
|
5
|
+
import { C as unregisterRenderer, S as registerRenderer, _ as FormRendererContext, a as UseFormDirtyReturn, b as UseFormRendererOptions, c as UseCFormOptions, d as defineFormOptions, f as useCForm, g as FormRenderer, h as FORM_RENDERER_REGISTRY_KEY, i as useDynamicFormState, l as UseCFormReturn, m as ComponentMap, n as DynamicFormStateType, o as useFormDirty, p as _default, r as FIELD_TYPE_OPTIONS, s as useFormState, t as DYNAMIC_FORM_STATE_KEY, u as defineFormConfig, v as FormRendererRegistry, w as useFormRenderer, x as createFormRendererRegistry, y as RendererProps } from "./useDynamicFormState.cjs";
|
|
6
|
+
export { type AsyncOptionsContext, _default as C_Form, type CardLayoutConfig, type ComponentDensity, type ComponentMap, type ComponentType, type CustomLayoutConfig, DYNAMIC_FORM_STATE_KEY, type DynamicFieldConfig, type DynamicFormConfig, type DynamicFormController, type DynamicFormState, type DynamicFormStateType, FIELD_TYPE_OPTIONS, FORM_DEFAULTS, FORM_GLOBAL_CONFIG_KEY, FORM_RENDERER_REGISTRY_KEY, type FieldPath, type FieldPathValue, type FormActionSlotProps, type FormConfig, type FormErrorContext, type FormInstance, type FormMode, type FormModel, type FormOption, type FormRecord, type FormRenderer, type FormRendererContext, type FormRendererRegistry, type FormSlots, type FormStepActionsSlotProps, type FormSubmitContext, type FormTabActionsSlotProps, type FormValidationRule, type GridLayoutConfig, type InlineLayoutConfig, LAYOUTS_WITH_OWN_CONTROLS, type LabelPlacement, type LayoutCallbacks, type LayoutConfig, type LayoutType, type MaybePromise, NAIVE_COMBOS, type OptionItem, type OptionsState, PRESET_RULES, type RendererProps, type ResolvedFormConfig, type RuleSpec, SPEC_RULES, type StepsLayoutConfig, type SubmitEventPayload, type TabsLayoutConfig, type UseCFormOptions, type UseCFormReturn, type UseFormDirtyReturn, type UseFormRendererOptions, createFormRendererRegistry, defineFormConfig, defineFormOptions, mergeFormConfig, registerRenderer, resolveFormConfig, shouldShowActions, unregisterRenderer, useCForm, useDynamicFormState, useFormDirty, useFormGlobalConfig, useFormRenderer, useFormState };
|
package/dist/C_Form.d.ts
CHANGED
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./presets.js";
|
|
3
|
-
import "./useEdgeInteraction.js";
|
|
4
|
-
import "./public.js";
|
|
5
|
-
import "./index5.vue.js";
|
|
6
|
-
import { A as FormTabActionsSlotProps, B as TabsLayoutConfig, C as FormMode, D as FormSlots, E as FormRecord, F as LayoutType, G as SPEC_RULES, H as NAIVE_COMBOS, I as MaybePromise, L as OptionItem, M as InlineLayoutConfig, N as LabelPlacement, O as FormStepActionsSlotProps, P as LayoutConfig, R as StepsLayoutConfig, S as FormInstance, T as FormOption, U as PRESET_RULES, V as FormValidationRule, W as RuleSpec, _ as DynamicFormState, a as ResolvedFormConfig, b as FormActionSlotProps, c as shouldShowActions, d as CardLayoutConfig, f as ComponentType, g as DynamicFormController, h as DynamicFormConfig, i as LayoutCallbacks, j as GridLayoutConfig, k as FormSubmitContext, l as useFormGlobalConfig, m as DynamicFieldConfig, n as FormConfig, o as mergeFormConfig, p as CustomLayoutConfig, r as LAYOUTS_WITH_OWN_CONTROLS, s as resolveFormConfig, t as FORM_DEFAULTS, u as AsyncOptionsContext, v as FieldPath, w as FormModel, x as FormErrorContext, y as FieldPathValue, z as SubmitEventPayload } from "./useFormConfig.js";
|
|
1
|
+
import { A as FormTabActionsSlotProps, B as TabsLayoutConfig, C as FormMode, D as FormSlots, E as FormRecord, F as LayoutType, G as SPEC_RULES, H as NAIVE_COMBOS, I as MaybePromise, K as OptionsState, L as OptionItem, M as InlineLayoutConfig, N as LabelPlacement, O as FormStepActionsSlotProps, P as LayoutConfig, R as StepsLayoutConfig, S as FormInstance, T as FormOption, U as PRESET_RULES, V as FormValidationRule, W as RuleSpec, _ as DynamicFormState, a as ResolvedFormConfig, b as FormActionSlotProps, c as shouldShowActions, d as CardLayoutConfig, f as ComponentType, g as DynamicFormController, h as DynamicFormConfig, i as LayoutCallbacks, j as GridLayoutConfig, k as FormSubmitContext, l as useFormGlobalConfig, m as DynamicFieldConfig, n as FormConfig, o as mergeFormConfig, p as CustomLayoutConfig, r as LAYOUTS_WITH_OWN_CONTROLS, s as resolveFormConfig, t as FORM_DEFAULTS, u as AsyncOptionsContext, v as FieldPath, w as FormModel, x as FormErrorContext, y as FieldPathValue, z as SubmitEventPayload } from "./useFormConfig.js";
|
|
7
2
|
import { t as ComponentDensity } from "./density.js";
|
|
8
3
|
import { FORM_GLOBAL_CONFIG_KEY } from "./config.js";
|
|
9
|
-
import "./
|
|
10
|
-
|
|
11
|
-
import "./index11.vue.js";
|
|
12
|
-
import "./useDraggableLayout.js";
|
|
13
|
-
import { _t as createFormRendererRegistry, a as UseFormDirtyReturn, at as UseCFormReturn, bt as useFormRenderer, ct as useCForm, dt as FORM_RENDERER_REGISTRY_KEY, ft as FormRenderer, gt as UseFormRendererOptions, ht as RendererProps, i as useDynamicFormState, it as UseCFormOptions, lt as _default, mt as FormRendererRegistry, n as DynamicFormStateType, o as useFormDirty, ot as defineFormConfig, pt as FormRendererContext, r as FIELD_TYPE_OPTIONS, s as useFormState, st as defineFormOptions, t as DYNAMIC_FORM_STATE_KEY, ut as ComponentMap, vt as registerRenderer, yt as unregisterRenderer } from "./useDynamicFormState.js";
|
|
14
|
-
import "./mapUtils.js";
|
|
15
|
-
import "./dateRange.js";
|
|
16
|
-
import "./constants5.js";
|
|
17
|
-
import "./useWorkflowValidation.js";
|
|
18
|
-
import "./index23.vue.js";
|
|
19
|
-
import "./index24.vue.js";
|
|
20
|
-
import "./index25.vue.js";
|
|
21
|
-
export { type AsyncOptionsContext, _default as C_Form, type CardLayoutConfig, type ComponentDensity, type ComponentMap, type ComponentType, type CustomLayoutConfig, DYNAMIC_FORM_STATE_KEY, type DynamicFieldConfig, type DynamicFormConfig, type DynamicFormController, type DynamicFormState, type DynamicFormStateType, FIELD_TYPE_OPTIONS, FORM_DEFAULTS, FORM_GLOBAL_CONFIG_KEY, FORM_RENDERER_REGISTRY_KEY, type FieldPath, type FieldPathValue, type FormActionSlotProps, type FormConfig, type FormErrorContext, type FormInstance, type FormMode, type FormModel, type FormOption, type FormRecord, type FormRenderer, type FormRendererContext, type FormRendererRegistry, type FormSlots, type FormStepActionsSlotProps, type FormSubmitContext, type FormTabActionsSlotProps, type FormValidationRule, type GridLayoutConfig, type InlineLayoutConfig, LAYOUTS_WITH_OWN_CONTROLS, type LabelPlacement, type LayoutCallbacks, type LayoutConfig, type LayoutType, type MaybePromise, NAIVE_COMBOS, type OptionItem, PRESET_RULES, type RendererProps, type ResolvedFormConfig, type RuleSpec, SPEC_RULES, type StepsLayoutConfig, type SubmitEventPayload, type TabsLayoutConfig, type UseCFormOptions, type UseCFormReturn, type UseFormDirtyReturn, type UseFormRendererOptions, createFormRendererRegistry, defineFormConfig, defineFormOptions, mergeFormConfig, registerRenderer, resolveFormConfig, shouldShowActions, unregisterRenderer, useCForm, useDynamicFormState, useFormDirty, useFormGlobalConfig, useFormRenderer, useFormState };
|
|
4
|
+
import { C as unregisterRenderer, S as registerRenderer, _ as FormRendererContext, a as UseFormDirtyReturn, b as UseFormRendererOptions, c as UseCFormOptions, d as defineFormOptions, f as useCForm, g as FormRenderer, h as FORM_RENDERER_REGISTRY_KEY, i as useDynamicFormState, l as UseCFormReturn, m as ComponentMap, n as DynamicFormStateType, o as useFormDirty, p as _default, r as FIELD_TYPE_OPTIONS, s as useFormState, t as DYNAMIC_FORM_STATE_KEY, u as defineFormConfig, v as FormRendererRegistry, w as useFormRenderer, x as createFormRendererRegistry, y as RendererProps } from "./useDynamicFormState.js";
|
|
5
|
+
export { type AsyncOptionsContext, _default as C_Form, type CardLayoutConfig, type ComponentDensity, type ComponentMap, type ComponentType, type CustomLayoutConfig, DYNAMIC_FORM_STATE_KEY, type DynamicFieldConfig, type DynamicFormConfig, type DynamicFormController, type DynamicFormState, type DynamicFormStateType, FIELD_TYPE_OPTIONS, FORM_DEFAULTS, FORM_GLOBAL_CONFIG_KEY, FORM_RENDERER_REGISTRY_KEY, type FieldPath, type FieldPathValue, type FormActionSlotProps, type FormConfig, type FormErrorContext, type FormInstance, type FormMode, type FormModel, type FormOption, type FormRecord, type FormRenderer, type FormRendererContext, type FormRendererRegistry, type FormSlots, type FormStepActionsSlotProps, type FormSubmitContext, type FormTabActionsSlotProps, type FormValidationRule, type GridLayoutConfig, type InlineLayoutConfig, LAYOUTS_WITH_OWN_CONTROLS, type LabelPlacement, type LayoutCallbacks, type LayoutConfig, type LayoutType, type MaybePromise, NAIVE_COMBOS, type OptionItem, type OptionsState, PRESET_RULES, type RendererProps, type ResolvedFormConfig, type RuleSpec, SPEC_RULES, type StepsLayoutConfig, type SubmitEventPayload, type TabsLayoutConfig, type UseCFormOptions, type UseCFormReturn, type UseFormDirtyReturn, type UseFormRendererOptions, createFormRendererRegistry, defineFormConfig, defineFormOptions, mergeFormConfig, registerRenderer, resolveFormConfig, shouldShowActions, unregisterRenderer, useCForm, useDynamicFormState, useFormDirty, useFormGlobalConfig, useFormRenderer, useFormState };
|
package/dist/C_FormModal.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as FormModalProps, i as FormModalMode, n as FormModalEditor, r as FormModalEmits, t as _default } from "./index16.vue.cjs";
|
|
2
2
|
export { _default as C_FormModal, type FormModalEditor, type FormModalEmits, type FormModalMode, type FormModalProps };
|
package/dist/C_FormModal.d.ts
CHANGED
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import "./types.js";
|
|
2
|
-
import "./presets.js";
|
|
3
|
-
import "./useEdgeInteraction.js";
|
|
4
|
-
import "./public.js";
|
|
5
|
-
import "./index5.vue.js";
|
|
6
1
|
import "./useFormConfig.js";
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./index11.vue.js";
|
|
10
|
-
import "./useDraggableLayout.js";
|
|
11
|
-
import { f as _default, g as FormModalProps, h as FormModalMode, m as FormModalEmits, p as FormModalEditor } from "./useDynamicFormState.js";
|
|
12
|
-
import "./mapUtils.js";
|
|
13
|
-
import "./dateRange.js";
|
|
14
|
-
import "./constants5.js";
|
|
15
|
-
import "./useWorkflowValidation.js";
|
|
16
|
-
import "./index23.vue.js";
|
|
17
|
-
import "./index24.vue.js";
|
|
18
|
-
import "./index25.vue.js";
|
|
2
|
+
import "./useDynamicFormState.js";
|
|
3
|
+
import { a as FormModalProps, i as FormModalMode, n as FormModalEditor, r as FormModalEmits, t as _default } from "./index15.vue.js";
|
|
19
4
|
export { _default as C_FormModal, type FormModalEditor, type FormModalEmits, type FormModalMode, type FormModalProps };
|