Skip to content

Commit

Permalink
Added bundling for example back in and also fixed issue with the vali…
Browse files Browse the repository at this point in the history
…dation summary.
  • Loading branch information
grofit committed Jul 13, 2016
1 parent 3c6a3ae commit 1536199
Show file tree
Hide file tree
Showing 11 changed files with 194 additions and 206 deletions.
3 changes: 3 additions & 0 deletions build/tasks/default.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var gulp = require("gulp");

gulp.task('default', ["build", "bundle:example"]);
9 changes: 4 additions & 5 deletions dist/amd/elements/validation-summary-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,14 @@ define(["exports", "aurelia-framework"], function (exports, _aureliaFramework) {
throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}

var _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor;
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor;

var ValidationSummary = exports.ValidationSummary = (_dec = (0, _aureliaFramework.customElement)("validation-summary"), _dec2 = (0, _aureliaFramework.inject)(_aureliaFramework.Element), _dec3 = (0, _aureliaFramework.inlineView)('<template><p class="validation-summary-entry" repeat.for="error of propertyErrors">${error.property} - ${error.error}</p></template>'), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = function () {
function ValidationSummary(element) {
var ValidationSummary = exports.ValidationSummary = (_dec = (0, _aureliaFramework.customElement)("validation-summary"), _dec2 = (0, _aureliaFramework.inlineView)('<template><ul class="validation-summary" show.bind="propertyErrors.length"><li repeat.for="error of propertyErrors">${error.property} - ${error.error}</li></ul></template>'), _dec(_class = _dec2(_class = (_class2 = function () {
function ValidationSummary() {


_initDefineProp(this, "validationGroup", _descriptor, this);

this.element = element;
this.propertyErrors = [];
}

Expand Down Expand Up @@ -95,5 +94,5 @@ define(["exports", "aurelia-framework"], function (exports, _aureliaFramework) {
}(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "validationGroup", [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
})), _class2)) || _class) || _class) || _class);
})), _class2)) || _class) || _class);
});
9 changes: 4 additions & 5 deletions dist/commonjs/elements/validation-summary-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
});
exports.ValidationSummary = undefined;

var _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor;
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor;

var _aureliaFramework = require("aurelia-framework");

Expand Down Expand Up @@ -54,13 +54,12 @@ function _initializerWarningHelper(descriptor, context) {
throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}

var ValidationSummary = exports.ValidationSummary = (_dec = (0, _aureliaFramework.customElement)("validation-summary"), _dec2 = (0, _aureliaFramework.inject)(_aureliaFramework.Element), _dec3 = (0, _aureliaFramework.inlineView)('<template><p class="validation-summary-entry" repeat.for="error of propertyErrors">${error.property} - ${error.error}</p></template>'), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = function () {
function ValidationSummary(element) {
var ValidationSummary = exports.ValidationSummary = (_dec = (0, _aureliaFramework.customElement)("validation-summary"), _dec2 = (0, _aureliaFramework.inlineView)('<template><ul class="validation-summary" show.bind="propertyErrors.length"><li repeat.for="error of propertyErrors">${error.property} - ${error.error}</li></ul></template>'), _dec(_class = _dec2(_class = (_class2 = function () {
function ValidationSummary() {


_initDefineProp(this, "validationGroup", _descriptor, this);

this.element = element;
this.propertyErrors = [];
}

Expand Down Expand Up @@ -96,4 +95,4 @@ var ValidationSummary = exports.ValidationSummary = (_dec = (0, _aureliaFramewor
}(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "validationGroup", [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
})), _class2)) || _class) || _class) || _class);
})), _class2)) || _class) || _class);
11 changes: 5 additions & 6 deletions dist/es2015/elements/validation-summary-element.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor;
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor;

