quantum-component-library 1.4.47-qa → 1.4.48-1
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 +115 -115
- package/dist/components.cjs +1 -1
- package/dist/components.js +1531 -1411
- package/dist/{dnd-core-vendor-CErAmYu_.js → dnd-core-vendor-CEbjUoFs.js} +2 -2
- package/dist/{dnd-core-vendor-2Ve0kqUN.cjs → dnd-core-vendor-gqRN0Czq.cjs} +1 -1
- package/dist/generated/gql.d.ts +17 -2
- package/dist/generated/graphql.d.ts +65 -1
- package/dist/generated-graphql.cjs +1 -1
- package/dist/generated-graphql.js +47 -44
- package/dist/generated.cjs +1 -1
- package/dist/generated.js +56 -53
- package/dist/graphql/fragments/index.d.ts +1 -0
- package/dist/graphql/fragments/metadata.d.ts +2 -0
- package/dist/graphql/queries/index.d.ts +1 -0
- package/dist/graphql/queries/metadata.d.ts +3 -0
- package/dist/{graphql-C6M9oyU0.cjs → graphql-Ce2MNCsk.cjs} +72 -49
- package/dist/{graphql-CvUc6Vdv.js → graphql-_vGi4u4K.js} +95 -70
- package/dist/graphql-vendor-AFHxLsy8.cjs +14 -0
- package/dist/graphql-vendor-hJezYUeG.js +669 -0
- package/dist/hooks.cjs +1 -1
- package/dist/hooks.js +61 -51
- package/dist/index.cjs +1 -1
- package/dist/index.js +139 -131
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/use-ui-label-context.d.ts +6 -0
- package/dist/lib/providers/index.d.ts +1 -0
- package/dist/lib/providers/ui-label-provider/context.d.ts +9 -0
- package/dist/lib/providers/ui-label-provider/index.d.ts +2 -0
- package/dist/lib/providers/ui-label-provider/provider.d.ts +2 -0
- package/dist/lib/services/rom.json.d.ts +223 -223
- package/dist/lib/utils/cn.d.ts +2 -0
- package/dist/lib/utils/index.d.ts +1 -2
- package/dist/{lodash-vendor-CR237hSU.cjs → lodash-vendor-CF0pV_0E.cjs} +1 -1
- package/dist/{lodash-vendor-D4ZPCr77.js → lodash-vendor-apNdTTav.js} +1 -1
- package/dist/other-D9ROT7p0.js +20 -0
- package/dist/other-DyoApG-9.cjs +1 -0
- package/dist/providers.cjs +1 -1
- package/dist/providers.js +41 -8
- package/dist/quantum-component-library.css +1 -1
- package/dist/{react-dnd-vendor-D4nn9Mqx.js → react-dnd-vendor-BCrg2QCX.js} +2 -2
- package/dist/{react-dnd-vendor-BPzSDojS.cjs → react-dnd-vendor-PwwXhPmK.cjs} +1 -1
- package/dist/react-icons-vendor-BF_sZq07.cjs +1 -0
- package/dist/{react-icons-vendor-TETORdU9.js → react-icons-vendor-CMsTQrA0.js} +51 -43
- package/dist/{react-select-vendor-D_Q2fL5j.cjs → react-select-vendor-BeWvSe2q.cjs} +1 -1
- package/dist/{react-select-vendor-BlY9Il4Q.js → react-select-vendor-BxbsY5Z-.js} +1 -1
- package/dist/services-action-CfZFwhy-.js +40 -0
- package/dist/services-action-DBOzfgMl.cjs +1 -0
- package/dist/services-human-B98qxeuS.js +798 -0
- package/dist/services-human-CnvSTmoF.cjs +1 -0
- package/dist/services-rom-DmV5X8yu.cjs +1 -0
- package/dist/services-rom-omMeC-vQ.js +18 -0
- package/dist/services.cjs +1 -1
- package/dist/services.js +52 -844
- package/dist/types.cjs +1 -1
- package/dist/types.js +11 -11
- package/dist/utils-cn-CgdSr4hO.js +7 -0
- package/dist/utils-cn-FIKrq5Mb.cjs +1 -0
- package/dist/utils-conversion-CWypeWsT.cjs +1 -0
- package/dist/utils-conversion-ChFbq8I2.js +94 -0
- package/dist/utils-memo-BJJP2KfI.cjs +1 -0
- package/dist/utils-memo-DtXdOqCT.js +13 -0
- package/dist/utils-parameters-BBFuBK2B.js +21 -0
- package/dist/utils-parameters-dwKmz1VU.cjs +1 -0
- package/dist/utils-text-CN3zLiZ7.js +5 -0
- package/dist/utils-text-lORqO4uI.cjs +1 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +29 -126
- package/dist/vendor-BOD7IxCS.js +421 -0
- package/dist/vendor-IPtJZCbx.cjs +1 -0
- package/package.json +133 -133
- package/dist/graphql-vendor-B-QTAQSb.cjs +0 -19
- package/dist/graphql-vendor-B0NjgbDB.js +0 -1284
- package/dist/other-C4VnLmM6.js +0 -15
- package/dist/other-Dp3RPYfF.cjs +0 -1
- package/dist/react-icons-vendor-D2s8zw9h.cjs +0 -1
- package/dist/vendor-BjLvygDR.cjs +0 -1
- package/dist/vendor-VALJ9W3p.js +0 -526
package/dist/hooks.js
CHANGED
|
@@ -1,83 +1,93 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useMemo as i } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { a as c } from "./graphql-vendor-hJezYUeG.js";
|
|
2
|
+
import { useMemo as i, useContext as d } from "react";
|
|
3
|
+
import { Client as p, fetchExchange as f } from "urql";
|
|
4
|
+
import { e as b, l as h, f as m, h as g, i as L, j as x, k as P } from "./services-human-B98qxeuS.js";
|
|
5
|
+
import { sensorLocationToLimbId as u, AngleDataSource as a } from "./types.js";
|
|
6
|
+
import { UiLabelContext as v } from "./providers.js";
|
|
7
|
+
import "./react-jsx-runtime-vendor-OVHDjVDe.js";
|
|
8
|
+
import "./graphql-_vGi4u4K.js";
|
|
9
|
+
const A = ({
|
|
6
10
|
url: e,
|
|
7
|
-
getAuthToken:
|
|
8
|
-
}) => new
|
|
11
|
+
getAuthToken: r
|
|
12
|
+
}) => new p({
|
|
9
13
|
url: e,
|
|
10
14
|
requestPolicy: "cache-and-network",
|
|
11
15
|
exchanges: [
|
|
12
|
-
|
|
13
|
-
const n =
|
|
16
|
+
c((s) => {
|
|
17
|
+
const n = r();
|
|
14
18
|
return Promise.resolve({
|
|
15
|
-
addAuthToOperation(
|
|
16
|
-
return n ? s.appendHeaders(
|
|
19
|
+
addAuthToOperation(t) {
|
|
20
|
+
return n ? s.appendHeaders(t, {
|
|
17
21
|
Authorization: `Bearer ${n}`
|
|
18
|
-
}) :
|
|
22
|
+
}) : t;
|
|
19
23
|
},
|
|
20
|
-
didAuthError: (
|
|
24
|
+
didAuthError: (t) => /unauthorized/gi.test(t?.message),
|
|
21
25
|
refreshAuth: () => Promise.resolve()
|
|
22
26
|
});
|
|
23
27
|
}),
|
|
24
|
-
|
|
28
|
+
f
|
|
25
29
|
]
|
|
26
|
-
}),
|
|
30
|
+
}), k = ({
|
|
27
31
|
url: e,
|
|
28
|
-
getAuthToken:
|
|
32
|
+
getAuthToken: r
|
|
29
33
|
}) => i(
|
|
30
|
-
() =>
|
|
31
|
-
[e,
|
|
32
|
-
),
|
|
33
|
-
const
|
|
34
|
-
return i(() =>
|
|
35
|
-
},
|
|
36
|
-
const
|
|
37
|
-
return
|
|
38
|
-
},
|
|
39
|
-
const s =
|
|
40
|
-
return s.filter((
|
|
41
|
-
}, [e]),
|
|
34
|
+
() => A({ url: e, getAuthToken: r }),
|
|
35
|
+
[e, r]
|
|
36
|
+
), C = (e) => {
|
|
37
|
+
const r = b();
|
|
38
|
+
return i(() => r.filter((s) => s.id === "NavalSpine" || s.id === "ChestSpine" ? !1 : h[s.id].every((t) => e.includes(t))), [e, r]);
|
|
39
|
+
}, J = (e) => {
|
|
40
|
+
const r = i(() => e.map(u).filter((n) => !!n), [e]);
|
|
41
|
+
return C(r);
|
|
42
|
+
}, F = (e) => i(() => {
|
|
43
|
+
const s = m(), n = e.map(u);
|
|
44
|
+
return s.filter((t) => n.includes(t.id));
|
|
45
|
+
}, [e]), S = (e, r) => i(
|
|
42
46
|
() => e.flatMap(
|
|
43
|
-
(n) => g(n,
|
|
47
|
+
(n) => g(n, r).map((t) => ({
|
|
44
48
|
id: { joint: n },
|
|
45
|
-
plane:
|
|
46
|
-
...
|
|
49
|
+
plane: t,
|
|
50
|
+
...L(n, t)
|
|
47
51
|
}))
|
|
48
52
|
),
|
|
49
|
-
[e,
|
|
50
|
-
),
|
|
53
|
+
[e, r]
|
|
54
|
+
), E = (e, r) => {
|
|
51
55
|
const s = i(() => {
|
|
52
|
-
const
|
|
53
|
-
return e.filter((o) =>
|
|
56
|
+
const t = m();
|
|
57
|
+
return e.filter((o) => t.some((l) => l.id === o));
|
|
54
58
|
}, [e]);
|
|
55
59
|
return i(
|
|
56
60
|
() => s.flatMap(
|
|
57
|
-
(
|
|
58
|
-
id: { segment:
|
|
61
|
+
(t) => x(t, r).map((o) => ({
|
|
62
|
+
id: { segment: t },
|
|
59
63
|
plane: o,
|
|
60
|
-
...
|
|
64
|
+
...P(t, o)
|
|
61
65
|
}))
|
|
62
66
|
),
|
|
63
|
-
[s,
|
|
67
|
+
[s, r]
|
|
64
68
|
);
|
|
65
|
-
},
|
|
66
|
-
const
|
|
69
|
+
}, y = (e) => {
|
|
70
|
+
const r = F(e), s = J(e), n = S(
|
|
67
71
|
s.map((o) => o.id),
|
|
68
72
|
a.Sensor
|
|
69
|
-
),
|
|
70
|
-
|
|
73
|
+
), t = E(
|
|
74
|
+
r.map((o) => o.id),
|
|
71
75
|
a.Sensor
|
|
72
76
|
);
|
|
73
|
-
return [...n, ...
|
|
77
|
+
return [...n, ...t];
|
|
78
|
+
}, z = () => {
|
|
79
|
+
const e = d(v);
|
|
80
|
+
if (e === void 0)
|
|
81
|
+
throw new Error("useUiLabelContext must be used within a UiLabelProvider");
|
|
82
|
+
return e;
|
|
74
83
|
};
|
|
75
84
|
export {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
85
|
+
k as useGraphqlClient,
|
|
86
|
+
C as useJointsForLimbIds,
|
|
87
|
+
J as useJointsForSensorLocations,
|
|
88
|
+
F as useLimbsForSensorLocations,
|
|
89
|
+
S as usePartOptionsForJoints,
|
|
90
|
+
E as usePartOptionsForLimbs,
|
|
91
|
+
y as usePartOptionsForSensorLocations,
|
|
92
|
+
z as useUiLabelContext
|
|
83
93
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./other-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./other-DyoApG-9.cjs");const o=require("./components.cjs"),a=require("./hooks.cjs"),n=require("./providers.cjs"),s=require("./services-action-DBOzfgMl.cjs"),e=require("./services-human-CnvSTmoF.cjs"),t=require("./types.cjs"),m=require("./utils-cn-FIKrq5Mb.cjs"),i=require("./utils-conversion-CWypeWsT.cjs"),g=require("./utils-memo-BJJP2KfI.cjs"),r=require("./utils-parameters-dwKmz1VU.cjs"),l=require("./utils-text-lORqO4uI.cjs");exports.ActivityList=o.ActivityList;exports.CopyActivityForm=o.CopyActivityForm;exports.CopyModuleForm=o.CopyModuleForm;exports.ModuleForm=o.ModuleForm;exports.ParameterEditList=o.ParameterEditList;exports.ParameterEditSelect=o.ParameterEditSelect;exports.UpsertActivityForm=o.UpsertActivityForm;exports.UpsertModuleForm=o.UpsertModuleForm;exports.useGraphqlClient=a.useGraphqlClient;exports.useJointsForLimbIds=a.useJointsForLimbIds;exports.useJointsForSensorLocations=a.useJointsForSensorLocations;exports.useLimbsForSensorLocations=a.useLimbsForSensorLocations;exports.usePartOptionsForJoints=a.usePartOptionsForJoints;exports.usePartOptionsForLimbs=a.usePartOptionsForLimbs;exports.usePartOptionsForSensorLocations=a.usePartOptionsForSensorLocations;exports.useUiLabelContext=a.useUiLabelContext;exports.QuantumLibraryProvider=n.QuantumLibraryProvider;exports.UiLabelContext=n.UiLabelContext;exports.UiLabelProvider=n.UiLabelProvider;exports.getActivityKindFromActivityType=s.getActivityKindFromActivityType;exports.mapActivityTypeEnumToLabel=s.mapActivityTypeEnumToLabel;exports.mapSessionTypeEnumToLabel=s.mapSessionTypeEnumToLabel;exports.getAllAvailableJoints=e.getAllAvailableJoints;exports.getAllAvailableLimbs=e.getAllAvailableLimbs;exports.getAllAvailablePoseJoints=e.getAllAvailablePoseJoints;exports.getAllAvailablePoseLimbs=e.getAllAvailablePoseLimbs;exports.getAllAvailableSensorJoints=e.getAllAvailableSensorJoints;exports.getAngleDirectionNames=e.getAngleDirectionNames;exports.getAvailableLimbsForLimbIds=e.getAvailableLimbsForLimbIds;exports.getAvailablePoseJointsForLimbIds=e.getAvailablePoseJointsForLimbIds;exports.getAvailableSensorJointsForLimbIds=e.getAvailableSensorJointsForLimbIds;exports.getAxis=e.getAxis;exports.getDefaultAngleSource=e.getDefaultAngleSource;exports.getDefaultJointRange=e.getDefaultJointRange;exports.getDefaultLimbRange=e.getDefaultLimbRange;exports.getEnabledJointPlanes=e.getEnabledJointPlanes;exports.getEnabledSegmentPlanes=e.getEnabledSegmentPlanes;exports.getHumanBodyAngle=e.getHumanBodyAngle;exports.getIsDefaultAngleAllowed=e.getIsDefaultAngleAllowed;exports.getJointAngleDirectionAbbr=e.getJointAngleDirectionAbbr;exports.getJointAngleDirectionName=e.getJointAngleDirectionName;exports.getJointNameWithPlane=e.getJointNameWithPlane;exports.getJointOrSegmentNameWithPlane=e.getJointOrSegmentNameWithPlane;exports.getJointPlaneName=e.getJointPlaneName;exports.getNormativeJointRange=e.getNormativeJointRange;exports.getParameterAngleDirectionName=e.getParameterAngleDirectionName;exports.getParameterDirectionNames=e.getParameterDirectionNames;exports.getPartName=e.getPartName;exports.getPartNameNoSide=e.getPartNameNoSide;exports.getPlane=e.getPlane;exports.getSegmentAngleDirectionAbbr=e.getSegmentAngleDirectionAbbr;exports.getSegmentAngleDirectionName=e.getSegmentAngleDirectionName;exports.getSegmentNameWithPlane=e.getSegmentNameWithPlane;exports.getSegmentXyzName=e.getSegmentXyzName;exports.getTypicalRom=e.getTypicalRom;exports.getTypicalRomSize=e.getTypicalRomSize;exports.isAxis=e.isAxis;exports.isJoint=e.isJoint;exports.isLimb=e.isLimb;exports.isPlane=e.isPlane;exports.jointNames=e.jointNames;exports.jointsUsedByLimbs=e.jointsUsedByLimbs;exports.limbNames=e.limbNames;exports.limbsRequiredForJoints=e.limbsRequiredForJoints;exports.mkAccelerationPart=e.mkAccelerationPart;exports.mkAngularVelocityPart=e.mkAngularVelocityPart;exports.mkHumanPart=e.mkHumanPart;exports.mkJointPart=e.mkJointPart;exports.mkLimbPart=e.mkLimbPart;exports.planeOrAxis=e.planeOrAxis;exports.AngleDataSource=t.AngleDataSource;exports.analysisStatBuilder=t.analysisStatBuilder;exports.areThresholdsEmpty=t.areThresholdsEmpty;exports.availablePlanes=t.availablePlanes;exports.axes=t.axes;exports.canBeVerticalForce=t.canBeVerticalForce;exports.dimensionName=t.dimensionName;exports.dimensionToLegacy=t.dimensionToLegacy;exports.getAnalysisName=t.getAnalysisName;exports.getAnalysisPartIdNoSide=t.getAnalysisPartIdNoSide;exports.getJointIdNoSide=t.getJointIdNoSide;exports.getJointIdWithSide=t.getJointIdWithSide;exports.getLimbIdNoSide=t.getLimbIdNoSide;exports.getLimbIdWithSide=t.getLimbIdWithSide;exports.getPointSide=t.getPointSide;exports.isDeviceEqual=t.isDeviceEqual;exports.isLimbTrackingFrame=t.isLimbTrackingFrame;exports.isSyncError=t.isSyncError;exports.jointAngle=t.jointAngle;exports.jointOrLimbHasThreshold=t.jointOrLimbHasThreshold;exports.jointOrLimbThresholdCount=t.jointOrLimbThresholdCount;exports.limbAngle=t.limbAngle;exports.mkUnit=t.mkUnit;exports.partAndPlaneHasThreshold=t.partAndPlaneHasThreshold;exports.partIdName=t.partIdName;exports.partIdToJointLimbId=t.partIdToJointLimbId;exports.partIdToString=t.partIdToString;exports.partKinds=t.partKinds;exports.planes=t.planes;exports.sensorLocationName=t.sensorLocationName;exports.sensorLocationToLimbId=t.sensorLocationToLimbId;exports.thresholdForPart=t.thresholdForPart;exports.thresholdFragmentsToThresholds=t.thresholdFragmentsToThresholds;exports.thresholdsToInput=t.thresholdsToInput;exports.tryMkUnit=t.tryMkUnit;exports.updateThreshold=t.updateThreshold;exports.cn=m.cn;exports.degToRad=i.degToRad;exports.getFormatterForParameter=i.getFormatterForParameter;exports.getUnitFormatted=i.getUnitFormatted;exports.getUnitValueFormatted=i.getUnitValueFormatted;exports.hourMinSecStrToMs=i.hourMinSecStrToMs;exports.inchesToMeters=i.inchesToMeters;exports.kgToPounds=i.kgToPounds;exports.metersToInches=i.metersToInches;exports.msToDurationStr=i.msToDurationStr;exports.msToHourMinSecStr=i.msToHourMinSecStr;exports.msToPrettyStr=i.msToPrettyStr;exports.msToTimestampStr=i.msToTimestampStr;exports.poundsToKg=i.poundsToKg;exports.radToDeg=i.radToDeg;exports.sToTimestampStr=i.sToTimestampStr;exports.safelyConvertEnum=i.safelyConvertEnum;exports.secondsToTimestampStr=i.secondsToTimestampStr;exports.memo=g.memo;exports.parameterToThreshold=r.parameterToThreshold;exports.parametersToThresholds=r.parametersToThresholds;exports.thresholdToParameter=r.thresholdToParameter;exports.thresholdsToParameters=r.thresholdsToParameters;exports.capitalizeAll=l.capitalizeAll;exports.pluralize=l.pluralize;
|
package/dist/index.js
CHANGED
|
@@ -1,137 +1,145 @@
|
|
|
1
|
-
import "./other-
|
|
2
|
-
import { ActivityList as
|
|
3
|
-
import { useGraphqlClient as
|
|
4
|
-
import { QuantumLibraryProvider as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import "./other-D9ROT7p0.js";
|
|
2
|
+
import { ActivityList as s, CopyActivityForm as o, CopyModuleForm as i, ModuleForm as r, ParameterEditList as n, ParameterEditSelect as m, UpsertActivityForm as l, UpsertModuleForm as g } from "./components.js";
|
|
3
|
+
import { useGraphqlClient as p, useJointsForLimbIds as b, useJointsForSensorLocations as c, useLimbsForSensorLocations as A, usePartOptionsForJoints as T, usePartOptionsForLimbs as u, usePartOptionsForSensorLocations as P, useUiLabelContext as h } from "./hooks.js";
|
|
4
|
+
import { QuantumLibraryProvider as L, UiLabelContext as y, UiLabelProvider as F } from "./providers.js";
|
|
5
|
+
import { g as J, m as v, a as f } from "./services-action-CfZFwhy-.js";
|
|
6
|
+
import { e as I, f as D, r as k, s as E, q as U, T as M, p as C, u as O, t as R, H as j, N as H, i as z, k as B, h as W, j as q, P as K, O as V, v as w, b as G, a as Q, S as X, Q as Y, d as Z, V as _, U as $, J as ee, K as ae, I as te, w as se, c as oe, g as ie, R as re, L as ne, M as me, B as le, E as ge, D as de, C as pe, n as be, o as ce, m as Ae, l as Te, z as ue, A as Pe, F as he, x as Se, y as Le, G as ye } from "./services-human-B98qxeuS.js";
|
|
7
|
+
import { AngleDataSource as Ne, analysisStatBuilder as Je, areThresholdsEmpty as ve, availablePlanes as fe, axes as xe, canBeVerticalForce as Ie, dimensionName as De, dimensionToLegacy as ke, getAnalysisName as Ee, getAnalysisPartIdNoSide as Ue, getJointIdNoSide as Me, getJointIdWithSide as Ce, getLimbIdNoSide as Oe, getLimbIdWithSide as Re, getPointSide as je, isDeviceEqual as He, isLimbTrackingFrame as ze, isSyncError as Be, jointAngle as We, jointOrLimbHasThreshold as qe, jointOrLimbThresholdCount as Ke, limbAngle as Ve, mkUnit as we, partAndPlaneHasThreshold as Ge, partIdName as Qe, partIdToJointLimbId as Xe, partIdToString as Ye, partKinds as Ze, planes as _e, sensorLocationName as $e, sensorLocationToLimbId as ea, thresholdForPart as aa, thresholdFragmentsToThresholds as ta, thresholdsToInput as sa, tryMkUnit as oa, updateThreshold as ia } from "./types.js";
|
|
8
|
+
import { c as na } from "./utils-cn-CgdSr4hO.js";
|
|
9
|
+
import { d as la, n as ga, j as da, g as pa, h as ba, i as ca, k as Aa, m as Ta, a as ua, e as Pa, c as ha, b as Sa, p as La, r as ya, s as Fa, l as Na, f as Ja } from "./utils-conversion-ChFbq8I2.js";
|
|
10
|
+
import { m as fa } from "./utils-memo-DtXdOqCT.js";
|
|
11
|
+
import { a as Ia, p as Da, b as ka, t as Ea } from "./utils-parameters-BBFuBK2B.js";
|
|
12
|
+
import { c as Ma, p as Ca } from "./utils-text-CN3zLiZ7.js";
|
|
8
13
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
s as ActivityList,
|
|
15
|
+
Ne as AngleDataSource,
|
|
16
|
+
o as CopyActivityForm,
|
|
17
|
+
i as CopyModuleForm,
|
|
18
|
+
r as ModuleForm,
|
|
19
|
+
n as ParameterEditList,
|
|
15
20
|
m as ParameterEditSelect,
|
|
16
|
-
|
|
21
|
+
L as QuantumLibraryProvider,
|
|
22
|
+
y as UiLabelContext,
|
|
23
|
+
F as UiLabelProvider,
|
|
17
24
|
l as UpsertActivityForm,
|
|
18
25
|
g as UpsertModuleForm,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
26
|
+
Je as analysisStatBuilder,
|
|
27
|
+
ve as areThresholdsEmpty,
|
|
28
|
+
fe as availablePlanes,
|
|
29
|
+
xe as axes,
|
|
30
|
+
Ie as canBeVerticalForce,
|
|
31
|
+
Ma as capitalizeAll,
|
|
32
|
+
na as cn,
|
|
33
|
+
la as degToRad,
|
|
34
|
+
De as dimensionName,
|
|
35
|
+
ke as dimensionToLegacy,
|
|
36
|
+
J as getActivityKindFromActivityType,
|
|
37
|
+
I as getAllAvailableJoints,
|
|
38
|
+
D as getAllAvailableLimbs,
|
|
39
|
+
k as getAllAvailablePoseJoints,
|
|
40
|
+
E as getAllAvailablePoseLimbs,
|
|
41
|
+
U as getAllAvailableSensorJoints,
|
|
42
|
+
Ee as getAnalysisName,
|
|
43
|
+
Ue as getAnalysisPartIdNoSide,
|
|
44
|
+
M as getAngleDirectionNames,
|
|
45
|
+
C as getAvailableLimbsForLimbIds,
|
|
46
|
+
O as getAvailablePoseJointsForLimbIds,
|
|
47
|
+
R as getAvailableSensorJointsForLimbIds,
|
|
48
|
+
j as getAxis,
|
|
49
|
+
H as getDefaultAngleSource,
|
|
50
|
+
z as getDefaultJointRange,
|
|
51
|
+
B as getDefaultLimbRange,
|
|
52
|
+
W as getEnabledJointPlanes,
|
|
53
|
+
q as getEnabledSegmentPlanes,
|
|
54
|
+
ga as getFormatterForParameter,
|
|
55
|
+
K as getHumanBodyAngle,
|
|
56
|
+
V as getIsDefaultAngleAllowed,
|
|
57
|
+
w as getJointAngleDirectionAbbr,
|
|
58
|
+
G as getJointAngleDirectionName,
|
|
59
|
+
Me as getJointIdNoSide,
|
|
60
|
+
Ce as getJointIdWithSide,
|
|
61
|
+
Q as getJointNameWithPlane,
|
|
62
|
+
X as getJointOrSegmentNameWithPlane,
|
|
63
|
+
Y as getJointPlaneName,
|
|
64
|
+
Oe as getLimbIdNoSide,
|
|
65
|
+
Re as getLimbIdWithSide,
|
|
66
|
+
Z as getNormativeJointRange,
|
|
67
|
+
_ as getParameterAngleDirectionName,
|
|
68
|
+
$ as getParameterDirectionNames,
|
|
69
|
+
ee as getPartName,
|
|
70
|
+
ae as getPartNameNoSide,
|
|
71
|
+
te as getPlane,
|
|
72
|
+
je as getPointSide,
|
|
73
|
+
se as getSegmentAngleDirectionAbbr,
|
|
74
|
+
oe as getSegmentAngleDirectionName,
|
|
75
|
+
ie as getSegmentNameWithPlane,
|
|
76
|
+
re as getSegmentXyzName,
|
|
77
|
+
ne as getTypicalRom,
|
|
78
|
+
me as getTypicalRomSize,
|
|
79
|
+
da as getUnitFormatted,
|
|
80
|
+
pa as getUnitValueFormatted,
|
|
81
|
+
ba as hourMinSecStrToMs,
|
|
82
|
+
ca as inchesToMeters,
|
|
83
|
+
le as isAxis,
|
|
84
|
+
He as isDeviceEqual,
|
|
85
|
+
ge as isJoint,
|
|
86
|
+
de as isLimb,
|
|
87
|
+
ze as isLimbTrackingFrame,
|
|
88
|
+
pe as isPlane,
|
|
89
|
+
Be as isSyncError,
|
|
90
|
+
We as jointAngle,
|
|
91
|
+
be as jointNames,
|
|
92
|
+
qe as jointOrLimbHasThreshold,
|
|
93
|
+
Ke as jointOrLimbThresholdCount,
|
|
94
|
+
ce as jointsUsedByLimbs,
|
|
95
|
+
Aa as kgToPounds,
|
|
96
|
+
Ve as limbAngle,
|
|
97
|
+
Ae as limbNames,
|
|
98
|
+
Te as limbsRequiredForJoints,
|
|
99
|
+
v as mapActivityTypeEnumToLabel,
|
|
100
|
+
f as mapSessionTypeEnumToLabel,
|
|
101
|
+
fa as memo,
|
|
102
|
+
Ta as metersToInches,
|
|
103
|
+
ue as mkAccelerationPart,
|
|
104
|
+
Pe as mkAngularVelocityPart,
|
|
105
|
+
he as mkHumanPart,
|
|
106
|
+
Se as mkJointPart,
|
|
107
|
+
Le as mkLimbPart,
|
|
108
|
+
we as mkUnit,
|
|
109
|
+
ua as msToDurationStr,
|
|
110
|
+
Pa as msToHourMinSecStr,
|
|
111
|
+
ha as msToPrettyStr,
|
|
112
|
+
Sa as msToTimestampStr,
|
|
113
|
+
Ia as parameterToThreshold,
|
|
114
|
+
Da as parametersToThresholds,
|
|
115
|
+
Ge as partAndPlaneHasThreshold,
|
|
116
|
+
Qe as partIdName,
|
|
117
|
+
Xe as partIdToJointLimbId,
|
|
118
|
+
Ye as partIdToString,
|
|
119
|
+
Ze as partKinds,
|
|
120
|
+
ye as planeOrAxis,
|
|
121
|
+
_e as planes,
|
|
122
|
+
Ca as pluralize,
|
|
123
|
+
La as poundsToKg,
|
|
124
|
+
ya as radToDeg,
|
|
125
|
+
Fa as sToTimestampStr,
|
|
126
|
+
Na as safelyConvertEnum,
|
|
127
|
+
Ja as secondsToTimestampStr,
|
|
128
|
+
$e as sensorLocationName,
|
|
129
|
+
ea as sensorLocationToLimbId,
|
|
130
|
+
aa as thresholdForPart,
|
|
131
|
+
ta as thresholdFragmentsToThresholds,
|
|
132
|
+
ka as thresholdToParameter,
|
|
133
|
+
sa as thresholdsToInput,
|
|
134
|
+
Ea as thresholdsToParameters,
|
|
135
|
+
oa as tryMkUnit,
|
|
136
|
+
ia as updateThreshold,
|
|
137
|
+
p as useGraphqlClient,
|
|
138
|
+
b as useJointsForLimbIds,
|
|
139
|
+
c as useJointsForSensorLocations,
|
|
140
|
+
A as useLimbsForSensorLocations,
|
|
141
|
+
T as usePartOptionsForJoints,
|
|
135
142
|
u as usePartOptionsForLimbs,
|
|
136
|
-
P as usePartOptionsForSensorLocations
|
|
143
|
+
P as usePartOptionsForSensorLocations,
|
|
144
|
+
h as useUiLabelContext
|
|
137
145
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ContextType } from 'react';
|
|
2
|
+
import { UiLabelContext } from '../providers/ui-label-provider';
|
|
3
|
+
/**
|
|
4
|
+
* Access UI label helpers/state. Must be used within a UiLabelProvider.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useUiLabelContext: () => NonNullable<ContextType<typeof UiLabelContext>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type UiLabelKey = "module" | "action" | "module_plural" | "action_plural";
|
|
2
|
+
export type UiLabelContextType = {
|
|
3
|
+
getLabel: (value: UiLabelKey) => string;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type UiLabelProviderProps = {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare const UiLabelContext: import('react').Context<UiLabelContextType | undefined>;
|