Skip to content

Commit

Permalink
chore(prepare-release): release 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenVinke committed Apr 1, 2016
1 parent 0987a56 commit f3b5d58
Show file tree
Hide file tree
Showing 42 changed files with 2,590 additions and 1,931 deletions.
61 changes: 34 additions & 27 deletions dist/amd/aurelia-kendoui-bridge.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
declare module 'aurelia-kendoui-bridge' {
import 'jquery';
import * as LogManager from 'aurelia-logging';
import { inject, Container, transient } from 'aurelia-dependency-injection';
import { customElement, bindable, children, ViewResources, customAttribute, BindableProperty, HtmlBehaviorResource, TemplatingEngine, noView, processContent, TargetInstruction } from 'aurelia-templating';
import { metadata } from 'aurelia-metadata';
Expand Down Expand Up @@ -32,8 +33,8 @@ declare module 'aurelia-kendoui-bridge' {
import 'kendo.menu.min';
import 'kendo.datepicker.min';
import 'kendo.datetimepicker.min';
import 'kendo.dataviz.diagram.min';
import 'kendo.draganddrop.min';
import 'kendo.dataviz.diagram.min';
import 'kendo.draganddrop.min';
import 'kendo.draganddrop.min';
import 'kendo.dropdownlist.min';
Expand All @@ -59,13 +60,13 @@ declare module 'aurelia-kendoui-bridge' {
import 'kendo.notification.min';
import 'kendo.numerictextbox.min';
import 'kendo.panelbar.min';
import 'kendo.pdf.min';
import 'kendo.excel.min';
import 'kendo.pivot.configurator.min';

// eslint-disable-line no-unused-vars
import 'kendo.pivotgrid.min';
import 'kendo.pivot.fieldmenu.min';
import 'kendo.pdf.min';
import 'kendo.excel.min';
import 'kendo.progressbar.min';
import 'kendo.dataviz.qrcode.min';
import 'kendo.slider.min';
Expand All @@ -87,12 +88,12 @@ declare module 'aurelia-kendoui-bridge' {
import 'kendo.tabstrip.min';
import 'kendo.timepicker.min';
import 'kendo.toolbar.min';
import 'kendo.tooltip.min';

// eslint-disable-line no-unused-vars
import 'kendo.data.signalr.min';
import 'kendo.filtercell.min';
import 'kendo.treelist.min';
import 'kendo.tooltip.min';
import 'kendo.treeview.min';
import 'kendo.upload.min';
import 'kendo.validator.min';
Expand All @@ -103,7 +104,7 @@ declare module 'aurelia-kendoui-bridge' {
*/
export class KendoConfigBuilder {
resources: string[];
useGlobalResources: boolean;
debugMode: any;

/**
* Globally register all Kendo Core wrappers including templating support
Expand All @@ -115,12 +116,6 @@ declare module 'aurelia-kendoui-bridge' {
*/
pro(): KendoConfigBuilder;

/**
* Don't globalize any resources
* Allows you to import wrappers yourself via <require></require>
*/
withoutGlobalResources(): KendoConfigBuilder;

/**
* Registers value converters (wrappers around kendo functions)
*/
Expand All @@ -130,6 +125,11 @@ declare module 'aurelia-kendoui-bridge' {
* Adds kendo templating support
*/
kendoTemplateSupport(): KendoConfigBuilder;

/**
* Adds kendo templating support
*/
debug(): KendoConfigBuilder;
kendoAutoComplete(): KendoConfigBuilder;
kendoButton(): KendoConfigBuilder;
kendoButtonGroup(): KendoConfigBuilder;
Expand All @@ -156,7 +156,7 @@ declare module 'aurelia-kendoui-bridge' {
kendoMap(): KendoConfigBuilder;
kendoMenu(): KendoConfigBuilder;
kendoMaskedTextBox(): KendoConfigBuilder;
kendoMultiselect(): KendoConfigBuilder;
kendoMultiSelect(): KendoConfigBuilder;
kendoNumericTextBox(): KendoConfigBuilder;
kendoPanelBar(): KendoConfigBuilder;
kendoPivotGrid(): KendoConfigBuilder;
Expand Down Expand Up @@ -533,7 +533,7 @@ declare module 'aurelia-kendoui-bridge' {
* The constructor of a Kendo control
*/
ctor: any;
constructor(taskQueue: any, templateCompiler: any, optionsBuilder: any, util: any, templateGatherer: any);
constructor(taskQueue: any, templateCompiler: any, optionsBuilder: any, util: any, templateGatherer: any, configBuilder: any);
control(controlName: any): any;
linkViewModel(viewModel: any): any;
useViewResources(resources: any): any;
Expand Down Expand Up @@ -592,21 +592,21 @@ declare module 'aurelia-kendoui-bridge' {
propertyChanged(property: any, newValue: any, oldValue: any): any;
detached(): any;
}
export class Diagram {
export class Draggabke {
kOptions: any;
constructor(element: any, widgetBase: any);
bind(ctx: any): any;
attached(): any;
recreate(): any;
beforeInitialize(options: any): any;
detached(): any;
}
export class Draggabke {
export class Diagram {
kOptions: any;
constructor(element: any, widgetBase: any);
bind(ctx: any): any;
attached(): any;
recreate(): any;
beforeInitialize(options: any): any;
detached(): any;
}
export class DropTargetArea {
Expand Down Expand Up @@ -688,10 +688,17 @@ declare module 'aurelia-kendoui-bridge' {
constructor(templateGatherer: any);
bind(): any;
}
export class GridToolbar {
templates: any;
constructor(templateGatherer: any);
bind(): any;
}
export class Grid {
columns: any;
templates: any;
gridToolbars: any;
kOptions: any;
constructor(element: any, widgetBase: any, viewResources: any, optionsBuilder: any);
constructor(element: any, widgetBase: any, viewResources: any, optionsBuilder: any, templateGatherer: any);
bind(ctx: any): any;

// initialization in bind() is giving issues in some scenarios
Expand Down Expand Up @@ -779,6 +786,8 @@ declare module 'aurelia-kendoui-bridge' {
recreate(): any;
detached(): any;
}
export class PDF {
}
export class PivotConfigurator {
kOptions: any;
constructor(element: any, widgetBase: any, viewResources: any);
Expand All @@ -796,8 +805,6 @@ declare module 'aurelia-kendoui-bridge' {
recreate(): any;
detached(): any;
}
export class PDF {
}
export class ProgressBar {
kOptions: any;
constructor(element: any, widgetBase: any);
Expand Down Expand Up @@ -928,6 +935,14 @@ declare module 'aurelia-kendoui-bridge' {
recreate(): any;
detached(): any;
}
export class Tooltip {
kOptions: any;
constructor(element: any, widgetBase: any);
bind(ctx: any): any;
attached(): any;
recreate(): any;
detached(): any;
}
export class TreeCol {
templates: any;
constructor(templateGatherer: any);
Expand All @@ -945,14 +960,6 @@ declare module 'aurelia-kendoui-bridge' {
recreate(): any;
detached(): any;
}
export class Tooltip {
kOptions: any;
constructor(element: any, widgetBase: any);
bind(ctx: any): any;
attached(): any;
recreate(): any;
detached(): any;
}
export class TreeView {
kOptions: any;
constructor(element: any, widgetBase: any);
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/common/bindables.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dist/amd/common/template-gatherer.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ define(['exports', './control-properties', './util', 'aurelia-dependency-injecti

var templateProps = this.controlProperties.getTemplateProperties(controlName);

if (!templates) {
templates = [];
}

templates.forEach(function (c) {
if (templateProps.indexOf(c['for']) > -1) {
if (_this.util.hasValue(c.template)) {
Expand Down
13 changes: 10 additions & 3 deletions dist/amd/common/widget-base.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
define(['exports', './util', './options-builder', './template-compiler', './template-gatherer', 'aurelia-dependency-injection', 'aurelia-task-queue'], function (exports, _util, _optionsBuilder, _templateCompiler, _templateGatherer, _aureliaDependencyInjection, _aureliaTaskQueue) {
define(['exports', './util', './options-builder', './template-compiler', './template-gatherer', '../config-builder', 'aurelia-dependency-injection', 'aurelia-task-queue', 'aurelia-logging'], function (exports, _util, _optionsBuilder, _templateCompiler, _templateGatherer, _configBuilder, _aureliaDependencyInjection, _aureliaTaskQueue, _aureliaLogging) {
'use strict';

exports.__esModule = true;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

var logger = _aureliaLogging.getLogger('aurelia-kendoui-bridge');

var WidgetBase = (function () {
function WidgetBase(taskQueue, templateCompiler, optionsBuilder, util, templateGatherer) {
function WidgetBase(taskQueue, templateCompiler, optionsBuilder, util, templateGatherer, configBuilder) {
_classCallCheck(this, _WidgetBase);

this.taskQueue = taskQueue;
this.optionsBuilder = optionsBuilder;
this.util = util;
this.configBuilder = configBuilder;
this.templateGatherer = templateGatherer;
templateCompiler.initialize();
}
Expand Down Expand Up @@ -83,6 +86,10 @@ define(['exports', './util', './options-builder', './template-compiler', './temp
_$resources: [this.viewResources]
});

if (this.configBuilder.debugMode) {
logger.debug('initializing ' + this.controlName + ' with the following config', allOptions);
}

var widget = this._createWidget(options.element, allOptions, this.controlName);

widget._$parent = options.parentCtx;
Expand Down Expand Up @@ -166,7 +173,7 @@ define(['exports', './util', './options-builder', './template-compiler', './temp
};

var _WidgetBase = WidgetBase;
WidgetBase = _aureliaDependencyInjection.inject(_aureliaTaskQueue.TaskQueue, _templateCompiler.TemplateCompiler, _optionsBuilder.OptionsBuilder, _util.Util, _templateGatherer.TemplateGatherer)(WidgetBase) || WidgetBase;
WidgetBase = _aureliaDependencyInjection.inject(_aureliaTaskQueue.TaskQueue, _templateCompiler.TemplateCompiler, _optionsBuilder.OptionsBuilder, _util.Util, _templateGatherer.TemplateGatherer, _configBuilder.KendoConfigBuilder)(WidgetBase) || WidgetBase;
WidgetBase = _aureliaDependencyInjection.transient()(WidgetBase) || WidgetBase;
return WidgetBase;
})();
Expand Down
17 changes: 9 additions & 8 deletions dist/amd/config-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ define(['exports'], function (exports) {
_classCallCheck(this, KendoConfigBuilder);

this.resources = [];
this.useGlobalResources = true;
this.debugMode = false;
}

KendoConfigBuilder.prototype.core = function core() {
this.kendoAutoComplete().kendoButton().kendoButtonGroup().kendoCalendar().kendoColorPicker().kendoColorPalette().kendoCombobox().kendoContextMenu().kendoDropDownList().kendoDateTimePicker().kendoDatePicker().kendoDraggable().kendoDropTarget().kendoFlatColorPicker().kendoListView().kendoMaskedTextBox().kendoMenu().kendoMultiselect().kendoNotification().kendoNumericTextBox().kendoPanelBar().kendoProgressBar().kendoRangeSlider().kendoResponsivePanel().kendoScrollView().kendoSortable().kendoSlider().kendoSplitter().kendoSwitch().kendoTabStrip().kendoTemplateSupport().kendoTimePicker().kendoToolbar().kendoTooltip().kendoValidator().kendoWindow().useValueConverters();
this.kendoAutoComplete().kendoButton().kendoButtonGroup().kendoCalendar().kendoColorPicker().kendoColorPalette().kendoCombobox().kendoContextMenu().kendoDropDownList().kendoDateTimePicker().kendoDatePicker().kendoDraggable().kendoDropTarget().kendoFlatColorPicker().kendoListView().kendoMaskedTextBox().kendoMenu().kendoMultiSelect().kendoNotification().kendoNumericTextBox().kendoPanelBar().kendoProgressBar().kendoRangeSlider().kendoResponsivePanel().kendoScrollView().kendoSortable().kendoSlider().kendoSplitter().kendoSwitch().kendoTabStrip().kendoTemplateSupport().kendoTimePicker().kendoToolbar().kendoTooltip().kendoValidator().kendoWindow().useValueConverters();
return this;
};

Expand All @@ -23,11 +23,6 @@ define(['exports'], function (exports) {
return this;
};

KendoConfigBuilder.prototype.withoutGlobalResources = function withoutGlobalResources() {
this.useGlobalResources = false;
return this;
};

KendoConfigBuilder.prototype.useValueConverters = function useValueConverters() {
this.resources.push('./valueconverters/valueconverters');
return this;
Expand All @@ -38,6 +33,11 @@ define(['exports'], function (exports) {
return this;
};

KendoConfigBuilder.prototype.debug = function debug() {
this.debugMode = true;
return this;
};

KendoConfigBuilder.prototype.kendoAutoComplete = function kendoAutoComplete() {
this.resources.push('./autocomplete/autocomplete');
return this;
Expand Down Expand Up @@ -141,6 +141,7 @@ define(['exports'], function (exports) {
KendoConfigBuilder.prototype.kendoGrid = function kendoGrid() {
this.resources.push('./grid/grid');
this.resources.push('./grid/col');
this.resources.push('./grid/grid-toolbar');
return this;
};

Expand Down Expand Up @@ -175,7 +176,7 @@ define(['exports'], function (exports) {
return this;
};

KendoConfigBuilder.prototype.kendoMultiselect = function kendoMultiselect() {
KendoConfigBuilder.prototype.kendoMultiSelect = function kendoMultiSelect() {
this.resources.push('./multiselect/multiselect');
return this;
};
Expand Down
3 changes: 3 additions & 0 deletions dist/amd/grid/grid-toolbar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>
<content></content>
</template>
42 changes: 42 additions & 0 deletions dist/amd/grid/grid-toolbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', '../common/constants', '../common/decorators', '../common/template-gatherer'], function (exports, _aureliaTemplating, _aureliaDependencyInjection, _commonConstants, _commonDecorators, _commonTemplateGatherer) {
'use strict';

exports.__esModule = true;

var _createDecoratedClass = (function () { function defineProperties(target, descriptors, initializers) { for (var i = 0; i < descriptors.length; i++) { var descriptor = descriptors[i]; var decorators = descriptor.decorators; var key = descriptor.key; delete descriptor.key; delete descriptor.decorators; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor || descriptor.initializer) descriptor.writable = true; if (decorators) { for (var f = 0; f < decorators.length; f++) { var decorator = decorators[f]; if (typeof decorator === 'function') { descriptor = decorator(target, key, descriptor) || descriptor; } else { throw new TypeError('The decorator for method ' + descriptor.key + ' is of the invalid type ' + typeof decorator); } } if (descriptor.initializer !== undefined) { initializers[key] = descriptor; continue; } } Object.defineProperty(target, key, descriptor); } } return function (Constructor, protoProps, staticProps, protoInitializers, staticInitializers) { if (protoProps) defineProperties(Constructor.prototype, protoProps, protoInitializers); if (staticProps) defineProperties(Constructor, staticProps, staticInitializers); return Constructor; }; })();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

function _defineDecoratedPropertyDescriptor(target, key, descriptors) { var _descriptor = descriptors[key]; if (!_descriptor) return; var descriptor = {}; for (var _key in _descriptor) descriptor[_key] = _descriptor[_key]; descriptor.value = descriptor.initializer ? descriptor.initializer.call(target) : undefined; Object.defineProperty(target, key, descriptor); }

var GridToolbar = (function () {
var _instanceInitializers = {};

_createDecoratedClass(GridToolbar, [{
key: 'templates',
decorators: [_aureliaTemplating.children(_commonConstants.constants.elementPrefix + 'template')],
initializer: null,
enumerable: true
}], null, _instanceInitializers);

function GridToolbar(templateGatherer) {
_classCallCheck(this, _GridToolbar);

_defineDecoratedPropertyDescriptor(this, 'templates', _instanceInitializers);

this.templateGatherer = templateGatherer;
}

GridToolbar.prototype.bind = function bind() {
this.templateGatherer.useTemplates(this, 'GridToolbarItem', this.templates);
};

var _GridToolbar = GridToolbar;
GridToolbar = _aureliaDependencyInjection.inject(_commonTemplateGatherer.TemplateGatherer)(GridToolbar) || GridToolbar;
GridToolbar = _commonDecorators.generateBindables('GridToolbarItem')(GridToolbar) || GridToolbar;
GridToolbar = _aureliaTemplating.customElement(_commonConstants.constants.elementPrefix + 'grid-toolbar')(GridToolbar) || GridToolbar;
return GridToolbar;
})();

exports.GridToolbar = GridToolbar;
});
Loading

0 comments on commit f3b5d58

Please sign in to comment.