UNPKG

@duetds/date-picker

Version:

Duet Date Picker is an open source version of Duet Design System’s accessible date picker.

36 lines (30 loc) 1.47 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const index = require('./index-ce0b4617.js'); /* Stencil Client Patch Esm v2.3.0 | MIT Licensed | https://stenciljs.com */ const patchEsm = () => { // NOTE!! This fn cannot use async/await! // @ts-ignore if ( !(index.CSS && index.CSS.supports && index.CSS.supports('color', 'var(--c)'))) { // @ts-ignore return Promise.resolve().then(function () { return require(/* webpackChunkName: "polyfills-css-shim" */ './css-shim-32af3d0c.js'); }).then(() => { if ((index.plt.$cssShim$ = index.win.__cssshim)) { return index.plt.$cssShim$.i(); } else { // for better minification return 0; } }); } return index.promiseResolve(); }; const defineCustomElements = (win, options) => { if (typeof window === 'undefined') return Promise.resolve(); return patchEsm().then(() => { return index.bootstrapLazy([["duet-date-picker.cjs",[[0,"duet-date-picker",{"name":[1],"identifier":[1],"disabled":[516],"role":[1],"direction":[1],"required":[4],"value":[513],"min":[1],"max":[1],"firstDayOfWeek":[2,"first-day-of-week"],"localization":[16],"dateAdapter":[16],"activeFocus":[32],"focusedDay":[32],"open":[32],"setFocus":[64],"show":[64],"hide":[64]},[[6,"click","handleDocumentClick"]]]]]], options); }); }; exports.defineCustomElements = defineCustomElements;