@nxgt/material 2.4.2 → 2.5.0
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/README.md +28 -19
- package/dist/{_Uint8Array-DEXn42kj.js → _Uint8Array-DuTT6911.js} +1 -1
- package/dist/_overRest-93z6TD9V.js +81 -0
- package/dist/{abnfDiagram-O67JEVCF-C7NxOWqd.js → abnfDiagram-O67JEVCF-Cl4ukf6a.js} +4 -4
- package/dist/{architectureDiagram-NJMV4G6O-BIvwyzEh.js → architectureDiagram-NJMV4G6O-WmFlBQF5.js} +7 -7
- package/dist/{client-only.utils-DhcBUmau.js → async-slice-B8Xv2BLH.js} +164 -93
- package/dist/{blockDiagram-BEXU5L5S-CzgMFdtn.js → blockDiagram-BEXU5L5S-C8UXdLfB.js} +11 -11
- package/dist/{c4Diagram-YGBWAQC7-WgqlRIL5.js → c4Diagram-YGBWAQC7-D9xSt2QO.js} +8 -8
- package/dist/{channel-Ba8pEAWx.js → channel-Dg92Hoym.js} +1 -1
- package/dist/{chunk-3FUC2YCW-DnIzetwB.js → chunk-3FUC2YCW-4gCRt6fO.js} +8 -8
- package/dist/{chunk-5DYCD2WN-Bqi3iL5i.js → chunk-5DYCD2WN-Cja1INgd.js} +3 -3
- package/dist/{chunk-6AEJRKK7-DDXoGWDs.js → chunk-6AEJRKK7-3YWRP4aV.js} +2 -2
- package/dist/{chunk-742MDFTN-nG_ROTnT.js → chunk-742MDFTN-Cs1qGiTK.js} +2 -2
- package/dist/{chunk-7INBJB4K-Dg64CbhT.js → chunk-7INBJB4K-BY5n77ka.js} +6 -6
- package/dist/{chunk-7M6MHVWA-CPdb6LVf.js → chunk-7M6MHVWA-DnPXbiTM.js} +9 -9
- package/dist/{chunk-7PRAP22T-DIiYRAce.js → chunk-7PRAP22T-_Av9vcXz.js} +1 -1
- package/dist/{chunk-GNY47TPC-CxWZwDbp.js → chunk-GNY47TPC-DLqgU2SJ.js} +11 -11
- package/dist/{chunk-GTNCS2PH-CzDYTYNy.js → chunk-GTNCS2PH-BZ9WMD1v.js} +3 -3
- package/dist/{chunk-GWA4HPMP-CmsxMX3A.js → chunk-GWA4HPMP-Co-A6dtV.js} +3 -3
- package/dist/{chunk-MBY4JIJT-IA2XBafa.js → chunk-MBY4JIJT-C3RQP_Nk.js} +4 -4
- package/dist/{chunk-NETBCI7D-Cq92-0cA.js → chunk-NETBCI7D-CBowDvwz.js} +1 -1
- package/dist/{chunk-O7XYJQB3-C87zK8E5.js → chunk-O7XYJQB3-A66QSOPA.js} +1 -1
- package/dist/{chunk-UA2S7LBM-B0LGFGu3.js → chunk-UA2S7LBM-BNeHeMx9.js} +6 -6
- package/dist/{chunk-WEXAMYUT-C-QP0DFq.js → chunk-WEXAMYUT-CucJfehv.js} +2 -2
- package/dist/{chunk-XXDRQBXY-Bq4sFnO2.js → chunk-XXDRQBXY-FgXU14Bh.js} +1 -1
- package/dist/{chunk-Z7XXMR3K-vh8Pvgr_.js → chunk-Z7XXMR3K-dRJc1Z30.js} +8 -8
- package/dist/{chunk-ZIGJFQKS-HDJ6e6OJ.js → chunk-ZIGJFQKS-C3xUAXJq.js} +3 -3
- package/dist/{classDiagram-v2-NBCMYWYE-BSyQx7Df.js → classDiagram-v2-NBCMYWYE-CQmePeL4.js} +14 -14
- package/dist/{components-C3jpOwPw.js → components-CUkJhBwK.js} +26365 -25834
- package/dist/components.js +6 -6
- package/dist/{cose-bilkent-JH36ORCC-11-T1rfk.js → cose-bilkent-JH36ORCC-DRUT3qBb.js} +2 -2
- package/dist/{cynefinDiagram-VND7K2PF-1kHi2rGa.js → cynefinDiagram-VND7K2PF-B9HrdQW8.js} +4 -4
- package/dist/{dagre-6A5THRUB-BDk37t1_.js → dagre-6A5THRUB-BhyJENrD.js} +574 -615
- package/dist/{diagram-22UHCM2B-BvH24G-C.js → diagram-22UHCM2B-CJc0JoTV.js} +15 -15
- package/dist/{diagram-3UASUU5V-DAKVPT0Q.js → diagram-3UASUU5V-0P3Cnq5H.js} +7 -7
- package/dist/{diagram-ATOU4E4O-Clju_0RY.js → diagram-ATOU4E4O-CNY-8kl0.js} +3 -3
- package/dist/{diagram-CDSNMT55-w7kkJ6MU.js → diagram-CDSNMT55-C8Mk1smi.js} +5 -5
- package/dist/{diagram-MLGK6HIB-mUOtRVmm.js → diagram-MLGK6HIB-CpfeILwW.js} +4 -4
- package/dist/{diagram-MPIPVDR6-DEUw58dq.js → diagram-MPIPVDR6-Do7bUnTd.js} +4 -4
- package/dist/{dist-gYpAi-su.js → dist-C3YK_ean.js} +1 -1
- package/dist/{dist-CeHNxLJG.js → dist-CRbPtqwD.js} +1 -1
- package/dist/dnd.js +1 -1
- package/dist/{ebnfDiagram-ZINNZB2B-BYfatie5.js → ebnfDiagram-ZINNZB2B-1GewX9Zq.js} +4 -4
- package/dist/{elk-276RUBZZ-CtsHzWCy.js → elk-276RUBZZ-CvgDuHoY.js} +13 -13
- package/dist/{erDiagram-OPXOYQCR-DTrqayuU.js → erDiagram-OPXOYQCR-BFgRy8E9.js} +14 -14
- package/dist/{field-blur-EUOqpHbF.js → field-blur-D1eQk-49.js} +1109 -1083
- package/dist/flowDiagram-KWPJA3E3-DGaa9iT2.js +17 -0
- package/dist/{ganttDiagram-FUAMR5RP-DxWSt8R4.js → ganttDiagram-FUAMR5RP-CDGrtGHY.js} +6 -6
- package/dist/{gitGraphDiagram-X574FWY7-DcGaPSwy.js → gitGraphDiagram-X574FWY7-80yOq8dE.js} +3 -3
- package/dist/{graphlib-BOTXrGOf.js → graphlib-Dt-isUVV.js} +103 -139
- package/dist/hooks.js +2 -2
- package/dist/{i18n-provider-XTTU9ArK.js → i18n-provider-Drsc2YXX.js} +1 -1
- package/dist/i18n.js +6 -6
- package/dist/{icon-button-Dl9PDYCE.js → icon-button-BxySFfrr.js} +581 -581
- package/dist/{infoDiagram-VRGFBTTK-Cvj167dl.js → infoDiagram-VRGFBTTK-Cboh-B9n.js} +3 -3
- package/dist/isArrayLikeObject-BhWbq65y.js +28 -0
- package/dist/isEmpty-DdlzV8Ue.js +53 -0
- package/dist/{ishikawaDiagram-OU5B5YK6-ChBwjCfr.js → ishikawaDiagram-OU5B5YK6-DwTd1YxL.js} +4 -4
- package/dist/{journeyDiagram-ZHPQQLJL-BycdRLE6.js → journeyDiagram-ZHPQQLJL-BuLKqWS3.js} +4 -4
- package/dist/{kanban-definition-PNTS6WVX-BRoa-Yp5.js → kanban-definition-PNTS6WVX-S8plI4wn.js} +10 -10
- package/dist/lib/components/ui/actions/button/button.compound-variants.d.ts +114 -0
- package/dist/lib/components/ui/actions/button/button.d.ts +4 -7
- package/dist/lib/components/ui/actions/button/button.variants.d.ts +7 -0
- package/dist/lib/components/ui/actions/button/has-text-content.d.ts +10 -0
- package/dist/lib/components/ui/actions/icon-button/icon-button.variants.d.ts +1 -1
- package/dist/lib/components/ui/collections/data-table/data-table-context.d.ts +4 -0
- package/dist/lib/components/ui/collections/data-table/data-table-pagination.d.ts +3 -1
- package/dist/lib/components/ui/collections/data-table/data-table.d.ts +12 -2
- package/dist/lib/components/ui/collections/data-table/hooks.d.ts +13 -13
- package/dist/lib/components/ui/collections/data-table/partials/data-table-body.d.ts +9 -5
- package/dist/lib/components/ui/collections/data-table/partials/data-table-empty-row.d.ts +14 -0
- package/dist/lib/components/ui/collections/data-table/partials/data-table-skeleton-rows.d.ts +7 -0
- package/dist/lib/components/ui/collections/filter/filter-field-number-range.d.ts +15 -0
- package/dist/lib/components/ui/collections/pagination/index.d.ts +1 -1
- package/dist/lib/components/ui/collections/pagination/pagination.d.ts +9 -1
- package/dist/lib/components/ui/display/chip/chip.d.ts +1 -1
- package/dist/lib/components/ui/feedback/toast/toast.d.ts +9 -4
- package/dist/lib/components/ui/fields/otp-field/index.d.ts +1 -0
- package/dist/lib/components/ui/fields/otp-field/input-otp.d.ts +1 -1
- package/dist/lib/components/ui/fields/slider/slider-header.d.ts +15 -0
- package/dist/lib/components/ui/fields/slider/slider.d.ts +7 -0
- package/dist/lib/components/ui/fields/switch/switch.d.ts +7 -0
- package/dist/lib/components/ui/layout/stepper/stepper-step.d.ts +17 -0
- package/dist/lib/components/ui/media/camera/camera-content.d.ts +1 -2
- package/dist/lib/components/ui/media/camera/camera-context.d.ts +4 -0
- package/dist/lib/components/ui/media/camera/camera-provider.d.ts +2 -0
- package/dist/lib/components/ui/media/camera/camera.d.ts +6 -3
- package/dist/lib/components/ui/media/camera/capture-photo.d.ts +13 -0
- package/dist/lib/components/ui/media/camera/index.d.ts +9 -1
- package/dist/lib/components/ui/media/camera/state/camera.reducers.d.ts +1 -1
- package/dist/lib/components/ui/media/camera/state/camera.slice.d.ts +4 -9
- package/dist/lib/components/ui/media/camera/state/camera.store.d.ts +11 -5
- package/dist/lib/components/ui/media/camera/state/camera.thunks.d.ts +4 -4
- package/dist/lib/components/ui/media/camera/types.d.ts +19 -9
- package/dist/lib/components/ui/media/camera/use-camera.d.ts +5 -11
- package/dist/lib/components/ui/media/camera/utils/camera.utils.d.ts +0 -1
- package/dist/lib/components/ui/media/index.d.ts +1 -0
- package/dist/lib/components/ui/overlays/dialog/dialog-outside.d.ts +5 -0
- package/dist/lib/components/ui/overlays/dialog/dialog-scroll-content.d.ts +9 -0
- package/dist/lib/components/ui/overlays/dialog/index.d.ts +1 -0
- package/dist/lib/components/ui/primitives/icon/icon-context.d.ts +1 -1
- package/dist/lib/components/ui/primitives/table/table.d.ts +6 -1
- package/dist/lib/components/ui/selection/index.d.ts +1 -0
- package/dist/lib/components/ui/selection/native-select/index.d.ts +1 -0
- package/dist/lib/components/ui/selection/native-select/native-select.d.ts +11 -0
- package/dist/lib/components/ui/selection/radio-group/radio-group.d.ts +8 -1
- package/dist/lib/i18n/resources/en/en.d.ts +7 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +8 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +7 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +8 -1
- package/dist/lib/i18n/resources/resources.d.ts +14 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/lib/redux/status-slice.d.ts +1 -1
- package/dist/lib.js +295 -4
- package/dist/main.js +16 -16
- package/dist/map.js +5 -5
- package/dist/material.css +1 -1
- package/dist/merge-a7J0YkZX.js +156 -0
- package/dist/{mermaid.core-BGAQ3ZAZ.js → mermaid.core-CE34byhz.js} +49 -49
- package/dist/{mindmap-definition-NLK3R4M7-HIqs4Eil.js → mindmap-definition-NLK3R4M7-emoij-nW.js} +13 -13
- package/dist/{pegDiagram-GJSIUBJH-Dcm3LCQX.js → pegDiagram-GJSIUBJH-CAO6aYvj.js} +4 -4
- package/dist/{pieDiagram-5QR66LMP-DQ6djEkW.js → pieDiagram-5QR66LMP-BdG1tWLn.js} +5 -5
- package/dist/print.js +2 -2
- package/dist/{quadrantDiagram-O4NWA36T-yUWorB72.js → quadrantDiagram-O4NWA36T-BCd-NwsO.js} +3 -3
- package/dist/{railroadDiagram-XR7U4H2S-CzOJlTUA.js → railroadDiagram-XR7U4H2S-DmKDXg8V.js} +4 -4
- package/dist/{requirementDiagram-PLB6GJNP-Cs5-8Nro.js → requirementDiagram-PLB6GJNP-CCcH5uSr.js} +13 -13
- package/dist/{sankeyDiagram-IPEJSGJF-CCqxyVoj.js → sankeyDiagram-IPEJSGJF-78cK-bfe.js} +3 -3
- package/dist/{sequenceDiagram-PO4LG4MO-DMLeIQ03.js → sequenceDiagram-PO4LG4MO-B2qb55A5.js} +5 -5
- package/dist/{sortable-provider-DuRzFvwe.js → sortable-provider-VCxPasNp.js} +17 -17
- package/dist/{src-CJ8DNrI1.js → src-C9kQSo6K.js} +1 -1
- package/dist/{stateDiagram-v2-GCMORJYK-D-8sLHg8.js → stateDiagram-v2-GCMORJYK-B4ghJrhD.js} +14 -14
- package/dist/{stored-language-BP90Ydtg.js → stored-language-CeD7kHui.js} +20 -2
- package/dist/{swimlanes-2SLR337P-DM_lDm6v.js → swimlanes-2SLR337P-DmHm2yJS.js} +12 -12
- package/dist/swimlanesDiagram-TC7HE7FX-Dq3gGsPj.js +28 -0
- package/dist/{timeline-definition-EJHVYXUP-D3Tz-JnK.js → timeline-definition-EJHVYXUP-EqJV_QKn.js} +5 -5
- package/dist/{translate-material-Ctzt0Y2N.js → translate-material-DgRdhz5d.js} +2 -2
- package/dist/{translator-Cfug7hC5.js → translator-B4zUVm7j.js} +1 -1
- package/dist/{use-heading-spy-DtVo2HBk.js → use-heading-spy-1BHMXjIn.js} +2 -2
- package/dist/{use-material-translation-CJswHOmK.js → use-material-translation-UbARR81K.js} +2 -2
- package/dist/{usecaseDiagram-POWQR4AR-Cxx8PDrr.js → usecaseDiagram-POWQR4AR-CvCl0p5N.js} +13 -13
- package/dist/{vennDiagram-UO4OBE2U-Aql8mhcy.js → vennDiagram-UO4OBE2U-CO0yFCI8.js} +4 -4
- package/dist/{wardleyDiagram-VNRHLVJA-tknlhG_t.js → wardleyDiagram-VNRHLVJA-QkwghAYo.js} +4 -4
- package/dist/{xychartDiagram-PMCCYNJV-CM0QlWD5.js → xychartDiagram-PMCCYNJV-BphsHFKA.js} +7 -7
- package/docs/components/buttons-and-actions.md +8 -3
- package/docs/components/data-display.md +1 -1
- package/docs/components/data-table-filter-and-lists.md +95 -6
- package/docs/components/feedback-and-status.md +3 -2
- package/docs/components/form-fields.md +48 -4
- package/docs/components/media-and-files.md +46 -7
- package/docs/components/navigation-and-layout.md +6 -1
- package/docs/components/overlays-and-menus.md +27 -2
- package/docs/components/primitives.md +33 -2
- package/docs/components/rich-widgets.md +1 -1
- package/docs/components/selection-and-choice.md +32 -6
- package/docs/guides/i18n.md +14 -8
- package/docs/guides/ssr.md +3 -1
- package/docs/previews/media-files-camera.webp +0 -0
- package/docs/previews/navigation-layout-stepper.webp +0 -0
- package/docs/roadmap.md +37 -3
- package/docs/troubleshooting.md +109 -0
- package/package.json +1 -1
- package/dist/flowDiagram-KWPJA3E3-B8Isvcc5.js +0 -17
- package/dist/isArrayLikeObject-CCJDO2RL.js +0 -86
- package/dist/lib/components/ui/media/camera/camera.provider.d.ts +0 -6
- package/dist/lib/components/ui/media/camera/state/index.d.ts +0 -2
- package/dist/lib/components/ui/media/camera/utils/index.d.ts +0 -1
- package/dist/lib-DIj5dvbb.js +0 -367
- package/dist/merge-Dm-kHFxo.js +0 -172
- package/dist/swimlanesDiagram-TC7HE7FX-CbV1TsML.js +0 -28
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Webcam preview with a start / stop toggle and a still capture. It renders
|
|
3
|
+
* in the browser only, after mount (`getUserMedia` has no server side), as
|
|
4
|
+
* in `@nxgt/material-vue`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Camera: import('react').ComponentType<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CameraAlert, CameraState } from './types';
|
|
2
|
+
export type CapturePhotoResult = {
|
|
3
|
+
capturedImage?: string;
|
|
4
|
+
alert?: CameraAlert;
|
|
5
|
+
isProcessing: boolean;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Draws the current frame of `video` onto a canvas sized by
|
|
9
|
+
* `captureSettings`, mirrored when asked, and returns it as a data URL.
|
|
10
|
+
* `null` when there is nothing to capture: not streaming, no video, or no
|
|
11
|
+
* `document` (on the server).
|
|
12
|
+
*/
|
|
13
|
+
export declare function capturePhotoFromVideo(video: HTMLVideoElement | null, state: Pick<CameraState, 'isStreaming' | 'captureSettings'>): CapturePhotoResult | null;
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { Camera } from './camera';
|
|
2
|
+
export { useCameraContext } from './camera-context';
|
|
3
|
+
export type { CapturePhotoResult } from './capture-photo';
|
|
4
|
+
export { capturePhotoFromVideo } from './capture-photo';
|
|
5
|
+
export type { CameraStore } from './state/camera.store';
|
|
6
|
+
export { createCameraStore } from './state/camera.store';
|
|
7
|
+
export type { CameraActions, CameraAlert, CameraContextValue, CameraDeviceInfo, CameraProps, CameraState, CaptureSettings, ImageFormat, } from './types';
|
|
8
|
+
export { useCamera } from './use-camera';
|
|
9
|
+
export { getCameraDevices, isCameraSupported, requestCameraPermissions, } from './utils/camera.utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CameraReducerCreators } from './camera.slice';
|
|
2
|
-
export declare const createCapturePhotoReducer: (create: CameraReducerCreators) => import('@reduxjs/toolkit').CaseReducer<import('
|
|
2
|
+
export declare const createCapturePhotoReducer: (create: CameraReducerCreators) => import('@reduxjs/toolkit').CaseReducer<import('..').CameraState, {
|
|
3
3
|
payload: HTMLVideoElement | null;
|
|
4
4
|
type: string;
|
|
5
5
|
}> & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReducerCreators } from '@reduxjs/toolkit';
|
|
2
|
-
import { CameraAlert, CameraState } from '../types';
|
|
2
|
+
import { CameraAlert, CameraDeviceInfo, CameraState } from '../types';
|
|
3
3
|
export declare const cameraSlice: import('@reduxjs/toolkit').Slice<CameraState, {
|
|
4
4
|
readonly setDevices: import('@reduxjs/toolkit').CaseReducer<CameraState, {
|
|
5
|
-
payload:
|
|
5
|
+
payload: CameraDeviceInfo[];
|
|
6
6
|
type: string;
|
|
7
7
|
}> & {
|
|
8
8
|
_reducerDefinitionType: import("@reduxjs/toolkit").ReducerType.reducer;
|
|
@@ -49,7 +49,7 @@ export declare const cameraSlice: import('@reduxjs/toolkit').Slice<CameraState,
|
|
|
49
49
|
cameraSupported: false;
|
|
50
50
|
} | {
|
|
51
51
|
hasPermission: boolean;
|
|
52
|
-
devices:
|
|
52
|
+
devices: CameraDeviceInfo[];
|
|
53
53
|
cameraSupported: true;
|
|
54
54
|
}, {
|
|
55
55
|
rejectValue: {
|
|
@@ -84,7 +84,7 @@ export declare const cameraSlice: import('@reduxjs/toolkit').Slice<CameraState,
|
|
|
84
84
|
cameraSupported: false;
|
|
85
85
|
} | {
|
|
86
86
|
hasPermission: boolean;
|
|
87
|
-
devices:
|
|
87
|
+
devices: CameraDeviceInfo[];
|
|
88
88
|
cameraSupported: true;
|
|
89
89
|
}, void, {
|
|
90
90
|
rejectValue: {
|
|
@@ -140,9 +140,4 @@ export declare const cameraSlice: import('@reduxjs/toolkit').Slice<CameraState,
|
|
|
140
140
|
}>;
|
|
141
141
|
};
|
|
142
142
|
}, "camera", "camera", import('@reduxjs/toolkit').SliceSelectors<CameraState>>;
|
|
143
|
-
type CameraSliceActions = typeof cameraSlice.actions;
|
|
144
|
-
export type CameraActions = {
|
|
145
|
-
[K in keyof CameraSliceActions]: (...args: Parameters<CameraSliceActions[K]>) => void;
|
|
146
|
-
};
|
|
147
143
|
export type CameraReducerCreators = ReducerCreators<CameraState>;
|
|
148
|
-
export {};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { CameraState } from '../types';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* A store for one `Camera`. Each instance creates its own, never a module
|
|
4
|
+
* singleton: two cameras on a page, or two requests on a server, would
|
|
5
|
+
* otherwise share one state.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createCameraStore(preloadedState?: Partial<CameraState>): import('@reduxjs/toolkit').EnhancedStore<CameraState, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
|
|
3
8
|
dispatch: import('redux-thunk').ThunkDispatch<CameraState, undefined, import('redux').UnknownAction>;
|
|
4
9
|
}>, import('redux').StoreEnhancer]>>;
|
|
10
|
+
export type CameraStore = ReturnType<typeof createCameraStore>;
|
|
5
11
|
export declare const useCameraActions: () => import('@reduxjs/toolkit').CaseReducerActions<{
|
|
6
12
|
readonly setDevices: import('@reduxjs/toolkit').CaseReducer<CameraState, {
|
|
7
|
-
payload:
|
|
13
|
+
payload: import('..').CameraDeviceInfo[];
|
|
8
14
|
type: string;
|
|
9
15
|
}> & {
|
|
10
16
|
_reducerDefinitionType: import("@reduxjs/toolkit").ReducerType.reducer;
|
|
@@ -28,7 +34,7 @@ export declare const useCameraActions: () => import('@reduxjs/toolkit').CaseRedu
|
|
|
28
34
|
_reducerDefinitionType: import("@reduxjs/toolkit").ReducerType.reducer;
|
|
29
35
|
};
|
|
30
36
|
readonly setAlert: import('@reduxjs/toolkit').CaseReducer<CameraState, {
|
|
31
|
-
payload: import('
|
|
37
|
+
payload: import('..').CameraAlert | null;
|
|
32
38
|
type: string;
|
|
33
39
|
}> & {
|
|
34
40
|
_reducerDefinitionType: import("@reduxjs/toolkit").ReducerType.reducer;
|
|
@@ -51,7 +57,7 @@ export declare const useCameraActions: () => import('@reduxjs/toolkit').CaseRedu
|
|
|
51
57
|
cameraSupported: false;
|
|
52
58
|
} | {
|
|
53
59
|
hasPermission: boolean;
|
|
54
|
-
devices: import('
|
|
60
|
+
devices: import('..').CameraDeviceInfo[];
|
|
55
61
|
cameraSupported: true;
|
|
56
62
|
}, {
|
|
57
63
|
rejectValue: {
|
|
@@ -86,7 +92,7 @@ export declare const useCameraActions: () => import('@reduxjs/toolkit').CaseRedu
|
|
|
86
92
|
cameraSupported: false;
|
|
87
93
|
} | {
|
|
88
94
|
hasPermission: boolean;
|
|
89
|
-
devices: import('
|
|
95
|
+
devices: import('..').CameraDeviceInfo[];
|
|
90
96
|
cameraSupported: true;
|
|
91
97
|
}, void, {
|
|
92
98
|
rejectValue: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CameraReducerCreators } from './camera.slice';
|
|
2
|
-
export declare const createRequestPermissionThunk: (create: CameraReducerCreators) => import('@reduxjs/toolkit').AsyncThunkReducers<import('
|
|
2
|
+
export declare const createRequestPermissionThunk: (create: CameraReducerCreators) => import('@reduxjs/toolkit').AsyncThunkReducers<import('..').CameraState, void, {
|
|
3
3
|
hasPermission: boolean;
|
|
4
4
|
devices: never[];
|
|
5
5
|
cameraSupported: false;
|
|
6
6
|
} | {
|
|
7
7
|
hasPermission: boolean;
|
|
8
|
-
devices: import('
|
|
8
|
+
devices: import('..').CameraDeviceInfo[];
|
|
9
9
|
cameraSupported: true;
|
|
10
10
|
}, {
|
|
11
11
|
rejectValue: {
|
|
@@ -40,7 +40,7 @@ export declare const createRequestPermissionThunk: (create: CameraReducerCreator
|
|
|
40
40
|
cameraSupported: false;
|
|
41
41
|
} | {
|
|
42
42
|
hasPermission: boolean;
|
|
43
|
-
devices: import('
|
|
43
|
+
devices: import('..').CameraDeviceInfo[];
|
|
44
44
|
cameraSupported: true;
|
|
45
45
|
}, void, {
|
|
46
46
|
rejectValue: {
|
|
@@ -55,7 +55,7 @@ export declare const createRequestPermissionThunk: (create: CameraReducerCreator
|
|
|
55
55
|
rejectedMeta?: unknown;
|
|
56
56
|
}>;
|
|
57
57
|
};
|
|
58
|
-
export declare const createStartStreamThunk: (create: CameraReducerCreators) => import('@reduxjs/toolkit').AsyncThunkReducers<import('
|
|
58
|
+
export declare const createStartStreamThunk: (create: CameraReducerCreators) => import('@reduxjs/toolkit').AsyncThunkReducers<import('..').CameraState, (stream: MediaStream) => void, void, {
|
|
59
59
|
rejectValue: {
|
|
60
60
|
message: string;
|
|
61
61
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, RefObject } from 'react';
|
|
2
2
|
export type ImageFormat = 'png' | 'jpeg' | 'webp';
|
|
3
3
|
export type CaptureSettings = {
|
|
4
4
|
resolution: {
|
|
@@ -25,14 +25,24 @@ export type CameraState = {
|
|
|
25
25
|
captureSettings: CaptureSettings;
|
|
26
26
|
alert: CameraAlert | null;
|
|
27
27
|
};
|
|
28
|
+
/** What `useCamera()` / `useCameraContext()` hand a part of the camera. */
|
|
29
|
+
export type CameraActions = {
|
|
30
|
+
setDevices: (devices: CameraDeviceInfo[]) => void;
|
|
31
|
+
selectDevice: (deviceId: string | null) => void;
|
|
32
|
+
setPermission: (hasPermission: boolean) => void;
|
|
33
|
+
setStreaming: (isStreaming: boolean) => void;
|
|
34
|
+
setAlert: (alert: CameraAlert | null) => void;
|
|
35
|
+
setCameraSupported: (cameraSupported: boolean) => void;
|
|
36
|
+
requestPermission: () => Promise<void>;
|
|
37
|
+
startStream: () => void;
|
|
38
|
+
stopStream: () => void;
|
|
39
|
+
capturePhoto: () => void;
|
|
40
|
+
};
|
|
28
41
|
export type CameraContextValue = {
|
|
29
|
-
videoRef:
|
|
30
|
-
canvasRef:
|
|
31
|
-
streamRef:
|
|
42
|
+
videoRef: RefObject<HTMLVideoElement | null>;
|
|
43
|
+
canvasRef: RefObject<HTMLCanvasElement | null>;
|
|
44
|
+
streamRef: RefObject<MediaStream | null>;
|
|
32
45
|
state: CameraState;
|
|
33
|
-
actions:
|
|
34
|
-
capturePhoto: () => void;
|
|
35
|
-
startStream: () => void;
|
|
36
|
-
stopStream: () => void;
|
|
37
|
-
};
|
|
46
|
+
actions: CameraActions;
|
|
38
47
|
};
|
|
48
|
+
export type CameraProps = ComponentProps<'div'>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
actions: Omit<import('./state').CameraActions, "capturePhoto" | "startStream"> & {
|
|
7
|
-
capturePhoto: () => void;
|
|
8
|
-
startStream: () => void;
|
|
9
|
-
stopStream: () => void;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* The camera's context, plus its lifecycle: asks for permission on mount
|
|
3
|
+
* and stops the stream on unmount. Inside `<Camera>` only.
|
|
4
|
+
*/
|
|
5
|
+
export declare function useCamera(): import('./types').CameraContextValue;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Dialog as DialogPrimitive } from 'radix-ui';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* A dialog content for a dialog taller than the screen: the overlay scrolls,
|
|
5
|
+
* and the content sits in it with a margin, instead of being clipped at the
|
|
6
|
+
* viewport. It renders its own close button (top right).
|
|
7
|
+
*/
|
|
8
|
+
declare function DialogScrollContent({ className, children, onInteractOutside, onPointerDownOutside, onFocusOutside, onOpenAutoFocus, onCloseAutoFocus, ...props }: ComponentProps<typeof DialogPrimitive.Content>): import("react").JSX.Element;
|
|
9
|
+
export { DialogScrollContent };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `true` inside a control that already carries an accessible name — a named
|
|
3
3
|
* `IconButton`, and so `InputGroupButton` and `IconLinkButton`, which render
|
|
4
|
-
* one
|
|
4
|
+
* one, and a `Button` with text or an `aria-label`. An `Icon` there with no `aria-label` of its own renders
|
|
5
5
|
* `aria-hidden="true"` instead of `role="img" aria-label="Icon {name}"`, so a
|
|
6
6
|
* screen reader reads "Delete" and not "Delete, Icon trash".
|
|
7
7
|
*
|
|
@@ -6,5 +6,10 @@ declare function TableFooter({ className, ...props }: ComponentProps<'tfoot'>):
|
|
|
6
6
|
declare function TableRow({ className, ...props }: ComponentProps<'tr'>): import("react").JSX.Element;
|
|
7
7
|
declare function TableHead({ className, ...props }: ComponentProps<'th'>): import("react").JSX.Element;
|
|
8
8
|
declare function TableCell({ className, ...props }: ComponentProps<'td'>): import("react").JSX.Element;
|
|
9
|
+
/**
|
|
10
|
+
* A full-width row for "nothing here": one cell spanning `colSpan` columns
|
|
11
|
+
* (default 1), its content centred.
|
|
12
|
+
*/
|
|
13
|
+
declare function TableEmpty({ className, colSpan, children, ...props }: ComponentProps<'td'>): import("react").JSX.Element;
|
|
9
14
|
declare function TableCaption({ className, ...props }: ComponentProps<'caption'>): import("react").JSX.Element;
|
|
10
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, };
|
|
15
|
+
export { Table, TableBody, TableCaption, TableCell, TableEmpty, TableFooter, TableHead, TableHeader, TableRow, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './native-select';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export type NativeSelectProps = ComponentProps<'select'>;
|
|
3
|
+
/**
|
|
4
|
+
* The browser's own `<select>`, styled like the library's inputs, with a
|
|
5
|
+
* chevron. `value` / `defaultValue` / `onChange` and every other attribute go
|
|
6
|
+
* to the `<select>`; `className` too, the wrapper only positions the chevron.
|
|
7
|
+
*/
|
|
8
|
+
declare function NativeSelect({ className, ...props }: NativeSelectProps): import("react").JSX.Element;
|
|
9
|
+
declare function NativeSelectOption({ className, ...props }: ComponentProps<'option'>): import("react").JSX.Element;
|
|
10
|
+
declare function NativeSelectOptGroup({ className, ...props }: ComponentProps<'optgroup'>): import("react").JSX.Element;
|
|
11
|
+
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption };
|
|
@@ -13,4 +13,11 @@ export type RadioGroupProps = {
|
|
|
13
13
|
declare function RadioGroup({ options, label, helperText, error, orientation, className, id, ...props }: RadioGroupProps): import("react").JSX.Element;
|
|
14
14
|
declare function RadioGroupBase({ className, ...props }: ComponentProps<typeof RadioGroupPrimitive.Root>): import("react").JSX.Element;
|
|
15
15
|
declare function RadioGroupItem({ className, ...props }: ComponentProps<typeof RadioGroupPrimitive.Item>): import("react").JSX.Element;
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* The labelled `RadioGroup` under `@nxgt/material-vue`'s name, so code reads
|
|
18
|
+
* the same in both libraries. Same component, same props. The names align
|
|
19
|
+
* fully in 3.0; `RadioGroup` is not deprecated.
|
|
20
|
+
*/
|
|
21
|
+
declare const RadioGroupField: typeof RadioGroup;
|
|
22
|
+
export type RadioGroupFieldProps = RadioGroupProps;
|
|
23
|
+
export { RadioGroup, RadioGroupBase, RadioGroupField, RadioGroupItem };
|
|
@@ -323,6 +323,7 @@ export declare const en: {
|
|
|
323
323
|
};
|
|
324
324
|
};
|
|
325
325
|
table: {
|
|
326
|
+
loading: string;
|
|
326
327
|
labels: {
|
|
327
328
|
asc: string;
|
|
328
329
|
desc: string;
|
|
@@ -749,6 +750,8 @@ export declare const en: {
|
|
|
749
750
|
};
|
|
750
751
|
stepper: {
|
|
751
752
|
step: string;
|
|
753
|
+
completed: string;
|
|
754
|
+
error: string;
|
|
752
755
|
};
|
|
753
756
|
"location-field": {
|
|
754
757
|
placeholder: string;
|
|
@@ -1164,6 +1167,10 @@ export declare const en: {
|
|
|
1164
1167
|
spinner: {
|
|
1165
1168
|
loading: string;
|
|
1166
1169
|
};
|
|
1170
|
+
slider: {
|
|
1171
|
+
minimum: string;
|
|
1172
|
+
maximum: string;
|
|
1173
|
+
};
|
|
1167
1174
|
"scroll-to-top": {
|
|
1168
1175
|
label: string;
|
|
1169
1176
|
};
|
|
@@ -313,6 +313,7 @@ declare const _default: {
|
|
|
313
313
|
}
|
|
314
314
|
},
|
|
315
315
|
"table": {
|
|
316
|
+
"loading": "Loading data…",
|
|
316
317
|
"labels": {
|
|
317
318
|
"asc": "Asc",
|
|
318
319
|
"desc": "Desc",
|
|
@@ -738,7 +739,9 @@ declare const _default: {
|
|
|
738
739
|
"open": "Open URL"
|
|
739
740
|
},
|
|
740
741
|
"stepper": {
|
|
741
|
-
"step": "Step {step}"
|
|
742
|
+
"step": "Step {step}",
|
|
743
|
+
"completed": "Completed",
|
|
744
|
+
"error": "Error"
|
|
742
745
|
},
|
|
743
746
|
"location-field": {
|
|
744
747
|
"placeholder": "No location selected",
|
|
@@ -1154,6 +1157,10 @@ declare const _default: {
|
|
|
1154
1157
|
"spinner": {
|
|
1155
1158
|
"loading": "Loading..."
|
|
1156
1159
|
},
|
|
1160
|
+
"slider": {
|
|
1161
|
+
"minimum": "Minimum",
|
|
1162
|
+
"maximum": "Maximum"
|
|
1163
|
+
},
|
|
1157
1164
|
"scroll-to-top": {
|
|
1158
1165
|
"label": "Scroll to top"
|
|
1159
1166
|
},
|
|
@@ -323,6 +323,7 @@ export declare const fr: {
|
|
|
323
323
|
};
|
|
324
324
|
};
|
|
325
325
|
table: {
|
|
326
|
+
loading: string;
|
|
326
327
|
labels: {
|
|
327
328
|
asc: string;
|
|
328
329
|
desc: string;
|
|
@@ -749,6 +750,8 @@ export declare const fr: {
|
|
|
749
750
|
};
|
|
750
751
|
stepper: {
|
|
751
752
|
step: string;
|
|
753
|
+
completed: string;
|
|
754
|
+
error: string;
|
|
752
755
|
};
|
|
753
756
|
"location-field": {
|
|
754
757
|
placeholder: string;
|
|
@@ -1164,6 +1167,10 @@ export declare const fr: {
|
|
|
1164
1167
|
spinner: {
|
|
1165
1168
|
loading: string;
|
|
1166
1169
|
};
|
|
1170
|
+
slider: {
|
|
1171
|
+
minimum: string;
|
|
1172
|
+
maximum: string;
|
|
1173
|
+
};
|
|
1167
1174
|
"scroll-to-top": {
|
|
1168
1175
|
label: string;
|
|
1169
1176
|
};
|
|
@@ -313,6 +313,7 @@ declare const _default: {
|
|
|
313
313
|
}
|
|
314
314
|
},
|
|
315
315
|
"table": {
|
|
316
|
+
"loading": "Chargement des données…",
|
|
316
317
|
"labels": {
|
|
317
318
|
"asc": "Asc",
|
|
318
319
|
"desc": "Desc",
|
|
@@ -738,7 +739,9 @@ declare const _default: {
|
|
|
738
739
|
"open": "Ouvrir l’URL"
|
|
739
740
|
},
|
|
740
741
|
"stepper": {
|
|
741
|
-
"step": "Étape {step}"
|
|
742
|
+
"step": "Étape {step}",
|
|
743
|
+
"completed": "Terminée",
|
|
744
|
+
"error": "Erreur"
|
|
742
745
|
},
|
|
743
746
|
"location-field": {
|
|
744
747
|
"placeholder": "Aucun emplacement sélectionné",
|
|
@@ -1154,6 +1157,10 @@ declare const _default: {
|
|
|
1154
1157
|
"spinner": {
|
|
1155
1158
|
"loading": "Chargement..."
|
|
1156
1159
|
},
|
|
1160
|
+
"slider": {
|
|
1161
|
+
"minimum": "Minimum",
|
|
1162
|
+
"maximum": "Maximum"
|
|
1163
|
+
},
|
|
1157
1164
|
"scroll-to-top": {
|
|
1158
1165
|
"label": "Retour en haut"
|
|
1159
1166
|
},
|
|
@@ -321,6 +321,7 @@ export declare const resources: {
|
|
|
321
321
|
};
|
|
322
322
|
};
|
|
323
323
|
table: {
|
|
324
|
+
loading: string;
|
|
324
325
|
labels: {
|
|
325
326
|
asc: string;
|
|
326
327
|
desc: string;
|
|
@@ -747,6 +748,8 @@ export declare const resources: {
|
|
|
747
748
|
};
|
|
748
749
|
stepper: {
|
|
749
750
|
step: string;
|
|
751
|
+
completed: string;
|
|
752
|
+
error: string;
|
|
750
753
|
};
|
|
751
754
|
"location-field": {
|
|
752
755
|
placeholder: string;
|
|
@@ -1162,6 +1165,10 @@ export declare const resources: {
|
|
|
1162
1165
|
spinner: {
|
|
1163
1166
|
loading: string;
|
|
1164
1167
|
};
|
|
1168
|
+
slider: {
|
|
1169
|
+
minimum: string;
|
|
1170
|
+
maximum: string;
|
|
1171
|
+
};
|
|
1165
1172
|
"scroll-to-top": {
|
|
1166
1173
|
label: string;
|
|
1167
1174
|
};
|
|
@@ -1516,6 +1523,7 @@ export declare const resources: {
|
|
|
1516
1523
|
};
|
|
1517
1524
|
};
|
|
1518
1525
|
table: {
|
|
1526
|
+
loading: string;
|
|
1519
1527
|
labels: {
|
|
1520
1528
|
asc: string;
|
|
1521
1529
|
desc: string;
|
|
@@ -1942,6 +1950,8 @@ export declare const resources: {
|
|
|
1942
1950
|
};
|
|
1943
1951
|
stepper: {
|
|
1944
1952
|
step: string;
|
|
1953
|
+
completed: string;
|
|
1954
|
+
error: string;
|
|
1945
1955
|
};
|
|
1946
1956
|
"location-field": {
|
|
1947
1957
|
placeholder: string;
|
|
@@ -2357,6 +2367,10 @@ export declare const resources: {
|
|
|
2357
2367
|
spinner: {
|
|
2358
2368
|
loading: string;
|
|
2359
2369
|
};
|
|
2370
|
+
slider: {
|
|
2371
|
+
minimum: string;
|
|
2372
|
+
maximum: string;
|
|
2373
|
+
};
|
|
2360
2374
|
"scroll-to-top": {
|
|
2361
2375
|
label: string;
|
|
2362
2376
|
};
|