Skip to content

Commit

Permalink
Merge pull request #19 from savannabits/coolsam726-laravel-10
Browse files Browse the repository at this point in the history
Updated Dependencies to support Laravel 10
  • Loading branch information
coolsam726 authored Apr 8, 2023
2 parents 41e098d + 8dc216a commit 7563741
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 65 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
}
],
"require": {
"php": "^8.0|^8.1",
"php": "^8.0",
"filament/filament": "^2.15",
"illuminate/contracts": "^8.0|^9.0",
"illuminate/contracts": ">=8.0",
"spatie/laravel-package-tools": "^1.9.2"
},
"require-dev": {
Expand Down
63 changes: 0 additions & 63 deletions src/Flatpickr.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,20 @@ class Flatpickr extends Field

protected ?string $theme;

/**
* @param bool $weekSelect
* @return Flatpickr
*/
public function weekSelect(bool $weekSelect = true): Flatpickr
{
$this->weekSelect = $weekSelect;

return $this;
}

/**
* @return bool
*/
public function isWeekSelect(): bool
{
return $this->weekSelect;
}

/**
* @param array $config
* @return Flatpickr
*/
public function config(array|\Closure $config): Flatpickr
{
Expand All @@ -61,47 +53,30 @@ public function config(array|\Closure $config): Flatpickr
return $this;
}

/**
* @return array
*/
public function getConfig(): array
{
return $this->config;
}

/**
* @param bool $rangePicker
* @return Flatpickr
*/
public function rangePicker(bool $rangePicker = true): Flatpickr
{
$this->rangePicker = $rangePicker;

return $this;
}

/**
* @return bool
*/
public function isRangePicker(): bool
{
return $this->rangePicker;
}

/**
* @param bool $multiplePicker
* @return Flatpickr
*/
public function multiplePicker(bool $multiplePicker = true): Flatpickr
{
$this->multiplePicker = $multiplePicker;

return $this;
}

/**
* @return bool
*/
public function isMultiplePicker(): bool
{
return $this->multiplePicker;
Expand Down Expand Up @@ -154,7 +129,6 @@ protected function setUp(): void

/**
* @param bool $monthSelect
* @return Flatpickr
*/
public function monthSelect(?bool $monthSelect = true): Flatpickr
{
Expand All @@ -163,37 +137,23 @@ public function monthSelect(?bool $monthSelect = true): Flatpickr
return $this;
}

/**
* @return bool
*/
public function isMonthSelect(): bool
{
return $this->monthSelect;
}

/**
* @param bool $altInput
* @return Flatpickr
*/
public function altInput(bool $altInput = true): Flatpickr
{
$this->altInput = $altInput;

return $this;
}

/**
* @return bool
*/
public function isAltInput(): bool
{
return $this->altInput;
}

/**
* @param bool $enableTime
* @return Flatpickr
*/
public function enableTime(bool $enableTime = true): Flatpickr
{
$this->enableTime = $enableTime;
Expand All @@ -206,59 +166,39 @@ public function enableTime(bool $enableTime = true): Flatpickr
return $this;
}

/**
* @return bool
*/
public function isEnableTime(): bool
{
return $this->enableTime;
}

/**
* @param string $dateFormat
* @return Flatpickr
*/
public function dateFormat(string $dateFormat): Flatpickr
{
$this->dateFormat = $dateFormat;

return $this;
}

/**
* @return string|null
*/
public function getDateFormat(): ?string
{
return $this->dateFormat;
}

/**
* @param string $altFormat
* @return Flatpickr
*/
public function altFormat(string $altFormat): Flatpickr
{
$this->altFormat = $altFormat;

return $this;
}

/**
* @return string|null
*/
public function getAltFormat(): ?string
{
return $this->altFormat;
}

/**
* @param string $theme
* @description Possible values: 'default','dark','material_blue','material_green','material_red','material_orange','airbnb','confetti'
*
* @see https://flatpickr.js.org/themes/
*
* @return Flatpickr
*/
public function theme(string $theme): Flatpickr
{
Expand All @@ -267,9 +207,6 @@ public function theme(string $theme): Flatpickr
return $this;
}

/**
* @return string|null
*/
public function getTheme(): ?string
{
return $this->theme;
Expand Down

0 comments on commit 7563741

Please sign in to comment.