function _initDefineProp(target, property, descriptor, context) {
if (!descriptor) return;
Expand Down Expand Up @@ -43,14 +43,13 @@ function _initializerWarningHelper(descriptor, context) {
throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}

import { customElement, inlineView, inject, bindable, Element } from "aurelia-framework";
import { customElement, inlineView, inject, bindable } from "aurelia-framework";

export let ValidationSummary = (_dec = customElement("validation-summary"), _dec2 = inject(Element), _dec3 = inlineView('<template><p class="validation-summary-entry" repeat.for="error of propertyErrors">${error.property} - ${error.error}</p></template>'), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class ValidationSummary {
export let ValidationSummary = (_dec = customElement("validation-summary"), _dec2 = inlineView('<template><ul class="validation-summary" show.bind="propertyErrors.length"><li repeat.for="error of propertyErrors">${error.property} - ${error.error}</li></ul></template>'), _dec(_class = _dec2(_class = (_class2 = class ValidationSummary {

constructor(element) {
constructor() {
_initDefineProp(this, "validationGroup", _descriptor, this);

this.element = element;
this.propertyErrors = [];
}

Expand Down Expand Up @@ -82,4 +81,4 @@ export let ValidationSummary = (_dec = customElement("validation-summary"), _dec
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "validationGroup", [bindable], {
enumerable: true,
initializer: null
})), _class2)) || _class) || _class) || _class);
})), _class2)) || _class) || _class);
11 changes: 5 additions & 6 deletions dist/native-modules/elements/validation-summary-element.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor;
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor;

function _initDefineProp(target, property, descriptor, context) {
if (!descriptor) return;
Expand Down Expand Up @@ -45,15 +45,14 @@ function _initializerWarningHelper(descriptor, context) {
throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}

import { customElement, inlineView, inject, bindable, Element } from "aurelia-framework";
import { customElement, inlineView, inject, bindable } from "aurelia-framework";

export var ValidationSummary = (_dec = customElement("validation-summary"), _dec2 = inject(Element), _dec3 = inlineView('<template><p class="validation-summary-entry" repeat.for="error of propertyErrors">${error.property} - ${error.error}</p></template>'), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = function () {
function ValidationSummary(element) {
export var ValidationSummary = (_dec = customElement("validation-summary"), _dec2 = inlineView('<template><ul class="validation-summary" show.bind="propertyErrors.length"><li repeat.for="error of propertyErrors">${error.property} - ${error.error}</li></ul></template>'), _dec(_class = _dec2(_class = (_class2 = function () {
function ValidationSummary() {


_initDefineProp(this, "validationGroup", _descriptor, this);

this.element = element;
this.propertyErrors = [];
}

Expand Down Expand Up @@ -89,4 +88,4 @@ export var ValidationSummary = (_dec = customElement("validation-summary"), _dec
}(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "validationGroup", [bindable], {
enumerable: true,
initializer: null
})), _class2)) || _class) || _class) || _class);
})), _class2)) || _class) || _class);
10 changes: 4 additions & 6 deletions dist/system/elements/validation-summary-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
System.register(["aurelia-framework"], function (_export, _context) {
"use strict";

var customElement, inlineView, inject, bindable, Element, _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor, ValidationSummary;
var customElement, inlineView, inject, bindable, _dec, _dec2, _class, _desc, _value, _class2, _descriptor, ValidationSummary;

function _initDefineProp(target, property, descriptor, context) {
if (!descriptor) return;
Expand Down Expand Up @@ -56,16 +56,14 @@ System.register(["aurelia-framework"], function (_export, _context) {
inlineView = _aureliaFramework.inlineView;
inject = _aureliaFramework.inject;
bindable = _aureliaFramework.bindable;
Element = _aureliaFramework.Element;
}],
execute: function () {
_export("ValidationSummary", ValidationSummary = (_dec = customElement("validation-summary"), _dec2 = inject(Element), _dec3 = inlineView('<template><p class="validation-summary-entry" repeat.for="error of propertyErrors">${error.property} - ${error.error}</p></template>'), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = function () {
function ValidationSummary(element) {
_export("ValidationSummary", ValidationSummary = (_dec = customElement("validation-summary"), _dec2 = inlineView('<template><ul class="validation-summary" show.bind="propertyErrors.length"><li repeat.for="error of propertyErrors">${error.property} - ${error.error}</li></ul></template>'), _dec(_class = _dec2(_class = (_class2 = function () {
function ValidationSummary() {


_initDefineProp(this, "validationGroup", _descriptor, this);

this.element = element;
this.propertyErrors = [];
}

Expand Down Expand Up @@ -101,7 +99,7 @@ System.register(["aurelia-framework"], function (_export, _context) {
}(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "validationGroup", [bindable], {
enumerable: true,
initializer: null
})), _class2)) || _class) || _class) || _class));
})), _class2)) || _class) || _class));

_export("ValidationSummary", ValidationSummary);
}
Expand Down
85 changes: 42 additions & 43 deletions examples/aurelia-bundle.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 1536199

Please sign in to comment.