chore: import TableEditor directly from layer

This commit is contained in:
Yohan Boniface 2024-07-29 16:37:02 +02:00
parent daa6e37073
commit 222e69fbf4
2 changed files with 2 additions and 3 deletions

View file

@ -19,6 +19,7 @@ import {
import { translate } from '../i18n.js'
import { DataLayerPermissions } from '../permissions.js'
import { Point, LineString, Polygon } from './features.js'
import TableEditor from '../tableeditor.js'
export const LAYER_TYPES = [DefaultLayer, Cluster, Heat, Choropleth, Categorized]
@ -1090,7 +1091,7 @@ export class DataLayer {
tableEdit() {
if (!this.isVisible()) return
const editor = new U.TableEditor(this)
const editor = new TableEditor(this)
editor.open()
}

View file

@ -22,7 +22,6 @@ import Slideshow from './slideshow.js'
import { SyncEngine } from './sync/engine.js'
import Dialog from './ui/dialog.js'
import { EditPanel, FullPanel, Panel } from './ui/panel.js'
import TableEditor from './tableeditor.js'
import Tooltip from './ui/tooltip.js'
import URLs from './urls.js'
import * as Utils from './utils.js'
@ -72,7 +71,6 @@ window.U = {
Share,
Slideshow,
SyncEngine,
TableEditor,
Tooltip,
URLs,
Utils,