mt -> Mdl

This commit is contained in:
Juan Ferrer Toribio 2016-11-30 23:07:28 +01:00
parent 9266fdd59e
commit b91d575e93
33 changed files with 41 additions and 41 deletions

View File

@ -1,7 +1,7 @@
import {module as _module} from '../module';
import * as util from '../util';
import * as constant from '../constants';
import template from './button.mt.html';
import template from './button.mdl.html';
const _NAME = 'button';
const DEFAULT_CLASS = 'mdl-button mdl-js-button mdl-button--raised';

View File

@ -1,7 +1,7 @@
import {module as _module} from '../module';
import * as util from '../util';
import * as constant from '../constants';
import template from './check.mt.html';
import template from './check.mdl.html';
const _NAME = 'check';
const DEFAULT_CLASS = 'mdl-checkbox__input';

View File

@ -1,7 +1,7 @@
import {module} from '../module';
import template from './combo.mt.html';
import template from './combo.mdl.html';
export const NAME = 'vnCombomtFactory';
export const NAME = 'vnComboMdlFactory';
export function factory() {
return {
template: template,

View File

@ -3,8 +3,8 @@
export const PREFIX ='vn';
// CSS frameworks
export const MATERIAL_DESIGN_FRAMEWORK = 'mt';
export const BOOTSTRAP_FRAMEWORK = 'bt';
export const MATERIAL_DESIGN_FRAMEWORK = 'Mdl';
export const BOOTSTRAP_FRAMEWORK = 'Bt';
// Module dependencies
export const EMPTY_DEPENDECIES = [];

View File

@ -1,4 +1,4 @@
import mtOverride from './mt-override.css';
import mtOverride from './mdl-override.css';
export * from './module'
export * from './util'
@ -9,37 +9,37 @@ export {NAME as INTERPOLATE, Interpolate} from './interpolate'
export {NAME as ROUTES_LOADER, RoutesLoader} from './routesLoader'
export {NAME as BUTTON, directive as ButtonDirective} from './button/button'
export {NAME as BUTTON_MT, factory as buttonMt} from './button/button.mt'
export {NAME as BUTTON_MDL, factory as buttonMdl} from './button/button.mdl'
export {NAME as BUTTON_BT, factory as buttonBt} from './button/button.bt'
export {NAME as CHECK,directive as CheckDirective} from './check/check'
export {NAME as CHECK_MT, factory as checknMt} from './check/check.mt'
export {NAME as CHECK_MDL, factory as checknMdl} from './check/check.mdl'
export {NAME as CHECK_BT, factory as checkBt} from './check/check.bt'
export {NAME as RADIO,directive as RadioDirective} from './radio/radio'
export {NAME as RADIO_MT, factory as radionMt} from './radio/radio.mt'
export {NAME as RADIO_MDL, factory as radionMdl} from './radio/radio.mdl'
export {NAME as RADIO_BT, factory as radioBt} from './radio/radio.bt'
export {NAME as TEXTFIELD, directive as TextfieldDirective} from './textfield/textfield'
export {NAME as TEXTFIELD_MT, factory as textfieldMt} from './textfield/textfield.mt'
export {NAME as TEXTFIELD_MDL, factory as textfieldMdl} from './textfield/textfield.mdl'
export {NAME as TEXTFIELD_BT, factory as textfieldBt} from './textfield/textfield.bt'
export {NAME as LABEL, directive as LabelDirective} from './label/label'
export {NAME as LABEL_MT, factory as labelMt} from './label/label.mt'
export {NAME as LABEL_MDL, factory as labelMdl} from './label/label.mdl'
export {NAME as LABEL_BT, factory as labelBt} from './label/label.bt'
export {NAME as ICON_BUTTON, directive as IconButtonDirective} from './icon-button/icon-button'
export {NAME as ICON_BUTTON_MT, factory as iconButtonMt} from './icon-button/icon-button.mt'
export {NAME as ICON_BUTTON_MDL, factory as iconButtonMdl} from './icon-button/icon-button.mdl'
export {NAME as SEARCHBAR,factory as searchbar} from './searchbar/searchbar'
export {NAME as SEARCHBAR_MT, factory as searchbarMt} from './searchbar/searchbar.mt'
export {NAME as SEARCHBAR_MDL, factory as searchbarMdl} from './searchbar/searchbar.mdl'
export {NAME as SEARCHBAR_BT,factory as searchbarBt} from './searchbar/searchbar.bt'
export {NAME as PASSWORD, directive as PasswordDirective} from './password/password'
export {NAME as PASSWORD_MT,factory as passwordMt} from './password/password.mt'
export {NAME as PASSWORD_MDL,factory as passwordMdl} from './password/password.mdl'
export {NAME as SUBMIT, directive as SubmitDirective} from './submit/submit'
export {NAME as SUBMIT_MT, factory as submitMt} from './submit/submit.mt'
export {NAME as SUBMIT_MDL, factory as submitMdl} from './submit/submit.mdl'
export {NAME as SNACKBAR, directive as SnackbarDirective} from './snackbar/snackbar'
export {NAME as SNACKBAR_MT, factory as snackbarMt} from './snackbar/snackbar.mt'
export {NAME as SNACKBAR_MDL, factory as snackbarMdl} from './snackbar/snackbar.mdl'
export {NAME as SPINNER, directive as SpinnerDirective} from './spinner/spinner'
export {NAME as SPINNER_MT, factory as spinnerMt} from './spinner/spinner.mt'
export {NAME as SPINNER_MDL, factory as spinnerMdl} from './spinner/spinner.mdl'
export {NAME as COMBO, directive as ComboDirective} from './combo/combo'
export {NAME as COMBO_MT, factory as comboMt} from './combo/combo.mt'
export {NAME as COMBO_MDL, factory as comboMdl} from './combo/combo.mdl'
export {NAME as DATE_PICKER, directive as DatePickerDirective} from './date-picker/date-picker'
export {NAME as DATE_PICKER_MT, factory as datePickerMt} from './date-picker/date-picker.mt'
export {NAME as DATE_PICKER_MDL, factory as datePickerMdl} from './date-picker/date-picker.mdl'

View File

@ -1,7 +1,7 @@
import {module} from '../module';
import template from './date-picker.mt.html';
import template from './date-picker.mdl.html';
export const NAME = 'vnDatePickermtFactory';
export const NAME = 'vnDatePickerMdlFactory';
export function factory() {
return {
template: template,

View File

@ -1,7 +1,7 @@
import {module} from '../module';
import template from './icon-button.mt.html';
import template from './icon-button.mdl.html';
export const NAME = 'vnIconButtonmtFactory';
export const NAME = 'vnIconButtonMdlFactory';
export function factory() {
return {
template: template,

View File

@ -1,7 +1,7 @@
import {module as _module} from '../module';
import * as util from '../util';
import * as constant from '../constants';
import template from './label.mt.html';
import template from './label.mdl.html';
const _NAME = 'label';
const DEFAULT_TEXT = 'label';

View File

@ -1,5 +1,5 @@
import {module} from '../module';
import template from './password.mt.html';
import template from './password.mdl.html';
export const NAME = 'vnPasswordmtFactory';

View File

@ -1,7 +1,7 @@
import {module as _module} from '../module';
import * as util from '../util';
import * as constant from '../constants';
import template from './radio.mt.html';
import template from './radio.mdl.html';
const _NAME = 'radio';
const DEFAULT_CLASS = 'mdl-radio mdl-js-radio mdl-js-ripple-effect';

View File

@ -7,7 +7,7 @@ export const NAME = util.getProviderName('ResolveDefaultComponent');
export class ResolveDefaultComponent {
constructor(){
this._frameworkName="mt";
this._frameworkName='Mdl';
}
set frameworkName(value){
//mt or bt
@ -17,7 +17,7 @@ export class ResolveDefaultComponent {
//Service Locator
return {
getTemplate:function(name ,attr){
this._frameworkName="mt";
this._frameworkName='Mdl';
let _name = util.getFactoryName( name + this._frameworkName);
let defaultfactory = $injector.has(_name) ? $injector.get(_name):undefined; // vnbutonmtFactory
if(!defaultfactory)

View File

@ -1,7 +1,7 @@
import {module as _module} from '../module';
import * as util from '../util';
import * as constant from '../constants';
import template from './searchbar.mt.html';
import template from './searchbar.mdl.html';
const _NAME = 'searchbar';
const DEFAULT_TEXT = 'Search';

View File

@ -1,7 +1,7 @@
import {module} from '../module';
import template from './snackbar.mt.html';
import template from './snackbar.mdl.html';
export const NAME = 'vnSnackbarmtFactory';
export const NAME = 'vnSnackbarMdlFactory';
export function factory() {
return {

View File

@ -1,7 +1,7 @@
import {module} from '../module';
import template from './spinner.mt.html';
import template from './spinner.mdl.html';
export const NAME = 'vnSpinnermtFactory';
export const NAME = 'vnSpinnerMdlFactory';
export function factory() {
return {

View File

@ -1,7 +1,7 @@
import {module} from '../module';
import template from './submit.mt.html';
import template from './submit.mdl.html';
export const NAME = 'vnSubmitmtFactory';
export const NAME = 'vnSubmitMdlFactory';
export function factory() {
return {

View File

@ -1,7 +1,7 @@
import {module as _module} from '../module';
import * as util from '../util';
import * as constant from '../constants';
import template from './textfield.mt.html';
import template from './textfield.mdl.html';
const _NAME = 'textfield';
const DEFAULT_LABEL = 'text';

View File

@ -1,7 +1,7 @@
import {module} from '../module';
import template from './title.mt.html';
import template from './title.mdl.html';
export const NAME = 'vnTitlemtFactory';
export const NAME = 'vnTitleMdlFactory';
export function factory() {
return {

View File

@ -32,8 +32,8 @@
</vn-horizontal>
<vn-horizontal>
<vn-textfield vn-one label="Credito" name="credit" model="$ctrl.model.credit"></vn-textfield>
<vn-textfield vn-one label="Cyc" name="cyc" model="$ctrl.model.cyc"></vn-textfield>
<vn-textfield vn-one label="iae" name"iae" model="$ctrl.model.iae"></vn-textfield>
<vn-textfield vn-one label="CyC" name="cyc" model="$ctrl.model.cyc"></vn-textfield>
<vn-textfield vn-one label="IAE" name"iae" model="$ctrl.model.iae"></vn-textfield>
<vn-textfield vn-three label="iban" name"iban" model="$ctrl.model.iban"></vn-textfield>
</vn-horizontal>
<hr class="border-dashed-top"/>