Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Use forked ngx-gallery to fix Ivy support

Oliver Günther1e2de3a52e4b
diff --git a/frontend/npm-shrinkwrap.json b/frontend/npm-shrinkwrap.json
index 464948e855e..54390aeb48e 100644
--- a/frontend/npm-shrinkwrap.json
+++ b/frontend/npm-shrinkwrap.json
@@ -2700,19 +2700,18 @@
}
},
"@fullcalendar/angular": {
- "version": "4.4.0",
- "resolved": "https://registry.npmjs.org/@fullcalendar/angular/-/angular-4.4.0.tgz",
- "integrity": "sha512-GVk88gpDeTknDKkeu8kP6b7gWHQ8R+NZqZmaFY5yoJTorDZ0gLr9cYaxys+InvFVatHWb12aLB7UpNxFAfLHKg==",
+ "version": "4.4.5-beta",
+ "resolved": "https://registry.npmjs.org/@fullcalendar/angular/-/angular-4.4.5-beta.tgz",
+ "integrity": "sha512-L144YrgrgFr75/LGNcDDX9xKy465AZR/EqWPxkdNFgBSeeblH+kf8OMy8K6YcuJDlv4nXw4RucBqbMrrQKvbQw==",
"requires": {
- "@fullcalendar/core": "~4.3.1",
- "fast-deep-equal": "^2.0.1",
- "tslib": "^1.9.0"
+ "@fullcalendar/core": "~4.4.0",
+ "fast-deep-equal": "^3.1.1"
},
"dependencies": {
- "@fullcalendar/core": {
- "version": "4.3.1",
- "resolved": "https://registry.npmjs.org/@fullcalendar/core/-/core-4.3.1.tgz",
- "integrity": "sha512-Eh+p/wpMkWGu26f8NpfQK9ecQMoZxX/aopv+0+4/CH+Ip0paP6iEc40JYgTz7RFl0bFqV1dvwyGyUZ4+9ZeySA=="
+ "fast-deep-equal": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz",
+ "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA=="
}
}
},
@@ -2744,6 +2743,11 @@
"resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz",
"integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw=="
},
+ "@kolkov/ngx-gallery": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/@kolkov/ngx-gallery/-/ngx-gallery-1.0.10.tgz",
+ "integrity": "sha512-A+xzyFLOqsiTzqg4kqZfcy3ESpM+gGEtzjO1RbFNKynRxNNGQ1rX08ewsqu+4eu9F89SSckBFVX/B3dDivFigA=="
+ },
"@ng-select/ng-option-highlight": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/@ng-select/ng-option-highlight/-/ng-option-highlight-0.0.2.tgz",
@@ -9406,11 +9410,6 @@
}
}
},
- "ngx-gallery": {
- "version": "5.10.0",
- "resolved": "https://registry.npmjs.org/ngx-gallery/-/ngx-gallery-5.10.0.tgz",
- "integrity": "sha512-+2DnsBfkIzNQoReOHf6+OMf06+qyQQMyVVN4iQAtL0+KykjVqDZiBwLQtmwajDWMGph6O1HNKLrqTcmgqw+d2A=="
- },
"nice-try": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
diff --git a/frontend/package.json b/frontend/package.json
index bb0440d7c18..74aa2f8d041 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -42,11 +42,12 @@
"@angular/platform-browser": "9.0.0",
"@angular/platform-browser-dynamic": "9.0.0",
"@angular/router": "9.0.0",
- "@fullcalendar/angular": "4.4.0",
+ "@fullcalendar/angular": "4.4.5-beta",
"@fullcalendar/core": "4.4.0",
"@fullcalendar/daygrid": "4.4.0",
- "@fullcalendar/timegrid": "4.4.0",
"@fullcalendar/interaction": "4.3.0",
+ "@fullcalendar/timegrid": "4.4.0",
+ "@kolkov/ngx-gallery": "^1.0.10",
"@ng-select/ng-option-highlight": "0.0.2",
"@ng-select/ng-select": "^3.0.6",
"@sentry/browser": "^5.7.1",
@@ -112,7 +113,6 @@
"ng2-dragula": "^2.1.1",
"ng2-rx-componentdestroyed": "3.0.1",
"ngtemplate-loader": "^2.0.1",
- "ngx-gallery": "^5.10.0",
"node-sass": "^4.13.1",
"observable-array": "0.0.4",
"reactivestates": "2.0.1",
diff --git a/frontend/src/app/modules/bcf/bcf-wp-single-view/bcf-wp-single-view.component.ts b/frontend/src/app/modules/bcf/bcf-wp-single-view/bcf-wp-single-view.component.ts
index 3833d2821d4..c821c59ea32 100644
--- a/frontend/src/app/modules/bcf/bcf-wp-single-view/bcf-wp-single-view.component.ts
+++ b/frontend/src/app/modules/bcf/bcf-wp-single-view/bcf-wp-single-view.component.ts
@@ -3,7 +3,7 @@ import {I18nService} from "core-app/modules/common/i18n/i18n.service";
import {StateService} from "@uirouter/core";
import {WorkPackageResource} from "core-app/modules/hal/resources/work-package-resource";
import {PathHelperService} from "core-app/modules/common/path-helper/path-helper.service";
-import { NgxGalleryOptions, NgxGalleryImage, NgxGalleryAnimation } from 'ngx-gallery';
+import {NgxGalleryImage, NgxGalleryOptions} from '@kolkov/ngx-gallery';
export type ViewPointOriginal = { id:string, file_name:string };
diff --git a/frontend/src/app/modules/bcf/openproject-bcf.module.ts b/frontend/src/app/modules/bcf/openproject-bcf.module.ts
index 361e19411f7..3c1ef680692 100644
--- a/frontend/src/app/modules/bcf/openproject-bcf.module.ts
+++ b/frontend/src/app/modules/bcf/openproject-bcf.module.ts
@@ -29,7 +29,7 @@
import {APP_INITIALIZER, NgModule} from '@angular/core';
import {OpenprojectCommonModule} from "core-app/modules/common/openproject-common.module";
import {BcfWpSingleViewComponent} from "core-app/modules/bcf/bcf-wp-single-view/bcf-wp-single-view.component";
-import {NgxGalleryModule} from "ngx-gallery";
+import {NgxGalleryModule} from "@kolkov/ngx-gallery";
import {DisplayFieldService} from "core-app/modules/fields/display/display-field.service";
import {initializeBcfDisplayFields} from "core-app/modules/bcf/fields/display/bcf-display-field.initializer";
import {BcfImportButtonComponent} from "core-app/modules/bcf/bcf-buttons/bcf-import-button.component";
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json
index 914cf40aaec..2ffa4a8cda1 100644
--- a/frontend/tsconfig.json
+++ b/frontend/tsconfig.json
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"importHelpers": true,
- "target": "es5",
+ "target": "es2015",
"module": "esnext",
"moduleResolution": "node",
"outDir": "./dist/out-tsc",