blip-ds 1.130.0 → 1.131.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blip-ds/bds-alert-actions.entry.js +1 -1
- package/dist/blip-ds/bds-alert-actions.system.entry.js +1 -1
- package/dist/blip-ds/bds-alert-body.entry.js +1 -1
- package/dist/blip-ds/bds-alert-body.system.entry.js +1 -1
- package/dist/blip-ds/bds-alert-header.entry.js +1 -1
- package/dist/blip-ds/bds-alert-header.system.entry.js +1 -1
- package/dist/blip-ds/bds-alert.entry.js +1 -1
- package/dist/blip-ds/bds-alert.system.entry.js +1 -1
- package/dist/blip-ds/bds-autocomplete.entry.js +1 -1
- package/dist/blip-ds/bds-autocomplete.system.entry.js +1 -1
- package/dist/blip-ds/bds-avatar-group.entry.js +1 -1
- package/dist/blip-ds/bds-avatar-group.system.entry.js +1 -1
- package/dist/blip-ds/bds-avatar.entry.js +1 -1
- package/dist/blip-ds/bds-avatar.system.entry.js +1 -1
- package/dist/blip-ds/bds-banner.entry.js +1 -1
- package/dist/blip-ds/bds-banner.system.entry.js +1 -1
- package/dist/blip-ds/bds-button-icon.entry.js +1 -1
- package/dist/blip-ds/bds-button-icon.system.entry.js +1 -1
- package/dist/blip-ds/bds-button.entry.js +1 -1
- package/dist/blip-ds/bds-button.system.entry.js +1 -1
- package/dist/blip-ds/bds-card-color.entry.js +1 -1
- package/dist/blip-ds/bds-card-color.system.entry.js +1 -1
- package/dist/blip-ds/bds-checkbox.entry.js +1 -1
- package/dist/blip-ds/bds-checkbox.system.entry.js +1 -1
- package/dist/blip-ds/bds-chip.entry.js +1 -1
- package/dist/blip-ds/bds-chip.system.entry.js +1 -1
- package/dist/blip-ds/bds-counter-text.entry.js +1 -1
- package/dist/blip-ds/bds-counter-text.system.entry.js +1 -1
- package/dist/blip-ds/bds-datepicker-period.entry.js +256 -0
- package/dist/blip-ds/bds-datepicker-period.system.entry.js +1 -0
- package/dist/blip-ds/bds-datepicker-single.entry.js +185 -0
- package/dist/blip-ds/bds-datepicker-single.system.entry.js +1 -0
- package/dist/blip-ds/bds-datepicker.entry.js +135 -0
- package/dist/blip-ds/bds-datepicker.system.entry.js +1 -0
- package/dist/blip-ds/bds-expansion-panel-body.entry.js +1 -1
- package/dist/blip-ds/bds-expansion-panel-body.system.entry.js +1 -1
- package/dist/blip-ds/bds-expansion-panel-header.entry.js +1 -1
- package/dist/blip-ds/bds-expansion-panel-header.system.entry.js +1 -1
- package/dist/blip-ds/bds-expansion-panel.entry.js +1 -1
- package/dist/blip-ds/bds-expansion-panel.system.entry.js +1 -1
- package/dist/blip-ds/bds-icon.entry.js +1 -1
- package/dist/blip-ds/bds-icon.system.entry.js +1 -1
- package/dist/blip-ds/bds-input-chips.entry.js +2 -2
- package/dist/blip-ds/bds-input-chips.system.entry.js +1 -1
- package/dist/blip-ds/bds-input-editable.entry.js +1 -1
- package/dist/blip-ds/bds-input-editable.system.entry.js +1 -1
- package/dist/blip-ds/bds-input-password.entry.js +1 -1
- package/dist/blip-ds/bds-input-password.system.entry.js +1 -1
- package/dist/blip-ds/bds-input-phone-number.entry.js +1 -1
- package/dist/blip-ds/bds-input-phone-number.system.entry.js +1 -1
- package/dist/blip-ds/bds-input.entry.js +2 -2
- package/dist/blip-ds/bds-input.system.entry.js +1 -1
- package/dist/blip-ds/bds-loading-spinner.entry.js +1 -1
- package/dist/blip-ds/bds-loading-spinner.system.entry.js +1 -1
- package/dist/blip-ds/bds-menu-action.entry.js +1 -1
- package/dist/blip-ds/bds-menu-action.system.entry.js +1 -1
- package/dist/blip-ds/bds-menu-exibition.entry.js +1 -1
- package/dist/blip-ds/bds-menu-exibition.system.entry.js +1 -1
- package/dist/blip-ds/bds-menu-list-item.entry.js +1 -1
- package/dist/blip-ds/bds-menu-list-item.system.entry.js +1 -1
- package/dist/blip-ds/bds-menu-list.entry.js +1 -1
- package/dist/blip-ds/bds-menu-list.system.entry.js +1 -1
- package/dist/blip-ds/bds-menu-separation.entry.js +1 -1
- package/dist/blip-ds/bds-menu-separation.system.entry.js +1 -1
- package/dist/blip-ds/bds-menu.entry.js +1 -1
- package/dist/blip-ds/bds-menu.system.entry.js +1 -1
- package/dist/blip-ds/bds-modal-action.entry.js +1 -1
- package/dist/blip-ds/bds-modal-action.system.entry.js +1 -1
- package/dist/blip-ds/bds-modal-close-button.entry.js +1 -1
- package/dist/blip-ds/bds-modal-close-button.system.entry.js +1 -1
- package/dist/blip-ds/bds-modal.entry.js +1 -1
- package/dist/blip-ds/bds-modal.system.entry.js +1 -1
- package/dist/blip-ds/bds-paper.entry.js +1 -1
- package/dist/blip-ds/bds-paper.system.entry.js +1 -1
- package/dist/blip-ds/bds-radio-group.entry.js +1 -1
- package/dist/blip-ds/bds-radio-group.system.entry.js +1 -1
- package/dist/blip-ds/bds-radio.entry.js +1 -1
- package/dist/blip-ds/bds-radio.system.entry.js +1 -1
- package/dist/blip-ds/bds-select-chips.entry.js +1 -1
- package/dist/blip-ds/bds-select-chips.system.entry.js +1 -1
- package/dist/blip-ds/bds-select-option.entry.js +1 -1
- package/dist/blip-ds/bds-select-option.system.entry.js +1 -1
- package/dist/blip-ds/bds-select.entry.js +1 -1
- package/dist/blip-ds/bds-select.system.entry.js +1 -1
- package/dist/blip-ds/bds-step.entry.js +1 -1
- package/dist/blip-ds/bds-step.system.entry.js +1 -1
- package/dist/blip-ds/bds-stepper.entry.js +1 -1
- package/dist/blip-ds/bds-stepper.system.entry.js +1 -1
- package/dist/blip-ds/bds-switch.entry.js +1 -1
- package/dist/blip-ds/bds-switch.system.entry.js +1 -1
- package/dist/blip-ds/bds-tab-panel.entry.js +1 -1
- package/dist/blip-ds/bds-tab-panel.system.entry.js +1 -1
- package/dist/blip-ds/bds-tab.entry.js +1 -1
- package/dist/blip-ds/bds-tab.system.entry.js +1 -1
- package/dist/blip-ds/bds-tabs.entry.js +1 -1
- package/dist/blip-ds/bds-tabs.system.entry.js +1 -1
- package/dist/blip-ds/bds-toast-container.entry.js +1 -1
- package/dist/blip-ds/bds-toast-container.system.entry.js +1 -1
- package/dist/blip-ds/bds-toast.entry.js +1 -1
- package/dist/blip-ds/bds-toast.system.entry.js +1 -1
- package/dist/blip-ds/bds-tooltip.entry.js +1 -1
- package/dist/blip-ds/bds-tooltip.system.entry.js +1 -1
- package/dist/blip-ds/bds-typo.entry.js +1 -1
- package/dist/blip-ds/bds-typo.system.entry.js +1 -1
- package/dist/blip-ds/bds-warning.entry.js +1 -1
- package/dist/blip-ds/bds-warning.system.entry.js +1 -1
- package/dist/blip-ds/blip-ds.esm.js +2 -2
- package/dist/blip-ds/blip-ds.system.js +1 -1
- package/dist/blip-ds/calendar-39b750c1.system.js +1 -0
- package/dist/blip-ds/calendar-b2732eee.js +183 -0
- package/dist/blip-ds/{index-616e79aa.js → index-1762f0ca.js} +1 -1
- package/dist/blip-ds/index-b6e5b643.system.js +1 -0
- package/dist/blip-ds/p-055ec9a4.entry.js +1 -0
- package/dist/blip-ds/{p-7185afe4.system.entry.js → p-06b7d0cd.system.entry.js} +1 -1
- package/dist/blip-ds/{p-31e60806.system.entry.js → p-0b4f6fc7.system.entry.js} +1 -1
- package/dist/blip-ds/{p-277a0e3b.system.entry.js → p-0c586512.system.entry.js} +1 -1
- package/dist/blip-ds/{p-c931d122.system.entry.js → p-0c5efecc.system.entry.js} +1 -1
- package/dist/blip-ds/{p-9e65e961.system.entry.js → p-0d1a4db1.system.entry.js} +1 -1
- package/dist/blip-ds/{p-2830afee.system.entry.js → p-120a1ac5.system.entry.js} +1 -1
- package/dist/blip-ds/{p-b1081871.entry.js → p-120e32c6.entry.js} +1 -1
- package/dist/blip-ds/{p-8963ba0b.entry.js → p-18889f05.entry.js} +1 -1
- package/dist/blip-ds/{p-2dd30e18.system.entry.js → p-19b9f38d.system.entry.js} +1 -1
- package/dist/blip-ds/{p-3c545558.entry.js → p-1c0806fd.entry.js} +1 -1
- package/dist/blip-ds/p-1daa73e4.entry.js +1 -0
- package/dist/blip-ds/{p-b561426c.entry.js → p-1f355e25.entry.js} +1 -1
- package/dist/blip-ds/{p-ca0a32c7.entry.js → p-2399cb26.entry.js} +1 -1
- package/dist/blip-ds/{p-1819e557.entry.js → p-26de38b5.entry.js} +1 -1
- package/dist/blip-ds/{p-8b049d52.entry.js → p-286cffed.entry.js} +1 -1
- package/dist/blip-ds/{p-537671f9.system.entry.js → p-29ea0b32.system.entry.js} +1 -1
- package/dist/blip-ds/{p-82e3238a.entry.js → p-2b0ff508.entry.js} +1 -1
- package/dist/blip-ds/{p-191aea83.system.entry.js → p-2bd14b96.system.entry.js} +1 -1
- package/dist/blip-ds/p-2d5e7bc7.entry.js +1 -0
- package/dist/blip-ds/{p-857cf027.entry.js → p-2d6a15c6.entry.js} +1 -1
- package/dist/blip-ds/{p-9d77a344.system.entry.js → p-2e0bb6d7.system.entry.js} +1 -1
- package/dist/blip-ds/{p-73ec6b74.system.entry.js → p-30bb16ae.system.entry.js} +1 -1
- package/dist/blip-ds/{p-06149334.entry.js → p-34095d20.entry.js} +1 -1
- package/dist/blip-ds/{p-83ff5a56.entry.js → p-34d3ddb1.entry.js} +1 -1
- package/dist/blip-ds/{p-15029673.entry.js → p-36f5de27.entry.js} +1 -1
- package/dist/blip-ds/{p-07950da1.system.entry.js → p-374d5a82.system.entry.js} +1 -1
- package/dist/blip-ds/{p-db18625b.system.entry.js → p-38170730.system.entry.js} +1 -1
- package/dist/blip-ds/{p-39bb14a7.entry.js → p-3b7ecb6a.entry.js} +1 -1
- package/dist/blip-ds/{p-ed5a7b7d.system.entry.js → p-3cf5ede6.system.entry.js} +1 -1
- package/dist/blip-ds/{p-0f069073.entry.js → p-3eb494a1.entry.js} +1 -1
- package/dist/blip-ds/{p-386811f1.entry.js → p-3f000a18.entry.js} +1 -1
- package/dist/blip-ds/p-403f9072.js +1 -0
- package/dist/blip-ds/{p-05a26581.entry.js → p-44dd531a.entry.js} +1 -1
- package/dist/blip-ds/{p-ac95be9e.system.entry.js → p-4692a54c.system.entry.js} +1 -1
- package/dist/blip-ds/{p-362bad38.entry.js → p-481576d0.entry.js} +1 -1
- package/dist/blip-ds/{p-f59bd0a5.system.entry.js → p-4940c4c9.system.entry.js} +1 -1
- package/dist/blip-ds/{p-03b9746a.system.entry.js → p-4deaa573.system.entry.js} +1 -1
- package/dist/blip-ds/{p-c2e6658a.system.entry.js → p-537bc3af.system.entry.js} +1 -1
- package/dist/blip-ds/{p-ce4e910f.system.entry.js → p-53d0c4a2.system.entry.js} +1 -1
- package/dist/blip-ds/{p-c20ad0cb.entry.js → p-575cc38b.entry.js} +1 -1
- package/dist/blip-ds/{p-ded97860.system.entry.js → p-5936d7c6.system.entry.js} +1 -1
- package/dist/blip-ds/{p-6c845655.system.entry.js → p-5e43720e.system.entry.js} +1 -1
- package/dist/blip-ds/{p-cca543bd.entry.js → p-611d1f9b.entry.js} +1 -1
- package/dist/blip-ds/{p-4879ac82.system.entry.js → p-6c6c68d7.system.entry.js} +1 -1
- package/dist/blip-ds/{p-098fa042.entry.js → p-6c7542b1.entry.js} +1 -1
- package/dist/blip-ds/{p-c0f0852f.entry.js → p-6cc7a189.entry.js} +1 -1
- package/dist/blip-ds/{p-63e1ab92.entry.js → p-6d28d907.entry.js} +1 -1
- package/dist/blip-ds/p-710f1378.system.entry.js +1 -0
- package/dist/blip-ds/{p-2f03d033.system.entry.js → p-71517065.system.entry.js} +1 -1
- package/dist/blip-ds/{p-1d47b767.entry.js → p-749517fd.entry.js} +1 -1
- package/dist/blip-ds/{p-bf78d816.system.entry.js → p-788d6396.system.entry.js} +1 -1
- package/dist/blip-ds/{p-adf342ce.entry.js → p-7b3c42b9.entry.js} +1 -1
- package/dist/blip-ds/{p-a624d736.system.entry.js → p-7cc68285.system.entry.js} +1 -1
- package/dist/blip-ds/p-7d00c003.js +1 -0
- package/dist/blip-ds/{p-627424c0.entry.js → p-82a081d5.entry.js} +1 -1
- package/dist/blip-ds/{p-0b6f5e8a.system.entry.js → p-82a7baf5.system.entry.js} +1 -1
- package/dist/blip-ds/{p-21c45682.entry.js → p-82ee2d72.entry.js} +1 -1
- package/dist/blip-ds/{p-dc24bd81.entry.js → p-84e67cf1.entry.js} +1 -1
- package/dist/blip-ds/{p-3c81900e.system.entry.js → p-8818aee9.system.entry.js} +1 -1
- package/dist/blip-ds/{p-c2db98ca.entry.js → p-8d3dff4f.entry.js} +1 -1
- package/dist/blip-ds/p-8ff2fdad.system.js +1 -0
- package/dist/blip-ds/p-904d005d.system.entry.js +1 -0
- package/dist/blip-ds/{p-8aae67d4.entry.js → p-944aaee1.entry.js} +1 -1
- package/dist/blip-ds/{p-3adae190.entry.js → p-94c19439.entry.js} +1 -1
- package/dist/blip-ds/{p-e85d357c.entry.js → p-9609a433.entry.js} +1 -1
- package/dist/blip-ds/{p-a650f8db.system.entry.js → p-a8345434.system.entry.js} +1 -1
- package/dist/blip-ds/{p-4ad1ce8e.system.entry.js → p-a9d76e5c.system.entry.js} +1 -1
- package/dist/blip-ds/{p-fe5e5868.system.entry.js → p-a9ee1bb6.system.entry.js} +1 -1
- package/dist/blip-ds/{p-4a1b9bdf.entry.js → p-aa12814f.entry.js} +1 -1
- package/dist/blip-ds/{p-7d53b886.entry.js → p-aab4f073.entry.js} +1 -1
- package/dist/blip-ds/{p-9b5c3867.system.entry.js → p-ad10e081.system.entry.js} +1 -1
- package/dist/blip-ds/{p-2367fe0a.system.entry.js → p-ad1dcc2a.system.entry.js} +1 -1
- package/dist/blip-ds/{p-bbbad919.entry.js → p-b66eb285.entry.js} +1 -1
- package/dist/blip-ds/{p-5e6ce612.entry.js → p-b76c8e0a.entry.js} +1 -1
- package/dist/blip-ds/{p-78aba1b3.system.entry.js → p-bc167126.system.entry.js} +1 -1
- package/dist/blip-ds/{p-6a5eeb3c.entry.js → p-be00de3f.entry.js} +1 -1
- package/dist/blip-ds/{p-03ec6457.system.entry.js → p-beab6851.system.entry.js} +1 -1
- package/dist/blip-ds/{p-80295896.system.js → p-c1102ec5.system.js} +1 -1
- package/dist/blip-ds/p-c5060283.system.js +1 -0
- package/dist/blip-ds/{p-33cce7fd.entry.js → p-c66d9406.entry.js} +1 -1
- package/dist/blip-ds/{p-64118b41.system.entry.js → p-cbd77999.system.entry.js} +1 -1
- package/dist/blip-ds/{p-1db4f233.entry.js → p-cbd95d2f.entry.js} +1 -1
- package/dist/blip-ds/p-cce492c4.js +1 -0
- package/dist/blip-ds/{p-dd340c2b.system.entry.js → p-cd2449a2.system.entry.js} +1 -1
- package/dist/blip-ds/{p-7a58cbef.system.entry.js → p-cf5e61b8.system.entry.js} +1 -1
- package/dist/blip-ds/{p-95af9482.entry.js → p-d031729b.entry.js} +1 -1
- package/dist/blip-ds/{p-c96e7917.system.entry.js → p-d0bcdf26.system.entry.js} +1 -1
- package/dist/blip-ds/{p-d21a3a84.entry.js → p-d0d311cd.entry.js} +1 -1
- package/dist/blip-ds/{p-b1594ec1.system.entry.js → p-df19294d.system.entry.js} +1 -1
- package/dist/blip-ds/p-df86f6b5.system.js +1 -0
- package/dist/blip-ds/{p-9aa9d1cc.system.entry.js → p-dfbb6a47.system.entry.js} +1 -1
- package/dist/blip-ds/{p-d9971e6b.entry.js → p-ea0784cc.entry.js} +1 -1
- package/dist/blip-ds/{p-908245ba.entry.js → p-ebea5e35.entry.js} +1 -1
- package/dist/blip-ds/{p-db0abc90.system.entry.js → p-ec5e9ef8.system.entry.js} +1 -1
- package/dist/blip-ds/{p-3f32ea44.system.entry.js → p-eca8b9a1.system.entry.js} +1 -1
- package/dist/blip-ds/{p-d690ee53.entry.js → p-ef9344e4.entry.js} +1 -1
- package/dist/blip-ds/p-f2a196e5.system.entry.js +1 -0
- package/dist/blip-ds/{p-5999f970.entry.js → p-f2defa79.entry.js} +1 -1
- package/dist/blip-ds/p-f4583a17.system.entry.js +1 -0
- package/dist/blip-ds/{p-dafcd852.system.entry.js → p-f6024d5d.system.entry.js} +1 -1
- package/dist/blip-ds/{p-04da5ce1.entry.js → p-f7071a2b.entry.js} +1 -1
- package/dist/blip-ds/{p-c866d123.system.entry.js → p-fb65c4ed.system.entry.js} +1 -1
- package/dist/blip-ds/p-fc77e538.entry.js +1 -0
- package/dist/blip-ds/{p-83a1f708.entry.js → p-ff13d1ca.entry.js} +1 -1
- package/dist/blip-ds/p-ff2121d8.system.entry.js +1 -0
- package/dist/blip-ds/{p-c0a28808.system.entry.js → p-ff959f50.system.entry.js} +1 -1
- package/dist/blip-ds/validations-6d914b78.js +29 -0
- package/dist/blip-ds/validations-8d4fb12a.system.js +1 -0
- package/dist/blip-ds-react/components.d.ts +3 -0
- package/dist/blip-ds-react/components.js +3 -0
- package/dist/blip-ds-react/components.js.map +1 -1
- package/dist/cjs/bds-alert-actions.cjs.entry.js +1 -1
- package/dist/cjs/bds-alert-body.cjs.entry.js +1 -1
- package/dist/cjs/bds-alert-header.cjs.entry.js +1 -1
- package/dist/cjs/bds-alert.cjs.entry.js +1 -1
- package/dist/cjs/bds-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/bds-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/bds-avatar.cjs.entry.js +1 -1
- package/dist/cjs/bds-banner.cjs.entry.js +1 -1
- package/dist/cjs/bds-button-icon.cjs.entry.js +1 -1
- package/dist/cjs/bds-button.cjs.entry.js +1 -1
- package/dist/cjs/bds-button_2.cjs.entry.js +10 -6
- package/dist/cjs/bds-card-color.cjs.entry.js +1 -1
- package/dist/cjs/bds-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/bds-chip.cjs.entry.js +1 -1
- package/dist/cjs/bds-counter-text.cjs.entry.js +1 -1
- package/dist/cjs/bds-counter-text_2.cjs.entry.js +2 -2
- package/dist/cjs/bds-datepicker-period.cjs.entry.js +260 -0
- package/dist/cjs/bds-datepicker-period_2.cjs.entry.js +442 -0
- package/dist/cjs/bds-datepicker-single.cjs.entry.js +189 -0
- package/dist/cjs/bds-datepicker.cjs.entry.js +139 -0
- package/dist/cjs/bds-expansion-panel-body.cjs.entry.js +1 -1
- package/dist/cjs/bds-expansion-panel-header.cjs.entry.js +1 -1
- package/dist/cjs/bds-expansion-panel.cjs.entry.js +1 -1
- package/dist/cjs/bds-icon.cjs.entry.js +1 -1
- package/dist/cjs/bds-input-chips.cjs.entry.js +2 -2
- package/dist/cjs/bds-input-editable.cjs.entry.js +1 -1
- package/dist/cjs/bds-input-password.cjs.entry.js +1 -1
- package/dist/cjs/bds-input-phone-number.cjs.entry.js +1 -1
- package/dist/cjs/bds-input.cjs.entry.js +2 -2
- package/dist/cjs/bds-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/bds-menu-action.cjs.entry.js +1 -1
- package/dist/cjs/bds-menu-exibition.cjs.entry.js +1 -1
- package/dist/cjs/bds-menu-list-item.cjs.entry.js +1 -1
- package/dist/cjs/bds-menu-list.cjs.entry.js +1 -1
- package/dist/cjs/bds-menu-separation.cjs.entry.js +1 -1
- package/dist/cjs/bds-menu.cjs.entry.js +1 -1
- package/dist/cjs/bds-modal-action.cjs.entry.js +1 -1
- package/dist/cjs/bds-modal-close-button.cjs.entry.js +1 -1
- package/dist/cjs/bds-modal.cjs.entry.js +1 -1
- package/dist/cjs/bds-paper.cjs.entry.js +1 -1
- package/dist/cjs/bds-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/bds-radio.cjs.entry.js +1 -1
- package/dist/cjs/bds-select-chips.cjs.entry.js +1 -1
- package/dist/cjs/bds-select-option.cjs.entry.js +1 -1
- package/dist/cjs/bds-select.cjs.entry.js +1 -1
- package/dist/cjs/bds-step.cjs.entry.js +1 -1
- package/dist/cjs/bds-stepper.cjs.entry.js +1 -1
- package/dist/cjs/bds-switch.cjs.entry.js +1 -1
- package/dist/cjs/bds-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/bds-tab.cjs.entry.js +1 -1
- package/dist/cjs/bds-tabs.cjs.entry.js +1 -1
- package/dist/cjs/bds-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/bds-toast.cjs.entry.js +1 -1
- package/dist/cjs/bds-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/bds-typo.cjs.entry.js +1 -1
- package/dist/cjs/bds-warning.cjs.entry.js +1 -1
- package/dist/cjs/blip-ds.cjs.js +2 -2
- package/dist/cjs/calendar-1c7c052d.js +196 -0
- package/dist/cjs/{index-d19629d9.js → index-43e4c8a0.js} +3 -0
- package/dist/cjs/{index-efa931a3.js → index-74ce253e.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{validations-8d60065c.js → validations-431d75ca.js} +13 -0
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/datepicker/datepicker-interface.js +1 -0
- package/dist/collection/components/datepicker/datepicker-period/datepicker-period.js +423 -0
- package/dist/collection/components/datepicker/datepicker-single/datepicker-single.js +326 -0
- package/dist/collection/components/datepicker/datepicker.css +759 -0
- package/dist/collection/components/datepicker/datepicker.js +269 -0
- package/dist/collection/utils/calendar.js +181 -0
- package/dist/collection/utils/validations.js +11 -0
- package/dist/esm/bds-alert-actions.entry.js +1 -1
- package/dist/esm/bds-alert-body.entry.js +1 -1
- package/dist/esm/bds-alert-header.entry.js +1 -1
- package/dist/esm/bds-alert.entry.js +1 -1
- package/dist/esm/bds-autocomplete.entry.js +1 -1
- package/dist/esm/bds-avatar-group.entry.js +1 -1
- package/dist/esm/bds-avatar.entry.js +1 -1
- package/dist/esm/bds-banner.entry.js +1 -1
- package/dist/esm/bds-button-icon.entry.js +1 -1
- package/dist/esm/bds-button.entry.js +1 -1
- package/dist/esm/bds-button_2.entry.js +10 -6
- package/dist/esm/bds-card-color.entry.js +1 -1
- package/dist/esm/bds-checkbox.entry.js +1 -1
- package/dist/esm/bds-chip.entry.js +1 -1
- package/dist/esm/bds-counter-text.entry.js +1 -1
- package/dist/esm/bds-counter-text_2.entry.js +2 -2
- package/dist/esm/bds-datepicker-period.entry.js +256 -0
- package/dist/esm/bds-datepicker-period_2.entry.js +437 -0
- package/dist/esm/bds-datepicker-single.entry.js +185 -0
- package/dist/esm/bds-datepicker.entry.js +135 -0
- package/dist/esm/bds-expansion-panel-body.entry.js +1 -1
- package/dist/esm/bds-expansion-panel-header.entry.js +1 -1
- package/dist/esm/bds-expansion-panel.entry.js +1 -1
- package/dist/esm/bds-icon.entry.js +1 -1
- package/dist/esm/bds-input-chips.entry.js +2 -2
- package/dist/esm/bds-input-editable.entry.js +1 -1
- package/dist/esm/bds-input-password.entry.js +1 -1
- package/dist/esm/bds-input-phone-number.entry.js +1 -1
- package/dist/esm/bds-input.entry.js +2 -2
- package/dist/esm/bds-loading-spinner.entry.js +1 -1
- package/dist/esm/bds-menu-action.entry.js +1 -1
- package/dist/esm/bds-menu-exibition.entry.js +1 -1
- package/dist/esm/bds-menu-list-item.entry.js +1 -1
- package/dist/esm/bds-menu-list.entry.js +1 -1
- package/dist/esm/bds-menu-separation.entry.js +1 -1
- package/dist/esm/bds-menu.entry.js +1 -1
- package/dist/esm/bds-modal-action.entry.js +1 -1
- package/dist/esm/bds-modal-close-button.entry.js +1 -1
- package/dist/esm/bds-modal.entry.js +1 -1
- package/dist/esm/bds-paper.entry.js +1 -1
- package/dist/esm/bds-radio-group.entry.js +1 -1
- package/dist/esm/bds-radio.entry.js +1 -1
- package/dist/esm/bds-select-chips.entry.js +1 -1
- package/dist/esm/bds-select-option.entry.js +1 -1
- package/dist/esm/bds-select.entry.js +1 -1
- package/dist/esm/bds-step.entry.js +1 -1
- package/dist/esm/bds-stepper.entry.js +1 -1
- package/dist/esm/bds-switch.entry.js +1 -1
- package/dist/esm/bds-tab-panel.entry.js +1 -1
- package/dist/esm/bds-tab.entry.js +1 -1
- package/dist/esm/bds-tabs.entry.js +1 -1
- package/dist/esm/bds-toast-container.entry.js +1 -1
- package/dist/esm/bds-toast.entry.js +1 -1
- package/dist/esm/bds-tooltip.entry.js +1 -1
- package/dist/esm/bds-typo.entry.js +1 -1
- package/dist/esm/bds-warning.entry.js +1 -1
- package/dist/esm/blip-ds.js +2 -2
- package/dist/esm/calendar-b2732eee.js +183 -0
- package/dist/esm/{index-661c3511.js → index-b442f467.js} +1 -1
- package/dist/esm/{index-40c954b4.js → index-c965a40e.js} +3 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/validations-6d914b78.js +29 -0
- package/dist/esm-es5/bds-alert-actions.entry.js +1 -1
- package/dist/esm-es5/bds-alert-body.entry.js +1 -1
- package/dist/esm-es5/bds-alert-header.entry.js +1 -1
- package/dist/esm-es5/bds-alert.entry.js +1 -1
- package/dist/esm-es5/bds-autocomplete.entry.js +1 -1
- package/dist/esm-es5/bds-avatar-group.entry.js +1 -1
- package/dist/esm-es5/bds-avatar.entry.js +1 -1
- package/dist/esm-es5/bds-banner.entry.js +1 -1
- package/dist/esm-es5/bds-button-icon.entry.js +1 -1
- package/dist/esm-es5/bds-button_2.entry.js +1 -1
- package/dist/esm-es5/bds-card-color.entry.js +1 -1
- package/dist/esm-es5/bds-checkbox.entry.js +1 -1
- package/dist/esm-es5/bds-chip.entry.js +1 -1
- package/dist/esm-es5/bds-counter-text_2.entry.js +1 -1
- package/dist/esm-es5/bds-datepicker-period_2.entry.js +1 -0
- package/dist/esm-es5/bds-datepicker.entry.js +1 -0
- package/dist/esm-es5/bds-expansion-panel-body.entry.js +1 -1
- package/dist/esm-es5/bds-expansion-panel-header.entry.js +1 -1
- package/dist/esm-es5/bds-expansion-panel.entry.js +1 -1
- package/dist/esm-es5/bds-icon.entry.js +1 -1
- package/dist/esm-es5/bds-input-chips.entry.js +1 -1
- package/dist/esm-es5/bds-input-editable.entry.js +1 -1
- package/dist/esm-es5/bds-input-password.entry.js +1 -1
- package/dist/esm-es5/bds-input-phone-number.entry.js +1 -1
- package/dist/esm-es5/bds-menu-action.entry.js +1 -1
- package/dist/esm-es5/bds-menu-exibition.entry.js +1 -1
- package/dist/esm-es5/bds-menu-list-item.entry.js +1 -1
- package/dist/esm-es5/bds-menu-list.entry.js +1 -1
- package/dist/esm-es5/bds-menu-separation.entry.js +1 -1
- package/dist/esm-es5/bds-menu.entry.js +1 -1
- package/dist/esm-es5/bds-modal-action.entry.js +1 -1
- package/dist/esm-es5/bds-modal-close-button.entry.js +1 -1
- package/dist/esm-es5/bds-modal.entry.js +1 -1
- package/dist/esm-es5/bds-paper.entry.js +1 -1
- package/dist/esm-es5/bds-radio-group.entry.js +1 -1
- package/dist/esm-es5/bds-radio.entry.js +1 -1
- package/dist/esm-es5/bds-select-chips.entry.js +1 -1
- package/dist/esm-es5/bds-select-option.entry.js +1 -1
- package/dist/esm-es5/bds-select.entry.js +1 -1
- package/dist/esm-es5/bds-step.entry.js +1 -1
- package/dist/esm-es5/bds-stepper.entry.js +1 -1
- package/dist/esm-es5/bds-switch.entry.js +1 -1
- package/dist/esm-es5/bds-tab-panel.entry.js +1 -1
- package/dist/esm-es5/bds-tab.entry.js +1 -1
- package/dist/esm-es5/bds-tabs.entry.js +1 -1
- package/dist/esm-es5/bds-toast-container.entry.js +1 -0
- package/dist/esm-es5/bds-toast.entry.js +1 -1
- package/dist/esm-es5/bds-tooltip.entry.js +1 -1
- package/dist/esm-es5/bds-typo.entry.js +1 -1
- package/dist/esm-es5/bds-warning.entry.js +1 -1
- package/dist/esm-es5/blip-ds.js +1 -1
- package/dist/esm-es5/calendar-b2732eee.js +1 -0
- package/dist/esm-es5/{index-40c954b4.js → index-c965a40e.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/validations-6d914b78.js +1 -0
- package/dist/types/components/datepicker/datepicker-interface.d.ts +15 -0
- package/dist/types/components/datepicker/datepicker-period/datepicker-period.d.ts +55 -0
- package/dist/types/components/datepicker/datepicker-single/datepicker-single.d.ts +46 -0
- package/dist/types/components/datepicker/datepicker.d.ts +45 -0
- package/dist/types/components.d.ts +143 -0
- package/dist/types/utils/calendar.d.ts +27 -0
- package/dist/types/utils/validations.d.ts +2 -0
- package/package.json +1 -1
- package/dist/blip-ds/index-96380c57.system.js +0 -1
- package/dist/blip-ds/p-09142055.entry.js +0 -1
- package/dist/blip-ds/p-39c65d6c.entry.js +0 -1
- package/dist/blip-ds/p-4cb37399.js +0 -1
- package/dist/blip-ds/p-51e72868.system.entry.js +0 -1
- package/dist/blip-ds/p-5e5d57d0.system.js +0 -1
- package/dist/blip-ds/p-74ec4f2d.system.entry.js +0 -1
- package/dist/blip-ds/p-8ec380e0.system.entry.js +0 -1
- package/dist/blip-ds/p-d7b37f79.js +0 -1
- package/dist/blip-ds/p-e99df89d.system.js +0 -1
- package/dist/blip-ds/validations-320ff6a3.js +0 -18
- package/dist/blip-ds/validations-bd6efd45.system.js +0 -1
- package/dist/esm/validations-320ff6a3.js +0 -18
- package/dist/esm-es5/bds-loading-spinner.entry.js +0 -1
- package/dist/esm-es5/validations-320ff6a3.js +0 -1
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { r as registerInstance, e as createEvent, h } from './index-1762f0ca.js';
|
|
2
|
+
import { T as THIS_DAY, b as dateToDayList, d as defaultStartDate, a as defaultEndDate, W as WEEK_DAYS, g as getMonthsSlide, e as getYears, h as getMonths, f as fillDayList, i as fillDate, M as MONTHS } from './calendar-b2732eee.js';
|
|
3
|
+
|
|
4
|
+
const datepickerCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%}:host input{-webkit-box-shadow:inherit;box-shadow:inherit}:host input::-webkit-input-placeholder{color:#b9cbd3;opacity:1}:host input::-moz-placeholder{color:#b9cbd3;opacity:1}:host input:-ms-input-placeholder{color:#b9cbd3;opacity:1}:host input::-ms-input-placeholder{color:#b9cbd3;opacity:1}:host input::placeholder{color:#b9cbd3;opacity:1}:host input::-webkit-input-placeholder{color:#b9cbd3;opacity:1}.input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:8px 4px 9px 12px;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;background:#ffffff}.input--state-primary{border:1px solid #d2dfe6;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-primary:hover{border:1px solid #3f7de8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-primary.input--pressed{border:1px solid #3f7de8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px rgba(63, 125, 232, 0.4);box-shadow:0 0 0 2px rgba(63, 125, 232, 0.4)}.input--state-primary .input__icon{color:#3f7de8;background-color:#e8f2ff}.input--state-primary .input__container__label{color:#8ca0b3}.input--state-primary .input__container__label--pressed{color:#3f7de8}.input--state-primary .input__container__text{caret-color:#3f7de8;color:#202c44}.input--state-danger{border:1px solid #ff4c4c;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-danger:hover{border:1px solid #ff4c4c;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-danger.input--pressed{border:1px solid #ff4c4c;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px #ffa5a5;box-shadow:0 0 0 2px #ffa5a5}.input--state-danger .input__icon{color:#ff4c4c;background-color:#ffa5a5}.input--state-danger .input__container__label{color:#8ca0b3}.input--state-danger .input__container__label--pressed{color:#ff4c4c}.input--state-danger .input__container__text{caret-color:#ff4c4c;color:#202c44}.input--state-disabled{cursor:not-allowed;border:1px solid #e7edf4;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;background:#f3f6fa}.input--state-disabled:hover{border:1px solid #b9cbd3;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;border:1px solid #e7edf4;box-sizing:border-box;border-radius:8px}.input--state-disabled.input--pressed{border:1px solid #b9cbd3;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px #e7edf4;box-shadow:0 0 0 2px #e7edf4}.input--state-disabled .input__icon{color:#b9cbd3;background-color:#f8fbfb}.input--state-disabled .input__container__label{color:#b9cbd3}.input--state-disabled .input__container__label--pressed{color:#b9cbd3}.input--state-disabled .input__container__text{caret-color:#b9cbd3;color:#b9cbd3}.input--label{padding:7px 4px 8px 12px}.input__icon{cursor:inherit;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:8px;margin-right:8px;padding:2.5px}.input__icon--large{padding:4px}.input__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.input__container__wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.input__container__wrapper__chips{display:inline;max-height:100px;overflow:auto}.input__container__wrapper__chips::-webkit-scrollbar{width:16px;background-color:transparent}.input__container__wrapper__chips::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.input__container__label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input__container__text{display:inline-block;margin:0;border:0;padding:0;width:auto;vertical-align:middle;white-space:normal;line-height:inherit;background:none;color:inherit;font-size:inherit;font-family:inherit;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font-family:\"Nunito Sans\", \"Tahoma\", \"Helvetica\", \"Arial\", sans-serif;font-size:0.875rem;line-height:150%;resize:none;cursor:inherit}.input__container__text:focus{outline:0}.input__container__text::-webkit-file-upload-button{padding:0;border:0;background:none}.input__container__text:focus{outline:0}.input__container__text[type=checkbox],.input__container__text[type=radio]{width:13px;height:13px}.input__container__text[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box}::-webkit-search-decoration{display:none}.input__container__text[type=reset],.input__container__text[type=button],.input__container__text[type=submit]{overflow:visible}.input__container__text::-webkit-scrollbar{width:16px;background-color:transparent}.input__container__text::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.input__message{display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline;height:20px;margin:3.7px 2.5px;-webkit-transition:0.3s cubic-bezier(0.4, 0, 0.2, 1);transition:0.3s cubic-bezier(0.4, 0, 0.2, 1);color:#8ca0b3;word-break:break-word;height:auto;min-height:20px}.input__message bds-typo{margin-top:0px;-ms-flex-item-align:self-start;align-self:self-start}.input__message__icon{display:-ms-flexbox;display:flex;padding-right:4px;margin-top:0px;padding-top:2px}.input__message--danger{color:#ff4c4c}.input__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.input__container__label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input__container__wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.input__container__text{display:inline-block;margin:0;border:0;padding:0;width:auto;vertical-align:middle;white-space:normal;line-height:inherit;background:none;color:inherit;font-size:inherit;font-family:inherit;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font-family:\"Nunito Sans\", \"Tahoma\", \"Helvetica\", \"Arial\", sans-serif;font-size:0.875rem;line-height:150%;width:100%;resize:none;cursor:inherit}.input__container__text:focus{outline:0}.input__container__text::-webkit-file-upload-button{padding:0;border:0;background:none}.input__container__text:focus{outline:0}.input__container__text[type=checkbox],.input__container__text[type=radio]{width:13px;height:13px}.input__container__text[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box}::-webkit-search-decoration{display:none}.input__container__text[type=reset],.input__container__text[type=button],.input__container__text[type=submit]{overflow:visible}.input__container__text__chips{width:auto;min-width:216px;max-width:216px}.datepicker{position:relative;max-width:608px}.datepicker__menu{position:absolute;pointer-events:none;top:calc(100% + 16px);left:0;background-color:#ffffff;-webkit-box-shadow:0px 4px 10px rgba(51, 51, 51, 0.3);box-shadow:0px 4px 10px rgba(51, 51, 51, 0.3);border-radius:8px;padding:16px;opacity:0;-webkit-transition:all 0.5s;-moz-transition:all 0.5s;transition:all 0.5s;z-index:80000}.datepicker__menu__open{pointer-events:auto;opacity:1}.datepicker__menu__message{padding:8px 16px;border-radius:8px;background-color:#fff6a8;color:#212a3c;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:24px}.datepicker__menu__message bds-icon{margin-right:8px}.datepicker__menu__footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;padding-top:16px;margin-top:16px;border-top:1px solid #d2dfe6}.datepicker__menu__footer bds-button{margin-left:16px}.datepicker__inputs{width:100%;display:grid}.datepicker__inputs__single{grid-template-columns:1fr}.datepicker__inputs__period{grid-template-columns:1fr 1fr;gap:16px}.datepicker__inputs bds-input{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:100%}.datepicker__inputs bds-input::part(input-container){position:relative}.datepicker__inputs__icon{cursor:pointer;color:#8ca0b3;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:space-evenly;justify-content:space-evenly;padding-right:16px}.datepicker__inputs__icon bds-icon:first-child{margin-right:8px}.datepicker__inputs__icon:hover bds-icon:first-child{color:#3f7de8}.datepicker__calendar{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.datepicker__calendar__selectDate{width:100%;display:grid;grid-template-columns:28px 1fr 80px 28px;grid-gap:8px;-ms-flex-align:center;align-items:center;margin-bottom:16px;padding:0 8px}.datepicker__calendar__selectDate__select{position:relative;width:100%}.datepicker__calendar__selectDate__select__input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:8px 4px 9px 12px;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;background:#ffffff;border:1px solid #d2dfe6;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.datepicker__calendar__selectDate__select__input:hover{border:1px solid #3f7de8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.datepicker__calendar__selectDate__select__input.input--pressed{border:1px solid #3f7de8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px rgba(63, 125, 232, 0.4);box-shadow:0 0 0 2px rgba(63, 125, 232, 0.4)}.datepicker__calendar__selectDate__select__input .input__icon{color:#3f7de8;background-color:#e8f2ff}.datepicker__calendar__selectDate__select__input .input__container__label{color:#8ca0b3}.datepicker__calendar__selectDate__select__input .input__container__label--pressed{color:#3f7de8}.datepicker__calendar__selectDate__select__input .input__container__text{caret-color:#3f7de8;color:#202c44}.datepicker__calendar__selectDate__select__input__disable{cursor:not-allowed;border:1px solid #e7edf4;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;background:#f3f6fa}.datepicker__calendar__selectDate__select__input__disable:hover{border:1px solid #b9cbd3;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;border:1px solid #e7edf4;box-sizing:border-box;border-radius:8px}.datepicker__calendar__selectDate__select__input__disable.input--pressed{border:1px solid #b9cbd3;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px #e7edf4;box-shadow:0 0 0 2px #e7edf4}.datepicker__calendar__selectDate__select__input__disable .input__icon{color:#b9cbd3;background-color:#f8fbfb}.datepicker__calendar__selectDate__select__input__disable .input__container__label{color:#b9cbd3}.datepicker__calendar__selectDate__select__input__disable .input__container__label--pressed{color:#b9cbd3}.datepicker__calendar__selectDate__select__input__disable .input__container__text{caret-color:#b9cbd3;color:#b9cbd3}.datepicker__calendar__selectDate__select__input__icon{color:#8ca0b3;display:-ms-flexbox;display:flex}.datepicker__calendar__selectDate__select__options{background:#f8fbfb;width:100%;max-height:250px;position:absolute;top:99%;left:0;border-radius:8px;-webkit-box-shadow:0 2px 8px rgba(96, 123, 153, 0.4);box-shadow:0 2px 8px rgba(96, 123, 153, 0.4);overflow-y:auto;z-index:2;margin-top:4px;-webkit-transition:opacity 0.75s, visibility 0.75s, -webkit-transform 0.25s;transition:opacity 0.75s, visibility 0.75s, -webkit-transform 0.25s;transition:transform 0.25s, opacity 0.75s, visibility 0.75s;transition:transform 0.25s, opacity 0.75s, visibility 0.75s, -webkit-transform 0.25s;-webkit-transform-origin:top left;transform-origin:top left;-webkit-transform:scaleY(0);transform:scaleY(0);opacity:0}.datepicker__calendar__selectDate__select__options::-webkit-scrollbar{width:16px;background-color:transparent}.datepicker__calendar__selectDate__select__options::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.datepicker__calendar__selectDate__select__options--open{visibility:visible;-webkit-transform:scale(1);transform:scale(1);opacity:1}.datepicker__calendar__selectDate__icon{cursor:pointer;color:#505f79}.datepicker__calendar__selectDate .arrow-left{padding-left:8px}.datepicker__calendar__selectDate .arrow-left__disable{opacity:0;pointer-events:none}.datepicker__calendar__selectDate .arrow-right{padding-right:8px}.datepicker__calendar__selectDate .arrow-right__disable{opacity:0;pointer-events:none}.datepicker__calendar__week{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:grid;grid-template-columns:repeat(7, 1fr)}.datepicker__calendar__week__day{width:40px;height:40px;text-align:center;color:#b9cbd3;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.datepicker__calendar__car{height:240px;width:280px;overflow:hidden;position:relative}.datepicker__calendar__car__slide{display:-ms-flexbox;display:flex;position:absolute;left:-100%}.datepicker__calendar__car__slide__box{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;display:grid;grid-template-columns:repeat(7, 1fr)}.datepicker__calendar__car__slide__box__day{width:40px;height:40px;position:relative}.datepicker__calendar__car__slide__box__day__period:before{content:\"\";position:absolute;inset:4px 0px;background-color:#e8f2ff}.datepicker__calendar__car__slide__box__day__start:before{inset:4px 0px 4px 4px;border-top-left-radius:16px;border-bottom-left-radius:16px}.datepicker__calendar__car__slide__box__day__end:before{inset:4px 4px 4px 0px;border-top-right-radius:16px;border-bottom-right-radius:16px}.datepicker__calendar__car__slide__box__day__typo{position:relative;width:calc(100% - 2px);height:calc(100% - 2px);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:100%;color:#505f79;border:1px solid transparent;cursor:pointer}.datepicker__calendar__car__slide__box__day__typo:hover{background-color:#ffffff;color:#3f7de8;border-color:#3f7de8}.datepicker__calendar__car__slide__box__day__current{background-color:#ffffff;color:#3f7de8;border-color:#3f7de8}.datepicker__calendar__car__slide__box__day__selected{background-color:#125ad5;color:#ffffff;border-color:#125ad5}.datepicker__calendar__car__slide__box__day__selected:hover{background-color:#125ad5;color:#ffffff;border-color:#125ad5}.datepicker__calendar__car__slide__box__day__disable{pointer-events:none;background-color:transparent;color:#8ca0b3}.datepicker__calendar__car .animate__prev{-webkit-animation-name:animationPrev;animation-name:animationPrev;-webkit-animation-duration:0.31s;animation-duration:0.31s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.datepicker__calendar__car .animate__next{-webkit-animation-name:animationNext;animation-name:animationNext;-webkit-animation-duration:0.31s;animation-duration:0.31s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.period .datepicker__calendar__selectDate{grid-template-columns:28px 120px 80px 1fr 28px}.period .datepicker__calendar__selectDate__futureMonth{padding-left:80px;text-align:center;color:#b9cbd3}.period .datepicker__calendar__week{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.period .datepicker__calendar__week__present,.period .datepicker__calendar__week__future{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:grid;grid-template-columns:repeat(7, 1fr)}.period .datepicker__calendar__car{height:240px;width:600px}.period .datepicker__calendar__car__slide{left:calc(-50% - 60px)}.period .datepicker__calendar__car__slide__box{margin-left:40px}.period .datepicker__calendar__car .animate__prev{-webkit-animation-name:animationPeriodPrev;animation-name:animationPeriodPrev}.period .datepicker__calendar__car .animate__next{-webkit-animation-name:animationPeriodNext;animation-name:animationPeriodNext}@-webkit-keyframes animationPrev{0%{left:-100%}100%{left:0}}@keyframes animationPrev{0%{left:-100%}100%{left:0}}@-webkit-keyframes animationNext{0%{left:-100%}100%{left:-200%}}@keyframes animationNext{0%{left:-100%}100%{left:-200%}}@-webkit-keyframes animationPeriodPrev{0%{left:calc(-50% - 60px)}100%{left:-40px}}@keyframes animationPeriodPrev{0%{left:calc(-50% - 60px)}100%{left:-40px}}@-webkit-keyframes animationPeriodNext{0%{left:calc(-50% - 60px)}100%{left:calc(-100% - 80px)}}@keyframes animationPeriodNext{0%{left:calc(-50% - 60px)}100%{left:calc(-100% - 80px)}}";
|
|
5
|
+
|
|
6
|
+
let BdsdatepickerPeriod = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.bdsStartDate = createEvent(this, "bdsStartDate", 7);
|
|
10
|
+
this.bdsEndDate = createEvent(this, "bdsEndDate", 7);
|
|
11
|
+
this.monthActivated = this.startDate ? this.startDate.month : THIS_DAY.getMonth();
|
|
12
|
+
this.yearActivated = this.startDate ? this.startDate.year : THIS_DAY.getFullYear();
|
|
13
|
+
this.animatePrev = false;
|
|
14
|
+
this.animateNext = false;
|
|
15
|
+
this.activeSelectYear = false;
|
|
16
|
+
this.openSelectMonth = false;
|
|
17
|
+
this.openSelectYear = false;
|
|
18
|
+
/**
|
|
19
|
+
* StartDate. Insert a limiter to select the date period.
|
|
20
|
+
*/
|
|
21
|
+
this.startDate = dateToDayList(defaultStartDate);
|
|
22
|
+
/**
|
|
23
|
+
* EndDate. Insert a limiter to select the date period.
|
|
24
|
+
*/
|
|
25
|
+
this.endDate = dateToDayList(defaultEndDate);
|
|
26
|
+
/**
|
|
27
|
+
* StartDateSelect. Insert a limiter to select the date period.
|
|
28
|
+
*/
|
|
29
|
+
this.startDateSelect = null;
|
|
30
|
+
/**
|
|
31
|
+
* EndDateSelect. Insert a limiter to select the date period.
|
|
32
|
+
*/
|
|
33
|
+
this.endDateSelect = null;
|
|
34
|
+
this.handler = (event, ref) => {
|
|
35
|
+
const { detail: { value }, } = event;
|
|
36
|
+
if (ref == 'months') {
|
|
37
|
+
this.monthActivated = value;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
if (value == this.endDate.year)
|
|
41
|
+
this.monthActivated = 0;
|
|
42
|
+
if (value == this.startDate.year)
|
|
43
|
+
this.monthActivated = this.startDate.month;
|
|
44
|
+
this.yearActivated = value;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
this.openDateSelect = (value, ref) => {
|
|
48
|
+
if (ref == 'months') {
|
|
49
|
+
setTimeout(() => {
|
|
50
|
+
this.openSelectMonth = value;
|
|
51
|
+
}, 100);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
setTimeout(() => {
|
|
55
|
+
this.openSelectYear = value;
|
|
56
|
+
}, 100);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Return the validity of the input.
|
|
62
|
+
*/
|
|
63
|
+
async clear() {
|
|
64
|
+
this.startDateSelect = null;
|
|
65
|
+
this.endDateSelect = null;
|
|
66
|
+
}
|
|
67
|
+
startDateChanged() {
|
|
68
|
+
var _a;
|
|
69
|
+
this.bdsStartDate.emit({ value: this.startDateSelect });
|
|
70
|
+
this.monthActivated = this.startDateSelect ? (_a = this.startDateSelect) === null || _a === void 0 ? void 0 : _a.getMonth() : this.startDate.month;
|
|
71
|
+
this.yearActivated = this.startDateSelect ? this.startDateSelect.getFullYear() : this.startDate.year;
|
|
72
|
+
}
|
|
73
|
+
endDateChanged() {
|
|
74
|
+
this.bdsEndDate.emit({ value: this.endDateSelect });
|
|
75
|
+
this.monthActivated = this.endDateSelect
|
|
76
|
+
? this.startDateSelect.getMonth() == this.endDateSelect.getMonth() &&
|
|
77
|
+
this.startDateSelect.getFullYear() == this.endDateSelect.getFullYear()
|
|
78
|
+
? this.startDateSelect.getMonth()
|
|
79
|
+
: this.endDateSelect.getMonth() - 1
|
|
80
|
+
: this.startDate.month;
|
|
81
|
+
this.yearActivated = this.endDateSelect ? this.endDateSelect.getFullYear() : this.startDate.year;
|
|
82
|
+
if (this.monthActivated < 0) {
|
|
83
|
+
this.monthActivated = 11;
|
|
84
|
+
this.yearActivated = this.yearActivated - 1;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
componentWillRender() {
|
|
88
|
+
this.week = Object.values(WEEK_DAYS);
|
|
89
|
+
this.monthsSlide = getMonthsSlide(this.yearActivated, this.monthActivated);
|
|
90
|
+
this.years = getYears(this.yearActivated, this.startDate.year, this.endDate.year);
|
|
91
|
+
this.months = getMonths(this.yearActivated, this.startDate, this.endDate);
|
|
92
|
+
}
|
|
93
|
+
prevDays(value) {
|
|
94
|
+
const lenghtDays = [];
|
|
95
|
+
for (let i = 0; i < value; i++) {
|
|
96
|
+
lenghtDays.push(i);
|
|
97
|
+
}
|
|
98
|
+
return lenghtDays.map((item) => h("span", { key: `id${item}`, class: `space ${item}` }));
|
|
99
|
+
}
|
|
100
|
+
selectDate(value) {
|
|
101
|
+
const changeSelected = new Date(value.year, value.month, value.date);
|
|
102
|
+
if (this.startDateSelect) {
|
|
103
|
+
this.endDateSelect = changeSelected;
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
this.startDateSelect = changeSelected;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
prevMonth() {
|
|
110
|
+
this.animatePrev = true;
|
|
111
|
+
setTimeout(() => {
|
|
112
|
+
this.animatePrev = false;
|
|
113
|
+
this.monthActivated = this.monthActivated - 1;
|
|
114
|
+
if (this.monthActivated < 0) {
|
|
115
|
+
this.monthActivated = 11;
|
|
116
|
+
this.yearActivated = this.yearActivated - 1;
|
|
117
|
+
}
|
|
118
|
+
}, 300);
|
|
119
|
+
}
|
|
120
|
+
nextMonth() {
|
|
121
|
+
this.animateNext = true;
|
|
122
|
+
setTimeout(() => {
|
|
123
|
+
this.animateNext = false;
|
|
124
|
+
this.monthActivated = this.monthActivated + 1;
|
|
125
|
+
if (this.monthActivated > 11) {
|
|
126
|
+
this.monthActivated = 0;
|
|
127
|
+
this.yearActivated = this.yearActivated + 1;
|
|
128
|
+
}
|
|
129
|
+
}, 300);
|
|
130
|
+
}
|
|
131
|
+
checkCurrentDay(value) {
|
|
132
|
+
const validateDate = fillDayList(value);
|
|
133
|
+
const fullCurrDate = fillDate(THIS_DAY);
|
|
134
|
+
if (validateDate == fullCurrDate)
|
|
135
|
+
return true;
|
|
136
|
+
else
|
|
137
|
+
return false;
|
|
138
|
+
}
|
|
139
|
+
checkDisableDay(value) {
|
|
140
|
+
const validateDate = fillDayList(value);
|
|
141
|
+
const startDateLimit = this.startDate ? fillDayList(this.startDate) : `0`;
|
|
142
|
+
const endDateLimit = this.endDate ? fillDayList(this.endDate) : `9999999`;
|
|
143
|
+
const startSelectedDate = this.startDateSelect ? fillDate(this.startDateSelect) : `0`;
|
|
144
|
+
if (this.startDate && validateDate < startDateLimit) {
|
|
145
|
+
return true;
|
|
146
|
+
}
|
|
147
|
+
if (this.startDateSelect) {
|
|
148
|
+
if (validateDate < startSelectedDate) {
|
|
149
|
+
return true;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
if (this.endDate && validateDate > endDateLimit) {
|
|
153
|
+
return true;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
checkSelectedDay(value) {
|
|
157
|
+
const validateDate = fillDayList(value);
|
|
158
|
+
const startSelectedDate = this.startDateSelect ? fillDate(this.startDateSelect) : `0`;
|
|
159
|
+
const endSelectedDate = this.endDateSelect ? fillDate(this.endDateSelect) : `0`;
|
|
160
|
+
if (validateDate == startSelectedDate || validateDate == endSelectedDate)
|
|
161
|
+
return true;
|
|
162
|
+
else
|
|
163
|
+
return false;
|
|
164
|
+
}
|
|
165
|
+
checkPeriodDay(value) {
|
|
166
|
+
const validateDate = fillDayList(value);
|
|
167
|
+
const startSelectedDate = this.startDateSelect ? fillDate(this.startDateSelect) : `0`;
|
|
168
|
+
const endSelectedDate = this.endDateSelect ? fillDate(this.endDateSelect) : `0`;
|
|
169
|
+
if (startSelectedDate && endSelectedDate) {
|
|
170
|
+
if (validateDate >= startSelectedDate && validateDate <= endSelectedDate) {
|
|
171
|
+
return true;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
checkPeriodStart(value) {
|
|
176
|
+
const validateDate = value.date == 1;
|
|
177
|
+
const validateDay = value.day == 0;
|
|
178
|
+
const selectDate = fillDayList(value);
|
|
179
|
+
const startSelectedDate = this.startDateSelect ? fillDate(this.startDateSelect) : `0`;
|
|
180
|
+
const validateStartDate = selectDate == startSelectedDate;
|
|
181
|
+
if (validateDate || validateDay || validateStartDate) {
|
|
182
|
+
return true;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
checkPeriodEnd(value, lastItem) {
|
|
186
|
+
const validateDate = lastItem;
|
|
187
|
+
const validateDay = value.day == 6;
|
|
188
|
+
const selectDate = fillDayList(value);
|
|
189
|
+
const endSelectedDate = this.endDateSelect ? fillDate(this.endDateSelect) : `0`;
|
|
190
|
+
const validateStartDate = selectDate == endSelectedDate;
|
|
191
|
+
if (validateDate || validateDay || validateStartDate) {
|
|
192
|
+
return true;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
renderSelectData(data, selected, ref) {
|
|
196
|
+
const openSelect = ref == 'months' ? this.openSelectMonth : this.openSelectYear;
|
|
197
|
+
const labelSelect = data.filter((obj) => obj.value === selected);
|
|
198
|
+
const iconArrow = openSelect ? 'arrow-up' : 'arrow-down';
|
|
199
|
+
return (h("div", { class: {
|
|
200
|
+
datepicker__calendar__selectDate__select: true,
|
|
201
|
+
[`datepicker__calendar__selectDate__select__${ref}`]: true,
|
|
202
|
+
} }, h("button", { onFocus: () => data.length > 1 && this.openDateSelect(true, ref), onBlur: () => data.length > 1 && this.openDateSelect(false, ref), class: {
|
|
203
|
+
datepicker__calendar__selectDate__select__input: true,
|
|
204
|
+
datepicker__calendar__selectDate__select__input__disable: data.length <= 1,
|
|
205
|
+
[`input--pressed`]: openSelect,
|
|
206
|
+
} }, h("bds-typo", { variant: "fs-14" }, labelSelect[0].label), h("div", { slot: "input-right", class: "select__icon" }, h("bds-icon", { size: "small", name: iconArrow, color: "inherit" }))), h("div", { class: {
|
|
207
|
+
datepicker__calendar__selectDate__select__options: true,
|
|
208
|
+
'datepicker__calendar__selectDate__select__options--open': openSelect,
|
|
209
|
+
} }, data.map((option) => (h("bds-select-option", { value: option.value, key: option.value, onOptionSelected: (event) => this.handler(event, ref), selected: option.value == selected, onClick: () => this.openDateSelect(false, ref) }, option.label))))));
|
|
210
|
+
}
|
|
211
|
+
renderCarSlideBox(days, firstDayWeek) {
|
|
212
|
+
return (h("div", { class: { datepicker__calendar__car__slide__box: true } }, this.prevDays(firstDayWeek), days.map((item, idx) => (h("div", { key: idx, class: {
|
|
213
|
+
datepicker__calendar__car__slide__box__day: true,
|
|
214
|
+
datepicker__calendar__car__slide__box__day__period: this.checkPeriodDay(item),
|
|
215
|
+
datepicker__calendar__car__slide__box__day__start: this.checkPeriodStart(item),
|
|
216
|
+
datepicker__calendar__car__slide__box__day__end: this.checkPeriodEnd(item, days.length === idx + 1),
|
|
217
|
+
} }, h("bds-typo", { class: {
|
|
218
|
+
datepicker__calendar__car__slide__box__day__typo: true,
|
|
219
|
+
datepicker__calendar__car__slide__box__day__current: this.checkCurrentDay(item),
|
|
220
|
+
datepicker__calendar__car__slide__box__day__selected: this.checkSelectedDay(item),
|
|
221
|
+
datepicker__calendar__car__slide__box__day__disable: this.checkDisableDay(item),
|
|
222
|
+
}, onClick: () => this.selectDate(item) }, item.date))))));
|
|
223
|
+
}
|
|
224
|
+
render() {
|
|
225
|
+
const futureMonth = MONTHS.filter((obj) => obj.value === this.monthsSlide[2].month);
|
|
226
|
+
return (h("div", { class: { datepicker__calendar: true, [`period`]: true } }, h("div", { class: { datepicker__calendar__selectDate: true } }, h("bds-icon", { class: {
|
|
227
|
+
[`arrow-left`]: true,
|
|
228
|
+
[`arrow-left__disable`]: fillDayList(this.monthsSlide[0].days[this.monthsSlide[0].days.length - 1]) <
|
|
229
|
+
fillDayList(this.startDate),
|
|
230
|
+
datepicker__calendar__selectDate__icon: true,
|
|
231
|
+
}, name: "arrow-left", theme: "outline", size: "small", onClick: () => this.prevMonth() }), [
|
|
232
|
+
this.renderSelectData(this.months, this.monthActivated, 'months'),
|
|
233
|
+
this.renderSelectData(this.years, this.yearActivated, 'years'),
|
|
234
|
+
], h("bds-typo", { class: "datepicker__calendar__selectDate__futureMonth", variant: "fs-14" }, futureMonth[0].label), h("bds-icon", { class: {
|
|
235
|
+
[`arrow-right`]: true,
|
|
236
|
+
[`arrow-right__disable`]: fillDayList(this.monthsSlide[2].days[0]) > fillDayList(this.endDate),
|
|
237
|
+
datepicker__calendar__selectDate__icon: true,
|
|
238
|
+
}, name: "arrow-right", theme: "outline", size: "small", onClick: () => this.nextMonth() })), h("div", null, h("div", { class: { datepicker__calendar__week: true } }, h("div", { class: { datepicker__calendar__week__present: true } }, this.week.map((item, idx) => (h("bds-typo", { key: idx, class: `datepicker__calendar__week__day` }, item.charAt(0))))), h("div", { class: { datepicker__calendar__week__future: true } }, this.week.map((item, idx) => (h("bds-typo", { key: idx, class: `datepicker__calendar__week__day` }, item.charAt(0)))))), h("div", { class: { datepicker__calendar__car: true, datepicker__calendar__car__period: true } }, h("div", { class: {
|
|
239
|
+
datepicker__calendar__car__slide: true,
|
|
240
|
+
animate__prev: this.animatePrev,
|
|
241
|
+
animate__next: this.animateNext,
|
|
242
|
+
} }, [
|
|
243
|
+
this.renderCarSlideBox(this.monthsSlide[0].days, this.monthsSlide[0].days[0].day),
|
|
244
|
+
this.renderCarSlideBox(this.monthsSlide[1].days, this.monthsSlide[1].days[0].day),
|
|
245
|
+
this.renderCarSlideBox(this.monthsSlide[2].days, this.monthsSlide[2].days[0].day),
|
|
246
|
+
this.renderCarSlideBox(this.monthsSlide[3].days, this.monthsSlide[3].days[0].day),
|
|
247
|
+
])))));
|
|
248
|
+
}
|
|
249
|
+
static get watchers() { return {
|
|
250
|
+
"startDateSelect": ["startDateChanged"],
|
|
251
|
+
"endDateSelect": ["endDateChanged"]
|
|
252
|
+
}; }
|
|
253
|
+
};
|
|
254
|
+
BdsdatepickerPeriod.style = datepickerCss;
|
|
255
|
+
|
|
256
|
+
export { BdsdatepickerPeriod as bds_datepicker_period };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,i,a){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function o(e){try{s(a.next(e))}catch(t){n(t)}}function c(e){try{s(a["throw"](e))}catch(t){n(t)}}function s(e){e.done?i(e.value):r(e.value).then(o,c)}s((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},a,r,n,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(e){return function(t){return s([e,t])}}function s(o){if(a)throw new TypeError("Generator is already executing.");while(i)try{if(a=1,r&&(n=o[0]&2?r["return"]:o[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,o[1])).done)return n;if(r=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;r=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){i.label=o[1];break}if(o[0]===6&&i.label<n[1]){i.label=n[1];n=o;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(o);break}if(n[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(c){o=[6,c];r=0}finally{a=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./index-b6e5b643.system.js","./calendar-39b750c1.system.js"],(function(e){"use strict";var t,i,a,r,n,o,c,s,d,_,l,p,b,u;return{setters:[function(e){t=e.r;i=e.e;a=e.h},function(e){r=e.T;n=e.b;o=e.d;c=e.a;s=e.W;d=e.g;_=e.e;l=e.h;p=e.f;b=e.i;u=e.M}],execute:function(){var x=':host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%}:host input{-webkit-box-shadow:inherit;box-shadow:inherit}:host input::-webkit-input-placeholder{color:#b9cbd3;opacity:1}:host input::-moz-placeholder{color:#b9cbd3;opacity:1}:host input:-ms-input-placeholder{color:#b9cbd3;opacity:1}:host input::-ms-input-placeholder{color:#b9cbd3;opacity:1}:host input::placeholder{color:#b9cbd3;opacity:1}:host input::-webkit-input-placeholder{color:#b9cbd3;opacity:1}.input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:8px 4px 9px 12px;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;background:#ffffff}.input--state-primary{border:1px solid #d2dfe6;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-primary:hover{border:1px solid #3f7de8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-primary.input--pressed{border:1px solid #3f7de8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px rgba(63, 125, 232, 0.4);box-shadow:0 0 0 2px rgba(63, 125, 232, 0.4)}.input--state-primary .input__icon{color:#3f7de8;background-color:#e8f2ff}.input--state-primary .input__container__label{color:#8ca0b3}.input--state-primary .input__container__label--pressed{color:#3f7de8}.input--state-primary .input__container__text{caret-color:#3f7de8;color:#202c44}.input--state-danger{border:1px solid #ff4c4c;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-danger:hover{border:1px solid #ff4c4c;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-danger.input--pressed{border:1px solid #ff4c4c;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px #ffa5a5;box-shadow:0 0 0 2px #ffa5a5}.input--state-danger .input__icon{color:#ff4c4c;background-color:#ffa5a5}.input--state-danger .input__container__label{color:#8ca0b3}.input--state-danger .input__container__label--pressed{color:#ff4c4c}.input--state-danger .input__container__text{caret-color:#ff4c4c;color:#202c44}.input--state-disabled{cursor:not-allowed;border:1px solid #e7edf4;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;background:#f3f6fa}.input--state-disabled:hover{border:1px solid #b9cbd3;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;border:1px solid #e7edf4;box-sizing:border-box;border-radius:8px}.input--state-disabled.input--pressed{border:1px solid #b9cbd3;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px #e7edf4;box-shadow:0 0 0 2px #e7edf4}.input--state-disabled .input__icon{color:#b9cbd3;background-color:#f8fbfb}.input--state-disabled .input__container__label{color:#b9cbd3}.input--state-disabled .input__container__label--pressed{color:#b9cbd3}.input--state-disabled .input__container__text{caret-color:#b9cbd3;color:#b9cbd3}.input--label{padding:7px 4px 8px 12px}.input__icon{cursor:inherit;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:8px;margin-right:8px;padding:2.5px}.input__icon--large{padding:4px}.input__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.input__container__wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.input__container__wrapper__chips{display:inline;max-height:100px;overflow:auto}.input__container__wrapper__chips::-webkit-scrollbar{width:16px;background-color:transparent}.input__container__wrapper__chips::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.input__container__label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input__container__text{display:inline-block;margin:0;border:0;padding:0;width:auto;vertical-align:middle;white-space:normal;line-height:inherit;background:none;color:inherit;font-size:inherit;font-family:inherit;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font-family:"Nunito Sans", "Tahoma", "Helvetica", "Arial", sans-serif;font-size:0.875rem;line-height:150%;resize:none;cursor:inherit}.input__container__text:focus{outline:0}.input__container__text::-webkit-file-upload-button{padding:0;border:0;background:none}.input__container__text:focus{outline:0}.input__container__text[type=checkbox],.input__container__text[type=radio]{width:13px;height:13px}.input__container__text[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box}::-webkit-search-decoration{display:none}.input__container__text[type=reset],.input__container__text[type=button],.input__container__text[type=submit]{overflow:visible}.input__container__text::-webkit-scrollbar{width:16px;background-color:transparent}.input__container__text::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.input__message{display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline;height:20px;margin:3.7px 2.5px;-webkit-transition:0.3s cubic-bezier(0.4, 0, 0.2, 1);transition:0.3s cubic-bezier(0.4, 0, 0.2, 1);color:#8ca0b3;word-break:break-word;height:auto;min-height:20px}.input__message bds-typo{margin-top:0px;-ms-flex-item-align:self-start;align-self:self-start}.input__message__icon{display:-ms-flexbox;display:flex;padding-right:4px;margin-top:0px;padding-top:2px}.input__message--danger{color:#ff4c4c}.input__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.input__container__label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input__container__wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.input__container__text{display:inline-block;margin:0;border:0;padding:0;width:auto;vertical-align:middle;white-space:normal;line-height:inherit;background:none;color:inherit;font-size:inherit;font-family:inherit;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font-family:"Nunito Sans", "Tahoma", "Helvetica", "Arial", sans-serif;font-size:0.875rem;line-height:150%;width:100%;resize:none;cursor:inherit}.input__container__text:focus{outline:0}.input__container__text::-webkit-file-upload-button{padding:0;border:0;background:none}.input__container__text:focus{outline:0}.input__container__text[type=checkbox],.input__container__text[type=radio]{width:13px;height:13px}.input__container__text[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box}::-webkit-search-decoration{display:none}.input__container__text[type=reset],.input__container__text[type=button],.input__container__text[type=submit]{overflow:visible}.input__container__text__chips{width:auto;min-width:216px;max-width:216px}.datepicker{position:relative;max-width:608px}.datepicker__menu{position:absolute;pointer-events:none;top:calc(100% + 16px);left:0;background-color:#ffffff;-webkit-box-shadow:0px 4px 10px rgba(51, 51, 51, 0.3);box-shadow:0px 4px 10px rgba(51, 51, 51, 0.3);border-radius:8px;padding:16px;opacity:0;-webkit-transition:all 0.5s;-moz-transition:all 0.5s;transition:all 0.5s;z-index:80000}.datepicker__menu__open{pointer-events:auto;opacity:1}.datepicker__menu__message{padding:8px 16px;border-radius:8px;background-color:#fff6a8;color:#212a3c;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:24px}.datepicker__menu__message bds-icon{margin-right:8px}.datepicker__menu__footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;padding-top:16px;margin-top:16px;border-top:1px solid #d2dfe6}.datepicker__menu__footer bds-button{margin-left:16px}.datepicker__inputs{width:100%;display:grid}.datepicker__inputs__single{grid-template-columns:1fr}.datepicker__inputs__period{grid-template-columns:1fr 1fr;gap:16px}.datepicker__inputs bds-input{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:100%}.datepicker__inputs bds-input::part(input-container){position:relative}.datepicker__inputs__icon{cursor:pointer;color:#8ca0b3;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:space-evenly;justify-content:space-evenly;padding-right:16px}.datepicker__inputs__icon bds-icon:first-child{margin-right:8px}.datepicker__inputs__icon:hover bds-icon:first-child{color:#3f7de8}.datepicker__calendar{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.datepicker__calendar__selectDate{width:100%;display:grid;grid-template-columns:28px 1fr 80px 28px;grid-gap:8px;-ms-flex-align:center;align-items:center;margin-bottom:16px;padding:0 8px}.datepicker__calendar__selectDate__select{position:relative;width:100%}.datepicker__calendar__selectDate__select__input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:8px 4px 9px 12px;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;background:#ffffff;border:1px solid #d2dfe6;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.datepicker__calendar__selectDate__select__input:hover{border:1px solid #3f7de8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.datepicker__calendar__selectDate__select__input.input--pressed{border:1px solid #3f7de8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px rgba(63, 125, 232, 0.4);box-shadow:0 0 0 2px rgba(63, 125, 232, 0.4)}.datepicker__calendar__selectDate__select__input .input__icon{color:#3f7de8;background-color:#e8f2ff}.datepicker__calendar__selectDate__select__input .input__container__label{color:#8ca0b3}.datepicker__calendar__selectDate__select__input .input__container__label--pressed{color:#3f7de8}.datepicker__calendar__selectDate__select__input .input__container__text{caret-color:#3f7de8;color:#202c44}.datepicker__calendar__selectDate__select__input__disable{cursor:not-allowed;border:1px solid #e7edf4;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;background:#f3f6fa}.datepicker__calendar__selectDate__select__input__disable:hover{border:1px solid #b9cbd3;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;border:1px solid #e7edf4;box-sizing:border-box;border-radius:8px}.datepicker__calendar__selectDate__select__input__disable.input--pressed{border:1px solid #b9cbd3;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px #e7edf4;box-shadow:0 0 0 2px #e7edf4}.datepicker__calendar__selectDate__select__input__disable .input__icon{color:#b9cbd3;background-color:#f8fbfb}.datepicker__calendar__selectDate__select__input__disable .input__container__label{color:#b9cbd3}.datepicker__calendar__selectDate__select__input__disable .input__container__label--pressed{color:#b9cbd3}.datepicker__calendar__selectDate__select__input__disable .input__container__text{caret-color:#b9cbd3;color:#b9cbd3}.datepicker__calendar__selectDate__select__input__icon{color:#8ca0b3;display:-ms-flexbox;display:flex}.datepicker__calendar__selectDate__select__options{background:#f8fbfb;width:100%;max-height:250px;position:absolute;top:99%;left:0;border-radius:8px;-webkit-box-shadow:0 2px 8px rgba(96, 123, 153, 0.4);box-shadow:0 2px 8px rgba(96, 123, 153, 0.4);overflow-y:auto;z-index:2;margin-top:4px;-webkit-transition:opacity 0.75s, visibility 0.75s, -webkit-transform 0.25s;transition:opacity 0.75s, visibility 0.75s, -webkit-transform 0.25s;transition:transform 0.25s, opacity 0.75s, visibility 0.75s;transition:transform 0.25s, opacity 0.75s, visibility 0.75s, -webkit-transform 0.25s;-webkit-transform-origin:top left;transform-origin:top left;-webkit-transform:scaleY(0);transform:scaleY(0);opacity:0}.datepicker__calendar__selectDate__select__options::-webkit-scrollbar{width:16px;background-color:transparent}.datepicker__calendar__selectDate__select__options::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.datepicker__calendar__selectDate__select__options--open{visibility:visible;-webkit-transform:scale(1);transform:scale(1);opacity:1}.datepicker__calendar__selectDate__icon{cursor:pointer;color:#505f79}.datepicker__calendar__selectDate .arrow-left{padding-left:8px}.datepicker__calendar__selectDate .arrow-left__disable{opacity:0;pointer-events:none}.datepicker__calendar__selectDate .arrow-right{padding-right:8px}.datepicker__calendar__selectDate .arrow-right__disable{opacity:0;pointer-events:none}.datepicker__calendar__week{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:grid;grid-template-columns:repeat(7, 1fr)}.datepicker__calendar__week__day{width:40px;height:40px;text-align:center;color:#b9cbd3;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.datepicker__calendar__car{height:240px;width:280px;overflow:hidden;position:relative}.datepicker__calendar__car__slide{display:-ms-flexbox;display:flex;position:absolute;left:-100%}.datepicker__calendar__car__slide__box{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;display:grid;grid-template-columns:repeat(7, 1fr)}.datepicker__calendar__car__slide__box__day{width:40px;height:40px;position:relative}.datepicker__calendar__car__slide__box__day__period:before{content:"";position:absolute;inset:4px 0px;background-color:#e8f2ff}.datepicker__calendar__car__slide__box__day__start:before{inset:4px 0px 4px 4px;border-top-left-radius:16px;border-bottom-left-radius:16px}.datepicker__calendar__car__slide__box__day__end:before{inset:4px 4px 4px 0px;border-top-right-radius:16px;border-bottom-right-radius:16px}.datepicker__calendar__car__slide__box__day__typo{position:relative;width:calc(100% - 2px);height:calc(100% - 2px);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:100%;color:#505f79;border:1px solid transparent;cursor:pointer}.datepicker__calendar__car__slide__box__day__typo:hover{background-color:#ffffff;color:#3f7de8;border-color:#3f7de8}.datepicker__calendar__car__slide__box__day__current{background-color:#ffffff;color:#3f7de8;border-color:#3f7de8}.datepicker__calendar__car__slide__box__day__selected{background-color:#125ad5;color:#ffffff;border-color:#125ad5}.datepicker__calendar__car__slide__box__day__selected:hover{background-color:#125ad5;color:#ffffff;border-color:#125ad5}.datepicker__calendar__car__slide__box__day__disable{pointer-events:none;background-color:transparent;color:#8ca0b3}.datepicker__calendar__car .animate__prev{-webkit-animation-name:animationPrev;animation-name:animationPrev;-webkit-animation-duration:0.31s;animation-duration:0.31s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.datepicker__calendar__car .animate__next{-webkit-animation-name:animationNext;animation-name:animationNext;-webkit-animation-duration:0.31s;animation-duration:0.31s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.period .datepicker__calendar__selectDate{grid-template-columns:28px 120px 80px 1fr 28px}.period .datepicker__calendar__selectDate__futureMonth{padding-left:80px;text-align:center;color:#b9cbd3}.period .datepicker__calendar__week{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.period .datepicker__calendar__week__present,.period .datepicker__calendar__week__future{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:grid;grid-template-columns:repeat(7, 1fr)}.period .datepicker__calendar__car{height:240px;width:600px}.period .datepicker__calendar__car__slide{left:calc(-50% - 60px)}.period .datepicker__calendar__car__slide__box{margin-left:40px}.period .datepicker__calendar__car .animate__prev{-webkit-animation-name:animationPeriodPrev;animation-name:animationPeriodPrev}.period .datepicker__calendar__car .animate__next{-webkit-animation-name:animationPeriodNext;animation-name:animationPeriodNext}@-webkit-keyframes animationPrev{0%{left:-100%}100%{left:0}}@keyframes animationPrev{0%{left:-100%}100%{left:0}}@-webkit-keyframes animationNext{0%{left:-100%}100%{left:-200%}}@keyframes animationNext{0%{left:-100%}100%{left:-200%}}@-webkit-keyframes animationPeriodPrev{0%{left:calc(-50% - 60px)}100%{left:-40px}}@keyframes animationPeriodPrev{0%{left:calc(-50% - 60px)}100%{left:-40px}}@-webkit-keyframes animationPeriodNext{0%{left:calc(-50% - 60px)}100%{left:calc(-100% - 80px)}}@keyframes animationPeriodNext{0%{left:calc(-50% - 60px)}100%{left:calc(-100% - 80px)}}';var f=e("bds_datepicker_period",function(){function e(e){var a=this;t(this,e);this.bdsStartDate=i(this,"bdsStartDate",7);this.bdsEndDate=i(this,"bdsEndDate",7);this.monthActivated=this.startDate?this.startDate.month:r.getMonth();this.yearActivated=this.startDate?this.startDate.year:r.getFullYear();this.animatePrev=false;this.animateNext=false;this.activeSelectYear=false;this.openSelectMonth=false;this.openSelectYear=false;this.startDate=n(o);this.endDate=n(c);this.startDateSelect=null;this.endDateSelect=null;this.handler=function(e,t){var i=e.detail.value;if(t=="months"){a.monthActivated=i}else{if(i==a.endDate.year)a.monthActivated=0;if(i==a.startDate.year)a.monthActivated=a.startDate.month;a.yearActivated=i}};this.openDateSelect=function(e,t){if(t=="months"){setTimeout((function(){a.openSelectMonth=e}),100)}else{setTimeout((function(){a.openSelectYear=e}),100)}}}e.prototype.clear=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.startDateSelect=null;this.endDateSelect=null;return[2]}))}))};e.prototype.startDateChanged=function(){var e;this.bdsStartDate.emit({value:this.startDateSelect});this.monthActivated=this.startDateSelect?(e=this.startDateSelect)===null||e===void 0?void 0:e.getMonth():this.startDate.month;this.yearActivated=this.startDateSelect?this.startDateSelect.getFullYear():this.startDate.year};e.prototype.endDateChanged=function(){this.bdsEndDate.emit({value:this.endDateSelect});this.monthActivated=this.endDateSelect?this.startDateSelect.getMonth()==this.endDateSelect.getMonth()&&this.startDateSelect.getFullYear()==this.endDateSelect.getFullYear()?this.startDateSelect.getMonth():this.endDateSelect.getMonth()-1:this.startDate.month;this.yearActivated=this.endDateSelect?this.endDateSelect.getFullYear():this.startDate.year;if(this.monthActivated<0){this.monthActivated=11;this.yearActivated=this.yearActivated-1}};e.prototype.componentWillRender=function(){this.week=Object.values(s);this.monthsSlide=d(this.yearActivated,this.monthActivated);this.years=_(this.yearActivated,this.startDate.year,this.endDate.year);this.months=l(this.yearActivated,this.startDate,this.endDate)};e.prototype.prevDays=function(e){var t=[];for(var i=0;i<e;i++){t.push(i)}return t.map((function(e){return a("span",{key:"id"+e,class:"space "+e})}))};e.prototype.selectDate=function(e){var t=new Date(e.year,e.month,e.date);if(this.startDateSelect){this.endDateSelect=t}else{this.startDateSelect=t}};e.prototype.prevMonth=function(){var e=this;this.animatePrev=true;setTimeout((function(){e.animatePrev=false;e.monthActivated=e.monthActivated-1;if(e.monthActivated<0){e.monthActivated=11;e.yearActivated=e.yearActivated-1}}),300)};e.prototype.nextMonth=function(){var e=this;this.animateNext=true;setTimeout((function(){e.animateNext=false;e.monthActivated=e.monthActivated+1;if(e.monthActivated>11){e.monthActivated=0;e.yearActivated=e.yearActivated+1}}),300)};e.prototype.checkCurrentDay=function(e){var t=p(e);var i=b(r);if(t==i)return true;else return false};e.prototype.checkDisableDay=function(e){var t=p(e);var i=this.startDate?p(this.startDate):"0";var a=this.endDate?p(this.endDate):"9999999";var r=this.startDateSelect?b(this.startDateSelect):"0";if(this.startDate&&t<i){return true}if(this.startDateSelect){if(t<r){return true}}if(this.endDate&&t>a){return true}};e.prototype.checkSelectedDay=function(e){var t=p(e);var i=this.startDateSelect?b(this.startDateSelect):"0";var a=this.endDateSelect?b(this.endDateSelect):"0";if(t==i||t==a)return true;else return false};e.prototype.checkPeriodDay=function(e){var t=p(e);var i=this.startDateSelect?b(this.startDateSelect):"0";var a=this.endDateSelect?b(this.endDateSelect):"0";if(i&&a){if(t>=i&&t<=a){return true}}};e.prototype.checkPeriodStart=function(e){var t=e.date==1;var i=e.day==0;var a=p(e);var r=this.startDateSelect?b(this.startDateSelect):"0";var n=a==r;if(t||i||n){return true}};e.prototype.checkPeriodEnd=function(e,t){var i=t;var a=e.day==6;var r=p(e);var n=this.endDateSelect?b(this.endDateSelect):"0";var o=r==n;if(i||a||o){return true}};e.prototype.renderSelectData=function(e,t,i){var r,n;var o=this;var c=i=="months"?this.openSelectMonth:this.openSelectYear;var s=e.filter((function(e){return e.value===t}));var d=c?"arrow-up":"arrow-down";return a("div",{class:(r={datepicker__calendar__selectDate__select:true},r["datepicker__calendar__selectDate__select__"+i]=true,r)},a("button",{onFocus:function(){return e.length>1&&o.openDateSelect(true,i)},onBlur:function(){return e.length>1&&o.openDateSelect(false,i)},class:(n={datepicker__calendar__selectDate__select__input:true,datepicker__calendar__selectDate__select__input__disable:e.length<=1},n["input--pressed"]=c,n)},a("bds-typo",{variant:"fs-14"},s[0].label),a("div",{slot:"input-right",class:"select__icon"},a("bds-icon",{size:"small",name:d,color:"inherit"}))),a("div",{class:{datepicker__calendar__selectDate__select__options:true,"datepicker__calendar__selectDate__select__options--open":c}},e.map((function(e){return a("bds-select-option",{value:e.value,key:e.value,onOptionSelected:function(e){return o.handler(e,i)},selected:e.value==t,onClick:function(){return o.openDateSelect(false,i)}},e.label)}))))};e.prototype.renderCarSlideBox=function(e,t){var i=this;return a("div",{class:{datepicker__calendar__car__slide__box:true}},this.prevDays(t),e.map((function(t,r){return a("div",{key:r,class:{datepicker__calendar__car__slide__box__day:true,datepicker__calendar__car__slide__box__day__period:i.checkPeriodDay(t),datepicker__calendar__car__slide__box__day__start:i.checkPeriodStart(t),datepicker__calendar__car__slide__box__day__end:i.checkPeriodEnd(t,e.length===r+1)}},a("bds-typo",{class:{datepicker__calendar__car__slide__box__day__typo:true,datepicker__calendar__car__slide__box__day__current:i.checkCurrentDay(t),datepicker__calendar__car__slide__box__day__selected:i.checkSelectedDay(t),datepicker__calendar__car__slide__box__day__disable:i.checkDisableDay(t)},onClick:function(){return i.selectDate(t)}},t.date))})))};e.prototype.render=function(){var e,t,i;var r=this;var n=u.filter((function(e){return e.value===r.monthsSlide[2].month}));return a("div",{class:(e={datepicker__calendar:true},e["period"]=true,e)},a("div",{class:{datepicker__calendar__selectDate:true}},a("bds-icon",{class:(t={},t["arrow-left"]=true,t["arrow-left__disable"]=p(this.monthsSlide[0].days[this.monthsSlide[0].days.length-1])<p(this.startDate),t.datepicker__calendar__selectDate__icon=true,t),name:"arrow-left",theme:"outline",size:"small",onClick:function(){return r.prevMonth()}}),[this.renderSelectData(this.months,this.monthActivated,"months"),this.renderSelectData(this.years,this.yearActivated,"years")],a("bds-typo",{class:"datepicker__calendar__selectDate__futureMonth",variant:"fs-14"},n[0].label),a("bds-icon",{class:(i={},i["arrow-right"]=true,i["arrow-right__disable"]=p(this.monthsSlide[2].days[0])>p(this.endDate),i.datepicker__calendar__selectDate__icon=true,i),name:"arrow-right",theme:"outline",size:"small",onClick:function(){return r.nextMonth()}})),a("div",null,a("div",{class:{datepicker__calendar__week:true}},a("div",{class:{datepicker__calendar__week__present:true}},this.week.map((function(e,t){return a("bds-typo",{key:t,class:"datepicker__calendar__week__day"},e.charAt(0))}))),a("div",{class:{datepicker__calendar__week__future:true}},this.week.map((function(e,t){return a("bds-typo",{key:t,class:"datepicker__calendar__week__day"},e.charAt(0))})))),a("div",{class:{datepicker__calendar__car:true,datepicker__calendar__car__period:true}},a("div",{class:{datepicker__calendar__car__slide:true,animate__prev:this.animatePrev,animate__next:this.animateNext}},[this.renderCarSlideBox(this.monthsSlide[0].days,this.monthsSlide[0].days[0].day),this.renderCarSlideBox(this.monthsSlide[1].days,this.monthsSlide[1].days[0].day),this.renderCarSlideBox(this.monthsSlide[2].days,this.monthsSlide[2].days[0].day),this.renderCarSlideBox(this.monthsSlide[3].days,this.monthsSlide[3].days[0].day)]))))};Object.defineProperty(e,"watchers",{get:function(){return{startDateSelect:["startDateChanged"],endDateSelect:["endDateChanged"]}},enumerable:false,configurable:true});return e}());f.style=x}}}));
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { r as registerInstance, e as createEvent, h } from './index-1762f0ca.js';
|
|
2
|
+
import { T as THIS_DAY, b as dateToDayList, a as defaultEndDate, d as defaultStartDate, W as WEEK_DAYS, g as getMonthsSlide, e as getYears, h as getMonths, i as fillDate, f as fillDayList } from './calendar-b2732eee.js';
|
|
3
|
+
|
|
4
|
+
const datepickerCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%}:host input{-webkit-box-shadow:inherit;box-shadow:inherit}:host input::-webkit-input-placeholder{color:#b9cbd3;opacity:1}:host input::-moz-placeholder{color:#b9cbd3;opacity:1}:host input:-ms-input-placeholder{color:#b9cbd3;opacity:1}:host input::-ms-input-placeholder{color:#b9cbd3;opacity:1}:host input::placeholder{color:#b9cbd3;opacity:1}:host input::-webkit-input-placeholder{color:#b9cbd3;opacity:1}.input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:8px 4px 9px 12px;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;background:#ffffff}.input--state-primary{border:1px solid #d2dfe6;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-primary:hover{border:1px solid #3f7de8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-primary.input--pressed{border:1px solid #3f7de8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px rgba(63, 125, 232, 0.4);box-shadow:0 0 0 2px rgba(63, 125, 232, 0.4)}.input--state-primary .input__icon{color:#3f7de8;background-color:#e8f2ff}.input--state-primary .input__container__label{color:#8ca0b3}.input--state-primary .input__container__label--pressed{color:#3f7de8}.input--state-primary .input__container__text{caret-color:#3f7de8;color:#202c44}.input--state-danger{border:1px solid #ff4c4c;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-danger:hover{border:1px solid #ff4c4c;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-danger.input--pressed{border:1px solid #ff4c4c;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px #ffa5a5;box-shadow:0 0 0 2px #ffa5a5}.input--state-danger .input__icon{color:#ff4c4c;background-color:#ffa5a5}.input--state-danger .input__container__label{color:#8ca0b3}.input--state-danger .input__container__label--pressed{color:#ff4c4c}.input--state-danger .input__container__text{caret-color:#ff4c4c;color:#202c44}.input--state-disabled{cursor:not-allowed;border:1px solid #e7edf4;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;background:#f3f6fa}.input--state-disabled:hover{border:1px solid #b9cbd3;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;border:1px solid #e7edf4;box-sizing:border-box;border-radius:8px}.input--state-disabled.input--pressed{border:1px solid #b9cbd3;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px #e7edf4;box-shadow:0 0 0 2px #e7edf4}.input--state-disabled .input__icon{color:#b9cbd3;background-color:#f8fbfb}.input--state-disabled .input__container__label{color:#b9cbd3}.input--state-disabled .input__container__label--pressed{color:#b9cbd3}.input--state-disabled .input__container__text{caret-color:#b9cbd3;color:#b9cbd3}.input--label{padding:7px 4px 8px 12px}.input__icon{cursor:inherit;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:8px;margin-right:8px;padding:2.5px}.input__icon--large{padding:4px}.input__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.input__container__wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.input__container__wrapper__chips{display:inline;max-height:100px;overflow:auto}.input__container__wrapper__chips::-webkit-scrollbar{width:16px;background-color:transparent}.input__container__wrapper__chips::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.input__container__label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input__container__text{display:inline-block;margin:0;border:0;padding:0;width:auto;vertical-align:middle;white-space:normal;line-height:inherit;background:none;color:inherit;font-size:inherit;font-family:inherit;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font-family:\"Nunito Sans\", \"Tahoma\", \"Helvetica\", \"Arial\", sans-serif;font-size:0.875rem;line-height:150%;resize:none;cursor:inherit}.input__container__text:focus{outline:0}.input__container__text::-webkit-file-upload-button{padding:0;border:0;background:none}.input__container__text:focus{outline:0}.input__container__text[type=checkbox],.input__container__text[type=radio]{width:13px;height:13px}.input__container__text[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box}::-webkit-search-decoration{display:none}.input__container__text[type=reset],.input__container__text[type=button],.input__container__text[type=submit]{overflow:visible}.input__container__text::-webkit-scrollbar{width:16px;background-color:transparent}.input__container__text::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.input__message{display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline;height:20px;margin:3.7px 2.5px;-webkit-transition:0.3s cubic-bezier(0.4, 0, 0.2, 1);transition:0.3s cubic-bezier(0.4, 0, 0.2, 1);color:#8ca0b3;word-break:break-word;height:auto;min-height:20px}.input__message bds-typo{margin-top:0px;-ms-flex-item-align:self-start;align-self:self-start}.input__message__icon{display:-ms-flexbox;display:flex;padding-right:4px;margin-top:0px;padding-top:2px}.input__message--danger{color:#ff4c4c}.input__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.input__container__label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input__container__wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.input__container__text{display:inline-block;margin:0;border:0;padding:0;width:auto;vertical-align:middle;white-space:normal;line-height:inherit;background:none;color:inherit;font-size:inherit;font-family:inherit;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font-family:\"Nunito Sans\", \"Tahoma\", \"Helvetica\", \"Arial\", sans-serif;font-size:0.875rem;line-height:150%;width:100%;resize:none;cursor:inherit}.input__container__text:focus{outline:0}.input__container__text::-webkit-file-upload-button{padding:0;border:0;background:none}.input__container__text:focus{outline:0}.input__container__text[type=checkbox],.input__container__text[type=radio]{width:13px;height:13px}.input__container__text[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box}::-webkit-search-decoration{display:none}.input__container__text[type=reset],.input__container__text[type=button],.input__container__text[type=submit]{overflow:visible}.input__container__text__chips{width:auto;min-width:216px;max-width:216px}.datepicker{position:relative;max-width:608px}.datepicker__menu{position:absolute;pointer-events:none;top:calc(100% + 16px);left:0;background-color:#ffffff;-webkit-box-shadow:0px 4px 10px rgba(51, 51, 51, 0.3);box-shadow:0px 4px 10px rgba(51, 51, 51, 0.3);border-radius:8px;padding:16px;opacity:0;-webkit-transition:all 0.5s;-moz-transition:all 0.5s;transition:all 0.5s;z-index:80000}.datepicker__menu__open{pointer-events:auto;opacity:1}.datepicker__menu__message{padding:8px 16px;border-radius:8px;background-color:#fff6a8;color:#212a3c;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:24px}.datepicker__menu__message bds-icon{margin-right:8px}.datepicker__menu__footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;padding-top:16px;margin-top:16px;border-top:1px solid #d2dfe6}.datepicker__menu__footer bds-button{margin-left:16px}.datepicker__inputs{width:100%;display:grid}.datepicker__inputs__single{grid-template-columns:1fr}.datepicker__inputs__period{grid-template-columns:1fr 1fr;gap:16px}.datepicker__inputs bds-input{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:100%}.datepicker__inputs bds-input::part(input-container){position:relative}.datepicker__inputs__icon{cursor:pointer;color:#8ca0b3;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:space-evenly;justify-content:space-evenly;padding-right:16px}.datepicker__inputs__icon bds-icon:first-child{margin-right:8px}.datepicker__inputs__icon:hover bds-icon:first-child{color:#3f7de8}.datepicker__calendar{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.datepicker__calendar__selectDate{width:100%;display:grid;grid-template-columns:28px 1fr 80px 28px;grid-gap:8px;-ms-flex-align:center;align-items:center;margin-bottom:16px;padding:0 8px}.datepicker__calendar__selectDate__select{position:relative;width:100%}.datepicker__calendar__selectDate__select__input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:8px 4px 9px 12px;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;background:#ffffff;border:1px solid #d2dfe6;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.datepicker__calendar__selectDate__select__input:hover{border:1px solid #3f7de8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.datepicker__calendar__selectDate__select__input.input--pressed{border:1px solid #3f7de8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px rgba(63, 125, 232, 0.4);box-shadow:0 0 0 2px rgba(63, 125, 232, 0.4)}.datepicker__calendar__selectDate__select__input .input__icon{color:#3f7de8;background-color:#e8f2ff}.datepicker__calendar__selectDate__select__input .input__container__label{color:#8ca0b3}.datepicker__calendar__selectDate__select__input .input__container__label--pressed{color:#3f7de8}.datepicker__calendar__selectDate__select__input .input__container__text{caret-color:#3f7de8;color:#202c44}.datepicker__calendar__selectDate__select__input__disable{cursor:not-allowed;border:1px solid #e7edf4;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;background:#f3f6fa}.datepicker__calendar__selectDate__select__input__disable:hover{border:1px solid #b9cbd3;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;border:1px solid #e7edf4;box-sizing:border-box;border-radius:8px}.datepicker__calendar__selectDate__select__input__disable.input--pressed{border:1px solid #b9cbd3;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px #e7edf4;box-shadow:0 0 0 2px #e7edf4}.datepicker__calendar__selectDate__select__input__disable .input__icon{color:#b9cbd3;background-color:#f8fbfb}.datepicker__calendar__selectDate__select__input__disable .input__container__label{color:#b9cbd3}.datepicker__calendar__selectDate__select__input__disable .input__container__label--pressed{color:#b9cbd3}.datepicker__calendar__selectDate__select__input__disable .input__container__text{caret-color:#b9cbd3;color:#b9cbd3}.datepicker__calendar__selectDate__select__input__icon{color:#8ca0b3;display:-ms-flexbox;display:flex}.datepicker__calendar__selectDate__select__options{background:#f8fbfb;width:100%;max-height:250px;position:absolute;top:99%;left:0;border-radius:8px;-webkit-box-shadow:0 2px 8px rgba(96, 123, 153, 0.4);box-shadow:0 2px 8px rgba(96, 123, 153, 0.4);overflow-y:auto;z-index:2;margin-top:4px;-webkit-transition:opacity 0.75s, visibility 0.75s, -webkit-transform 0.25s;transition:opacity 0.75s, visibility 0.75s, -webkit-transform 0.25s;transition:transform 0.25s, opacity 0.75s, visibility 0.75s;transition:transform 0.25s, opacity 0.75s, visibility 0.75s, -webkit-transform 0.25s;-webkit-transform-origin:top left;transform-origin:top left;-webkit-transform:scaleY(0);transform:scaleY(0);opacity:0}.datepicker__calendar__selectDate__select__options::-webkit-scrollbar{width:16px;background-color:transparent}.datepicker__calendar__selectDate__select__options::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.datepicker__calendar__selectDate__select__options--open{visibility:visible;-webkit-transform:scale(1);transform:scale(1);opacity:1}.datepicker__calendar__selectDate__icon{cursor:pointer;color:#505f79}.datepicker__calendar__selectDate .arrow-left{padding-left:8px}.datepicker__calendar__selectDate .arrow-left__disable{opacity:0;pointer-events:none}.datepicker__calendar__selectDate .arrow-right{padding-right:8px}.datepicker__calendar__selectDate .arrow-right__disable{opacity:0;pointer-events:none}.datepicker__calendar__week{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:grid;grid-template-columns:repeat(7, 1fr)}.datepicker__calendar__week__day{width:40px;height:40px;text-align:center;color:#b9cbd3;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.datepicker__calendar__car{height:240px;width:280px;overflow:hidden;position:relative}.datepicker__calendar__car__slide{display:-ms-flexbox;display:flex;position:absolute;left:-100%}.datepicker__calendar__car__slide__box{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;display:grid;grid-template-columns:repeat(7, 1fr)}.datepicker__calendar__car__slide__box__day{width:40px;height:40px;position:relative}.datepicker__calendar__car__slide__box__day__period:before{content:\"\";position:absolute;inset:4px 0px;background-color:#e8f2ff}.datepicker__calendar__car__slide__box__day__start:before{inset:4px 0px 4px 4px;border-top-left-radius:16px;border-bottom-left-radius:16px}.datepicker__calendar__car__slide__box__day__end:before{inset:4px 4px 4px 0px;border-top-right-radius:16px;border-bottom-right-radius:16px}.datepicker__calendar__car__slide__box__day__typo{position:relative;width:calc(100% - 2px);height:calc(100% - 2px);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:100%;color:#505f79;border:1px solid transparent;cursor:pointer}.datepicker__calendar__car__slide__box__day__typo:hover{background-color:#ffffff;color:#3f7de8;border-color:#3f7de8}.datepicker__calendar__car__slide__box__day__current{background-color:#ffffff;color:#3f7de8;border-color:#3f7de8}.datepicker__calendar__car__slide__box__day__selected{background-color:#125ad5;color:#ffffff;border-color:#125ad5}.datepicker__calendar__car__slide__box__day__selected:hover{background-color:#125ad5;color:#ffffff;border-color:#125ad5}.datepicker__calendar__car__slide__box__day__disable{pointer-events:none;background-color:transparent;color:#8ca0b3}.datepicker__calendar__car .animate__prev{-webkit-animation-name:animationPrev;animation-name:animationPrev;-webkit-animation-duration:0.31s;animation-duration:0.31s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.datepicker__calendar__car .animate__next{-webkit-animation-name:animationNext;animation-name:animationNext;-webkit-animation-duration:0.31s;animation-duration:0.31s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.period .datepicker__calendar__selectDate{grid-template-columns:28px 120px 80px 1fr 28px}.period .datepicker__calendar__selectDate__futureMonth{padding-left:80px;text-align:center;color:#b9cbd3}.period .datepicker__calendar__week{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.period .datepicker__calendar__week__present,.period .datepicker__calendar__week__future{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:grid;grid-template-columns:repeat(7, 1fr)}.period .datepicker__calendar__car{height:240px;width:600px}.period .datepicker__calendar__car__slide{left:calc(-50% - 60px)}.period .datepicker__calendar__car__slide__box{margin-left:40px}.period .datepicker__calendar__car .animate__prev{-webkit-animation-name:animationPeriodPrev;animation-name:animationPeriodPrev}.period .datepicker__calendar__car .animate__next{-webkit-animation-name:animationPeriodNext;animation-name:animationPeriodNext}@-webkit-keyframes animationPrev{0%{left:-100%}100%{left:0}}@keyframes animationPrev{0%{left:-100%}100%{left:0}}@-webkit-keyframes animationNext{0%{left:-100%}100%{left:-200%}}@keyframes animationNext{0%{left:-100%}100%{left:-200%}}@-webkit-keyframes animationPeriodPrev{0%{left:calc(-50% - 60px)}100%{left:-40px}}@keyframes animationPeriodPrev{0%{left:calc(-50% - 60px)}100%{left:-40px}}@-webkit-keyframes animationPeriodNext{0%{left:calc(-50% - 60px)}100%{left:calc(-100% - 80px)}}@keyframes animationPeriodNext{0%{left:calc(-50% - 60px)}100%{left:calc(-100% - 80px)}}";
|
|
5
|
+
|
|
6
|
+
let BdsdatepickerSingle = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.bdsDateSelected = createEvent(this, "bdsDateSelected", 7);
|
|
10
|
+
this.bdsClearDate = createEvent(this, "bdsClearDate", 7);
|
|
11
|
+
this.monthActivated = this.startDate ? this.startDate.month : THIS_DAY.getMonth();
|
|
12
|
+
this.yearActivated = this.startDate ? this.startDate.year : THIS_DAY.getFullYear();
|
|
13
|
+
this.animatePrev = false;
|
|
14
|
+
this.animateNext = false;
|
|
15
|
+
this.openSelectMonth = false;
|
|
16
|
+
this.openSelectYear = false;
|
|
17
|
+
/**
|
|
18
|
+
* EndDate. Insert a limiter to select the date period.
|
|
19
|
+
*/
|
|
20
|
+
this.endDate = dateToDayList(defaultEndDate);
|
|
21
|
+
/**
|
|
22
|
+
* StartDate. Insert a limiter to select the date period.
|
|
23
|
+
*/
|
|
24
|
+
this.startDate = dateToDayList(defaultStartDate);
|
|
25
|
+
/**
|
|
26
|
+
* dateSelect. Insert a limiter to select the date period.
|
|
27
|
+
*/
|
|
28
|
+
this.dateSelect = null;
|
|
29
|
+
this.handler = (event, ref) => {
|
|
30
|
+
const { detail: { value }, } = event;
|
|
31
|
+
if (ref == 'months') {
|
|
32
|
+
this.monthActivated = value;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
if (value == this.endDate.year)
|
|
36
|
+
this.monthActivated = 0;
|
|
37
|
+
if (value == this.startDate.year)
|
|
38
|
+
this.monthActivated = this.startDate.month;
|
|
39
|
+
this.yearActivated = value;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
this.openDateSelect = (value, ref) => {
|
|
43
|
+
if (ref == 'months') {
|
|
44
|
+
setTimeout(() => {
|
|
45
|
+
this.openSelectMonth = value;
|
|
46
|
+
}, 100);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
setTimeout(() => {
|
|
50
|
+
this.openSelectYear = value;
|
|
51
|
+
}, 100);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Return the validity of the input.
|
|
57
|
+
*/
|
|
58
|
+
async clear() {
|
|
59
|
+
this.dateSelect = null;
|
|
60
|
+
}
|
|
61
|
+
startDateChanged() {
|
|
62
|
+
var _a;
|
|
63
|
+
this.bdsDateSelected.emit({ value: this.dateSelect });
|
|
64
|
+
this.monthActivated = this.dateSelect ? (_a = this.dateSelect) === null || _a === void 0 ? void 0 : _a.getMonth() : this.startDate.month;
|
|
65
|
+
this.yearActivated = this.dateSelect ? this.dateSelect.getFullYear() : this.startDate.year;
|
|
66
|
+
}
|
|
67
|
+
componentWillRender() {
|
|
68
|
+
this.week = Object.values(WEEK_DAYS);
|
|
69
|
+
this.monthsSlide = getMonthsSlide(this.yearActivated, this.monthActivated);
|
|
70
|
+
this.years = getYears(this.yearActivated, this.startDate.year, this.endDate.year);
|
|
71
|
+
this.months = getMonths(this.yearActivated, this.startDate, this.endDate);
|
|
72
|
+
}
|
|
73
|
+
prevDays(value) {
|
|
74
|
+
const lenghtDays = [];
|
|
75
|
+
for (let i = 0; i < value; i++) {
|
|
76
|
+
lenghtDays.push(i);
|
|
77
|
+
}
|
|
78
|
+
return lenghtDays.map((item) => h("span", { key: `id${item}`, class: `space ${item}` }));
|
|
79
|
+
}
|
|
80
|
+
selectDate(value) {
|
|
81
|
+
const changeSelected = new Date(value.year, value.month, value.date);
|
|
82
|
+
this.dateSelect = changeSelected;
|
|
83
|
+
}
|
|
84
|
+
prevMonth() {
|
|
85
|
+
this.animatePrev = true;
|
|
86
|
+
setTimeout(() => {
|
|
87
|
+
this.animatePrev = false;
|
|
88
|
+
this.monthActivated = this.monthActivated - 1;
|
|
89
|
+
if (this.monthActivated < 0) {
|
|
90
|
+
this.monthActivated = 11;
|
|
91
|
+
this.yearActivated = this.yearActivated - 1;
|
|
92
|
+
}
|
|
93
|
+
}, 300);
|
|
94
|
+
}
|
|
95
|
+
nextMonth() {
|
|
96
|
+
this.animateNext = true;
|
|
97
|
+
setTimeout(() => {
|
|
98
|
+
this.animateNext = false;
|
|
99
|
+
this.monthActivated = this.monthActivated + 1;
|
|
100
|
+
if (this.monthActivated > 11) {
|
|
101
|
+
this.monthActivated = 0;
|
|
102
|
+
this.yearActivated = this.yearActivated + 1;
|
|
103
|
+
}
|
|
104
|
+
}, 300);
|
|
105
|
+
}
|
|
106
|
+
checkCurrentDay(value) {
|
|
107
|
+
const fullCurrDate = fillDate(THIS_DAY);
|
|
108
|
+
if (fillDayList(value) == fullCurrDate)
|
|
109
|
+
return true;
|
|
110
|
+
else
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
checkDisableDay(value) {
|
|
114
|
+
const startDateLimit = this.startDate ? fillDayList(this.startDate) : `0`;
|
|
115
|
+
const endDateLimit = this.endDate ? fillDayList(this.endDate) : `9999999`;
|
|
116
|
+
if (this.startDate && fillDayList(value) < startDateLimit) {
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
if (this.endDate && fillDayList(value) > endDateLimit) {
|
|
120
|
+
return true;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
checkSelectedDay(value) {
|
|
124
|
+
const selectedDate = this.dateSelect ? fillDate(this.dateSelect) : `0`;
|
|
125
|
+
if (fillDayList(value) == selectedDate)
|
|
126
|
+
return true;
|
|
127
|
+
else
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
130
|
+
renderSelectData(data, selected, ref) {
|
|
131
|
+
const openSelect = ref == 'months' ? this.openSelectMonth : this.openSelectYear;
|
|
132
|
+
const labelSelect = data.filter((obj) => obj.value === selected);
|
|
133
|
+
const iconArrow = openSelect ? 'arrow-up' : 'arrow-down';
|
|
134
|
+
return (h("div", { class: {
|
|
135
|
+
datepicker__calendar__selectDate__select: true,
|
|
136
|
+
[`datepicker__calendar__selectDate__select__${ref}`]: true,
|
|
137
|
+
} }, h("button", { onFocus: () => data.length > 1 && this.openDateSelect(true, ref), onBlur: () => data.length > 1 && this.openDateSelect(false, ref), class: {
|
|
138
|
+
datepicker__calendar__selectDate__select__input: true,
|
|
139
|
+
datepicker__calendar__selectDate__select__input__disable: data.length <= 1,
|
|
140
|
+
[`input--pressed`]: openSelect,
|
|
141
|
+
} }, h("bds-typo", { variant: "fs-14" }, labelSelect[0].label), h("div", { class: "datepicker__calendar__selectDate__select__input__icon" }, h("bds-icon", { size: "small", name: iconArrow, color: "inherit" }))), h("div", { class: {
|
|
142
|
+
datepicker__calendar__selectDate__select__options: true,
|
|
143
|
+
'datepicker__calendar__selectDate__select__options--open': openSelect,
|
|
144
|
+
} }, data.map((option) => (h("bds-select-option", { value: option.value, key: option.value, onOptionSelected: (event) => this.handler(event, ref), selected: option.value == selected, onClick: () => this.openDateSelect(false, ref) }, option.label))))));
|
|
145
|
+
}
|
|
146
|
+
renderCarSlideBox(days, firstDayWeek) {
|
|
147
|
+
return (h("div", { class: { datepicker__calendar__car__slide__box: true } }, this.prevDays(firstDayWeek), days.map((item, idx) => (h("div", { key: idx, class: {
|
|
148
|
+
datepicker__calendar__car__slide__box__day: true,
|
|
149
|
+
} }, h("bds-typo", { class: {
|
|
150
|
+
datepicker__calendar__car__slide__box__day__typo: true,
|
|
151
|
+
datepicker__calendar__car__slide__box__day__current: this.checkCurrentDay(item),
|
|
152
|
+
datepicker__calendar__car__slide__box__day__selected: this.checkSelectedDay(item),
|
|
153
|
+
datepicker__calendar__car__slide__box__day__disable: this.checkDisableDay(item),
|
|
154
|
+
}, onClick: () => this.selectDate(item) }, item.date))))));
|
|
155
|
+
}
|
|
156
|
+
render() {
|
|
157
|
+
return (h("div", { class: { datepicker__calendar: true } }, h("div", { class: { datepicker__calendar__selectDate: true } }, h("bds-icon", { class: {
|
|
158
|
+
[`arrow-left`]: true,
|
|
159
|
+
[`arrow-left__disable`]: fillDayList(this.monthsSlide[0].days[this.monthsSlide[0].days.length - 1]) <
|
|
160
|
+
fillDayList(this.startDate),
|
|
161
|
+
datepicker__calendar__selectDate__icon: true,
|
|
162
|
+
}, name: "arrow-left", theme: "outline", size: "small", onClick: () => this.prevMonth() }), [
|
|
163
|
+
this.renderSelectData(this.months, this.monthActivated, 'months'),
|
|
164
|
+
this.renderSelectData(this.years, this.yearActivated, 'years'),
|
|
165
|
+
], h("bds-icon", { class: {
|
|
166
|
+
[`arrow-right`]: true,
|
|
167
|
+
[`arrow-right__disable`]: fillDayList(this.monthsSlide[2].days[0]) > fillDayList(this.endDate),
|
|
168
|
+
datepicker__calendar__selectDate__icon: true,
|
|
169
|
+
}, name: "arrow-right", theme: "outline", size: "small", onClick: () => this.nextMonth() })), h("div", null, h("div", { class: { datepicker__calendar__week: true } }, this.week.map((item, idx) => (h("bds-typo", { key: idx, class: `datepicker__calendar__week__day` }, item.charAt(0))))), h("div", { class: { datepicker__calendar__car: true } }, h("div", { class: {
|
|
170
|
+
datepicker__calendar__car__slide: true,
|
|
171
|
+
animate__prev: this.animatePrev,
|
|
172
|
+
animate__next: this.animateNext,
|
|
173
|
+
} }, [
|
|
174
|
+
this.renderCarSlideBox(this.monthsSlide[0].days, this.monthsSlide[0].days[0].day),
|
|
175
|
+
this.renderCarSlideBox(this.monthsSlide[1].days, this.monthsSlide[1].days[0].day),
|
|
176
|
+
this.renderCarSlideBox(this.monthsSlide[2].days, this.monthsSlide[2].days[0].day),
|
|
177
|
+
])))));
|
|
178
|
+
}
|
|
179
|
+
static get watchers() { return {
|
|
180
|
+
"dateSelect": ["startDateChanged"]
|
|
181
|
+
}; }
|
|
182
|
+
};
|
|
183
|
+
BdsdatepickerSingle.style = datepickerCss;
|
|
184
|
+
|
|
185
|
+
export { BdsdatepickerSingle as bds_datepicker_single };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,i,a){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function o(e){try{_(a.next(e))}catch(t){n(t)}}function c(e){try{_(a["throw"](e))}catch(t){n(t)}}function _(e){e.done?i(e.value):r(e.value).then(o,c)}_((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},a,r,n,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(e){return function(t){return _([e,t])}}function _(o){if(a)throw new TypeError("Generator is already executing.");while(i)try{if(a=1,r&&(n=o[0]&2?r["return"]:o[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,o[1])).done)return n;if(r=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;r=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){i.label=o[1];break}if(o[0]===6&&i.label<n[1]){i.label=n[1];n=o;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(o);break}if(n[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(c){o=[6,c];r=0}finally{a=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./index-b6e5b643.system.js","./calendar-39b750c1.system.js"],(function(e){"use strict";var t,i,a,r,n,o,c,_,d,s,l,p,b;return{setters:[function(e){t=e.r;i=e.e;a=e.h},function(e){r=e.T;n=e.b;o=e.a;c=e.d;_=e.W;d=e.g;s=e.e;l=e.h;p=e.i;b=e.f}],execute:function(){var x=':host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%}:host input{-webkit-box-shadow:inherit;box-shadow:inherit}:host input::-webkit-input-placeholder{color:#b9cbd3;opacity:1}:host input::-moz-placeholder{color:#b9cbd3;opacity:1}:host input:-ms-input-placeholder{color:#b9cbd3;opacity:1}:host input::-ms-input-placeholder{color:#b9cbd3;opacity:1}:host input::placeholder{color:#b9cbd3;opacity:1}:host input::-webkit-input-placeholder{color:#b9cbd3;opacity:1}.input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:8px 4px 9px 12px;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;background:#ffffff}.input--state-primary{border:1px solid #d2dfe6;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-primary:hover{border:1px solid #3f7de8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-primary.input--pressed{border:1px solid #3f7de8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px rgba(63, 125, 232, 0.4);box-shadow:0 0 0 2px rgba(63, 125, 232, 0.4)}.input--state-primary .input__icon{color:#3f7de8;background-color:#e8f2ff}.input--state-primary .input__container__label{color:#8ca0b3}.input--state-primary .input__container__label--pressed{color:#3f7de8}.input--state-primary .input__container__text{caret-color:#3f7de8;color:#202c44}.input--state-danger{border:1px solid #ff4c4c;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-danger:hover{border:1px solid #ff4c4c;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-danger.input--pressed{border:1px solid #ff4c4c;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px #ffa5a5;box-shadow:0 0 0 2px #ffa5a5}.input--state-danger .input__icon{color:#ff4c4c;background-color:#ffa5a5}.input--state-danger .input__container__label{color:#8ca0b3}.input--state-danger .input__container__label--pressed{color:#ff4c4c}.input--state-danger .input__container__text{caret-color:#ff4c4c;color:#202c44}.input--state-disabled{cursor:not-allowed;border:1px solid #e7edf4;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;background:#f3f6fa}.input--state-disabled:hover{border:1px solid #b9cbd3;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;border:1px solid #e7edf4;box-sizing:border-box;border-radius:8px}.input--state-disabled.input--pressed{border:1px solid #b9cbd3;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px #e7edf4;box-shadow:0 0 0 2px #e7edf4}.input--state-disabled .input__icon{color:#b9cbd3;background-color:#f8fbfb}.input--state-disabled .input__container__label{color:#b9cbd3}.input--state-disabled .input__container__label--pressed{color:#b9cbd3}.input--state-disabled .input__container__text{caret-color:#b9cbd3;color:#b9cbd3}.input--label{padding:7px 4px 8px 12px}.input__icon{cursor:inherit;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:8px;margin-right:8px;padding:2.5px}.input__icon--large{padding:4px}.input__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.input__container__wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.input__container__wrapper__chips{display:inline;max-height:100px;overflow:auto}.input__container__wrapper__chips::-webkit-scrollbar{width:16px;background-color:transparent}.input__container__wrapper__chips::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.input__container__label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input__container__text{display:inline-block;margin:0;border:0;padding:0;width:auto;vertical-align:middle;white-space:normal;line-height:inherit;background:none;color:inherit;font-size:inherit;font-family:inherit;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font-family:"Nunito Sans", "Tahoma", "Helvetica", "Arial", sans-serif;font-size:0.875rem;line-height:150%;resize:none;cursor:inherit}.input__container__text:focus{outline:0}.input__container__text::-webkit-file-upload-button{padding:0;border:0;background:none}.input__container__text:focus{outline:0}.input__container__text[type=checkbox],.input__container__text[type=radio]{width:13px;height:13px}.input__container__text[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box}::-webkit-search-decoration{display:none}.input__container__text[type=reset],.input__container__text[type=button],.input__container__text[type=submit]{overflow:visible}.input__container__text::-webkit-scrollbar{width:16px;background-color:transparent}.input__container__text::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.input__message{display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline;height:20px;margin:3.7px 2.5px;-webkit-transition:0.3s cubic-bezier(0.4, 0, 0.2, 1);transition:0.3s cubic-bezier(0.4, 0, 0.2, 1);color:#8ca0b3;word-break:break-word;height:auto;min-height:20px}.input__message bds-typo{margin-top:0px;-ms-flex-item-align:self-start;align-self:self-start}.input__message__icon{display:-ms-flexbox;display:flex;padding-right:4px;margin-top:0px;padding-top:2px}.input__message--danger{color:#ff4c4c}.input__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.input__container__label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input__container__wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.input__container__text{display:inline-block;margin:0;border:0;padding:0;width:auto;vertical-align:middle;white-space:normal;line-height:inherit;background:none;color:inherit;font-size:inherit;font-family:inherit;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font-family:"Nunito Sans", "Tahoma", "Helvetica", "Arial", sans-serif;font-size:0.875rem;line-height:150%;width:100%;resize:none;cursor:inherit}.input__container__text:focus{outline:0}.input__container__text::-webkit-file-upload-button{padding:0;border:0;background:none}.input__container__text:focus{outline:0}.input__container__text[type=checkbox],.input__container__text[type=radio]{width:13px;height:13px}.input__container__text[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box}::-webkit-search-decoration{display:none}.input__container__text[type=reset],.input__container__text[type=button],.input__container__text[type=submit]{overflow:visible}.input__container__text__chips{width:auto;min-width:216px;max-width:216px}.datepicker{position:relative;max-width:608px}.datepicker__menu{position:absolute;pointer-events:none;top:calc(100% + 16px);left:0;background-color:#ffffff;-webkit-box-shadow:0px 4px 10px rgba(51, 51, 51, 0.3);box-shadow:0px 4px 10px rgba(51, 51, 51, 0.3);border-radius:8px;padding:16px;opacity:0;-webkit-transition:all 0.5s;-moz-transition:all 0.5s;transition:all 0.5s;z-index:80000}.datepicker__menu__open{pointer-events:auto;opacity:1}.datepicker__menu__message{padding:8px 16px;border-radius:8px;background-color:#fff6a8;color:#212a3c;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:24px}.datepicker__menu__message bds-icon{margin-right:8px}.datepicker__menu__footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;padding-top:16px;margin-top:16px;border-top:1px solid #d2dfe6}.datepicker__menu__footer bds-button{margin-left:16px}.datepicker__inputs{width:100%;display:grid}.datepicker__inputs__single{grid-template-columns:1fr}.datepicker__inputs__period{grid-template-columns:1fr 1fr;gap:16px}.datepicker__inputs bds-input{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:100%}.datepicker__inputs bds-input::part(input-container){position:relative}.datepicker__inputs__icon{cursor:pointer;color:#8ca0b3;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:space-evenly;justify-content:space-evenly;padding-right:16px}.datepicker__inputs__icon bds-icon:first-child{margin-right:8px}.datepicker__inputs__icon:hover bds-icon:first-child{color:#3f7de8}.datepicker__calendar{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.datepicker__calendar__selectDate{width:100%;display:grid;grid-template-columns:28px 1fr 80px 28px;grid-gap:8px;-ms-flex-align:center;align-items:center;margin-bottom:16px;padding:0 8px}.datepicker__calendar__selectDate__select{position:relative;width:100%}.datepicker__calendar__selectDate__select__input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:8px 4px 9px 12px;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;background:#ffffff;border:1px solid #d2dfe6;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.datepicker__calendar__selectDate__select__input:hover{border:1px solid #3f7de8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.datepicker__calendar__selectDate__select__input.input--pressed{border:1px solid #3f7de8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px rgba(63, 125, 232, 0.4);box-shadow:0 0 0 2px rgba(63, 125, 232, 0.4)}.datepicker__calendar__selectDate__select__input .input__icon{color:#3f7de8;background-color:#e8f2ff}.datepicker__calendar__selectDate__select__input .input__container__label{color:#8ca0b3}.datepicker__calendar__selectDate__select__input .input__container__label--pressed{color:#3f7de8}.datepicker__calendar__selectDate__select__input .input__container__text{caret-color:#3f7de8;color:#202c44}.datepicker__calendar__selectDate__select__input__disable{cursor:not-allowed;border:1px solid #e7edf4;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;background:#f3f6fa}.datepicker__calendar__selectDate__select__input__disable:hover{border:1px solid #b9cbd3;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;border:1px solid #e7edf4;box-sizing:border-box;border-radius:8px}.datepicker__calendar__selectDate__select__input__disable.input--pressed{border:1px solid #b9cbd3;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px #e7edf4;box-shadow:0 0 0 2px #e7edf4}.datepicker__calendar__selectDate__select__input__disable .input__icon{color:#b9cbd3;background-color:#f8fbfb}.datepicker__calendar__selectDate__select__input__disable .input__container__label{color:#b9cbd3}.datepicker__calendar__selectDate__select__input__disable .input__container__label--pressed{color:#b9cbd3}.datepicker__calendar__selectDate__select__input__disable .input__container__text{caret-color:#b9cbd3;color:#b9cbd3}.datepicker__calendar__selectDate__select__input__icon{color:#8ca0b3;display:-ms-flexbox;display:flex}.datepicker__calendar__selectDate__select__options{background:#f8fbfb;width:100%;max-height:250px;position:absolute;top:99%;left:0;border-radius:8px;-webkit-box-shadow:0 2px 8px rgba(96, 123, 153, 0.4);box-shadow:0 2px 8px rgba(96, 123, 153, 0.4);overflow-y:auto;z-index:2;margin-top:4px;-webkit-transition:opacity 0.75s, visibility 0.75s, -webkit-transform 0.25s;transition:opacity 0.75s, visibility 0.75s, -webkit-transform 0.25s;transition:transform 0.25s, opacity 0.75s, visibility 0.75s;transition:transform 0.25s, opacity 0.75s, visibility 0.75s, -webkit-transform 0.25s;-webkit-transform-origin:top left;transform-origin:top left;-webkit-transform:scaleY(0);transform:scaleY(0);opacity:0}.datepicker__calendar__selectDate__select__options::-webkit-scrollbar{width:16px;background-color:transparent}.datepicker__calendar__selectDate__select__options::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.datepicker__calendar__selectDate__select__options--open{visibility:visible;-webkit-transform:scale(1);transform:scale(1);opacity:1}.datepicker__calendar__selectDate__icon{cursor:pointer;color:#505f79}.datepicker__calendar__selectDate .arrow-left{padding-left:8px}.datepicker__calendar__selectDate .arrow-left__disable{opacity:0;pointer-events:none}.datepicker__calendar__selectDate .arrow-right{padding-right:8px}.datepicker__calendar__selectDate .arrow-right__disable{opacity:0;pointer-events:none}.datepicker__calendar__week{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:grid;grid-template-columns:repeat(7, 1fr)}.datepicker__calendar__week__day{width:40px;height:40px;text-align:center;color:#b9cbd3;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.datepicker__calendar__car{height:240px;width:280px;overflow:hidden;position:relative}.datepicker__calendar__car__slide{display:-ms-flexbox;display:flex;position:absolute;left:-100%}.datepicker__calendar__car__slide__box{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;display:grid;grid-template-columns:repeat(7, 1fr)}.datepicker__calendar__car__slide__box__day{width:40px;height:40px;position:relative}.datepicker__calendar__car__slide__box__day__period:before{content:"";position:absolute;inset:4px 0px;background-color:#e8f2ff}.datepicker__calendar__car__slide__box__day__start:before{inset:4px 0px 4px 4px;border-top-left-radius:16px;border-bottom-left-radius:16px}.datepicker__calendar__car__slide__box__day__end:before{inset:4px 4px 4px 0px;border-top-right-radius:16px;border-bottom-right-radius:16px}.datepicker__calendar__car__slide__box__day__typo{position:relative;width:calc(100% - 2px);height:calc(100% - 2px);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:100%;color:#505f79;border:1px solid transparent;cursor:pointer}.datepicker__calendar__car__slide__box__day__typo:hover{background-color:#ffffff;color:#3f7de8;border-color:#3f7de8}.datepicker__calendar__car__slide__box__day__current{background-color:#ffffff;color:#3f7de8;border-color:#3f7de8}.datepicker__calendar__car__slide__box__day__selected{background-color:#125ad5;color:#ffffff;border-color:#125ad5}.datepicker__calendar__car__slide__box__day__selected:hover{background-color:#125ad5;color:#ffffff;border-color:#125ad5}.datepicker__calendar__car__slide__box__day__disable{pointer-events:none;background-color:transparent;color:#8ca0b3}.datepicker__calendar__car .animate__prev{-webkit-animation-name:animationPrev;animation-name:animationPrev;-webkit-animation-duration:0.31s;animation-duration:0.31s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.datepicker__calendar__car .animate__next{-webkit-animation-name:animationNext;animation-name:animationNext;-webkit-animation-duration:0.31s;animation-duration:0.31s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.period .datepicker__calendar__selectDate{grid-template-columns:28px 120px 80px 1fr 28px}.period .datepicker__calendar__selectDate__futureMonth{padding-left:80px;text-align:center;color:#b9cbd3}.period .datepicker__calendar__week{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.period .datepicker__calendar__week__present,.period .datepicker__calendar__week__future{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:grid;grid-template-columns:repeat(7, 1fr)}.period .datepicker__calendar__car{height:240px;width:600px}.period .datepicker__calendar__car__slide{left:calc(-50% - 60px)}.period .datepicker__calendar__car__slide__box{margin-left:40px}.period .datepicker__calendar__car .animate__prev{-webkit-animation-name:animationPeriodPrev;animation-name:animationPeriodPrev}.period .datepicker__calendar__car .animate__next{-webkit-animation-name:animationPeriodNext;animation-name:animationPeriodNext}@-webkit-keyframes animationPrev{0%{left:-100%}100%{left:0}}@keyframes animationPrev{0%{left:-100%}100%{left:0}}@-webkit-keyframes animationNext{0%{left:-100%}100%{left:-200%}}@keyframes animationNext{0%{left:-100%}100%{left:-200%}}@-webkit-keyframes animationPeriodPrev{0%{left:calc(-50% - 60px)}100%{left:-40px}}@keyframes animationPeriodPrev{0%{left:calc(-50% - 60px)}100%{left:-40px}}@-webkit-keyframes animationPeriodNext{0%{left:calc(-50% - 60px)}100%{left:calc(-100% - 80px)}}@keyframes animationPeriodNext{0%{left:calc(-50% - 60px)}100%{left:calc(-100% - 80px)}}';var u=e("bds_datepicker_single",function(){function e(e){var a=this;t(this,e);this.bdsDateSelected=i(this,"bdsDateSelected",7);this.bdsClearDate=i(this,"bdsClearDate",7);this.monthActivated=this.startDate?this.startDate.month:r.getMonth();this.yearActivated=this.startDate?this.startDate.year:r.getFullYear();this.animatePrev=false;this.animateNext=false;this.openSelectMonth=false;this.openSelectYear=false;this.endDate=n(o);this.startDate=n(c);this.dateSelect=null;this.handler=function(e,t){var i=e.detail.value;if(t=="months"){a.monthActivated=i}else{if(i==a.endDate.year)a.monthActivated=0;if(i==a.startDate.year)a.monthActivated=a.startDate.month;a.yearActivated=i}};this.openDateSelect=function(e,t){if(t=="months"){setTimeout((function(){a.openSelectMonth=e}),100)}else{setTimeout((function(){a.openSelectYear=e}),100)}}}e.prototype.clear=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.dateSelect=null;return[2]}))}))};e.prototype.startDateChanged=function(){var e;this.bdsDateSelected.emit({value:this.dateSelect});this.monthActivated=this.dateSelect?(e=this.dateSelect)===null||e===void 0?void 0:e.getMonth():this.startDate.month;this.yearActivated=this.dateSelect?this.dateSelect.getFullYear():this.startDate.year};e.prototype.componentWillRender=function(){this.week=Object.values(_);this.monthsSlide=d(this.yearActivated,this.monthActivated);this.years=s(this.yearActivated,this.startDate.year,this.endDate.year);this.months=l(this.yearActivated,this.startDate,this.endDate)};e.prototype.prevDays=function(e){var t=[];for(var i=0;i<e;i++){t.push(i)}return t.map((function(e){return a("span",{key:"id"+e,class:"space "+e})}))};e.prototype.selectDate=function(e){var t=new Date(e.year,e.month,e.date);this.dateSelect=t};e.prototype.prevMonth=function(){var e=this;this.animatePrev=true;setTimeout((function(){e.animatePrev=false;e.monthActivated=e.monthActivated-1;if(e.monthActivated<0){e.monthActivated=11;e.yearActivated=e.yearActivated-1}}),300)};e.prototype.nextMonth=function(){var e=this;this.animateNext=true;setTimeout((function(){e.animateNext=false;e.monthActivated=e.monthActivated+1;if(e.monthActivated>11){e.monthActivated=0;e.yearActivated=e.yearActivated+1}}),300)};e.prototype.checkCurrentDay=function(e){var t=p(r);if(b(e)==t)return true;else return false};e.prototype.checkDisableDay=function(e){var t=this.startDate?b(this.startDate):"0";var i=this.endDate?b(this.endDate):"9999999";if(this.startDate&&b(e)<t){return true}if(this.endDate&&b(e)>i){return true}};e.prototype.checkSelectedDay=function(e){var t=this.dateSelect?p(this.dateSelect):"0";if(b(e)==t)return true;else return false};e.prototype.renderSelectData=function(e,t,i){var r,n;var o=this;var c=i=="months"?this.openSelectMonth:this.openSelectYear;var _=e.filter((function(e){return e.value===t}));var d=c?"arrow-up":"arrow-down";return a("div",{class:(r={datepicker__calendar__selectDate__select:true},r["datepicker__calendar__selectDate__select__"+i]=true,r)},a("button",{onFocus:function(){return e.length>1&&o.openDateSelect(true,i)},onBlur:function(){return e.length>1&&o.openDateSelect(false,i)},class:(n={datepicker__calendar__selectDate__select__input:true,datepicker__calendar__selectDate__select__input__disable:e.length<=1},n["input--pressed"]=c,n)},a("bds-typo",{variant:"fs-14"},_[0].label),a("div",{class:"datepicker__calendar__selectDate__select__input__icon"},a("bds-icon",{size:"small",name:d,color:"inherit"}))),a("div",{class:{datepicker__calendar__selectDate__select__options:true,"datepicker__calendar__selectDate__select__options--open":c}},e.map((function(e){return a("bds-select-option",{value:e.value,key:e.value,onOptionSelected:function(e){return o.handler(e,i)},selected:e.value==t,onClick:function(){return o.openDateSelect(false,i)}},e.label)}))))};e.prototype.renderCarSlideBox=function(e,t){var i=this;return a("div",{class:{datepicker__calendar__car__slide__box:true}},this.prevDays(t),e.map((function(e,t){return a("div",{key:t,class:{datepicker__calendar__car__slide__box__day:true}},a("bds-typo",{class:{datepicker__calendar__car__slide__box__day__typo:true,datepicker__calendar__car__slide__box__day__current:i.checkCurrentDay(e),datepicker__calendar__car__slide__box__day__selected:i.checkSelectedDay(e),datepicker__calendar__car__slide__box__day__disable:i.checkDisableDay(e)},onClick:function(){return i.selectDate(e)}},e.date))})))};e.prototype.render=function(){var e,t;var i=this;return a("div",{class:{datepicker__calendar:true}},a("div",{class:{datepicker__calendar__selectDate:true}},a("bds-icon",{class:(e={},e["arrow-left"]=true,e["arrow-left__disable"]=b(this.monthsSlide[0].days[this.monthsSlide[0].days.length-1])<b(this.startDate),e.datepicker__calendar__selectDate__icon=true,e),name:"arrow-left",theme:"outline",size:"small",onClick:function(){return i.prevMonth()}}),[this.renderSelectData(this.months,this.monthActivated,"months"),this.renderSelectData(this.years,this.yearActivated,"years")],a("bds-icon",{class:(t={},t["arrow-right"]=true,t["arrow-right__disable"]=b(this.monthsSlide[2].days[0])>b(this.endDate),t.datepicker__calendar__selectDate__icon=true,t),name:"arrow-right",theme:"outline",size:"small",onClick:function(){return i.nextMonth()}})),a("div",null,a("div",{class:{datepicker__calendar__week:true}},this.week.map((function(e,t){return a("bds-typo",{key:t,class:"datepicker__calendar__week__day"},e.charAt(0))}))),a("div",{class:{datepicker__calendar__car:true}},a("div",{class:{datepicker__calendar__car__slide:true,animate__prev:this.animatePrev,animate__next:this.animateNext}},[this.renderCarSlideBox(this.monthsSlide[0].days,this.monthsSlide[0].days[0].day),this.renderCarSlideBox(this.monthsSlide[1].days,this.monthsSlide[1].days[0].day),this.renderCarSlideBox(this.monthsSlide[2].days,this.monthsSlide[2].days[0].day)]))))};Object.defineProperty(e,"watchers",{get:function(){return{dateSelect:["startDateChanged"]}},enumerable:false,configurable:true});return e}());u.style=x}}}));
|