data-navigator 0.0.1 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
1
  # data-navigator
2
2
 
3
3
  A JavaScript library that allows for serial navigation of data structures using keyboard and touch inputs.
4
+
5
+ Simply open index.html or visit [our landing page](http://dig.cmu.edu/data-navigator/) to try our demo. You will need to run a local server in order to open vega-lite.html locally, but you can just [visit the vega-lite demo online](https://dig.cmu.edu/data-navigator/vega-lite.html).
@@ -0,0 +1 @@
1
+ var e={ArrowLeft:"left",ArrowRight:"right",ArrowUp:"up",ArrowDown:"down",Period:"forward",Comma:"backward",Escape:"parent",Enter:"child"},t={down:{keyCode:"ArrowDown",direction:"target"},left:{keyCode:"ArrowLeft",direction:"source"},right:{keyCode:"ArrowRight",direction:"target"},up:{keyCode:"ArrowUp",direction:"source"},backward:{keyCode:"Comma",direction:"source"},child:{keyCode:"Enter",direction:"target"},parent:{keyCode:"Backspace",direction:"source"},forward:{keyCode:"Period",direction:"target"},exit:{keyCode:"Escape",direction:"target"}},r={right:{key:"ArrowRight",direction:"target"},left:{key:"ArrowLeft",direction:"source"},down:{key:"ArrowDown",direction:"target"},up:{key:"ArrowUp",direction:"source"},child:{key:"Enter",direction:"target"},parent:{key:"Backspace",direction:"source"},exit:{key:"Escape",direction:"target"},undo:{key:"Period",direction:"target"},legend:{key:"KeyL",direction:"target"}},i={cssClass:"",dimensions:{x:0,y:0,width:0,height:0,path:""},semantics:{label:"",elementType:"div",role:"image",attributes:void 0},parentSemantics:{label:"",elementType:"figure",role:"figure",attributes:void 0},existingElement:{useForDimensions:!1,dimensions:void 0}};export{e as a,t as b,r as c,i as d};
@@ -0,0 +1 @@
1
+ var a=(t,c)=>{let s=Object.keys(t),e="";return s.forEach(o=>{e+=`${c.omitKeyNames?"":o+": "}${t[o]}. `}),e+=c.semanticLabel||"Data point.",e};export{a};
@@ -0,0 +1 @@
1
+ var m=(a,e)=>{let b=Object.keys(a),t="";return b.forEach(c=>{t+=`${e&&e.omitKeyNames?"":c+": "}${a[c]}. `}),t+=e&&e.semanticLabel||"Data point.",t};export{m as a};
package/dist/consts.js ADDED
@@ -0,0 +1 @@
1
+ var e=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var t=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var n=function(r,t){for(var i in t)e(r,i,{get:t[i],enumerable:!0})},o=function(n,o,a,d){var c=true,u=false,l=undefined;if(o&&typeof o=="object"||typeof o=="function")try{var s=function(){var t=y.value;!i.call(n,t)&&t!==a&&e(n,t,{get:function(){return o[t]},enumerable:!(d=r(o,t))||d.enumerable})};for(var f=t(o)[Symbol.iterator](),y;!(c=(y=f.next()).done);c=true)s()}catch(e){u=true;l=e}finally{try{if(!c&&f.return!=null){f.return()}}finally{if(u){throw l}}}return n};var a=function(r){return o(e({},"__esModule",{value:!0}),r)};var d={};n(d,{GenericFullNavigationRules:function(){return u},GenericLimitedNavigationRules:function(){return l},NodeElementDefaults:function(){return s},defaultKeyBindings:function(){return c}});module.exports=a(d);var c={ArrowLeft:"left",ArrowRight:"right",ArrowUp:"up",ArrowDown:"down",Period:"forward",Comma:"backward",Escape:"parent",Enter:"child"},u={down:{keyCode:"ArrowDown",direction:"target"},left:{keyCode:"ArrowLeft",direction:"source"},right:{keyCode:"ArrowRight",direction:"target"},up:{keyCode:"ArrowUp",direction:"source"},backward:{keyCode:"Comma",direction:"source"},child:{keyCode:"Enter",direction:"target"},parent:{keyCode:"Backspace",direction:"source"},forward:{keyCode:"Period",direction:"target"},exit:{keyCode:"Escape",direction:"target"}},l={right:{key:"ArrowRight",direction:"target"},left:{key:"ArrowLeft",direction:"source"},down:{key:"ArrowDown",direction:"target"},up:{key:"ArrowUp",direction:"source"},child:{key:"Enter",direction:"target"},parent:{key:"Backspace",direction:"source"},exit:{key:"Escape",direction:"target"},undo:{key:"Period",direction:"target"},legend:{key:"KeyL",direction:"target"}},s={cssClass:"",dimensions:{x:0,y:0,width:0,height:0,path:""},semantics:{label:"",elementType:"div",role:"image",attributes:void 0},parentSemantics:{label:"",elementType:"figure",role:"figure",attributes:void 0},existingElement:{useForDimensions:!1,dimensions:void 0}};0&&(module.exports={GenericFullNavigationRules:GenericFullNavigationRules,GenericLimitedNavigationRules:GenericLimitedNavigationRules,NodeElementDefaults:NodeElementDefaults,defaultKeyBindings:defaultKeyBindings});
@@ -0,0 +1 @@
1
+ import{a,b,c,d}from"./chunk-GP5LYFFJ.mjs";export{b as GenericFullNavigationRules,c as GenericLimitedNavigationRules,d as NodeElementDefaults,a as defaultKeyBindings};