@uninterface/backend-element-plus 2.14.0-alpha1 → 2.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/docs/collections.md +9 -9
- package/docs/contract-adaptations.md +1 -1
- package/docs/customization.md +2 -2
- package/docs/presentation.md +1 -1
- package/docs/reviewed-components.md +3 -3
- package/docs/selection-feedback-panels.md +3 -3
- package/docs/setup.md +8 -6
- package/docs/table-columns.md +1 -1
- package/docs/testing.md +16 -1
- package/docs/typography.md +1 -1
- package/esm/package.json.js +1 -1
- package/esm/src/FieldError2.vue.js +6 -2
- package/esm/src/UiField2.vue.js +7 -2
- package/package.json +8 -4
- package/style.css +3 -0
- package/types/src/FieldError.vue.d.ts +1 -0
- package/types/src/fieldPresentation.d.ts +20 -19
package/docs/collections.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
UiList, UiTable and UiPaginator implement `list.view.v1`, `table.view.v1` and `paginator.view.v1`. UiTableColumn is a logical core declaration. The application owns the shared list session and explicitly loads/disposes it. Views never load on mounting or reprocess accepted source rows.
|
|
4
4
|
|
|
5
|
-
ElTable auto layout keeps header and body in one table. ElTableColumn uses native custom-sort headers synchronized with the shared query; native filterMethod remains unused. Wrapped rows prevent business children from activating tree processing. ElCheckbox, ElButton, ElInputNumber and ElSelect supply native controls.
|
|
5
|
+
ElTable auto layout keeps header and body in one table. ElTableColumn uses native custom-sort headers synchronized with the shared query; native filterMethod remains unused. Wrapped rows prevent business children from activating tree processing. ElCheckbox, ElButton, ElInputNumber and ElSelect supply native controls. See [Server rendering and hydration](#server-rendering-and-hydration) for the known table limitation.
|
|
6
6
|
|
|
7
7
|
Core supplies localized status, ordered query updates, shared announcement/automatic continuation coordination and guarded requests. The adapter owns actual semantic/scroll/focus targets. Count and minimum-width grids use adapter-owned spacing; height full consumes a bounded parent. Selection has dedicated controls and nested actions do not activate rows. Cursor navigation never fabricates totals or page numbers.
|
|
8
8
|
|
|
@@ -94,9 +94,9 @@ Validation tooltip width is bounded by the viewport and long messages can wrap.
|
|
|
94
94
|
|
|
95
95
|
## Shared filter editors
|
|
96
96
|
|
|
97
|
-
UiCollectionFilter
|
|
97
|
+
UiCollectionFilter hosts an application-owned filter editor. Column popups supply table-column context, and row, badge and panel hosts supply the corresponding context. An editor can omit a redundant visible label while retaining its accessible name. Reuse the same binding across placements. Verify that responsive view removal retains unfinished drafts and that explicit popup cancellation follows the host’s draft policy. The backend owns input, field, button and popover presentation.
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
The shared createUiChoiceFilterEditor adaptation uses checkboxes or radios for short, flat choices in column popups and UiMultiSelect or UiSelect in external rows and panels. The application decides which query criteria a reset clears.
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
## Collection header
|
|
@@ -105,7 +105,7 @@ UiCollectionHeader implements collection.header.v1 with search, actions, filters
|
|
|
105
105
|
|
|
106
106
|
This grouping is an Uninterface adaptation informed by PatternFly/Carbon and native table examples, not a claim of a toolkit-defined five-slot header. Core provides the configured responsive environment and disclosure behavior. The backend owns native spacing/markup. Query context reaches business-wrapped filters without per-view adaptation code. Container-width adaptation and automatic action overflow remain unimplemented. See the core header guide for sources, ownership and acceptance checks.
|
|
107
107
|
|
|
108
|
-
Header fields register the backend-owned first editor surface for per-line alignment. Above-label space is measured; floating labels remain native. Clear and other bare actions align to the editor band, with errors growing below. No form/controller ownership changes.
|
|
108
|
+
Header fields register the backend-owned first editor surface for per-line alignment. Above-label space is measured; floating labels remain native. Clear and other bare actions align to the editor band, with errors growing below. No form/controller ownership changes. The search label follows the chosen header context, and its accessible name is retained. Custom controls without a cooperating UiField retain ordinary start placement.
|
|
109
109
|
|
|
110
110
|
The exported collectionHeaderLongRow and collectionHeaderNarrowExpandable objects now own these layouts in core. uiCollectionHeaderPresentation selects objects directly or via a reactive contextual selector; custom objects need no backend registration. Names are diagnostic. Each adaptation is now an actual Vue render implementation. This adapter supplies a neutral header host and private flow/part components for the built-ins, fulfilling local allocation, editor alignment and theme spacing. It does not interpret a group schema or implement the disclosure; the narrow render implementation owns mutual exclusion, toggle state and reset placement. Custom render implementations may use their own component trees and interactions. Search/filter context follows the chosen adaptation, including explicit overrides of responsive defaults. Check the expanded narrow panel before actions, stable focus/caret across group moves and no empty allocations. Native geometry still requires browser review.
|
|
111
111
|
|
|
@@ -137,13 +137,13 @@ Resizable column handles remain keyboard-operable separators at the visual inlin
|
|
|
137
137
|
Element Plus appends its native caret button after the custom header slot. The adapter therefore uses a Vue-managed Teleport to place the resize separator at the end of the actual header cell after mount. The native filter/caret order is preserved (filter, native sort caret, resize for a filtered sortable column). Target registration updates only when native header elements change; conditional controls and remounting retain native event isolation. The initial render keeps the handle in the slot until its DOM target exists; existing native table SSR limitations still apply. Review this integration when upgrading the native table.
|
|
138
138
|
|
|
139
139
|
|
|
140
|
-
##
|
|
140
|
+
## Sort priority, header layout and badge editors
|
|
141
141
|
|
|
142
|
-
Active multi-sort table headers provide a Sort priority menu (Move earlier/later), isolated from native sort-cycle activation. Header sizing enables the shared minimumHeader measurement so label, direction, index, priority menu and other native header controls establish a usable minimum alongside the author's minimum. Header measurements include native cell insets; row/cell content sizing keeps its existing policy.
|
|
142
|
+
Active multi-sort table headers provide a Sort priority menu (Move earlier/later), isolated from native sort-cycle activation. Header sizing enables the shared minimumHeader measurement so label, direction, index, priority menu and other native header controls establish a usable minimum alongside the author's minimum. Header measurements include native cell insets; row/cell content sizing keeps its existing policy.
|
|
143
143
|
|
|
144
144
|
The long-row header uses measured filter/sort/action group asks to place actions beside filters, beside sorting, or below. Actions stay top-aligned. CollectionHeaderPart supplies a zero-height line boundary for the middle placement, using the backend gap without adding an extra empty row. Native editor alignment excludes actions and popup surfaces. Keyed moves retain controls, draft and focus.
|
|
145
145
|
|
|
146
|
-
The badge editor uses UiPopover's explicit anchor binding on its active badge; positioning transfers from Add to badge and returns to Add if the badge disappears, preserving the original trigger's cancellation/focus role.
|
|
146
|
+
The badge editor uses UiPopover's explicit anchor binding on its active badge; positioning transfers from Add to badge and returns to Add if the badge disappears, preserving the original trigger's cancellation/focus role. When a table-column editor opens, it requests focus on its first enabled input or choice. In a browser, check focus after opening and closing the editor, badge anchor changes, and header layout at narrow widths. Verify that controls and draft values survive layout changes.
|
|
147
147
|
|
|
148
148
|
### Criterion badge height
|
|
149
149
|
|
|
@@ -202,9 +202,9 @@ Card summaries place the collection-wide title above aligned field-name/value pa
|
|
|
202
202
|
|
|
203
203
|
## Server rendering and hydration
|
|
204
204
|
|
|
205
|
-
|
|
205
|
+
**Known issue.** With the Element Plus backend, `UiTable` and `UiCollectionView` in table mode omit column headers, record cells and editors, summary values, and the table’s accessible name from the initial server HTML. The browser creates this content after mounting. The server-rendering gap remains open and needs a future fix.
|
|
206
206
|
|
|
207
|
-
|
|
207
|
+
If your SSR application can defer table content until JavaScript runs, use a client-only boundary. Render the same placeholder on the server and during initial hydration, then mount the table view in the browser. Keep the business control outside the view boundary. Your application supplies the placeholder.
|
|
208
208
|
|
|
209
209
|
## Editable collection focus
|
|
210
210
|
|
|
@@ -19,7 +19,7 @@ Ordinary beside form-label arrangements and separated checkable label/control ar
|
|
|
19
19
|
|
|
20
20
|
UiTable uses ElTable auto rendering with one header/body table. ElTableColumn receives resolved numeric widths and align/header-align; fixed CSS table-layout and explicit width implement allocation. Native resizing/filtering are disabled in favor of shared ownership. Wrapper rows prevent business children from enabling a tree. Custom-sort headers/carets project shared multi-sort; only changed clauses are submitted. Priority text participates in column measurement and does not duplicate accessible priority descriptions.
|
|
21
21
|
|
|
22
|
-
Native positional cell keys can recreate editors during column reorder; sizing/alignment preserve them.
|
|
22
|
+
Native positional cell keys can recreate editors during column reorder; sizing/alignment preserve them. See the [known table server-rendering limitation](collections.md#server-rendering-and-hydration).
|
|
23
23
|
|
|
24
24
|
The bounded native table viewport owns scrolling and is passed to useUiCollectionView; its allocation host supplies size. ElTable height and auto-layout sticky headers retain header visibility. Business footer content stays outside the native viewport; append recovery uses the native append area. Arbitrary column-filter editors use native popovers/icons because the native filter dropdown accepts option lists, not range forms. Removable criteria use ElTag's native close button with criterion-specific names and disabled state.
|
|
25
25
|
|
package/docs/customization.md
CHANGED
|
@@ -117,9 +117,9 @@ UiDrawer (modal and retained panel modes) and UiPopover consume this backend's n
|
|
|
117
117
|
|
|
118
118
|
UiPopover retains Element Plus’s default visible arrow using `.el-popper__arrow` directly inside the native popper surface, with resolved `data-popper-placement`. Existing light/dark border/background tokens apply. The adapter positions the arrow toward the anchor after flips and viewport clamping, outside the scrolling body; no application arrow markup or business prop is required.
|
|
119
119
|
|
|
120
|
-
##
|
|
120
|
+
## Calendar, suggestion and submenu arrows
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
Calendar popups and suggestions use the [native Popover arrow](presentation.md#native-arrows-in-composed-pickers-and-suggestions). Tooltips and single- and multiple-selection popups use native defaults. Command-menu popups follow the arrowless native ElSubMenu presentation.
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
### Navbar row sizing
|
package/docs/presentation.md
CHANGED
|
@@ -103,7 +103,7 @@ Root popup transition completion initializes focus only when focus is not alread
|
|
|
103
103
|
|
|
104
104
|
## Verification and limits
|
|
105
105
|
|
|
106
|
-
Use the
|
|
106
|
+
Use the native comparison fixture in [docs/examples/NativeReference.vue](examples/NativeReference.vue) alongside an application scenario that exercises the relevant shared contract. In a browser, verify popup typography, keyboard interaction, focus, narrow navigation, scrolling, overlay bounds, contrast and motion. See [native test setup](testing.md#run-the-backends-native-tests) for the source-checkout runner.
|
|
107
107
|
|
|
108
108
|
### Known light-mode editor contrast limitation
|
|
109
109
|
|
|
@@ -36,7 +36,7 @@ Temporal range-mode arrows use the native Back, Right and Switch components from
|
|
|
36
36
|
|
|
37
37
|
### Concise upload states
|
|
38
38
|
|
|
39
|
-
The region shows its chooser/artwork only in the ready state. Working and retained states display file/progress or file/preview with available actions. Recovery uses one short error and a row of actions. ElProgress formats visible percentages as localized whole percentages using its native format hook; the bar and reported progress retain their original precision, and unknown totals show no percentage. Progress labels remain accessible without a duplicate visible caption; preview displays the filename once. Embedded previews use a compact file summary.
|
|
39
|
+
The region shows its chooser/artwork only in the ready state. Working and retained states display file/progress or file/preview with available actions. Recovery uses one short error and a row of actions. ElProgress formats visible percentages as localized whole percentages using its native format hook; the bar and reported progress retain their original precision, and unknown totals show no percentage. Progress labels remain accessible without a duplicate visible caption; preview displays the filename once. Embedded previews use a compact file summary.
|
|
40
40
|
|
|
41
41
|
This backend's compact/regular/large allocations are currently 10/12/18rem. There is no shared minimum. The allocation remains stable across states; the host must respect the backend minimum size; content never introduces scrolling. These are adapter defaults, not business-authored dimensions or browser geometry acceptance.
|
|
42
42
|
|
|
@@ -54,7 +54,7 @@ Upload regions declare minimum inline/block allocations and do not scroll intern
|
|
|
54
54
|
|
|
55
55
|
Fill uses compact dragger padding so the minimum reserves sufficient room for the native chooser and preview. Delivery failures use the same single error line and recovery-action arrangement as acquisition failures, avoiding an extra filename row.
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
In a browser, check compact, regular, large and fill allocations at the minimum and at narrow widths. Repeat at each supported control size with known, unknown and hidden progress, long file names and errors, delivery retry, portrait and landscape previews, and no preview. Verify that visible descendants stay within the allocated region and that actions remain reachable.
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
@@ -64,7 +64,7 @@ UiUploadProgress presents both active transfer progress/Cancel and transfer fail
|
|
|
64
64
|
|
|
65
65
|
UiUploadRegion composes the same progress view for transfer recovery, without duplicating the filename, error or Retry. Acquisition rejection and delivery failure remain region-owned. Omitting the progress indicator does not omit essential transfer feedback or selected Retry; cancellation is not an error, but an owner may retain a Retry action. Recovery layout responds to recovery participation, including cancellation without an error message. Keyboard context is preserved across standalone Retry/Cancel changes; region focus coordination includes the chooser. DOM checks cover wiring and lifetime; browser fitting and assistive-technology checks remain separate.
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
To verify standalone recovery, render UiUploadProgress with a named file and a failing transfer. Check that the message and Cancel and Retry remain visible at narrow widths. Repeat the failure on Retry and verify focus stays in the recovery context. Exercise the same failure inside UiUploadRegion to check that the filename and actions appear once.
|
|
68
68
|
|
|
69
69
|
### Keyboard switch integration
|
|
70
70
|
|
|
@@ -29,9 +29,9 @@ Does not declare `collapsible.color.v1`. Core ignores the optional color request
|
|
|
29
29
|
|
|
30
30
|
## Verification and limits
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
Verify selection codecs, retained values, clearing and source states, notice urgency, passive badge semantics, definition-list associations, manual tab activation and lazy content retention. In a browser, check geometry, focus containment, visible focus and touch behavior. Check announcements with assistive technology. Use the core component references for shared behavior and the installed theme’s guidance for contrast.
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
For collapsible sections, exercise denied requests, accessible summary names, local disabled state, lazy retention and disposal. See [native testing](testing.md#run-the-backends-native-tests) for the source-checkout runner.
|
|
35
35
|
|
|
36
36
|
## Scrolling content and focus clearance
|
|
37
37
|
|
|
@@ -43,7 +43,7 @@ The dialog surface padding is redistributed among header/body/footer so the body
|
|
|
43
43
|
|
|
44
44
|
UiNotice retains specialized ElAlert-class markup because the installed ElAlert wraps default content in a paragraph, which cannot host arbitrary rich blocks. Title-with-body treatment follows the installed with-description class; title-only notices omit that treatment. The close affordance uses the native Close icon and alert styling on a real focusable button. Its logical placement and reserved content space support RTL. A wrapping action row replaces adjacent ElButton margins. Native alert styling remains dependency-sensitive and must be checked on upgrades.
|
|
45
45
|
|
|
46
|
-
Dismissal is opt-in through dismissible. The close control requests dismissal; business code decides visibility and focus handoff. Recovery actions retain source and tab order with backend-owned spacing and wrapping below the message. No automatic dismissal, timer or Escape handling is installed. Rich custom actions own their internal layout.
|
|
46
|
+
Dismissal is opt-in through dismissible. The close control requests dismissal; business code decides visibility and focus handoff. Recovery actions retain source and tab order with backend-owned spacing and wrapping below the message. No automatic dismissal, timer or Escape handling is installed. Rich custom actions own their internal layout. Exercise denied, repeated and accepted dismissal, then change the language and verify content retention. In a browser, dismiss with the keyboard and check that the application restores focus to the intended target. Verify narrow LTR and RTL layouts and check announcements with assistive technology.
|
|
47
47
|
|
|
48
48
|
## Notice presentation
|
|
49
49
|
|
package/docs/setup.md
CHANGED
|
@@ -4,19 +4,19 @@ This guide owns the application integration requirements for `@uninterface/backe
|
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
7
|
-
Use
|
|
7
|
+
Use Node.js 24 or 26, Vue `^3.5.18`, and Vite `^7.3.7 || ~8.1.6 || ~8.2.4 || ^8.3.3` with a compatible `@vitejs/plugin-vue`. The backend requires Vite for its build hook. Use Vue-aware TypeScript checking and keep one runtime copy of Vue and core.
|
|
8
8
|
|
|
9
9
|
## Select the backend
|
|
10
10
|
|
|
11
11
|
The release package ships compiled ES modules and TypeScript declarations.
|
|
12
|
-
Install
|
|
13
|
-
`@uninterface/backend`. In the command below, replace `VERSION` with the
|
|
14
|
-
backend version you want to install.
|
|
12
|
+
Install `@uninterface/backend-element-plus` under the alias `@uninterface/backend`.
|
|
15
13
|
|
|
16
14
|
```sh
|
|
17
|
-
npm install @uninterface/uninterface
|
|
15
|
+
npm install @uninterface/uninterface@^0.1.0 @uninterface/backend@npm:@uninterface/backend-element-plus@2.14.0
|
|
18
16
|
```
|
|
19
17
|
|
|
18
|
+
Choose a Core version that satisfies the selected backend release's peer dependency.
|
|
19
|
+
|
|
20
20
|
Use TypeScript's `Bundler` module resolution to resolve the package's type
|
|
21
21
|
exports. See [package build](package-build.md) for a source checkout.
|
|
22
22
|
|
|
@@ -136,6 +136,8 @@ Integration supplies a fresh native ID/z-index context per application. Native I
|
|
|
136
136
|
|
|
137
137
|
Render Vue's teleport output into its target hosts before hydration. Native tooltip hosts use `#el-popper-container-<idPrefix>`; emit the matching container, including empty anchors. The verified baseline covers text/multiline fields, checkbox, form submit/reset, icons and locale/mode. Open overlays and general selection SSR remain outside that baseline. Backend checkbox label coordination settles after mount without replacing the editor.
|
|
138
138
|
|
|
139
|
+
For `UiTable` and table-mode `UiCollectionView`, see the [known server-rendering limitation](collections.md#server-rendering-and-hydration).
|
|
140
|
+
|
|
139
141
|
## Typography: fonts first, backend styles second
|
|
140
142
|
|
|
141
143
|
| Choice | First import: fonts |
|
|
@@ -152,6 +154,6 @@ Import one selected font entry before the stable `@uninterface/backend/style.css
|
|
|
152
154
|
|
|
153
155
|
### Common icon assets
|
|
154
156
|
|
|
155
|
-
The common catalogue supplies 58 semantic names with independent override keys. The
|
|
157
|
+
The common catalogue supplies 58 semantic names with independent override keys. The artwork includes icons from `@element-plus/icons-vue` 2.3.2. Setup imports the catalogue as local Vue components. Applications should budget for the whole catalogue in the bundle. Native internal glyphs are separate from the override catalogue. For semantic names and overrides, see `docs/api/constants/uiIconNames.md` and `docs/guides/localization-and-icons.md` in the Core package. See [asset sources and mappings](icon-licenses/SOURCES.md).
|
|
156
158
|
|
|
157
159
|
`globe` and `external-link` are original backend-owned 1024-unit SVGs; they are not Element Plus exports. Sorting uses native `SortUp`/`SortDown` simple arrows, with ordering meaning supplied by the action/state label. `create` reuses Plus without sharing the `add` override key. See [asset provenance](../THIRD-PARTY-NOTICES.md).
|
package/docs/table-columns.md
CHANGED
|
@@ -32,6 +32,6 @@ UiTable supports `addRow`/`addRowLabel` through table.add-row.v1. A private back
|
|
|
32
32
|
|
|
33
33
|
The creation affordance is the final body row after the records and before the summary. It always scrolls vertically with records and is never pinned to the viewport; long tables require reaching the final row. The declared summary retains its independent bottom position. A shorter allocation releases header pinning when necessary. Native scroll padding keeps focused editors clear of sticky regions. The existing modal/body overflow fallback remains available. Check visible action focus, pointer access, unobscured insertion focus, dark/RTL, empty membership and independent pending restrictions.
|
|
34
34
|
|
|
35
|
-
ElTable's native append slot follows its summary. The adapter instead inserts one private tbody target between the native record body and native tfoot, then teleports its own creation tr into that target. This preserves native column geometry and summary semantics without passing a dummy record through ElTable. The row group, target replacement, condition changes and unmount cleanup belong to this adapter; continuation/error append slots retain their native route. The
|
|
35
|
+
ElTable's native append slot follows its summary. The adapter instead inserts one private tbody target between the native record body and native tfoot, then teleports its own creation tr into that target. This preserves native column geometry and summary semantics without passing a dummy record through ElTable. The row group, target replacement, condition changes and unmount cleanup belong to this adapter; continuation/error append slots retain their native route. The creation row mounts in the browser. See the [known table server-rendering limitation](collections.md#server-rendering-and-hydration).
|
|
36
36
|
|
|
37
37
|
The creation preview adds no separate top border. Native data-row dividers continue through the final record: when the private creation tbody follows it, a scoped rule restores the last native record’s ordinary `--el-table-border`, which ElTable otherwise suppresses for a summary footer. The summary cells own a visible top border using `--el-border-color`, including blank and merged cells; attaching it to cells preserves the boundary with the sticky summary. The creation row stays in normal flow. Verify the ordinary divider before New line and the distinct boundary above the total in light/dark modes and while scrolling.
|
package/docs/testing.md
CHANGED
|
@@ -22,7 +22,22 @@ The adapter locates actual rendered select/checkbox parts. It must not force cli
|
|
|
22
22
|
|
|
23
23
|
## Verify application behavior
|
|
24
24
|
|
|
25
|
-
The
|
|
25
|
+
The application Playwright fixture above uses your own app and test runner.
|
|
26
|
+
|
|
27
|
+
## Run the backend's native tests
|
|
28
|
+
|
|
29
|
+
From this checkout with Node.js 24:
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
npm ci
|
|
33
|
+
npm run test:dom
|
|
34
|
+
npx playwright install chromium
|
|
35
|
+
npm run test:browser
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The native suites build package-local fixtures through the Uninterface Testing
|
|
39
|
+
harness. Set `PLAYWRIGHT_CHROMIUM_EXECUTABLE` to use an installed Chromium
|
|
40
|
+
executable. Browser results are written to `var/playwright/`.
|
|
26
41
|
|
|
27
42
|
Verify shared keyboard, focus, naming, validation feedback, selection retention and layout behavior as well as native presentation. Capability declarations and simulated DOM results do not replace browser or manual accessibility checks. Applications select their own conformance policy; the adapter does not import another project's contrast exceptions.
|
|
28
43
|
|
package/docs/typography.md
CHANGED
|
@@ -40,7 +40,7 @@ Use the same order when composing an application stylesheet:
|
|
|
40
40
|
@import '@uninterface/backend/style.css';
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
Keep CSS imports before ordinary rules. Font entries own family selection, language fallbacks and delivery; `style.css` owns component styling and native font-token mapping. It consumes the selected set without replacing it. Network and Bundled use identical families for the selected set. Importing multiple font entries is unsupported.
|
|
43
|
+
Keep CSS imports before ordinary rules. Font entries own family selection, language fallbacks and delivery; `style.css` owns component styling and native font-token mapping. It consumes the selected set without replacing it. Network and Bundled use identical families for the selected set. Importing multiple font entries is unsupported.
|
|
44
44
|
|
|
45
45
|
## System or application-owned fonts
|
|
46
46
|
|
package/esm/package.json.js
CHANGED
|
@@ -6,7 +6,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6
6
|
props: {
|
|
7
7
|
id: {},
|
|
8
8
|
message: {},
|
|
9
|
-
inline: { type: Boolean }
|
|
9
|
+
inline: { type: Boolean },
|
|
10
|
+
deferred: { type: Boolean }
|
|
10
11
|
},
|
|
11
12
|
setup(__props) {
|
|
12
13
|
const field = inject(fieldPresentationKey);
|
|
@@ -19,7 +20,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
20
|
return (_ctx, _cache) => {
|
|
20
21
|
return openBlock(), createElementBlock("div", {
|
|
21
22
|
id: __props.id,
|
|
22
|
-
class: normalizeClass(["el-form-item__error element-field-error", {
|
|
23
|
+
class: normalizeClass(["el-form-item__error element-field-error", {
|
|
24
|
+
"el-form-item__error--inline": __props.inline,
|
|
25
|
+
"element-visually-hidden": __props.deferred
|
|
26
|
+
}]),
|
|
23
27
|
role: "alert"
|
|
24
28
|
}, toDisplayString(__props.message), 11, _hoisted_1);
|
|
25
29
|
};
|
package/esm/src/UiField2.vue.js
CHANGED
|
@@ -36,6 +36,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
const props = __props;
|
|
37
37
|
const nativeForm = useFieldFormContext(() => policy.value.showFailure);
|
|
38
38
|
const policy = useUiFieldStrategies(() => props.binding, {
|
|
39
|
+
...{ feedbackRoot: element },
|
|
39
40
|
help: "together",
|
|
40
41
|
defaultLabels: () => nativeForm?.labelPosition === "left" ? "beside-far" : nativeForm?.labelPosition === "right" ? "beside-near" : "above",
|
|
41
42
|
defaultBeside: () => nativeForm?.labelPosition === "left" ? "beside-far" : "beside-near",
|
|
@@ -45,6 +46,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
46
|
defaultFailure: () => nativeForm?.showMessage === false ? "none" : "show-below",
|
|
46
47
|
labels: ["above", "beside"]
|
|
47
48
|
});
|
|
49
|
+
const deferFeedback = computed(
|
|
50
|
+
() => "inlineFeedbackDeferred" in policy.value && policy.value.inlineFeedbackDeferred === true
|
|
51
|
+
);
|
|
48
52
|
const inlineMessage = computed(() => Boolean(nativeForm?.inlineMessage));
|
|
49
53
|
const controlSize = useControlSize("UiField");
|
|
50
54
|
const checkboxes = ref(0);
|
|
@@ -111,8 +115,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
111
115
|
key: 0,
|
|
112
116
|
id: `${__props.binding.id}-issue`,
|
|
113
117
|
message: error,
|
|
114
|
-
inline: inlineMessage.value ?? false
|
|
115
|
-
|
|
118
|
+
inline: inlineMessage.value ?? false,
|
|
119
|
+
deferred: deferFeedback.value
|
|
120
|
+
}, null, 8, ["id", "message", "inline", "deferred"])) : createCommentVNode("v-if", true)
|
|
116
121
|
]),
|
|
117
122
|
default: withCtx(() => [
|
|
118
123
|
createElementVNode("div", _hoisted_4, [
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uninterface/backend-element-plus",
|
|
3
|
-
"version": "2.14.0
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": "^24.0.0 || ^26.0.0"
|
|
8
|
+
},
|
|
6
9
|
"exports": {
|
|
7
10
|
".": {
|
|
8
11
|
"types": "./types/src/index.d.ts",
|
|
@@ -57,9 +60,10 @@
|
|
|
57
60
|
"url": "git+https://github.com/uninterface/backend-element-plus.git"
|
|
58
61
|
},
|
|
59
62
|
"peerDependencies": {
|
|
60
|
-
"@uninterface/testing": "
|
|
61
|
-
"@uninterface/uninterface": "
|
|
62
|
-
"
|
|
63
|
+
"@uninterface/testing": "^0.1.0",
|
|
64
|
+
"@uninterface/uninterface": "^0.1.0",
|
|
65
|
+
"vite": "^7.3.7 || ~8.1.6 || ~8.2.4 || ^8.3.3",
|
|
66
|
+
"vue": "^3.5.18"
|
|
63
67
|
},
|
|
64
68
|
"peerDependenciesMeta": {
|
|
65
69
|
"@uninterface/testing": {
|
package/style.css
CHANGED
|
@@ -2,6 +2,7 @@ type __VLS_Props = {
|
|
|
2
2
|
id: string;
|
|
3
3
|
message: string;
|
|
4
4
|
inline: boolean;
|
|
5
|
+
deferred: boolean;
|
|
5
6
|
};
|
|
6
7
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
8
|
declare const _default: typeof __VLS_export;
|
|
@@ -26,24 +26,25 @@ export declare function useFieldPresentation(checkbox?: boolean): {
|
|
|
26
26
|
describedBy?: string;
|
|
27
27
|
}) => string | undefined;
|
|
28
28
|
policy: ComputedRef<{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
29
|
+
inlineFeedbackDeferred: boolean;
|
|
30
|
+
showHelp: boolean;
|
|
31
|
+
active: boolean;
|
|
32
|
+
labelsSpecified: boolean;
|
|
33
|
+
requestedLabels: "above" | "floating" | "show" | "beside" | "beside-far" | "beside-near" | "hidden" | undefined;
|
|
34
|
+
checkableMode: "flushed" | "control-aligned" | "separated" | undefined;
|
|
35
|
+
labelAlignment: "near" | "far" | undefined;
|
|
36
|
+
checkableLabelAlignment: "near" | "far" | undefined;
|
|
37
|
+
labels: "beside-near" | "beside-far" | "hidden" | "above" | "floating" | "integrated" | "adjacent";
|
|
38
|
+
requiredAnnotations: "prefix" | "suffix" | "no";
|
|
39
|
+
annotationsSpecified: boolean;
|
|
40
|
+
failureSpecified: boolean;
|
|
41
|
+
markerPosition: "prefix" | "suffix";
|
|
42
|
+
marker: "required" | undefined;
|
|
43
|
+
help: "together" | "replace-help";
|
|
44
|
+
requestedFailure: "none" | "show" | "show-below" | "show-embedded" | "show-tooltip" | undefined;
|
|
45
|
+
failure: "none" | ("show-below" | "show-embedded" | "show-tooltip");
|
|
46
|
+
showFailure: boolean;
|
|
47
|
+
issue: string | null;
|
|
48
|
+
describedBy: string | undefined;
|
|
48
49
|
}> | undefined;
|
|
49
50
|
};
|