@momentum-ui/web-components 2.17.15 → 2.18.1
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 +3 -3
- 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,30 @@
|
|
|
1
|
-
!function(e
|
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"));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","@interactjs/actions/drag","@interactjs/actions/resize","@interactjs/auto-start","@interactjs/interact/index","@interactjs/modifiers"],e);else{var i="object"==typeof exports?e(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers")):e(t["lit-element"],t["lit-html/directives/style-map"],t["lit-html"],t["lit-html/directives/class-map"],t["lit-html/directives/if-defined"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t["@interactjs/actions/drag"],t["@interactjs/actions/resize"],t["@interactjs/auto-start"],t["@interactjs/interact/index"],t["@interactjs/modifiers"]);for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(self,((t,e,i,n,r,o,s,a,l,c,d,m)=>(()=>{"use strict";var u,h={3288:t=>{t.exports=m},8229:t=>{t.exports=e},20727:t=>{t.exports=d},23968:t=>{t.exports=n},32022:t=>{t.exports=o},40333:t=>{t.exports=i},41488:e=>{e.exports=t},57346:t=>{t.exports=l},58088:t=>{t.exports=a},58871:(t,e,i)=>{i.r(e),i.d(e,{FloatingMinimizedModal:()=>n}),i(96798),i(61200);var n,r=i(90195),o=i(3001),s=i(31890),a=i(66677),l=i(26272),c=(i(58088),i(57346),i(69e3),i(20727)),d=i.n(c),m=(i(3288),i(41488)),u=i(40333),h=i(97822),p=i(67330),f=function(t,e,i,n){var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};!function(t){let e=class extends((0,o.yC)(m.LitElement)){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.closeAriaLabel="Close Modal",this.minimize=!1,this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.getInitialPosition=()=>{var t,e;return this.applyInitialPosition&&this.minPosition?{initialX:Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),initialY:Number(null===(e=this.minPosition)||void 0===e?void 0:e.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:e}=t,{x:i,y:n}=this.getTransformValues(t);this.setTargetPosition(e,i,n),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[l.A,p.A]}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",(0,a.sg)((()=>this.setInteractInstance()),250))}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance(),this.setFocusOnContainer()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("minPosition")&&!t.has("show")&&this.setInitialTargetPosition(),t.has("minimize")&&void 0!==t.get("minimize")&&this.setFocusOnContainer()}isNewPositionNotSame(){var t,e,i,n;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(e=this.minPosition)||void 0===e?void 0:e.x)||Number(null===(i=this.container)||void 0===i?void 0:i.getAttribute("data-y"))!==(null===(n=this.minPosition)||void 0===n?void 0:n.y)}setInitialTargetPosition(){var t,e;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),Number(null===(e=this.minPosition)||void 0===e?void 0:e.y))}setFocusOnContainer(){this.container&&(this.container.setAttribute("tabindex","0"),this.container.focus())}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),e=this.container.getAttribute("data-y");return t&&e?(this.dispatchEvent(new CustomEvent("floating-modal-minimize-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:e}}})),`translate(${t}px, ${e}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame((()=>{return t=this,e=void 0,n=function*(){yield this.updateComplete,this.containerTransform=this.getContainerTransform()},new((i=void 0)||(i=Promise))((function(r,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}l((n=n.apply(t,e||[])).next())}));var t,e,i,n}))}setInteractInstance(){requestAnimationFrame((()=>{this.container&&d()(this.container).draggable({autoScroll:!0,allowFrom:this.header,listeners:{move:this.dragMoveListener,end:this.dragEndListener},modifiers:[d().modifiers.restrictRect({restriction:document.body.getBoundingClientRect(),endOnly:!0})]})}))}handleKeyDown(t){t.code!==r.Uz.Enter&&t.code!==r.Uz.Space||this.handleMinimize(t)}handleClose(t){this.show=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),t.stopPropagation()}handleMinimize(t){this.dragOccured||this.dispatchEvent(new CustomEvent("floating-min-modal-minimize",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.dragOccured=!1}getTransformValues(t){const{target:e,dx:i,dy:n}=t,{initialX:r,initialY:o}=this.getInitialPosition();return{x:(parseFloat(e.getAttribute("data-x"))||0)+i+r,y:(parseFloat(e.getAttribute("data-y"))||0)+n+o}}setTargetPosition(t,e,i){t.style.transform=`translate(${e}px, ${i}px)`,t.setAttribute("data-x",`${e}`),t.setAttribute("data-y",`${i}`)}destroyInteractInstance(){this.container&&d().isSet(this.container)&&d()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance(),window.removeEventListener("resize",(0,a.sg)((()=>this.setInteractInstance()),250))}render(){return m.html`
|
|
2
|
+
${this.show?m.html`
|
|
3
|
+
<div
|
|
4
|
+
class="md-floating ${this.minimize?"":"hide"} md-floating-minimize"
|
|
5
|
+
@click=${this.handleMinimize}
|
|
6
|
+
@keydown="${this.handleKeyDown}"
|
|
7
|
+
role="dialog"
|
|
8
|
+
tabindex="-1"
|
|
9
|
+
part="floating-minimized"
|
|
10
|
+
aria-label=${(0,h.ifDefined)(this.label||void 0)}
|
|
11
|
+
aria-modal="true"
|
|
12
|
+
style=${(0,h.ifDefined)(this.minPosition?`transform: translate(${this.minPosition.x}px, ${this.minPosition.y}px) !important`:`transform: ${this.containerTransform} !important`)}
|
|
13
|
+
>
|
|
14
|
+
<div tabindex="-1" class="md-floating__header ${this.minimize?"md-floating__header-minimize":""}">
|
|
15
|
+
<div class="md-floating__header-text">
|
|
16
|
+
${this.heading?m.html` ${this.heading} `:m.html` <slot></slot> `}
|
|
17
|
+
</div>
|
|
18
|
+
<md-button
|
|
19
|
+
color="color-none"
|
|
20
|
+
class="md-floating__close"
|
|
21
|
+
aria-label="${this.closeAriaLabel}"
|
|
22
|
+
circle
|
|
23
|
+
@click=${this.handleClose}
|
|
24
|
+
>
|
|
25
|
+
<md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
26
|
+
</md-button>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
`:u.nothing}
|
|
30
|
+
`}};f([(0,m.property)({type:String})],e.prototype,"heading",void 0),f([(0,m.property)({type:String})],e.prototype,"label",void 0),f([(0,m.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),f([(0,m.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),f([(0,m.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),f([(0,m.property)({type:Object})],e.prototype,"minPosition",void 0),f([(0,m.query)(".md-floating")],e.prototype,"container",void 0),f([(0,m.query)(".md-floating__header")],e.prototype,"header",void 0),f([(0,m.internalProperty)()],e.prototype,"dragOccured",void 0),f([(0,m.internalProperty)()],e.prototype,"containerTransform",void 0),e=f([(0,s.w)("md-floating-modal-minimized")],e),t.ELEMENT=e}(n||(n={}))},60554:t=>{t.exports=s},69e3:t=>{t.exports=c},97822:t=>{t.exports=r}},p={};function f(t){var e=p[t];if(void 0!==e)return e.exports;var i=p[t]={exports:{}};return h[t](i,i.exports,f),i.exports}f.m=h,u=[],f.O=(t,e,i,n)=>{if(!e){var r=1/0;for(l=0;l<u.length;l++){for(var[e,i,n]=u[l],o=!0,s=0;s<e.length;s++)(!1&n||r>=n)&&Object.keys(f.O).every((t=>f.O[t](e[s])))?e.splice(s--,1):(o=!1,n<r&&(r=n));if(o){u.splice(l--,1);var a=i();void 0!==a&&(t=a)}}return t}n=n||0;for(var l=u.length;l>0&&u[l-1][2]>n;l--)u[l]=u[l-1];u[l]=[e,i,n]},f.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return f.d(e,{a:e}),e},f.d=(t,e)=>{for(var i in e)f.o(e,i)&&!f.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},f.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),f.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={9237:0};f.O.j=e=>0===t[e];var e=(e,i)=>{var n,r,[o,s,a]=i,l=0;if(o.some((e=>0!==t[e]))){for(n in s)f.o(s,n)&&(f.m[n]=s[n]);if(a)var c=a(f)}for(e&&e(i);l<o.length;l++)r=o[l],f.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return f.O(c)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var v=f.O(void 0,[7502,1890,6272,6325,6875,2176,6798,9813,1200,8889,300,8373,4624,591,768,195,3001,6677,7330],(()=>f(58871)));return f.O(v)})()));
|
|
@@ -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-45");
|
|
15
|
-
module.exports = require("../comp/md-floating-minimize-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("../6677"),require("../7330"),module.exports=require("../comp/md-floating-minimize-entry");
|
|
@@ -1 +1,99 @@
|
|
|
1
|
-
!function(
|
|
1
|
+
!function(t,i){if("object"==typeof exports&&"object"==typeof module)module.exports=i(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("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"));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","@interactjs/actions/drag","@interactjs/actions/resize","@interactjs/auto-start","@interactjs/interact/index","@interactjs/modifiers"],i);else{var e="object"==typeof exports?i(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("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers")):i(t["lit-element"],t["lit-html/directives/style-map"],t["lit-html"],t["lit-html/directives/class-map"],t["lit-html/directives/if-defined"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t["@interactjs/actions/drag"],t["@interactjs/actions/resize"],t["@interactjs/auto-start"],t["@interactjs/interact/index"],t["@interactjs/modifiers"]);for(var n in e)("object"==typeof exports?exports:t)[n]=e[n]}}(self,((t,i,e,n,o,r,s,a,l,d,m,c)=>(()=>{"use strict";var h,p={3001:(t,i,e)=>{e.d(i,{TS:()=>o.T,yC:()=>n.y}),e(18889);var n=e(32972),o=(e(28373),e(70300),e(84624),e(68387))},3288:t=>{t.exports=c},8229:t=>{t.exports=i},20727:t=>{t.exports=m},23968:t=>{t.exports=n},32022:t=>{t.exports=r},40333:t=>{t.exports=e},41488:i=>{i.exports=t},57346:t=>{t.exports=l},58088:t=>{t.exports=a},58871:(t,i,e)=>{e(96798),e(61200);var n,o=e(90195),r=e(3001),s=e(31890),a=e(66677),l=e(26272),d=(e(58088),e(57346),e(69e3),e(20727)),m=e.n(d),c=(e(3288),e(41488)),h=e(40333),p=e(97822),u=e(67330),f=function(t,i,e,n){var o,r=arguments.length,s=r<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,e):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(i,e,s):o(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!function(t){let i=class extends((0,r.yC)(c.LitElement)){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.closeAriaLabel="Close Modal",this.minimize=!1,this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.getInitialPosition=()=>{var t,i;return this.applyInitialPosition&&this.minPosition?{initialX:Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),initialY:Number(null===(i=this.minPosition)||void 0===i?void 0:i.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:i}=t,{x:e,y:n}=this.getTransformValues(t);this.setTargetPosition(i,e,n),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[l.A,u.A]}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",(0,a.sg)((()=>this.setInteractInstance()),250))}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance(),this.setFocusOnContainer()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("minPosition")&&!t.has("show")&&this.setInitialTargetPosition(),t.has("minimize")&&void 0!==t.get("minimize")&&this.setFocusOnContainer()}isNewPositionNotSame(){var t,i,e,n;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(i=this.minPosition)||void 0===i?void 0:i.x)||Number(null===(e=this.container)||void 0===e?void 0:e.getAttribute("data-y"))!==(null===(n=this.minPosition)||void 0===n?void 0:n.y)}setInitialTargetPosition(){var t,i;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),Number(null===(i=this.minPosition)||void 0===i?void 0:i.y))}setFocusOnContainer(){this.container&&(this.container.setAttribute("tabindex","0"),this.container.focus())}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),i=this.container.getAttribute("data-y");return t&&i?(this.dispatchEvent(new CustomEvent("floating-modal-minimize-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:i}}})),`translate(${t}px, ${i}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame((()=>{return t=this,i=void 0,n=function*(){yield this.updateComplete,this.containerTransform=this.getContainerTransform()},new((e=void 0)||(e=Promise))((function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var i;t.done?o(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(s,a)}l((n=n.apply(t,i||[])).next())}));var t,i,e,n}))}setInteractInstance(){requestAnimationFrame((()=>{this.container&&m()(this.container).draggable({autoScroll:!0,allowFrom:this.header,listeners:{move:this.dragMoveListener,end:this.dragEndListener},modifiers:[m().modifiers.restrictRect({restriction:document.body.getBoundingClientRect(),endOnly:!0})]})}))}handleKeyDown(t){t.code!==o.Uz.Enter&&t.code!==o.Uz.Space||this.handleMinimize(t)}handleClose(t){this.show=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),t.stopPropagation()}handleMinimize(t){this.dragOccured||this.dispatchEvent(new CustomEvent("floating-min-modal-minimize",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.dragOccured=!1}getTransformValues(t){const{target:i,dx:e,dy:n}=t,{initialX:o,initialY:r}=this.getInitialPosition();return{x:(parseFloat(i.getAttribute("data-x"))||0)+e+o,y:(parseFloat(i.getAttribute("data-y"))||0)+n+r}}setTargetPosition(t,i,e){t.style.transform=`translate(${i}px, ${e}px)`,t.setAttribute("data-x",`${i}`),t.setAttribute("data-y",`${e}`)}destroyInteractInstance(){this.container&&m().isSet(this.container)&&m()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance(),window.removeEventListener("resize",(0,a.sg)((()=>this.setInteractInstance()),250))}render(){return c.html`
|
|
2
|
+
${this.show?c.html`
|
|
3
|
+
<div
|
|
4
|
+
class="md-floating ${this.minimize?"":"hide"} md-floating-minimize"
|
|
5
|
+
@click=${this.handleMinimize}
|
|
6
|
+
@keydown="${this.handleKeyDown}"
|
|
7
|
+
role="dialog"
|
|
8
|
+
tabindex="-1"
|
|
9
|
+
part="floating-minimized"
|
|
10
|
+
aria-label=${(0,p.ifDefined)(this.label||void 0)}
|
|
11
|
+
aria-modal="true"
|
|
12
|
+
style=${(0,p.ifDefined)(this.minPosition?`transform: translate(${this.minPosition.x}px, ${this.minPosition.y}px) !important`:`transform: ${this.containerTransform} !important`)}
|
|
13
|
+
>
|
|
14
|
+
<div tabindex="-1" class="md-floating__header ${this.minimize?"md-floating__header-minimize":""}">
|
|
15
|
+
<div class="md-floating__header-text">
|
|
16
|
+
${this.heading?c.html` ${this.heading} `:c.html` <slot></slot> `}
|
|
17
|
+
</div>
|
|
18
|
+
<md-button
|
|
19
|
+
color="color-none"
|
|
20
|
+
class="md-floating__close"
|
|
21
|
+
aria-label="${this.closeAriaLabel}"
|
|
22
|
+
circle
|
|
23
|
+
@click=${this.handleClose}
|
|
24
|
+
>
|
|
25
|
+
<md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
26
|
+
</md-button>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
`:h.nothing}
|
|
30
|
+
`}};f([(0,c.property)({type:String})],i.prototype,"heading",void 0),f([(0,c.property)({type:String})],i.prototype,"label",void 0),f([(0,c.property)({type:Boolean,reflect:!0})],i.prototype,"show",void 0),f([(0,c.property)({type:String,attribute:"close-aria-label"})],i.prototype,"closeAriaLabel",void 0),f([(0,c.property)({type:Boolean,reflect:!0})],i.prototype,"minimize",void 0),f([(0,c.property)({type:Object})],i.prototype,"minPosition",void 0),f([(0,c.query)(".md-floating")],i.prototype,"container",void 0),f([(0,c.query)(".md-floating__header")],i.prototype,"header",void 0),f([(0,c.internalProperty)()],i.prototype,"dragOccured",void 0),f([(0,c.internalProperty)()],i.prototype,"containerTransform",void 0),i=f([(0,s.w)("md-floating-modal-minimized")],i),t.ELEMENT=i}(n||(n={}))},60554:t=>{t.exports=s},69e3:t=>{t.exports=d},73093:(t,i,e)=>{e.r(i),e.d(i,{FloatingModal:()=>n}),e(96798),e(61200);var n,o=e(3001),r=e(31890),s=e(26272),a=(e(58088),e(57346),e(69e3),e(20727)),l=e.n(a),d=(e(3288),e(41488)),m=e(40333),c=e(97822),h=(e(58871),e(67330)),p=function(t,i,e,n){var o,r=arguments.length,s=r<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,e):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(i,e,s):o(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!function(t){let i=class extends((0,o.yC)((0,o.TS)(d.LitElement))){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.aspectRatio=!1,this.fixed=!1,this.full=!1,this.closeAriaLabel="Close Modal",this.resizeAriaLabel="Resize Modal",this.maximizeScreenLabel="Maximize Modal",this.minimizeAriaLabel="Minimize Modal",this.minimize=!1,this.minimizable=!1,this.containerRect=null,this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.resizeMoveListener=t=>{const{target:i}=t;let e=parseFloat(i.getAttribute("data-x"))||0,n=parseFloat(i.getAttribute("data-y"))||0;i.style.setProperty("width",`${t.rect.width}px`,"important"),i.style.setProperty("height",`${t.rect.height}px`,"important");const{initialX:o,initialY:r}=this.getInitialPosition();e+=t.deltaRect.left+o,n+=t.deltaRect.top+r,this.setTargetPosition(i,e,n),this.applyInitialPosition=!1},this.resizeEndListener=()=>{this.setContainerRect()},this.getInitialPosition=()=>{var t,i;return this.applyInitialPosition&&this.position?{initialX:Number(null===(t=this.position)||void 0===t?void 0:t.x),initialY:Number(null===(i=this.position)||void 0===i?void 0:i.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:i}=t,{x:e,y:n}=this.getTransformValues(t);this.setTargetPosition(i,e,n),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[s.A,h.A]}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("position")&&!t.has("show")&&this.setInitialTargetPosition()}isNewPositionNotSame(){var t,i,e,n;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(i=this.position)||void 0===i?void 0:i.x)||Number(null===(e=this.container)||void 0===e?void 0:e.getAttribute("data-y"))!==(null===(n=this.position)||void 0===n?void 0:n.y)}setInitialTargetPosition(){var t,i;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.position)||void 0===t?void 0:t.x),Number(null===(i=this.position)||void 0===i?void 0:i.y))}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),i=this.container.getAttribute("data-y");return t&&i?(this.dispatchEvent(new CustomEvent("floating-modal-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:i}}})),`translate(${t}px, ${i}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame((()=>{return t=this,i=void 0,n=function*(){yield this.updateComplete,this.containerRect=this.container.getBoundingClientRect(),this.dispatchEvent(new CustomEvent("floating-modal-resize",{composed:!0,bubbles:!0,detail:{size:this.containerRect}})),this.containerTransform=this.getContainerTransform()},new((e=void 0)||(e=Promise))((function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var i;t.done?o(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(s,a)}l((n=n.apply(t,i||[])).next())}));var t,i,e,n}))}setInteractInstance(){requestAnimationFrame((()=>{this.container&&l()(this.container).resizable({edges:{left:!0,right:!0,bottom:!0,top:!0},listeners:{end:this.resizeEndListener,move:this.resizeMoveListener},modifiers:this.aspectRatio?[l().modifiers.aspectRatio({ratio:"preserve",equalDelta:!0,modifiers:[l().modifiers.restrictSize({max:"parent"})]})]:void 0}).draggable({autoScroll:!0,allowFrom:this.header,ignoreFrom:this.body,listeners:{move:this.dragMoveListener,end:this.dragEndListener}})}))}handleClose(t){this.show=!1,this.full=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleMinimize(){this.minimizable&&(this.dragOccured||(this.minimize=!this.minimize,this.dispatchEvent(new CustomEvent("floating-modal-minimize",{composed:!0,bubbles:!0,detail:{minimize:this.minimize}}))),this.dragOccured=!1)}handleToggleExpandCollapse(){this.full=!this.full}getTransformValues(t){const{target:i,dx:e,dy:n}=t,{initialX:o,initialY:r}=this.getInitialPosition();return{x:(parseFloat(i.getAttribute("data-x"))||0)+e+o,y:(parseFloat(i.getAttribute("data-y"))||0)+n+r}}setTargetPosition(t,i,e){t.style.transform=`translate(${i}px, ${e}px)`,t.setAttribute("data-x",`${i}`),t.setAttribute("data-y",`${e}`)}destroyInteractInstance(){this.container&&l().isSet(this.container)&&l()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance()}renderedCallback(){this.containerTransform=this.position?`translate(${this.position.x}px, ${this.position.y}px)`:""}render(){return d.html`
|
|
31
|
+
${this.show?d.html`
|
|
32
|
+
<div
|
|
33
|
+
class="md-floating ${this.fixed?"fixed":""} ${this.minimize?"hide":""}"
|
|
34
|
+
part="floating"
|
|
35
|
+
role="dialog"
|
|
36
|
+
aria-label=${(0,c.ifDefined)(this.label||void 0)}
|
|
37
|
+
aria-modal="true"
|
|
38
|
+
style=${(0,c.ifDefined)(this.containerRect?`width: ${this.full?"100% !important":`${this.containerRect.width}px !important`};\n height: ${this.full?"100% !important":`${this.containerRect.height}px !important`};\n top: ${this.full?"0 !important":""};\n left: ${this.full?"0 !important":""};\n bottom: ${this.full?"0 !important":""};\n right: ${this.full?"0 !important":""};\n ${this.full?"transform: none !important":""};\n ${this.full?"":`transform: ${this.position?`translate(${this.position.x}px, ${this.position.y}px)`:this.containerTransform} !important`};`:void 0)}
|
|
39
|
+
>
|
|
40
|
+
<div class="md-floating__header">
|
|
41
|
+
<div class="md-floating__header-text">
|
|
42
|
+
${this.heading?d.html` ${this.heading} `:d.html`
|
|
43
|
+
${!this.minimize&&this.headerSlot}
|
|
44
|
+
<slot name="header"></slot>
|
|
45
|
+
`}
|
|
46
|
+
</div>
|
|
47
|
+
${this.minimizable?d.html` <md-button
|
|
48
|
+
color="color-none"
|
|
49
|
+
class="md-floating__minimize"
|
|
50
|
+
ariaLabel="${this.minimizeAriaLabel}"
|
|
51
|
+
circle
|
|
52
|
+
@click=${this.handleMinimize}
|
|
53
|
+
>
|
|
54
|
+
<md-icon name="minus-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
55
|
+
</md-button>`:m.nothing}
|
|
56
|
+
${this.minimize?"":d.html` <md-button
|
|
57
|
+
color="color-none"
|
|
58
|
+
class="md-floating__resize"
|
|
59
|
+
ariaLabel="${this.full?this.resizeAriaLabel:this.maximizeScreenLabel}"
|
|
60
|
+
circle
|
|
61
|
+
@click=${this.handleToggleExpandCollapse}
|
|
62
|
+
>
|
|
63
|
+
<md-icon
|
|
64
|
+
name=${this.full?"minimize-bold":"maximize-bold"}
|
|
65
|
+
size="16"
|
|
66
|
+
iconSet="momentumDesign"
|
|
67
|
+
></md-icon>
|
|
68
|
+
</md-button>`}
|
|
69
|
+
|
|
70
|
+
<md-button
|
|
71
|
+
color="color-none"
|
|
72
|
+
class="md-floating__close"
|
|
73
|
+
ariaLabel="${this.closeAriaLabel}"
|
|
74
|
+
circle
|
|
75
|
+
@click=${this.handleClose}
|
|
76
|
+
>
|
|
77
|
+
<md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
78
|
+
</md-button>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="md-floating__body" part="floating-body">
|
|
81
|
+
<slot></slot>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
${this.minimizable?d.html` <div class="md-floating-min-parent" part="minimize-floating" tabindex="-1">
|
|
85
|
+
<md-floating-modal-minimized
|
|
86
|
+
class="float-modal-min"
|
|
87
|
+
part="floating-minimized"
|
|
88
|
+
heading=${this.heading}
|
|
89
|
+
.minimize=${this.minimize}
|
|
90
|
+
.minPosition=${this.minPosition}
|
|
91
|
+
@floating-min-modal-minimize=${()=>this.handleMinimize()}
|
|
92
|
+
@floating-modal-close=${this.handleClose}
|
|
93
|
+
?show=${this.show}
|
|
94
|
+
>
|
|
95
|
+
${this.minimize&&this.headerSlot}
|
|
96
|
+
</md-floating-modal-minimized>
|
|
97
|
+
</div>`:m.nothing}
|
|
98
|
+
`:m.nothing}
|
|
99
|
+
`}};p([(0,d.property)({type:String})],i.prototype,"heading",void 0),p([(0,d.property)({type:String})],i.prototype,"label",void 0),p([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"show",void 0),p([(0,d.property)({type:Boolean,reflect:!0,attribute:"aspect-ratio"})],i.prototype,"aspectRatio",void 0),p([(0,d.property)({type:Boolean,reflect:!0,attribute:"fixed-strategy"})],i.prototype,"fixed",void 0),p([(0,d.property)({type:Boolean,reflect:!0,attribute:"full-screen"})],i.prototype,"full",void 0),p([(0,d.property)({type:String,attribute:"close-aria-label"})],i.prototype,"closeAriaLabel",void 0),p([(0,d.property)({type:String,attribute:"resize-aria-label"})],i.prototype,"resizeAriaLabel",void 0),p([(0,d.property)({type:String,attribute:"maximize-aria-label"})],i.prototype,"maximizeScreenLabel",void 0),p([(0,d.property)({type:String,attribute:"minimize-aria-label"})],i.prototype,"minimizeAriaLabel",void 0),p([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"minimize",void 0),p([(0,d.property)({type:Object})],i.prototype,"position",void 0),p([(0,d.property)({type:Object})],i.prototype,"minPosition",void 0),p([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"minimizable",void 0),p([(0,d.property)({type:Object})],i.prototype,"containerRect",void 0),p([(0,d.internalProperty)()],i.prototype,"dragOccured",void 0),p([(0,d.query)(".md-floating")],i.prototype,"container",void 0),p([(0,d.query)(".md-floating__body")],i.prototype,"body",void 0),p([(0,d.query)(".md-floating__header")],i.prototype,"header",void 0),p([(0,d.query)(".md-floating-min-parent")],i.prototype,"minimizedHeader",void 0),p([(0,d.query)('slot[name="header"]')],i.prototype,"headerSlot",void 0),i=p([(0,r.w)("md-floating-modal")],i),t.ELEMENT=i}(n||(n={}))},97822:t=>{t.exports=o}},u={};function f(t){var i=u[t];if(void 0!==i)return i.exports;var e=u[t]={exports:{}};return p[t](e,e.exports,f),e.exports}f.m=p,h=[],f.O=(t,i,e,n)=>{if(!i){var o=1/0;for(l=0;l<h.length;l++){for(var[i,e,n]=h[l],r=!0,s=0;s<i.length;s++)(!1&n||o>=n)&&Object.keys(f.O).every((t=>f.O[t](i[s])))?i.splice(s--,1):(r=!1,n<o&&(o=n));if(r){h.splice(l--,1);var a=e();void 0!==a&&(t=a)}}return t}n=n||0;for(var l=h.length;l>0&&h[l-1][2]>n;l--)h[l]=h[l-1];h[l]=[i,e,n]},f.n=t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return f.d(i,{a:i}),i},f.d=(t,i)=>{for(var e in i)f.o(i,e)&&!f.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:i[e]})},f.o=(t,i)=>Object.prototype.hasOwnProperty.call(t,i),f.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={144:0,762:0,3001:0,5382:0,7763:0,9237:0};f.O.j=i=>0===t[i];var i=(i,e)=>{var n,o,[r,s,a]=e,l=0;if(r.some((i=>0!==t[i]))){for(n in s)f.o(s,n)&&(f.m[n]=s[n]);if(a)var d=a(f)}for(i&&i(e);l<r.length;l++)o=r[l],f.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return f.O(d)},e=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];e.forEach(i.bind(null,0)),e.push=i.bind(null,e.push.bind(e))})();var y=f.O(void 0,[7502,1890,6272,6325,6875,2176,6798,9813,1200,8889,300,8373,4624,591,195,6677,8387,7330],(()=>f(73093)));return f.O(y)})()));
|
|
@@ -1,16 +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-45");
|
|
15
|
-
require("../chunks/md-73");
|
|
16
|
-
module.exports = require("../comp/md-floating-modal-entry");
|
|
1
|
+
require("../7502"),require("../1890"),require("../6272"),require("../6325"),require("../6875"),require("../2176"),require("../6798"),require("../9813"),require("../1200"),require("../8889"),require("../300"),require("../8373"),require("../4624"),require("../591"),require("../195"),require("../6677"),require("../8387"),require("../7330"),module.exports=require("../comp/md-floating-modal-entry");
|
|
@@ -1 +1,19 @@
|
|
|
1
|
-
!function(e
|
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit-element"),require("lit-html/directives/if-defined"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/if-defined"],e);else{var i="object"==typeof exports?e(require("lit-element"),require("lit-html/directives/if-defined")):e(t["lit-element"],t["lit-html/directives/if-defined"]);for(var r in i)("object"==typeof exports?exports:t)[r]=i[r]}}(self,((t,e)=>(()=>{"use strict";var i,r={41488:e=>{e.exports=t},97822:t=>{t.exports=e},97866:(t,e,i)=>{i.r(e),i.d(e,{Form:()=>r});var r,o=i(3001),n=i(41488),s=i(97822),a=function(t,e,i,r){var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};!function(t){let e=class extends((0,o.TS)(n.LitElement)){constructor(){super(...arguments),this.rel="",this.name="",this.action="",this.label="",this.method="get",this.target="_self",this.enctype="application/x-www-form-urlencoded",this.novalidate=!1,this.charset="UTF-8",this.isvalid=!1,this.token="on",this.allowRedirect=!1,this.autofillname="input-name",this.formElement=[],this.handleSubmit=t=>{t.preventDefault(),this.validated()&&this.submitForm()},this.handleFormSubmit=t=>{this.allowRedirect||t.preventDefault(),this.dispatchEvent(new CustomEvent("form-submitted",{composed:!0,bubbles:!0}))}}get formMethod(){return"GET"===this.method?"get":"POST"===this.method?"post":this.method}isSubmittable(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement}isDisabled(t){return t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")}findSubmittable(t,e){const i=Array.from(t.children);for(const t of i)if(!this.isDisabled(t))if(this.isSubmittable(t)&&e.add(t),t.shadowRoot)this.findSubmittable(t.shadowRoot,e);else if("SLOT"===t.tagName){const i=t.assignedElements();if(i.length){const{parentElement:t}=i[0];t&&this.findSubmittable(t,e)}}else this.findSubmittable(t,e);return[...e]}validated(){return!!this.novalidate||this.isvalid}submitForm(){const{form:t}=this;t.requestSubmit?t.requestSubmit():t.submit()}get submitButton(){return this.querySelector("button[type='submit']")||this.querySelector("input[type='submit']")||this.querySelector("md-button[type='submit']")}disconnectedCallback(){super.disconnectedCallback(),this.cleanupWrappedForms(),this.teardownEvents()}deleteWrappedForm(t){t.removeEventListener("submit",this.handleFormSubmit)}cleanupWrappedForms(){const{formElement:t}=this;if(t.length)for(const e of t)this.deleteWrappedForm(e);this.formElement=[]}createWrappedForm(t){const e=document.createElement("form");e.addEventListener("submit",this.handleFormSubmit);const{parentNode:i}=t;t.autocomplete=this.token,t.id||(t.id=this.autofillname),t.name||(t.name=this.autofillname),i&&(this.formElement.push(e),i.insertBefore(e,t),e.append(t))}teardownEvents(){this.submitButton&&this.submitButton.removeEventListener("click",this.handleSubmit)}setupEvents(){this.submitButton&&this.submitButton.addEventListener("click",this.handleSubmit)}setupSubmittable(){const t=this.findSubmittable(this.form,new Set);if(t.length)for(const e of t)this.createWrappedForm(e)}slottedChanged(){this.setupSubmittable(),this.setupEvents()}render(){return n.html`
|
|
2
|
+
<form
|
|
3
|
+
class="md-form"
|
|
4
|
+
role="form"
|
|
5
|
+
name=${(0,s.ifDefined)(this.name||void 0)}
|
|
6
|
+
rel=${(0,s.ifDefined)(this.rel||void 0)}
|
|
7
|
+
action=${(0,s.ifDefined)(this.action||void 0)}
|
|
8
|
+
accept-charset=${this.charset}
|
|
9
|
+
enctype=${this.enctype}
|
|
10
|
+
aria-label=${(0,s.ifDefined)(this.label||void 0)}
|
|
11
|
+
?novalidate=${this.novalidate}
|
|
12
|
+
method=${this.formMethod}
|
|
13
|
+
target=${this.target}
|
|
14
|
+
part="form"
|
|
15
|
+
@submit=${this.handleFormSubmit}
|
|
16
|
+
>
|
|
17
|
+
<slot></slot>
|
|
18
|
+
</form>
|
|
19
|
+
`}};a([(0,n.property)({type:String})],e.prototype,"rel",void 0),a([(0,n.property)({type:String})],e.prototype,"name",void 0),a([(0,n.property)({type:String})],e.prototype,"action",void 0),a([(0,n.property)({type:String})],e.prototype,"label",void 0),a([(0,n.property)({type:String})],e.prototype,"method",void 0),a([(0,n.property)({type:String})],e.prototype,"target",void 0),a([(0,n.property)({type:String})],e.prototype,"enctype",void 0),a([(0,n.property)({type:Boolean,reflect:!0,attribute:"no-validate"})],e.prototype,"novalidate",void 0),a([(0,n.property)({type:String,reflect:!0,attribute:"accept-charset"})],e.prototype,"charset",void 0),a([(0,n.property)({type:Boolean,reflect:!0,attribute:"is-valid"})],e.prototype,"isvalid",void 0),a([(0,n.property)({type:String,attribute:"autofill-token"})],e.prototype,"token",void 0),a([(0,n.property)({type:Boolean,attribute:"allow-redirect"})],e.prototype,"allowRedirect",void 0),a([(0,n.property)({type:String,attribute:"autofill-name"})],e.prototype,"autofillname",void 0),a([(0,n.query)(".md-form")],e.prototype,"form",void 0),e=a([(0,o.wW)("md-form")],e),t.ELEMENT=e}(r||(r={}))}},o={};function n(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={exports:{}};return r[t](i,i.exports,n),i.exports}n.m=r,i=[],n.O=(t,e,r,o)=>{if(!e){var s=1/0;for(p=0;p<i.length;p++){for(var[e,r,o]=i[p],a=!0,l=0;l<e.length;l++)(!1&o||s>=o)&&Object.keys(n.O).every((t=>n.O[t](e[l])))?e.splice(l--,1):(a=!1,o<s&&(s=o));if(a){i.splice(p--,1);var d=r();void 0!==d&&(t=d)}}return t}o=o||0;for(var p=i.length;p>0&&i[p-1][2]>o;p--)i[p]=i[p-1];i[p]=[e,r,o]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={6494:0};n.O.j=e=>0===t[e];var e=(e,i)=>{var r,o,[s,a,l]=i,d=0;if(s.some((e=>0!==t[e]))){for(r in a)n.o(a,r)&&(n.m[r]=a[r]);if(l)var p=l(n)}for(e&&e(i);d<s.length;d++)o=s[d],n.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return n.O(p)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var s=n.O(void 0,[1890,8889,300,8373,4624,8387,2972,671,144],(()=>n(97866)));return n.O(s)})()));
|
package/dist/comp/md-form.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
require("../
|
|
2
|
-
require("../chunks/md-2");
|
|
3
|
-
require("../chunks/md-3");
|
|
4
|
-
require("../chunks/md-4");
|
|
5
|
-
require("../chunks/md-6");
|
|
6
|
-
require("../chunks/md-8");
|
|
7
|
-
require("../chunks/md-11");
|
|
8
|
-
require("../chunks/md-74");
|
|
9
|
-
module.exports = require("../comp/md-form-entry");
|
|
1
|
+
require("../1890"),require("../8889"),require("../300"),require("../8373"),require("../4624"),require("../8387"),require("../2972"),require("../671"),require("../144"),module.exports=require("../comp/md-form-entry");
|
|
@@ -1 +1,22 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html"),require("lit-html
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/style-map","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx"],t);else{var 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("mobx")):t(e["lit-element"],e["lit-html/directives/style-map"],e["lit-html"],e["lit-html/directives/class-map"],e["lit-html/directives/if-defined"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.mobx);for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(self,((e,t,i,r,o,s,l,a)=>(()=>{"use strict";var n,d={8229:e=>{e.exports=t},23968:e=>{e.exports=r},32022:e=>{e.exports=s},40333:e=>{e.exports=i},41488:t=>{t.exports=e},60554:e=>{e.exports=l},69112:(e,t,i)=>{i.r(t),i.d(t,{Grabber:()=>r}),i(61200);var r,o=i(37719),s=i(3001),l=i(31890),a=i(26283),n=i(26272),d=i(41488),c=i(23968),h=i(97822),p=i(42215),m=function(e,t,i,r){var o,s=arguments.length,l=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(l=(s<3?o(l):s>3?o(t,i,l):o(t,i))||l);return s>3&&l&&Object.defineProperty(t,i,l),l};!function(e){let t=class extends((0,s.yC)(d.LitElement)){constructor(){super(...arguments),this.label="Expand",this.checkedLabel="Collapse",this.hovered=!1,this.disabled=!1,this.checked=!1,this.visible=!0,this.focused=!1,this.disableClickToggle=!1,this.alignment="leading",this.dragger=!1,this.shadow=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}static get styles(){return[n.A,p.A]}toggleGrabber(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("grabber-toggled",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}handleMouseDown(){this.disableClickToggle||this.toggleGrabber()}handleKeyDown(e){this.disableClickToggle||(0,a.o)(e.code)&&(e.preventDefault(),this.toggleGrabber())}handleMouseEnter(){this.hovered=!0,this.dispatchHoverEvent()}handleMouseLeave(){this.hovered=!1,this.dispatchHoverEvent()}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}dispatchHoverEvent(){this.dispatchEvent(new CustomEvent("grabber-hover-changed",{bubbles:!0,composed:!0,detail:{hovered:this.hovered}}))}get collapsed(){return!this.checked}get grabberClassMap(){return{"md-grabber--active":this.checked,"md-grabber--disabled":this.disabled,"md-grabber--dragger":this.dragger,[`md-grabber--${this.alignment}`]:this.alignment,visible:this.visible||this.focused}}get grabberContainerClassMap(){return{[`${this.alignment}`]:!0,shadow:this.shadow&&(this.visible||this.checked)}}get iconName(){return this.dragger?"list-menu-bold":"leading"===this.alignment||"trailing"===this.alignment?this.checked?"arrow-left-bold":"arrow-right-bold":this.checked?"arrow-up-bold":"arrow-down-bold"}get iconSize(){return this.dragger||!1===o.themeManager.isMomentumV2Enabled?"10":"12"}render(){return d.html`
|
|
2
|
+
<div class="md-grabber__container ${(0,c.classMap)(this.grabberContainerClassMap)}">
|
|
3
|
+
<button
|
|
4
|
+
class="md-grabber ${(0,c.classMap)(this.grabberClassMap)}"
|
|
5
|
+
part="grabber"
|
|
6
|
+
aria-pressed=${this.checked}
|
|
7
|
+
?disabled=${this.disabled}
|
|
8
|
+
tabindex="0"
|
|
9
|
+
aria-label=${(0,h.ifDefined)(this.label.length?this.label:void 0)}
|
|
10
|
+
type="button"
|
|
11
|
+
role="button"
|
|
12
|
+
@click="${()=>this.handleMouseDown()}"
|
|
13
|
+
@keydown="${e=>this.handleKeyDown(e)}"
|
|
14
|
+
@mouseenter="${()=>this.handleMouseEnter()}"
|
|
15
|
+
@mouseleave="${()=>this.handleMouseLeave()}"
|
|
16
|
+
@focus="${()=>this.handleFocus()}"
|
|
17
|
+
@blur="${()=>this.handleBlur()}"
|
|
18
|
+
>
|
|
19
|
+
<md-icon name="${this.iconName}" size="${this.iconSize}" iconSet="momentumDesign"></md-icon>
|
|
20
|
+
</button>
|
|
21
|
+
</div>
|
|
22
|
+
`}};m([(0,d.property)({type:String})],t.prototype,"label",void 0),m([(0,d.property)({type:String})],t.prototype,"checkedLabel",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"hovered",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"disabled",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"checked",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"visible",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"focused",void 0),m([(0,d.property)({type:Boolean,attribute:"disable-click-toggle"})],t.prototype,"disableClickToggle",void 0),m([(0,d.property)({type:String,reflect:!0})],t.prototype,"alignment",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"dragger",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"shadow",void 0),t=m([(0,l.w)("md-grabber")],t),e.ELEMENT=t}(r||(r={}))},85314:e=>{e.exports=a},97822:e=>{e.exports=o}},c={};function h(e){var t=c[e];if(void 0!==t)return t.exports;var i=c[e]={exports:{}};return d[e](i,i.exports,h),i.exports}h.m=d,n=[],h.O=(e,t,i,r)=>{if(!t){var o=1/0;for(d=0;d<n.length;d++){for(var[t,i,r]=n[d],s=!0,l=0;l<t.length;l++)(!1&r||o>=r)&&Object.keys(h.O).every((e=>h.O[e](t[l])))?t.splice(l--,1):(s=!1,r<o&&(o=r));if(s){n.splice(d--,1);var a=i();void 0!==a&&(e=a)}}return e}r=r||0;for(var d=n.length;d>0&&n[d-1][2]>r;d--)n[d]=n[d-1];n[d]=[t,i,r]},h.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return h.d(t,{a:t}),t},h.d=(e,t)=>{for(var i in t)h.o(t,i)&&!h.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={3747:0};h.O.j=t=>0===e[t];var t=(t,i)=>{var r,o,[s,l,a]=i,n=0;if(s.some((t=>0!==e[t]))){for(r in l)h.o(l,r)&&(h.m[r]=l[r]);if(a)var d=a(h)}for(t&&t(i);n<s.length;n++)o=s[n],h.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return h.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 p=h.O(void 0,[7502,1890,6272,6325,6875,2176,6798,9813,1200,8889,300,8373,4624,591,768,195,3001,7719,2215],(()=>h(69112)));return h.O(p)})()));
|
package/dist/comp/md-grabber.js
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
|
-
require("../
|
|
2
|
-
require("../chunks/md-0");
|
|
3
|
-
require("../chunks/md-1");
|
|
4
|
-
require("../chunks/md-2");
|
|
5
|
-
require("../chunks/md-3");
|
|
6
|
-
require("../chunks/md-4");
|
|
7
|
-
require("../chunks/md-5");
|
|
8
|
-
require("../chunks/md-7");
|
|
9
|
-
require("../chunks/md-6");
|
|
10
|
-
require("../chunks/md-9");
|
|
11
|
-
require("../chunks/md-8");
|
|
12
|
-
require("../chunks/md-11");
|
|
13
|
-
require("../chunks/md-23");
|
|
14
|
-
require("../chunks/md-75");
|
|
15
|
-
module.exports = require("../comp/md-grabber-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("../7719"),require("../2215"),module.exports=require("../comp/md-grabber-entry");
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/class-map"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map"],t);else{var r="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/class-map")):t(e["lit-element"],e["lit-html/directives/class-map"]);for(var
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/class-map"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map"],t);else{var r="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/class-map")):t(e["lit-element"],e["lit-html/directives/class-map"]);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(self,((e,t)=>(()=>{"use strict";var r,i={20109:(e,t,r)=>{r.r(t),r.d(t,{HelpText:()=>i});var i,o=r(31890),s=r(26272),n=r(41488),a=r(23968),l=r(24977),p=function(e,t,r,i){var o,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n};!function(e){let t=class extends n.LitElement{constructor(){super(...arguments),this.message="",this.messageType=void 0,this.id="",this.ariaLive="off"}get inputMessageClassMap(){return{[`md-${this.messageType}`]:!!this.messageType}}static get styles(){return[s.A,l.A]}getIconName(){switch(this.messageType){case"success":return"check-circle-badge-filled";case"error":return"error-legacy-badge-filled";case"warning":return"warning-badge-filled";case"priority":return"info-badge-filled";default:return""}}render(){return n.html`
|
|
2
|
+
<div
|
|
3
|
+
class="md-input__message ${(0,a.classMap)(this.inputMessageClassMap)}"
|
|
4
|
+
id=${this.id}
|
|
5
|
+
aria-live=${this.ariaLive}
|
|
6
|
+
role="alert"
|
|
7
|
+
>
|
|
8
|
+
<md-icon name="${this.getIconName()}" size="14" iconSet="momentumDesign"></md-icon>
|
|
9
|
+
<slot>${this.message}</slot>
|
|
10
|
+
</div>
|
|
11
|
+
`}};p([(0,n.property)({type:String})],t.prototype,"message",void 0),p([(0,n.property)({type:String})],t.prototype,"messageType",void 0),p([(0,n.property)({type:String})],t.prototype,"id",void 0),p([(0,n.property)({type:String})],t.prototype,"ariaLive",void 0),t=p([(0,o.w)("md-help-text")],t),e.ELEMENT=t}(i||(i={}))},23968:e=>{e.exports=t},41488:t=>{t.exports=e}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return i[e](r,r.exports,s),r.exports}s.m=i,r=[],s.O=(e,t,i,o)=>{if(!t){var n=1/0;for(c=0;c<r.length;c++){for(var[t,i,o]=r[c],a=!0,l=0;l<t.length;l++)(!1&o||n>=o)&&Object.keys(s.O).every((e=>s.O[e](t[l])))?t.splice(l--,1):(a=!1,o<n&&(n=o));if(a){r.splice(c--,1);var p=i();void 0!==p&&(e=p)}}return e}o=o||0;for(var c=r.length;c>0&&r[c-1][2]>o;c--)r[c]=r[c-1];r[c]=[t,i,o]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={109:0,1745:0};s.O.j=t=>0===e[t];var t=(t,r)=>{var i,o,[n,a,l]=r,p=0;if(n.some((t=>0!==e[t]))){for(i in a)s.o(a,i)&&(s.m[i]=a[i]);if(l)var c=l(s)}for(t&&t(r);p<n.length;p++)o=n[p],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return s.O(c)},r=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n=s.O(void 0,[1890,6272,4977],(()=>s(20109)));return s.O(n)})()));
|
|
@@ -1 +1,26 @@
|
|
|
1
|
-
!function(e
|
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/style-map","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue"],e);else{var i="object"==typeof exports?e(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue")):e(t["lit-element"],t["lit-html/directives/style-map"],t["lit-html"],t["lit-html/directives/class-map"],t["lit-html/directives/if-defined"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"]);for(var o in i)("object"==typeof exports?exports:t)[o]=i[o]}}(self,((t,e,i,o,n,r,s)=>(()=>{"use strict";var l,c={8229:t=>{t.exports=e},23968:t=>{t.exports=o},32022:t=>{t.exports=r},40333:t=>{t.exports=i},41488:e=>{e.exports=t},60554:t=>{t.exports=s},61200:(t,e,i)=>{i.r(e),i.d(e,{Icon:()=>I,iconSet:()=>S,iconSize:()=>f,iconType:()=>b}),i(96798);var o=i(31890),n=i(26272),r=i(32022),s=i.n(r),l=i(60554),c=i.n(l),a=i(41488),m=i(40333),u=i(23968),d=i(97822),h=i(8229),p=i(57955),v=i(66873),g=function(t,e,i,o){var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s},y=function(t,e,i,o){return new(i||(i=Promise))((function(n,r){function s(t){try{c(o.next(t))}catch(t){r(t)}}function l(t){try{c(o.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,l)}c((o=o.apply(t,e||[])).next())}))};const f=["14","16","18","20","28","36","56",14,16,18,20,28,36,56],b=["","white"],S=["momentumUI","preferMomentumDesign","momentumDesign","momentumBrandVisuals"];var I;!function(t){var e;let r=e=class extends a.LitElement{constructor(){super(...arguments),this.color="",this.description="",this.name="",this.id="",this.size="",this.title="",this.ariaHidden=null,this.type="",this.isActive=!1,this.isComboBoxIcon=!1,this.sizeOverrided=!1,this.iconSet="momentumUI",this.svgIcon=null,this._ariaLabel="",this.consoleHandler=(t,e)=>{switch(t){case"color-warn":console.warn(`[@momentum-ui/web-component] Icon: ${e} may not exist in the design system, please use a color name from https://momentum.design/styles/color/style`);break;case"name-error":console.warn(`[@momentum-ui/web-component] Icon: Icon ${e} does not exist in the design system. Visit https://momentum.design/icons for a list of available icons or to request a new icon.`)}}}isPath(t){return t.endsWith(".svg")}decodeIfBase64EncodedSvg(t){const e=/data:image\/svg\+xml;base64,([A-Za-z0-9+/=]+)/.exec(t);if(null==e?void 0:e[1]){const t=e[1];return atob(t)}return t}getSvgContentFromFile(t){return y(this,void 0,void 0,(function*(){const e=yield fetch(t),i=yield e.text();return this.getSvgContentFromInline(i)}))}getSvgContentFromInline(t){const e=this.decodeIfBase64EncodedSvg(t);return this.parseSvgContent(e)}parseSvgContent(t){try{return(new DOMParser).parseFromString(t,"image/svg+xml").documentElement}catch(e){try{return(new DOMParser).parseFromString(t,"text/html").body.children[0]}catch(t){return console.error("Error parsing svg content: ",t),null}}}isSvgAlreadyLoaded(t){var e,i;return!!this.svgIcon&&(null===(i=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"))||void 0===i?void 0:i.includes(t))}loadSvgIcon(t){return y(this,void 0,void 0,(function*(){var e,o;if(this.isSvgAlreadyLoaded(t))return;const n="momentumBrandVisuals"===this.iconSet?i(90747)(`./${t}.svg`):i(49785)(`./${t}.svg`);this.isPath(n)?this.svgIcon=yield this.getSvgContentFromFile(n):this.svgIcon=this.getSvgContentFromInline(n),null===(e=this.svgIcon)||void 0===e||e.setAttribute("class",`icon ${t}`),null===(o=this.svgIcon)||void 0===o||o.setAttribute("part","icon"),this.setSvgIconAttributes(),this.requestUpdate()}))}setSvgIconAttributes(){this.svgIcon&&(this.iconFontSize&&this.svgIcon.setAttribute("width",`${this.iconFontSize}px`),this.iconFontSize&&this.svgIcon.setAttribute("height",`${this.iconFontSize}px`),this.color?this.svgIcon.setAttribute("fill",this.iconColor):this.svgIcon.setAttribute("fill","currentColor"))}get svgIconName(){if("momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet)return this.name;const t=this.momentumUIIconLookupName,i=e.designLookup.get(t);return null!=i?i:t}updated(t){if(super.updated(t),this.doesIconSetSupportSVG)if(t.has("name")||t.has("iconSet")){const t=this.svgIconName;t&&"Unknown"!==t&&this.loadSvgIcon(t)}else(t.has("iconFontSize")||t.has("color"))&&this.setSvgIconAttributes()}get ariaLabel(){return this._ariaLabel?this._ariaLabel:this.title&&this.description?`${this.title} ${this.description}`:this.title?this.title:this.description?this.description:"icon"}set ariaLabel(t){const e=this._ariaLabel;this._ariaLabel=t,this.requestUpdate("ariaLabel",e)}get buttonClassMap(){return{[`md-button--icon-${this.type}`]:!!this.type}}get iconFontSize(){const t=this.name.split("_")[1];return this.size||t||16}get iconColor(){return this.color.startsWith("#")?(this.consoleHandler("color-warn",this.color),this.color):this.color.startsWith("var(")?this.color:c()(this.color)}get iconClassMap(){return{"md-combobox-input__icon":this.isComboBoxIcon,"md-combobox-input__icon--active":this.isComboBoxIcon&&this.isActive,[`${this.iconName}`]:!!this.iconName}}get momentumUIIconLookupName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t=t.split("_")[0],t}getIconName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t}handleSizeOverride(t){return`${t.split("_")[0]}_${this.iconFontSize}`}get iconName(){const t=this.getIconName();return this.sizeOverrided?this.handleSizeOverride(t):s().includes(t)||""===t?`icon-${t}`:this.consoleHandler("name-error",t)}get iconStyleMap(){return Object.assign(Object.assign({},this.iconFontSize&&{"font-size":`${this.iconFontSize}px`}),this.color&&{color:this.iconColor})}static get styles(){return[n.A,v.A]}handleIconClick(t){this.dispatchEvent(new CustomEvent("icon-click",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get doesIconSetSupportSVG(){return"momentumDesign"===this.iconSet||"preferMomentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet}get isSVGRender(){return this.svgIcon&&"preferMomentumDesign"===this.iconSet||"momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet}render(){return this.isSVGRender?this.renderSVGIcon():this.renderFontIcon()}renderFontIcon(){var t;return a.html`
|
|
2
|
+
<i
|
|
3
|
+
part="icon"
|
|
4
|
+
id=${this.id}
|
|
5
|
+
class="md-icon icon ${(0,u.classMap)(this.iconClassMap)}"
|
|
6
|
+
style=${(0,h.styleMap)(this.iconStyleMap)}
|
|
7
|
+
role="img"
|
|
8
|
+
aria-label=${this.ariaLabel}
|
|
9
|
+
title=${this.title}
|
|
10
|
+
aria-hidden=${(0,d.ifDefined)(null!==(t=this.ariaHidden)&&void 0!==t?t:void 0)}
|
|
11
|
+
@click=${t=>this.handleIconClick(t)}
|
|
12
|
+
>
|
|
13
|
+
</i>
|
|
14
|
+
`}renderSVGIcon(){var t;return a.html`
|
|
15
|
+
<div
|
|
16
|
+
class="svg-icon-container"
|
|
17
|
+
id=${this.id}
|
|
18
|
+
role="img"
|
|
19
|
+
aria-label=${this.ariaLabel}
|
|
20
|
+
title=${this.title}
|
|
21
|
+
aria-hidden=${(0,d.ifDefined)(null!==(t=this.ariaHidden)&&void 0!==t?t:void 0)}
|
|
22
|
+
@click=${t=>this.handleIconClick(t)}
|
|
23
|
+
>
|
|
24
|
+
${this.svgIcon?this.svgIcon:m.nothing}
|
|
25
|
+
</div>
|
|
26
|
+
`}};r.designLookup=new Map(Object.entries(p)),g([(0,a.property)({type:String})],r.prototype,"color",void 0),g([(0,a.property)({type:String})],r.prototype,"description",void 0),g([(0,a.property)({type:String})],r.prototype,"name",void 0),g([(0,a.property)({type:String})],r.prototype,"id",void 0),g([(0,a.property)({type:String})],r.prototype,"size",void 0),g([(0,a.property)({type:String})],r.prototype,"title",void 0),g([(0,a.property)({type:String})],r.prototype,"ariaHidden",void 0),g([(0,a.property)({type:String})],r.prototype,"type",void 0),g([(0,a.property)({type:Boolean})],r.prototype,"isActive",void 0),g([(0,a.property)({type:Boolean})],r.prototype,"isComboBoxIcon",void 0),g([(0,a.property)({type:Boolean})],r.prototype,"sizeOverrided",void 0),g([(0,a.property)({type:String})],r.prototype,"iconSet",void 0),g([(0,a.internalProperty)()],r.prototype,"svgIcon",void 0),g([(0,a.property)({type:String})],r.prototype,"ariaLabel",null),r=e=g([(0,o.w)("md-icon")],r),t.ELEMENT=r}(I||(I={}))},97822:t=>{t.exports=n}},a={};function m(t){var e=a[t];if(void 0!==e)return e.exports;var i=a[t]={exports:{}};return c[t](i,i.exports,m),i.exports}m.m=c,l=[],m.O=(t,e,i,o)=>{if(!e){var n=1/0;for(a=0;a<l.length;a++){for(var[e,i,o]=l[a],r=!0,s=0;s<e.length;s++)(!1&o||n>=o)&&Object.keys(m.O).every((t=>m.O[t](e[s])))?e.splice(s--,1):(r=!1,o<n&&(n=o));if(r){l.splice(a--,1);var c=i();void 0!==c&&(t=c)}}return t}o=o||0;for(var a=l.length;a>0&&l[a-1][2]>o;a--)l[a]=l[a-1];l[a]=[e,i,o]},m.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return m.d(e,{a:e}),e},m.d=(t,e)=>{for(var i in e)m.o(e,i)&&!m.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},m.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),m.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={1200:0,7927:0};m.O.j=e=>0===t[e];var e=(e,i)=>{var o,n,[r,s,l]=i,c=0;if(r.some((e=>0!==t[e]))){for(o in s)m.o(s,o)&&(m.m[o]=s[o]);if(l)var a=l(m)}for(e&&e(i);c<r.length;c++)n=r[c],m.o(t,n)&&t[n]&&t[n][0](),t[n]=0;return m.O(a)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var u=m.O(void 0,[7502,1890,6272,6325,6875,2176,6798,9813,2576],(()=>m(61200)));return m.O(u)})()));
|
package/dist/comp/md-icon.js
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
require("../
|
|
2
|
-
require("../chunks/md-0");
|
|
3
|
-
require("../chunks/md-1");
|
|
4
|
-
require("../chunks/md-2");
|
|
5
|
-
require("../chunks/md-5");
|
|
6
|
-
require("../chunks/md-7");
|
|
7
|
-
require("../chunks/md-9");
|
|
8
|
-
module.exports = require("../comp/md-icon-entry");
|
|
1
|
+
require("../7502"),require("../1890"),require("../6272"),require("../6325"),require("../6875"),require("../2176"),require("../6798"),require("../9813"),require("../2576"),module.exports=require("../comp/md-icon-entry");
|
package/dist/comp/md-inpu.js
CHANGED
|
@@ -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-5");
|
|
7
|
-
require("../chunks/md-7");
|
|
8
|
-
require("../chunks/md-6");
|
|
9
|
-
require("../chunks/md-8");
|
|
10
|
-
require("../chunks/md-11");
|
|
11
|
-
require("../chunks/md-76");
|
|
12
|
-
require("../comp/md-input-file");
|
|
1
|
+
require("../1890"),require("../6272"),require("../6325"),require("../6875"),require("../2176"),require("../6798"),require("../300"),require("../8373"),require("../4624"),require("../768"),require("../195"),require("../2972"),require("../6015"),require("../comp/md-input-file");
|