Skip to content

feat(ui5-barcode-scanner-dialog): add format to scan-success event payload#13718

Open
NakataCode wants to merge 2 commits into
mainfrom
barcode-scanner-dialog-format
Open

feat(ui5-barcode-scanner-dialog): add format to scan-success event payload#13718
NakataCode wants to merge 2 commits into
mainfrom
barcode-scanner-dialog-format

Conversation

@NakataCode

@NakataCode NakataCode commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

The scan-success event now includes a format field containing the barcode format string (e.g. "QR_CODE", "EAN_13", "CODE_128") alongside the existing text and rawBytes fields.

The format is derived from ZXing's BarcodeFormat reverse-mapped enum, exposed as a typed string union (BarcodeFormatString) so consumers can do format-specific branching without depending on ZXing internals.

BarcodeFormatString is exported for consumer type safety.

Related to: #13490

@NakataCode NakataCode temporarily deployed to netlify-preview June 23, 2026 11:56 — with GitHub Actions Inactive
@sap-ui5-webcomponents-release

sap-ui5-webcomponents-release Bot commented Jun 23, 2026

Copy link
Copy Markdown

Comment thread packages/fiori/src/BarcodeScannerDialog.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants