@abgov/angular-components 5.2.0-dev.1 → 5.2.0-dev.3

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.
@@ -2107,7 +2107,9 @@ class GoabDrawer {
2107
2107
  this.cdr.detectChanges();
2108
2108
  }, 0);
2109
2109
  }
2110
- _onClose() {
2110
+ _onClose(event) {
2111
+ if (event.target !== event.currentTarget)
2112
+ return;
2111
2113
  this.onClose.emit();
2112
2114
  }
2113
2115
  getHeadingAsString() {
@@ -2127,7 +2129,7 @@ class GoabDrawer {
2127
2129
  [attr.maxsize]="maxSize"
2128
2130
  [attr.testid]="testId"
2129
2131
  [attr.version]="version"
2130
- (_close)="_onClose()"
2132
+ (_close)="_onClose($event)"
2131
2133
  >
2132
2134
  <ng-content></ng-content>
2133
2135
  <div slot="heading">
@@ -2153,7 +2155,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImpor
2153
2155
  [attr.maxsize]="maxSize"
2154
2156
  [attr.testid]="testId"
2155
2157
  [attr.version]="version"
2156
- (_close)="_onClose()"
2158
+ (_close)="_onClose($event)"
2157
2159
  >
2158
2160
  <ng-content></ng-content>
2159
2161
  <div slot="heading">
@@ -4845,7 +4847,9 @@ class GoabModal {
4845
4847
  return null;
4846
4848
  return this.heading instanceof TemplateRef ? this.heading : null;
4847
4849
  }
4848
- _onClose() {
4850
+ _onClose(event) {
4851
+ if (event.target !== event.currentTarget)
4852
+ return;
4849
4853
  this.onClose.emit();
4850
4854
  }
4851
4855
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GoabModal, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
@@ -4861,7 +4865,7 @@ class GoabModal {
4861
4865
  [attr.closable]="closable"
4862
4866
  [attr.transition]="transition"
4863
4867
  [attr.heading]="getHeadingAsString()"
4864
- (_close)="_onClose()"
4868
+ (_close)="_onClose($event)"
4865
4869
  >
4866
4870
  <div slot="heading">
4867
4871
  @if (this.heading !== "" && getHeadingAsTemplate() !== null) {
@@ -4898,7 +4902,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImpor
4898
4902
  [attr.closable]="closable"
4899
4903
  [attr.transition]="transition"
4900
4904
  [attr.heading]="getHeadingAsString()"
4901
- (_close)="_onClose()"
4905
+ (_close)="_onClose($event)"
4902
4906
  >
4903
4907
  <div slot="heading">
4904
4908
  @if (this.heading !== "" && getHeadingAsTemplate() !== null) {
@@ -5409,7 +5413,9 @@ class GoabPushDrawer {
5409
5413
  this.cdr.detectChanges();
5410
5414
  }, 0);
5411
5415
  }
5412
- _onClose() {
5416
+ _onClose(event) {
5417
+ if (event.target !== event.currentTarget)
5418
+ return;
5413
5419
  this.onClose.emit();
5414
5420
  }
5415
5421
  getHeadingAsString() {
@@ -5428,7 +5434,7 @@ class GoabPushDrawer {
5428
5434
  [attr.testid]="testId"
5429
5435
  [attr.width]="width"
5430
5436
  [attr.version]="version"
5431
- (_close)="_onClose()"
5437
+ (_close)="_onClose($event)"
5432
5438
  >
5433
5439
  <ng-content></ng-content>
5434
5440
  <div slot="heading">
@@ -5455,7 +5461,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImpor
5455
5461
  [attr.testid]="testId"
5456
5462
  [attr.width]="width"
5457
5463
  [attr.version]="version"
5458
- (_close)="_onClose()"
5464
+ (_close)="_onClose($event)"
5459
5465
  >
5460
5466
  <ng-content></ng-content>
5461
5467
  <div slot="heading">
@@ -6174,6 +6180,7 @@ class GoabTableSortHeader {
6174
6180
  constructor() {
6175
6181
  this.cdr = inject(ChangeDetectorRef);
6176
6182
  this.isReady = false;
6183
+ this.version = "2";
6177
6184
  /** Sets the sort direction indicator. @default "none" */
6178
6185
  this.direction = "none";
6179
6186
  }
@@ -6190,6 +6197,7 @@ class GoabTableSortHeader {
6190
6197
  [attr.name]="name"
6191
6198
  [attr.direction]="direction"
6192
6199
  [attr.sort-order]="sortOrder"
6200
+ [attr.version]="version"
6193
6201
  >
6194
6202
  <ng-content />
6195
6203
  </goa-table-sort-header>
@@ -6207,6 +6215,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImpor
6207
6215
  [attr.name]="name"
6208
6216
  [attr.direction]="direction"
6209
6217
  [attr.sort-order]="sortOrder"
6218
+ [attr.version]="version"
6210
6219
  >
6211
6220
  <ng-content />
6212
6221
  </goa-table-sort-header>