{"version":3,"file":"ifsworld-granite-components-core.mjs","sources":["../../../../libs/granite-components/core/src/lib/client-environment.ts","../../../../libs/granite-components/core/src/ifsworld-granite-components-core.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\n/**\n * Injection token used to provide components knowledge of what device types\n * are being used for input.\n */\nexport const GRANITE_CLIENT_INPUT = new InjectionToken<ClientInputInterface>(\n  'GRANITE_CLIENT_INPUT'\n);\n\n/**\n * Injection token used to provide components knowledge of what device type\n * is being used for output.\n */\nexport const GRANITE_CLIENT_OUTPUT = new InjectionToken<ClientOutputInterface>(\n  'GRANITE_CLIENT_OUTPUT'\n);\n\nexport type InputDeviceTypes =\n  | void\n  | 'touch'\n  | 'mouse'\n  | 'keyboard'\n  | 'onscreen-keyboard';\n\nexport type OutputDeviceTypes =\n  | void\n  | 'touch' // TODO: Change to 'touch-screen' for touch\n  | 'desktop'; // TODO: Change to 'screen' for desktop\n\nexport interface ClientInputInterface {\n  devices: InputDeviceTypes[];\n}\n\nexport interface ClientOutputInterface {\n  device: OutputDeviceTypes;\n}\n\ninterface DevicePrefabInterface {\n  input: ClientInputInterface;\n  output: ClientOutputInterface;\n}\n\nexport const deviceDesktop: DevicePrefabInterface = {\n  input: { devices: ['mouse', 'keyboard'] },\n  output: { device: 'desktop' },\n};\n\nexport const deviceTouch: DevicePrefabInterface = {\n  input: { devices: ['touch', 'onscreen-keyboard'] },\n  output: { device: 'touch' },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEA;;;AAGG;MACU,oBAAoB,GAAG,IAAI,cAAc,CACpD,sBAAsB;AAGxB;;;AAGG;MACU,qBAAqB,GAAG,IAAI,cAAc,CACrD,uBAAuB;AA4BlB,MAAM,aAAa,GAA0B;IAClD,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;AACzC,IAAA,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;;AAGxB,MAAM,WAAW,GAA0B;IAChD,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,mBAAmB,CAAC,EAAE;AAClD,IAAA,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;;;AClD7B;;AAEG;;;;"}