SYNC: removed selectedCellsCallback

This commit is contained in:
SPRINX0\prochazka
2025-12-10 08:58:57 +01:00
committed by Diflow
parent 1964e54476
commit 93c1f31588
4 changed files with 3 additions and 6 deletions

View File

@@ -275,6 +275,7 @@
onClose={() => {
cellDataViewVisible = false;
}}
selection={publishedCells}
/>
</svelte:fragment>
</HorizontalSplitter>

View File

@@ -388,7 +388,7 @@
import DataFilterControl from './DataFilterControl.svelte';
import createReducer from '../utility/createReducer';
import keycodes from '../utility/keycodes';
import { copyRowsFormat, currentArchive, selectedCellsCallback } from '../stores';
import { copyRowsFormat, currentArchive } from '../stores';
import {
copyRowsFormatDefs,
copyRowsToClipboard,
@@ -1203,7 +1203,6 @@
if (rowIndexes.every(x => grider.getRowData(x))) {
lastPublishledSelectedCellsRef.set(stringified);
changeSetValueRef.set($changeSetStore?.value);
$selectedCellsCallback = () => getCellsPublished(selectedCells);
if (onChangeSelectedColumns) {
onChangeSelectedColumns(getSelectedColumns().map(x => x.columnName));

View File

@@ -168,7 +168,6 @@ export const nullStore = readable(null, () => {});
export const currentArchive = writableWithStorage('default', 'currentArchive');
export const currentApplication = writableWithStorage(null, 'currentApplication');
export const isFileDragActive = writable(false);
export const selectedCellsCallback = writable(null);
export const loadingPluginStore = writable({
loaded: false,
loadingPackageName: null,

View File

@@ -103,13 +103,13 @@
import ErrorInfo from '../elements/ErrorInfo.svelte';
import { selectionCouldBeShownOnMap } from '../elements/SelectionMapView.svelte';
import SelectField from '../forms/SelectField.svelte';
import { selectedCellsCallback } from '../stores';
import WidgetTitle from './WidgetTitle.svelte';
import JsonExpandedCellView from '../celldata/JsonExpandedCellView.svelte';
import XmlCellView from '../celldata/XmlCellView.svelte';
import { _t } from '../translations';
export let onClose;
export let selection;
let selectedFormatType = 'autodetect';
@@ -118,8 +118,6 @@
$: usedFormatType = selectedFormatType == 'autodetect' ? autodetectFormatType : selectedFormatType;
$: usedFormat = formats.find(x => x.type == usedFormatType);
$: selection = $selectedCellsCallback ? $selectedCellsCallback() : [];
</script>
<div class="wrapper">