@scandit/web-datacapture-label 7.2.2 → 7.3.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/js/{LabelCapture-B8_5_uoB.d.ts → LabelCapture-DDlDP--7.d.ts} +2 -1
- package/build/js/{LabelCaptureAdvancedOverlay-RkZkRrRD.d.ts → LabelCaptureAdvancedOverlay-CQsy_KsL.d.ts} +2 -2
- package/build/js/{LabelCaptureBasicOverlay-BcFyOGaf.d.ts → LabelCaptureBasicOverlay-4JorH1kZ.d.ts} +2 -2
- package/build/js/{NativeProxy-BgHIn4CU.d.ts → NativeProxy-CsndagT7.d.ts} +4 -3
- package/build/js/api/CustomText.d.ts +2 -2
- package/build/js/api/CustomTextBuilder.d.ts +2 -2
- package/build/js/api/ExpiryDateText.d.ts +1 -1
- package/build/js/api/ExpiryDateTextBuilder.d.ts +1 -1
- package/build/js/api/LabelCapture.d.ts +3 -3
- package/build/js/api/LabelCapture.js +1 -1
- package/build/js/api/LabelCaptureAdvancedOverlay.d.ts +4 -4
- package/build/js/api/LabelCaptureAdvancedOverlayListener.d.ts +4 -4
- package/build/js/api/LabelCaptureBasicOverlay.d.ts +4 -4
- package/build/js/api/LabelCaptureBasicOverlayListener.d.ts +4 -4
- package/build/js/api/LabelCaptureListener.d.ts +3 -3
- package/build/js/api/LabelCaptureOverlayJSON.d.ts +2 -2
- package/build/js/api/LabelCaptureSession.d.ts +1 -1
- package/build/js/api/LabelCaptureSettings.d.ts +4 -2
- package/build/js/api/LabelCaptureSettings.js +1 -1
- package/build/js/api/LabelDefinition.d.ts +2 -2
- package/build/js/api/PackingDateText.d.ts +1 -1
- package/build/js/api/PackingDateTextBuilder.d.ts +1 -1
- package/build/js/api/TotalPriceText.d.ts +2 -2
- package/build/js/api/TotalPriceTextBuilder.d.ts +2 -2
- package/build/js/api/UnitPriceText.d.ts +2 -2
- package/build/js/api/UnitPriceTextBuilder.d.ts +2 -2
- package/build/js/api/WeightText.d.ts +2 -2
- package/build/js/api/WeightTextBuilder.d.ts +2 -2
- package/build/js/chunks/chunk-6QS527PW.js +1 -0
- package/build/js/chunks/{chunk-Y3KV6YYP.js → chunk-7A4I3E3E.js} +1 -1
- package/build/js/chunks/chunk-BJFWGOUS.js +1 -1
- package/build/js/chunks/chunk-BUOQJS6T.js +2 -0
- package/build/js/chunks/chunk-CT6CX2MP.js +1 -0
- package/build/js/chunks/chunk-CWOXTL6A.js +1 -0
- package/build/js/chunks/chunk-F5NT65XG.js +1 -1
- package/build/js/chunks/chunk-GRFWM6G6.js +1 -1
- package/build/js/chunks/chunk-IASWN2Y3.js +1 -0
- package/build/js/chunks/chunk-IE6L7ZGI.js +1 -1
- package/build/js/chunks/chunk-JO7OMLH3.js +1 -0
- package/build/js/chunks/{chunk-KTDVOWK7.js → chunk-PEJQTQB4.js} +1 -1
- package/build/js/chunks/chunk-VRBAAE3G.js +1 -0
- package/build/js/chunks/chunk-XDPQXJ7N.js +1 -1
- package/build/js/chunks/chunk-XPMYDYJA.js +1 -1
- package/build/js/chunks/chunk-ZOJBHF75.js +1 -0
- package/build/js/chunks/chunk-ZRDTJCIB.js +1 -0
- package/build/js/chunks/chunk-ZRE7NHAY.js +6 -0
- package/build/js/djinni-types/sdcCoreInternalSdkCommonGeometry.d.ts +1 -1
- package/build/js/djinni-types/sdcCoreInternalSdkOcr.d.ts +1 -1
- package/build/js/djinni-types/sdcCoreInternalSdkUiViewfinder.d.ts +3 -1
- package/build/js/djinni-types/sdcLabelInternalModuleCapture.d.ts +36 -5
- package/build/js/djinni-types/sdcLabelInternalModuleUiOverlay.d.ts +1 -1
- package/build/js/index.d.ts +4 -4
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.js +1 -1
- package/build/js/private/PrivateLabelFieldDefinition.d.ts +2 -2
- package/build/js/private/createProxiedViewFinder.d.ts +4 -4
- package/build/js/private/fromWrappedFutureToPromise.d.ts +5 -0
- package/build/js/private/fromWrappedFutureToPromise.js +1 -0
- package/build/js/private/symbologiesTranslator.js +1 -1
- package/build/js/private/viewfinderTranslator.js +1 -1
- package/build/js/ui/atoms/InputManuallyButton.d.ts +17 -0
- package/build/js/ui/atoms/InputManuallyButton.js +6 -0
- package/build/js/ui/atoms/RoundedButton.d.ts +27 -0
- package/build/js/ui/atoms/RoundedButton.js +1 -0
- package/build/js/ui/atoms/TextInput.d.ts +78 -0
- package/build/js/ui/atoms/TextInput.js +10 -0
- package/build/js/ui/atoms/TextInputCardLayout.d.ts +16 -0
- package/build/js/ui/atoms/TextInputCardLayout.js +1 -0
- package/build/js/ui/molecules/CardListContainer.d.ts +50 -0
- package/build/js/ui/molecules/CardListContainer.js +7 -0
- package/build/js/ui/molecules/CardListRestartButton.d.ts +16 -0
- package/build/js/ui/molecules/CardListRestartButton.js +1 -0
- package/build/js/ui/molecules/CardListSubmitButton.d.ts +16 -0
- package/build/js/ui/molecules/CardListSubmitButton.js +1 -0
- package/build/js/ui/organisms/LabelCaptureViewLayout.d.ts +23 -0
- package/build/js/ui/organisms/LabelCaptureViewLayout.js +10 -0
- package/build/js/worker/LabelCaptureWorkerManager.d.ts +2 -2
- package/build/js/worker/LabelCaptureWorkerManager.js +1 -1
- package/build/js/worker/WorkerMain.d.ts +2 -2
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/WorkerRegistry.d.ts +2 -2
- package/build/js/worker/dataCaptureEngine.d.ts +2 -2
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +2 -2
- package/build/js/worker/{dataCapture.inlineWorker.d.ts → labelCapture.inlineWorker.d.ts} +2 -2
- package/build/js/worker/{dataCapture.inlineWorker.js → labelCapture.inlineWorker.js} +1 -1
- package/build/js/worker/labelWorkerHandler.d.ts +2 -2
- package/build/js/worker/proxies/AimerViewfinderProxy.d.ts +2 -2
- package/build/js/worker/proxies/AimerViewfinderProxy.js +1 -1
- package/build/js/worker/proxies/BarcodeFieldProxy.d.ts +2 -2
- package/build/js/worker/proxies/BarcodeFieldProxy.js +1 -1
- package/build/js/worker/proxies/CapturedLabelProxy.d.ts +2 -2
- package/build/js/worker/proxies/CapturedLabelProxy.js +1 -1
- package/build/js/worker/proxies/CustomBarcodeProxy.d.ts +2 -2
- package/build/js/worker/proxies/CustomBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/CustomTextProxy.d.ts +2 -2
- package/build/js/worker/proxies/CustomTextProxy.js +1 -1
- package/build/js/worker/proxies/ExpiryDateTextProxy.d.ts +2 -2
- package/build/js/worker/proxies/ExpiryDateTextProxy.js +1 -1
- package/build/js/worker/proxies/ImeiOneBarcodeProxy.d.ts +2 -2
- package/build/js/worker/proxies/ImeiOneBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/ImeiTwoBarcodeProxy.d.ts +2 -2
- package/build/js/worker/proxies/ImeiTwoBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureAdvancedOverlayProxy.d.ts +2 -2
- package/build/js/worker/proxies/LabelCaptureAdvancedOverlayProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureBasicOverlayProxy.d.ts +2 -2
- package/build/js/worker/proxies/LabelCaptureBasicOverlayProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureHelperProxy.d.ts +2 -2
- package/build/js/worker/proxies/LabelCaptureHelperProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureOverlayHelperProxy.d.ts +2 -2
- package/build/js/worker/proxies/LabelCaptureOverlayHelperProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureProxy.d.ts +4 -4
- package/build/js/worker/proxies/LabelCaptureProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureSessionProxy.d.ts +2 -2
- package/build/js/worker/proxies/LabelCaptureSessionProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureSettingsProxy.d.ts +3 -3
- package/build/js/worker/proxies/LabelCaptureSettingsProxy.js +1 -1
- package/build/js/worker/proxies/LabelDefinitionProxy.d.ts +2 -2
- package/build/js/worker/proxies/LabelDefinitionProxy.js +1 -1
- package/build/js/worker/proxies/LabelFieldDefinitionProxy.d.ts +2 -2
- package/build/js/worker/proxies/LabelFieldDefinitionProxy.js +1 -1
- package/build/js/worker/proxies/LabelFieldLocationProxy.d.ts +2 -2
- package/build/js/worker/proxies/LabelFieldLocationProxy.js +1 -1
- package/build/js/worker/proxies/LabelFieldProxy.d.ts +2 -2
- package/build/js/worker/proxies/LabelFieldProxy.js +1 -1
- package/build/js/worker/proxies/NativeProxy.d.ts +2 -2
- package/build/js/worker/proxies/NativeProxy.js +1 -1
- package/build/js/worker/proxies/NoViewfinderProxy.d.ts +2 -2
- package/build/js/worker/proxies/NoViewfinderProxy.js +1 -1
- package/build/js/worker/proxies/PackingDateTextProxy.d.ts +2 -2
- package/build/js/worker/proxies/PackingDateTextProxy.js +1 -1
- package/build/js/worker/proxies/PartNumberBarcodeProxy.d.ts +2 -2
- package/build/js/worker/proxies/PartNumberBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/RectangularViewfinderProxy.d.ts +2 -2
- package/build/js/worker/proxies/RectangularViewfinderProxy.js +1 -1
- package/build/js/worker/proxies/SerialNumberBarcodeProxy.d.ts +2 -2
- package/build/js/worker/proxies/SerialNumberBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/TotalPriceTextProxy.d.ts +2 -2
- package/build/js/worker/proxies/TotalPriceTextProxy.js +1 -1
- package/build/js/worker/proxies/UnitPriceTextProxy.d.ts +2 -2
- package/build/js/worker/proxies/UnitPriceTextProxy.js +1 -1
- package/build/js/worker/proxies/WeightTextProxy.d.ts +2 -2
- package/build/js/worker/proxies/WeightTextProxy.js +1 -1
- package/package.json +2 -2
- package/sdc-lib/scandit-datacapture-sdk-label-pthreads.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-label-pthreads.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-label-simd-pthreads.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-label-simd-pthreads.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-label-simd.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-label-simd.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-label.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-label.wasm +0 -0
- package/build/js/chunks/chunk-2X2D3ZT5.js +0 -1
- package/build/js/chunks/chunk-LULJHMFR.js +0 -2
- package/build/js/chunks/chunk-S3BOEZML.js +0 -1
- package/build/js/chunks/chunk-SB2YG7TF.js +0 -1
- package/build/js/chunks/chunk-U4TDG7AJ.js +0 -1
|
@@ -1,17 +1,43 @@
|
|
|
1
1
|
import { Symbology } from './sdcBarcodeData.js';
|
|
2
2
|
import { SymbologySettings } from './sdcSymbologySettings.js';
|
|
3
|
-
import {
|
|
3
|
+
import { WasmFrameData, DataCaptureContext } from '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
4
4
|
import { LocationSelection } from './sdcCoreInternalSdkArea.js';
|
|
5
5
|
import { WrappedFuture } from './sdcCoreInternalSdkCommonAsync.js';
|
|
6
6
|
import { ExternalOcrBackend } from './sdcCoreInternalSdkOcr.js';
|
|
7
7
|
import { Rect } from './sdcCoreCommonGeometry.js';
|
|
8
|
-
import {
|
|
8
|
+
import { LabelFieldLocationType, LabelDateComponentFormat } from './sdcLabelData.js';
|
|
9
9
|
import { CapturedLabel } from './sdcLabelInternalModuleData.js';
|
|
10
10
|
import './sdcCoreInternalSdkCommonGeometry.js';
|
|
11
11
|
import './sdcCoreCommon.js';
|
|
12
12
|
import './sdcBarcodeInternalSdkData.js';
|
|
13
13
|
import './sdcCoreCommonBuffer.js';
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* Copyright 2021 Snap, Inc.
|
|
17
|
+
* Copyright 2024 Scandit AG
|
|
18
|
+
*
|
|
19
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
20
|
+
* you may not use this file except in compliance with the License.
|
|
21
|
+
* You may obtain a copy of the License at
|
|
22
|
+
*
|
|
23
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
24
|
+
*
|
|
25
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
26
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
27
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
28
|
+
* See the License for the specific language governing permissions and
|
|
29
|
+
* limitations under the License.
|
|
30
|
+
*/
|
|
31
|
+
interface ResultOutcome<T> {
|
|
32
|
+
type: "result";
|
|
33
|
+
result: T;
|
|
34
|
+
}
|
|
35
|
+
interface ErrorOutcome<E> {
|
|
36
|
+
type: "error";
|
|
37
|
+
error: E;
|
|
38
|
+
}
|
|
39
|
+
type ResultOrError<T, E> = ResultOutcome<T> | ErrorOutcome<E>;
|
|
40
|
+
|
|
15
41
|
interface LabelCapture {
|
|
16
42
|
isEnabled(): boolean;
|
|
17
43
|
setEnabled(enabled: boolean): void;
|
|
@@ -44,9 +70,9 @@ interface LabelCaptureSettings {
|
|
|
44
70
|
getBlueprintJson(): string;
|
|
45
71
|
}
|
|
46
72
|
interface LabelCaptureSettings_statics {
|
|
47
|
-
loadFromString(description: string): LabelCaptureSettings
|
|
48
|
-
createFromLabelDefinitions(labelDefinitions: Array<LabelDefinition>): LabelCaptureSettings
|
|
49
|
-
create(labelDefinitions: Array<LabelDefinition>, hiddenPropertyJsonString: string): LabelCaptureSettings
|
|
73
|
+
loadFromString(description: string): ResultOrError<LabelCaptureSettings, string>;
|
|
74
|
+
createFromLabelDefinitions(labelDefinitions: Array<LabelDefinition>): ResultOrError<LabelCaptureSettings, string>;
|
|
75
|
+
create(labelDefinitions: Array<LabelDefinition>, hiddenPropertyJsonString: string, blueprintJsonUpdate: string): ResultOrError<LabelCaptureSettings, string>;
|
|
50
76
|
}
|
|
51
77
|
interface LabelCaptureSession {
|
|
52
78
|
getLabels(): Array<CapturedLabel>;
|
|
@@ -97,6 +123,7 @@ interface TextField {
|
|
|
97
123
|
setLocation(location: LabelFieldLocation): void;
|
|
98
124
|
getDataTypePatterns(): Array<string> | undefined;
|
|
99
125
|
setDataTypePatterns(dataTypePatterns: Array<string>): void;
|
|
126
|
+
resetDataTypePatterns(): void;
|
|
100
127
|
}
|
|
101
128
|
interface ExpiryDateText {
|
|
102
129
|
asLabelFieldDefinition(): LabelFieldDefinition;
|
|
@@ -154,6 +181,7 @@ interface TotalPriceText {
|
|
|
154
181
|
setLocation(location: LabelFieldLocation): void;
|
|
155
182
|
getDataTypePatterns(): Array<string> | undefined;
|
|
156
183
|
setDataTypePatterns(dataTypePatterns: Array<string>): void;
|
|
184
|
+
resetDataTypePatterns(): void;
|
|
157
185
|
}
|
|
158
186
|
interface TotalPriceText_statics {
|
|
159
187
|
create(name: string): TotalPriceText;
|
|
@@ -172,6 +200,7 @@ interface UnitPriceText {
|
|
|
172
200
|
setLocation(location: LabelFieldLocation): void;
|
|
173
201
|
getDataTypePatterns(): Array<string> | undefined;
|
|
174
202
|
setDataTypePatterns(dataTypePatterns: Array<string>): void;
|
|
203
|
+
resetDataTypePatterns(): void;
|
|
175
204
|
}
|
|
176
205
|
interface UnitPriceText_statics {
|
|
177
206
|
create(name: string): UnitPriceText;
|
|
@@ -190,6 +219,7 @@ interface WeightText {
|
|
|
190
219
|
setLocation(location: LabelFieldLocation): void;
|
|
191
220
|
getDataTypePatterns(): Array<string> | undefined;
|
|
192
221
|
setDataTypePatterns(dataTypePatterns: Array<string>): void;
|
|
222
|
+
resetDataTypePatterns(): void;
|
|
193
223
|
}
|
|
194
224
|
interface WeightText_statics {
|
|
195
225
|
create(name: string): WeightText;
|
|
@@ -208,6 +238,7 @@ interface CustomText {
|
|
|
208
238
|
setLocation(location: LabelFieldLocation): void;
|
|
209
239
|
getDataTypePatterns(): Array<string> | undefined;
|
|
210
240
|
setDataTypePatterns(dataTypePatterns: Array<string>): void;
|
|
241
|
+
resetDataTypePatterns(): void;
|
|
211
242
|
}
|
|
212
243
|
interface CustomText_statics {
|
|
213
244
|
create(name: string): CustomText;
|
|
@@ -13,9 +13,9 @@ import './sdcCoreCommonGeometry.js';
|
|
|
13
13
|
import './sdcCoreInternalSdkCommonAsync.js';
|
|
14
14
|
import './sdcCoreInternalSdkOcr.js';
|
|
15
15
|
import './sdcCoreCommon.js';
|
|
16
|
+
import './sdcCoreInternalSdkCommonGraphics.js';
|
|
16
17
|
import './sdcBarcodeInternalSdkData.js';
|
|
17
18
|
import './sdcCoreCommonBuffer.js';
|
|
18
|
-
import './sdcCoreInternalSdkCommonGraphics.js';
|
|
19
19
|
|
|
20
20
|
interface LabelCaptureBasicOverlayListener {
|
|
21
21
|
brushForField(overlay: LabelCaptureBasicOverlay, field: LabelField, label: CapturedLabel): Brush | undefined;
|
package/build/js/index.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ export { ImeiOneBarcode } from './api/ImeiOneBarcode.js';
|
|
|
10
10
|
export { ImeiOneBarcodeBuilder } from './api/ImeiOneBarcodeBuilder.js';
|
|
11
11
|
export { ImeiTwoBarcode } from './api/ImeiTwoBarcode.js';
|
|
12
12
|
export { ImeiTwoBarcodeBuilder } from './api/ImeiTwoBarcodeBuilder.js';
|
|
13
|
-
export { L as LabelCapture, a as LabelCaptureListener } from './LabelCapture-
|
|
14
|
-
export { L as LabelCaptureBasicOverlay, a as LabelCaptureBasicOverlayListener } from './LabelCaptureBasicOverlay-
|
|
13
|
+
export { L as LabelCapture, a as LabelCaptureListener } from './LabelCapture-DDlDP--7.js';
|
|
14
|
+
export { L as LabelCaptureBasicOverlay, a as LabelCaptureBasicOverlayListener } from './LabelCaptureBasicOverlay-4JorH1kZ.js';
|
|
15
15
|
export { LabelCaptureSession, LabelCaptureSessionJSON } from './api/LabelCaptureSession.js';
|
|
16
16
|
export { LabelCaptureSettings, LabelCaptureSettingsBuilder } from './api/LabelCaptureSettings.js';
|
|
17
17
|
export { LabelDateComponentFormat } from './api/LabelDateComponentFormat.js';
|
|
@@ -38,13 +38,13 @@ export { UnitPriceText } from './api/UnitPriceText.js';
|
|
|
38
38
|
export { UnitPriceTextBuilder } from './api/UnitPriceTextBuilder.js';
|
|
39
39
|
export { WeightText } from './api/WeightText.js';
|
|
40
40
|
export { WeightTextBuilder } from './api/WeightTextBuilder.js';
|
|
41
|
-
export { L as LabelCaptureAdvancedOverlay, a as LabelCaptureAdvancedOverlayListener } from './LabelCaptureAdvancedOverlay-
|
|
41
|
+
export { L as LabelCaptureAdvancedOverlay, a as LabelCaptureAdvancedOverlayListener } from './LabelCaptureAdvancedOverlay-CQsy_KsL.js';
|
|
42
42
|
export { labelCaptureLoader } from './moduleLoader.js';
|
|
43
43
|
import '@scandit/web-datacapture-barcode';
|
|
44
44
|
import '@scandit/web-datacapture-core';
|
|
45
45
|
import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
46
46
|
import './api/BarcodeFieldBuilder.js';
|
|
47
|
-
import './NativeProxy-
|
|
47
|
+
import './NativeProxy-CsndagT7.js';
|
|
48
48
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
49
49
|
import './djinni-types/sdcBarcodeInternalSdkData.js';
|
|
50
50
|
import './djinni-types/sdcBarcodeData.js';
|
package/build/js/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as WeightTextBuilder}from'./chunks/chunk-OIXWTJVO.js';export{a as WeightText}from'./chunks/chunk-PS5DNNLZ.js';export{a as SerialNumberBarcodeBuilder}from'./chunks/chunk-H5ATXM2K.js';export{a as SerialNumberBarcode}from'./chunks/chunk-QLVN2GEB.js';export{a as TotalPriceTextBuilder}from'./chunks/chunk-GPUOT6YB.js';export{a as TotalPriceText}from'./chunks/chunk-XT4UWGV5.js';export{a as UnitPriceTextBuilder}from'./chunks/chunk-AFWRIN4I.js';export{a as UnitPriceText}from'./chunks/chunk-5VERGYK4.js';export{a as LabelFieldLocation}from'./chunks/chunk-BGVFXDGB.js';export{a as LabelFieldState}from'./chunks/chunk-COOCFN2K.js';export{a as PackingDateTextBuilder}from'./chunks/chunk-XPMYDYJA.js';export{a as PackingDateText}from'./chunks/chunk-Z25YTWYI.js';export{a as PartNumberBarcodeBuilder}from'./chunks/chunk-HRSPIFUD.js';export{a as PartNumberBarcode}from'./chunks/chunk-LD3KGFYK.js';export{a as LabelCaptureSettings,b as LabelCaptureSettingsBuilder}from'./chunks/chunk-
|
|
1
|
+
export{a as WeightTextBuilder}from'./chunks/chunk-OIXWTJVO.js';export{a as WeightText}from'./chunks/chunk-PS5DNNLZ.js';export{a as SerialNumberBarcodeBuilder}from'./chunks/chunk-H5ATXM2K.js';export{a as SerialNumberBarcode}from'./chunks/chunk-QLVN2GEB.js';export{a as TotalPriceTextBuilder}from'./chunks/chunk-GPUOT6YB.js';export{a as TotalPriceText}from'./chunks/chunk-XT4UWGV5.js';export{a as UnitPriceTextBuilder}from'./chunks/chunk-AFWRIN4I.js';export{a as UnitPriceText}from'./chunks/chunk-5VERGYK4.js';export{a as LabelFieldLocation}from'./chunks/chunk-BGVFXDGB.js';export{a as LabelFieldState}from'./chunks/chunk-COOCFN2K.js';export{a as PackingDateTextBuilder}from'./chunks/chunk-XPMYDYJA.js';export{a as PackingDateText}from'./chunks/chunk-Z25YTWYI.js';export{a as PartNumberBarcodeBuilder}from'./chunks/chunk-HRSPIFUD.js';export{a as PartNumberBarcode}from'./chunks/chunk-LD3KGFYK.js';export{a as LabelCaptureSettings,b as LabelCaptureSettingsBuilder}from'./chunks/chunk-7A4I3E3E.js';export{a as LabelDateComponentFormat}from'./chunks/chunk-BJSBS5IL.js';export{a as LabelDateFormat}from'./chunks/chunk-BJFWGOUS.js';export{a as LabelDefinition,b as LabelDefinitionBuilder}from'./chunks/chunk-FRBS2U32.js';export{a as LabelCapture}from'./chunks/chunk-CT6CX2MP.js';export{a as LabelCaptureAdvancedOverlay}from'./chunks/chunk-446BONUZ.js';export{a as LabelCaptureBasicOverlay}from'./chunks/chunk-IE6L7ZGI.js';export{a as LabelCaptureSession}from'./chunks/chunk-MZS4F5K5.js';export{a as CustomTextBuilder}from'./chunks/chunk-3YJEYYNN.js';export{a as CustomText}from'./chunks/chunk-SQONULJF.js';export{a as ExpiryDateTextBuilder}from'./chunks/chunk-XDPQXJ7N.js';export{a as TextFieldBuilder}from'./chunks/chunk-QWUV2OFD.js';export{a as ExpiryDateText}from'./chunks/chunk-6KUX2QIV.js';export{a as ImeiOneBarcodeBuilder}from'./chunks/chunk-QMT35NSP.js';export{a as ImeiOneBarcode}from'./chunks/chunk-SGMJGVQ3.js';export{a as ImeiTwoBarcodeBuilder}from'./chunks/chunk-CTHVVCLQ.js';export{a as ImeiTwoBarcode}from'./chunks/chunk-Z5EEGVPC.js';export{a as labelCaptureLoader}from'./chunks/chunk-PEJQTQB4.js';export{a as CapturedLabel}from'./chunks/chunk-2YS44WAC.js';export{a as LabelField}from'./chunks/chunk-WCKFTTTM.js';export{a as LabelFieldType}from'./chunks/chunk-ZU6C4VWO.js';export{a as LabelDateResult}from'./chunks/chunk-D5PIEZCN.js';export{a as CustomBarcodeBuilder}from'./chunks/chunk-LLGO7KH5.js';export{a as LabelFieldDefinitionBuilder}from'./chunks/chunk-GRFWM6G6.js';export{a as CustomBarcode}from'./chunks/chunk-KVDETJIR.js';
|
package/build/js/moduleLoader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as labelCaptureLoader}from'./chunks/chunk-
|
|
1
|
+
export{a as labelCaptureLoader}from'./chunks/chunk-PEJQTQB4.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
2
2
|
import { LabelFieldDefinition } from '../api/LabelFieldDefinition.js';
|
|
3
|
-
import { N as NativeProxyHandle } from '../NativeProxy-
|
|
3
|
+
import { N as NativeProxyHandle } from '../NativeProxy-CsndagT7.js';
|
|
4
4
|
import '@scandit/web-datacapture-barcode';
|
|
5
5
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
6
6
|
import '../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
@@ -28,9 +28,9 @@ import '../api/LabelFieldState.js';
|
|
|
28
28
|
import '../api/LabelFieldType.js';
|
|
29
29
|
import '../api/LabelDateResult.js';
|
|
30
30
|
import '../api/LabelCaptureSession.js';
|
|
31
|
+
import '../api/LabelFieldLocationType.js';
|
|
31
32
|
import '../api/LabelDateFormat.js';
|
|
32
33
|
import '../api/LabelDateComponentFormat.js';
|
|
33
|
-
import '../api/LabelFieldLocationType.js';
|
|
34
34
|
|
|
35
35
|
interface PrivateLabelFieldDefinition extends LabelFieldDefinition {
|
|
36
36
|
[nativeHandle]: NativeProxyHandle;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AimerViewfinder, RectangularViewfinder } from '@scandit/web-datacapture-core';
|
|
2
|
-
import { L as LabelCaptureBasicOverlay } from '../LabelCaptureBasicOverlay-
|
|
2
|
+
import { L as LabelCaptureBasicOverlay } from '../LabelCaptureBasicOverlay-4JorH1kZ.js';
|
|
3
3
|
import { LabelCaptureWorkerManager } from '../worker/LabelCaptureWorkerManager.js';
|
|
4
4
|
import '../djinni-types/sdcLabelData.js';
|
|
5
5
|
import '@scandit/web-datacapture-core/build/js/private/Serializable';
|
|
@@ -10,7 +10,7 @@ import '@scandit/web-datacapture-barcode';
|
|
|
10
10
|
import '../api/LabelFieldState.js';
|
|
11
11
|
import '../api/LabelFieldType.js';
|
|
12
12
|
import '../api/LabelDateResult.js';
|
|
13
|
-
import '../NativeProxy-
|
|
13
|
+
import '../NativeProxy-CsndagT7.js';
|
|
14
14
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
15
15
|
import '../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
16
16
|
import '../djinni-types/sdcBarcodeData.js';
|
|
@@ -30,10 +30,10 @@ import '../djinni-types/sdcLabelInternalModuleUiOverlay.js';
|
|
|
30
30
|
import '../djinni-types/sdcCoreInternalSdkCapture.js';
|
|
31
31
|
import '../djinni-types/sdcCoreInternalSdkUiStyle.js';
|
|
32
32
|
import '../api/LabelCaptureSession.js';
|
|
33
|
+
import '../api/LabelFieldLocationType.js';
|
|
33
34
|
import '../api/LabelDateFormat.js';
|
|
34
35
|
import '../api/LabelDateComponentFormat.js';
|
|
35
|
-
import '../
|
|
36
|
-
import '../LabelCapture-B8_5_uoB.js';
|
|
36
|
+
import '../LabelCapture-DDlDP--7.js';
|
|
37
37
|
import '../api/LabelCaptureSettings.js';
|
|
38
38
|
import '../api/LabelDefinition.js';
|
|
39
39
|
import '../api/CustomBarcode.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as fromWrappedFutureToPromise}from'../chunks/chunk-JO7OMLH3.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as mapNativeSymbologyToWebSymbology,a as mapWebSymbologyToNativeSymbology}from'../chunks/chunk-
|
|
1
|
+
export{b as mapNativeSymbologyToWebSymbology,a as mapWebSymbologyToNativeSymbology}from'../chunks/chunk-ZRDTJCIB.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as nativeViewfinderFromJSON}from'../chunks/chunk-
|
|
1
|
+
export{C as nativeViewfinderFromJSON}from'../chunks/chunk-6QS527PW.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ScanditHTMLElement } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
2
|
+
|
|
3
|
+
declare class InputManuallyButton extends ScanditHTMLElement {
|
|
4
|
+
static tag: "scandit-input-manually-button";
|
|
5
|
+
constructor();
|
|
6
|
+
connectedCallback(): Promise<void>;
|
|
7
|
+
static create(): InputManuallyButton;
|
|
8
|
+
static register(): void;
|
|
9
|
+
private static createStyleElement;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
[InputManuallyButton.tag]: InputManuallyButton;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { InputManuallyButton };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';import {ScanditIconBuilder,ScanditIconType,Color}from'@scandit/web-datacapture-core';var t=class t extends ScanditHTMLElement{constructor(){super();let e=this.attachShadow({mode:"open"});e.innerHTML=html`
|
|
2
|
+
<button>
|
|
3
|
+
<slot name="icon"></slot>
|
|
4
|
+
<slot></slot>
|
|
5
|
+
</button>
|
|
6
|
+
`,e.append(t.createStyleElement().cloneNode(true));}async connectedCallback(){let n=await new ScanditIconBuilder().withIcon(ScanditIconType.Keyboard).withIconColor(Color.fromHex("#000")).withWidth(20).withHeight(20).withIconSize(20).build();n.setAttribute("slot","icon"),this.append(n);}static create(){return document.createElement(t.tag)}static register(){defineCustomElements({[t.tag]:t});}static createStyleElement(){return css`:host{display:inline-block}:host([hidden]){display:none}:host button{align-items:center;border:none;border-radius:1rem;color:#1a1a1a;display:flex;font-size:.875rem;font-weight:700;gap:.25rem;justify-content:center;min-width:190px;padding:.5rem;text-align:center}`}};t.tag="scandit-input-manually-button";var o=t;export{o as InputManuallyButton};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ScanditHTMLElement } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
2
|
+
import { Color, ScanditIconType } from '@scandit/web-datacapture-core';
|
|
3
|
+
|
|
4
|
+
declare class RoundedButton extends ScanditHTMLElement {
|
|
5
|
+
static tag: "scandit-rounded-button";
|
|
6
|
+
private _backgroundColor;
|
|
7
|
+
private _icon;
|
|
8
|
+
private _iconColor;
|
|
9
|
+
private _iconSize;
|
|
10
|
+
constructor();
|
|
11
|
+
connectedCallback(): Promise<void>;
|
|
12
|
+
static create(): RoundedButton;
|
|
13
|
+
static register(): void;
|
|
14
|
+
set backgroundColor(color: Color);
|
|
15
|
+
set icon(icon: ScanditIconType);
|
|
16
|
+
set iconColor(color: Color);
|
|
17
|
+
set iconSize(size: number);
|
|
18
|
+
private updateStyles;
|
|
19
|
+
private static createStyleElement;
|
|
20
|
+
}
|
|
21
|
+
declare global {
|
|
22
|
+
interface HTMLElementTagNameMap {
|
|
23
|
+
[RoundedButton.tag]: RoundedButton;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { RoundedButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as RoundedButton}from'../../chunks/chunk-ZRE7NHAY.js';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ScanditHTMLElement } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
2
|
+
|
|
3
|
+
type TextInputType = 'text' | 'date' | 'currency';
|
|
4
|
+
declare class TextInput extends ScanditHTMLElement {
|
|
5
|
+
static tag: "scandit-text-input";
|
|
6
|
+
private _inputElement;
|
|
7
|
+
private _labelText;
|
|
8
|
+
private _labelContainer;
|
|
9
|
+
private _errorMessageElement;
|
|
10
|
+
private _iconContainerElement;
|
|
11
|
+
private _type;
|
|
12
|
+
private _value;
|
|
13
|
+
private _label;
|
|
14
|
+
private _locale;
|
|
15
|
+
private _currencyCode;
|
|
16
|
+
private _required;
|
|
17
|
+
private _handleChange;
|
|
18
|
+
private _handleInput;
|
|
19
|
+
private _handleFocus;
|
|
20
|
+
private _handleBlur;
|
|
21
|
+
private _handleCrossIconClick;
|
|
22
|
+
private _handleAimerIconClick;
|
|
23
|
+
private _crossIcon;
|
|
24
|
+
private _aimerIcon;
|
|
25
|
+
private _intlFormatter;
|
|
26
|
+
private _keyboardIcon;
|
|
27
|
+
constructor();
|
|
28
|
+
get value(): string;
|
|
29
|
+
set value(val: string);
|
|
30
|
+
get errorMessage(): string;
|
|
31
|
+
set errorMessage(val: string);
|
|
32
|
+
get type(): TextInputType;
|
|
33
|
+
set type(val: TextInputType);
|
|
34
|
+
get label(): string;
|
|
35
|
+
set label(val: string);
|
|
36
|
+
get locale(): string;
|
|
37
|
+
set locale(val: string);
|
|
38
|
+
get currencyCode(): string;
|
|
39
|
+
set currencyCode(val: string);
|
|
40
|
+
get required(): boolean;
|
|
41
|
+
set required(val: boolean);
|
|
42
|
+
private _formatValue;
|
|
43
|
+
private _onInput;
|
|
44
|
+
private _onChange;
|
|
45
|
+
private _onFocus;
|
|
46
|
+
private _onBlur;
|
|
47
|
+
focus(): void;
|
|
48
|
+
blur(): void;
|
|
49
|
+
connectedCallback(): void;
|
|
50
|
+
disconnectedCallback(): void;
|
|
51
|
+
private _setupEventListeners;
|
|
52
|
+
private _removeEventListeners;
|
|
53
|
+
private _onCrossIconClick;
|
|
54
|
+
private _onAimerIconClick;
|
|
55
|
+
static create(): TextInput;
|
|
56
|
+
static register(): void;
|
|
57
|
+
private static createStyleElement;
|
|
58
|
+
}
|
|
59
|
+
declare global {
|
|
60
|
+
interface HTMLElementTagNameMap {
|
|
61
|
+
[TextInput.tag]: TextInput;
|
|
62
|
+
}
|
|
63
|
+
interface HTMLElementEventMap {
|
|
64
|
+
'change': CustomEvent<{
|
|
65
|
+
value: string;
|
|
66
|
+
formattedValue: string;
|
|
67
|
+
}>;
|
|
68
|
+
'aimer-icon-click': CustomEvent;
|
|
69
|
+
'focus': CustomEvent<{
|
|
70
|
+
target: HTMLInputElement;
|
|
71
|
+
}>;
|
|
72
|
+
'blur': CustomEvent<{
|
|
73
|
+
target: HTMLInputElement;
|
|
74
|
+
}>;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export { TextInput, type TextInputType };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {AimerSvgIcon}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/AimerSvgIcon.js';import {KeyboardSvgIcon}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/KeyboardSvgIcon.js';import {RoundedCrossSvgIcon}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/RoundedCrossSvgIcon.js';import {SecondaryRed100}from'@scandit/web-datacapture-core/build/js/private/ui/colors.js';import {html,ScanditHTMLElement,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var d=html`
|
|
2
|
+
<label class="text-input-container">
|
|
3
|
+
<span class="label-text"></span>
|
|
4
|
+
<div class="input-wrapper">
|
|
5
|
+
<input type="text" class="text-input" />
|
|
6
|
+
<div class="icon-container"></div>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="error-message"></div>
|
|
9
|
+
</label>
|
|
10
|
+
`,i=class i extends ScanditHTMLElement{constructor(){super();this._inputElement=null;this._labelText=null;this._labelContainer=null;this._errorMessageElement=null;this._iconContainerElement=null;this._type="text";this._value="";this._label="";this._locale=navigator.language||"en-US";this._currencyCode="USD";this._required=false;this._handleChange=this._onChange.bind(this);this._handleInput=this._onInput.bind(this);this._handleFocus=this._onFocus.bind(this);this._handleBlur=this._onBlur.bind(this);this._handleCrossIconClick=this._onCrossIconClick.bind(this);this._handleAimerIconClick=this._onAimerIconClick.bind(this);this._crossIcon=null;this._aimerIcon=null;this._intlFormatter=null;this._keyboardIcon=null;let t=this.attachShadow({mode:"open"});t.innerHTML=d,t.appendChild(i.createStyleElement()),this._inputElement=t.querySelector(".text-input"),this._labelText=t.querySelector(".label-text"),this._labelContainer=t.querySelector("label"),this._errorMessageElement=t.querySelector(".error-message"),this._iconContainerElement=t.querySelector(".icon-container");}get value(){return this._value}set value(t){this._value=t,this._inputElement&&(this._inputElement.value=this._formatValue(t),this._labelContainer.classList.toggle("has-value",t.length>0));}get errorMessage(){var t;return ((t=this._errorMessageElement)==null?void 0:t.textContent)||""}set errorMessage(t){this._errorMessageElement&&(this._errorMessageElement.textContent=t);}get type(){return this._type}set type(t){this._type=t,this._inputElement&&this._value&&(this._inputElement.value=this._formatValue(this._value)),this._inputElement&&(this._type==="currency"?(this._inputElement.inputMode="numeric",this._inputElement.setAttribute("aria-role","textbox"),this._inputElement.setAttribute("aria-description","Currency input")):this._type==="date"&&(this._inputElement.inputMode="numeric",this._inputElement.setAttribute("aria-role","textbox"),this._inputElement.setAttribute("aria-description","Date input")));}get label(){return this._label}set label(t){this._label=t,this._labelText.textContent=t;}get locale(){return this._locale}set locale(t){this._locale=t,this._intlFormatter=new Intl.NumberFormat(this._locale,{style:"currency",currency:this._currencyCode,currencyDisplay:"symbol"}),this._inputElement&&this._value&&(this._inputElement.value=this._formatValue(this._value));}get currencyCode(){return this._currencyCode}set currencyCode(t){this._currencyCode=t,this._intlFormatter=new Intl.NumberFormat(this._locale,{style:"currency",currency:this._currencyCode,currencyDisplay:"symbol"}),this._type==="currency"&&this._inputElement&&this._value&&(this._inputElement.value=this._formatValue(this._value));}get required(){var t,e;return (e=(t=this._inputElement)==null?void 0:t.required)!=null?e:false}set required(t){this._required=t,this._inputElement&&(this._inputElement.required=t);}_formatValue(t){if(!t)return "";switch(this._type){case "currency":try{let e=Number.parseFloat(t.replace(/[^\d.-]/g,""));return Number.isNaN(e)?t:this._intlFormatter.format(e)}catch(e){return t.startsWith("$")?t:`$${t}`}case "date":try{let e=new Date(t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString(this._locale,{year:"numeric",month:"2-digit",day:"2-digit"})}catch(e){return t}default:return t}}_onInput(t){if(!this._inputElement)return;let e=t.target;this._labelContainer.classList.toggle("has-value",e.value.length>0);}_onChange(t){if(!this._inputElement)return;let n=t.target.value;this.value=n,this.dispatchEvent(new CustomEvent("change",{bubbles:true,composed:true,detail:{value:this._value,formattedValue:this._inputElement.value}}));}_onFocus(){this.setAttribute("focused",""),this.dispatchEvent(new CustomEvent("focus",{detail:{target:this._inputElement},bubbles:true,composed:true}));}_onBlur(){this.removeAttribute("focused"),this._inputElement&&this._value&&(this._inputElement.value=this._formatValue(this._value)),this.dispatchEvent(new CustomEvent("blur",{detail:{target:this._inputElement},bubbles:true,composed:true}));}focus(){var t,e;(e=(t=this._inputElement)==null?void 0:t.focus)==null||e.call(t);}blur(){var t,e;(e=(t=this._inputElement)==null?void 0:t.blur)==null||e.call(t);}connectedCallback(){var t,e,n;if(this.hasAttribute("label")&&(this.label=this.getAttribute("label")||""),this.hasAttribute("type")){let r=this.getAttribute("type");(r==="text"||r==="date"||r==="currency")&&(this.type=r);}this.hasAttribute("value")&&(this.value=this.getAttribute("value")||""),this.hasAttribute("locale")&&(this.locale=this.getAttribute("locale")||navigator.language||"en-US"),this.hasAttribute("currency-code")&&(this.currencyCode=this.getAttribute("currency-code")||"USD"),this.hasAttribute("required")&&(this.required=this.getAttribute("required")!==null),this.hasAttribute("error-message")&&this._errorMessageElement&&(this._errorMessageElement.textContent=this.getAttribute("error-message")||""),this._crossIcon=RoundedCrossSvgIcon.create(),this._crossIcon.size=24,(t=this._iconContainerElement)==null||t.appendChild(this._crossIcon),this._aimerIcon=AimerSvgIcon.create(),this._aimerIcon.size=24,(e=this._iconContainerElement)==null||e.appendChild(this._aimerIcon),this._keyboardIcon=KeyboardSvgIcon.create(),this._keyboardIcon.size=24,(n=this._iconContainerElement)==null||n.appendChild(this._keyboardIcon),this._intlFormatter=new Intl.NumberFormat(this._locale,{style:"currency",currency:this._currencyCode,currencyDisplay:"symbol"}),this._setupEventListeners();}disconnectedCallback(){this._removeEventListeners();}_setupEventListeners(){var t,e;this._inputElement&&(this._inputElement.addEventListener("input",this._handleInput),this._inputElement.addEventListener("change",this._handleChange),this._inputElement.addEventListener("focus",this._handleFocus),this._inputElement.addEventListener("blur",this._handleBlur),(t=this._crossIcon)==null||t.addEventListener("click",this._handleCrossIconClick,{capture:true}),(e=this._aimerIcon)==null||e.addEventListener("click",this._handleAimerIconClick,{capture:true}));}_removeEventListeners(){var t,e;this._inputElement&&(this._inputElement.removeEventListener("input",this._handleInput),this._inputElement.removeEventListener("change",this._handleChange),this._inputElement.removeEventListener("focus",this._handleFocus),this._inputElement.removeEventListener("blur",this._handleBlur),(t=this._crossIcon)==null||t.removeEventListener("click",this._handleCrossIconClick,{capture:true}),(e=this._aimerIcon)==null||e.removeEventListener("click",this._handleAimerIconClick,{capture:true}));}_onCrossIconClick(t){t&&(t.stopPropagation(),t.preventDefault()),this.value="";}_onAimerIconClick(t){t&&(t.stopPropagation(),t.preventDefault()),this.dispatchEvent(new CustomEvent("aimer-icon-click",{bubbles:true,composed:true}));}static create(){return document.createElement(i.tag)}static register(){defineCustomElements({[i.tag]:i});}static createStyleElement(){return css`:host{display:block;font-family:Noto Sans,Open Sans,sans-serif}.text-input-container{display:flex;flex-direction:column;width:100%}.label-text{color:#000;font-size:.75rem;font-style:normal;font-weight:400;margin-bottom:6px}.input-wrapper{align-items:center;border-bottom:1px solid #000;display:flex;gap:.5rem;height:1.75rem;overflow:hidden;position:relative;transition:border-color .2s ease-in-out;width:100%}:host([focused]) .input-wrapper{border-color:#000}:host ${AimerSvgIcon.tag},:host ${RoundedCrossSvgIcon.tag},:host ${KeyboardSvgIcon.tag}{cursor:pointer;display:none;pointer-events:auto;z-index:2}:host(:not([focused])) .text-input-container.has-value ${RoundedCrossSvgIcon.tag}{display:block}:host(:not([focused])) .text-input-container:not(.has-value) ${AimerSvgIcon.tag}{display:block}:host([focused]) .text-input-container ${KeyboardSvgIcon.tag}{display:block}:host([invalid]) .input-wrapper{border-color:#${SecondaryRed100.toJSON()}}:host([invalid]) .error-message{visibility:visible}.text-input{background-color:transparent;border:none;flex:1;font-size:1rem;font-style:normal;font-weight:700}.text-input,.text-input:focus{outline:none}.icon-container{align-items:center;cursor:pointer;display:flex;height:1.5rem;justify-content:center;width:1.5rem}.text-input:focus-visible{outline:none}.error-message{color:#${SecondaryRed100.toJSON()};font-size:.75rem;margin-top:.25rem;min-height:1rem;visibility:hidden}`}};i.tag="scandit-text-input";var u=i;export{u as TextInput};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ScanditHTMLElement } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
2
|
+
|
|
3
|
+
declare class TextInputCardLayout extends ScanditHTMLElement {
|
|
4
|
+
static tag: "scandit-text-input-card-layout";
|
|
5
|
+
constructor();
|
|
6
|
+
static create(): TextInputCardLayout;
|
|
7
|
+
static register(): void;
|
|
8
|
+
private static createStyleElement;
|
|
9
|
+
}
|
|
10
|
+
declare global {
|
|
11
|
+
interface HTMLElementTagNameMap {
|
|
12
|
+
[TextInputCardLayout.tag]: TextInputCardLayout;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { TextInputCardLayout };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as TextInputCardLayout}from'../../chunks/chunk-CWOXTL6A.js';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ScanditHTMLElement } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
2
|
+
import { Card } from '@scandit/web-datacapture-core/build/js/private/ui/atoms/Card.js';
|
|
3
|
+
|
|
4
|
+
declare enum CardListContainerAttribute {
|
|
5
|
+
TextForSubmitCardsButton = "text-for-submit-cards-button"
|
|
6
|
+
}
|
|
7
|
+
declare enum CardListContainerEvent {
|
|
8
|
+
SubmitCards = "submit-cards",
|
|
9
|
+
RestartButtonClick = "restart-button-click"
|
|
10
|
+
}
|
|
11
|
+
declare class CardListContainer extends ScanditHTMLElement {
|
|
12
|
+
private static deps;
|
|
13
|
+
static tag: "scandit-label-card-list-container";
|
|
14
|
+
static observedAttributes: string[];
|
|
15
|
+
private onCarouselSubmitButtonClickHandler;
|
|
16
|
+
private onCarouselBackButtonClickHandler;
|
|
17
|
+
private textNode;
|
|
18
|
+
buttonContainer: any;
|
|
19
|
+
constructor();
|
|
20
|
+
set [CardListContainerAttribute.TextForSubmitCardsButton](text: string);
|
|
21
|
+
get [CardListContainerAttribute.TextForSubmitCardsButton](): string | null;
|
|
22
|
+
private get cardsList();
|
|
23
|
+
private get cardListBackRestartButton();
|
|
24
|
+
private get cardListSubmitButton();
|
|
25
|
+
static create(): CardListContainer;
|
|
26
|
+
static register(): void;
|
|
27
|
+
private static createStyleElement;
|
|
28
|
+
onCarouselSubmitButtonClick(): void;
|
|
29
|
+
onCarouselBackButtonClick(_event: Event): void;
|
|
30
|
+
attributeChangeCallback(name: keyof CardListContainer, _oldValue: string, newValue: string): void;
|
|
31
|
+
connectedCallback(): void;
|
|
32
|
+
disconnectedCallback(): void;
|
|
33
|
+
collapse(): void;
|
|
34
|
+
expand(): void;
|
|
35
|
+
renderCards(cards: Card[]): void;
|
|
36
|
+
unshiftCard(card: Card): Promise<void>;
|
|
37
|
+
getCardBySelector(selector: string): Card | null;
|
|
38
|
+
updateHeight(height: number): void;
|
|
39
|
+
}
|
|
40
|
+
declare global {
|
|
41
|
+
interface HTMLElementTagNameMap {
|
|
42
|
+
[CardListContainer.tag]: CardListContainer;
|
|
43
|
+
}
|
|
44
|
+
interface HTMLElementEventMap {
|
|
45
|
+
[CardListContainerEvent.SubmitCards]: CustomEvent;
|
|
46
|
+
[CardListContainerEvent.RestartButtonClick]: CustomEvent;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export { CardListContainer, CardListContainerAttribute, CardListContainerEvent };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import {a}from'../../chunks/chunk-IASWN2Y3.js';import {a as a$1}from'../../chunks/chunk-VRBAAE3G.js';import {a as a$2}from'../../chunks/chunk-CWOXTL6A.js';import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';import {Card}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/Card.js';import {CardList}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/CardList.js';var h=(o=>(o.TextForSubmitCardsButton="text-for-submit-cards-button",o))(h||{}),c="cubic-bezier(0.4, 0, 0.2, 1)",B=(t=>(t.SubmitCards="submit-cards",t.RestartButtonClick="restart-button-click",t))(B||{}),e=class e extends ScanditHTMLElement{constructor(){super();this.onCarouselSubmitButtonClickHandler=this.onCarouselSubmitButtonClick.bind(this);this.onCarouselBackButtonClickHandler=this.onCarouselBackButtonClick.bind(this);this.textNode=document.createTextNode("");let t=this.attachShadow({mode:"open"});t.append(e.createStyleElement().cloneNode(true));let i=document.createElement("div");i.id="root",i.innerHTML=html`
|
|
2
|
+
<div class="button-container">
|
|
3
|
+
<${a.tag}></${a.tag}>
|
|
4
|
+
<${a$1.tag}></${a$1.tag}>
|
|
5
|
+
</div>
|
|
6
|
+
<${CardList.tag}></${CardList.tag}>
|
|
7
|
+
`,t.append(i),this.buttonContainer=this.shadowRoot.querySelector(".button-container"),this.cardListSubmitButton.append(this.textNode);}set"text-for-submit-cards-button"(t){this.textNode.textContent=t;}get"text-for-submit-cards-button"(){return this.textNode.textContent}get cardsList(){return this.shadowRoot.querySelector(CardList.tag)}get cardListBackRestartButton(){return this.shadowRoot.querySelector(a.tag)}get cardListSubmitButton(){return this.shadowRoot.querySelector(a$1.tag)}static create(){return document.createElement(e.tag)}static register(){for(let t of e.deps)t.register();defineCustomElements({[e.tag]:e});}static createStyleElement(){return css`:host #root{align-items:center;display:flex;flex-direction:column;gap:.5rem;height:100%}.button-container{align-items:center;display:flex;flex-direction:row;gap:.5rem;justify-content:space-between;opacity:1;transform:translateY(0);transition:opacity ${c} .5s,transform ${c} .5s;width:100%}.button-container.hide{opacity:0;transform:translateY(100%)}`}onCarouselSubmitButtonClick(){this.dispatchEvent(new CustomEvent("submit-cards"));}onCarouselBackButtonClick(t){this.dispatchEvent(new CustomEvent("restart-button-click"));}attributeChangeCallback(t,i,d){t==="text-for-submit-cards-button"&&(this["text-for-submit-cards-button"]=d);}connectedCallback(){this.textNode.textContent=this.getAttribute("text-for-submit-cards-button"),this.cardListBackRestartButton.addEventListener("click",this.onCarouselBackButtonClickHandler),this.cardListSubmitButton.addEventListener("click",this.onCarouselSubmitButtonClickHandler);}disconnectedCallback(){this.cardListBackRestartButton.removeEventListener("click",this.onCarouselBackButtonClickHandler),this.cardListSubmitButton.removeEventListener("click",this.onCarouselSubmitButtonClickHandler);}collapse(){var t;this.cardsList.collapsed=true,(t=this.buttonContainer)==null||t.classList.add("hide");}expand(){var t;this.cardsList.collapsed=false,(t=this.buttonContainer)==null||t.classList.remove("hide");}renderCards(t){this.cardsList.clearCards(),this.cardsList.renderCards(t);}async unshiftCard(t){return this.cardsList.unshift(t)}getCardBySelector(t){return this.cardsList.querySelector(t)}updateHeight(t){let i=this.cardListBackRestartButton.clientHeight;this.cardsList.style.setProperty("--list-height",`${t}px`),this.cardsList.style.setProperty("--top-offset",`calc(${i===0?32:i}px + 5rem)`);}};e.deps=[CardList,Card,a,a$1,a$2],e.tag="scandit-label-card-list-container",e.observedAttributes=["text-for-submit-cards-button"];var u=e;export{u as CardListContainer,h as CardListContainerAttribute,B as CardListContainerEvent};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ScanditHTMLElement } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
2
|
+
|
|
3
|
+
declare class CardListRestartButton extends ScanditHTMLElement {
|
|
4
|
+
static tag: "scandit-label-card-list-restart-button";
|
|
5
|
+
private button;
|
|
6
|
+
constructor();
|
|
7
|
+
static create(): CardListRestartButton;
|
|
8
|
+
static register(): void;
|
|
9
|
+
}
|
|
10
|
+
declare global {
|
|
11
|
+
interface HTMLElementTagNameMap {
|
|
12
|
+
[CardListRestartButton.tag]: CardListRestartButton;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { CardListRestartButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as CardListRestartButton}from'../../chunks/chunk-IASWN2Y3.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ScanditHTMLElement } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
2
|
+
|
|
3
|
+
declare class CardListSubmitButton extends ScanditHTMLElement {
|
|
4
|
+
static tag: "scandit-label-card-list-submit-button";
|
|
5
|
+
private button;
|
|
6
|
+
constructor();
|
|
7
|
+
static create(): CardListSubmitButton;
|
|
8
|
+
static register(): void;
|
|
9
|
+
}
|
|
10
|
+
declare global {
|
|
11
|
+
interface HTMLElementTagNameMap {
|
|
12
|
+
[CardListSubmitButton.tag]: CardListSubmitButton;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { CardListSubmitButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as CardListSubmitButton}from'../../chunks/chunk-VRBAAE3G.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ScanditHTMLElement } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
2
|
+
|
|
3
|
+
declare class LabelCaptureViewLayout extends ScanditHTMLElement {
|
|
4
|
+
static tag: "scandit-label-capture-view-layout";
|
|
5
|
+
private orientationObserver;
|
|
6
|
+
private onOrientationChangeHandler;
|
|
7
|
+
constructor();
|
|
8
|
+
private get cardListContainer();
|
|
9
|
+
private get main();
|
|
10
|
+
static create(): LabelCaptureViewLayout;
|
|
11
|
+
static register(): void;
|
|
12
|
+
private static createStyleElement;
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
disconnectedCallback(): void;
|
|
15
|
+
private onOrientationChange;
|
|
16
|
+
}
|
|
17
|
+
declare global {
|
|
18
|
+
interface HTMLElementTagNameMap {
|
|
19
|
+
[LabelCaptureViewLayout.tag]: LabelCaptureViewLayout;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { LabelCaptureViewLayout };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {OrientationObserver,orientationChangeEvent}from'@scandit/web-datacapture-core/build/js/private/OrientationObserver.js';import {ScanditHTMLElement,debounce,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var e=class e extends ScanditHTMLElement{constructor(){super();this.orientationObserver=new OrientationObserver;this.onOrientationChangeHandler=debounce(this.onOrientationChange.bind(this),50);let t=this.attachShadow({mode:"open"});t.append(e.createStyleElement().cloneNode(true));let i=document.createElement("div");i.id="root",i.innerHTML=html`
|
|
2
|
+
<div class="wrapper">
|
|
3
|
+
<div class="main">
|
|
4
|
+
<slot name="card-list"></slot>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="bottom-container">
|
|
7
|
+
<slot name="bottom-button"></slot>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
`,t.append(i);}get cardListContainer(){return this.querySelector('[slot="card-list"]')}get main(){var t;return (t=this.shadowRoot)==null?void 0:t.querySelector(".main")}static create(){return document.createElement(e.tag)}static register(){defineCustomElements({[e.tag]:e});}static createStyleElement(){return css`:host{inset:0;overflow:hidden;position:absolute;z-index:1}:host #root{--padding:1rem;box-sizing:border-box;display:flex;flex-direction:column;gap:.5rem;height:100%;justify-content:space-between;margin:0 auto;max-width:960px;padding:calc(var(--padding))}.main{overflow:hidden}.main,.wrapper{display:flex;flex-direction:column}.wrapper{gap:.5rem;height:100%;justify-content:flex-end}.bottom-container{align-items:center;display:flex;justify-content:center}@media (orientation:landscape){.wrapper{flex:0 70%;height:100%;margin:0 auto}:host #root{flex-direction:row}}`}connectedCallback(){this.orientationObserver.addEventListener(orientationChangeEvent,this.onOrientationChangeHandler),this.orientationObserver.register();}disconnectedCallback(){this.orientationObserver.unregister(),this.orientationObserver.removeEventListener(orientationChangeEvent,this.onOrientationChangeHandler);}onOrientationChange(t){var i,n,a,r,o;(i=this.main)==null||i.style.setProperty("height","100%"),(r=this.cardListContainer)==null||r.updateHeight((a=(n=this.main)==null?void 0:n.getBoundingClientRect().height)!=null?a:0),(o=this.main)==null||o.style.setProperty("height","unset");}};e.tag="scandit-label-capture-view-layout";var l=e;export{l as LabelCaptureViewLayout};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataCaptureLoader, DataCaptureLoaderOptions } from '@scandit/web-datacapture-core';
|
|
2
|
-
import { D as DataCaptureCallbackMessage, a as DataCaptureWorker, b as DataCaptureActionMessageKey, W as WorkerCommandPayload } from '../NativeProxy-
|
|
2
|
+
import { D as DataCaptureCallbackMessage, a as DataCaptureWorker, b as DataCaptureActionMessageKey, W as WorkerCommandPayload } from '../NativeProxy-CsndagT7.js';
|
|
3
3
|
import '@scandit/web-datacapture-barcode';
|
|
4
4
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
5
5
|
import '../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
@@ -26,9 +26,9 @@ import '../api/LabelFieldState.js';
|
|
|
26
26
|
import '../api/LabelFieldType.js';
|
|
27
27
|
import '../api/LabelDateResult.js';
|
|
28
28
|
import '../api/LabelCaptureSession.js';
|
|
29
|
+
import '../api/LabelFieldLocationType.js';
|
|
29
30
|
import '../api/LabelDateFormat.js';
|
|
30
31
|
import '../api/LabelDateComponentFormat.js';
|
|
31
|
-
import '../api/LabelFieldLocationType.js';
|
|
32
32
|
|
|
33
33
|
type WorkerListener = (event: DataCaptureCallbackMessage) => void;
|
|
34
34
|
declare class LabelCaptureWorkerManager extends DataCaptureLoader {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as LabelCaptureWorkerManager}from'../chunks/chunk-
|
|
1
|
+
export{a as LabelCaptureWorkerManager}from'../chunks/chunk-BUOQJS6T.js';
|
|
@@ -2,7 +2,7 @@ import { AugmentedWorker, ModuleHandler, WasmFrameData } from '@scandit/web-data
|
|
|
2
2
|
import { WorkerMain as WorkerMain$1 } from '@scandit/web-datacapture-core/build/js/worker/index.js';
|
|
3
3
|
import { LabelCaptureListener, LabelCapture, LabelCaptureSession } from '../djinni-types/sdcLabelInternalModuleCapture.js';
|
|
4
4
|
import { DataCaptureEngine } from './dataCaptureEngine.js';
|
|
5
|
-
import { M as Module, b as DataCaptureActionMessageKey, D as DataCaptureCallbackMessage, A as AnyDataCaptureActionMessage } from '../NativeProxy-
|
|
5
|
+
import { M as Module, b as DataCaptureActionMessageKey, D as DataCaptureCallbackMessage, A as AnyDataCaptureActionMessage } from '../NativeProxy-CsndagT7.js';
|
|
6
6
|
import '../djinni-types/sdcBarcodeData.js';
|
|
7
7
|
import '../djinni-types/sdcSymbologySettings.js';
|
|
8
8
|
import '../djinni-types/sdcCoreInternalSdkArea.js';
|
|
@@ -29,9 +29,9 @@ import '../api/LabelFieldState.js';
|
|
|
29
29
|
import '../api/LabelFieldType.js';
|
|
30
30
|
import '../api/LabelDateResult.js';
|
|
31
31
|
import '../api/LabelCaptureSession.js';
|
|
32
|
+
import '../api/LabelFieldLocationType.js';
|
|
32
33
|
import '../api/LabelDateFormat.js';
|
|
33
34
|
import '../api/LabelDateComponentFormat.js';
|
|
34
|
-
import '../api/LabelFieldLocationType.js';
|
|
35
35
|
|
|
36
36
|
declare class WorkerMain extends WorkerMain$1<DataCaptureEngine, Module> implements LabelCaptureListener {
|
|
37
37
|
private labelCaptureBasicOverlayListener;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{F as WorkerMain}from'../chunks/chunk-
|
|
1
|
+
export{F as WorkerMain}from'../chunks/chunk-6QS527PW.js';
|