@momentum-ui/web-components 2.17.15 → 2.18.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/109.js +11 -0
- package/dist/1107.js +1 -0
- package/dist/1200.js +26 -0
- package/dist/1250.js +1 -0
- package/dist/1270.js +1 -0
- package/dist/1323.js +26 -0
- package/dist/1392.js +1 -0
- package/dist/1439.js +1 -0
- package/dist/144.js +1 -0
- package/dist/1572.js +1 -0
- package/dist/1598.js +1 -0
- package/dist/1625.js +1 -0
- package/dist/1705.js +1 -0
- package/dist/182.js +1 -0
- package/dist/1869.js +1 -0
- package/dist/1890.js +1 -0
- package/dist/195.js +1 -0
- package/dist/2019.js +1 -0
- package/dist/2043.js +1 -0
- package/dist/2176.js +1 -0
- package/dist/2215.js +1 -0
- package/dist/2243.js +1 -0
- package/dist/2547.js +218 -0
- package/dist/2576.js +1 -0
- package/dist/2798.js +1 -0
- package/dist/2972.js +1 -0
- package/dist/2984.js +1 -0
- package/dist/300.js +1 -0
- package/dist/3001.js +1 -0
- package/dist/3112.js +1 -0
- package/dist/3135.js +1 -0
- package/dist/3192.js +23 -0
- package/dist/3553.js +1 -0
- package/dist/3604.js +1 -0
- package/dist/3625.js +1 -0
- package/dist/3663.js +1 -0
- package/dist/3866.js +1 -0
- package/dist/4006.js +1 -0
- package/dist/4392.js +1 -0
- package/dist/4400.js +1 -0
- package/dist/4548.js +1 -0
- package/dist/4624.js +1 -0
- package/dist/4663.js +1 -0
- package/dist/4974.js +1 -0
- package/dist/4977.js +1 -0
- package/dist/5211.js +1 -0
- package/dist/528.js +12 -0
- package/dist/5382.js +1 -0
- package/dist/{chunks/md-2.js → 5433.js} +1 -1
- package/dist/5467.js +1 -0
- package/dist/573.js +1 -0
- package/dist/5801.js +22 -0
- package/dist/587.js +1 -0
- package/dist/591.js +1 -0
- package/dist/6015.js +1 -0
- package/dist/6067.js +1 -0
- package/dist/6272.js +1 -0
- package/dist/6273.js +45 -0
- package/dist/630.js +1 -0
- package/dist/6325.js +1 -0
- package/dist/6366.js +1 -0
- package/dist/6396.js +9 -0
- package/dist/6400.js +1 -0
- package/dist/6408.js +124 -0
- package/dist/6441.js +1 -0
- package/dist/6652.js +47 -0
- package/dist/6677.js +1 -0
- package/dist/6700.js +1 -0
- package/dist/671.js +1 -0
- package/dist/6754.js +17 -0
- package/dist/6795.js +1 -0
- package/dist/6798.js +77 -0
- package/dist/6875.js +1 -0
- package/dist/6979.js +1 -0
- package/dist/7030.js +1 -0
- package/dist/7092.js +1 -0
- package/dist/7103.js +1 -0
- package/dist/7251.js +1 -0
- package/dist/7330.js +1 -0
- package/dist/7502.js +1 -0
- package/dist/754.js +1 -0
- package/dist/76.js +1 -0
- package/dist/768.js +1 -0
- package/dist/7719.js +1 -0
- package/dist/7763.js +1 -0
- package/dist/779.js +1 -0
- package/dist/7814.js +8 -0
- package/dist/7833.js +1 -0
- package/dist/7875.js +1 -0
- package/dist/7919.js +1 -0
- package/dist/8028.js +44 -0
- package/dist/8171.js +16 -0
- package/dist/8210.js +1 -0
- package/dist/8227.js +1 -0
- package/dist/8373.js +1 -0
- package/dist/8387.js +1 -0
- package/dist/8521.js +1 -0
- package/dist/8728.js +1 -0
- package/dist/8841.js +1 -0
- package/dist/8889.js +1 -0
- package/dist/9058.js +1 -0
- package/dist/9618.js +1 -0
- package/dist/9719.js +1 -0
- package/dist/9788.js +7 -0
- package/dist/9813.js +1 -0
- package/dist/984.js +8 -0
- package/dist/assets/styles/fonts.css +13 -0
- package/dist/chunks/md-1012.js +1 -0
- package/dist/chunks/md-1036.js +1 -0
- package/dist/chunks/md-108.js +1 -1
- package/dist/chunks/md-1180.js +1 -0
- package/dist/chunks/md-1192.js +1 -0
- package/dist/chunks/md-1297.js +1 -0
- package/dist/chunks/md-1352.js +1 -0
- package/dist/chunks/md-1497.js +1 -0
- package/dist/chunks/md-1519.js +1 -0
- package/dist/chunks/md-1533.js +1 -0
- package/dist/chunks/md-1679.js +1 -0
- package/dist/chunks/md-1786.js +1 -0
- package/dist/chunks/md-181.js +1 -1
- package/dist/chunks/md-1870.js +1 -0
- package/dist/chunks/md-1942.js +1 -0
- package/dist/chunks/md-1983.js +1 -0
- package/dist/chunks/md-2052.js +1 -0
- package/dist/chunks/md-2086.js +1 -0
- package/dist/chunks/md-2224.js +1 -0
- package/dist/chunks/md-2241.js +1 -0
- package/dist/chunks/md-2292.js +1 -0
- package/dist/chunks/md-2329.js +1 -0
- package/dist/chunks/md-2402.js +1 -0
- package/dist/chunks/md-2539.js +1 -0
- package/dist/chunks/md-258.js +1 -1
- package/dist/chunks/md-2670.js +1 -0
- package/dist/chunks/md-2698.js +1 -0
- package/dist/chunks/md-2701.js +1 -0
- package/dist/chunks/md-2731.js +1 -0
- package/dist/chunks/md-279.js +1 -1
- package/dist/chunks/md-2825.js +1 -0
- package/dist/chunks/md-2896.js +1 -0
- package/dist/chunks/md-2904.js +1 -0
- package/dist/chunks/md-2923.js +1 -0
- package/dist/chunks/md-2962.js +1 -0
- package/dist/chunks/md-2970.js +1 -0
- package/dist/chunks/md-2978.js +1 -0
- package/dist/chunks/md-3035.js +1 -0
- package/dist/chunks/md-3105.js +1 -0
- package/dist/chunks/md-3195.js +1 -0
- package/dist/chunks/md-3206.js +1 -0
- package/dist/chunks/md-3231.js +1 -0
- package/dist/chunks/md-3255.js +1 -0
- package/dist/chunks/md-3270.js +1 -0
- package/dist/chunks/md-3315.js +1 -0
- package/dist/chunks/md-3399.js +1 -0
- package/dist/chunks/md-3402.js +1 -0
- package/dist/chunks/md-3409.js +1 -0
- package/dist/chunks/md-3447.js +1 -0
- package/dist/chunks/md-3458.js +1 -0
- package/dist/chunks/md-3543.js +1 -0
- package/dist/chunks/md-3557.js +1 -0
- package/dist/chunks/md-3618.js +1 -0
- package/dist/chunks/md-364.js +1 -0
- package/dist/chunks/md-3666.js +1 -0
- package/dist/chunks/md-3712.js +1 -0
- package/dist/chunks/md-3732.js +1 -0
- package/dist/chunks/md-3838.js +1 -0
- package/dist/chunks/md-4058.js +1 -0
- package/dist/chunks/md-4108.js +1 -0
- package/dist/chunks/md-4113.js +1 -0
- package/dist/chunks/md-4125.js +1 -0
- package/dist/chunks/md-414.js +1 -0
- package/dist/chunks/md-4177.js +1 -0
- package/dist/chunks/md-4205.js +1 -0
- package/dist/chunks/md-431.js +1 -0
- package/dist/chunks/md-4321.js +1 -0
- package/dist/chunks/md-436.js +1 -0
- package/dist/chunks/md-4412.js +1 -0
- package/dist/chunks/md-4460.js +1 -0
- package/dist/chunks/md-4490.js +1 -0
- package/dist/chunks/md-4561.js +1 -0
- package/dist/chunks/md-4564.js +1 -0
- package/dist/chunks/md-4608.js +1 -0
- package/dist/chunks/md-4635.js +1 -0
- package/dist/chunks/md-4659.js +1 -0
- package/dist/chunks/md-4701.js +1 -0
- package/dist/chunks/md-4714.js +1 -0
- package/dist/chunks/md-4745.js +1 -0
- package/dist/chunks/md-4893.js +1 -0
- package/dist/chunks/md-4896.js +1 -0
- package/dist/chunks/md-4904.js +1 -0
- package/dist/chunks/md-5076.js +1 -0
- package/dist/chunks/md-5089.js +1 -0
- package/dist/chunks/md-5093.js +1 -0
- package/dist/chunks/md-5117.js +1 -0
- package/dist/chunks/md-5133.js +1 -0
- package/dist/chunks/md-5320.js +1 -0
- package/dist/chunks/md-5331.js +1 -0
- package/dist/chunks/md-5344.js +1 -0
- package/dist/chunks/md-5439.js +1 -0
- package/dist/chunks/md-5449.js +1 -0
- package/dist/chunks/md-5468.js +1 -0
- package/dist/chunks/md-5506.js +1 -0
- package/dist/chunks/md-5579.js +1 -0
- package/dist/chunks/md-5610.js +1 -0
- package/dist/chunks/md-5617.js +1 -0
- package/dist/chunks/md-5672.js +1 -0
- package/dist/chunks/md-5754.js +1 -0
- package/dist/chunks/md-5772.js +1 -0
- package/dist/chunks/md-5790.js +1 -0
- package/dist/chunks/md-581.js +1 -0
- package/dist/chunks/md-5812.js +1 -0
- package/dist/chunks/md-5814.js +1 -0
- package/dist/chunks/md-5892.js +1 -0
- package/dist/chunks/md-593.js +1 -0
- package/dist/chunks/md-5976.js +1 -0
- package/dist/chunks/md-6023.js +1 -0
- package/dist/chunks/md-6033.js +1 -0
- package/dist/chunks/md-6122.js +1 -0
- package/dist/chunks/md-6269.js +1 -0
- package/dist/chunks/md-634.js +1 -0
- package/dist/chunks/md-6384.js +1 -0
- package/dist/chunks/md-6414.js +1 -0
- package/dist/chunks/md-6427.js +1 -0
- package/dist/chunks/md-6478.js +1 -0
- package/dist/chunks/md-6503.js +1 -0
- package/dist/chunks/md-6571.js +1 -0
- package/dist/chunks/md-6617.js +1 -0
- package/dist/chunks/md-6685.js +1 -0
- package/dist/chunks/md-6722.js +1 -0
- package/dist/chunks/md-6756.js +1 -0
- package/dist/chunks/md-6809.js +1 -0
- package/dist/chunks/md-6891.js +1 -0
- package/dist/chunks/md-7003.js +1 -0
- package/dist/chunks/md-7005.js +1 -0
- package/dist/chunks/md-7015.js +1 -0
- package/dist/chunks/md-7040.js +1 -0
- package/dist/chunks/md-7044.js +1 -0
- package/dist/chunks/md-7053.js +1 -0
- package/dist/chunks/md-7186.js +1 -0
- package/dist/chunks/md-7192.js +1 -0
- package/dist/chunks/md-7204.js +1 -0
- package/dist/chunks/md-7220.js +1 -0
- package/dist/chunks/md-7246.js +1 -0
- package/dist/chunks/md-7285.js +1 -0
- package/dist/chunks/md-7292.js +1 -0
- package/dist/chunks/md-736.js +1 -0
- package/dist/chunks/md-7492.js +1 -0
- package/dist/chunks/md-7522.js +1 -0
- package/dist/chunks/md-7533.js +1 -0
- package/dist/chunks/md-7556.js +1 -0
- package/dist/chunks/md-7601.js +1 -0
- package/dist/chunks/md-7909.js +1 -0
- package/dist/chunks/md-7918.js +1 -0
- package/dist/chunks/md-7939.js +1 -0
- package/dist/chunks/md-8100.js +1 -0
- package/dist/chunks/md-8103.js +1 -0
- package/dist/chunks/md-8126.js +1 -0
- package/dist/chunks/md-8130.js +1 -0
- package/dist/chunks/md-8186.js +1 -0
- package/dist/chunks/md-8199.js +1 -0
- package/dist/chunks/md-8206.js +1 -0
- package/dist/chunks/md-8254.js +1 -0
- package/dist/chunks/md-8327.js +1 -0
- package/dist/chunks/md-8333.js +1 -0
- package/dist/chunks/md-8385.js +1 -0
- package/dist/chunks/md-8425.js +1 -0
- package/dist/chunks/md-8451.js +1 -0
- package/dist/chunks/md-8454.js +1 -0
- package/dist/chunks/md-8514.js +1 -0
- package/dist/chunks/md-8557.js +1 -0
- package/dist/chunks/md-8670.js +1 -0
- package/dist/chunks/md-8713.js +1 -0
- package/dist/chunks/md-8811.js +1 -0
- package/dist/chunks/md-8891.js +1 -0
- package/dist/chunks/md-9040.js +1 -0
- package/dist/chunks/md-9081.js +1 -0
- package/dist/chunks/md-9104.js +1 -0
- package/dist/chunks/md-9115.js +1 -0
- package/dist/chunks/md-9129.js +1 -0
- package/dist/chunks/md-9139.js +1 -0
- package/dist/chunks/md-9156.js +1 -0
- package/dist/chunks/md-9277.js +1 -0
- package/dist/chunks/md-9350.js +1 -0
- package/dist/chunks/md-9387.js +1 -0
- package/dist/chunks/md-9405.js +1 -0
- package/dist/chunks/md-9407.js +1 -0
- package/dist/chunks/md-9412.js +1 -0
- package/dist/chunks/md-9428.js +1 -0
- package/dist/chunks/md-9433.js +1 -0
- package/dist/chunks/md-945.js +1 -0
- package/dist/chunks/md-9497.js +1 -0
- package/dist/chunks/md-9559.js +1 -0
- package/dist/chunks/md-959.js +1 -0
- package/dist/chunks/md-9614.js +1 -0
- package/dist/chunks/md-9688.js +1 -0
- package/dist/chunks/md-9689.js +1 -0
- package/dist/chunks/md-9721.js +1 -0
- package/dist/chunks/md-9789.js +1 -0
- package/dist/chunks/md-9927.js +1 -0
- package/dist/chunks/md-9934.js +1 -0
- package/dist/chunks/md-9975.js +1 -0
- package/dist/chunks/md-9980.js +1 -0
- package/dist/comp/md-accordion-entry.js +5 -1
- package/dist/comp/md-accordion-item-entry.js +38 -1
- package/dist/comp/md-accordion-item.js +1 -15
- package/dist/comp/md-accordion.js +1 -11
- package/dist/comp/md-activity-button-entry.js +13 -1
- package/dist/comp/md-activity-button.js +1 -9
- package/dist/comp/md-advance-list-entry.js +35 -1
- package/dist/comp/md-advance-list.js +1 -7
- package/dist/comp/md-alert-banner-entry.js +36 -1
- package/dist/comp/md-alert-banner.js +1 -9
- package/dist/comp/md-alert-entry.js +156 -1
- package/dist/comp/md-alert.js +1 -10
- package/dist/comp/md-audio-player-entry.js +98 -1
- package/dist/comp/md-audio-player.js +1 -17
- package/dist/comp/md-avatar-entry.js +44 -1
- package/dist/comp/md-avatar.js +1 -11
- package/dist/comp/md-badge-entry.js +33 -1
- package/dist/comp/md-badge.js +1 -4
- package/dist/comp/md-breadcrumb-entry.js +11 -1
- package/dist/comp/md-breadcrumb.js +1 -4
- package/dist/comp/md-button-entry.js +77 -1
- package/dist/comp/md-button-group-entry.js +5 -1
- package/dist/comp/md-button-group.js +1 -10
- package/dist/comp/md-button.js +1 -6
- package/dist/comp/md-card-ai-entry.js +77 -1
- package/dist/comp/md-card-ai.js +1 -9
- package/dist/comp/md-card-entry.js +98 -1
- package/dist/comp/md-card.js +1 -23
- package/dist/comp/md-chat-message-entry.js +28 -1
- package/dist/comp/md-chat-message.js +1 -12
- package/dist/comp/md-checkbox-entry.js +14 -1
- package/dist/comp/md-checkbox.js +1 -11
- package/dist/comp/md-checkboxgroup-entry.js +5 -1
- package/dist/comp/md-checkboxgroup.js +1 -11
- package/dist/comp/md-chip-entry.js +71 -1
- package/dist/comp/md-chip.js +1 -14
- package/dist/comp/md-coachmark-entry.js +22 -1
- package/dist/comp/md-coachmark-popover-entry.js +72 -1
- package/dist/comp/md-coachmark-popover.js +1 -15
- package/dist/comp/md-coachmark.js +1 -13
- package/dist/comp/md-combobox-entry.js +218 -1
- package/dist/comp/md-combobox.js +1 -17
- package/dist/comp/md-composite-avatar-entry.js +5 -1
- package/dist/comp/md-composite-avatar.js +1 -5
- package/dist/comp/md-date-range-picker-entry.js +1 -1
- package/dist/comp/md-date-range-picker.js +1 -26
- package/dist/comp/md-date-time-picker-entry.js +24 -1
- package/dist/comp/md-date-time-picker.js +1 -19
- package/dist/comp/md-datepicker-calendar-entry.js +47 -1
- package/dist/comp/md-datepicker-calendar.js +1 -14
- package/dist/comp/md-datepicker-day-entry.js +17 -1
- package/dist/comp/md-datepicker-day.js +1 -9
- package/dist/comp/md-datepicker-entry.js +45 -1
- package/dist/comp/md-datepicker-month-entry.js +8 -1
- package/dist/comp/md-datepicker-month.js +1 -11
- package/dist/comp/md-datepicker-week-entry.js +8 -1
- package/dist/comp/md-datepicker-week.js +1 -10
- package/dist/comp/md-datepicker.js +1 -25
- package/dist/comp/md-draggable-entry.js +5 -1
- package/dist/comp/md-draggable-item-entry.js +11 -1
- package/dist/comp/md-draggable-item.js +1 -11
- package/dist/comp/md-draggable.js +1 -12
- package/dist/comp/md-dropdown-entry.js +138 -1
- package/dist/comp/md-dropdown.js +1 -15
- package/dist/comp/md-editable-field-entry.js +153 -1
- package/dist/comp/md-editable-field.js +1 -15
- package/dist/comp/md-favorite-entry.js +23 -1
- package/dist/comp/md-favorite.js +1 -14
- package/dist/comp/md-floating-minimize-entry.js +30 -1
- package/dist/comp/md-floating-minimize.js +1 -15
- package/dist/comp/md-floating-modal-entry.js +99 -1
- package/dist/comp/md-floating-modal.js +1 -16
- package/dist/comp/md-form-entry.js +19 -1
- package/dist/comp/md-form.js +1 -9
- package/dist/comp/md-grabber-entry.js +22 -1
- package/dist/comp/md-grabber.js +1 -15
- package/dist/comp/md-help-text-entry.js +11 -1
- package/dist/comp/md-help-text.js +1 -4
- package/dist/comp/md-icon-entry.js +26 -1
- package/dist/comp/md-icon.js +1 -8
- package/dist/comp/md-inpu.js +1 -12
- package/dist/comp/md-input-entry.js +124 -1
- package/dist/comp/md-input-file.js +17 -1
- package/dist/comp/md-input.js +1 -13
- package/dist/comp/md-label-entry.js +9 -1
- package/dist/comp/md-label.js +1 -4
- package/dist/comp/md-link-entry.js +36 -1
- package/dist/comp/md-link.js +1 -4
- package/dist/comp/md-list-entry.js +5 -1
- package/dist/comp/md-list-item-entry.js +5 -1
- package/dist/comp/md-list-item.js +1 -11
- package/dist/comp/md-list.js +1 -11
- package/dist/comp/md-loading-entry.js +7 -1
- package/dist/comp/md-loading.js +1 -4
- package/dist/comp/md-meeting-alert-entry.js +55 -1
- package/dist/comp/md-meeting-alert.js +1 -12
- package/dist/comp/md-menu-entry.js +7 -1
- package/dist/comp/md-menu-item-entry.js +16 -1
- package/dist/comp/md-menu-item.js +1 -4
- package/dist/comp/md-menu-overlay-entry.js +26 -1
- package/dist/comp/md-menu-overlay.js +1 -9
- package/dist/comp/md-menu.js +1 -8
- package/dist/comp/md-modal-entry.js +73 -1
- package/dist/comp/md-modal.js +1 -15
- package/dist/comp/md-pagination-entry.js +78 -1
- package/dist/comp/md-pagination.js +1 -9
- package/dist/comp/md-phone-input-entry.js +71 -1
- package/dist/comp/md-phone-input.js +1 -20
- package/dist/comp/md-popover-entry.js +26 -1
- package/dist/comp/md-popover.js +1 -14
- package/dist/comp/md-progress-bar-entry.js +21 -1
- package/dist/comp/md-progress-bar.js +1 -4
- package/dist/comp/md-radio-entry.js +17 -1
- package/dist/comp/md-radio.js +1 -11
- package/dist/comp/md-radiogroup-entry.js +5 -1
- package/dist/comp/md-radiogroup.js +1 -11
- package/dist/comp/md-slider-entry.js +19 -1
- package/dist/comp/md-slider.js +1 -10
- package/dist/comp/md-spinner-entry.js +1 -1
- package/dist/comp/md-spinner.js +1 -4
- package/dist/comp/md-tab-entry.js +27 -1
- package/dist/comp/md-tab-panel-entry.js +1 -1
- package/dist/comp/md-tab-panel.js +1 -11
- package/dist/comp/md-tab.js +1 -11
- package/dist/comp/md-table-advanced-entry.js +168 -1
- package/dist/comp/md-table-advanced.js +1 -15
- package/dist/comp/md-table-entry.js +43 -1
- package/dist/comp/md-table.js +1 -9
- package/dist/comp/md-tabs-entry.js +129 -1
- package/dist/comp/md-tabs.js +1 -22
- package/dist/comp/md-task-item-entry.js +114 -1
- package/dist/comp/md-task-item.js +1 -10
- package/dist/comp/md-theme-entry.js +12 -1
- package/dist/comp/md-theme.js +1 -4
- package/dist/comp/md-timepicker-entry.js +45 -1
- package/dist/comp/md-timepicker.js +1 -22
- package/dist/comp/md-toggle-switch-entry.js +34 -1
- package/dist/comp/md-toggle-switch.js +1 -11
- package/dist/comp/md-tooltip-entry.js +23 -1
- package/dist/comp/md-tooltip.js +1 -12
- package/dist/index-entry.js +2615 -2
- package/dist/index.js +1 -94
- package/dist/managers/thememanager-entry.js +1 -1
- package/dist/managers/thememanager.js +1 -2
- package/dist/types/components/accordion/Accordion.d.ts +2 -2
- package/dist/types/components/card-ai/CardAi.d.ts +2 -0
- package/dist/types/components/date-range-picker/DateRangePicker.d.ts +3 -4
- package/dist/types/components/date-time-picker/DateTimePicker.d.ts +6 -7
- package/dist/types/components/datepicker/DatePicker.d.ts +1 -1
- package/dist/types/components/datepicker/datepicker-calendar/DatePickerCalendar.d.ts +3 -1
- package/dist/types/components/datepicker/datepicker-day/DatePickerDay.d.ts +1 -1
- package/dist/types/components/input/Input.d.ts +1 -0
- package/dist/types/components/timepicker/TimePicker.d.ts +1 -2
- package/dist/types/utils/dateUtils.d.ts +19 -4
- package/package.json +6 -6
- package/dist/chunks/md-0.js +0 -1
- package/dist/chunks/md-1.js +0 -1
- package/dist/chunks/md-10.js +0 -1
- package/dist/chunks/md-100.js +0 -1
- package/dist/chunks/md-101.js +0 -1
- package/dist/chunks/md-102.js +0 -1
- package/dist/chunks/md-103.js +0 -1
- package/dist/chunks/md-104.js +0 -1
- package/dist/chunks/md-105.js +0 -1
- package/dist/chunks/md-106.js +0 -1
- package/dist/chunks/md-107.js +0 -1
- package/dist/chunks/md-109.js +0 -1
- package/dist/chunks/md-11.js +0 -1
- package/dist/chunks/md-110.js +0 -1
- package/dist/chunks/md-111.js +0 -1
- package/dist/chunks/md-112.js +0 -1
- package/dist/chunks/md-113.js +0 -1
- package/dist/chunks/md-114.js +0 -1
- package/dist/chunks/md-115.js +0 -1
- package/dist/chunks/md-116.js +0 -1
- package/dist/chunks/md-117.js +0 -1
- package/dist/chunks/md-118.js +0 -1
- package/dist/chunks/md-119.js +0 -1
- package/dist/chunks/md-12.js +0 -1
- package/dist/chunks/md-120.js +0 -1
- package/dist/chunks/md-121.js +0 -1
- package/dist/chunks/md-122.js +0 -1
- package/dist/chunks/md-123.js +0 -1
- package/dist/chunks/md-124.js +0 -1
- package/dist/chunks/md-125.js +0 -1
- package/dist/chunks/md-126.js +0 -1
- package/dist/chunks/md-127.js +0 -1
- package/dist/chunks/md-128.js +0 -1
- package/dist/chunks/md-129.js +0 -1
- package/dist/chunks/md-13.js +0 -1
- package/dist/chunks/md-130.js +0 -1
- package/dist/chunks/md-131.js +0 -1
- package/dist/chunks/md-132.js +0 -1
- package/dist/chunks/md-133.js +0 -1
- package/dist/chunks/md-134.js +0 -1
- package/dist/chunks/md-135.js +0 -1
- package/dist/chunks/md-136.js +0 -1
- package/dist/chunks/md-137.js +0 -1
- package/dist/chunks/md-138.js +0 -1
- package/dist/chunks/md-139.js +0 -1
- package/dist/chunks/md-14.js +0 -11
- package/dist/chunks/md-140.js +0 -1
- package/dist/chunks/md-141.js +0 -1
- package/dist/chunks/md-142.js +0 -1
- package/dist/chunks/md-143.js +0 -1
- package/dist/chunks/md-144.js +0 -1
- package/dist/chunks/md-145.js +0 -1
- package/dist/chunks/md-146.js +0 -1
- package/dist/chunks/md-147.js +0 -1
- package/dist/chunks/md-148.js +0 -1
- package/dist/chunks/md-149.js +0 -1
- package/dist/chunks/md-15.js +0 -9
- package/dist/chunks/md-150.js +0 -1
- package/dist/chunks/md-151.js +0 -1
- package/dist/chunks/md-152.js +0 -1
- package/dist/chunks/md-153.js +0 -1
- package/dist/chunks/md-154.js +0 -1
- package/dist/chunks/md-155.js +0 -1
- package/dist/chunks/md-156.js +0 -1
- package/dist/chunks/md-157.js +0 -1
- package/dist/chunks/md-158.js +0 -1
- package/dist/chunks/md-159.js +0 -1
- package/dist/chunks/md-16.js +0 -1
- package/dist/chunks/md-160.js +0 -1
- package/dist/chunks/md-161.js +0 -1
- package/dist/chunks/md-162.js +0 -1
- package/dist/chunks/md-163.js +0 -1
- package/dist/chunks/md-164.js +0 -1
- package/dist/chunks/md-165.js +0 -1
- package/dist/chunks/md-166.js +0 -1
- package/dist/chunks/md-167.js +0 -1
- package/dist/chunks/md-168.js +0 -1
- package/dist/chunks/md-169.js +0 -1
- package/dist/chunks/md-17.js +0 -26
- package/dist/chunks/md-170.js +0 -1
- package/dist/chunks/md-171.js +0 -1
- package/dist/chunks/md-172.js +0 -1
- package/dist/chunks/md-173.js +0 -1
- package/dist/chunks/md-174.js +0 -1
- package/dist/chunks/md-175.js +0 -1
- package/dist/chunks/md-176.js +0 -1
- package/dist/chunks/md-177.js +0 -1
- package/dist/chunks/md-178.js +0 -1
- package/dist/chunks/md-179.js +0 -1
- package/dist/chunks/md-18.js +0 -124
- package/dist/chunks/md-180.js +0 -1
- package/dist/chunks/md-182.js +0 -1
- package/dist/chunks/md-183.js +0 -1
- package/dist/chunks/md-184.js +0 -1
- package/dist/chunks/md-185.js +0 -1
- package/dist/chunks/md-186.js +0 -1
- package/dist/chunks/md-187.js +0 -1
- package/dist/chunks/md-188.js +0 -1
- package/dist/chunks/md-189.js +0 -1
- package/dist/chunks/md-19.js +0 -1
- package/dist/chunks/md-190.js +0 -1
- package/dist/chunks/md-191.js +0 -1
- package/dist/chunks/md-192.js +0 -1
- package/dist/chunks/md-193.js +0 -1
- package/dist/chunks/md-194.js +0 -1
- package/dist/chunks/md-195.js +0 -1
- package/dist/chunks/md-196.js +0 -1
- package/dist/chunks/md-197.js +0 -1
- package/dist/chunks/md-198.js +0 -1
- package/dist/chunks/md-199.js +0 -1
- package/dist/chunks/md-20.js +0 -17
- package/dist/chunks/md-200.js +0 -1
- package/dist/chunks/md-201.js +0 -1
- package/dist/chunks/md-202.js +0 -1
- package/dist/chunks/md-203.js +0 -1
- package/dist/chunks/md-204.js +0 -1
- package/dist/chunks/md-205.js +0 -1
- package/dist/chunks/md-206.js +0 -1
- package/dist/chunks/md-207.js +0 -1
- package/dist/chunks/md-208.js +0 -1
- package/dist/chunks/md-209.js +0 -1
- package/dist/chunks/md-21.js +0 -23
- package/dist/chunks/md-210.js +0 -1
- package/dist/chunks/md-211.js +0 -1
- package/dist/chunks/md-212.js +0 -1
- package/dist/chunks/md-213.js +0 -1
- package/dist/chunks/md-214.js +0 -1
- package/dist/chunks/md-215.js +0 -1
- package/dist/chunks/md-216.js +0 -1
- package/dist/chunks/md-217.js +0 -1
- package/dist/chunks/md-218.js +0 -1
- package/dist/chunks/md-219.js +0 -1
- package/dist/chunks/md-22.js +0 -8
- package/dist/chunks/md-220.js +0 -1
- package/dist/chunks/md-221.js +0 -1
- package/dist/chunks/md-222.js +0 -1
- package/dist/chunks/md-223.js +0 -1
- package/dist/chunks/md-224.js +0 -1
- package/dist/chunks/md-225.js +0 -1
- package/dist/chunks/md-226.js +0 -1
- package/dist/chunks/md-227.js +0 -1
- package/dist/chunks/md-228.js +0 -1
- package/dist/chunks/md-229.js +0 -1
- package/dist/chunks/md-23.js +0 -1
- package/dist/chunks/md-230.js +0 -1
- package/dist/chunks/md-231.js +0 -1
- package/dist/chunks/md-232.js +0 -1
- package/dist/chunks/md-233.js +0 -1
- package/dist/chunks/md-234.js +0 -1
- package/dist/chunks/md-235.js +0 -1
- package/dist/chunks/md-236.js +0 -1
- package/dist/chunks/md-237.js +0 -1
- package/dist/chunks/md-238.js +0 -1
- package/dist/chunks/md-239.js +0 -1
- package/dist/chunks/md-24.js +0 -1
- package/dist/chunks/md-240.js +0 -1
- package/dist/chunks/md-241.js +0 -1
- package/dist/chunks/md-242.js +0 -1
- package/dist/chunks/md-243.js +0 -1
- package/dist/chunks/md-244.js +0 -1
- package/dist/chunks/md-245.js +0 -1
- package/dist/chunks/md-246.js +0 -1
- package/dist/chunks/md-247.js +0 -1
- package/dist/chunks/md-248.js +0 -1
- package/dist/chunks/md-249.js +0 -1
- package/dist/chunks/md-25.js +0 -7
- package/dist/chunks/md-250.js +0 -1
- package/dist/chunks/md-251.js +0 -1
- package/dist/chunks/md-252.js +0 -1
- package/dist/chunks/md-253.js +0 -1
- package/dist/chunks/md-254.js +0 -1
- package/dist/chunks/md-255.js +0 -1
- package/dist/chunks/md-256.js +0 -1
- package/dist/chunks/md-257.js +0 -1
- package/dist/chunks/md-259.js +0 -1
- package/dist/chunks/md-26.js +0 -8
- package/dist/chunks/md-260.js +0 -1
- package/dist/chunks/md-261.js +0 -1
- package/dist/chunks/md-262.js +0 -1
- package/dist/chunks/md-263.js +0 -1
- package/dist/chunks/md-264.js +0 -1
- package/dist/chunks/md-265.js +0 -1
- package/dist/chunks/md-266.js +0 -1
- package/dist/chunks/md-267.js +0 -1
- package/dist/chunks/md-268.js +0 -1
- package/dist/chunks/md-269.js +0 -1
- package/dist/chunks/md-27.js +0 -1
- package/dist/chunks/md-270.js +0 -1
- package/dist/chunks/md-271.js +0 -1
- package/dist/chunks/md-272.js +0 -1
- package/dist/chunks/md-273.js +0 -1
- package/dist/chunks/md-274.js +0 -1
- package/dist/chunks/md-275.js +0 -1
- package/dist/chunks/md-276.js +0 -1
- package/dist/chunks/md-277.js +0 -1
- package/dist/chunks/md-278.js +0 -1
- package/dist/chunks/md-28.js +0 -1
- package/dist/chunks/md-280.js +0 -1
- package/dist/chunks/md-281.js +0 -1
- package/dist/chunks/md-282.js +0 -1
- package/dist/chunks/md-283.js +0 -1
- package/dist/chunks/md-29.js +0 -55
- package/dist/chunks/md-3.js +0 -1
- package/dist/chunks/md-30.js +0 -1
- package/dist/chunks/md-31.js +0 -216
- package/dist/chunks/md-32.js +0 -49
- package/dist/chunks/md-33.js +0 -1
- package/dist/chunks/md-34.js +0 -1
- package/dist/chunks/md-35.js +0 -36
- package/dist/chunks/md-36.js +0 -33
- package/dist/chunks/md-37.js +0 -23
- package/dist/chunks/md-38.js +0 -5
- package/dist/chunks/md-39.js +0 -5
- package/dist/chunks/md-4.js +0 -1
- package/dist/chunks/md-40.js +0 -1
- package/dist/chunks/md-41.js +0 -21
- package/dist/chunks/md-42.js +0 -26
- package/dist/chunks/md-43.js +0 -44
- package/dist/chunks/md-44.js +0 -1
- package/dist/chunks/md-45.js +0 -30
- package/dist/chunks/md-46.js +0 -16
- package/dist/chunks/md-47.js +0 -1
- package/dist/chunks/md-48.js +0 -27
- package/dist/chunks/md-49.js +0 -5
- package/dist/chunks/md-5.js +0 -1
- package/dist/chunks/md-50.js +0 -38
- package/dist/chunks/md-51.js +0 -13
- package/dist/chunks/md-52.js +0 -35
- package/dist/chunks/md-53.js +0 -36
- package/dist/chunks/md-54.js +0 -121
- package/dist/chunks/md-55.js +0 -98
- package/dist/chunks/md-56.js +0 -11
- package/dist/chunks/md-57.js +0 -5
- package/dist/chunks/md-58.js +0 -77
- package/dist/chunks/md-59.js +0 -68
- package/dist/chunks/md-6.js +0 -1
- package/dist/chunks/md-60.js +0 -28
- package/dist/chunks/md-61.js +0 -14
- package/dist/chunks/md-62.js +0 -5
- package/dist/chunks/md-63.js +0 -51
- package/dist/chunks/md-64.js +0 -22
- package/dist/chunks/md-65.js +0 -47
- package/dist/chunks/md-66.js +0 -5
- package/dist/chunks/md-67.js +0 -1
- package/dist/chunks/md-68.js +0 -23
- package/dist/chunks/md-69.js +0 -5
- package/dist/chunks/md-7.js +0 -77
- package/dist/chunks/md-70.js +0 -11
- package/dist/chunks/md-71.js +0 -138
- package/dist/chunks/md-72.js +0 -30
- package/dist/chunks/md-73.js +0 -70
- package/dist/chunks/md-74.js +0 -19
- package/dist/chunks/md-75.js +0 -22
- package/dist/chunks/md-76.js +0 -17
- package/dist/chunks/md-77.js +0 -76
- package/dist/chunks/md-78.js +0 -7
- package/dist/chunks/md-79.js +0 -73
- package/dist/chunks/md-8.js +0 -1
- package/dist/chunks/md-80.js +0 -78
- package/dist/chunks/md-81.js +0 -71
- package/dist/chunks/md-82.js +0 -17
- package/dist/chunks/md-83.js +0 -5
- package/dist/chunks/md-84.js +0 -19
- package/dist/chunks/md-85.js +0 -1
- package/dist/chunks/md-86.js +0 -168
- package/dist/chunks/md-87.js +0 -43
- package/dist/chunks/md-88.js +0 -103
- package/dist/chunks/md-89.js +0 -82
- package/dist/chunks/md-9.js +0 -26
- package/dist/chunks/md-90.js +0 -12
- package/dist/chunks/md-91.js +0 -43
- package/dist/chunks/md-92.js +0 -34
- package/dist/chunks/md-93.js +0 -1
- package/dist/chunks/md-94.js +0 -1
- package/dist/chunks/md-95.js +0 -1
- package/dist/chunks/md-96.js +0 -1
- package/dist/chunks/md-97.js +0 -1
- package/dist/chunks/md-98.js +0 -1
- package/dist/chunks/md-99.js +0 -1
|
@@ -1,12 +1 @@
|
|
|
1
|
-
require("../
|
|
2
|
-
require("../chunks/md-0");
|
|
3
|
-
require("../chunks/md-1");
|
|
4
|
-
require("../chunks/md-2");
|
|
5
|
-
require("../chunks/md-5");
|
|
6
|
-
require("../chunks/md-7");
|
|
7
|
-
require("../chunks/md-9");
|
|
8
|
-
require("../chunks/md-24");
|
|
9
|
-
require("../chunks/md-25");
|
|
10
|
-
require("../chunks/md-29");
|
|
11
|
-
require("../chunks/md-77");
|
|
12
|
-
module.exports = require("../comp/md-meeting-alert-entry");
|
|
1
|
+
require("../7502"),require("../1890"),require("../6272"),require("../6325"),require("../6875"),require("../2176"),require("../6798"),require("../9813"),require("../1200"),require("../2576"),require("../3553"),require("../6700"),require("../528"),require("../9788"),require("../8028"),require("../5801"),module.exports=require("../comp/md-meeting-alert-entry");
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/class-map"),require("nanoid"),require("lit-html/directives/if-defined"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map","nanoid","lit-html/directives/if-defined"],t);else{var i="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/class-map"),require("nanoid"),require("lit-html/directives/if-defined")):t(e["lit-element"],e["lit-html/directives/class-map"],e.nanoid,e["lit-html/directives/if-defined"]);for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(self,((e,t,i,n)=>(()=>{"use strict";var s,r={23968:e=>{e.exports=t},41488:t=>{t.exports=e},84032:(e,t,i)=>{i.r(t),i.d(t,{MORE_MENU_ITEM_COPY_ID_PREFIX:()=>p,Menu:()=>v});var n=i(90195),s=i(31890),r=i(84624),o=i(68387),d=i(26272),l=i(41488),c=i(23968),a=i(98199),m=i(48171),h=i(49719),u=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t,i,n){return new(i||(i=Promise))((function(s,r){function o(e){try{l(n.next(e))}catch(e){r(e)}}function d(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,d)}l((n=n.apply(e,t||[])).next())}))};const p="more-menu-item-";var v;!function(e){let t=class extends((0,o.T)((0,r.I)(l.LitElement))){constructor(){super(...arguments),this.justified=!1,this.direction="horizontal",this.items=[],this.itemsHash={},this.itemsIdxHash={}}getNormalizedItemId(e){return e.replace(p,"")}static get styles(){return[d.A,h.A]}get slotItem(){return this.menuSlotElement}linkMenuItems(){return f(this,void 0,void 0,(function*(){const{items:e}=this;e.forEach(((e,t)=>{const i=(0,a.nanoid)();e.setAttribute("id",i),e.setAttribute("aria-controls",i),e.selected=this.selected===t})),this.itemsHash=this.items.reduce(((e,t)=>(e[t.id]=t,e)),{}),this.itemsIdxHash=this.items.reduce(((e,t,i)=>(e[t.id]=i,e)),{})}))}setupMenuItems(){if(this.menuSlotElement){const e=this.menuSlotElement.assignedElements({flatten:!0});this.getChildrenFromTree({children:e},this.items)}}getChildrenFromTree(e,t){e.children.forEach((e=>{e instanceof m.MenuItem.ELEMENT&&t.push(e),this.getChildrenFromTree({children:Array.from(e.children)},t)}))}updateSelectedItem(e){const t=this.slotted.findIndex((e=>e.hasAttribute("selected")));t!==e&&(this.items&&[t,e].forEach((e=>{const t=this.items[e];t&&t.toggleAttribute("selected")})),this.dispatchEvent(new CustomEvent("selected-menu-item",{detail:{value:e},composed:!0,bubbles:!0})),this.changeSelectedItemIdx(e))}changeSelectedItemIdx(e){this.selected=e}handleItemClick(e){const{id:t}=e.detail,i=this.itemsHash[this.getNormalizedItemId(t)];if(i&&!i.disabled){const e=this.itemsIdxHash[i.id];-1!==e&&this.updateSelectedItem(e)}}handleItemKeydown(e){const{key:t,id:i}=e.detail;switch(t){case n.Uz.End:this.changeSelectedItemIdx(this.items.length-1);break;case n.Uz.Home:this.changeSelectedItemIdx(0);break;case n.Uz.ArrowLeft:case n.Uz.ArrowUp:0===this.selected?this.changeSelectedItemIdx(this.items.length-1):this.changeSelectedItemIdx(this.selected-1);break;case n.Uz.ArrowRight:case n.Uz.ArrowDown:this.selected===this.items.length-1?this.changeSelectedItemIdx(0):this.changeSelectedItemIdx(this.selected+1);break;case n.Uz.Enter:case n.Uz.Space:const e=this.slotted.findIndex((e=>e.id===i&&!e.disabled));-1!==e&&this.updateSelectedItem(e)}}connectedCallback(){super.connectedCallback(),this.addEventListener("menu-item-click",this.handleItemClick),this.addEventListener("menu-item-keydown",this.handleItemKeydown)}updated(e){const t=Object.create(null,{updated:{get:()=>super.updated}});return f(this,void 0,void 0,(function*(){t.updated.call(this,e),e.has("slotted")&&(this.setupMenuItems(),this.linkMenuItems())}))}disconnectedCallback(){super.connectedCallback(),this.removeEventListener("menu-item-click",this.handleItemClick),this.removeEventListener("menu-item-keydown",this.handleItemKeydown)}get menuClassMap(){return{[`md-menu--${this.direction}`]:this.direction,justified:this.justified}}render(){return l.html`
|
|
2
|
+
<nav class="md-menu ${(0,c.classMap)(this.menuClassMap)}">
|
|
3
|
+
<ul class="md-menu-list">
|
|
4
|
+
<slot></slot>
|
|
5
|
+
</ul>
|
|
6
|
+
</nav>
|
|
7
|
+
`}};u([(0,l.property)({type:Boolean})],t.prototype,"justified",void 0),u([(0,l.property)({type:String})],t.prototype,"direction",void 0),u([(0,l.query)("slot")],t.prototype,"menuSlotElement",void 0),u([(0,l.query)("md-menu-overlay")],t.prototype,"menuSubElement",void 0),t=u([(0,s.w)("md-menu")],t),e.ELEMENT=t}(v||(v={}))},97822:e=>{e.exports=n},98199:e=>{e.exports=i}},o={};function d(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return r[e](i,i.exports,d),i.exports}d.m=r,s=[],d.O=(e,t,i,n)=>{if(!t){var r=1/0;for(a=0;a<s.length;a++){for(var[t,i,n]=s[a],o=!0,l=0;l<t.length;l++)(!1&n||r>=n)&&Object.keys(d.O).every((e=>d.O[e](t[l])))?t.splice(l--,1):(o=!1,n<r&&(r=n));if(o){s.splice(a--,1);var c=i();void 0!==c&&(e=c)}}return e}n=n||0;for(var a=s.length;a>0&&s[a-1][2]>n;a--)s[a]=s[a-1];s[a]=[t,i,n]},d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{for(var i in t)d.o(t,i)&&!d.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={1037:0};d.O.j=t=>0===e[t];var t=(t,i)=>{var n,s,[r,o,l]=i,c=0;if(r.some((t=>0!==e[t]))){for(n in o)d.o(o,n)&&(d.m[n]=o[n]);if(l)var a=l(d)}for(t&&t(i);c<r.length;c++)s=r[c],d.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return d.O(a)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var l=d.O(void 0,[1890,6272,2576,1270,2243,3625,9719,8171],(()=>d(84032)));return d.O(l)})()));
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map","lit-html/directives/if-defined"],t);else{var i="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined")):t(e["lit-element"],e["lit-html/directives/class-map"],e["lit-html/directives/if-defined"]);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(self,((e,t,i)=>(()=>{"use strict";var s,r={23968:e=>{e.exports=t},41488:t=>{t.exports=e},48171:(e,t,i)=>{i.r(t),i.d(t,{MenuItem:()=>s});var s,r=i(26272),l=i(31890),d=i(41488),n=i(23968),o=i(97822),a=i(49719),p=function(e,t,i,s){var r,l=arguments.length,d=l<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,t,i,s);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(d=(l<3?r(d):l>3?r(t,i,d):r(t,i))||d);return l>3&&d&&Object.defineProperty(t,i,d),d};!function(e){let t=class extends d.LitElement{constructor(){super(...arguments),this.href="",this.label="",this.tabIndex=-1,this._disabled=!1,this._selected=!1}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.setAttribute("aria-disabled",`${e}`),this.tabIndex=e?-1:0,this.requestUpdate("disabled",t)}get selected(){return this._selected}set selected(e){const t=this._selected;this._selected=e,e&&this.notifySelectedItem(),this.setAttribute("aria-selected",`${e}`),this.requestUpdate("selected",t)}static get styles(){return[r.A,a.A]}setupEvents(){this.addEventListener("mousedown",this.handleClick),this.addEventListener("keydown",this.handleKeyDown)}firstUpdated(e){super.firstUpdated(e),this.label&&this.setAttribute("aria-label",this.label),this.setupEvents()}update(e){super.update(e),e.has("disabled")&&(this.selected=!1,this.setAttribute("aria-disabled",`${this.disabled}`))}handleClick(e){e.preventDefault(),this.dispatchEvent(new CustomEvent("menu-item-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleKeyDown(e){this.dispatchEvent(new CustomEvent("menu-item-keydown",{detail:{id:this.id,key:e.code,srcEvent:e},bubbles:!0,composed:!0}))}notifySelectedItem(){this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}get menuItemClassMap(){return{"md-menu-item--selected":this.selected,disabled:this.disabled}}render(){return d.html`
|
|
2
|
+
<li
|
|
3
|
+
role="menuitem"
|
|
4
|
+
part="menu-item"
|
|
5
|
+
class="md-menu-item ${(0,n.classMap)(this.menuItemClassMap)}"
|
|
6
|
+
?disabled=${this.disabled}
|
|
7
|
+
tabindex="-1"
|
|
8
|
+
aria-hidden="true"
|
|
9
|
+
aria-selected="false"
|
|
10
|
+
aria-label=${(0,o.ifDefined)(this.label)}
|
|
11
|
+
>
|
|
12
|
+
<a href="${(0,o.ifDefined)(this.href||void 0)}">
|
|
13
|
+
<slot></slot>
|
|
14
|
+
</a>
|
|
15
|
+
</li>
|
|
16
|
+
`}};p([(0,d.property)({type:String})],t.prototype,"href",void 0),p([(0,d.property)({type:String})],t.prototype,"label",void 0),p([(0,d.property)({type:Number,reflect:!0})],t.prototype,"tabIndex",void 0),p([(0,d.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),p([(0,d.property)({type:Boolean,reflect:!0})],t.prototype,"selected",null),t=p([(0,l.w)("md-menu-item")],t),e.ELEMENT=t}(s||(s={}))},97822:e=>{e.exports=i}},l={};function d(e){var t=l[e];if(void 0!==t)return t.exports;var i=l[e]={exports:{}};return r[e](i,i.exports,d),i.exports}d.m=r,s=[],d.O=(e,t,i,r)=>{if(!t){var l=1/0;for(p=0;p<s.length;p++){for(var[t,i,r]=s[p],n=!0,o=0;o<t.length;o++)(!1&r||l>=r)&&Object.keys(d.O).every((e=>d.O[e](t[o])))?t.splice(o--,1):(n=!1,r<l&&(l=r));if(n){s.splice(p--,1);var a=i();void 0!==a&&(e=a)}}return e}r=r||0;for(var p=s.length;p>0&&s[p-1][2]>r;p--)s[p]=s[p-1];s[p]=[t,i,r]},d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{for(var i in t)d.o(t,i)&&!d.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={4825:0,8171:0};d.O.j=t=>0===e[t];var t=(t,i)=>{var s,r,[l,n,o]=i,a=0;if(l.some((t=>0!==e[t]))){for(s in n)d.o(n,s)&&(d.m[s]=n[s]);if(o)var p=o(d)}for(t&&t(i);a<l.length;a++)r=l[a],d.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return d.O(p)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var n=d.O(void 0,[1890,6272,9719],(()=>d(48171)));return d.O(n)})()));
|
|
@@ -1 +1,26 @@
|
|
|
1
|
-
!function(e,
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("lit-html/directives/if-defined"));else if("function"==typeof define&&define.amd)define(["lit-element","@popperjs/core/lib/modifiers/arrow","@popperjs/core/lib/modifiers/flip","@popperjs/core/lib/modifiers/offset","@popperjs/core/lib/modifiers/preventOverflow","@popperjs/core/lib/popper-lite","lit-html/directives/if-defined"],t);else{var i="object"==typeof exports?t(require("lit-element"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("lit-html/directives/if-defined")):t(e["lit-element"],e["@popperjs/core/lib/modifiers/arrow"],e["@popperjs/core/lib/modifiers/flip"],e["@popperjs/core/lib/modifiers/offset"],e["@popperjs/core/lib/modifiers/preventOverflow"],e["@popperjs/core/lib/popper-lite"],e["lit-html/directives/if-defined"]);for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(self,((e,t,i,r,o,s,n)=>(()=>{"use strict";var l,a={4863:e=>{e.exports=s},11323:(e,t,i)=>{i.r(t),i.d(t,{MenuOverlay:()=>T,OverlaySizes:()=>r,menuOverlayPlacement:()=>L,menuOverlayRole:()=>C,menuOverlaySize:()=>x});var r,o=i(35211),s=i(90195),n=i(31890),l=i(28373),a=i(66677),p=i(22962),d=i.n(p),h=i(84157),u=i.n(h),v=i(68250),c=i.n(v),m=i(69371),g=i.n(m),y=i(4863),f=i(41488),O=i(97822),E=i(16366),b=function(e,t,i,r){var o,s=arguments.length,n=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(s<3?o(n):s>3?o(t,i,n):o(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n},w=function(e,t,i,r){return new(i||(i=Promise))((function(o,s){function n(e){try{a(r.next(e))}catch(e){s(e)}}function l(e){try{a(r.throw(e))}catch(e){s(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(n,l)}a((r=r.apply(e,t||[])).next())}))};!function(e){e.small="260px",e.large="370px"}(r||(r={}));const x=["small","large"],L=o.W,C=["menu","dialog"];var T;!function(e){let t=class extends((0,l.d)(f.LitElement)){constructor(){super(...arguments),this._isOpen=!1,this.size="large",this.maxHeight="",this.customWidth="",this.showArrow=!1,this.disabled=!1,this.placement="bottom",this.allowHoverToggle=!1,this.ariaRole="menu",this.ariaLabel="",this.isDatePicker=!1,this.overlayOffset=15,this.keepOpenOnWindowBlur=!1,this.popperInstance=null,this.triggerElement=null,this.shouldWrapFocus=()=>"dialog"===this.ariaRole,this.updateActiveMenuOverlayOpened=t=>{var i;this===t.target&&(null===(i=e.ELEMENT.activeOverlay)||void 0===i||i.push(t.target))},this.updateActiveMenuOverlayClosed=t=>{var i,r;const o=e.ELEMENT.activeOverlay.indexOf(t.target);this===t.target&&-1!==o&&(e.ELEMENT.activeOverlay.splice(o,1),e.ELEMENT.activeOverlay.length>0?(null===(i=e.ELEMENT.activeOverlay[e.ELEMENT.activeOverlay.length-1])||void 0===i||i.setFocusableElements(),null===(r=e.ELEMENT.activeOverlay[e.ELEMENT.activeOverlay.length-1])||void 0===r||r.focusOnNestedTrigger(this.triggerElement)):this.setFocusableElements())},this.handleTriggerClick=()=>{this.toggleOverlay()},this.setOverlay=(0,a.sg)((e=>{this.disabled||(this.isOpen=e)}),100),this.expandPopup=()=>{this.setOverlay(!0)},this.collapsePopup=()=>{this.setOverlay(!1)},this.handleOutsideOverlayKeydown=t=>w(this,void 0,void 0,(function*(){let i=!1;const r=t.composedPath();r.length&&(i=!!r.find((e=>e===this)),!i)||!this.overlayContainer||t.code!==s.Uz.Escape||(t.preventDefault(),(e.ELEMENT.activeOverlay.length>0?e.ELEMENT.activeOverlay[e.ELEMENT.activeOverlay.length-1]:void 0)===this&&(this.isOpen=!1,yield this.updateComplete,this.focusOnTrigger()))})),this.handleTriggerKeyDown=e=>w(this,void 0,void 0,(function*(){switch(e.code){case s.Uz.Space:case s.Uz.Enter:e.preventDefault(),this.toggleOverlay(),this.isOpen||(yield this.updateComplete,this.focusOnTrigger())}})),this.handleOutsideOverlayClick=e=>{let t=!1;const i=e.composedPath();i.length&&(t=!!i.find((e=>e===this)),t||this.preventClickOutside||(this.isOpen=!1))}}get isOpen(){return this._isOpen}set isOpen(e){const t=this._isOpen;this._isOpen=e,this.handleInstance(e),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",e),this.requestUpdate("isOpen",t)}renderMaxHeight(){return this.maxHeight?`max-height: ${this.maxHeight};`:"max-height: calc(100vh - 48px);"}renderOverflowY(){return this.isDatePicker?"overflow-y: visible;":"overflow-y: auto;"}renderWidth(){return this.customWidth?`width: ${this.customWidth};`:"small"===this.size?`width: ${r.small};`:`width: ${r.large};`}getStyles(){return f.html`
|
|
2
|
+
<style>
|
|
3
|
+
:host .md-menu-overlay .overlay-content {
|
|
4
|
+
${this.renderMaxHeight()};
|
|
5
|
+
${this.renderWidth()};
|
|
6
|
+
${this.renderOverflowY()};
|
|
7
|
+
}
|
|
8
|
+
</style>
|
|
9
|
+
`}connectedCallback(){super.connectedCallback(),this.handleWindowBlurEvent=this.handleWindowBlurEvent.bind(this),window.addEventListener("blur",this.handleWindowBlurEvent),document.addEventListener("click",this.handleOutsideOverlayClick),document.addEventListener("keydown",this.handleOutsideOverlayKeydown),this.addEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.addEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideOverlayClick),document.removeEventListener("keydown",this.handleOutsideOverlayKeydown),window.removeEventListener("blur",this.handleWindowBlurEvent),this.removeEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.removeEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.triggerElement&&(this.triggerElement.removeEventListener("click",this.handleTriggerClick),this.triggerElement.removeEventListener("keydown",this.handleTriggerKeyDown),this.allowHoverToggle&&(this.triggerElement.removeEventListener("mouseenter",this.expandPopup),this.triggerElement.removeEventListener("mouseleave",this.collapsePopup),this.overlayContainer.removeEventListener("mouseenter",this.expandPopup),this.overlayContainer.removeEventListener("mouseleave",this.collapsePopup)),this.triggerElement=null)}checkIsInputField(e){var t;return"md-input"===(null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase())}firstUpdated(e){const t=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return w(this,void 0,void 0,(function*(){t.firstUpdated.call(this,e),yield new Promise((e=>setTimeout(e,0))),this.trigger&&(this.triggerElement=this.trigger[0],this.triggerElement.addEventListener("click",this.handleTriggerClick),this.allowHoverToggle&&(this.triggerElement.addEventListener("mouseenter",this.expandPopup),this.triggerElement.addEventListener("mouseleave",this.collapsePopup),this.overlayContainer.addEventListener("mouseenter",this.expandPopup),this.overlayContainer.addEventListener("mouseleave",this.collapsePopup)),this.checkIsInputField(this.triggerElement)||this.triggerElement.addEventListener("keydown",this.handleTriggerKeyDown),this.triggerElement.setAttribute("aria-haspopup","true")),this.overlayContainer&&this.isOpen&&(this.handleInstance(!0),this.overlayContainer.toggleAttribute("data-show",!0)),this.arrow&&this.showArrow&&this.arrow.toggleAttribute("data-show",!0),e.has("isOpen")&&(this.isOpen?this.triggerElement&&this.triggerElement.setAttribute("aria-expanded","true"):this.triggerElement&&this.triggerElement.setAttribute("aria-expanded","false"))}))}update(e){super.update(e),e.has("isOpen")&&(this.isOpen?(this.activateFocusTrap(),document.addEventListener("menu-item-click",this.handleTriggerClick)):(this.deactivateFocusTrap(),document.removeEventListener("menu-item-click",this.handleTriggerClick)))}updated(e){super.updated(e),e.has("isOpen")&&(this.isOpen?(this.dispatchMenuOpen(),this.triggerElement&&(this.triggerElement.setAttribute("aria-expanded","true"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","true"))):(this.dispatchMenuClose(),this.triggerElement&&(this.triggerElement.removeAttribute("aria-expanded"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","false"))))}dispatchMenuOpen(){this.dispatchEvent(new CustomEvent("menu-overlay-open",{composed:!0,bubbles:!0}))}dispatchMenuClose(){this.dispatchEvent(new CustomEvent("menu-overlay-close",{composed:!0,bubbles:!0}))}handleInstance(e){e?this.create():this.destroy()}create(){this.triggerElement&&(this.popperInstance=(0,y.createPopper)(this.triggerElement,this.overlayContainer,{onFirstUpdate:()=>w(this,void 0,void 0,(function*(){var e;this.isOpen&&(null===(e=this.popperInstance)||void 0===e||e.update(),this.setFocusableElements(),yield this.updateComplete,this.focusInsideOverlay())})),placement:this.placement,modifiers:[...y.defaultModifiers,u(),c(),g(),d(),{name:"preventOverflow",options:{padding:16}},{name:"offset",options:{offset:({placement:e,reference:t})=>"left-end"===e||"right-end"===e?[t.height+t.y+3,14]:[0,this.overlayOffset]}},{name:"arrow",options:{element:this.arrow,padding:5}},{name:"computeStyles",options:{adaptive:!1}}]}))}destroy(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}toggleOverlay(){this.disabled||(this.isOpen=!this.isOpen)}focusOnTrigger(){requestAnimationFrame((()=>{var e;(null===(e=this.focusableElements)||void 0===e?void 0:e.length)&&this.focusableElements[0].focus()}))}focusInsideOverlay(){this.focusableElements&&(this.focusableElements.length>1?this.setInitialFocus(1):this.focusableElements.length&&this.setInitialFocus())}focusOnNestedTrigger(e){var t;null===(t=this.setFocusOnTrigger)||void 0===t||t.call(this,e)}handleWindowBlurEvent(){this._isOpen&&!this.keepOpenOnWindowBlur&&(this.isOpen=!1)}static get styles(){return[E.A]}render(){return f.html`
|
|
10
|
+
${this.getStyles()}
|
|
11
|
+
<div class="md-menu-overlay">
|
|
12
|
+
<slot name="menu-trigger"></slot>
|
|
13
|
+
<div
|
|
14
|
+
part="overlay"
|
|
15
|
+
class="overlay-container"
|
|
16
|
+
role=${this.ariaRole}
|
|
17
|
+
aria-modal=${(0,O.ifDefined)("dialog"===this.ariaRole?"true":void 0)}
|
|
18
|
+
aria-label=${(0,O.ifDefined)(this.ariaLabel||void 0)}
|
|
19
|
+
>
|
|
20
|
+
<div id="arrow" class="overlay-arrow" data-popper-arrow></div>
|
|
21
|
+
<div class="overlay-content" part="overlay-content">
|
|
22
|
+
<slot></slot>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
`}};t.activeOverlay=[],b([(0,f.property)({type:Boolean,attribute:"is-open",reflect:!0})],t.prototype,"isOpen",null),b([(0,f.property)({type:String})],t.prototype,"size",void 0),b([(0,f.property)({type:String,attribute:"max-height"})],t.prototype,"maxHeight",void 0),b([(0,f.property)({type:String,attribute:"custom-width"})],t.prototype,"customWidth",void 0),b([(0,f.property)({type:Boolean,attribute:"show-arrow"})],t.prototype,"showArrow",void 0),b([(0,f.property)({type:Boolean})],t.prototype,"disabled",void 0),b([(0,f.property)({type:String})],t.prototype,"placement",void 0),b([(0,f.property)({type:Boolean,attribute:"allow-hover-toggle"})],t.prototype,"allowHoverToggle",void 0),b([(0,f.property)({type:String})],t.prototype,"ariaRole",void 0),b([(0,f.property)({type:String})],t.prototype,"ariaLabel",void 0),b([(0,f.property)({type:Boolean,attribute:"is-date-picker"})],t.prototype,"isDatePicker",void 0),b([(0,f.property)({type:Number,attribute:"overlay-offset"})],t.prototype,"overlayOffset",void 0),b([(0,f.property)({type:Boolean,attribute:"keep-open-on-window-blur"})],t.prototype,"keepOpenOnWindowBlur",void 0),b([(0,f.query)(".overlay-container")],t.prototype,"overlayContainer",void 0),b([(0,f.query)(".overlay-arrow")],t.prototype,"arrow",void 0),b([(0,f.queryAssignedNodes)("menu-trigger",!0)],t.prototype,"trigger",void 0),t=b([(0,n.w)("md-menu-overlay")],t),e.ELEMENT=t}(T||(T={}))},22962:e=>{e.exports=t},41488:t=>{t.exports=e},68250:e=>{e.exports=r},69371:e=>{e.exports=o},84157:e=>{e.exports=i},97822:e=>{e.exports=n}},p={};function d(e){var t=p[e];if(void 0!==t)return t.exports;var i=p[e]={exports:{}};return a[e](i,i.exports,d),i.exports}d.m=a,l=[],d.O=(e,t,i,r)=>{if(!t){var o=1/0;for(p=0;p<l.length;p++){for(var[t,i,r]=l[p],s=!0,n=0;n<t.length;n++)(!1&r||o>=r)&&Object.keys(d.O).every((e=>d.O[e](t[n])))?t.splice(n--,1):(s=!1,r<o&&(o=r));if(s){l.splice(p--,1);var a=i();void 0!==a&&(e=a)}}return e}r=r||0;for(var p=l.length;p>0&&l[p-1][2]>r;p--)l[p]=l[p-1];l[p]=[t,i,r]},d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{for(var i in t)d.o(t,i)&&!d.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={1323:0,1682:0};d.O.j=t=>0===e[t];var t=(t,i)=>{var r,o,[s,n,l]=i,a=0;if(s.some((t=>0!==e[t]))){for(r in n)d.o(n,r)&&(d.m[r]=n[r]);if(l)var p=l(d)}for(t&&t(i);a<s.length;a++)o=s[a],d.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return d.O(p)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var h=d.O(void 0,[1890,2576,8210,6677,1270,3135,6366,5211],(()=>d(11323)));return d.O(h)})()));
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
require("../
|
|
2
|
-
require("../chunks/md-2");
|
|
3
|
-
require("../chunks/md-3");
|
|
4
|
-
require("../chunks/md-4");
|
|
5
|
-
require("../chunks/md-6");
|
|
6
|
-
require("../chunks/md-12");
|
|
7
|
-
require("../chunks/md-13");
|
|
8
|
-
require("../chunks/md-17");
|
|
9
|
-
module.exports = require("../comp/md-menu-overlay-entry");
|
|
1
|
+
require("../1890"),require("../2576"),require("../8210"),require("../6677"),require("../1270"),require("../3135"),require("../6366"),require("../5211"),module.exports=require("../comp/md-menu-overlay-entry");
|
package/dist/comp/md-menu.js
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
require("../
|
|
2
|
-
require("../chunks/md-1");
|
|
3
|
-
require("../chunks/md-2");
|
|
4
|
-
require("../chunks/md-3");
|
|
5
|
-
require("../chunks/md-8");
|
|
6
|
-
require("../chunks/md-46");
|
|
7
|
-
require("../chunks/md-78");
|
|
8
|
-
module.exports = require("../comp/md-menu-entry");
|
|
1
|
+
require("../1890"),require("../6272"),require("../2576"),require("../1270"),require("../2243"),require("../3625"),require("../9719"),require("../8171"),module.exports=require("../comp/md-menu-entry");
|
|
@@ -1 +1,73 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html"),require("lit-html
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/style-map","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx"],t);else{var o="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx")):t(e["lit-element"],e["lit-html/directives/style-map"],e["lit-html"],e["lit-html/directives/class-map"],e["lit-html/directives/if-defined"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.mobx);for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,((e,t,o,i,a,r,s,l)=>(()=>{"use strict";var n,d={8229:e=>{e.exports=t},9871:(e,t,o)=>{o.r(t),o.d(t,{Modal:()=>y,modalAlignment:()=>v,modalType:()=>u}),o(96798),o(61200);var i=o(90195),a=o(37719),r=o(3001),s=o(31890),l=o(26272),n=o(41488),d=o(40333),m=o(23968),p=o(97822),h=o(48521),c=function(e,t,o,i){var a,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(s=(r<3?a(s):r>3?a(t,o,s):a(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};const u=["default","full","large","small","dialog"],v=["leading","center"];var y;!function(e){let t=class extends((0,r.dY)(n.LitElement)){constructor(){super(...arguments),this.show=!1,this.headerLabel="",this.headerMessage="",this.htmlId="",this.ariaLabel="modal",this.ariaLabelClose="Close Modal",this.ariaLabelCancel="Cancel Modal",this.ariaLabelSubmit="Submit Modal",this.ariaDescription="",this.showCloseButton=!1,this.backdropClickExit=!1,this.noExitOnEsc=!1,this.size="default",this.closeBtnName="",this.hideFooter=!1,this.hideHeader=!1,this.disableInitialFocus=!1,this.alignment=void 0,this.animating=!1,this.handleCloseOutside=e=>{e.code===i.Uz.Escape&&(e.preventDefault(),this.show&&!this.noExitOnEsc&&(this.show=!1))}}static get styles(){return[l.A,h.A]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleCloseOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleCloseOutside)}update(e){super.update(e),e.has("show")&&(this.show?this.modalFadeIn():!0===e.get("show")&&this.modalFadeOut())}get computedAlignment(){return void 0===this.alignment?a.themeManager.isMomentumV2Enabled?"leading":"center":this.alignment}notifyModalClose(){this.dispatchEvent(new CustomEvent("close-modal",{composed:!0,bubbles:!0}))}focusInsideModal(){var e;(null===(e=this.focusableElements)||void 0===e?void 0:e.length)&&this.setInitialFocus()}handleKeyDown(e){e.code!==i.Uz.Enter&&e.code!==i.Uz.Space||this.show&&(this.show=!0)}transitionPromise(e){return new Promise((t=>{const o=()=>{e.removeEventListener("transitionend",o),this.activateFocusTrap(),this.setFocusableElements(),requestAnimationFrame((()=>{t()}))},i=()=>{e.removeEventListener("transitioncancel",i),this.deactivateFocusTrap(),this.modalFadeOut(),t()};e.addEventListener("transitionend",o),e.addEventListener("transitioncancel",i),setTimeout((()=>{this.animating=!0}),13)}))}modalFadeIn(){return e=this,t=void 0,i=function*(){this.backDrop&&(yield this.transitionPromise(this.backDrop),this.disableInitialFocus||this.focusInsideModal())},new((o=void 0)||(o=Promise))((function(a,r){function s(e){try{n(i.next(e))}catch(e){r(e)}}function l(e){try{n(i.throw(e))}catch(e){r(e)}}function n(e){var t;e.done?a(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(s,l)}n((i=i.apply(e,t||[])).next())}));var e,t,o,i}modalFadeOut(){this.animating=!1,this.deactivateFocusTrap(),this.notifyModalClose()}handleCloseBackdrop(){this.backdropClickExit&&(this.show=!1)}hideModal(){this.animating=!1,this.show=!1}topCloseBtnTemplate(){return n.html`
|
|
2
|
+
${this.showCloseButton?n.html`
|
|
3
|
+
<md-button
|
|
4
|
+
variant="ghost"
|
|
5
|
+
size="20"
|
|
6
|
+
circle
|
|
7
|
+
class="md-close md-modal__close"
|
|
8
|
+
@click="${this.hideModal}"
|
|
9
|
+
@keydown="${this.handleKeyDown}"
|
|
10
|
+
ariaLabel=${this.ariaLabelClose}
|
|
11
|
+
>
|
|
12
|
+
<md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
13
|
+
</md-button>
|
|
14
|
+
`:d.nothing}
|
|
15
|
+
`}handleFooterClick(){this.show=!1}headerTemplate(){return this.hideHeader?n.html`
|
|
16
|
+
<div id="modal_header" part="modal-header" class="md-modal__header">
|
|
17
|
+
<slot name="header"></slot>
|
|
18
|
+
</div>
|
|
19
|
+
`:n.html`
|
|
20
|
+
<div id="modal_header" part="modal-header" class="md-modal__header">
|
|
21
|
+
<h2 class="md-modal__title">${this.headerLabel}</h2>
|
|
22
|
+
${this.headerMessage?n.html` <span class="md-modal__message">${this.headerMessage}</span> `:d.nothing}
|
|
23
|
+
</div>
|
|
24
|
+
`}footerTemplate(){return this.hideFooter?n.html`
|
|
25
|
+
<div part="modal-footer" class="md-modal__footer">
|
|
26
|
+
<slot name="footer"></slot>
|
|
27
|
+
</div>
|
|
28
|
+
`:n.html`
|
|
29
|
+
<div part="modal-footer" class="md-modal__footer">
|
|
30
|
+
<md-button
|
|
31
|
+
aria-label=${this.ariaLabelCancel}
|
|
32
|
+
@click="${this.handleFooterClick}"
|
|
33
|
+
@keydown="${this.handleKeyDown}"
|
|
34
|
+
variant="secondary"
|
|
35
|
+
>
|
|
36
|
+
<span>Cancel</span>
|
|
37
|
+
</md-button>
|
|
38
|
+
<md-button
|
|
39
|
+
type="submit"
|
|
40
|
+
variant="primary"
|
|
41
|
+
aria-label=${this.ariaLabelSubmit}
|
|
42
|
+
@click="${this.handleFooterClick}"
|
|
43
|
+
@keydown="${this.handleKeyDown}"
|
|
44
|
+
>
|
|
45
|
+
<span>${this.closeBtnName}</span>
|
|
46
|
+
</md-button>
|
|
47
|
+
</div>
|
|
48
|
+
`}get modalBackDropClassMap(){return{in:this.show&&this.animating}}get modalContainerClassMap(){return{in:this.show,[`md-modal--${this.size}`]:!!this.size,[`md-modal--${this.computedAlignment}`]:!!this.computedAlignment}}render(){return n.html`
|
|
49
|
+
${this.show?n.html`
|
|
50
|
+
<div part="modal-backdrop" class="md-modal__backdrop fade ${(0,m.classMap)(this.modalBackDropClassMap)}">
|
|
51
|
+
${this.backdropClickExit?n.html` <div class="md-modal_overlay" @click="${this.handleCloseBackdrop}"></div> `:d.nothing}
|
|
52
|
+
|
|
53
|
+
<div
|
|
54
|
+
part="modal-container"
|
|
55
|
+
role="dialog"
|
|
56
|
+
id="${this.htmlId}"
|
|
57
|
+
class="md-modal ${(0,m.classMap)(this.modalContainerClassMap)}"
|
|
58
|
+
aria-label="${(0,p.ifDefined)(this.headerLabel||this.ariaLabel||void 0)}"
|
|
59
|
+
aria-describedby=${(0,p.ifDefined)(this.ariaDescription||void 0)}
|
|
60
|
+
>
|
|
61
|
+
<div part="modal-content" class="md-modal__content">
|
|
62
|
+
<div class="md-modal__flex-container" part="modal-flex-container">
|
|
63
|
+
${this.headerTemplate()} ${this.topCloseBtnTemplate()}
|
|
64
|
+
<div id="modal-body" part="modal-body" class="md-modal__body">
|
|
65
|
+
<slot></slot>
|
|
66
|
+
</div>
|
|
67
|
+
${this.footerTemplate()}
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
`:d.nothing}
|
|
73
|
+
`}};c([(0,n.property)({type:Boolean})],t.prototype,"show",void 0),c([(0,n.property)({type:String})],t.prototype,"headerLabel",void 0),c([(0,n.property)({type:String})],t.prototype,"headerMessage",void 0),c([(0,n.property)({type:String})],t.prototype,"htmlId",void 0),c([(0,n.property)({type:String,attribute:"aria-label"})],t.prototype,"ariaLabel",void 0),c([(0,n.property)({type:String})],t.prototype,"ariaLabelClose",void 0),c([(0,n.property)({type:String})],t.prototype,"ariaLabelCancel",void 0),c([(0,n.property)({type:String})],t.prototype,"ariaLabelSubmit",void 0),c([(0,n.property)({type:String})],t.prototype,"ariaDescription",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"showCloseButton",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"backdropClickExit",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"noExitOnEsc",void 0),c([(0,n.property)({type:String})],t.prototype,"size",void 0),c([(0,n.property)({type:String})],t.prototype,"closeBtnName",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"hideFooter",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"hideHeader",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"disableInitialFocus",void 0),c([(0,n.property)({type:String})],t.prototype,"alignment",void 0),c([(0,n.internalProperty)()],t.prototype,"animating",void 0),c([(0,n.query)(".md-modal__backdrop")],t.prototype,"backDrop",void 0),t=c([(0,s.w)("md-modal")],t),e.ELEMENT=t}(y||(y={}))},23968:e=>{e.exports=i},32022:e=>{e.exports=r},40333:e=>{e.exports=o},41488:t=>{t.exports=e},60554:e=>{e.exports=s},85314:e=>{e.exports=l},97822:e=>{e.exports=a}},m={};function p(e){var t=m[e];if(void 0!==t)return t.exports;var o=m[e]={exports:{}};return d[e](o,o.exports,p),o.exports}p.m=d,n=[],p.O=(e,t,o,i)=>{if(!t){var a=1/0;for(d=0;d<n.length;d++){for(var[t,o,i]=n[d],r=!0,s=0;s<t.length;s++)(!1&i||a>=i)&&Object.keys(p.O).every((e=>p.O[e](t[s])))?t.splice(s--,1):(r=!1,i<a&&(a=i));if(r){n.splice(d--,1);var l=o();void 0!==l&&(e=l)}}return e}i=i||0;for(var d=n.length;d>0&&n[d-1][2]>i;d--)n[d]=n[d-1];n[d]=[t,o,i]},p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var o in t)p.o(t,o)&&!p.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={6433:0};p.O.j=t=>0===e[t];var t=(t,o)=>{var i,a,[r,s,l]=o,n=0;if(r.some((t=>0!==e[t]))){for(i in s)p.o(s,i)&&(p.m[i]=s[i]);if(l)var d=l(p)}for(t&&t(o);n<r.length;n++)a=r[n],p.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return p.O(d)},o=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var h=p.O(void 0,[7502,1890,6272,6325,6875,2176,6798,9813,1200,8889,300,2576,4624,591,768,3135,7719,8521,7763],(()=>p(9871)));return p.O(h)})()));
|
package/dist/comp/md-modal.js
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
|
-
require("../
|
|
2
|
-
require("../chunks/md-0");
|
|
3
|
-
require("../chunks/md-1");
|
|
4
|
-
require("../chunks/md-2");
|
|
5
|
-
require("../chunks/md-3");
|
|
6
|
-
require("../chunks/md-4");
|
|
7
|
-
require("../chunks/md-5");
|
|
8
|
-
require("../chunks/md-7");
|
|
9
|
-
require("../chunks/md-6");
|
|
10
|
-
require("../chunks/md-9");
|
|
11
|
-
require("../chunks/md-8");
|
|
12
|
-
require("../chunks/md-11");
|
|
13
|
-
require("../chunks/md-23");
|
|
14
|
-
require("../chunks/md-79");
|
|
15
|
-
module.exports = require("../comp/md-modal-entry");
|
|
1
|
+
require("../7502"),require("../1890"),require("../6272"),require("../6325"),require("../6875"),require("../2176"),require("../6798"),require("../9813"),require("../1200"),require("../8889"),require("../300"),require("../2576"),require("../4624"),require("../591"),require("../768"),require("../3135"),require("../7719"),require("../8521"),require("../7763"),module.exports=require("../comp/md-modal-entry");
|
|
@@ -1 +1,78 @@
|
|
|
1
|
-
!function(e
|
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/style-map","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue"],e);else{var i="object"==typeof exports?e(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue")):e(t["lit-element"],t["lit-html/directives/style-map"],t["lit-html"],t["lit-html/directives/class-map"],t["lit-html/directives/if-defined"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"]);for(var r in i)("object"==typeof exports?exports:t)[r]=i[r]}}(self,((t,e,i,r,a,o,s)=>(()=>{"use strict";var n,l={8229:t=>{t.exports=e},23026:(t,e,i)=>{i.r(e),i.d(e,{Pagination:()=>r}),i(96798),i(61200);var r,a=i(31890),o=i(26272),s=i(41488),n=i(40333),l=i(4392),u=function(t,e,i,r){var a,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};!function(t){let e=class extends s.LitElement{constructor(){super(...arguments),this._currentPage=1,this.hasDots=!1,this.onlyDots=!1,this.noNavigation=!1,this.totalPage=0,this.visiblePage=3}get currentPage(){return this._currentPage}set currentPage(t){const e=this._currentPage;this._currentPage=t,this.notifyPageChange(e,t),this.requestUpdate("currentPage",e)}static get styles(){return[o.A,l.A]}computePrevious(t){1!==t&&t!==this.currentPage&&(this.currentPage-=1)}computeNext(t){t<=this.totalPage&&t!==this.currentPage&&(this.currentPage+=1)}computeFirst(){this.currentPage>=1&&(this.currentPage=1)}computeLast(){this.currentPage>=1&&(this.currentPage=this.totalPage)}computeCurrent(t){this.currentPage=t}notifyPageChange(t,e){this.dispatchEvent(new CustomEvent("page-change",{composed:!0,bubbles:!0,detail:{oldPage:t,newPage:e}}))}get hasPreviousPage(){return this.currentPage<=1}get hasNextPage(){return this.currentPage>=this.totalPage}computePageList(t){if(this.totalPage>this.visiblePage&&t){const[t,e,i]=[this.currentPage-1,this.currentPage,this.currentPage+1];let r=[];if(e<=this.visiblePage-1)return r=[...Array(this.visiblePage)].map(((t,e)=>1+e)),r.push("..."),r.push(this.totalPage),r;if(this.totalPage-e<=this.visiblePage-2){r=[],r.push(1),r.push("...");const t=[...Array(this.visiblePage)].map(((t,e)=>this.totalPage-this.visiblePage+1+e));return r.concat(t)}return[1,"...",t,e,i,"...",this.totalPage]}return[...Array(this.totalPage)].map(((t,e)=>1+e))}pagesTemplate(t){return this.computePageList(t).map((t=>"..."===t?s.html` <li class="page-ellipsis">${t}</li> `:s.html`
|
|
2
|
+
<li @click=${()=>this.computeCurrent(t)} aria-current=${t===this.currentPage}>
|
|
3
|
+
${t}
|
|
4
|
+
</li>
|
|
5
|
+
`))}dotsTemplate(t){return this.computePageList(t).map((t=>"..."===t?n.nothing:s.html`
|
|
6
|
+
<li @click=${()=>this.computeCurrent(t)} aria-current=${t===this.currentPage}></li>
|
|
7
|
+
`))}render(){return s.html`
|
|
8
|
+
<nav class="md-pagination" role="navigation" part="pagination">
|
|
9
|
+
${this.noNavigation?n.nothing:s.html`
|
|
10
|
+
<md-button
|
|
11
|
+
class="md-pagination-nav"
|
|
12
|
+
ariaLabel="First Page"
|
|
13
|
+
?disabled=${this.hasPreviousPage}
|
|
14
|
+
@click=${this.computeFirst}
|
|
15
|
+
part="pagination-first"
|
|
16
|
+
variant="ghost"
|
|
17
|
+
size="24"
|
|
18
|
+
circle
|
|
19
|
+
>
|
|
20
|
+
<md-icon name="overflow-left-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
21
|
+
</md-button>
|
|
22
|
+
<md-button
|
|
23
|
+
class="md-pagination-nav"
|
|
24
|
+
ariaLabel="Next Page"
|
|
25
|
+
?disabled=${this.hasPreviousPage}
|
|
26
|
+
@click=${()=>this.computePrevious(this.currentPage-1)}
|
|
27
|
+
part="pagination-prev"
|
|
28
|
+
variant="ghost"
|
|
29
|
+
size="24"
|
|
30
|
+
circle
|
|
31
|
+
>
|
|
32
|
+
<md-icon name="arrow-left-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
33
|
+
</md-button>
|
|
34
|
+
`}
|
|
35
|
+
<div class="md-pagination-container">
|
|
36
|
+
${this.onlyDots?s.html`
|
|
37
|
+
<ul class="md-pagination-dots" part="pagination-only-dots">
|
|
38
|
+
${this.dotsTemplate(!1)}
|
|
39
|
+
</ul>
|
|
40
|
+
`:s.html`
|
|
41
|
+
<ul class="md-pagination-list" part=pagination-list">
|
|
42
|
+
${this.pagesTemplate(!0)}
|
|
43
|
+
</ul>
|
|
44
|
+
`}
|
|
45
|
+
${this.hasDots&&!this.onlyDots?s.html`
|
|
46
|
+
<ul class="md-pagination-dots" part="pagination-dots">
|
|
47
|
+
${this.dotsTemplate(!0)}
|
|
48
|
+
</ul>
|
|
49
|
+
`:n.nothing}
|
|
50
|
+
</div>
|
|
51
|
+
${this.noNavigation?n.nothing:s.html`
|
|
52
|
+
<md-button
|
|
53
|
+
class="md-pagination-nav"
|
|
54
|
+
ariaLabel="Previous Page"
|
|
55
|
+
?disabled=${this.hasNextPage}
|
|
56
|
+
@click=${()=>this.computeNext(this.currentPage+1)}
|
|
57
|
+
part="pagination-next"
|
|
58
|
+
variant="ghost"
|
|
59
|
+
size="24"
|
|
60
|
+
circle
|
|
61
|
+
>
|
|
62
|
+
<md-icon name="arrow-right-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
63
|
+
</md-button>
|
|
64
|
+
<md-button
|
|
65
|
+
class="md-pagination-nav"
|
|
66
|
+
ariaLabel="Last Page"
|
|
67
|
+
?disabled=${this.hasNextPage}
|
|
68
|
+
@click=${this.computeLast}
|
|
69
|
+
part="pagination-last"
|
|
70
|
+
variant="ghost"
|
|
71
|
+
size="24"
|
|
72
|
+
circle
|
|
73
|
+
>
|
|
74
|
+
<md-icon name="overflow-right-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
75
|
+
</md-button>
|
|
76
|
+
`}
|
|
77
|
+
</nav>
|
|
78
|
+
`}};u([(0,s.property)({type:Boolean,attribute:"dots"})],e.prototype,"hasDots",void 0),u([(0,s.property)({type:Boolean,reflect:!0,attribute:"only-dots"})],e.prototype,"onlyDots",void 0),u([(0,s.property)({type:Boolean,reflect:!0,attribute:"no-navigation"})],e.prototype,"noNavigation",void 0),u([(0,s.property)({type:Number,reflect:!0,attribute:"total-page"})],e.prototype,"totalPage",void 0),u([(0,s.property)({type:Number,reflect:!0,attribute:"visible-page"})],e.prototype,"visiblePage",void 0),u([(0,s.property)({type:Number,reflect:!0,attribute:"current-page"})],e.prototype,"currentPage",null),e=u([(0,a.w)("md-pagination")],e),t.ELEMENT=e}(r||(r={}))},23968:t=>{t.exports=r},32022:t=>{t.exports=o},40333:t=>{t.exports=i},41488:e=>{e.exports=t},60554:t=>{t.exports=s},97822:t=>{t.exports=a}},u={};function m(t){var e=u[t];if(void 0!==e)return e.exports;var i=u[t]={exports:{}};return l[t](i,i.exports,m),i.exports}m.m=l,n=[],m.O=(t,e,i,r)=>{if(!e){var a=1/0;for(u=0;u<n.length;u++){for(var[e,i,r]=n[u],o=!0,s=0;s<e.length;s++)(!1&r||a>=r)&&Object.keys(m.O).every((t=>m.O[t](e[s])))?e.splice(s--,1):(o=!1,r<a&&(a=r));if(o){n.splice(u--,1);var l=i();void 0!==l&&(t=l)}}return t}r=r||0;for(var u=n.length;u>0&&n[u-1][2]>r;u--)n[u]=n[u-1];n[u]=[e,i,r]},m.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return m.d(e,{a:e}),e},m.d=(t,e)=>{for(var i in e)m.o(e,i)&&!m.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},m.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),m.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={1788:0};m.O.j=e=>0===t[e];var e=(e,i)=>{var r,a,[o,s,n]=i,l=0;if(o.some((e=>0!==t[e]))){for(r in s)m.o(s,r)&&(m.m[r]=s[r]);if(n)var u=n(m)}for(e&&e(i);l<o.length;l++)a=o[l],m.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return m.O(u)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var c=m.O(void 0,[7502,1890,6272,6325,6875,2176,6798,9813,1200,2576,4392],(()=>m(23026)));return m.O(c)})()));
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
require("../
|
|
2
|
-
require("../chunks/md-0");
|
|
3
|
-
require("../chunks/md-1");
|
|
4
|
-
require("../chunks/md-2");
|
|
5
|
-
require("../chunks/md-5");
|
|
6
|
-
require("../chunks/md-7");
|
|
7
|
-
require("../chunks/md-9");
|
|
8
|
-
require("../chunks/md-80");
|
|
9
|
-
module.exports = require("../comp/md-pagination-entry");
|
|
1
|
+
require("../7502"),require("../1890"),require("../6272"),require("../6325"),require("../6875"),require("../2176"),require("../6798"),require("../9813"),require("../1200"),require("../2576"),require("../4392"),module.exports=require("../comp/md-pagination-entry");
|
|
@@ -1 +1,71 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html"),require("lit-html/directives/
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit-html/directives/repeat"),require("lit-virtualizer"),require("lit-html/directives/class-map.js"),require("country-codes-list"),require("country-flags-svg"),require("libphonenumber-js"),require("lit-html/directives/repeat.js"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map","lit-html/directives/style-map","lit-html","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","lit-html/directives/repeat","lit-virtualizer","lit-html/directives/class-map.js","country-codes-list","country-flags-svg","libphonenumber-js","lit-html/directives/repeat.js"],t);else{var i="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit-html/directives/repeat"),require("lit-virtualizer"),require("lit-html/directives/class-map.js"),require("country-codes-list"),require("country-flags-svg"),require("libphonenumber-js"),require("lit-html/directives/repeat.js")):t(e["lit-element"],e["lit-html/directives/class-map"],e["lit-html/directives/style-map"],e["lit-html"],e["lit-html/directives/if-defined"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e["lit-html/directives/repeat"],e["lit-virtualizer"],e["lit-html/directives/class-map.js"],e["country-codes-list"],e["country-flags-svg"],e["libphonenumber-js"],e["lit-html/directives/repeat.js"]);for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(self,((e,t,i,r,o,l,s,a,n,d,u,p,h,c)=>(()=>{"use strict";var m,y={860:e=>{e.exports=h},6963:e=>{e.exports=c},8229:e=>{e.exports=i},13060:e=>{e.exports=u},17518:e=>{e.exports=d},22818:e=>{e.exports=a},23968:e=>{e.exports=t},32022:e=>{e.exports=l},40333:e=>{e.exports=r},41488:t=>{t.exports=e},60554:e=>{e.exports=s},65875:e=>{e.exports=p},84205:(e,t,i)=>{i.r(t),i.d(t,{PhoneInput:()=>r}),i(4928),i(96408);var r,o=i(31890),l=i(26272),s=i(13060),a=i(65875),n=i(860),d=i(41488),u=i(40333),p=i(23968),h=i(6963),c=i(77833),m=function(e,t,i,r){var o,l=arguments.length,s=l<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(l<3?o(s):l>3?o(t,i,s):o(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};!function(e){let t=class extends d.LitElement{constructor(){super(...arguments),this.codePlaceholder="+1",this.numberPlaceholder="Enter Phone Number",this.countryCallingCode="",this.showFlags=!1,this.pill=!1,this.disabled=!1,this.value="",this.errorMessage="",this.showErrorMessage=!1,this.clearIconHeight="auto",this.countryCodeAriaLabel="",this.dialNumberAriaLabel="",this.clearAriaLabel="Clear Input",this.clearCountryCodeAriaLabel="Clear Country Code",this.id="",this.newMomentum=!1,this.countryCode="US",this.codeList=[],this.formattedValue="",this.isValid=!0}connectedCallback(){super.connectedCallback(),this.codeList=(0,s.customArray)({name:"{countryNameEn}",value:"{countryCallingCode}",code:"{countryCode}"}),""===this.id&&(this.id=`md-phone-input-${Math.random().toString(36).substring(2,6)}`),this.validateInput(this.value)}getCountryFlag(e){return d.html`
|
|
2
|
+
<span class="flag-svg-wrapper">
|
|
3
|
+
<img src="${(0,a.findFlagUrlByIso2Code)(e)}" />
|
|
4
|
+
</span>
|
|
5
|
+
`}countryCodeOptionTemplate(e,t){return d.html`
|
|
6
|
+
<div
|
|
7
|
+
part="option"
|
|
8
|
+
class="md-phone-input__option"
|
|
9
|
+
display-value="+${e.value}"
|
|
10
|
+
slot=${t}
|
|
11
|
+
aria-label="+${e.value}, ${e.name}, ${e.code}"
|
|
12
|
+
>
|
|
13
|
+
${this.showFlags?this.getCountryFlag(e.code):u.nothing}
|
|
14
|
+
<span>${e.name}</span>
|
|
15
|
+
<span>+${e.value}</span>
|
|
16
|
+
</div>
|
|
17
|
+
`}validateNumber(){this.isValid=!this.value||(0,n.isValidNumberForRegion)(this.value,this.countryCode)}handleCountryChange(e){var t,i;e.detail.value&&(null===(t=e.detail.value)||void 0===t?void 0:t.id)?(this.countryCallingCode=e.detail.value.id,this.countryCode=null===(i=e.detail.value.id.split(",")[2])||void 0===i?void 0:i.trim()):(this.countryCode="US",this.countryCallingCode=""),this.validateNumber(),this.dispatchEvent(new CustomEvent("countrycode-change",{bubbles:!0,composed:!0,detail:{srcEvent:e,isValid:this.isValid}}))}handlePhoneChange(e){this.value=e.detail.value,e.stopPropagation(),this.dispatchEvent(new CustomEvent("phoneinput-change",{bubbles:!0,composed:!0,detail:{srcEvent:e,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}handleKeydown(e){this.isValid=!0,e.stopPropagation(),this.dispatchEvent(new CustomEvent("phoneinput-keydown",{bubbles:!0,composed:!0,detail:{srcEvent:e,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}handleBlur(e){this.validateInput(this.value),this.validateNumber(),e.stopPropagation(),this.removeCountryCode(),this.dispatchEvent(new CustomEvent("phoneinput-blur",{bubbles:!0,composed:!0,detail:{srcEvent:e,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}removeCountryCode(){var e;const t=null===(e=this.countryCallingCode.split(",")[0])||void 0===e?void 0:e.trim();if(this.value.startsWith(t)){const e=this.value.slice(t.length).replace(/^-/,"");this.value=e}}validateInput(e){this.formattedValue=new n.AsYouType(this.countryCode).input(e)}get flagClassMap(){return{"new-momentum":this.newMomentum}}getFormatedCountryCallingCode(){var e;return{id:this.countryCallingCode,value:null===(e=this.countryCallingCode.split(",")[0])||void 0===e?void 0:e.trim()}}getModStyle(){return d.html`
|
|
18
|
+
<style>
|
|
19
|
+
.md-phone-input__container md-combobox {
|
|
20
|
+
width: 5.625rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
md-combobox::part(group) {
|
|
24
|
+
border-left-style: none;
|
|
25
|
+
border-bottom-left-radius: 0;
|
|
26
|
+
border-top-left-radius: 0;
|
|
27
|
+
padding-left: 0;
|
|
28
|
+
}
|
|
29
|
+
</style>
|
|
30
|
+
`}static get styles(){return[l.A,c.A]}render(){return d.html`
|
|
31
|
+
${this.showFlags?this.getModStyle():u.nothing}
|
|
32
|
+
<div class="md-phone-input__container">
|
|
33
|
+
${this.showFlags?d.html`
|
|
34
|
+
<span class="flag-box ${(0,p.classMap)(this.flagClassMap)}">${this.getCountryFlag(this.countryCode)}</span>
|
|
35
|
+
`:u.nothing}
|
|
36
|
+
<md-combobox
|
|
37
|
+
part="combobox"
|
|
38
|
+
?disabled=${this.disabled}
|
|
39
|
+
shape="${this.pill?"pill":"none"}"
|
|
40
|
+
ariaLabel=${this.countryCodeAriaLabel}
|
|
41
|
+
placeholder="${this.codePlaceholder}"
|
|
42
|
+
.value="${this.countryCallingCode?[this.getFormatedCountryCallingCode()]:[]}"
|
|
43
|
+
@change-selected="${e=>this.handleCountryChange(e)}"
|
|
44
|
+
clear-icon-height="${this.clearIconHeight}"
|
|
45
|
+
with-custom-content
|
|
46
|
+
?newMomentum=${this.newMomentum}
|
|
47
|
+
is-dropdown-arrow
|
|
48
|
+
.clearAriaLabel="${this.clearCountryCodeAriaLabel}"
|
|
49
|
+
>
|
|
50
|
+
${(0,h.repeat)(this.codeList,(e=>e.name),((e,t)=>this.countryCodeOptionTemplate(e,t)))}
|
|
51
|
+
</md-combobox>
|
|
52
|
+
<md-input
|
|
53
|
+
part="md-input"
|
|
54
|
+
?disabled=${this.disabled}
|
|
55
|
+
placeholder=${this.numberPlaceholder}
|
|
56
|
+
.ariaInvalid=${this.isValid?"false":"true"}
|
|
57
|
+
.ariaLabel=${`${this.dialNumberAriaLabel}`}
|
|
58
|
+
@input-change="${e=>this.handlePhoneChange(e)}"
|
|
59
|
+
@input-blur="${e=>this.handleBlur(e)}"
|
|
60
|
+
@input-keydown="${e=>this.handleKeydown(e)}"
|
|
61
|
+
shape="${this.pill?"pill":"none"}"
|
|
62
|
+
.ariaControls=${this.id}
|
|
63
|
+
clear
|
|
64
|
+
?newMomentum=${this.newMomentum}
|
|
65
|
+
clearAriaLabel="${this.clearAriaLabel}"
|
|
66
|
+
type="tel"
|
|
67
|
+
value="${this.formattedValue}"
|
|
68
|
+
.messageArr="${!this.isValid||this.showErrorMessage?[{type:"error",id:this.id,ariaLive:"polite",message:this.errorMessage}]:[]}"
|
|
69
|
+
></md-input>
|
|
70
|
+
</div>
|
|
71
|
+
`}};m([(0,d.property)({type:String,reflect:!0})],t.prototype,"codePlaceholder",void 0),m([(0,d.property)({type:String})],t.prototype,"numberPlaceholder",void 0),m([(0,d.property)({type:String,attribute:"country-calling-code"})],t.prototype,"countryCallingCode",void 0),m([(0,d.property)({type:Boolean,attribute:"show-flags"})],t.prototype,"showFlags",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"pill",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"disabled",void 0),m([(0,d.property)({type:String})],t.prototype,"value",void 0),m([(0,d.property)({type:String})],t.prototype,"errorMessage",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"showErrorMessage",void 0),m([(0,d.property)({type:String,attribute:"clear-icon-height"})],t.prototype,"clearIconHeight",void 0),m([(0,d.property)({type:String})],t.prototype,"countryCodeAriaLabel",void 0),m([(0,d.property)({type:String})],t.prototype,"dialNumberAriaLabel",void 0),m([(0,d.property)({type:String})],t.prototype,"clearAriaLabel",void 0),m([(0,d.property)({type:String})],t.prototype,"clearCountryCodeAriaLabel",void 0),m([(0,d.property)({type:String})],t.prototype,"id",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"newMomentum",void 0),m([(0,d.internalProperty)()],t.prototype,"countryCode",void 0),m([(0,d.internalProperty)()],t.prototype,"codeList",void 0),m([(0,d.internalProperty)()],t.prototype,"formattedValue",void 0),m([(0,d.internalProperty)()],t.prototype,"isValid",void 0),m([(0,d.query)("md-combobox")],t.prototype,"combobox",void 0),t=m([(0,o.w)("md-phone-input")],t),e.ELEMENT=t}(r||(r={}))},86635:e=>{e.exports=n},97822:e=>{e.exports=o}},v={};function b(e){var t=v[e];if(void 0!==t)return t.exports;var i=v[e]={exports:{}};return y[e].call(i.exports,i,i.exports,b),i.exports}b.m=y,m=[],b.O=(e,t,i,r)=>{if(!t){var o=1/0;for(n=0;n<m.length;n++){for(var[t,i,r]=m[n],l=!0,s=0;s<t.length;s++)(!1&r||o>=r)&&Object.keys(b.O).every((e=>b.O[e](t[s])))?t.splice(s--,1):(l=!1,r<o&&(o=r));if(l){m.splice(n--,1);var a=i();void 0!==a&&(e=a)}}return e}r=r||0;for(var n=m.length;n>0&&m[n-1][2]>r;n--)m[n]=m[n-1];m[n]=[t,i,r]},b.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return b.d(t,{a:t}),t},b.d=(e,t)=>{for(var i in t)b.o(t,i)&&!b.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),b.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={445:0};b.O.j=t=>0===e[t];var t=(t,i)=>{var r,o,[l,s,a]=i,n=0;if(l.some((t=>0!==e[t]))){for(r in s)b.o(s,r)&&(b.m[r]=s[r]);if(a)var d=a(b)}for(t&&t(i);n<l.length;n++)o=l[n],b.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return b.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var g=b.O(void 0,[7502,7103,1890,6272,6325,6875,2176,6798,9813,1200,8889,300,8373,4624,591,768,3001,1598,4977,1572,6396,109,6408,6795,1439,5433,2547,7833],(()=>b(84205)));return b.O(g)})()));
|