quantum-component-library 1.4.48-dev.1 → 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.
@@ -1,3 +1,4 @@
1
1
  export * from './actions';
2
2
  export * from './groups';
3
+ export * from './metadata';
3
4
  export * from './modules';
@@ -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 _=e.graphql(`
703
+ `);const I=e.graphql(`
698
704
  query getLibraryModule($id: ID!) {
699
705
  module(id: $id) {
700
706
  ...LibraryActionModule
701
707
  }
702
708
  }
703
- `),I=e.graphql(`
709
+ `),h=e.graphql(`
704
710
  query getAllModuleCategories {
705
711
  moduleCategories {
706
712
  ...LibraryModuleCategory
707
713
  }
708
714
  }
709
- `),h=e.graphql(`
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 _ = e(`
741
+ const v = e(`
736
742
  query getLibraryModule($id: ID!) {
737
743
  module(id: $id) {
738
744
  ...LibraryActionModule
739
745
  }
740
746
  }
741
- `), v = e(`
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,
@@ -766,11 +766,11 @@ export {
766
766
  r as g,
767
767
  g as h,
768
768
  u as i,
769
- f as j,
769
+ _ as j,
770
770
  c as k,
771
771
  T as l,
772
772
  y as m,
773
773
  p as n,
774
- _ as o,
775
- v as p
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 A, useJointsForLimbIds as T, useJointsForSensorLocations as b, useLimbsForSensorLocations as c, usePartOptionsForJoints as p, usePartOptionsForLimbs as u, usePartOptionsForSensorLocations as P } from "./hooks.js";
4
- import { QuantumLibraryProvider as S } from "./providers.js";
5
- import { getActivityKindFromActivityType as y, getAllAvailableJoints as F, getAllAvailableLimbs as N, getAllAvailablePoseJoints as J, getAllAvailablePoseLimbs as v, getAllAvailableSensorJoints as I, getAngleDirectionNames as D, getAvailableLimbsForLimbIds as f, getAvailablePoseJointsForLimbIds as x, getAvailableSensorJointsForLimbIds as E, getAxis as k, getDefaultAngleSource as M, getDefaultJointRange as O, getDefaultLimbRange as R, getEnabledJointPlanes as U, getEnabledSegmentPlanes as j, getHumanBodyAngle as C, getIsDefaultAngleAllowed as H, getJointAngleDirectionAbbr as W, getJointAngleDirectionName as z, getJointNameWithPlane as B, getJointOrSegmentNameWithPlane as q, getJointPlaneName as K, getNormativeJointRange as V, getParameterAngleDirectionName as w, getParameterDirectionNames as G, getPartName as Q, getPartNameNoSide as X, getPlane as Y, getSegmentAngleDirectionAbbr as Z, getSegmentAngleDirectionName as _, getSegmentNameWithPlane as $, getSegmentXyzName as ee, getTypicalRom as te, getTypicalRomSize as oe, isAxis as ie, isJoint as ae, isLimb as re, isPlane as ne, jointNames as se, jointsUsedByLimbs as me, limbNames as le, limbsRequiredForJoints as ge, mapActivityTypeEnumToLabel as de, mapSessionTypeEnumToLabel as Ae, mkAccelerationPart as Te, mkAngularVelocityPart as be, mkHumanPart as ce, mkJointPart as pe, mkLimbPart as ue, planeOrAxis as Pe } from "./services.js";
6
- import { AngleDataSource as Se, analysisStatBuilder as Le, areThresholdsEmpty as ye, availablePlanes as Fe, axes as Ne, canBeVerticalForce as Je, dimensionName as ve, dimensionToLegacy as Ie, getAnalysisName as De, getAnalysisPartIdNoSide as fe, getJointIdNoSide as xe, getJointIdWithSide as Ee, getLimbIdNoSide as ke, getLimbIdWithSide as Me, getPointSide as Oe, isDeviceEqual as Re, isLimbTrackingFrame as Ue, isSyncError as je, jointAngle as Ce, jointOrLimbHasThreshold as He, jointOrLimbThresholdCount as We, limbAngle as ze, mkUnit as Be, partAndPlaneHasThreshold as qe, partIdName as Ke, partIdToJointLimbId as Ve, partIdToString as we, partKinds as Ge, planes as Qe, sensorLocationName as Xe, sensorLocationToLimbId as Ye, thresholdForPart as Ze, thresholdFragmentsToThresholds as _e, thresholdsToInput as $e, tryMkUnit as et, updateThreshold as tt } from "./types.js";
7
- import { capitalizeAll as it, cn as at, degToRad as rt, getFormatterForParameter as nt, getUnitFormatted as st, getUnitValueFormatted as mt, hourMinSecStrToMs as lt, inchesToMeters as gt, kgToPounds as dt, memo as At, metersToInches as Tt, msToDurationStr as bt, msToHourMinSecStr as ct, msToPrettyStr as pt, msToTimestampStr as ut, parameterToThreshold as Pt, parametersToThresholds as ht, pluralize as St, poundsToKg as Lt, radToDeg as yt, sToTimestampStr as Ft, safelyConvertEnum as Nt, secondsToTimestampStr as Jt, thresholdToParameter as vt, thresholdsToParameters as It } from "./utils.js";
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
- Se as AngleDataSource,
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
- Le as analysisStatBuilder,
20
- ye as areThresholdsEmpty,
21
- Fe as availablePlanes,
22
- Ne as axes,
23
- Je as canBeVerticalForce,
24
- it as capitalizeAll,
25
- at as cn,
26
- rt as degToRad,
27
- ve as dimensionName,
28
- Ie as dimensionToLegacy,
29
- y as getActivityKindFromActivityType,
30
- F as getAllAvailableJoints,
31
- N as getAllAvailableLimbs,
32
- J as getAllAvailablePoseJoints,
33
- v as getAllAvailablePoseLimbs,
34
- I as getAllAvailableSensorJoints,
35
- De as getAnalysisName,
36
- fe as getAnalysisPartIdNoSide,
37
- D as getAngleDirectionNames,
38
- f as getAvailableLimbsForLimbIds,
39
- x as getAvailablePoseJointsForLimbIds,
40
- E as getAvailableSensorJointsForLimbIds,
41
- k as getAxis,
42
- M as getDefaultAngleSource,
43
- O as getDefaultJointRange,
44
- R as getDefaultLimbRange,
45
- U as getEnabledJointPlanes,
46
- j as getEnabledSegmentPlanes,
47
- nt as getFormatterForParameter,
48
- C as getHumanBodyAngle,
49
- H as getIsDefaultAngleAllowed,
50
- W as getJointAngleDirectionAbbr,
51
- z as getJointAngleDirectionName,
52
- xe as getJointIdNoSide,
53
- Ee as getJointIdWithSide,
54
- B as getJointNameWithPlane,
55
- q as getJointOrSegmentNameWithPlane,
56
- K as getJointPlaneName,
57
- ke as getLimbIdNoSide,
58
- Me as getLimbIdWithSide,
59
- V as getNormativeJointRange,
60
- w as getParameterAngleDirectionName,
61
- G as getParameterDirectionNames,
62
- Q as getPartName,
63
- X as getPartNameNoSide,
64
- Y as getPlane,
65
- Oe as getPointSide,
66
- Z as getSegmentAngleDirectionAbbr,
67
- _ as getSegmentAngleDirectionName,
68
- $ as getSegmentNameWithPlane,
69
- ee as getSegmentXyzName,
70
- te as getTypicalRom,
71
- oe as getTypicalRomSize,
72
- st as getUnitFormatted,
73
- mt as getUnitValueFormatted,
74
- lt as hourMinSecStrToMs,
75
- gt as inchesToMeters,
76
- ie as isAxis,
77
- Re as isDeviceEqual,
78
- ae as isJoint,
79
- re as isLimb,
80
- Ue as isLimbTrackingFrame,
81
- ne as isPlane,
82
- je as isSyncError,
83
- Ce as jointAngle,
84
- se as jointNames,
85
- He as jointOrLimbHasThreshold,
86
- We as jointOrLimbThresholdCount,
87
- me as jointsUsedByLimbs,
88
- dt as kgToPounds,
89
- ze as limbAngle,
90
- le as limbNames,
91
- ge as limbsRequiredForJoints,
92
- de as mapActivityTypeEnumToLabel,
93
- Ae as mapSessionTypeEnumToLabel,
94
- At as memo,
95
- Tt as metersToInches,
96
- Te as mkAccelerationPart,
97
- be as mkAngularVelocityPart,
98
- ce as mkHumanPart,
99
- pe as mkJointPart,
100
- ue as mkLimbPart,
101
- Be as mkUnit,
102
- bt as msToDurationStr,
103
- ct as msToHourMinSecStr,
104
- pt as msToPrettyStr,
105
- ut as msToTimestampStr,
106
- Pt as parameterToThreshold,
107
- ht as parametersToThresholds,
108
- qe as partAndPlaneHasThreshold,
109
- Ke as partIdName,
110
- Ve as partIdToJointLimbId,
111
- we as partIdToString,
112
- Ge as partKinds,
113
- Pe as planeOrAxis,
114
- Qe as planes,
115
- St as pluralize,
116
- Lt as poundsToKg,
117
- yt as radToDeg,
118
- Ft as sToTimestampStr,
119
- Nt as safelyConvertEnum,
120
- Jt as secondsToTimestampStr,
121
- Xe as sensorLocationName,
122
- Ye as sensorLocationToLimbId,
123
- Ze as thresholdForPart,
124
- _e as thresholdFragmentsToThresholds,
125
- vt as thresholdToParameter,
126
- $e as thresholdsToInput,
127
- It as thresholdsToParameters,
128
- et as tryMkUnit,
129
- tt as updateThreshold,
130
- A as useGraphqlClient,
131
- T as useJointsForLimbIds,
132
- b as useJointsForSensorLocations,
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
  };
@@ -1 +1,2 @@
1
1
  export * from './quantum-library-provider';
2
+ export * from './ui-label-provider';
@@ -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;
@@ -0,0 +1,2 @@
1
+ export * from './context';
2
+ export * from './provider';
@@ -0,0 +1,2 @@
1
+ import { UiLabelProviderProps } from './context';
2
+ export declare const UiLabelProvider: ({ children }: UiLabelProviderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./react-jsx-runtime-vendor-Dszzpdy0.cjs"),s=require("@chakra-ui/react"),u=require("./graphql-vendor-CL0XsjHb.cjs"),a=require("./hooks.cjs"),c=({children:e,url:t,getAuthToken:n,chakraProviderProps:o})=>{const i=a.useGraphqlClient({url:t,getAuthToken:n});return r.jsxRuntimeExports.jsx(u.f,{value:i,children:r.jsxRuntimeExports.jsx(s.ChakraProvider,{...o,children:e})})};exports.QuantumLibraryProvider=c;
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 r } from "./react-jsx-runtime-vendor-OVHDjVDe.js";
2
- import { ChakraProvider as s } from "@chakra-ui/react";
3
- import { d as a } from "./graphql-vendor-BWnD0b-j.js";
4
- import { useGraphqlClient as n } from "./hooks.js";
5
- const x = ({ children: o, url: t, getAuthToken: i, chakraProviderProps: e }) => {
6
- const m = n({ url: t, getAuthToken: i });
7
- return /* @__PURE__ */ r.jsx(a, { value: m, children: /* @__PURE__ */ r.jsx(s, { ...e, children: o }) });
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
- x as QuantumLibraryProvider
46
+ G as QuantumLibraryProvider,
47
+ u as UiLabelContext,
48
+ C as UiLabelProvider,
49
+ D as useUiLabelContext
11
50
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quantum-component-library",
3
- "version": "1.4.48-dev.1",
3
+ "version": "1.4.48-dev.2",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.cjs",