quantum-component-library 1.4.48-dev.0 → 1.4.48-dev.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/dist/components.cjs +1 -1
- package/dist/components.js +1281 -1240
- package/dist/graphql/queries/index.d.ts +1 -0
- package/dist/{graphql-BnWfFu1Y.cjs → graphql-D4Dr9NG1.cjs} +9 -9
- package/dist/{graphql-Cm5gV92N.js → graphql-Dbkm2qZl.js} +20 -20
- package/dist/index.cjs +1 -1
- package/dist/index.js +124 -121
- 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/providers.cjs +1 -1
- package/dist/providers.js +47 -8
- package/package.json +1 -1
|
@@ -688,28 +688,28 @@
|
|
|
688
688
|
...AssessmentAction
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
|
+
`),_=e.graphql(`
|
|
692
|
+
query getMetadataByKey($key: String!) {
|
|
693
|
+
getMetadataByKey(key: $key) {
|
|
694
|
+
...MetadataGroup
|
|
695
|
+
}
|
|
696
|
+
}
|
|
691
697
|
`);e.graphql(`
|
|
692
698
|
query getLibraryModules {
|
|
693
699
|
modules {
|
|
694
700
|
...LibraryActionModule
|
|
695
701
|
}
|
|
696
702
|
}
|
|
697
|
-
`);const
|
|
703
|
+
`);const I=e.graphql(`
|
|
698
704
|
query getLibraryModule($id: ID!) {
|
|
699
705
|
module(id: $id) {
|
|
700
706
|
...LibraryActionModule
|
|
701
707
|
}
|
|
702
708
|
}
|
|
703
|
-
`),
|
|
709
|
+
`),h=e.graphql(`
|
|
704
710
|
query getAllModuleCategories {
|
|
705
711
|
moduleCategories {
|
|
706
712
|
...LibraryModuleCategory
|
|
707
713
|
}
|
|
708
714
|
}
|
|
709
|
-
`)
|
|
710
|
-
query getMetadataByKey($key: String!) {
|
|
711
|
-
getMetadataByKey(key: $key) {
|
|
712
|
-
...MetadataGroup
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
`);exports.ACTION_FRAGMENT=t;exports.ACTION_MODULE_FRAGMENT=s;exports.CONVERT_ACTION_TO_QUANTUM_OWNED=m;exports.CREATE_ACTION=d;exports.CREATE_MODULE=c;exports.GET_ACTIONS=A;exports.GET_ACTIONS_BY_GROUP=M;exports.GET_ACTION_BY_ID=T;exports.GET_ALL_MODULE_CATEGORIES=I;exports.GET_GROUPS=g;exports.GET_METADATA_BY_KEY=h;exports.GET_MODULES_BY_GROUP=y;exports.GET_MODULE_BY_ID=_;exports.GET_QUANTUM_OWNED_ACTIONS=u;exports.GROUP_FRAGMENT=a;exports.METADATA_GROUP_FRAGMENT=i;exports.METADATA_ITEM_FRAGMENT=r;exports.MODULE_ACTION_FRAGMENT=n;exports.MODULE_CATEGORY_FRAGMENT=o;exports.UPDATE_ACTION=l;exports.UPDATE_MODULE=p;
|
|
715
|
+
`);exports.ACTION_FRAGMENT=t;exports.ACTION_MODULE_FRAGMENT=s;exports.CONVERT_ACTION_TO_QUANTUM_OWNED=m;exports.CREATE_ACTION=d;exports.CREATE_MODULE=c;exports.GET_ACTIONS=A;exports.GET_ACTIONS_BY_GROUP=M;exports.GET_ACTION_BY_ID=T;exports.GET_ALL_MODULE_CATEGORIES=h;exports.GET_GROUPS=g;exports.GET_METADATA_BY_KEY=_;exports.GET_MODULES_BY_GROUP=y;exports.GET_MODULE_BY_ID=I;exports.GET_QUANTUM_OWNED_ACTIONS=u;exports.GROUP_FRAGMENT=a;exports.METADATA_GROUP_FRAGMENT=i;exports.METADATA_ITEM_FRAGMENT=r;exports.MODULE_ACTION_FRAGMENT=n;exports.MODULE_CATEGORY_FRAGMENT=o;exports.UPDATE_ACTION=l;exports.UPDATE_MODULE=p;
|
|
@@ -724,6 +724,12 @@ const M = e(`
|
|
|
724
724
|
...AssessmentAction
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
|
+
`), _ = e(`
|
|
728
|
+
query getMetadataByKey($key: String!) {
|
|
729
|
+
getMetadataByKey(key: $key) {
|
|
730
|
+
...MetadataGroup
|
|
731
|
+
}
|
|
732
|
+
}
|
|
727
733
|
`);
|
|
728
734
|
e(`
|
|
729
735
|
query getLibraryModules {
|
|
@@ -732,24 +738,18 @@ e(`
|
|
|
732
738
|
}
|
|
733
739
|
}
|
|
734
740
|
`);
|
|
735
|
-
const
|
|
741
|
+
const v = e(`
|
|
736
742
|
query getLibraryModule($id: ID!) {
|
|
737
743
|
module(id: $id) {
|
|
738
744
|
...LibraryActionModule
|
|
739
745
|
}
|
|
740
746
|
}
|
|
741
|
-
`),
|
|
747
|
+
`), f = e(`
|
|
742
748
|
query getAllModuleCategories {
|
|
743
749
|
moduleCategories {
|
|
744
750
|
...LibraryModuleCategory
|
|
745
751
|
}
|
|
746
752
|
}
|
|
747
|
-
`), f = e(`
|
|
748
|
-
query getMetadataByKey($key: String!) {
|
|
749
|
-
getMetadataByKey(key: $key) {
|
|
750
|
-
...MetadataGroup
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
753
|
`);
|
|
754
754
|
export {
|
|
755
755
|
a as A,
|
|
@@ -757,20 +757,20 @@ export {
|
|
|
757
757
|
M as G,
|
|
758
758
|
d as M,
|
|
759
759
|
A as U,
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
760
|
+
n as a,
|
|
761
|
+
I as b,
|
|
762
|
+
s as c,
|
|
763
|
+
l as d,
|
|
764
|
+
i as e,
|
|
765
|
+
o as f,
|
|
766
|
+
r as g,
|
|
767
|
+
g as h,
|
|
768
|
+
u as i,
|
|
769
|
+
_ as j,
|
|
770
770
|
c as k,
|
|
771
771
|
T as l,
|
|
772
772
|
y as m,
|
|
773
773
|
p as n,
|
|
774
|
-
|
|
775
|
-
|
|
774
|
+
v as o,
|
|
775
|
+
f as p
|
|
776
776
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./other-Dp3RPYfF.cjs");const o=require("./components.cjs"),a=require("./hooks.cjs"),r=require("./providers.cjs"),e=require("./services.cjs"),t=require("./types.cjs"),i=require("./utils.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.QuantumLibraryProvider=r.QuantumLibraryProvider;exports.getActivityKindFromActivityType=e.getActivityKindFromActivityType;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.mapActivityTypeEnumToLabel=e.mapActivityTypeEnumToLabel;exports.mapSessionTypeEnumToLabel=e.mapSessionTypeEnumToLabel;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.capitalizeAll=i.capitalizeAll;exports.cn=i.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.memo=i.memo;exports.metersToInches=i.metersToInches;exports.msToDurationStr=i.msToDurationStr;exports.msToHourMinSecStr=i.msToHourMinSecStr;exports.msToPrettyStr=i.msToPrettyStr;exports.msToTimestampStr=i.msToTimestampStr;exports.parameterToThreshold=i.parameterToThreshold;exports.parametersToThresholds=i.parametersToThresholds;exports.pluralize=i.pluralize;exports.poundsToKg=i.poundsToKg;exports.radToDeg=i.radToDeg;exports.sToTimestampStr=i.sToTimestampStr;exports.safelyConvertEnum=i.safelyConvertEnum;exports.secondsToTimestampStr=i.secondsToTimestampStr;exports.thresholdToParameter=i.thresholdToParameter;exports.thresholdsToParameters=i.thresholdsToParameters;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./other-Dp3RPYfF.cjs");const o=require("./components.cjs"),a=require("./hooks.cjs"),r=require("./providers.cjs"),e=require("./services.cjs"),t=require("./types.cjs"),i=require("./utils.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.QuantumLibraryProvider=r.QuantumLibraryProvider;exports.UiLabelContext=r.UiLabelContext;exports.UiLabelProvider=r.UiLabelProvider;exports.useUiLabelContext=r.useUiLabelContext;exports.getActivityKindFromActivityType=e.getActivityKindFromActivityType;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.mapActivityTypeEnumToLabel=e.mapActivityTypeEnumToLabel;exports.mapSessionTypeEnumToLabel=e.mapSessionTypeEnumToLabel;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.capitalizeAll=i.capitalizeAll;exports.cn=i.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.memo=i.memo;exports.metersToInches=i.metersToInches;exports.msToDurationStr=i.msToDurationStr;exports.msToHourMinSecStr=i.msToHourMinSecStr;exports.msToPrettyStr=i.msToPrettyStr;exports.msToTimestampStr=i.msToTimestampStr;exports.parameterToThreshold=i.parameterToThreshold;exports.parametersToThresholds=i.parametersToThresholds;exports.pluralize=i.pluralize;exports.poundsToKg=i.poundsToKg;exports.radToDeg=i.radToDeg;exports.sToTimestampStr=i.sToTimestampStr;exports.safelyConvertEnum=i.safelyConvertEnum;exports.secondsToTimestampStr=i.secondsToTimestampStr;exports.thresholdToParameter=i.thresholdToParameter;exports.thresholdsToParameters=i.thresholdsToParameters;
|
package/dist/index.js
CHANGED
|
@@ -1,137 +1,140 @@
|
|
|
1
1
|
import "./other-C4VnLmM6.js";
|
|
2
2
|
import { ActivityList as i, CopyActivityForm as a, CopyModuleForm as r, ModuleForm as n, ParameterEditList as s, ParameterEditSelect as m, UpsertActivityForm as l, UpsertModuleForm as g } from "./components.js";
|
|
3
|
-
import { useGraphqlClient as
|
|
4
|
-
import { QuantumLibraryProvider as S } from "./providers.js";
|
|
5
|
-
import { getActivityKindFromActivityType as
|
|
6
|
-
import { AngleDataSource as
|
|
7
|
-
import { capitalizeAll as
|
|
3
|
+
import { useGraphqlClient as b, useJointsForLimbIds as A, useJointsForSensorLocations as T, useLimbsForSensorLocations as c, usePartOptionsForJoints as p, usePartOptionsForLimbs as u, usePartOptionsForSensorLocations as P } from "./hooks.js";
|
|
4
|
+
import { QuantumLibraryProvider as S, UiLabelContext as L, UiLabelProvider as y, useUiLabelContext as F } from "./providers.js";
|
|
5
|
+
import { getActivityKindFromActivityType as J, getAllAvailableJoints as v, getAllAvailableLimbs as I, getAllAvailablePoseJoints as D, getAllAvailablePoseLimbs as x, getAllAvailableSensorJoints as f, getAngleDirectionNames as E, getAvailableLimbsForLimbIds as U, getAvailablePoseJointsForLimbIds as k, getAvailableSensorJointsForLimbIds as M, getAxis as C, getDefaultAngleSource as O, getDefaultJointRange as R, getDefaultLimbRange as j, getEnabledJointPlanes as H, getEnabledSegmentPlanes as W, getHumanBodyAngle as z, getIsDefaultAngleAllowed as B, getJointAngleDirectionAbbr as q, getJointAngleDirectionName as K, getJointNameWithPlane as V, getJointOrSegmentNameWithPlane as w, getJointPlaneName as G, getNormativeJointRange as Q, getParameterAngleDirectionName as X, getParameterDirectionNames as Y, getPartName as Z, getPartNameNoSide as _, getPlane as $, getSegmentAngleDirectionAbbr as ee, getSegmentAngleDirectionName as te, getSegmentNameWithPlane as oe, getSegmentXyzName as ie, getTypicalRom as ae, getTypicalRomSize as re, isAxis as ne, isJoint as se, isLimb as me, isPlane as le, jointNames as ge, jointsUsedByLimbs as de, limbNames as be, limbsRequiredForJoints as Ae, mapActivityTypeEnumToLabel as Te, mapSessionTypeEnumToLabel as ce, mkAccelerationPart as pe, mkAngularVelocityPart as ue, mkHumanPart as Pe, mkJointPart as he, mkLimbPart as Se, planeOrAxis as Le } from "./services.js";
|
|
6
|
+
import { AngleDataSource as Fe, analysisStatBuilder as Ne, areThresholdsEmpty as Je, availablePlanes as ve, axes as Ie, canBeVerticalForce as De, dimensionName as xe, dimensionToLegacy as fe, getAnalysisName as Ee, getAnalysisPartIdNoSide as Ue, getJointIdNoSide as ke, getJointIdWithSide as Me, getLimbIdNoSide as Ce, getLimbIdWithSide as Oe, getPointSide as Re, isDeviceEqual as je, isLimbTrackingFrame as He, isSyncError as We, jointAngle as ze, jointOrLimbHasThreshold as Be, jointOrLimbThresholdCount as qe, limbAngle as Ke, mkUnit as Ve, partAndPlaneHasThreshold as we, partIdName as Ge, partIdToJointLimbId as Qe, partIdToString as Xe, partKinds as Ye, planes as Ze, sensorLocationName as _e, sensorLocationToLimbId as $e, thresholdForPart as et, thresholdFragmentsToThresholds as tt, thresholdsToInput as ot, tryMkUnit as it, updateThreshold as at } from "./types.js";
|
|
7
|
+
import { capitalizeAll as nt, cn as st, degToRad as mt, getFormatterForParameter as lt, getUnitFormatted as gt, getUnitValueFormatted as dt, hourMinSecStrToMs as bt, inchesToMeters as At, kgToPounds as Tt, memo as ct, metersToInches as pt, msToDurationStr as ut, msToHourMinSecStr as Pt, msToPrettyStr as ht, msToTimestampStr as St, parameterToThreshold as Lt, parametersToThresholds as yt, pluralize as Ft, poundsToKg as Nt, radToDeg as Jt, sToTimestampStr as vt, safelyConvertEnum as It, secondsToTimestampStr as Dt, thresholdToParameter as xt, thresholdsToParameters as ft } from "./utils.js";
|
|
8
8
|
export {
|
|
9
9
|
i as ActivityList,
|
|
10
|
-
|
|
10
|
+
Fe as AngleDataSource,
|
|
11
11
|
a as CopyActivityForm,
|
|
12
12
|
r as CopyModuleForm,
|
|
13
13
|
n as ModuleForm,
|
|
14
14
|
s as ParameterEditList,
|
|
15
15
|
m as ParameterEditSelect,
|
|
16
16
|
S as QuantumLibraryProvider,
|
|
17
|
+
L as UiLabelContext,
|
|
18
|
+
y as UiLabelProvider,
|
|
17
19
|
l as UpsertActivityForm,
|
|
18
20
|
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
|
-
|
|
21
|
+
Ne as analysisStatBuilder,
|
|
22
|
+
Je as areThresholdsEmpty,
|
|
23
|
+
ve as availablePlanes,
|
|
24
|
+
Ie as axes,
|
|
25
|
+
De as canBeVerticalForce,
|
|
26
|
+
nt as capitalizeAll,
|
|
27
|
+
st as cn,
|
|
28
|
+
mt as degToRad,
|
|
29
|
+
xe as dimensionName,
|
|
30
|
+
fe as dimensionToLegacy,
|
|
31
|
+
J as getActivityKindFromActivityType,
|
|
32
|
+
v as getAllAvailableJoints,
|
|
33
|
+
I as getAllAvailableLimbs,
|
|
34
|
+
D as getAllAvailablePoseJoints,
|
|
35
|
+
x as getAllAvailablePoseLimbs,
|
|
36
|
+
f as getAllAvailableSensorJoints,
|
|
37
|
+
Ee as getAnalysisName,
|
|
38
|
+
Ue as getAnalysisPartIdNoSide,
|
|
39
|
+
E as getAngleDirectionNames,
|
|
40
|
+
U as getAvailableLimbsForLimbIds,
|
|
41
|
+
k as getAvailablePoseJointsForLimbIds,
|
|
42
|
+
M as getAvailableSensorJointsForLimbIds,
|
|
43
|
+
C as getAxis,
|
|
44
|
+
O as getDefaultAngleSource,
|
|
45
|
+
R as getDefaultJointRange,
|
|
46
|
+
j as getDefaultLimbRange,
|
|
47
|
+
H as getEnabledJointPlanes,
|
|
48
|
+
W as getEnabledSegmentPlanes,
|
|
49
|
+
lt as getFormatterForParameter,
|
|
50
|
+
z as getHumanBodyAngle,
|
|
51
|
+
B as getIsDefaultAngleAllowed,
|
|
52
|
+
q as getJointAngleDirectionAbbr,
|
|
53
|
+
K as getJointAngleDirectionName,
|
|
54
|
+
ke as getJointIdNoSide,
|
|
55
|
+
Me as getJointIdWithSide,
|
|
56
|
+
V as getJointNameWithPlane,
|
|
57
|
+
w as getJointOrSegmentNameWithPlane,
|
|
58
|
+
G as getJointPlaneName,
|
|
59
|
+
Ce as getLimbIdNoSide,
|
|
60
|
+
Oe as getLimbIdWithSide,
|
|
61
|
+
Q as getNormativeJointRange,
|
|
62
|
+
X as getParameterAngleDirectionName,
|
|
63
|
+
Y as getParameterDirectionNames,
|
|
64
|
+
Z as getPartName,
|
|
65
|
+
_ as getPartNameNoSide,
|
|
66
|
+
$ as getPlane,
|
|
67
|
+
Re as getPointSide,
|
|
68
|
+
ee as getSegmentAngleDirectionAbbr,
|
|
69
|
+
te as getSegmentAngleDirectionName,
|
|
70
|
+
oe as getSegmentNameWithPlane,
|
|
71
|
+
ie as getSegmentXyzName,
|
|
72
|
+
ae as getTypicalRom,
|
|
73
|
+
re as getTypicalRomSize,
|
|
74
|
+
gt as getUnitFormatted,
|
|
75
|
+
dt as getUnitValueFormatted,
|
|
76
|
+
bt as hourMinSecStrToMs,
|
|
77
|
+
At as inchesToMeters,
|
|
78
|
+
ne as isAxis,
|
|
79
|
+
je as isDeviceEqual,
|
|
80
|
+
se as isJoint,
|
|
81
|
+
me as isLimb,
|
|
82
|
+
He as isLimbTrackingFrame,
|
|
83
|
+
le as isPlane,
|
|
84
|
+
We as isSyncError,
|
|
85
|
+
ze as jointAngle,
|
|
86
|
+
ge as jointNames,
|
|
87
|
+
Be as jointOrLimbHasThreshold,
|
|
88
|
+
qe as jointOrLimbThresholdCount,
|
|
89
|
+
de as jointsUsedByLimbs,
|
|
90
|
+
Tt as kgToPounds,
|
|
91
|
+
Ke as limbAngle,
|
|
92
|
+
be as limbNames,
|
|
93
|
+
Ae as limbsRequiredForJoints,
|
|
94
|
+
Te as mapActivityTypeEnumToLabel,
|
|
95
|
+
ce as mapSessionTypeEnumToLabel,
|
|
96
|
+
ct as memo,
|
|
97
|
+
pt as metersToInches,
|
|
98
|
+
pe as mkAccelerationPart,
|
|
99
|
+
ue as mkAngularVelocityPart,
|
|
100
|
+
Pe as mkHumanPart,
|
|
101
|
+
he as mkJointPart,
|
|
102
|
+
Se as mkLimbPart,
|
|
103
|
+
Ve as mkUnit,
|
|
104
|
+
ut as msToDurationStr,
|
|
105
|
+
Pt as msToHourMinSecStr,
|
|
106
|
+
ht as msToPrettyStr,
|
|
107
|
+
St as msToTimestampStr,
|
|
108
|
+
Lt as parameterToThreshold,
|
|
109
|
+
yt as parametersToThresholds,
|
|
110
|
+
we as partAndPlaneHasThreshold,
|
|
111
|
+
Ge as partIdName,
|
|
112
|
+
Qe as partIdToJointLimbId,
|
|
113
|
+
Xe as partIdToString,
|
|
114
|
+
Ye as partKinds,
|
|
115
|
+
Le as planeOrAxis,
|
|
116
|
+
Ze as planes,
|
|
117
|
+
Ft as pluralize,
|
|
118
|
+
Nt as poundsToKg,
|
|
119
|
+
Jt as radToDeg,
|
|
120
|
+
vt as sToTimestampStr,
|
|
121
|
+
It as safelyConvertEnum,
|
|
122
|
+
Dt as secondsToTimestampStr,
|
|
123
|
+
_e as sensorLocationName,
|
|
124
|
+
$e as sensorLocationToLimbId,
|
|
125
|
+
et as thresholdForPart,
|
|
126
|
+
tt as thresholdFragmentsToThresholds,
|
|
127
|
+
xt as thresholdToParameter,
|
|
128
|
+
ot as thresholdsToInput,
|
|
129
|
+
ft as thresholdsToParameters,
|
|
130
|
+
it as tryMkUnit,
|
|
131
|
+
at as updateThreshold,
|
|
132
|
+
b as useGraphqlClient,
|
|
133
|
+
A as useJointsForLimbIds,
|
|
134
|
+
T as useJointsForSensorLocations,
|
|
133
135
|
c as useLimbsForSensorLocations,
|
|
134
136
|
p as usePartOptionsForJoints,
|
|
135
137
|
u as usePartOptionsForLimbs,
|
|
136
|
-
P as usePartOptionsForSensorLocations
|
|
138
|
+
P as usePartOptionsForSensorLocations,
|
|
139
|
+
F as useUiLabelContext
|
|
137
140
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type UiLabelContextType = {
|
|
2
|
+
getLabel: (value: string) => string;
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
};
|
|
5
|
+
export type UiLabelProviderProps = {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const UiLabelContext: import('react').Context<UiLabelContextType | undefined>;
|
|
9
|
+
export declare const useUiLabelContext: () => UiLabelContextType;
|
package/dist/providers.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./react-jsx-runtime-vendor-Dszzpdy0.cjs"),s=require("./graphql-D4Dr9NG1.cjs"),o=require("react"),m=require("@chakra-ui/react"),d=require("./graphql-vendor-CL0XsjHb.cjs"),v=require("./hooks.cjs"),l=require("./generated.cjs"),u=o.createContext(void 0),E=()=>{const e=o.useContext(u);if(e===void 0)throw new Error("useUiLabelContext must be used within a UiLabelProvider");return e},x=({children:e})=>{const[{data:r,fetching:t}]=d.useQuery({query:s.GET_METADATA_BY_KEY,variables:{key:"ui_label"}}),a=o.useCallback(b=>{if(t)return"Loading...";const c=l.getFragmentData(s.METADATA_GROUP_FRAGMENT,r?.getMetadataByKey);return c?l.getFragmentData(s.METADATA_ITEM_FRAGMENT,c.data).find(g=>g.value===b)?.label??"":""},[r,t]),i=o.useMemo(()=>({getLabel:a,isLoading:t}),[a,t]);return n.jsxRuntimeExports.jsx(u.Provider,{value:i,children:e})},L=({children:e,url:r,getAuthToken:t,chakraProviderProps:a})=>{const i=v.useGraphqlClient({url:r,getAuthToken:t});return n.jsxRuntimeExports.jsx(d.f,{value:i,children:n.jsxRuntimeExports.jsx(m.ChakraProvider,{...a,children:n.jsxRuntimeExports.jsx(x,{children:e})})})};exports.QuantumLibraryProvider=L;exports.UiLabelContext=u;exports.UiLabelProvider=x;exports.useUiLabelContext=E;
|
package/dist/providers.js
CHANGED
|
@@ -1,11 +1,50 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { j as o } from "./react-jsx-runtime-vendor-OVHDjVDe.js";
|
|
2
|
+
import { a as c, c as d, j as x } from "./graphql-Dbkm2qZl.js";
|
|
3
|
+
import { createContext as f, useContext as b, useCallback as p, useMemo as v } from "react";
|
|
4
|
+
import { ChakraProvider as A } from "@chakra-ui/react";
|
|
5
|
+
import { u as E, d as T } from "./graphql-vendor-BWnD0b-j.js";
|
|
6
|
+
import { useGraphqlClient as L } from "./hooks.js";
|
|
7
|
+
import { getFragmentData as s } from "./generated.js";
|
|
8
|
+
const u = f(
|
|
9
|
+
void 0
|
|
10
|
+
), D = () => {
|
|
11
|
+
const e = b(u);
|
|
12
|
+
if (e === void 0)
|
|
13
|
+
throw new Error("useUiLabelContext must be used within a UiLabelProvider");
|
|
14
|
+
return e;
|
|
15
|
+
}, C = ({ children: e }) => {
|
|
16
|
+
const [{ data: r, fetching: t }] = E({
|
|
17
|
+
query: x,
|
|
18
|
+
variables: { key: "ui_label" }
|
|
19
|
+
}), a = p(
|
|
20
|
+
(l) => {
|
|
21
|
+
if (t)
|
|
22
|
+
return "Loading...";
|
|
23
|
+
const n = s(
|
|
24
|
+
c,
|
|
25
|
+
r?.getMetadataByKey
|
|
26
|
+
);
|
|
27
|
+
return n ? s(
|
|
28
|
+
d,
|
|
29
|
+
n.data
|
|
30
|
+
).find((m) => m.value === l)?.label ?? "" : "";
|
|
31
|
+
},
|
|
32
|
+
[r, t]
|
|
33
|
+
), i = v(
|
|
34
|
+
() => ({
|
|
35
|
+
getLabel: a,
|
|
36
|
+
isLoading: t
|
|
37
|
+
}),
|
|
38
|
+
[a, t]
|
|
39
|
+
);
|
|
40
|
+
return /* @__PURE__ */ o.jsx(u.Provider, { value: i, children: e });
|
|
41
|
+
}, G = ({ children: e, url: r, getAuthToken: t, chakraProviderProps: a }) => {
|
|
42
|
+
const i = L({ url: r, getAuthToken: t });
|
|
43
|
+
return /* @__PURE__ */ o.jsx(T, { value: i, children: /* @__PURE__ */ o.jsx(A, { ...a, children: /* @__PURE__ */ o.jsx(C, { children: e }) }) });
|
|
8
44
|
};
|
|
9
45
|
export {
|
|
10
|
-
|
|
46
|
+
G as QuantumLibraryProvider,
|
|
47
|
+
u as UiLabelContext,
|
|
48
|
+
C as UiLabelProvider,
|
|
49
|
+
D as useUiLabelContext
|
|
11
50
|
};
|