@sumaris-net/ngx-components 1.6.18 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/sumaris-net.ngx-components.umd.js +41 -2
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/doc/changelog.md +4 -0
- package/esm2015/public_api.js +2 -1
- package/esm2015/src/app/shared/directives/directives.module.js +6 -3
- package/esm2015/src/app/shared/directives/ng-var.directive.js +32 -0
- package/fesm2015/sumaris-net.ngx-components.js +37 -4
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/src/app/shared/directives/ng-var.directive.d.ts +9 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -4566,6 +4566,42 @@
|
|
|
4566
4566
|
{ type: ngx.Keyboard, decorators: [{ type: i0.Optional }] }
|
|
4567
4567
|
]; };
|
|
4568
4568
|
|
|
4569
|
+
var NgVarDirective = /** @class */ (function () {
|
|
4570
|
+
function NgVarDirective(templateRef, vcRef) {
|
|
4571
|
+
this.templateRef = templateRef;
|
|
4572
|
+
this.vcRef = vcRef;
|
|
4573
|
+
this.context = {
|
|
4574
|
+
$implicit: null,
|
|
4575
|
+
ngVar: null,
|
|
4576
|
+
};
|
|
4577
|
+
this.hasView = false;
|
|
4578
|
+
}
|
|
4579
|
+
Object.defineProperty(NgVarDirective.prototype, "ngVar", {
|
|
4580
|
+
set: function (context) {
|
|
4581
|
+
this.context.$implicit = this.context.ngVar = context;
|
|
4582
|
+
if (!this.hasView) {
|
|
4583
|
+
this.vcRef.createEmbeddedView(this.templateRef, this.context);
|
|
4584
|
+
this.hasView = true;
|
|
4585
|
+
}
|
|
4586
|
+
},
|
|
4587
|
+
enumerable: false,
|
|
4588
|
+
configurable: true
|
|
4589
|
+
});
|
|
4590
|
+
return NgVarDirective;
|
|
4591
|
+
}());
|
|
4592
|
+
NgVarDirective.decorators = [
|
|
4593
|
+
{ type: i0.Directive, args: [{
|
|
4594
|
+
selector: '[ngVar]',
|
|
4595
|
+
},] }
|
|
4596
|
+
];
|
|
4597
|
+
NgVarDirective.ctorParameters = function () { return [
|
|
4598
|
+
{ type: i0.TemplateRef },
|
|
4599
|
+
{ type: i0.ViewContainerRef }
|
|
4600
|
+
]; };
|
|
4601
|
+
NgVarDirective.propDecorators = {
|
|
4602
|
+
ngVar: [{ type: i0.Input }]
|
|
4603
|
+
};
|
|
4604
|
+
|
|
4569
4605
|
var SharedDirectivesModule = /** @class */ (function () {
|
|
4570
4606
|
function SharedDirectivesModule() {
|
|
4571
4607
|
}
|
|
@@ -4578,10 +4614,12 @@
|
|
|
4578
4614
|
i1$5.IonicModule
|
|
4579
4615
|
],
|
|
4580
4616
|
declarations: [
|
|
4581
|
-
AutofocusDirective
|
|
4617
|
+
AutofocusDirective,
|
|
4618
|
+
NgVarDirective
|
|
4582
4619
|
],
|
|
4583
4620
|
exports: [
|
|
4584
|
-
AutofocusDirective
|
|
4621
|
+
AutofocusDirective,
|
|
4622
|
+
NgVarDirective
|
|
4585
4623
|
]
|
|
4586
4624
|
},] }
|
|
4587
4625
|
];
|
|
@@ -29205,6 +29243,7 @@
|
|
|
29205
29243
|
exports.ModalToolbarComponent = ModalToolbarComponent;
|
|
29206
29244
|
exports.NetworkService = NetworkService;
|
|
29207
29245
|
exports.NgInitDirective = NgInitDirective;
|
|
29246
|
+
exports.NgVarDirective = NgVarDirective;
|
|
29208
29247
|
exports.NotEmptyArrayPipe = NotEmptyArrayPipe;
|
|
29209
29248
|
exports.NumberFormatPipe = NumberFormatPipe;
|
|
29210
29249
|
exports.NumpadDirective = NumpadDirective;
|