persagy-vant 0.0.51 → 0.0.53

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.
Files changed (83) hide show
  1. package/THIRD_PARTY_NOTICES.txt +439 -0
  2. package/es/icon/assets/flashlight-off.svg +4 -0
  3. package/es/icon/assets/flashlight.svg +4 -0
  4. package/es/icon/config.mjs +1 -1
  5. package/es/icon/index.css +1 -1
  6. package/es/icon/latest-iconfont.css +1 -1
  7. package/es/icon/latest-iconfont.less +6 -3
  8. package/es/icon/svg-icon-masks.css +1 -0
  9. package/es/icon/svg-icon-masks.less +18 -0
  10. package/es/index.d.ts +2 -1
  11. package/es/index.mjs +4 -1
  12. package/es/location-select/LocationSelect.d.ts +15 -1
  13. package/es/location-select/LocationSelect.mjs +17 -5
  14. package/es/location-select/index.d.ts +11 -1
  15. package/es/object-select/ObjectSelect.d.ts +15 -1
  16. package/es/object-select/ObjectSelect.mjs +19 -7
  17. package/es/object-select/index.d.ts +11 -1
  18. package/es/qr-scanner/QrScanner.d.ts +226 -0
  19. package/es/qr-scanner/QrScanner.mjs +615 -0
  20. package/es/qr-scanner/decoder.d.ts +10 -0
  21. package/es/qr-scanner/decoder.mjs +101 -0
  22. package/es/qr-scanner/function-call.d.ts +164 -0
  23. package/es/qr-scanner/function-call.mjs +69 -0
  24. package/es/qr-scanner/index.css +1 -0
  25. package/es/qr-scanner/index.d.ts +10 -0
  26. package/es/qr-scanner/index.less +239 -0
  27. package/es/qr-scanner/index.mjs +6 -0
  28. package/es/qr-scanner/style/index.mjs +8 -0
  29. package/es/qr-scanner/style/less.mjs +8 -0
  30. package/es/qr-scanner/types.d.ts +54 -0
  31. package/es/qr-scanner/types.mjs +0 -0
  32. package/es/qr-scanner/var.css +0 -0
  33. package/es/qr-scanner/var.less +4 -0
  34. package/es/qr-scanner/wasm.d.ts +4 -0
  35. package/lib/decoder-8f5b00db.js +2215 -0
  36. package/lib/decoder-a36ba9ae.mjs +2215 -0
  37. package/lib/icon/assets/flashlight-off.svg +4 -0
  38. package/lib/icon/assets/flashlight.svg +4 -0
  39. package/lib/icon/config.js +1 -1
  40. package/lib/icon/index.css +1 -1
  41. package/lib/icon/latest-iconfont.css +1 -1
  42. package/lib/icon/latest-iconfont.less +6 -3
  43. package/lib/icon/svg-icon-masks.css +1 -0
  44. package/lib/icon/svg-icon-masks.less +18 -0
  45. package/lib/index.css +1 -1
  46. package/lib/index.d.ts +2 -1
  47. package/lib/index.js +4 -1
  48. package/lib/index.less +1 -0
  49. package/lib/location-select/LocationSelect.d.ts +15 -1
  50. package/lib/location-select/LocationSelect.js +16 -4
  51. package/lib/location-select/index.d.ts +11 -1
  52. package/lib/object-select/ObjectSelect.d.ts +15 -1
  53. package/lib/object-select/ObjectSelect.js +18 -6
  54. package/lib/object-select/index.d.ts +11 -1
  55. package/lib/qr-scanner/QrScanner.d.ts +226 -0
  56. package/lib/qr-scanner/QrScanner.js +644 -0
  57. package/lib/qr-scanner/decoder.d.ts +10 -0
  58. package/lib/qr-scanner/decoder.js +130 -0
  59. package/lib/qr-scanner/function-call.d.ts +164 -0
  60. package/lib/qr-scanner/function-call.js +98 -0
  61. package/lib/qr-scanner/index.css +1 -0
  62. package/lib/qr-scanner/index.d.ts +10 -0
  63. package/lib/qr-scanner/index.js +25 -0
  64. package/lib/qr-scanner/index.less +239 -0
  65. package/lib/qr-scanner/style/index.js +8 -0
  66. package/lib/qr-scanner/style/less.js +8 -0
  67. package/lib/qr-scanner/types.d.ts +54 -0
  68. package/lib/qr-scanner/types.js +15 -0
  69. package/lib/qr-scanner/var.css +0 -0
  70. package/lib/qr-scanner/var.less +4 -0
  71. package/lib/qr-scanner/wasm.d.ts +4 -0
  72. package/lib/vant.cjs.js +1805 -1114
  73. package/lib/vant.es.js +1805 -1114
  74. package/lib/vant.js +5251 -2339
  75. package/lib/vant.min.js +1 -1
  76. package/lib/web-types.json +1 -1
  77. package/lib/zxing_reader-075835e4.mjs +4 -0
  78. package/lib/zxing_reader-d6a2742e.js +4 -0
  79. package/package.json +11 -7
  80. package/skills/use-persagy-vant/references/component-catalog.md +1 -0
  81. package/skills/use-persagy-vant/references/component-documentation.md +4 -4
  82. package/skills/use-persagy-vant/references/component-variant-selection.md +2 -2
  83. package/skills/use-persagy-vant/references/reuse-policy.md +2 -2
