{"vsa":"0.9.0","type":"StaticManifest","manifestVersion":"1.0.0","viewId":"orders","title":"Orders","requires":[{"name":"zone.text","version":"^1.0.0"},{"name":"zone.money","version":"^1.0.0"},{"name":"zone.input","version":"^1.0.0"},{"name":"zone.action","version":"^1.0.0"},{"name":"zone.status","version":"^1.0.0"},{"name":"zone.collection","version":"^1.0.0"},{"name":"zone.number","version":"^1.0.0"}],"optional":[{"name":"render.dom","version":"^1.0.0"},{"name":"projection.slots","version":"^1.0.0"}],"trustDomain":"self","dataClass":"public","zones":[{"zoneId":"context","kind":"text","label":"Luxel / Live application"},{"zoneId":"title","kind":"text","label":"The orders desk"},{"zoneId":"intro","kind":"text","label":"Search, change pages, or create an order. The server computes the result and Luxel updates only what changed."},{"zoneId":"fictitious","kind":"text","label":"The company, its customers and every order are fictitious."},{"zoneId":"link-about","kind":"text","label":"How this page works"},{"zoneId":"wire-title","kind":"text","label":"What went over the wire"},{"zoneId":"wire","kind":"text"},{"zoneId":"reset","kind":"text"},{"zoneId":"list-title","kind":"text","label":"Explore the orders"},{"zoneId":"list-note","kind":"text","label":"Try a customer name. The table, total and charts come back in the same server answer."},{"zoneId":"q","kind":"input","label":"Search by customer or order number","input":{"inputType":"text","maxLength":40,"required":false,"autocomplete":"off","placeholder":"e.g. Corvane or SO-10012"}},{"zoneId":"search","kind":"action","label":"Search","action":{"event":"orders.search","statusZone":"list-result","busyLabel":"Searching…"}},{"zoneId":"clear","kind":"action","label":"Clear","action":{"event":"orders.clear","statusZone":"list-result","onSuccess":{"clear":["q"],"focus":"q"}}},{"zoneId":"list-result","kind":"status"},{"zoneId":"summary","kind":"text"},{"zoneId":"total","kind":"money","label":"Total of these orders"},{"zoneId":"h-number","kind":"text","label":"Order"},{"zoneId":"h-customer","kind":"text","label":"Customer"},{"zoneId":"h-date","kind":"text","label":"Date"},{"zoneId":"h-state","kind":"text","label":"State"},{"zoneId":"h-amount","kind":"text","label":"Amount"},{"zoneId":"rows","kind":"collection","label":"Orders","collection":{"itemKind":"row","maxItems":8,"row":{"texts":5,"inputs":[],"numbers":[],"enums":[{"attr":"class","values":["badge badge--open","badge badge--paid","badge badge--late"]}],"actions":[]}}},{"zoneId":"pages","kind":"collection","label":"Pages","collection":{"itemKind":"action","maxItems":9,"action":{"event":"orders.page","statusZone":"list-result"}}},{"zoneId":"chart-title","kind":"text","label":"Orders by month"},{"zoneId":"chart-note","kind":"text","label":"The orders that match the search, last six months."},{"zoneId":"scale","kind":"number","label":"Order totals by month","number":{"min":1,"max":100000000000,"attr":"viewBox","pre":"0 0 6 "}},{"zoneId":"months","kind":"number","number":{"min":0,"max":100000000000,"attr":"height","list":6}},{"zoneId":"labels","kind":"collection","label":"Order totals by month, as text","collection":{"itemKind":"row","maxItems":6,"row":{"texts":2,"inputs":[],"numbers":[],"enums":[],"actions":[]}}},{"zoneId":"top-title","kind":"text","label":"Top customers"},{"zoneId":"top-note","kind":"text","label":"Every bar has the same scale, the largest total, sent by the server."},{"zoneId":"top","kind":"collection","label":"Customers with the largest totals","collection":{"itemKind":"row","maxItems":5,"row":{"texts":2,"inputs":[],"numbers":[{"min":1,"max":100000000000,"attr":"viewBox","pre":"0 0 ","post":" 1"},{"min":0,"max":100000000000,"attr":"width"}],"enums":[],"actions":[]}}},{"zoneId":"new-title","kind":"text","label":"Create a test order"},{"zoneId":"new-note","kind":"text","label":"The server checks every field: try an empty customer, an amount like 12.345, or a date outside the chart."},{"zoneId":"customer","kind":"input","label":"Customer","input":{"inputType":"text","maxLength":60,"required":true,"autocomplete":"off"}},{"zoneId":"amount","kind":"input","label":"Amount (USD)","input":{"inputType":"money","maxLength":13,"required":true,"placeholder":"1250.00"}},{"zoneId":"date","kind":"input","label":"Date","input":{"inputType":"date","maxLength":10,"required":true}},{"zoneId":"create","kind":"action","label":"Create order","action":{"event":"order.create","statusZone":"form-result","busyLabel":"Saving…","onSuccess":{"clear":["customer","amount","date"],"focus":"customer"}}},{"zoneId":"form-result","kind":"status"}],"events":[{"event":"orders.search","fields":[{"name":"q","type":"text"}],"read":true},{"event":"orders.clear","fields":[],"read":true},{"event":"orders.page","fields":[{"name":"q","type":"text"}],"param":{"type":"key","collection":"pages"},"read":true},{"event":"order.create","fields":[{"name":"customer","type":"text"},{"name":"amount","type":"text"},{"name":"date","type":"text"},{"name":"q","type":"text"}]}],"messages":{"network":"Could not reach the server. Check your connection and try again.","unexpected":"Something went wrong. Reload the page."},"addresses":["wire","reset","q","search","clear","list-result","summary","total","rows","pages","scale","months","labels","top","customer","amount","date","create","form-result"],"texts":["{0} order · page {1} of {2}","{0} orders · page {1} of {2}","No order matches “{0}”.","Searched for “{0}”.","Order {0} created for {1}.","Enter a customer name of 2 to 60 letters, digits, spaces or . , & ' ( ) -","Enter an amount such as 1250 or 1250.50, greater than 0 and at most 1,000,000.00.","Choose a date between {0} and {1} (the six months the chart shows).","This demo keeps at most {0} new orders per visitor until the next reset.","That page is no longer there. Search again.","Fictitious data. It returns to its seed every hour, on the hour (UTC): next reset at {0} UTC. Orders you add are visible only to you.","Your previous action ({0}): {1} bytes sent, {2} bytes received. The answer was {3} bytes of status line, headers and framing plus a {4}-byte body ({5}).","Your previous action ({0}): {1} bytes sent, {2} bytes received for the HTML ({3} of status line, headers and framing plus a {4}-byte body, {5}), and {6} bytes for {7} shared runtime or CSS file.","Your previous action ({0}): {1} bytes sent, {2} bytes received for the HTML ({3} of status line, headers and framing plus a {4}-byte body, {5}), and {6} bytes for {7} shared runtime or CSS files.","Your previous action ({0}): {1} bytes sent, {2} bytes received for the HTML ({3} of status line, headers and framing plus a {4}-byte body, {5}). No runtime or CSS file was downloaded: the browser had them cached.","No previous action in this session yet. Search, change page or create an order: the next answer shows how many bytes this one took.","Byte counter off: this server was started without the measuring proxy (use npm start)."],"extensions":{"render.dom@1":{"root":{"el":"main","class":"page","children":[{"el":"header","class":"topbar","children":[{"el":"div","class":"topbar__title","children":[{"zone":"context","el":"p","class":"topbar__context"},{"zone":"title","el":"h1"},{"zone":"intro","el":"p","class":"topbar__intro"},{"zone":"fictitious","el":"p","class":"muted"}]},{"zone":"link-about","el":"span","class":"link topbar__link"}]},{"el":"section","class":"wire","children":[{"zone":"wire-title","el":"h2"},{"zone":"wire","el":"p","class":"wire__line"},{"zone":"reset","el":"p","class":"muted"}]},{"el":"section","class":"card card--orders","children":[{"zone":"list-title","el":"h2"},{"zone":"list-note","el":"p","class":"muted"},{"el":"div","class":"search","children":[{"el":"div","class":"field","children":[{"zone":"q"}]},{"zone":"search","class":"button"},{"zone":"clear","class":"button button--ghost"}]},{"zone":"list-result","errorClass":"notice notice--error","successClass":"notice notice--success"},{"el":"div","class":"totals","children":[{"zone":"summary","el":"p","class":"summary"},{"zone":"total","class":"total","labelClass":"total__label"}]},{"el":"table","class":"table","children":[{"el":"thead","children":[{"el":"tr","children":[{"zone":"h-number","el":"th"},{"zone":"h-customer","el":"th"},{"zone":"h-date","el":"th"},{"zone":"h-state","el":"th"},{"zone":"h-amount","el":"th"}]}]},{"zone":"rows"}]},{"zone":"pages","class":"pager","itemClass":"pager__page"}]},{"el":"div","class":"columns","children":[{"el":"section","class":"card card--analytics","children":[{"zone":"chart-title","el":"h2"},{"zone":"chart-note","el":"p","class":"muted"},{"zone":"scale","class":"chart"},{"zone":"labels","class":"chart__labels"}]},{"el":"section","class":"card card--analytics","children":[{"zone":"top-title","el":"h2"},{"zone":"top-note","el":"p","class":"muted"},{"zone":"top","class":"bars"}]}]},{"el":"section","class":"card card--create","children":[{"zone":"new-title","el":"h2"},{"zone":"new-note","el":"p","class":"muted"},{"el":"form","class":"form form--inline","children":[{"el":"div","class":"field","children":[{"zone":"customer"}]},{"el":"div","class":"field","children":[{"zone":"amount"}]},{"el":"div","class":"field","children":[{"zone":"date"}]},{"zone":"create","class":"button"}]},{"zone":"form-result","errorClass":"notice notice--error","successClass":"notice notice--success"}]}]}},"projection.slots@1":{"template":"/_luxel/a/orders.16d48f0bdc61.html","map":"/_luxel/a/orders.slots.2cef773b8408.json"}}}