Gathering detailed insights and metrics for @duetds/date-picker
Gathering detailed insights and metrics for @duetds/date-picker
Gathering detailed insights and metrics for @duetds/date-picker
Gathering detailed insights and metrics for @duetds/date-picker
npm install @duetds/date-picker
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
1,733 Stars
312 Commits
68 Forks
21 Watching
1 Branches
12 Contributors
Updated on 06 Nov 2024
TypeScript (71.86%)
HTML (16.02%)
SCSS (9.33%)
JavaScript (1.99%)
CSS (0.8%)
Cumulative downloads
Total Downloads
Last day
7.5%
3,176
Compared to previous day
Last week
11.9%
17,904
Compared to previous week
Last month
0.1%
75,714
Compared to previous month
Last year
8.1%
988,422
Compared to previous year
1
21
Duet Date Picker is an open source version of Duet Design System’s accessible date picker. Duet Date Picker can be implemented and used across any JavaScript framework or no framework at all. We accomplish this by using standardized web platform APIs and Web Components.
Why yet another date picker? Our team working on Duet Design System couldn’t find an existing date picker that would’ve ticked all the requirements we had for accessibility (supporting WCAG 2.1 as well as we can), so we decided to build one and open source it so that others could benefit from this work as well.
Duet Date Picker comes with built-in functionality that allows you to set a minimum and a maximum allowed date. These settings can be combined or used alone, depending on the need. Please note that the date values must be passed in IS0-8601 format: YYYY-MM-DD
.
Read getting started instructions ›
Learn more about Duet ›
We offer support for the following screen readers. For more information about the level of support and possible issues with the implementation, please refer to the included accessibility audit.
Duet Date Picker’s keyboard support is built to closely follow W3C Date Picker Dialog example with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.
Space, Enter
: Opens the date picker dialog and moves focus to the first select menu in the dialog.Esc
: Closes the date picker dialog and moves focus back to the “choose date” button.Tab
: Moves focus to the next element in the dialog. Please note since the calendar uses role="grid"
, only one button in the calendar grid is in the tab sequence. Additionally, if focus is on the last focusable element, focus is next moved back to the first focusable element inside the date picker dialog.Shift + Tab
: Same as above, but in reverse order.Space, Enter
: Changes the month and/or year displayed.Space, Enter
: Selects a date, closes the dialog, and moves focus back to the “Choose Date” button. Additionally updates the value of the Duet Date Picker input with the selected date, and adds selected date to “Choose Date” button label.Arrow up
: Moves focus to the same day of the previous week.Arrow down
: Moves focus to the same day of the next week.Arrow right
: Moves focus to the next day.Arrow left
: Moves focus to the previous day.Home
: Moves focus to the first day (e.g Monday) of the current week.End
: Moves focus to the last day (e.g. Sunday) of the current week.Page Up
: Changes the grid of dates to the previous month and sets focus on the same day of the same week.Shift + Page Up
: Changes the grid of dates to the previous year and sets focus on the same day of the same week.Page Down
: Changes the grid of dates to the next month and sets focus on the same day of the same week.Shift + Page Down
: Changes the grid of dates to the next year and sets focus on the same day of the same week.Space, Enter
: Closes the dialog, moves focus to “choose date” button, but does not update the date in input.Integrating Duet Date Picker to a project without a JavaScript framework is very straight forward. If you’re working on a simple HTML page, you can start using Duet Date Picker immediately by adding these tags to the <head>
:
1<script type="module" src="https://cdn.jsdelivr.net/npm/@duetds/date-picker@1.4.0/dist/duet/duet.esm.js"></script> 2<script nomodule src="https://cdn.jsdelivr.net/npm/@duetds/date-picker@1.4.0/dist/duet/duet.js"></script> 3<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@duetds/date-picker@1.4.0/dist/duet/themes/default.css" />
Once included, Duet Date Picker can be used in your markup like any other regular HTML element:
1<label for="date">Choose a date</label> 2<duet-date-picker identifier="date"></duet-date-picker>
Please note: Importing the CSS file is optional and only needed if you’re planning on using the default theme. See theming section for more information. Additionally, while the above method is the easiest and fastest way to get started, you can also install Duet Date Picker via NPM. Scroll down for the installation instructions.
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
dateAdapter | -- | Date adapter, for custom parsing/formatting. Must be object with a parse function which accepts a string and returns a Date , and a format function which accepts a Date and returns a string . Default is IS0-8601 parsing and formatting. | DuetDateAdapter | isoAdapter |
direction | direction | Forces the opening direction of the calendar modal to be always left or right. This setting can be useful when the input is smaller than the opening date picker would be as by default the picker always opens towards right. | "left" | "right" | "right" |
disabled | disabled | Makes the date picker input component disabled. This prevents users from being able to interact with the input, and conveys its inactive state to assistive technologies. | boolean | false |
firstDayOfWeek | first-day-of-week | Which day is considered first day of the week? 0 for Sunday, 1 for Monday, etc. Default is Monday. | DaysOfWeek.Friday | DaysOfWeek.Monday | DaysOfWeek.Saturday | DaysOfWeek.Sunday | DaysOfWeek.Thursday | DaysOfWeek.Tuesday | DaysOfWeek.Wednesday | DaysOfWeek.Monday |
identifier | identifier | Adds a unique identifier for the date picker input. Use this instead of html id attribute. | string | "" |
localization | -- | Button labels, day names, month names, etc, used for localization. Default is English. | { buttonLabel: string; placeholder: string; selectedDateMessage: string; prevMonthLabel: string; nextMonthLabel: string; monthSelectLabel: string; yearSelectLabel: string; closeLabel: string; calendarHeading: string; dayNames: DayNames; monthNames: MonthsNames; monthNamesShort: MonthsNames; } | defaultLocalization |
max | max | Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD. This setting can be used alone or together with the min property. | string | "" |
min | min | Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD. This setting can be used alone or together with the max property. | string | "" |
name | name | Name of the date picker input. | string | "date" |
role | role | Defines a specific role attribute for the date picker input. | string | undefined |
required | required | Should the input be marked as required? | boolean | false |
value | value | Date value. Must be in IS0-8601 format: YYYY-MM-DD. | string | "" |
Event | Description | Type |
---|---|---|
duetBlur | Event emitted the date picker input is blurred. | CustomEvent<{ component: "duet-date-picker"; }> |
duetChange | Event emitted when a date is selected. | CustomEvent<{ component: "duet-date-picker"; valueAsDate: Date; value: string; }> |
duetFocus | Event emitted the date picker input is focused. | CustomEvent<{ component: "duet-date-picker"; }> |
duetOpen | Event emitted when the date picker modal is opened. | CustomEvent<{ component: "duet-date-picker"; }> |
duetClose | Event emitted the date picker modal is closed. | CustomEvent<{ component: "duet-date-picker"; }> |
hide(moveFocusToButton?: boolean) => Promise<void>
Hide the calendar modal. Set moveFocusToButton
to false to prevent focus
returning to the date picker's button. Default is true.
Type: Promise<void>
setFocus() => Promise<void>
Sets focus on the date picker's input. Use this method instead of the global focus()
.
Type: Promise<void>
show() => Promise<void>
Show the calendar modal, moving focus to the calendar inside.
Type: Promise<void>
Before moving further, please make sure you have Node.js installed on your machine. You can install the latest version through their website. If you’re planning on using Duet Date Picker in a project that doesn’t yet use Node Package Manager, you’ll have to first create a package.json file. To do so, run npm init
and follow the steps provided.
Once finished, you can install Duet Date Picker by running:
1# WEB COMPONENT for HTML, Ember, Vue.js, React, Angular and Vanilla JS: 2npm install @duetds/date-picker
Please note: We recommend the usage of CDN like JSDelivr over the below approach if you’re not server side rendering Duet Date Picker. See getting started section to find the correct script tags.
Once you’ve installed @duetds/date-picker
package into your project, it’s recommended to create a copy task that copies Duet Date Picker component from node_modules
to a location you’ve specified. One such tool that can do this is NCP. You can install ncp
by running:
1npm install ncp --save-dev
Once installed, add a script to your package.json that copies the component library from Duet’s package into a location you’ve specified:
1"scripts": { 2 "copy:duet-date-picker": "ncp node_modules/@duetds/date-picker/dist src/SPECIFY_PATH" 3}
You can call this script while starting up your app to make sure you’ve always got the latest code copied over. If you’re using an UNIX-like environment, you can use &
as the separator:
1"start": "copy:duet-date-picker & dev"
Otherwise, if you need a cross-platform solution, use npm-run-all module:
1"start": "npm-run-all copy:duet-date-picker dev"
Once you have a copy task in place and have copied Duet Date Picker over, you can put tags similar to these in the <head>
of your index.html
(importing the CSS file is optional and only needed if you’re planning on using the default theme. See theming section for more information):
1<script type="module" src="SPECIFY_YOUR_PATH/duet.esm.js"></script> 2<script nomodule src="SPECIFY_YOUR_PATH/duet.js"></script> 3<link rel="stylesheet" href="SPECIFY_YOUR_PATH/duet.css" />
Once included, Duet Date Picker can be used in your basic HTML markup as in the following example:
1<label for="date">Choose a date</label> 2<duet-date-picker identifier="date"></duet-date-picker>
To know when this tag name becomes defined, you can use window.customElements.whenDefined()
. It returns a Promise that resolves when the element becomes defined:
1customElements.whenDefined("duet-date-picker").then(() => { 2 document.querySelector("duet-date-picker").show() 3});
Before you can use Duet Date Picker in Angular, you must import and add Angular’s CUSTOM_ELEMENTS_SCHEMA
. This allows the use of Web Components in HTML markup, without the compiler producing errors. The CUSTOM_ELEMENTS_SCHEMA
needs to be included in any module that uses custom elements. Typically, this can be added to AppModule
:
1// ... 2// Import custom elements schema 3import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core"; 4 5@NgModule({ 6 // ... 7 // Add custom elements schema to NgModule 8 schemas: [CUSTOM_ELEMENTS_SCHEMA] 9}) 10export class AppModule { }
The final step is to load and register Duet Date Picker in the browser. @duetds/date-picker
includes a main function that handles this. That function is called defineCustomElements()
and it needs to be called once during the bootstrapping of your application. One convenient place to do this is in main.ts
as such:
1// Import Duet Date Picker 2import { defineCustomElements } from "@duetds/date-picker/dist/loader"; 3// ... 4// Register Duet Date Picker 5defineCustomElements(window);
Once included, Duet Date Picker can be used in your HTML markup as in the following example:
1<label for="date">Choose a date</label> 2<duet-date-picker identifier="date"></duet-date-picker>
Please note that you need to also import duet.css
separately if you want to use the default theme. See theming section for more information.
Once included, components could also be referenced in your code using ViewChild
and ViewChildren
as shown in the Stencil.js documentation.
To integrate @duetds/date-picker
into a Vue.js application, edit src/main.js
to include:
1// Import Duet Date Picker
2import { defineCustomElements } from "@duetds/date-picker/dist/loader";
3
4// ...
5// configure Vue.js to ignore Duet Date Picker
6Vue.config.ignoredElements = [/duet-\w*/];
7
8// Register Duet Date Picker
9defineCustomElements(window);
10
11new Vue({
12 render: h => h(App)
13}).$mount("#app");
Once included, Duet Date Picker can be used in your HTML markup as in the following example:
1<template> 2 <label for="date">Choose a date</label> 3 <duet-date-picker 4 identifier="date" 5 :localization.prop="localisation_uk"> 6 </duet-date-picker> 7</template> 8 9<script> 10 const localisation_uk = { 11 buttonLabel: 'Choose date', 12 placeholder: 'DD/MM/YYYY', 13 selectedDateMessage: 'Selected date is', 14 prevMonthLabel: 'Previous month', 15 nextMonthLabel: 'Next month', 16 monthSelectLabel: 'Month', 17 yearSelectLabel: 'Year', 18 closeLabel: 'Close window', 19 calendarHeading: 'Choose a date', 20 dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], 21 monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], 22 monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], 23 } 24</script>
Please note that you need to also import duet.css
separately if you want to use the default theme. See theming section for more information.
Please also note that in order to use duet-date-picker's own custom properties (as seen on the properties section), vue must recognise that such options are being passed down as properties rather than attributes, hence the .prop
at the end.
With an application built using the create-react-app
script the easiest way to include Duet Date Picker is to call defineCustomElements(window)
from the index.js
file:
1// Import Duet Date Picker 2import { defineCustomElements } from "@duetds/date-picker/dist/loader"; 3 4// ... 5// Register Duet Date Picker 6defineCustomElements(window);
Then you can create a thin React wrapper component to handle listening for events, cleanup, passing properties etc:
1import React, { useEffect, useRef } from "react";
2
3function useListener(ref, eventName, handler) {
4 useEffect(() => {
5 if (ref.current) {
6 const element = ref.current;
7 element.addEventListener(eventName, handler)
8 return () => element.removeEventListener(eventName, handler)
9 }
10 }, [eventName, handler, ref])
11}
12
13export function DatePicker({
14 onChange,
15 onFocus,
16 onBlur,
17 onOpen,
18 onClose,
19 dateAdapter,
20 localization,
21 ...props
22}) {
23 const ref = useRef(null)
24
25 useListener(ref, "duetChange", onChange)
26 useListener(ref, "duetFocus", onFocus)
27 useListener(ref, "duetBlur", onBlur)
28 useListener(ref, "duetOpen", onOpen)
29 useListener(ref, "duetClose", onClose)
30
31 useEffect(() => {
32 ref.current.localization = localization
33 ref.current.dateAdapter = dateAdapter
34 }, [localization, dateAdapter])
35
36 return <duet-date-picker ref={ref} {...props}></duet-date-picker>
37}
Then the wrapper can be used like any other React component:
1<DatePicker 2 value="2020-08-24" 3 onChange={e => console.log(e.detail)} 4/>
Please note that you need to also import duet.css
separately if you want to use the default theme. See theming section for more information.
Duet Date Picker can be easily integrated into Ember thanks to the ember-cli-stencil
addon that handles:
vendor.js
assets
directoryStart by installing the Ember addon:
1ember install ember-cli-stencil ember-auto-import
When you build your application, Stencil collections in your dependencies will be automatically discovered and pulled into your application. You might get a Can't resolve
error when building. The easiest way to resolve that issue is by adding an alias to your ember-cli-build.js
file.
1 autoImport: { 2 alias: { 3 '@duetds/date-picker/loader': '@duetds/date-picker/dist/loader/index.cjs', 4 }, 5 },
For more information, see ember-cli-stencil documentation.
Ember octane example:
1<label for="date">Choose a date.</label> 2<duet-date-picker identifier="date" {{prop localization=this.localization}} ></duet-date-picker>
1import Controller from "@ember/controller"; 2import { action } from "@ember/object"; 3import { tracked } from "@glimmer/tracking"; 4 5export default class ExampleController extends Controller { 6 @tracked localization = { 7 buttonLabel: "Choose date", 8 placeholder: "mm/dd/yyyy", 9 selectedDateMessage: "Selected date is", 10 prevMonthLabel: "Previous month", 11 nextMonthLabel: "Next month", 12 monthSelectLabel: "Month", 13 yearSelectLabel: "Year", 14 closeLabel: "Close window", 15 calendarHeading: "Choose a date", 16 dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], 17 monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], 18 monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], 19 }; 20}
If you want the Duet Date Picker custom element to work on older browser, you need to add the applyPolyfills()
that surround the defineCustomElements()
function:
1import { applyPolyfills, defineCustomElements } from "@duetds/date-picker/lib/loader"; 2// ... 3applyPolyfills().then(() => { 4 defineCustomElements(window) 5})
We encourage the use of DOM events, but additionally provide custom events to make handling of certain event types easier. All custom events are documented in this same readme under the “Events” heading.
Duet Date Picker provides e.g. a custom event called duetChange
. This custom event includes an object called detail
which includes for example the selected date:
1// Select the date picker component 2const date = document.querySelector("duet-date-picker") 3 4// Listen for when date is selected 5date.addEventListener("duetChange", function(e) { 6 console.log("selected date", e.detail.valueAsDate) 7})
The console output for the above code looks like this:
1selected date Sat Aug 15 2020 00:00:00 GMT+0300 (Eastern European Summer Time)
Duet Date Picker uses CSS Custom Properties to make it easy to theme the picker. The component ships with a default theme that you can import either from the NPM package or directly from a CDN like JSDelivr:
1<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@duetds/date-picker@1.4.0/dist/duet/themes/default.css" />
The above CSS file provides the following Custom Properties that you can override with your own properties:
1:root { 2 --duet-color-primary: #005fcc; 3 --duet-color-text: #333; 4 --duet-color-text-active: #fff; 5 --duet-color-placeholder: #666; 6 --duet-color-button: #f5f5f5; 7 --duet-color-surface: #fff; 8 --duet-color-overlay: rgba(0, 0, 0, 0.8); 9 --duet-color-border: #333; 10 11 --duet-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 12 --duet-font-normal: 400; 13 --duet-font-bold: 600; 14 15 --duet-radius: 4px; 16 --duet-z-index: 600; 17} 18
If you wish to customize any of the default properties shown above, we recommend to NOT import or link to the provided CSS, but instead copying the above code into your own stylesheet and replacing the values used there.
Additionally, you’re able to override Duet Date Picker’s default styles by using e.g. .duet-date__input
selector in your own stylesheet. This allows you to give the form input and e.g. date picker toggle button a visual look that matches the rest of your website.
Duet Date Picker offers full support for localization. This includes the text labels and date formats used. Below is an example of a date picker that is using Finnish date format and localization.
1<label for="date">Valitse päivämäärä</label> 2<duet-date-picker identifier="date"></duet-date-picker> 3 4<script> 5 const picker = document.querySelector("duet-date-picker") 6 const DATE_FORMAT = /^(\d{1,2})\.(\d{1,2})\.(\d{4})$/ 7 8 picker.dateAdapter = { 9 parse(value = "", createDate) { 10 const matches = value.match(DATE_FORMAT) 11 12 if (matches) { 13 return createDate(matches[3], matches[2], matches[1]) 14 } 15 }, 16 format(date) { 17 return `${date.getDate()}.${date.getMonth() + 1}.${date.getFullYear()}` 18 }, 19 } 20 21 picker.localization = { 22 buttonLabel: "Valitse päivämäärä", 23 placeholder: "pp.kk.vvvv", 24 selectedDateMessage: "Valittu päivämäärä on", 25 prevMonthLabel: "Edellinen kuukausi", 26 nextMonthLabel: "Seuraava kuukausi", 27 monthSelectLabel: "Kuukausi", 28 yearSelectLabel: "Vuosi", 29 closeLabel: "Sulje ikkuna", 30 calendarHeading: "Valitse päivämäärä", 31 dayNames: [ 32 "Sunnuntai", "Maanantai", "Tiistai", "Keskiviikko", 33 "Torstai", "Perjantai", "Lauantai" 34 ], 35 monthNames: [ 36 "Tammikuu", "Helmikuu", "Maaliskuu", "Huhtikuu", 37 "Toukokuu", "Kesäkuu", "Heinäkuu", "Elokuu", 38 "Syyskuu", "Lokakuu", "Marraskuu", "Joulukuu" 39 ], 40 monthNamesShort: [ 41 "Tammi", "Helmi", "Maalis", "Huhti", "Touko", "Kesä", 42 "Heinä", "Elo", "Syys", "Loka", "Marras", "Joulu" 43 ], 44 locale: "fi-FI", 45 } 46</script>
Please note that you must provide the entirety of the localization properties in the object when overriding with your custom localization.
Duet Date Picker allows you to disable the selection of specific days. Below is an example of a date picker that is disabling weekends.
Be aware, this only disables selection of dates in the popup calendar. You must still handle the case where a user manually enters a disallowed date into the input.
1<label for="date">Choose a date</label> 2<duet-date-picker identifier="date"></duet-date-picker> 3 4<script> 5 function isWeekend(date) { 6 return date.getDay() === 0 || date.getDay() === 6 7 } 8 9 const pickerDisableWeekend = document.querySelector("duet-date-picker") 10 pickerDisableWeekend.isDateDisabled = isWeekend 11 12 pickerDisableWeekend.addEventListener("duetChange", function(e) { 13 if (isWeekend(e.detail.valueAsDate)) { 14 alert("Please select a weekday") 15 } 16 }) 17</script>
Duet Date Picker package includes a hydrate app that is a bundle of the same components, but compiled so that they can be hydrated on a NodeJS server and generate static HTML and CSS. To get started, import the hydrate app into your server’s code like so:
1import hydrate from "@duetds/date-picker/hydrate"
If you are using for example Eleventy, you could now add a transform into .eleventy.js
configuration file that takes content as an input and processes it using Duet’s hydrate app:
1eleventyConfig.addTransform("hydrate", async(content, outputPath) => { 2 if (process.env.ELEVENTY_ENV == "production") { 3 if (outputPath.endsWith(".html")) { 4 try { 5 const results = await hydrate.renderToString(content, { 6 clientHydrateAnnotations: true, 7 removeScripts: false, 8 removeUnusedStyles: false 9 }) 10 return results.html 11 } catch (error) { 12 return error 13 } 14 } 15 } 16 return content 17})
The above transform gives you server side rendered components that function without JavaScript. Please note that you need to separately pre-render the content for each theme you want to support.
Duet Date Picker also offers a single file bundle without the polyfills and other additional functionality included in the default output. To import that instead of the default output, use:
1import { DuetDatePicker } from "@duetds/date-picker/custom-element"; 2 3customElements.define("duet-date-picker", DuetDatePicker);
Please note that this custom-element output does not automatically define the custom elements or apply any polyfills which is why we’re defining the custom element above ourselves.
For more details, please see Stencil.js documentation.
If you wish to make sure Duet Date Picker shows up as quickly as possible when loading the scripts from JSDelivr CDN, you can preload the key parts using link rel="preload"
. To do this, add these tags in the <head>
of your webpage before any other <script>
or <link>
tags:
1<link rel="preload" href="https://cdn.jsdelivr.net/npm/@duetds/date-picker@1.4.0/dist/duet/duet.esm.js" as="script" crossorigin="anonymous" /> 2<link rel="preload" href="https://cdn.jsdelivr.net/npm/@duetds/date-picker@1.4.0/dist/duet/duet-date-picker.entry.js" as="script" crossorigin="anonymous" />
In case you’re also using one of the included themes, you can preload them the same way using the below tag:
1<link rel="preload" href="https://cdn.jsdelivr.net/npm/@duetds/date-picker@1.4.0/dist/duet/themes/default.css" as="style" />
git clone git@github.com:duetds/duet-date-picker.git
.npm install
.npm start
to get the development server and watch tasks up and running. This will also automatically open a new browser window with an example page../src/index.html
.npm run test
.npm run build
.NOTE: this section is for maintainers and can be ignored by contributors.
The process for publishing a stable or a beta release differs.
To publish a new stable release, use the npm version
command. The npm docs for the version command explains in detail how this command works.
E.g. to publish a new minor version:
1npm version minor
This will run tests, build the project, bump the minor version in package.json, commit and tag the changes, publish to npm, and finally push any commits to github.
To publish a new beta release, do the following:
package.json
and elsewhere.git tag -a 1.2.0-beta.0 -m "1.2.0-beta.0"
.npm publish --tag beta
.git push --tags --no-verify
.1.4.0
:
1.3.0
:
--duet-border-color
for customising the input's border color. Falls back to previous value --duet-color-text
if not set (#70).duetOpen
and duetClose
events to correspond with opening and closing the calendar (#73).1.2.0
:
1.1.0
: Adds support for required
attribute. Ensures date is always submitted in ISO format. Updates @stencil/core to 2.3.0.1.0.4
: Improves stability for NVDA + Chrome on Windows. Also fixes an issue which caused build attempts to fail due to snapshot mismatch.1.0.2
: Documentation improvements.1.0.1
: Hitting arrow keys on year select on Windows without first opening the dropdown previously causes odd results. This is now fixed.1.0.0
: Initial release.Copyright © 2020 LocalTapiola Services Ltd / Duet Design System.
Licensed under the MIT license.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 3/16 approved changesets -- score normalized to 1
Reason
project is archived
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More