@db-ux/ngx-core-components 2.0.4 → 2.0.6

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.
@@ -166,6 +166,7 @@ const getSearchInput = (element) => element.querySelector(`input[type="search"]`
166
166
  const defaultProps$z = {};
167
167
  class DBButton {
168
168
  handleClick(event) {
169
+ event.stopPropagation();
169
170
  if (this.click) {
170
171
  this.click.emit(event);
171
172
  }
@@ -397,6 +398,7 @@ const TESTING_VIEWPORTS = [{
397
398
  const defaultProps$y = {};
398
399
  class DBNotification {
399
400
  handleClose(event) {
401
+ event.stopPropagation();
400
402
  if (this.close) {
401
403
  this.close.emit(event);
402
404
  }
@@ -744,6 +746,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
744
746
  const defaultProps$v = {};
745
747
  class DBCard {
746
748
  handleClick(event) {
749
+ event.stopPropagation();
747
750
  if (this.click) {
748
751
  this.click.emit(event);
749
752
  }
@@ -962,6 +965,7 @@ class DBCheckbox {
962
965
  }
963
966
  }
964
967
  handleChange(event) {
968
+ event.stopPropagation();
965
969
  if (this.change) {
966
970
  this.change.emit(event);
967
971
  }
@@ -969,11 +973,13 @@ class DBCheckbox {
969
973
  this.handleValidation();
970
974
  }
971
975
  handleBlur(event) {
976
+ event.stopPropagation();
972
977
  if (this.blur) {
973
978
  this.blur.emit(event);
974
979
  }
975
980
  }
976
981
  handleFocus(event) {
982
+ event.stopPropagation();
977
983
  if (this.focus) {
978
984
  this.focus.emit(event);
979
985
  }
@@ -2024,6 +2030,7 @@ class DBInput {
2024
2030
  }
2025
2031
  }
2026
2032
  handleInput(event) {
2033
+ event.stopPropagation();
2027
2034
  if (this.input) {
2028
2035
  this.input.emit(event);
2029
2036
  }
@@ -2031,6 +2038,7 @@ class DBInput {
2031
2038
  this.handleValidation();
2032
2039
  }
2033
2040
  handleChange(event) {
2041
+ event.stopPropagation();
2034
2042
  if (this.change) {
2035
2043
  this.change.emit(event);
2036
2044
  }
@@ -2038,11 +2046,13 @@ class DBInput {
2038
2046
  this.handleValidation();
2039
2047
  }
2040
2048
  handleBlur(event) {
2049
+ event.stopPropagation();
2041
2050
  if (this.blur) {
2042
2051
  this.blur.emit(event);
2043
2052
  }
2044
2053
  }
2045
2054
  handleFocus(event) {
2055
+ event.stopPropagation();
2046
2056
  if (this.focus) {
2047
2057
  this.focus.emit(event);
2048
2058
  }
@@ -2370,6 +2380,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
2370
2380
  const defaultProps$n = {};
2371
2381
  class DBLink {
2372
2382
  handleClick(event) {
2383
+ event.stopPropagation();
2373
2384
  if (this.click) {
2374
2385
  this.click.emit(event);
2375
2386
  }
@@ -2608,17 +2619,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
2608
2619
  const defaultProps$l = {};
2609
2620
  class DBRadio {
2610
2621
  handleChange(event) {
2622
+ event.stopPropagation();
2611
2623
  if (this.change) {
2612
2624
  this.change.emit(event);
2613
2625
  }
2614
2626
  handleFrameworkEventAngular(this, event);
2615
2627
  }
2616
2628
  handleBlur(event) {
2629
+ event.stopPropagation();
2617
2630
  if (this.blur) {
2618
2631
  this.blur.emit(event);
2619
2632
  }
2620
2633
  }
2621
2634
  handleFocus(event) {
2635
+ event.stopPropagation();
2622
2636
  if (this.focus) {
2623
2637
  this.focus.emit(event);
2624
2638
  }
@@ -2901,11 +2915,13 @@ class DBSelect {
2901
2915
  }
2902
2916
  }
2903
2917
  handleClick(event) {
2918
+ event.stopPropagation();
2904
2919
  if (this.click) {
2905
2920
  this.click.emit(event);
2906
2921
  }
2907
2922
  }
2908
2923
  handleInput(event) {
2924
+ event.stopPropagation();
2909
2925
  if (this.input) {
2910
2926
  this.input.emit(event);
2911
2927
  }
@@ -2913,6 +2929,7 @@ class DBSelect {
2913
2929
  this.handleValidation();
2914
2930
  }
2915
2931
  handleChange(event) {
2932
+ event.stopPropagation();
2916
2933
  if (this.change) {
2917
2934
  this.change.emit(event);
2918
2935
  }
@@ -2920,11 +2937,13 @@ class DBSelect {
2920
2937
  this.handleValidation();
2921
2938
  }
2922
2939
  handleBlur(event) {
2940
+ event.stopPropagation();
2923
2941
  if (this.blur) {
2924
2942
  this.blur.emit(event);
2925
2943
  }
2926
2944
  }
2927
2945
  handleFocus(event) {
2946
+ event.stopPropagation();
2928
2947
  if (this.focus) {
2929
2948
  this.focus.emit(event);
2930
2949
  }
@@ -3082,6 +3101,7 @@ class DBSelect {
3082
3101
  this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
3083
3102
  }
3084
3103
  ngAfterViewInit() {
3104
+ this.writeValue(this.value());
3085
3105
  this.initialized.set(true);
3086
3106
  const element = this._ref()?.nativeElement;
3087
3107
  this.enableAttributePassing(element, "db-select");
@@ -3255,6 +3275,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
3255
3275
  const defaultProps$i = {};
3256
3276
  class DBSwitch {
3257
3277
  handleChange(event) {
3278
+ event.stopPropagation();
3258
3279
  if (this.change) {
3259
3280
  this.change.emit(event);
3260
3281
  }
@@ -3263,11 +3284,13 @@ class DBSwitch {
3263
3284
  handleFrameworkEventAngular(this, event, "checked");
3264
3285
  }
3265
3286
  handleBlur(event) {
3287
+ event.stopPropagation();
3266
3288
  if (this.blur) {
3267
3289
  this.blur.emit(event);
3268
3290
  }
3269
3291
  }
3270
3292
  handleFocus(event) {
3293
+ event.stopPropagation();
3271
3294
  if (this.focus) {
3272
3295
  this.focus.emit(event);
3273
3296
  }
@@ -3461,6 +3484,7 @@ class DBTabItem {
3461
3484
  }
3462
3485
  }
3463
3486
  handleChange(event) {
3487
+ event.stopPropagation();
3464
3488
  if (this.change) {
3465
3489
  this.change.emit(event);
3466
3490
  }
@@ -3641,6 +3665,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
3641
3665
  const defaultProps$g = {};
3642
3666
  class DBTag {
3643
3667
  handleRemove(event) {
3668
+ event?.stopPropagation();
3644
3669
  if (this.remove) {
3645
3670
  this.remove.emit(event);
3646
3671
  }
@@ -3835,6 +3860,7 @@ class DBTextarea {
3835
3860
  }
3836
3861
  }
3837
3862
  handleInput(event) {
3863
+ event.stopPropagation();
3838
3864
  if (this.input) {
3839
3865
  this.input.emit(event);
3840
3866
  }
@@ -3842,6 +3868,7 @@ class DBTextarea {
3842
3868
  this.handleValidation();
3843
3869
  }
3844
3870
  handleChange(event) {
3871
+ event.stopPropagation();
3845
3872
  if (this.change) {
3846
3873
  this.change.emit(event);
3847
3874
  }
@@ -3849,11 +3876,13 @@ class DBTextarea {
3849
3876
  this.handleValidation();
3850
3877
  }
3851
3878
  handleBlur(event) {
3879
+ event.stopPropagation();
3852
3880
  if (this.blur) {
3853
3881
  this.blur.emit(event);
3854
3882
  }
3855
3883
  }
3856
3884
  handleFocus(event) {
3885
+ event.stopPropagation();
3857
3886
  if (this.focus) {
3858
3887
  this.focus.emit(event);
3859
3888
  }
@@ -4144,6 +4173,7 @@ class DBNavigationItem {
4144
4173
  }
4145
4174
  }
4146
4175
  handleClick(event) {
4176
+ event.stopPropagation();
4147
4177
  if (this.click) {
4148
4178
  this.click.emit(event);
4149
4179
  }
@@ -5325,6 +5355,7 @@ class DBTabs {
5325
5355
  }
5326
5356
  }
5327
5357
  handleChange(event) {
5358
+ event.stopPropagation();
5328
5359
  const list = event.target?.closest("ul");
5329
5360
  const listItem =
5330
5361
  // db-tab-item for angular and stencil wrapping elements