@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 +1,124 @@
|
|
|
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/class-map.js"),require("lit-html/directives/repeat"));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/class-map.js","lit-html/directives/repeat"],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/class-map.js"),require("lit-html/directives/repeat")):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/class-map.js"],e["lit-html/directives/repeat"]);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(self,((e,t,i,s,a,l,r,o,n)=>(()=>{"use strict";var p,d={8229:e=>{e.exports=i},17518:e=>{e.exports=o},22818:e=>{e.exports=n},23968:e=>{e.exports=t},32022:e=>{e.exports=l},40333:e=>{e.exports=s},41488:t=>{t.exports=e},60554:e=>{e.exports=r},96408:(e,t,i)=>{i.r(t),i.d(t,{Input:()=>E,ariaInvalidType:()=>S,containerSize:()=>g,iconNames:()=>$,iconPosition:()=>x,inputShape:()=>f,inputSize:()=>v,inputType:()=>b,nestedLevel:()=>C}),i(20109),i(61200),i(6396),i(12176);var s=i(90195),a=i(31890),l=i(32972),r=i(26272),o=i(32022),n=i(41488),p=i(40333),d=i(23968),m=i(97822),h=i(22818),u=i(8229),c=i(21572),y=function(e,t,i,s){var a,l=arguments.length,r=l<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(r=(l<3?a(r):l>3?a(t,i,r):a(t,i))||r);return l>3&&r&&Object.defineProperty(t,i,r),r};const g=["small-1","small-2","small-3","small-4","small-5","small-6","small-7","small-8","small-9","small-10","small-11","small-12","medium-1","medium-2","medium-3","medium-4","medium-5","medium-6","medium-7","medium-8","medium-9","medium-10","medium-11","medium-12","large-1","large-2","large-3","large-4","large-5","large-6","large-7","large-8","large-9","large-10","large-11","large-12"],v=["small-1","small-2","small-3","small-4","small-5","small-6","small-7","small-8","small-9","small-10","small-11","small-12","medium-1","medium-2","medium-3","medium-4","medium-5","medium-6","medium-7","medium-8","medium-9","medium-10","medium-11","medium-12","large-1","large-2","large-3","large-4","large-5","large-6","large-7","large-8","large-9","large-10","large-11","large-12"],b=["text","number","password","email","tel","checkbox"],f=["none","pill"],$=o,x=["before","after"],C=[0,1,2,3],S=["grammar","false","spelling","true"];var E;!function(e){class t{determineMessageType(e){return e.reduce(((e,t)=>"error"===t?e:t.type),"")}filterMessagesByType(e,t){return e.reduce(((e,i)=>i.type===t?e.concat(i.message):e),[])}}e.MessageController=t;let i=class extends((0,l.y)(n.LitElement)){constructor(){super(...arguments),this.ariaDescribedBy="",this.ariaInvalid="false",this.ariaLabel="input",this.autofocus=!1,this.auxiliaryContentPosition=null,this.clear=!1,this.clearAriaLabel="",this.compact=!1,this.containerSize="small-12",this.disabled=!1,this.id="",this.inputSize="",this.isFilled=!1,this.isLoading=!1,this.label="",this.helpText="",this.hideMessage=!1,this.htmlId="",this.role="",this.messageArr=[],this.min=void 0,this.max=void 0,this.maxLength=void 0,this.multi=!1,this.multiline=!1,this.name="",this.nestedLevel=0,this.placeholder="",this.readOnly=!1,this.required=!1,this.searchable=!1,this.secondaryLabel="",this.selectWhenInFocus=!1,this.shape="",this.type="text",this.value="",this.ariaControls="",this.ariaExpanded="",this.newMomentum=!1,this.isEditing=!1,this.hasRightSlotContent=!1,this.messageController=new t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}select(){this.input.select()}handleOutsideClick(e){let t=!1;const i=e.composedPath();i.length&&(t=!!i.find((e=>e===this)),t||(this.input.blur(),this.isEditing=!1))}handleKeyDown(e){this.dispatchEvent(new CustomEvent("input-keydown",{bubbles:!0,composed:!0,detail:{srcEvent:e}}))}handleFocus(e){this.disabled||(this.isEditing=!0,this.selectWhenInFocus&&this.select(),this.dispatchEvent(new CustomEvent("input-focus",{bubbles:!0,composed:!0,detail:{srcEvent:e}})))}handleMouseDown(e){this.disabled||(this.isEditing=!0,this.dispatchEvent(new CustomEvent("input-mousedown",{bubbles:!0,composed:!0,detail:{srcEvent:e}})))}handleChange(e){this.value=e.target.value,this.dispatchEvent(new CustomEvent("input-change",{bubbles:!0,composed:!0,detail:{srcEvent:e,value:this.value}}))}handleBlur(e){this.isEditing=!1,this.dispatchEvent(new CustomEvent("input-blur",{bubbles:!0,composed:!0,detail:{srcEvent:e}}))}handleClear(e){if("keydown"===e.type){const{code:t}=e;if(t!==s.Uz.Space&&t!==s.Uz.Enter)return;e.preventDefault(),e.stopPropagation()}else"click"===e.type&&(e.preventDefault(),e.stopPropagation());this.input.focus(),this.dispatchEvent(new CustomEvent("input-clear",{bubbles:!0,composed:!0,detail:{srcEvent:e}})),document.dispatchEvent(new CustomEvent("on-widget-update")),this.handleChange(e)}handleLabelClick(){this.input.focus()}handleRighSlotChange(){var e;this.hasRightSlotContent=(null===(e=this.inputSectionRightSlot)||void 0===e?void 0:e.assignedNodes().length)>0}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}get inputClassMap(){return{"md-input--filled":this.isFilled,colums:!!this.containerSize,[`${this.containerSize}`]:!!this.containerSize,"md-read-only":this.readOnly,"md-disabled":this.disabled,[`md-${this.messageType}`]:!!this.messageType,[`md-input--nested-${this.nestedLevel}`]:!!this.nestedLevel,"md-multi":this.multi,"md-new-momentum":this.newMomentum}}get inputWrapperClassMap(){return{columns:!!this.inputSize,[`${this.inputSize}`]:!!this.inputSize}}get inputTemplateClassMap(){return{"md-input--multiline":this.multiline,"md-input--multi":this.multi,[`md-input--${this.shape}`]:!!this.shape,"md-input--compact":this.compact,"md-input--before":"before"===this.auxiliaryContentPosition||this.searchable,"md-input--after":"after"===this.auxiliaryContentPosition,"md-active":this.isEditing,"md-focus":this.isEditing,"md-read-only":this.readOnly,"md-disabled":this.disabled,"md-dirty":!!this.value,"md-has-right-icon":this.hasRightIcon}}get ariaExpandedValue(){return"true"===this.ariaExpanded||"false"===this.ariaExpanded?this.ariaExpanded:"undefined"}get hasRightIcon(){return!(!this.clear||this.disabled||!this.value||this.readOnly)||!this.compact&&this.hasRightSlotContent}inputTemplate(){var e;return this.multiline?n.html`
|
|
2
|
+
<textarea
|
|
3
|
+
part="input"
|
|
4
|
+
class="md-input ${(0,d.classMap)(this.inputTemplateClassMap)}"
|
|
5
|
+
@blur=${e=>this.handleBlur(e)}
|
|
6
|
+
@input=${e=>this.handleChange(e)}
|
|
7
|
+
@focus=${e=>this.handleFocus(e)}
|
|
8
|
+
@keydown=${e=>this.handleKeyDown(e)}
|
|
9
|
+
@mousedown=${e=>this.handleMouseDown(e)}
|
|
10
|
+
tabindex="0"
|
|
11
|
+
.value=${this.value}
|
|
12
|
+
aria-describedby=${this.ariaDescribedBy}
|
|
13
|
+
?required=${this.required}
|
|
14
|
+
?autofocus=${this.autofocus}
|
|
15
|
+
aria-label=${this.ariaLabel}
|
|
16
|
+
aria-invalid=${this.ariaInvalid}
|
|
17
|
+
aria-errormessage="${this.htmlId}-message"
|
|
18
|
+
aria-disabled=${(0,m.ifDefined)(this.disabled||void 0)}
|
|
19
|
+
id=${this.htmlId}
|
|
20
|
+
placeholder=${this.placeholder}
|
|
21
|
+
?readonly=${this.readOnly}
|
|
22
|
+
maxlength=${(0,m.ifDefined)(this.maxLength)}
|
|
23
|
+
></textarea>
|
|
24
|
+
`:n.html`
|
|
25
|
+
<input
|
|
26
|
+
part="input"
|
|
27
|
+
class="md-input ${(0,d.classMap)(this.inputTemplateClassMap)}"
|
|
28
|
+
@blur=${e=>this.handleBlur(e)}
|
|
29
|
+
@input=${e=>this.handleChange(e)}
|
|
30
|
+
@focus=${e=>this.handleFocus(e)}
|
|
31
|
+
@keydown=${e=>this.handleKeyDown(e)}
|
|
32
|
+
@mousedown=${e=>this.handleMouseDown(e)}
|
|
33
|
+
tabindex="0"
|
|
34
|
+
?required=${this.required}
|
|
35
|
+
?autofocus=${this.autofocus}
|
|
36
|
+
type=${this.type}
|
|
37
|
+
.value=${this.value}
|
|
38
|
+
aria-describedby=${this.ariaDescribedBy}
|
|
39
|
+
aria-controls=${this.ariaControls}
|
|
40
|
+
aria-expanded=${(0,m.ifDefined)(null!==(e=this.ariaExpandedValue)&&void 0!==e?e:void 0)}
|
|
41
|
+
aria-label=${this.ariaLabel}
|
|
42
|
+
aria-invalid=${this.ariaInvalid}
|
|
43
|
+
aria-errormessage=${`${this.htmlId}-message`}
|
|
44
|
+
aria-disabled=${(0,m.ifDefined)(this.disabled||void 0)}
|
|
45
|
+
id=${this.htmlId}
|
|
46
|
+
role=${this.role}
|
|
47
|
+
placeholder=${this.placeholder}
|
|
48
|
+
?readonly=${this.readOnly||this.disabled}
|
|
49
|
+
min=${(0,m.ifDefined)(this.min)}
|
|
50
|
+
max=${(0,m.ifDefined)(this.max)}
|
|
51
|
+
maxlength=${(0,m.ifDefined)(this.maxLength)}
|
|
52
|
+
/>
|
|
53
|
+
`}inputLeftTemplate(){return this.searchable?n.html`
|
|
54
|
+
<div class="md-input__before">
|
|
55
|
+
${this.isLoading?n.html` <md-spinner size="20"></md-spinner> `:n.html` <md-icon ariaHidden="true" name="search-bold" size="16" iconSet="momentumDesign"></md-icon> `}
|
|
56
|
+
</div>
|
|
57
|
+
`:"before"===this.auxiliaryContentPosition?n.html`
|
|
58
|
+
<div class="md-input__before">
|
|
59
|
+
<slot name="input-section"> </slot>
|
|
60
|
+
</div>
|
|
61
|
+
`:p.nothing}get inputRightTemplateClassMap(){return{"md-input__after":!0,hidden:!this.hasRightIcon}}inputRightTemplate(){return this.clear&&!this.disabled&&this.value&&!this.readOnly?n.html`
|
|
62
|
+
<div class="md-input__after">
|
|
63
|
+
<md-button
|
|
64
|
+
hasRemoveStyle
|
|
65
|
+
@click=${e=>this.handleClear(e)}
|
|
66
|
+
@keydown=${e=>this.handleClear(e)}
|
|
67
|
+
size="20"
|
|
68
|
+
circle
|
|
69
|
+
>
|
|
70
|
+
<md-icon
|
|
71
|
+
class="md-input__icon-clear"
|
|
72
|
+
name="cancel-bold"
|
|
73
|
+
size="14"
|
|
74
|
+
iconSet="momentumDesign"
|
|
75
|
+
aria-label=${this.clearAriaLabel||"Clear Input"}
|
|
76
|
+
>
|
|
77
|
+
</md-icon>
|
|
78
|
+
</md-button>
|
|
79
|
+
</div>
|
|
80
|
+
`:this.compact?void 0:n.html`
|
|
81
|
+
<div class=${(0,d.classMap)(this.inputRightTemplateClassMap)}>
|
|
82
|
+
<slot name="input-section-right" @slotchange=${this.handleRighSlotChange}></slot>
|
|
83
|
+
</div>
|
|
84
|
+
`}secondaryLabelTemplate(){return this.secondaryLabel?n.html`
|
|
85
|
+
<md-label
|
|
86
|
+
class="md-input__secondary-label ${(0,d.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
|
|
87
|
+
secondaryLabel
|
|
88
|
+
.htmlFor=${this.htmlId}
|
|
89
|
+
.label=${this.secondaryLabel}
|
|
90
|
+
@label-click="${()=>this.handleLabelClick()}"
|
|
91
|
+
></md-label>
|
|
92
|
+
`:p.nothing}helpTextTemplate(){return this.helpText?n.html`
|
|
93
|
+
<md-help-text
|
|
94
|
+
class="help-text ${(0,d.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
|
|
95
|
+
.message=${this.helpText}
|
|
96
|
+
style=${(0,u.styleMap)({width:"100%"})}
|
|
97
|
+
></md-help-text>
|
|
98
|
+
`:p.nothing}messagesTemplate(){return!this.hideMessage&&this.messages&&this.messages.length?n.html`
|
|
99
|
+
<div id="${this.htmlId}-message" part="message" class="md-input__messages">
|
|
100
|
+
${(0,h.repeat)(this.messages,((e,t)=>{var i,s;return n.html`
|
|
101
|
+
<md-help-text
|
|
102
|
+
.message=${e}
|
|
103
|
+
.id=${null!==(i=this.messageArr[t].id)&&void 0!==i?i:""}
|
|
104
|
+
.ariaLive=${null!==(s=this.messageArr[t].ariaLive)&&void 0!==s?s:"polite"}
|
|
105
|
+
.messageType=${this.messageType}
|
|
106
|
+
></md-help-text>
|
|
107
|
+
`}))}
|
|
108
|
+
</div>
|
|
109
|
+
`:p.nothing}labelTemplate(){return this.label?n.html`
|
|
110
|
+
<md-label
|
|
111
|
+
class="md-input__label ${(0,d.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
|
|
112
|
+
.htmlFor=${this.htmlId}
|
|
113
|
+
.label=${this.label}
|
|
114
|
+
@label-click="${()=>this.handleLabelClick()}"
|
|
115
|
+
></md-label>
|
|
116
|
+
`:p.nothing}static get styles(){return[r.A,c.A]}render(){return n.html`
|
|
117
|
+
<div class="md-input-container ${(0,d.classMap)(this.inputClassMap)}" part="md-input-container">
|
|
118
|
+
${this.labelTemplate()}
|
|
119
|
+
<div class="md-input__wrapper ${(0,d.classMap)(this.inputWrapperClassMap)}">
|
|
120
|
+
${this.inputLeftTemplate()} ${this.inputTemplate()} ${this.inputRightTemplate()}
|
|
121
|
+
</div>
|
|
122
|
+
${this.messagesTemplate()} ${this.secondaryLabelTemplate()} ${this.helpTextTemplate()}
|
|
123
|
+
</div>
|
|
124
|
+
`}};y([(0,n.property)({type:String})],i.prototype,"ariaDescribedBy",void 0),y([(0,n.property)({type:String,reflect:!0})],i.prototype,"ariaInvalid",void 0),y([(0,n.property)({type:String})],i.prototype,"ariaLabel",void 0),y([(0,n.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),y([(0,n.property)({type:String})],i.prototype,"auxiliaryContentPosition",void 0),y([(0,n.property)({type:Boolean})],i.prototype,"clear",void 0),y([(0,n.property)({type:String})],i.prototype,"clearAriaLabel",void 0),y([(0,n.property)({type:Boolean})],i.prototype,"compact",void 0),y([(0,n.property)({type:String})],i.prototype,"containerSize",void 0),y([(0,n.property)({type:Boolean})],i.prototype,"disabled",void 0),y([(0,n.property)({type:String})],i.prototype,"id",void 0),y([(0,n.property)({type:String})],i.prototype,"inputSize",void 0),y([(0,n.property)({type:Boolean})],i.prototype,"isFilled",void 0),y([(0,n.property)({type:Boolean})],i.prototype,"isLoading",void 0),y([(0,n.property)({type:String})],i.prototype,"label",void 0),y([(0,n.property)({type:String})],i.prototype,"helpText",void 0),y([(0,n.property)({type:Boolean,attribute:"hide-message",reflect:!0})],i.prototype,"hideMessage",void 0),y([(0,n.property)({type:String})],i.prototype,"htmlId",void 0),y([(0,n.property)({type:String})],i.prototype,"role",void 0),y([(0,n.property)({type:Array})],i.prototype,"messageArr",void 0),y([(0,n.property)({type:Number,reflect:!0})],i.prototype,"min",void 0),y([(0,n.property)({type:Number,reflect:!0})],i.prototype,"max",void 0),y([(0,n.property)({type:Number})],i.prototype,"maxLength",void 0),y([(0,n.property)({type:Boolean})],i.prototype,"multi",void 0),y([(0,n.property)({type:Boolean})],i.prototype,"multiline",void 0),y([(0,n.property)({type:String,reflect:!0})],i.prototype,"name",void 0),y([(0,n.property)({type:Number})],i.prototype,"nestedLevel",void 0),y([(0,n.property)({type:String})],i.prototype,"placeholder",void 0),y([(0,n.property)({type:Boolean})],i.prototype,"readOnly",void 0),y([(0,n.property)({type:Boolean})],i.prototype,"required",void 0),y([(0,n.property)({type:Boolean})],i.prototype,"searchable",void 0),y([(0,n.property)({type:String})],i.prototype,"secondaryLabel",void 0),y([(0,n.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),y([(0,n.property)({type:String})],i.prototype,"shape",void 0),y([(0,n.property)({type:String})],i.prototype,"type",void 0),y([(0,n.property)({type:String,reflect:!0})],i.prototype,"value",void 0),y([(0,n.property)({type:String})],i.prototype,"ariaControls",void 0),y([(0,n.property)({type:String})],i.prototype,"ariaExpanded",void 0),y([(0,n.property)({type:Boolean})],i.prototype,"newMomentum",void 0),y([(0,n.query)(".md-input")],i.prototype,"input",void 0),y([(0,n.internalProperty)()],i.prototype,"isEditing",void 0),y([(0,n.query)('slot[name="input-section-right"]')],i.prototype,"inputSectionRightSlot",void 0),y([(0,n.internalProperty)()],i.prototype,"hasRightSlotContent",void 0),i=y([(0,a.w)("md-input")],i),e.ELEMENT=i}(E||(E={}))},97822:e=>{e.exports=a}},m={};function h(e){var t=m[e];if(void 0!==t)return t.exports;var i=m[e]={exports:{}};return d[e](i,i.exports,h),i.exports}h.m=d,p=[],h.O=(e,t,i,s)=>{if(!t){var a=1/0;for(n=0;n<p.length;n++){for(var[t,i,s]=p[n],l=!0,r=0;r<t.length;r++)(!1&s||a>=s)&&Object.keys(h.O).every((e=>h.O[e](t[r])))?t.splice(r--,1):(l=!1,s<a&&(a=s));if(l){p.splice(n--,1);var o=i();void 0!==o&&(e=o)}}return e}s=s||0;for(var n=p.length;n>0&&p[n-1][2]>s;n--)p[n]=p[n-1];p[n]=[t,i,s]},h.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return h.d(t,{a:t}),t},h.d=(e,t)=>{for(var i in t)h.o(t,i)&&!h.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={1266:0,6408:0};h.O.j=t=>0===e[t];var t=(t,i)=>{var s,a,[l,r,o]=i,n=0;if(l.some((t=>0!==e[t]))){for(s in r)h.o(r,s)&&(h.m[s]=r[s]);if(o)var p=o(h)}for(t&&t(i);n<l.length;n++)a=l[n],h.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return h.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 u=h.O(void 0,[7502,1890,6272,6325,6875,2176,6798,9813,1200,2576,8210,1270,1598,4977,1572,6396,109],(()=>h(96408)));return h.O(u)})()));
|
|
@@ -1 +1,17 @@
|
|
|
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("highlight.js/lib/core"));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","highlight.js/lib/core"],t);else{var r="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("highlight.js/lib/core")):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["highlight.js/lib/core"]);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(self,((e,t,r,i,n,o)=>(()=>{"use strict";var l,a,s,c,p,u={3001:(e,t,r)=>{r.d(t,{wW:()=>i.w}),r(18889),r(32972),r(28373),r(70300),r(84624),r(68387);var i=r(31890)},8229:e=>{e.exports=t},18889:(e,t,r)=>{new WeakMap},23968:e=>{e.exports=i},40333:e=>{e.exports=r},41488:t=>{t.exports=e},45001:e=>{e.exports=o},52619:(e,t,r)=>{r.r(t),r.d(t,{InputFile:()=>i}),r(96798);var i,n=r(3001),o=r(26272),l=r(45001),a=r.n(l),s=r(41488),c=r(40333),p=r(97822),u=r(45213),d=function(e,t,r,i){var n,o=arguments.length,l=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(l=(o<3?n(l):o>3?n(t,r,l):n(t,r))||l);return o>3&&l&&Object.defineProperty(t,r,l),l},f=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function l(e){try{s(i.next(e))}catch(e){o(e)}}function a(e){try{s(i.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,a)}s((i=i.apply(e,t||[])).next())}))};!function(e){let t=class extends s.LitElement{constructor(){super(...arguments),this.acceptLanguage="javascript",this.getLocalization="Input File",this.acceptTypes="",this.fileName=""}static get styles(){return[o.A,u.A]}triggerFileLoad(e){e.preventDefault(),this.input.click()}handleFile(e){return f(this,void 0,void 0,(function*(){e.preventDefault();const t=this.input.files;if(t&&0!==t.length)for(const e of t){this.fileName=e.name;try{yield this.readFile(e)}catch(e){console.error("Error reading file",e)}}}))}readFile(e){return new Promise(((t,r)=>{const i=new FileReader;i.onload=e=>{t(e.target.result)},i.onerror=e=>r(e),i.readAsText(e)}))}importLanguage(e){return f(this,void 0,void 0,(function*(){try{const{default:t}=yield r(29599)(`./${e}`);a().registerLanguage(`${e}`,t),this.setAcceptTypes()}catch(e){console.warn("Please set correct language name")}}))}getAllAcceptTypes(){const e=a().listLanguages();return e.length?e.map((e=>a().getLanguage(`${e}`).aliases)).map((e=>e.map((e=>`.${e}`)))).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(e){super.updated(e),e.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage)}render(){return s.html`
|
|
2
|
+
<div class="md-input-file">
|
|
3
|
+
<label for="file-input">
|
|
4
|
+
<md-button color="blue" class="md-input-file-btn" @click=${this.triggerFileLoad}>
|
|
5
|
+
${this.getLocalization.trim()}
|
|
6
|
+
</md-button>
|
|
7
|
+
${this.fileName.length?this.fileName:c.nothing}
|
|
8
|
+
</label>
|
|
9
|
+
<input
|
|
10
|
+
type="file"
|
|
11
|
+
id="file-input"
|
|
12
|
+
name="file-input"
|
|
13
|
+
accept=${(0,p.ifDefined)(this.acceptTypes||void 0)}
|
|
14
|
+
@change=${e=>this.handleFile(e)}
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
17
|
+
`}};d([(0,s.property)({type:String,attribute:"accept-language"})],t.prototype,"acceptLanguage",void 0),d([(0,s.property)({type:String})],t.prototype,"getLocalization",void 0),d([(0,s.query)("input[type='file']")],t.prototype,"input",void 0),d([(0,s.internalProperty)()],t.prototype,"acceptTypes",void 0),d([(0,s.internalProperty)()],t.prototype,"fileName",void 0),t=d([(0,n.wW)("md-input-file")],t),e.ELEMENT=t}(i||(i={}))},97822:e=>{e.exports=n}},d={};function f(e){var t=d[e];if(void 0!==t)return t.exports;var r=d[e]={exports:{}};return u[e](r,r.exports,f),r.exports}f.m=u,l=[],f.O=(e,t,r,i)=>{if(!t){var n=1/0;for(c=0;c<l.length;c++){for(var[t,r,i]=l[c],o=!0,a=0;a<t.length;a++)(!1&i||n>=i)&&Object.keys(f.O).every((e=>f.O[e](t[a])))?t.splice(a--,1):(o=!1,i<n&&(n=i));if(o){l.splice(c--,1);var s=r();void 0!==s&&(e=s)}}return e}i=i||0;for(var c=l.length;c>0&&l[c-1][2]>i;c--)l[c]=l[c-1];l[c]=[t,r,i]},f.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return f.d(t,{a:t}),t},s=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,f.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var r=Object.create(null);f.r(r);var i={};a=a||[null,s({}),s([]),s(s)];for(var n=2&t&&e;"object"==typeof n&&!~a.indexOf(n);n=s(n))Object.getOwnPropertyNames(n).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,f.d(r,i),r},f.d=(e,t)=>{for(var r in t)f.o(t,r)&&!f.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce(((t,r)=>(f.f[r](e,t),t)),[])),f.u=e=>"chunks/md-"+e+".js",f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c={},p="@momentum-ui/web-components:",f.l=(e,t,r,i)=>{if(c[e])c[e].push(t);else{var n,o;if(void 0!==r)for(var l=document.getElementsByTagName("script"),a=0;a<l.length;a++){var s=l[a];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==p+r){n=s;break}}n||(o=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,f.nc&&n.setAttribute("nonce",f.nc),n.setAttribute("data-webpack",p+r),n.src=e),c[e]=[t];var u=(t,r)=>{n.onerror=n.onload=null,clearTimeout(d);var i=c[e];if(delete c[e],n.parentNode&&n.parentNode.removeChild(n),i&&i.forEach((e=>e(r))),t)return t(r)},d=setTimeout(u.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=u.bind(null,n.onerror),n.onload=u.bind(null,n.onload),o&&document.head.appendChild(n)}},f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.p="/",(()=>{var e={144:0,1270:0,3001:0,5382:0,7032:0,7763:0,8889:0};f.f.j=(t,r)=>{var i=f.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var n=new Promise(((r,n)=>i=e[t]=[r,n]));r.push(i[2]=n);var o=f.p+f.u(t),l=new Error;f.l(o,(r=>{if(f.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var n=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+n+": "+o+")",l.name="ChunkLoadError",l.type=n,l.request=o,i[1](l)}}),"chunk-"+t,t)}},f.O.j=t=>0===e[t];var t=(t,r)=>{var i,n,[o,l,a]=r,s=0;if(o.some((t=>0!==e[t]))){for(i in l)f.o(l,i)&&(f.m[i]=l[i]);if(a)var c=a(f)}for(t&&t(r);s<o.length;s++)n=o[s],f.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return f.O(c)},r=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var m=f.O(void 0,[1890,6272,6325,6875,2176,6798,300,8373,4624,768,195,2972,6015],(()=>f(52619)));return f.O(m)})()));
|
package/dist/comp/md-input.js
CHANGED
|
@@ -1,13 +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-9");
|
|
10
|
-
require("../chunks/md-15");
|
|
11
|
-
require("../chunks/md-14");
|
|
12
|
-
require("../chunks/md-18");
|
|
13
|
-
module.exports = require("../comp/md-input-entry");
|
|
1
|
+
require("../7502"),require("../1890"),require("../6272"),require("../6325"),require("../6875"),require("../2176"),require("../6798"),require("../9813"),require("../1200"),require("../2576"),require("../8210"),require("../1270"),require("../1598"),require("../4977"),require("../1572"),require("../6396"),require("../109"),module.exports=require("../comp/md-input-entry");
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/class-map.js"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map.js"],t);else{var
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/class-map.js"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map.js"],t);else{var o="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/class-map.js")):t(e["lit-element"],e["lit-html/directives/class-map.js"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t)=>(()=>{"use strict";var o,r={6396:(e,t,o)=>{o.r(t),o.d(t,{Label:()=>r});var r,l=o(31890),i=o(26272),s=o(41488),a=o(17518),n=o(11598),p=function(e,t,o,r){var l,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(l=e[a])&&(s=(i<3?l(s):i>3?l(t,o,s):l(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};!function(e){let t=class extends s.LitElement{constructor(){super(...arguments),this.label="",this.theme="",this.radioLabel=!1,this.checkboxLabel=!1,this.toggleSwitchLabel=!1,this.htmlFor="",this.active=!1,this.disabled=!1,this.indeterminate=!1,this.secondaryLabel=!1}static get styles(){return[i.A,n.A]}setFocus(){this.dispatchEvent(new CustomEvent("setFocus"))}get labelClassMap(){return{[`md-label--${this.theme}`]:!!this.theme,"md-radio__label":this.radioLabel,"md-checkbox__label":this.checkboxLabel,"md-secondary-label":this.secondaryLabel,active:this.active,disabled:this.disabled,indeterminate:this.indeterminate}}handleClick(){this.setFocus(),this.dispatchEvent(new CustomEvent("label-click",{composed:!0,bubbles:!0,detail:{htmlFor:this.htmlFor}}))}render(){return s.html`
|
|
2
|
+
<label
|
|
3
|
+
@click="${()=>this.handleClick()}"
|
|
4
|
+
class="md-label ${(0,a.classMap)(this.labelClassMap)}"
|
|
5
|
+
for="${this.htmlFor}"
|
|
6
|
+
>
|
|
7
|
+
${this.label?s.html` <span>${this.label}</span> `:s.html` <slot></slot> `}
|
|
8
|
+
</label>
|
|
9
|
+
`}};p([(0,s.property)({type:String})],t.prototype,"label",void 0),p([(0,s.property)({type:String})],t.prototype,"theme",void 0),p([(0,s.property)({type:Boolean})],t.prototype,"radioLabel",void 0),p([(0,s.property)({type:Boolean})],t.prototype,"checkboxLabel",void 0),p([(0,s.property)({type:Boolean})],t.prototype,"toggleSwitchLabel",void 0),p([(0,s.property)({type:String})],t.prototype,"htmlFor",void 0),p([(0,s.property)({type:Boolean})],t.prototype,"active",void 0),p([(0,s.property)({type:Boolean})],t.prototype,"disabled",void 0),p([(0,s.property)({type:Boolean})],t.prototype,"indeterminate",void 0),p([(0,s.property)({type:Boolean})],t.prototype,"secondaryLabel",void 0),t=p([(0,l.w)("md-label")],t),e.ELEMENT=t}(r||(r={}))},17518:e=>{e.exports=t},41488:t=>{t.exports=e}},l={};function i(e){var t=l[e];if(void 0!==t)return t.exports;var o=l[e]={exports:{}};return r[e](o,o.exports,i),o.exports}i.m=r,o=[],i.O=(e,t,r,l)=>{if(!t){var s=1/0;for(d=0;d<o.length;d++){for(var[t,r,l]=o[d],a=!0,n=0;n<t.length;n++)(!1&l||s>=l)&&Object.keys(i.O).every((e=>i.O[e](t[n])))?t.splice(n--,1):(a=!1,l<s&&(s=l));if(a){o.splice(d--,1);var p=r();void 0!==p&&(e=p)}}return e}l=l||0;for(var d=o.length;d>0&&o[d-1][2]>l;d--)o[d]=o[d-1];o[d]=[t,r,l]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={4928:0,6396:0};i.O.j=t=>0===e[t];var t=(t,o)=>{var r,l,[s,a,n]=o,p=0;if(s.some((t=>0!==e[t]))){for(r in a)i.o(a,r)&&(i.m[r]=a[r]);if(n)var d=n(i)}for(t&&t(o);p<s.length;p++)l=s[p],i.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return i.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 s=i.O(void 0,[1890,6272,1598],(()=>i(6396)));return i.O(s)})()));
|
package/dist/comp/md-label.js
CHANGED
|
@@ -1 +1,36 @@
|
|
|
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 r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(self,((e,t,i)=>(()=>{"use strict";var r,o={19026:(e,t,i)=>{i.r(t),i.d(t,{Link:()=>b,inlineStyle:()=>y,linkColor:()=>f,linkRole:()=>h,linkSize:()=>c,linkTag:()=>p});var r=i(31890),o=i(26272),l=i(41488),n=i(23968),a=i(97822),s=i(73112),d=function(e,t,i,r){var o,l=arguments.length,n=l<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 a=e.length-1;a>=0;a--)(o=e[a])&&(n=(l<3?o(n):l>3?o(t,i,n):o(t,i))||n);return l>3&&n&&Object.defineProperty(t,i,n),n};const p=["a","div","span"],f=["","blue","red","green","yellow","orange"],h=["button","checkbox","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","switch","tab"],c=["large","midsize","small"],y=["default","error"];var b;!function(e){let t=class extends l.LitElement{constructor(){super(...arguments),this.color="",this.ariaLabel="",this.ariaRole="link",this.disabled=!1,this.inline=!1,this.inlineStyle=void 0,this.inverted=void 0,this.href="",this.tag="a",this.target="_self",this.size=void 0,this._tabIndex=0}get tabIndex(){return this._tabIndex}set tabIndex(e){const t=this._tabIndex;this._tabIndex=e,this.requestUpdate("tabIndex",t)}static get styles(){return[o.A,s.A]}render(){const e={[`md-link--${this.color}`]:this.color,"md-link--inline":this.inline,[`md-link--inline-style-${this.inlineStyle}`]:!!this.inlineStyle,[`${this.size}`]:!!this.size,inverted:!0===this.inverted,disabled:this.disabled};return l.html` ${(()=>{switch(this.tag){case"div":return l.html`
|
|
2
|
+
<div
|
|
3
|
+
class="md-link ${(0,n.classMap)(e)}"
|
|
4
|
+
tabindex=${this.tabIndex}
|
|
5
|
+
aria-label=${(0,a.ifDefined)(this.ariaLabel||void 0)}
|
|
6
|
+
aria-disabled=${(0,a.ifDefined)(this.disabled||void 0)}
|
|
7
|
+
role=${this.ariaRole}
|
|
8
|
+
part="link"
|
|
9
|
+
>
|
|
10
|
+
<slot></slot>
|
|
11
|
+
</div>
|
|
12
|
+
`;case"span":return l.html`
|
|
13
|
+
<span
|
|
14
|
+
class="md-link ${(0,n.classMap)(e)}"
|
|
15
|
+
tabindex=${this.tabIndex}
|
|
16
|
+
aria-label=${(0,a.ifDefined)(this.ariaLabel||void 0)}
|
|
17
|
+
aria-disabled=${(0,a.ifDefined)(this.disabled||void 0)}
|
|
18
|
+
role=${this.ariaRole}
|
|
19
|
+
part="link"
|
|
20
|
+
>
|
|
21
|
+
<slot></slot>
|
|
22
|
+
</span>
|
|
23
|
+
`;default:return l.html`
|
|
24
|
+
<a
|
|
25
|
+
class="md-link ${(0,n.classMap)(e)}"
|
|
26
|
+
.target="${this.target}"
|
|
27
|
+
href=${(0,a.ifDefined)(this.disabled?void 0:this.href)}
|
|
28
|
+
tabindex=${this.tabIndex}
|
|
29
|
+
aria-label=${(0,a.ifDefined)(this.ariaLabel||void 0)}
|
|
30
|
+
aria-disabled=${(0,a.ifDefined)(this.disabled||void 0)}
|
|
31
|
+
role=${this.ariaRole}
|
|
32
|
+
part="link"
|
|
33
|
+
>
|
|
34
|
+
<slot></slot>
|
|
35
|
+
</a>
|
|
36
|
+
`}})()} `}};d([(0,l.property)({type:String,attribute:!1})],t.prototype,"color",void 0),d([(0,l.property)({type:String})],t.prototype,"ariaLabel",void 0),d([(0,l.property)({type:String})],t.prototype,"ariaRole",void 0),d([(0,l.property)({type:Boolean})],t.prototype,"disabled",void 0),d([(0,l.property)({type:Boolean})],t.prototype,"inline",void 0),d([(0,l.property)({type:String,attribute:"inline-style"})],t.prototype,"inlineStyle",void 0),d([(0,l.property)({type:Boolean})],t.prototype,"inverted",void 0),d([(0,l.property)({type:String})],t.prototype,"href",void 0),d([(0,l.property)({type:String})],t.prototype,"tag",void 0),d([(0,l.property)({type:String})],t.prototype,"target",void 0),d([(0,l.property)({type:String})],t.prototype,"size",void 0),d([(0,l.property)({type:Number,attribute:"tab-index",reflect:!0})],t.prototype,"tabIndex",null),t=d([(0,r.w)("md-link")],t),e.ELEMENT=t}(b||(b={}))},23968:e=>{e.exports=t},41488:t=>{t.exports=e},97822:e=>{e.exports=i}},l={};function n(e){var t=l[e];if(void 0!==t)return t.exports;var i=l[e]={exports:{}};return o[e](i,i.exports,n),i.exports}n.m=o,r=[],n.O=(e,t,i,o)=>{if(!t){var l=1/0;for(p=0;p<r.length;p++){for(var[t,i,o]=r[p],a=!0,s=0;s<t.length;s++)(!1&o||l>=o)&&Object.keys(n.O).every((e=>n.O[e](t[s])))?t.splice(s--,1):(a=!1,o<l&&(l=o));if(a){r.splice(p--,1);var d=i();void 0!==d&&(e=d)}}return e}o=o||0;for(var p=r.length;p>0&&r[p-1][2]>o;p--)r[p]=r[p-1];r[p]=[t,i,o]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={6132:0};n.O.j=t=>0===e[t];var t=(t,i)=>{var r,o,[l,a,s]=i,d=0;if(l.some((t=>0!==e[t]))){for(r in a)n.o(a,r)&&(n.m[r]=a[r]);if(s)var p=s(n)}for(t&&t(i);d<l.length;d++)o=l[d],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.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 a=n.O(void 0,[1890,6272,3112],(()=>n(19026)));return n.O(a)})()));
|
package/dist/comp/md-link.js
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/if-defined"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/if-defined"],t);else{var
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/if-defined"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/if-defined"],t);else{var i="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/if-defined")):t(e["lit-element"],e["lit-html/directives/if-defined"]);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(self,((e,t)=>(()=>{"use strict";var i,s={41488:t=>{t.exports=e},68490:(e,t,i)=>{i.r(t),i.d(t,{List:()=>s});var s,r=i(90195),l=i(3001),o=i(31890),n=i(26272),d=i(41488),c=i(97822),a=i(21392),h=function(e,t,i,s){var r,l=arguments.length,o=l<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(o=(l<3?r(o):l>3?r(t,i,o):r(t,i))||o);return l>3&&o&&Object.defineProperty(t,i,o),o};!function(e){let t=class extends((0,l.Io)(d.LitElement)){constructor(){super(...arguments),this.alignment="vertical",this.label="option",this.activated=-1,this._role="listbox"}firstUpdated(e){super.firstUpdated(e),this.setAttribute("aria-label",this.label)}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}isFocusable(e){return!e.hasAttribute("hidden")}connectedCallback(){super.connectedCallback(),this._role=this.getAttribute("role")||"listbox",this.removeAttribute("role"),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}findListItemIndex(e){const t=e.composedPath();return this.slotted.findIndex((e=>t.includes(e)))}switchListItemOnArrowPress(e,t=1){const i=super.getAvailableSelectedIndex(e,t);-1!==i&&(this.selected=i)}setActivated(e){-1!==e&&(this.activated=e,this.selected=e,this.setSelected(e))}findSelectedListItemIndex(){return this.slotted.findIndex((e=>e.selected))}setSelected(e){const t=this.findSelectedListItemIndex();-1!==t&&t!==e&&(this.slotted[t].selected=!1),this.slotted[e]&&(this.slotted[e].selected=!0)}updated(e){super.updated(e),e.has("slotted")&&this.setActivated(this.activated),e.has("activated")&&this.setActivated(this.activated),e.has("label")&&this.setAttribute("aria-label",this.label)}isListItemDisabled(e){var t;const i=this.slotted[e];return null===(t=null==i?void 0:i.disabled)||void 0===t||t}handleClick(e){const t=this.findListItemIndex(e);-1!==t&&(this.isListItemDisabled(t)||(this.setActivated(t),this.notifySelectedChange()))}handleKeyDown(e){const{code:t}=e;switch(t){case r.Uz.End:this.switchListItemOnArrowPress(this.slotted.length-1);break;case r.Uz.Home:this.switchListItemOnArrowPress(0);break;case r.Uz.ArrowUp:case r.Uz.ArrowLeft:e.preventDefault(),0===this.selected?this.switchListItemOnArrowPress(this.slotted.length-1,-1):this.switchListItemOnArrowPress(this.selected-1,-1);break;case r.Uz.ArrowDown:case r.Uz.ArrowRight:e.preventDefault(),this.selected===this.slotted.length-1?this.switchListItemOnArrowPress(0):this.switchListItemOnArrowPress(this.selected+1);break;case r.Uz.Enter:case r.Uz.Space:this.isListItemDisabled(this.selected)||(this.setActivated(this.selected),this.notifySelectedChange())}}get slotElement(){return this.listItemSlot}static get styles(){return[n.A,a.A]}render(){return d.html`
|
|
2
|
+
<ul role=${(0,c.ifDefined)("list"!==this._role?this._role:void 0)} class="md-list" part="list">
|
|
3
|
+
<slot name="list-item"></slot>
|
|
4
|
+
</ul>
|
|
5
|
+
`}};h([(0,d.property)({type:String,reflect:!0})],t.prototype,"alignment",void 0),h([(0,d.property)({type:String})],t.prototype,"label",void 0),h([(0,d.property)({type:Number,reflect:!0})],t.prototype,"activated",void 0),h([(0,d.query)("slot[name='list-item']")],t.prototype,"listItemSlot",void 0),t=h([(0,o.w)("md-list")],t),e.ELEMENT=t}(s||(s={}))},97822:e=>{e.exports=t}},r={};function l(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return s[e](i,i.exports,l),i.exports}l.m=s,i=[],l.O=(e,t,s,r)=>{if(!t){var o=1/0;for(a=0;a<i.length;a++){for(var[t,s,r]=i[a],n=!0,d=0;d<t.length;d++)(!1&r||o>=r)&&Object.keys(l.O).every((e=>l.O[e](t[d])))?t.splice(d--,1):(n=!1,r<o&&(o=r));if(n){i.splice(a--,1);var c=s();void 0!==c&&(e=c)}}return e}r=r||0;for(var a=i.length;a>0&&i[a-1][2]>r;a--)i[a]=i[a-1];i[a]=[t,s,r]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var i in t)l.o(t,i)&&!l.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={6060:0};l.O.j=t=>0===e[t];var t=(t,i)=>{var s,r,[o,n,d]=i,c=0;if(o.some((t=>0!==e[t]))){for(s in n)l.o(n,s)&&(l.m[s]=n[s]);if(d)var a=d(l)}for(t&&t(i);c<o.length;c++)r=o[c],l.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return l.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 o=l.O(void 0,[1890,6272,8889,300,8373,195,8387,2972,2243,1392,5382],(()=>l(68490)));return l.O(o)})()));
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/class-map"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map"],t);else{var r="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/class-map")):t(e["lit-element"],e["lit-html/directives/class-map"]);for(var
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/class-map"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map"],t);else{var r="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/class-map")):t(e["lit-element"],e["lit-html/directives/class-map"]);for(var s in r)("object"==typeof exports?exports:e)[s]=r[s]}}(self,((e,t)=>(()=>{"use strict";var r,s={23968:e=>{e.exports=t},41488:t=>{t.exports=e},66245:(e,t,r)=>{r.r(t),r.d(t,{ListItem:()=>s});var s,i=r(3001),l=r(31890),o=r(26272),n=r(41488),p=r(23968),a=r(21392),d=function(e,t,r,s){var i,l=arguments.length,o=l<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,s);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(o=(l<3?i(o):l>3?i(t,r,o):i(t,r))||o);return l>3&&o&&Object.defineProperty(t,r,o),o};!function(e){let t=class extends((0,i.yC)(n.LitElement)){constructor(){super(...arguments),this.role="option",this.tabIndex=-1,this.shape="rounded",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.requestUpdate("disabled",t)}get selected(){return this._selected}set selected(e){const t=this._selected;this._selected=e,this.requestUpdate("selected",t)}get listItemTemplateClassMap(){return{[`md-list-item--${this.shape}`]:!!this.shape}}static get styles(){return[o.A,a.A]}render(){return n.html`
|
|
2
|
+
<li class="md-list-item ${(0,p.classMap)(this.listItemTemplateClassMap)}" part="list-item">
|
|
3
|
+
<slot></slot>
|
|
4
|
+
</li>
|
|
5
|
+
`}};d([(0,n.property)({type:String,reflect:!0})],t.prototype,"role",void 0),d([(0,n.property)({type:Number,reflect:!0})],t.prototype,"tabIndex",void 0),d([(0,n.property)({type:String,reflect:!0})],t.prototype,"shape",void 0),d([(0,n.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),d([(0,n.property)({type:Boolean,reflect:!0})],t.prototype,"selected",null),t=d([(0,l.w)("md-list-item")],t),e.ELEMENT=t}(s||(s={}))}},i={};function l(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return s[e](r,r.exports,l),r.exports}l.m=s,r=[],l.O=(e,t,s,i)=>{if(!t){var o=1/0;for(d=0;d<r.length;d++){for(var[t,s,i]=r[d],n=!0,p=0;p<t.length;p++)(!1&i||o>=i)&&Object.keys(l.O).every((e=>l.O[e](t[p])))?t.splice(p--,1):(n=!1,i<o&&(o=i));if(n){r.splice(d--,1);var a=s();void 0!==a&&(e=a)}}return e}i=i||0;for(var d=r.length;d>0&&r[d-1][2]>i;d--)r[d]=r[d-1];r[d]=[t,s,i]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={8442:0};l.O.j=t=>0===e[t];var t=(t,r)=>{var s,i,[o,n,p]=r,a=0;if(o.some((t=>0!==e[t]))){for(s in n)l.o(n,s)&&(l.m[s]=n[s]);if(p)var d=p(l)}for(t&&t(r);a<o.length;a++)i=o[a],l.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return l.O(d)},r=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var o=l.O(void 0,[1890,6272,8889,300,8373,4624,591,768,3001,671,1392],(()=>l(66245)));return l.O(o)})()));
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
require("../
|
|
2
|
-
require("../chunks/md-1");
|
|
3
|
-
require("../chunks/md-2");
|
|
4
|
-
require("../chunks/md-3");
|
|
5
|
-
require("../chunks/md-4");
|
|
6
|
-
require("../chunks/md-6");
|
|
7
|
-
require("../chunks/md-8");
|
|
8
|
-
require("../chunks/md-11");
|
|
9
|
-
require("../chunks/md-30");
|
|
10
|
-
require("../chunks/md-39");
|
|
11
|
-
module.exports = require("../comp/md-list-item-entry");
|
|
1
|
+
require("../1890"),require("../6272"),require("../8889"),require("../300"),require("../8373"),require("../4624"),require("../591"),require("../768"),require("../3001"),require("../671"),require("../1392"),module.exports=require("../comp/md-list-item-entry");
|
package/dist/comp/md-list.js
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
require("../
|
|
2
|
-
require("../chunks/md-1");
|
|
3
|
-
require("../chunks/md-2");
|
|
4
|
-
require("../chunks/md-3");
|
|
5
|
-
require("../chunks/md-4");
|
|
6
|
-
require("../chunks/md-6");
|
|
7
|
-
require("../chunks/md-8");
|
|
8
|
-
require("../chunks/md-11");
|
|
9
|
-
require("../chunks/md-30");
|
|
10
|
-
require("../chunks/md-38");
|
|
11
|
-
module.exports = require("../comp/md-list-entry");
|
|
1
|
+
require("../1890"),require("../6272"),require("../8889"),require("../300"),require("../8373"),require("../195"),require("../8387"),require("../2972"),require("../2243"),require("../1392"),require("../5382"),module.exports=require("../comp/md-list-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/class-map.js"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map.js"],t);else{var
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/class-map.js"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map.js"],t);else{var i="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/class-map.js")):t(e["lit-element"],e["lit-html/directives/class-map.js"]);for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(self,((e,t)=>(()=>{"use strict";var i,n={17518:e=>{e.exports=t},41488:t=>{t.exports=e},69788:(e,t,i)=>{i.r(t),i.d(t,{Loading:()=>n});var n,s=i(31890),o=i(26272),a=i(41488),r=i(17518),l=i(76700),c=function(e,t,i,n){var s,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(a=(o<3?s(a):o>3?s(t,i,a):s(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.size="",this.isAnimating=!1,this.animationFrameId=null}static get styles(){return[o.A,l.A]}firstUpdated(e){super.firstUpdated(e),this.isAnimating=!0,this.startAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.isAnimating=!1,this.stopAnimation()}startAnimation(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".md-loading__icon");if(!t)return;let i=null;const n=1400,s=e=>{if(!this.isAnimating)return;i||(i=e);const o=(e-i)%n;t.forEach(((e,t)=>{const i=(o-200*t+n)%n;let s=0,a=.1;if(i<280){const e=.1+i/280*.9;s=e,a=e}else if(i<1400){const e=Math.min((i-280)/1120*2,1);s=Math.max(1-.9*e,.9),a=Math.max(1-.9*e,.2)}e.style.transform=`scale(${s})`,e.style.opacity=`${a}`})),this.animationFrameId=requestAnimationFrame(s)};this.animationFrameId=requestAnimationFrame(s)}stopAnimation(){var e;null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".md-loading__icon");t&&t.forEach((e=>{e.style.transform="scale(0, 0)",e.style.opacity="0.1"}))}get loadingClassMap(){return{[`md-loading--${this.size}`]:!!this.size}}get loadingIconClassMap(){return{"md-loading__icon":!0}}render(){return a.html`
|
|
2
|
+
<div class="md-loading ${(0,r.classMap)(this.loadingClassMap)}">
|
|
3
|
+
<span class=${(0,r.classMap)(this.loadingIconClassMap)}></span>
|
|
4
|
+
<span class=${(0,r.classMap)(this.loadingIconClassMap)}></span>
|
|
5
|
+
<span class=${(0,r.classMap)(this.loadingIconClassMap)}></span>
|
|
6
|
+
</div>
|
|
7
|
+
`}};c([(0,a.property)({type:String})],t.prototype,"size",void 0),c([(0,a.internalProperty)()],t.prototype,"isAnimating",void 0),t=c([(0,s.w)("md-loading")],t),e.ELEMENT=t}(n||(n={}))}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.m=n,i=[],o.O=(e,t,n,s)=>{if(!t){var a=1/0;for(d=0;d<i.length;d++){for(var[t,n,s]=i[d],r=!0,l=0;l<t.length;l++)(!1&s||a>=s)&&Object.keys(o.O).every((e=>o.O[e](t[l])))?t.splice(l--,1):(r=!1,s<a&&(a=s));if(r){i.splice(d--,1);var c=n();void 0!==c&&(e=c)}}return e}s=s||0;for(var d=i.length;d>0&&i[d-1][2]>s;d--)i[d]=i[d-1];i[d]=[t,n,s]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={502:0,9788:0};o.O.j=t=>0===e[t];var t=(t,i)=>{var n,s,[a,r,l]=i,c=0;if(a.some((t=>0!==e[t]))){for(n in r)o.o(r,n)&&(o.m[n]=r[n]);if(l)var d=l(o)}for(t&&t(i);c<a.length;c++)s=a[c],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return o.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 a=o.O(void 0,[1890,6272,6700],(()=>o(69788)));return o.O(a)})()));
|
package/dist/comp/md-loading.js
CHANGED
|
@@ -1 +1,55 @@
|
|
|
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("lit-html/directives/class-map.js"),require("lit-html/directives/until.js"));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","lit-html/directives/class-map.js","lit-html/directives/until.js"],t);else{var i="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("lit-html/directives/class-map.js"),require("lit-html/directives/until.js")):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["lit-html/directives/class-map.js"],e["lit-html/directives/until.js"]);for(var o in i)("object"==typeof exports?exports:e)[o]=i[o]}}(self,((e,t,i,o,r,s,l,n,a)=>(()=>{"use strict";var m,d={8229:e=>{e.exports=t},17518:e=>{e.exports=n},23968:e=>{e.exports=o},32022:e=>{e.exports=s},37782:e=>{e.exports=a},40333:e=>{e.exports=i},41488:t=>{t.exports=e},60554:e=>{e.exports=l},61997:(e,t,i)=>{i.r(t),i.d(t,{MeetingAlert:()=>p,MeetingAlertRole:()=>c}),i(38028),i(96798),i(61200);var o=i(90195),r=i(31890),s=i(26272),l=i(41488),n=i(40333),a=i(48064),m=i(56338),d=function(e,t,i,o){var r,s=arguments.length,l=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(l=(s<3?r(l):s>3?r(t,i,l):r(t,i))||l);return s>3&&l&&Object.defineProperty(t,i,l),l};const c=["alert","alertdialog","button","checkbox","dialog","link","option","status"];var p;!function(e){let t=class extends l.LitElement{constructor(){super(...arguments),this.attendees=[{title:"Attendee",src:null,alt:"Attendee"}],this.closeAriaLabel="close",this.onKeyDown=null,this.onSnooze=null,this.message="",this.snoozeAriaLabel="snooze",this.role="button",this.show=!1,this.src="",this.status="",this.userStyles="",this.title="",this._onSnooze=e=>{this.dispatchEvent(new CustomEvent("snooze",{composed:!0,detail:{srcEvent:e}}))},this._onClose=e=>{this.dispatchEvent(new CustomEvent("close",{composed:!0,detail:{srcEvent:e}}))},this.handleSnooze=e=>{this.onSnooze?this.onSnooze(e):this._onSnooze(e),e.stopPropagation()},this.handleClose=e=>{this._onClose(e),e.stopPropagation()},this.handleKeyDown=e=>{if(e.code===o.Uz.Escape&&this.handleClose(e),e.code===o.Uz.Enter||e.code===o.Uz.Space){switch(e.target.attributes.getNamedItem("aria-label").value){case"close":this.handleClose(e);break;case"snooze":this.handleSnooze(e)}e.preventDefault()}this.onKeyDown&&this.onKeyDown(e)}}getStyles(){return l.html`
|
|
2
|
+
<style>
|
|
3
|
+
::slotted(img) {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
vertical-align: middle;
|
|
6
|
+
-ms-interpolation-mode: bicubic;
|
|
7
|
+
height: auto;
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
border-style: none;
|
|
10
|
+
}
|
|
11
|
+
${this.userStyles}
|
|
12
|
+
</style>
|
|
13
|
+
`}static get styles(){return[s.A,m.A]}render(){const{attendees:e,message:t,onSnooze:i,role:o,src:r,status:s,title:m,closeAriaLabel:d,show:c,snoozeAriaLabel:p}=this;return l.html`
|
|
14
|
+
${this.getStyles()}
|
|
15
|
+
${c?l.html`
|
|
16
|
+
<div
|
|
17
|
+
aria-label="Meeting Alert"
|
|
18
|
+
class=${"md-alert md-alert--meeting"}
|
|
19
|
+
@keydown=${e=>this.handleKeyDown(e)}
|
|
20
|
+
role=${o}
|
|
21
|
+
>
|
|
22
|
+
<slot name="custom-avatar"> ${e.length>=2?(0,a.o)(e):l.html` <md-avatar title=${m} label="avatar" src=${r} tabindex="-1"></md-avatar> `} </slot>
|
|
23
|
+
<div class=${"md-alert__content "+(i?"":" md-alert__content--wide")}>
|
|
24
|
+
<div class="md-alert__title" title=${m}>${m}</div>
|
|
25
|
+
<div class="md-alert__status" title=${s}>${s}</div>
|
|
26
|
+
<div class="md-alert__message" title=${t}>${t}</div>
|
|
27
|
+
</div>
|
|
28
|
+
${i?l.html`
|
|
29
|
+
<div class="md-alert__button">
|
|
30
|
+
<md-button
|
|
31
|
+
variant="secondary"
|
|
32
|
+
aria-label=${p}
|
|
33
|
+
circle
|
|
34
|
+
@click=${e=>{this.handleSnooze(e)}}
|
|
35
|
+
.size=${40}
|
|
36
|
+
>
|
|
37
|
+
<md-icon name="alarm-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
38
|
+
</md-button>
|
|
39
|
+
</div>
|
|
40
|
+
`:n.nothing}
|
|
41
|
+
<slot name="custom-action">
|
|
42
|
+
<md-button
|
|
43
|
+
class="md-alert__button"
|
|
44
|
+
variant="ghost"
|
|
45
|
+
ariaLabel=${d}
|
|
46
|
+
circle
|
|
47
|
+
@click=${e=>{this.handleClose(e)}}
|
|
48
|
+
.size=${40}
|
|
49
|
+
>
|
|
50
|
+
<md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
51
|
+
</md-button>
|
|
52
|
+
</slot>
|
|
53
|
+
</div>
|
|
54
|
+
`:n.nothing}
|
|
55
|
+
`}};d([(0,l.property)({type:Array})],t.prototype,"attendees",void 0),d([(0,l.property)({type:String})],t.prototype,"closeAriaLabel",void 0),d([(0,l.property)({attribute:!1})],t.prototype,"onKeyDown",void 0),d([(0,l.property)({attribute:!1})],t.prototype,"onSnooze",void 0),d([(0,l.property)({type:String})],t.prototype,"message",void 0),d([(0,l.property)({type:String})],t.prototype,"snoozeAriaLabel",void 0),d([(0,l.property)({type:String})],t.prototype,"role",void 0),d([(0,l.property)({type:Boolean})],t.prototype,"show",void 0),d([(0,l.property)({type:String})],t.prototype,"src",void 0),d([(0,l.property)({type:String})],t.prototype,"status",void 0),d([(0,l.property)({type:String})],t.prototype,"userStyles",void 0),d([(0,l.property)({type:String})],t.prototype,"title",void 0),t=d([(0,r.w)("md-meeting-alert")],t),e.ELEMENT=t}(p||(p={}))},97822:e=>{e.exports=r}},c={};function p(e){var t=c[e];if(void 0!==t)return t.exports;var i=c[e]={exports:{}};return d[e](i,i.exports,p),i.exports}p.m=d,m=[],p.O=(e,t,i,o)=>{if(!t){var r=1/0;for(a=0;a<m.length;a++){for(var[t,i,o]=m[a],s=!0,l=0;l<t.length;l++)(!1&o||r>=o)&&Object.keys(p.O).every((e=>p.O[e](t[l])))?t.splice(l--,1):(s=!1,o<r&&(r=o));if(s){m.splice(a--,1);var n=i();void 0!==n&&(e=n)}}return e}o=o||0;for(var a=m.length;a>0&&m[a-1][2]>o;a--)m[a]=m[a-1];m[a]=[t,i,o]},p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var i in t)p.o(t,i)&&!p.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},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={4908:0};p.O.j=t=>0===e[t];var t=(t,i)=>{var o,r,[s,l,n]=i,a=0;if(s.some((t=>0!==e[t]))){for(o in l)p.o(l,o)&&(p.m[o]=l[o]);if(n)var m=n(p)}for(t&&t(i);a<s.length;a++)r=s[a],p.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return p.O(m)},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 u=p.O(void 0,[7502,1890,6272,6325,6875,2176,6798,9813,1200,2576,3553,6700,528,9788,8028,5801],(()=>p(61997)));return p.O(u)})()));
|