@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
|
@@ -8650,7 +8650,7 @@ luxon.SystemZone = SystemZone;
|
|
|
8650
8650
|
luxon.VERSION = VERSION;
|
|
8651
8651
|
luxon.Zone = Zone;
|
|
8652
8652
|
|
|
8653
|
-
const mdsCalendarCss = ":host{--mds-calendar-day-number-other-month-color:rgb(var(--tone-neutral-07));--mds-calendar-day-number-color:rgb(var(--tone-neutral-01));--mds-calendar-cell-gap:0.125rem;--mds-calendar-cell-other-month-visibility:visible;--mds-calendar-border-radius:0.5rem;--mds-calendar-background:rgb(var(--tone-neutral));--mds-calendar-padding:1rem;background-color:rgb(var(--tone-neutral-09));border-radius:var(--mds-calendar-border-radius);cursor:auto;display:-ms-inline-flexbox;display:inline-flex;max-width:380px;min-width:-moz-min-content;min-width:-webkit-min-content;min-width:min-content;overflow:hidden}.calendar-view{background-color:var(--mds-calendar-background);border-radius:inherit;display:grid;padding:var(--mds-calendar-padding)}.calendar-preselection{display:none;gap:0.125rem;grid-auto-rows:-webkit-min-content;grid-auto-rows:min-content;padding:var(--mds-calendar-padding)}.calendar-preselection--has-preselection{display:grid}nav{display:-ms-flexbox;display:flex;gap:0.5rem;-ms-flex-pack:justify;justify-content:space-between}.action{padding-left:0.5rem;padding-right:0.5rem;-ms-flex-pack:left;justify-content:left;min-width:-moz-min-content;min-width:-webkit-min-content;min-width:min-content}.action-back,.action-forward{-ms-flex-negative:0;flex-shrink:0}.select-month-or-year{background-color:rgb(var(--tone-neutral-09));border-radius:
|
|
8653
|
+
const mdsCalendarCss = ":host{--mds-calendar-day-number-other-month-color:rgb(var(--tone-neutral-07));--mds-calendar-day-number-color:rgb(var(--tone-neutral-01));--mds-calendar-cell-gap:0.125rem;--mds-calendar-cell-other-month-visibility:visible;--mds-calendar-border-radius:0.5rem;--mds-calendar-background:rgb(var(--tone-neutral));--mds-calendar-padding:1rem;--mds-calendar-select-month-or-year-height:2.25rem;--mds-calendar-select-month-or-year-width:14rem;background-color:rgb(var(--tone-neutral-09));border-radius:var(--mds-calendar-border-radius);cursor:auto;display:-ms-inline-flexbox;display:inline-flex;max-width:380px;min-width:-moz-min-content;min-width:-webkit-min-content;min-width:min-content;overflow:hidden}.calendar-view{background-color:var(--mds-calendar-background);border-radius:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;display:grid;-ms-flex:1 1 auto;flex:1 1 auto;padding:var(--mds-calendar-padding)}.calendar-preselection{display:none;gap:0.125rem;grid-auto-rows:-webkit-min-content;grid-auto-rows:min-content;padding:var(--mds-calendar-padding)}.calendar-preselection--has-preselection{display:grid}nav{display:-ms-flexbox;display:flex;gap:0.5rem;-ms-flex-pack:justify;justify-content:space-between;min-width:0}.action{padding-left:0.5rem;padding-right:0.5rem;-ms-flex-pack:left;justify-content:left;min-width:-moz-min-content;min-width:-webkit-min-content;min-width:min-content}.action-back,.action-forward{-ms-flex-negative:0;flex-shrink:0}.select-month-or-year{-ms-flex-align:stretch;align-items:stretch;background-color:rgb(var(--tone-neutral-09));block-size:var(--mds-calendar-select-month-or-year-height);border-radius:var(--mds-calendar-border-radius);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:0 0 var(--mds-calendar-select-month-or-year-width);flex:0 0 var(--mds-calendar-select-month-or-year-width);height:var(--mds-calendar-select-month-or-year-height);-ms-flex-pack:start;justify-content:flex-start;inline-size:var(--mds-calendar-select-month-or-year-width);max-block-size:var(--mds-calendar-select-month-or-year-height);max-height:var(--mds-calendar-select-month-or-year-height);max-inline-size:var(--mds-calendar-select-month-or-year-width);min-block-size:var(--mds-calendar-select-month-or-year-height);min-height:var(--mds-calendar-select-month-or-year-height);min-inline-size:var(--mds-calendar-select-month-or-year-width);overflow:hidden}.action-month,.action-year{--mds-button-radius:0;-ms-flex-item-align:stretch;align-self:stretch;block-size:100%;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:default;height:100%;max-block-size:100%;max-height:100%;min-block-size:0;min-height:0;padding-left:0.5rem;padding-right:0.5rem}.action-month{-ms-flex:1 1 auto;flex:1 1 auto;min-width:0}.action-year{-ms-flex:0 0 4.5rem;flex:0 0 4.5rem}.action-month::part(label),.action-year::part(label){overflow:visible;text-overflow:clip;white-space:nowrap}.week-day-name{-ms-flex-align:center;align-items:center;aspect-ratio:1;min-height:auto;padding:0}.month-view{display:grid}.month-view__days-names,.month-view__cells{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(7, minmax(1px, 100%));min-width:0}.month-view{display:grid}.month-view__month-names,.month-view__years{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(3, minmax(1px, 100%));min-width:0}";
|
|
8654
8654
|
const MdsCalendarStyle0 = mdsCalendarCss;
|
|
8655
8655
|
|
|
8656
8656
|
const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends HTMLElement {
|
|
@@ -8659,6 +8659,8 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
8659
8659
|
this.__registerHost();
|
|
8660
8660
|
this.__attachShadow();
|
|
8661
8661
|
this.datesEmitter = createEvent(this, "mdsCalendarChange", 7);
|
|
8662
|
+
this.navigationEmitter = createEvent(this, "mdsCalendarNavigate", 7);
|
|
8663
|
+
this.hoverEmitter = createEvent(this, "mdsCalendarHover", 7);
|
|
8662
8664
|
this.checkPreselectionsEmitter = createEvent(this, "mdsCalendarPreselect", 7);
|
|
8663
8665
|
this.hasPreselection = false;
|
|
8664
8666
|
this.currentDate = DateTime_1.now();
|
|
@@ -8676,6 +8678,34 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
8676
8678
|
el: {},
|
|
8677
8679
|
});
|
|
8678
8680
|
this.rangePicker = true;
|
|
8681
|
+
/**
|
|
8682
|
+
* Shows the previous navigation button in the calendar header.
|
|
8683
|
+
*/
|
|
8684
|
+
this.showPreviousButton = true;
|
|
8685
|
+
/**
|
|
8686
|
+
* Shows the next navigation button in the calendar header.
|
|
8687
|
+
*/
|
|
8688
|
+
this.showNextButton = true;
|
|
8689
|
+
/**
|
|
8690
|
+
* Disables switching to month or year selection views from the calendar header.
|
|
8691
|
+
*/
|
|
8692
|
+
this.disableMonthYearSelection = false;
|
|
8693
|
+
/**
|
|
8694
|
+
* Shows the preselection area above the calendar view.
|
|
8695
|
+
*/
|
|
8696
|
+
this.showPreselection = false;
|
|
8697
|
+
/**
|
|
8698
|
+
* Specifies the date used to determine the visible month without changing the selection.
|
|
8699
|
+
* @description It's in ISO format (YYYY-MM-DD).
|
|
8700
|
+
* @example '2023-10-01'
|
|
8701
|
+
*/
|
|
8702
|
+
this.viewDate = null;
|
|
8703
|
+
/**
|
|
8704
|
+
* Specifies the date used to preview the range selection across multiple visible calendars.
|
|
8705
|
+
* @description It's in ISO format (YYYY-MM-DD).
|
|
8706
|
+
* @example '2023-10-15'
|
|
8707
|
+
*/
|
|
8708
|
+
this.hoverDate = null;
|
|
8679
8709
|
/**
|
|
8680
8710
|
* Specifies the start date of the selection
|
|
8681
8711
|
* @description It's in ISO format (YYYY-MM-DD).
|
|
@@ -8704,6 +8734,47 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
8704
8734
|
this.internalEndDate = this.endDate;
|
|
8705
8735
|
this.currentMonth = '';
|
|
8706
8736
|
this.currentYear = '';
|
|
8737
|
+
this.handleMouseOver = (event) => {
|
|
8738
|
+
const target = event.target;
|
|
8739
|
+
if (!target.matches('mds-calendar-cell') ||
|
|
8740
|
+
!this.rangePicker ||
|
|
8741
|
+
!this.internalStartDate ||
|
|
8742
|
+
this.internalEndDate) {
|
|
8743
|
+
return;
|
|
8744
|
+
}
|
|
8745
|
+
const hoverDate = target.getAttribute('date');
|
|
8746
|
+
if (hoverDate) {
|
|
8747
|
+
this.hoverEmitter.emit({ hoverDate });
|
|
8748
|
+
}
|
|
8749
|
+
};
|
|
8750
|
+
this.handleMouseLeave = () => {
|
|
8751
|
+
if (!this.rangePicker || !this.internalStartDate || this.internalEndDate || !this.hoverDate) {
|
|
8752
|
+
return;
|
|
8753
|
+
}
|
|
8754
|
+
this.hoverEmitter.emit({ hoverDate: null });
|
|
8755
|
+
};
|
|
8756
|
+
this.handleMonthActionClick = (event) => {
|
|
8757
|
+
event.stopPropagation();
|
|
8758
|
+
if (this.disableMonthYearSelection) {
|
|
8759
|
+
event.preventDefault();
|
|
8760
|
+
return;
|
|
8761
|
+
}
|
|
8762
|
+
this.currentView = this.currentView === 'months' ? 'calendar' : 'months';
|
|
8763
|
+
requestAnimationFrame(() => {
|
|
8764
|
+
this.updateCalendar().then(() => this.setDates());
|
|
8765
|
+
});
|
|
8766
|
+
};
|
|
8767
|
+
this.handleYearActionClick = (event) => {
|
|
8768
|
+
event.stopPropagation();
|
|
8769
|
+
if (this.disableMonthYearSelection) {
|
|
8770
|
+
event.preventDefault();
|
|
8771
|
+
return;
|
|
8772
|
+
}
|
|
8773
|
+
this.currentView = this.currentView === 'years' ? 'calendar' : 'years';
|
|
8774
|
+
requestAnimationFrame(() => {
|
|
8775
|
+
this.updateCalendar().then(() => this.setDates());
|
|
8776
|
+
});
|
|
8777
|
+
};
|
|
8707
8778
|
}
|
|
8708
8779
|
async updateLang() {
|
|
8709
8780
|
this.language = this.t.lang(this.host);
|
|
@@ -8711,14 +8782,25 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
8711
8782
|
handleStartDate(newValue) {
|
|
8712
8783
|
if (newValue !== null && newValue !== '') {
|
|
8713
8784
|
this.internalStartDate = sanitizeISO8601Date(newValue === null || newValue === void 0 ? void 0 : newValue.toString());
|
|
8785
|
+
this.startDateTime = DateTime_1.fromISO(this.internalStartDate);
|
|
8786
|
+
this.startDateIdentifier = this.startDateTime.toISODate();
|
|
8714
8787
|
if (this.internalEndDate) {
|
|
8715
|
-
const startDateTime = DateTime_1.fromISO(this.internalStartDate);
|
|
8716
8788
|
const endDateTime = DateTime_1.fromISO(this.internalEndDate);
|
|
8717
|
-
if (startDateTime > endDateTime) {
|
|
8789
|
+
if (this.startDateTime > endDateTime) {
|
|
8718
8790
|
console.warn('startDate is after endDate, swapping values');
|
|
8719
8791
|
return;
|
|
8720
8792
|
}
|
|
8721
8793
|
}
|
|
8794
|
+
else if (this.rangePicker) {
|
|
8795
|
+
this.isFirstClick = false;
|
|
8796
|
+
}
|
|
8797
|
+
this.updateDates();
|
|
8798
|
+
}
|
|
8799
|
+
else if (newValue === null || newValue === '') {
|
|
8800
|
+
this.internalStartDate = null;
|
|
8801
|
+
this.startDateIdentifier = null;
|
|
8802
|
+
this.startDateTime = null;
|
|
8803
|
+
this.isFirstClick = true;
|
|
8722
8804
|
this.updateDates();
|
|
8723
8805
|
}
|
|
8724
8806
|
}
|
|
@@ -8729,21 +8811,48 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
8729
8811
|
}
|
|
8730
8812
|
else if (newValue !== null && newValue !== '') {
|
|
8731
8813
|
this.internalEndDate = sanitizeISO8601Date(newValue === null || newValue === void 0 ? void 0 : newValue.toString());
|
|
8814
|
+
this.endDateTime = DateTime_1.fromISO(this.internalEndDate);
|
|
8815
|
+
this.endDateIdentifier = this.endDateTime.toISODate();
|
|
8732
8816
|
if (this.internalStartDate) {
|
|
8733
8817
|
const startDateTime = DateTime_1.fromISO(this.internalStartDate);
|
|
8734
|
-
|
|
8735
|
-
if (startDateTime > endDateTime) {
|
|
8818
|
+
if (startDateTime > this.endDateTime) {
|
|
8736
8819
|
console.warn('startDate is after endDate, swapping values');
|
|
8737
8820
|
return;
|
|
8738
8821
|
}
|
|
8739
8822
|
}
|
|
8740
8823
|
this.updateDates();
|
|
8741
8824
|
}
|
|
8825
|
+
else if (newValue === null || newValue === '') {
|
|
8826
|
+
this.internalEndDate = null;
|
|
8827
|
+
this.endDateIdentifier = null;
|
|
8828
|
+
this.endDateTime = null;
|
|
8829
|
+
this.updateDates();
|
|
8830
|
+
}
|
|
8831
|
+
}
|
|
8832
|
+
handleViewDate(newValue) {
|
|
8833
|
+
if (newValue !== null && newValue !== '') {
|
|
8834
|
+
const viewDate = DateTime_1.fromISO(newValue.toString());
|
|
8835
|
+
if (viewDate.isValid) {
|
|
8836
|
+
this.currentDate = viewDate;
|
|
8837
|
+
this.updateCalendar().then(() => {
|
|
8838
|
+
requestAnimationFrame(() => this.setDates());
|
|
8839
|
+
});
|
|
8840
|
+
}
|
|
8841
|
+
}
|
|
8842
|
+
}
|
|
8843
|
+
handleHoverDate() {
|
|
8844
|
+
requestAnimationFrame(() => this.setDates());
|
|
8742
8845
|
}
|
|
8743
8846
|
componentWillLoad() {
|
|
8744
8847
|
var _a, _b;
|
|
8745
8848
|
this.language = this.t.lang(this.host);
|
|
8746
|
-
if (this.
|
|
8849
|
+
if (this.viewDate) {
|
|
8850
|
+
const viewDate = DateTime_1.fromISO(this.viewDate.toString());
|
|
8851
|
+
if (viewDate.isValid) {
|
|
8852
|
+
this.currentDate = viewDate;
|
|
8853
|
+
}
|
|
8854
|
+
}
|
|
8855
|
+
else if (this.internalStartDate) {
|
|
8747
8856
|
this.internalStartDate = sanitizeISO8601Date((_a = this.internalStartDate) === null || _a === void 0 ? void 0 : _a.toString());
|
|
8748
8857
|
this.startDateTime = DateTime_1.fromISO(this.internalStartDate);
|
|
8749
8858
|
if (this.startDateTime.isValid) {
|
|
@@ -8757,40 +8866,33 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
8757
8866
|
this.updateCalendar();
|
|
8758
8867
|
}
|
|
8759
8868
|
componentDidLoad() {
|
|
8760
|
-
var _a, _b, _c;
|
|
8761
|
-
this.hasPreselection =
|
|
8762
|
-
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
this.handleHover(target);
|
|
8766
|
-
}
|
|
8767
|
-
});
|
|
8869
|
+
var _a, _b, _c, _d, _e;
|
|
8870
|
+
this.hasPreselection =
|
|
8871
|
+
((_a = this.host) === null || _a === void 0 ? void 0 : _a.querySelector('.date-preselection--has-preselection')) !== null;
|
|
8872
|
+
(_c = (_b = this.host) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.addEventListener('mouseover', this.handleMouseOver);
|
|
8873
|
+
(_e = (_d = this.host) === null || _d === void 0 ? void 0 : _d.shadowRoot) === null || _e === void 0 ? void 0 : _e.addEventListener('mouseleave', this.handleMouseLeave);
|
|
8768
8874
|
this.setDates();
|
|
8769
8875
|
}
|
|
8770
8876
|
disconnectedCallback() {
|
|
8771
|
-
var _a, _b;
|
|
8772
|
-
(_b = (_a = this.host) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseover',
|
|
8773
|
-
|
|
8774
|
-
if (target.matches('mds-calendar-cell') && this.startDateIdentifier && this.rangePicker) {
|
|
8775
|
-
this.handleHover(target);
|
|
8776
|
-
}
|
|
8777
|
-
});
|
|
8877
|
+
var _a, _b, _c, _d;
|
|
8878
|
+
(_b = (_a = this.host) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseover', this.handleMouseOver);
|
|
8879
|
+
(_d = (_c = this.host) === null || _c === void 0 ? void 0 : _c.shadowRoot) === null || _d === void 0 ? void 0 : _d.removeEventListener('mouseleave', this.handleMouseLeave);
|
|
8778
8880
|
}
|
|
8779
8881
|
async updateCurrentDate(date) {
|
|
8780
8882
|
this.currentDate = DateTime_1.fromISO(date);
|
|
8883
|
+
await this.updateCalendar();
|
|
8884
|
+
await new Promise(resolve => {
|
|
8885
|
+
requestAnimationFrame(() => {
|
|
8886
|
+
this.setDates();
|
|
8887
|
+
resolve();
|
|
8888
|
+
});
|
|
8889
|
+
});
|
|
8781
8890
|
return Promise.resolve();
|
|
8782
8891
|
}
|
|
8783
8892
|
updateDates() {
|
|
8784
|
-
|
|
8785
|
-
|
|
8786
|
-
|
|
8787
|
-
});
|
|
8788
|
-
}
|
|
8789
|
-
else if (this.internalStartDate && !this.rangePicker) {
|
|
8790
|
-
this.updateCalendar().then(() => {
|
|
8791
|
-
requestAnimationFrame(() => this.setDates());
|
|
8792
|
-
});
|
|
8793
|
-
}
|
|
8893
|
+
this.updateCalendar().then(() => {
|
|
8894
|
+
requestAnimationFrame(() => this.setDates());
|
|
8895
|
+
});
|
|
8794
8896
|
}
|
|
8795
8897
|
async updateCalendar() {
|
|
8796
8898
|
try {
|
|
@@ -8812,25 +8914,45 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
8812
8914
|
const { shadowRoot } = calendar;
|
|
8813
8915
|
if (!shadowRoot)
|
|
8814
8916
|
return;
|
|
8815
|
-
const calendarCells = shadowRoot.querySelectorAll('mds-calendar-cell[selection]');
|
|
8816
|
-
if (this.
|
|
8817
|
-
if (this.
|
|
8818
|
-
this.
|
|
8917
|
+
const calendarCells = shadowRoot.querySelectorAll('mds-calendar-cell[selection], mds-calendar-cell[preview]');
|
|
8918
|
+
if (this.rangePicker) {
|
|
8919
|
+
if (this.hoverDate && !this.internalEndDate) {
|
|
8920
|
+
this.setHoverSelection(calendarCells, shadowRoot);
|
|
8819
8921
|
}
|
|
8820
8922
|
else {
|
|
8821
|
-
this.
|
|
8923
|
+
this.setRangeSelection(calendarCells, shadowRoot);
|
|
8822
8924
|
}
|
|
8823
8925
|
}
|
|
8926
|
+
else {
|
|
8927
|
+
this.setSingleSelection(calendarCells, shadowRoot);
|
|
8928
|
+
}
|
|
8824
8929
|
}
|
|
8825
|
-
|
|
8930
|
+
clearSelectionState(calendarCells) {
|
|
8826
8931
|
calendarCells.forEach(day => {
|
|
8827
8932
|
day.removeAttribute('selection');
|
|
8828
8933
|
day.removeAttribute('preview');
|
|
8829
8934
|
});
|
|
8830
|
-
|
|
8935
|
+
}
|
|
8936
|
+
setRangeSelection(calendarCells, shadowRoot) {
|
|
8937
|
+
this.clearSelectionState(calendarCells);
|
|
8938
|
+
if (!this.internalStartDate)
|
|
8831
8939
|
return;
|
|
8832
8940
|
this.startDateTime = DateTime_1.fromISO(this.internalStartDate.toString());
|
|
8941
|
+
if (!this.internalEndDate) {
|
|
8942
|
+
this.startDateIdentifier = this.startDateTime.toISODate();
|
|
8943
|
+
this.isFirstClick = false;
|
|
8944
|
+
const cells = shadowRoot.querySelectorAll('mds-calendar-cell');
|
|
8945
|
+
cells.forEach(cell => {
|
|
8946
|
+
if (cell.getAttribute('date') === this.startDateTime.toFormat('yyyy-MM-dd')) {
|
|
8947
|
+
cell.setAttribute('selection', 'single');
|
|
8948
|
+
cell.setAttribute('preview', 'true');
|
|
8949
|
+
}
|
|
8950
|
+
});
|
|
8951
|
+
return;
|
|
8952
|
+
}
|
|
8833
8953
|
this.endDateTime = DateTime_1.fromISO(this.internalEndDate.toString());
|
|
8954
|
+
this.startDateIdentifier = this.startDateTime.toISODate();
|
|
8955
|
+
this.endDateIdentifier = this.endDateTime.toISODate();
|
|
8834
8956
|
const cells = shadowRoot.querySelectorAll('mds-calendar-cell');
|
|
8835
8957
|
if (cells) {
|
|
8836
8958
|
let isBetweenDates;
|
|
@@ -8857,10 +8979,48 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
8857
8979
|
}
|
|
8858
8980
|
}
|
|
8859
8981
|
}
|
|
8860
|
-
|
|
8861
|
-
|
|
8862
|
-
|
|
8982
|
+
setHoverSelection(calendarCells, shadowRoot) {
|
|
8983
|
+
this.clearSelectionState(calendarCells);
|
|
8984
|
+
if (!this.internalStartDate || !this.hoverDate) {
|
|
8985
|
+
this.setRangeSelection(calendarCells, shadowRoot);
|
|
8986
|
+
return;
|
|
8987
|
+
}
|
|
8988
|
+
const startDate = DateTime_1.fromISO(this.internalStartDate);
|
|
8989
|
+
const hoverDate = DateTime_1.fromISO(this.hoverDate);
|
|
8990
|
+
if (!startDate.isValid || !hoverDate.isValid) {
|
|
8991
|
+
this.setRangeSelection(calendarCells, shadowRoot);
|
|
8992
|
+
return;
|
|
8993
|
+
}
|
|
8994
|
+
const isForwardSelection = startDate <= hoverDate;
|
|
8995
|
+
const cells = Array.from(shadowRoot.querySelectorAll('mds-calendar-cell'));
|
|
8996
|
+
cells.forEach(cell => {
|
|
8997
|
+
const cellDateString = cell.getAttribute('date');
|
|
8998
|
+
if (!cellDateString)
|
|
8999
|
+
return;
|
|
9000
|
+
const cellDate = DateTime_1.fromISO(cellDateString);
|
|
9001
|
+
if (!cellDate.isValid)
|
|
9002
|
+
return;
|
|
9003
|
+
const isInRange = isForwardSelection
|
|
9004
|
+
? cellDate >= startDate && cellDate <= hoverDate
|
|
9005
|
+
: cellDate >= hoverDate && cellDate <= startDate;
|
|
9006
|
+
if (!isInRange)
|
|
9007
|
+
return;
|
|
9008
|
+
cell.setAttribute('preview', 'true');
|
|
9009
|
+
let selectionType = 'middle';
|
|
9010
|
+
if (startDate.equals(hoverDate) && cellDate.equals(startDate)) {
|
|
9011
|
+
selectionType = 'single';
|
|
9012
|
+
}
|
|
9013
|
+
else if (cellDate.equals(startDate)) {
|
|
9014
|
+
selectionType = isForwardSelection ? 'start' : 'end';
|
|
9015
|
+
}
|
|
9016
|
+
else if (cellDate.equals(hoverDate)) {
|
|
9017
|
+
selectionType = isForwardSelection ? 'end' : 'start';
|
|
9018
|
+
}
|
|
9019
|
+
cell.setAttribute('selection', selectionType);
|
|
8863
9020
|
});
|
|
9021
|
+
}
|
|
9022
|
+
setSingleSelection(calendarCells, shadowRoot) {
|
|
9023
|
+
this.clearSelectionState(calendarCells);
|
|
8864
9024
|
if (!this.internalStartDate)
|
|
8865
9025
|
return;
|
|
8866
9026
|
this.startDateTime = DateTime_1.fromISO(this.internalStartDate.toString());
|
|
@@ -8882,6 +9042,10 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
8882
9042
|
this.updateCalendar().then(() => {
|
|
8883
9043
|
requestAnimationFrame(() => this.setDates());
|
|
8884
9044
|
});
|
|
9045
|
+
this.navigationEmitter.emit({
|
|
9046
|
+
currentDate: this.currentDate.toISODate(),
|
|
9047
|
+
delta,
|
|
9048
|
+
});
|
|
8885
9049
|
}
|
|
8886
9050
|
calculateWeekDaysInMonth() {
|
|
8887
9051
|
const startOfMonth = this.currentDate.startOf('month');
|
|
@@ -8906,6 +9070,17 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
8906
9070
|
}
|
|
8907
9071
|
handleRange(element, dayInfo) {
|
|
8908
9072
|
var _a, _b;
|
|
9073
|
+
const pendingStartDate = this.startDate || this.host.getAttribute('start-date');
|
|
9074
|
+
if (this.rangePicker &&
|
|
9075
|
+
pendingStartDate &&
|
|
9076
|
+
!this.endDate &&
|
|
9077
|
+
!this.internalEndDate &&
|
|
9078
|
+
this.isFirstClick) {
|
|
9079
|
+
this.internalStartDate = sanitizeISO8601Date(pendingStartDate.toString());
|
|
9080
|
+
this.startDateTime = DateTime_1.fromISO(this.internalStartDate);
|
|
9081
|
+
this.startDateIdentifier = this.startDateTime.toISODate();
|
|
9082
|
+
this.isFirstClick = false;
|
|
9083
|
+
}
|
|
8909
9084
|
const resetSelection = () => {
|
|
8910
9085
|
this.internalStartDate = null;
|
|
8911
9086
|
this.internalEndDate = null;
|
|
@@ -8942,14 +9117,16 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
8942
9117
|
element.setAttribute('selection', 'single');
|
|
8943
9118
|
element.setAttribute('preview', 'true');
|
|
8944
9119
|
});
|
|
9120
|
+
this.datesEmitter.emit({ startDate: this.internalStartDate });
|
|
8945
9121
|
return;
|
|
8946
9122
|
}
|
|
8947
9123
|
const calendar = this.host;
|
|
8948
9124
|
const mdsCalendarCellElements = (_a = calendar === null || calendar === void 0 ? void 0 : calendar.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('mds-calendar-cell');
|
|
8949
|
-
const startDateElementIndex = Array.from(mdsCalendarCellElements !== null && mdsCalendarCellElements !== void 0 ? mdsCalendarCellElements : [])
|
|
8950
|
-
.findIndex((cell) => cell.getAttribute('date') === this.startDateIdentifier);
|
|
9125
|
+
const startDateElementIndex = Array.from(mdsCalendarCellElements !== null && mdsCalendarCellElements !== void 0 ? mdsCalendarCellElements : []).findIndex((cell) => cell.getAttribute('date') === this.startDateIdentifier);
|
|
8951
9126
|
const elementIndex = Array.from(mdsCalendarCellElements !== null && mdsCalendarCellElements !== void 0 ? mdsCalendarCellElements : []).indexOf(element);
|
|
8952
|
-
if (this.startDateIdentifier &&
|
|
9127
|
+
if (this.startDateIdentifier &&
|
|
9128
|
+
DateTime_1.fromISO(this.startDateIdentifier) <
|
|
9129
|
+
DateTime_1.fromISO(element.getAttribute('date'))) {
|
|
8953
9130
|
this.endDateIdentifier = element.getAttribute('date');
|
|
8954
9131
|
this.endDateTime = dayInfo;
|
|
8955
9132
|
this.internalEndDate = this.endDateTime.toISO().split('T')[0];
|
|
@@ -8975,66 +9152,6 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
8975
9152
|
this.checkPreselectionsEmitter.emit();
|
|
8976
9153
|
}
|
|
8977
9154
|
}
|
|
8978
|
-
handleHover(element) {
|
|
8979
|
-
var _a, _b;
|
|
8980
|
-
const typedElement = element;
|
|
8981
|
-
const startDate = DateTime_1.fromISO(this.internalStartDate);
|
|
8982
|
-
if (!startDate.isValid || this.endDateIdentifier !== null)
|
|
8983
|
-
return;
|
|
8984
|
-
const calendar = this.host;
|
|
8985
|
-
const mdsCalendarCellElements = Array.from((_b = (_a = calendar === null || calendar === void 0 ? void 0 : calendar.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('mds-calendar-cell')) !== null && _b !== void 0 ? _b : []);
|
|
8986
|
-
const hoveredDateStr = typedElement.getAttribute('date');
|
|
8987
|
-
if (!hoveredDateStr)
|
|
8988
|
-
return;
|
|
8989
|
-
const hoveredDate = DateTime_1.fromISO(hoveredDateStr);
|
|
8990
|
-
if (!hoveredDate.isValid)
|
|
8991
|
-
return;
|
|
8992
|
-
const startTypedElement = mdsCalendarCellElements.find(cell => cell.getAttribute('date') === this.internalStartDate);
|
|
8993
|
-
mdsCalendarCellElements.forEach(cell => {
|
|
8994
|
-
cell.removeAttribute('preview');
|
|
8995
|
-
cell.removeAttribute('selection');
|
|
8996
|
-
});
|
|
8997
|
-
typedElement.setAttribute('preview', 'true');
|
|
8998
|
-
const typedDateStr = typedElement.getAttribute('date');
|
|
8999
|
-
if (typedDateStr) {
|
|
9000
|
-
const typedDate = DateTime_1.fromISO(typedDateStr);
|
|
9001
|
-
if (typedDate.isValid && startTypedElement) {
|
|
9002
|
-
if (startDate < typedDate) {
|
|
9003
|
-
startTypedElement.setAttribute('selection', 'start');
|
|
9004
|
-
}
|
|
9005
|
-
else if (startDate > typedDate) {
|
|
9006
|
-
startTypedElement.setAttribute('selection', 'end');
|
|
9007
|
-
typedElement.setAttribute('selection', 'start');
|
|
9008
|
-
}
|
|
9009
|
-
else {
|
|
9010
|
-
typedElement.setAttribute('selection', 'single');
|
|
9011
|
-
}
|
|
9012
|
-
}
|
|
9013
|
-
}
|
|
9014
|
-
if (startDate.equals(hoveredDate)) {
|
|
9015
|
-
typedElement.setAttribute('selection', 'single');
|
|
9016
|
-
}
|
|
9017
|
-
else {
|
|
9018
|
-
const [start, end] = startDate < hoveredDate ? [startDate, hoveredDate] : [hoveredDate, startDate];
|
|
9019
|
-
mdsCalendarCellElements.forEach(cell => {
|
|
9020
|
-
const cellDateStr = cell.getAttribute('date');
|
|
9021
|
-
if (!cellDateStr)
|
|
9022
|
-
return;
|
|
9023
|
-
const cellDate = DateTime_1.fromISO(cellDateStr);
|
|
9024
|
-
if (!cellDate.isValid)
|
|
9025
|
-
return;
|
|
9026
|
-
if (cellDate >= start && cellDate <= end) {
|
|
9027
|
-
cell.setAttribute('preview', 'true');
|
|
9028
|
-
let selectionType = 'middle';
|
|
9029
|
-
if (cellDate.equals(start))
|
|
9030
|
-
selectionType = 'start';
|
|
9031
|
-
if (cellDate.equals(end))
|
|
9032
|
-
selectionType = 'end';
|
|
9033
|
-
cell.setAttribute('selection', selectionType);
|
|
9034
|
-
}
|
|
9035
|
-
});
|
|
9036
|
-
}
|
|
9037
|
-
}
|
|
9038
9155
|
handleSingleSelection(element, dayInfo) {
|
|
9039
9156
|
var _a;
|
|
9040
9157
|
const calendar = this.host;
|
|
@@ -9051,7 +9168,8 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
9051
9168
|
}
|
|
9052
9169
|
}
|
|
9053
9170
|
render() {
|
|
9054
|
-
return (h(Host, { key: '
|
|
9171
|
+
return (h(Host, { key: '271209054e3f86d3c167ab6f2d84c801619f7fdb' }, h("div", { key: '084902141f92f15f4b62ec34fc826b939f0ff05b', class: clsx('calendar-preselection', (this.showPreselection || this.hasPreselection) &&
|
|
9172
|
+
'calendar-preselection--has-preselection') }, h("slot", { key: '986c1168978cc658b3a7409adafac5651cae7c77', name: "preselection" })), h("div", { key: 'bbb9882d52d1fd89758704604c3a52016535561e', class: "calendar-view" }, h("nav", { key: '9f993a0c44e484303716cef6530d9d95e84226a1' }, this.showPreviousButton && (h("mds-button", { key: 'f78027217275a9f0896fdfaa2ed99fd10064f581', class: "action-back", icon: miBaselineBackIosNew, variant: "dark", tone: "quiet", onClick: event => {
|
|
9055
9173
|
if (this.currentView === 'calendar') {
|
|
9056
9174
|
event.stopPropagation();
|
|
9057
9175
|
this.changeMonth(-1);
|
|
@@ -9063,19 +9181,7 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
9063
9181
|
else {
|
|
9064
9182
|
event.stopPropagation();
|
|
9065
9183
|
}
|
|
9066
|
-
} }), h("div", { key: '
|
|
9067
|
-
event.stopPropagation();
|
|
9068
|
-
this.currentView = this.currentView === 'months' ? 'calendar' : 'months';
|
|
9069
|
-
requestAnimationFrame(() => {
|
|
9070
|
-
this.updateCalendar().then(() => this.setDates());
|
|
9071
|
-
});
|
|
9072
|
-
} }, this.currentMonth), (this.currentView === 'calendar' || this.currentView === 'years') && h("mds-button", { key: 'd79d4de0219d05724b173290fa39a034324d950b', class: "action-year", variant: "dark", tone: "quiet", onClick: event => {
|
|
9073
|
-
event.stopPropagation();
|
|
9074
|
-
this.currentView = this.currentView === 'years' ? 'calendar' : 'years';
|
|
9075
|
-
requestAnimationFrame(() => {
|
|
9076
|
-
this.updateCalendar().then(() => this.setDates());
|
|
9077
|
-
});
|
|
9078
|
-
} }, this.currentYear)), h("mds-button", { key: '596683e3960b61627fbe8d774db076e2297cd99a', class: "action-forward", icon: miBaselineForwardIos, variant: "dark", tone: "quiet", onClick: event => {
|
|
9184
|
+
} })), h("div", { key: 'e2916642b7072db24f8e800fb033260a9c2a3dcd', class: "select-month-or-year" }, (this.currentView === 'calendar' || this.currentView === 'months') && (h("mds-button", { key: '112c7d69205f2c57587a4ba12ecd7b445ef66170', class: "action-month", truncate: "none", variant: "dark", tone: "quiet", onClick: this.handleMonthActionClick }, this.currentMonth)), (this.currentView === 'calendar' || this.currentView === 'years') && (h("mds-button", { key: '91f990cfdafb34e3983f7e375e695dce5fde11fd', class: "action-year", truncate: "none", variant: "dark", tone: "quiet", onClick: this.handleYearActionClick }, this.currentYear))), this.showNextButton && (h("mds-button", { key: 'd297451100785c186b8ae054fa0203007f218cb7', class: "action-forward", icon: miBaselineForwardIos, variant: "dark", tone: "quiet", onClick: event => {
|
|
9079
9185
|
if (this.currentView === 'calendar') {
|
|
9080
9186
|
event.stopPropagation();
|
|
9081
9187
|
this.changeMonth(1);
|
|
@@ -9087,11 +9193,15 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
9087
9193
|
else {
|
|
9088
9194
|
event.stopPropagation();
|
|
9089
9195
|
}
|
|
9090
|
-
} })), this.currentView === 'calendar' && (h("section", { key: '
|
|
9091
|
-
if (this.min &&
|
|
9196
|
+
} }))), this.currentView === 'calendar' && (h("section", { key: 'bf8eba9f66065c91d0f4feac4ddbc93c1fc63ad4', class: "month-view" }, h("header", { key: 'c90bf7ed93129ab8bfc3ecaab99fb2d012adab39', class: "month-view__days-names" }, this.weekdays.map(day => (h("mds-button", { class: "week-day-name", variant: "dark", tone: "quiet" }, day)))), h("div", { key: '6b5fb95ad179b38fefe0986b48a3a12a287ccf61', class: "month-view__cells" }, this.weekDaysinMonth.map((dayInfo, index) => (h("mds-calendar-cell", { key: index, today: DateTime_1.now().toFormat('yyyy-MM-dd') === dayInfo.date.toFormat('yyyy-MM-dd'), date: dayInfo.date.toFormat('yyyy-MM-dd'), month: dayInfo.isCurrentMonth ? 'current' : 'other', disabled: (() => {
|
|
9197
|
+
if (this.min &&
|
|
9198
|
+
this.min !== '' &&
|
|
9199
|
+
dayInfo.date < DateTime_1.fromISO(this.min)) {
|
|
9092
9200
|
return true;
|
|
9093
9201
|
}
|
|
9094
|
-
if (this.max &&
|
|
9202
|
+
if (this.max &&
|
|
9203
|
+
this.max !== '' &&
|
|
9204
|
+
dayInfo.date > DateTime_1.fromISO(this.max)) {
|
|
9095
9205
|
return true;
|
|
9096
9206
|
}
|
|
9097
9207
|
return undefined;
|
|
@@ -9102,9 +9212,15 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
9102
9212
|
this.handleRange(target, dayInfo.date);
|
|
9103
9213
|
else
|
|
9104
9214
|
this.handleSingleSelection(target, dayInfo.date);
|
|
9105
|
-
}
|
|
9106
|
-
|
|
9107
|
-
|
|
9215
|
+
}, title: dayInfo.date
|
|
9216
|
+
.setLocale(this.language)
|
|
9217
|
+
.toFormat('cccc d LLLL')
|
|
9218
|
+
.replace(/^./, char => char.toUpperCase()) }, dayInfo.date.toFormat('dd'))))))), this.currentView === 'months' && (h("section", { key: '5353ed4497b33fb5260cf6c2d1f087b228a0cda3', class: "month-selection" }, h("header", { key: '70247928e4a74589900b0acd3b8d02686e41a4d1', class: "month-view__month-names" }, Array.from({ length: 12 }).map((_, index) => {
|
|
9219
|
+
const monthName = DateTime_1.local()
|
|
9220
|
+
.set({ month: index + 1 })
|
|
9221
|
+
.setLocale(this.language)
|
|
9222
|
+
.toFormat('MMMM');
|
|
9223
|
+
return (h("mds-button", { class: "action", variant: "dark", tone: "quiet", onClick: event => {
|
|
9108
9224
|
event.stopPropagation();
|
|
9109
9225
|
this.currentDate = this.currentDate.set({ month: index + 1 });
|
|
9110
9226
|
this.currentMonth = this.currentDate.toFormat('MMMM');
|
|
@@ -9113,9 +9229,9 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
9113
9229
|
requestAnimationFrame(() => this.setDates());
|
|
9114
9230
|
});
|
|
9115
9231
|
} }, monthName));
|
|
9116
|
-
})))), this.currentView === 'years' && (h("section", { key: '
|
|
9232
|
+
})))), this.currentView === 'years' && (h("section", { key: '99dca1c5f3ce083cb3bb117ce8bb705faa83e19c', class: "year-selection" }, h("header", { key: '7d479a8c05815560306486bf0825a521c971a6e4', class: "month-view__years" }, Array.from({ length: 12 }).map((_, index) => {
|
|
9117
9233
|
const year = this.selectedYear + index;
|
|
9118
|
-
return (h("mds-button", { class:
|
|
9234
|
+
return (h("mds-button", { class: "action", variant: "dark", tone: "quiet", onClick: event => {
|
|
9119
9235
|
event.stopPropagation();
|
|
9120
9236
|
this.currentDate = this.currentDate.set({ year });
|
|
9121
9237
|
this.currentYear = year.toString();
|
|
@@ -9129,11 +9245,19 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
9129
9245
|
get host() { return this; }
|
|
9130
9246
|
static get watchers() { return {
|
|
9131
9247
|
"startDate": ["handleStartDate"],
|
|
9132
|
-
"endDate": ["handleEndDate"]
|
|
9248
|
+
"endDate": ["handleEndDate"],
|
|
9249
|
+
"viewDate": ["handleViewDate"],
|
|
9250
|
+
"hoverDate": ["handleHoverDate"]
|
|
9133
9251
|
}; }
|
|
9134
9252
|
static get style() { return MdsCalendarStyle0; }
|
|
9135
9253
|
}, [1, "mds-calendar", {
|
|
9136
9254
|
"rangePicker": [4, "range-picker"],
|
|
9255
|
+
"showPreviousButton": [4, "show-previous-button"],
|
|
9256
|
+
"showNextButton": [4, "show-next-button"],
|
|
9257
|
+
"disableMonthYearSelection": [4, "disable-month-year-selection"],
|
|
9258
|
+
"showPreselection": [4, "show-preselection"],
|
|
9259
|
+
"viewDate": [513, "view-date"],
|
|
9260
|
+
"hoverDate": [513, "hover-date"],
|
|
9137
9261
|
"startDate": [513, "start-date"],
|
|
9138
9262
|
"endDate": [513, "end-date"],
|
|
9139
9263
|
"min": [513],
|
|
@@ -9150,11 +9274,15 @@ const MdsCalendar = /*@__PURE__*/ proxyCustomElement(class MdsCalendar extends H
|
|
|
9150
9274
|
"language": [32],
|
|
9151
9275
|
"internalStartDate": [32],
|
|
9152
9276
|
"internalEndDate": [32],
|
|
9277
|
+
"currentMonth": [32],
|
|
9278
|
+
"currentYear": [32],
|
|
9153
9279
|
"updateLang": [64],
|
|
9154
9280
|
"updateCurrentDate": [64]
|
|
9155
9281
|
}, undefined, {
|
|
9156
9282
|
"startDate": ["handleStartDate"],
|
|
9157
|
-
"endDate": ["handleEndDate"]
|
|
9283
|
+
"endDate": ["handleEndDate"],
|
|
9284
|
+
"viewDate": ["handleViewDate"],
|
|
9285
|
+
"hoverDate": ["handleHoverDate"]
|
|
9158
9286
|
}]);
|
|
9159
9287
|
function defineCustomElement() {
|
|
9160
9288
|
if (typeof customElements === "undefined") {
|
|
@@ -10,7 +10,7 @@ const MdsCardContent$1 = /*@__PURE__*/ proxyCustomElement(class MdsCardContent e
|
|
|
10
10
|
this.__attachShadow();
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '6d999f7edd0c6a6f9600ba642c7701c76cb2e652', slot: "content" }, h("slot", { key: 'd8261aefdf99a1e04ce0759351c4b112c14db22e' })));
|
|
14
14
|
}
|
|
15
15
|
static get style() { return MdsCardContentStyle0; }
|
|
16
16
|
}, [1, "mds-card-content"]);
|
|
@@ -10,7 +10,7 @@ const MdsCardFooter$1 = /*@__PURE__*/ proxyCustomElement(class MdsCardFooter ext
|
|
|
10
10
|
this.__attachShadow();
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '27d1cfe59341aec8873e3e58b67ff878447b4e7e', slot: "footer" }, h("slot", { key: '1f77196c1c48afe232aaa1062d77100da3e34964' })));
|
|
14
14
|
}
|
|
15
15
|
static get style() { return MdsCardFooterStyle0; }
|
|
16
16
|
}, [1, "mds-card-footer"]);
|
|
@@ -13,7 +13,7 @@ const MdsCardHeader$1 = /*@__PURE__*/ proxyCustomElement(class MdsCardHeader ext
|
|
|
13
13
|
this.actions = this.hostElement.querySelector(':scope > [slot="action"]') !== null;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '37517cc5fa13e59e5cb3288b2df8e443959ac589', slot: "header" }, h("slot", { key: '4cf693704f94b775346e6b132cbfb186e7092ae4' }), this.actions && h("div", { key: '737f4ec0b6c3f003836d6cbe7fdb3b29f38518d9', class: "actions" }, h("slot", { key: '57bef676061685715167d387ff65bc48ab1a48c9', name: "action" }))));
|
|
17
17
|
}
|
|
18
18
|
get hostElement() { return this; }
|
|
19
19
|
static get style() { return MdsCardHeaderStyle0; }
|
|
@@ -10,7 +10,7 @@ const MdsCardMedia$1 = /*@__PURE__*/ proxyCustomElement(class MdsCardMedia exten
|
|
|
10
10
|
this.__attachShadow();
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: 'ede4755f4ed976be4a2aaefa0ef107a42cd3ea42', slot: "media" }, h("div", { key: '2dd85585b36b5568fd5b6b60639fbc16dae54f8f', class: "content", part: "content" }, h("slot", { key: 'f1236d9047acd846d270ee17a402e87d4bda1178', name: "content" })), h("slot", { key: '59ecffc8eb3e1b748fbe009a8664b799f05703e1' })));
|
|
14
14
|
}
|
|
15
15
|
static get style() { return MdsCardMediaStyle0; }
|
|
16
16
|
}, [1, "mds-card-media"]);
|
|
@@ -29,7 +29,7 @@ const MdsCard$1 = /*@__PURE__*/ proxyCustomElement(class MdsCard extends HTMLEle
|
|
|
29
29
|
.reduce((prev, curr) => prev + curr.charAt(0), '');
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '1f56ae14eee21319d1285d8ed70b8318ccd623ea' }, h("div", { key: '9c1b326adc15a6572d1e711090a31f6af81d301c', class: clsx('layout', this.layout && `layout--${this.layout}`, !this.autoGrid ? 'layout--disabled' : ''), part: "container" }, h("slot", { key: 'c07c48068d7227f652ad577c58b388880f930729', name: "media" }), h("slot", { key: '84121684f7f9298396da6c61c0281d4fad7e9d71', name: "header" }), h("slot", { key: '807c82b31bcd779562ead67476e6b8aa6ec4c2f6', name: "content" }), h("slot", { key: 'd05eb58fc0d39cac5ce38676fa2062e87b0f4ea5', name: "footer" }))));
|
|
33
33
|
}
|
|
34
34
|
get host() { return this; }
|
|
35
35
|
static get style() { return MdsCardStyle0; }
|