@uipath/du-validation-station-wc 1.0.0-rc.5 → 1.0.0-rc.6
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 +74 -0
- package/README.md +17 -4
- package/chunk-6lknPC7w.js +1 -0
- package/{chunk-BzOj1_a_.js → chunk-CdmSafof.js} +70 -70
- package/chunk-CrtDo-y5.js +1 -0
- package/chunk-CxkKweXN.js +3 -0
- package/chunk-EQKMVQK0.js +872 -0
- package/chunk-YP4-3UR0.js +3 -0
- package/chunk-w4GBVuJJ.js +1 -0
- package/du-assets/du-shared-ui/i18n/en.json +2 -0
- package/du-assets/du-validation-station-feature/i18n/en.json +4 -0
- package/index.html +2 -2
- package/main.js +26 -26
- package/package.json +1 -1
- package/styles.css +1 -1
- package/styles.js +1 -1
- package/types.d.ts +58 -25
- package/chunk-AP6mI5-o.js +0 -1
- package/chunk-BlsTLi-R.js +0 -1
- package/chunk-CQiCUELf.js +0 -872
- package/chunk-CrgnBhJI.js +0 -3
- package/chunk-EWp72vL4.js +0 -1
- package/chunk-WenrUcot.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,80 @@ follows [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.0.0-rc.6] - 2026-11-17
|
|
11
|
+
|
|
12
|
+
Sixth release candidate for `1.0.0`. No element tag, input, event or
|
|
13
|
+
command method from `1.0.0-rc.5` is renamed or removed, and the new options
|
|
14
|
+
are opt-in. Some compact- and modern-mode UI appears by default: the
|
|
15
|
+
field filter bar's confirmed counter and the *Replace value* button. A
|
|
16
|
+
document supplied through `processedDocument` now opens in the modern
|
|
17
|
+
display mode, and the standalone table editor's types take the
|
|
18
|
+
representation parameter: read **Changed** before upgrading.
|
|
19
|
+
|
|
20
|
+
> 🚀 This is a **release candidate**. Please report any issues before the
|
|
21
|
+
> stable release.
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- In compact and modern display modes, the field filter bar shows how many
|
|
26
|
+
fields are confirmed, as "3 of 10 confirmed". A field confirmed as missing
|
|
27
|
+
counts, and each instance of a value counts separately.
|
|
28
|
+
- In compact and modern display modes, a filled field and a filled table cell
|
|
29
|
+
show a *Replace value* button, which replaces the value with the words
|
|
30
|
+
selected in the document, as the actions menu's entry and its keyboard
|
|
31
|
+
shortcut do. It is disabled while nothing usable is selected, and the
|
|
32
|
+
document type field does not show it.
|
|
33
|
+
- `documentViewerOptions.floatingButtonsOptions.showDownloadButton` adds a
|
|
34
|
+
"Download document" entry to the document viewer's menu, which saves the
|
|
35
|
+
original file the viewer was given. Off by default; hidden for a text-only
|
|
36
|
+
document.
|
|
37
|
+
- `options.hideDiscardButton` hides the *Discard* button in the fields panel
|
|
38
|
+
footer and turns off its keyboard shortcut, for hosts that keep edits as a
|
|
39
|
+
draft and offer their own discard. Off by default.
|
|
40
|
+
- The document-viewer element accepts an IXP document: `taxonomy` as an
|
|
41
|
+
`IXPTaxonomy` and `extractionResult` as an `IXPReviewedExtraction` (a bare
|
|
42
|
+
`IXPExtraction` works, with nothing confirmed). Its element types take the
|
|
43
|
+
representation parameter — `IDocumentViewerStandaloneWcElement<'ixp'>` — and
|
|
44
|
+
default to both representations, so existing code compiles unchanged.
|
|
45
|
+
- The table-editor element accepts an IXP document the same way, including
|
|
46
|
+
`predictedExtractionResult` as an `IXPExtraction`, and its
|
|
47
|
+
`extractionResultChanged` then carries an `IXPReviewedExtraction`.
|
|
48
|
+
|
|
49
|
+
### Changed
|
|
50
|
+
|
|
51
|
+
- A document supplied through `processedDocument` opens in the modern display
|
|
52
|
+
mode. It carries no customizations, so it previously opened in compact.
|
|
53
|
+
- `ICompactTableEditorStandaloneWcElement` and its event map take the
|
|
54
|
+
representation parameter. The event map previously fixed it to `'du'`, so a
|
|
55
|
+
listener that types `extractionResultChanged`'s detail as `ExtractionResult`
|
|
56
|
+
now needs `ICompactTableEditorStandaloneWcElement<'du'>`.
|
|
57
|
+
- The compact fields-form and table-editor elements no longer supply an empty
|
|
58
|
+
document for an IXP extraction. One whose sources carry `references`, or
|
|
59
|
+
that cites nothing, loads without a document. One whose sources cite by
|
|
60
|
+
`boundingBoxes` alone is not supported on these elements: locating those
|
|
61
|
+
boxes needs the document, which neither element has, so such an
|
|
62
|
+
`extractionResult` does not load and such a `predictedExtractionResult`
|
|
63
|
+
provides no predicted values.
|
|
64
|
+
- In compact and modern display modes, the popover listing the fields a
|
|
65
|
+
document word belongs to now shows each field's group path, instance number
|
|
66
|
+
and type icon, lists every field instead of the first three, and highlights
|
|
67
|
+
the row under the pointer.
|
|
68
|
+
- In modern display mode, each field group instance header reads
|
|
69
|
+
"1 of 2 (values)", as in compact, instead of showing the instance number in
|
|
70
|
+
a box.
|
|
71
|
+
|
|
72
|
+
### Fixed
|
|
73
|
+
|
|
74
|
+
- The prediction diff and the popover that lists the fields referencing a
|
|
75
|
+
word compare reference boxes with a small tolerance, so boxes drawn slightly
|
|
76
|
+
differently around the same words no longer count as a different reference.
|
|
77
|
+
- `fieldValueChanged` is emitted when a value of an IXP document is edited, on
|
|
78
|
+
every element that has the output. It was emitted only for UiPath
|
|
79
|
+
extractions.
|
|
80
|
+
- In modern display mode, fields inside a field group no longer keep an empty
|
|
81
|
+
chevron-wide gap on their left; fields next to a field group keep it, so
|
|
82
|
+
their names stay aligned with the group's chevron.
|
|
83
|
+
|
|
10
84
|
## [1.0.0-rc.5] - 2026-11-11
|
|
11
85
|
|
|
12
86
|
Fifth release candidate for `1.0.0`. No element tag, input, event or
|
package/README.md
CHANGED
|
@@ -163,9 +163,9 @@ them to resolve to anything other than `any`.
|
|
|
163
163
|
|
|
164
164
|
### Supplying an IXP extraction
|
|
165
165
|
|
|
166
|
-
The validation-station
|
|
167
|
-
in the IXP representation: `taxonomy` as an
|
|
168
|
-
Schema) and `extractionResult` as an `IXPReviewedExtraction` (the extracted
|
|
166
|
+
The validation-station, compact fields-form, table-editor and document-viewer
|
|
167
|
+
elements also accept a document in the IXP representation: `taxonomy` as an
|
|
168
|
+
`IXPTaxonomy` (the output JSON Schema) and `extractionResult` as an `IXPReviewedExtraction` (the extracted
|
|
169
169
|
`output`, an `attribution` map keyed by JSON Pointer, and optional
|
|
170
170
|
`confirmations` — the pointers of the values already confirmed). Supply both in
|
|
171
171
|
the same representation. A row's pointer (`/Items/2`) in `confirmations`
|
|
@@ -200,6 +200,16 @@ const el = document.querySelector('ui-du-validation-station-standalone-wc-elemen
|
|
|
200
200
|
el.addEventListener('extractionResultChanged', (e) => saveDraft(e.detail)); // IXPReviewedExtraction
|
|
201
201
|
```
|
|
202
202
|
|
|
203
|
+
The table-editor element has no save: its `extractionResultChanged` carries
|
|
204
|
+
the IXP extraction with the current `confirmations`. The document-viewer
|
|
205
|
+
element only displays the document: it takes the same two inputs and emits no
|
|
206
|
+
extraction.
|
|
207
|
+
|
|
208
|
+
The compact fields-form and table-editor elements have no document, so they
|
|
209
|
+
do not support an IXP extraction whose sources cite by `boundingBoxes` alone:
|
|
210
|
+
those boxes can only be located in the document, and such an extraction does
|
|
211
|
+
not load. An extraction whose sources carry `references` loads without one.
|
|
212
|
+
|
|
203
213
|
### Updating the data inputs after mount
|
|
204
214
|
|
|
205
215
|
These are object inputs, and the component compares them by reference.
|
|
@@ -283,7 +293,7 @@ optional.
|
|
|
283
293
|
| Option | Effect |
|
|
284
294
|
|---|---|
|
|
285
295
|
| `intendedUse` | `'extraction-validation'` (default) when a reviewer checks extracted data before automation acts on it, `'document-annotation'` when an annotator produces the reference data a model learns from. Tunes the wording and the in-feature actions of features that are already on; never turns a feature on or off. Unknown values behave as the default. |
|
|
286
|
-
| `hideSubmitButton`, `hideReportAsExceptionButton`, `hideDocumentTypeField`, `hideFields`, `hideBusinessRules` | Hide the matching part of the fields panel. |
|
|
296
|
+
| `hideSubmitButton`, `hideDiscardButton`, `hideReportAsExceptionButton`, `hideDocumentTypeField`, `hideFields`, `hideBusinessRules` | Hide the matching part of the fields panel. |
|
|
287
297
|
| `emptyTaxonomyMessage` | Text shown under the "No taxonomy defined" title when the selected document type has no fields (compact mode). Rendered verbatim, so pass it already localized; when unset, a default about there being no fields to validate is shown. |
|
|
288
298
|
| `fieldsSectionPosition` | `'left'` (default) or `'right'` — which side the fields panel sits on. |
|
|
289
299
|
| `fieldFilterOptions` | Trims the compact field-filter toolbar: `hideBar` removes it entirely; `hideConfirmed`, `hideNotExtracted` and `hideNoFlaggedIssues` each drop one entry of the *Hide fields* menu, and the menu button disappears once all three are hidden. A hidden filter also stops filtering. |
|
|
@@ -313,6 +323,9 @@ el.options = {
|
|
|
313
323
|
(also disables its keyboard shortcut) and `hideLanguageSelect` (removes the
|
|
314
324
|
dropdown, where the `DisableLanguageSelection` customization only disables
|
|
315
325
|
it). `defaultInteractionType` picks the selection mode the viewer starts in.
|
|
326
|
+
`showDownloadButton` is the one switch that adds a control: a "Download
|
|
327
|
+
document" menu entry that saves the original file the viewer was given. It is
|
|
328
|
+
off unless the host sets it, and stays hidden for a text-only document.
|
|
316
329
|
|
|
317
330
|
The top-level `hideReferencedFieldsPopover` hides the popover that lists the
|
|
318
331
|
fields referencing a word.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-eWXhx1GK.js";import"./chunk-B_I09ALh.js";import"./chunk-CdmSafof.js";import{H as ov}from"./main.js";export{ov as UiCompactFieldsFormComponent};
|