@maggioli-design-system/magma 1.11.7 → 1.12.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/cjs/loader.cjs.js +1 -1
- package/dist/cjs/magma-components.cjs.js +1 -1
- package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/mds-author.cjs.entry.js +2 -2
- package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar-stack.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar.cjs.entry.js +1 -1
- package/dist/cjs/mds-badge.cjs.entry.js +1 -1
- package/dist/cjs/mds-banner_3.cjs.entry.js +6 -6
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-bibliography.cjs.entry.js +7 -7
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
- package/dist/cjs/mds-button_3.cjs.entry.js +2 -2
- package/dist/cjs/mds-calendar_2.cjs.entry.js +246 -128
- package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
- package/dist/cjs/mds-card.cjs.entry.js +1 -1
- package/dist/cjs/mds-details.cjs.entry.js +1 -1
- package/dist/cjs/mds-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/mds-emoji.cjs.entry.js +1 -1
- package/dist/cjs/mds-entity.cjs.entry.js +4 -4
- package/dist/cjs/mds-file-preview.cjs.entry.js +2 -2
- package/dist/cjs/mds-file.cjs.entry.js +3 -3
- package/dist/cjs/mds-filter-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-filter.cjs.entry.js +1 -1
- package/dist/cjs/mds-header-bar.cjs.entry.js +3 -3
- package/dist/cjs/mds-header.cjs.entry.js +2 -2
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +1 -1
- package/dist/cjs/mds-hr.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range.cjs.entry.js +197 -55
- package/dist/cjs/mds-input-date.cjs.entry.js +16 -10
- package/dist/cjs/mds-input.cjs.entry.js +9 -9
- package/dist/collection/components/mds-accordion/mds-accordion.js +1 -1
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.js +1 -1
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +1 -1
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +1 -1
- package/dist/collection/components/mds-author/mds-author.js +2 -2
- package/dist/collection/components/mds-avatar/mds-avatar.js +1 -1
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.js +1 -1
- package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.js +1 -1
- package/dist/collection/components/mds-badge/mds-badge.js +1 -1
- package/dist/collection/components/mds-banner/mds-banner.js +2 -2
- package/dist/collection/components/mds-benchmark-bar/mds-benchmark-bar.js +1 -1
- package/dist/collection/components/mds-bibliography/mds-bibliography.js +7 -7
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +2 -2
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.js +1 -1
- package/dist/collection/components/mds-button/mds-button.js +1 -1
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +1 -1
- package/dist/collection/components/mds-button-group/mds-button-group.js +1 -1
- package/dist/collection/components/mds-calendar/mds-calendar.css +50 -7
- package/dist/collection/components/mds-calendar/mds-calendar.js +413 -128
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.js +1 -1
- package/dist/collection/components/mds-card/mds-card.js +1 -1
- package/dist/collection/components/mds-card-content/mds-card-content.js +1 -1
- package/dist/collection/components/mds-card-footer/mds-card-footer.js +1 -1
- package/dist/collection/components/mds-card-header/mds-card-header.js +1 -1
- package/dist/collection/components/mds-card-media/mds-card-media.js +1 -1
- package/dist/collection/components/mds-chip/mds-chip.js +3 -3
- package/dist/collection/components/mds-details/mds-details.js +1 -1
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +2 -2
- package/dist/collection/components/mds-emoji/mds-emoji.js +1 -1
- package/dist/collection/components/mds-entity/mds-entity.js +4 -4
- package/dist/collection/components/mds-file/mds-file.js +3 -3
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +2 -2
- package/dist/collection/components/mds-filter/mds-filter.js +1 -1
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +1 -1
- package/dist/collection/components/mds-header/mds-header.js +2 -2
- package/dist/collection/components/mds-header-bar/mds-header-bar.js +3 -3
- package/dist/collection/components/mds-help/mds-help.js +1 -1
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +1 -1
- package/dist/collection/components/mds-hr/mds-hr.js +1 -1
- package/dist/collection/components/mds-icon/mds-icon.js +1 -1
- package/dist/collection/components/mds-input/mds-input.js +9 -9
- package/dist/collection/components/mds-input-date/mds-input-date.js +19 -11
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +33 -1
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +220 -70
- package/dist/collection/components/mds-input-date-range/test/mds-input-date-range.stories.js +10 -0
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +1 -1
- package/dist/components/mds-accordion-item.js +1 -1
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion-timer.js +1 -1
- package/dist/components/mds-accordion.js +1 -1
- package/dist/components/mds-author.js +2 -2
- package/dist/components/mds-avatar-stack-item2.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar2.js +1 -1
- package/dist/components/mds-badge2.js +1 -1
- package/dist/components/mds-banner2.js +2 -2
- package/dist/components/mds-benchmark-bar.js +1 -1
- package/dist/components/mds-bibliography.js +7 -7
- package/dist/components/mds-breadcrumb-item.js +1 -1
- package/dist/components/mds-breadcrumb.js +2 -2
- package/dist/components/mds-button-dropdown.js +1 -1
- package/dist/components/mds-button-group.js +1 -1
- package/dist/components/mds-button2.js +1 -1
- package/dist/components/mds-calendar-cell2.js +1 -1
- package/dist/components/mds-calendar2.js +256 -128
- package/dist/components/mds-card-content.js +1 -1
- package/dist/components/mds-card-footer.js +1 -1
- package/dist/components/mds-card-header.js +1 -1
- package/dist/components/mds-card-media.js +1 -1
- package/dist/components/mds-card.js +1 -1
- package/dist/components/mds-chip2.js +3 -3
- package/dist/components/mds-details.js +1 -1
- package/dist/components/mds-dropdown2.js +2 -2
- package/dist/components/mds-emoji.js +1 -1
- package/dist/components/mds-entity.js +4 -4
- package/dist/components/mds-file-preview2.js +2 -2
- package/dist/components/mds-file.js +3 -3
- package/dist/components/mds-filter-item2.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +3 -3
- package/dist/components/mds-header.js +2 -2
- package/dist/components/mds-help2.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-hr.js +1 -1
- package/dist/components/mds-icon2.js +1 -1
- package/dist/components/mds-input-date-range.js +199 -55
- package/dist/components/mds-input-date.js +17 -10
- package/dist/components/mds-input2.js +9 -9
- package/dist/documentation.json +238 -32
- package/dist/esm/loader.js +1 -1
- package/dist/esm/magma-components.js +1 -1
- package/dist/esm/mds-accordion-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer.entry.js +1 -1
- package/dist/esm/mds-accordion.entry.js +1 -1
- package/dist/esm/mds-author.entry.js +2 -2
- package/dist/esm/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm/mds-avatar-stack.entry.js +1 -1
- package/dist/esm/mds-avatar.entry.js +1 -1
- package/dist/esm/mds-badge.entry.js +1 -1
- package/dist/esm/mds-banner_3.entry.js +6 -6
- package/dist/esm/mds-benchmark-bar.entry.js +1 -1
- package/dist/esm/mds-bibliography.entry.js +7 -7
- package/dist/esm/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm/mds-breadcrumb.entry.js +2 -2
- package/dist/esm/mds-button-dropdown.entry.js +1 -1
- package/dist/esm/mds-button-group.entry.js +1 -1
- package/dist/esm/mds-button_3.entry.js +2 -2
- package/dist/esm/mds-calendar_2.entry.js +246 -128
- package/dist/esm/mds-card-content.entry.js +1 -1
- package/dist/esm/mds-card-footer.entry.js +1 -1
- package/dist/esm/mds-card-header.entry.js +1 -1
- package/dist/esm/mds-card-media.entry.js +1 -1
- package/dist/esm/mds-card.entry.js +1 -1
- package/dist/esm/mds-details.entry.js +1 -1
- package/dist/esm/mds-dropdown.entry.js +2 -2
- package/dist/esm/mds-emoji.entry.js +1 -1
- package/dist/esm/mds-entity.entry.js +4 -4
- package/dist/esm/mds-file-preview.entry.js +2 -2
- package/dist/esm/mds-file.entry.js +3 -3
- package/dist/esm/mds-filter-item.entry.js +1 -1
- package/dist/esm/mds-filter.entry.js +1 -1
- package/dist/esm/mds-header-bar.entry.js +3 -3
- package/dist/esm/mds-header.entry.js +2 -2
- package/dist/esm/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm/mds-hr.entry.js +1 -1
- package/dist/esm/mds-input-date-range.entry.js +197 -55
- package/dist/esm/mds-input-date.entry.js +16 -10
- package/dist/esm/mds-input.entry.js +9 -9
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
- package/dist/esm-es5/mds-accordion.entry.js +1 -1
- package/dist/esm-es5/mds-author.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +1 -1
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +1 -1
- package/dist/esm-es5/mds-benchmark-bar.entry.js +1 -1
- package/dist/esm-es5/mds-bibliography.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +1 -1
- package/dist/esm-es5/mds-button-dropdown.entry.js +1 -1
- package/dist/esm-es5/mds-button-group.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +1 -1
- package/dist/esm-es5/mds-calendar_2.entry.js +1 -1
- package/dist/esm-es5/mds-card-content.entry.js +1 -1
- package/dist/esm-es5/mds-card-footer.entry.js +1 -1
- package/dist/esm-es5/mds-card-header.entry.js +1 -1
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +1 -1
- package/dist/esm-es5/mds-details.entry.js +1 -1
- package/dist/esm-es5/mds-dropdown.entry.js +1 -1
- package/dist/esm-es5/mds-emoji.entry.js +2 -2
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +1 -1
- package/dist/esm-es5/mds-file.entry.js +1 -1
- package/dist/esm-es5/mds-filter-item.entry.js +1 -1
- package/dist/esm-es5/mds-filter.entry.js +1 -1
- package/dist/esm-es5/mds-header-bar.entry.js +1 -1
- package/dist/esm-es5/mds-header.entry.js +1 -1
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-date.entry.js +1 -1
- package/dist/esm-es5/mds-input.entry.js +1 -1
- package/dist/hydrate/index.js +539 -262
- package/dist/hydrate/index.mjs +539 -262
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/{p-e3b0adb8.entry.js → p-02c9dffb.entry.js} +1 -1
- package/dist/magma-components/{p-e8626e7a.system.entry.js → p-03b5bdae.system.entry.js} +1 -1
- package/dist/magma-components/{p-fec5168f.entry.js → p-09b27f6e.entry.js} +1 -1
- package/dist/magma-components/p-09cbad84.system.entry.js +1 -0
- package/dist/magma-components/{p-0c3b813d.entry.js → p-0a9db9fc.entry.js} +1 -1
- package/dist/magma-components/{p-beeaec1c.entry.js → p-10957e40.entry.js} +1 -1
- package/dist/magma-components/{p-42f5037a.entry.js → p-14cad758.entry.js} +1 -1
- package/dist/magma-components/{p-35d85970.entry.js → p-188c906e.entry.js} +1 -1
- package/dist/magma-components/{p-91e16169.system.entry.js → p-191e79c8.system.entry.js} +1 -1
- package/dist/magma-components/{p-1a8d42d1.system.entry.js → p-1c37f4ce.system.entry.js} +1 -1
- package/dist/magma-components/{p-30648e76.system.entry.js → p-1cd6c3fe.system.entry.js} +1 -1
- package/dist/magma-components/{p-c3ae9ba7.system.entry.js → p-1f52a479.system.entry.js} +1 -1
- package/dist/magma-components/p-20e0f9e3.entry.js +1 -0
- package/dist/magma-components/p-26cd6ec8.system.js +1 -1
- package/dist/magma-components/{p-237d60e2.system.entry.js → p-2910fa0c.system.entry.js} +1 -1
- package/dist/magma-components/{p-d95c9d2e.system.entry.js → p-2d947462.system.entry.js} +1 -1
- package/dist/magma-components/{p-0b25be9f.entry.js → p-342a07c7.entry.js} +1 -1
- package/dist/magma-components/{p-b228a186.system.entry.js → p-39d9f24d.system.entry.js} +1 -1
- package/dist/magma-components/{p-27cb23f6.entry.js → p-3a57f53d.entry.js} +1 -1
- package/dist/magma-components/{p-0689710c.system.entry.js → p-3b267a52.system.entry.js} +1 -1
- package/dist/magma-components/{p-224f80f4.entry.js → p-3bf7d52c.entry.js} +1 -1
- package/dist/magma-components/{p-2de8157b.system.entry.js → p-432be440.system.entry.js} +1 -1
- package/dist/magma-components/{p-5eca660e.system.entry.js → p-43a2f192.system.entry.js} +1 -1
- package/dist/magma-components/{p-eaf4805a.entry.js → p-48a2e8e4.entry.js} +1 -1
- package/dist/magma-components/{p-ff674ef9.entry.js → p-4ab9c985.entry.js} +1 -1
- package/dist/magma-components/{p-40eeffe8.entry.js → p-4b76248b.entry.js} +1 -1
- package/dist/magma-components/{p-11df77b3.entry.js → p-4cf97724.entry.js} +1 -1
- package/dist/magma-components/{p-0e2b6dd3.system.entry.js → p-5359bf5e.system.entry.js} +1 -1
- package/dist/magma-components/{p-536b4c16.entry.js → p-5619ed51.entry.js} +1 -1
- package/dist/magma-components/{p-d738a403.system.entry.js → p-5edd2f30.system.entry.js} +1 -1
- package/dist/magma-components/{p-033e85f1.entry.js → p-606cd4bb.entry.js} +1 -1
- package/dist/magma-components/{p-e9ade624.system.entry.js → p-61c35e05.system.entry.js} +1 -1
- package/dist/magma-components/{p-6e680417.system.entry.js → p-68a7d370.system.entry.js} +1 -1
- package/dist/magma-components/{p-409c9518.system.entry.js → p-7244ca7a.system.entry.js} +1 -1
- package/dist/magma-components/{p-a9d6984e.entry.js → p-726cd93c.entry.js} +1 -1
- package/dist/magma-components/{p-c2798c9a.system.entry.js → p-7359e097.system.entry.js} +1 -1
- package/dist/magma-components/{p-723fbfb0.entry.js → p-78088de2.entry.js} +1 -1
- package/dist/magma-components/{p-83b2ee17.entry.js → p-7ae676db.entry.js} +1 -1
- package/dist/magma-components/{p-6d3ea2b6.entry.js → p-7b788f04.entry.js} +1 -1
- package/dist/magma-components/{p-b727c3a6.system.entry.js → p-80518658.system.entry.js} +1 -1
- package/dist/magma-components/{p-f6ef6105.entry.js → p-8314f381.entry.js} +1 -1
- package/dist/magma-components/{p-86f45462.entry.js → p-8469b603.entry.js} +1 -1
- package/dist/magma-components/{p-09aaa62b.system.entry.js → p-855f1617.system.entry.js} +1 -1
- package/dist/magma-components/{p-cae0e727.entry.js → p-89757b16.entry.js} +1 -1
- package/dist/magma-components/{p-60342fa8.system.entry.js → p-8bc52935.system.entry.js} +1 -1
- package/dist/magma-components/{p-6b4bf0df.entry.js → p-8f091ceb.entry.js} +1 -1
- package/dist/magma-components/{p-8859d528.entry.js → p-94fb14aa.entry.js} +1 -1
- package/dist/magma-components/{p-755dff75.system.entry.js → p-9b7e1f4b.system.entry.js} +1 -1
- package/dist/magma-components/{p-dfdc83ab.entry.js → p-9d5ab31c.entry.js} +1 -1
- package/dist/magma-components/{p-ddd59ddb.system.entry.js → p-9d86dd4c.system.entry.js} +1 -1
- package/dist/magma-components/{p-9e08e8f1.system.entry.js → p-a776c78c.system.entry.js} +1 -1
- package/dist/magma-components/{p-854848ca.entry.js → p-aacb6b47.entry.js} +1 -1
- package/dist/magma-components/{p-bdc49c99.entry.js → p-b4bad440.entry.js} +1 -1
- package/dist/magma-components/{p-3095eab8.system.entry.js → p-b7aae63a.system.entry.js} +1 -1
- package/dist/magma-components/{p-03cadeb4.system.entry.js → p-b7b0f420.system.entry.js} +1 -1
- package/dist/magma-components/{p-788e95ce.entry.js → p-ba8142cf.entry.js} +1 -1
- package/dist/magma-components/{p-84cf6604.system.entry.js → p-be5a7e23.system.entry.js} +1 -1
- package/dist/magma-components/{p-61e3603c.system.entry.js → p-c3304189.system.entry.js} +1 -1
- package/dist/magma-components/{p-a201cbab.entry.js → p-c372fe03.entry.js} +1 -1
- package/dist/magma-components/{p-b4baf323.entry.js → p-c5730248.entry.js} +1 -1
- package/dist/magma-components/{p-3e50c4ab.entry.js → p-c5d2cd00.entry.js} +1 -1
- package/dist/magma-components/p-c6785782.entry.js +1 -0
- package/dist/magma-components/p-ca4ee5b5.system.entry.js +1 -0
- package/dist/magma-components/p-d7cf7569.entry.js +1 -0
- package/dist/magma-components/{p-6d1ce884.system.entry.js → p-d98a34dc.system.entry.js} +1 -1
- package/dist/magma-components/{p-2b3517af.system.entry.js → p-d99f38a7.system.entry.js} +1 -1
- package/dist/magma-components/{p-3c2df04e.system.entry.js → p-dd7b9422.system.entry.js} +1 -1
- package/dist/magma-components/{p-58b77d4f.entry.js → p-e0bd7509.entry.js} +1 -1
- package/dist/magma-components/{p-a786264e.system.entry.js → p-e32a0ec8.system.entry.js} +1 -1
- package/dist/magma-components/{p-12527b99.system.entry.js → p-ef488f9f.system.entry.js} +1 -1
- package/dist/magma-components/{p-70223843.system.entry.js → p-f250731c.system.entry.js} +1 -1
- package/dist/magma-components/{p-8de607ef.entry.js → p-f2e7d2f0.entry.js} +1 -1
- package/dist/magma-components/{p-a9c9e071.system.entry.js → p-f349e728.system.entry.js} +1 -1
- package/dist/magma-components/{p-1c2b1a44.system.entry.js → p-f584c1d7.system.entry.js} +1 -1
- package/dist/magma-components/{p-f5f97018.entry.js → p-fd25f69a.entry.js} +1 -1
- package/dist/magma-components/{p-977d3bf0.entry.js → p-fe3879f3.entry.js} +1 -1
- package/dist/magma-components/{p-50b07c72.system.entry.js → p-ff8d8818.system.entry.js} +1 -1
- package/dist/stats.json +790 -377
- package/dist/types/components/mds-calendar/mds-calendar.d.ts +43 -1
- package/dist/types/components/mds-input-date/mds-input-date.d.ts +1 -0
- package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +23 -4
- package/dist/types/components/mds-input-date-range/test/mds-input-date-range.stories.d.ts +12 -0
- package/dist/types/components.d.ts +94 -6
- package/package.json +4 -4
- package/dist/magma-components/p-3da97c74.system.entry.js +0 -1
- package/dist/magma-components/p-643fd688.entry.js +0 -1
- package/dist/magma-components/p-80b11d2e.entry.js +0 -1
- package/dist/magma-components/p-e1f3cc6d.entry.js +0 -1
- package/dist/magma-components/p-ead9e4c4.system.entry.js +0 -1
|
@@ -217,9 +217,9 @@ const MdsDropdown = class {
|
|
|
217
217
|
this.km.detachEscapeBehavior();
|
|
218
218
|
}
|
|
219
219
|
render() {
|
|
220
|
-
return (h(Host, { key: '
|
|
220
|
+
return (h(Host, { key: '611b52d0d95b82ff0a15418a2912436aa8036a25', style: {
|
|
221
221
|
zIndex: `${this.zIndex}`,
|
|
222
|
-
} }, h("div", { key: '
|
|
222
|
+
} }, h("div", { key: '438608dea4c704636a0ebb60d77403a55820972c', class: "arrow", innerHTML: arrowSvg }), h("slot", { key: '72b92abf8d288c0ae4dbb606c23ff9bfc274cf78' })));
|
|
223
223
|
}
|
|
224
224
|
get host() { return getElement(this); }
|
|
225
225
|
static get watchers() { return {
|
|
@@ -6422,7 +6422,7 @@ const MdsEmoji = class {
|
|
|
6422
6422
|
window.removeEventListener('mousemove', this.handleFollowMouse);
|
|
6423
6423
|
}
|
|
6424
6424
|
render() {
|
|
6425
|
-
return h(Host, { key: '
|
|
6425
|
+
return h(Host, { key: '426c2dbb4cb80336f8897c8ae70049d3deef5a3b' }, this.name === 'hexabot' && (h("svg", { key: 'f9ce19561efca4aebf8149aa74e08afe74cc3e9c', ref: el => (this.emojiEl = el), viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'f240afd90d41d7581678cf524ef91d0738954821', class: "head", ref: el => (this.headEl = el), d: this.headGeometry.hexagonRounded, fill: "black" }), h("path", { key: '6a8e51ad759a6db9fb97723d287a0fa4bde2db10', class: "eye", ref: el => (this.eyeLeftEl = el), d: this.eyeLeftGeometry.open, fill: "white" }), h("path", { key: '737dceb5d0f2e03097b9745d823f7f71f5a467c6', class: "eye", ref: el => (this.eyeRightEl = el), d: this.eyeRightGeometry.open, fill: "white" }), h("path", { key: 'cb7132bdb42a7cd33218de1eeb7be5f620c104ba', class: "mouth", ref: el => (this.mouthEl = el), d: this.mouthGeometry.smile, fill: "white" }), h("path", { key: '3f04aa7216b868422217406347d85c6ef55e667d', class: "hand", ref: el => (this.handLeftEl = el), d: this.handLeftGeometry.think, fill: "white" }))));
|
|
6426
6426
|
}
|
|
6427
6427
|
get host() { return getElement(this); }
|
|
6428
6428
|
};
|
|
@@ -28,10 +28,10 @@ const MdsEntity = class {
|
|
|
28
28
|
this.actions = this.hostElement.querySelector(':scope > [slot="action"]') !== null;
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return (h(Host, { key: '
|
|
32
|
-
h("mds-avatar", { key: '
|
|
33
|
-
h("div", { key: '
|
|
34
|
-
h("div", { key: '
|
|
31
|
+
return (h(Host, { key: '8a36994c8dba823ded1073269f7daba8761fb74c' }, h("div", { key: 'ff0fe77bfc04bfbc80028ddedbdfdf16ba1e76a5', class: "spinner", part: "spinner" }, h("mds-spinner", { key: '16708efad1581c6be3f522e30fadf67dced790b2', running: true })), this.checkAvatar() &&
|
|
32
|
+
h("mds-avatar", { key: 'f175454b831126d2efaa021748e4f5da7d1fb827', class: "preview", icon: this.icon, initials: this.initials, src: this.src, tone: this.tone, variant: this.variant, part: "avatar" }), h("div", { key: '55431edca0683dbae25d19b538185e1c74552ca2', class: "infos" }, h("slot", { key: 'c79cf3176f50bee9cae1653b8271d665b001355e' }), this.details &&
|
|
33
|
+
h("div", { key: '0ab6bab732c454d92305f9c4d3cdaa5f3b670bd4', class: "details" }, h("slot", { key: 'f7bc347f5f5ff968220d0d572c6758624db8283f', name: "detail" }))), this.actions &&
|
|
34
|
+
h("div", { key: '062cc22d512b0298b3bbd71b435ed47e06e9fe18', class: "actions" }, h("slot", { key: '9ac39cd0db729de640ef90b4c48b2bb59fe416e5', name: "action" }))));
|
|
35
35
|
}
|
|
36
36
|
get hostElement() { return getElement(this); }
|
|
37
37
|
};
|
|
@@ -271,11 +271,11 @@ const MdsFilePreview = class {
|
|
|
271
271
|
}
|
|
272
272
|
render() {
|
|
273
273
|
var _a, _b, _c;
|
|
274
|
-
return (h(Host, { key: '
|
|
274
|
+
return (h(Host, { key: 'c19f52934f1fa591d71175d1a0a584c0e9d0bd92' }, this.deletable && h("mds-button", { key: '89ea5ca40b769a2be0fd1a85a647c76cfec19d1a', title: this.t.get('remove'), class: "action-delete", icon: miBaselineCancel, variant: "light", onClick: this.onClickDeletedEvent }), h("div", { key: '4549aaf3814a0b76176ba5ff7c661ccb8459f537', class: "card", part: "card", onClick: this.onClickDownloadEvent }, this.src && !this.message && getExtensionInfos(this.filename, this.suffix).preview
|
|
275
275
|
? h("mds-img", { src: this.src, class: "preview preview--image", "aspect-ratio": "1/1" })
|
|
276
276
|
: h("div", { class: clsx('preview', !this.message ? 'preview--icon' : 'preview--status') }, this.icon
|
|
277
277
|
? h("mds-icon", { class: "icon", name: this.icon })
|
|
278
|
-
: h("mds-icon", { class: "icon", name: getFormatsVariant(this.filename, this.suffix).icon }), this.message && h("mds-text", { class: "message", typography: "caption", variant: "info" }, this.message)), h("mds-text", { key: '
|
|
278
|
+
: h("mds-icon", { class: "icon", name: getFormatsVariant(this.filename, this.suffix).icon }), this.message && h("mds-text", { class: "message", typography: "caption", variant: "info" }, this.message)), h("mds-text", { key: 'b65a6b6b3dff0c40cda7493fede3e906ec2a39bb', class: "file-name", typography: "h6", variant: "title", truncate: this.truncate, title: this.filename }, this.filename), h("footer", { key: '9a3ab25be54faa5d535eaaf4449985090aa5a9ea', class: clsx('infos', this.filesize && 'infos--has-file-size') }, this.filesize && this.filesize === Number(this.filesize).toString() && h("mds-text", { key: '4c975b0c31a93568e2776ec71778a117d5eeeb66', class: "file-size", truncate: "word", typography: "caption", variant: "info" }, filesize(Number(this.filesize), { standard: 'jedec' })), this.filesize && this.filesize !== Number(this.filesize).toString() && h("mds-text", { key: '98912a75f1d391ec5ef30ddb122c71750a21dff2', class: "file-size", truncate: "word", typography: "caption", variant: "info" }, this.filesize), getSuffix(this.filename, this.suffix) && h("mds-badge", { key: 'e4985c4617aa81233dbb48dfa774c809e62f8384', variant: getFormatsVariant(this.filename, this.suffix).variant, tone: "weak", class: "suffix", title: (_a = this.description) !== null && _a !== void 0 ? _a : this.t.get(this.getDefaultKeyDescription()) }, getSuffix(this.filename, this.suffix)), !this.filesize && h("mds-text", { key: '180c16a686a3b627279388fd0f5f001bded84b65', class: "description", truncate: "word", typography: "caption", variant: "info", title: (_b = this.description) !== null && _b !== void 0 ? _b : this.t.get(this.getDefaultKeyDescription()) }, (_c = this.description) !== null && _c !== void 0 ? _c : this.t.get(this.getDefaultKeyDescription()))))));
|
|
279
279
|
}
|
|
280
280
|
get host() { return getElement(this); }
|
|
281
281
|
static get watchers() { return {
|
|
@@ -7247,10 +7247,10 @@ const MdsFile = class {
|
|
|
7247
7247
|
}
|
|
7248
7248
|
render() {
|
|
7249
7249
|
var _a, _b;
|
|
7250
|
-
return (h(Host, { key: '
|
|
7250
|
+
return (h(Host, { key: '0bb5dc19b383951d7fbc1327628fc243a44df46f', tabindex: "0", onClick: this.handleOnClick }, h("div", { key: '6db2f755dbe8a7bcb32408b2f432fa8c21bf8ffb', class: "preview" }, this.preview !== undefined
|
|
7251
7251
|
? h("div", { class: "image-preview", style: { backgroundImage: `url(${this.preview})` } })
|
|
7252
|
-
: h("mds-icon", { name: getFormatsVariant(this.filename, this.suffix).icon })), h("div", { key: '
|
|
7253
|
-
h("div", { key: '
|
|
7252
|
+
: h("mds-icon", { name: getFormatsVariant(this.filename, this.suffix).icon })), h("div", { key: '490831c841387780442520bca2411987013197c9', class: "info" }, h("div", { key: 'bb3cb62007b8b92885c78ebc2ff1189996f6cca2', class: "filename", title: this.filename }, h("mds-text", { key: 'c51ab1c69ebcc754d99acffe402f30df11368b70', truncate: "word", typography: "h6", class: "name" }, getName(this.filename)), this.suffix === undefined && getSuffix(this.filename, this.suffix) && h("mds-text", { key: '0a8ad649ed9292ce4e9c38ac0debe6826d302d75', typography: "h6", class: "extension" }, ".", getSuffix(this.filename, this.suffix))), h("div", { key: '7b87440b745f63583164e99802c01a770f545a82', class: "detail" }, getSuffix(this.filename, this.suffix) && h("mds-badge", { key: 'a2d422ba97d0d89bedbd597871df41af2381ddf0', variant: getFormatsVariant(this.filename, this.suffix).variant, tone: "weak", class: "suffix" }, getSuffix(this.filename, this.suffix)), h("mds-text", { key: '2e9534a1bae77749db33258609fafc27d1cf69a6', truncate: "word", typography: "caption", class: "description", title: (_a = this.description) !== null && _a !== void 0 ? _a : this.t.get(this.getDefaultDescription()) }, (_b = this.description) !== null && _b !== void 0 ? _b : this.t.get(this.getDefaultDescription())))), this.wasDownloaded && this.showDownloadedIcon &&
|
|
7253
|
+
h("div", { key: '893d59f13b76e6d45489c278e312624b166ceab9', class: "indicator" }, h("i", { key: 'ff428c5087baa52839e4094d517a76fee8d16ceb', class: "downloaded", innerHTML: miBaselineFileDownloadDone, title: this.t.get('alreadyDownloaded') }))));
|
|
7254
7254
|
}
|
|
7255
7255
|
get host() { return getElement(this); }
|
|
7256
7256
|
static get watchers() { return {
|
|
@@ -23,7 +23,7 @@ const MdsFilterItem = class {
|
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
25
|
var _a;
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: 'cce4de5afd4da30374952cbbc4c6b694757d3d5f', tabindex: this.disabled ? '-1' : '0', role: "menuitem", "aria-label": (_a = this.label) !== null && _a !== void 0 ? _a : this.icon, onClick: this.toggle }, this.icon && h("mds-icon", { key: 'b03f521485192a0149f70b83730988214dd304d6', "aria-hidden": "true", name: this.icon }), this.label && h("mds-text", { key: '5fa46497d02b5e05b056cdea546d1b9d9eecc3af', "aria-hidden": "true", variant: "info", typography: "caption" }, this.label), this.count && h("div", { key: '9cdc8d67fcb81c58db3943dec77709fba4a03e3b', class: "count" }, h("mds-text", { key: 'b402310eb0d4043987776008c6584ed95b8e8e7d', "aria-hidden": "true", variant: "info", typography: "option" }, this.count))));
|
|
27
27
|
}
|
|
28
28
|
get element() { return getElement(this); }
|
|
29
29
|
};
|
|
@@ -94,7 +94,7 @@ const MdsFilter = class {
|
|
|
94
94
|
this.changedEvent.emit({ children: items, value: this.itemsValues() });
|
|
95
95
|
}
|
|
96
96
|
render() {
|
|
97
|
-
return (h(Host, { key: '
|
|
97
|
+
return (h(Host, { key: '2dcf168d8cd1db1f50e0162bf18c63f96e260ced', "aria-label": this.label, role: "menubar" }, this.label && h("mds-text", { key: '88a354f4000f4c12b3da275969ee394d7943c6ff', class: "label", typography: "label" }, this.label), h("div", { key: '9dd4279f939b7dea4213dbebcbf93d46c650f6e8', class: "items-wrapper" }, h("div", { key: '51f5aa8ce8baf80de5890354e7a12ffb8dd68c23', class: clsx('items', this.active && 'active') }, h("slot", { key: '7ed3b110e0c0e2025bdfe224cf4c50aaae8ef4c9' }), h("div", { key: '4ee1483f268903dae707a604c857441bbaf15509', class: clsx('reset', this.active && 'reset--opened') }, h("mds-filter-item", { key: '7be06d770241ae01527c798a1e7958e6a90971b9', selected: this.active, disabled: !this.active && this.reset, class: clsx('reset-button', this.active && 'reset-button-opened'), icon: miBaselineClose, onClick: this.resetItems }))))));
|
|
98
98
|
}
|
|
99
99
|
get element() { return getElement(this); }
|
|
100
100
|
};
|
|
@@ -31,9 +31,9 @@ const MdsHeaderBar = class {
|
|
|
31
31
|
this.isOpened = isOpened;
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
35
|
-
h("nav", { key: '
|
|
36
|
-
h("mds-button", { key: '
|
|
34
|
+
return (h(Host, { key: '4f05a5967beb2dc2176612fd9a1c4c762d732d36' }, h("div", { key: 'd0a9f9d2f21b4f1ec90d843662ddee100d4a8224', class: "content", part: "content" }, h("div", { key: '95dba7bda54e9615745c1dbce97877d6c270dfd7', class: "logo" }, h("slot", { key: '928754982fc5c8037dda2e96d1b13737681d9229' })), h("div", { key: 'b323873b3ab16269815bbc3c8f01299981fcb684', class: "actions", part: "actions" }, this.nav !== 'none' && this.hasNav &&
|
|
35
|
+
h("nav", { key: '72788eba14482c7cb1020016094526370e333609', class: "nav", part: "nav" }, h("slot", { key: '6b46a30da15b1960770192f161e8c2c8fcd4dd97', name: "nav" })), this.menu !== 'none' &&
|
|
36
|
+
h("mds-button", { key: '88abd41f054df676ab99e597f172978ef3883bc8', class: "menu", variant: "dark", tone: "quiet", icon: miRoundMenu, onClick: this.open, part: "hamburger" })))));
|
|
37
37
|
}
|
|
38
38
|
get host() { return getElement(this); }
|
|
39
39
|
};
|
|
@@ -175,8 +175,8 @@ const MdsHeader = class {
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
render() {
|
|
178
|
-
return (h(Host, { key: '
|
|
179
|
-
h("div", { key: '
|
|
178
|
+
return (h(Host, { key: '5f7a197284f180ab816c563e388a7f8e521e1f05' }, this.backdrop && h("div", { key: 'e02d7329e0556d2cee684004faeefcfedf764fcc', class: "backdrop" }), h("slot", { key: '4ed32166f6ace18694cb3f060a6a23c22abc5771' }), this.hasMenu &&
|
|
179
|
+
h("div", { key: 'ee646a278ebeff78208618be2a601a3c0f62d651', class: "menu", part: "menu" }, h("mds-modal", { key: 'e29e93cd02bd159d4dee010648f8a919140fbb6a', class: "modal", opened: this.isOpened, onMdsModalClose: this.close, position: "right" }, h("slot", { key: '2910bffcf16ace95aead03ac16a358599f3f5b06', name: "menu" })))));
|
|
180
180
|
}
|
|
181
181
|
get host() { return getElement(this); }
|
|
182
182
|
static get watchers() { return {
|
|
@@ -195,7 +195,7 @@ const MdsHorizontalScroll = class {
|
|
|
195
195
|
this.contents.removeEventListener('scroll', this.translateNavigationDot);
|
|
196
196
|
}
|
|
197
197
|
render() {
|
|
198
|
-
return (h(Host, { key: '
|
|
198
|
+
return (h(Host, { key: 'eb238b7afa371c9588db89fc1a721dbefef6d52e' }, h("div", { key: '70bc5033b4f8b36b2bbde1b1a2aac2f3d2db99de', class: "contents", part: "content" }, h("div", { key: 'a13f42f412af0d5c5a0dbfc579cd09b44407d591', class: "spacer" }), h("slot", { key: '8193210041eee84c0486bed982733e50d7c6216f', onSlotchange: this.updateElements }), h("div", { key: '374bf2c6b6862b25c1ccad086eaa6d0ee88c2f8f', class: "spacer" })), h("div", { key: '73c9253ac43b706ea7e5793755b431739a82c4f7', class: "dot-navigation" }, h("div", { key: '604b8d2bddb159d35cd69c6cadd33fa879cf1132', class: "dot" })), this.controls && this.controls !== 'none' && h("mds-button", { key: '75491ac6071cebaa6452e82ddbd7bdd6e9383bd1', onClick: this.moveBack, size: "lg", class: clsx('navigation navigation--back', !this.showBack && 'navigation--disabled'), icon: miBaselineArrowBack }), this.controls && this.controls !== 'none' && h("mds-button", { key: '99ce389ee2f28dbeafbc740639f9b9f67f3307e5', onClick: this.moveForward, size: "lg", class: clsx('navigation navigation--forward', !this.showForward && 'navigation--disabled'), icon: miBaselineArrowForward })));
|
|
199
199
|
}
|
|
200
200
|
get host() { return getElement(this); }
|
|
201
201
|
static get watchers() { return {
|
package/dist/esm/mds-hr.entry.js
CHANGED
|
@@ -33,13 +33,12 @@ const localeIt = {
|
|
|
33
33
|
to: to
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
const mdsInputDateRangeCss = ":host{--mds-input-date-range-background:rgb(var(--tone-neutral));--mds-input-date-range-fields-firefox-justify-content:start;--mds-input-date-range-fields-gap:0 0.5rem;--mds-input-date-range-icon-color:var(--mds-input-date-range-variant-color);--mds-input-date-range-ring:0 0 0 1px rgb(var(--mds-input-date-range-variant-color) / 0.1);--mds-input-date-range-shadow:0 1px 3px 0 rgb(var(--mds-input-date-range-variant-color) / 0.1), 0 1px 2px 0 rgb(var(--mds-input-date-range-variant-color) / 0.06);--mds-input-date-range-variant-color:0 0 0;min-height:1.5rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;gap:0.5rem;color:rgb(var(--tone-neutral-02));container-type:inline-size;cursor:text;display:-ms-flexbox;display:flex;overflow:visible;position:relative}.date-preselection{display:grid;gap:0.5rem}.inputs{font-family:'Roboto Mono', 'Courier New', monospace;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0rem;border-radius:0.5rem;padding-left:1rem;padding-right:3rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-input-date-range-background);border:0;-webkit-box-shadow:var(--mds-input-date-range-ring), var(--mds-input-date-range-shadow);box-shadow:var(--mds-input-date-range-ring), var(--mds-input-date-range-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--mds-input-date-range-fields-gap);min-height:3rem;overflow:hidden;text-overflow:ellipsis;-webkit-transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform, -webkit-box-shadow, -webkit-transform;width:100%}.input-element{-ms-flex-align:baseline;align-items:baseline;display:-ms-inline-flexbox;display:inline-flex}:host(:focus-within) .inputs{outline:2px solid transparent;outline-offset:2px;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);--mds-input-date-range-ring:0 0 0 3px rgb(var(--mds-input-date-range-variant-color) / 1);--mds-input-date-range-shadow:0 4px 6px 3px rgb(var(--mds-input-date-range-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-date-range-variant-color) / 0.06)}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}:host() ::slotted(mds-input-date){color:inherit}.date-label{margin-left:0.125rem;margin-right:0.125rem;min-width:-moz-min-content;min-width:-webkit-min-content;min-width:min-content;white-space:nowrap}.date-label:first-child{margin-left:0}mds-calendar{min-width:-moz-max-content;min-width:-webkit-max-content;min-width:max-content}.action-open-calendar{--mds-button-color:rgb(var(--mds-input-date-range-icon-color));aspect-ratio:1;bottom:0;position:absolute;right:0;top:0}mds-dropdown{padding:0}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}:host-context(.pref-animation-reduce) .input{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system) .input{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-dark) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-system) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}}:host-context(.pref-contrast-more){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}}@supports (-moz-appearance: none){.action-open-calendar{display:none}.inputs{padding-right:1rem;-ms-flex-pack:var(--mds-input-date-range-fields-firefox-justify-content);justify-content:var(--mds-input-date-range-fields-firefox-justify-content)}}:host{--mds-input-date-range-icon-color:var(--variant-primary-03);--mds-input-date-range-variant-color:0 0 0}:host(:focus-within){--mds-input-date-range-variant-color:var(--variant-primary-04)}:host([variant=\"info\"]){--mds-input-date-range-icon-color:var(--status-info-05);--mds-input-date-range-variant-color:0 0 0}:host([variant=\"info\"]:focus-within){--mds-input-date-range-icon-color:var(--status-info-04);--mds-input-date-range-variant-color:var(--status-info-05)}:host([variant=\"success\"]){--mds-input-date-range-icon-color:var(--status-success-05);--mds-input-date-range-variant-color:0 0 0}:host([variant=\"success\"]:focus-within){--mds-input-date-range-icon-color:var(--status-success-04);--mds-input-date-range-variant-color:var(--status-success-05)}:host([variant=\"warning\"]){--mds-input-date-range-icon-color:var(--status-warning-05);--mds-input-date-range-variant-color:0 0 0}:host([variant=\"warning\"]:focus-within){--mds-input-date-range-icon-color:var(--status-warning-04);--mds-input-date-range-variant-color:var(--status-warning-05)}:host([variant=\"error\"]){--mds-input-date-range-icon-color:var(--status-error-05);--mds-input-date-range-variant-color:0 0 0}:host([variant=\"error\"]:focus-within){--mds-input-date-range-icon-color:var(--status-error-04);--mds-input-date-range-variant-color:var(--status-error-05)}";
|
|
36
|
+
const mdsInputDateRangeCss = ":host{--mds-input-date-range-background:rgb(var(--tone-neutral));--mds-input-date-range-calendar-width:22rem;--mds-input-date-range-fields-firefox-justify-content:start;--mds-input-date-range-fields-gap:0 0.5rem;--mds-input-date-range-icon-color:var(--mds-input-date-range-variant-color);--mds-input-date-range-ring:0 0 0 1px rgb(var(--mds-input-date-range-variant-color) / 0.1);--mds-input-date-range-shadow:0 1px 3px 0 rgb(var(--mds-input-date-range-variant-color) / 0.1), 0 1px 2px 0 rgb(var(--mds-input-date-range-variant-color) / 0.06);--mds-input-date-range-variant-color:0 0 0;min-height:1.5rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;gap:0.5rem;color:rgb(var(--tone-neutral-02));container-type:inline-size;cursor:text;display:-ms-flexbox;display:flex;overflow:visible;position:relative}.date-preselection{display:grid;gap:0.5rem}.inputs{font-family:'Roboto Mono', 'Courier New', monospace;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0rem;border-radius:0.5rem;padding-left:1rem;padding-right:3rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-input-date-range-background);border:0;-webkit-box-shadow:var(--mds-input-date-range-ring), var(--mds-input-date-range-shadow);box-shadow:var(--mds-input-date-range-ring), var(--mds-input-date-range-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--mds-input-date-range-fields-gap);min-height:3rem;overflow:hidden;text-overflow:ellipsis;-webkit-transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform, -webkit-box-shadow, -webkit-transform;width:100%}.input-element{-ms-flex-align:baseline;align-items:baseline;display:-ms-inline-flexbox;display:inline-flex}:host(:focus-within) .inputs{outline:2px solid transparent;outline-offset:2px;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);--mds-input-date-range-ring:0 0 0 3px rgb(var(--mds-input-date-range-variant-color) / 1);--mds-input-date-range-shadow:0 4px 6px 3px rgb(var(--mds-input-date-range-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-date-range-variant-color) / 0.06)}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}:host() ::slotted(mds-input-date){color:inherit}.date-label{margin-left:0.125rem;margin-right:0.125rem;min-width:-moz-min-content;min-width:-webkit-min-content;min-width:min-content;white-space:nowrap}.date-label:first-child{margin-left:0}.calendars{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;gap:--spacing(200);min-width:-moz-max-content;min-width:-webkit-max-content;min-width:max-content}.calendar-preselection-panel{background-color:rgb(var(--tone-neutral-09));border-radius:0.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:grid;-ms-flex-line-pack:start;align-content:start;min-inline-size:-moz-max-content;min-inline-size:-webkit-max-content;min-inline-size:max-content;padding:1rem}.calendar-single{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;gap:--spacing(200);min-width:-moz-max-content;min-width:-webkit-max-content;min-width:max-content}.calendar-single mds-calendar,.calendars mds-calendar{-ms-flex:0 0 var(--mds-input-date-range-calendar-width);flex:0 0 var(--mds-input-date-range-calendar-width);inline-size:var(--mds-input-date-range-calendar-width);max-inline-size:var(--mds-input-date-range-calendar-width);min-inline-size:var(--mds-input-date-range-calendar-width)}.action-open-calendar{--mds-button-color:rgb(var(--mds-input-date-range-icon-color));aspect-ratio:1;bottom:0;position:absolute;right:0;top:0}mds-dropdown{padding:0}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}:host-context(.pref-animation-reduce) .input{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system) .input{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-dark) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-system) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}}:host-context(.pref-contrast-more){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}}@supports (-moz-appearance: none){.action-open-calendar{display:none}.inputs{padding-right:1rem;-ms-flex-pack:var(--mds-input-date-range-fields-firefox-justify-content);justify-content:var(--mds-input-date-range-fields-firefox-justify-content)}}:host{--mds-input-date-range-icon-color:var(--variant-primary-03);--mds-input-date-range-variant-color:0 0 0}:host(:focus-within){--mds-input-date-range-variant-color:var(--variant-primary-04)}:host([variant=\"info\"]){--mds-input-date-range-icon-color:var(--status-info-05);--mds-input-date-range-variant-color:0 0 0}:host([variant=\"info\"]:focus-within){--mds-input-date-range-icon-color:var(--status-info-04);--mds-input-date-range-variant-color:var(--status-info-05)}:host([variant=\"success\"]){--mds-input-date-range-icon-color:var(--status-success-05);--mds-input-date-range-variant-color:0 0 0}:host([variant=\"success\"]:focus-within){--mds-input-date-range-icon-color:var(--status-success-04);--mds-input-date-range-variant-color:var(--status-success-05)}:host([variant=\"warning\"]){--mds-input-date-range-icon-color:var(--status-warning-05);--mds-input-date-range-variant-color:0 0 0}:host([variant=\"warning\"]:focus-within){--mds-input-date-range-icon-color:var(--status-warning-04);--mds-input-date-range-variant-color:var(--status-warning-05)}:host([variant=\"error\"]){--mds-input-date-range-icon-color:var(--status-error-05);--mds-input-date-range-variant-color:0 0 0}:host([variant=\"error\"]:focus-within){--mds-input-date-range-icon-color:var(--status-error-04);--mds-input-date-range-variant-color:var(--status-error-05)}";
|
|
37
37
|
const MdsInputDateRangeStyle0 = mdsInputDateRangeCss;
|
|
38
38
|
|
|
39
39
|
const MdsInputDateRange = class {
|
|
40
40
|
constructor(hostRef) {
|
|
41
41
|
registerInstance(this, hostRef);
|
|
42
|
-
this.dateRangeSelected = createEvent(this, "mdsInputDateRangeSelect", 7);
|
|
43
42
|
this.valueChanged = createEvent(this, "mdsInputDateRangeValueChange", 7);
|
|
44
43
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
45
44
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
@@ -51,6 +50,7 @@ const MdsInputDateRange = class {
|
|
|
51
50
|
this.calendarKey = 0;
|
|
52
51
|
this.internalStartDate = '';
|
|
53
52
|
this.internalEndDate = '';
|
|
53
|
+
this.visibleCalendarDate = '';
|
|
54
54
|
this.hasPreselection = false;
|
|
55
55
|
this.t = new Locale({
|
|
56
56
|
el: localeEl,
|
|
@@ -83,10 +83,16 @@ const MdsInputDateRange = class {
|
|
|
83
83
|
* @description Default is 500
|
|
84
84
|
*/
|
|
85
85
|
this.delay = 500;
|
|
86
|
+
/**
|
|
87
|
+
* Enables the linked dual-calendar range picker behavior.
|
|
88
|
+
*/
|
|
89
|
+
this.dualCalendar = false;
|
|
86
90
|
this.lastEmittedStartDate = null;
|
|
87
91
|
this.lastEmittedEndDate = null;
|
|
88
92
|
this.initialStartDate = '';
|
|
89
93
|
this.initialEndDate = '';
|
|
94
|
+
this.hoveredCalendarDate = null;
|
|
95
|
+
this.syncingInputSlots = new Set();
|
|
90
96
|
this.handleFocusOut = (event) => {
|
|
91
97
|
if (!this.host.contains(event.relatedTarget)) {
|
|
92
98
|
const startValid = DateTime_1.fromISO(this.internalStartDate).isValid;
|
|
@@ -94,20 +100,8 @@ const MdsInputDateRange = class {
|
|
|
94
100
|
if (startValid && endValid) {
|
|
95
101
|
this.validateDateRange();
|
|
96
102
|
this.syncFormValue();
|
|
97
|
-
this.dateRangeSelected.emit({
|
|
98
|
-
startDate: this.internalStartDate,
|
|
99
|
-
endDate: this.internalEndDate,
|
|
100
|
-
});
|
|
101
103
|
this.checkPreselections();
|
|
102
|
-
|
|
103
|
-
if (this.internalStartDate !== this.lastEmittedStartDate ||
|
|
104
|
-
this.internalEndDate !== this.lastEmittedEndDate) {
|
|
105
|
-
this.valueChanged.emit({
|
|
106
|
-
startDate: this.internalStartDate,
|
|
107
|
-
endDate: this.internalEndDate,
|
|
108
|
-
});
|
|
109
|
-
this.lastEmittedStartDate = this.internalStartDate;
|
|
110
|
-
this.lastEmittedEndDate = this.internalEndDate;
|
|
104
|
+
this.emitValueChanged();
|
|
111
105
|
}
|
|
112
106
|
}
|
|
113
107
|
};
|
|
@@ -130,10 +124,152 @@ const MdsInputDateRange = class {
|
|
|
130
124
|
ev.stopPropagation();
|
|
131
125
|
this.focusInput(this.host.querySelector('mds-input-date[slot="end"]'));
|
|
132
126
|
};
|
|
127
|
+
this.handleCalendarHover = (ev) => {
|
|
128
|
+
if (!this.internalStartDate || this.internalEndDate) {
|
|
129
|
+
this.clearHoverPreview();
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
const nextHoverDate = ev.detail.hoverDate;
|
|
133
|
+
if (this.hoveredCalendarDate === nextHoverDate)
|
|
134
|
+
return;
|
|
135
|
+
this.hoveredCalendarDate = nextHoverDate;
|
|
136
|
+
this.syncCalendarsHoverAttributes();
|
|
137
|
+
};
|
|
138
|
+
this.handleCalendarChange = (ev) => {
|
|
139
|
+
this.clearHoverPreview();
|
|
140
|
+
this.internalStartDate = ev.detail.startDate;
|
|
141
|
+
this.updateInputValue('start', this.internalStartDate);
|
|
142
|
+
if (ev.detail.endDate) {
|
|
143
|
+
this.internalEndDate = ev.detail.endDate;
|
|
144
|
+
this.updateInputValue('end', this.internalEndDate);
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
this.internalEndDate = '';
|
|
148
|
+
this.updateInputValue('end', this.internalEndDate);
|
|
149
|
+
}
|
|
150
|
+
this.syncFormValue();
|
|
151
|
+
this.syncCalendarsSelectionAttributes();
|
|
152
|
+
if (this.internalStartDate && this.internalEndDate) {
|
|
153
|
+
this.emitValueChanged();
|
|
154
|
+
this.closeDropdownAfterSelection();
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
this.handleCalendarNavigate = (ev) => {
|
|
158
|
+
if (!this.dualCalendar)
|
|
159
|
+
return;
|
|
160
|
+
const calendars = this.getCalendars();
|
|
161
|
+
const calendarIndex = calendars.indexOf(ev.target);
|
|
162
|
+
const currentDate = DateTime_1.fromISO(ev.detail.currentDate);
|
|
163
|
+
if (!currentDate.isValid)
|
|
164
|
+
return;
|
|
165
|
+
this.visibleCalendarDate = currentDate
|
|
166
|
+
.minus({ months: calendarIndex === 1 ? 1 : 0 })
|
|
167
|
+
.startOf('month')
|
|
168
|
+
.toISODate();
|
|
169
|
+
};
|
|
133
170
|
}
|
|
134
171
|
async updateLang() {
|
|
135
172
|
this.language = this.t.lang(this.host);
|
|
136
173
|
}
|
|
174
|
+
getCalendars() {
|
|
175
|
+
var _a, _b;
|
|
176
|
+
return Array.from((_b = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('mds-calendar')) !== null && _b !== void 0 ? _b : []);
|
|
177
|
+
}
|
|
178
|
+
resolveVisibleCalendarDate(startDate, endDate) {
|
|
179
|
+
var _a;
|
|
180
|
+
const initialDates = [startDate, endDate]
|
|
181
|
+
.map(value => DateTime_1.fromISO(value !== null && value !== void 0 ? value : ''))
|
|
182
|
+
.filter(date => date.isValid);
|
|
183
|
+
const initialVisibleDate = (_a = initialDates[0]) !== null && _a !== void 0 ? _a : DateTime_1.now();
|
|
184
|
+
return initialVisibleDate.startOf('month').toISODate();
|
|
185
|
+
}
|
|
186
|
+
getCalendarViewDate(monthOffset = 0) {
|
|
187
|
+
const visibleCalendarDate = DateTime_1.fromISO(this.visibleCalendarDate);
|
|
188
|
+
const startDate = DateTime_1.fromISO(this.internalStartDate);
|
|
189
|
+
let baseDate = DateTime_1.now();
|
|
190
|
+
if (visibleCalendarDate.isValid) {
|
|
191
|
+
baseDate = visibleCalendarDate;
|
|
192
|
+
}
|
|
193
|
+
else if (startDate.isValid) {
|
|
194
|
+
baseDate = startDate;
|
|
195
|
+
}
|
|
196
|
+
return baseDate.startOf('month').plus({ months: monthOffset }).toISODate();
|
|
197
|
+
}
|
|
198
|
+
setVisibleCalendarDate(date) {
|
|
199
|
+
const visibleCalendarDate = DateTime_1.fromISO(date);
|
|
200
|
+
if (visibleCalendarDate.isValid) {
|
|
201
|
+
this.visibleCalendarDate = visibleCalendarDate.startOf('month').toISODate();
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
closeDropdownAfterSelection() {
|
|
205
|
+
if (this.delay === 0)
|
|
206
|
+
return;
|
|
207
|
+
const { dropdownRef } = this;
|
|
208
|
+
if (dropdownRef) {
|
|
209
|
+
setTimeout(() => {
|
|
210
|
+
dropdownRef.visible = false;
|
|
211
|
+
}, this.delay);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
syncCalendarsSelectionAttributes() {
|
|
215
|
+
var _a;
|
|
216
|
+
(_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('mds-calendar').forEach(calendar => {
|
|
217
|
+
if (this.internalStartDate) {
|
|
218
|
+
calendar.setAttribute('start-date', this.internalStartDate);
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
calendar.removeAttribute('start-date');
|
|
222
|
+
}
|
|
223
|
+
if (this.internalEndDate) {
|
|
224
|
+
calendar.setAttribute('end-date', this.internalEndDate);
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
calendar.removeAttribute('end-date');
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
this.syncCalendarsHoverAttributes();
|
|
231
|
+
}
|
|
232
|
+
syncCalendarsHoverAttributes() {
|
|
233
|
+
var _a;
|
|
234
|
+
(_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('mds-calendar').forEach(calendar => {
|
|
235
|
+
if (this.hoveredCalendarDate) {
|
|
236
|
+
calendar.setAttribute('hover-date', this.hoveredCalendarDate);
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
calendar.removeAttribute('hover-date');
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
clearHoverPreview() {
|
|
244
|
+
if (this.hoveredCalendarDate === null)
|
|
245
|
+
return;
|
|
246
|
+
this.hoveredCalendarDate = null;
|
|
247
|
+
this.syncCalendarsHoverAttributes();
|
|
248
|
+
}
|
|
249
|
+
getEmittableDateRangeDetail() {
|
|
250
|
+
const startDate = DateTime_1.fromISO(this.internalStartDate);
|
|
251
|
+
const endDate = DateTime_1.fromISO(this.internalEndDate);
|
|
252
|
+
if (!startDate.isValid || !endDate.isValid) {
|
|
253
|
+
return null;
|
|
254
|
+
}
|
|
255
|
+
return {
|
|
256
|
+
startDate: this.internalStartDate,
|
|
257
|
+
endDate: this.internalEndDate,
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
emitValueChanged() {
|
|
261
|
+
const detail = this.getEmittableDateRangeDetail();
|
|
262
|
+
if (!detail)
|
|
263
|
+
return false;
|
|
264
|
+
if (detail.startDate === this.lastEmittedStartDate &&
|
|
265
|
+
detail.endDate === this.lastEmittedEndDate) {
|
|
266
|
+
return false;
|
|
267
|
+
}
|
|
268
|
+
this.valueChanged.emit(detail);
|
|
269
|
+
this.lastEmittedStartDate = detail.startDate;
|
|
270
|
+
this.lastEmittedEndDate = detail.endDate;
|
|
271
|
+
return true;
|
|
272
|
+
}
|
|
137
273
|
handleStartDateChange(newValue) {
|
|
138
274
|
this.syncExternalDate('start', newValue);
|
|
139
275
|
}
|
|
@@ -146,6 +282,7 @@ const MdsInputDateRange = class {
|
|
|
146
282
|
this.internalEndDate = this.endDate;
|
|
147
283
|
this.initialStartDate = this.startDate;
|
|
148
284
|
this.initialEndDate = this.endDate;
|
|
285
|
+
this.visibleCalendarDate = this.resolveVisibleCalendarDate(this.internalStartDate, this.internalEndDate);
|
|
149
286
|
// Se max è precedente a min, imposto max uguale a min
|
|
150
287
|
if (this.min && this.max) {
|
|
151
288
|
const minDate = DateTime_1.fromISO(this.min);
|
|
@@ -157,10 +294,11 @@ const MdsInputDateRange = class {
|
|
|
157
294
|
this.syncFormValue();
|
|
158
295
|
}
|
|
159
296
|
disconnectedCallback() {
|
|
297
|
+
var _a;
|
|
160
298
|
this.host.removeEventListener('focusout', this.handleFocusOut);
|
|
299
|
+
(_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.removeEventListener('mdsCalendarHover', this.handleCalendarHover);
|
|
161
300
|
}
|
|
162
301
|
async preselect(event) {
|
|
163
|
-
var _a, _b;
|
|
164
302
|
if (!this.togglePreselection) {
|
|
165
303
|
this.togglePreselection = Array.from(this.host.querySelectorAll('mds-input-date-range-preselection'));
|
|
166
304
|
}
|
|
@@ -168,9 +306,11 @@ const MdsInputDateRange = class {
|
|
|
168
306
|
element.selected = false;
|
|
169
307
|
});
|
|
170
308
|
event.caller.selected = true;
|
|
309
|
+
this.clearHoverPreview();
|
|
171
310
|
const startDate = DateTime_1.fromISO(event.start);
|
|
172
311
|
if (startDate.isValid) {
|
|
173
312
|
this.internalStartDate = event.start;
|
|
313
|
+
this.setVisibleCalendarDate(this.internalStartDate);
|
|
174
314
|
this.updateInputValue('start', this.internalStartDate);
|
|
175
315
|
}
|
|
176
316
|
if (event.end !== undefined) {
|
|
@@ -184,31 +324,28 @@ const MdsInputDateRange = class {
|
|
|
184
324
|
}
|
|
185
325
|
this.updateInputValue('end', this.internalEndDate);
|
|
186
326
|
this.syncFormValue();
|
|
187
|
-
const
|
|
188
|
-
if (
|
|
189
|
-
await calendar.updateCurrentDate(this.
|
|
190
|
-
|
|
191
|
-
return;
|
|
192
|
-
const { dropdownRef } = this;
|
|
193
|
-
if (dropdownRef) {
|
|
194
|
-
setTimeout(() => {
|
|
195
|
-
dropdownRef.visible = false;
|
|
196
|
-
}, this.delay);
|
|
197
|
-
}
|
|
327
|
+
const calendars = this.getCalendars();
|
|
328
|
+
if (calendars.length) {
|
|
329
|
+
await Promise.all(calendars.map((calendar, index) => calendar.updateCurrentDate(this.getCalendarViewDate(index))));
|
|
330
|
+
this.closeDropdownAfterSelection();
|
|
198
331
|
}
|
|
199
|
-
this.
|
|
332
|
+
this.emitValueChanged();
|
|
200
333
|
return Promise.resolve();
|
|
201
334
|
}
|
|
202
335
|
componentDidLoad() {
|
|
336
|
+
var _a;
|
|
203
337
|
this.updateInputListeners();
|
|
204
338
|
this.updateInputValue('start', this.internalStartDate);
|
|
205
339
|
this.updateInputValue('end', this.internalEndDate);
|
|
206
340
|
this.syncFormValue();
|
|
207
341
|
this.host.addEventListener('focusout', this.handleFocusOut);
|
|
342
|
+
(_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.addEventListener('mdsCalendarHover', this.handleCalendarHover);
|
|
208
343
|
}
|
|
209
344
|
formResetCallback() {
|
|
345
|
+
this.clearHoverPreview();
|
|
210
346
|
this.internalStartDate = this.initialStartDate;
|
|
211
347
|
this.internalEndDate = this.initialEndDate;
|
|
348
|
+
this.visibleCalendarDate = this.resolveVisibleCalendarDate(this.initialStartDate, this.initialEndDate);
|
|
212
349
|
this.updateInputValue('start', this.internalStartDate);
|
|
213
350
|
this.updateInputValue('end', this.internalEndDate);
|
|
214
351
|
this.checkPreselections();
|
|
@@ -216,10 +353,12 @@ const MdsInputDateRange = class {
|
|
|
216
353
|
}
|
|
217
354
|
syncExternalDate(slotName, newValue) {
|
|
218
355
|
const normalizedValue = newValue !== null && newValue !== void 0 ? newValue : '';
|
|
356
|
+
this.clearHoverPreview();
|
|
219
357
|
if (slotName === 'start') {
|
|
220
358
|
if (normalizedValue === this.internalStartDate)
|
|
221
359
|
return;
|
|
222
360
|
this.internalStartDate = normalizedValue;
|
|
361
|
+
this.setVisibleCalendarDate(this.internalStartDate);
|
|
223
362
|
}
|
|
224
363
|
else {
|
|
225
364
|
if (normalizedValue === this.internalEndDate)
|
|
@@ -237,7 +376,12 @@ const MdsInputDateRange = class {
|
|
|
237
376
|
const slot = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`slot[name="${slotName}"]`);
|
|
238
377
|
const input = slot === null || slot === void 0 ? void 0 : slot.assignedElements()[0];
|
|
239
378
|
if (input) {
|
|
240
|
-
|
|
379
|
+
this.syncingInputSlots.add(slotName);
|
|
380
|
+
input.setValue(newValue).finally(() => {
|
|
381
|
+
requestAnimationFrame(() => {
|
|
382
|
+
this.syncingInputSlots.delete(slotName);
|
|
383
|
+
});
|
|
384
|
+
});
|
|
241
385
|
}
|
|
242
386
|
}
|
|
243
387
|
updateInputListeners() {
|
|
@@ -256,9 +400,14 @@ const MdsInputDateRange = class {
|
|
|
256
400
|
}
|
|
257
401
|
createFocusoutListener(slotName) {
|
|
258
402
|
return (ev) => {
|
|
403
|
+
if (this.syncingInputSlots.has(slotName)) {
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
259
406
|
const event = ev;
|
|
407
|
+
this.clearHoverPreview();
|
|
260
408
|
if (slotName === 'start') {
|
|
261
409
|
this.internalStartDate = event.detail;
|
|
410
|
+
this.setVisibleCalendarDate(this.internalStartDate);
|
|
262
411
|
}
|
|
263
412
|
else {
|
|
264
413
|
this.internalEndDate = event.detail;
|
|
@@ -295,34 +444,27 @@ const MdsInputDateRange = class {
|
|
|
295
444
|
});
|
|
296
445
|
}
|
|
297
446
|
}
|
|
447
|
+
renderCalendarPreselectionPanel() {
|
|
448
|
+
if (!this.hasPreselection)
|
|
449
|
+
return null;
|
|
450
|
+
return (h("div", { class: "calendar-preselection-panel" }, h("div", { class: clsx('date-preselection', this.hasPreselection && 'date-preselection--has-preselection') }, h("slot", { name: "calendar-preselection" }))));
|
|
451
|
+
}
|
|
452
|
+
renderSingleCalendar() {
|
|
453
|
+
return (h("div", { class: "calendar-single" }, this.renderCalendarPreselectionPanel(), h("mds-calendar", Object.assign({ lang: this.language, key: this.calendarKey, rangePicker: true, onMdsCalendarChange: this.handleCalendarChange, onMdsCalendarPreselect: () => {
|
|
454
|
+
this.checkPreselections();
|
|
455
|
+
}, startDate: this.internalStartDate, endDate: this.internalEndDate }, (this.min ? { min: this.min } : {}), (this.max ? { max: this.max } : {})))));
|
|
456
|
+
}
|
|
457
|
+
renderDualCalendars() {
|
|
458
|
+
return (h("div", { class: "calendars" }, this.renderCalendarPreselectionPanel(), h("mds-calendar", Object.assign({ lang: this.language, key: `${this.calendarKey}-start`, rangePicker: true, showNextButton: false, disableMonthYearSelection: true, viewDate: this.getCalendarViewDate(), onMdsCalendarNavigate: this.handleCalendarNavigate, onMdsCalendarChange: this.handleCalendarChange, onMdsCalendarPreselect: () => {
|
|
459
|
+
this.checkPreselections();
|
|
460
|
+
}, startDate: this.internalStartDate, endDate: this.internalEndDate }, (this.min ? { min: this.min } : {}), (this.max ? { max: this.max } : {}))), h("mds-calendar", Object.assign({ lang: this.language, key: `${this.calendarKey}-end`, rangePicker: true, showPreviousButton: false, disableMonthYearSelection: true, viewDate: this.getCalendarViewDate(1), onMdsCalendarNavigate: this.handleCalendarNavigate, onMdsCalendarChange: this.handleCalendarChange, onMdsCalendarPreselect: () => {
|
|
461
|
+
this.checkPreselections();
|
|
462
|
+
}, startDate: this.internalStartDate, endDate: this.internalEndDate }, (this.min ? { min: this.min } : {}), (this.max ? { max: this.max } : {})))));
|
|
463
|
+
}
|
|
298
464
|
render() {
|
|
299
|
-
return (h(Host, { key: '
|
|
465
|
+
return (h(Host, { key: '9f1d15ce17187fb4346d4a8248d9fef359235f54', onClick: this.focusDateInput }, h("div", { key: '419236ee8bead4665a0164957282bcd5e7659661', class: "inputs" }, h("div", { key: 'e25a78a35ab091ccf357ade3a27b646b94ec42a6', class: "input-element" }, h("mds-text", { key: '7d93c5d1ee1a8c690aeb18b88607f081c3785c1e', class: "date-label", typography: "detail", onClick: this.focusStartDateInput }, this.t.get('from')), h("div", { key: 'bb2b95cf1de464d9158df7aecb950af7927e7272', class: "input-wrapper" }, h("slot", { key: '57cf6f4832fe383e22e5210e8d8f1584ac0a0f34', name: "start" }))), h("div", { key: 'dd707a289ce5862549a1d98b3010861af2fe05ac', class: "input-element" }, h("mds-text", { key: '212ba05e753f6b5f04032fc9eadbee33a66abccc', class: "date-label", typography: "detail", onClick: this.focusEndDateInput }, this.t.get('to')), h("div", { key: '15cf868bb6808fd8f2bf4a8c13720e813c277d66', class: "input-wrapper" }, h("slot", { key: '788d2c3ee00fd81724f1b058971a1366f3db6172', name: "end" })))), h("div", { key: 'ca0c8be9804fdd2b7c4b7d17d234328182023f0b', class: "action-open-calendar-wrapper" }, h("mds-button", { key: '9b4beb75e39698d2877c129b346024d785d8ba98', class: "action-open-calendar", variant: "dark", tone: "quiet", icon: miBaselineCalendarToday, id: "calendar-dropdown", onClick: () => {
|
|
300
466
|
this.calendarKey += 1;
|
|
301
|
-
} }), h("mds-dropdown", { key: '
|
|
302
|
-
this.internalStartDate = ev.detail.startDate;
|
|
303
|
-
this.updateInputValue('start', this.internalStartDate);
|
|
304
|
-
if (ev.detail.endDate) {
|
|
305
|
-
this.internalEndDate = ev.detail.endDate;
|
|
306
|
-
this.updateInputValue('end', this.internalEndDate);
|
|
307
|
-
}
|
|
308
|
-
this.syncFormValue();
|
|
309
|
-
if (this.internalStartDate && this.internalEndDate) {
|
|
310
|
-
this.dateRangeSelected.emit({
|
|
311
|
-
startDate: this.internalStartDate,
|
|
312
|
-
endDate: this.internalEndDate,
|
|
313
|
-
});
|
|
314
|
-
if (this.delay === 0)
|
|
315
|
-
return;
|
|
316
|
-
const { dropdownRef } = this;
|
|
317
|
-
if (dropdownRef) {
|
|
318
|
-
setTimeout(() => {
|
|
319
|
-
dropdownRef.visible = false;
|
|
320
|
-
}, this.delay);
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}, onMdsCalendarPreselect: () => {
|
|
324
|
-
this.checkPreselections();
|
|
325
|
-
}, startDate: this.internalStartDate, endDate: this.internalEndDate }, (this.min ? { min: this.min } : {}), (this.max ? { max: this.max } : {})), h("div", { key: '5f94b5fef9bdca001020776e18c79875015452c7', slot: "preselection", class: clsx('date-preselection', this.hasPreselection && 'date-preselection--has-preselection') }, h("slot", { key: '58524f199d07343671ffc752be0ed74d21c3f021', name: "calendar-preselection" }))))));
|
|
467
|
+
} })), h("mds-dropdown", { key: '3274e94a6ae30fa2f060edeaa8f906972689af63', ref: el => (this.dropdownRef = el), target: "#calendar-dropdown", "auto-placement": false, placement: "bottom-end" }, this.dualCalendar ? this.renderDualCalendars() : this.renderSingleCalendar())));
|
|
326
468
|
}
|
|
327
469
|
syncFormValue() {
|
|
328
470
|
var _a, _b, _c, _d;
|