diff --git a/frontend/src/app/init-globals.ts b/frontend/src/app/init-globals.ts index 05c7017179..a401e4a745 100644 --- a/frontend/src/app/init-globals.ts +++ b/frontend/src/app/init-globals.ts @@ -30,7 +30,7 @@ import 'hammerjs'; // Global scripts previously part of the application.js // Avoid require.context since that crashes angular regularly -require('./globals/dynamic-bootstrapper'); -require('./globals/global-listeners'); -require('./globals/openproject'); -require('./globals/tree-menu'); +import './globals/dynamic-bootstrapper'; +import './globals/global-listeners'; +import './globals/openproject'; +import './globals/tree-menu'; diff --git a/frontend/src/app/modules/bim/bcf/api/bcf-api-request.service.ts b/frontend/src/app/modules/bim/bcf/api/bcf-api-request.service.ts index a8b0b6f73d..95c3acc716 100644 --- a/frontend/src/app/modules/bim/bcf/api/bcf-api-request.service.ts +++ b/frontend/src/app/modules/bim/bcf/api/bcf-api-request.service.ts @@ -2,7 +2,7 @@ import {HttpClient, HttpErrorResponse, HttpParams} from "@angular/common/http"; import {Injector} from "@angular/core"; import {TypedJSON} from "typedjson"; import {Constructor} from "@angular/cdk/table"; -import {Observable} from "rxjs"; +import {Observable, throwError} from "rxjs"; import { HTTPClientHeaders, HTTPClientOptions, @@ -11,7 +11,6 @@ import { } from "core-app/modules/hal/http/http.interfaces"; import {URLParamsEncoder} from "core-app/modules/hal/services/url-params-encoder"; import {catchError, map} from "rxjs/operators"; -import {throwError} from "rxjs/internal/observable/throwError"; import {InjectField} from "core-app/helpers/angular/inject-field.decorator"; export class BcfApiRequestService { diff --git a/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/tooltips.sass b/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/tooltips.sass index 99cd5cab65..e23395dadd 100644 --- a/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/tooltips.sass +++ b/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/tooltips.sass @@ -3,7 +3,11 @@ .xeokit-toolbar [data-tippy-content] @extend .tooltip--bottom &:after - @extend [data-tooltip]:after + position: absolute + visibility: hidden + z-index: 99999 + box-sizing: content-box + transform: translate3d(0, 0, 0) content: attr(data-tippy-content) opacity: 1 left: 0 diff --git a/frontend/src/app/modules/global_search/input/global-search-input.component.ts b/frontend/src/app/modules/global_search/input/global-search-input.component.ts index 440d1f878c..125ddb88a6 100644 --- a/frontend/src/app/modules/global_search/input/global-search-input.component.ts +++ b/frontend/src/app/modules/global_search/input/global-search-input.component.ts @@ -49,11 +49,10 @@ import {DeviceService} from "core-app/modules/common/browser/device.service"; import {NgSelectComponent} from "@ng-select/ng-select"; import {Observable, of} from "rxjs"; import {Highlighting} from "core-components/wp-fast-table/builders/highlighting/highlighting.functions"; -import {map, tap, take, filter} from "rxjs/internal/operators"; import {HalResourceNotificationService} from "core-app/modules/hal/services/hal-resource-notification.service"; import {DebouncedRequestSwitchmap, errorNotificationHandler} from "core-app/helpers/rxjs/debounced-input-switchmap"; import {LinkHandling} from "core-app/modules/common/link-handling/link-handling"; -import {APIV3Service} from "core-app/modules/apiv3/api-v3.service"; +import {filter, map, take, tap} from "rxjs/operators"; export const globalSearchSelector = 'global-search-input'; diff --git a/frontend/src/tsconfig.app.json b/frontend/src/tsconfig.app.json index 9e0eef3976..924e4fe940 100644 --- a/frontend/src/tsconfig.app.json +++ b/frontend/src/tsconfig.app.json @@ -13,7 +13,6 @@ ], "include": [ "**/*.d.ts", - "app/globals/**/*.ts", "app/modules/augmenting/dynamic-scripts/*.ts" ] } diff --git a/frontend/src/typings/shims.d.ts b/frontend/src/typings/shims.d.ts index d2ec4efb6c..90b9b56955 100644 --- a/frontend/src/typings/shims.d.ts +++ b/frontend/src/typings/shims.d.ts @@ -22,7 +22,9 @@ import * as TLodash from 'lodash'; import * as TMoment from 'moment'; import {GlobalI18n} from "core-app/modules/common/i18n/i18n.service"; import {Dragula} from "dragula"; +import {Screenfull} from "screenfull"; +declare module 'observable-array'; declare module 'dom-autoscroller'; declare module 'core-vendor/enjoyhint'; @@ -40,6 +42,7 @@ declare global { OpenProject:OpenProject; ErrorReporter:ErrorReporter; onboardingTourInstance:any; + screenfull:Screenfull; } interface JQuery { diff --git a/frontend/tsconfig.test.json b/frontend/tsconfig.test.json index 60e3c9c016..c047a7a061 100644 --- a/frontend/tsconfig.test.json +++ b/frontend/tsconfig.test.json @@ -10,6 +10,6 @@ }, "files": [ "app/components/**/*.test.ts", - "app/typings/*" + ] }