- add methods for releasing datasets from submitter
All checks were successful
CI Pipeline / japa-tests (push) Successful in 54s

- npm updates
- side menu with child items
- flash messages via HttpContext response (extended via macro)
This commit is contained in:
Kaimbacher 2023-06-27 18:23:18 +02:00
parent e0ff71b117
commit f403c3109f
37 changed files with 1020 additions and 482 deletions

View file

@ -3,7 +3,6 @@ import { EventEmitter } from './EventEmitter';
import type { Map } from 'leaflet/src/map/index';
export abstract class Control<T> extends EventEmitter<T> {
// @section
// @aka Control options
options = {
@ -16,8 +15,8 @@ export abstract class Control<T> extends EventEmitter<T> {
// super();
// if (!(this instanceof Control)) {
// throw new TypeError("Control constructor cannot be called as a function.");
// }
// // properties
// }
// // properties
// // util.setOptions(this, defaults);
// }
@ -30,23 +29,22 @@ export abstract class Control<T> extends EventEmitter<T> {
}
abstract onRemove(map): void;
abstract onAdd(map: any) : HTMLElement;
abstract onAdd(map: any): HTMLElement;
addTo(map: Map): Control<T> {
this._map = map;
let container = this._container = this.onAdd(map);
let pos = this.getPosition();//"topright"
let container = (this._container = this.onAdd(map));
let pos = this.getPosition(); //"topright"
let corner = map.controlCorners[pos];
if (container) {
// $(container).addClass('gba-control');
container.classList.add("gba-control");
container.classList.add('gba-control');
if (pos.indexOf('bottom') !== -1) {
corner.insertBefore(container, corner.firstChild);
}
else {
} else {
corner.appendChild(container);
}
}
@ -65,6 +63,4 @@ export abstract class Control<T> extends EventEmitter<T> {
}
return this;
}
}