Skip to content

Commit a76f58d

Browse files
committed
Fixed build warnings
1 parent 98fa45f commit a76f58d

5 files changed

Lines changed: 55 additions & 30 deletions

File tree

.spelling.dic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ cejst
99
chartjs
1010
comstock
1111
consolas
12+
cspell
1213
dotenvx
1314
eeej
1415
eisa

angular.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"tsConfig": "tsconfig.app.json",
3535
"inlineStyleLanguage": "scss",
3636
"allowedCommonJsDependencies": [
37+
"hammerjs",
3738
"swagger-ui-dist/swagger-ui-es-bundle"
3839
],
3940
"assets": [
@@ -63,7 +64,7 @@
6364
"budgets": [
6465
{
6566
"type": "initial",
66-
"maximumWarning": "3mb",
67+
"maximumWarning": "4mb",
6768
"maximumError": "5mb"
6869
},
6970
{

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,13 @@
5151
"@jsverse/transloco": "^7.5.1",
5252
"ag-grid-angular": "^33.1.1",
5353
"ag-grid-community": "^33.1.1",
54-
"chart.js": "^4.5.0",
54+
"chart.js": "^4.5.1",
5555
"chartjs-plugin-annotation": "^3.1.0",
5656
"chartjs-plugin-zoom": "^2.2.0",
5757
"crypto-es": "^2.1.0",
5858
"cspell": "^8.17.3",
59-
"file-saver": "^2.0.5",
6059
"jwt-decode": "^4.0.0",
61-
"lodash-es": "^4.17.21",
60+
"lodash-es": "^4.17.23",
6261
"luxon": "^3.5.0",
6362
"material-icons": "^1.13.14",
6463
"ngx-wig": "^19.1.1",

pnpm-lock.yaml

Lines changed: 40 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/modules/organizations/columns/mappings/mappings.component.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import type {
1414
IRowNode,
1515
ValueFormatterParams,
1616
} from 'ag-grid-community'
17-
import { saveAs } from 'file-saver'
1817
import { combineLatest, filter, type Observable, Subject, switchMap, takeUntil, tap } from 'rxjs'
1918
import type { Column, ColumnMapping, ColumnMappingProfile } from '@seed/api'
2019
import { ColumnMappingProfileService, MappableColumnService } from '@seed/api'
@@ -460,7 +459,7 @@ export class MappingsComponent implements ComponentCanDeactivate, OnDestroy, OnI
460459
.export(this.orgId, this.selectedProfile.id)
461460
.pipe(takeUntil(this._unsubscribeAll$))
462461
.subscribe((blob) => {
463-
saveAs(blob, filename) // eslint-disable-line @typescript-eslint/no-unsafe-call
462+
this._downloadBlob(blob, filename)
464463
})
465464
}
466465

@@ -514,4 +513,13 @@ export class MappingsComponent implements ComponentCanDeactivate, OnDestroy, OnI
514513
from_field_value: rowNode.data.from_field_value,
515514
} as ColumnMapping
516515
}
516+
517+
private _downloadBlob(blob: Blob, filename: string): void {
518+
const url = URL.createObjectURL(blob)
519+
const anchor = document.createElement('a')
520+
anchor.href = url
521+
anchor.download = filename
522+
anchor.click()
523+
URL.revokeObjectURL(url)
524+
}
517525
}

0 commit comments

Comments
 (0)