This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from="./contador"></require> | |
<require from="./precio"></require> | |
<require from="converters/number-format"></require> | |
<div> | |
Total: <span>$ ${total | numberFormat:'0,0.00':'0'}</span> | |
</div> | |
<table class="table table-striped"> | |
<thead> | |
<tr> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<section> | |
<h2>${heading}</h2> | |
<ux-form> | |
<ux-field label="Nombre"> | |
<ux-input type="text" value.bind="producto.Nombre & validate"></ux-input> | |
</ux-field> | |
<ux-field label="Categoría"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {ProductosRepository} from '../services/productosRepository'; | |
import {CategoriasProductoRepository} from '../services/categoriasProductoRepository'; | |
import {MateriaPrimaRepository} from '../services/materiaPrimaRepository'; | |
import { | |
ValidationControllerFactory, | |
ValidationController, | |
ValidationRules, | |
} from 'aurelia-validation'; | |
import { autoinject, computedFrom } from 'aurelia-framework'; | |
import { AureliaUXFormRenderer } from '../components/forms-form-renderer'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as moment from 'moment'; | |
export class FechaValueConverter { | |
public toView(value, format) { | |
if(value){ | |
format = format || 'DD/MM/YYYY hh:mm A'; | |
return moment(value).format(format); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "app-ux-showcase", | |
"type": "project:application", | |
"platform": { | |
"id": "web", | |
"displayName": "Web", | |
"output": "scripts", | |
"index": "index.html" | |
}, | |
"transpiler": { |