@scandit/web-datacapture-core 7.4.1 → 7.5.0-beta.2
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/build/electron/common.cjs +1 -1
- package/build/electron/constants.cjs +1 -1
- package/build/electron/main.cjs +1 -1
- package/build/electron/preload.cjs +1 -1
- package/build/js/{Camera-wG9iakev.d.ts → Camera-BoUtNCzS.d.ts} +48 -2
- package/build/js/Camera.d.ts +4 -1
- package/build/js/Camera.js +1 -1
- package/build/js/CameraAccess.d.ts +4 -1
- package/build/js/CameraRelated.d.ts +4 -1
- package/build/js/DataCaptureContext.d.ts +4 -1
- package/build/js/DataCaptureContext.js +1 -1
- package/build/js/DataCaptureContextRelated.d.ts +5 -2
- package/build/js/DataCaptureVersion.js +1 -1
- package/build/js/DataCaptureView.d.ts +4 -1
- package/build/js/DataCaptureView.js +1 -1
- package/build/js/Defaults.d.ts +4 -1
- package/build/js/FrameData.d.ts +5 -2
- package/build/js/ImageFrameSource.d.ts +4 -1
- package/build/js/NotificationPresenter/NotificationBuilder.d.ts +25 -0
- package/build/js/NotificationPresenter/NotificationBuilder.js +1 -0
- package/build/js/NotificationPresenter/NotificationConfiguration.d.ts +24 -0
- package/build/js/NotificationPresenter/NotificationConfiguration.js +1 -0
- package/build/js/NotificationPresenter/NotificationPresenter.d.ts +14 -0
- package/build/js/NotificationPresenter/NotificationPresenter.js +0 -0
- package/build/js/NotificationPresenter/NotificationStyle.d.ts +9 -0
- package/build/js/NotificationPresenter/NotificationStyle.js +1 -0
- package/build/js/NotificationPresenter/index.d.ts +25 -0
- package/build/js/NotificationPresenter/index.js +1 -0
- package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +32 -0
- package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.js +1 -0
- package/build/js/NotificationPresenter/private/presets.d.ts +31 -0
- package/build/js/NotificationPresenter/private/presets.js +1 -0
- package/build/js/ScanditIcon.js +1 -1
- package/build/js/ScanditIconBuilder.d.ts +3 -3
- package/build/js/ScanditIconBuilder.js +1 -1
- package/build/js/SingleImageUploader.d.ts +4 -1
- package/build/js/chunks/chunk-3MEGNPVU.js +1 -0
- package/build/js/chunks/{chunk-GDUWHYYI.js → chunk-3RIR7ALE.js} +1 -1
- package/build/js/chunks/chunk-43NA46NY.js +11 -0
- package/build/js/chunks/chunk-6YZS76QW.js +1 -0
- package/build/js/chunks/{chunk-NA6AZIR5.js → chunk-72A5262S.js} +1 -1
- package/build/js/chunks/chunk-7XGCH3B3.js +1 -0
- package/build/js/chunks/{chunk-THEE4TYK.js → chunk-CMG3PSOW.js} +1 -1
- package/build/js/chunks/chunk-EKY4M37S.js +5 -0
- package/build/js/chunks/{chunk-ZF7CDMAC.js → chunk-FFTRSHP6.js} +1 -1
- package/build/js/chunks/{chunk-RWDRTV7B.js → chunk-FPCLZS52.js} +1 -1
- package/build/js/chunks/chunk-GGMX65YP.js +1 -0
- package/build/js/chunks/{chunk-XLFQMCQP.js → chunk-HNUWDILZ.js} +1 -1
- package/build/js/chunks/chunk-J3PS3NRY.js +21 -0
- package/build/js/chunks/chunk-KOL5TPI5.js +1 -0
- package/build/js/chunks/chunk-KUVVZN66.js +1 -0
- package/build/js/chunks/{chunk-2T36DQ52.js → chunk-L3SHJKNC.js} +1 -1
- package/build/js/chunks/chunk-NPIPIS7X.js +1 -0
- package/build/js/chunks/{chunk-Q24GE5CE.js → chunk-OFNRGDFQ.js} +1 -1
- package/build/js/chunks/{chunk-FKIR44OY.js → chunk-OKRDW7LX.js} +1 -1
- package/build/js/chunks/{chunk-MDSBSLWV.js → chunk-PFC2HW6V.js} +1 -1
- package/build/js/chunks/{chunk-OH5WXZBN.js → chunk-RMKJUHZW.js} +1 -1
- package/build/js/chunks/chunk-RXT3JWWR.js +1 -0
- package/build/js/chunks/chunk-SNP4G4KV.js +0 -0
- package/build/js/chunks/{chunk-7B2VPGLP.js → chunk-TCJPGGHY.js} +1 -1
- package/build/js/chunks/{chunk-QQXPUJCE.js → chunk-UGUDXT2N.js} +1 -1
- package/build/js/chunks/{chunk-I2LMKSHH.js → chunk-UUGROS73.js} +1 -1
- package/build/js/chunks/chunk-X5RXFCPZ.js +1 -0
- package/build/js/index.d.ts +6 -2
- package/build/js/index.js +3 -3
- package/build/js/private/CameraAccess.d.ts +4 -1
- package/build/js/private/CameraManager.d.ts +4 -1
- package/build/js/private/CameraManager.js +1 -1
- package/build/js/private/CanvasDrawerWithMetrics.d.ts +6 -3
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +7 -4
- package/build/js/private/DataCaptureContextRelated.d.ts +4 -1
- package/build/js/private/FrameReaders/FrameReader.d.ts +4 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +4 -1
- package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +4 -1
- package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
- package/build/js/private/FrameReaders/index.d.ts +4 -1
- package/build/js/private/FrameReaders/index.js +1 -1
- package/build/js/private/NormalizedConfigureOptions.d.ts +5 -1
- package/build/js/private/ViewControls+related.js +1 -1
- package/build/js/private/ViewControls_related.d.ts +5 -1
- package/build/js/private/ViewsRegistry.d.ts +4 -1
- package/build/js/private/ui/atoms/AimerSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
- package/build/js/private/ui/atoms/Backdrop.js +1 -1
- package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Card.js +1 -1
- package/build/js/private/ui/atoms/CardList.js +1 -1
- package/build/js/private/ui/atoms/CheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Dot5xSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/GlassSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/KeyboardSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/LowStockSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/OnexSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/PrinterSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ProgressBar.js +1 -1
- package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RestartSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ShutterButton.d.ts +7 -4
- package/build/js/private/ui/atoms/ShutterButton.js +6 -22
- package/build/js/private/ui/atoms/StarFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/SvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Toast.d.ts +9 -3
- package/build/js/private/ui/atoms/Toast.js +1 -1
- package/build/js/private/ui/atoms/TwoxSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/WrongItemSvgIcon.js +1 -1
- package/build/js/private/ui/molecules/HintPresenter.d.ts +6 -43
- package/build/js/private/ui/molecules/HintPresenter.js +1 -1
- package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
- package/build/js/private/utils/index.js +1 -1
- package/build/js/private/utils/quadrilateralUtils.d.ts +2 -1
- package/build/js/private/utils/quadrilateralUtils.js +1 -1
- package/build/js/private/utils/replaceImagesInViewUtils.d.ts +17 -0
- package/build/js/sdk.d.ts +6 -3
- package/build/js/worker/WorkerMain.d.ts +4 -1
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/coreCapture.inlineWorker.d.ts +4 -1
- package/build/js/worker/coreCapture.inlineWorker.js +1 -1
- package/build/js/worker/dataCaptureEngine.d.ts +5 -2
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureLoader.d.ts +5 -2
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +4 -1
- package/build/js/worker/index.d.ts +4 -1
- package/build/js/worker/index.js +1 -1
- package/package.json +11 -12
- package/build/js/chunks/chunk-NBFWXBYG.js +0 -1
- package/build/js/chunks/chunk-OWJGO7ET.js +0 -1
- package/build/js/chunks/chunk-P3OK36HL.js +0 -21
- package/build/js/chunks/chunk-Q2O4RKVG.js +0 -1
- package/build/js/chunks/chunk-QYACFUV3.js +0 -5
- package/build/js/chunks/chunk-S2VISKOY.js +0 -1
- package/build/js/chunks/chunk-TUQETICB.js +0 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty;module.exports=(e={},((e,n,
|
|
1
|
+
"use strict";var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty;module.exports=(e={},((e,c,n,l)=>{if(c&&"object"==typeof c||"function"==typeof c)for(let u of o(c))p.call(e,u)||u===n||t(e,u,{get:()=>c[u],enumerable:!(l=r(c,u))||l.enumerable});return e})(t({},"__esModule",{value:!0}),e));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,
|
|
1
|
+
"use strict";var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,p={};((e,r)=>{for(var o in r)t(e,o,{get:r[o],enumerable:!0})})(p,{CHN:()=>y,Id:()=>i,K:()=>l}),module.exports=(e=p,((e,p,a,l)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let i of o(p))n.call(e,i)||i===a||t(e,i,{get:()=>p[i],enumerable:!(l=r(p,i))||l.enumerable});return e})(t({},"__esModule",{value:!0}),e));var a=String.fromCodePoint,l=a.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),i=a.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57]),y=a.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);
|
package/build/electron/main.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,p={};((e,n)=>{for(var a in n)t(e,a,{get:n[a],enumerable:!0})})(p,{register:()=>u,unregister:()=>f}),module.exports=(e=p,((e,p,s,o)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let i of a(p))r.call(e,i)||i===s||t(e,i,{get:()=>p[i],enumerable:!(o=n(p,i))||o.enumerable});return e})(t({},"__esModule",{value:!0}),e));var s=String.fromCodePoint,o=(s.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),s.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57])),i=s.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);function c(e,t){return async function(n,a){if(function(e,t){if(null==e)return!1;const n=new URL(e.url);return t.senderId===o&&"localhost"===n.hostname||""===n.hostname}(n.senderFrame,a))switch(a.type){case"get-license-key":if(null!=a.payload)try{const r=await async function(e,t){const{fs:n,crypto:a,path:r,app:p}=e,[s,o]=t.publicKey.split(":"),i=r.join(p.getAppPath(),t.licenseDataPath);return function(e,t,n){const r=a.createDecipheriv("aes-256-cbc",t,n);let p=r.update(e,"hex","utf8");return p+=r.final("utf8"),p}((await n.readFile(i)).toString("utf8"),Buffer.from(s,"base64"),Buffer.from(o,"base64"))}(e,{licenseDataPath:a.payload.licenseDataPath,publicKey:t});n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{licenseKey:r??""}})}catch(e){n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}break;case"get-app-info":try{const t=await async function(e){const{fs:t,path:n,app:a}=e;let r=process.cwd();a.isPackaged&&(r=a.getAppPath());const p=await t.readFile(n.join(r,"package.json"),"utf8"),s=JSON.parse(p);return{appId:s.build?.appId??s.appId,name:s.name,version:s.version}}(e);n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{isPackaged:e.app.isPackaged,version:t.version??e.app.getVersion(),appName:t.name??e.app.getName(),appId:t.appId??""}})}catch(e){n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}}}}var d=null,l=null;function u(e,t){l=e,d=c(e,t),l.ipcMain.on(i,d)}function f(){null!=d&&null!=l&&l.ipcMain.off(i,d)}
|
|
1
|
+
"use strict";var e,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,p={};((e,n)=>{for(var a in n)t(e,a,{get:n[a],enumerable:!0})})(p,{register:()=>u,unregister:()=>f}),module.exports=(e=p,((e,p,s,o)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let i of a(p))r.call(e,i)||i===s||t(e,i,{get:()=>p[i],enumerable:!(o=n(p,i))||o.enumerable});return e})(t({},"__esModule",{value:!0}),e));var s=String.fromCodePoint,o=(s.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),s.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57])),i=s.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);function c(e,t){return async function(n,a){if(function(e,t){if(null==e)return!1;const n=new URL(e.url);return t.senderId===o&&"localhost"===n.hostname||""===n.hostname}(n.senderFrame,a))switch(a.type){case"get-license-key":if(null!=a.payload)try{const r=await async function(e,t){const{fs:n,crypto:a,path:r,app:p}=e,[s,o]=t.publicKey.split(":"),i=r.join(p.getAppPath(),t.licenseDataPath);return function(e,t,n){const r=a.createDecipheriv("aes-256-cbc",t,n);let p=r.update(e,"hex","utf8");return p+=r.final("utf8"),p}((await n.readFile(i)).toString("utf8"),Buffer.from(s,"base64"),Buffer.from(o,"base64"))}(e,{licenseDataPath:a.payload.licenseDataPath,publicKey:t});n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{licenseKey:r??""}})}catch(e){n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}break;case"get-app-info":try{const t=await async function(e){const{fs:t,path:n,app:a}=e;let r=process.cwd();a.isPackaged&&(r=a.getAppPath());const p=await t.readFile(n.join(r,"package.json"),"utf8"),s=JSON.parse(p);return{appId:s.build?.appId??s.appId,name:s.name,version:s.version}}(e);n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{isPackaged:e.app.isPackaged,version:t.version??e.app.getVersion(),appName:t.name??e.app.getName(),appId:t.appId??""}})}catch(e){n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}}}}var d=null,l=null;function u(e,t){l=e,d=c(e,t),l.ipcMain.on(i,d)}function f(){null!=d&&null!=l&&l.ipcMain.off(i,d)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,r=Object.defineProperty,
|
|
1
|
+
"use strict";var e,r=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,p={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(p,{preloadBindings:()=>s}),module.exports=(e=p,((e,p,a,i)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let l of n(p))o.call(e,l)||l===a||r(e,l,{get:()=>p[l],enumerable:!(i=t(p,l))||i.enumerable});return e})(r({},"__esModule",{value:!0}),e));var a=require("electron"),i=String.fromCodePoint,l=i.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),y=i.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57]),c=i.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);function d(e){return null!=e.payload.error}function s(e){a.contextBridge.exposeInMainWorld(l,Object.freeze(function(e){return{getAppInfo:async()=>new Promise(((r,t)=>{e.once(c,((e,n)=>{d(n)&&t(n.payload.error),"get-app-info"===n.type&&r(n.payload)})),e.send(c,{type:"get-app-info",senderId:y})})),getKey:async r=>new Promise(((t,n)=>{e.once(c,((e,r)=>{d(r)&&n(r.payload.error),"get-license-key"===r.type&&t(r.payload)})),e.send(c,{type:"get-license-key",senderId:y,payload:r})}))}}(e)))}
|
|
@@ -3,9 +3,11 @@ import { Serializable } from './private/Serializable.js';
|
|
|
3
3
|
import { MarginsWithUnitJSON, PointWithUnitJSON, Anchor, MarginsWithUnit, PointWithUnit, Size, Orientation, Point, Quadrilateral, JSONType, PointJSON, RectJSON, Rect } from './Common.js';
|
|
4
4
|
import { WatermarkStack } from './private/FrameReaders/WatermarkStack.js';
|
|
5
5
|
import { Optional, MethodSignature } from './tsHelper.js';
|
|
6
|
-
import './ScanditIcon.js';
|
|
6
|
+
import { ScanditIcon } from './ScanditIcon.js';
|
|
7
|
+
import { ScanditHTMLElement } from './private/utils/ScanditHTMLElement.js';
|
|
7
8
|
import { DataCaptureContextSettingsJSON, DataCaptureContextSettings } from './DataCaptureContextSettings.js';
|
|
8
9
|
import { LogoStyle, FocusGestureJSON, ZoomGestureJSON, FocusGesture, ZoomGesture } from './DataCaptureViewPlusRelated.js';
|
|
10
|
+
import { NotificationPresenter } from './NotificationPresenter/NotificationPresenter.js';
|
|
9
11
|
import { Control } from './ViewControls.js';
|
|
10
12
|
import { DidTapCustomLocationsViewListener, StateToRender, StateToRenderDomView } from './private/CustomLocationsView.js';
|
|
11
13
|
import { nativeHandle } from './private/nativeHandle.js';
|
|
@@ -400,6 +402,9 @@ declare class DataCaptureView$1 implements Serializable<DataCaptureViewJSON> {
|
|
|
400
402
|
private onBeforeShowToastsHandler;
|
|
401
403
|
private onWorkerMessageHandler;
|
|
402
404
|
private localizationSubscription?;
|
|
405
|
+
private htmlElementDidChangeHandler;
|
|
406
|
+
private htmlElementDisconnectedHandler;
|
|
407
|
+
private notificationPresenter;
|
|
403
408
|
constructor();
|
|
404
409
|
get scanAreaMargins(): MarginsWithUnit;
|
|
405
410
|
set scanAreaMargins(margins: MarginsWithUnit);
|
|
@@ -447,6 +452,7 @@ declare class DataCaptureView$1 implements Serializable<DataCaptureViewJSON> {
|
|
|
447
452
|
protected viewAnchorPositionsForFrameAnchorPositions(anchorPositions: AnchorPositions): AnchorPositions;
|
|
448
453
|
protected setDidTapCustomLocationsViewListener(didTapViewListener: DidTapCustomLocationsViewListener): void;
|
|
449
454
|
protected renderCustomLocationsView(state: StateToRender | StateToRenderDomView): void;
|
|
455
|
+
getNotificationPresenter(): NotificationPresenter;
|
|
450
456
|
private removeStyles;
|
|
451
457
|
private onHintPresenterUpdate;
|
|
452
458
|
private clearHtmlElementContent;
|
|
@@ -1330,6 +1336,46 @@ type PrivateLoadableFrameData = Omit<FrameData, "getData" | "toBlob"> & {
|
|
|
1330
1336
|
*/
|
|
1331
1337
|
declare function convertToPublicFrameData(loadableFrameData: PrivateLoadableFrameData, context: DataCaptureContext$1): FrameData;
|
|
1332
1338
|
|
|
1339
|
+
declare enum HintPresenterEvents {
|
|
1340
|
+
Update = "hintpresenterupdate"
|
|
1341
|
+
}
|
|
1342
|
+
declare class HintPresenter extends ScanditHTMLElement {
|
|
1343
|
+
static readonly tag: "scandit-hints";
|
|
1344
|
+
private intervalId;
|
|
1345
|
+
private root;
|
|
1346
|
+
private _viewFinderRect;
|
|
1347
|
+
private onDidToastHideHandler;
|
|
1348
|
+
private orientationObserver;
|
|
1349
|
+
private onOrientationChangeHandler;
|
|
1350
|
+
constructor();
|
|
1351
|
+
private static createStyleElement;
|
|
1352
|
+
static register(): void;
|
|
1353
|
+
static create(): HintPresenter;
|
|
1354
|
+
connectedCallback(): void;
|
|
1355
|
+
disconnectedCallback(): void;
|
|
1356
|
+
setViewFinderRect(rect: Rect | null): void;
|
|
1357
|
+
handleMessage(message: DataCaptureCallbackMessage): void;
|
|
1358
|
+
private setHintStyleToToast;
|
|
1359
|
+
private onDidToastHide;
|
|
1360
|
+
showToast(toast: GenericHint): Promise<void>;
|
|
1361
|
+
showToastWithCustomIcon(hintStyle: GenericHint, icon: ScanditIcon): Promise<void>;
|
|
1362
|
+
hideToast(hintStyle: GenericHint): Promise<void>;
|
|
1363
|
+
private showGuidance;
|
|
1364
|
+
private hideGuidance;
|
|
1365
|
+
private startUpdateTimer;
|
|
1366
|
+
private stopUpdateTimer;
|
|
1367
|
+
private idFromHint;
|
|
1368
|
+
private onOrientationChange;
|
|
1369
|
+
}
|
|
1370
|
+
declare global {
|
|
1371
|
+
interface HTMLElementTagNameMap {
|
|
1372
|
+
[HintPresenter.tag]: HintPresenter;
|
|
1373
|
+
}
|
|
1374
|
+
interface HTMLElementEventMap {
|
|
1375
|
+
[HintPresenterEvents.Update]: CustomEvent<void>;
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1333
1379
|
interface LoadLibraryParameters {
|
|
1334
1380
|
libraryLocation: string;
|
|
1335
1381
|
locationPath: string;
|
|
@@ -1788,4 +1834,4 @@ declare class Camera implements FrameSource, Serializable<CameraJSON> {
|
|
|
1788
1834
|
private isZoomAvailable;
|
|
1789
1835
|
}
|
|
1790
1836
|
|
|
1791
|
-
export { type AugmentedWorker as $, type PrivateFrameHandler as A, DataCaptureContext$1 as B, CameraPosition as C, DataCaptureLoader as D, type DataCaptureContextListener as E, FocusGestureStrategy as F, type ContextStatusJSON as G, ContextStatus as H, PrivateMirrorAxis as I, type DataCaptureOverlay as J, type DataCaptureViewListener as K, type DataCaptureViewJSON as L, DataCaptureView$1 as M, type NativeDataCaptureMode as N, type FrameData as O, type PrivateChangeSet as P, type PrivateLoadableFrameData as Q, convertToPublicFrameData as R, type DataCaptureLoaderOptions as S, TorchState as T,
|
|
1837
|
+
export { type AugmentedWorker as $, type PrivateFrameHandler as A, DataCaptureContext$1 as B, CameraPosition as C, DataCaptureLoader as D, type DataCaptureContextListener as E, FocusGestureStrategy as F, type ContextStatusJSON as G, ContextStatus as H, PrivateMirrorAxis as I, type DataCaptureOverlay as J, type DataCaptureViewListener as K, type DataCaptureViewJSON as L, DataCaptureView$1 as M, type NativeDataCaptureMode as N, type FrameData as O, type PrivateChangeSet as P, type PrivateLoadableFrameData as Q, convertToPublicFrameData as R, type DataCaptureLoaderOptions as S, TorchState as T, HintPresenter as U, VideoResolution as V, type PerformanceMetrics as W, DataCaptureEngine as X, type Module as Y, type GenericHint as Z, type AnyDataCaptureActionMessage as _, type FrameSource as a, HintTextAlignment as a$, type ModuleHandler as a0, type DataCaptureCallbackMessage as a1, type DataCaptureActionMessageKey as a2, type EngineWorkerResponse as a3, type ExtractCentaurusLicenseResponse as a4, type RequestFrameDataResponse as a5, type IsFeatureSupportedResponse as a6, type GetViewfinderInfo as a7, type GetOpenSourceSoftwareLicenseInfoResponse as a8, type WorkerResponse as a9, type PerformanceMetricsReportMessage as aA, type DidTapTrackedBarcode as aB, type OnFrameProcessingStartedMessage as aC, type OnFrameProcessingFinishedMessage as aD, type OnFrameSkippedMessage as aE, type ShowToastMessage as aF, type HideToastMessage as aG, type ShowGuidanceMessage as aH, type HideGuidanceMessage as aI, type StartUpdateTimerMessage as aJ, type StopUpdateTimerMessage as aK, type PayloadForCommand as aL, type DataCaptureWorker as aM, type EmscriptenClassHandle as aN, type DataCaptureContext as aO, type DataCaptureImageBufferFrameSource as aP, type GestureListener as aQ, type GestureRecognizer as aR, type DataCaptureView as aS, type JSONParseable as aT, type DataCaptureContextDeserializerResult as aU, type DataCaptureContextDeserializer as aV, type CaptureModeDeserializerInstance as aW, type ModuleMirrorAxis as aX, type Vector as aY, type WasmFrameData as aZ, HintFont as a_, type LoadLibraryDataCaptureAction as aa, type CreateContextDataCaptureAction as ab, type SetFrameSourceDataCaptureAction as ac, type ProcessFrameDataCaptureAction as ad, type RequestFrameDataDataCaptureAction as ae, type DeleteFrameDataDataCaptureAction as af, type VisibilityChangeAction as ag, type IsFeatureSupportedAction as ah, type UpdateContextDataCaptureAction as ai, type DisposeDataCaptureAction as aj, type FlushAnalyticsDataCaptureAction as ak, type ReportCameraPropertiesDataCaptureAction as al, type SetLogLevelDataCaptureAction as am, type ExtractCentaurusLicenseDataCaptureAction as an, type OnTapAction as ao, type HintPresenterV2updateAction as ap, type GetViewfinderInfoAction as aq, type GetOpenSourceSoftwareLicenseInfoAction as ar, type AddNativeOverlayAction as as, type RemoveNativeOverlayAction as at, type DataCaptureCallbackMessageKeys as au, type SuccessFeedbackWorkerMessage as av, type ShowHintWorkerMessage as aw, type UpdateHintWorkerMessage as ax, type IsFeatureSupportedMessage as ay, type HideHintWorkerMessage as az, FrameSourceState as b, HintWidth as b0, HintHeight as b1, HintCornerStyle as b2, HintIcon as b3, HintAnchor as b4, type HintStyle as b5, GuidanceHintAnchor as b6, GuidanceHintStyle as b7, type GuidanceHint as b8, ToastHintStyle as b9, type GUI as bA, CameraManagerEvent as bB, type CameraManagerEventParameters as bC, CameraManager as bD, type ToastHint as ba, LicensedFeature as bb, type HintPresenterV2 as bc, type PlatformHintPresenter as bd, type LoadLibraryParameters as be, type CreateContextParameters as bf, type UpdateContextParameters as bg, type SetFrameSourceParameters as bh, type ProcessFrameParameters as bi, type ReportCameraPropertiesParameters as bj, type WorkerFunctions as bk, FrameReaderAbstract as bl, ColorType as bm, type PoolCapacityOptions as bn, type FrameCapture as bo, FrameReader as bp, CameraPosition$1 as bq, CameraResolutionConstraint$1 as br, AspectRatio as bs, type DeviceCamera$1 as bt, CameraAccess$1 as bu, HintPresenterEvents as bv, MeteringMode as bw, CameraResolutionConstraint as bx, type ExtendedMediaTrackCapabilities as by, type ExtendedMediaTrackConstraintSet as bz, type FrameSourceListener as c, type FrameSourceJSON as d, type CameraJSON as e, type VideoFrameResolution as f, Camera as g, CameraAccess as h, type DeviceCamera as i, type CameraSettingsJSONBase as j, type CameraSettingsFromJSON as k, type CameraSettingsJSON as l, isCameraFrameSource as m, CameraSettings as n, type Change as o, type PrivateDataCaptureMode as p, type DataCaptureMode as q, type DataCaptureModeJSON as r, type PrivateDataCaptureComponent as s, type DataCaptureComponentJSON as t, type DataCaptureComponent as u, type PrivateDataCaptureContextOptions as v, type PrivateDataCaptureContext as w, type DataCaptureContextCreationOptions as x, type DataCaptureContextJSON as y, type PrivateFrameHandlerResponse as z };
|
package/build/js/Camera.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { g as Camera, e as CameraJSON, f as VideoFrameResolution } from './Camera-
|
|
2
|
+
export { g as Camera, e as CameraJSON, f as VideoFrameResolution } from './Camera-BoUtNCzS.js';
|
|
3
3
|
import './Common.js';
|
|
4
4
|
import './private/Serializable.js';
|
|
5
5
|
import './private/FrameReaders/WatermarkStack.js';
|
|
@@ -8,6 +8,9 @@ import './ScanditIcon.js';
|
|
|
8
8
|
import './private/utils/ScanditHTMLElement.js';
|
|
9
9
|
import './DataCaptureContextSettings.js';
|
|
10
10
|
import './DataCaptureViewPlusRelated.js';
|
|
11
|
+
import './NotificationPresenter/NotificationPresenter.js';
|
|
12
|
+
import './NotificationPresenter/NotificationConfiguration.js';
|
|
13
|
+
import './NotificationPresenter/NotificationStyle.js';
|
|
11
14
|
import './ViewControls.js';
|
|
12
15
|
import './private/CustomLocationsView.js';
|
|
13
16
|
import './private/View.js';
|
package/build/js/Camera.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Camera}from'./chunks/chunk-
|
|
1
|
+
export{a as Camera}from'./chunks/chunk-HNUWDILZ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { h as CameraAccess, i as DeviceCamera } from './Camera-
|
|
2
|
+
export { h as CameraAccess, i as DeviceCamera } from './Camera-BoUtNCzS.js';
|
|
3
3
|
import './private/Serializable.js';
|
|
4
4
|
import './Common.js';
|
|
5
5
|
import './private/FrameReaders/WatermarkStack.js';
|
|
@@ -8,6 +8,9 @@ import './ScanditIcon.js';
|
|
|
8
8
|
import './private/utils/ScanditHTMLElement.js';
|
|
9
9
|
import './DataCaptureContextSettings.js';
|
|
10
10
|
import './DataCaptureViewPlusRelated.js';
|
|
11
|
+
import './NotificationPresenter/NotificationPresenter.js';
|
|
12
|
+
import './NotificationPresenter/NotificationConfiguration.js';
|
|
13
|
+
import './NotificationPresenter/NotificationStyle.js';
|
|
11
14
|
import './ViewControls.js';
|
|
12
15
|
import './private/CustomLocationsView.js';
|
|
13
16
|
import './private/View.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { C as CameraPosition, n as CameraSettings, k as CameraSettingsFromJSON, l as CameraSettingsJSON, j as CameraSettingsJSONBase, F as FocusGestureStrategy, a as FrameSource, d as FrameSourceJSON, c as FrameSourceListener, b as FrameSourceState, T as TorchState, V as VideoResolution, m as isCameraFrameSource } from './Camera-
|
|
2
|
+
export { C as CameraPosition, n as CameraSettings, k as CameraSettingsFromJSON, l as CameraSettingsJSON, j as CameraSettingsJSONBase, F as FocusGestureStrategy, a as FrameSource, d as FrameSourceJSON, c as FrameSourceListener, b as FrameSourceState, T as TorchState, V as VideoResolution, m as isCameraFrameSource } from './Camera-BoUtNCzS.js';
|
|
3
3
|
import './private/Serializable.js';
|
|
4
4
|
import './Common.js';
|
|
5
5
|
import './private/FrameReaders/WatermarkStack.js';
|
|
@@ -8,6 +8,9 @@ import './ScanditIcon.js';
|
|
|
8
8
|
import './private/utils/ScanditHTMLElement.js';
|
|
9
9
|
import './DataCaptureContextSettings.js';
|
|
10
10
|
import './DataCaptureViewPlusRelated.js';
|
|
11
|
+
import './NotificationPresenter/NotificationPresenter.js';
|
|
12
|
+
import './NotificationPresenter/NotificationConfiguration.js';
|
|
13
|
+
import './NotificationPresenter/NotificationStyle.js';
|
|
11
14
|
import './ViewControls.js';
|
|
12
15
|
import './private/CustomLocationsView.js';
|
|
13
16
|
import './private/View.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { o as Change, u as DataCaptureComponent, t as DataCaptureComponentJSON, B as DataCaptureContext, x as DataCaptureContextCreationOptions, y as DataCaptureContextJSON, q as DataCaptureMode, r as DataCaptureModeJSON, N as NativeDataCaptureMode, P as PrivateChangeSet, s as PrivateDataCaptureComponent, w as PrivateDataCaptureContext, v as PrivateDataCaptureContextOptions, p as PrivateDataCaptureMode, A as PrivateFrameHandler, z as PrivateFrameHandlerResponse } from './Camera-
|
|
2
|
+
export { o as Change, u as DataCaptureComponent, t as DataCaptureComponentJSON, B as DataCaptureContext, x as DataCaptureContextCreationOptions, y as DataCaptureContextJSON, q as DataCaptureMode, r as DataCaptureModeJSON, N as NativeDataCaptureMode, P as PrivateChangeSet, s as PrivateDataCaptureComponent, w as PrivateDataCaptureContext, v as PrivateDataCaptureContextOptions, p as PrivateDataCaptureMode, A as PrivateFrameHandler, z as PrivateFrameHandlerResponse } from './Camera-BoUtNCzS.js';
|
|
3
3
|
import './Common.js';
|
|
4
4
|
import './DataCaptureContextSettings.js';
|
|
5
5
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
@@ -10,6 +10,9 @@ import './private/FrameReaders/WatermarkStack.js';
|
|
|
10
10
|
import './ScanditIcon.js';
|
|
11
11
|
import './private/utils/ScanditHTMLElement.js';
|
|
12
12
|
import './DataCaptureViewPlusRelated.js';
|
|
13
|
+
import './NotificationPresenter/NotificationPresenter.js';
|
|
14
|
+
import './NotificationPresenter/NotificationConfiguration.js';
|
|
15
|
+
import './NotificationPresenter/NotificationStyle.js';
|
|
13
16
|
import './ViewControls.js';
|
|
14
17
|
import './private/CustomLocationsView.js';
|
|
15
18
|
import './private/View.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureContext}from'./chunks/chunk-
|
|
1
|
+
export{a as DataCaptureContext}from'./chunks/chunk-OFNRGDFQ.js';
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { H as ContextStatus, G as ContextStatusJSON, E as DataCaptureContextListener, I as PrivateMirrorAxis } from './Camera-
|
|
2
|
+
export { H as ContextStatus, G as ContextStatusJSON, E as DataCaptureContextListener, I as PrivateMirrorAxis } from './Camera-BoUtNCzS.js';
|
|
3
3
|
import './ScanditIcon.js';
|
|
4
4
|
import './private/Serializable.js';
|
|
5
5
|
import './Common.js';
|
|
6
6
|
import './private/FrameReaders/WatermarkStack.js';
|
|
7
7
|
import './tsHelper.js';
|
|
8
|
+
import './private/utils/ScanditHTMLElement.js';
|
|
8
9
|
import './DataCaptureContextSettings.js';
|
|
9
10
|
import './DataCaptureViewPlusRelated.js';
|
|
11
|
+
import './NotificationPresenter/NotificationPresenter.js';
|
|
12
|
+
import './NotificationPresenter/NotificationConfiguration.js';
|
|
13
|
+
import './NotificationPresenter/NotificationStyle.js';
|
|
10
14
|
import './ViewControls.js';
|
|
11
15
|
import './private/CustomLocationsView.js';
|
|
12
16
|
import './private/View.js';
|
|
@@ -17,4 +21,3 @@ import './private/HtmlElementState.js';
|
|
|
17
21
|
import './worker/OverrideState.js';
|
|
18
22
|
import './logger.js';
|
|
19
23
|
import './LoadingStatus.js';
|
|
20
|
-
import './private/utils/ScanditHTMLElement.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureVersion}from'./chunks/chunk-
|
|
1
|
+
export{a as DataCaptureVersion}from'./chunks/chunk-7XGCH3B3.js';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import './Common.js';
|
|
3
|
-
export { J as DataCaptureOverlay, M as DataCaptureView, L as DataCaptureViewJSON, K as DataCaptureViewListener } from './Camera-
|
|
3
|
+
export { J as DataCaptureOverlay, M as DataCaptureView, L as DataCaptureViewJSON, K as DataCaptureViewListener } from './Camera-BoUtNCzS.js';
|
|
4
4
|
import './DataCaptureViewPlusRelated.js';
|
|
5
|
+
import './NotificationPresenter/NotificationPresenter.js';
|
|
5
6
|
import './ViewControls.js';
|
|
6
7
|
import './private/CustomLocationsView.js';
|
|
7
8
|
import './private/Serializable.js';
|
|
@@ -17,4 +18,6 @@ import './private/HtmlElementState.js';
|
|
|
17
18
|
import './worker/OverrideState.js';
|
|
18
19
|
import './logger.js';
|
|
19
20
|
import './LoadingStatus.js';
|
|
21
|
+
import './NotificationPresenter/NotificationConfiguration.js';
|
|
22
|
+
import './NotificationPresenter/NotificationStyle.js';
|
|
20
23
|
import './private/View.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureView}from'./chunks/chunk-
|
|
1
|
+
export{a as DataCaptureView}from'./chunks/chunk-J3PS3NRY.js';
|
package/build/js/Defaults.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import * as CSS from 'csstype';
|
|
3
|
-
import { V as VideoResolution, F as FocusGestureStrategy, C as CameraPosition } from './Camera-
|
|
3
|
+
import { V as VideoResolution, F as FocusGestureStrategy, C as CameraPosition } from './Camera-BoUtNCzS.js';
|
|
4
4
|
import { MarginsWithUnit, PointWithUnit, Anchor, Color } from './Common.js';
|
|
5
5
|
import { FocusGestureJSON, FocusGesture, ZoomGestureJSON, ZoomGesture, LogoStyle } from './DataCaptureViewPlusRelated.js';
|
|
6
6
|
import { PrivateLaserlineViewfinderDefault, RectangularViewfinderStyle, PrivateRectangularViewfinderDefault } from './ViewfinderPlusRelated.js';
|
|
@@ -10,6 +10,9 @@ import './tsHelper.js';
|
|
|
10
10
|
import './ScanditIcon.js';
|
|
11
11
|
import './private/utils/ScanditHTMLElement.js';
|
|
12
12
|
import './DataCaptureContextSettings.js';
|
|
13
|
+
import './NotificationPresenter/NotificationPresenter.js';
|
|
14
|
+
import './NotificationPresenter/NotificationConfiguration.js';
|
|
15
|
+
import './NotificationPresenter/NotificationStyle.js';
|
|
13
16
|
import './ViewControls.js';
|
|
14
17
|
import './private/CustomLocationsView.js';
|
|
15
18
|
import './private/View.js';
|
package/build/js/FrameData.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { O as FrameData, Q as PrivateLoadableFrameData, R as convertToPublicFrameData } from './Camera-
|
|
2
|
+
export { O as FrameData, Q as PrivateLoadableFrameData, R as convertToPublicFrameData } from './Camera-BoUtNCzS.js';
|
|
3
3
|
import './ScanditIcon.js';
|
|
4
4
|
import './private/Serializable.js';
|
|
5
5
|
import './Common.js';
|
|
6
6
|
import './private/FrameReaders/WatermarkStack.js';
|
|
7
7
|
import './tsHelper.js';
|
|
8
|
+
import './private/utils/ScanditHTMLElement.js';
|
|
8
9
|
import './DataCaptureContextSettings.js';
|
|
9
10
|
import './DataCaptureViewPlusRelated.js';
|
|
11
|
+
import './NotificationPresenter/NotificationPresenter.js';
|
|
12
|
+
import './NotificationPresenter/NotificationConfiguration.js';
|
|
13
|
+
import './NotificationPresenter/NotificationStyle.js';
|
|
10
14
|
import './ViewControls.js';
|
|
11
15
|
import './private/CustomLocationsView.js';
|
|
12
16
|
import './private/View.js';
|
|
@@ -17,4 +21,3 @@ import './private/HtmlElementState.js';
|
|
|
17
21
|
import './worker/OverrideState.js';
|
|
18
22
|
import './logger.js';
|
|
19
23
|
import './LoadingStatus.js';
|
|
20
|
-
import './private/utils/ScanditHTMLElement.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { a as FrameSource, b as FrameSourceState, c as FrameSourceListener } from './Camera-
|
|
2
|
+
import { a as FrameSource, b as FrameSourceState, c as FrameSourceListener } from './Camera-BoUtNCzS.js';
|
|
3
3
|
import { Serializable } from './private/Serializable.js';
|
|
4
4
|
import './Common.js';
|
|
5
5
|
import './private/FrameReaders/WatermarkStack.js';
|
|
@@ -8,6 +8,9 @@ import './ScanditIcon.js';
|
|
|
8
8
|
import './private/utils/ScanditHTMLElement.js';
|
|
9
9
|
import './DataCaptureContextSettings.js';
|
|
10
10
|
import './DataCaptureViewPlusRelated.js';
|
|
11
|
+
import './NotificationPresenter/NotificationPresenter.js';
|
|
12
|
+
import './NotificationPresenter/NotificationConfiguration.js';
|
|
13
|
+
import './NotificationPresenter/NotificationStyle.js';
|
|
11
14
|
import './ViewControls.js';
|
|
12
15
|
import './private/CustomLocationsView.js';
|
|
13
16
|
import './private/View.js';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { Color } from '../Common.js';
|
|
3
|
+
import { ScanditIcon } from '../ScanditIcon.js';
|
|
4
|
+
import { NotificationConfiguration } from './NotificationConfiguration.js';
|
|
5
|
+
import { NotificationStyle } from './NotificationStyle.js';
|
|
6
|
+
import '../private/Serializable.js';
|
|
7
|
+
import '../private/utils/ScanditHTMLElement.js';
|
|
8
|
+
|
|
9
|
+
declare class NotificationBuilder {
|
|
10
|
+
private _text;
|
|
11
|
+
private _tag;
|
|
12
|
+
private _icon?;
|
|
13
|
+
private _style?;
|
|
14
|
+
private _textColor;
|
|
15
|
+
private _backgroundColor;
|
|
16
|
+
private constructor();
|
|
17
|
+
static init(text: string, tag: string): NotificationBuilder;
|
|
18
|
+
withIcon(icon: ScanditIcon): NotificationBuilder;
|
|
19
|
+
withTextColor(color: Color): NotificationBuilder;
|
|
20
|
+
withBackgroundColor(color: Color): NotificationBuilder;
|
|
21
|
+
withNotificationStyle(style: NotificationStyle): NotificationBuilder;
|
|
22
|
+
build(): NotificationConfiguration;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { NotificationBuilder };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as NotificationBuilder}from'../chunks/chunk-6YZS76QW.js';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { Color } from '../Common.js';
|
|
3
|
+
import { ScanditIcon } from '../ScanditIcon.js';
|
|
4
|
+
import { NotificationStyle } from './NotificationStyle.js';
|
|
5
|
+
import '../private/Serializable.js';
|
|
6
|
+
import '../private/utils/ScanditHTMLElement.js';
|
|
7
|
+
|
|
8
|
+
declare class NotificationConfiguration {
|
|
9
|
+
private _style?;
|
|
10
|
+
private _icon?;
|
|
11
|
+
private _message;
|
|
12
|
+
private _textColor;
|
|
13
|
+
private _backgroundColor;
|
|
14
|
+
private _tag;
|
|
15
|
+
constructor(message: string, tag: string, style?: NotificationStyle, icon?: ScanditIcon, textColor?: Color, backgroundColor?: Color);
|
|
16
|
+
get tag(): string;
|
|
17
|
+
get message(): string;
|
|
18
|
+
get style(): NotificationStyle | null;
|
|
19
|
+
get icon(): ScanditIcon | null;
|
|
20
|
+
get textColor(): Color;
|
|
21
|
+
get backgroundColor(): Color;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { NotificationConfiguration };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as NotificationConfiguration}from'../chunks/chunk-KUVVZN66.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { NotificationConfiguration } from './NotificationConfiguration.js';
|
|
3
|
+
import '../Common.js';
|
|
4
|
+
import '../private/Serializable.js';
|
|
5
|
+
import '../ScanditIcon.js';
|
|
6
|
+
import '../private/utils/ScanditHTMLElement.js';
|
|
7
|
+
import './NotificationStyle.js';
|
|
8
|
+
|
|
9
|
+
interface NotificationPresenter {
|
|
10
|
+
showNotification(notificationConfiguration: NotificationConfiguration): Promise<void>;
|
|
11
|
+
hideNotification(notificationConfiguration: NotificationConfiguration): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type { NotificationPresenter };
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as NotificationStyle}from'../chunks/chunk-RXT3JWWR.js';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
export { NotificationBuilder } from './NotificationBuilder.js';
|
|
3
|
+
export { NotificationConfiguration } from './NotificationConfiguration.js';
|
|
4
|
+
export { NotificationPresenter } from './NotificationPresenter.js';
|
|
5
|
+
export { NotificationStyle } from './NotificationStyle.js';
|
|
6
|
+
export { ConcreteNotificationPresenter } from './private/ConcreteNotificationPresenter.js';
|
|
7
|
+
import '../Common.js';
|
|
8
|
+
import '../private/Serializable.js';
|
|
9
|
+
import '../ScanditIcon.js';
|
|
10
|
+
import '../private/utils/ScanditHTMLElement.js';
|
|
11
|
+
import '../Camera-BoUtNCzS.js';
|
|
12
|
+
import '../private/FrameReaders/WatermarkStack.js';
|
|
13
|
+
import '../tsHelper.js';
|
|
14
|
+
import '../DataCaptureContextSettings.js';
|
|
15
|
+
import '../DataCaptureViewPlusRelated.js';
|
|
16
|
+
import '../ViewControls.js';
|
|
17
|
+
import '../private/CustomLocationsView.js';
|
|
18
|
+
import '../private/View.js';
|
|
19
|
+
import '../private/AnchorPositions.js';
|
|
20
|
+
import '../private/nativeHandle.js';
|
|
21
|
+
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
22
|
+
import '../private/HtmlElementState.js';
|
|
23
|
+
import '../worker/OverrideState.js';
|
|
24
|
+
import '../logger.js';
|
|
25
|
+
import '../LoadingStatus.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as NotificationBuilder}from'../chunks/chunk-6YZS76QW.js';export{a as ConcreteNotificationPresenter}from'../chunks/chunk-3MEGNPVU.js';export{a as NotificationConfiguration}from'../chunks/chunk-KUVVZN66.js';export{a as NotificationStyle}from'../chunks/chunk-RXT3JWWR.js';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { U as HintPresenter } from '../../Camera-BoUtNCzS.js';
|
|
3
|
+
import { NotificationConfiguration } from '../NotificationConfiguration.js';
|
|
4
|
+
import { NotificationPresenter } from '../NotificationPresenter.js';
|
|
5
|
+
import '../../private/Serializable.js';
|
|
6
|
+
import '../../Common.js';
|
|
7
|
+
import '../../private/FrameReaders/WatermarkStack.js';
|
|
8
|
+
import '../../tsHelper.js';
|
|
9
|
+
import '../../ScanditIcon.js';
|
|
10
|
+
import '../../private/utils/ScanditHTMLElement.js';
|
|
11
|
+
import '../../DataCaptureContextSettings.js';
|
|
12
|
+
import '../../DataCaptureViewPlusRelated.js';
|
|
13
|
+
import '../../ViewControls.js';
|
|
14
|
+
import '../../private/CustomLocationsView.js';
|
|
15
|
+
import '../../private/View.js';
|
|
16
|
+
import '../../private/AnchorPositions.js';
|
|
17
|
+
import '../../private/nativeHandle.js';
|
|
18
|
+
import '../../license/OpenSourceSoftwareLicenseInfo.js';
|
|
19
|
+
import '../../private/HtmlElementState.js';
|
|
20
|
+
import '../../worker/OverrideState.js';
|
|
21
|
+
import '../../logger.js';
|
|
22
|
+
import '../../LoadingStatus.js';
|
|
23
|
+
import '../NotificationStyle.js';
|
|
24
|
+
|
|
25
|
+
declare class ConcreteNotificationPresenter implements NotificationPresenter {
|
|
26
|
+
private _hintPresenter;
|
|
27
|
+
constructor(hintPresenter: HintPresenter);
|
|
28
|
+
showNotification(notificationConfiguration: NotificationConfiguration): Promise<void>;
|
|
29
|
+
hideNotification(notificationConfiguration: NotificationConfiguration): Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { ConcreteNotificationPresenter };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as ConcreteNotificationPresenter}from'../../chunks/chunk-3MEGNPVU.js';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { Z as GenericHint } from '../../Camera-BoUtNCzS.js';
|
|
3
|
+
import { NotificationConfiguration } from '../NotificationConfiguration.js';
|
|
4
|
+
import '../../private/Serializable.js';
|
|
5
|
+
import '../../Common.js';
|
|
6
|
+
import '../../private/FrameReaders/WatermarkStack.js';
|
|
7
|
+
import '../../tsHelper.js';
|
|
8
|
+
import '../../ScanditIcon.js';
|
|
9
|
+
import '../../private/utils/ScanditHTMLElement.js';
|
|
10
|
+
import '../../DataCaptureContextSettings.js';
|
|
11
|
+
import '../../DataCaptureViewPlusRelated.js';
|
|
12
|
+
import '../NotificationPresenter.js';
|
|
13
|
+
import '../NotificationStyle.js';
|
|
14
|
+
import '../../ViewControls.js';
|
|
15
|
+
import '../../private/CustomLocationsView.js';
|
|
16
|
+
import '../../private/View.js';
|
|
17
|
+
import '../../private/AnchorPositions.js';
|
|
18
|
+
import '../../private/nativeHandle.js';
|
|
19
|
+
import '../../license/OpenSourceSoftwareLicenseInfo.js';
|
|
20
|
+
import '../../private/HtmlElementState.js';
|
|
21
|
+
import '../../worker/OverrideState.js';
|
|
22
|
+
import '../../logger.js';
|
|
23
|
+
import '../../LoadingStatus.js';
|
|
24
|
+
|
|
25
|
+
declare function createGenericHintFromNotificationConfiguration(config: NotificationConfiguration): GenericHint;
|
|
26
|
+
declare const error: GenericHint;
|
|
27
|
+
declare const success: GenericHint;
|
|
28
|
+
declare const warning: GenericHint;
|
|
29
|
+
declare const info: GenericHint;
|
|
30
|
+
|
|
31
|
+
export { createGenericHintFromNotificationConfiguration, error, info, success, warning };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as createGenericHintFromNotificationConfiguration,b as error,e as info,c as success,d as warning}from'../../chunks/chunk-GGMX65YP.js';
|
package/build/js/ScanditIcon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-
|
|
1
|
+
export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-3RIR7ALE.js';
|
|
@@ -57,9 +57,9 @@ declare class ScanditIconBuilder {
|
|
|
57
57
|
withBackgroundStrokeColor(backgroundStrokeColor: Color): ScanditIconBuilder;
|
|
58
58
|
withBackgroundStrokeWidth(backgroundStrokeWidth: number): ScanditIconBuilder;
|
|
59
59
|
build(): Promise<ScanditIcon>;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
withIconSize(iconSize: number): ScanditIconBuilder;
|
|
61
|
+
withWidth(width: number): ScanditIconBuilder;
|
|
62
|
+
withHeight(height: number): ScanditIconBuilder;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export { ScanditIconBuilder, ScanditIconForIconType, ScanditIconShape, ScanditIconType };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-
|
|
1
|
+
export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-CMG3PSOW.js';export{a as ScanditIconShape}from'./chunks/chunk-3RIR7ALE.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { d as FrameSourceJSON, b as FrameSourceState, a as FrameSource, c as FrameSourceListener } from './Camera-
|
|
2
|
+
import { d as FrameSourceJSON, b as FrameSourceState, a as FrameSource, c as FrameSourceListener } from './Camera-BoUtNCzS.js';
|
|
3
3
|
import { SingleImageUploaderSettingsJSON, SingleImageUploaderSettings } from './SingleImageUploaderSettings.js';
|
|
4
4
|
import { Serializable } from './private/Serializable.js';
|
|
5
5
|
import './Common.js';
|
|
@@ -9,6 +9,9 @@ import './ScanditIcon.js';
|
|
|
9
9
|
import './private/utils/ScanditHTMLElement.js';
|
|
10
10
|
import './DataCaptureContextSettings.js';
|
|
11
11
|
import './DataCaptureViewPlusRelated.js';
|
|
12
|
+
import './NotificationPresenter/NotificationPresenter.js';
|
|
13
|
+
import './NotificationPresenter/NotificationConfiguration.js';
|
|
14
|
+
import './NotificationPresenter/NotificationStyle.js';
|
|
12
15
|
import './ViewControls.js';
|
|
13
16
|
import './private/CustomLocationsView.js';
|
|
14
17
|
import './private/View.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-GGMX65YP.js';var r=class{constructor(t){this._hintPresenter=t;}async showNotification(t){let e=a(t);return t.icon?this._hintPresenter.showToastWithCustomIcon(e,t.icon):this._hintPresenter.showToast(e)}async hideNotification(t){return this._hintPresenter.hideToast(a(t))}};export{r as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {e}from'./chunk-IVDD7PCI.js';import {a
|
|
1
|
+
import {e}from'./chunk-IVDD7PCI.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$2}from'./chunk-3A4KLILV.js';import {a as a$1}from'./chunk-MU6SADSF.js';import {a as a$3}from'./chunk-LSZZVJ6B.js';import {n as n$1}from'./chunk-77BBIAZE.js';var v=(e=>(e.Circle="circle",e.Square="square",e))(v||{}),c="--width",l="--height",h="--background-color",d="--stroke-color",p="--stroke-width",n=class n extends a{constructor(){super();this.onSlotChangeListener=this.onSlotChange.bind(this);let e=this.attachShadow({mode:"open"});e.innerHTML=a$1`<div class="container shape-none"><slot /></div>`,this.containerElement=e.querySelector(".container"),this.setStylePropertyValue(c,"32px"),this.setStylePropertyValue(l,"32px"),this.setStylePropertyValue(h,"transparent"),this.setStylePropertyValue(d,"#fff"),this.setStylePropertyValue(p,"0px"),e.append(n.createStyleElement().cloneNode(true));}get iconColor(){var o,r;let e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),t=(r=e==null?void 0:e.assignedElements())!=null?r:[];return n$1.fromHex(t[0].fill)}set iconColor(e){this.render({propChanged:"iconcolor",value:`#${e.toJSON()}`});}get backgroundColor(){return n$1.fromHex(this.getStylePropertyValue(h))}set backgroundColor(e){this.render({propChanged:"backgroundcolor",value:`#${e.toJSON()}`});}get backgroundStrokeColor(){return n$1.fromHex(this.getStylePropertyValue(d))}set backgroundStrokeColor(e){this.render({propChanged:"backgroundstrokecolor",value:`#${e.toJSON()}`});}get backgroundStrokeWidth(){let e=this.getStylePropertyValue(p);return Number.parseInt(e,10)}set backgroundStrokeWidth(e){this.render({propChanged:"backgroundstrokewidth",value:String(e)});}get backgroundShape(){var t;let e=(t=/shape-(.*)/.exec(this.containerElement.classList.value))==null?void 0:t[1];return e!=null&&e!=="none"?e:null}set backgroundShape(e){this.render({propChanged:"backgroundshape",value:e!=null?e:"none"});}set width(e){this.render({propChanged:"width",value:String(e)}),this.updateIconSizeProperty(e,this.height);}get width(){let e=this.getStylePropertyValue(c).replace("px","");return Number.parseInt(e,10)}set height(e){this.render({propChanged:"height",value:String(e)}),this.updateIconSizeProperty(this.width,e);}get height(){let e=this.getStylePropertyValue(l).replace("px","");return Number.parseInt(e,10)}static create(){return n.register(),document.createElement(n.tag)}static register(){a$2({[n.tag]:n});}static createStyleElement(){return a$3`:host{display:inline-block;--width:32px;--height:32px;--background-color:transparent;--stroke-color:#fff;--stroke-width:0px}:host([hidden]){display:none}.container{background-color:var(--background-color);box-shadow:0 1px 2px 0 #${e.withAlpha(.3).toJSON()};height:calc(var(--height) - var(--stroke-width));outline:var(--stroke-width) solid var(--stroke-color);position:relative;width:calc(var(--width) - var(--stroke-width))}.container.shape-${"circle"}{border-radius:50%}.container.shape-${"square"}{border-radius:0}.container.shape-none{box-shadow:unset}::slotted(*){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}`}onSlotChange(){this.updateIconSizeProperty(this.width,this.height);}connectedCallback(){var t;let e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.addEventListener("slotchange",this.onSlotChangeListener);}disconnectedCallback(){var t;let e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.removeEventListener("slotchange",this.onSlotChangeListener);}render({propChanged:e,value:t}){switch(e){case "width":{this.setStylePropertyValue(c,`${t}px`);break}case "height":{this.setStylePropertyValue(l,`${t}px`);break}case "backgroundstrokewidth":{this.setStylePropertyValue(p,`${t}px`);break}case "backgroundstrokecolor":{this.setStylePropertyValue(d,t);break}case "backgroundcolor":{this.setStylePropertyValue(h,t);break}case "iconcolor":{this.updateFillIconColor(n$1.fromHex(t));break}case "backgroundshape":{let o=t;this.containerElement.classList.toggle("shape-circle",o==="circle"),this.containerElement.classList.toggle("shape-square",o==="square"),this.containerElement.classList.toggle("shape-none",o==="none");break}}}attributeChangedCallback(e,t,o){this.render({propChanged:e,value:o});}getStylePropertyValue(e){return this.containerElement.style.getPropertyValue(e)}setStylePropertyValue(e,t){this.containerElement.style.setProperty(e,t);}updateIconSizeProperty(e,t){var s,u;let o=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(u=o==null?void 0:o.assignedElements())!=null?u:[],a=Math.min(e,t);for(let C of r)C.size=a/2;}setIconSize(e){var r,a;let t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),o=(a=t==null?void 0:t.assignedElements())!=null?a:[];for(let s of o)s.size=e;}updateFillIconColor(e){var r,a;let t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),o=(a=t==null?void 0:t.assignedElements())!=null?a:[];for(let s of o)s.fill=`#${e.toJSON()}`;}};n.tag="scandit-barcode-icon-container",n.observedAttributes=["width","height","backgroundstrokecolor","backgroundcolor","backgroundstrokewidth","iconcolor","backgroundshape"];var y=n;export{v as a,y as b};
|