@forter/calendar
Advanced tools
Comparing version 1.3.8 to 1.3.9
@@ -6,2 +6,15 @@ # Change Log | ||
## [1.3.9](https://github.com/forter/web-components/compare/@forter/calendar@1.3.8...@forter/calendar@1.3.9) (2024-02-13) | ||
### Bug Fixes | ||
* **calendar:** year limit by privilege ([312f3db](https://github.com/forter/web-components/commit/312f3db)) | ||
* **date-range-picker:** disable apply button on range pass ([91e4f14](https://github.com/forter/web-components/commit/91e4f14)) | ||
* **date-range-picker:** generate tests ([a36ac6f](https://github.com/forter/web-components/commit/a36ac6f)) | ||
## [1.3.8](https://github.com/forter/web-components/compare/@forter/calendar@1.3.6...@forter/calendar@1.3.8) (2024-02-06) | ||
@@ -8,0 +21,0 @@ |
@@ -228,2 +228,7 @@ import { decorate as _decorate } from './_virtual/_rollupPluginBabelHelpers.js'; | ||
} | ||
const { | ||
disableDatePickerRangeLimit | ||
} = this.options; | ||
this.options.dropdowns.minYear = disableDatePickerRangeLimit ? 2015 : getCurrentYear() - 3; | ||
} | ||
@@ -230,0 +235,0 @@ }, { |
{ | ||
"name": "@forter/calendar", | ||
"version": "1.3.8", | ||
"version": "1.3.9", | ||
"description": "calendar from Forter Components", | ||
@@ -54,3 +54,3 @@ "author": "Forter Developers", | ||
}, | ||
"gitHead": "c31f93218ccfd868ac39f6a0933c0bbbbb55cb4f" | ||
"gitHead": "1e8d24e86d42adf9c29e148966a2a2c22f78793d" | ||
} |
@@ -28,11 +28,12 @@ # fc-calendar | ||
| Property | Attribute | Type | Default | Description | | ||
|-----------------|-----------------|------------------------|--------------|-------------------------------------------------| | ||
| `calendars` | | `never[]` | | | | ||
| `dates` | `dates` | `any[]` | | List of selected dates. example: `[]` | | ||
| `format` | `format` | `string` | "YYYY-MM-DD" | Date Fromat. example: `DD-MM-YYYY` | | ||
| `fullYearHtml` | | `"" \| TemplateResult` | | | | ||
| `options` | | `any` | | | | ||
| `pickerOptions` | `pickerOptions` | `{}` | {} | Options for litepicker to override the defaults | | ||
| `single` | `single` | `boolean` | | Toggle single date or date-range. example: true | | ||
| Property | Attribute | Type | Default | Description | | ||
|-------------------------------|-----------------|------------------------|--------------|-------------------------------------------------| | ||
| `calendars` | | `never[]` | | | | ||
| `dates` | `dates` | `any[]` | | List of selected dates. example: `[]` | | ||
| `disableDatePickerRangeLimit` | | `number` | | | | ||
| `format` | `format` | `string` | "YYYY-MM-DD" | Date Fromat. example: `DD-MM-YYYY` | | ||
| `fullYearHtml` | | `"" \| TemplateResult` | | | | ||
| `options` | | `any` | | | | ||
| `pickerOptions` | `pickerOptions` | `{}` | {} | Options for litepicker to override the defaults | | ||
| `single` | `single` | `boolean` | | Toggle single date or date-range. example: true | | ||
@@ -39,0 +40,0 @@ ## Events |
@@ -190,2 +190,4 @@ import { LitElement, html, property } from 'lit-element'; | ||
} | ||
const { disableDatePickerRangeLimit } = this.options; | ||
this.options.dropdowns.minYear = disableDatePickerRangeLimit ? 2015 : getCurrentYear() - 3; | ||
} | ||
@@ -192,0 +194,0 @@ |
@@ -68,2 +68,6 @@ { | ||
{ | ||
"name": "disableDatePickerRangeLimit", | ||
"type": "number" | ||
}, | ||
{ | ||
"name": "fullYearHtml", | ||
@@ -70,0 +74,0 @@ "type": "\"\" | TemplateResult" |
Sorry, the diff of this file is not supported yet
231824
42
3361
62