@casinogate/ui 1.10.15 → 1.10.16

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.
@@ -111,9 +111,7 @@
111
111
  }
112
112
 
113
113
  if (Array.isArray(value) && value.length > 0) {
114
- return value
115
- .map((v) => collection.find(v))
116
- .filter((i): i is SelectItem => i !== undefined);
114
+ return value.map((v) => collection.find(v)).filter((i): i is SelectItem => i !== undefined);
117
115
  }
118
116
 
119
117
  return [];
@@ -322,12 +320,6 @@
322
320
  </div>
323
321
  {/snippet}
324
322
 
325
- {#if hasMore}
326
- {#key items.length}
327
- <div class="cgui:h-1 cgui:w-full" {@attach anchorAttachment}></div>
328
- {/key}
329
- {/if}
330
-
331
323
  {#snippet loadingMore()}
332
324
  <div class="cgui:p-2 cgui:flex cgui:items-center cgui:justify-center cgui:text-icon-default">
333
325
  <Spinner />
@@ -395,6 +387,12 @@
395
387
  {@render loadingMore()}
396
388
  {/if}
397
389
 
390
+ {#if hasMore}
391
+ {#key items.length}
392
+ <div class="cgui:h-1 cgui:w-full" {@attach anchorAttachment}></div>
393
+ {/key}
394
+ {/if}
395
+
398
396
  {#if !hasMore && items.length > pageSize}
399
397
  <button
400
398
  class="cgui:w-full cgui:flex cgui:justify-center cgui:cursor-pointer cgui:items-center cgui:text-xs cgui:text-icon-default cgui:underline cgui:hover:no-underline"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casinogate/ui",
3
- "version": "1.10.15",
3
+ "version": "1.10.16",
4
4
  "svelte": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",