diff --git a/resources/js/packages/ui/package-lock.json b/resources/js/packages/ui/package-lock.json index bc816f51..6bb524bb 100644 --- a/resources/js/packages/ui/package-lock.json +++ b/resources/js/packages/ui/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "@solidtime/ui", - "version": "0.0.8", + "version": "0.0.9", "license": "AGPL-3.0", "devDependencies": { "@types/node": "^22.4.1", diff --git a/resources/js/packages/ui/src/TimeEntry/TimeEntryAggregateRow.vue b/resources/js/packages/ui/src/TimeEntry/TimeEntryAggregateRow.vue index d046337a..1d18fffb 100644 --- a/resources/js/packages/ui/src/TimeEntry/TimeEntryAggregateRow.vue +++ b/resources/js/packages/ui/src/TimeEntry/TimeEntryAggregateRow.vue @@ -183,7 +183,8 @@ function onSelectChange(event: Event) { :tasks="tasks" :selected=" !!selectedTimeEntries.find( - (filterEntry) => filterEntry.id === subEntry.id + (filterEntry: TimeEntry) => + filterEntry.id === subEntry.id ) " @selected="emit('selected', [subEntry])" diff --git a/resources/js/packages/ui/src/TimeEntry/TimeEntryGroupedTable.vue b/resources/js/packages/ui/src/TimeEntry/TimeEntryGroupedTable.vue index ecfcbb66..88bba8e0 100644 --- a/resources/js/packages/ui/src/TimeEntry/TimeEntryGroupedTable.vue +++ b/resources/js/packages/ui/src/TimeEntry/TimeEntryGroupedTable.vue @@ -155,7 +155,7 @@ function unselectAllTimeEntries(value: TimeEntriesGroupedByType[]) { @select-all="selectAllTimeEntries(value)" @unselect-all="unselectAllTimeEntries(value)" :checked=" - value.every((timeEntry) => + value.every((timeEntry: TimeEntry) => selectedTimeEntries.includes(timeEntry) ) "> @@ -166,7 +166,7 @@ function unselectAllTimeEntries(value: TimeEntriesGroupedByType[]) { :enableEstimatedTime :selected-time-entries="selectedTimeEntries" @selected=" - (timeEntries) => { + (timeEntries: TimeEntry[]) => { selectedTimeEntries = [ ...selectedTimeEntries, ...timeEntries, @@ -174,11 +174,12 @@ function unselectAllTimeEntries(value: TimeEntriesGroupedByType[]) { } " @unselected=" - (timeEntriesToUnselect) => { + (timeEntriesToUnselect: TimeEntry[]) => { selectedTimeEntries = selectedTimeEntries.filter( - (item) => + (item: TimeEntry) => !timeEntriesToUnselect.find( - (filterEntry) => filterEntry.id === item.id + (filterEntry: TimeEntry) => + filterEntry.id === item.id ) ); } @@ -204,13 +205,13 @@ function unselectAllTimeEntries(value: TimeEntriesGroupedByType[]) { :projects="projects" :selected=" !!selectedTimeEntries.find( - (filterEntry) => filterEntry.id === entry.id + (filterEntry: TimeEntry) => filterEntry.id === entry.id ) " @selected="selectedTimeEntries.push(entry)" @unselected=" selectedTimeEntries = selectedTimeEntries.filter( - (item) => item.id !== entry.id + (item: TimeEntry) => item.id !== entry.id ) " :tasks="tasks" diff --git a/resources/js/packages/ui/src/TimeEntry/TimeEntryMassUpdateModal.vue b/resources/js/packages/ui/src/TimeEntry/TimeEntryMassUpdateModal.vue index af3adc93..9db120ab 100644 --- a/resources/js/packages/ui/src/TimeEntry/TimeEntryMassUpdateModal.vue +++ b/resources/js/packages/ui/src/TimeEntry/TimeEntryMassUpdateModal.vue @@ -128,6 +128,7 @@ watch(removeAllTags, () => { selectedTags.value = []; } }); +type SelectOption = { label: string; value: string };