diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 0f897033d..a1cae9e83 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -2,7 +2,4 @@ blank_issues_enabled: false contact_links: - name: Ask a question url: https://github.com/rappasoft/laravel-livewire-tables/discussions/new?category=q-a - about: Ask the community for help - - name: Request a feature - url: https://github.com/rappasoft/laravel-livewire-tables/discussions/new?category=ideas - about: Share ideas for new features + about: Ask the community for help \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/featurerequest.yml b/.github/ISSUE_TEMPLATE/featurerequest.yml new file mode 100644 index 000000000..61aba6f10 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/featurerequest.yml @@ -0,0 +1,32 @@ +name: Feature Request +description: Request a New Feature +title: "[Feature Request]: " +labels: ["feature"] +body: + - type: markdown + attributes: + value: | + We're excited to hear any ideas for new features/improvements, please complete as much of the form below as possible + - type: textarea + id: overview + attributes: + label: Overview + description: What do you want to happen? + placeholder: I would like X type of Column or Filter + validations: + required: true + - type: textarea + id: details + attributes: + label: Detailed explanation + description: Give details of how you want this to work + placeholder: When I do X I want to see Y. + validations: + required: false + - type: textarea + id: notes + attributes: + label: Notes + description: Use this field to provide any other notes, screenshots or examples that you feel might be relevant to the request. + validations: + required: false diff --git a/CHANGELOG.md b/CHANGELOG.md index 946966a2b..5bebf46f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,16 @@ All notable changes to `laravel-livewire-tables` will be documented in this file ## [Unreleased] +## [2.15.0] - 2023-07-15 + +- Fixes + - Re-enable capability for configuring whether to Hide/Show Bulk Actions when empty - https://github.com/rappasoft/laravel-livewire-tables/pull/1240 + +- Enhancements + - Allow Label Columns to be Sortable - https://github.com/rappasoft/laravel-livewire-tables/pull/1256 + - Add Select All On Page Translations - https://github.com/rappasoft/laravel-livewire-tables/pull/1244 + - Add Contributors Document to track Localisation contributors - https://github.com/rappasoft/laravel-livewire-tables/pull/1223 + ## [2.14.0] - 2023-05-18 ### Changed @@ -827,7 +837,8 @@ Ground Up Rebuild - Initial release -[Unreleased]: https://github.com/rappasoft/laravel-livewire-tables/compare/v2.14.0...development +[Unreleased]: https://github.com/rappasoft/laravel-livewire-tables/compare/v2.15.0...development +[2.15.0]: https://github.com/rappasoft/laravel-livewire-tables/compare/v2.15.0...v2.14.0 [2.14.0]: https://github.com/rappasoft/laravel-livewire-tables/compare/v2.14.0...v2.13.1 [2.13.1]: https://github.com/rappasoft/laravel-livewire-tables/compare/v2.13.0...v2.13.1 [2.13.0]: https://github.com/rappasoft/laravel-livewire-tables/compare/v2.12.0...v2.13.0 diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md new file mode 100644 index 000000000..f9eb04c68 --- /dev/null +++ b/CONTRIBUTORS.md @@ -0,0 +1,15 @@ +# Core Maintainers +- [Anthony Rappa](https://github.com/rappasoft) +- [Joe McElwee](https://github.com/lrljoe) + +# Localisation Contributors +| Language | Contributor(s) | +| --- | --- | +| Brazilian (BR_PT) | [irineujunior](https://github.com/irineujunior)| +| Danish (DA) | [jeppeolesen](https://github.com/jeppeolesen) | +| Dutch (NL) | [siebsie23](https://github.com/siebsie23) & [spekkie2002](https://github.com/spekkie2002)| +| Finnish (FI) | [devmikromike](https://github.com/devmikromike) | +| French (FR) | [dgillier](https://github.com/dgillier) | +| Malay (MS) | [wanadri](https://github.com/wanadri) | +| Spanish (ES) | [CristhoferMF](https://github.com/CristhoferMF) | +| Ukrainian (UK) | [Oleksandr-Moik](https://github.com/Oleksandr-Moik) | \ No newline at end of file diff --git a/LICENSE.md b/LICENSE.md index 60485ef25..970f3c2de 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) Anthony Rappa +Copyright (c) Anthony Rappa Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 8d715565f..bce1fceab 100644 --- a/README.md +++ b/README.md @@ -86,8 +86,8 @@ Please e-mail anthony@rappasoft.com to report any security vulnerabilities inste ## Credits - [Anthony Rappa](https://github.com/rappasoft) -- [lrljoe](https://github.com/lrljoe) -- [All Contributors](../../contributors) +- [Joe McElwee](https://github.com/lrljoe) +- [All Contributors](./CONTRIBUTORS.md) ## License diff --git a/docs/introduction.md b/docs/introduction.md index bfb24af40..483755c06 100644 --- a/docs/introduction.md +++ b/docs/introduction.md @@ -5,14 +5,14 @@ weight: 1
Latest Version on Packagist - Styling + Styling Tests Total Downloads
Welcome to the [Laravel Livewire Tables](https://github.com/rappasoft/laravel-livewire-tables) documentation! -I will do my best to document all features and configurations of this plugin. +We will do our best to document all features and configurations of this plugin. Laravel Livewire Tables is a plugin built for Laravel Livewire that allows you to create simple or advanced dynamic datatables. diff --git a/docs/questions-and-issues.md b/docs/questions-and-issues.md index cd08eccd0..c77e460eb 100644 --- a/docs/questions-and-issues.md +++ b/docs/questions-and-issues.md @@ -7,6 +7,6 @@ If you have general questions not related to any issues you may post a [discussi If you have found a reproducable bug please create an [issue](https://github.com/rappasoft/laravel-livewire-tables/issues). -If you would like other help you can join the [slack channel](https://rappasoft.herokuapp.com/). +If you would like other help you can join the [discord channel - details here](https://github.com/rappasoft/laravel-livewire-tables/discussions/1252/). If you've found a bug regarding security please mail anthony@rappasoft.com instead of using the issue tracker. diff --git a/docs/start/configuration.md b/docs/start/configuration.md index 24292f08f..02aeadf18 100644 --- a/docs/start/configuration.md +++ b/docs/start/configuration.md @@ -59,6 +59,16 @@ module.exports = { }; ``` +## Tailwind Dark Mode +If you find that the table is consistently displaying in Dark Mode, then you will need to add the following into your tailwind.config.js configuration, keeping in mind that this **could** impact other components using dark mode! + +```js +module.exports = { + darkMode: 'class', // This specifies that Tailwind should look at Class elements to determine dark mode +... +}; +``` + ## Alpine.js Cloak You must also make sure you have this Alpine style available globally: diff --git a/docs/support-me.md b/docs/support-me.md index 5f0818ad3..8e11886f7 100644 --- a/docs/support-me.md +++ b/docs/support-me.md @@ -3,4 +3,4 @@ title: Support Me weight: 2 --- -I invest a **lot** of time into creating [my packages](https://rappasoft.com/packages). You can support me by [sponsoring me on Github](https://github.com/sponsors/rappasoft). +I invest a **lot** of time into creating [my packages](https://rappasoft.com/packages). You can support this work by [sponsoring me on Github](https://github.com/sponsors/rappasoft). There are additional benefits at various levels! diff --git a/resources/lang/en.json b/resources/lang/en.json index 0f37aa824..a4b20caac 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -22,6 +22,7 @@ "rows, do you want to select all": "rows, do you want to select all", "Search": "Search", "Select All": "Select All", + "Select All On Page": "Select All On Page", "Showing": "Showing", "to": "to", "Yes": "Yes", diff --git a/resources/lang/es.json b/resources/lang/es.json index 2c526f117..a337cb094 100644 --- a/resources/lang/es.json +++ b/resources/lang/es.json @@ -22,6 +22,7 @@ "rows, do you want to select all": "filas, desea seleccionar todas", "Search": "Buscar", "Select All": "Seleccionar todo", + "Select All On Page": "Seleccionar todo en la página", "Showing": "Mostrando", "to": "a", "Yes": "Sí", diff --git a/resources/lang/nl.json b/resources/lang/nl.json index 7a4f6ab00..5425a570d 100644 --- a/resources/lang/nl.json +++ b/resources/lang/nl.json @@ -27,5 +27,6 @@ "Yes": "Ja", "You are currently selecting all": "U selecteerde alle", "You are not connected to the internet.": "U bent niet verbonden met het internet.", - "You have selected": "U selecteerde" -} \ No newline at end of file + "You have selected": "U selecteerde", + "Select All On Page": "Alles op pagina selecteren" +} diff --git a/resources/views/components/table/th.blade.php b/resources/views/components/table/th.blade.php index 6875e9083..f7cdf2577 100644 --- a/resources/views/components/table/th.blade.php +++ b/resources/views/components/table/th.blade.php @@ -6,7 +6,7 @@ $theme = $component->getTheme(); $customAttributes = $component->getThAttributes($column); $customSortButtonAttributes = $component->getThSortButtonAttributes($column); - $direction = $column->hasField() ? $component->getSort($column->getColumnSelectName()) : null; + $direction = $column->hasField() ? $component->getSort($column->getColumnSelectName()) : $component->getSort($column->getSlug()) ?? null ; @endphp @if ($theme === 'tailwind') @@ -17,11 +17,11 @@ ->class(['hidden md:table-cell' => $column->shouldCollapseOnTablet()]) ->except('default') }}> - @unless ($component->sortingIsEnabled() && $column->isSortable()) + @unless ($component->sortingIsEnabled() && ($column->isSortable() || $column->getSortCallback())) {{ $column->getTitle() }} @else