@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
|
@@ -24,7 +24,7 @@ export class MdsCalendarCell {
|
|
|
24
24
|
this.today = undefined;
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
return (h(Host, { key: '09389f01297dc7e38499fc5783fbe7b5be73cee5' }, h("div", { key: '6501ca7b41eed8696e60156abf53f0cbbecae8d5', class: "inner-dot" }), h("div", { key: '34f8e50ba0032d7d9d3dd63aafc5ac536f1a0adf', class: "area-background" }), h("mds-button", { key: 'bedafcb2817bfeac6ebee9fa3e0887a41a1bce9b', class: "action", variant: "dark", tone: "quiet", disabled: this.disabled }, h("slot", { key: '197f10e47b61a6c6140774cd3e2443df61d9e4a4' }))));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "mds-calendar-cell"; }
|
|
30
30
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,7 +37,7 @@ export class MdsCard {
|
|
|
37
37
|
.reduce((prev, curr) => prev + curr.charAt(0), '');
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
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" }))));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "mds-card"; }
|
|
43
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ import { Host, h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class MdsCardContent {
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '6d999f7edd0c6a6f9600ba642c7701c76cb2e652', slot: "content" }, h("slot", { key: 'd8261aefdf99a1e04ce0759351c4b112c14db22e' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "mds-card-content"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ import { Host, h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class MdsCardFooter {
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '27d1cfe59341aec8873e3e58b67ff878447b4e7e', slot: "footer" }, h("slot", { key: '1f77196c1c48afe232aaa1062d77100da3e34964' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "mds-card-footer"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -8,7 +8,7 @@ export class MdsCardHeader {
|
|
|
8
8
|
this.actions = this.hostElement.querySelector(':scope > [slot="action"]') !== null;
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
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" }))));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "mds-card-header"; }
|
|
14
14
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ import { Host, h } from "@stencil/core";
|
|
|
5
5
|
*/
|
|
6
6
|
export class MdsCardMedia {
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
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' })));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "mds-card-media"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -101,10 +101,10 @@ export class MdsChip {
|
|
|
101
101
|
this.km.detachClickBehavior('label');
|
|
102
102
|
}
|
|
103
103
|
render() {
|
|
104
|
-
return (h(Host, { key: '
|
|
105
|
-
h("div", { key: '
|
|
104
|
+
return (h(Host, { key: '74933ef09b9f5f46d900110ff415ae70347c9c83', "aria-disabled": this.disabled ? 'true' : 'false' }, this.icon &&
|
|
105
|
+
h("div", { key: '3fe3e80d2ff6544c1e4ae1534247876f5491d4fb', "aria-hidden": "true", class: "icon-area" }, h("mds-icon", { key: '0fa559f7ed4c4909d4ea2c623eb29b4ccb847dfc', class: "icon", name: this.icon })), this.clickable
|
|
106
106
|
? h("mds-text", { class: "label label--interactive", tabindex: "0", typography: "caption", truncate: "word" }, this.label)
|
|
107
|
-
: h("mds-text", { class: "label", typography: "caption", truncate: "word" }, this.label), this.deletable && h("mds-button", { key: '
|
|
107
|
+
: h("mds-text", { class: "label", typography: "caption", truncate: "word" }, this.label), this.deletable && h("mds-button", { key: '06c0fe6d50a4cde2f20ab9f30d4f0bbca6cef50b', class: "button-delete", icon: miBaselineCancel, onClick: this.onDeleteHandler.bind(this), title: `${this.t.get('deleteLabel')} ${this.label}`, variant: "dark", tone: "quiet", size: "sm" })));
|
|
108
108
|
}
|
|
109
109
|
static get is() { return "mds-chip"; }
|
|
110
110
|
static get encapsulation() { return "shadow"; }
|
|
@@ -46,7 +46,7 @@ export class MdsDetails {
|
|
|
46
46
|
this.km.detachClickBehavior();
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: 'd6184cacb2170c6c13d221199c13b52f282a2230' }, h("div", { key: 'aa7a8d55a1baeee4dbbdccc7ccd6b0a0c1bf7599', class: clsx('icon', this.hasIcon ? '' : 'icon--hidden'), onClick: this.toggle }, h("slot", { key: 'a355f1df6eb85fb599885c2762949823d86f16d8', name: "icon", onSlotchange: this.onSlotChangeHandler })), h("div", { key: '3035feb250fb7c8a963d1578ef79e701edbfe306', class: "content" }, h("header", { key: 'e9449d592fcc69356af4030b98150ca02a2a6059', class: "header", part: "header", tabindex: "0", onClick: this.toggle }, h("div", { key: 'ca44725f199e7591f59d6415f6cabd5bbf233dc7', class: "title" }, h("slot", { key: '40f0e20b99b36c15be9843402b7986c96e6de25d', name: "title" })), h("i", { key: '294dde9c5bd6dc5d8d855ea77a733e4c40cf3dd2', class: clsx('helper-icon', this.isOpened && 'opened'), innerHTML: miBaselineKeyboardArrowDown })), h("div", { key: 'efb1acceefa5dcad28c05243c244062bbd959614', class: clsx('details', this.isOpened && 'opened') }, h("div", { key: '05fad0bbd7dd9070e2f544ab74f98e2732a5107e', class: "content-expander", part: "content" }, h("slot", { key: 'f772008113a771c1be4eb9a188bc5b4d8c2a03f6' }), h("div", { key: '5385226217cf9ecb12e3b4143574eab79087e8b5', class: "actions" }, h("slot", { key: '27ce04a70a4c7a412a08401b57d5f73377f21f86', name: "action" })))))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "mds-details"; }
|
|
52
52
|
static get encapsulation() { return "shadow"; }
|
|
@@ -206,9 +206,9 @@ export class MdsDropdown {
|
|
|
206
206
|
this.km.detachEscapeBehavior();
|
|
207
207
|
}
|
|
208
208
|
render() {
|
|
209
|
-
return (h(Host, { key: '
|
|
209
|
+
return (h(Host, { key: '611b52d0d95b82ff0a15418a2912436aa8036a25', style: {
|
|
210
210
|
zIndex: `${this.zIndex}`,
|
|
211
|
-
} }, h("div", { key: '
|
|
211
|
+
} }, h("div", { key: '438608dea4c704636a0ebb60d77403a55820972c', class: "arrow", innerHTML: arrowSvg }), h("slot", { key: '72b92abf8d288c0ae4dbb606c23ff9bfc274cf78' })));
|
|
212
212
|
}
|
|
213
213
|
static get is() { return "mds-dropdown"; }
|
|
214
214
|
static get encapsulation() { return "shadow"; }
|
|
@@ -351,7 +351,7 @@ export class MdsEmoji {
|
|
|
351
351
|
window.removeEventListener('mousemove', this.handleFollowMouse);
|
|
352
352
|
}
|
|
353
353
|
render() {
|
|
354
|
-
return h(Host, { key: '
|
|
354
|
+
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" }))));
|
|
355
355
|
}
|
|
356
356
|
static get is() { return "mds-emoji"; }
|
|
357
357
|
static get encapsulation() { return "shadow"; }
|
|
@@ -27,10 +27,10 @@ export class MdsEntity {
|
|
|
27
27
|
this.actions = this.hostElement.querySelector(':scope > [slot="action"]') !== null;
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (h(Host, { key: '
|
|
31
|
-
h("mds-avatar", { key: '
|
|
32
|
-
h("div", { key: '
|
|
33
|
-
h("div", { key: '
|
|
30
|
+
return (h(Host, { key: '8a36994c8dba823ded1073269f7daba8761fb74c' }, h("div", { key: 'ff0fe77bfc04bfbc80028ddedbdfdf16ba1e76a5', class: "spinner", part: "spinner" }, h("mds-spinner", { key: '16708efad1581c6be3f522e30fadf67dced790b2', running: true })), this.checkAvatar() &&
|
|
31
|
+
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 &&
|
|
32
|
+
h("div", { key: '0ab6bab732c454d92305f9c4d3cdaa5f3b670bd4', class: "details" }, h("slot", { key: 'f7bc347f5f5ff968220d0d572c6758624db8283f', name: "detail" }))), this.actions &&
|
|
33
|
+
h("div", { key: '062cc22d512b0298b3bbd71b435ed47e06e9fe18', class: "actions" }, h("slot", { key: '9ac39cd0db729de640ef90b4c48b2bb59fe416e5', name: "action" }))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "mds-entity"; }
|
|
36
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -54,10 +54,10 @@ export class MdsFile {
|
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
56
|
var _a, _b;
|
|
57
|
-
return (h(Host, { key: '
|
|
57
|
+
return (h(Host, { key: '0bb5dc19b383951d7fbc1327628fc243a44df46f', tabindex: "0", onClick: this.handleOnClick }, h("div", { key: '6db2f755dbe8a7bcb32408b2f432fa8c21bf8ffb', class: "preview" }, this.preview !== undefined
|
|
58
58
|
? h("div", { class: "image-preview", style: { backgroundImage: `url(${this.preview})` } })
|
|
59
|
-
: h("mds-icon", { name: getFormatsVariant(this.filename, this.suffix).icon })), h("div", { key: '
|
|
60
|
-
h("div", { key: '
|
|
59
|
+
: 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 &&
|
|
60
|
+
h("div", { key: '893d59f13b76e6d45489c278e312624b166ceab9', class: "indicator" }, h("i", { key: 'ff428c5087baa52839e4094d517a76fee8d16ceb', class: "downloaded", innerHTML: miBaselineFileDownloadDone, title: this.t.get('alreadyDownloaded') }))));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "mds-file"; }
|
|
63
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -58,11 +58,11 @@ export class MdsFilePreview {
|
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
60
|
var _a, _b, _c;
|
|
61
|
-
return (h(Host, { key: '
|
|
61
|
+
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
|
|
62
62
|
? h("mds-img", { src: this.src, class: "preview preview--image", "aspect-ratio": "1/1" })
|
|
63
63
|
: h("div", { class: clsx('preview', !this.message ? 'preview--icon' : 'preview--status') }, this.icon
|
|
64
64
|
? h("mds-icon", { class: "icon", name: this.icon })
|
|
65
|
-
: 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: '
|
|
65
|
+
: 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()))))));
|
|
66
66
|
}
|
|
67
67
|
static get is() { return "mds-file-preview"; }
|
|
68
68
|
static get encapsulation() { return "shadow"; }
|
|
@@ -91,7 +91,7 @@ export class MdsFilter {
|
|
|
91
91
|
this.changedEvent.emit({ children: items, value: this.itemsValues() });
|
|
92
92
|
}
|
|
93
93
|
render() {
|
|
94
|
-
return (h(Host, { key: '
|
|
94
|
+
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 }))))));
|
|
95
95
|
}
|
|
96
96
|
static get is() { return "mds-filter"; }
|
|
97
97
|
static get encapsulation() { return "shadow"; }
|
|
@@ -17,7 +17,7 @@ export class MdsFilterItem {
|
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
19
|
var _a;
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
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))));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "mds-filter-item"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -174,8 +174,8 @@ export class MdsHeader {
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
render() {
|
|
177
|
-
return (h(Host, { key: '
|
|
178
|
-
h("div", { key: '
|
|
177
|
+
return (h(Host, { key: '5f7a197284f180ab816c563e388a7f8e521e1f05' }, this.backdrop && h("div", { key: 'e02d7329e0556d2cee684004faeefcfedf764fcc', class: "backdrop" }), h("slot", { key: '4ed32166f6ace18694cb3f060a6a23c22abc5771' }), this.hasMenu &&
|
|
178
|
+
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" })))));
|
|
179
179
|
}
|
|
180
180
|
static get is() { return "mds-header"; }
|
|
181
181
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,9 +31,9 @@ export class MdsHeaderBar {
|
|
|
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
|
static get is() { return "mds-header-bar"; }
|
|
39
39
|
static get encapsulation() { return "shadow"; }
|
|
@@ -16,7 +16,7 @@ export class MdsHelp {
|
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
var _a;
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: 'cedc4c6783cfb2c6f04753bdefeb1b9c57d86992' }, h("mds-icon", { key: '6af5953d71ffe22953d3dda415a8ca09308200d2', class: "icon", name: (_a = this.icon) !== null && _a !== void 0 ? _a : miOutlineHelp, part: "icon" }), h("mds-tooltip", { key: 'c9909f51bae689166b9022e7de240cf53abd92cf', placement: this.placement, autoPlacement: this.autoPlacement, strategy: "absolute", target: ".icon" }, h("slot", { key: '11d356840cabae0abd371f63108e2362fde4acd7' }))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "mds-help"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -195,7 +195,7 @@ export class MdsHorizontalScroll {
|
|
|
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
|
static get is() { return "mds-horizontal-scroll"; }
|
|
201
201
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class MdsHr {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: '1feeafb202973ecfbc1964d97f6c4689c71fbc01' }));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "mds-hr"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,7 +39,7 @@ export class MdsIcon {
|
|
|
39
39
|
this.svgHTML = await IconsSetService.fetchSvg(this.name);
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: '43b9527b1f2650abead16b06c90286fea09adb34' }, this.svgHTML && h("i", { key: '8527fafd0f60b6aa32a2d8e35cd33e9d2403d7b5', "aria-hidden": "true", class: "icon", part: "svg", innerHTML: this.svgHTML })));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "mds-icon"; }
|
|
45
45
|
static get encapsulation() { return "shadow"; }
|
|
@@ -362,21 +362,21 @@ export class MdsInput {
|
|
|
362
362
|
}
|
|
363
363
|
render() {
|
|
364
364
|
var _a, _b;
|
|
365
|
-
return (h(Host, { key: '
|
|
365
|
+
return (h(Host, { key: 'ebbe46c4c882755da77b567e1f13fc97c07e2513' }, this.type === 'number'
|
|
366
366
|
&& this.controlsLayout === 'horizontal'
|
|
367
|
-
&& h("mds-button", { key: '
|
|
367
|
+
&& h("mds-button", { key: '0158cfb2383b201582346182d4e091d7a4335aaa', class: "counter-button counter-button--horizontal counter-button--decrease", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" }), this.type === 'textarea'
|
|
368
368
|
? h("textarea", { class: clsx('input', ((_a = this.icon) !== null && _a !== void 0 ? _a : this.await) && 'has-icon', this.mic && 'has-right-icon'), autoFocus: this.autofocus, disabled: this.disabled, maxLength: this.maxlength, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: input => (this.nativeInput = input), required: this.required, tabIndex: this.tabindex, value: this.value })
|
|
369
369
|
: h("input", { class: clsx('input', ((_b = this.icon) !== null && _b !== void 0 ? _b : this.await) && 'has-icon', this.mic && 'has-right-icon'), autoComplete: this.autocomplete, autoFocus: this.autofocus, disabled: this.disabled, max: this.max, maxLength: this.maxlength, min: this.min, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, pattern: this.pattern, list: this.datalistId, part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: input => (this.nativeInput = input), required: this.required, step: this.step, tabIndex: this.tabindex, type: this.type === 'password' && this.isPasswordVisible ? 'text' : this.type, value: this.value }), this.type === 'number'
|
|
370
370
|
&& this.controlsLayout === 'vertical'
|
|
371
|
-
&& h("div", { key: '
|
|
371
|
+
&& h("div", { key: 'f45f2154fc54ca72cc21a2d961bd2bd20d4efd78', class: "counter counter--vertical" }, h("mds-button", { key: '5d854eca0c1c4a76a635830cc818902ccf291852', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), h("mds-button", { key: '2617f16ee356d1b2e1a8908c9aa462f066dc1f0a', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" })), this.type === 'number'
|
|
372
372
|
&& this.controlsLayout === 'horizontal'
|
|
373
|
-
&& h("mds-button", { key: '
|
|
374
|
-
&& h("mds-button", { key: '
|
|
375
|
-
&& h("mds-button", { key: '
|
|
376
|
-
h("mds-input-tip-item", { key: '
|
|
377
|
-
h("datalist", { key: '
|
|
373
|
+
&& h("mds-button", { key: 'df1cf80a287bbec3ca0ab54023931fe7304adb9d', class: "counter-button counter-button--horizontal counter-button--increase", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), this.type === 'password'
|
|
374
|
+
&& h("mds-button", { key: 'ac5c8680a80dd3dedb363e3aaf0a11bf0c8c51f0', class: "password-toggle-button", icon: this.isPasswordVisible ? miBaselineVisibleOff : miBaselineVisible, onClick: () => this.isPasswordVisible = !this.isPasswordVisible, tabindex: "0", tone: "quiet", title: this.isPasswordVisible ? this.t.get('hidePassword') : this.t.get('showPassword'), part: "password-toggle-button" }), this.mic
|
|
375
|
+
&& h("mds-button", { key: '703c6f48c6357d3de79f305564b6c31e1ba0678b', class: clsx('mic-toggle-button', this.isRecording && 'mic-toggle-button--recording'), icon: this.speechToTextIcon, onClick: () => this.toggleTextRecognition(), tabindex: "0", variant: "dark", tone: "quiet", title: this.speechToTextLabel, part: "mic-toggle-button" }), h("mds-input-tip", { key: '6300abd186f702372b8cc38f727896086e8f994a', lang: this.language, position: "top", active: this.hasFocus, part: 'tip-top' }, this.disabled && h("mds-input-tip-item", { key: 'd47cf370835d9e8c750a0950b9e86a32306d26f3', expanded: true, variant: "disabled" }), this.readonly && h("mds-input-tip-item", { key: '1ff24111dc1b14da62784f3354e6f124f8741cf0', expanded: true, variant: "readonly" }), this.required &&
|
|
376
|
+
h("mds-input-tip-item", { key: '4e991439eab49a60c27d44df7257212a10047ad6', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' })), h("mds-input-tip", { key: 'eba28daea6dff97b5072f792976fced121bfc0be', lang: this.language, position: "bottom", active: this.hasFocus, part: 'tip-bottom' }, this.tip && h("mds-input-tip-item", { key: 'c4154c51c86efdd1fb973ab013df3fb19880a042', expanded: true, variant: "text" }, this.tip), this.maxlength && h("mds-input-tip-item", { key: '01700711312f6146c6acbd8f7cbbb5d507460626', part: "tip-count", expanded: true, variant: this.countVariant }, this.currentLengthLabel)), this.datalist &&
|
|
377
|
+
h("datalist", { key: '63458f5f6097dff8a67aef131de941a18cae754e', id: this.datalistId, class: "datalist" }, this.datalist.map((element, i) => {
|
|
378
378
|
return h("option", { key: i, value: element });
|
|
379
|
-
})), this.icon && !this.await && h("mds-icon", { key: '
|
|
379
|
+
})), this.icon && !this.await && h("mds-icon", { key: '5e46fdcc469c528e1516deb07f110b208990e08d', class: clsx('icon', this.variant), name: this.icon }), h("mds-spinner", { key: '19d7c3c5ac40822f72a58c8d4a8ccd93adb7cc05', running: this.await, class: clsx('await', this.variant) })));
|
|
380
380
|
}
|
|
381
381
|
static get is() { return "mds-input"; }
|
|
382
382
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/* global HTMLMdsInputDateElement, HTMLMdsDropdownElement */
|
|
2
|
+
import { Host, h, } from "@stencil/core";
|
|
2
3
|
import miBaselineCalendarToday from "@icon/mi/baseline/calendar-today.svg";
|
|
3
4
|
import { DateTime } from "luxon";
|
|
4
5
|
import { Locale } from "../../common/locale";
|
|
@@ -6,6 +7,7 @@ import { Locale } from "../../common/locale";
|
|
|
6
7
|
export class MdsInputDate {
|
|
7
8
|
constructor() {
|
|
8
9
|
this.isSlotted = false;
|
|
10
|
+
this.empty = undefined;
|
|
9
11
|
this.t = new Locale({
|
|
10
12
|
el: {},
|
|
11
13
|
en: {},
|
|
@@ -57,12 +59,13 @@ export class MdsInputDate {
|
|
|
57
59
|
// manage case when i insert 0 on date and default input behavior change in 01 instead of resetting all date
|
|
58
60
|
if (input.value)
|
|
59
61
|
this.value = input.value;
|
|
60
|
-
this.validateValue();
|
|
62
|
+
this.validateValue(input.validity.badInput);
|
|
61
63
|
};
|
|
62
64
|
this.onBlur = (ev) => {
|
|
63
65
|
const input = ev.target;
|
|
64
66
|
this.hasFocus = false;
|
|
65
67
|
this.value = input.value;
|
|
68
|
+
this.validateValue(input.validity.badInput);
|
|
66
69
|
};
|
|
67
70
|
this.onFocus = (ev) => {
|
|
68
71
|
const input = ev.target;
|
|
@@ -83,20 +86,25 @@ export class MdsInputDate {
|
|
|
83
86
|
this.valueChange.emit(this.value);
|
|
84
87
|
this.validateValue();
|
|
85
88
|
}
|
|
86
|
-
validateValue() {
|
|
89
|
+
validateValue(hasBadInput = false) {
|
|
87
90
|
const date = DateTime.fromISO(this.value);
|
|
88
|
-
const
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
const hasValue = Boolean(this.value);
|
|
92
|
+
const hasInvalidValue = hasValue && !date.isValid;
|
|
93
|
+
const isMissingRequiredValue = this.required && !hasValue;
|
|
94
|
+
const outOfRange = date.isValid &&
|
|
95
|
+
((this.max && DateTime.fromISO(this.max) < date) ||
|
|
96
|
+
(this.min && DateTime.fromISO(this.min) > date));
|
|
97
|
+
if (hasBadInput || hasInvalidValue || isMissingRequiredValue || outOfRange) {
|
|
92
98
|
this.isValid = false;
|
|
93
99
|
this.variant = 'error';
|
|
94
100
|
this.internals.setFormValue(null);
|
|
101
|
+
this.empty = hasBadInput || hasInvalidValue ? true : undefined;
|
|
95
102
|
}
|
|
96
103
|
else {
|
|
97
104
|
this.isValid = true;
|
|
98
105
|
this.variant = 'primary';
|
|
99
106
|
this.internals.setFormValue(this.value);
|
|
107
|
+
this.empty = undefined;
|
|
100
108
|
}
|
|
101
109
|
this.validationEvent.emit(this.isValid);
|
|
102
110
|
}
|
|
@@ -131,10 +139,9 @@ export class MdsInputDate {
|
|
|
131
139
|
this.validateValue();
|
|
132
140
|
}
|
|
133
141
|
render() {
|
|
134
|
-
return (h(Host, { key: '
|
|
142
|
+
return (h(Host, { key: '52c3166d9b5401776ff61e0e535571896a9d6ba8', empty: this.empty }, h("input", { key: 'a4f3f1c9c3602bb977677aa3063f2968c70adf33', value: this.value, id: "dateInput", class: "input", part: "input-date", type: "date", disabled: this.disabled, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.handleChange, onChange: this.handleChange }), !this.isSlotted && (h("div", { key: 'e002daf5efa4367d1519acfb566ce4faf61d4fcd', class: "action-open-calendar-wrapper" }, h("mds-button", { key: 'e9c6f3191dc6fcb226a3f08d8526d44900816ba5', id: "calendar-dropdown", class: "action-open-calendar", disabled: this.disabled, variant: "dark", tone: "quiet", icon: miBaselineCalendarToday, onClick: () => {
|
|
135
143
|
this.calendarKey += 1;
|
|
136
|
-
} }), h("mds-input-tip", { key: '
|
|
137
|
-
h("mds-input-tip-item", { key: 'e5b890f827a7a17b58d075bd4f500d208a512512', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' })), !this.isSlotted && h("mds-dropdown", { key: '34a37a18aea7c9e9476fc660229d3bec208ec8c9', placement: "bottom-end", "auto-placement": false, ref: el => this.dropdownRef = el, target: "#calendar-dropdown" }, h("mds-calendar", Object.assign({ key: this.calendarKey, rangePicker: false, lang: this.language, onMdsCalendarChange: ev => {
|
|
144
|
+
} }))), h("mds-input-tip", { key: 'b4a4308288531dfb0d3b890393d5243b4687d459', lang: this.language, position: "top", active: this.hasFocus }, this.disabled && h("mds-input-tip-item", { key: '4bc411c37bb5da3465443b72db0c7915c5bb5afd', expanded: true, variant: "disabled" }), this.readonly && h("mds-input-tip-item", { key: '6ba171f9f821354bcfbd7d9e8574dd5681a30a9b', expanded: true, variant: "readonly" }), this.required && (h("mds-input-tip-item", { key: '4f69ccf812baee84c9831f9ce3ac57d74f8a7038', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' }))), !this.isSlotted && (h("mds-dropdown", { key: '79f6ffd4fe2f708c9786904406e700c921200356', placement: "bottom-end", "auto-placement": false, ref: el => (this.dropdownRef = el), target: "#calendar-dropdown" }, h("mds-calendar", Object.assign({ key: this.calendarKey, rangePicker: false, lang: this.language, onMdsCalendarChange: ev => {
|
|
138
145
|
this.value = ev.detail.startDate;
|
|
139
146
|
if (this.delay === 0)
|
|
140
147
|
return;
|
|
@@ -144,7 +151,7 @@ export class MdsInputDate {
|
|
|
144
151
|
dropdownRef.visible = false;
|
|
145
152
|
}, this.delay);
|
|
146
153
|
}
|
|
147
|
-
}, startDate: this.value }, this.min ? { min: this.min } : {}, this.max ? { max: this.max } : {})))));
|
|
154
|
+
}, startDate: this.value }, (this.min ? { min: this.min } : {}), (this.max ? { max: this.max } : {})))))));
|
|
148
155
|
}
|
|
149
156
|
static get is() { return "mds-input-date"; }
|
|
150
157
|
static get encapsulation() { return "shadow"; }
|
|
@@ -362,6 +369,7 @@ export class MdsInputDate {
|
|
|
362
369
|
}
|
|
363
370
|
static get states() {
|
|
364
371
|
return {
|
|
372
|
+
"empty": {},
|
|
365
373
|
"isValid": {},
|
|
366
374
|
"language": {},
|
|
367
375
|
"touched": {},
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
:host {
|
|
12
12
|
--mds-input-date-range-background: rgb(var(--tone-neutral));
|
|
13
|
+
--mds-input-date-range-calendar-width: 22rem;
|
|
13
14
|
--mds-input-date-range-fields-firefox-justify-content: start;
|
|
14
15
|
--mds-input-date-range-fields-gap: 0 0.5rem;
|
|
15
16
|
--mds-input-date-range-icon-color: var(--mds-input-date-range-variant-color);
|
|
@@ -104,11 +105,42 @@
|
|
|
104
105
|
margin-left: 0;
|
|
105
106
|
}
|
|
106
107
|
|
|
107
|
-
|
|
108
|
+
.calendars {
|
|
109
|
+
display: flex;
|
|
110
|
+
flex-wrap: nowrap;
|
|
111
|
+
gap: --spacing(200);
|
|
112
|
+
min-width: -moz-max-content;
|
|
113
|
+
min-width: max-content;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.calendar-preselection-panel {
|
|
117
|
+
background-color: rgb(var(--tone-neutral-09));
|
|
118
|
+
border-radius: 0.5rem;
|
|
119
|
+
box-sizing: border-box;
|
|
120
|
+
display: grid;
|
|
121
|
+
align-content: start;
|
|
122
|
+
min-inline-size: -moz-max-content;
|
|
123
|
+
min-inline-size: max-content;
|
|
124
|
+
padding: 1rem;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.calendar-single {
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-wrap: nowrap;
|
|
130
|
+
gap: --spacing(200);
|
|
108
131
|
min-width: -moz-max-content;
|
|
109
132
|
min-width: max-content;
|
|
110
133
|
}
|
|
111
134
|
|
|
135
|
+
.calendar-single mds-calendar,
|
|
136
|
+
.calendars mds-calendar {
|
|
137
|
+
flex: 0 0 var(--mds-input-date-range-calendar-width);
|
|
138
|
+
inline-size: var(--mds-input-date-range-calendar-width);
|
|
139
|
+
max-inline-size: var(--mds-input-date-range-calendar-width);
|
|
140
|
+
min-inline-size: var(--mds-input-date-range-calendar-width);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
|
|
112
144
|
.action-open-calendar {
|
|
113
145
|
--mds-button-color: rgb(var(--mds-input-date-range-icon-color));
|
|
114
146
|
|