Skip to content

Commit 012f7e3

Browse files
chore(all): prepare release 1.0.0-beta.1.0.3
1 parent 9b61a68 commit 012f7e3

15 files changed

+1266
-1153
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aurelia-templating",
3-
"version": "1.0.0-beta.1.0.2",
3+
"version": "1.0.0-beta.1.0.3",
44
"description": "An extensible HTML templating engine supporting databinding, custom elements, attached behaviors and more.",
55
"keywords": [
66
"aurelia",

config.js

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ System.config({
1414
},
1515

1616
map: {
17-
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.1.0.3",
18-
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.1",
19-
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.1",
17+
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.1.0.4",
18+
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.1.0.1",
19+
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.1.0.1",
2020
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1",
2121
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1",
22-
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.0.1",
23-
"aurelia-pal-browser": "npm:aurelia-pal-browser@1.0.0-beta.1.0.1",
22+
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.0.2",
23+
"aurelia-pal-browser": "npm:aurelia-pal-browser@1.0.0-beta.1.0.3",
2424
"aurelia-path": "npm:aurelia-path@1.0.0-beta.1",
2525
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.1.0.1",
2626
"babel": "npm:babel-core@5.8.34",
@@ -41,31 +41,32 @@ System.config({
4141
"npm:assert@1.3.0": {
4242
"util": "npm:util@0.10.3"
4343
},
44-
"npm:aurelia-binding@1.0.0-beta.1.0.3": {
44+
"npm:aurelia-binding@1.0.0-beta.1.0.4": {
4545
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1",
46-
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.0.1",
46+
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.0.2",
4747
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.1.0.1",
4848
"core-js": "npm:core-js@1.2.6"
4949
},
50-
"npm:aurelia-dependency-injection@1.0.0-beta.1": {
50+
"npm:aurelia-dependency-injection@1.0.0-beta.1.0.1": {
5151
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1",
5252
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1",
53-
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.0.1",
53+
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.0.2",
5454
"core-js": "npm:core-js@1.2.6"
5555
},
56-
"npm:aurelia-loader@1.0.0-beta.1": {
56+
"npm:aurelia-loader@1.0.0-beta.1.0.1": {
5757
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1",
5858
"aurelia-path": "npm:aurelia-path@1.0.0-beta.1"
5959
},
6060
"npm:aurelia-metadata@1.0.0-beta.1": {
61-
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.0.1",
61+
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.0.2",
6262
"core-js": "npm:core-js@1.2.6"
6363
},
64-
"npm:aurelia-pal-browser@1.0.0-beta.1.0.1": {
65-
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.0.1"
64+
"npm:aurelia-pal-browser@1.0.0-beta.1.0.3": {
65+
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.0.2",
66+
"core-js": "npm:core-js@1.2.6"
6667
},
6768
"npm:aurelia-task-queue@1.0.0-beta.1.0.1": {
68-
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.0.1"
69+
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.0.2"
6970
},
7071
"npm:babel-runtime@5.8.34": {
7172
"process": "github:jspm/nodelibs-process@0.1.2"

dist/amd/aurelia-templating.d.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ declare module 'aurelia-templating' {
148148
*/
149149
viewResources: ViewResources;
150150

151+
/**
152+
* The view inside which this composition is happening.
153+
*/
154+
owningView?: View;
155+
151156
/**
152157
* The view url or view strategy to override the default view location convention.
153158
*/
@@ -1170,14 +1175,15 @@ declare module 'aurelia-templating' {
11701175
* Invoked when the view which contains this controller is created.
11711176
* @param owningView The view inside which this controller resides.
11721177
*/
1173-
created(owningView: any): void;
1178+
created(owningView: View): void;
11741179

11751180
/**
11761181
* Used to automate the proper binding of this controller and its view. Used by the composition engine for dynamic component creation.
11771182
* This should be considered a semi-private API and is subject to change without notice, even across minor or patch releases.
11781183
* @param overrideContext An override context for binding.
1184+
* @param owningView The view inside which this controller resides.
11791185
*/
1180-
automate(overrideContext?: Object): void;
1186+
automate(overrideContext?: Object, owningView?: View): void;
11811187

11821188
/**
11831189
* Binds the controller to the scope.

dist/amd/aurelia-templating.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2697,10 +2697,15 @@ define(['exports', 'core-js', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pa
26972697
}
26982698
};
26992699

2700-
Controller.prototype.automate = function automate(overrideContext) {
2700+
Controller.prototype.automate = function automate(overrideContext, owningView) {
27012701
this.view.bindingContext = this.viewModel;
27022702
this.view.overrideContext = overrideContext || _aureliaBinding.createOverrideContext(this.viewModel);
27032703
this.view._isUserControlled = true;
2704+
2705+
if (this.behavior.handlesCreated) {
2706+
this.viewModel.created(owningView || null, this.view);
2707+
}
2708+
27042709
this.bind(this.view);
27052710
};
27062711

@@ -3706,7 +3711,7 @@ define(['exports', 'core-js', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pa
37063711
context.currentController.unbind();
37073712
}
37083713

3709-
controller.automate();
3714+
controller.automate(context.overrideContext, context.owningView);
37103715
context.viewSlot.add(controller.view);
37113716

37123717
return controller;

dist/aurelia-templating.d.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ declare module 'aurelia-templating' {
148148
*/
149149
viewResources: ViewResources;
150150

151+
/**
152+
* The view inside which this composition is happening.
153+
*/
154+
owningView?: View;
155+
151156
/**
152157
* The view url or view strategy to override the default view location convention.
153158
*/
@@ -1170,14 +1175,15 @@ declare module 'aurelia-templating' {
11701175
* Invoked when the view which contains this controller is created.
11711176
* @param owningView The view inside which this controller resides.
11721177
*/
1173-
created(owningView: any): void;
1178+
created(owningView: View): void;
11741179

11751180
/**
11761181
* Used to automate the proper binding of this controller and its view. Used by the composition engine for dynamic component creation.
11771182
* This should be considered a semi-private API and is subject to change without notice, even across minor or patch releases.
11781183
* @param overrideContext An override context for binding.
1184+
* @param owningView The view inside which this controller resides.
11791185
*/
1180-
automate(overrideContext?: Object): void;
1186+
automate(overrideContext?: Object, owningView?: View): void;
11811187

11821188
/**
11831189
* Binds the controller to the scope.

dist/aurelia-templating.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3247,7 +3247,7 @@ export class Controller {
32473247
* Invoked when the view which contains this controller is created.
32483248
* @param owningView The view inside which this controller resides.
32493249
*/
3250-
created(owningView): void {
3250+
created(owningView: View): void {
32513251
if (this.behavior.handlesCreated) {
32523252
this.viewModel.created(owningView, this.view);
32533253
}
@@ -3257,11 +3257,17 @@ export class Controller {
32573257
* Used to automate the proper binding of this controller and its view. Used by the composition engine for dynamic component creation.
32583258
* This should be considered a semi-private API and is subject to change without notice, even across minor or patch releases.
32593259
* @param overrideContext An override context for binding.
3260+
* @param owningView The view inside which this controller resides.
32603261
*/
3261-
automate(overrideContext?: Object): void {
3262+
automate(overrideContext?: Object, owningView?: View): void {
32623263
this.view.bindingContext = this.viewModel;
32633264
this.view.overrideContext = overrideContext || createOverrideContext(this.viewModel);
32643265
this.view._isUserControlled = true;
3266+
3267+
if(this.behavior.handlesCreated) {
3268+
this.viewModel.created(owningView || null, this.view);
3269+
}
3270+
32653271
this.bind(this.view);
32663272
}
32673273

@@ -4378,6 +4384,10 @@ interface CompositionContext {
43784384
*/
43794385
viewResources: ViewResources;
43804386
/**
4387+
* The view inside which this composition is happening.
4388+
*/
4389+
owningView?: View;
4390+
/**
43814391
* The view url or view strategy to override the default view location convention.
43824392
*/
43834393
view?: string | ViewStrategy;
@@ -4421,7 +4431,7 @@ export class CompositionEngine {
44214431
context.currentController.unbind();
44224432
}
44234433

4424-
controller.automate();
4434+
controller.automate(context.overrideContext, context.owningView);
44254435
context.viewSlot.add(controller.view);
44264436

44274437
return controller;

dist/commonjs/aurelia-templating.d.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ declare module 'aurelia-templating' {
148148
*/
149149
viewResources: ViewResources;
150150

151+
/**
152+
* The view inside which this composition is happening.
153+
*/
154+
owningView?: View;
155+
151156
/**
152157
* The view url or view strategy to override the default view location convention.
153158
*/
@@ -1170,14 +1175,15 @@ declare module 'aurelia-templating' {
11701175
* Invoked when the view which contains this controller is created.
11711176
* @param owningView The view inside which this controller resides.
11721177
*/
1173-
created(owningView: any): void;
1178+
created(owningView: View): void;
11741179

11751180
/**
11761181
* Used to automate the proper binding of this controller and its view. Used by the composition engine for dynamic component creation.
11771182
* This should be considered a semi-private API and is subject to change without notice, even across minor or patch releases.
11781183
* @param overrideContext An override context for binding.
1184+
* @param owningView The view inside which this controller resides.
11791185
*/
1180-
automate(overrideContext?: Object): void;
1186+
automate(overrideContext?: Object, owningView?: View): void;
11811187

11821188
/**
11831189
* Binds the controller to the scope.

dist/commonjs/aurelia-templating.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2718,10 +2718,15 @@ var Controller = (function () {
27182718
}
27192719
};
27202720

2721-
Controller.prototype.automate = function automate(overrideContext) {
2721+
Controller.prototype.automate = function automate(overrideContext, owningView) {
27222722
this.view.bindingContext = this.viewModel;
27232723
this.view.overrideContext = overrideContext || _aureliaBinding.createOverrideContext(this.viewModel);
27242724
this.view._isUserControlled = true;
2725+
2726+
if (this.behavior.handlesCreated) {
2727+
this.viewModel.created(owningView || null, this.view);
2728+
}
2729+
27252730
this.bind(this.view);
27262731
};
27272732

@@ -3727,7 +3732,7 @@ var CompositionEngine = (function () {
37273732
context.currentController.unbind();
37283733
}
37293734

3730-
controller.automate();
3735+
controller.automate(context.overrideContext, context.owningView);
37313736
context.viewSlot.add(controller.view);
37323737

37333738
return controller;

dist/es6/aurelia-templating.d.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ declare module 'aurelia-templating' {
148148
*/
149149
viewResources: ViewResources;
150150

151+
/**
152+
* The view inside which this composition is happening.
153+
*/
154+
owningView?: View;
155+
151156
/**
152157
* The view url or view strategy to override the default view location convention.
153158
*/
@@ -1170,14 +1175,15 @@ declare module 'aurelia-templating' {
11701175
* Invoked when the view which contains this controller is created.
11711176
* @param owningView The view inside which this controller resides.
11721177
*/
1173-
created(owningView: any): void;
1178+
created(owningView: View): void;
11741179

11751180
/**
11761181
* Used to automate the proper binding of this controller and its view. Used by the composition engine for dynamic component creation.
11771182
* This should be considered a semi-private API and is subject to change without notice, even across minor or patch releases.
11781183
* @param overrideContext An override context for binding.
1184+
* @param owningView The view inside which this controller resides.
11791185
*/
1180-
automate(overrideContext?: Object): void;
1186+
automate(overrideContext?: Object, owningView?: View): void;
11811187

11821188
/**
11831189
* Binds the controller to the scope.

dist/es6/aurelia-templating.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3247,7 +3247,7 @@ export class Controller {
32473247
* Invoked when the view which contains this controller is created.
32483248
* @param owningView The view inside which this controller resides.
32493249
*/
3250-
created(owningView): void {
3250+
created(owningView: View): void {
32513251
if (this.behavior.handlesCreated) {
32523252
this.viewModel.created(owningView, this.view);
32533253
}
@@ -3257,11 +3257,17 @@ export class Controller {
32573257
* Used to automate the proper binding of this controller and its view. Used by the composition engine for dynamic component creation.
32583258
* This should be considered a semi-private API and is subject to change without notice, even across minor or patch releases.
32593259
* @param overrideContext An override context for binding.
3260+
* @param owningView The view inside which this controller resides.
32603261
*/
3261-
automate(overrideContext?: Object): void {
3262+
automate(overrideContext?: Object, owningView?: View): void {
32623263
this.view.bindingContext = this.viewModel;
32633264
this.view.overrideContext = overrideContext || createOverrideContext(this.viewModel);
32643265
this.view._isUserControlled = true;
3266+
3267+
if(this.behavior.handlesCreated) {
3268+
this.viewModel.created(owningView || null, this.view);
3269+
}
3270+
32653271
this.bind(this.view);
32663272
}
32673273

@@ -4378,6 +4384,10 @@ interface CompositionContext {
43784384
*/
43794385
viewResources: ViewResources;
43804386
/**
4387+
* The view inside which this composition is happening.
4388+
*/
4389+
owningView?: View;
4390+
/**
43814391
* The view url or view strategy to override the default view location convention.
43824392
*/
43834393
view?: string | ViewStrategy;
@@ -4421,7 +4431,7 @@ export class CompositionEngine {
44214431
context.currentController.unbind();
44224432
}
44234433

4424-
controller.automate();
4434+
controller.automate(context.overrideContext, context.owningView);
44254435
context.viewSlot.add(controller.view);
44264436

44274437
return controller;

0 commit comments

Comments
 (0)