@wizishop/angular-components 0.0.125 → 0.0.126
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/wizishop-angular-components.umd.js +23 -1
- package/bundles/wizishop-angular-components.umd.js.map +1 -1
- package/bundles/wizishop-angular-components.umd.min.js +1 -1
- package/bundles/wizishop-angular-components.umd.min.js.map +1 -1
- package/esm2015/lib/directives/keyboard-events/keypress-enter.directive.js +21 -0
- package/esm2015/lib/directives/shared-directives.module.js +3 -2
- package/esm2015/public-api.js +2 -1
- package/fesm2015/wizishop-angular-components.js +22 -2
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/directives/keyboard-events/keypress-enter.directive.d.ts +7 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/wizishop-angular-components-0.0.126.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.125.tgz +0 -0
|
@@ -633,7 +633,28 @@
|
|
|
633
633
|
ngVar: [{ type: i0.Input }]
|
|
634
634
|
};
|
|
635
635
|
|
|
636
|
-
var
|
|
636
|
+
var KeypressEnterDirective = /** @class */ (function () {
|
|
637
|
+
function KeypressEnterDirective() {
|
|
638
|
+
this.KEYPRESS_ENTER = "Enter";
|
|
639
|
+
this.keypressEnter = new i0.EventEmitter();
|
|
640
|
+
}
|
|
641
|
+
KeypressEnterDirective.prototype.onKeypress = function (event) {
|
|
642
|
+
if (event.key === this.KEYPRESS_ENTER) {
|
|
643
|
+
this.keypressEnter.next(true);
|
|
644
|
+
}
|
|
645
|
+
};
|
|
646
|
+
return KeypressEnterDirective;
|
|
647
|
+
}());
|
|
648
|
+
KeypressEnterDirective.decorators = [
|
|
649
|
+
{ type: i0.Directive, args: [{ selector: '[keypressEnter]' },] }
|
|
650
|
+
];
|
|
651
|
+
KeypressEnterDirective.ctorParameters = function () { return []; };
|
|
652
|
+
KeypressEnterDirective.propDecorators = {
|
|
653
|
+
onKeypress: [{ type: i0.HostListener, args: ['keypress', ['$event'],] }],
|
|
654
|
+
keypressEnter: [{ type: i0.Output }]
|
|
655
|
+
};
|
|
656
|
+
|
|
657
|
+
var directives = [DebounceKeyupDirective, AbstractDebounceDirective, AutoHideDirective, ZindexToggleDirective, VarDirective, KeypressEnterDirective];
|
|
637
658
|
var SharedDirectives = /** @class */ (function () {
|
|
638
659
|
function SharedDirectives() {
|
|
639
660
|
}
|
|
@@ -4303,6 +4324,7 @@
|
|
|
4303
4324
|
exports.InputComponent = InputComponent;
|
|
4304
4325
|
exports.InputSearchComponent = InputSearchComponent;
|
|
4305
4326
|
exports.InputWithSelectComponent = InputWithSelectComponent;
|
|
4327
|
+
exports.KeypressEnterDirective = KeypressEnterDirective;
|
|
4306
4328
|
exports.LabelComponent = LabelComponent;
|
|
4307
4329
|
exports.LinkComponent = LinkComponent;
|
|
4308
4330
|
exports.LoaderComponent = LoaderComponent;
|