UNPKG

foam-framework

Version:
88 lines (81 loc) 2.3 kB
/** * @license * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 */ CLASS({ package: 'foam.apps.builder.kiosk', name: 'NewOrExistingWizard', extends: 'foam.apps.builder.wizard.NewOrExistingWizard', requires: [ 'foam.apps.builder.kiosk.BasicInfoWizard', 'foam.apps.builder.kiosk.ImportWizard', ], properties: [ { name: 'nextViewFactory', lazyFactory: function() { return this.newViewFactory; }, }, { model_: 'foam.apps.builder.wizard.WizardViewFactoryProperty', name: 'newViewFactory', label: 'Create new kiosk app', defaultValue: 'foam.apps.builder.kiosk.BasicInfoWizard', }, { model_: 'foam.apps.builder.wizard.WizardViewFactoryProperty', name: 'existingViewFactory', label: 'Import existing Chrome App Builder Version 1 app', defaultValue: { factory_: 'foam.apps.builder.kiosk.ImportWizard', appBuilderVersion: 1, }, }, { model_: 'foam.apps.builder.wizard.WizardViewFactoryProperty', name: 'existingViewFactory2', label: 'Import existing App Builder Version 2 app', defaultValue: { factory_: 'foam.apps.builder.kiosk.ImportWizard', appBuilderVersion: 2, }, }, { name: 'title', defaultValue: 'Create or Import Kiosk App', }, { name: 'scrollContent', defaultValue: false, }, ], methods: [ function onNext() {}, ], actions: [ { name: 'nextAction', isEnabled: function() { return true; }, } ], templates: [ function contentHTML() {/* <div class="md-card-heading-content-spacer"></div> $$nextViewFactory{ model_: 'foam.ui.md.ChoiceRadioView', orientation: 'vertical', choices: [ [ this.newViewFactory, this.model_.NEW_VIEW_FACTORY.label ], [ this.existingViewFactory, this.model_.EXISTING_VIEW_FACTORY.label ], [ this.existingViewFactory2, this.model_.EXISTING_VIEW_FACTORY2.label ], ] } */}, ], });