@dcrackel/hematournamentui 1.0.293 → 1.0.294

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcrackel/hematournamentui",
3
3
  "private": false,
4
- "version": "1.0.293",
4
+ "version": "1.0.294",
5
5
  "type": "module",
6
6
  "main": "dist/HemaTournamentUI-lib.umd.js",
7
7
  "module": "dist/HemaTournamentUI-lib.es.js",
@@ -2,11 +2,11 @@
2
2
  <div class="w-96 p-4">
3
3
  <div class="mb-4 px-4">
4
4
  <TitledInput :inputValue="searchTerm"
5
- placeholder="Enter Display Name"
6
- title="Display Name"
5
+ placeholder="Enter Name to Search"
6
+ title="Search"
7
7
  @update:value="updateDisplayName"/>
8
8
  </div>
9
- <div class="overflow-y-auto h-[700px]">
9
+ <div class="overflow-y-auto h-[800px]">
10
10
  <ul>
11
11
  <li v-for="person in filteredPersons" :key="person.id" class="py-2 px-4 rounded-lg cursor-pointer">
12
12
  <PoolFencerCard
@@ -55,12 +55,12 @@ export default {
55
55
  filteredPersons() {
56
56
  return this.persons
57
57
  .filter(person => {
58
- const displayName = person.displayName || ''; // Default to empty string if undefined
58
+ const displayName = person.DisplayName || ''; // Use DisplayName consistently
59
59
  return displayName.toLowerCase().includes(this.searchTerm.toLowerCase());
60
60
  })
61
61
  .sort((a, b) => {
62
- const nameA = (a.displayName || '').toLowerCase();
63
- const nameB = (b.displayName || '').toLowerCase();
62
+ const nameA = (a.DisplayName || '').toLowerCase();
63
+ const nameB = (b.DisplayName || '').toLowerCase();
64
64
  return nameA.localeCompare(nameB);
65
65
  });
66
66
  }