quantum-component-library 1.4.48 → 1.4.50-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.cjs +1 -1
- package/dist/components.js +1645 -1355
- package/dist/{dnd-core-vendor-gqRN0Czq.cjs → dnd-core-vendor-BtUZf9Ev.cjs} +1 -1
- package/dist/{dnd-core-vendor-CEbjUoFs.js → dnd-core-vendor-DLG1XK6O.js} +2 -2
- package/dist/generated/gql.d.ts +12 -2
- package/dist/generated/graphql.d.ts +69 -10
- package/dist/generated-graphql.cjs +1 -1
- package/dist/generated-graphql.js +60 -57
- package/dist/generated.cjs +1 -1
- package/dist/generated.js +45 -43
- package/dist/graphql/fragments/reports.d.ts +2 -0
- package/dist/{graphql-_vGi4u4K.js → graphql-BIKiRJ8I.js} +35 -16
- package/dist/{graphql-Ce2MNCsk.cjs → graphql-BhVmuiCG.cjs} +33 -16
- package/dist/{graphql-vendor-AFHxLsy8.cjs → graphql-vendor-BYC3nhzS.cjs} +1 -1
- package/dist/{graphql-vendor-hJezYUeG.js → graphql-vendor-N74bYJtL.js} +1 -1
- package/dist/hooks.cjs +1 -1
- package/dist/hooks.js +126 -74
- package/dist/index.cjs +1 -1
- package/dist/index.js +133 -131
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/use-all-part-parameters.d.ts +8 -0
- package/dist/lib/services/human.d.ts +2 -1
- package/dist/lib/types/parameters.d.ts +2 -0
- package/dist/{lodash-vendor-CF0pV_0E.cjs → lodash-vendor-C3e6C_PJ.cjs} +1 -1
- package/dist/{lodash-vendor-apNdTTav.js → lodash-vendor-l9HldpVa.js} +1 -1
- package/dist/{other-D9ROT7p0.js → other-DE6uy3y4.js} +3 -3
- package/dist/{other-DyoApG-9.cjs → other-q0es350N.cjs} +1 -1
- package/dist/providers.cjs +1 -1
- package/dist/providers.js +1 -1
- package/dist/quantum-component-library.css +1 -1
- package/dist/{react-dnd-vendor-BCrg2QCX.js → react-dnd-vendor-BDOGawvX.js} +2 -2
- package/dist/{react-dnd-vendor-PwwXhPmK.cjs → react-dnd-vendor-BGRUqrp9.cjs} +1 -1
- package/dist/{react-select-vendor-BxbsY5Z-.js → react-select-vendor-C3wpaSL1.js} +1 -1
- package/dist/{react-select-vendor-BeWvSe2q.cjs → react-select-vendor-CZ69mhgt.cjs} +1 -1
- package/dist/services-human-CGLf7B6Q.cjs +1 -0
- package/dist/{services-human-B98qxeuS.js → services-human-CI19qLdG.js} +165 -157
- package/dist/services.cjs +1 -1
- package/dist/services.js +29 -28
- package/dist/types.cjs +1 -1
- package/dist/types.js +53 -53
- package/dist/{utils-conversion-CWypeWsT.cjs → utils-conversion-sLq5wEdq.cjs} +1 -1
- package/dist/{utils-conversion-ChFbq8I2.js → utils-conversion-zKwO4dYF.js} +1 -1
- package/dist/{utils-parameters-BBFuBK2B.js → utils-parameters-DkefNhWo.js} +4 -4
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +2 -2
- package/dist/{vendor-BOD7IxCS.js → vendor--D-cya0B.js} +1 -1
- package/dist/{vendor-IPtJZCbx.cjs → vendor-jpI6KZW2.cjs} +1 -1
- package/package.json +1 -1
- package/dist/services-human-CnvSTmoF.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const M=require("./vendor-IPtJZCbx.cjs"),s=require("./react-dnd-vendor-PwwXhPmK.cjs");function j(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function H(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function N(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function L(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function k(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,c=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,c,l);const f=X(r,c);if(f==null){t.dispatch(V);return}let D=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");B(a),D=a(f)}t.dispatch(_(o,D));const b=l.getSource(f).beginDrag(c,f);if(b==null)return;F(b),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:b,sourceId:f,clientOffset:o||null,sourceClientOffset:D||null,isSourcePublic:!!i}}}}function q(t,e,r){s.invariant(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s.invariant(r.getSource(n),"Expected sourceIds to be registered.")})}function B(t){s.invariant(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function F(t){s.invariant(U(t),"Item must be an object.")}function X(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function W(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function z(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){W(t,i,r[i])})}return t}function J(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Q(n),K(n).forEach((a,c)=>{const l=Y(a,c,i,n),f={type:y,payload:{dropResult:z({},r,l)}};t.dispatch(f)})}}function Q(t){s.invariant(t.isDragging(),"Cannot call drop while not dragging."),s.invariant(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Y(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return Z(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function Z(t){s.invariant(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function K(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function ee(t){return function(){const r=t.getMonitor(),n=t.getRegistry();te(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function te(t){s.invariant(t.isDragging(),"Cannot call endDrag while not dragging.")}function v(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function re(t){return function(r,{clientOffset:n}={}){ne(r);const i=r.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return oe(i,a,c),ie(i,o,a),se(i,o,a),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ne(t){s.invariant(Array.isArray(t),"Expected targetIds to be an array.")}function ie(t,e,r){s.invariant(e.isDragging(),"Cannot call hover while not dragging."),s.invariant(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s.invariant(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s.invariant(o,"Expected targetIds to be registered.")}}function oe(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);v(o,r)||t.splice(n,1)}}function se(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ae(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ce(t){return{beginDrag:k(t),publishDragSource:ae(t),hover:re(t),drop:J(t),endDrag:ee(t)}}class ue{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&r(c)}}const i=ce(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=n(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function fe(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function le(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(fe(e,n),r)}function de(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],m=[];g.__IS_NONE__=!0;m.__IS_ALL__=!0;function ge(t,e){return t===g?!1:t===m||typeof e>"u"?!0:L(e,t).length>0}class pe{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s.invariant(typeof e=="function","listener must be a function."),s.invariant(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!ge(a.dirtyHandlerIds,n)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s.invariant(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s.invariant(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s.invariant(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return v(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s.invariant(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!v(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return n?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return le(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return de(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const C="dnd-core/ADD_SOURCE",R="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function he(t){return{type:C,payload:{sourceId:t}}}function ye(t){return{type:R,payload:{targetId:t}}}function Se(t){return{type:x,payload:{sourceId:t}}}function Oe(t){return{type:O,payload:{targetId:t}}}function De(t){s.invariant(typeof t.canDrag=="function","Expected canDrag to be a function."),s.invariant(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s.invariant(typeof t.endDrag=="function","Expected endDrag to be a function.")}function be(t){s.invariant(typeof t.canDrop=="function","Expected canDrop to be a function."),s.invariant(typeof t.hover=="function","Expected hover to be a function."),s.invariant(typeof t.drop=="function","Expected beginDrag to be a function.")}function T(t,e){if(e&&Array.isArray(t)){t.forEach(r=>T(r,!1));return}s.invariant(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var u;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(u||(u={}));let ve=0;function Te(){return ve++}function Ee(t){const e=Te().toString();switch(t){case u.SOURCE:return`S${e}`;case u.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return u.SOURCE;case"T":return u.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ie{addSource(e,r){T(e),De(r);const n=this.addHandler(u.SOURCE,e,r);return this.store.dispatch(he(n)),n}addTarget(e,r){T(e,!0),be(r);const n=this.addHandler(u.TARGET,e,r);return this.store.dispatch(ye(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===u.SOURCE}isTargetId(e){return w(e)===u.TARGET}removeSource(e){s.invariant(this.getSource(e),"Expected an existing source."),this.store.dispatch(Se(e)),s.asap(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s.invariant(this.getTarget(e),"Expected an existing target."),this.store.dispatch(Oe(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s.invariant(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s.invariant(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ee(e);return this.types.set(i,r),e===u.SOURCE?this.dragSources.set(i,n):e===u.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const me=(t,e)=>t===e;function Ce(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Re(t,e,r=me){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function xe(t=g,e){switch(e.type){case h:break;case C:case R:case O:case x:return g;case p:case I:case S:case y:default:return m}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=N(r,n);if(!(i.length>0||!Re(r,n)))return g;const a=n[n.length-1],c=r[r.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function _e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function we(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){_e(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Pe(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return Ce(t.clientOffset,r.clientOffset)?t:we({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ae(t,i,r[i])})}return t}const Ue={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ge(t=Ue,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:H(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function $e(t=0,e){switch(e.type){case C:case R:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function je(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){je(t,i,r[i])})}return t}function Ne(t={},e){return{dirtyHandlerIds:xe(t.dirtyHandlerIds,{type:e.type,payload:He({},e.payload,{prevTargetIds:j(t,"dragOperation.targetIds",[])})}),dragOffset:Pe(t.dragOffset,e),refCount:$e(t.refCount,e),dragOperation:Ge(t.dragOperation,e),stateId:Me(t.stateId)}}function Le(t,e=void 0,r={},n=!1){const i=Ve(n),o=new pe(i,new Ie(i)),a=new ue(i,o),c=t(a,e,r);return a.receiveBackend(c),a}function Ve(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return M.createStore(Ne,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}exports.createDragDropManager=Le;
|
|
1
|
+
"use strict";const M=require("./vendor-jpI6KZW2.cjs"),s=require("./react-dnd-vendor-BGRUqrp9.cjs");function j(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function H(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function N(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function L(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function k(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,c=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,c,l);const f=X(r,c);if(f==null){t.dispatch(V);return}let D=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");B(a),D=a(f)}t.dispatch(_(o,D));const b=l.getSource(f).beginDrag(c,f);if(b==null)return;F(b),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:b,sourceId:f,clientOffset:o||null,sourceClientOffset:D||null,isSourcePublic:!!i}}}}function q(t,e,r){s.invariant(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s.invariant(r.getSource(n),"Expected sourceIds to be registered.")})}function B(t){s.invariant(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function F(t){s.invariant(U(t),"Item must be an object.")}function X(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function W(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function z(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){W(t,i,r[i])})}return t}function J(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Q(n),K(n).forEach((a,c)=>{const l=Y(a,c,i,n),f={type:y,payload:{dropResult:z({},r,l)}};t.dispatch(f)})}}function Q(t){s.invariant(t.isDragging(),"Cannot call drop while not dragging."),s.invariant(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Y(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return Z(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function Z(t){s.invariant(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function K(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function ee(t){return function(){const r=t.getMonitor(),n=t.getRegistry();te(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function te(t){s.invariant(t.isDragging(),"Cannot call endDrag while not dragging.")}function v(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function re(t){return function(r,{clientOffset:n}={}){ne(r);const i=r.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return oe(i,a,c),ie(i,o,a),se(i,o,a),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ne(t){s.invariant(Array.isArray(t),"Expected targetIds to be an array.")}function ie(t,e,r){s.invariant(e.isDragging(),"Cannot call hover while not dragging."),s.invariant(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s.invariant(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s.invariant(o,"Expected targetIds to be registered.")}}function oe(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);v(o,r)||t.splice(n,1)}}function se(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ae(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ce(t){return{beginDrag:k(t),publishDragSource:ae(t),hover:re(t),drop:J(t),endDrag:ee(t)}}class ue{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&r(c)}}const i=ce(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=n(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function fe(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function le(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(fe(e,n),r)}function de(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],m=[];g.__IS_NONE__=!0;m.__IS_ALL__=!0;function ge(t,e){return t===g?!1:t===m||typeof e>"u"?!0:L(e,t).length>0}class pe{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s.invariant(typeof e=="function","listener must be a function."),s.invariant(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!ge(a.dirtyHandlerIds,n)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s.invariant(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s.invariant(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s.invariant(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return v(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s.invariant(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!v(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return n?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return le(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return de(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const C="dnd-core/ADD_SOURCE",R="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function he(t){return{type:C,payload:{sourceId:t}}}function ye(t){return{type:R,payload:{targetId:t}}}function Se(t){return{type:x,payload:{sourceId:t}}}function Oe(t){return{type:O,payload:{targetId:t}}}function De(t){s.invariant(typeof t.canDrag=="function","Expected canDrag to be a function."),s.invariant(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s.invariant(typeof t.endDrag=="function","Expected endDrag to be a function.")}function be(t){s.invariant(typeof t.canDrop=="function","Expected canDrop to be a function."),s.invariant(typeof t.hover=="function","Expected hover to be a function."),s.invariant(typeof t.drop=="function","Expected beginDrag to be a function.")}function T(t,e){if(e&&Array.isArray(t)){t.forEach(r=>T(r,!1));return}s.invariant(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var u;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(u||(u={}));let ve=0;function Te(){return ve++}function Ee(t){const e=Te().toString();switch(t){case u.SOURCE:return`S${e}`;case u.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return u.SOURCE;case"T":return u.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ie{addSource(e,r){T(e),De(r);const n=this.addHandler(u.SOURCE,e,r);return this.store.dispatch(he(n)),n}addTarget(e,r){T(e,!0),be(r);const n=this.addHandler(u.TARGET,e,r);return this.store.dispatch(ye(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===u.SOURCE}isTargetId(e){return w(e)===u.TARGET}removeSource(e){s.invariant(this.getSource(e),"Expected an existing source."),this.store.dispatch(Se(e)),s.asap(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s.invariant(this.getTarget(e),"Expected an existing target."),this.store.dispatch(Oe(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s.invariant(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s.invariant(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ee(e);return this.types.set(i,r),e===u.SOURCE?this.dragSources.set(i,n):e===u.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const me=(t,e)=>t===e;function Ce(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Re(t,e,r=me){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function xe(t=g,e){switch(e.type){case h:break;case C:case R:case O:case x:return g;case p:case I:case S:case y:default:return m}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=N(r,n);if(!(i.length>0||!Re(r,n)))return g;const a=n[n.length-1],c=r[r.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function _e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function we(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){_e(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Pe(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return Ce(t.clientOffset,r.clientOffset)?t:we({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ae(t,i,r[i])})}return t}const Ue={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ge(t=Ue,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:H(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function $e(t=0,e){switch(e.type){case C:case R:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function je(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){je(t,i,r[i])})}return t}function Ne(t={},e){return{dirtyHandlerIds:xe(t.dirtyHandlerIds,{type:e.type,payload:He({},e.payload,{prevTargetIds:j(t,"dragOperation.targetIds",[])})}),dragOffset:Pe(t.dragOffset,e),refCount:$e(t.refCount,e),dragOperation:Ge(t.dragOperation,e),stateId:Me(t.stateId)}}function Le(t,e=void 0,r={},n=!1){const i=Ve(n),o=new pe(i,new Ie(i)),a=new ue(i,o),c=t(a,e,r);return a.receiveBackend(c),a}function Ve(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return M.createStore(Ne,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}exports.createDragDropManager=Le;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as j } from "./vendor-
|
|
2
|
-
import { i as s, b as M } from "./react-dnd-vendor-
|
|
1
|
+
import { c as j } from "./vendor--D-cya0B.js";
|
|
2
|
+
import { i as s, b as M } from "./react-dnd-vendor-BDOGawvX.js";
|
|
3
3
|
function H(t, e, r) {
|
|
4
4
|
return e.split(".").reduce(
|
|
5
5
|
(n, i) => n && n[i] ? n[i] : r || null,
|
package/dist/generated/gql.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import * as types from './graphql';
|
|
|
12
12
|
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
|
|
13
13
|
*/
|
|
14
14
|
type Documents = {
|
|
15
|
-
"\n fragment AssessmentAction on Action {\n id\n name\n activityKind\n activityType\n sessionType\n cameraPlacement\n videoLink\n description\n instructionsPointOfInterest\n instructionsMovementReport\n laterality\n thresholds {\n
|
|
15
|
+
"\n fragment AssessmentAction on Action {\n id\n name\n activityKind\n activityType\n sessionType\n cameraPlacement\n videoLink\n description\n instructionsPointOfInterest\n instructionsMovementReport\n laterality\n thresholds {\n ...Threshold\n }\n sensorLocations\n useCases {\n id\n name\n }\n categories {\n ...LibraryModuleCategory\n }\n quantumOwned\n metadataGroups {\n ...MetadataGroup\n }\n reports {\n ...Report\n }\n }\n": typeof types.AssessmentActionFragmentDoc;
|
|
16
16
|
"\n fragment AnalysisThreshold on TestAnalysisThreshold {\n testAnalysisId\n id\n kind\n min\n max\n partKind\n partId\n partDimension\n }\n": typeof types.AnalysisThresholdFragmentDoc;
|
|
17
17
|
"\n fragment AnalysisMetric on AnalysisMetric {\n id\n createdAt\n key {\n id\n name\n }\n analysis {\n id\n startedAt\n }\n name\n description\n discriminator\n threshold {\n id\n testAnalysisId\n kind\n min\n max\n partKind\n partId\n partDimension\n }\n metric {\n ... on DiscreteMetric {\n __typename\n ...AnalysisDiscreteMetric\n }\n ... on ComparativeMetric {\n __typename\n ...AnalysisComparativeMetric\n }\n ... on KeypointsMetric {\n __typename\n ...AnalysisKeypointsMetric\n }\n ... on TableMetric {\n __typename\n ...AnalysisTableMetric\n }\n ... on ImageMetric {\n __typename\n ...AnalysisImageMetric\n }\n }\n }\n": typeof types.AnalysisMetricFragmentDoc;
|
|
18
18
|
"\n fragment HistoricalAnalysisMetric on AnalysisMetric {\n id\n createdAt\n key {\n id\n name\n }\n analysis {\n id\n startedAt\n }\n name\n description\n metric {\n ... on DiscreteMetric {\n __typename\n ...AnalysisDiscreteMetric\n }\n ... on ComparativeMetric {\n __typename\n ...AnalysisComparativeMetric\n }\n ... on KeypointsMetric {\n __typename\n ...AnalysisKeypointsMetric\n }\n ... on TableMetric {\n __typename\n ...AnalysisTableMetric\n }\n ... on ImageMetric {\n __typename\n ...AnalysisImageMetric\n }\n }\n }\n": typeof types.HistoricalAnalysisMetricFragmentDoc;
|
|
@@ -42,6 +42,8 @@ type Documents = {
|
|
|
42
42
|
"\n fragment TestParameterScoreOverview on TestAverageParameterScore {\n parameter {\n ...ReviewParameter\n }\n averageScore\n trialCount\n variance\n stdDev\n averagePercentInside\n variancePercentInside\n stdDevPercentInside\n }\n": typeof types.TestParameterScoreOverviewFragmentDoc;
|
|
43
43
|
"\n fragment TestReportOverview on TestReportUnion {\n ... on MovementCoordinationReport {\n __typename\n id\n report {\n id\n createdAt\n name\n }\n averageParameterScores {\n ...TestParameterScoreOverview\n }\n }\n\n ... on GeneralActivityReport {\n __typename\n id\n report {\n id\n createdAt\n name\n }\n averageParameterScores {\n ...TestParameterScoreOverview\n }\n }\n\n ... on RangeReport {\n __typename\n id\n report {\n id\n createdAt\n name\n }\n averageParameterScores {\n ...TestParameterScoreOverview\n }\n }\n\n ... on StabilityBalanceReport {\n __typename\n id\n report {\n id\n createdAt\n name\n }\n averageParameterScores {\n ...TestParameterScoreOverview\n }\n }\n }\n": typeof types.TestReportOverviewFragmentDoc;
|
|
44
44
|
"\n fragment TestWithParameterScores on Test {\n id\n name\n createdAt\n updatedAt\n startedAt\n endedAt\n timezone\n sessionId\n kindId\n comment\n file {\n ...TestFile\n }\n info {\n athleteWeight\n }\n session {\n id\n name\n }\n action {\n id\n name\n description\n instructionsPointOfInterest\n instructionsMovementReport\n laterality\n activityKind\n thresholds {\n id\n kind\n min\n max\n partKind\n partId\n partDimension\n }\n sensorLocations\n useCases {\n id\n name\n }\n }\n reports {\n ...TestReportOverview\n }\n analysis {\n ...ProfileSessionTestAnalysis\n }\n }\n": typeof types.TestWithParameterScoresFragmentDoc;
|
|
45
|
+
"\n fragment Threshold on Threshold {\n id\n kind\n min\n max\n partKind\n partId\n partDimension\n }\n": typeof types.ThresholdFragmentDoc;
|
|
46
|
+
"\n fragment Report on Report {\n id\n sensorLocations\n reportKind\n instructions\n thresholds {\n ...Threshold\n }\n }\n": typeof types.ReportFragmentDoc;
|
|
45
47
|
"\n fragment ProfileSessionTestAnalysis on TestAnalysisSummary {\n id\n name\n classification\n kind\n createdAt\n updatedAt\n startedAt\n # New actions don't have classifications\n action {\n id\n name\n }\n actionSide\n hasBeenGenerated\n }\n": typeof types.ProfileSessionTestAnalysisFragmentDoc;
|
|
46
48
|
"\n fragment ProfileSessionTest on Test {\n id\n name\n createdAt\n updatedAt\n startedAt\n endedAt\n timezone\n sessionId\n kindId\n comment\n file {\n ...TestFile\n }\n info {\n athleteWeight\n }\n analysis {\n ...ProfileSessionTestAnalysis\n }\n action {\n id\n name\n activityKind\n description\n instructionsPointOfInterest\n instructionsMovementReport\n laterality\n thresholds {\n id\n kind\n min\n max\n partKind\n partId\n partDimension\n }\n sensorLocations\n useCases {\n id\n name\n }\n }\n }\n": typeof types.ProfileSessionTestFragmentDoc;
|
|
47
49
|
"\n fragment ProfileSession on Session {\n id\n name\n createdAt\n updatedAt\n createdById\n createdForId\n startedAt\n tests {\n ...ProfileSessionTest\n }\n }\n": typeof types.ProfileSessionFragmentDoc;
|
|
@@ -82,7 +84,7 @@ export declare function graphql(source: string): unknown;
|
|
|
82
84
|
/**
|
|
83
85
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
84
86
|
*/
|
|
85
|
-
export declare function graphql(source: "\n fragment AssessmentAction on Action {\n id\n name\n activityKind\n activityType\n sessionType\n cameraPlacement\n videoLink\n description\n instructionsPointOfInterest\n instructionsMovementReport\n laterality\n thresholds {\n
|
|
87
|
+
export declare function graphql(source: "\n fragment AssessmentAction on Action {\n id\n name\n activityKind\n activityType\n sessionType\n cameraPlacement\n videoLink\n description\n instructionsPointOfInterest\n instructionsMovementReport\n laterality\n thresholds {\n ...Threshold\n }\n sensorLocations\n useCases {\n id\n name\n }\n categories {\n ...LibraryModuleCategory\n }\n quantumOwned\n metadataGroups {\n ...MetadataGroup\n }\n reports {\n ...Report\n }\n }\n"): (typeof documents)["\n fragment AssessmentAction on Action {\n id\n name\n activityKind\n activityType\n sessionType\n cameraPlacement\n videoLink\n description\n instructionsPointOfInterest\n instructionsMovementReport\n laterality\n thresholds {\n ...Threshold\n }\n sensorLocations\n useCases {\n id\n name\n }\n categories {\n ...LibraryModuleCategory\n }\n quantumOwned\n metadataGroups {\n ...MetadataGroup\n }\n reports {\n ...Report\n }\n }\n"];
|
|
86
88
|
/**
|
|
87
89
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
88
90
|
*/
|
|
@@ -199,6 +201,14 @@ export declare function graphql(source: "\n fragment TestReportOverview on Test
|
|
|
199
201
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
200
202
|
*/
|
|
201
203
|
export declare function graphql(source: "\n fragment TestWithParameterScores on Test {\n id\n name\n createdAt\n updatedAt\n startedAt\n endedAt\n timezone\n sessionId\n kindId\n comment\n file {\n ...TestFile\n }\n info {\n athleteWeight\n }\n session {\n id\n name\n }\n action {\n id\n name\n description\n instructionsPointOfInterest\n instructionsMovementReport\n laterality\n activityKind\n thresholds {\n id\n kind\n min\n max\n partKind\n partId\n partDimension\n }\n sensorLocations\n useCases {\n id\n name\n }\n }\n reports {\n ...TestReportOverview\n }\n analysis {\n ...ProfileSessionTestAnalysis\n }\n }\n"): (typeof documents)["\n fragment TestWithParameterScores on Test {\n id\n name\n createdAt\n updatedAt\n startedAt\n endedAt\n timezone\n sessionId\n kindId\n comment\n file {\n ...TestFile\n }\n info {\n athleteWeight\n }\n session {\n id\n name\n }\n action {\n id\n name\n description\n instructionsPointOfInterest\n instructionsMovementReport\n laterality\n activityKind\n thresholds {\n id\n kind\n min\n max\n partKind\n partId\n partDimension\n }\n sensorLocations\n useCases {\n id\n name\n }\n }\n reports {\n ...TestReportOverview\n }\n analysis {\n ...ProfileSessionTestAnalysis\n }\n }\n"];
|
|
204
|
+
/**
|
|
205
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
206
|
+
*/
|
|
207
|
+
export declare function graphql(source: "\n fragment Threshold on Threshold {\n id\n kind\n min\n max\n partKind\n partId\n partDimension\n }\n"): (typeof documents)["\n fragment Threshold on Threshold {\n id\n kind\n min\n max\n partKind\n partId\n partDimension\n }\n"];
|
|
208
|
+
/**
|
|
209
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
210
|
+
*/
|
|
211
|
+
export declare function graphql(source: "\n fragment Report on Report {\n id\n sensorLocations\n reportKind\n instructions\n thresholds {\n ...Threshold\n }\n }\n"): (typeof documents)["\n fragment Report on Report {\n id\n sensorLocations\n reportKind\n instructions\n thresholds {\n ...Threshold\n }\n }\n"];
|
|
202
212
|
/**
|
|
203
213
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
204
214
|
*/
|
|
@@ -76,6 +76,7 @@ export type Action = {
|
|
|
76
76
|
metadataGroups: Array<MetadataGroup>;
|
|
77
77
|
name: Scalars['String']['output'];
|
|
78
78
|
quantumOwned?: Maybe<Scalars['Boolean']['output']>;
|
|
79
|
+
reports: Array<Report>;
|
|
79
80
|
sensorLocations: Array<SensorLocation>;
|
|
80
81
|
sessionType: Array<SessionType>;
|
|
81
82
|
thresholds: Array<Threshold>;
|
|
@@ -238,6 +239,7 @@ export type CreateActionInput = {
|
|
|
238
239
|
metadataItemIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
239
240
|
name: Scalars['String']['input'];
|
|
240
241
|
quantumOwned?: InputMaybe<Scalars['Boolean']['input']>;
|
|
242
|
+
reports?: InputMaybe<Array<ReportInput>>;
|
|
241
243
|
sensorLocations?: InputMaybe<Array<SensorLocation>>;
|
|
242
244
|
sessionType: Array<SessionType>;
|
|
243
245
|
thresholds: Array<ThresholdInput>;
|
|
@@ -484,7 +486,6 @@ export type MovementCoordinationReport = {
|
|
|
484
486
|
export type Mutation = {
|
|
485
487
|
__typename?: 'Mutation';
|
|
486
488
|
addActionToModule: ActionModule;
|
|
487
|
-
/** @deprecated Use archiveUser instead */
|
|
488
489
|
archiveUser: Scalars['Boolean']['output'];
|
|
489
490
|
changePassword: Scalars['Boolean']['output'];
|
|
490
491
|
convertActionToQuantumOwned: Action;
|
|
@@ -893,6 +894,28 @@ export type ReplaceTrialParameterInput = {
|
|
|
893
894
|
id?: InputMaybe<Scalars['ID']['input']>;
|
|
894
895
|
input: CreateTrialParameterInput;
|
|
895
896
|
};
|
|
897
|
+
export type Report = {
|
|
898
|
+
__typename?: 'Report';
|
|
899
|
+
id: Scalars['ID']['output'];
|
|
900
|
+
instructions?: Maybe<Scalars['String']['output']>;
|
|
901
|
+
reportKind: ReportKind;
|
|
902
|
+
sensorLocations: Array<SensorLocation>;
|
|
903
|
+
thresholds: Array<Threshold>;
|
|
904
|
+
};
|
|
905
|
+
export type ReportInput = {
|
|
906
|
+
id?: InputMaybe<Scalars['ID']['input']>;
|
|
907
|
+
instructions?: InputMaybe<Scalars['String']['input']>;
|
|
908
|
+
reportKind: ReportKind;
|
|
909
|
+
sensorLocations: Array<SensorLocation>;
|
|
910
|
+
thresholds: Array<ThresholdInput>;
|
|
911
|
+
};
|
|
912
|
+
export declare enum ReportKind {
|
|
913
|
+
GeneralActivity = "GeneralActivity",
|
|
914
|
+
MovementCoordination = "MovementCoordination",
|
|
915
|
+
PointOfInterest = "PointOfInterest",
|
|
916
|
+
Range = "Range",
|
|
917
|
+
StabilityBalance = "StabilityBalance"
|
|
918
|
+
}
|
|
896
919
|
export declare enum SensorLocation {
|
|
897
920
|
CenterBack = "CenterBack",
|
|
898
921
|
Head = "Head",
|
|
@@ -1127,6 +1150,7 @@ export type ThresholdFilter = {
|
|
|
1127
1150
|
partKind?: InputMaybe<Scalars['String']['input']>;
|
|
1128
1151
|
};
|
|
1129
1152
|
export type ThresholdInput = {
|
|
1153
|
+
id?: InputMaybe<Scalars['ID']['input']>;
|
|
1130
1154
|
kind: ThresholdKind;
|
|
1131
1155
|
max: Scalars['Float']['input'];
|
|
1132
1156
|
min: Scalars['Float']['input'];
|
|
@@ -1220,6 +1244,7 @@ export type UpdateActionInput = {
|
|
|
1220
1244
|
metadataItemIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
1221
1245
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
1222
1246
|
quantumOwned?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1247
|
+
reports?: InputMaybe<Array<ReportInput>>;
|
|
1223
1248
|
sensorLocations?: InputMaybe<Array<SensorLocation>>;
|
|
1224
1249
|
sessionType: Array<SessionType>;
|
|
1225
1250
|
thresholds?: InputMaybe<Array<ThresholdInput>>;
|
|
@@ -1321,16 +1346,13 @@ export type AssessmentActionFragment = {
|
|
|
1321
1346
|
laterality: ActionLaterality;
|
|
1322
1347
|
sensorLocations: Array<SensorLocation>;
|
|
1323
1348
|
quantumOwned?: boolean | null;
|
|
1324
|
-
thresholds: Array<{
|
|
1349
|
+
thresholds: Array<({
|
|
1325
1350
|
__typename?: 'Threshold';
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
partId: string;
|
|
1332
|
-
partDimension: string;
|
|
1333
|
-
}>;
|
|
1351
|
+
} & {
|
|
1352
|
+
' $fragmentRefs'?: {
|
|
1353
|
+
'ThresholdFragment': ThresholdFragment;
|
|
1354
|
+
};
|
|
1355
|
+
})>;
|
|
1334
1356
|
useCases: Array<{
|
|
1335
1357
|
__typename?: 'UseCase';
|
|
1336
1358
|
id: string;
|
|
@@ -1350,6 +1372,13 @@ export type AssessmentActionFragment = {
|
|
|
1350
1372
|
'MetadataGroupFragment': MetadataGroupFragment;
|
|
1351
1373
|
};
|
|
1352
1374
|
})>;
|
|
1375
|
+
reports: Array<({
|
|
1376
|
+
__typename?: 'Report';
|
|
1377
|
+
} & {
|
|
1378
|
+
' $fragmentRefs'?: {
|
|
1379
|
+
'ReportFragment': ReportFragment;
|
|
1380
|
+
};
|
|
1381
|
+
})>;
|
|
1353
1382
|
} & {
|
|
1354
1383
|
' $fragmentName'?: 'AssessmentActionFragment';
|
|
1355
1384
|
};
|
|
@@ -2049,6 +2078,34 @@ export type TestWithParameterScoresFragment = {
|
|
|
2049
2078
|
} & {
|
|
2050
2079
|
' $fragmentName'?: 'TestWithParameterScoresFragment';
|
|
2051
2080
|
};
|
|
2081
|
+
export type ThresholdFragment = {
|
|
2082
|
+
__typename?: 'Threshold';
|
|
2083
|
+
id: string;
|
|
2084
|
+
kind: ThresholdKind;
|
|
2085
|
+
min: number;
|
|
2086
|
+
max: number;
|
|
2087
|
+
partKind: string;
|
|
2088
|
+
partId: string;
|
|
2089
|
+
partDimension: string;
|
|
2090
|
+
} & {
|
|
2091
|
+
' $fragmentName'?: 'ThresholdFragment';
|
|
2092
|
+
};
|
|
2093
|
+
export type ReportFragment = {
|
|
2094
|
+
__typename?: 'Report';
|
|
2095
|
+
id: string;
|
|
2096
|
+
sensorLocations: Array<SensorLocation>;
|
|
2097
|
+
reportKind: ReportKind;
|
|
2098
|
+
instructions?: string | null;
|
|
2099
|
+
thresholds: Array<({
|
|
2100
|
+
__typename?: 'Threshold';
|
|
2101
|
+
} & {
|
|
2102
|
+
' $fragmentRefs'?: {
|
|
2103
|
+
'ThresholdFragment': ThresholdFragment;
|
|
2104
|
+
};
|
|
2105
|
+
})>;
|
|
2106
|
+
} & {
|
|
2107
|
+
' $fragmentName'?: 'ReportFragment';
|
|
2108
|
+
};
|
|
2052
2109
|
export type ProfileSessionTestAnalysisFragment = {
|
|
2053
2110
|
__typename?: 'TestAnalysisSummary';
|
|
2054
2111
|
id: string;
|
|
@@ -2407,9 +2464,11 @@ export declare const FullTestAnalysisFragmentDoc: DocumentNode<FullTestAnalysisF
|
|
|
2407
2464
|
export declare const BasicTestAnalysisFragmentDoc: DocumentNode<BasicTestAnalysisFragment, unknown>;
|
|
2408
2465
|
export declare const ReviewTestReportFragmentDoc: DocumentNode<ReviewTestReportFragment, unknown>;
|
|
2409
2466
|
export declare const UserGroupFragmentDoc: DocumentNode<UserGroupFragment, unknown>;
|
|
2467
|
+
export declare const ThresholdFragmentDoc: DocumentNode<ThresholdFragment, unknown>;
|
|
2410
2468
|
export declare const LibraryModuleCategoryFragmentDoc: DocumentNode<LibraryModuleCategoryFragment, unknown>;
|
|
2411
2469
|
export declare const MetadataItemFragmentDoc: DocumentNode<MetadataItemFragment, unknown>;
|
|
2412
2470
|
export declare const MetadataGroupFragmentDoc: DocumentNode<MetadataGroupFragment, unknown>;
|
|
2471
|
+
export declare const ReportFragmentDoc: DocumentNode<ReportFragment, unknown>;
|
|
2413
2472
|
export declare const AssessmentActionFragmentDoc: DocumentNode<AssessmentActionFragment, unknown>;
|
|
2414
2473
|
export declare const LibraryModuleActionFragmentDoc: DocumentNode<LibraryModuleActionFragment, unknown>;
|
|
2415
2474
|
export declare const LibraryActionModuleFragmentDoc: DocumentNode<LibraryActionModuleFragment, unknown>;
|