@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,11 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html"),require("lit-html/directives/class-map"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html","lit-html/directives/class-map"],t);else{var r="object"==typeof exports?t(require("lit-element"),require("lit-html"),require("lit-html/directives/class-map")):t(e["lit-element"],e["lit-html"],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"),require("lit-html/directives/class-map"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html","lit-html/directives/class-map"],t);else{var r="object"==typeof exports?t(require("lit-element"),require("lit-html"),require("lit-html/directives/class-map")):t(e["lit-element"],e["lit-html"],e["lit-html/directives/class-map"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,((e,t,r)=>(()=>{"use strict";var o,i={23968:e=>{e.exports=r},24627:(e,t,r)=>{r.r(t),r.d(t,{DraggableItem:()=>o});var o,i=r(3001),l=r(31890),n=r(26272),d=r(41488),s=r(40333),a=r(23968),p=r(6979),m=function(e,t,r,o){var i,l=arguments.length,n=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var d=e.length-1;d>=0;d--)(i=e[d])&&(n=(l<3?i(n):l>3?i(t,r,n):i(t,r))||n);return l>3&&n&&Object.defineProperty(t,r,n),n};!function(e){let t=class extends((0,i.yC)(d.LitElement)){constructor(){super(...arguments),this.disabled=!1,this.extended=!1,this.editable=!1}static get styles(){return[n.A,p.A]}get draggableItemClassMap(){return{extended:this.extended,default:!this.extended,disabled:this.disabled}}render(){return d.html`
|
|
2
|
+
<div
|
|
3
|
+
class="md-draggable-item ${(0,a.classMap)(this.draggableItemClassMap)}"
|
|
4
|
+
part="draggable-item"
|
|
5
|
+
aria-disabled=${this.disabled}
|
|
6
|
+
>
|
|
7
|
+
${this.extended&&this.editable?d.html` <md-icon name="dragger-vertical-bold" size="16" iconSet="momentumDesign"></md-icon> `:s.nothing}
|
|
8
|
+
<slot></slot>
|
|
9
|
+
${this.extended?d.html` <slot name="extended"></slot> `:s.nothing}
|
|
10
|
+
</div>
|
|
11
|
+
`}};m([(0,d.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",void 0),m([(0,d.property)({type:Boolean,reflect:!0})],t.prototype,"extended",void 0),m([(0,d.property)({type:Boolean,reflect:!0})],t.prototype,"editable",void 0),t=m([(0,l.w)("md-draggable-item")],t),e.ELEMENT=t}(o||(o={}))},40333:e=>{e.exports=t},41488:t=>{t.exports=e}},l={};function n(e){var t=l[e];if(void 0!==t)return t.exports;var r=l[e]={exports:{}};return i[e](r,r.exports,n),r.exports}n.m=i,o=[],n.O=(e,t,r,i)=>{if(!t){var l=1/0;for(p=0;p<o.length;p++){for(var[t,r,i]=o[p],d=!0,s=0;s<t.length;s++)(!1&i||l>=i)&&Object.keys(n.O).every((e=>n.O[e](t[s])))?t.splice(s--,1):(d=!1,i<l&&(l=i));if(d){o.splice(p--,1);var a=r();void 0!==a&&(e=a)}}return e}i=i||0;for(var p=o.length;p>0&&o[p-1][2]>i;p--)o[p]=o[p-1];o[p]=[t,r,i]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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={7219:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,i,[l,d,s]=r,a=0;if(l.some((t=>0!==e[t]))){for(o in d)n.o(d,o)&&(n.m[o]=d[o]);if(s)var p=s(n)}for(t&&t(r);a<l.length;a++)i=l[a],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(p)},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 d=n.O(void 0,[1890,6272,8889,300,8373,4624,591,768,3001,671,6979],(()=>n(24627)));return n.O(d)})()));
|
|
@@ -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-44");
|
|
10
|
-
require("../chunks/md-70");
|
|
11
|
-
module.exports = require("../comp/md-draggable-item-entry");
|
|
1
|
+
require("../1890"),require("../6272"),require("../8889"),require("../300"),require("../8373"),require("../4624"),require("../591"),require("../768"),require("../3001"),require("../671"),require("../6979"),module.exports=require("../comp/md-draggable-item-entry");
|
|
@@ -1,12 +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-12");
|
|
10
|
-
require("../chunks/md-44");
|
|
11
|
-
require("../chunks/md-69");
|
|
12
|
-
module.exports = require("../comp/md-draggable-entry");
|
|
1
|
+
require("../1890"),require("../6272"),require("../8889"),require("../300"),require("../8373"),require("../4624"),require("../6677"),require("../8387"),require("../2972"),require("../671"),require("../6979"),require("../144"),module.exports=require("../comp/md-draggable-entry");
|
|
@@ -1 +1,138 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html"),require("lit-html/directives/if-defined"),require("lit-html/directives/class-map"),require("lit-html/directives/style-map"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("lit-html/directives/class-map.js"),require("@momentum-ui/utils/lib/getColorValue"),require("lit-html/directives/repeat"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html","lit-html/directives/if-defined","lit-html/directives/class-map","lit-html/directives/style-map","@momentum-ui/icons/data/momentumUiIconsNames.json","lit-html/directives/class-map.js","@momentum-ui/utils/lib/getColorValue","lit-html/directives/repeat"],t);else{var i="object"==typeof exports?t(require("lit-element"),require("lit-html"),require("lit-html/directives/if-defined"),require("lit-html/directives/class-map"),require("lit-html/directives/style-map"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("lit-html/directives/class-map.js"),require("@momentum-ui/utils/lib/getColorValue"),require("lit-html/directives/repeat")):t(e["lit-element"],e["lit-html"],e["lit-html/directives/if-defined"],e["lit-html/directives/class-map"],e["lit-html/directives/style-map"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["lit-html/directives/class-map.js"],e["@momentum-ui/utils/lib/getColorValue"],e["lit-html/directives/repeat"]);for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(window,(function(e,t,i,r,n,o,l,u,s){return function(e){function t(t){for(var r,l,u=t[0],s=t[1],m=t[2],a=0,p=[];a<u.length;a++)l=u[a],Object.prototype.hasOwnProperty.call(n,l)&&n[l]&&p.push(n[l][0]),n[l]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);for(c&&c(t);p.length;)p.shift()();return o.push.apply(o,m||[]),i()}function i(){for(var e,t=0;t<o.length;t++){for(var i=o[t],r=!0,u=1;u<i.length;u++){var s=i[u];0!==n[s]&&(r=!1)}r&&(o.splice(t--,1),e=l(l.s=i[0]))}return e}var r={},n={315:0,284:0,286:0,288:0,289:0,290:0,292:0,293:0,294:0,295:0,296:0,299:0,300:0,301:0,302:0,305:0,314:0,317:0,320:0,322:0,323:0,324:0,326:0,327:0,328:0,329:0,330:0,333:0,336:0,339:0,340:0,341:0,342:0,343:0,344:0,345:0,349:0,352:0,353:0},o=[];function l(t){if(r[t])return r[t].exports;var i=r[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,l),i.l=!0,i.exports}l.m=e,l.c=r,l.d=function(e,t,i){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(l.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)l.d(i,r,function(t){return e[t]}.bind(null,r));return i},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="/";var u=window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[],s=u.push.bind(u);u.push=t,u=u.slice();for(var m=0;m<u.length;m++)t(u[m]);var c=s;return o.push([124,10,0,1,2,3,4,5,7,6,9,8,11,12,71]),i()}([function(t,i){t.exports=e},,function(e,i){e.exports=t},function(e,t){e.exports=i},function(e,t){e.exports=r},,,,function(e,t){e.exports=n},,function(e,t){e.exports=o},function(e,t){e.exports=l},function(e,t){e.exports=u},function(e,t){e.exports=s}])}));
|
|
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/repeat"));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/repeat"],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/repeat")):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/repeat"]);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(self,((e,t,i,s,o,n,r,a,l)=>(()=>{"use strict";var d,p={3001:(e,t,i)=>{i.d(t,{wW:()=>o.w,yC:()=>s.y}),i(18889);var s=i(32972),o=(i(28373),i(70300),i(84624),i(68387),i(31890))},8229:e=>{e.exports=t},17518:e=>{e.exports=a},22818:e=>{e.exports=l},23184:(e,t,i)=>{i.r(t),i.d(t,{Dropdown:()=>s}),i(61200);var s,o=i(90195),n=i(3001),r=i(66677),a=i(26272),l=i(41488),d=i(40333),p=i(17518),h=i(97822),u=i(22818),c=i(8229),m=i(70573),y=function(e,t,i,s){var o,n=arguments.length,r=n<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 a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n<3?o(r):n>3?o(t,i,r):o(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},f=function(e,t,i,s){return new(i||(i=Promise))((function(o,n){function r(e){try{l(s.next(e))}catch(e){n(e)}}function a(e){try{l(s.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((s=s.apply(e,t||[])).next())}))};!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,n.yC)(l.LitElement)){constructor(){super(...arguments),this.title="Select...",this.options=[],this.optionId="",this.optionValue="",this.defaultOption="",this.disabled=!1,this.customTabIndex=0,this.allowUnselected=!1,this.visibleOptions=8,this.newMomentum=!1,this.compact=!1,this.searchable=!1,this.searchItem=!1,this.inputValue="",this.placeholder="Select...",this.readOnly=!1,this.autofocus=!1,this.leftIcon="",this.trimSpace=!1,this.resultsTextLocalization="No Results",this.pill=!1,this.helpText="",this.messageArr=[],this.htmlId="",this.clearAriaLabel="Clear",this.clearIconHeight="auto",this.arrowAriaLabel="Expand",this.popupChevronAriaHidden="true",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForDropdown="",this.renderOptions=[],this.selectedKey="",this.expanded=!1,this.focusedIndex=-1,this.messageController=new t,this.lastMaxHeight="",this.onOutsideClick=e=>{let t=!1;const i=e.composedPath();i.length&&(t=!!i.find((e=>e===this)),t||this.expanded&&this.collapse())},this.onKeyDown=e=>{switch(e.code){case o.Uz.Tab:this.expanded&&(e.stopPropagation(),this.collapse());break;case o.Uz.Space:case o.Uz.Enter:this.expanded?(this.select(),this.collapse()):this.expand();break;case o.Uz.ArrowDown:this.expanded?this.focusNext():this.expand();break;case o.Uz.ArrowUp:this.expanded?this.focusPrev():this.expand();break;case o.Uz.Home:this.expanded?this.focusFirst():this.expand();break;case o.Uz.End:this.expanded?this.focusLast():this.expand();break;case o.Uz.Escape||o.Uz.Backspace:this.expanded&&(e.stopPropagation(),this.collapse())}},this.notifyInputValueChanged=(0,r.sg)((e=>{this.dispatchEvent(new CustomEvent("dropdown-input",{composed:!0,bubbles:!0,detail:{value:e}})),this.notifySearchResultCount(),requestAnimationFrame((()=>{this.input.focus()}))}),250)}connectedCallback(){super.connectedCallback(),this.setupEvents()}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}firstUpdated(e){super.firstUpdated(e),e.forEach(((e,t)=>{if("defaultOption"===t&&this.defaultOption){const{key:e}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=e}})),this.searchable&&this.setInitialValue()}updated(e){super.updated(e),e.forEach(((e,t)=>{if("options"===t&&this.updateRenderOptions(),"selectedKey"===t){const e=this.renderOptions.findIndex((e=>e.key===this.selectedKey));-1!==e&&(this.focusToIndex(e),this.searchable&&this.setInitialValue())}if("expanded"===t&&this.updateListDOM(),"focusedIndex"===t&&this.updateListDOM(),"defaultOption"===t&&this.defaultOption){const{key:e}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=e}}))}notifySearchResultCount(){if(this.searchResultAriaLabel){const e=/{{.*?}}/g;this.ariaLabelForDropdown=this.searchResultAriaLabel.replace(e,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForDropdown=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForDropdown=`Dropdown Element, ${this.filteredOptions.length} results found.`}setInitialValue(){var e;if(this.options.length){const t=this.renderOptions.find((e=>e.key===this.selectedKey)),i=null==t?void 0:t.option;i&&(this.setInputValue(this.getOptionValue(i)),null===(e=this.input)||void 0===e||e.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(i)),this.notifyInputValueChanged(this.getOptionValue(i)),this.requestUpdate())}}getOptionValue(e){return this.isOptionObject(e)&&!this.optionValue?Object.values(e)[0]:this.isOptionObject(e)?e[this.optionValue]:e}getOptionId(e){return this.isOptionObject(e)?e[this.optionId]:e}isOptionObject(e){return"object"==typeof e&&null!==e}updateRenderOptions(){const e=[];this.focusReset();const t=this.options.reduce(((t,i)=>{const{key:s,value:o}=this.getOptionKeyValuePair(i);return-1!==e.indexOf(s)?console.error(`Dropdown already have option key: "${s}". Ignoring `):s?(e.push(s),t.push({key:s,value:o,option:i})):console.error(`Dropdown key is not defined: "${s}". (value: "${o}"). Ignoring `),t}),[]);this.allowUnselected&&t.unshift({key:"",value:this.title}),this.renderOptions=t}updateListDOM(){return f(this,void 0,void 0,(function*(){this.expanded&&(yield this.resizeDropdownList(),yield this.scrollToIndex(this.focusedIndex))}))}resizeDropdownList(){return f(this,void 0,void 0,(function*(){yield new Promise((e=>requestAnimationFrame((()=>{if(this.optionsListItems)if(this.optionsListItems.length>this.visibleOptions){const e=`${[...this.optionsListItems].slice(0,this.visibleOptions).reduce(((e,t)=>e+t.offsetHeight),0)}px`;this.lastMaxHeight!==e&&(this.optionsList.style.maxHeight=e,this.lastMaxHeight=e)}else{const e="auto";this.lastMaxHeight!==e&&(this.optionsList.style.maxHeight=e,this.lastMaxHeight=e)}e()}))))}))}handleFocusIn(e){this.disabled&&this.readOnly||super.handleFocusIn&&super.handleFocusIn(e),this.dispatchEvent(new CustomEvent("dropdown-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(e){super.handleFocusOut&&super.handleFocusOut(e),this.dispatchEvent(new CustomEvent("dropdown-focus-out",{composed:!0,bubbles:!0}))}static get styles(){return[a.A,m.A]}get filteredOptions(){const e=this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue;if(!e.trim())return this.renderOptions;const t=this.renderOptions.filter((t=>t.value.toLowerCase().includes(e.toLowerCase())));return 0===t.length?[{key:"no-result",value:"No Result",disabled:!0}]:t}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}setVisualListbox(e){this.expanded=e}updateOnNextFrame(e){requestAnimationFrame(e)}setInputValue(e=""){this.input.value=e}shouldChangeButton(){const e=this.input&&this.input.value.length>0;return e&&document.dispatchEvent(new CustomEvent("on-widget-update")),e}toggleVisualListBox(e){var t,i;if(!this.readOnly){if(e.target.classList.contains("md-dropdown-input"))e.target.focus();else if("md-icon"===e.target.localName){const s=null===(i=null===(t=e.target.parentElement)||void 0===t?void 0:t.parentElement)||void 0===i?void 0:i.parentElement;if(s){const e=s.querySelector(".md-dropdown-input");setTimeout((()=>{e.focus()}),10)}}this.expanded?this.setVisualListbox(!1):(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.setVisualListbox(!0)),this.input.focus()}}handleRemoveAll(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}removeAllSelected(){var e;this.focusReset(),this.selectedKey="",this.inputValue="",this.setInputValue(),null===(e=this.input)||void 0===e||e.setAttribute(o.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.updateOnNextFrame((()=>{this.input.focus()})),this.dispatchEvent(new CustomEvent("dropdown-selection-removed",{composed:!0,bubbles:!0,detail:{}}))}setupEvents(){document.addEventListener("click",this.onOutsideClick),this.addEventListener("keydown",this.onKeyDown),this.addEventListener("remove-all-selected",this.removeAllSelected)}teardownEvents(){document.removeEventListener("click",this.onOutsideClick),this.removeEventListener("keydown",this.onKeyDown),this.removeEventListener("remove-all-selected",this.removeAllSelected)}expand(){this.expanded=!0;const e=-1!==this.focusedIndex?`combo-${this.focusedIndex}`:"";document.dispatchEvent(new CustomEvent("on-widget-update")),this.label.setAttribute("aria-activedescendant",e),this.optionsList&&this.optionsList.focus(),-1===this.focusedIndex&&this.focusNext()}collapse(){this.expanded=!1,this.searchable||this.label.setAttribute("aria-activedescendant","")}toggle(){this.expanded?this.collapse():this.expand()}select(){if(-1!==this.focusedIndex){const e=this.renderOptions[this.focusedIndex],t=e.key;t!==this.selectedKey&&(this.selectedKey=t,this.dispatchEvent(new CustomEvent("dropdown-selected",{composed:!0,bubbles:!0,detail:{option:e.option?e.option:e.key}})))}}onLabelClick(){this.label.focus(),this.toggle()}focusFirst(){this.renderOptions.length&&(this.focusedIndex=0)}focusLast(){this.renderOptions.length&&(this.focusedIndex=this.renderOptions.length-1)}focusNext(){this.renderOptions.length&&(-1!==this.focusedIndex&&this.focusedIndex<this.renderOptions.length-1?this.focusedIndex++:this.focusFirst())}focusPrev(){this.renderOptions.length&&(this.focusedIndex>0?this.focusedIndex--:this.focusLast())}focusToIndex(e){this.renderOptions.length&&e>=0&&e<=this.renderOptions.length-1&&(this.focusedIndex=e)}focusToIndexWithOption(e){const t=this.renderOptions.findIndex((t=>t.key===e.key));this.renderOptions.length&&t>=0&&t<=this.renderOptions.length-1&&(this.focusedIndex=t)}focusReset(){this.focusedIndex=-1}scrollToIndex(e){return f(this,void 0,void 0,(function*(){yield new Promise((t=>{requestAnimationFrame((()=>{if(this.optionsListItems&&this.optionsListItems.length>this.visibleOptions&&e>=0&&this.optionsListItems.length>e){let t=0;const{top:i,bottom:s}=this.optionsList.getBoundingClientRect(),o=this.optionsListItems[e],n=this.optionsListItems[e+1]||o,r=this.optionsListItems[e-1]||o,a=n.getBoundingClientRect(),l=r.getBoundingClientRect();a.bottom>s?t=a.bottom-s+2:l.top<i&&(t=l.top-i-2),this.optionsList.scrollTop+=t}t()}))}))}))}getOptionKeyValuePair(e){if("string"==typeof e)return{key:e.trim(),value:e};if(e&&"object"==typeof e){const t=Object.keys(e),i=Object.values(e);if(t.length){if(1===t.length||!this.optionId)return{key:t[0],value:i[0]};if(this.optionId)return{key:e[this.optionId],value:e[this.optionValue||this.optionId]}}}return{key:"undefined",value:"undefined"}}get labelTitle(){if(this.selectedKey){const e=this.renderOptions.find((e=>e.key===this.selectedKey));if(e)return e.value}return this.title}get dropDownClassMap(){return{"md-dropdown__expanded":this.expanded,[`md-${this.messageType}`]:!!this.messageType,"md-new-dropdown":this.newMomentum,"md-dropdown--pill":!0===this.pill}}handleInput(e){const t=e.target.value;this.inputValue=t.trim(),this.notifyInputValueChanged(t.trim())}helpTextTemplate(){return this.helpText?d.html`
|
|
2
|
+
<md-help-text
|
|
3
|
+
class="help-text ${(0,p.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
|
|
4
|
+
.message=${this.helpText}
|
|
5
|
+
style=${(0,c.styleMap)({width:"100%"})}
|
|
6
|
+
></md-help-text>
|
|
7
|
+
`:d.nothing}messagesTemplate(){return this.messages&&this.messages.length?d.html`
|
|
8
|
+
<div id="${this.htmlId}-message" part="message" class="md-dropbox__messages">
|
|
9
|
+
${(0,u.repeat)(this.messages,((e,t)=>d.html`
|
|
10
|
+
<md-help-text
|
|
11
|
+
.message=${e}
|
|
12
|
+
.id=${this.messageArr[t].id||""}
|
|
13
|
+
.ariaLive=${this.messageArr[t].ariaLive||"polite"}
|
|
14
|
+
.messageType=${this.messageType}
|
|
15
|
+
></md-help-text>
|
|
16
|
+
`))}
|
|
17
|
+
</div>
|
|
18
|
+
`:d.nothing}iconTemplate(){return d.html`
|
|
19
|
+
<md-icon
|
|
20
|
+
class="md-dropdown-left-icon"
|
|
21
|
+
name="${this.leftIcon}"
|
|
22
|
+
size="16"
|
|
23
|
+
iconSet="momentumDesign"
|
|
24
|
+
@click=${this.toggleVisualListBox}
|
|
25
|
+
></md-icon>
|
|
26
|
+
`}clearButtonTemplate(){return d.html`
|
|
27
|
+
<button
|
|
28
|
+
type="button"
|
|
29
|
+
class="md-dropdown-button clear"
|
|
30
|
+
aria-label=${this.clearAriaLabel}
|
|
31
|
+
aria-controls="md-dropdown-input"
|
|
32
|
+
tabindex="0"
|
|
33
|
+
?readonly=${this.readOnly}
|
|
34
|
+
?disabled=${this.disabled}
|
|
35
|
+
@click=${this.handleRemoveAll}
|
|
36
|
+
>
|
|
37
|
+
<md-icon
|
|
38
|
+
class="md-input__icon-clear"
|
|
39
|
+
name="cancel-bold"
|
|
40
|
+
size="16"
|
|
41
|
+
iconSet="momentumDesign"
|
|
42
|
+
style="height: ${this.clearIconHeight};"
|
|
43
|
+
></md-icon>
|
|
44
|
+
</button>
|
|
45
|
+
`}arrowButtonTemplate(){return d.html`
|
|
46
|
+
<button
|
|
47
|
+
type="button"
|
|
48
|
+
class="md-dropdown-button arrow-down"
|
|
49
|
+
aria-expanded=${this.expanded}
|
|
50
|
+
aria-label=${(0,h.ifDefined)("true"===this.popupChevronAriaHidden?void 0:this.arrowAriaLabel)}
|
|
51
|
+
aria-controls="md-dropdown-input"
|
|
52
|
+
tabindex="-1"
|
|
53
|
+
aria-hidden=${(0,h.ifDefined)("true"===this.popupChevronAriaHidden?"true":void 0)}
|
|
54
|
+
?readonly=${this.readOnly}
|
|
55
|
+
?disabled=${this.disabled}
|
|
56
|
+
@click=${this.toggleVisualListBox}
|
|
57
|
+
>
|
|
58
|
+
<md-icon name="arrow-down-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
59
|
+
</button>
|
|
60
|
+
`}render(){return d.html`
|
|
61
|
+
<div class="md-dropdown ${(0,p.classMap)(this.dropDownClassMap)}" part="dropdown">
|
|
62
|
+
${this.searchable?d.html`
|
|
63
|
+
<div part="group" class="group" ?readonly=${this.readOnly}>
|
|
64
|
+
${this.leftIcon?this.iconTemplate():d.nothing}
|
|
65
|
+
<input
|
|
66
|
+
class="md-dropdown-input"
|
|
67
|
+
type="text"
|
|
68
|
+
role="combobox"
|
|
69
|
+
aria-autocomplete="both"
|
|
70
|
+
aria-label=${this.title}
|
|
71
|
+
part="dropdown-input"
|
|
72
|
+
aria-expanded=${this.expanded}
|
|
73
|
+
placeholder=${this.placeholder}
|
|
74
|
+
aria-controls="md-dropdown-list"
|
|
75
|
+
?readonly=${this.readOnly}
|
|
76
|
+
?disabled=${this.disabled}
|
|
77
|
+
?autofocus=${this.autofocus}
|
|
78
|
+
title=${this.title}
|
|
79
|
+
tabindex="0"
|
|
80
|
+
.value=${this.inputValue}
|
|
81
|
+
@click=${this.toggleVisualListBox}
|
|
82
|
+
@input=${this.handleInput}
|
|
83
|
+
/>
|
|
84
|
+
${this.compact||!this.searchable?d.nothing:this.shouldChangeButton()?this.clearButtonTemplate():this.arrowButtonTemplate()}
|
|
85
|
+
</div>
|
|
86
|
+
`:d.html`
|
|
87
|
+
<label
|
|
88
|
+
class="md-dropdown-label ${(0,p.classMap)({"md-new-dropdown-label":this.newMomentum})}"
|
|
89
|
+
aria-expanded="${this.expanded}"
|
|
90
|
+
aria-label="${this.title}"
|
|
91
|
+
aria-controls="md-dropdown-list"
|
|
92
|
+
aria-haspopup="listbox"
|
|
93
|
+
?disabled="${this.disabled}"
|
|
94
|
+
@click="${()=>this.onLabelClick()}"
|
|
95
|
+
part="dropdown-header"
|
|
96
|
+
role="combobox"
|
|
97
|
+
tabindex="0"
|
|
98
|
+
>
|
|
99
|
+
<span class="md-dropdown-label--text ${(0,p.classMap)({"md-new-dropdown-label--text":this.newMomentum})}"
|
|
100
|
+
>${this.labelTitle}</span
|
|
101
|
+
>
|
|
102
|
+
<span class="md-dropdown-label--icon">
|
|
103
|
+
<md-icon name="arrow-down-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
104
|
+
</span>
|
|
105
|
+
</label>
|
|
106
|
+
`}
|
|
107
|
+
<ul
|
|
108
|
+
id="md-dropdown-list"
|
|
109
|
+
class="md-dropdown-list"
|
|
110
|
+
role="listbox"
|
|
111
|
+
aria-label="${this.labelTitle}"
|
|
112
|
+
aria-hidden="${!this.expanded}"
|
|
113
|
+
part="dropdown-options"
|
|
114
|
+
tabindex=${(0,h.ifDefined)(-1===this.customTabIndex?void 0:this.customTabIndex)}
|
|
115
|
+
>
|
|
116
|
+
${this.filteredOptions.map(((e,t)=>d.html`
|
|
117
|
+
<li
|
|
118
|
+
id="combo-${t}"
|
|
119
|
+
class="md-dropdown-option"
|
|
120
|
+
role="option"
|
|
121
|
+
tabindex=${(0,h.ifDefined)(-1===this.customTabIndex?void 0:this.customTabIndex)}
|
|
122
|
+
aria-label="${e.value}"
|
|
123
|
+
label="${e.value}"
|
|
124
|
+
aria-selected="${e.key===this.selectedKey}"
|
|
125
|
+
part="dropdown-option"
|
|
126
|
+
?focused="${t===this.focusedIndex}"
|
|
127
|
+
?selected="${e.key===this.selectedKey}"
|
|
128
|
+
@click="${()=>{this.focusToIndexWithOption(e),this.select(),this.collapse()}}"
|
|
129
|
+
>
|
|
130
|
+
<span class="select-label" part="label">
|
|
131
|
+
<span>${e.value}</span>
|
|
132
|
+
</span>
|
|
133
|
+
</li>
|
|
134
|
+
`))}
|
|
135
|
+
</ul>
|
|
136
|
+
</div>
|
|
137
|
+
${this.messagesTemplate()} ${this.helpTextTemplate()}
|
|
138
|
+
`}};y([(0,l.property)({type:String,attribute:"title"})],i.prototype,"title",void 0),y([(0,l.property)({type:Array})],i.prototype,"options",void 0),y([(0,l.property)({type:String,attribute:"option-id"})],i.prototype,"optionId",void 0),y([(0,l.property)({type:String,attribute:"option-value"})],i.prototype,"optionValue",void 0),y([(0,l.property)({type:Object})],i.prototype,"defaultOption",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"disabled",void 0),y([(0,l.property)({type:Number,attribute:"custom-tab-index",reflect:!0})],i.prototype,"customTabIndex",void 0),y([(0,l.property)({type:Boolean,attribute:"allow-unselected",reflect:!0})],i.prototype,"allowUnselected",void 0),y([(0,l.property)({type:Number,attribute:"visible-option",reflect:!0})],i.prototype,"visibleOptions",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"newMomentum",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"compact",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"searchable",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"searchItem",void 0),y([(0,l.property)({type:String,attribute:"input-value",reflect:!0})],i.prototype,"inputValue",void 0),y([(0,l.property)({type:String})],i.prototype,"placeholder",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"readOnly",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),y([(0,l.property)({type:String,attribute:"left-icon",reflect:!0})],i.prototype,"leftIcon",void 0),y([(0,l.property)({type:Boolean,reflect:!0,attribute:"search-trim-space"})],i.prototype,"trimSpace",void 0),y([(0,l.property)({type:String,attribute:"no-results-i18n"})],i.prototype,"resultsTextLocalization",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"pill",void 0),y([(0,l.property)({type:String})],i.prototype,"helpText",void 0),y([(0,l.property)({type:Array})],i.prototype,"messageArr",void 0),y([(0,l.property)({type:String})],i.prototype,"htmlId",void 0),y([(0,l.property)({type:String,attribute:"clear-aria-label"})],i.prototype,"clearAriaLabel",void 0),y([(0,l.property)({type:String,attribute:"clear-icon-height"})],i.prototype,"clearIconHeight",void 0),y([(0,l.property)({type:String,attribute:"arrow-aria-label"})],i.prototype,"arrowAriaLabel",void 0),y([(0,l.property)({type:String,attribute:"popup-chevron-aria-hidden"})],i.prototype,"popupChevronAriaHidden",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"ariaLabel",void 0),y([(0,l.property)({type:String,attribute:"search-result-aria-label"})],i.prototype,"searchResultAriaLabel",void 0),y([(0,l.internalProperty)()],i.prototype,"ariaLabelForDropdown",void 0),y([(0,l.internalProperty)()],i.prototype,"renderOptions",void 0),y([(0,l.internalProperty)()],i.prototype,"selectedKey",void 0),y([(0,l.internalProperty)()],i.prototype,"expanded",void 0),y([(0,l.internalProperty)()],i.prototype,"focusedIndex",void 0),y([(0,l.query)("label")],i.prototype,"label",void 0),y([(0,l.query)(".md-dropdown-input")],i.prototype,"input",void 0),y([(0,l.query)("ul.md-dropdown-list")],i.prototype,"optionsList",void 0),y([(0,l.queryAll)("li.md-dropdown-option")],i.prototype,"optionsListItems",void 0),i=y([(0,n.wW)("md-dropdown")],i),e.ELEMENT=i}(s||(s={}))},23968:e=>{e.exports=s},32022:e=>{e.exports=n},40333:e=>{e.exports=i},41488:t=>{t.exports=e},60554:e=>{e.exports=r},97822:e=>{e.exports=o}},h={};function u(e){var t=h[e];if(void 0!==t)return t.exports;var i=h[e]={exports:{}};return p[e](i,i.exports,u),i.exports}u.m=p,d=[],u.O=(e,t,i,s)=>{if(!t){var o=1/0;for(l=0;l<d.length;l++){for(var[t,i,s]=d[l],n=!0,r=0;r<t.length;r++)(!1&s||o>=s)&&Object.keys(u.O).every((e=>u.O[e](t[r])))?t.splice(r--,1):(n=!1,s<o&&(o=s));if(n){d.splice(l--,1);var a=i();void 0!==a&&(e=a)}}return e}s=s||0;for(var l=d.length;l>0&&d[l-1][2]>s;l--)d[l]=d[l-1];d[l]=[t,i,s]},u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var i in t)u.o(t,i)&&!u.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={144:0,3001:0,5382:0,7711:0,7763:0};u.O.j=t=>0===e[t];var t=(t,i)=>{var s,o,[n,r,a]=i,l=0;if(n.some((t=>0!==e[t]))){for(s in r)u.o(r,s)&&(u.m[s]=r[s]);if(a)var d=a(u)}for(t&&t(i);l<n.length;l++)o=n[l],u.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return u.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 c=u.O(void 0,[7502,1890,6272,6325,6875,2176,6798,9813,1200,8889,300,8373,4624,591,768,6677,5433,573],(()=>u(23184)));return u.O(c)})()));
|
package/dist/comp/md-dropdown.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-12");
|
|
14
|
-
require("../chunks/md-71");
|
|
15
|
-
module.exports = require("../comp/md-dropdown-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("../8373"),require("../4624"),require("../591"),require("../768"),require("../6677"),require("../5433"),require("../573"),module.exports=require("../comp/md-dropdown-entry");
|
|
@@ -1 +1,153 @@
|
|
|
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("dompurify"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("lit-html/directives/style-map"),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","dompurify","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined","lit-html/directives/style-map","@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("dompurify"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("lit-html/directives/style-map"),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.dompurify,e["lit-html"],e["lit-html/directives/class-map"],e["lit-html/directives/if-defined"],e["lit-html/directives/style-map"],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,r,l,n,o,d)=>(()=>{"use strict";var p,h={8229:e=>{e.exports=r},17518:e=>{e.exports=o},22818:e=>{e.exports=d},23968:e=>{e.exports=s},31347:e=>{e.exports=t},32022:e=>{e.exports=l},40333:e=>{e.exports=i},41488:t=>{t.exports=e},50565:(e,t,i)=>{i.r(t),i.d(t,{EditableTextfield:()=>v,alignment:()=>y});var s=i(74548),a=i(26272),r=i(31347),l=i.n(r),n=i(31890),o=i(41488),d=i(40333),p=i(23968),h=i(97822),m=i(96408),c=i(18728),u=function(e,t,i,s){var a,r=arguments.length,l=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,s);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(l=(r<3?a(l):r>3?a(t,i,l):a(t,i))||l);return r>3&&l&&Object.defineProperty(t,i,l),l};const y=["left","right","center"];var v;!function(e){let t=class extends o.LitElement{constructor(){super(...arguments),this.alignment="left",this.disabled=!1,this.isEditing=!1,this.maxLines="",this.content="Click to edit text",this.message={type:"error",message:"That is not a valid input."},this.alert=!1,this.hideMessage=!1,this.pattern="",this.type=null,this.ariaLabel="editable field",this.ariaDescribedBy="",this.messageController=new m.Input.MessageController,this.reportValidity=()=>{this.dispatchEvent(new Event("invalid",{bubbles:!1,cancelable:!0,composed:!0}))},this.checkValidity=e=>{let t=!0;const i=i=>{null===e.match(i)&&(t=!1)};if(this.pattern)i(new RegExp(this.pattern));else if(e&&this.type)switch(this.type){case"integer":i(new RegExp(s.b.integerString));break;case"decimal":i(new RegExp(s.b.decimalString))}return t},this.handleFocus=()=>{this.disabled||(this.isEditing=!0,this.setRange())},this.handleKeydown=e=>{var t;const{key:i,code:s}=e;if(["Tab","Meta","Shift","Delete","Backspace","Arrow"].some((e=>s.includes(e))))return;("integer"===this.type&&i.includes(".")||("integer"===this.type||"decimal"===this.type)&&s.match("Space"))&&e.preventDefault();const a=(null===(t=this.editableField)||void 0===t?void 0:t.innerText.trim())+i;if(this.type)if(isNaN(Number(a)))e.preventDefault();else{if("integer"!==this.type||Number.isInteger(Number(a)))return;e.preventDefault()}},this.handleBlur=()=>{var e;this.isEditing=!1,this.maxLines.length>0&&this.editableField&&this.editableField.scrollTo(0,0),this.content=(null===(e=this.editableField)||void 0===e?void 0:e.innerText.trim())||"",this.alert=!1,this.handleValidation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.handleFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.handleFocus)}firstUpdated(e){super.firstUpdated(e),this.innerText&&this.innerText.length>0?this.content=this.innerText.trim():this.innerText=l().sanitize(this.content)}updated(e){super.updated(e),e.has("content")&&this.editableField&&(this.editableField.innerText=l().sanitize(this.content))}setRange(){var e;if(this.editableField){const t=document.createRange(),i=window.getSelection(),s=null===(e=this.editableField.childNodes[0].nodeValue)||void 0===e?void 0:e.length;if(t.setStart(this.editableField.childNodes[0],s||0),t.collapse(!0),!i||0!==i.toString().length)return;i.removeAllRanges(),i.addRange(t),this.maxLines.length>0&&(this.editableField.scrollTop=this.editableField.scrollHeight)}}handleValidation(){(this.type||this.pattern)&&(this.checkValidity&&this.checkValidity(this.content)||(this.reportValidity(),this.showAlert()))}showAlert(){this.alert=!0}static get styles(){return[a.A,c.A]}get overflowStyles(){return this.maxLines.length&&this.maxLines.length>0&&`max-height: ${2*parseInt(this.maxLines)}rem; -webkit-line-clamp: ${this.maxLines}; word-break: break-all;`}messagesTemplate(){var e,t,i;return this.alert?o.html`
|
|
2
|
+
<div class="md-editable-textfield__messages" style="display: ${this.hideMessage?"none":"block"}">
|
|
3
|
+
<md-help-text
|
|
4
|
+
id="alert-message"
|
|
5
|
+
role="alert"
|
|
6
|
+
aria-live="assertive"
|
|
7
|
+
.messageType=${null===(e=this.message)||void 0===e?void 0:e.type}
|
|
8
|
+
aria-errormessage=${(0,h.ifDefined)(null===(t=this.message)||void 0===t?void 0:t.message)}
|
|
9
|
+
>
|
|
10
|
+
${null===(i=this.message)||void 0===i?void 0:i.message}
|
|
11
|
+
</md-help-text>
|
|
12
|
+
</div>
|
|
13
|
+
`:d.nothing}render(){var e;const t={[`md-editable-textfield--${this.alignment}`]:this.alignment,"md-editable-textfield--disabled":this.disabled,[`md-editable-textfield--${null===(e=this.message)||void 0===e?void 0:e.type}`]:this.alert&&!!this.message,"md-editable-textfield--textoverflow":this.maxLines.length>0&&!this.isEditing};return o.html`
|
|
14
|
+
<div
|
|
15
|
+
style="${this.overflowStyles}"
|
|
16
|
+
class="md-editable-textfield ${(0,p.classMap)(t)}"
|
|
17
|
+
role=${(0,h.ifDefined)(this.disabled?void 0:"textbox")}
|
|
18
|
+
tabindex=${this.disabled?"-1":"0"}
|
|
19
|
+
?contenteditable=${this.isEditing}
|
|
20
|
+
@focus=${this.handleFocus}
|
|
21
|
+
@blur=${this.handleBlur}
|
|
22
|
+
@keydown=${e=>{this.handleKeydown(e)}}
|
|
23
|
+
aria-invalid=${(0,h.ifDefined)(this.disabled?void 0:this.alert?"true":"false")}
|
|
24
|
+
aria-label=${(0,h.ifDefined)(this.disabled?void 0:this.ariaLabel)}
|
|
25
|
+
aria-describedby=${(0,h.ifDefined)(this.disabled?void 0:this.ariaDescribedBy)}
|
|
26
|
+
>
|
|
27
|
+
${l().sanitize(this.content)}
|
|
28
|
+
</div>
|
|
29
|
+
${this.messagesTemplate()}
|
|
30
|
+
`}};u([(0,o.property)({type:String})],t.prototype,"alignment",void 0),u([(0,o.property)({type:Boolean})],t.prototype,"disabled",void 0),u([(0,o.property)({type:Boolean})],t.prototype,"isEditing",void 0),u([(0,o.property)({type:String,attribute:"max-lines",reflect:!0})],t.prototype,"maxLines",void 0),u([(0,o.property)({type:String,reflect:!0})],t.prototype,"content",void 0),u([(0,o.property)({type:Object})],t.prototype,"message",void 0),u([(0,o.property)({type:Boolean,reflect:!0})],t.prototype,"alert",void 0),u([(0,o.property)({type:Boolean})],t.prototype,"hideMessage",void 0),u([(0,o.property)({type:String})],t.prototype,"pattern",void 0),u([(0,o.property)({type:String})],t.prototype,"type",void 0),u([(0,o.property)({type:String})],t.prototype,"ariaLabel",void 0),u([(0,o.property)({type:String,attribute:"aria-described-by"})],t.prototype,"ariaDescribedBy",void 0),u([(0,o.query)(".md-editable-textfield")],t.prototype,"editableField",void 0),t=u([(0,n.w)("md-editable-field")],t),e.ELEMENT=t}(v||(v={}))},60554:e=>{e.exports=n},96408:(e,t,i)=>{i.d(t,{Input:()=>s}),i(20109),i(61200),i(6396),i(12176);var s,a=i(90195),r=i(31890),l=i(32972),n=i(26272),o=(i(32022),i(41488)),d=i(40333),p=i(23968),h=i(97822),m=i(22818),c=i(8229),u=i(21572),y=function(e,t,i,s){var a,r=arguments.length,l=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,s);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(l=(r<3?a(l):r>3?a(t,i,l):a(t,i))||l);return r>3&&l&&Object.defineProperty(t,i,l),l};!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)(o.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!==a.Uz.Space&&t!==a.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?o.html`
|
|
31
|
+
<textarea
|
|
32
|
+
part="input"
|
|
33
|
+
class="md-input ${(0,p.classMap)(this.inputTemplateClassMap)}"
|
|
34
|
+
@blur=${e=>this.handleBlur(e)}
|
|
35
|
+
@input=${e=>this.handleChange(e)}
|
|
36
|
+
@focus=${e=>this.handleFocus(e)}
|
|
37
|
+
@keydown=${e=>this.handleKeyDown(e)}
|
|
38
|
+
@mousedown=${e=>this.handleMouseDown(e)}
|
|
39
|
+
tabindex="0"
|
|
40
|
+
.value=${this.value}
|
|
41
|
+
aria-describedby=${this.ariaDescribedBy}
|
|
42
|
+
?required=${this.required}
|
|
43
|
+
?autofocus=${this.autofocus}
|
|
44
|
+
aria-label=${this.ariaLabel}
|
|
45
|
+
aria-invalid=${this.ariaInvalid}
|
|
46
|
+
aria-errormessage="${this.htmlId}-message"
|
|
47
|
+
aria-disabled=${(0,h.ifDefined)(this.disabled||void 0)}
|
|
48
|
+
id=${this.htmlId}
|
|
49
|
+
placeholder=${this.placeholder}
|
|
50
|
+
?readonly=${this.readOnly}
|
|
51
|
+
maxlength=${(0,h.ifDefined)(this.maxLength)}
|
|
52
|
+
></textarea>
|
|
53
|
+
`:o.html`
|
|
54
|
+
<input
|
|
55
|
+
part="input"
|
|
56
|
+
class="md-input ${(0,p.classMap)(this.inputTemplateClassMap)}"
|
|
57
|
+
@blur=${e=>this.handleBlur(e)}
|
|
58
|
+
@input=${e=>this.handleChange(e)}
|
|
59
|
+
@focus=${e=>this.handleFocus(e)}
|
|
60
|
+
@keydown=${e=>this.handleKeyDown(e)}
|
|
61
|
+
@mousedown=${e=>this.handleMouseDown(e)}
|
|
62
|
+
tabindex="0"
|
|
63
|
+
?required=${this.required}
|
|
64
|
+
?autofocus=${this.autofocus}
|
|
65
|
+
type=${this.type}
|
|
66
|
+
.value=${this.value}
|
|
67
|
+
aria-describedby=${this.ariaDescribedBy}
|
|
68
|
+
aria-controls=${this.ariaControls}
|
|
69
|
+
aria-expanded=${(0,h.ifDefined)(null!==(e=this.ariaExpandedValue)&&void 0!==e?e:void 0)}
|
|
70
|
+
aria-label=${this.ariaLabel}
|
|
71
|
+
aria-invalid=${this.ariaInvalid}
|
|
72
|
+
aria-errormessage=${`${this.htmlId}-message`}
|
|
73
|
+
aria-disabled=${(0,h.ifDefined)(this.disabled||void 0)}
|
|
74
|
+
id=${this.htmlId}
|
|
75
|
+
role=${this.role}
|
|
76
|
+
placeholder=${this.placeholder}
|
|
77
|
+
?readonly=${this.readOnly||this.disabled}
|
|
78
|
+
min=${(0,h.ifDefined)(this.min)}
|
|
79
|
+
max=${(0,h.ifDefined)(this.max)}
|
|
80
|
+
maxlength=${(0,h.ifDefined)(this.maxLength)}
|
|
81
|
+
/>
|
|
82
|
+
`}inputLeftTemplate(){return this.searchable?o.html`
|
|
83
|
+
<div class="md-input__before">
|
|
84
|
+
${this.isLoading?o.html` <md-spinner size="20"></md-spinner> `:o.html` <md-icon ariaHidden="true" name="search-bold" size="16" iconSet="momentumDesign"></md-icon> `}
|
|
85
|
+
</div>
|
|
86
|
+
`:"before"===this.auxiliaryContentPosition?o.html`
|
|
87
|
+
<div class="md-input__before">
|
|
88
|
+
<slot name="input-section"> </slot>
|
|
89
|
+
</div>
|
|
90
|
+
`:d.nothing}get inputRightTemplateClassMap(){return{"md-input__after":!0,hidden:!this.hasRightIcon}}inputRightTemplate(){return this.clear&&!this.disabled&&this.value&&!this.readOnly?o.html`
|
|
91
|
+
<div class="md-input__after">
|
|
92
|
+
<md-button
|
|
93
|
+
hasRemoveStyle
|
|
94
|
+
@click=${e=>this.handleClear(e)}
|
|
95
|
+
@keydown=${e=>this.handleClear(e)}
|
|
96
|
+
size="20"
|
|
97
|
+
circle
|
|
98
|
+
>
|
|
99
|
+
<md-icon
|
|
100
|
+
class="md-input__icon-clear"
|
|
101
|
+
name="cancel-bold"
|
|
102
|
+
size="14"
|
|
103
|
+
iconSet="momentumDesign"
|
|
104
|
+
aria-label=${this.clearAriaLabel||"Clear Input"}
|
|
105
|
+
>
|
|
106
|
+
</md-icon>
|
|
107
|
+
</md-button>
|
|
108
|
+
</div>
|
|
109
|
+
`:this.compact?void 0:o.html`
|
|
110
|
+
<div class=${(0,p.classMap)(this.inputRightTemplateClassMap)}>
|
|
111
|
+
<slot name="input-section-right" @slotchange=${this.handleRighSlotChange}></slot>
|
|
112
|
+
</div>
|
|
113
|
+
`}secondaryLabelTemplate(){return this.secondaryLabel?o.html`
|
|
114
|
+
<md-label
|
|
115
|
+
class="md-input__secondary-label ${(0,p.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
|
|
116
|
+
secondaryLabel
|
|
117
|
+
.htmlFor=${this.htmlId}
|
|
118
|
+
.label=${this.secondaryLabel}
|
|
119
|
+
@label-click="${()=>this.handleLabelClick()}"
|
|
120
|
+
></md-label>
|
|
121
|
+
`:d.nothing}helpTextTemplate(){return this.helpText?o.html`
|
|
122
|
+
<md-help-text
|
|
123
|
+
class="help-text ${(0,p.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
|
|
124
|
+
.message=${this.helpText}
|
|
125
|
+
style=${(0,c.styleMap)({width:"100%"})}
|
|
126
|
+
></md-help-text>
|
|
127
|
+
`:d.nothing}messagesTemplate(){return!this.hideMessage&&this.messages&&this.messages.length?o.html`
|
|
128
|
+
<div id="${this.htmlId}-message" part="message" class="md-input__messages">
|
|
129
|
+
${(0,m.repeat)(this.messages,((e,t)=>{var i,s;return o.html`
|
|
130
|
+
<md-help-text
|
|
131
|
+
.message=${e}
|
|
132
|
+
.id=${null!==(i=this.messageArr[t].id)&&void 0!==i?i:""}
|
|
133
|
+
.ariaLive=${null!==(s=this.messageArr[t].ariaLive)&&void 0!==s?s:"polite"}
|
|
134
|
+
.messageType=${this.messageType}
|
|
135
|
+
></md-help-text>
|
|
136
|
+
`}))}
|
|
137
|
+
</div>
|
|
138
|
+
`:d.nothing}labelTemplate(){return this.label?o.html`
|
|
139
|
+
<md-label
|
|
140
|
+
class="md-input__label ${(0,p.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
|
|
141
|
+
.htmlFor=${this.htmlId}
|
|
142
|
+
.label=${this.label}
|
|
143
|
+
@label-click="${()=>this.handleLabelClick()}"
|
|
144
|
+
></md-label>
|
|
145
|
+
`:d.nothing}static get styles(){return[n.A,u.A]}render(){return o.html`
|
|
146
|
+
<div class="md-input-container ${(0,p.classMap)(this.inputClassMap)}" part="md-input-container">
|
|
147
|
+
${this.labelTemplate()}
|
|
148
|
+
<div class="md-input__wrapper ${(0,p.classMap)(this.inputWrapperClassMap)}">
|
|
149
|
+
${this.inputLeftTemplate()} ${this.inputTemplate()} ${this.inputRightTemplate()}
|
|
150
|
+
</div>
|
|
151
|
+
${this.messagesTemplate()} ${this.secondaryLabelTemplate()} ${this.helpTextTemplate()}
|
|
152
|
+
</div>
|
|
153
|
+
`}};y([(0,o.property)({type:String})],i.prototype,"ariaDescribedBy",void 0),y([(0,o.property)({type:String,reflect:!0})],i.prototype,"ariaInvalid",void 0),y([(0,o.property)({type:String})],i.prototype,"ariaLabel",void 0),y([(0,o.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),y([(0,o.property)({type:String})],i.prototype,"auxiliaryContentPosition",void 0),y([(0,o.property)({type:Boolean})],i.prototype,"clear",void 0),y([(0,o.property)({type:String})],i.prototype,"clearAriaLabel",void 0),y([(0,o.property)({type:Boolean})],i.prototype,"compact",void 0),y([(0,o.property)({type:String})],i.prototype,"containerSize",void 0),y([(0,o.property)({type:Boolean})],i.prototype,"disabled",void 0),y([(0,o.property)({type:String})],i.prototype,"id",void 0),y([(0,o.property)({type:String})],i.prototype,"inputSize",void 0),y([(0,o.property)({type:Boolean})],i.prototype,"isFilled",void 0),y([(0,o.property)({type:Boolean})],i.prototype,"isLoading",void 0),y([(0,o.property)({type:String})],i.prototype,"label",void 0),y([(0,o.property)({type:String})],i.prototype,"helpText",void 0),y([(0,o.property)({type:Boolean,attribute:"hide-message",reflect:!0})],i.prototype,"hideMessage",void 0),y([(0,o.property)({type:String})],i.prototype,"htmlId",void 0),y([(0,o.property)({type:String})],i.prototype,"role",void 0),y([(0,o.property)({type:Array})],i.prototype,"messageArr",void 0),y([(0,o.property)({type:Number,reflect:!0})],i.prototype,"min",void 0),y([(0,o.property)({type:Number,reflect:!0})],i.prototype,"max",void 0),y([(0,o.property)({type:Number})],i.prototype,"maxLength",void 0),y([(0,o.property)({type:Boolean})],i.prototype,"multi",void 0),y([(0,o.property)({type:Boolean})],i.prototype,"multiline",void 0),y([(0,o.property)({type:String,reflect:!0})],i.prototype,"name",void 0),y([(0,o.property)({type:Number})],i.prototype,"nestedLevel",void 0),y([(0,o.property)({type:String})],i.prototype,"placeholder",void 0),y([(0,o.property)({type:Boolean})],i.prototype,"readOnly",void 0),y([(0,o.property)({type:Boolean})],i.prototype,"required",void 0),y([(0,o.property)({type:Boolean})],i.prototype,"searchable",void 0),y([(0,o.property)({type:String})],i.prototype,"secondaryLabel",void 0),y([(0,o.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),y([(0,o.property)({type:String})],i.prototype,"shape",void 0),y([(0,o.property)({type:String})],i.prototype,"type",void 0),y([(0,o.property)({type:String,reflect:!0})],i.prototype,"value",void 0),y([(0,o.property)({type:String})],i.prototype,"ariaControls",void 0),y([(0,o.property)({type:String})],i.prototype,"ariaExpanded",void 0),y([(0,o.property)({type:Boolean})],i.prototype,"newMomentum",void 0),y([(0,o.query)(".md-input")],i.prototype,"input",void 0),y([(0,o.internalProperty)()],i.prototype,"isEditing",void 0),y([(0,o.query)('slot[name="input-section-right"]')],i.prototype,"inputSectionRightSlot",void 0),y([(0,o.internalProperty)()],i.prototype,"hasRightSlotContent",void 0),i=y([(0,r.w)("md-input")],i),e.ELEMENT=i}(s||(s={}))},97822:e=>{e.exports=a}},m={};function c(e){var t=m[e];if(void 0!==t)return t.exports;var i=m[e]={exports:{}};return h[e](i,i.exports,c),i.exports}c.m=h,p=[],c.O=(e,t,i,s)=>{if(!t){var a=1/0;for(o=0;o<p.length;o++){for(var[t,i,s]=p[o],r=!0,l=0;l<t.length;l++)(!1&s||a>=s)&&Object.keys(c.O).every((e=>c.O[e](t[l])))?t.splice(l--,1):(r=!1,s<a&&(a=s));if(r){p.splice(o--,1);var n=i();void 0!==n&&(e=n)}}return e}s=s||0;for(var o=p.length;o>0&&p[o-1][2]>s;o--)p[o]=p[o-1];p[o]=[t,i,s]},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var i in t)c.o(t,i)&&!c.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={1266:0,1807:0,6408:0};c.O.j=t=>0===e[t];var t=(t,i)=>{var s,a,[r,l,n]=i,o=0;if(r.some((t=>0!==e[t]))){for(s in l)c.o(l,s)&&(c.m[s]=l[s]);if(n)var d=n(c)}for(t&&t(i);o<r.length;o++)a=r[o],c.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return c.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 u=c.O(void 0,[7502,1890,6272,6325,6875,2176,6798,9813,1200,2576,8210,1270,1598,4977,1572,6396,109,4548,8728],(()=>c(50565)));return c.O(u)})()));
|
|
@@ -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-9");
|
|
10
|
-
require("../chunks/md-15");
|
|
11
|
-
require("../chunks/md-14");
|
|
12
|
-
require("../chunks/md-18");
|
|
13
|
-
require("../chunks/md-27");
|
|
14
|
-
require("../chunks/md-72");
|
|
15
|
-
module.exports = require("../comp/md-editable-field-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"),require("../4548"),require("../8728"),module.exports=require("../comp/md-editable-field-entry");
|
|
@@ -1 +1,23 @@
|
|
|
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"));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"],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")):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"]);for(var o in i)("object"==typeof exports?exports:e)[o]=i[o]}}(self,((e,t,i,o,r,l,s)=>(()=>{"use strict";var n,a={8229:e=>{e.exports=t},23968:e=>{e.exports=o},32022:e=>{e.exports=l},40333:e=>{e.exports=i},41488:t=>{t.exports=e},60554:e=>{e.exports=s},97822:e=>{e.exports=r},99850:(e,t,i)=>{i.r(t),i.d(t,{Favorite:()=>o}),i(61200);var o,r=i(90195),l=i(3001),s=i(31890),n=i(26272),a=i(41488),d=i(23968),c=i(97822),m=i(27092),u=function(e,t,i,o){var r,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(s=(l<3?r(s):l>3?r(t,i,s):r(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};!function(e){let t=class extends((0,l.yC)(a.LitElement)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.value="Select favorite",this.id="",this.label="Favorite",this.customId=""}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleElectKeyDown),this.addEventListener("click",this.handleFavorite)}static get styles(){return[n.A,m.A]}handleFavorite(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-toggle",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}handleElectKeyDown(e){e.code!==r.Uz.Enter&&e.code!==r.Uz.Space||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-keydown",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleElectKeyDown),this.removeEventListener("click",this.handleFavorite)}get favoriteClassMap(){return{"md-favorite--active":this.checked,"md-favorite--disabled":this.disabled}}render(){return a.html`
|
|
2
|
+
<label
|
|
3
|
+
for="favorite-checkbox"
|
|
4
|
+
id="${this.id}"
|
|
5
|
+
class="md-favorite ${(0,d.classMap)(this.favoriteClassMap)}"
|
|
6
|
+
tabindex="0"
|
|
7
|
+
>
|
|
8
|
+
<input
|
|
9
|
+
type="checkbox"
|
|
10
|
+
aria-label=${(0,c.ifDefined)(this.label.length?this.label:void 0)}
|
|
11
|
+
value=${this.value}
|
|
12
|
+
?checked=${this.checked}
|
|
13
|
+
?disabled=${this.disabled}
|
|
14
|
+
aria-hidden="true"
|
|
15
|
+
name="favorite-checkbox"
|
|
16
|
+
/>
|
|
17
|
+
<md-icon
|
|
18
|
+
name="${this.checked?"favorite-filled":"favorite-bold"}"
|
|
19
|
+
iconSet="momentumDesign"
|
|
20
|
+
size="16"
|
|
21
|
+
></md-icon>
|
|
22
|
+
</label>
|
|
23
|
+
`}};u([(0,a.property)({type:Boolean})],t.prototype,"disabled",void 0),u([(0,a.property)({type:Boolean})],t.prototype,"checked",void 0),u([(0,a.property)({type:String})],t.prototype,"value",void 0),u([(0,a.property)({type:String})],t.prototype,"id",void 0),u([(0,a.property)({type:String})],t.prototype,"label",void 0),u([(0,a.internalProperty)()],t.prototype,"customId",void 0),t=u([(0,s.w)("md-favorite")],t),e.ELEMENT=t}(o||(o={}))}},d={};function c(e){var t=d[e];if(void 0!==t)return t.exports;var i=d[e]={exports:{}};return a[e](i,i.exports,c),i.exports}c.m=a,n=[],c.O=(e,t,i,o)=>{if(!t){var r=1/0;for(d=0;d<n.length;d++){for(var[t,i,o]=n[d],l=!0,s=0;s<t.length;s++)(!1&o||r>=o)&&Object.keys(c.O).every((e=>c.O[e](t[s])))?t.splice(s--,1):(l=!1,o<r&&(r=o));if(l){n.splice(d--,1);var a=i();void 0!==a&&(e=a)}}return e}o=o||0;for(var d=n.length;d>0&&n[d-1][2]>o;d--)n[d]=n[d-1];n[d]=[t,i,o]},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var i in t)c.o(t,i)&&!c.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={6920:0};c.O.j=t=>0===e[t];var t=(t,i)=>{var o,r,[l,s,n]=i,a=0;if(l.some((t=>0!==e[t]))){for(o in s)c.o(s,o)&&(c.m[o]=s[o]);if(n)var d=n(c)}for(t&&t(i);a<l.length;a++)r=l[a],c.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return c.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 m=c.O(void 0,[7502,1890,6272,6325,6875,2176,6798,9813,1200,8889,300,8373,4624,591,768,195,3001,7092],(()=>c(99850)));return c.O(m)})()));
|
package/dist/comp/md-favorite.js
CHANGED
|
@@ -1,14 +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-37");
|
|
14
|
-
module.exports = require("../comp/md-favorite-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("../8373"),require("../4624"),require("../591"),require("../768"),require("../195"),require("../3001"),require("../7092"),module.exports=require("../comp/md-favorite-entry");
|