@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,44 @@
|
|
|
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("lit-html/directives/class-map.js"),require("lit-html/directives/until.js"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/style-map","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","lit-html/directives/class-map.js","lit-html/directives/until.js"],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("lit-html/directives/class-map.js"),require("lit-html/directives/until.js")):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["lit-html/directives/class-map.js"],t["lit-html/directives/until.js"]);for(var r in i)("object"==typeof exports?exports:t)[r]=i[r]}}(self,((t,e,i,r,o,n,s,a,l)=>(()=>{"use strict";var p,c={8229:t=>{t.exports=e},17518:t=>{t.exports=a},23968:t=>{t.exports=r},32022:t=>{t.exports=n},37782:t=>{t.exports=l},38028:(t,e,i)=>{i.r(e),i.d(e,{Avatar:()=>r}),i(80528),i(61200),i(69788);var r,o=i(31890),n=i(26283),s=i(26272),a=i(41488),l=i(40333),p=i(23968),c=i(97822),m=i(8229),h=i(37782),d=i(22887),u=i(3553),y=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 a.LitElement{constructor(){super(...arguments),this._tabIndex=0,this.alt="",this.src="",this.label="",this.title="",this.color="",this.decrypting=!1,this.role="img",this.iconName="",this.failurePresence=!1,this.type="",this.newMomentum=!1,this.typing=!1,this.size=40,this.hasNotification=!1,this.clickable=!1,this.imageLoaded=!1,this.imageErrored=!1,this.presenceColor="",this.presenceIcon=""}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}static get styles(){return[s.A,u.A]}firstUpdated(){const{presenceColor:t,presenceIcon:e}=(0,d.E)(this.type,this.failurePresence,this.newMomentum);this.presenceColor=t,this.presenceIcon=e}updated(t){if(super.updated(t),t.has("type")||t.has("newMomentum")){const{presenceColor:t,presenceIcon:e}=(0,d.E)(this.type,this.failurePresence,this.newMomentum);this.presenceColor=t,this.presenceIcon=e}t.has("role")&&this.style.setProperty("--avatar-cursor","button"===this.role?"pointer":"default")}get avatarClassMap(){return Object.assign(Object.assign({},this.newMomentum&&"bot"!==this.type||!this.type?{}:{[`md-avatar--${this.type}`]:!0}),{[`md-avatar--${this.size}`]:!!this.size})}get avatarLetterClassMap(){return{"md-decrypting":this.decrypting,[`md-avatar--${this.color}`]:this.color,"new-momentum":this.newMomentum}}get avatarStyleMap(){return{[`md-avatar--${this.color}`]:this.color}}get pretifyTitle(){if(this.title.length){const t=this.title.trim().split(" ");return 1===t.length?t[0].charAt(0):t[0].charAt(0)+t[t.length-1].charAt(0)}return this.title}get chatIconName(){return"chat-filled"}get chatIconSize(){return this.iconSize}get iconSize(){return(this.size/2).toString()}get renderIsTyping(){return"typing"===this.type||this.typing?a.html` <md-loading></md-loading> `:l.nothing}get avatarLetter(){return this.title?a.html`
|
|
2
|
+
<span class="md-avatar__letter ${(0,p.classMap)(this.avatarLetterClassMap)}">
|
|
3
|
+
${this.pretifyTitle}
|
|
4
|
+
<slot></slot>
|
|
5
|
+
${this.renderIsTyping}
|
|
6
|
+
</span>
|
|
7
|
+
`:l.nothing}get avatarIcon(){return a.html`
|
|
8
|
+
<span class="md-avatar__icon ${(0,p.classMap)(this.avatarStyleMap)}">
|
|
9
|
+
<md-icon
|
|
10
|
+
.name=${this.iconName}
|
|
11
|
+
.iconSet=${this.newMomentum?"momentumDesign":"momentumUI"}
|
|
12
|
+
.size=${this.newMomentum?this.iconSize:""}
|
|
13
|
+
></md-icon>
|
|
14
|
+
</span>
|
|
15
|
+
`}get avatarImage(){return a.html`
|
|
16
|
+
${(0,h.until)(this.loadImage().then((t=>(this.handleImageLoad(),a.html` ${t} `))).catch((()=>this.handleImageError())),a.html` ${this.iconName?this.avatarIcon:this.title?a.html` ${this.avatarLetter} `:l.nothing} `)}
|
|
17
|
+
`}loadImage(){return t=this,e=void 0,r=function*(){return new Promise(((t,e)=>{const i=document.createElement("img");i.src=this.src,i.alt=this.alt,i.onload=()=>t(i),i.onerror=t=>e(t),i.classList.add("md-avatar__img"),i.classList.toggle("md-avatar__img--hidden",!this.imageLoaded)}))},new((i=void 0)||(i=Promise))((function(o,n){function s(t){try{l(r.next(t))}catch(t){n(t)}}function a(t){try{l(r.throw(t))}catch(t){n(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}l((r=r.apply(t,e||[])).next())}));var t,e,i,r}handleImageLoad(){this.imageLoaded=!0}handleImageError(){this.imageErrored=!0}handleKeyDown(t){if(!this.clickable)return;const{code:e}=t;(0,n.o)(e)&&this.dispatchEvent(new CustomEvent("button-keydown",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleClick(t){this.clickable&&(this.clickFunction&&this.clickFunction(),this.dispatchEvent(new CustomEvent("button-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})))}get avatarContent(){return this.src&&!this.imageErrored?this.avatarImage:this.iconName?this.avatarIcon:this.title?this.avatarLetter:l.nothing}renderPresence(){return this.newMomentum&&this.type&&"self"!==this.type&&this.presenceIcon?a.html`
|
|
18
|
+
<md-presence
|
|
19
|
+
class="avatar-presence"
|
|
20
|
+
name="${this.presenceIcon}"
|
|
21
|
+
color="${this.presenceColor}"
|
|
22
|
+
size="${this.size}"
|
|
23
|
+
>
|
|
24
|
+
</md-presence>
|
|
25
|
+
`:l.nothing}render(){return a.html`
|
|
26
|
+
<div
|
|
27
|
+
part="avatar"
|
|
28
|
+
class="md-avatar
|
|
29
|
+
${(0,p.classMap)(this.avatarClassMap)}"
|
|
30
|
+
role=${this.role}
|
|
31
|
+
@click=${t=>this.handleClick(t)}
|
|
32
|
+
@keydown=${t=>this.handleKeyDown(t)}
|
|
33
|
+
tabindex=${(0,c.ifDefined)(this.tabIndex||void 0)}
|
|
34
|
+
aria-label=${(0,c.ifDefined)(this.label)}
|
|
35
|
+
>
|
|
36
|
+
${"self"===this.type?a.html`
|
|
37
|
+
<span class="md-avatar__self" style=${(0,m.styleMap)(this.avatarStyleMap)}>
|
|
38
|
+
<md-icon .name=${this.chatIconName} .iconSet=${"momentumDesign"} .size=${this.chatIconSize}></md-icon>
|
|
39
|
+
</span>
|
|
40
|
+
`:this.avatarContent}
|
|
41
|
+
${this.hasNotification?a.html` <span class="md-avatar__notification-badge"></span> `:l.nothing}
|
|
42
|
+
${this.renderPresence()}
|
|
43
|
+
</div>
|
|
44
|
+
`}};y([(0,a.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),y([(0,a.property)({type:String})],e.prototype,"alt",void 0),y([(0,a.property)({type:String})],e.prototype,"src",void 0),y([(0,a.property)({type:String})],e.prototype,"label",void 0),y([(0,a.property)({type:String})],e.prototype,"title",void 0),y([(0,a.property)({type:String})],e.prototype,"color",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"decrypting",void 0),y([(0,a.property)({type:String})],e.prototype,"role",void 0),y([(0,a.property)({type:String,attribute:"icon-name"})],e.prototype,"iconName",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"failurePresence",void 0),y([(0,a.property)({type:String})],e.prototype,"type",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"newMomentum",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"typing",void 0),y([(0,a.property)({type:Number})],e.prototype,"size",void 0),y([(0,a.property)({type:Boolean,attribute:"has-notification"})],e.prototype,"hasNotification",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"clickable",void 0),y([(0,a.property)({attribute:!1})],e.prototype,"clickFunction",void 0),y([(0,a.internalProperty)()],e.prototype,"imageLoaded",void 0),y([(0,a.internalProperty)()],e.prototype,"imageErrored",void 0),y([(0,a.internalProperty)()],e.prototype,"presenceColor",void 0),y([(0,a.internalProperty)()],e.prototype,"presenceIcon",void 0),e=y([(0,o.w)("md-avatar")],e),t.ELEMENT=e}(r||(r={}))},40333:t=>{t.exports=i},41488:e=>{e.exports=t},60554:t=>{t.exports=s},97822:t=>{t.exports=o}},m={};function h(t){var e=m[t];if(void 0!==e)return e.exports;var i=m[t]={exports:{}};return c[t](i,i.exports,h),i.exports}h.m=c,p=[],h.O=(t,e,i,r)=>{if(!e){var o=1/0;for(l=0;l<p.length;l++){for(var[e,i,r]=p[l],n=!0,s=0;s<e.length;s++)(!1&r||o>=r)&&Object.keys(h.O).every((t=>h.O[t](e[s])))?e.splice(s--,1):(n=!1,r<o&&(o=r));if(n){p.splice(l--,1);var a=i();void 0!==a&&(t=a)}}return t}r=r||0;for(var l=p.length;l>0&&p[l-1][2]>r;l--)p[l]=p[l-1];p[l]=[e,i,r]},h.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return h.d(e,{a:e}),e},h.d=(t,e)=>{for(var i in e)h.o(e,i)&&!h.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},h.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),h.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={8028:0,8115:0};h.O.j=e=>0===t[e];var e=(e,i)=>{var r,o,[n,s,a]=i,l=0;if(n.some((e=>0!==t[e]))){for(r in s)h.o(s,r)&&(h.m[r]=s[r]);if(a)var p=a(h)}for(e&&e(i);l<n.length;l++)o=n[l],h.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return h.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 d=h.O(void 0,[7502,1890,6272,6325,6875,2176,6798,9813,1200,2576,3553,6700,528,9788],(()=>h(38028)));return h.O(d)})()));
|
package/dist/comp/md-avatar.js
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
require("../
|
|
2
|
-
require("../chunks/md-0");
|
|
3
|
-
require("../chunks/md-1");
|
|
4
|
-
require("../chunks/md-2");
|
|
5
|
-
require("../chunks/md-5");
|
|
6
|
-
require("../chunks/md-7");
|
|
7
|
-
require("../chunks/md-9");
|
|
8
|
-
require("../chunks/md-24");
|
|
9
|
-
require("../chunks/md-25");
|
|
10
|
-
require("../chunks/md-29");
|
|
11
|
-
module.exports = require("../comp/md-avatar-entry");
|
|
1
|
+
require("../7502"),require("../1890"),require("../6272"),require("../6325"),require("../6875"),require("../2176"),require("../6798"),require("../9813"),require("../1200"),require("../2576"),require("../3553"),require("../6700"),require("../528"),require("../9788"),module.exports=require("../comp/md-avatar-entry");
|
|
@@ -1 +1,33 @@
|
|
|
1
|
-
!function(e
|
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit-element"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined"],e);else{var i="object"==typeof exports?e(require("lit-element"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined")):e(t["lit-element"],t["lit-html"],t["lit-html/directives/class-map"],t["lit-html/directives/if-defined"]);for(var r in i)("object"==typeof exports?exports:t)[r]=i[r]}}(self,((t,e,i,r)=>(()=>{"use strict";var o,l={23968:t=>{t.exports=i},40333:t=>{t.exports=e},41488:e=>{e.exports=t},63704:(t,e,i)=>{i.r(e),i.d(e,{Badge:()=>r});var r,o=i(31890),l=i(26272),s=i(41488),d=i(40333),p=i(23968),n=i(97822),a=i(92019),h=function(t,e,i,r){var o,l=arguments.length,s=l<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 d=t.length-1;d>=0;d--)(o=t[d])&&(s=(l<3?o(s):l>3?o(e,i,s):o(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};!function(t){let e=class extends s.LitElement{constructor(){super(...arguments),this.ariaLabel="",this.color="",this.bgColor="",this.textColor="",this.height="",this.width="",this.outlined=!1,this.compact=!1,this.circle=!1,this.small=!1,this.split=!1,this.disabled=!1,this.tabIndexing="",this.ariaHiddenSplits="",this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:d.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:d.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:d.nothing,this.renderWidth=()=>this.width?`width: ${this.width};`:d.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height||this.width?s.html`
|
|
2
|
+
<style>
|
|
3
|
+
:host .md-badge {
|
|
4
|
+
${this.renderBgColor()};
|
|
5
|
+
${this.renderTextColor()};
|
|
6
|
+
${this.renderHeight()};
|
|
7
|
+
${this.renderWidth()};
|
|
8
|
+
}
|
|
9
|
+
</style>
|
|
10
|
+
`:d.nothing}static get styles(){return[l.A,a.A]}get computedAriaHiddenSplits(){return"true"===this.ariaHiddenSplits||"false"!==this.ariaHiddenSplits&&void 0}get computedTabIndex(){const t=parseInt(this.tabIndexing);return isNaN(t)?void 0:t}render(){const t={"md-badge--circle":this.circle,"md-badge--split":this.split,"md-badge--compact":this.compact,"md-badge--small":this.small,"md-badge--outline":this.outlined,"md-badge--disabled":this.disabled,[`md-badge--${this.color}`]:!this.disabled&&this.color};return s.html`
|
|
11
|
+
${this.getStyles()}
|
|
12
|
+
<span
|
|
13
|
+
tabindex=${(0,n.ifDefined)(this.computedTabIndex)}
|
|
14
|
+
part="badge"
|
|
15
|
+
class="md-badge ${(0,p.classMap)(t)}"
|
|
16
|
+
aria-label=${this.ariaLabel}
|
|
17
|
+
>
|
|
18
|
+
${this.split?(()=>s.html`
|
|
19
|
+
<slot
|
|
20
|
+
aria-hidden=${(0,n.ifDefined)(this.computedAriaHiddenSplits)}
|
|
21
|
+
name="split-left"
|
|
22
|
+
class="split split-left"
|
|
23
|
+
></slot>
|
|
24
|
+
<span aria-hidden="true" class="split-separator"> | </span>
|
|
25
|
+
<slot
|
|
26
|
+
aria-hidden=${(0,n.ifDefined)(this.computedAriaHiddenSplits)}
|
|
27
|
+
name="split-right"
|
|
28
|
+
class="split split-right"
|
|
29
|
+
></slot>
|
|
30
|
+
`)():d.nothing}
|
|
31
|
+
<slot></slot>
|
|
32
|
+
</span>
|
|
33
|
+
`}};h([(0,s.property)({type:String})],e.prototype,"ariaLabel",void 0),h([(0,s.property)({type:String})],e.prototype,"color",void 0),h([(0,s.property)({type:String})],e.prototype,"bgColor",void 0),h([(0,s.property)({type:String})],e.prototype,"textColor",void 0),h([(0,s.property)({type:String})],e.prototype,"height",void 0),h([(0,s.property)({type:String})],e.prototype,"width",void 0),h([(0,s.property)({type:Boolean})],e.prototype,"outlined",void 0),h([(0,s.property)({type:Boolean})],e.prototype,"compact",void 0),h([(0,s.property)({type:Boolean})],e.prototype,"circle",void 0),h([(0,s.property)({type:Boolean})],e.prototype,"small",void 0),h([(0,s.property)({type:Boolean})],e.prototype,"split",void 0),h([(0,s.property)({type:Boolean})],e.prototype,"disabled",void 0),h([(0,s.property)({type:String})],e.prototype,"tabIndexing",void 0),h([(0,s.property)({type:String})],e.prototype,"ariaHiddenSplits",void 0),e=h([(0,o.w)("md-badge")],e),t.ELEMENT=e}(r||(r={}))},97822:t=>{t.exports=r}},s={};function d(t){var e=s[t];if(void 0!==e)return e.exports;var i=s[t]={exports:{}};return l[t](i,i.exports,d),i.exports}d.m=l,o=[],d.O=(t,e,i,r)=>{if(!e){var l=1/0;for(a=0;a<o.length;a++){for(var[e,i,r]=o[a],s=!0,p=0;p<e.length;p++)(!1&r||l>=r)&&Object.keys(d.O).every((t=>d.O[t](e[p])))?e.splice(p--,1):(s=!1,r<l&&(l=r));if(s){o.splice(a--,1);var n=i();void 0!==n&&(t=n)}}return t}r=r||0;for(var a=o.length;a>0&&o[a-1][2]>r;a--)o[a]=o[a-1];o[a]=[e,i,r]},d.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return d.d(e,{a:e}),e},d.d=(t,e)=>{for(var i in e)d.o(e,i)&&!d.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},d.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),d.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={8111:0};d.O.j=e=>0===t[e];var e=(e,i)=>{var r,o,[l,s,p]=i,n=0;if(l.some((e=>0!==t[e]))){for(r in s)d.o(s,r)&&(d.m[r]=s[r]);if(p)var a=p(d)}for(e&&e(i);n<l.length;n++)o=l[n],d.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return d.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 p=d.O(void 0,[1890,6272,2019],(()=>d(63704)));return d.O(p)})()));
|
package/dist/comp/md-badge.js
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/if-defined"),require("lit-html/directives/repeat"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/if-defined","lit-html/directives/repeat"],t);else{var r="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/if-defined"),require("lit-html/directives/repeat")):t(e["lit-element"],e["lit-html/directives/if-defined"],e["lit-html/directives/repeat"]);for(var
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/if-defined"),require("lit-html/directives/repeat"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/if-defined","lit-html/directives/repeat"],t);else{var r="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/if-defined"),require("lit-html/directives/repeat")):t(e["lit-element"],e["lit-html/directives/if-defined"],e["lit-html/directives/repeat"]);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(self,((e,t,r)=>(()=>{"use strict";var i,o={22818:e=>{e.exports=r},41488:t=>{t.exports=e},92992:(e,t,r)=>{r.r(t),r.d(t,{Breadcrumb:()=>i});var i,o=r(31890),n=r(26272),l=r(41488),a=r(97822),s=r(22818),d=r(46441),u=function(e,t,r,i){var o,n=arguments.length,l=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(l=(n<3?o(l):n>3?o(t,r,l):o(t,r))||l);return n>3&&l&&Object.defineProperty(t,r,l),l};!function(e){let t=class extends l.LitElement{constructor(){super(...arguments),this.label="Breadcrumb",this.navCrumbs=[]}static get styles(){return[n.A,d.A]}setLastAnchorCurrent(){var e;(null===(e=this.anchors)||void 0===e?void 0:e.length)&&this.anchors[this.anchors.length-1].setAttribute("aria-current","page")}firstUpdated(e){super.firstUpdated(e),this.setLastAnchorCurrent()}update(e){super.update(e),e.has("navCrumbs")&&this.setLastAnchorCurrent()}handleClick(e){var t;const r=e.target;if(null===(t=this.anchors)||void 0===t?void 0:t.length){const e=Array.from(this.anchors).indexOf(r);-1!==e&&(this.navCrumbs=[...this.navCrumbs.splice(0,e+1)])}}render(){return l.html`
|
|
2
|
+
<nav aria-label="${(0,a.ifDefined)(this.label?this.label:void 0)}" class="md-breadcrumb">
|
|
3
|
+
<ul @click=${e=>this.handleClick(e)}>
|
|
4
|
+
${(0,s.repeat)(this.navCrumbs,(e=>e.link),(e=>l.html`
|
|
5
|
+
<li>
|
|
6
|
+
<a href="${e.link}"> ${e.label} </a>
|
|
7
|
+
</li>
|
|
8
|
+
`))}
|
|
9
|
+
</ul>
|
|
10
|
+
</nav>
|
|
11
|
+
`}};u([(0,l.property)({type:String,attribute:"aria-label"})],t.prototype,"label",void 0),u([(0,l.property)({type:Array,attribute:"nav-crumbs",reflect:!0})],t.prototype,"navCrumbs",void 0),u([(0,l.queryAll)("a[href]")],t.prototype,"anchors",void 0),t=u([(0,o.w)("md-breadcrumb")],t),e.ELEMENT=t}(i||(i={}))},97822:e=>{e.exports=t}},n={};function l(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return o[e](r,r.exports,l),r.exports}l.m=o,i=[],l.O=(e,t,r,o)=>{if(!t){var n=1/0;for(u=0;u<i.length;u++){for(var[t,r,o]=i[u],a=!0,s=0;s<t.length;s++)(!1&o||n>=o)&&Object.keys(l.O).every((e=>l.O[e](t[s])))?t.splice(s--,1):(a=!1,o<n&&(n=o));if(a){i.splice(u--,1);var d=r();void 0!==d&&(e=d)}}return e}o=o||0;for(var u=i.length;u>0&&i[u-1][2]>o;u--)i[u]=i[u-1];i[u]=[t,r,o]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={555:0};l.O.j=t=>0===e[t];var t=(t,r)=>{var i,o,[n,a,s]=r,d=0;if(n.some((t=>0!==e[t]))){for(i in a)l.o(a,i)&&(l.m[i]=a[i]);if(s)var u=s(l)}for(t&&t(r);d<n.length;d++)o=n[d],l.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return l.O(u)},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 a=l.O(void 0,[1890,6272,6441],(()=>l(92992)));return l.O(a)})()));
|
|
@@ -1 +1,77 @@
|
|
|
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"));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"],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")):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"]);for(var o in i)("object"==typeof exports?exports:t)[o]=i[o]}}(self,((t,e,i,o,r)=>(()=>{"use strict";var a,s={8229:t=>{t.exports=e},23968:t=>{t.exports=o},40333:t=>{t.exports=i},41488:e=>{e.exports=t},96798:(t,e,i)=>{i.r(e),i.d(e,{Button:()=>x,buttonAriaLive:()=>g,buttonColor:()=>f,buttonRoles:()=>b,buttonSize:()=>c,buttonTag:()=>u,buttonType:()=>v,buttonVariant:()=>m});var o=i(73940),r=(i(12176),i(31890)),a=i(26283),s=i(26272),n=i(41488),l=i(40333),d=i(23968),p=i(97822),h=i(11740),y=function(t,e,i,o){var r,a=arguments.length,s=a<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 n=t.length-1;n>=0;n--)(r=t[n])&&(s=(a<3?r(s):a>3?r(e,i,s):r(e,i))||s);return a>3&&s&&Object.defineProperty(e,i,s),s};const c=["20","24","28","32","36","40","44","52","56","72","68","84","size-none",20,24,28,32,36,40,44,52,56,68,72,68,84],u=["button","input","a"],v=["button","reset","submit"],b=["button","checkbox","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","switch","tab"],m=["primary","secondary","red","green","ghost","ghostInheritTextColor","white","darkGrey","promotional","tab","available","unavailable","engaged","idle","inverted-primary","inverted-secondary","dropdown","secondary-negative","secondary-positive","secondary-accent"],f=["blue","red","green","orange","yellow","mint","purple","pink","cyan","white","dark-gray","duck-egg","violet","color-none",""],g=["","off","polite","assertive"];var x;!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this._active=!1,this._tabIndex=0,this.ariaLabel="",this.ariaLabelledBy="",this.ariaLive="",this.ariaExpanded="",this.ariaHaspopup="false",this.ariaPressed="",this.circle=!1,this.rounded=!1,this.color="",this.containerLarge=!1,this.disabled=!1,this.href="",this.id="",this.value="",this.keyboardKey="",this.label="",this.loading=!1,this.outline=!1,this.hasRemoveStyle=!1,this.size="32",this.tag="button",this.type="button",this.role="button",this.variant="secondary",this.width="",this.maxWidth="",this.activityType="",this.iconActive=!1,this.isActive=!1,this.renderWidth=()=>this.width?`width: ${this.width};`:l.nothing,this.renderMaxWidth=()=>this.maxWidth?`max-width: ${this.maxWidth};`:l.nothing,this.getStyles=()=>{if(this.width||this.maxWidth)return n.html`
|
|
2
|
+
<style>
|
|
3
|
+
:host .md-button--${this.size} {
|
|
4
|
+
${this.renderWidth()};
|
|
5
|
+
${this.renderMaxWidth()};
|
|
6
|
+
}
|
|
7
|
+
</style>
|
|
8
|
+
`},this.iconTemplate=()=>this.loading?n.html` <md-spinner size="16"></md-spinner> `:n.html` <slot name="icon"></slot> `,this.textTemplate=()=>this.circle&&this.hasIcon?l.nothing:n.html` <slot name="text"></slot> `}get active(){return this._active}set active(t){const e=this._active;this._active=t,this.requestUpdate("active",e)}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}handleKeyDown(t){if(this.disabled)return;const{code:e}=t;(0,a.o)(e)&&this.dispatchEvent(new CustomEvent("button-keydown",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleClick(t){this.disabled||(this.clickFunction&&this.clickFunction(),this.dispatchEvent(new CustomEvent("button-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})))}static get styles(){return[s.A,h.A,o.A]}get buttonClassMap(){return{"md-button--circle":this.circle,"md-button--rounded":this.rounded,"md-button--none":this.hasRemoveStyle,"md-button--outline":this.outline,active:this.active&&!this.disabled,disabled:this.disabled&&!this.active,isActive:this.isActive,[`md-button--${this.size}`]:!this.hasRemoveStyle,[`md-button--${this.color}`]:!this.hasRemoveStyle&&!!this.color,[`md-activity__${this.activityType}`]:!!this.activityType,"md-activity":!!this.activityType,"md-button--icon":this.iconActive,"md-button--onlyicon":this.hasIcon&&!this.slottedText,"md-button--placeholder-text":!0===this.isPlaceholderText}}get slottedText(){var t;return null===(t=this.querySelector("[slot=text]"))||void 0===t?void 0:t.textContent}get hasIcon(){return null!==this.querySelector("[slot=icon]")||this.loading}childrenTemplate(){return n.html`
|
|
9
|
+
<span part="button-children" class="md-button__children">
|
|
10
|
+
${this.iconTemplate()} ${this.textTemplate()}
|
|
11
|
+
<slot></slot>
|
|
12
|
+
</span>
|
|
13
|
+
`}get computedAriaExpand(){return"true"===this.ariaExpanded?"true":"false"===this.ariaExpanded?"false":void 0}buttonTemplate(t){return"button"===t?n.html`
|
|
14
|
+
<button
|
|
15
|
+
part="button"
|
|
16
|
+
id=${this.id}
|
|
17
|
+
class="md-button ${(0,d.classMap)(this.buttonClassMap)}"
|
|
18
|
+
@click=${t=>this.handleClick(t)}
|
|
19
|
+
@keydown=${t=>this.handleKeyDown(t)}
|
|
20
|
+
tabindex=${(0,p.ifDefined)(this.tabIndex||void 0)}
|
|
21
|
+
aria-label=${(0,p.ifDefined)(this.ariaLabel||void 0)}
|
|
22
|
+
aria-labelledby=${(0,p.ifDefined)(this.ariaLabelledBy||void 0)}
|
|
23
|
+
aria-live=${(0,p.ifDefined)(this.ariaLive||void 0)}
|
|
24
|
+
aria-expanded=${(0,p.ifDefined)(this.computedAriaExpand)}
|
|
25
|
+
aria-haspopup=${(0,p.ifDefined)("false"===this.ariaHaspopup?void 0:this.ariaHaspopup)}
|
|
26
|
+
aria-pressed=${(0,p.ifDefined)(this.ariaPressed||void 0)}
|
|
27
|
+
aria-disabled=${(0,p.ifDefined)(this.disabled||this.loading||void 0)}
|
|
28
|
+
type=${this.type}
|
|
29
|
+
role=${(0,p.ifDefined)("button"===this.role?void 0:this.role)}
|
|
30
|
+
>
|
|
31
|
+
${this.childrenTemplate()}
|
|
32
|
+
</button>
|
|
33
|
+
`:"input"===t?n.html`
|
|
34
|
+
<input
|
|
35
|
+
part="button"
|
|
36
|
+
id=${this.id}
|
|
37
|
+
class="md-button ${(0,d.classMap)(this.buttonClassMap)}"
|
|
38
|
+
@click=${t=>this.handleClick(t)}
|
|
39
|
+
@keydown=${t=>this.handleKeyDown(t)}
|
|
40
|
+
role=${this.role}
|
|
41
|
+
tabindex=${(0,p.ifDefined)(this.tabIndex||void 0)}
|
|
42
|
+
aria-pressed=${"true"===this.ariaPressed}
|
|
43
|
+
aria-label=${(0,p.ifDefined)(this.ariaLabel||void 0)}
|
|
44
|
+
aria-labelledby=${(0,p.ifDefined)(this.ariaLabelledBy||void 0)}
|
|
45
|
+
aria-live=${(0,p.ifDefined)(this.ariaLive||void 0)}
|
|
46
|
+
type=${this.type}
|
|
47
|
+
alt=${this.label}
|
|
48
|
+
value=${this.value}
|
|
49
|
+
aria-disabled=${(0,p.ifDefined)(this.disabled||this.loading||void 0)}
|
|
50
|
+
/>
|
|
51
|
+
`:"a"===t?n.html`
|
|
52
|
+
<a
|
|
53
|
+
part="button"
|
|
54
|
+
id=${this.id}
|
|
55
|
+
class="md-button ${(0,d.classMap)(this.buttonClassMap)}"
|
|
56
|
+
@click=${t=>this.handleClick(t)}
|
|
57
|
+
@keydown=${t=>this.handleKeyDown(t)}
|
|
58
|
+
role=${this.role}
|
|
59
|
+
tabindex=${(0,p.ifDefined)(this.tabIndex||void 0)}
|
|
60
|
+
aria-pressed=${"true"===this.ariaPressed?"true":"false"}
|
|
61
|
+
aria-label=${(0,p.ifDefined)(this.ariaLabel||void 0)}
|
|
62
|
+
aria-labelledby=${(0,p.ifDefined)(this.ariaLabelledBy||void 0)}
|
|
63
|
+
aria-live=${(0,p.ifDefined)(this.ariaLive||void 0)}
|
|
64
|
+
aria-disabled=${(0,p.ifDefined)(this.disabled||this.loading||void 0)}
|
|
65
|
+
href=${this.href}
|
|
66
|
+
>
|
|
67
|
+
${this.childrenTemplate()}
|
|
68
|
+
</a>
|
|
69
|
+
`:l.nothing}get buttonContainerClassMap(){return{"md-button__container":this.containerLarge,"md-button__container--small":!this.containerLarge}}render(){return n.html`
|
|
70
|
+
${this.getStyles()}
|
|
71
|
+
${this.label?n.html`
|
|
72
|
+
<div part="button-container" class=${(0,d.classMap)(this.buttonContainerClassMap)}>
|
|
73
|
+
${this.buttonTemplate(this.tag)}
|
|
74
|
+
<div part="button-label" class="md-button__label">${this.label}</div>
|
|
75
|
+
</div>
|
|
76
|
+
`:n.html` ${this.buttonTemplate(this.tag)} `}
|
|
77
|
+
`}};y([(0,n.property)({type:Boolean,reflect:!0})],e.prototype,"active",null),y([(0,n.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),y([(0,n.property)({type:String})],e.prototype,"ariaLabel",void 0),y([(0,n.property)({type:String})],e.prototype,"ariaLabelledBy",void 0),y([(0,n.property)({type:String})],e.prototype,"ariaLive",void 0),y([(0,n.property)({type:String})],e.prototype,"ariaExpanded",void 0),y([(0,n.property)({type:String})],e.prototype,"ariaHaspopup",void 0),y([(0,n.property)({type:String})],e.prototype,"ariaPressed",void 0),y([(0,n.property)({type:Boolean})],e.prototype,"circle",void 0),y([(0,n.property)({type:Boolean})],e.prototype,"rounded",void 0),y([(0,n.property)({type:String})],e.prototype,"color",void 0),y([(0,n.property)({type:Boolean})],e.prototype,"containerLarge",void 0),y([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),y([(0,n.property)({type:String})],e.prototype,"href",void 0),y([(0,n.property)({type:String})],e.prototype,"id",void 0),y([(0,n.property)({type:String})],e.prototype,"value",void 0),y([(0,n.property)({type:String})],e.prototype,"keyboardKey",void 0),y([(0,n.property)({type:String})],e.prototype,"label",void 0),y([(0,n.property)({type:Boolean})],e.prototype,"loading",void 0),y([(0,n.property)({type:Boolean})],e.prototype,"outline",void 0),y([(0,n.property)({type:Boolean})],e.prototype,"hasRemoveStyle",void 0),y([(0,n.property)({type:String})],e.prototype,"size",void 0),y([(0,n.property)({type:String})],e.prototype,"tag",void 0),y([(0,n.property)({type:String})],e.prototype,"type",void 0),y([(0,n.property)({type:String})],e.prototype,"role",void 0),y([(0,n.property)({type:String})],e.prototype,"variant",void 0),y([(0,n.property)({type:String})],e.prototype,"width",void 0),y([(0,n.property)({type:String})],e.prototype,"maxWidth",void 0),y([(0,n.property)({type:String})],e.prototype,"activityType",void 0),y([(0,n.property)({type:Boolean})],e.prototype,"iconActive",void 0),y([(0,n.property)({type:Boolean})],e.prototype,"isActive",void 0),y([(0,n.property)({attribute:!1})],e.prototype,"clickFunction",void 0),y([(0,n.property)({type:Boolean,attribute:"is-placeholder-text"})],e.prototype,"isPlaceholderText",void 0),y([(0,n.query)(".md-button")],e.prototype,"button",void 0),e=y([(0,r.w)("md-button")],e),t.ELEMENT=e}(x||(x={}))},97822:t=>{t.exports=r}},n={};function l(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}};return s[t](i,i.exports,l),i.exports}l.m=s,a=[],l.O=(t,e,i,o)=>{if(!e){var r=1/0;for(p=0;p<a.length;p++){for(var[e,i,o]=a[p],s=!0,n=0;n<e.length;n++)(!1&o||r>=o)&&Object.keys(l.O).every((t=>l.O[t](e[n])))?e.splice(n--,1):(s=!1,o<r&&(r=o));if(s){a.splice(p--,1);var d=i();void 0!==d&&(t=d)}}return t}o=o||0;for(var p=a.length;p>0&&a[p-1][2]>o;p--)a[p]=a[p-1];a[p]=[e,i,o]},l.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return l.d(e,{a:e}),e},l.d=(t,e)=>{for(var i in e)l.o(e,i)&&!l.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},l.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),l.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={5156:0,6798:0};l.O.j=e=>0===t[e];var e=(e,i)=>{var o,r,[a,s,n]=i,d=0;if(a.some((e=>0!==t[e]))){for(o in s)l.o(s,o)&&(l.m[o]=s[o]);if(n)var p=n(l)}for(e&&e(i);d<a.length;d++)r=a[d],l.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return l.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 d=l.O(void 0,[1890,6272,6325,6875,2176,2576],(()=>l(96798)));return l.O(d)})()));
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"));else if("function"==typeof define&&define.amd)define(["lit-element"],t);else{var
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"));else if("function"==typeof define&&define.amd)define(["lit-element"],t);else{var s="object"==typeof exports?t(require("lit-element")):t(e["lit-element"]);for(var i in s)("object"==typeof exports?exports:e)[i]=s[i]}}(self,(e=>(()=>{"use strict";var t,s={3001:(e,t,s)=>{s.d(t,{TS:()=>n.T,wW:()=>r.w,yC:()=>i.y}),s(18889);var i=s(32972),n=(s(28373),s(70300),s(84624),s(68387)),r=s(31890)},41488:t=>{t.exports=e},45629:(e,t,s)=>{s.r(t),s.d(t,{ButtonGroup:()=>i});var i,n=s(90195),r=s(3001),o=s(26272),d=s(41488),l=s(71250),a=function(e,t,s,i){var n,r=arguments.length,o=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,i);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(o=(r<3?n(o):r>3?n(t,s,o):n(t,s))||o);return r>3&&o&&Object.defineProperty(t,s,o),o};!function(e){let t=class extends((0,r.TS)((0,r.yC)(d.LitElement))){constructor(){super(...arguments),this.active=0,this.tabIndex=0,this._disabled=!1}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.setAttribute("aria-disabled",`${e}`),this.tabIndex=e?-1:0,this.requestUpdate("disabled",t)}get slotElement(){return this.buttonSlot}static get styles(){return[o.A,l.A]}firstUpdated(e){super.firstUpdated(e),this.setAttribute("role","group")}setButtonTabIndex(){this.slotted.forEach((e=>e.tabIndex=-1))}updated(e){super.updated(e),e.has("slotted")&&(this.setButtonTabIndex(),this.setFirstActive())}get selectedBtnValue(){return this.slotted[this.active].value}notifySelectedChange(){this.dispatchEvent(new CustomEvent("button-group-change",{detail:{selected:this.selectedBtnValue},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}setSelected(e){var t,s;const i=this.findSelectedBtnIndex();-1!==i&&i!==e&&(null===(t=this.slotted[i])||void 0===t||t.toggleAttribute("selected",!1)),null===(s=this.slotted[e])||void 0===s||s.toggleAttribute("selected",!0)}setFirstActive(){-1===this.findSelectedBtnIndex()&&this.setSelected(this.active)}findBtnIndex(e){const t=e.composedPath();return this.slotted.findIndex((e=>t.includes(e)))}findSelectedBtnIndex(){return this.slotted.findIndex((e=>e.hasAttribute("selected")))}isBtnDisabled(e){return this.slotted[e].disabled}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}switchBtnOnArrowPress(e,t=1){const s=this.getAvailableSelectedIndex(e,t);-1!==s&&(this.active=s,this.setSelected(s),this.notifySelectedChange())}getAvailableSelectedIndex(e,t=1){const s=this.slotted.length;for(let i=0,n=e;i<s;i+=1,n+=t){n<0?n=s-1:n>=s&&(n=0);const e=this.slotted[n];if(this.isFocusable(e))return n}return-1}isFocusable(e){return!e.hasAttribute("disabled")&&!e.hasAttribute("hidden")}handleClick(e){const t=this.findBtnIndex(e);-1!==t&&(this.isBtnDisabled(t)||(this.active=t,this.setSelected(t),this.notifySelectedChange()))}handleKeyDown(e){const{code:t}=e;switch(t){case n.Uz.Enter:case n.Uz.Space:this.isBtnDisabled(this.active)||(this.setSelected(this.active),this.notifySelectedChange());break;case n.Uz.ArrowLeft:0===this.active?this.switchBtnOnArrowPress(this.slotted.length-1,-1):this.switchBtnOnArrowPress(this.active-1,-1);break;case n.Uz.ArrowRight:this.active===this.slotted.length-1?this.switchBtnOnArrowPress(0):this.switchBtnOnArrowPress(this.active+1)}}render(){return d.html`
|
|
2
|
+
<div role="group" class="md-button-group" part="button-group">
|
|
3
|
+
<slot name="button"></slot>
|
|
4
|
+
</div>
|
|
5
|
+
`}};a([(0,d.property)({type:Number,reflect:!0})],t.prototype,"active",void 0),a([(0,d.property)({type:Number,reflect:!0})],t.prototype,"tabIndex",void 0),a([(0,d.query)("slot[name='button']")],t.prototype,"buttonSlot",void 0),a([(0,d.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),t=a([(0,r.wW)("md-button-group")],t),e.ELEMENT=t}(i||(i={}))}},i={};function n(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return s[e](r,r.exports,n),r.exports}n.m=s,t=[],n.O=(e,s,i,r)=>{if(!s){var o=1/0;for(c=0;c<t.length;c++){for(var[s,i,r]=t[c],d=!0,l=0;l<s.length;l++)(!1&r||o>=r)&&Object.keys(n.O).every((e=>n.O[e](s[l])))?s.splice(l--,1):(d=!1,r<o&&(o=r));if(d){t.splice(c--,1);var a=i();void 0!==a&&(e=a)}}return e}r=r||0;for(var c=t.length;c>0&&t[c-1][2]>r;c--)t[c]=t[c-1];t[c]=[s,i,r]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={144:0,3001:0,5310:0,5382:0,7763:0};n.O.j=t=>0===e[t];var t=(t,s)=>{var i,r,[o,d,l]=s,a=0;if(o.some((t=>0!==e[t]))){for(i in d)n.o(d,i)&&(n.m[i]=d[i]);if(l)var c=l(n)}for(t&&t(s);a<o.length;a++)r=o[a],n.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return n.O(c)},s=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})();var r=n.O(void 0,[1890,6272,8889,300,8373,4624,591,195,8387,1250],(()=>n(45629)));return n.O(r)})()));
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
require("../
|
|
2
|
-
require("../chunks/md-1");
|
|
3
|
-
require("../chunks/md-2");
|
|
4
|
-
require("../chunks/md-3");
|
|
5
|
-
require("../chunks/md-4");
|
|
6
|
-
require("../chunks/md-6");
|
|
7
|
-
require("../chunks/md-8");
|
|
8
|
-
require("../chunks/md-11");
|
|
9
|
-
require("../chunks/md-57");
|
|
10
|
-
module.exports = require("../comp/md-button-group-entry");
|
|
1
|
+
require("../1890"),require("../6272"),require("../8889"),require("../300"),require("../8373"),require("../4624"),require("../591"),require("../195"),require("../8387"),require("../1250"),module.exports=require("../comp/md-button-group-entry");
|
package/dist/comp/md-button.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
require("../
|
|
2
|
-
require("../chunks/md-1");
|
|
3
|
-
require("../chunks/md-2");
|
|
4
|
-
require("../chunks/md-5");
|
|
5
|
-
require("../chunks/md-7");
|
|
6
|
-
module.exports = require("../comp/md-button-entry");
|
|
1
|
+
require("../1890"),require("../6272"),require("../6325"),require("../6875"),require("../2176"),require("../2576"),module.exports=require("../comp/md-button-entry");
|
|
@@ -1 +1,77 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html"),require("lit-html
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit-html/directives/class-map.js"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/style-map","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","lit-html/directives/class-map.js"],t);else{var i="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit-html/directives/class-map.js")):t(e["lit-element"],e["lit-html/directives/style-map"],e["lit-html"],e["lit-html/directives/class-map"],e["lit-html/directives/if-defined"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e["lit-html/directives/class-map.js"]);for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(self,((e,t,i,r,s,o,d,n)=>(()=>{"use strict";var a,m={8229:e=>{e.exports=t},17518:e=>{e.exports=n},23968:e=>{e.exports=r},32022:e=>{e.exports=o},40333:e=>{e.exports=i},41488:t=>{t.exports=e},60554:e=>{e.exports=d},64311:(e,t,i)=>{i.r(t),i.d(t,{CardAi:()=>s,CardAiVariant:()=>r}),i(96798),i(61200);var r,s,o=i(31890),d=i(26272),n=i(41488),a=i(40333),m=i(17518),l=i(18227),c=function(e,t,i,r){var s,o=arguments.length,d=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,t,i,r);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(d=(o<3?s(d):o>3?s(t,i,d):s(t,i))||d);return o>3&&d&&Object.defineProperty(t,i,d),d};!function(e){e.USER_QUERY="user_query",e.RESPONSE="response"}(r||(r={})),function(e){let t=class extends n.LitElement{constructor(){super(...arguments),this.id="",this.title="",this.cardText="",this.timestamp="",this.summariseMoreVisible=!1,this.variant=r.RESPONSE,this.copyChecked=!1,this.thumbsUpChecked=!1,this.thumbsDownChecked=!1}static get styles(){return[d.A,l.A]}thumbsUpToggled(){this.thumbsDownChecked=!1,this.thumbsUpChecked=!this.thumbsUpChecked,this.dispatchEvent(new CustomEvent("thumbs-up-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}thumbsDownToggled(){this.thumbsUpChecked=!1,this.thumbsDownChecked=!this.thumbsDownChecked,this.dispatchEvent(new CustomEvent("thumbs-down-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}summariseMoreToggled(){this.dispatchEvent(new CustomEvent("summarise-more-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}copyToggled(){navigator.clipboard.writeText(this.cardText),this.copyChecked=!0,setTimeout((()=>{this.copyChecked=!1}),2e3)}get bottomBorderRadiusClass(){return this.timestamp?"with-bottom-border-radius":"no-bottom-border-radius"}get cardTextClassMap(){return{"md-card-ai-card-body-user-query":this.variant===r.USER_QUERY,[`md-card-ai-card-body-response-${this.bottomBorderRadiusClass}`]:this.variant===r.RESPONSE}}renderHeader(){return this.variant===r.RESPONSE&&""!==this.title?n.html`
|
|
2
|
+
<div class="md-card-ai-header">
|
|
3
|
+
<slot name="card-header-aside">
|
|
4
|
+
<md-icon name="cisco-ai-assistant-color" iconSet="momentumBrandVisuals"></md-icon>
|
|
5
|
+
</slot>
|
|
6
|
+
<div class="md-card-ai-header-title">
|
|
7
|
+
<slot name="card-header-title">
|
|
8
|
+
<h3>${this.title}</h3>
|
|
9
|
+
</slot>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
`:a.nothing}renderCardText(){return""!==this.cardText?n.html`
|
|
13
|
+
<div class=${(0,m.classMap)(this.cardTextClassMap)}>
|
|
14
|
+
<h3>${this.cardText}</h3>
|
|
15
|
+
${this.renderResponseCard()}
|
|
16
|
+
</div>
|
|
17
|
+
`:a.nothing}renderThumbsUpButton(){const e=this.thumbsUpChecked?"secondary":"ghost",t=this.thumbsUpChecked?"This is helpful, selected":"This is helpful";return n.html`
|
|
18
|
+
<div class="md-card-ai-thumbs-up">
|
|
19
|
+
<md-button
|
|
20
|
+
circle
|
|
21
|
+
variant=${e}
|
|
22
|
+
size="28"
|
|
23
|
+
ariaLabel=${t}
|
|
24
|
+
@click=${this.thumbsUpToggled}
|
|
25
|
+
>
|
|
26
|
+
<md-icon slot="icon" name="like-regular" iconSet="momentumDesign"></md-icon>
|
|
27
|
+
</md-button>
|
|
28
|
+
</div>
|
|
29
|
+
`}renderThumbsDownButton(){const e=this.thumbsDownChecked?"secondary":"ghost",t=this.thumbsDownChecked?"This is not helpful, selected":"This is not helpful";return n.html`
|
|
30
|
+
<div>
|
|
31
|
+
<md-button
|
|
32
|
+
circle
|
|
33
|
+
variant=${e}
|
|
34
|
+
size="28"
|
|
35
|
+
ariaLabel=${t}
|
|
36
|
+
@click=${this.thumbsDownToggled}
|
|
37
|
+
>
|
|
38
|
+
<md-icon slot="icon" name="dislike-regular" iconSet="momentumDesign"></md-icon>
|
|
39
|
+
</md-button>
|
|
40
|
+
</div>
|
|
41
|
+
`}renderCopyButton(){const e=this.copyChecked?"secondary":"ghost",t=this.copyChecked?"Copied, selected":"Copy summary";return n.html`
|
|
42
|
+
<div class="md-card-ai-copy-button-container">
|
|
43
|
+
<md-button
|
|
44
|
+
size="32"
|
|
45
|
+
variant=${e}
|
|
46
|
+
ariaLabel=${t}
|
|
47
|
+
outline
|
|
48
|
+
@click=${this.copyToggled}
|
|
49
|
+
>
|
|
50
|
+
<md-icon
|
|
51
|
+
slot="icon"
|
|
52
|
+
name=${this.copyChecked?"check-regular":"copy-regular"}
|
|
53
|
+
iconSet="momentumDesign"
|
|
54
|
+
></md-icon>
|
|
55
|
+
<span slot="text">${this.copyChecked?"Copied":"Copy"}</span>
|
|
56
|
+
</md-button>
|
|
57
|
+
</div>
|
|
58
|
+
`}renderResponseCard(){return this.variant===r.RESPONSE&&""!==this.timestamp?n.html`
|
|
59
|
+
<div class="md-card-ai-divider"></div>
|
|
60
|
+
<div class="md-card-ai-time-wrapper">
|
|
61
|
+
<time class="md-card-ai-time" aria-hidden="true" datetime=${this.timestamp}> ${this.timestamp} </time>
|
|
62
|
+
<span class="md-card-ai-dot-separator">•</span>
|
|
63
|
+
<div class="md-card-ai-feedback">${this.renderThumbsUpButton()} ${this.renderThumbsDownButton()}</div>
|
|
64
|
+
${this.renderCopyButton()}
|
|
65
|
+
</div>
|
|
66
|
+
`:a.nothing}renderFooter(){return this.variant===r.RESPONSE&&this.summariseMoreVisible?n.html`
|
|
67
|
+
<div class="md-card-ai-footer">
|
|
68
|
+
<md-button size="32" variant="ghost" outline @click=${this.summariseMoreToggled}>
|
|
69
|
+
<span slot="text">Summarise more</span>
|
|
70
|
+
</md-button>
|
|
71
|
+
</div>
|
|
72
|
+
`:a.nothing}render(){return n.html`
|
|
73
|
+
<div class="md-card-ai" id="${this.id}" part="card" tabindex="0">
|
|
74
|
+
${this.renderHeader()}
|
|
75
|
+
<div class="content-margin">${this.renderCardText()} ${this.renderFooter()}</div>
|
|
76
|
+
</div>
|
|
77
|
+
`}};c([(0,n.property)({type:String})],t.prototype,"id",void 0),c([(0,n.property)({type:String})],t.prototype,"title",void 0),c([(0,n.property)({type:String})],t.prototype,"cardText",void 0),c([(0,n.property)({type:String})],t.prototype,"timestamp",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"summariseMoreVisible",void 0),c([(0,n.property)({type:String})],t.prototype,"variant",void 0),c([(0,n.internalProperty)()],t.prototype,"copyChecked",void 0),c([(0,n.internalProperty)()],t.prototype,"thumbsUpChecked",void 0),c([(0,n.internalProperty)()],t.prototype,"thumbsDownChecked",void 0),t=c([(0,o.w)("md-card-ai")],t),e.ELEMENT=t}(s||(s={}))},97822:e=>{e.exports=s}},l={};function c(e){var t=l[e];if(void 0!==t)return t.exports;var i=l[e]={exports:{}};return m[e](i,i.exports,c),i.exports}c.m=m,a=[],c.O=(e,t,i,r)=>{if(!t){var s=1/0;for(m=0;m<a.length;m++){for(var[t,i,r]=a[m],o=!0,d=0;d<t.length;d++)(!1&r||s>=r)&&Object.keys(c.O).every((e=>c.O[e](t[d])))?t.splice(d--,1):(o=!1,r<s&&(s=r));if(o){a.splice(m--,1);var n=i();void 0!==n&&(e=n)}}return e}r=r||0;for(var m=a.length;m>0&&a[m-1][2]>r;m--)a[m]=a[m-1];a[m]=[t,i,r]},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var i in t)c.o(t,i)&&!c.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={4971:0};c.O.j=t=>0===e[t];var t=(t,i)=>{var r,s,[o,d,n]=i,a=0;if(o.some((t=>0!==e[t]))){for(r in d)c.o(d,r)&&(c.m[r]=d[r]);if(n)var m=n(c)}for(t&&t(i);a<o.length;a++)s=o[a],c.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return c.O(m)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var h=c.O(void 0,[7502,1890,6272,6325,6875,2176,6798,9813,1200,2576,8227],(()=>c(64311)));return c.O(h)})()));
|
package/dist/comp/md-card-ai.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
require("../
|
|
2
|
-
require("../chunks/md-0");
|
|
3
|
-
require("../chunks/md-1");
|
|
4
|
-
require("../chunks/md-2");
|
|
5
|
-
require("../chunks/md-5");
|
|
6
|
-
require("../chunks/md-7");
|
|
7
|
-
require("../chunks/md-9");
|
|
8
|
-
require("../chunks/md-58");
|
|
9
|
-
module.exports = require("../comp/md-card-ai-entry");
|
|
1
|
+
require("../7502"),require("../1890"),require("../6272"),require("../6325"),require("../6875"),require("../2176"),require("../6798"),require("../9813"),require("../1200"),require("../2576"),require("../8227"),module.exports=require("../comp/md-card-ai-entry");
|