UNPKG

@cds/core

Version:

Clarity Design System - common components, themes, and utilties

3 lines (2 loc) 676 B
import{food as t}from"./food.data.js";import{infrastructure as a}from"./infrastructure.data.js";import{system as r}from"./system.data.js";class e{static get data(){const t=localStorage.getItem("cds-data-theme");return e.getData("undefined"!==t?t:"infrastructure")}static get asyncData(){return new Promise((t=>setTimeout((()=>t(e.data)),2e3)))}static getData(e){const s=JSON.parse(JSON.stringify({system:r,infrastructure:a,food:t}[e]));return s.grid.columns.forEach((t=>t.sort="none")),s.grid.rows.forEach((t=>{t.selected=!1,t.cells.forEach(((t,a)=>t.label=`${t.value}${s.grid.columns[a].suffix??""}`))})),s}}export{e as DemoService}; //# sourceMappingURL=demo.service.js.map