@poirazis/supercomponents-shared 1.2.10 → 1.2.11

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poirazis/supercomponents-shared",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "description": "Shared Svelte components library",
5
5
  "type": "module",
6
6
  "packageManager": "bun@1.0.0",
@@ -36,7 +36,6 @@
36
36
  "svelte": "^5.0.0"
37
37
  },
38
38
  "dependencies": {
39
- "@budibase/types": "^3.24.4",
40
39
  "@jsrob/svelte-portal": "^0.2.1",
41
40
  "@phosphor-icons/web": "^2.1.2",
42
41
  "@sveltejs/svelte-virtual-list": "^3.0.1",
@@ -49,6 +48,7 @@
49
48
  "zod": "4.3.5"
50
49
  },
51
50
  "devDependencies": {
51
+ "@budibase/types": "^3.24.4",
52
52
  "@sveltejs/package": "^2.3.12",
53
53
  "@sveltejs/vite-plugin-svelte": "^4.0.1",
54
54
  "@tsconfig/svelte": "^5.0.4",
@@ -2,7 +2,7 @@
2
2
  import { setContext, getContext, createEventDispatcher } from "svelte";
3
3
  import type { Readable, Writable } from "svelte/store";
4
4
  import { derived, get, writable } from "svelte/store";
5
- import {
5
+ import type {
6
6
  DataFetchDatasource,
7
7
  FieldSchema,
8
8
  FieldType,
@@ -2,7 +2,7 @@
2
2
  import { getContext, setContext, onDestroy, tick } from "svelte";
3
3
  import fsm from "svelte-fsm";
4
4
  import { writable } from "svelte/store";
5
- import {
5
+ import type {
6
6
  LogicalOperator,
7
7
  EmptyFilterOption,
8
8
  SearchFilters,
@@ -1,6 +1,6 @@
1
- <script>
1
+ <script lang="ts">
2
2
  import { getContext, createEventDispatcher, tick } from "svelte";
3
- import { LogicalOperator, EmptyFilterOption } from "@budibase/types";
3
+ import type { LogicalOperator, EmptyFilterOption } from "@budibase/types";
4
4
 
5
5
  const { API, fetchData, QueryUtils } = getContext("sdk");
6
6
  const dispatch = createEventDispatcher();
@@ -257,7 +257,7 @@
257
257
  {#each relatedColumns as col}
258
258
  <div class="data-cell">{row[col.name] || ""}</div>
259
259
  {/each}
260
- <div class="data-cell check"><i class="ri-check-line" ></i></div>
260
+ <div class="data-cell check"><i class="ri-check-line"></i></div>
261
261
  </div>
262
262
  {/each}
263
263
 
@@ -278,7 +278,7 @@
278
278
  <div class="data-cell">{row[col.name] || ""}</div>
279
279
  {/each}
280
280
  <div class="data-cell check">
281
- <i class="ri-check-line" ></i>
281
+ <i class="ri-check-line"></i>
282
282
  </div>
283
283
  </div>
284
284
  {/if}
@@ -289,13 +289,13 @@
289
289
  {#if $optionsFetch?.loading}
290
290
  <div class="data-row loading">
291
291
  <div class="data-cell" style="grid-column: 1 / -1;">
292
- <i class="ri-loader-2-line rotating" ></i> Loading more...
292
+ <i class="ri-loader-2-line rotating"></i> Loading more...
293
293
  </div>
294
294
  </div>
295
295
  {:else if $optionsFetch?.loading && !$optionsFetch.loaded}
296
296
  <div class="data-row loading">
297
297
  <div class="data-cell" style="grid-column: 1 / -1;">
298
- <i class="ri-loader-2-line rotating" ></i> Loading...
298
+ <i class="ri-loader-2-line rotating"></i> Loading...
299
299
  </div>
300
300
  </div>
301
301
  {:else if !$optionsFetch?.loading && $optionsFetch?.loaded && !$optionsFetch.rows?.length}
@@ -319,7 +319,7 @@
319
319
  on:mousedown|preventDefault|stopPropagation={() => selectRow(row)}
320
320
  >
321
321
  {row.primaryDisplay || row[primaryDisplay]}
322
- <i class="ri-check-line" ></i>
322
+ <i class="ri-check-line"></i>
323
323
  </div>
324
324
  {/each}
325
325
 
@@ -337,20 +337,20 @@
337
337
  on:mousedown|preventDefault={() => selectRow(row)}
338
338
  >
339
339
  {row.primaryDisplay || row[primaryDisplay]}
340
- <i class="ri-check-line" ></i>
340
+ <i class="ri-check-line"></i>
341
341
  </div>
342
342
  {/if}
343
343
  {/each}
344
344
  {/key}
345
345
  {#if $optionsFetch?.loading}
346
346
  <div class="option loading">
347
- <i class="ri-loader-2-line rotating" ></i>
347
+ <i class="ri-loader-2-line rotating"></i>
348
348
  Loading more...
349
349
  </div>
350
350
  {/if}
351
351
  {:else if $optionsFetch?.loading && !$optionsFetch.loaded}
352
352
  <div class="option loading">
353
- <i class="ri-loader-2-line rotating" ></i>
353
+ <i class="ri-loader-2-line rotating"></i>
354
354
  Loading...
355
355
  </div>
356
356
  {:else}