@apipass/inputs 0.2.1-alpha.15 → 0.2.1-alpha.17
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/apipass-inputs.umd.js +39 -4
- package/bundles/apipass-inputs.umd.js.map +1 -1
- package/bundles/apipass-inputs.umd.min.js +2 -2
- package/bundles/apipass-inputs.umd.min.js.map +1 -1
- package/debounce-model-directive/debouceInput.directive.d.ts +14 -0
- package/esm2015/debounce-model-directive/debouceInput.directive.js +31 -0
- package/esm2015/inputs.module.js +10 -5
- package/esm2015/public-api.js +2 -1
- package/fesm2015/apipass-inputs.js +36 -6
- package/fesm2015/apipass-inputs.js.map +1 -1
- package/inputs.module.d.ts +18 -17
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -2542,6 +2542,36 @@
|
|
|
2542
2542
|
}] });
|
|
2543
2543
|
})();
|
|
2544
2544
|
|
|
2545
|
+
var DebouceInputDirective = /** @class */ (function () {
|
|
2546
|
+
function DebouceInputDirective(ngModel) {
|
|
2547
|
+
var _this = this;
|
|
2548
|
+
this.ngModel = ngModel;
|
|
2549
|
+
this.debounceTime = 500;
|
|
2550
|
+
this.onDebounceTriggered = new i0.EventEmitter();
|
|
2551
|
+
this.subscription = this.ngModel.control.valueChanges.pipe(operators.skip(1), operators.distinctUntilChanged(), operators.debounceTime(this.debounceTime)).subscribe(function (value) { return _this.onDebounceTriggered.emit(value); });
|
|
2552
|
+
}
|
|
2553
|
+
DebouceInputDirective.prototype.ngOnDestroy = function () {
|
|
2554
|
+
if (this.subscription) {
|
|
2555
|
+
this.subscription.unsubscribe();
|
|
2556
|
+
}
|
|
2557
|
+
};
|
|
2558
|
+
return DebouceInputDirective;
|
|
2559
|
+
}());
|
|
2560
|
+
DebouceInputDirective.ɵfac = function DebouceInputDirective_Factory(t) { return new (t || DebouceInputDirective)(i0.ɵɵdirectiveInject(i4.NgModel)); };
|
|
2561
|
+
DebouceInputDirective.ɵdir = i0.ɵɵdefineDirective({ type: DebouceInputDirective, selectors: [["", "debounceInput", ""]], inputs: { debounceTime: "debounceTime" }, outputs: { onDebounceTriggered: "onDebounceTriggered" } });
|
|
2562
|
+
/*@__PURE__*/ (function () {
|
|
2563
|
+
i0.ɵsetClassMetadata(DebouceInputDirective, [{
|
|
2564
|
+
type: i0.Directive,
|
|
2565
|
+
args: [{
|
|
2566
|
+
selector: '[debounceInput]',
|
|
2567
|
+
}]
|
|
2568
|
+
}], function () { return [{ type: i4.NgModel }]; }, { debounceTime: [{
|
|
2569
|
+
type: i0.Input
|
|
2570
|
+
}], onDebounceTriggered: [{
|
|
2571
|
+
type: i0.Output
|
|
2572
|
+
}] });
|
|
2573
|
+
})();
|
|
2574
|
+
|
|
2545
2575
|
var InputsModule = /** @class */ (function () {
|
|
2546
2576
|
function InputsModule() {
|
|
2547
2577
|
}
|
|
@@ -2579,7 +2609,8 @@
|
|
|
2579
2609
|
CustomSelectComponent,
|
|
2580
2610
|
FieldComponent,
|
|
2581
2611
|
AceEditorComponent,
|
|
2582
|
-
AceEditorDirective
|
|
2612
|
+
AceEditorDirective,
|
|
2613
|
+
DebouceInputDirective], imports: [i1$4.RouterModule, i2.CommonModule,
|
|
2583
2614
|
i4.FormsModule,
|
|
2584
2615
|
i1.MatFormFieldModule,
|
|
2585
2616
|
i3.MatInputModule,
|
|
@@ -2604,7 +2635,8 @@
|
|
|
2604
2635
|
CustomSelectComponent,
|
|
2605
2636
|
FieldComponent,
|
|
2606
2637
|
AceEditorComponent,
|
|
2607
|
-
AceEditorDirective
|
|
2638
|
+
AceEditorDirective,
|
|
2639
|
+
DebouceInputDirective] });
|
|
2608
2640
|
})();
|
|
2609
2641
|
/*@__PURE__*/ (function () {
|
|
2610
2642
|
i0.ɵsetClassMetadata(InputsModule, [{
|
|
@@ -2641,7 +2673,8 @@
|
|
|
2641
2673
|
CustomSelectComponent,
|
|
2642
2674
|
FieldComponent,
|
|
2643
2675
|
AceEditorComponent,
|
|
2644
|
-
AceEditorDirective
|
|
2676
|
+
AceEditorDirective,
|
|
2677
|
+
DebouceInputDirective
|
|
2645
2678
|
],
|
|
2646
2679
|
exports: [
|
|
2647
2680
|
SelectBoxComponent,
|
|
@@ -2655,7 +2688,8 @@
|
|
|
2655
2688
|
CustomSelectComponent,
|
|
2656
2689
|
FieldComponent,
|
|
2657
2690
|
AceEditorComponent,
|
|
2658
|
-
AceEditorDirective
|
|
2691
|
+
AceEditorDirective,
|
|
2692
|
+
DebouceInputDirective
|
|
2659
2693
|
],
|
|
2660
2694
|
providers: [],
|
|
2661
2695
|
}]
|
|
@@ -2670,6 +2704,7 @@
|
|
|
2670
2704
|
exports.AceEditorDirective = AceEditorDirective;
|
|
2671
2705
|
exports.CustomSelectComponent = CustomSelectComponent;
|
|
2672
2706
|
exports.CustomSelectItem = CustomSelectItem;
|
|
2707
|
+
exports.DebouceInputDirective = DebouceInputDirective;
|
|
2673
2708
|
exports.FieldComponent = FieldComponent;
|
|
2674
2709
|
exports.InputAvatarComponent = InputAvatarComponent;
|
|
2675
2710
|
exports.InputBooleanComponent = InputBooleanComponent;
|