@@ -0,0 +1,54 @@
1
+ import type { ComponentPublicInstance, TeleportProps } from 'vue';
2
+ import type { QrScannerProps } from './QrScanner';
3
+ export declare type QrScannerFormat = 'QRCode' | 'Code128' | 'Code39' | 'EAN13' | 'EAN8' | 'DataMatrix' | 'PDF417' | 'Aztec';
4
+ export declare type QrScannerResult = {
5
+ text: string;
6
+ format: string;
7
+ source: 'camera' | 'image' | 'native';
8
+ };
9
+ export declare type QrScannerErrorCode = 'INSECURE_CONTEXT' | 'CAMERA_UNSUPPORTED' | 'CAMERA_PERMISSION_DENIED' | 'CAMERA_NOT_FOUND' | 'CAMERA_UNAVAILABLE' | 'DECODER_LOAD_FAILED' | 'DECODE_FAILED' | 'IMAGE_TOO_LARGE' | 'IMAGE_NOT_FOUND' | 'CONFIRM_FAILED' | 'NATIVE_SCAN_FAILED' | 'TORCH_UNAVAILABLE';
10
+ export declare type QrScannerError = {
11
+ code: QrScannerErrorCode;
12
+ message: string;
13
+ cause?: unknown;
14
+ };
15
+ export declare type QrScannerBeforeConfirm = (result: QrScannerResult) => boolean | void | Promise<boolean | void>;
16
+ export declare type QrScannerNativeScan = (options: {
17
+ formats: QrScannerFormat[];
18
+ signal: AbortSignal;
19
+ }) => Promise<{
20
+ text: string;
21
+ format?: string;
22
+ } | null>;
23
+ export declare type QrScannerOptions = {
24
+ title?: string;
25
+ tip?: string;
26
+ processingText?: string;
27
+ formats?: QrScannerFormat[];
28
+ facingMode?: 'environment' | 'user';
29
+ showAlbum?: boolean;
30
+ showTorch?: boolean;
31
+ showSwitchCamera?: boolean;
32
+ closeAfterScan?: boolean;
33
+ scanInterval?: number | string;
34
+ duplicateInterval?: number | string;
35
+ maxImageSize?: number | string;
36
+ paused?: boolean;
37
+ wasmUrl?: string;
38
+ beforeConfirm?: QrScannerBeforeConfirm;
39
+ nativeScan?: QrScannerNativeScan;
40
+ teleport?: TeleportProps['to'];
41
+ zIndex?: number | string;
42
+ closeOnPopstate?: boolean;
43
+ onScan?: (result: QrScannerResult) => void;
44
+ onError?: (error: QrScannerError) => void;
45
+ onCancel?: () => void;
46
+ onClose?: () => void;
47
+ };
48
+ export declare type QrScannerExpose = {
49
+ start: () => Promise<void>;
50
+ stop: () => void;
51
+ close: () => void;
52
+ scanImage: (file: File) => Promise<void>;
53
+ };
54
+ export declare type QrScannerInstance = ComponentPublicInstance<QrScannerProps, QrScannerExpose>;
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var stdin_exports = {};
15
+ module.exports = __toCommonJS(stdin_exports);
File without changes
@@ -0,0 +1,4 @@
1
+ @qr-scanner-background: #111;
2
+ @qr-scanner-text-color: #fff;
3
+ @qr-scanner-frame-color: var(--van-primary-color);
4
+ @qr-scanner-frame-size: 240px;
@@ -0,0 +1,4 @@
1
+ declare module 'zxing-wasm/reader/zxing_reader.wasm?url' {
2
+ const url: string;
3
+ export default url;
4
+ }