@smartnet360/svelte-components 0.0.129 → 0.0.131

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.
Files changed (33) hide show
  1. package/dist/map-v3/demo/DemoMap.svelte +1 -6
  2. package/dist/map-v3/features/{cells/custom → custom}/components/CustomCellFilterControl.svelte +11 -4
  3. package/dist/map-v3/features/custom/components/CustomCellSetManager.svelte +692 -0
  4. package/dist/map-v3/features/{cells/custom → custom}/index.d.ts +1 -1
  5. package/dist/map-v3/features/{cells/custom → custom}/index.js +1 -1
  6. package/dist/map-v3/features/custom/layers/CustomCellsLayer.svelte +399 -0
  7. package/dist/map-v3/features/custom/logic/csv-parser.d.ts +31 -0
  8. package/dist/map-v3/features/{cells/custom → custom}/logic/csv-parser.js +85 -26
  9. package/dist/map-v3/features/{cells/custom → custom}/logic/index.d.ts +1 -1
  10. package/dist/map-v3/features/{cells/custom → custom}/logic/tree-adapter.d.ts +1 -1
  11. package/dist/map-v3/features/{cells/custom → custom}/stores/custom-cell-sets.svelte.d.ts +4 -3
  12. package/dist/map-v3/features/{cells/custom → custom}/stores/custom-cell-sets.svelte.js +30 -10
  13. package/dist/map-v3/features/{cells/custom → custom}/types.d.ts +32 -12
  14. package/dist/map-v3/features/{cells/custom → custom}/types.js +5 -3
  15. package/dist/map-v3/index.d.ts +1 -1
  16. package/dist/map-v3/index.js +1 -1
  17. package/dist/map-v3/shared/controls/MapControl.svelte +43 -15
  18. package/dist/map-v3/shared/controls/MapControl.svelte.d.ts +3 -1
  19. package/package.json +1 -1
  20. package/dist/map-v3/features/cells/custom/components/CustomCellSetManager.svelte +0 -306
  21. package/dist/map-v3/features/cells/custom/layers/CustomCellsLayer.svelte +0 -262
  22. package/dist/map-v3/features/cells/custom/logic/csv-parser.d.ts +0 -21
  23. /package/dist/map-v3/features/{cells/custom → custom}/components/CustomCellFilterControl.svelte.d.ts +0 -0
  24. /package/dist/map-v3/features/{cells/custom → custom}/components/CustomCellSetManager.svelte.d.ts +0 -0
  25. /package/dist/map-v3/features/{cells/custom → custom}/components/index.d.ts +0 -0
  26. /package/dist/map-v3/features/{cells/custom → custom}/components/index.js +0 -0
  27. /package/dist/map-v3/features/{cells/custom → custom}/layers/CustomCellsLayer.svelte.d.ts +0 -0
  28. /package/dist/map-v3/features/{cells/custom → custom}/layers/index.d.ts +0 -0
  29. /package/dist/map-v3/features/{cells/custom → custom}/layers/index.js +0 -0
  30. /package/dist/map-v3/features/{cells/custom → custom}/logic/index.js +0 -0
  31. /package/dist/map-v3/features/{cells/custom → custom}/logic/tree-adapter.js +0 -0
  32. /package/dist/map-v3/features/{cells/custom → custom}/stores/index.d.ts +0 -0
  33. /package/dist/map-v3/features/{cells/custom → custom}/stores/index.js +0 -0
@@ -25,7 +25,7 @@
25
25
  CustomCellsLayer,
26
26
  CustomCellSetManager,
27
27
  createCustomCellSetsStore
28
- } from '../features/cells/custom';
28
+ } from '../features/custom';
29
29
  // Custom Sites Feature
30
30
  import {
31
31
  CustomSitesLayer,
@@ -105,11 +105,6 @@
105
105
  setsStore={customCellSets}
106
106
  />
107
107
 
108
- <!-- Custom Sites Manager (includes filter controls for each set) -->
109
- <CustomSiteSetManager
110
- position="top-left"
111
- setsStore={customSiteSets}
112
- />
113
108
 
114
109
  <FeatureSettingsControl
115
110
  position="top-right"
@@ -6,8 +6,8 @@
6
6
  * Shows groups with their cell counts and allows color customization.
7
7
  */
8
8
  import { untrack, onDestroy } from 'svelte';
9
- import { MapControl } from '../../../../shared';
10
- import { createTreeStore, TreeView } from '../../../../../core/TreeView';
9
+ import { MapControl } from '../../../shared';
10
+ import { createTreeStore, TreeView } from '../../../../core/TreeView';
11
11
  import type { CustomCellSetsStore } from '../stores/custom-cell-sets.svelte';
12
12
  import type { CustomCellSet } from '../types';
13
13
  import { buildCustomCellTree } from '../logic/tree-adapter';
@@ -122,9 +122,16 @@
122
122
  <!-- Set Info -->
123
123
  <div class="set-info mb-2 px-1">
124
124
  <small class="text-muted">
125
- {set.cells.length} cells in {set.groups.length} groups
125
+ {#if set.cells.some(c => c.geometry === 'cell') && set.cells.some(c => c.geometry === 'point')}
126
+ {set.cells.filter(c => c.geometry === 'cell').length} cells, {set.cells.filter(c => c.geometry === 'point').length} points
127
+ {:else if set.cells.some(c => c.geometry === 'cell')}
128
+ {set.cells.filter(c => c.geometry === 'cell').length} cells
129
+ {:else}
130
+ {set.cells.filter(c => c.geometry === 'point').length} points
131
+ {/if}
132
+ in {set.groups.length} groups
126
133
  {#if set.unmatchedTxIds.length > 0}
127
- <span class="text-warning ms-1" title="Some cells not found">
134
+ <span class="text-warning ms-1" title="Some IDs not found">
128
135
  ({set.unmatchedTxIds.length} unmatched)
129
136
  </span>
130
137
  {/if}