@streamscloud/kit 0.2.41-1778520520573 → 0.2.41-1778521226680
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,7 +7,7 @@ import { TableColumnsManagerLocalization } from './table-columns-manager-localiz
|
|
|
7
7
|
import IconChevronDown from '@fluentui/svg-icons/icons/chevron_down_20_regular.svg?raw';
|
|
8
8
|
import IconColumnTwo from '@fluentui/svg-icons/icons/text_column_two_20_regular.svg?raw';
|
|
9
9
|
import { untrack } from 'svelte';
|
|
10
|
-
let { model, localStorageKey,
|
|
10
|
+
let { model, localStorageKey, on } = $props();
|
|
11
11
|
const localization = new TableColumnsManagerLocalization();
|
|
12
12
|
const storage = $derived(localStorageKey ? LocalStorageItem.of(localStorageKey) : null);
|
|
13
13
|
const hideableColumns = $derived(model.columns.filter((c) => c.hideable));
|
|
@@ -19,19 +19,6 @@ const items = $derived(hideableColumns.map((col) => ({
|
|
|
19
19
|
// Load from localStorage once columns are available
|
|
20
20
|
let initialized = false;
|
|
21
21
|
$effect(() => {
|
|
22
|
-
if (trackModelChange && storage) {
|
|
23
|
-
const saved = storage.get();
|
|
24
|
-
if (!saved || !Array.isArray(saved)) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
untrack(() => {
|
|
28
|
-
if (!hideableColumns.length) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
applyConfig(saved);
|
|
32
|
-
});
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
22
|
const columns = hideableColumns;
|
|
36
23
|
if (!storage || columns.length === 0 || initialized) {
|
|
37
24
|
return;
|