@momentum-ui/web-components 3.0.0-beta.9 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/1013.js +1 -1
- package/dist/109.js +2 -2
- package/dist/1200.js +5 -5
- package/dist/1323.js +2 -2
- package/dist/1625.js +1 -1
- package/dist/2186.js +1 -1
- package/dist/2201.js +1 -1
- package/dist/2547.js +1 -1
- package/dist/2555.js +29 -10
- package/dist/4363.js +1 -1
- package/dist/4659.js +1 -1
- package/dist/5799.js +1 -1
- package/dist/5838.js +1 -1
- package/dist/6273.js +27 -19
- package/dist/6408.js +8 -7
- package/dist/679.js +1 -1
- package/dist/6865.js +1 -1
- package/dist/7292.js +1 -1
- package/dist/8028.js +1 -1
- package/dist/8033.js +1 -1
- package/dist/8161.js +1 -1
- package/dist/8227.js +1 -0
- package/dist/836.js +1 -1
- package/dist/8391.js +1 -1
- package/dist/8983.js +1 -0
- package/dist/9480.js +1 -1
- package/dist/assets/icons/svg/alphalink.svg +1 -1
- package/dist/assets/icons/svg/amazon-q-color.svg +1 -1
- package/dist/assets/icons/svg/apple-business-chat-color.svg +1 -1
- package/dist/assets/icons/svg/cisco-wordmark-finesse.svg +1 -0
- package/dist/assets/icons/svg/citynet-horizontal.svg +1 -1
- package/dist/assets/icons/svg/citynet-mark.svg +1 -1
- package/dist/assets/icons/svg/creative-direction-logo-dark-bw-horizontal.svg +1 -1
- package/dist/assets/icons/svg/creative-direction-logo-dark-bw-mark.svg +1 -1
- package/dist/assets/icons/svg/creative-direction-logo-dark-bw-vertical.svg +1 -1
- package/dist/assets/icons/svg/creative-direction-logo-dark-color-horizontal.svg +1 -1
- package/dist/assets/icons/svg/creative-direction-logo-dark-color-mark.svg +1 -1
- package/dist/assets/icons/svg/creative-direction-logo-dark-color-vertical.svg +1 -1
- package/dist/assets/icons/svg/creative-direction-logo-light-bw-horizontal.svg +1 -1
- package/dist/assets/icons/svg/creative-direction-logo-light-bw-mark.svg +1 -1
- package/dist/assets/icons/svg/creative-direction-logo-light-bw-vertical.svg +1 -1
- package/dist/assets/icons/svg/creative-direction-logo-light-color-horizontal.svg +1 -1
- package/dist/assets/icons/svg/creative-direction-logo-light-color-mark.svg +1 -1
- package/dist/assets/icons/svg/creative-direction-logo-light-color-vertical.svg +1 -1
- package/dist/assets/icons/svg/device-codec-pro-gtwo.svg +1994 -0
- package/dist/assets/icons/svg/device-deskphone-eighteightsevenfive.svg +598 -0
- package/dist/assets/icons/svg/device-deskphone-eighteightsixsix.svg +1226 -0
- package/dist/assets/icons/svg/device-deskpro.svg +125 -0
- package/dist/assets/icons/svg/device-generic-mobile.svg +12 -0
- package/dist/assets/icons/svg/device-phoenix.svg +3085 -0
- package/dist/assets/icons/svg/device-telepresence-dxeightzero.svg +36 -0
- package/dist/assets/icons/svg/device-telepresence-dxsevenzero.svg +44 -0
- package/dist/assets/icons/svg/device-telepresence-ixfivezerozerozero.svg +98 -0
- package/dist/assets/icons/svg/device-telepresence-mxeightzerozero-dual.svg +94 -0
- package/dist/assets/icons/svg/device-telepresence-mxeightzerozero-speakertrack.svg +81 -0
- package/dist/assets/icons/svg/device-telepresence-mxeightzerozero.svg +68 -0
- package/dist/assets/icons/svg/device-telepresence-mxsevenzerozero.svg +81 -0
- package/dist/assets/icons/svg/device-telepresence-mxtwozerozero-gtwo.svg +52 -0
- package/dist/assets/icons/svg/device-telepresence-sxeightzero.svg +37 -0
- package/dist/assets/icons/svg/device-telepresence-sxonezero.svg +57 -0
- package/dist/assets/icons/svg/device-thumbnails-deskphone-eighteightsevenfive.svg +598 -0
- package/dist/assets/icons/svg/device-thumbnails-deskphone-eighteightsixsix.svg +1226 -0
- package/dist/assets/icons/svg/device-thumbnails-deskpro.svg +125 -0
- package/dist/assets/icons/svg/device-thumbnails-generic-mobile.svg +12 -0
- package/dist/assets/icons/svg/device-thumbnails-phoenix.svg +3085 -0
- package/dist/assets/icons/svg/device-thumbnails-productfiveeight.svg +1994 -0
- package/dist/assets/icons/svg/device-thumbnails-telepresence-dxeightzero.svg +36 -0
- package/dist/assets/icons/svg/device-thumbnails-telepresence-dxsevenzero.svg +44 -0
- package/dist/assets/icons/svg/device-thumbnails-telepresence-ixfivezerozerozero.svg +98 -0
- package/dist/assets/icons/svg/device-thumbnails-telepresence-mxeightzerozero-dual.svg +94 -0
- package/dist/assets/icons/svg/device-thumbnails-telepresence-mxeightzerozero-speakertrack.svg +81 -0
- package/dist/assets/icons/svg/device-thumbnails-telepresence-mxeightzerozero.svg +68 -0
- package/dist/assets/icons/svg/device-thumbnails-telepresence-mxsevenzerozero.svg +81 -0
- package/dist/assets/icons/svg/device-thumbnails-telepresence-mxtwozerozero-gtwo.svg +52 -0
- package/dist/assets/icons/svg/device-thumbnails-telepresence-sxeightzero.svg +37 -0
- package/dist/assets/icons/svg/device-thumbnails-telepresence-sxonezero.svg +57 -0
- package/dist/assets/icons/svg/device-thumbnails-webex-board-fivefive.svg +75 -0
- package/dist/assets/icons/svg/device-thumbnails-webex-codec-plus.svg +21 -0
- package/dist/assets/icons/svg/device-thumbnails-webex-room-bar.svg +55 -0
- package/dist/assets/icons/svg/device-thumbnails-webex-room-fivefive.svg +85 -0
- package/dist/assets/icons/svg/device-thumbnails-webex-room-kit-mini.svg +58 -0
- package/dist/assets/icons/svg/device-thumbnails-webex-room-kit-plus.svg +72 -0
- package/dist/assets/icons/svg/device-thumbnails-webex-room-kit-psixzero.svg +162 -0
- package/dist/assets/icons/svg/device-thumbnails-webex-room-kit.svg +59 -0
- package/dist/assets/icons/svg/device-thumbnails-webex-room-sevenzero-dual.svg +64 -0
- package/dist/assets/icons/svg/device-thumbnails-webex-room-sevenzero.svg +64 -0
- package/dist/assets/icons/svg/device-thumbnails-webex-share-ninesix-with-spark.svg +86 -0
- package/dist/assets/icons/svg/device-thumbnails-webex-share-with-macbook.svg +181 -0
- package/dist/assets/icons/svg/device-thumbnails-webex-share.svg +98 -0
- package/dist/assets/icons/svg/device-webex-board-fivefive.svg +75 -0
- package/dist/assets/icons/svg/device-webex-codec-plus.svg +21 -0
- package/dist/assets/icons/svg/device-webex-room-bar.svg +55 -0
- package/dist/assets/icons/svg/device-webex-room-fivefive.svg +85 -0
- package/dist/assets/icons/svg/device-webex-room-kit-mini.svg +58 -0
- package/dist/assets/icons/svg/device-webex-room-kit-plus.svg +72 -0
- package/dist/assets/icons/svg/device-webex-room-kit-psixzero.svg +162 -0
- package/dist/assets/icons/svg/device-webex-room-kit.svg +59 -0
- package/dist/assets/icons/svg/device-webex-room-sevenzero-dual.svg +64 -0
- package/dist/assets/icons/svg/device-webex-room-sevenzero.svg +64 -0
- package/dist/assets/icons/svg/device-webex-share-ninesix-with-spark.svg +86 -0
- package/dist/assets/icons/svg/device-webex-share-with-macbook.svg +173 -0
- package/dist/assets/icons/svg/device-webex-share.svg +98 -0
- package/dist/assets/icons/svg/excelcom-horizontal.svg +1 -1
- package/dist/assets/icons/svg/excelcom-mark.svg +1 -1
- package/dist/assets/icons/svg/glean-color.svg +1 -1
- package/dist/assets/icons/svg/google-meet-color.svg +1 -1
- package/dist/assets/icons/svg/gradient-background-dark.svg +43 -0
- package/dist/assets/icons/svg/gradient-background-light.svg +22 -0
- package/dist/assets/icons/svg/iq-horizontal.svg +1 -0
- package/dist/assets/icons/svg/iq-mark.svg +1 -0
- package/dist/assets/icons/svg/jira-color.svg +1 -1
- package/dist/assets/icons/svg/momentum-design-logo-dark-bw-horizontal.svg +1 -1
- package/dist/assets/icons/svg/momentum-design-logo-dark-bw-mark.svg +1 -1
- package/dist/assets/icons/svg/momentum-design-logo-dark-bw-vertical.svg +1 -1
- package/dist/assets/icons/svg/momentum-design-logo-dark-color-horizontal.svg +1 -1
- package/dist/assets/icons/svg/momentum-design-logo-dark-color-mark.svg +1 -1
- package/dist/assets/icons/svg/momentum-design-logo-dark-color-vertical.svg +1 -1
- package/dist/assets/icons/svg/momentum-design-logo-light-bw-horizontal.svg +1 -1
- package/dist/assets/icons/svg/momentum-design-logo-light-bw-mark.svg +1 -1
- package/dist/assets/icons/svg/momentum-design-logo-light-bw-vertical.svg +1 -1
- package/dist/assets/icons/svg/momentum-design-logo-light-color-horizontal.svg +1 -1
- package/dist/assets/icons/svg/momentum-design-logo-light-color-mark.svg +1 -1
- package/dist/assets/icons/svg/momentum-design-logo-light-color-vertical.svg +1 -1
- package/dist/assets/icons/svg/ms-teams-color.svg +1 -1
- package/dist/assets/icons/svg/northland-horizontal.svg +1 -1
- package/dist/assets/icons/svg/northland-mark.svg +1 -1
- package/dist/assets/icons/svg/salesforce-color.svg +1 -1
- package/dist/assets/icons/svg/simple-background-dark.svg +3 -0
- package/dist/assets/icons/svg/simple-background-light.svg +3 -0
- package/dist/assets/icons/svg/slack-color.svg +1 -1
- package/dist/assets/icons/svg/social-alexa-bw.svg +1 -1
- package/dist/assets/icons/svg/social-alexa-color.svg +1 -1
- package/dist/assets/icons/svg/social-facebook-bw.svg +1 -1
- package/dist/assets/icons/svg/social-facebook-color.svg +1 -1
- package/dist/assets/icons/svg/social-fbmessenger-bw.svg +1 -1
- package/dist/assets/icons/svg/social-fbmessenger-color.svg +1 -1
- package/dist/assets/icons/svg/social-instagram.svg +1 -1
- package/dist/assets/icons/svg/social-line-bw.svg +1 -1
- package/dist/assets/icons/svg/social-line-color.svg +1 -1
- package/dist/assets/icons/svg/social-microsoft-bw.svg +1 -1
- package/dist/assets/icons/svg/social-microsoft-color.svg +1 -1
- package/dist/assets/icons/svg/social-rcs-bw.svg +1 -1
- package/dist/assets/icons/svg/social-rcs-color.svg +1 -1
- package/dist/assets/icons/svg/social-telegram-bw.svg +1 -1
- package/dist/assets/icons/svg/social-telegram-color.svg +1 -1
- package/dist/assets/icons/svg/social-viber-bw.svg +1 -1
- package/dist/assets/icons/svg/social-viber-color.svg +1 -1
- package/dist/assets/icons/svg/social-wechat-bw.svg +1 -1
- package/dist/assets/icons/svg/social-wechat-color.svg +1 -1
- package/dist/assets/icons/svg/social-whatsapp-bw.svg +1 -1
- package/dist/assets/icons/svg/social-whatsapp-color.svg +1 -1
- package/dist/assets/icons/svg/social-x.svg +1 -1
- package/dist/assets/icons/svg/swiftmatch-bw.svg +1 -1
- package/dist/assets/icons/svg/swiftmatch-color.svg +1 -1
- package/dist/assets/icons/svg/switchconnect-horizontal.svg +1 -1
- package/dist/assets/icons/svg/switchconnect-mark.svg +1 -1
- package/dist/assets/icons/svg/tata-tele-horizontal.svg +1 -0
- package/dist/assets/icons/svg/telesmart-horizontal.svg +1 -0
- package/dist/assets/icons/svg/telesmart-mark.svg +1 -0
- package/dist/assets/icons/svg/telus-horizontal.svg +1 -1
- package/dist/assets/icons/svg/telus-mark.svg +1 -1
- package/dist/assets/icons/svg/verizon-horizontal.svg +1 -1
- package/dist/assets/icons/svg/verizon-mark.svg +1 -1
- package/dist/assets/icons/svg/videotron-horizontal.svg +1 -1
- package/dist/assets/icons/svg/videotron-mark.svg +1 -1
- package/dist/assets/icons/svg/voiceflex-horizontal.svg +1 -0
- package/dist/assets/icons/svg/voiceflex-mark.svg +1 -0
- package/dist/assets/icons/svg/voicepilot-mark.svg +1 -0
- package/dist/assets/icons/svg/voxon-horizontal.svg +1 -1
- package/dist/assets/icons/svg/voxon-mark.svg +1 -1
- package/dist/assets/icons/svg/webex-app-icon-color-container.svg +1 -1
- package/dist/assets/icons/svg/webex-app-icon-meet-container.svg +1 -1
- package/dist/assets/icons/svg/webex-app-icon-play-container.svg +1 -1
- package/dist/assets/icons/svg/webex-app-icon-record-container.svg +1 -1
- package/dist/assets/icons/svg/webex-app-icon-wda-container.svg +1 -1
- package/dist/assets/icons/svg/webex-design-logo-dark-bw-gradient.svg +1 -1
- package/dist/assets/icons/svg/webex-design-logo-dark-bw-outline.svg +1 -1
- package/dist/assets/icons/svg/webex-design-logo-light-bw-gradient.svg +1 -1
- package/dist/assets/icons/svg/webex-design-logo-light-bw-outline.svg +1 -1
- package/dist/assets/icons/svg/webex-gradient-background-dark.svg +18 -0
- package/dist/assets/icons/svg/webex-gradient-background-light.svg +18 -0
- package/dist/assets/icons/svg/webex-graphic-element-graphic-four.svg +1 -1
- package/dist/assets/icons/svg/webex-graphic-element-graphic-one.svg +1 -1
- package/dist/assets/icons/svg/webex-graphic-element-graphic-three.svg +1 -1
- package/dist/assets/icons/svg/webex-graphic-element-wx-graphic.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-dark-bw-gradient-horizontal-bycisco.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-dark-bw-gradient-horizontal.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-dark-bw-gradient-vertical-bycisco.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-dark-bw-gradient-vertical.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-dark-bw-outline-horizontal-bycisco.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-dark-bw-outline-horizontal.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-dark-bw-outline-vertical-bycisco.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-dark-bw-outline-vertical.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-dark-color-gradient-horizontal-bycisco.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-dark-color-gradient-horizontal.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-dark-color-gradient-vertical-bycisco.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-dark-color-gradient-vertical.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-light-bw-gradient-horizontal-bycisco.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-light-bw-gradient-horizontal.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-light-bw-gradient-vertical-bycisco.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-light-bw-gradient-vertical.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-light-bw-outline-horizontal-bycisco.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-light-bw-outline-horizontal.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-light-bw-outline-vertical-bycisco.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-light-bw-outline-vertical.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-light-color-gradient-horizontal-bycisco.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-light-color-gradient-horizontal.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-light-color-gradient-vertical-bycisco.svg +1 -1
- package/dist/assets/icons/svg/webex-logo-lockup-light-color-gradient-vertical.svg +1 -1
- package/dist/assets/icons/svg/webex-partnership-logo-lockup-dark-apple.svg +1 -1
- package/dist/assets/icons/svg/webex-partnership-logo-lockup-dark-box.svg +1 -1
- package/dist/assets/icons/svg/webex-partnership-logo-lockup-dark-microsoft.svg +1 -1
- package/dist/assets/icons/svg/webex-partnership-logo-lockup-dark-ms-teams.svg +1 -1
- package/dist/assets/icons/svg/webex-partnership-logo-lockup-dark-okta.svg +1 -1
- package/dist/assets/icons/svg/webex-partnership-logo-lockup-light-apple.svg +1 -1
- package/dist/assets/icons/svg/webex-partnership-logo-lockup-light-box.svg +1 -1
- package/dist/assets/icons/svg/webex-partnership-logo-lockup-light-microsoft.svg +1 -1
- package/dist/assets/icons/svg/webex-partnership-logo-lockup-light-ms-teams.svg +1 -1
- package/dist/assets/icons/svg/webex-partnership-logo-lockup-light-okta.svg +1 -1
- package/dist/assets/icons/svg/webex-suite-icons-dark-color-gradient-events.svg +1 -1
- package/dist/assets/icons/svg/webex-suite-icons-dark-color-gradient-webex.svg +1 -1
- package/dist/assets/icons/svg/webex-suite-icons-light-color-gradient-events.svg +1 -1
- package/dist/assets/icons/svg/webex-suite-icons-light-color-gradient-webex.svg +1 -1
- package/dist/assets/icons/svg/webex-suite-wordmark-dark-campaign-management.svg +1 -1
- package/dist/assets/icons/svg/webex-suite-wordmark-dark-compliance-hub.svg +1 -0
- package/dist/assets/icons/svg/webex-suite-wordmark-dark-topic-analytics.svg +1 -0
- package/dist/assets/icons/svg/webex-suite-wordmark-dark-user-hub.svg +1 -1
- package/dist/assets/icons/svg/webex-suite-wordmark-light-campaign-management.svg +1 -1
- package/dist/assets/icons/svg/webex-suite-wordmark-light-compliance-hub.svg +1 -0
- package/dist/assets/icons/svg/webex-suite-wordmark-light-topic-analytics.svg +1 -0
- package/dist/assets/icons/svg/webex-suite-wordmark-light-user-hub.svg +1 -1
- package/dist/assets/icons/svg/webex-symbol-common-color-gradient.svg +1 -1
- package/dist/assets/icons/svg/webex-symbol-dark-bw-gradient.svg +1 -1
- package/dist/assets/icons/svg/webex-symbol-dark-bw-outline.svg +1 -1
- package/dist/assets/icons/svg/webex-symbol-light-bw-gradient.svg +1 -1
- package/dist/assets/icons/svg/webex-symbol-light-bw-outline.svg +1 -1
- package/dist/assets/icons/svg/webex-wordmark-dark-horizontal-bycisco.svg +1 -1
- package/dist/assets/icons/svg/webex-wordmark-dark-vertical-bycisco-center.svg +1 -1
- package/dist/assets/icons/svg/webex-wordmark-dark-vertical-bycisco-right.svg +1 -1
- package/dist/assets/icons/svg/webex-wordmark-light-horizontal-bycisco.svg +1 -1
- package/dist/assets/icons/svg/webex-wordmark-light-vertical-bycisco-center.svg +1 -1
- package/dist/assets/icons/svg/webex-wordmark-light-vertical-bycisco-right.svg +1 -1
- package/dist/assets/icons/svg/xtel-mark.svg +1 -1
- package/dist/assets/icons/svg/zoom-color.svg +1 -1
- package/dist/comp/md-accordion-item-entry.js +1 -1
- package/dist/comp/md-accordion-item.js +1 -1
- package/dist/comp/md-activity-button-entry.js +1 -1
- package/dist/comp/md-activity-button.js +1 -1
- package/dist/comp/md-advance-list-entry.js +4 -4
- package/dist/comp/md-alert-banner-entry.js +1 -1
- package/dist/comp/md-alert-banner.js +1 -1
- package/dist/comp/md-alert-entry.js +4 -4
- package/dist/comp/md-alert.js +1 -1
- package/dist/comp/md-audio-player-entry.js +1 -1
- package/dist/comp/md-audio-player.js +1 -1
- package/dist/comp/md-avatar-entry.js +3 -3
- package/dist/comp/md-avatar.js +1 -1
- package/dist/comp/md-button-group-entry.js +2 -2
- package/dist/comp/md-card-ai-entry.js +1 -1
- package/dist/comp/md-card-ai.js +1 -1
- package/dist/comp/md-card-entry.js +3 -3
- package/dist/comp/md-card-v2-entry.js +1 -1
- package/dist/comp/md-card-v2.js +1 -1
- package/dist/comp/md-card.js +1 -1
- package/dist/comp/md-chat-message-entry.js +1 -1
- package/dist/comp/md-chat-message.js +1 -1
- package/dist/comp/md-checkbox-entry.js +1 -1
- package/dist/comp/md-checkbox.js +1 -1
- package/dist/comp/md-chip-entry.js +9 -9
- package/dist/comp/md-coachmark-popover-entry.js +1 -1
- package/dist/comp/md-coachmark-popover.js +1 -1
- package/dist/comp/md-combobox-entry.js +2 -2
- package/dist/comp/md-combobox.js +1 -1
- package/dist/comp/md-country-code-picker-entry.js +3 -3
- package/dist/comp/md-country-code-picker.js +1 -1
- package/dist/comp/md-date-range-picker-entry.js +1 -1
- package/dist/comp/md-date-range-picker.js +1 -1
- package/dist/comp/md-date-time-picker-entry.js +1 -1
- package/dist/comp/md-date-time-picker.js +1 -1
- package/dist/comp/md-datepicker-calendar-entry.js +33 -14
- package/dist/comp/md-datepicker-calendar.js +1 -1
- package/dist/comp/md-datepicker-day-entry.js +1 -1
- package/dist/comp/md-datepicker-entry.js +27 -19
- package/dist/comp/md-datepicker-month-entry.js +1 -1
- package/dist/comp/md-datepicker-week-entry.js +1 -1
- package/dist/comp/md-datepicker.js +1 -1
- package/dist/comp/md-dropdown-entry.js +1 -1
- package/dist/comp/md-dropdown.js +1 -1
- package/dist/comp/md-editable-field-entry.js +1 -1
- package/dist/comp/md-editable-field.js +1 -1
- package/dist/comp/md-favorite-entry.js +1 -1
- package/dist/comp/md-favorite.js +1 -1
- package/dist/comp/md-floating-minimize-entry.js +1 -1
- package/dist/comp/md-floating-minimize.js +1 -1
- package/dist/comp/md-floating-modal-entry.js +1 -1
- package/dist/comp/md-floating-modal.js +1 -1
- package/dist/comp/md-grabber-entry.js +1 -1
- package/dist/comp/md-grabber.js +1 -1
- package/dist/comp/md-help-text-entry.js +1 -1
- package/dist/comp/md-icon-entry.js +5 -5
- package/dist/comp/md-icon.js +1 -1
- package/dist/comp/md-inpu.js +1 -1
- package/dist/comp/md-input-entry.js +8 -7
- package/dist/comp/md-input-file.js +2 -2
- package/dist/comp/md-input.js +1 -1
- package/dist/comp/md-list-entry.js +1 -1
- package/dist/comp/md-list-item-entry.js +3 -3
- package/dist/comp/md-meeting-alert-entry.js +1 -1
- package/dist/comp/md-meeting-alert.js +1 -1
- package/dist/comp/md-menu-overlay-entry.js +2 -2
- package/dist/comp/md-modal-entry.js +1 -1
- package/dist/comp/md-modal.js +1 -1
- package/dist/comp/md-pagination-entry.js +1 -1
- package/dist/comp/md-pagination.js +1 -1
- package/dist/comp/md-phone-input-entry.js +3 -3
- package/dist/comp/md-phone-input.js +1 -1
- package/dist/comp/md-popover-entry.js +1 -1
- package/dist/comp/md-popover.js +1 -1
- package/dist/comp/md-presence-entry.js +1 -1
- package/dist/comp/md-presence.js +1 -1
- package/dist/comp/md-radio-entry.js +36 -21
- package/dist/comp/md-table-advanced-entry.js +1 -1
- package/dist/comp/md-table-advanced.js +1 -1
- package/dist/comp/md-table-entry.js +1 -1
- package/dist/comp/md-table.js +1 -1
- package/dist/comp/md-tabs-entry.js +11 -12
- package/dist/comp/md-tabs.js +1 -1
- package/dist/comp/md-task-item-entry.js +6 -7
- package/dist/comp/md-task-item.js +1 -1
- package/dist/comp/md-timepicker-entry.js +1 -1
- package/dist/comp/md-timepicker.js +1 -1
- package/dist/index-entry.js +239 -206
- package/dist/index.js +1 -1
- package/dist/types/components/avatar/Avatar.constants.d.ts +1 -1
- package/dist/types/components/button-group/ButtonGroup.d.ts +1 -0
- package/dist/types/components/chip/Chip.d.ts +3 -5
- package/dist/types/components/country-code-picker/CountryCodePicker.d.ts +1 -0
- package/dist/types/components/datepicker/DatePicker.d.ts +4 -0
- package/dist/types/components/datepicker/datepicker-calendar/DatePickerCalendar.d.ts +10 -1
- package/dist/types/components/form/FormArray.d.ts +6 -1
- package/dist/types/components/form/FormControl.d.ts +3 -0
- package/dist/types/components/form/index.d.ts +1 -0
- package/dist/types/components/form/validators.array.d.ts +12 -0
- package/dist/types/components/form/validators.d.ts +1 -0
- package/dist/types/components/icon/Icon.d.ts +1 -1
- package/dist/types/components/input/Input.d.ts +2 -2
- package/dist/types/components/list/ListItem.d.ts +1 -1
- package/dist/types/components/menu-overlay/MenuOverlay.d.ts +1 -0
- package/dist/types/components/radio/Radio.d.ts +5 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/1873.js +0 -2
- package/dist/1873.js.LICENSE.txt +0 -11
- package/dist/4765.js +0 -2
- package/dist/4765.js.LICENSE.txt +0 -5
- package/dist/674.js +0 -1
- package/dist/6752.js +0 -2
- package/dist/6752.js.LICENSE.txt +0 -5
- package/dist/8493.js +0 -1
- package/dist/chunks/md-1352.js +0 -1
- package/dist/chunks/md-4321.js +0 -1
- package/dist/chunks/md-8891.js +0 -1
package/dist/index-entry.js
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
${this.checkboxBoxTemplate()}
|
|
28
28
|
<slot></slot>
|
|
29
29
|
</label>
|
|
30
|
-
`}};c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"checked",null),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"indeterminate",null),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),c([(0,d.property)({type:String})],e.prototype,"label",void 0),c([(0,d.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([(0,d.query)(".checkbox-input")],e.prototype,"input",void 0),e=c([(0,a.w)("md-checkbox")],e),t.ELEMENT=e}(o||(o={}))},4863:t=>{t.exports=y},4893:t=>{t.exports=O},4928:(t,e,i)=>{i.d(e,{ComboBox:()=>o}),i(20109),i(61200);var o,s=i(90195),r=i(3001),a=i(31890),n=i(66677),l=i(4313),d=i(87161),h=i(70429),c=i(85125),p=i(20291),u=i(58175),m=i(10318),v=i(97103),y=i(79270),b=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},g=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function n(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((o=o.apply(t,e||[])).next())})};!function(t){class e{determineMessageType(t){return t.reduce((t,e)=>"error"===e?t:e.type,"")}filterMessagesByType(t,e){return t.reduce((t,i)=>i.type===e?t.concat(i.message):t,[])}}t.MessageController=e;let i=class extends((0,r.yC)(d.LitElement)){constructor(){super(...arguments),this._focusedIndex=-1,this._focusedGroupIndex=-1,this.label="Options",this.options=[],this.customOptions=[],this.placeholder="",this.isMulti=!1,this.useVirtualScroll=!1,this.disabled=!1,this.ordered=!1,this.expanded=!1,this.groupExpandedList=[],this.searchItem=!1,this.compact=!1,this.noClearIcon=!1,this.selectWhenInFocus=!1,this.selectedOptions=[],this.visibleOptions=8,this.optionId="",this.optionValue="",this.isCustomContent=!1,this.searchable=!1,this.shape="none",this.value=[],this.inputValue="",this.allowCustomValue=!1,this.autofocus=!1,this.resultsTextLocalization="No Results",this.optionsTextLocalization="No Options",this.trimSpace=!1,this.invalid=!1,this.invalidText="",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForComboBox="",this.clearAriaLabel="Clear",this.arrowAriaLabel="Expand",this.clearIconHeight="auto",this.allTextLocalization="All",this.selectAllTextLocalization="Select All",this.selectedTextLocalization="Selected",this.allowSelectAll=!1,this.showCustomError=!1,this.showLoader=!1,this.showSelectedCount=!1,this.popupChevronAriaHidden="true",this.newMomentum=!1,this.showFilterIcon=!1,this.preventFilter=!1,this.isDropdownArrow=!1,this.comboboxId="",this.helpText="",this.messageArr=[],this.htmlId="",this.readOnly=!1,this.messageController=new e,this.isOptGroup=!1,this.isSelectAllChecked=!1,this.multiSelectedIndex=-1,this.multiSelected=[],this.customContent=[],this.notifySelectedChange=(0,n.sg)(t=>{this.dispatchEvent(new CustomEvent("change-selected",{composed:!0,bubbles:!0,detail:t}))},0),this.handleGroupFilter=t=>{const e=t.filter(t=>{if("string"!=typeof t&&"true"===t.isLabel)return t.groupName});return this.searchItem=!0,this.groupExpandedList=e.map(t=>{if("string"!=typeof t)return t.groupName}),t.filter(e=>"string"==typeof e||"true"!==e.isLabel||!!t.find(t=>{if("string"!=typeof e&&"string"!=typeof t)return e.groupName===t.groupName&&"false"===t.isLabel}))},this.notifyInputValueChanged=(0,n.sg)(t=>{this.dispatchEvent(new CustomEvent("combobox-input",{composed:!0,bubbles:!0,detail:{value:t}})),this.notifySearchResultCount(),this.focusedGroupIndex=0,requestAnimationFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1})},250),this.handleOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||(this.setVisualListbox(!1),this.unselectedAllMultiTag()))}}get focusedIndex(){return this._focusedIndex}set focusedIndex(t){this.updateFocusedIndex(t)}updateFocusedIndex(t){var e,i,o,s;const r=this._focusedIndex;if(this.checkForVirtualScroll()){let r;r=this.allowSelectAll?0===t?"selectAll":this.getOptionId(this.filteredOptions[t-1]):this.getOptionId(this.filteredOptions[t]);const a=this.lists?null===(e=[...this.lists])||void 0===e?void 0:e.find(t=>0!==t.offsetHeight&&t.id===r):"";this.lists&&[...this.lists].forEach(t=>{t.toggleAttribute("focused",!1)}),a&&(null==a||a.toggleAttribute("focused",!0));const n=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector("lit-virtualizer");n&&(-1===t?null===(o=n.element(t))||void 0===o||o.scrollIntoView({block:"start"}):null===(s=n.element(t))||void 0===s||s.scrollIntoView({block:"center"}))}else if(this.lists){const e=this.lists[r];e&&e.toggleAttribute("focused",!1);const i=this.lists[t];i&&i.toggleAttribute("focused",!0)}this._focusedIndex=t,this.requestUpdate("focusedIndex",r)}get focusedGroupIndex(){return this._focusedGroupIndex}set focusedGroupIndex(t){const e=this._focusedGroupIndex;if(this.labels&&0!==this.labels.length){const i=this.labels[e];i&&i.toggleAttribute("focused",!1);const o=this.labels[t];o&&(o.toggleAttribute("focused",!0),o.focus())}this._focusedGroupIndex=t,this.requestUpdate("focusedGroupIndex",e)}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}notifySearchResultCount(){if(this.searchResultAriaLabel){const t=/{{.*?}}/g;this.ariaLabelForComboBox=this.searchResultAriaLabel.replace(t,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForComboBox=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForComboBox=`ComboBox Element, ${this.filteredOptions.length} results found.`}firstUpdated(t){this.ariaLabelForComboBox=this.ariaLabel?this.ariaLabel:"ComboBox Element",super.firstUpdated(t),this.isCustomContent&&(this.optionId="id",this.optionValue="value",this.setOptionCustomContent()),this.setInitialValue()}updated(t){super.updated(t),t.has("expanded")&&(this.expanded?(this.resizeListbox(),this.checkSelectedOptions()):this.unCheckAllOptions()),t.has("focusedIndex")&&this.focusedIndex>=0&&(this.checkForVirtualScroll()||this.scrollToOption()),t.has("value")&&0===this.selectedOptions.length&&this.setInitialValue(),t.has("options")&&this.expanded&&this.checkForVirtualScroll()&&this.updateOnNextFrame(()=>{this.resizeListbox()}),t.has("customOptions")&&this.isCustomContent&&(this.setOptionCustomContent(),this.resizeListbox()),t.has("showCustomError")&&this.resizeListbox(),t.has("showLoader")&&this.resizeListbox(),t.has("searchItem")&&this.resizeListbox()}handleFocusIn(t){var e;this.disabled&&!this.readOnly||(this.noClearIcon&&(requestAnimationFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1}),this.selectWhenInFocus&&this.input.select()),null===(e=super.handleFocusIn)||void 0===e||e.call(this,t)),this.dispatchEvent(new CustomEvent("combobox-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){var e;null===(e=super.handleFocusOut)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("combobox-focus-out",{composed:!0,bubbles:!0}))}findFilteredOption(t){return this.isOptionObject(t)?this.filteredOptions.findIndex(e=>this.getOptionId(e)===this.getOptionId(t)&&this.getOptionValue(e)===this.getOptionValue(t)):this.filteredOptions.indexOf(t)}setInitialValue(){var t;if(this.value.length)if(this.isMulti)this.value.forEach(t=>{-1!==this.findFilteredOption(t)&&this.setSelectedOption(t)});else{const e=this.value[0],i=this.findFilteredOption(e);-1!==i&&(this.setSelectedOption(e),this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedIndex=i,this.focusedGroupIndex=-1)}}isOptionObject(t){return"object"==typeof t&&null!==t}setOptionCustomContent(){if(this.isOptGroup){const t=[...this.querySelectorAll("optgroup")],e=[];for(const i of t){const t=i.getAttribute("label"),o=[...i.querySelectorAll("[slot]")];e.push({isLabel:"true",[this.optionValue]:t,groupName:t});for(const i of o){const o=i.getAttribute("aria-label"),s=i.getAttribute("display-value"),r=i.getAttribute("slot");o&&s&&e.push({[this.optionId]:o,[this.optionValue]:s,isLabel:"false",groupName:t,slot:r})}}this.options=e}else this.customContent=[...this.querySelectorAll("[slot]")],this.customContent&&this.customContent.length?this.options=this.customContent.map(t=>{const e=t.getAttribute("aria-label"),i=t.getAttribute("display-value");if(e&&i)return{[this.optionId]:e,[this.optionValue]:i}}):this.options=[]}getOptionValue(t){return this.isOptionObject(t)?t[this.optionValue]:t}getOptionGroupName(t){return null==t?void 0:t.groupName}getOptionId(t){return this.isOptionObject(t)?t[this.optionId]:t}getFocusedItem(t){if(t>=0)return this.filteredOptions[t]}setupEvents(){document.addEventListener("click",this.handleOutsideClick),this.addEventListener("remove-all-selected",this.removeAllSelected),this.addEventListener("selected-changed",this.selectedChange)}teardownEvents(){document.removeEventListener("click",this.handleOutsideClick),this.removeEventListener("remove-all-selected",this.removeAllSelected),this.removeEventListener("selected-changed",this.selectedChange)}setVisualListbox(t){this.expanded=t}setGroupList(t){this.groupExpandedList.includes(t)?(this.groupExpandedList.splice(this.groupExpandedList.indexOf(t),1),this.groupExpandedList=[...this.groupExpandedList]):this.searchItem?this.groupExpandedList.push(t):this.groupExpandedList=[t]}findSelectedOption(t){return this.optionId&&t?this.selectedOptions.findIndex(e=>e&&e[this.optionId]===t[this.optionId]):this.selectedOptions.indexOf(t)}findOptionIndex(t){const e=t.composedPath();if(this.checkForVirtualScroll()){let t="";return[...this.lists].forEach(i=>{e.includes(i)&&(t=i.id)}),this.filteredOptions.findIndex(e=>this.getOptionId(e)===t)}return[...this.lists].findIndex(t=>e.includes(t))}checkSelectedOptions(){if(this.checkForVirtualScroll()){const t=this.selectedOptions.map(t=>this.getOptionId(t)),e=[...this.lists].filter(t=>"selectAll"!==t.id);null==e||e.forEach(e=>{t.includes(e.id)?(this.isMulti&&(null==e||e.setAttribute("aria-checked","true")),null==e||e.setAttribute("aria-selected","true")):this.isMulti&&(null==e||e.setAttribute("aria-checked","false"))})}}unCheckAllOptions(){var t;this.checkForVirtualScroll()&&this.isMulti&&(null===(t=[...this.lists])||void 0===t||t.forEach(t=>{"selectAll"!==(null==t?void 0:t.id)&&(null==t||t.setAttribute("aria-checked","false"))}))}setSelectedOption(t){this.isMulti||(this.selectedOptions=[]);const e=this.findSelectedOption(t);if(-1!==e){const t=this.selectedOptions[e];this.selectedOptions.splice(e,1),this.notifySelectedChange({value:t,selected:this.selectedOptions})}else this.selectedOptions.push(t),this.notifySelectedChange({value:t,selected:this.selectedOptions});this.checkSelectedOptions(),this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()),this.requestUpdate()}filterOptions(t){if(this.preventFilter)return this.searchItem=!1,this.options;if(t&&t.length){const e=this.options.filter(e=>this.isOptGroup&&"string"!=typeof e&&"true"===e.isLabel?e:(this.isCustomContent?this.getOptionId(e):this.getOptionValue(e)).toLowerCase().includes(t.toLowerCase()));return this.isOptGroup?this.handleGroupFilter(e):e}return this.searchItem=!1,this.options}getListBoxVerticalPadding(){if(this.listBox){const t=window.getComputedStyle(this.listBox,null),e=parseInt(t.getPropertyValue("padding-top"))+parseInt(t.getPropertyValue("padding-bottom"));if(!isNaN(e))return e+2}return 10}resizeListbox(){this.updateOnNextFrame(()=>{var t;let e=0,i=0,o=0;const s=this.getListBoxVerticalPadding();if(this.lists){const t=this.checkForVirtualScroll()?[...this.lists].filter(t=>0!==t.offsetHeight):[...this.lists];e=t.slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0),o=this.checkForVirtualScroll()&&this.allowSelectAll?t.slice(1,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0):t.slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0)}if(this.labels&&(i=[...this.labels].slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0)),this.listBox&&(this.listBox.style.maxHeight=`${e+i+s}px`),this.virtualizer&&(this.virtualizer.style.height=`${o+s}px`),this.showCustomError||this.showLoader){const e=null===(t=this.listBox)||void 0===t?void 0:t.querySelector("[slot]");this.listBox&&e&&(this.listBox.style.height=`${e.clientHeight+s}px`,this.listBox.style.maxHeight=`${e.clientHeight+s}px`)}})}setInputValue(t=""){this.input.value=t}updateOnNextFrame(t){requestAnimationFrame(t)}unCheckedAllOptions(){this.isMulti&&(this.lists.forEach((t,e)=>this.unCheckedOption(e)),this.isSelectAllChecked=!1)}unCheckedOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","false"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}checkAllOptions(){this.isMulti&&this.lists.forEach((t,e)=>this.checkOption(e))}checkOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","true"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}isSelectAllSelected(){return this.selectedOptions.length===this.options.length}setFocusOnHost(t){this.setFocus&&this.setFocus(t)}isOptionFocused(t){return this.focusedIndex===t}getAriaState(t){return this.isOptionFocused(t)}scrollToOption(){var t,e;let i=0;const{top:o,bottom:s}=this.listBox.getBoundingClientRect(),r=this.lists[this.focusedIndex],a=null===(t=this.lists[this.focusedIndex+1]||r)||void 0===t?void 0:t.getBoundingClientRect(),n=null===(e=this.lists[this.focusedIndex-1]||r)||void 0===e?void 0:e.getBoundingClientRect();(null==a?void 0:a.bottom)>s?i=a.bottom-s+2:(null==n?void 0:n.top)<o&&(i=n.top-o-2),this.updateOnNextFrame(()=>{this.listBox.scrollTop+=i})}getCustomContentName(t){const e=this.options.indexOf(t);if(this.isOptGroup){const t=this.options[e];if(t&&"string"!=typeof t)return t.slot}else if(-1!==e)return this.customContent[e].slot}setInputSelectionRange(t,e){this.input.setSelectionRange(t,e)}isOptionChecked(t){return-1!==this.findSelectedOption(t)?"true":"false"}getInputSelection(){return this.input.selectionStart}canMultiSelect(){return 0===this.getInputSelection()&&0!==this.selectedOptions.length&&this.isMulti}removeMultiTag(){this.selected&&this.multiSelected.forEach(t=>{const e=this.selected[t];e&&e.hasAttribute("selected")&&this.removeSelected(this.selectedOptions[t])})}unselectedAllMultiTag(){this.selected&&this.selected.forEach(t=>t.removeAttribute("selected")),this.multiSelectedIndex=-1}findLastMultiSelected(){return this.selected[this.multiSelectedIndex]}toggleMultiSelectedTag(t,e){t&&t.toggleAttribute("selected",e)}selectMultiTag(t){if(this.canMultiSelect()){if(!t){this.multiSelected=[];const t=this.findLastMultiSelected();this.toggleMultiSelectedTag(t,!1)}this.multiSelectedIndex<=0?this.multiSelectedIndex=this.selectedOptions.length-1:this.multiSelectedIndex--,this.multiSelected.push(this.multiSelectedIndex);const e=this.findLastMultiSelected();this.toggleMultiSelectedTag(e,!0)}}handleListClick(t){return g(this,void 0,void 0,function*(){this.dispatchEvent(new CustomEvent("selected-changed",{detail:{event:t}})),yield this.updateComplete,this.isMulti?this.setVisualListbox(!0):this.setVisualListbox(!1),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1})})}handleSelectAll(){return g(this,void 0,void 0,function*(){this.isSelectAllChecked=!this.isSelectAllChecked,this.isSelectAllChecked?(this.selectedOptions=[...this.options],this.checkAllOptions()):(this.selectedOptions=[],this.unCheckedAllOptions()),yield this.updateComplete,this.setVisualListbox(!0),this.notifySelectedChange({selected:this.selectedOptions})})}handleInputKeyUp(t){switch(t.code){case s.Uz.Escape:break;case s.Uz.Backspace:this.setFocusOnHost(!0),this.setVisualListbox(!0),this.resizeListbox(),this.removeMultiTag();break;case s.Uz.ArrowLeft:this.isMulti&&(t.shiftKey?this.selectMultiTag(!0):this.selectMultiTag(!1));break;default:this.isMulti&&this.unselectedAllMultiTag()}}handleInput(t){const e=t.target.value;this.inputValue=e.trim(),this.notifyInputValueChanged(e.trim())}removeAllSelected(){var t;this.focusedIndex=-1,this.focusedGroupIndex=-1,this.selectedOptions=[],this.inputValue="",this.setInputValue(),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.unCheckedAllOptions(),this.setSelectedAttribute(void 0),this.updateOnNextFrame(()=>{this.input.focus()}),this.notifySelectedChange({selected:this.selectedOptions})}removeSelected(t){const e=this.findSelectedOption(t),i=this.filteredOptions.indexOf(t);-1!==i&&this.unCheckedOption(i),-1!==e&&(this.selectedOptions.splice(e,1),this.requestUpdate()),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1})}selectedChange(t){var e;const{event:i}=t.detail;let o=this.findOptionIndex(i);if(-1!==o){this.focusedIndex=this.allowSelectAll&&this.checkForVirtualScroll()?o+1:o,this.isMulti&&this.allowSelectAll&&!this.checkForVirtualScroll()&&(o-=1);const t=this.getFocusedItem(o);this.setSelectedAttribute(t),t&&(this.setSelectedOption(t),this.isMulti?this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()):(this.setInputValue(this.getOptionValue(t)),null===(e=this.input)||void 0===e||e.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(t))))}}setSelectedAttribute(t){var e;let i="";t&&(i=this.getOptionId(t)),null===(e=this.lists)||void 0===e||e.forEach((t,e)=>{(null==t?void 0:t.id)===i?null==t||t.setAttribute("selected","true"):null==t||t.setAttribute("selected","false")})}shouldChangeButton(){const t=this.input&&this.input.value.length>0&&!this.noClearIcon||this.isMulti&&this.selectedOptions.length&&!this.noClearIcon;return t&&document.dispatchEvent(new CustomEvent("on-widget-update")),t}setCustomValue(){this.optionId||this.optionValue||(this.options=[...this.options,this.inputValue],this.setSelectedOption(this.inputValue),this.isMulti||this.updateOnNextFrame(()=>{var t;this.focusedIndex=this.filteredOptions.length-1;const e=this.getFocusedItem(this.focusedIndex);e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)))}),this.dispatchEvent(new CustomEvent("custom-value-add",{composed:!0,bubbles:!0,detail:{value:this.inputValue}}))),this.inputValue=""}handleGroupFocus(){this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.filteredGroupOptions.length>0&&-1===this.focusedGroupIndex&&(this.focusedGroupIndex=this.filteredGroupOptions.findIndex(t=>"string"!=typeof t&&t.groupName===this.groupExpandedList[0])),this.updateOnNextFrame(()=>{-1===this.focusedGroupIndex||!this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length-1||this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length?this.focusedGroupIndex=0:this.focusedGroupIndex++}),this.focusedIndex=-1}handleInputKeyDown(t){var e,i;switch(t.code){case s.Uz.Backspace:this.focusedIndex=-1;break;case s.Uz.Tab:case s.Uz.Enter:if(this.setFocusOnHost(!0),this.expanded&&this.updateOnNextFrame(()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);this.allowCustomValue&&this.input&&this.input.value.length&&-1===this.findFilteredOption(this.inputValue)?this.setCustomValue():(e&&(this.setSelectedAttribute(e),this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll())}),this.setVisualListbox(!1),t.code===s.Uz.Tab&&this.isMulti)return;break;case s.Uz.ArrowDown:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame(()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1});break;case s.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame(()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedGroupIndex=-1)});break;case s.Uz.ArrowLeft:case s.Uz.ArrowRight:t.stopPropagation();break;case s.Uz.Escape:this.setFocusOnHost(!0),this.expanded?(t.stopPropagation(),this.setVisualListbox(!1)):(this.setInputValue(),null===(e=this.input)||void 0===e||e.setAttribute(s.iw.AriaActivedescendant,""),this.focusedIndex=-1,this.focusedGroupIndex=-1,this.removeAllSelected(),this.setSelectedAttribute(void 0));break;case s.Uz.Home:this.setInputSelectionRange(0,0);break;case s.Uz.End:{const{length:t}=this.inputValue;this.setInputSelectionRange(t,t)}break;case s.Uz.Space:if(this.isMulti&&this.expanded){t.preventDefault();const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.setSelectedAttribute(e),this.showSelectedCount||(this.setInputValue(),null===(i=this.input)||void 0===i||i.setAttribute(s.iw.AriaActivedescendant,""))),0===this.focusedIndex&&this.allowSelectAll&&this.handleSelectAll()}this.expanded=!0}}handleGroupLabelKeyDown(t,e){switch(t.code){case s.Uz.Tab:this.handleGroupFocus();break;case s.Uz.Enter:case s.Uz.Space:-1!==this.focusedGroupIndex?this.toggleGroupListBox(t,e.value):(this.setFocusOnHost(!0),this.setVisualListbox(!1),this.updateOnNextFrame(()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1}))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll()}));break;case s.Uz.ArrowDown:if(0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame(()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1});break;case s.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame(()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)))});break;case s.Uz.Escape:this.focusedGroupIndex=-1,this.setVisualListbox(!1),this.setFocusOnHost(!0),this.input.focus();break;default:this.setVisualListbox(!0)}}toggleVisualListBox(t){var e,i;if(!this.readOnly){if(t.target.classList.contains("md-combobox-listbox"))t.target.focus();else if("md-icon"===t.target.localName){const o=null===(i=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.parentElement;if(o){const t=o.querySelector(".md-combobox-listbox");(0,v.setTimeout)(()=>{t.focus()},10)}}this.expanded?this.setVisualListbox(!1):(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.setVisualListbox(!0)),this.input.focus(),this.setGroupList(""),this.focusedGroupIndex=-1}}toggleGroupListBox(t,e){t.stopPropagation(),this.focusedGroupIndex=this.filteredGroupOptions.findIndex(t=>"string"!=typeof t&&t.groupName===e),this.setGroupList(e),this.resizeListbox()}handleRemoveAll(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}connectedCallback(){super.connectedCallback(),this.setupEvents(),this.querySelector("optgroup")&&(this.isOptGroup=!0)}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}static get styles(){return[l.A,y.A]}get listItemOptionMap(){return{"md-combobox-multiselect":this.isMulti,compact:this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}get filteredOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter(t=>!this.isOptGroup||("string"!=typeof t&&this.groupExpandedList.includes(this.getOptionGroupName(t))?"false"===t.isLabel:void 0))}get filteredGroupOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter(t=>!this.isOptGroup||("string"!=typeof t?"true"===t.isLabel:void 0))}get comboBoxTemplateClassMap(){return{[`md-combobox--${this.shape}`]:!!this.shape,"md-combobox-searchable":this.searchable,"md-combobox-has-leading-icon":this.searchable||this.showFilterIcon,"md-new-combobox":this.newMomentum,[`md-${this.messageType}`]:!!this.messageType,"md-combobox-readonly":this.readOnly,"md-combobox-compact":this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}searchIconTemplate(){return this.leadingIconTemplate("search-bold","search-icon")}filterIconTemplate(){return this.leadingIconTemplate("filter-bold","filter-icon")}leadingIconTemplate(t,e){return d.html`
|
|
30
|
+
`}};c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"checked",null),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"indeterminate",null),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),c([(0,d.property)({type:String})],e.prototype,"label",void 0),c([(0,d.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([(0,d.query)(".checkbox-input")],e.prototype,"input",void 0),e=c([(0,a.w)("md-checkbox")],e),t.ELEMENT=e}(o||(o={}))},4863:t=>{t.exports=y},4893:t=>{t.exports=O},4928:(t,e,i)=>{i.d(e,{ComboBox:()=>o}),i(20109),i(61200);var o,s=i(90195),r=i(3001),a=i(31890),n=i(66677),l=i(4313),d=i(87161),h=i(70429),c=i(85125),p=i(20291),u=i(58175),m=i(10318),v=i(97103),y=i(79270),b=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},g=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function n(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((o=o.apply(t,e||[])).next())})};!function(t){class e{determineMessageType(t){return t.reduce((t,e)=>"error"===e?t:e.type,"")}filterMessagesByType(t,e){return t.reduce((t,i)=>i.type===e?t.concat(i.message):t,[])}}t.MessageController=e;let i=class extends((0,r.yC)(d.LitElement)){constructor(){super(...arguments),this._focusedIndex=-1,this._focusedGroupIndex=-1,this.label="Options",this.options=[],this.customOptions=[],this.placeholder="",this.isMulti=!1,this.useVirtualScroll=!1,this.disabled=!1,this.ordered=!1,this.expanded=!1,this.groupExpandedList=[],this.searchItem=!1,this.compact=!1,this.noClearIcon=!1,this.selectWhenInFocus=!1,this.selectedOptions=[],this.visibleOptions=8,this.optionId="",this.optionValue="",this.isCustomContent=!1,this.searchable=!1,this.shape="none",this.value=[],this.inputValue="",this.allowCustomValue=!1,this.autofocus=!1,this.resultsTextLocalization="No Results",this.optionsTextLocalization="No Options",this.trimSpace=!1,this.invalid=!1,this.invalidText="",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForComboBox="",this.clearAriaLabel="Clear",this.arrowAriaLabel="Expand",this.clearIconHeight="auto",this.allTextLocalization="All",this.selectAllTextLocalization="Select All",this.selectedTextLocalization="Selected",this.allowSelectAll=!1,this.showCustomError=!1,this.showLoader=!1,this.showSelectedCount=!1,this.popupChevronAriaHidden="true",this.newMomentum=!1,this.showFilterIcon=!1,this.preventFilter=!1,this.isDropdownArrow=!1,this.comboboxId="",this.helpText="",this.messageArr=[],this.htmlId="",this.readOnly=!1,this.messageController=new e,this.isOptGroup=!1,this.isSelectAllChecked=!1,this.multiSelectedIndex=-1,this.multiSelected=[],this.customContent=[],this.notifySelectedChange=(0,n.sg)(t=>{this.dispatchEvent(new CustomEvent("change-selected",{composed:!0,bubbles:!0,detail:t}))},0),this.handleGroupFilter=t=>{const e=t.filter(t=>{if("string"!=typeof t&&"true"===t.isLabel)return t.groupName});return this.searchItem=!0,this.groupExpandedList=e.map(t=>{if("string"!=typeof t)return t.groupName}),t.filter(e=>"string"==typeof e||"true"!==e.isLabel||!!t.find(t=>{if("string"!=typeof e&&"string"!=typeof t)return e.groupName===t.groupName&&"false"===t.isLabel}))},this.notifyInputValueChanged=(0,n.sg)(t=>{this.dispatchEvent(new CustomEvent("combobox-input",{composed:!0,bubbles:!0,detail:{value:t}})),this.notifySearchResultCount(),this.focusedGroupIndex=0,requestAnimationFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1})},250),this.handleOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||(this.setVisualListbox(!1),this.unselectedAllMultiTag()))}}get focusedIndex(){return this._focusedIndex}set focusedIndex(t){this.updateFocusedIndex(t)}updateFocusedIndex(t){var e,i,o,s;const r=this._focusedIndex;if(this.checkForVirtualScroll()){let r;r=this.allowSelectAll?0===t?"selectAll":this.getOptionId(this.filteredOptions[t-1]):this.getOptionId(this.filteredOptions[t]);const a=this.lists?null===(e=[...this.lists])||void 0===e?void 0:e.find(t=>0!==t.offsetHeight&&t.id===r):"";this.lists&&[...this.lists].forEach(t=>{t.toggleAttribute("focused",!1)}),a&&(null==a||a.toggleAttribute("focused",!0));const n=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector("lit-virtualizer");n&&(-1===t?null===(o=n.element(t))||void 0===o||o.scrollIntoView({block:"start"}):null===(s=n.element(t))||void 0===s||s.scrollIntoView({block:"center"}))}else if(this.lists){const e=this.lists[r];e&&e.toggleAttribute("focused",!1);const i=this.lists[t];i&&i.toggleAttribute("focused",!0)}this._focusedIndex=t,this.requestUpdate("focusedIndex",r)}get focusedGroupIndex(){return this._focusedGroupIndex}set focusedGroupIndex(t){const e=this._focusedGroupIndex;if(this.labels&&0!==this.labels.length){const i=this.labels[e];i&&i.toggleAttribute("focused",!1);const o=this.labels[t];o&&(o.toggleAttribute("focused",!0),o.focus())}this._focusedGroupIndex=t,this.requestUpdate("focusedGroupIndex",e)}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}notifySearchResultCount(){if(this.searchResultAriaLabel){const t=/{{.*?}}/g;this.ariaLabelForComboBox=this.searchResultAriaLabel.replace(t,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForComboBox=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForComboBox=`ComboBox Element, ${this.filteredOptions.length} results found.`}firstUpdated(t){this.ariaLabelForComboBox=this.ariaLabel?this.ariaLabel:"ComboBox Element",super.firstUpdated(t),this.isCustomContent&&(this.optionId="id",this.optionValue="value",this.setOptionCustomContent()),this.setInitialValue()}updated(t){super.updated(t),t.has("expanded")&&(this.expanded?(this.resizeListbox(),this.checkSelectedOptions()):this.unCheckAllOptions()),t.has("focusedIndex")&&this.focusedIndex>=0&&(this.checkForVirtualScroll()||this.scrollToOption()),t.has("value")&&0===this.selectedOptions.length&&this.setInitialValue(),t.has("options")&&this.expanded&&this.checkForVirtualScroll()&&this.updateOnNextFrame(()=>{this.resizeListbox()}),t.has("customOptions")&&this.isCustomContent&&(this.setOptionCustomContent(),this.resizeListbox()),t.has("showCustomError")&&this.resizeListbox(),t.has("showLoader")&&this.resizeListbox(),t.has("searchItem")&&this.resizeListbox()}handleFocusIn(t){var e;this.disabled&&!this.readOnly||(this.noClearIcon&&(requestAnimationFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1}),this.selectWhenInFocus&&this.input.select()),null===(e=super.handleFocusIn)||void 0===e||e.call(this,t)),this.dispatchEvent(new CustomEvent("combobox-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){var e;null===(e=super.handleFocusOut)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("combobox-focus-out",{composed:!0,bubbles:!0}))}findFilteredOption(t){return this.isOptionObject(t)?this.filteredOptions.findIndex(e=>this.getOptionId(e)===this.getOptionId(t)&&this.getOptionValue(e)===this.getOptionValue(t)):this.filteredOptions.indexOf(t)}setInitialValue(){var t;if(this.value.length)if(this.isMulti)this.value.forEach(t=>{-1!==this.findFilteredOption(t)&&this.setSelectedOption(t)});else{const e=this.value[0],i=this.findFilteredOption(e);-1!==i&&(this.setSelectedOption(e),this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedIndex=i,this.focusedGroupIndex=-1)}}isOptionObject(t){return"object"==typeof t&&null!==t}setOptionCustomContent(){if(this.isOptGroup){const t=[...this.querySelectorAll("optgroup")],e=[];for(const i of t){const t=i.getAttribute("label"),o=[...i.querySelectorAll("[slot]")];e.push({isLabel:"true",[this.optionValue]:t,groupName:t});for(const i of o){const o=i.getAttribute("aria-label"),s=i.getAttribute("display-value"),r=i.getAttribute("slot");o&&s&&e.push({[this.optionId]:o,[this.optionValue]:s,isLabel:"false",groupName:t,slot:r})}}this.options=e}else this.customContent=[...this.querySelectorAll("[slot]")],this.customContent&&this.customContent.length?this.options=this.customContent.map(t=>{const e=t.getAttribute("aria-label"),i=t.getAttribute("display-value");if(e&&i)return{[this.optionId]:e,[this.optionValue]:i}}):this.options=[]}getOptionValue(t){return this.isOptionObject(t)?String(t[this.optionValue]):t}getOptionGroupName(t){return null==t?void 0:t.groupName}getOptionId(t){return this.isOptionObject(t)?String(t[this.optionId]):t}getFocusedItem(t){if(t>=0)return this.filteredOptions[t]}setupEvents(){document.addEventListener("click",this.handleOutsideClick),this.addEventListener("remove-all-selected",this.removeAllSelected),this.addEventListener("selected-changed",this.selectedChange)}teardownEvents(){document.removeEventListener("click",this.handleOutsideClick),this.removeEventListener("remove-all-selected",this.removeAllSelected),this.removeEventListener("selected-changed",this.selectedChange)}setVisualListbox(t){this.expanded=t}setGroupList(t){this.groupExpandedList.includes(t)?(this.groupExpandedList.splice(this.groupExpandedList.indexOf(t),1),this.groupExpandedList=[...this.groupExpandedList]):this.searchItem?this.groupExpandedList.push(t):this.groupExpandedList=[t]}findSelectedOption(t){return this.optionId&&t?this.selectedOptions.findIndex(e=>e&&e[this.optionId]===t[this.optionId]):this.selectedOptions.indexOf(t)}findOptionIndex(t){const e=t.composedPath();if(this.checkForVirtualScroll()){let t="";return[...this.lists].forEach(i=>{e.includes(i)&&(t=i.id)}),this.filteredOptions.findIndex(e=>this.getOptionId(e)===t)}return[...this.lists].findIndex(t=>e.includes(t))}checkSelectedOptions(){if(this.checkForVirtualScroll()){const t=this.selectedOptions.map(t=>this.getOptionId(t)),e=[...this.lists].filter(t=>"selectAll"!==t.id);null==e||e.forEach(e=>{t.includes(e.id)?(this.isMulti&&(null==e||e.setAttribute("aria-checked","true")),null==e||e.setAttribute("aria-selected","true")):this.isMulti&&(null==e||e.setAttribute("aria-checked","false"))})}}unCheckAllOptions(){var t;this.checkForVirtualScroll()&&this.isMulti&&(null===(t=[...this.lists])||void 0===t||t.forEach(t=>{"selectAll"!==(null==t?void 0:t.id)&&(null==t||t.setAttribute("aria-checked","false"))}))}setSelectedOption(t){this.isMulti||(this.selectedOptions=[]);const e=this.findSelectedOption(t);if(-1!==e){const t=this.selectedOptions[e];this.selectedOptions.splice(e,1),this.notifySelectedChange({value:t,selected:this.selectedOptions})}else this.selectedOptions.push(t),this.notifySelectedChange({value:t,selected:this.selectedOptions});this.checkSelectedOptions(),this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()),this.requestUpdate()}filterOptions(t){if(this.preventFilter)return this.searchItem=!1,this.options;if(t&&t.length){const e=this.options.filter(e=>this.isOptGroup&&"string"!=typeof e&&"true"===e.isLabel?e:(this.isCustomContent?this.getOptionId(e):this.getOptionValue(e)).toLowerCase().includes(t.toLowerCase()));return this.isOptGroup?this.handleGroupFilter(e):e}return this.searchItem=!1,this.options}getListBoxVerticalPadding(){if(this.listBox){const t=window.getComputedStyle(this.listBox,null),e=parseInt(t.getPropertyValue("padding-top"))+parseInt(t.getPropertyValue("padding-bottom"));if(!isNaN(e))return e+2}return 10}resizeListbox(){this.updateOnNextFrame(()=>{var t;let e=0,i=0,o=0;const s=this.getListBoxVerticalPadding();if(this.lists){const t=this.checkForVirtualScroll()?[...this.lists].filter(t=>0!==t.offsetHeight):[...this.lists];e=t.slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0),o=this.checkForVirtualScroll()&&this.allowSelectAll?t.slice(1,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0):t.slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0)}if(this.labels&&(i=[...this.labels].slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0)),this.listBox&&(this.listBox.style.maxHeight=`${e+i+s}px`),this.virtualizer&&(this.virtualizer.style.height=`${o+s}px`),this.showCustomError||this.showLoader){const e=null===(t=this.listBox)||void 0===t?void 0:t.querySelector("[slot]");this.listBox&&e&&(this.listBox.style.height=`${e.clientHeight+s}px`,this.listBox.style.maxHeight=`${e.clientHeight+s}px`)}})}setInputValue(t=""){this.input.value=t}updateOnNextFrame(t){requestAnimationFrame(t)}unCheckedAllOptions(){this.isMulti&&(this.lists.forEach((t,e)=>this.unCheckedOption(e)),this.isSelectAllChecked=!1)}unCheckedOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","false"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}checkAllOptions(){this.isMulti&&this.lists.forEach((t,e)=>this.checkOption(e))}checkOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","true"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}isSelectAllSelected(){return this.selectedOptions.length===this.options.length}setFocusOnHost(t){this.setFocus&&this.setFocus(t)}isOptionFocused(t){return this.focusedIndex===t}getAriaState(t){return this.isOptionFocused(t)}scrollToOption(){var t,e;let i=0;const{top:o,bottom:s}=this.listBox.getBoundingClientRect(),r=this.lists[this.focusedIndex],a=null===(t=this.lists[this.focusedIndex+1]||r)||void 0===t?void 0:t.getBoundingClientRect(),n=null===(e=this.lists[this.focusedIndex-1]||r)||void 0===e?void 0:e.getBoundingClientRect();(null==a?void 0:a.bottom)>s?i=a.bottom-s+2:(null==n?void 0:n.top)<o&&(i=n.top-o-2),this.updateOnNextFrame(()=>{this.listBox.scrollTop+=i})}getCustomContentName(t){const e=this.options.indexOf(t);if(this.isOptGroup){const t=this.options[e];if(t&&"string"!=typeof t)return t.slot}else if(-1!==e)return this.customContent[e].slot}setInputSelectionRange(t,e){this.input.setSelectionRange(t,e)}isOptionChecked(t){return-1!==this.findSelectedOption(t)?"true":"false"}getInputSelection(){return this.input.selectionStart}canMultiSelect(){return 0===this.getInputSelection()&&0!==this.selectedOptions.length&&this.isMulti}removeMultiTag(){this.selected&&this.multiSelected.forEach(t=>{const e=this.selected[t];e&&e.hasAttribute("selected")&&this.removeSelected(this.selectedOptions[t])})}unselectedAllMultiTag(){this.selected&&this.selected.forEach(t=>t.removeAttribute("selected")),this.multiSelectedIndex=-1}findLastMultiSelected(){return this.selected[this.multiSelectedIndex]}toggleMultiSelectedTag(t,e){t&&t.toggleAttribute("selected",e)}selectMultiTag(t){if(this.canMultiSelect()){if(!t){this.multiSelected=[];const t=this.findLastMultiSelected();this.toggleMultiSelectedTag(t,!1)}this.multiSelectedIndex<=0?this.multiSelectedIndex=this.selectedOptions.length-1:this.multiSelectedIndex--,this.multiSelected.push(this.multiSelectedIndex);const e=this.findLastMultiSelected();this.toggleMultiSelectedTag(e,!0)}}handleListClick(t){return g(this,void 0,void 0,function*(){this.dispatchEvent(new CustomEvent("selected-changed",{detail:{event:t}})),yield this.updateComplete,this.isMulti?this.setVisualListbox(!0):this.setVisualListbox(!1),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1})})}handleSelectAll(){return g(this,void 0,void 0,function*(){this.isSelectAllChecked=!this.isSelectAllChecked,this.isSelectAllChecked?(this.selectedOptions=[...this.options],this.checkAllOptions()):(this.selectedOptions=[],this.unCheckedAllOptions()),yield this.updateComplete,this.setVisualListbox(!0),this.notifySelectedChange({selected:this.selectedOptions})})}handleInputKeyUp(t){switch(t.code){case s.Uz.Escape:break;case s.Uz.Backspace:this.setFocusOnHost(!0),this.setVisualListbox(!0),this.resizeListbox(),this.removeMultiTag();break;case s.Uz.ArrowLeft:this.isMulti&&(t.shiftKey?this.selectMultiTag(!0):this.selectMultiTag(!1));break;default:this.isMulti&&this.unselectedAllMultiTag()}}handleInput(t){const e=t.target.value;this.inputValue=e.trim(),this.notifyInputValueChanged(e.trim())}removeAllSelected(){var t;this.focusedIndex=-1,this.focusedGroupIndex=-1,this.selectedOptions=[],this.inputValue="",this.setInputValue(),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.unCheckedAllOptions(),this.setSelectedAttribute(void 0),this.updateOnNextFrame(()=>{this.input.focus()}),this.notifySelectedChange({selected:this.selectedOptions})}removeSelected(t){const e=this.findSelectedOption(t),i=this.filteredOptions.indexOf(t);-1!==i&&this.unCheckedOption(i),-1!==e&&(this.selectedOptions.splice(e,1),this.requestUpdate()),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1})}selectedChange(t){var e;const{event:i}=t.detail;let o=this.findOptionIndex(i);if(-1!==o){this.focusedIndex=this.allowSelectAll&&this.checkForVirtualScroll()?o+1:o,this.isMulti&&this.allowSelectAll&&!this.checkForVirtualScroll()&&(o-=1);const t=this.getFocusedItem(o);this.setSelectedAttribute(t),t&&(this.setSelectedOption(t),this.isMulti?this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()):(this.setInputValue(this.getOptionValue(t)),null===(e=this.input)||void 0===e||e.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(t))))}}setSelectedAttribute(t){var e;let i="";t&&(i=this.getOptionId(t)),null===(e=this.lists)||void 0===e||e.forEach((t,e)=>{(null==t?void 0:t.id)===i?null==t||t.setAttribute("selected","true"):null==t||t.setAttribute("selected","false")})}shouldChangeButton(){const t=this.input&&this.input.value.length>0&&!this.noClearIcon||this.isMulti&&this.selectedOptions.length&&!this.noClearIcon;return t&&document.dispatchEvent(new CustomEvent("on-widget-update")),t}setCustomValue(){this.optionId||this.optionValue||(this.options=[...this.options,this.inputValue],this.setSelectedOption(this.inputValue),this.isMulti||this.updateOnNextFrame(()=>{var t;this.focusedIndex=this.filteredOptions.length-1;const e=this.getFocusedItem(this.focusedIndex);e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)))}),this.dispatchEvent(new CustomEvent("custom-value-add",{composed:!0,bubbles:!0,detail:{value:this.inputValue}}))),this.inputValue=""}handleGroupFocus(){this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.filteredGroupOptions.length>0&&-1===this.focusedGroupIndex&&(this.focusedGroupIndex=this.filteredGroupOptions.findIndex(t=>"string"!=typeof t&&t.groupName===this.groupExpandedList[0])),this.updateOnNextFrame(()=>{-1===this.focusedGroupIndex||!this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length-1||this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length?this.focusedGroupIndex=0:this.focusedGroupIndex++}),this.focusedIndex=-1}handleInputKeyDown(t){var e,i;switch(t.code){case s.Uz.Backspace:this.focusedIndex=-1;break;case s.Uz.Tab:case s.Uz.Enter:if(this.setFocusOnHost(!0),this.expanded&&this.updateOnNextFrame(()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);this.allowCustomValue&&this.input&&this.input.value.length&&-1===this.findFilteredOption(this.inputValue)?this.setCustomValue():(e&&(this.setSelectedAttribute(e),this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll())}),this.setVisualListbox(!1),t.code===s.Uz.Tab&&this.isMulti)return;break;case s.Uz.ArrowDown:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame(()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1});break;case s.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame(()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedGroupIndex=-1)});break;case s.Uz.ArrowLeft:case s.Uz.ArrowRight:t.stopPropagation();break;case s.Uz.Escape:this.setFocusOnHost(!0),this.expanded?(t.stopPropagation(),this.setVisualListbox(!1)):(this.setInputValue(),null===(e=this.input)||void 0===e||e.setAttribute(s.iw.AriaActivedescendant,""),this.focusedIndex=-1,this.focusedGroupIndex=-1,this.removeAllSelected(),this.setSelectedAttribute(void 0));break;case s.Uz.Home:this.setInputSelectionRange(0,0);break;case s.Uz.End:{const{length:t}=this.inputValue;this.setInputSelectionRange(t,t)}break;case s.Uz.Space:if(this.isMulti&&this.expanded){t.preventDefault();const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.setSelectedAttribute(e),this.showSelectedCount||(this.setInputValue(),null===(i=this.input)||void 0===i||i.setAttribute(s.iw.AriaActivedescendant,""))),0===this.focusedIndex&&this.allowSelectAll&&this.handleSelectAll()}this.expanded=!0}}handleGroupLabelKeyDown(t,e){switch(t.code){case s.Uz.Tab:this.handleGroupFocus();break;case s.Uz.Enter:case s.Uz.Space:-1!==this.focusedGroupIndex?this.toggleGroupListBox(t,e.value):(this.setFocusOnHost(!0),this.setVisualListbox(!1),this.updateOnNextFrame(()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1}))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll()}));break;case s.Uz.ArrowDown:if(0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame(()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1});break;case s.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame(()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)))});break;case s.Uz.Escape:this.focusedGroupIndex=-1,this.setVisualListbox(!1),this.setFocusOnHost(!0),this.input.focus();break;default:this.setVisualListbox(!0)}}toggleVisualListBox(t){var e,i;if(!this.readOnly){if(t.target.classList.contains("md-combobox-listbox"))t.target.focus();else if("md-icon"===t.target.localName){const o=null===(i=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.parentElement;if(o){const t=o.querySelector(".md-combobox-listbox");(0,v.setTimeout)(()=>{t.focus()},10)}}this.expanded?this.setVisualListbox(!1):(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.setVisualListbox(!0)),this.input.focus(),this.setGroupList(""),this.focusedGroupIndex=-1}}toggleGroupListBox(t,e){t.stopPropagation(),this.focusedGroupIndex=this.filteredGroupOptions.findIndex(t=>"string"!=typeof t&&t.groupName===e),this.setGroupList(e),this.resizeListbox()}handleRemoveAll(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}connectedCallback(){super.connectedCallback(),this.setupEvents(),this.querySelector("optgroup")&&(this.isOptGroup=!0)}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}static get styles(){return[l.A,y.A]}get listItemOptionMap(){return{"md-combobox-multiselect":this.isMulti,compact:this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}get filteredOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter(t=>!this.isOptGroup||("string"!=typeof t&&this.groupExpandedList.includes(this.getOptionGroupName(t))?"false"===t.isLabel:void 0))}get filteredGroupOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter(t=>!this.isOptGroup||("string"!=typeof t?"true"===t.isLabel:void 0))}get comboBoxTemplateClassMap(){return{[`md-combobox--${this.shape}`]:!!this.shape,"md-combobox-searchable":this.searchable,"md-combobox-has-leading-icon":this.searchable||this.showFilterIcon,"md-new-combobox":this.newMomentum,[`md-${this.messageType}`]:!!this.messageType,"md-combobox-readonly":this.readOnly,"md-combobox-compact":this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}searchIconTemplate(){return this.leadingIconTemplate("search-bold","search-icon")}filterIconTemplate(){return this.leadingIconTemplate("filter-bold","filter-icon")}leadingIconTemplate(t,e){return d.html`
|
|
31
31
|
<md-icon
|
|
32
32
|
name=${t}
|
|
33
33
|
class=${e}
|
|
@@ -351,149 +351,20 @@
|
|
|
351
351
|
<slot name="footer"> </slot>
|
|
352
352
|
</div>
|
|
353
353
|
</div>
|
|
354
|
-
`}};c([(0,h.property)({type:String})],e.prototype,"title",void 0),c([(0,h.property)({type:String})],e.prototype,"subtitle",void 0),c([(0,h.property)({type:String})],e.prototype,"id",void 0),c([(0,h.property)({type:String})],e.prototype,"info",void 0),c([(0,h.property)({type:String,attribute:"info-aria-label"})],e.prototype,"infoAriaLabel",void 0),c([(0,h.property)({type:String,attribute:"menu-aria-label"})],e.prototype,"menuAriaLabel",void 0),c([(0,h.property)({type:Array})],e.prototype,"menuOptions",void 0),e=c([(0,s.w)("md-card")],e),t.ELEMENT=e}(o||(o={}))},
|
|
355
|
-
<md-icon
|
|
356
|
-
class="md-notification-badge-icon ${(0,y.H)({"md-notification-badge-overlay":this.overlay,[`md-notification-badge-icon__${e}`]:!0})}"
|
|
357
|
-
iconSet="momentumDesign"
|
|
358
|
-
name="${(0,b.J)(t)}"
|
|
359
|
-
size="${w.zY.ICON_SIZE}"
|
|
360
|
-
></md-icon>
|
|
361
|
-
`}getBadgeDot(){return v.html`<div
|
|
362
|
-
class="md-notification-badge-dot ${(0,y.H)({"md-notification-badge-overlay":this.overlay})}"
|
|
363
|
-
></div>`}getBadgeCounterText(){return v.html`
|
|
364
|
-
<div class="md-notification-badge-text ${(0,y.H)({"md-notification-badge-overlay":this.overlay})}">
|
|
365
|
-
${this.getCounterText(this.maxCounter,this.counter)}
|
|
366
|
-
</div>
|
|
367
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(w.M_).includes(this.variant)&&(this.variant=w.zY.VARIANT);const{iconName:t,type:e,variant:i}=this;switch(e){case w.ZE.ICON:return this.getBadgeIcon(t||"",i);case w.ZE.COUNTER:return this.getBadgeCounterText();case w.ZE.SUCCESS:return this.getBadgeIcon(w.UZ.SUCCESS_ICON_NAME,w.su.SUCCESS);case w.ZE.WARNING:return this.getBadgeIcon(w.UZ.WARNING_ICON_NAME,w.su.WARNING);case w.ZE.ERROR:return this.getBadgeIcon(w.UZ.ERROR_ICON_NAME,w.su.ERROR);case w.ZE.DOT:default:return this.type=w.ZE.DOT,this.getBadgeDot()}}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};C([(0,g.property)({type:String,reflect:!0})],E.prototype,"type",void 0),C([(0,g.property)({type:String,reflect:!0})],E.prototype,"variant",void 0),C([(0,g.property)({type:Number})],E.prototype,"counter",void 0),C([(0,g.property)({type:Number,attribute:"max-counter",reflect:!0})],E.prototype,"maxCounter",void 0),C([(0,g.property)({type:Boolean})],E.prototype,"overlay",void 0),C([(0,g.property)({type:String,attribute:"icon-name"})],E.prototype,"iconName",void 0),C([(0,g.property)({type:String,attribute:"aria-label"})],E.prototype,"ariaLabel",void 0),E=C([(0,m.wW)("md-notification-badge")],E);var S=i(92992),$=i(45629),T=i(96798),k=i(64311),A=i(90827),I=i(10654),L=i(95281),O=i(3664),M=i(55294),D=i(60046),P=i(29895),R=i(46312),_=i(4313),B=i(45001),z=i.n(B);const F=v.css`:host(md-code-editor) .md-code-editor{background:#091e26;border-radius:.25rem;color:#fff;min-height:18.75rem;overflow:hidden}:host(md-code-editor) .md-code-editor-header{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;background:#092d3b;flex:0 0 auto;font-size:14px;padding:.625rem}:host(md-code-editor) .md-code-editor-name{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center}:host(md-code-editor) .md-code-editor md-badge::part(badge){border-radius:.25rem;height:1.25rem;margin-right:.625rem;padding:.25rem .375rem;text-transform:capitalize}:host(md-code-editor) .md-code-editor-copy{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;line-height:1}:host(md-code-editor) .md-code-editor-copy-btn::part(button){background:0 0;color:#00a0d1;margin-left:.625rem}:host(md-code-editor) .md-code-editor-copy-btn[disabled]{cursor:not-allowed;opacity:.5}:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-quote{color:#ffecc2}:host(md-code-editor) .hljs-deletion,:host(md-code-editor) .hljs-name,:host(md-code-editor) .hljs-regexp,:host(md-code-editor) .hljs-selector-class,:host(md-code-editor) .hljs-selector-id,:host(md-code-editor) .hljs-tag,:host(md-code-editor) .hljs-template-variable,:host(md-code-editor) .hljs-variable{color:#ff9d52}:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-type{color:#fc9d03}:host(md-code-editor) .hljs-attribute{color:#ebd460}:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol{color:#93c437}:host(md-code-editor) .hljs-section,:host(md-code-editor) .hljs-title{color:#22c7d6}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{color:#f0e3fc}:host(md-code-editor) .hljs{background:rgba(0,0,0,0);color:#dedede;display:block;overflow-x:auto;padding:.5em}:host(md-code-editor) .hljs-emphasis{font-style:italic}:host(md-code-editor) .hljs-strong{font-weight:700}@media screen and (forced-colors:active){:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-attribute,:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-quote,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol,:host(md-code-editor) .hljs-type{color:highlight}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{font-weight:700}}@media(forced-colors:active){:host(md-code-editor) .md-code-editor{outline:1px solid CanvasText}:host(md-code-editor) .md-code-editor-header{outline:1px solid CanvasText}}`;var N,V=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends v.LitElement{constructor(){super(...arguments),this.copyLocalization="cURL",this.copiedLocalization="Copied",this.method="get",this.acceptLanguage="javascript",this.url="javascript",this.disableCopyButton=!0,this.acceptTypes="",this.copied=!1}static get styles(){return[_.A,F]}handleSlotChange(){if(this.slotNodes&&this.slotNodes.length){const t=this.slotNodes.find(t=>"CODE"===t.tagName);if(t){const e=t.textContent;e&&this.highlightBlock(e)}}}handleUrlSlotChange(){if(this.copied=!1,this.slotUrl&&this.slotUrl.length){const t=this.slotUrl.find(t=>t);if(t){const e=t.textContent;e&&this.copyUrl(e)}}}highlightBlock(t){t&&(this.codeBlock.innerText=t),z().highlightElement(this.codeBlock)}copyUrl(t){this.codeUrl.innerText=t,this.disableCopyButton=!1}copyClipboard(){this.disableCopyButton||this.selectTarget(this.codeUrl)}copyText(){try{document.execCommand("copy"),this.copied=!0}catch(t){console.warn("Copy text failed"),this.copied=!1}}select(t){const e=window.getSelection(),i=document.createRange();i.selectNodeContents(t),e&&(e.removeAllRanges(),e.addRange(i))}selectTarget(t){this.select(t),this.copyText()}importLanguage(t){return e=this,o=void 0,r=function*(){try{const{default:e}=yield i(29599)(`./${t}`);z().registerLanguage(`${t}`,e),this.setAcceptTypes()}catch(t){console.warn("Please set correct language name")}},new((s=void 0)||(s=Promise))(function(t,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function n(t){try{l(r.throw(t))}catch(t){i(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof s?i:new s(function(t){t(i)})).then(a,n)}l((r=r.apply(e,o||[])).next())});var e,o,s,r}getAllAcceptTypes(){const t=z().listLanguages();return t.length?t.map(t=>z().getLanguage(`${t}`).aliases).map(t=>t.map(t=>`.${t}`)).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(t){super.updated(t),t.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage),t.has("acceptTypes")&&this.highlightBlock()}render(){return v.html`
|
|
368
|
-
<div class="md-code-editor" part="code-editor">
|
|
369
|
-
<div class="md-code-editor-header">
|
|
370
|
-
<div class="md-code-editor-name">
|
|
371
|
-
<md-badge color="blue">
|
|
372
|
-
<slot name="method" method=${this.method}></slot>
|
|
373
|
-
</md-badge>
|
|
374
|
-
<span class="md-code-editor-url">
|
|
375
|
-
<slot name="code-url" @slotchange=${this.handleUrlSlotChange}>${this.url}</slot>
|
|
376
|
-
</span>
|
|
377
|
-
</div>
|
|
378
|
-
<div class="md-code-editor-copy">
|
|
379
|
-
<span>${this.copied?this.copiedLocalization.trim():this.copyLocalization.trim()}</span>
|
|
380
|
-
<md-button
|
|
381
|
-
circle
|
|
382
|
-
size="20"
|
|
383
|
-
?disabled=${this.disableCopyButton}
|
|
384
|
-
@click=${this.copyClipboard}
|
|
385
|
-
class="md-code-editor-copy-btn"
|
|
386
|
-
>
|
|
387
|
-
<md-icon slot="icon" name="icon-copy_16"></md-icon>
|
|
388
|
-
</md-button>
|
|
389
|
-
</div>
|
|
390
|
-
</div>
|
|
391
|
-
<div class="md-code-editor-content">
|
|
392
|
-
<pre class="md-code-editor-code-block">
|
|
393
|
-
<slot name="code-block" @slotchange=${this.handleSlotChange}>
|
|
394
|
-
<code class=${this.acceptLanguage}>
|
|
395
|
-
</code>
|
|
396
|
-
</slot>
|
|
397
|
-
</pre>
|
|
398
|
-
</div>
|
|
399
|
-
</div>
|
|
400
|
-
`}};V([(0,g.property)({type:String})],e.prototype,"copyLocalization",void 0),V([(0,g.property)({type:String})],e.prototype,"copiedLocalization",void 0),V([(0,g.property)({type:String})],e.prototype,"method",void 0),V([(0,g.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),V([(0,g.property)({type:String})],e.prototype,"url",void 0),V([(0,g.query)("input[type='file']")],e.prototype,"input",void 0),V([(0,g.query)(".md-code-editor-code-block")],e.prototype,"codeBlock",void 0),V([(0,g.query)(".md-code-editor-url")],e.prototype,"codeUrl",void 0),V([(0,g.state)()],e.prototype,"disableCopyButton",void 0),V([(0,g.state)()],e.prototype,"acceptTypes",void 0),V([(0,g.state)()],e.prototype,"copied",void 0),V([(0,g.queryAssignedNodes)({slot:"code-block"})],e.prototype,"slotNodes",void 0),V([(0,g.queryAssignedNodes)({slot:"code-url"})],e.prototype,"slotUrl",void 0),e=V([(0,m.wW)("md-code-editor")],e),t.ELEMENT=e}(N||(N={}));var j=i(4928),U=i(18224),q=i(69494),H=i(85416),K=i(38654),W=i(63208),G=i(16754),Y=i(17814),X=i(10984),Z=i(80072),Q=i(24627),J=i(23184),tt=i(50565),et=i(99850),it=i(83192),ot=i(20291);const st=v.css`:host{display:inline-flex;align-items:center;height:1.75rem;border-radius:1.5625rem;background-color:var(--floating-button-bar-bg-color);box-shadow:var(--md-elevation-1);padding:.25rem .5rem;gap:.5rem}.button{display:inline-flex;align-items:center;justify-content:center}.button.pill::part(button){font-size:.875rem;padding-left:.75rem;padding-right:.75rem}.cancel{color:var(--floating-button-bar-secondary-color)}.label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.label.primary{font-family:var(--brand-font-medium);color:var(--floating-button-bar-primary-color);flex:1;min-width:0;justify-content:center}.label.secondary{color:var(--floating-button-bar-secondary-color);padding-right:4px}.separator{width:1px;height:.75rem;background-color:var(--floating-button-bar-secondary-color)}md-tooltip::part(tooltip_reference){display:flex;align-items:center}`;var rt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};let at=class extends v.LitElement{constructor(){super(...arguments),this.leadingLabel="",this.closeButtonAriaLabel="",this.showCloseButton=!0,this.actions=[]}static get styles(){return[st]}onCancelButttonAction(){this.dispatchEvent(new CustomEvent("cancel-button-action",{composed:!0,bubbles:!0}))}get closeButtonTemplate(){return v.html`
|
|
401
|
-
<md-tooltip
|
|
402
|
-
message="${(0,ot.ifDefined)(this.closeButtonAriaLabel)}"
|
|
403
|
-
?disabled=${!this.closeButtonAriaLabel}
|
|
404
|
-
placement="top"
|
|
405
|
-
>
|
|
406
|
-
<md-button
|
|
407
|
-
class="button cancel"
|
|
408
|
-
circle
|
|
409
|
-
size="20"
|
|
410
|
-
variant="ghostInheritTextColor"
|
|
411
|
-
ariaLabel=${(0,ot.ifDefined)(this.closeButtonAriaLabel)}
|
|
412
|
-
@button-click=${()=>this.onCancelButttonAction()}
|
|
413
|
-
>
|
|
414
|
-
<md-icon slot="icon" iconSet="momentumDesign" name="cancel-bold" size="16"></md-icon>
|
|
415
|
-
</md-button>
|
|
416
|
-
</md-tooltip>
|
|
417
|
-
`}getPrimaryLabelTemplate(t){return v.html` <span class="label primary">${t}</span> `}getSecondaryLabelTemplate(t){return v.html` <span class="label secondary">${t}</span> `}get separatorTemplate(){return v.html` <div class="separator"></div> `}getIconTemplate(t){return v.html`${t.icon?v.html`<md-icon slot="icon" iconSet="momentumDesign" name=${t.icon} size="16"></md-icon>`:v.nothing}`}getPillButtonTemplate(t){return v.html`
|
|
418
|
-
<md-button class="button pill" size="24" variant="inverted-ghost" @button-click=${()=>t.action()}>
|
|
419
|
-
${this.getIconTemplate(t)} ${this.getPrimaryLabelTemplate(t.label)}
|
|
420
|
-
</md-button>
|
|
421
|
-
`}getCircleButtonTemplate(t){return v.html`
|
|
422
|
-
<md-button class="button" circle size="24" variant="inverted-secondary" @button-click=${()=>t.action()}>
|
|
423
|
-
${this.getIconTemplate(t)}
|
|
424
|
-
</md-button>
|
|
425
|
-
`}getTooltipCircleButtonTemplate(t){return v.html`
|
|
426
|
-
<md-tooltip message="${t.label}" placement="top"> ${this.getCircleButtonTemplate(t)} </md-tooltip>
|
|
427
|
-
`}getActionAndLabelTemplate(t){var e;const i=null!==(e=t.iconAlign)&&void 0!==e?e:"right";return v.html`
|
|
428
|
-
${"left"===i?v.html`${this.getCircleButtonTemplate(t)} ${this.getPrimaryLabelTemplate(t.label)}`:v.html`${this.getPrimaryLabelTemplate(t.label)} ${this.getCircleButtonTemplate(t)}`}
|
|
429
|
-
`}getActionTemplate(t){return t.isIconOnly?this.getTooltipCircleButtonTemplate(t):this.getPillButtonTemplate(t)}getActionGroupTemplate(t){return v.html` ${this.separatorTemplate} ${t.actions.map(t=>this.getActionTemplate(t))} `}render(){return v.html`
|
|
430
|
-
${this.showCloseButton?this.closeButtonTemplate:v.nothing} ${this.getSecondaryLabelTemplate(this.leadingLabel)}
|
|
431
|
-
${this.actions.map(t=>this.getActionGroupTemplate(t))}
|
|
432
|
-
`}};rt([(0,g.property)({type:String})],at.prototype,"leadingLabel",void 0),rt([(0,g.property)({type:String})],at.prototype,"closeButtonAriaLabel",void 0),rt([(0,g.property)({type:Boolean})],at.prototype,"showCloseButton",void 0),rt([(0,g.property)({type:Array})],at.prototype,"actions",void 0),at=rt([(0,g.customElement)("md-floating-button-bar")],at);var nt=i(58871),lt=i(73093);class dt{constructor(){this.listeners=new Set}onChange(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}emitChange(){for(const t of Array.from(this.listeners))t(this)}}class ht extends dt{constructor(t){var e;super(),this.controls=t;for(const t of this.controls)null===(e=t.onChange)||void 0===e||e.call(t,()=>this.emitChange())}at(t){return this.controls[t]}push(t){var e;this.controls.push(t),null===(e=t.onChange)||void 0===e||e.call(t,()=>this.emitChange()),this.emitChange()}removeAt(t){this.controls.splice(t,1),this.emitChange()}get value(){return this.controls.map(t=>t.value)}get valid(){return this.controls.every(t=>t.valid)}get length(){return this.controls.length}getControls(){return this.controls}validate(){this.controls.forEach(t=>t.validate()),this.emitChange()}markAllAsTouched(){this.controls.forEach(t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)})}}class ct extends dt{constructor(t,e=[]){super(),this.validationErrors=[],this.touched=!1,this.currentValue=t,this.validators=e,this.validate()}get value(){return this.currentValue}markAsTouched(){this.touched=!0,this.validate()}get valid(){return 0===this.validationErrors.length}get errors(){return this.touched?this.validationErrors:[]}setValue(t){this.currentValue=t,this.markAsTouched()}validate(){this.emitChange(),this.validationErrors=this.validators.map(t=>t(this.currentValue)).filter(t=>null!==t)}}class pt extends dt{constructor(t){var e;super(),this.controls=t;for(const t of Object.keys(this.controls)){const i=this.controls[t];null===(e=i.onChange)||void 0===e||e.call(i,()=>this.emitChange())}}get(t){return this.controls[t]}get value(){const t={};for(const e in this.controls)t[e]=this.controls[e].value;return t}get valid(){return Object.values(this.controls).every(t=>t.valid)}validate(){for(const t of Object.values(this.controls))t.validate();this.emitChange()}markAllAsTouched(){Object.values(this.controls).forEach(t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)})}}const ut={required:()=>t=>null==t||"string"==typeof t&&""===t.trim()?{type:"required"}:null,minLength:t=>e=>e.length<t?{type:"minLength",count:t}:null,maxLength:t=>e=>e.length>t?{type:"maxLength",count:t}:null};var mt=i(97866),vt=i(69112),yt=i(20109),bt=i(52619),gt=i(96408),ft=i(6396),wt=i(19026),xt=i(90195),Ct=i(26283);const Et=v.css`:host{--list-item-border-radius:0;--list-item-expand-duration:400ms;--list-item-hover-bg-color:var(--md-button-secondary-hover-bg-color);--list-item-active-bg-color:var(--md-button-secondary-pressed-bg-color);--list-item-disabled-bg-color:none;--list-item-disabled-text-color:var(--md-textColor-disabled);--list-item-primary-label-color:var(--md-textColor-primary);--list-item-secondary-label-color:var(--md-textColor-secondary);--list-item-primary-label-font-size:14px;--list-item-secondary-label-font-size:12px;--list-item-bg-color:none;border-radius:var(--list-item-border-radius);background-color:var(--list-item-bg-color)}:host(:focus-visible){box-shadow:none!important}:host([variant=inset-rectangle]){--list-item-border-radius:0.5rem}:host([variant=inset-pill]){--list-item-border-radius:3.125rem}:host([disabled]){--list-item-primary-label-color:var(--list-item-disabled-text-color);--list-item-secondary-label-color:var(--list-item-disabled-text-color);--list-item-bg-color:var(--list-item-disabled-bg-color)}.header{border-radius:var(--list-item-border-radius);padding:.5rem;display:flex;justify-content:space-between;align-items:center;cursor:pointer}.header:hover:not(:disabled){background-color:var(--list-item-hover-bg-color)}.header:active:not(:disabled){background-color:var(--list-item-active-bg-color)}:host(:focus-visible) .header{box-shadow:0 0 0 .125rem var(--list-focus-border-color)}:host::part(header-leading),:host::part(header-trailing){display:flex;align-items:center;gap:.5rem}:host::part(primary-label),:host::part(secondary-label),:host::part(tertiary-label){display:block;line-height:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host::part(primary-label){font-size:var(--list-item-primary-label-font-size);color:var(--list-item-primary-label-color)}:host::part(secondary-label),:host::part(tertiary-label){font-size:var(--list-item-secondary-label-font-size);color:var(--list-item-secondary-label-color)}.expand-icon{transition:transform var(--list-item-expand-duration)}.panel-container{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows var(--list-item-expand-duration) ease-out}.expandable-content{min-height:0;visibility:hidden;transform:translateY(-15px);margin:0 10px;transition:all var(--list-item-expand-duration)}:host([expanded]) .panel-container{padding-top:0;grid-template-rows:1fr}:host([expanded]) .expandable-content{visibility:visible;transform:translateY(0);margin:10px}:host([expanded]) .expand-icon{transform:rotate(90deg)}:host{--md-list-v2-gap:0;--md-list-v2-orientation:column;padding:0;margin:0;display:flex;flex-direction:var(--md-list-v2-orientation);gap:var(--md-list-v2-gap)}:host([orientation=horizontal]){--md-list-v2-orientation:row}:host([gap=sm]){--md-list-v2-gap:0.25rem}:host([gap=md]){--md-list-v2-gap:0.5rem}:host([gap=lg]){--md-list-v2-gap:1rem}`;var St,$t=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends v.LitElement{constructor(){super(...arguments),this.expandable=!1,this.expanded=!1,this.disabled=!1,this.variant="full-width",this.expandLabel="Expand"}render(){return v.html`
|
|
433
|
-
<slot name="content">
|
|
434
|
-
<div class="header">
|
|
435
|
-
<div part="header-leading">
|
|
436
|
-
${this.expandable?this.renderExpandButton():v.nothing} ${this.renderLeadingControls()}
|
|
437
|
-
<div part="leading-text">
|
|
438
|
-
${this.label?v.html`<span part="primary-label">${this.label}</span>`:v.nothing}
|
|
439
|
-
${this.secondaryLabel?v.html`<span part="secondary-label">${this.secondaryLabel}</span>`:v.nothing}
|
|
440
|
-
${this.tertiaryLabel?v.html`<span part="tertiary-label">${this.tertiaryLabel}</span>`:v.nothing}
|
|
441
|
-
</div>
|
|
442
|
-
</div>
|
|
443
|
-
<div part="header-trailing">${this.renderTrailingControls()}</div>
|
|
444
|
-
</div>
|
|
445
|
-
<div class="panel-container">
|
|
446
|
-
<div class="expandable-content">
|
|
447
|
-
<slot
|
|
448
|
-
name="panel"
|
|
449
|
-
@keyup=${this.stopArrowKeyEventPropagation}
|
|
450
|
-
@keydown=${this.stopArrowKeyEventPropagation}
|
|
451
|
-
></slot>
|
|
452
|
-
</div>
|
|
453
|
-
</div>
|
|
454
|
-
</slot>
|
|
455
|
-
`}renderExpandButton(){return v.html`<md-button
|
|
456
|
-
circle
|
|
457
|
-
size="24"
|
|
458
|
-
@button-click=${this._handleExpand}
|
|
459
|
-
@click=${this.stopEventPropagation}
|
|
460
|
-
?disabled=${this.disabled}
|
|
461
|
-
ariaExpanded=${this.expanded}
|
|
462
|
-
ariaLabel=${this.expandLabel}
|
|
463
|
-
ariaLive="polite"
|
|
464
|
-
>
|
|
465
|
-
<md-icon
|
|
466
|
-
slot="icon"
|
|
467
|
-
class="expand-icon"
|
|
468
|
-
iconSet="momentumDesign"
|
|
469
|
-
name="arrow-right-bold"
|
|
470
|
-
size="14"
|
|
471
|
-
ariaHidden="true"
|
|
472
|
-
></md-icon>
|
|
473
|
-
</md-button>`}renderLeadingControls(){return v.html`<slot
|
|
474
|
-
name="leading-controls"
|
|
475
|
-
@click=${this.stopEventPropagation}
|
|
476
|
-
@keyup=${this.stopEventPropagation}
|
|
477
|
-
@keydown=${this.stopEventPropagation}
|
|
478
|
-
></slot>`}renderTrailingControls(){return v.html`<slot
|
|
479
|
-
name="trailing-controls"
|
|
480
|
-
@click=${this.stopEventPropagation}
|
|
481
|
-
@keyup=${this.stopEventPropagation}
|
|
482
|
-
@keydown=${this.stopEventPropagation}
|
|
483
|
-
></slot>`}stopArrowKeyEventPropagation(t){t instanceof KeyboardEvent&&(0,Ct.q)(t.key)&&t.stopPropagation()}isExpandCollapseKey(t){return t===xt.Uz.ArrowRight||t===xt.Uz.ArrowLeft}stopEventPropagation(t){(t instanceof KeyboardEvent&&((0,Ct.o)(t.key)||this.isExpandCollapseKey(t.key))||t instanceof MouseEvent)&&t.stopPropagation()}setExpanded(t){this.expanded=t,this.setAttribute("aria-expanded",String(this.expanded)),this.dispatchEvent(new CustomEvent("list-item-expanded",{bubbles:!0,detail:this.expanded}))}_handleExpand(t){t.stopPropagation(),this.expandable&&this.setExpanded(!this.expanded)}_handleListItemClick(t){const e=t.composedPath(),i=e[0];!e.includes(this.header)&&i!==this||this.disabled||this.dispatchEvent(new CustomEvent("list-item-click",{bubbles:!0}))}_handleArrowKeyExpand(t){t.key!==xt.Uz.ArrowRight||this.expanded?t.key===xt.Uz.ArrowLeft&&this.expanded&&(t.stopPropagation(),this.setExpanded(!1)):(t.stopPropagation(),this.setExpanded(!0))}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem"),this.setAttribute("tabindex","0"),this.addEventListener("click",this._handleListItemClick),this.expandable&&this.addEventListener("keydown",this._handleArrowKeyExpand)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleListItemClick),this.removeEventListener("keydown",this._handleArrowKeyExpand)}static get styles(){return Et}};$t([(0,g.property)({type:String,reflect:!0})],e.prototype,"label",void 0),$t([(0,g.property)({type:String,reflect:!0,attribute:"secondary-label"})],e.prototype,"secondaryLabel",void 0),$t([(0,g.property)({type:String,reflect:!0,attribute:"tertiary-label"})],e.prototype,"tertiaryLabel",void 0),$t([(0,g.property)({type:Boolean})],e.prototype,"expandable",void 0),$t([(0,g.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",void 0),$t([(0,g.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),$t([(0,g.property)({type:String})],e.prototype,"variant",void 0),$t([(0,g.property)({type:String,attribute:"expand-label"})],e.prototype,"expandLabel",void 0),$t([(0,g.query)(".header")],e.prototype,"header",void 0),e=$t([(0,g.customElement)("md-list-item-v2")],e),t.ELEMENT=e}(St||(St={}));var Tt,kt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends v.LitElement{constructor(){super(...arguments),this.gap="none",this.orientation="vertical"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","list"),this.addEventListener("keydown",this.handleKeyDown)}render(){return v.html` <slot @click=${this.handleMouseClick}></slot>`}get listItems(){return Array.from(this.assignedNodes).filter(t=>t instanceof St.ELEMENT&&!t.disabled)}handleMouseClick(t){const e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}getNewIndexBasedOnKey(t,e,i){switch(t){case xt.Uz.ArrowDown:return(e+1)%i;case xt.Uz.ArrowUp:return(e-1+i)%i;case xt.Uz.Home:return 0;case xt.Uz.End:return i-1;default:return}}handleKeyDown(t){var e;const i=this.getCurrentIndex(t.target),o=this.getNewIndexBasedOnKey(t.key,i,this.listItems.length);void 0!==o&&(null===(e=this.listItems[o])||void 0===e||e.focus(),this.resetTabIndexAndSetActiveTabIndex(o))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,i)=>{const o=t===i?"0":"-1";e.setAttribute("tabindex",o)})}static get styles(){return Et}};kt([(0,g.property)({type:String})],e.prototype,"gap",void 0),kt([(0,g.property)({type:String})],e.prototype,"orientation",void 0),kt([(0,g.queryAssignedNodes)()],e.prototype,"assignedNodes",void 0),e=kt([(0,g.customElement)("md-list-v2")],e),t.ELEMENT=e}(Tt||(Tt={}));var At=i(68490),It=i(66245),Lt=i(69788),Ot=i(61997),Mt=i(11323),Dt=i(84032),Pt=i(48171),Rt=i(32252),_t=i(23026),Bt=i(84205),zt=i(71128),Ft=i(15300),Nt=i(58287),Vt=i(81144),jt=i(32217);const Ut=v.css`:host{width:100%;height:100%;display:block;background-color:var(--md-textColor-primary);opacity:.5}:host([variant=circle]){border-radius:50%}:host([variant=rectangular]){border-radius:0}:host([variant=rounded]){border-radius:.5rem}:host([animation=none]){animation:none}:host([animation=pulse]){animation:skeleton-pulse 2s ease-in-out infinite}@keyframes skeleton-pulse{0%{opacity:.5}50%{opacity:.25}100%{opacity:.5}}`;var qt,Ht=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends v.LitElement{constructor(){super(...arguments),this.variant="rounded",this.animation="pulse"}render(){var t,e;return this.style.width=null!==(t=this.width)&&void 0!==t?t:this.style.width,this.style.height=null!==(e=this.height)&&void 0!==e?e:this.style.height,v.html`<slot></slot>`}static get styles(){return[Ut]}};Ht([(0,g.property)({type:String})],e.prototype,"width",void 0),Ht([(0,g.property)({type:String})],e.prototype,"height",void 0),Ht([(0,g.property)({reflect:!0})],e.prototype,"variant",void 0),Ht([(0,g.property)({reflect:!0})],e.prototype,"animation",void 0),e=Ht([(0,g.customElement)("md-skeleton")],e),t.ELEMENT=e}(qt||(qt={}));var Kt=i(25428),Wt=i(12176),Gt=i(77935),Yt=i(40428),Xt=i(16643),Zt=i(97737),Qt=i(50226),Jt=i(86610),te=i(1072),ee=i(49256),ie=i(20331),oe=i(81786),se=i(37719)},10984:(t,e,i)=>{i.d(e,{DatePickerWeek:()=>o}),i(16754);var o,s=i(31890),r=i(81625),a=i(4313),n=i(87161),l=i(70429),d=i(34363),h=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.startOfWeekDay=(0,r.tB)(),this.viewAnchorMonth=(0,r.tB)().month,this.filterParams=void 0,this.datePickerProps=void 0,this.renderDays=()=>[0,1,2,3,4,5,6].map(t=>{const e=(0,r.fi)(this.startOfWeekDay,t);return n.html`
|
|
354
|
+
`}};c([(0,h.property)({type:String})],e.prototype,"title",void 0),c([(0,h.property)({type:String})],e.prototype,"subtitle",void 0),c([(0,h.property)({type:String})],e.prototype,"id",void 0),c([(0,h.property)({type:String})],e.prototype,"info",void 0),c([(0,h.property)({type:String,attribute:"info-aria-label"})],e.prototype,"infoAriaLabel",void 0),c([(0,h.property)({type:String,attribute:"menu-aria-label"})],e.prototype,"menuAriaLabel",void 0),c([(0,h.property)({type:Array})],e.prototype,"menuOptions",void 0),e=c([(0,s.w)("md-card")],e),t.ELEMENT=e}(o||(o={}))},10984:(t,e,i)=>{i.d(e,{DatePickerWeek:()=>o}),i(16754);var o,s=i(31890),r=i(81625),a=i(4313),n=i(87161),l=i(70429),d=i(34363),h=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.startOfWeekDay=(0,r.tB)(),this.viewAnchorMonth=(0,r.tB)().month,this.filterParams=void 0,this.datePickerProps=void 0,this.renderDays=()=>[0,1,2,3,4,5,6].map(t=>{const e=(0,r.fi)(this.startOfWeekDay,t);return n.html`
|
|
484
355
|
<md-datepicker-day
|
|
485
356
|
.viewAnchorMonth=${this.viewAnchorMonth}
|
|
486
357
|
.day=${e}
|
|
487
358
|
.filterParams=${this.filterParams}
|
|
488
359
|
.datePickerProps=${this.datePickerProps}
|
|
489
360
|
></md-datepicker-day>
|
|
490
|
-
`})}static get styles(){return[a.A,d.A]}render(){return n.html` <div class="md-datepicker__week">${this.renderDays()}</div> `}};h([(0,l.property)({attribute:!1})],e.prototype,"startOfWeekDay",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"viewAnchorMonth",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"filterParams",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),e=h([(0,s.w)("md-datepicker-week")],e),t.ELEMENT=e}(o||(o={}))},11323:(t,e,i)=>{i.d(e,{MenuOverlay:()=>s});var o,s,r=i(90195),a=i(31890),n=i(28373),l=i(66677),d=i(22962),h=i.n(d),c=i(84157),p=i.n(c),u=i(68250),m=i.n(u),v=i(69371),y=i.n(v),b=i(4863),g=i(87161),f=i(70429),w=i(20291),x=i(47819),C=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},E=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function n(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((o=o.apply(t,e||[])).next())})};!function(t){t.small="260px",t.large="370px"}(o||(o={})),function(t){let e=class extends((0,n.d)(g.LitElement)){constructor(){super(...arguments),this._isOpen=!1,this.size="large",this.maxHeight="",this.customWidth="",this.showArrow=!1,this.disabled=!1,this.placement="bottom",this.allowHoverToggle=!1,this.ariaRole="menu",this.ariaLabel="",this.isDatePicker=!1,this.overlayOffset=15,this.keepOpenOnWindowBlur=!1,this.positioningStrategy=void 0,this.popperInstance=null,this.triggerElement=null,this.updateActiveMenuOverlayOpened=e=>{var i;this===e.target&&(null===(i=t.ELEMENT.activeOverlay)||void 0===i||i.push(e.target))},this.updateActiveMenuOverlayClosed=e=>{var i,o;const s=t.ELEMENT.activeOverlay.indexOf(e.target);this===e.target&&-1!==s&&(t.ELEMENT.activeOverlay.splice(s,1),t.ELEMENT.activeOverlay.length>0?(null===(i=t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1])||void 0===i||i.setFocusableElements(),null===(o=t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1])||void 0===o||o.focusOnNestedTrigger(this.triggerElement)):this.setFocusableElements())},this.handleTriggerClick=()=>{this.toggleOverlay()},this.setOverlay=(0,l.sg)(t=>{this.disabled||(this.isOpen=t)},100),this.expandPopup=()=>{this.setOverlay(!0)},this.collapsePopup=()=>{this.setOverlay(!1)},this.handleOutsideOverlayKeydown=e=>E(this,void 0,void 0,function*(){let i=!1;const o=e.composedPath();o.length&&(i=!!o.find(t=>t===this),!i)||!this.overlayContainer||e.code!==r.Uz.Escape||(e.preventDefault(),(t.ELEMENT.activeOverlay.length>0?t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1]:void 0)===this&&(this.isOpen=!1,yield this.updateComplete,this.focusOnTrigger()))}),this.handleTriggerKeyDown=t=>E(this,void 0,void 0,function*(){switch(t.code){case r.Uz.Space:case r.Uz.Enter:t.preventDefault(),this.toggleOverlay(),this.isOpen||(yield this.updateComplete,this.focusOnTrigger())}}),this.handleOutsideOverlayClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||this.preventClickOutside||(this.isOpen=!1))}}get isOpen(){return this._isOpen}set isOpen(t){const e=this._isOpen;this._isOpen=t,this.handleInstance(t),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",t),this.requestUpdate("isOpen",e)}static get styles(){return[x.A,g.css`
|
|
361
|
+
`})}static get styles(){return[a.A,d.A]}render(){return n.html` <div class="md-datepicker__week">${this.renderDays()}</div> `}};h([(0,l.property)({attribute:!1})],e.prototype,"startOfWeekDay",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"viewAnchorMonth",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"filterParams",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),e=h([(0,s.w)("md-datepicker-week")],e),t.ELEMENT=e}(o||(o={}))},11323:(t,e,i)=>{i.d(e,{MenuOverlay:()=>s});var o,s,r=i(90195),a=i(31890),n=i(28373),l=i(66677),d=i(22962),h=i.n(d),c=i(84157),p=i.n(c),u=i(68250),m=i.n(u),v=i(69371),y=i.n(v),b=i(4863),g=i(87161),f=i(70429),w=i(20291),x=i(47819),C=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},E=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function n(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((o=o.apply(t,e||[])).next())})};!function(t){t.small="260px",t.large="370px"}(o||(o={})),function(t){let e=class extends((0,n.d)(g.LitElement)){constructor(){super(...arguments),this._isOpen=!1,this.size="large",this.maxHeight="",this.customWidth="",this.showArrow=!1,this.disabled=!1,this.placement="bottom",this.allowHoverToggle=!1,this.ariaRole="menu",this.ariaLabel="",this.isDatePicker=!1,this.overlayOffset=15,this.keepOpenOnWindowBlur=!1,this.positioningStrategy=void 0,this.popperInstance=null,this.triggerElement=null,this._componentAddedAriaExpanded=!1,this.updateActiveMenuOverlayOpened=e=>{var i;this===e.target&&(null===(i=t.ELEMENT.activeOverlay)||void 0===i||i.push(e.target))},this.updateActiveMenuOverlayClosed=e=>{var i,o;const s=t.ELEMENT.activeOverlay.indexOf(e.target);this===e.target&&-1!==s&&(t.ELEMENT.activeOverlay.splice(s,1),t.ELEMENT.activeOverlay.length>0?(null===(i=t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1])||void 0===i||i.setFocusableElements(),null===(o=t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1])||void 0===o||o.focusOnNestedTrigger(this.triggerElement)):this.setFocusableElements())},this.handleTriggerClick=()=>{this.toggleOverlay()},this.setOverlay=(0,l.sg)(t=>{this.disabled||(this.isOpen=t)},100),this.expandPopup=()=>{this.setOverlay(!0)},this.collapsePopup=()=>{this.setOverlay(!1)},this.handleOutsideOverlayKeydown=e=>E(this,void 0,void 0,function*(){let i=!1;const o=e.composedPath();o.length&&(i=!!o.find(t=>t===this),!i)||!this.overlayContainer||e.code!==r.Uz.Escape||(e.preventDefault(),(t.ELEMENT.activeOverlay.length>0?t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1]:void 0)===this&&(this.isOpen=!1,yield this.updateComplete,this.focusOnTrigger()))}),this.handleTriggerKeyDown=t=>E(this,void 0,void 0,function*(){switch(t.code){case r.Uz.Space:case r.Uz.Enter:t.preventDefault(),this.toggleOverlay(),this.isOpen||(yield this.updateComplete,this.focusOnTrigger())}}),this.handleOutsideOverlayClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||this.preventClickOutside||(this.isOpen=!1))}}get isOpen(){return this._isOpen}set isOpen(t){const e=this._isOpen;this._isOpen=t,this.handleInstance(t),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",t),this.requestUpdate("isOpen",e)}static get styles(){return[x.A,g.css`
|
|
491
362
|
.md-menu-overlay .overlay-content {
|
|
492
363
|
max-height: var(--md-menu-overlay-max-height, calc(100vh - 48px));
|
|
493
364
|
width: var(--md-menu-overlay-width, 370px);
|
|
494
365
|
overflow-y: var(--md-menu-overlay-overflow-y, auto);
|
|
495
366
|
}
|
|
496
|
-
`]}updateCSSProperties(){const t=this.maxHeight||"calc(100vh - 48px)",e=this.isDatePicker?"visible":"auto";let i;i=this.customWidth?this.customWidth:"small"===this.size?o.small:o.large,this.style.setProperty("--md-menu-overlay-max-height",t),this.style.setProperty("--md-menu-overlay-width",i),this.style.setProperty("--md-menu-overlay-overflow-y",e)}firstUpdated(t){super.firstUpdated(t),this.updateCSSProperties()}updated(t){if(super.updated(t),(t.has("maxHeight")||t.has("customWidth")||t.has("size")||t.has("isDatePicker"))&&this.updateCSSProperties(),t.has("isOpen")){const e=t.get("isOpen");this.isOpen?(this.activateFocusTrap(),this.dispatchMenuOpen(),document.addEventListener("menu-item-click",this.handleTriggerClick),requestAnimationFrame(()=>{document.addEventListener("click",this.handleOutsideOverlayClick)}),this.updateTriggerElementAriaExpanded()):!0===e&&(this.deactivateFocusTrap(),this.dispatchMenuClose(),document.removeEventListener("menu-item-click",this.handleTriggerClick),document.removeEventListener("click",this.handleOutsideOverlayClick),this.updateTriggerElementAriaExpanded())}t.has("showArrow")&&this.arrow&&this.arrow.toggleAttribute("data-show",this.showArrow)}connectedCallback(){super.connectedCallback(),this.handleWindowBlurEvent=this.handleWindowBlurEvent.bind(this),window.addEventListener("blur",this.handleWindowBlurEvent),document.addEventListener("keydown",this.handleOutsideOverlayKeydown),this.addEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.addEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.updateComplete.then(()=>{this.handleTriggerSlotChange()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideOverlayClick),document.removeEventListener("keydown",this.handleOutsideOverlayKeydown),window.removeEventListener("blur",this.handleWindowBlurEvent),this.removeEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.removeEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.removeTriggerEventListeners()}checkIsInputField(t){var e;return"md-input"===(null===(e=null==t?void 0:t.tagName)||void 0===e?void 0:e.toLowerCase())}updateTriggerElementAriaExpanded(){this.triggerElement&&(this.isOpen?
|
|
367
|
+
`]}updateCSSProperties(){const t=this.maxHeight||"calc(100vh - 48px)",e=this.isDatePicker?"visible":"auto";let i;i=this.customWidth?this.customWidth:"small"===this.size?o.small:o.large,this.style.setProperty("--md-menu-overlay-max-height",t),this.style.setProperty("--md-menu-overlay-width",i),this.style.setProperty("--md-menu-overlay-overflow-y",e)}firstUpdated(t){super.firstUpdated(t),this.updateCSSProperties()}updated(t){if(super.updated(t),(t.has("maxHeight")||t.has("customWidth")||t.has("size")||t.has("isDatePicker"))&&this.updateCSSProperties(),t.has("isOpen")){const e=t.get("isOpen");this.isOpen?(this.activateFocusTrap(),this.dispatchMenuOpen(),document.addEventListener("menu-item-click",this.handleTriggerClick),requestAnimationFrame(()=>{document.addEventListener("click",this.handleOutsideOverlayClick)}),this.updateTriggerElementAriaExpanded()):!0===e&&(this.deactivateFocusTrap(),this.dispatchMenuClose(),document.removeEventListener("menu-item-click",this.handleTriggerClick),document.removeEventListener("click",this.handleOutsideOverlayClick),this.updateTriggerElementAriaExpanded())}t.has("showArrow")&&this.arrow&&this.arrow.toggleAttribute("data-show",this.showArrow)}connectedCallback(){super.connectedCallback(),this.handleWindowBlurEvent=this.handleWindowBlurEvent.bind(this),window.addEventListener("blur",this.handleWindowBlurEvent),document.addEventListener("keydown",this.handleOutsideOverlayKeydown),this.addEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.addEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.updateComplete.then(()=>{this.handleTriggerSlotChange()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideOverlayClick),document.removeEventListener("keydown",this.handleOutsideOverlayKeydown),window.removeEventListener("blur",this.handleWindowBlurEvent),this.removeEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.removeEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.removeTriggerEventListeners()}checkIsInputField(t){var e;return"md-input"===(null===(e=null==t?void 0:t.tagName)||void 0===e?void 0:e.toLowerCase())}updateTriggerElementAriaExpanded(){this.triggerElement&&(this.triggerElement.hasAttribute("aria-expanded")||this._componentAddedAriaExpanded?this._componentAddedAriaExpanded?this.isOpen?this.triggerElement.setAttribute("aria-expanded","true"):(this.triggerElement.removeAttribute("aria-expanded"),this._componentAddedAriaExpanded=!1):this.triggerElement.setAttribute("aria-expanded",this.isOpen?"true":"false"):(this.triggerElement.setAttribute("aria-expanded",this.isOpen?"true":"false"),this._componentAddedAriaExpanded=!0),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded",this.isOpen?"true":"false"))}handleTriggerSlotChange(){this.removeTriggerEventListeners(),this.setupTriggerEventListeners(),this.updateTriggerElementAriaExpanded(),this.popperInstance&&this.destroy(),this.isOpen&&(this.create(),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",this.isOpen))}removeTriggerEventListeners(){this.triggerElement&&(this.triggerElement.removeEventListener("click",this.handleTriggerClick),this.triggerElement.removeEventListener("keydown",this.handleTriggerKeyDown),this.allowHoverToggle&&(this.triggerElement.removeEventListener("mouseenter",this.expandPopup),this.triggerElement.removeEventListener("mouseleave",this.collapsePopup),this.overlayContainer.removeEventListener("mouseenter",this.expandPopup),this.overlayContainer.removeEventListener("mouseleave",this.collapsePopup)),this.triggerElement=null)}setupTriggerEventListeners(){if(this.trigger){if(this.triggerElement=this.trigger[0],!this.triggerElement)return;this.triggerElement.addEventListener("click",this.handleTriggerClick),this.allowHoverToggle&&(this.triggerElement.addEventListener("mouseenter",this.expandPopup),this.triggerElement.addEventListener("mouseleave",this.collapsePopup),this.overlayContainer.addEventListener("mouseenter",this.expandPopup),this.overlayContainer.addEventListener("mouseleave",this.collapsePopup)),this.arrow&&this.showArrow&&this.arrow.toggleAttribute("data-show",!0),this.checkIsInputField(this.triggerElement)||this.triggerElement.addEventListener("keydown",this.handleTriggerKeyDown),this.triggerElement.setAttribute("aria-haspopup","true")}}update(t){super.update(t)}dispatchMenuOpen(){this.dispatchEvent(new CustomEvent("menu-overlay-open",{composed:!0,bubbles:!0}))}dispatchMenuClose(){this.dispatchEvent(new CustomEvent("menu-overlay-close",{composed:!0,bubbles:!0}))}handleInstance(t){t?this.create():this.destroy()}create(){this.triggerElement&&(this.popperInstance=(0,b.createPopper)(this.triggerElement,this.overlayContainer,{onFirstUpdate:()=>E(this,void 0,void 0,function*(){var t;this.isOpen&&(null===(t=this.popperInstance)||void 0===t||t.update(),this.setFocusableElements(),yield this.updateComplete,this.focusInsideOverlay())}),placement:this.placement,strategy:this.positioningStrategy,modifiers:[...b.defaultModifiers,p(),m(),y(),h(),{name:"preventOverflow",options:{padding:16}},{name:"offset",options:{offset:({placement:t,reference:e})=>"left-end"===t||"right-end"===t?[e.height+e.y+3,14]:[0,this.overlayOffset]}},{name:"arrow",options:{element:this.arrow,padding:5}},{name:"computeStyles",options:{adaptive:!0}}]}))}destroy(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}toggleOverlay(){this.disabled||(this.isOpen=!this.isOpen)}focusOnTrigger(){requestAnimationFrame(()=>{var t;(null===(t=this.focusableElements)||void 0===t?void 0:t.length)&&this.focusableElements[0].focus()})}focusInsideOverlay(){this.focusableElements&&(this.focusableElements.length>1?this.setInitialFocus(1):this.focusableElements.length&&this.setInitialFocus())}focusOnNestedTrigger(t){var e;null===(e=this.setFocusOnTrigger)||void 0===e||e.call(this,t)}handleWindowBlurEvent(){this._isOpen&&!this.keepOpenOnWindowBlur&&(this.isOpen=!1)}render(){return g.html`
|
|
497
368
|
<div class="md-menu-overlay">
|
|
498
369
|
<slot @slotchange=${this.handleTriggerSlotChange} name="menu-trigger"></slot>
|
|
499
370
|
<div
|
|
@@ -594,7 +465,7 @@
|
|
|
594
465
|
<span>${t.name}</span>
|
|
595
466
|
<span>+${t.value}</span>
|
|
596
467
|
</div>
|
|
597
|
-
`}handleCountryChange(t){var e,i;t.detail.value&&(null===(e=t.detail.value)||void 0===e?void 0:e.id)?(this.countryCallingCode=t.detail.value.id,this.countryCode=null===(i=t.detail.value.id.split(",")[2])||void 0===i?void 0:i.trim()):(this.countryCode="US",this.countryCallingCode=""),this.dispatchEvent(new CustomEvent("country-code-changed",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get flagClassMap(){return{"new-momentum":this.newMomentum}}get containerClassMap(){return{"md-country-code-picker__container":!0,"show-flags":this.showFlags}}getFormatedCountryCallingCode(){var t;return{id:this.countryCallingCode,value:null===(t=this.countryCallingCode.split(",")[0])||void 0===t?void 0:t.trim()}}static get styles(){return[r.A,p.A]}render(){return l.html`
|
|
468
|
+
`}handleCountryChange(t){var e,i;t.detail.value&&(null===(e=t.detail.value)||void 0===e?void 0:e.id)?(this.countryCallingCode=t.detail.value.id,this.countryCode=null===(i=t.detail.value.id.split(",")[2])||void 0===i?void 0:i.trim()):(this.countryCode="US",this.countryCallingCode=""),this.dispatchEvent(new CustomEvent("country-code-changed",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get flagClassMap(){return{"new-momentum":this.newMomentum}}get containerClassMap(){return{"md-country-code-picker__container":!0,"show-flags":this.showFlags}}getFormatedCountryCallingCode(){var t;return{id:this.countryCallingCode,value:null===(t=this.countryCallingCode.split(",")[0])||void 0===t?void 0:t.trim()}}static get styles(){return[r.A,p.A]}get sortedCodeList(){return[...this.codeList].sort((t,e)=>t.name.localeCompare(e.name))}render(){return l.html`
|
|
598
469
|
<div class="${(0,h.classMap)(this.containerClassMap)}">
|
|
599
470
|
${this.showFlags?l.html`
|
|
600
471
|
<span class="flag-box ${(0,h.classMap)(this.flagClassMap)}">${this.getCountryFlag(this.countryCode)}</span>
|
|
@@ -613,7 +484,7 @@
|
|
|
613
484
|
?is-dropdown-arrow=${this.isDropdownArrow}
|
|
614
485
|
.clearAriaLabel="${this.clearAriaLabel}"
|
|
615
486
|
>
|
|
616
|
-
${(0,c.repeat)(this.
|
|
487
|
+
${(0,c.repeat)(this.sortedCodeList,t=>t.name,(t,e)=>this.countryCodeOptionTemplate(t,e))}
|
|
617
488
|
</md-combobox>
|
|
618
489
|
</div>
|
|
619
490
|
`}};u([(0,d.property)({type:String,reflect:!0})],e.prototype,"codePlaceholder",void 0),u([(0,d.property)({type:String,attribute:"country-calling-code"})],e.prototype,"countryCallingCode",void 0),u([(0,d.property)({type:Boolean,attribute:"show-flags"})],e.prototype,"showFlags",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"pill",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,d.property)({type:String})],e.prototype,"ariaLabel",void 0),u([(0,d.property)({type:String})],e.prototype,"clearAriaLabel",void 0),u([(0,d.property)({type:String})],e.prototype,"id",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"newMomentum",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"isDropdownArrow",void 0),u([(0,d.state)()],e.prototype,"countryCode",void 0),u([(0,d.state)()],e.prototype,"codeList",void 0),u([(0,d.query)("md-combobox")],e.prototype,"combobox",void 0),e=u([(0,s.w)("md-country-code-picker")],e),t.ELEMENT=e}(o||(o={}))},19026:(t,e,i)=>{i.d(e,{Link:()=>o});var o,s=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(20291),h=i(24889),c=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.color="",this.ariaLabel="",this.ariaRole="link",this.disabled=!1,this.inline=!1,this.inlineStyle=void 0,this.inverted=void 0,this.href="",this.tag="a",this.target="_self",this.size=void 0,this._tabIndex=0,this.autofocus=!1}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}static get styles(){return[r.A,h.A]}firstUpdated(){this.autofocus&&requestAnimationFrame(()=>{this.focus()})}focus(){var t;null===(t=this.linkRef)||void 0===t||t.focus()}blur(){var t;null===(t=this.linkRef)||void 0===t||t.blur()}get linkClassNamesInfo(){return{[`md-link--${this.color}`]:this.color,"md-link--inline":this.inline,[`md-link--inline-style-${this.inlineStyle}`]:!!this.inlineStyle,[`${this.size}`]:!!this.size,inverted:!0===this.inverted,disabled:this.disabled}}get linkElement(){switch(this.tag){case"div":return a.html`
|
|
@@ -721,7 +592,7 @@
|
|
|
721
592
|
aria-live=${this.ariaLive}
|
|
722
593
|
role="alert"
|
|
723
594
|
>
|
|
724
|
-
|
|
595
|
+
${this.messageType?a.html`<md-icon name="${this.getIconName()}" size="14" iconSet="momentumDesign"></md-icon>`:a.nothing}
|
|
725
596
|
<slot>${this.message}</slot>
|
|
726
597
|
</div>
|
|
727
598
|
`}};h([(0,n.property)({type:String})],e.prototype,"message",void 0),h([(0,n.property)({type:String})],e.prototype,"messageType",void 0),h([(0,n.property)({type:String})],e.prototype,"id",void 0),h([(0,n.property)({type:String})],e.prototype,"ariaLive",void 0),e=h([(0,s.w)("md-help-text")],e),t.ELEMENT=e}(o||(o={}))},20291:t=>{t.exports=s},20331:(t,e,i)=>{i.d(e,{ToggleSwitch:()=>u}),i(6396);var o=i(3001),s=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(20291),h=i(1564),c=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const p="md-toggle-switch__accessible-description";var u;!function(t){let e=class extends((0,o.yC)(a.LitElement)){constructor(){super(...arguments),this.htmlId="",this.label="toggle",this.description=void 0,this.checked=!1,this.disabled=!1,this.small=!1,this.smaller=!1,this.alignLabel="right",this.autofocus=!1}handleClick(){this.disabled||(this.checked=!this.checked)}get toggleSwitchClassMap(){return{"md-toggle-switch--small":this.small,"md-toggle-switch--smaller":this.smaller}}switchTemplate(){return"left"===this.alignLabel?a.html`
|
|
@@ -1120,7 +991,7 @@
|
|
|
1120
991
|
height: ${this.containerHeight};
|
|
1121
992
|
}
|
|
1122
993
|
</style>
|
|
1123
|
-
`}disconnectedCallback(){var t;super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),null===(t=this.listContainer)||void 0===t||t.removeEventListener("keydown",this.handleKeyDown)}firstUpdated(t){var e;super.firstUpdated(t),null===(e=this.listContainer)||void 0===e||e.addEventListener("keydown",this.handleKeyDown)}willUpdate(t){var e;null===(e=super.willUpdate)||void 0===e||e.call(this,t),t.has("value")&&(void 0!==t.get("value")||this.value.length>0)&&(this.selectedItemsIds=this.value),t.has("selectAllItems")&&this.selectAllItems&&(this.selectedItemsIds=this.items.filter(t=>t&&t.id&&!this.disabledItems.includes(t.id)).map(t=>t.id)),t.has("focusReset")&&this.focusReset&&(this.activeId="")}updated(t){super.updated(t),t.has("value")&&(void 0!==t.get("value")||this.value.length>0)&&this.updateSelectedState(),t.has("selectAllItems")&&this.selectAllItems&&(this.updateSelectedState(),this.notifySelectedChange())}setCheckboxAttributes(t,e){var i,o,s,r;!t||(null===(i=e.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))&&"true"===(null===(o=e.firstElementChild)||void 0===o?void 0:o.getAttribute("aria-disabled"))?null===(r=e.querySelector("md-checkbox"))||void 0===r||r.removeAttribute("checked"):null===(s=e.querySelector("md-checkbox"))||void 0===s||s.setAttribute("checked","true")}updateWrapperAttributes(t,e){this.isMulti?this.setCheckboxAttributes(e,t):t.classList.toggle("selected",e),t.setAttribute("selected",e.toString()),t.setAttribute("aria-selected",e.toString()),t.setAttribute("tabindex",e?"0":"-1")}updateSelectedState(){var e;Array.from((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".default-wrapper"))||[]).forEach(e=>{var i,o;const s=this.selectedItemsIds.some(i=>e.id===`${t.prefixId}${i}`);this.updateWrapperAttributes(e,s),this.groupOnMultiSelect&&this.value.length>0&&this.items.length!==this.value.length&&e.id===`${t.prefixId}${this.lastSelectedIdByOrder}`?e.classList.add("selected-border-bottom"):e.classList.remove("selected-border-bottom"),e.id===`${t.prefixId}${this.activeId}`?(e.setAttribute("tabindex","0"),e.focus()):e.setAttribute("tabindex","-1"),""==this.activeId&&e.id===`${t.prefixId}${this.value[0]}`&&e.setAttribute("tabindex","0"),(null===(i=e.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))||"true"===(null===(o=e.firstElementChild)||void 0===o?void 0:o.getAttribute("aria-disabled"))?(e.setAttribute("disabled",""),e.setAttribute("aria-disabled","true")):(e.removeAttribute("disabled"),e.removeAttribute("aria-disabled"))})}findClickedItem(t){var e;const i=Array.from((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".default-wrapper"))||[]),o=t.composedPath(),s=i.find(t=>o.includes(t));if(s)return(null==s?void 0:s.hasAttribute("disabled"))||"true"===(null==s?void 0:s.getAttribute("aria-disabled"))?0:s}isNextElemenentStatusIndicator(t){return(this.isLoading||this.isError)&&t===this.items.length-2}updateItemForMultiSelect(t){const e=this.selectedItemsIds.indexOf(t);-1===e?(this.selectedItemsIds.push(this.activeId),this.selectedItemsIds.length===this.items.length-this.disabledItems.length&&(this.selectAllItems=!0)):(this.selectedItemsIds.splice(e,1),this.selectAllItems=!1)}updateItemSelection(t){t&&(this.activeId=t.id.substring(t.id.indexOf("-")+1),this.isMulti?this.updateItemForMultiSelect(this.activeId):this.selectedItemsIds=[this.activeId],this.updateSelectedState(),this.notifySelectedChange())}handleClick(t){t.preventDefault(),this.isUserNavigated=!1;const e=this.findClickedItem(t);e&&(this.scrollIndex=parseInt(e.getAttribute("index")||"0"),this.updateItemSelection(e))}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selectedItemsIds},bubbles:!0,composed:!0}))}getActiveDescendant(){return this.activeId?`${t.prefixId}${this.activeId}`:this.value?`${t.prefixId}${this.value[0]}`:""}render(){return l.html`
|
|
994
|
+
`}disconnectedCallback(){var t;super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),null===(t=this.listContainer)||void 0===t||t.removeEventListener("keydown",this.handleKeyDown)}firstUpdated(t){var e;super.firstUpdated(t),null===(e=this.listContainer)||void 0===e||e.addEventListener("keydown",this.handleKeyDown)}willUpdate(t){var e;null===(e=super.willUpdate)||void 0===e||e.call(this,t),t.has("value")&&(void 0!==t.get("value")||this.value.length>0)&&(this.selectedItemsIds=this.value),t.has("selectAllItems")&&this.selectAllItems&&(this.selectedItemsIds=this.items.filter(t=>t&&t.id&&!this.disabledItems.includes(t.id)).map(t=>t.id)),t.has("focusReset")&&this.focusReset&&(this.activeId="")}updated(t){super.updated(t),t.has("value")&&(void 0!==t.get("value")||this.value.length>0)&&this.updateSelectedState(),t.has("selectAllItems")&&this.selectAllItems&&(this.updateSelectedState(),this.notifySelectedChange())}setCheckboxAttributes(t,e){var i,o,s,r;!t||(null===(i=e.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))&&"true"===(null===(o=e.firstElementChild)||void 0===o?void 0:o.getAttribute("aria-disabled"))?null===(r=e.querySelector("md-checkbox"))||void 0===r||r.removeAttribute("checked"):null===(s=e.querySelector("md-checkbox"))||void 0===s||s.setAttribute("checked","true")}updateWrapperAttributes(t,e){this.isMulti?this.setCheckboxAttributes(e,t):t.classList.toggle("selected",e),t.setAttribute("selected",e.toString()),t.setAttribute("aria-selected",e.toString()),t.setAttribute("tabindex",e?"0":"-1")}updateSelectedState(){var e;Array.from((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".default-wrapper"))||[]).forEach(e=>{var i,o;const s=this.selectedItemsIds.some(i=>e.id===`${t.prefixId}${i}`);this.updateWrapperAttributes(e,s),this.groupOnMultiSelect&&this.value.length>0&&this.items.length!==this.value.length&&e.id===`${t.prefixId}${this.lastSelectedIdByOrder}`?e.classList.add("selected-border-bottom"):e.classList.remove("selected-border-bottom"),e.id===`${t.prefixId}${this.activeId}`?(e.setAttribute("tabindex","0"),e.focus()):e.setAttribute("tabindex","-1"),""==this.activeId&&e.id===`${t.prefixId}${this.value[0]}`&&e.setAttribute("tabindex","0"),(null===(i=e.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))||"true"===(null===(o=e.firstElementChild)||void 0===o?void 0:o.getAttribute("aria-disabled"))?(e.setAttribute("disabled",""),e.setAttribute("aria-disabled","true")):(e.removeAttribute("disabled"),e.removeAttribute("aria-disabled"))})}findClickedItem(t){var e;const i=Array.from((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".default-wrapper"))||[]),o=t.composedPath(),s=i.find(t=>o.includes(t));if(s)return(null==s?void 0:s.hasAttribute("disabled"))||"true"===(null==s?void 0:s.getAttribute("aria-disabled"))?0:s}isNextElemenentStatusIndicator(t){return(this.isLoading||this.isError)&&t===this.items.length-2}updateItemForMultiSelect(t){const e=this.selectedItemsIds.indexOf(t);-1===e?(this.selectedItemsIds.push(this.activeId),this.selectedItemsIds.length===this.items.length-this.disabledItems.length&&(this.selectAllItems=!0)):(this.selectedItemsIds.splice(e,1),this.selectAllItems=!1)}updateItemSelection(t){t&&(this.activeId=t.id.substring(t.id.indexOf("-")+1),this.isMulti?this.updateItemForMultiSelect(this.activeId):this.selectedItemsIds=[this.activeId],this.updateSelectedState(),this.notifySelectedChange())}handleClick(t){t.preventDefault(),this.isUserNavigated=!1;const e=this.findClickedItem(t);e&&(this.scrollIndex=parseInt(e.getAttribute("index")||"0"),this.updateItemSelection(e))}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selectedItemsIds},bubbles:!0,composed:!0}))}getActiveDescendant(){return this.activeId?`${t.prefixId}${this.activeId}`:this.value&&this.value.length>0&&this.value[0]?`${t.prefixId}${this.value[0]}`:""}render(){return l.html`
|
|
1124
995
|
${this.getStyles()}
|
|
1125
996
|
<div
|
|
1126
997
|
class="md-advance-list-wrapper virtual-scroll"
|
|
@@ -1268,7 +1139,7 @@
|
|
|
1268
1139
|
<div class="md-accordion" part="accordion">
|
|
1269
1140
|
<slot name="accordion-item"></slot>
|
|
1270
1141
|
</div>
|
|
1271
|
-
`}};c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"multiple",void 0),c([(0,d.property)({type:Boolean,attribute:"suppress-container-focus"})],e.prototype,"suppressContainerFocus",void 0),c([(0,d.query)('slot[name="accordion-item"]')],e.prototype,"accordionItemSlotElement",void 0),e=c([(0,a.w)("md-accordion")],e),t.ELEMENT=e}(o||(o={}))},37719:(t,e,i)=>{i.d(e,{ThemeManager:()=>s,registerThemeManagerGlobally:()=>a,themeManager:()=>r});var o=i(85314);class s{get isMomentumV2Enabled(){return"momentumV2"===this.themeName}constructor(t){this.isDarkMode=!1,this.themeName="lumos",this.isVisualRebrandEnabled=!1,this.isMomentumAvatarEnabled=!1,(0,o.makeObservable)(this,{isDarkMode:o.observable,themeName:o.observable,isVisualRebrandEnabled:o.observable,isMomentumAvatarEnabled:o.observable,isMomentumV2Enabled:o.computed,setDarkMode:o.action,setThemeName:o.action,setVisualRebrandEnabled:o.action,setMomentumAvatar:o.action,update:o.action}),t&&this.update(t)}update(t){void 0!==t.isDarkMode&&(this.isDarkMode=t.isDarkMode),void 0!==t.themeName&&(this.themeName=t.themeName),void 0!==t.isVisualRebrandEnabled&&(this.isVisualRebrandEnabled=t.isVisualRebrandEnabled),void 0!==t.isMomentumAvatarEnabled&&(this.isMomentumAvatarEnabled=t.isMomentumAvatarEnabled)}setDarkMode(t){this.isDarkMode=t}setThemeName(t){this.themeName=t}setVisualRebrandEnabled(t){this.isVisualRebrandEnabled=t}setMomentumAvatar(t){this.isMomentumAvatarEnabled=t}}const r=new s;function a(t="MomentumUIThemeManager",e=r){"undefined"!=typeof globalThis&&(globalThis[t]=e),"undefined"!=typeof window&&(window[t]=e),void 0!==i.g&&(i.g[t]=e)}},38028:(t,e,i)=>{i.d(e,{Avatar:()=>o}),i(61200),i(69788),i(15300);var o,s=i(31890),r=i(26283),a=i(4313),n=i(87161),l=i(70429),d=i(85125),h=i(20291),c=i(10318),p=i(89756),u=i(38923),m=i(7292),v=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends n.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.avatarStyle="default",this.state="rest",this.imageLoaded=!1,this.imageErrored=!1,this.presenceColor="",this.presenceIcon="",this.iconNameMap={"channel-chat":"chat-filled","channel-chat-outbound":"chat-outbound-filled","channel-social":"sms-message-filled","channel-sms-inbound":"sms-filled","channel-sms-outbound":"sms-outgoing-filled","channel-email-inbound":"email-filled","channel-email-outbound":"email-outgoing-filled","channel-call":"handset-filled","channel-call-inbound":"incoming-call-legacy-filled","channel-callback":"outgoing-call-legacy-filled","channel-headset":"headset-filled","channel-campaign":"campaign-management-bold","channel-emoji":"emoji-happy-filled","channel-webex":"webex-app-icon-color-container","channel-fb-messenger":"social-fbmessenger-color","channel-facebook":"social-facebook-color","channel-apple-chat":"apple-business-chat-color","channel-line":"social-line-color","channel-twitter-x":"social-x","channel-viber":"social-viber-color","channel-whats-app":"social-whatsapp-color","channel-we-chat":"social-wechat-color","channel-spam":"participant-unknown-bold","channel-monitoring":"monitoring-bold"}}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}static get styles(){return[a.A,m.A]}isPresenceType(t){return u.e.includes(t)}firstUpdated(){const t=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(t){const{presenceColor:e,presenceIcon:i}=(0,u.E)(t,this.failurePresence,this.newMomentum);this.presenceColor=e,this.presenceIcon=i}}willUpdate(t){var e;null===(e=super.willUpdate)||void 0===e||e.call(this,t);const i=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(i&&(t.has("type")||t.has("presenceType")||t.has("newMomentum"))){const{presenceColor:t,presenceIcon:e}=(0,u.E)(i,this.failurePresence,this.newMomentum);this.presenceColor=t,this.presenceIcon=e}}updated(t){super.updated(t),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,[`md-avatar--${this.color}`]:!!this.color,active:"active"===this.state})}get avatarLetterClassMap(){return{"md-decrypting":this.decrypting,[`md-avatar--${this.color}`]:this.color,"new-momentum":this.newMomentum,active:"active"===this.state}}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"}getIconName(t){return this.iconNameMap[t]||""}get chatIconSize(){return this.iconSize}get presenceSize(){return this.size<=24?10.5:this.size<=32?14:this.size<=48?13.94:this.size<=64?18.58:this.size<=72?20.9:this.size<=88?25.55:36}get iconSize(){return 24===this.size?"16":28===this.size?"18":32===this.size?"20":36===this.size?"22":40===this.size?"24":48===this.size?"28":56===this.size?"32":64===this.size?"36":72===this.size?"40":Math.round(this.size/1.7).toString()}get renderIsTyping(){return"typing"===this.type||this.typing?n.html` <md-loading></md-loading> `:n.nothing}get avatarLetter(){return this.title?n.html`
|
|
1142
|
+
`}};c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"multiple",void 0),c([(0,d.property)({type:Boolean,attribute:"suppress-container-focus"})],e.prototype,"suppressContainerFocus",void 0),c([(0,d.query)('slot[name="accordion-item"]')],e.prototype,"accordionItemSlotElement",void 0),e=c([(0,a.w)("md-accordion")],e),t.ELEMENT=e}(o||(o={}))},37719:(t,e,i)=>{i.d(e,{ThemeManager:()=>s,registerThemeManagerGlobally:()=>a,themeManager:()=>r});var o=i(85314);class s{get isMomentumV2Enabled(){return"momentumV2"===this.themeName}constructor(t){this.isDarkMode=!1,this.themeName="lumos",this.isVisualRebrandEnabled=!1,this.isMomentumAvatarEnabled=!1,(0,o.makeObservable)(this,{isDarkMode:o.observable,themeName:o.observable,isVisualRebrandEnabled:o.observable,isMomentumAvatarEnabled:o.observable,isMomentumV2Enabled:o.computed,setDarkMode:o.action,setThemeName:o.action,setVisualRebrandEnabled:o.action,setMomentumAvatar:o.action,update:o.action}),t&&this.update(t)}update(t){void 0!==t.isDarkMode&&(this.isDarkMode=t.isDarkMode),void 0!==t.themeName&&(this.themeName=t.themeName),void 0!==t.isVisualRebrandEnabled&&(this.isVisualRebrandEnabled=t.isVisualRebrandEnabled),void 0!==t.isMomentumAvatarEnabled&&(this.isMomentumAvatarEnabled=t.isMomentumAvatarEnabled)}setDarkMode(t){this.isDarkMode=t}setThemeName(t){this.themeName=t}setVisualRebrandEnabled(t){this.isVisualRebrandEnabled=t}setMomentumAvatar(t){this.isMomentumAvatarEnabled=t}}const r=new s;function a(t="MomentumUIThemeManager",e=r){"undefined"!=typeof globalThis&&(globalThis[t]=e),"undefined"!=typeof window&&(window[t]=e),void 0!==i.g&&(i.g[t]=e)}},38028:(t,e,i)=>{i.d(e,{Avatar:()=>o}),i(61200),i(69788),i(15300);var o,s=i(31890),r=i(26283),a=i(4313),n=i(87161),l=i(70429),d=i(85125),h=i(20291),c=i(10318),p=i(89756),u=i(38923),m=i(7292),v=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends n.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.avatarStyle="default",this.state="rest",this.imageLoaded=!1,this.imageErrored=!1,this.presenceColor="",this.presenceIcon="",this.iconNameMap={"channel-chat":"chat-filled","channel-chat-outbound":"chat-outbound-filled","channel-social":"sms-message-filled","channel-sms-inbound":"sms-filled","channel-sms-outbound":"sms-outgoing-filled","channel-email-inbound":"email-filled","channel-email-outbound":"email-outgoing-filled","channel-call":"handset-filled","channel-call-inbound":"incoming-call-legacy-filled","channel-callback":"outgoing-call-legacy-filled","channel-callback-v2":"outgoing-call-legacy-bold","channel-headset":"headset-filled","channel-campaign":"campaign-management-bold","channel-emoji":"emoji-happy-filled","channel-webex":"webex-app-icon-color-container","channel-fb-messenger":"social-fbmessenger-color","channel-facebook":"social-facebook-color","channel-apple-chat":"apple-business-chat-color","channel-line":"social-line-color","channel-twitter-x":"social-x","channel-viber":"social-viber-color","channel-whats-app":"social-whatsapp-color","channel-we-chat":"social-wechat-color","channel-spam":"participant-unknown-bold","channel-monitoring":"monitoring-bold","channel-work-item":"custom-task-ind-regular"}}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}static get styles(){return[a.A,m.A]}isPresenceType(t){return u.e.includes(t)}firstUpdated(){const t=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(t){const{presenceColor:e,presenceIcon:i}=(0,u.E)(t,this.failurePresence,this.newMomentum);this.presenceColor=e,this.presenceIcon=i}}willUpdate(t){var e;null===(e=super.willUpdate)||void 0===e||e.call(this,t);const i=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(i&&(t.has("type")||t.has("presenceType")||t.has("newMomentum"))){const{presenceColor:t,presenceIcon:e}=(0,u.E)(i,this.failurePresence,this.newMomentum);this.presenceColor=t,this.presenceIcon=e}}updated(t){super.updated(t),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,[`md-avatar--${this.color}`]:!!this.color,active:"active"===this.state})}get avatarLetterClassMap(){return{"md-decrypting":this.decrypting,[`md-avatar--${this.color}`]:this.color,"new-momentum":this.newMomentum,active:"active"===this.state}}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"}getIconName(t){return this.iconNameMap[t]||""}get chatIconSize(){return this.iconSize}get presenceSize(){return this.size<=24?10.5:this.size<=32?14:this.size<=48?13.94:this.size<=64?18.58:this.size<=72?20.9:this.size<=88?25.55:36}get iconSize(){return 24===this.size?"16":28===this.size?"18":32===this.size?"20":36===this.size?"22":40===this.size?"24":48===this.size?"28":56===this.size?"32":64===this.size?"36":72===this.size?"40":Math.round(this.size/1.7).toString()}get renderIsTyping(){return"typing"===this.type||this.typing?n.html` <md-loading></md-loading> `:n.nothing}get avatarLetter(){return this.title?n.html`
|
|
1272
1143
|
<span class="md-avatar__letter ${(0,d.classMap)(this.avatarLetterClassMap)}">
|
|
1273
1144
|
${this.pretifyTitle}
|
|
1274
1145
|
<slot></slot>
|
|
@@ -1373,11 +1244,11 @@
|
|
|
1373
1244
|
</table>
|
|
1374
1245
|
`:a.html` <p>${this.nodata}</p> `}
|
|
1375
1246
|
</div>
|
|
1376
|
-
`}};p([(0,n.property)({type:String})],e.prototype,"tabledata",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"zebra",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"clean",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"sorting",void 0),p([(0,n.property)({type:String})],e.prototype,"nodata",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"stickheader",void 0),p([(0,n.property)({type:String})],e.prototype,"label",void 0),p([(0,n.property)({type:Boolean,attribute:"no-borders"})],e.prototype,"noBorders",void 0),p([(0,n.property)({type:String})],e.prototype,"format",void 0),p([(0,n.property)({type:Array})],e.prototype,"warning",void 0),p([(0,n.property)({type:Array})],e.prototype,"errors",void 0),p([(0,n.state)()],e.prototype,"sort",void 0),p([(0,n.state)()],e.prototype,"csvData",void 0),p([(0,n.queryAll)('.md-table__body tr[role="row"]')],e.prototype,"rowTable",void 0),e=p([(0,s.w)("md-table")],e),t.ELEMENT=e}(o||(o={}))},41891:t=>{t.exports=x},45001:t=>{t.exports=g},45629:(t,e,i)=>{i.d(e,{ButtonGroup:()=>o});var o,s=i(90195),r=i(3001),a=i(4313),n=i(87161),l=i(70429),d=i(75799),h=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,r.TS)((0,r.yC)(n.LitElement))){constructor(){super(...arguments),this.active=0,this.tabIndex=0,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get slotElement(){return this.buttonSlot}static get styles(){return[a.A,d.A]}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","group")}setButtonTabIndex(){this.slotted.forEach(t=>t.tabIndex=-1)}updated(t){super.updated(t),t.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(t){var e,i;const o=this.findSelectedBtnIndex();-1!==o&&o!==t&&(null===(e=this.slotted[o])||void 0===e||e.toggleAttribute("selected",!1)),null===(i=this.slotted[t])||void 0===i||i.toggleAttribute("selected",!0)}setFirstActive(){-1===this.findSelectedBtnIndex()&&this.setSelected(this.active)}findBtnIndex(t){const e=t.composedPath();return this.slotted.findIndex(t=>e.includes(t))}findSelectedBtnIndex(){return this.slotted.findIndex(t=>t.hasAttribute("selected"))}isBtnDisabled(t){return this.slotted[t].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(t,e=1){const i=this.getAvailableSelectedIndex(t,e);-1!==i&&(this.active=i,this.setSelected(i),this.notifySelectedChange())}getAvailableSelectedIndex(t,e=1){const i=this.slotted.length;for(let o=0,s=t;o<i;o+=1,s+=e){s<0?s=i-1:s>=i&&(s=0);const t=this.slotted[s];if(this.isFocusable(t))return s}return-1}isFocusable(t){return!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")}handleClick(t){const e=this.findBtnIndex(t);-1!==e&&(this.isBtnDisabled(e)||(this.active=e,this.setSelected(e),this.notifySelectedChange()))}handleKeyDown(t){const{code:e}=t;switch(e){case s.Uz.Enter:case s.Uz.Space:this.isBtnDisabled(this.active)||(this.setSelected(this.active),this.notifySelectedChange());break;case s.Uz.ArrowLeft:0===this.active?this.switchBtnOnArrowPress(this.slotted.length-1,-1):this.switchBtnOnArrowPress(this.active-1,-1);break;case s.Uz.ArrowRight:this.active===this.slotted.length-1?this.switchBtnOnArrowPress(0):this.switchBtnOnArrowPress(this.active+1)}}render(){return n.html`
|
|
1247
|
+
`}};p([(0,n.property)({type:String})],e.prototype,"tabledata",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"zebra",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"clean",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"sorting",void 0),p([(0,n.property)({type:String})],e.prototype,"nodata",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"stickheader",void 0),p([(0,n.property)({type:String})],e.prototype,"label",void 0),p([(0,n.property)({type:Boolean,attribute:"no-borders"})],e.prototype,"noBorders",void 0),p([(0,n.property)({type:String})],e.prototype,"format",void 0),p([(0,n.property)({type:Array})],e.prototype,"warning",void 0),p([(0,n.property)({type:Array})],e.prototype,"errors",void 0),p([(0,n.state)()],e.prototype,"sort",void 0),p([(0,n.state)()],e.prototype,"csvData",void 0),p([(0,n.queryAll)('.md-table__body tr[role="row"]')],e.prototype,"rowTable",void 0),e=p([(0,s.w)("md-table")],e),t.ELEMENT=e}(o||(o={}))},41891:t=>{t.exports=x},45001:t=>{t.exports=g},45629:(t,e,i)=>{i.d(e,{ButtonGroup:()=>o});var o,s=i(90195),r=i(3001),a=i(4313),n=i(87161),l=i(70429),d=i(75799),h=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,r.TS)((0,r.yC)(n.LitElement))){constructor(){super(...arguments),this.active=0,this.tabIndex=0,this.newMomentum=!1,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get slotElement(){return this.buttonSlot}static get styles(){return[a.A,d.A]}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","group")}setButtonTabIndex(){this.slotted.forEach(t=>t.tabIndex=-1)}updated(t){super.updated(t),t.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(t){var e,i;const o=this.findSelectedBtnIndex();-1!==o&&o!==t&&(null===(e=this.slotted[o])||void 0===e||e.toggleAttribute("selected",!1)),null===(i=this.slotted[t])||void 0===i||i.toggleAttribute("selected",!0)}setFirstActive(){-1===this.findSelectedBtnIndex()&&this.setSelected(this.active)}findBtnIndex(t){const e=t.composedPath();return this.slotted.findIndex(t=>e.includes(t))}findSelectedBtnIndex(){return this.slotted.findIndex(t=>t.hasAttribute("selected"))}isBtnDisabled(t){return this.slotted[t].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(t,e=1){const i=this.getAvailableSelectedIndex(t,e);-1!==i&&(this.active=i,this.setSelected(i),this.notifySelectedChange())}getAvailableSelectedIndex(t,e=1){const i=this.slotted.length;for(let o=0,s=t;o<i;o+=1,s+=e){s<0?s=i-1:s>=i&&(s=0);const t=this.slotted[s];if(this.isFocusable(t))return s}return-1}isFocusable(t){return!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")}handleClick(t){const e=this.findBtnIndex(t);-1!==e&&(this.isBtnDisabled(e)||(this.active=e,this.setSelected(e),this.notifySelectedChange()))}handleKeyDown(t){const{code:e}=t;switch(e){case s.Uz.Enter:case s.Uz.Space:this.isBtnDisabled(this.active)||(this.setSelected(this.active),this.notifySelectedChange());break;case s.Uz.ArrowLeft:0===this.active?this.switchBtnOnArrowPress(this.slotted.length-1,-1):this.switchBtnOnArrowPress(this.active-1,-1);break;case s.Uz.ArrowRight:this.active===this.slotted.length-1?this.switchBtnOnArrowPress(0):this.switchBtnOnArrowPress(this.active+1)}}render(){return n.html`
|
|
1377
1248
|
<div role="group" class="md-button-group" part="button-group">
|
|
1378
1249
|
<slot name="button"></slot>
|
|
1379
1250
|
</div>
|
|
1380
|
-
`}};h([(0,l.property)({type:Number,reflect:!0})],e.prototype,"active",void 0),h([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),h([(0,l.query)("slot[name='button']")],e.prototype,"buttonSlot",void 0),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=h([(0,r.wW)("md-button-group")],e),t.ELEMENT=e}(o||(o={}))},46312:(t,e,i)=>{i.d(e,{Coachmark:()=>o}),i(96798);var o,s=i(3001),r=i(31890),a=i(66677),n=i(4313),l=i(87161),d=i(70429),h=i(85125),c=i(21092),p=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,s.dY)(l.LitElement)){constructor(){super(...arguments),this.message="",this.actionname="Next",this.hidebutton=!1,this.placement="auto",this.show=!1,this.color="default",this.slotContent=null}connectedCallback(){super.connectedCallback()}notifyCoachCreate(){this.dispatchEvent(new CustomEvent("coach-create",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}coachAction(){this.dispatchEvent(new CustomEvent("coach-action",{bubbles:!0,composed:!0,detail:{popper:this.popper}}))}handleSlotChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent=t)}}update(t){var e;super.update(t),t.has("show")&&this.show&&(this.setFocusableElements(),(null===(e=this.focusableElements)||void 0===e?void 0:e.length)&&this.focusableElements[0].focus())}get coachWrapClassMap(){return{"md-coachmark--active":!!this.show}}get coachClassMap(){return{[`md-coachmark__popper--${this.placement}`]:!!this.placement,[`md-coachmark__popper--${this.color}`]:!!this.color}}static get styles(){return[n.A,c.A]}coachmarkContentTemplate(){return l.html`
|
|
1251
|
+
`}};h([(0,l.property)({type:Number,reflect:!0})],e.prototype,"active",void 0),h([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"newMomentum",void 0),h([(0,l.query)("slot[name='button']")],e.prototype,"buttonSlot",void 0),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=h([(0,r.wW)("md-button-group")],e),t.ELEMENT=e}(o||(o={}))},46312:(t,e,i)=>{i.d(e,{Coachmark:()=>o}),i(96798);var o,s=i(3001),r=i(31890),a=i(66677),n=i(4313),l=i(87161),d=i(70429),h=i(85125),c=i(21092),p=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,s.dY)(l.LitElement)){constructor(){super(...arguments),this.message="",this.actionname="Next",this.hidebutton=!1,this.placement="auto",this.show=!1,this.color="default",this.slotContent=null}connectedCallback(){super.connectedCallback()}notifyCoachCreate(){this.dispatchEvent(new CustomEvent("coach-create",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}coachAction(){this.dispatchEvent(new CustomEvent("coach-action",{bubbles:!0,composed:!0,detail:{popper:this.popper}}))}handleSlotChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent=t)}}update(t){var e;super.update(t),t.has("show")&&this.show&&(this.setFocusableElements(),(null===(e=this.focusableElements)||void 0===e?void 0:e.length)&&this.focusableElements[0].focus())}get coachWrapClassMap(){return{"md-coachmark--active":!!this.show}}get coachClassMap(){return{[`md-coachmark__popper--${this.placement}`]:!!this.placement,[`md-coachmark__popper--${this.color}`]:!!this.color}}static get styles(){return[n.A,c.A]}coachmarkContentTemplate(){return l.html`
|
|
1381
1252
|
<div class="md-coachmark__content">
|
|
1382
1253
|
${this.message?this.message:l.html` <slot name="coachmark-content" @slotchange=${this.handleSlotChange}></slot> `}
|
|
1383
1254
|
<div class="md-coachmark__action">
|
|
@@ -1443,17 +1314,17 @@
|
|
|
1443
1314
|
${this.finalTwentyFourFormat?l.nothing:this.generateAmPmComboBox()}
|
|
1444
1315
|
</div>
|
|
1445
1316
|
</div>
|
|
1446
|
-
`}};m([(0,d.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),m([(0,d.property)({type:Boolean,attribute:"twenty-four-hour-format",reflect:!0})],e.prototype,"twentyFourHourFormat",void 0),m([(0,d.property)({type:String})],e.prototype,"timeSpecificity",void 0),m([(0,d.property)({type:String})],e.prototype,"locale",void 0),m([(0,d.property)({type:String,reflect:!0})],e.prototype,"value",void 0),m([(0,d.property)({type:Boolean,attribute:"show-default-now-time"})],e.prototype,"showDefaultNowTime",void 0),m([(0,d.state)()],e.prototype,"finalTwentyFourFormat",void 0),m([(0,d.state)()],e.prototype,"timeObject",void 0),m([(0,d.state)()],e.prototype,"tabNext",void 0),m([(0,d.state)()],e.prototype,"timeValue",void 0),m([(0,d.state)()],e.prototype,"timeValidity",void 0),e=m([(0,s.w)("md-timepicker")],e),t.ELEMENT=e}(g||(g={}))},50226:(t,e,i)=>{i.d(e,{Tabs:()=>O}),i(61200),i(11323),i(83192);var o=i(90195),s=i(3001),r=i(66677),a=i(59164),n=i(4313),l=i(87161),d=i(54765),h=i(70429),c=i(85125),p=i(58175),u=i(10318),m=i(16968),v=i(41891),y=i.n(v),b=i(97103),g=i(2669),f=i(16643),w=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},x=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function n(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((o=o.apply(t,e||[])).next())})};const C="tab-more",E="more-menu-copy-",S="visibleToVisible",$="visibleToHidden",T="hiddenToVisible",k="hiddenToHidden",A="previous",I="next",L="fromMoreTabs";var O;!function(t){let e=class extends((0,s.UM)((0,s.Io)((0,s.TS)(l.LitElement)))){constructor(){super(...arguments),this.justified=!1,this.hugTabs=!1,this.overflowLabel="More Tabs",this.draggable=!1,this.direction="horizontal",this.moreItemsScrollLimit=Number.MAX_SAFE_INTEGER,this._selectedIndex=0,this.animation=100,this.ghostClass="",this.chosenClass="",this.forceFallback=!1,this.fallbackClass="",this.tabsId="",this.persistSelection=!1,this.compUniqueId="",this.type="line",this.newMomentum=!1,this.variant="ghost",this.scrollArrow=!1,this.leftArrowAriaLabel="Backward Button",this.rightArrowAriaLabel="Forward Button",this.size=28,this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1,this.isMoreTabMenuOpen=!1,this.isMoreTabMenuSelected=!1,this.isMoreTabMenuScrollable=!1,this.moreTabMenuOffsetWidth=0,this.moreTabMenuMaxHeight=null,this.tabsViewportDataList=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.noTabsVisible=!1,this.defaultTabsOrderArray=[],this.tabsOrderPrefsArray=[],this.isMoreTabTruncated=!1,this.showLeftArrow=!1,this.showRightArrow=!1,this.tabs=[],this.panels=[],this.tabsCopy=[],this.tabsHash={},this.tabsCopyHash={},this.tabsIdxHash={},this.tabsVisibleIdxHash={},this.tabsHiddenIdxHash={},this.visibleTabsSortableInstance=null,this.hiddenTabsSortableInstance=null,this.updateArrowsVisibility=()=>{this.tabsListElement&&requestAnimationFrame(()=>{const{scrollLeft:t,scrollWidth:e,clientWidth:i}=this.tabsListElement;this.showLeftArrow=t>0,this.showRightArrow=t+i<e-5})},this.handleOnDragEnd=t=>x(this,void 0,void 0,function*(){var e,i,o,s,r,a,n,l,d,h;t.stopPropagation();const c=t.oldIndex,p=t.newIndex,u=[...this.tabsFilteredAsVisibleList],m=[...this.tabsFilteredAsHiddenList],v=this.getDragDirection(t);if(void 0!==c&&void 0!==p){switch(v){case $:{null===(i=null===(e=this.hiddenTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t.item.id))||void 0===i||i.remove();const o=u[c],s=m.slice(-1)[0],r=p===this.tabsFilteredAsHiddenList.length?p-1:p;m.splice(r,0,o),m.pop();const a=u.filter(e=>e.id!==this.getNormalizedTabId(t.item.id));a.push(s),this.tabsFilteredAsVisibleList=[...a],this.tabsFilteredAsHiddenList=[...m];break}case S:{const t=u[c];u.splice(c,1),u.splice(p,0,t),this.tabsFilteredAsVisibleList=u,p===this.tabsFilteredAsVisibleList.length-1&&(null===(s=null===(o=this.visibleTabsContainerElement)||void 0===o?void 0:o.children[this.visibleTabsContainerElement.children.length-1])||void 0===s||s.remove());const e=this.visibleTabsContainerElement.children[c],i=this.visibleTabsContainerElement.children[p];if(!e||!i)return;null===(r=this.visibleTabsContainerElement)||void 0===r||r.replaceChild(i,e),null===(a=this.visibleTabsContainerElement)||void 0===a||a.insertBefore(e,i);break}case T:{null===(l=null===(n=this.visibleTabsContainerElement)||void 0===n?void 0:n.querySelector("#"+t.item.id))||void 0===l||l.remove();const e=m[c],i=u.slice(-1)[0];m.splice(c,1),m.splice(0,0,i);const o=p===this.tabsFilteredAsVisibleList.length?p-1:p;u.splice(o,0,e),u.pop(),this.tabsFilteredAsVisibleList=u,this.tabsFilteredAsHiddenList=m;break}case k:{const t=m[c];m.splice(c,1),m.splice(p,0,t),this.tabsFilteredAsHiddenList=m,p===this.tabsFilteredAsHiddenList.length-1&&(null===(h=null===(d=this.hiddenTabsContainerElement)||void 0===d?void 0:d.children[this.hiddenTabsContainerElement.children.length-1])||void 0===h||h.remove());break}}if(this.compUniqueId){const t=[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],e=t.findIndex(t=>t.selected);this.storeSelectedTabIndex(e),this.tabsOrderPrefsArray=t.map(t=>t.name),localStorage.setItem(this.compUniqueId,this.tabsOrderPrefsArray.join(","))}}})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){var e;if(-1===t)return;const i=this._selectedIndex;this._selectedIndex=t,i!==t&&(null===(e=this.tabs)||void 0===e?void 0:e.length)&&this.updateSelectedTab(t)}get isRtl(){return"rtl"===getComputedStyle(this).direction}generateOptions(){return{group:"shared",animation:10,swapThreshold:1,draggable:"md-tab",direction:this.direction,forceFallback:this.forceFallback,fallbackClass:this.fallbackClass,ghostClass:this.ghostClass,chosenClass:this.chosenClass,onEnd:this.handleOnDragEnd}}get currentTabsLayout(){return"horizontal"!==this.direction||this.scrollArrow?this.tabs:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList]}getCopyTabId(t){var e;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(E))?`${E}${t.id}`:t.id}getAriaControlId(t){var e,i;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(E))?`${E}${t.id}`:"tab_panel_"+(null===(i=t.id)||void 0===i?void 0:i.substring(4))}getTabIndex(t){var e,i;return this.isMoreTabMenuVisible&&0===this.getCurrentIndex(null==t?void 0:t.id)&&this.selected>(null===(e=this.tabsFilteredAsVisibleList)||void 0===e?void 0:e.length)-1||(null===(i=this.tabsFilteredAsVisibleList[this.selected])||void 0===i?void 0:i.id)===t.id?0:-1}getNormalizedTabId(t){return t.replace(E,"")}static get styles(){return[n.A,g.A]}ensureTabsUpdateComplete(t){return x(this,void 0,void 0,function*(){const e=t.map(t=>void 0!==t.updateComplete?t.updateComplete:null).filter(t=>null!==t);e.length&&(yield Promise.all(e))})}measureTabsOffsetWidth(){return this.justified||"vertical"===this.direction?this.tabs.map(t=>{t.setAttribute("measuringrealwidth","");const e=t.closable?t.offsetWidth+f.TAB_CROSS_WIDTH:t.offsetWidth;return t.removeAttribute("measuringrealwidth"),e}):this.tabs.map(t=>t.closable?t.offsetWidth+f.TAB_CROSS_WIDTH:t.offsetWidth)}updateIsMoreTabTruncated(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-menu-overlay__overflow-label");if(e){const t=e.scrollWidth>e.clientWidth;this.isMoreTabTruncated!=t&&(this.isMoreTabTruncated=t)}}measureHiddenTabsCopiesOffsetHeight(){return this.tabsCopy.map(t=>t.offsetHeight)}manageOverflow(){return x(this,void 0,void 0,function*(){var t,e;if("vertical"!==this.direction&&!this.scrollArrow){let i;i=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length?[...this.tabs]:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],i.forEach(t=>{var e,i,o,s,r,a;if((null===(e=t.children)||void 0===e?void 0:e.length)&&0===(null===(o=null===(i=t.children[0])||void 0===i?void 0:i.children)||void 0===o?void 0:o.length)){const e=null===(r=null===(s=null==t?void 0:t.querySelector("slot"))||void 0===s?void 0:s.assignedNodes({flatten:!0})[0])||void 0===r?void 0:r.cloneNode(!0);e&&(e.classList.add("tab-content"),null===(a=null==t?void 0:t.children[0])||void 0===a||a.appendChild(e))}});const o=i.length;if(this.tabsListElement&&o){const s=(null===(t=this.tabsSettingsElement)||void 0===t?void 0:t.offsetWidth)?this.tabsListElement.offsetWidth-(null===(e=this.tabsSettingsElement)||void 0===e?void 0:e.offsetWidth):this.tabsListElement.offsetWidth;yield this.ensureTabsUpdateComplete(this.tabs);const r=this.measureTabsOffsetWidth(),a=i.reduce((t,e,i)=>t+r[i],0);if(a){yield this.setupMoreTab();let t=!0;s<a&&(t=!1);const e=[];let n=0;i.forEach((i,a)=>{n+=r[a];const l=!t&&n+(a<o-1?this.moreTabMenuOffsetWidth:0)>s;e.push({isTabInViewportHidden:l,tabOffsetWidth:r[a]})}),this.tabsViewportDataList=e,this.tabsViewportDataList.forEach((t,e)=>this.tabs[e].viewportHidden=t.isTabInViewportHidden),this.isMoreTabMenuVisible=!!this.tabsViewportDataList.find(t=>t.isTabInViewportHidden),this.tabsFilteredAsVisibleList=i.filter((t,e)=>!this.tabsViewportDataList[e].isTabInViewportHidden),this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce((t,e,i)=>(t[e.id]=i,t),{}),this.tabsFilteredAsHiddenList=i.filter((t,e)=>this.tabsViewportDataList[e].isTabInViewportHidden),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce((t,e,i)=>(t[e.id]=i,t),{})}}this.updateIsMoreTabMenuSelected();const s=this.tabsFilteredAsHiddenList.find(t=>!t.disabled);this.updateHiddenIdPositiveTabIndex(s)}})}updateIsMoreTabMenuSelected(){this.isMoreTabMenuSelected=!!this.tabsFilteredAsHiddenList.find(t=>t.selected)}updateHiddenIdPositiveTabIndex(t){this.tabHiddenIdPositiveTabIndex=t?t.id:void 0}sortTabsAndPanes(){if(!this.tabsOrderPrefsArray.length)return;const t=(t,e)=>{var i,o;const s=null!==(i=t.getAttribute("name"))&&void 0!==i?i:"",r=null!==(o=e.getAttribute("name"))&&void 0!==o?o:"";return this.tabsOrderPrefsArray.indexOf(s)-this.tabsOrderPrefsArray.indexOf(r)};this.tabs.sort(t),this.panels.sort(t)}linkPanelsAndTabs(){return x(this,void 0,void 0,function*(){this.sortTabsAndPanes();const{tabs:t,panels:e}=this;if(0===t.length||0===e.length)return void console.warn("The tabs or panels count should't be equal zero.");t.length!==e.length&&console.warn(`The amount of tabs (${t.length}) doesn't match the amount of panels (${e.length}).`);const i="vertical"===this.direction,o=this.selectedIndex<0?0:this.selectedIndex;t.forEach((t,s)=>{const r=(0,a.O)("tabs"),n="tab_"+r,l="tab_panel_"+r;t.setAttribute("id",n),t.setAttribute("aria-controls",l),t.selected=o===s,t.newMomentum=this.newMomentum,t.type=this.type,t.variant=this.variant,t.size=this.newMomentum?this.size:void 0,this.scrollArrow&&(t.visibleTab=!0),t.vertical!==i&&(t.vertical=i),t.viewportHidden&&(i||this.scrollArrow)&&(t.viewportHidden=!1);const d=e[s];d?(d.setAttribute("id",l),d.setAttribute("aria-labelledby",n),d.selected=o===s,t.disabled&&(d.hidden=!0,d.selected=!1)):t.disabled=!0});let s=o;for(;s<t.length&&t[s].disabled;)s++;s=s===t.length?0:s,t[s].selected=!0,e[s].selected=!0,this.tabsHash=this.tabs.reduce((t,e)=>(t[e.id]=e,t),{}),this.tabsIdxHash=this.tabs.reduce((t,e,i)=>(t[e.id]=i,t),{})})}get slotItem(){return this.tabSlotElement}filterSlotted(){return this.tabSlotElement.assignedElements()}handleResize(t){var e;null===(e=super.handleResize)||void 0===e||e.call(this,t),this.manageOverflow(),this.updateIsMoreTabTruncated(),this.scrollArrow&&this.updateArrowsVisibility()}getDragDirection(t){return t.from===this.visibleTabsContainerElement&&t.to===this.hiddenTabsContainerElement?$:t.from===this.visibleTabsContainerElement&&t.to===this.visibleTabsContainerElement?S:t.from===this.hiddenTabsContainerElement&&t.to===this.visibleTabsContainerElement?T:t.from===this.hiddenTabsContainerElement&&t.to===this.hiddenTabsContainerElement?k:void 0}makeTabCopyFocus(t){t&&t.focus()}handleTabClick(t){const{id:e}=t.detail;this.handleNewSelectedTab(e)}handleNewSelectedTab(t,e=!0){const i=this.tabsHash[this.getNormalizedTabId(t)];if(i&&!i.disabled){const t=this.tabsIdxHash[i.id];-1!==t&&this.updateSelectedTab(t,e);{const t=this.tabsCopyHash[this.getCopyTabId(i)];t&&e&&this.makeTabCopyFocus(t),this.updateHiddenIdPositiveTabIndex(i)}}}handleTabCrossClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseEvent(t){var e,i;const o=this.tabsHash[this.getNormalizedTabId(t)];if(o&&!o.disabled&&("auto"===o.closable||"custom"===o.closable)){const o=this.tabsFilteredAsVisibleList.findIndex(e=>this.getNormalizedTabId(e.id)===this.getNormalizedTabId(t));this.tabsFilteredAsVisibleList=this.tabsFilteredAsVisibleList.filter(e=>this.getNormalizedTabId(e.id)!==this.getNormalizedTabId(t)),null===(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t))||void 0===i||i.remove(),0!==this.tabsFilteredAsHiddenList.length&&(this.tabsFilteredAsVisibleList.push(this.tabsFilteredAsHiddenList[0]),this.tabsFilteredAsHiddenList.splice(0,1)),0===this.tabsFilteredAsHiddenList.length&&(this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1),this.handleUpdatedSeletedTabAfterCross(o)}}handleUpdatedSeletedTabAfterCross(t){var e;let i=t;for(;i<this.tabsFilteredAsVisibleList.length&&(null===(e=this.tabsFilteredAsVisibleList[i])||void 0===e?void 0:e.disabled);)i++;if(void 0===this.tabsFilteredAsVisibleList[i]||t===this.tabsFilteredAsVisibleList.length)for(i=t-1;i>=0&&this.tabsFilteredAsVisibleList[i].disabled;)i--;if(-1!==i){const t=this.tabs.findIndex(t=>t.id===this.tabsFilteredAsVisibleList[i].id);this.updateSelectedTab(t)}else this.updateSelectedTab(i);this.noTabsVisible=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length,this.requestUpdate()}setSelectedAttribute(t,e,i=!1){e&&(e.selected=i),t&&(t.selected=i,i&&(this.isMoreTabMenuSelected=this.isTabInMoreMenu(t)),this.isTabInMoreMenu(t)&&(this.isMoreTabMenuSelected=!0))}isTabInMoreMenu(t){return void 0!==this.tabsFilteredAsHiddenList.find(e=>e.id===t.id)}updateSelectedTab(t,e=!0){const{tabs:i,panels:o}=this,s=this.tabs.findIndex(t=>t.hasAttribute("selected"));if(i&&o&&(this.setSelectedAttribute((0,r.Qx)(i,s),(0,r.Qx)(o,s),!1),this.setSelectedAttribute((0,r.Qx)(i,t),(0,r.Qx)(o,t),!0)),t>=0&&t<i.length){this.dispatchSelectedChangedEvent(t);const o=this.currentTabsLayout.findIndex(e=>e.id===i[t].id);this.changeSelectedTabIdx(o,e)}}dispatchSelectedChangedEvent(t){const e=this.currentTabsLayout,i=this.tabs[t].id;let o=e.findIndex(t=>t.id===i);-1===o&&(o=t);const s=[];e.forEach(t=>{s.push(t.name)}),this.dispatchEvent(new CustomEvent("selected-changed",{detail:{value:o,tabsOrder:s},composed:!0,bubbles:!0}))}changeSelectedTabIdx(t,e=!0){this.requestUpdate(),this.selected=t,this.updateComplete.then(()=>{var i,o;if(t<this.tabsFilteredAsVisibleList.length){if(e){const t=null===(i=this.visibleTabsContainerElement)||void 0===i?void 0:i.children[this.selected];null==t||t.focus()}}else{const t=this.selected-this.tabsFilteredAsVisibleList.length,i=null===(o=this.hiddenTabsContainerElement)||void 0===o?void 0:o.children[t];e&&this.moveFocusToTab(i);const s=this.tabsFilteredAsHiddenList[t];(null==s?void 0:s.disabled)||this.updateHiddenIdPositiveTabIndex(s)}}),this.updateIsMoreTabMenuSelected(),this.storeSelectedTabIndex(t)}storeSelectedTabIndex(t){this.persistSelection&&this.tabsId&&t>-1&&""!==this.tabsId.trim()&&sessionStorage.setItem(this.tabsId,`${t}`)}getCurrentIndex(t){var e,i,o;if(this.scrollArrow){const e=this.tabs.length;for(let i=0;i<e;i++)if(this.tabs[i].id===t)return i}const s=null!==(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.children.length)&&void 0!==i?i:0;for(let e=0;e<s;e++)if((null===(o=this.visibleTabsContainerElement)||void 0===o?void 0:o.children[e].id)===t)return e;return this.tabsVisibleIdxHash[t]}moveFocusToAdjacentTab(t,e){var i,o,s;const r=this.getCurrentIndex(t),a=this.slotItem.assignedElements();let n=0;if(this.scrollArrow){e===A?n=0===r?a.length-1:r-1:e===I&&(n=r===a.length-1?0:r+1),this.moveFocusToTab(a[n]);const t=a[n],o=t.getBoundingClientRect(),s=null===(i=this.tabsListElement)||void 0===i?void 0:i.getBoundingClientRect();return s&&(o.left>=s.left&&o.right<=s.right&&o.top>=s.top&&o.bottom<=s.bottom||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})),this.updateArrowsVisibility(),void(0,b.setTimeout)(()=>this.moveFocusToTab(a[n]),0)}const l=null===(o=this.visibleTabsContainerElement)||void 0===o?void 0:o.children,d=null!==(s=null==l?void 0:l.length)&&void 0!==s?s:0;l&&0!==d&&(e===A?n=0===r?d-1:r-1:e===I?n=r===d-1?0:r+1:e===L&&(n=this.selected>=d?0:this.selected),this.moveFocusToTab(l[n]))}moveFocusToTab(t){(0,b.setTimeout)(()=>null==t?void 0:t.focus(),0)}handleOverlayClose(){(0,b.setTimeout)(()=>{this.menuOverlayElement&&(this.menuOverlayElement.isOpen=!1)},0)}dispatchKeydownEvent(t,e){e&&this.dispatchEvent(new CustomEvent("tab-keydown",{detail:{id:e,key:t.code,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,srcEvent:t},bubbles:!0,composed:!0}))}handleTabKeydown(t){var e,i,s,r,a,n,l;const d=t.target;if(t.target!=this&&!this.tabs.find(t=>t.id===(null==d?void 0:d.id)))return!1;let h;if((null===(e=t.composedPath())||void 0===e?void 0:e.length)>0?h=t.composedPath()[0].id:t.originalTarget&&(h=t.originalTarget.id),!h)return;const c=this.getNormalizedTabId(h);this.dispatchKeydownEvent(t,c);const p=t.code,{shiftKey:u}=t,m=!!this.isMoreTabMenuVisible&&c===C,v=m&&this.isMoreTabMenuVisible?this.moreTabMenuElement:this.tabsHash[this.getNormalizedTabId(c)],y=!this.isMoreTabMenuVisible||v&&this.tabsVisibleIdxHash[v.id]>-1,b=!!this.isMoreTabMenuVisible&&v&&this.tabsHiddenIdxHash[v.id]>-1,g=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length-1:this.tabs.length-1,f=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length:-1,w=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length+this.tabsFilteredAsHiddenList.length-1:-1;switch(p){case o.Uz.Tab:m&&!this.isMoreTabMenuOpen&&u&&(t.preventDefault(),this.moveFocusToAdjacentTab(h,L));break;case o.Uz.End:m||(y?(t.preventDefault(),this.moveFocusToTab(null===(i=this.visibleTabsContainerElement)||void 0===i?void 0:i.children[(null===(s=this.tabsFilteredAsVisibleList)||void 0===s?void 0:s.length)-1])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(r=this.hiddenTabsContainerElement)||void 0===r?void 0:r.children[(null===(a=this.tabsFilteredAsHiddenList)||void 0===a?void 0:a.length)-1])));break;case o.Uz.Home:y?(t.preventDefault(),this.moveFocusToTab(null===(n=this.visibleTabsContainerElement)||void 0===n?void 0:n.children[0])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(l=this.hiddenTabsContainerElement)||void 0===l?void 0:l.children[0]));break;case o.Uz.ArrowLeft:m||(y||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,this.isRtl?I:A));break;case o.Uz.ArrowRight:m||(y||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,this.isRtl?A:I));break;case o.Uz.ArrowUp:if(m);else if(y&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(0===this.selected?g:this.selected-1);else if(b){t.preventDefault();const e=this.selected===f?w:this.selected-1;this.changeSelectedTabIdx(e)}break;case o.Uz.ArrowDown:if(m);else if(y&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(this.selected===g?0:this.selected+1);else if(b){t.preventDefault();const e=this.selected===w?f:this.selected+1;this.changeSelectedTabIdx(e)}break;case o.Uz.Enter:case o.Uz.NumpadEnter:case o.Uz.Space:if(m){const t=this.tabsFilteredAsHiddenList.filter(t=>!t.disabled),e=t.length?t.find(t=>t.selected)||t[0]:void 0;if(this.updateHiddenIdPositiveTabIndex(e),e){const t=this.tabsIdxHash[this.getNormalizedTabId(e.id)];-1!==t&&this.updateSelectedTab(t)}}else if(v&&!v.disabled){const e=this.tabsIdxHash[this.getNormalizedTabId(v.id)];-1!==e&&(t.preventDefault(),this.updateSelectedTab(e))}}}setupTabsEvents(){this.addEventListener("tab-click",this.handleTabClick),this.addEventListener("tab-cross-click",this.handleTabCrossClick),this.addEventListener("tab-close-click",this.handleTabCloseClick),this.addEventListener("keydown",this.handleTabKeydown),this.addEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}teardownTabsEvents(){this.removeEventListener("tab-click",this.handleTabClick),this.removeEventListener("tab-cross-click",this.handleTabCrossClick),this.removeEventListener("tab-close-click",this.handleTabCloseClick),this.removeEventListener("keydown",this.handleTabKeydown),this.removeEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}clearTabOrderPrefs(t){const{compUniqueId:e}=t.detail;e===this.compUniqueId&&(localStorage.removeItem(this.tabsId),sessionStorage.removeItem(this.tabsId),localStorage.removeItem(this.compUniqueId),this.tabsOrderPrefsArray=this.defaultTabsOrderArray,this.selected=0,this.initializeTabs(),this.dispatchSelectedChangedEvent(0))}setupPanelsAndTabs(){this.tabSlotElement&&(this.tabs=this.tabSlotElement.assignedElements()),this.panelSlotElement&&(this.panels=this.panelSlotElement.assignedElements()),this.defaultTabsOrderArray=this.tabs.map(t=>t.name)}setupMoreTab(){return x(this,void 0,void 0,function*(){"vertical"!==this.direction&&this.moreTabMenuElement&&!this.isMoreTabMenuMeasured&&(this.moreTabMenuElement.classList.add("md-menu-overlay__more_tab--measuring"),yield this.moreTabMenuElement.updateComplete,this.moreTabMenuElement.offsetWidth&&(this.moreTabMenuOffsetWidth=this.moreTabMenuElement.offsetWidth,this.isMoreTabMenuMeasured=!0),this.moreTabMenuElement.classList.remove("md-menu-overlay__more_tab--measuring"))})}initializeSortable(){this.visibleTabsContainerElement&&this.hiddenTabsContainerElement&&(this.visibleTabsSortableInstance=y().create(this.visibleTabsContainerElement,this.generateOptions()),this.hiddenTabsSortableInstance=y().create(this.hiddenTabsContainerElement,this.generateOptions()))}initializeTabs(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),this.manageOverflow()}connectedCallback(){var t;if(super.connectedCallback(),this.setupTabsEvents(),this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=localStorage.getItem(this.tabsId);this.selected=t&&parseInt(t)>-1?parseInt(t):this.selected}this.compUniqueId&&(this.tabsOrderPrefsArray=(null===(t=localStorage.getItem(this.compUniqueId))||void 0===t?void 0:t.split(","))||[])}selectTabFromStorage(){if(this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=sessionStorage.getItem(this.tabsId);let e=0;if(t){const i=parseInt(t);e=i>-1?i:this.selected}const i=this.currentTabsLayout;i.length&&i[e].id?(this._selectedIndex=e,this.handleNewSelectedTab(i[e].id,!1)):this.selected=e}}disconnectedCallback(){super.disconnectedCallback(),this.teardownTabsEvents()}firstUpdated(t){var e;super.firstUpdated(t),this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.selectTabFromStorage(),this.scrollArrow&&(this.updateArrowsVisibility(),null===(e=this.tabsListElement)||void 0===e||e.addEventListener("scroll",this.updateArrowsVisibility))}onDirectionChanged(){return x(this,void 0,void 0,function*(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),yield this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),"horizontal"===this.direction&&(yield this.manageOverflow()),this.selectTabFromStorage(),this.scrollArrow&&this.updateArrowsVisibility()})}willUpdate(t){var e,i;if(null===(e=super.willUpdate)||void 0===e||e.call(this,t),t.has("selectedIndex")&&(this.selected=this.selectedIndex),t.has("tabsFilteredAsHiddenList")&&(this.tabsCopy=Array.from((null===(i=this.tabsCopyHiddenListElements)||void 0===i?void 0:i.values())||[]),this.tabsCopyHash=this.tabsCopy.reduce((t,e)=>(t[e.id]=e,t),{})),(t.has("tabsFilteredAsVisibleList")||t.has("tabsFilteredAsHiddenList"))&&(this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce((t,e,i)=>(t[e.id]=i,t),{}),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce((t,e,i)=>(t[e.id]=i,t),{})),t.has("isMoreTabMenuOpen")&&this.isMoreTabMenuVisible){const e=t.get("isMoreTabMenuOpen");this.isMoreTabMenuOpen&&!e&&(this.moreItemsScrollLimit<this.tabsCopy.length?(this.isMoreTabMenuScrollable=!0,this.moreTabMenuMaxHeight=`${this.measureHiddenTabsCopiesOffsetHeight().slice(0,this.moreItemsScrollLimit).reduce((t,e)=>t+e,0)}px`):(this.isMoreTabMenuScrollable=!1,this.moreTabMenuMaxHeight=null))}}updated(t){super.updated(t),t.has("direction")&&t.get("direction")!==this.direction&&this.onDirectionChanged(),t.has("slotted")&&this.initializeTabs(),!this.draggable||this.visibleTabsSortableInstance||this.hiddenTabsSortableInstance||this.initializeSortable(),t.has("tabsId")&&this.selectTabFromStorage(),t.has("selectedIndex")&&this.updateSelectedTab(this.selectedIndex,!1),t.has("overflowLabel")&&this.updateIsMoreTabTruncated(),t.has("scrollArrow")&&this.onDirectionChanged()}scrollTabs(t){if(!this.tabsListElement||"vertical"===this.direction)return;const e="left"===t?-100:100;this.tabsListElement.scrollBy({left:e,behavior:"smooth"}),(0,b.setTimeout)(()=>this.updateArrowsVisibility(),300)}get moreMenuButtonTemplate(){return l.html`
|
|
1317
|
+
`}};m([(0,d.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),m([(0,d.property)({type:Boolean,attribute:"twenty-four-hour-format",reflect:!0})],e.prototype,"twentyFourHourFormat",void 0),m([(0,d.property)({type:String})],e.prototype,"timeSpecificity",void 0),m([(0,d.property)({type:String})],e.prototype,"locale",void 0),m([(0,d.property)({type:String,reflect:!0})],e.prototype,"value",void 0),m([(0,d.property)({type:Boolean,attribute:"show-default-now-time"})],e.prototype,"showDefaultNowTime",void 0),m([(0,d.state)()],e.prototype,"finalTwentyFourFormat",void 0),m([(0,d.state)()],e.prototype,"timeObject",void 0),m([(0,d.state)()],e.prototype,"tabNext",void 0),m([(0,d.state)()],e.prototype,"timeValue",void 0),m([(0,d.state)()],e.prototype,"timeValidity",void 0),e=m([(0,s.w)("md-timepicker")],e),t.ELEMENT=e}(g||(g={}))},50226:(t,e,i)=>{i.d(e,{Tabs:()=>O}),i(61200),i(11323),i(83192);var o=i(90195),s=i(3001),r=i(66677),a=i(59164),n=i(4313),l=i(87161),d=i(70429),h=i(85125),c=i(20291),p=i(58175),u=i(10318),m=i(16968),v=i(41891),y=i.n(v),b=i(97103),g=i(2669),f=i(16643),w=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},x=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function n(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((o=o.apply(t,e||[])).next())})};const C="tab-more",E="more-menu-copy-",S="visibleToVisible",$="visibleToHidden",T="hiddenToVisible",k="hiddenToHidden",A="previous",I="next",L="fromMoreTabs";var O;!function(t){let e=class extends((0,s.UM)((0,s.Io)((0,s.TS)(l.LitElement)))){constructor(){super(...arguments),this.justified=!1,this.hugTabs=!1,this.overflowLabel="More Tabs",this.draggable=!1,this.direction="horizontal",this.moreItemsScrollLimit=Number.MAX_SAFE_INTEGER,this._selectedIndex=0,this.animation=100,this.ghostClass="",this.chosenClass="",this.forceFallback=!1,this.fallbackClass="",this.tabsId="",this.persistSelection=!1,this.compUniqueId="",this.type="line",this.newMomentum=!1,this.variant="ghost",this.scrollArrow=!1,this.leftArrowAriaLabel="Backward Button",this.rightArrowAriaLabel="Forward Button",this.size=28,this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1,this.isMoreTabMenuOpen=!1,this.isMoreTabMenuSelected=!1,this.isMoreTabMenuScrollable=!1,this.moreTabMenuOffsetWidth=0,this.moreTabMenuMaxHeight=null,this.tabsViewportDataList=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.noTabsVisible=!1,this.defaultTabsOrderArray=[],this.tabsOrderPrefsArray=[],this.isMoreTabTruncated=!1,this.showLeftArrow=!1,this.showRightArrow=!1,this.tabs=[],this.panels=[],this.tabsCopy=[],this.tabsHash={},this.tabsCopyHash={},this.tabsIdxHash={},this.tabsVisibleIdxHash={},this.tabsHiddenIdxHash={},this.visibleTabsSortableInstance=null,this.hiddenTabsSortableInstance=null,this.updateArrowsVisibility=()=>{this.tabsListElement&&requestAnimationFrame(()=>{const{scrollLeft:t,scrollWidth:e,clientWidth:i}=this.tabsListElement;this.showLeftArrow=t>0,this.showRightArrow=t+i<e-5})},this.handleOnDragEnd=t=>x(this,void 0,void 0,function*(){var e,i,o,s,r,a,n,l,d,h;t.stopPropagation();const c=t.oldIndex,p=t.newIndex,u=[...this.tabsFilteredAsVisibleList],m=[...this.tabsFilteredAsHiddenList],v=this.getDragDirection(t);if(void 0!==c&&void 0!==p){switch(v){case $:{null===(i=null===(e=this.hiddenTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t.item.id))||void 0===i||i.remove();const o=u[c],s=m.slice(-1)[0],r=p===this.tabsFilteredAsHiddenList.length?p-1:p;m.splice(r,0,o),m.pop();const a=u.filter(e=>e.id!==this.getNormalizedTabId(t.item.id));a.push(s),this.tabsFilteredAsVisibleList=[...a],this.tabsFilteredAsHiddenList=[...m];break}case S:{const t=u[c];u.splice(c,1),u.splice(p,0,t),this.tabsFilteredAsVisibleList=u,p===this.tabsFilteredAsVisibleList.length-1&&(null===(s=null===(o=this.visibleTabsContainerElement)||void 0===o?void 0:o.children[this.visibleTabsContainerElement.children.length-1])||void 0===s||s.remove());const e=this.visibleTabsContainerElement.children[c],i=this.visibleTabsContainerElement.children[p];if(!e||!i)return;null===(r=this.visibleTabsContainerElement)||void 0===r||r.replaceChild(i,e),null===(a=this.visibleTabsContainerElement)||void 0===a||a.insertBefore(e,i);break}case T:{null===(l=null===(n=this.visibleTabsContainerElement)||void 0===n?void 0:n.querySelector("#"+t.item.id))||void 0===l||l.remove();const e=m[c],i=u.slice(-1)[0];m.splice(c,1),m.splice(0,0,i);const o=p===this.tabsFilteredAsVisibleList.length?p-1:p;u.splice(o,0,e),u.pop(),this.tabsFilteredAsVisibleList=u,this.tabsFilteredAsHiddenList=m;break}case k:{const t=m[c];m.splice(c,1),m.splice(p,0,t),this.tabsFilteredAsHiddenList=m,p===this.tabsFilteredAsHiddenList.length-1&&(null===(h=null===(d=this.hiddenTabsContainerElement)||void 0===d?void 0:d.children[this.hiddenTabsContainerElement.children.length-1])||void 0===h||h.remove());break}}if(this.compUniqueId){const t=[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],e=t.findIndex(t=>t.selected);this.storeSelectedTabIndex(e),this.tabsOrderPrefsArray=t.map(t=>t.name),localStorage.setItem(this.compUniqueId,this.tabsOrderPrefsArray.join(","))}}})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){var e;if(-1===t)return;const i=this._selectedIndex;this._selectedIndex=t,i!==t&&(null===(e=this.tabs)||void 0===e?void 0:e.length)&&this.updateSelectedTab(t)}get isRtl(){return"rtl"===getComputedStyle(this).direction}generateOptions(){return{group:"shared",animation:10,swapThreshold:1,draggable:"md-tab",direction:this.direction,forceFallback:this.forceFallback,fallbackClass:this.fallbackClass,ghostClass:this.ghostClass,chosenClass:this.chosenClass,onEnd:this.handleOnDragEnd}}get currentTabsLayout(){return"horizontal"!==this.direction||this.scrollArrow?this.tabs:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList]}getCopyTabId(t){var e;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(E))?`${E}${t.id}`:t.id}getAriaControlId(t){var e,i;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(E))?`${E}${t.id}`:"tab_panel_"+(null===(i=t.id)||void 0===i?void 0:i.substring(4))}getTabIndex(t){var e,i;return this.isMoreTabMenuVisible&&0===this.getCurrentIndex(null==t?void 0:t.id)&&this.selected>(null===(e=this.tabsFilteredAsVisibleList)||void 0===e?void 0:e.length)-1||(null===(i=this.tabsFilteredAsVisibleList[this.selected])||void 0===i?void 0:i.id)===t.id?0:-1}getNormalizedTabId(t){return t.replace(E,"")}static get styles(){return[n.A,g.A]}ensureTabsUpdateComplete(t){return x(this,void 0,void 0,function*(){const e=t.map(t=>void 0!==t.updateComplete?t.updateComplete:null).filter(t=>null!==t);e.length&&(yield Promise.all(e))})}measureTabsOffsetWidth(){return this.justified||"vertical"===this.direction?this.tabs.map(t=>{t.setAttribute("measuringrealwidth","");const e=t.closable?t.offsetWidth+f.TAB_CROSS_WIDTH:t.offsetWidth;return t.removeAttribute("measuringrealwidth"),e}):this.tabs.map(t=>t.closable?t.offsetWidth+f.TAB_CROSS_WIDTH:t.offsetWidth)}updateIsMoreTabTruncated(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-menu-overlay__overflow-label");if(e){const t=e.scrollWidth>e.clientWidth;this.isMoreTabTruncated!=t&&(this.isMoreTabTruncated=t)}}measureHiddenTabsCopiesOffsetHeight(){return this.tabsCopy.map(t=>t.offsetHeight)}manageOverflow(){return x(this,void 0,void 0,function*(){var t,e;if("vertical"!==this.direction&&!this.scrollArrow){let i;i=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length?[...this.tabs]:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],i.forEach(t=>{var e,i,o,s,r,a;if((null===(e=t.children)||void 0===e?void 0:e.length)&&0===(null===(o=null===(i=t.children[0])||void 0===i?void 0:i.children)||void 0===o?void 0:o.length)){const e=null===(r=null===(s=null==t?void 0:t.querySelector("slot"))||void 0===s?void 0:s.assignedNodes({flatten:!0})[0])||void 0===r?void 0:r.cloneNode(!0);e&&(e.classList.add("tab-content"),null===(a=null==t?void 0:t.children[0])||void 0===a||a.appendChild(e))}});const o=i.length;if(this.tabsListElement&&o){const s=(null===(t=this.tabsSettingsElement)||void 0===t?void 0:t.offsetWidth)?this.tabsListElement.offsetWidth-(null===(e=this.tabsSettingsElement)||void 0===e?void 0:e.offsetWidth):this.tabsListElement.offsetWidth;yield this.ensureTabsUpdateComplete(this.tabs);const r=this.measureTabsOffsetWidth(),a=i.reduce((t,e,i)=>t+r[i],0);if(a){yield this.setupMoreTab();let t=!0;s<a&&(t=!1);const e=[];let n=0;i.forEach((i,a)=>{n+=r[a];const l=!t&&n+(a<o-1?this.moreTabMenuOffsetWidth:0)>s;e.push({isTabInViewportHidden:l,tabOffsetWidth:r[a]})}),this.tabsViewportDataList=e,this.tabsViewportDataList.forEach((t,e)=>this.tabs[e].viewportHidden=t.isTabInViewportHidden),this.isMoreTabMenuVisible=!!this.tabsViewportDataList.find(t=>t.isTabInViewportHidden),this.tabsFilteredAsVisibleList=i.filter((t,e)=>!this.tabsViewportDataList[e].isTabInViewportHidden),this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce((t,e,i)=>(t[e.id]=i,t),{}),this.tabsFilteredAsHiddenList=i.filter((t,e)=>this.tabsViewportDataList[e].isTabInViewportHidden),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce((t,e,i)=>(t[e.id]=i,t),{})}}this.updateIsMoreTabMenuSelected();const s=this.tabsFilteredAsHiddenList.find(t=>!t.disabled);this.updateHiddenIdPositiveTabIndex(s)}})}updateIsMoreTabMenuSelected(){this.isMoreTabMenuSelected=!!this.tabsFilteredAsHiddenList.find(t=>t.selected)}updateHiddenIdPositiveTabIndex(t){this.tabHiddenIdPositiveTabIndex=t?t.id:void 0}sortTabsAndPanes(){if(!this.tabsOrderPrefsArray.length)return;const t=(t,e)=>{var i,o;const s=null!==(i=t.getAttribute("name"))&&void 0!==i?i:"",r=null!==(o=e.getAttribute("name"))&&void 0!==o?o:"";return this.tabsOrderPrefsArray.indexOf(s)-this.tabsOrderPrefsArray.indexOf(r)};this.tabs.sort(t),this.panels.sort(t)}linkPanelsAndTabs(){return x(this,void 0,void 0,function*(){this.sortTabsAndPanes();const{tabs:t,panels:e}=this;if(0===t.length||0===e.length)return void console.warn("The tabs or panels count should't be equal zero.");t.length!==e.length&&console.warn(`The amount of tabs (${t.length}) doesn't match the amount of panels (${e.length}).`);const i="vertical"===this.direction,o=this.selectedIndex<0?0:this.selectedIndex;t.forEach((t,s)=>{const r=(0,a.O)("tabs"),n="tab_"+r,l="tab_panel_"+r;t.setAttribute("id",n),t.setAttribute("aria-controls",l),t.selected=o===s,t.newMomentum=this.newMomentum,t.type=this.type,t.variant=this.variant,t.size=this.newMomentum?this.size:void 0,this.scrollArrow&&(t.visibleTab=!0),t.vertical!==i&&(t.vertical=i),t.viewportHidden&&(i||this.scrollArrow)&&(t.viewportHidden=!1);const d=e[s];d?(d.setAttribute("id",l),d.setAttribute("aria-labelledby",n),d.selected=o===s,t.disabled&&(d.hidden=!0,d.selected=!1)):t.disabled=!0});let s=o;for(;s<t.length&&t[s].disabled;)s++;s=s===t.length?0:s,t[s].selected=!0,e[s].selected=!0,this.tabsHash=this.tabs.reduce((t,e)=>(t[e.id]=e,t),{}),this.tabsIdxHash=this.tabs.reduce((t,e,i)=>(t[e.id]=i,t),{})})}get slotItem(){return this.tabSlotElement}filterSlotted(){return this.tabSlotElement.assignedElements()}handleResize(t){var e;null===(e=super.handleResize)||void 0===e||e.call(this,t),this.manageOverflow(),this.updateIsMoreTabTruncated(),this.scrollArrow&&this.updateArrowsVisibility()}getDragDirection(t){return t.from===this.visibleTabsContainerElement&&t.to===this.hiddenTabsContainerElement?$:t.from===this.visibleTabsContainerElement&&t.to===this.visibleTabsContainerElement?S:t.from===this.hiddenTabsContainerElement&&t.to===this.visibleTabsContainerElement?T:t.from===this.hiddenTabsContainerElement&&t.to===this.hiddenTabsContainerElement?k:void 0}makeTabCopyFocus(t){t&&t.focus()}handleTabClick(t){const{id:e}=t.detail;this.handleNewSelectedTab(e)}handleNewSelectedTab(t,e=!0){const i=this.tabsHash[this.getNormalizedTabId(t)];if(i&&!i.disabled){const t=this.tabsIdxHash[i.id];-1!==t&&this.updateSelectedTab(t,e);{const t=this.tabsCopyHash[this.getCopyTabId(i)];t&&e&&this.makeTabCopyFocus(t),this.updateHiddenIdPositiveTabIndex(i)}}}handleTabCrossClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseEvent(t){var e,i;const o=this.tabsHash[this.getNormalizedTabId(t)];if(o&&!o.disabled&&("auto"===o.closable||"custom"===o.closable)){const o=this.tabsFilteredAsVisibleList.findIndex(e=>this.getNormalizedTabId(e.id)===this.getNormalizedTabId(t));this.tabsFilteredAsVisibleList=this.tabsFilteredAsVisibleList.filter(e=>this.getNormalizedTabId(e.id)!==this.getNormalizedTabId(t)),null===(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t))||void 0===i||i.remove(),0!==this.tabsFilteredAsHiddenList.length&&(this.tabsFilteredAsVisibleList.push(this.tabsFilteredAsHiddenList[0]),this.tabsFilteredAsHiddenList.splice(0,1)),0===this.tabsFilteredAsHiddenList.length&&(this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1),this.handleUpdatedSeletedTabAfterCross(o)}}handleUpdatedSeletedTabAfterCross(t){var e;let i=t;for(;i<this.tabsFilteredAsVisibleList.length&&(null===(e=this.tabsFilteredAsVisibleList[i])||void 0===e?void 0:e.disabled);)i++;if(void 0===this.tabsFilteredAsVisibleList[i]||t===this.tabsFilteredAsVisibleList.length)for(i=t-1;i>=0&&this.tabsFilteredAsVisibleList[i].disabled;)i--;if(-1!==i){const t=this.tabs.findIndex(t=>t.id===this.tabsFilteredAsVisibleList[i].id);this.updateSelectedTab(t)}else this.updateSelectedTab(i);this.noTabsVisible=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length,this.requestUpdate()}setSelectedAttribute(t,e,i=!1){e&&(e.selected=i),t&&(t.selected=i,i&&(this.isMoreTabMenuSelected=this.isTabInMoreMenu(t)),this.isTabInMoreMenu(t)&&(this.isMoreTabMenuSelected=!0))}isTabInMoreMenu(t){return void 0!==this.tabsFilteredAsHiddenList.find(e=>e.id===t.id)}updateSelectedTab(t,e=!0){const{tabs:i,panels:o}=this,s=this.tabs.findIndex(t=>t.hasAttribute("selected"));if(i&&o&&(this.setSelectedAttribute((0,r.Qx)(i,s),(0,r.Qx)(o,s),!1),this.setSelectedAttribute((0,r.Qx)(i,t),(0,r.Qx)(o,t),!0)),t>=0&&t<i.length){this.dispatchSelectedChangedEvent(t);const o=this.currentTabsLayout.findIndex(e=>e.id===i[t].id);this.changeSelectedTabIdx(o,e)}}dispatchSelectedChangedEvent(t){const e=this.currentTabsLayout,i=this.tabs[t].id;let o=e.findIndex(t=>t.id===i);-1===o&&(o=t);const s=[];e.forEach(t=>{s.push(t.name)}),this.dispatchEvent(new CustomEvent("selected-changed",{detail:{value:o,tabsOrder:s},composed:!0,bubbles:!0}))}changeSelectedTabIdx(t,e=!0){this.requestUpdate(),this.selected=t,this.updateComplete.then(()=>{var i,o;if(t<this.tabsFilteredAsVisibleList.length){if(e){const t=null===(i=this.visibleTabsContainerElement)||void 0===i?void 0:i.children[this.selected];null==t||t.focus()}}else{const t=this.selected-this.tabsFilteredAsVisibleList.length,i=null===(o=this.hiddenTabsContainerElement)||void 0===o?void 0:o.children[t];e&&this.moveFocusToTab(i);const s=this.tabsFilteredAsHiddenList[t];(null==s?void 0:s.disabled)||this.updateHiddenIdPositiveTabIndex(s)}}),this.updateIsMoreTabMenuSelected(),this.storeSelectedTabIndex(t)}storeSelectedTabIndex(t){this.persistSelection&&this.tabsId&&t>-1&&""!==this.tabsId.trim()&&sessionStorage.setItem(this.tabsId,`${t}`)}getCurrentIndex(t){var e,i,o;if(this.scrollArrow){const e=this.tabs.length;for(let i=0;i<e;i++)if(this.tabs[i].id===t)return i}const s=null!==(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.children.length)&&void 0!==i?i:0;for(let e=0;e<s;e++)if((null===(o=this.visibleTabsContainerElement)||void 0===o?void 0:o.children[e].id)===t)return e;return this.tabsVisibleIdxHash[t]}moveFocusToAdjacentTab(t,e){var i,o,s;const r=this.getCurrentIndex(t),a=this.slotItem.assignedElements();let n=0;if(this.scrollArrow){e===A?n=0===r?a.length-1:r-1:e===I&&(n=r===a.length-1?0:r+1),this.moveFocusToTab(a[n]);const t=a[n],o=t.getBoundingClientRect(),s=null===(i=this.tabsListElement)||void 0===i?void 0:i.getBoundingClientRect();return s&&(o.left>=s.left&&o.right<=s.right&&o.top>=s.top&&o.bottom<=s.bottom||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})),this.updateArrowsVisibility(),void(0,b.setTimeout)(()=>this.moveFocusToTab(a[n]),0)}const l=null===(o=this.visibleTabsContainerElement)||void 0===o?void 0:o.children,d=null!==(s=null==l?void 0:l.length)&&void 0!==s?s:0;l&&0!==d&&(e===A?n=0===r?d-1:r-1:e===I?n=r===d-1?0:r+1:e===L&&(n=this.selected>=d?0:this.selected),this.moveFocusToTab(l[n]))}moveFocusToTab(t){(0,b.setTimeout)(()=>null==t?void 0:t.focus(),0)}handleOverlayClose(){(0,b.setTimeout)(()=>{this.menuOverlayElement&&(this.menuOverlayElement.isOpen=!1)},0)}dispatchKeydownEvent(t,e){e&&this.dispatchEvent(new CustomEvent("tab-keydown",{detail:{id:e,key:t.code,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,srcEvent:t},bubbles:!0,composed:!0}))}handleTabKeydown(t){var e,i,s,r,a,n,l;const d=t.target;if(t.target!=this&&!this.tabs.find(t=>t.id===(null==d?void 0:d.id)))return!1;let h;if((null===(e=t.composedPath())||void 0===e?void 0:e.length)>0?h=t.composedPath()[0].id:t.originalTarget&&(h=t.originalTarget.id),!h)return;const c=this.getNormalizedTabId(h);this.dispatchKeydownEvent(t,c);const p=t.code,{shiftKey:u}=t,m=!!this.isMoreTabMenuVisible&&c===C,v=m&&this.isMoreTabMenuVisible?this.moreTabMenuElement:this.tabsHash[this.getNormalizedTabId(c)],y=!this.isMoreTabMenuVisible||v&&this.tabsVisibleIdxHash[v.id]>-1,b=!!this.isMoreTabMenuVisible&&v&&this.tabsHiddenIdxHash[v.id]>-1,g=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length-1:this.tabs.length-1,f=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length:-1,w=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length+this.tabsFilteredAsHiddenList.length-1:-1;switch(p){case o.Uz.Tab:m&&!this.isMoreTabMenuOpen&&u&&(t.preventDefault(),this.moveFocusToAdjacentTab(h,L));break;case o.Uz.End:m||(y?(t.preventDefault(),this.moveFocusToTab(null===(i=this.visibleTabsContainerElement)||void 0===i?void 0:i.children[(null===(s=this.tabsFilteredAsVisibleList)||void 0===s?void 0:s.length)-1])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(r=this.hiddenTabsContainerElement)||void 0===r?void 0:r.children[(null===(a=this.tabsFilteredAsHiddenList)||void 0===a?void 0:a.length)-1])));break;case o.Uz.Home:y?(t.preventDefault(),this.moveFocusToTab(null===(n=this.visibleTabsContainerElement)||void 0===n?void 0:n.children[0])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(l=this.hiddenTabsContainerElement)||void 0===l?void 0:l.children[0]));break;case o.Uz.ArrowLeft:m||(y||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,this.isRtl?I:A));break;case o.Uz.ArrowRight:m||(y||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,this.isRtl?A:I));break;case o.Uz.ArrowUp:if(m);else if(y&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(0===this.selected?g:this.selected-1);else if(b){t.preventDefault();const e=this.selected===f?w:this.selected-1;this.changeSelectedTabIdx(e)}break;case o.Uz.ArrowDown:if(m);else if(y&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(this.selected===g?0:this.selected+1);else if(b){t.preventDefault();const e=this.selected===w?f:this.selected+1;this.changeSelectedTabIdx(e)}break;case o.Uz.Enter:case o.Uz.NumpadEnter:case o.Uz.Space:if(m){const t=this.tabsFilteredAsHiddenList.filter(t=>!t.disabled),e=t.length?t.find(t=>t.selected)||t[0]:void 0;if(this.updateHiddenIdPositiveTabIndex(e),e){const t=this.tabsIdxHash[this.getNormalizedTabId(e.id)];-1!==t&&this.updateSelectedTab(t)}}else if(v&&!v.disabled){const e=this.tabsIdxHash[this.getNormalizedTabId(v.id)];-1!==e&&(t.preventDefault(),this.updateSelectedTab(e))}}}setupTabsEvents(){this.addEventListener("tab-click",this.handleTabClick),this.addEventListener("tab-cross-click",this.handleTabCrossClick),this.addEventListener("tab-close-click",this.handleTabCloseClick),this.addEventListener("keydown",this.handleTabKeydown),this.addEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}teardownTabsEvents(){this.removeEventListener("tab-click",this.handleTabClick),this.removeEventListener("tab-cross-click",this.handleTabCrossClick),this.removeEventListener("tab-close-click",this.handleTabCloseClick),this.removeEventListener("keydown",this.handleTabKeydown),this.removeEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}clearTabOrderPrefs(t){const{compUniqueId:e}=t.detail;e===this.compUniqueId&&(localStorage.removeItem(this.tabsId),sessionStorage.removeItem(this.tabsId),localStorage.removeItem(this.compUniqueId),this.tabsOrderPrefsArray=this.defaultTabsOrderArray,this.selected=0,this.initializeTabs(),this.dispatchSelectedChangedEvent(0))}setupPanelsAndTabs(){this.tabSlotElement&&(this.tabs=this.tabSlotElement.assignedElements()),this.panelSlotElement&&(this.panels=this.panelSlotElement.assignedElements()),this.defaultTabsOrderArray=this.tabs.map(t=>t.name)}setupMoreTab(){return x(this,void 0,void 0,function*(){"vertical"!==this.direction&&this.moreTabMenuElement&&!this.isMoreTabMenuMeasured&&(this.moreTabMenuElement.classList.add("md-menu-overlay__more_tab--measuring"),yield this.moreTabMenuElement.updateComplete,this.moreTabMenuElement.offsetWidth&&(this.moreTabMenuOffsetWidth=this.moreTabMenuElement.offsetWidth,this.isMoreTabMenuMeasured=!0),this.moreTabMenuElement.classList.remove("md-menu-overlay__more_tab--measuring"))})}initializeSortable(){this.visibleTabsContainerElement&&this.hiddenTabsContainerElement&&(this.visibleTabsSortableInstance=y().create(this.visibleTabsContainerElement,this.generateOptions()),this.hiddenTabsSortableInstance=y().create(this.hiddenTabsContainerElement,this.generateOptions()))}initializeTabs(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),this.manageOverflow()}connectedCallback(){var t;if(super.connectedCallback(),this.setupTabsEvents(),this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=localStorage.getItem(this.tabsId);this.selected=t&&parseInt(t)>-1?parseInt(t):this.selected}this.compUniqueId&&(this.tabsOrderPrefsArray=(null===(t=localStorage.getItem(this.compUniqueId))||void 0===t?void 0:t.split(","))||[])}selectTabFromStorage(){if(this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=sessionStorage.getItem(this.tabsId);let e=0;if(t){const i=parseInt(t);e=i>-1?i:this.selected}const i=this.currentTabsLayout;i.length&&i[e].id?(this._selectedIndex=e,this.handleNewSelectedTab(i[e].id,!1)):this.selected=e}}disconnectedCallback(){super.disconnectedCallback(),this.teardownTabsEvents()}firstUpdated(t){var e;super.firstUpdated(t),this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.selectTabFromStorage(),this.scrollArrow&&(this.updateArrowsVisibility(),null===(e=this.tabsListElement)||void 0===e||e.addEventListener("scroll",this.updateArrowsVisibility))}onDirectionChanged(){return x(this,void 0,void 0,function*(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),yield this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),"horizontal"===this.direction&&(yield this.manageOverflow()),this.selectTabFromStorage(),this.scrollArrow&&this.updateArrowsVisibility()})}willUpdate(t){var e,i;if(null===(e=super.willUpdate)||void 0===e||e.call(this,t),t.has("selectedIndex")&&(this.selected=this.selectedIndex),t.has("tabsFilteredAsHiddenList")&&(this.tabsCopy=Array.from((null===(i=this.tabsCopyHiddenListElements)||void 0===i?void 0:i.values())||[]),this.tabsCopyHash=this.tabsCopy.reduce((t,e)=>(t[e.id]=e,t),{})),(t.has("tabsFilteredAsVisibleList")||t.has("tabsFilteredAsHiddenList"))&&(this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce((t,e,i)=>(t[e.id]=i,t),{}),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce((t,e,i)=>(t[e.id]=i,t),{})),t.has("isMoreTabMenuOpen")&&this.isMoreTabMenuVisible){const e=t.get("isMoreTabMenuOpen");this.isMoreTabMenuOpen&&!e&&(this.moreItemsScrollLimit<this.tabsCopy.length?(this.isMoreTabMenuScrollable=!0,this.moreTabMenuMaxHeight=`${this.measureHiddenTabsCopiesOffsetHeight().slice(0,this.moreItemsScrollLimit).reduce((t,e)=>t+e,0)}px`):(this.isMoreTabMenuScrollable=!1,this.moreTabMenuMaxHeight=null))}}updated(t){super.updated(t),t.has("direction")&&t.get("direction")!==this.direction&&this.onDirectionChanged(),t.has("slotted")&&this.initializeTabs(),!this.draggable||this.visibleTabsSortableInstance||this.hiddenTabsSortableInstance||this.initializeSortable(),t.has("tabsId")&&this.selectTabFromStorage(),t.has("selectedIndex")&&this.updateSelectedTab(this.selectedIndex,!1),t.has("overflowLabel")&&this.updateIsMoreTabTruncated(),t.has("scrollArrow")&&this.onDirectionChanged()}scrollTabs(t){if(!this.tabsListElement||"vertical"===this.direction)return;const e="left"===t?-100:100;this.tabsListElement.scrollBy({left:e,behavior:"smooth"}),(0,b.setTimeout)(()=>this.updateArrowsVisibility(),300)}get moreMenuButtonTemplate(){return l.html`
|
|
1447
1318
|
<md-tab
|
|
1448
1319
|
slot="menu-trigger"
|
|
1449
1320
|
id="${C}"
|
|
1450
|
-
size="${(0,
|
|
1321
|
+
size="${(0,c.ifDefined)(this.newMomentum?this.size:void 0)}"
|
|
1451
1322
|
aria-label="${this.overflowLabel}"
|
|
1452
1323
|
aria-haspopup="true"
|
|
1453
1324
|
role="button"
|
|
1454
1325
|
tabindex="${this.isMoreTabMenuVisible?0:-1}"
|
|
1455
1326
|
?selected=${!!this.isMoreTabMenuVisible&&this.isMoreTabMenuSelected}
|
|
1456
|
-
class="md-menu-overlay__more_tab ${(0,
|
|
1327
|
+
class="md-menu-overlay__more_tab ${(0,h.classMap)({"md-menu-overlay__more_tab--hidden":!this.isMoreTabMenuVisible})}"
|
|
1457
1328
|
?newMomentum=${this.newMomentum}
|
|
1458
1329
|
type=${this.type}
|
|
1459
1330
|
variant=${this.variant}
|
|
@@ -1494,7 +1365,7 @@
|
|
|
1494
1365
|
<md-menu-overlay
|
|
1495
1366
|
custom-width="${"226px"}"
|
|
1496
1367
|
max-height="${"288px"}"
|
|
1497
|
-
class="md-menu-overlay__more ${(0,
|
|
1368
|
+
class="md-menu-overlay__more ${(0,h.classMap)({"md-menu-overlay__more--hidden":this.isMoreTabMenuMeasured&&!this.isMoreTabMenuVisible})}"
|
|
1498
1369
|
placement="bottom-end"
|
|
1499
1370
|
@menu-overlay-open=${()=>this.isMoreTabMenuOpen=!0}
|
|
1500
1371
|
@menu-overlay-close=${()=>this.isMoreTabMenuOpen=!1}
|
|
@@ -1521,12 +1392,12 @@
|
|
|
1521
1392
|
</md-button>`}get renderTabSlot(){return l.html`
|
|
1522
1393
|
<slot
|
|
1523
1394
|
name="tab"
|
|
1524
|
-
class="${(0,
|
|
1395
|
+
class="${(0,h.classMap)({"visible-tabs-slot":"horizontal"===this.direction&&!this.scrollArrow})}"
|
|
1525
1396
|
></slot>
|
|
1526
1397
|
`}get renderTabsWithMoreMenu(){return l.html`
|
|
1527
1398
|
<div
|
|
1528
1399
|
id="visible-tabs-list"
|
|
1529
|
-
class="visible-tabs-container ${(0,
|
|
1400
|
+
class="visible-tabs-container ${(0,h.classMap)({"md-tab__justified":this.justified&&!this.isMoreTabMenuVisible,"md-tab__hug":this.hugTabs,"visible-new-tabs":this.newMomentum})}"
|
|
1530
1401
|
>
|
|
1531
1402
|
${(0,p.repeat)(this.tabsFilteredAsVisibleList,(t,e)=>`${t.id}-${e}`,t=>l.html`
|
|
1532
1403
|
<md-tab
|
|
@@ -1536,11 +1407,10 @@
|
|
|
1536
1407
|
name="${t.name}"
|
|
1537
1408
|
id="${this.getCopyTabId(t)}"
|
|
1538
1409
|
aria-label=${t.ariaLabel}
|
|
1539
|
-
aria-controls="${this.getAriaControlId(t)}"
|
|
1540
1410
|
.isCrossVisible=${!0}
|
|
1541
1411
|
tabIndex="${this.getTabIndex(t)}"
|
|
1542
1412
|
.newMomentum=${this.newMomentum}
|
|
1543
|
-
size="${(0,
|
|
1413
|
+
size="${(0,c.ifDefined)(this.newMomentum?this.size:void 0)}"
|
|
1544
1414
|
variant=${this.variant}
|
|
1545
1415
|
type=${this.type}
|
|
1546
1416
|
.onlyIcon="${t.onlyIcon}"
|
|
@@ -1556,8 +1426,8 @@
|
|
|
1556
1426
|
${this.scrollArrow&&this.showLeftArrow?this.tabsButtonArrow(this.isRtl?"right":"left"):l.nothing}
|
|
1557
1427
|
<div
|
|
1558
1428
|
part="tabs-list"
|
|
1559
|
-
class="md-tab__list ${(0,
|
|
1560
|
-
size="${(0,
|
|
1429
|
+
class="md-tab__list ${(0,h.classMap)({"md-tab__justified":this.justified&&!this.isMoreTabMenuVisible,"md-tab__hug":this.hugTabs,"no-tabs-visible":this.noTabsVisible,"vertical-tab-list":"vertical"===this.direction,"tab-new-momentum":this.newMomentum})}"
|
|
1430
|
+
size="${(0,c.ifDefined)(this.newMomentum?this.size:void 0)}"
|
|
1561
1431
|
role="tablist"
|
|
1562
1432
|
>
|
|
1563
1433
|
${this.renderTabSlot}
|
|
@@ -1570,11 +1440,11 @@
|
|
|
1570
1440
|
</div>
|
|
1571
1441
|
<div
|
|
1572
1442
|
part="tabs-content"
|
|
1573
|
-
class="md-tab__content ${(0,
|
|
1443
|
+
class="md-tab__content ${(0,h.classMap)({"no-tabs-visible":this.noTabsVisible})}"
|
|
1574
1444
|
>
|
|
1575
1445
|
<slot name="panel" @slotchange=${this.initializeTabs}></slot>
|
|
1576
1446
|
</div>
|
|
1577
|
-
`}};w([(0,
|
|
1447
|
+
`}};w([(0,d.property)({type:Boolean})],e.prototype,"justified",void 0),w([(0,d.property)({type:Boolean,attribute:"hug-tabs"})],e.prototype,"hugTabs",void 0),w([(0,d.property)({type:String})],e.prototype,"overflowLabel",void 0),w([(0,d.property)({type:Boolean,attribute:"draggable"})],e.prototype,"draggable",void 0),w([(0,d.property)({type:String,reflect:!0})],e.prototype,"direction",void 0),w([(0,d.property)({type:Number,attribute:"more-items-scroll-limit"})],e.prototype,"moreItemsScrollLimit",void 0),w([(0,d.property)({type:Number,reflect:!0,attribute:"selected-index"})],e.prototype,"selectedIndex",null),w([(0,d.property)({type:Number})],e.prototype,"animation",void 0),w([(0,d.property)({type:String,attribute:"ghost-class"})],e.prototype,"ghostClass",void 0),w([(0,d.property)({type:String,attribute:"chosen-class"})],e.prototype,"chosenClass",void 0),w([(0,d.property)({type:Boolean,attribute:"force-fallback"})],e.prototype,"forceFallback",void 0),w([(0,d.property)({type:String,attribute:"fallback-class"})],e.prototype,"fallbackClass",void 0),w([(0,d.property)({type:String,attribute:"tabs-id"})],e.prototype,"tabsId",void 0),w([(0,d.property)({type:Boolean,attribute:"persist-selection"})],e.prototype,"persistSelection",void 0),w([(0,d.property)({type:String,attribute:"comp-unique-id"})],e.prototype,"compUniqueId",void 0),w([(0,d.property)({type:String})],e.prototype,"type",void 0),w([(0,d.property)({type:Boolean})],e.prototype,"newMomentum",void 0),w([(0,d.property)({type:String})],e.prototype,"variant",void 0),w([(0,d.property)({type:Boolean,attribute:"scroll-arrow"})],e.prototype,"scrollArrow",void 0),w([(0,d.property)({type:String,attribute:"left-arrow-aria-label"})],e.prototype,"leftArrowAriaLabel",void 0),w([(0,d.property)({type:String,attribute:"right-arrow-aria-label"})],e.prototype,"rightArrowAriaLabel",void 0),w([(0,d.property)({type:Number})],e.prototype,"size",void 0),w([(0,d.state)()],e.prototype,"isMoreTabMenuVisible",void 0),w([(0,d.state)()],e.prototype,"isMoreTabMenuMeasured",void 0),w([(0,d.state)()],e.prototype,"isMoreTabMenuOpen",void 0),w([(0,d.state)()],e.prototype,"isMoreTabMenuSelected",void 0),w([(0,d.state)()],e.prototype,"isMoreTabMenuScrollable",void 0),w([(0,d.state)()],e.prototype,"moreTabMenuOffsetWidth",void 0),w([(0,d.state)()],e.prototype,"moreTabMenuMaxHeight",void 0),w([(0,d.state)()],e.prototype,"tabsViewportDataList",void 0),w([(0,d.state)()],e.prototype,"tabsFilteredAsVisibleList",void 0),w([(0,d.state)()],e.prototype,"tabsFilteredAsHiddenList",void 0),w([(0,d.state)()],e.prototype,"noTabsVisible",void 0),w([(0,d.state)()],e.prototype,"defaultTabsOrderArray",void 0),w([(0,d.state)()],e.prototype,"tabsOrderPrefsArray",void 0),w([(0,d.state)()],e.prototype,"isMoreTabTruncated",void 0),w([(0,d.state)()],e.prototype,"showLeftArrow",void 0),w([(0,d.state)()],e.prototype,"showRightArrow",void 0),w([(0,d.query)("slot[name='tab']")],e.prototype,"tabSlotElement",void 0),w([(0,d.query)("slot[name='panel']")],e.prototype,"panelSlotElement",void 0),w([(0,d.query)(".md-tab__list[part='tabs-list']")],e.prototype,"tabsListElement",void 0),w([(0,d.query)(".md-tabs__settings[part='md-tabs__settings']")],e.prototype,"tabsSettingsElement",void 0),w([(0,d.query)(".md-menu-overlay__more_tab")],e.prototype,"moreTabMenuElement",void 0),w([(0,d.query)("md-menu-overlay")],e.prototype,"menuOverlayElement",void 0),w([(0,d.query)(".md-tab__list[part='tabs-more-list']")],e.prototype,"tabsMoreListElement",void 0),w([(0,d.queryAll)(".md-menu-overlay__more_list md-tab")],e.prototype,"tabsCopyHiddenListElements",void 0),w([(0,d.query)("#visible-tabs-list")],e.prototype,"visibleTabsContainerElement",void 0),w([(0,d.query)("#tabs-more-list")],e.prototype,"hiddenTabsContainerElement",void 0),e=w([(0,s.wW)("md-tabs")],e),t.ELEMENT=e}(O||(O={}))},50565:(t,e,i)=>{i.d(e,{EditableTextfield:()=>o}),i(96408);var o,s=i(31890),r=i(74548),a=i(4313),n=i(31347),l=i.n(n),d=i(87161),h=i(70429),c=i(85125),p=i(20291),u=i(32093),m=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends d.LitElement{constructor(){super(...arguments),this.alignment="left",this.disabled=!1,this.isEditing=!1,this.maxLines="",this.content="Click to edit text",this.message={type:"error",message:"That is not a valid input."},this.alert=!1,this.hideMessage=!1,this.pattern="",this.type=null,this.ariaLabel="editable field",this.ariaDescribedBy="",this.reportValidity=()=>{this.dispatchEvent(new Event("invalid",{bubbles:!1,cancelable:!0,composed:!0}))},this.checkValidity=t=>{let e=!0;const i=i=>{null===t.match(i)&&(e=!1)};if(this.pattern)i(new RegExp(this.pattern));else if(t&&this.type)switch(this.type){case"integer":i(new RegExp(r.b.integerString));break;case"decimal":i(new RegExp(r.b.decimalString))}return e},this.handleFocus=()=>{this.disabled||(this.isEditing=!0,this.setRange())},this.handleKeydown=t=>{var e,i;const{key:o,code:s}=t;if(!["Tab","Meta","Shift","Delete","Backspace","Arrow"].some(t=>s.includes(t)))if("integer"===this.type&&(o.includes(".")||"-"===o&&(null===(e=this.editableField)||void 0===e?void 0:e.innerText.includes("-"))))t.preventDefault();else if("integer"!==this.type&&"decimal"!==this.type||!s.match("Space")){if(this.type&&1===o.length){const e=((null===(i=this.editableField)||void 0===i?void 0:i.innerText.trim())||"")+o;("integer"!==this.type||/^-?\d*$/.test(e))&&("decimal"!==this.type||/^-?\d*\.?\d*$/.test(e))||t.preventDefault()}}else t.preventDefault()},this.handleBlur=()=>{var t,e,i;this.isEditing=!1,this.maxLines.length>0&&(null===(t=this.editableField)||void 0===t||t.scrollTo(0,0));const o=(null===(i=null===(e=this.editableField)||void 0===e?void 0:e.innerText)||void 0===i?void 0:i.trim())||"",s=l().sanitize(o);s!==this.content&&(this.content=s),this.alert=!1,this.handleValidation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.handleFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.handleFocus)}firstUpdated(t){super.firstUpdated(t),this.innerText&&this.innerText.trim().length>0&&this.innerText.trim()!==this.content&&(this.content=this.innerText.trim())}setRange(){var t;if(this.editableField){const e=document.createRange(),i=window.getSelection(),o=this.editableField.childNodes[0];if(!o||o.nodeType!==Node.TEXT_NODE)return;const s=(null===(t=o.nodeValue)||void 0===t?void 0:t.length)||0;e.setStart(o,s),e.collapse(!0),i&&0===i.toString().length&&(i.removeAllRanges(),i.addRange(e)),this.maxLines.length>0&&(this.editableField.scrollTop=this.editableField.scrollHeight)}}handleValidation(){var t;(this.type||this.pattern)&&((null===(t=this.checkValidity)||void 0===t?void 0:t.call(this,this.content))||(this.reportValidity(),this.showAlert()))}showAlert(){this.alert=!0}static get styles(){return[a.A,u.A]}get overflowStyles(){return this.maxLines.length&&this.maxLines.length>0&&`max-height: ${2*parseInt(this.maxLines)}rem; -webkit-line-clamp: ${this.maxLines}; word-break: break-all;`}messagesTemplate(){var t,e,i;return this.alert?d.html`
|
|
1578
1448
|
<div class="md-editable-textfield__messages" style="display: ${this.hideMessage?"none":"block"}">
|
|
1579
1449
|
<md-help-text
|
|
1580
1450
|
id="alert-message"
|
|
@@ -1603,7 +1473,136 @@
|
|
|
1603
1473
|
.innerText=${this.content}
|
|
1604
1474
|
></div>
|
|
1605
1475
|
${this.messagesTemplate()}
|
|
1606
|
-
`}};m([(0,h.property)({type:String})],e.prototype,"alignment",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"disabled",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"isEditing",void 0),m([(0,h.property)({type:String,attribute:"max-lines",reflect:!0})],e.prototype,"maxLines",void 0),m([(0,h.property)({type:String,reflect:!0})],e.prototype,"content",void 0),m([(0,h.property)({type:Object})],e.prototype,"message",void 0),m([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"alert",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"hideMessage",void 0),m([(0,h.property)({type:String})],e.prototype,"pattern",void 0),m([(0,h.property)({type:String})],e.prototype,"type",void 0),m([(0,h.property)({type:String})],e.prototype,"ariaLabel",void 0),m([(0,h.property)({type:String,attribute:"aria-described-by"})],e.prototype,"ariaDescribedBy",void 0),m([(0,h.query)(".md-editable-textfield")],e.prototype,"editableField",void 0),e=m([(0,s.w)("md-editable-field")],e),t.ELEMENT=e}(o||(o={}))},
|
|
1476
|
+
`}};m([(0,h.property)({type:String})],e.prototype,"alignment",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"disabled",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"isEditing",void 0),m([(0,h.property)({type:String,attribute:"max-lines",reflect:!0})],e.prototype,"maxLines",void 0),m([(0,h.property)({type:String,reflect:!0})],e.prototype,"content",void 0),m([(0,h.property)({type:Object})],e.prototype,"message",void 0),m([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"alert",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"hideMessage",void 0),m([(0,h.property)({type:String})],e.prototype,"pattern",void 0),m([(0,h.property)({type:String})],e.prototype,"type",void 0),m([(0,h.property)({type:String})],e.prototype,"ariaLabel",void 0),m([(0,h.property)({type:String,attribute:"aria-described-by"})],e.prototype,"ariaDescribedBy",void 0),m([(0,h.query)(".md-editable-textfield")],e.prototype,"editableField",void 0),e=m([(0,s.w)("md-editable-field")],e),t.ELEMENT=e}(o||(o={}))},51853:(t,e,i)=>{i.r(e),i.d(e,{Accordion:()=>o.Accordion,AccordionItem:()=>s.AccordionItem,ActivityButton:()=>r.ActivityButton,AdvanceList:()=>a.AdvanceList,Alert:()=>l.Alert,AlertBanner:()=>n.AlertBanner,ArrayValidators:()=>mt,AudioPlayer:()=>d.AudioPlayer,Avatar:()=>h.Avatar,AvatarType:()=>c,Badge:()=>u.Badge,Breadcrumb:()=>S.Breadcrumb,Button:()=>T.Button,ButtonGroup:()=>$.ButtonGroup,Card:()=>I.Card,CardAi:()=>k.CardAi,CardV2:()=>A.CardV2,ChatMessage:()=>L.ChatMessage,Checkbox:()=>O.Checkbox,CheckboxGroup:()=>M.CheckboxGroup,Chip:()=>D.Chip,Coachmark:()=>R.Coachmark,CoachmarkPopover:()=>P.CoachmarkPopover,CodeEditor:()=>V,ComboBox:()=>j.ComboBox,CompositeAvatar:()=>p.CompositeAvatar,CountryCodePicker:()=>U.CountryCodePicker,DatePicker:()=>W.DatePicker,DatePickerCalendar:()=>K.DatePickerCalendar,DatePickerDay:()=>G.DatePickerDay,DatePickerMonth:()=>Y.DatePickerMonth,DatePickerWeek:()=>X.DatePickerWeek,DateRangePicker:()=>q.DateRangePicker,DateTimePicker:()=>H.DateTimePicker,Draggable:()=>Z.Draggable,DraggableItem:()=>Q.DraggableItem,Dropdown:()=>J.Dropdown,EditableTextfield:()=>tt.EditableTextfield,Favorite:()=>et.Favorite,FloatingButtonBar:()=>rt,FloatingMinimizedModal:()=>at.FloatingMinimizedModal,FloatingModal:()=>nt.FloatingModal,Form:()=>vt.Form,FormArray:()=>dt,FormControl:()=>ht,FormGroup:()=>ct,Grabber:()=>yt.Grabber,HelpText:()=>bt.HelpText,Icon:()=>f.Icon,Input:()=>ft.Input,InputFile:()=>gt.InputFile,Label:()=>wt.Label,Link:()=>xt.Link,List:()=>It.List,ListItem:()=>Lt.ListItem,ListItemV2:()=>$t,ListV2:()=>kt,Loading:()=>Ot.Loading,MeetingAlert:()=>Mt.MeetingAlert,Menu:()=>Pt.Menu,MenuItem:()=>Rt.MenuItem,MenuOverlay:()=>Dt.MenuOverlay,Modal:()=>_t.Modal,NotificationBadge:()=>E,Pagination:()=>Bt.Pagination,PhoneInput:()=>zt.PhoneInput,Popover:()=>Ft.Popover,PopoverController:()=>Ft.PopoverController,Presence:()=>Vt.Presence,ProgressBar:()=>Nt.ProgressBar,Radio:()=>jt.Radio,RadioGroup:()=>Ut.RadioGroup,Skeleton:()=>Ht,Slider:()=>Kt.Slider,Spinner:()=>Gt.Spinner,Tab:()=>Zt.Tab,TabPanel:()=>Qt.TabPanel,Table:()=>Xt.Table,TableAdvanced:()=>Yt.TableAdvanced,Tabs:()=>Jt.Tabs,TaskItem:()=>te.TaskItem,Theme:()=>ee.Theme,ThemeManager:()=>re.ThemeManager,TimePicker:()=>ie.TimePicker,ToggleSwitch:()=>oe.ToggleSwitch,Tooltip:()=>it.Tooltip,Validators:()=>pt,iconUrlManager:()=>se.O,registerThemeManagerGlobally:()=>re.registerThemeManagerGlobally,themeManager:()=>re.themeManager});var o=i(33328),s=i(6779),r=i(94891),a=i(28307),n=i(19479),l=i(74896),d=i(23779),h=i(38028);const c=["bot","group","self","typing",""];var p=i(2207),u=i(63704),m=i(3001),v=i(87161),y=i(70429),b=i(85125),g=i(20291),f=i(61200),w=i(15427);const x=v.css`:host{color:var(--badge-notification-primary-foreground-color);font-size:var(--font-size-body-small,.75rem);font-weight:var(--brand-font-weight-medium,500);line-height:var(--font-lineheight-body-small,1rem);font-family:var(--brand-font-medium);box-sizing:border-box;align-items:center;display:flex;height:fit-content;justify-content:center;width:fit-content}.md-notification-badge-overlay{outline:.0625rem solid var(--badge-notification-overlay-border-color)}.md-notification-badge-text{box-sizing:border-box;padding:0 .25rem;border-radius:6.25rem;min-width:1rem;display:flex;justify-content:center;background-color:var(--badge-notification-primary-background-color)}.md-notification-badge-dot{width:.75rem;height:.75rem;border-radius:50%;background-color:var(--badge-notification-primary-background-color)}.md-notification-badge-icon{padding:2px;size:1rem;border-radius:50%;box-sizing:border-box}.md-notification-badge-icon__primary{background-color:var(--badge-notification-primary-background-color);color:var(--badge-notification-primary-foreground-color)}.md-notification-badge-icon__success{background-color:var(--badge-notification-success-background-color);color:var(--badge-notification-success-foreground-color)}.md-notification-badge-icon__warning{background-color:var(--badge-notification-warning-background-color);color:var(--badge-notification-warning-foreground-color)}.md-notification-badge-icon__error{background-color:var(--badge-notification-error-background-color);color:var(--badge-notification-error-foreground-color)}.md-notification-badge-icon__secondary{background-color:var(--badge-notification-secondary-background-color);color:var(--badge-notification-secondary-foreground-color)}@media(forced-colors:active){.md-notification-badge-dot,.md-notification-badge-icon,.md-notification-badge-text{outline:.125rem solid}}`;var C=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};let E=class extends v.LitElement{constructor(){super(...arguments),this.variant=w.zY.VARIANT,this.maxCounter=w.zY.MAX_COUNTER,this.overlay=!1,this.ariaLabel=null}static get styles(){return[x]}getCounterText(t,e){return void 0===e||"number"!=typeof e||0===t?"":e>t?`${t}+`:t>w.zY.MAX_COUNTER_LIMIT||e>w.zY.MAX_COUNTER_LIMIT?`${w.zY.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t,e){return v.html`
|
|
1477
|
+
<md-icon
|
|
1478
|
+
class="md-notification-badge-icon ${(0,b.classMap)({"md-notification-badge-overlay":this.overlay,[`md-notification-badge-icon__${e}`]:!0})}"
|
|
1479
|
+
iconSet="momentumDesign"
|
|
1480
|
+
name="${(0,g.ifDefined)(t)}"
|
|
1481
|
+
size="${w.zY.ICON_SIZE}"
|
|
1482
|
+
></md-icon>
|
|
1483
|
+
`}getBadgeDot(){return v.html`<div
|
|
1484
|
+
class="md-notification-badge-dot ${(0,b.classMap)({"md-notification-badge-overlay":this.overlay})}"
|
|
1485
|
+
></div>`}getBadgeCounterText(){return v.html`
|
|
1486
|
+
<div class="md-notification-badge-text ${(0,b.classMap)({"md-notification-badge-overlay":this.overlay})}">
|
|
1487
|
+
${this.getCounterText(this.maxCounter,this.counter)}
|
|
1488
|
+
</div>
|
|
1489
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(w.M_).includes(this.variant)&&(this.variant=w.zY.VARIANT);const{iconName:t,type:e,variant:i}=this;switch(e){case w.ZE.ICON:return this.getBadgeIcon(t||"",i);case w.ZE.COUNTER:return this.getBadgeCounterText();case w.ZE.SUCCESS:return this.getBadgeIcon(w.UZ.SUCCESS_ICON_NAME,w.su.SUCCESS);case w.ZE.WARNING:return this.getBadgeIcon(w.UZ.WARNING_ICON_NAME,w.su.WARNING);case w.ZE.ERROR:return this.getBadgeIcon(w.UZ.ERROR_ICON_NAME,w.su.ERROR);case w.ZE.DOT:default:return this.type=w.ZE.DOT,this.getBadgeDot()}}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};C([(0,y.property)({type:String,reflect:!0})],E.prototype,"type",void 0),C([(0,y.property)({type:String,reflect:!0})],E.prototype,"variant",void 0),C([(0,y.property)({type:Number})],E.prototype,"counter",void 0),C([(0,y.property)({type:Number,attribute:"max-counter",reflect:!0})],E.prototype,"maxCounter",void 0),C([(0,y.property)({type:Boolean})],E.prototype,"overlay",void 0),C([(0,y.property)({type:String,attribute:"icon-name"})],E.prototype,"iconName",void 0),C([(0,y.property)({type:String,attribute:"aria-label"})],E.prototype,"ariaLabel",void 0),E=C([(0,m.wW)("md-notification-badge")],E);var S=i(92992),$=i(45629),T=i(96798),k=i(64311),A=i(90827),I=i(10654),L=i(95281),O=i(3664),M=i(55294),D=i(60046),P=i(29895),R=i(46312),_=i(4313),B=i(45001),z=i.n(B);const F=v.css`:host(md-code-editor) .md-code-editor{background:#091e26;border-radius:.25rem;color:#fff;min-height:18.75rem;overflow:hidden}:host(md-code-editor) .md-code-editor-header{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;background:#092d3b;flex:0 0 auto;font-size:14px;padding:.625rem}:host(md-code-editor) .md-code-editor-name{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center}:host(md-code-editor) .md-code-editor md-badge::part(badge){border-radius:.25rem;height:1.25rem;margin-right:.625rem;padding:.25rem .375rem;text-transform:capitalize}:host(md-code-editor) .md-code-editor-copy{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;line-height:1}:host(md-code-editor) .md-code-editor-copy-btn::part(button){background:0 0;color:#00a0d1;margin-left:.625rem}:host(md-code-editor) .md-code-editor-copy-btn[disabled]{cursor:not-allowed;opacity:.5}:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-quote{color:#ffecc2}:host(md-code-editor) .hljs-deletion,:host(md-code-editor) .hljs-name,:host(md-code-editor) .hljs-regexp,:host(md-code-editor) .hljs-selector-class,:host(md-code-editor) .hljs-selector-id,:host(md-code-editor) .hljs-tag,:host(md-code-editor) .hljs-template-variable,:host(md-code-editor) .hljs-variable{color:#ff9d52}:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-type{color:#fc9d03}:host(md-code-editor) .hljs-attribute{color:#ebd460}:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol{color:#93c437}:host(md-code-editor) .hljs-section,:host(md-code-editor) .hljs-title{color:#22c7d6}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{color:#f0e3fc}:host(md-code-editor) .hljs{background:rgba(0,0,0,0);color:#dedede;display:block;overflow-x:auto;padding:.5em}:host(md-code-editor) .hljs-emphasis{font-style:italic}:host(md-code-editor) .hljs-strong{font-weight:700}@media screen and (forced-colors:active){:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-attribute,:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-quote,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol,:host(md-code-editor) .hljs-type{color:highlight}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{font-weight:700}}@media(forced-colors:active){:host(md-code-editor) .md-code-editor{outline:1px solid CanvasText}:host(md-code-editor) .md-code-editor-header{outline:1px solid CanvasText}}`;var V,N=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends v.LitElement{constructor(){super(...arguments),this.copyLocalization="cURL",this.copiedLocalization="Copied",this.method="get",this.acceptLanguage="javascript",this.url="javascript",this.disableCopyButton=!0,this.acceptTypes="",this.copied=!1}static get styles(){return[_.A,F]}handleSlotChange(){if(this.slotNodes&&this.slotNodes.length){const t=this.slotNodes.find(t=>"CODE"===t.tagName);if(t){const e=t.textContent;e&&this.highlightBlock(e)}}}handleUrlSlotChange(){if(this.copied=!1,this.slotUrl&&this.slotUrl.length){const t=this.slotUrl.find(t=>t);if(t){const e=t.textContent;e&&this.copyUrl(e)}}}highlightBlock(t){t&&(this.codeBlock.innerText=t),z().highlightElement(this.codeBlock)}copyUrl(t){this.codeUrl.innerText=t,this.disableCopyButton=!1}copyClipboard(){this.disableCopyButton||this.selectTarget(this.codeUrl)}copyText(){try{document.execCommand("copy"),this.copied=!0}catch(t){console.warn("Copy text failed"),this.copied=!1}}select(t){const e=window.getSelection(),i=document.createRange();i.selectNodeContents(t),e&&(e.removeAllRanges(),e.addRange(i))}selectTarget(t){this.select(t),this.copyText()}importLanguage(t){return e=this,o=void 0,r=function*(){try{const{default:e}=yield i(32908)(`./${t}`);z().registerLanguage(`${t}`,e),this.setAcceptTypes()}catch(t){console.warn("Please set correct language name")}},new((s=void 0)||(s=Promise))(function(t,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function n(t){try{l(r.throw(t))}catch(t){i(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof s?i:new s(function(t){t(i)})).then(a,n)}l((r=r.apply(e,o||[])).next())});var e,o,s,r}getAllAcceptTypes(){const t=z().listLanguages();return t.length?t.map(t=>z().getLanguage(`${t}`).aliases).map(t=>t.map(t=>`.${t}`)).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(t){super.updated(t),t.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage),t.has("acceptTypes")&&this.highlightBlock()}render(){return v.html`
|
|
1490
|
+
<div class="md-code-editor" part="code-editor">
|
|
1491
|
+
<div class="md-code-editor-header">
|
|
1492
|
+
<div class="md-code-editor-name">
|
|
1493
|
+
<md-badge color="blue">
|
|
1494
|
+
<slot name="method" method=${this.method}></slot>
|
|
1495
|
+
</md-badge>
|
|
1496
|
+
<span class="md-code-editor-url">
|
|
1497
|
+
<slot name="code-url" @slotchange=${this.handleUrlSlotChange}>${this.url}</slot>
|
|
1498
|
+
</span>
|
|
1499
|
+
</div>
|
|
1500
|
+
<div class="md-code-editor-copy">
|
|
1501
|
+
<span>${this.copied?this.copiedLocalization.trim():this.copyLocalization.trim()}</span>
|
|
1502
|
+
<md-button
|
|
1503
|
+
circle
|
|
1504
|
+
size="20"
|
|
1505
|
+
?disabled=${this.disableCopyButton}
|
|
1506
|
+
@click=${this.copyClipboard}
|
|
1507
|
+
class="md-code-editor-copy-btn"
|
|
1508
|
+
>
|
|
1509
|
+
<md-icon slot="icon" name="icon-copy_16"></md-icon>
|
|
1510
|
+
</md-button>
|
|
1511
|
+
</div>
|
|
1512
|
+
</div>
|
|
1513
|
+
<div class="md-code-editor-content">
|
|
1514
|
+
<pre class="md-code-editor-code-block">
|
|
1515
|
+
<slot name="code-block" @slotchange=${this.handleSlotChange}>
|
|
1516
|
+
<code class=${this.acceptLanguage}>
|
|
1517
|
+
</code>
|
|
1518
|
+
</slot>
|
|
1519
|
+
</pre>
|
|
1520
|
+
</div>
|
|
1521
|
+
</div>
|
|
1522
|
+
`}};N([(0,y.property)({type:String})],e.prototype,"copyLocalization",void 0),N([(0,y.property)({type:String})],e.prototype,"copiedLocalization",void 0),N([(0,y.property)({type:String})],e.prototype,"method",void 0),N([(0,y.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),N([(0,y.property)({type:String})],e.prototype,"url",void 0),N([(0,y.query)("input[type='file']")],e.prototype,"input",void 0),N([(0,y.query)(".md-code-editor-code-block")],e.prototype,"codeBlock",void 0),N([(0,y.query)(".md-code-editor-url")],e.prototype,"codeUrl",void 0),N([(0,y.state)()],e.prototype,"disableCopyButton",void 0),N([(0,y.state)()],e.prototype,"acceptTypes",void 0),N([(0,y.state)()],e.prototype,"copied",void 0),N([(0,y.queryAssignedNodes)({slot:"code-block"})],e.prototype,"slotNodes",void 0),N([(0,y.queryAssignedNodes)({slot:"code-url"})],e.prototype,"slotUrl",void 0),e=N([(0,m.wW)("md-code-editor")],e),t.ELEMENT=e}(V||(V={}));var j=i(4928),U=i(18224),q=i(69494),H=i(85416),W=i(38654),K=i(63208),G=i(16754),Y=i(17814),X=i(10984),Z=i(80072),Q=i(24627),J=i(23184),tt=i(50565),et=i(99850),it=i(83192);const ot=v.css`:host{display:inline-flex;align-items:center;height:1.75rem;border-radius:1.5625rem;background-color:var(--floating-button-bar-bg-color);box-shadow:var(--md-elevation-1);padding:.25rem .5rem;gap:.5rem}.button{display:inline-flex;align-items:center;justify-content:center}.button.pill::part(button){font-size:.875rem;padding-left:.75rem;padding-right:.75rem}.cancel{color:var(--floating-button-bar-secondary-color)}.label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.label.primary{font-family:var(--brand-font-medium);color:var(--floating-button-bar-primary-color);flex:1;min-width:0;justify-content:center}.label.secondary{color:var(--floating-button-bar-secondary-color);padding-right:4px}.separator{width:1px;height:.75rem;background-color:var(--floating-button-bar-secondary-color)}md-tooltip::part(tooltip_reference){display:flex;align-items:center}`;var st=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};let rt=class extends v.LitElement{constructor(){super(...arguments),this.leadingLabel="",this.closeButtonAriaLabel="",this.showCloseButton=!0,this.actions=[]}static get styles(){return[ot]}onCancelButttonAction(){this.dispatchEvent(new CustomEvent("cancel-button-action",{composed:!0,bubbles:!0}))}get closeButtonTemplate(){return v.html`
|
|
1523
|
+
<md-tooltip
|
|
1524
|
+
message="${(0,g.ifDefined)(this.closeButtonAriaLabel)}"
|
|
1525
|
+
?disabled=${!this.closeButtonAriaLabel}
|
|
1526
|
+
placement="top"
|
|
1527
|
+
>
|
|
1528
|
+
<md-button
|
|
1529
|
+
class="button cancel"
|
|
1530
|
+
circle
|
|
1531
|
+
size="20"
|
|
1532
|
+
variant="ghostInheritTextColor"
|
|
1533
|
+
ariaLabel=${(0,g.ifDefined)(this.closeButtonAriaLabel)}
|
|
1534
|
+
@button-click=${()=>this.onCancelButttonAction()}
|
|
1535
|
+
>
|
|
1536
|
+
<md-icon slot="icon" iconSet="momentumDesign" name="cancel-bold" size="16"></md-icon>
|
|
1537
|
+
</md-button>
|
|
1538
|
+
</md-tooltip>
|
|
1539
|
+
`}getPrimaryLabelTemplate(t){return v.html` <span class="label primary">${t}</span> `}getSecondaryLabelTemplate(t){return v.html` <span class="label secondary">${t}</span> `}get separatorTemplate(){return v.html` <div class="separator"></div> `}getIconTemplate(t){return v.html`${t.icon?v.html`<md-icon slot="icon" iconSet="momentumDesign" name=${t.icon} size="16"></md-icon>`:v.nothing}`}getPillButtonTemplate(t){return v.html`
|
|
1540
|
+
<md-button class="button pill" size="24" variant="inverted-ghost" @button-click=${()=>t.action()}>
|
|
1541
|
+
${this.getIconTemplate(t)} ${this.getPrimaryLabelTemplate(t.label)}
|
|
1542
|
+
</md-button>
|
|
1543
|
+
`}getCircleButtonTemplate(t){return v.html`
|
|
1544
|
+
<md-button class="button" circle size="24" variant="inverted-secondary" @button-click=${()=>t.action()}>
|
|
1545
|
+
${this.getIconTemplate(t)}
|
|
1546
|
+
</md-button>
|
|
1547
|
+
`}getTooltipCircleButtonTemplate(t){return v.html`
|
|
1548
|
+
<md-tooltip message="${t.label}" placement="top"> ${this.getCircleButtonTemplate(t)} </md-tooltip>
|
|
1549
|
+
`}getActionAndLabelTemplate(t){var e;const i=null!==(e=t.iconAlign)&&void 0!==e?e:"right";return v.html`
|
|
1550
|
+
${"left"===i?v.html`${this.getCircleButtonTemplate(t)} ${this.getPrimaryLabelTemplate(t.label)}`:v.html`${this.getPrimaryLabelTemplate(t.label)} ${this.getCircleButtonTemplate(t)}`}
|
|
1551
|
+
`}getActionTemplate(t){return t.isIconOnly?this.getTooltipCircleButtonTemplate(t):this.getPillButtonTemplate(t)}getActionGroupTemplate(t){return v.html` ${this.separatorTemplate} ${t.actions.map(t=>this.getActionTemplate(t))} `}render(){return v.html`
|
|
1552
|
+
${this.showCloseButton?this.closeButtonTemplate:v.nothing} ${this.getSecondaryLabelTemplate(this.leadingLabel)}
|
|
1553
|
+
${this.actions.map(t=>this.getActionGroupTemplate(t))}
|
|
1554
|
+
`}};st([(0,y.property)({type:String})],rt.prototype,"leadingLabel",void 0),st([(0,y.property)({type:String})],rt.prototype,"closeButtonAriaLabel",void 0),st([(0,y.property)({type:Boolean})],rt.prototype,"showCloseButton",void 0),st([(0,y.property)({type:Array})],rt.prototype,"actions",void 0),rt=st([(0,y.customElement)("md-floating-button-bar")],rt);var at=i(58871),nt=i(73093);class lt{constructor(){this.listeners=new Set}onChange(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}emitChange(){for(const t of Array.from(this.listeners))t(this)}}class dt extends lt{constructor(t,e=[]){var i;super(),this.controls=t,this.arrayValidators=e,this.inArrayValidation=!1,this.childChanged=()=>{this.inArrayValidation||this.runArrayValidators(),this.emitChange()},this.arrayValidators=e;for(const t of this.controls)null===(i=t.onChange)||void 0===i||i.call(t,()=>{this.childChanged()}),this.childChanged()}at(t){return this.controls[t]}runArrayValidators(){if(this.arrayValidators.length){this.inArrayValidation=!0;try{for(const t of this.arrayValidators)t(this)}finally{this.inArrayValidation=!1}}}push(t){var e;this.controls.push(t),null===(e=t.onChange)||void 0===e||e.call(t,()=>{this.childChanged()}),this.childChanged()}removeAt(t){this.controls.splice(t,1),this.childChanged()}get value(){return this.controls.map(t=>t.value)}get valid(){return this.controls.every(t=>t.valid)}get length(){return this.controls.length}getControls(){return this.controls}validate(){this.controls.forEach(t=>t.validate()),this.childChanged()}markAllAsTouched(){this.controls.forEach(t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)})}}class ht extends lt{constructor(t,e=[]){super(),this.validationErrors=[],this.touched=!1,this.groupErrors=[],this.currentValue=t,this.validators=e,this.validate()}get value(){return this.currentValue}markAsTouched(){this.touched=!0,this.validate()}get valid(){return 0===this.validationErrors.length&&0===this.groupErrors.length}get errors(){return[...this.touched?this.validationErrors:[],...this.groupErrors]}addGroupError(t){const e=this.groupErrors.filter(e=>e.type!==t.type);this.groupErrors=[...e,t],this.emitChange()}clearGroupErrorsByType(t){const e=this.groupErrors.filter(e=>e.type!==t);e.length!==this.groupErrors.length&&(this.groupErrors=e,this.emitChange())}setValue(t){this.currentValue=t,this.markAsTouched()}validate(){this.emitChange(),this.validationErrors=this.validators.map(t=>t(this.currentValue)).filter(t=>null!==t)}}class ct extends lt{constructor(t){var e;super(),this.controls=t;for(const t of Object.keys(this.controls)){const i=this.controls[t];null===(e=i.onChange)||void 0===e||e.call(i,()=>this.emitChange())}}get(t){return this.controls[t]}get value(){const t={};for(const e in this.controls)t[e]=this.controls[e].value;return t}get valid(){return Object.values(this.controls).every(t=>t.valid)}validate(){for(const t of Object.values(this.controls))t.validate();this.emitChange()}markAllAsTouched(){Object.values(this.controls).forEach(t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)})}}const pt={required:()=>t=>null==t||"string"==typeof t&&""===t.trim()?{type:"required"}:null,minLength:t=>e=>e.length<t?{type:"minLength",count:t}:null,maxLength:t=>e=>e.length>t?{type:"maxLength",count:t}:null,nonNegative:()=>t=>null==t?null:t<0?{type:"nonNegative"}:null},ut="increasingOnly",mt={strictIncreasingOnly:function(t){return e=>{const i=e.getControls();let o=null;for(const e of i)t(e).clearGroupErrorsByType(ut);for(const e of i){const i=t(e),s=i.value;if(null==s||Number.isNaN(s))break;if(null!=o&&Number(s)<=Number(o)){i.addGroupError({type:ut,count:o});break}o=s}}}};var vt=i(97866),yt=i(69112),bt=i(20109),gt=i(52619),ft=i(96408),wt=i(6396),xt=i(19026),Ct=i(90195),Et=i(26283);const St=v.css`:host{--list-item-border-radius:0;--list-item-expand-duration:400ms;--list-item-hover-bg-color:var(--md-button-secondary-hover-bg-color);--list-item-active-bg-color:var(--md-button-secondary-pressed-bg-color);--list-item-disabled-bg-color:none;--list-item-disabled-text-color:var(--md-textColor-disabled);--list-item-primary-label-color:var(--md-textColor-primary);--list-item-secondary-label-color:var(--md-textColor-secondary);--list-item-primary-label-font-size:14px;--list-item-secondary-label-font-size:12px;--list-item-bg-color:none;border-radius:var(--list-item-border-radius);background-color:var(--list-item-bg-color)}:host(:focus-visible){box-shadow:none!important}:host([variant=inset-rectangle]){--list-item-border-radius:0.5rem}:host([variant=inset-pill]){--list-item-border-radius:3.125rem}:host([disabled]){--list-item-primary-label-color:var(--list-item-disabled-text-color);--list-item-secondary-label-color:var(--list-item-disabled-text-color);--list-item-bg-color:var(--list-item-disabled-bg-color)}.header{border-radius:var(--list-item-border-radius);padding:.5rem;display:flex;justify-content:space-between;align-items:center;cursor:pointer}.header:hover:not(:disabled){background-color:var(--list-item-hover-bg-color)}.header:active:not(:disabled){background-color:var(--list-item-active-bg-color)}:host(:focus-visible) .header{box-shadow:0 0 0 .125rem var(--list-focus-border-color)}:host::part(header-leading),:host::part(header-trailing){display:flex;align-items:center;gap:.5rem}:host::part(primary-label),:host::part(secondary-label),:host::part(tertiary-label){display:block;line-height:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host::part(primary-label){font-size:var(--list-item-primary-label-font-size);color:var(--list-item-primary-label-color)}:host::part(secondary-label),:host::part(tertiary-label){font-size:var(--list-item-secondary-label-font-size);color:var(--list-item-secondary-label-color)}.expand-icon{transition:transform var(--list-item-expand-duration)}.panel-container{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows var(--list-item-expand-duration) ease-out}.expandable-content{min-height:0;visibility:hidden;transform:translateY(-15px);margin:0 10px;transition:all var(--list-item-expand-duration)}:host([expanded]) .panel-container{padding-top:0;grid-template-rows:1fr}:host([expanded]) .expandable-content{visibility:visible;transform:translateY(0);margin:10px}:host([expanded]) .expand-icon{transform:rotate(90deg)}:host{--md-list-v2-gap:0;--md-list-v2-orientation:column;padding:0;margin:0;display:flex;flex-direction:var(--md-list-v2-orientation);gap:var(--md-list-v2-gap)}:host([orientation=horizontal]){--md-list-v2-orientation:row}:host([gap=sm]){--md-list-v2-gap:0.25rem}:host([gap=md]){--md-list-v2-gap:0.5rem}:host([gap=lg]){--md-list-v2-gap:1rem}`;var $t,Tt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends v.LitElement{constructor(){super(...arguments),this.expandable=!1,this.expanded=!1,this.disabled=!1,this.variant="full-width",this.expandLabel="Expand"}render(){return v.html`
|
|
1555
|
+
<slot name="content">
|
|
1556
|
+
<div class="header">
|
|
1557
|
+
<div part="header-leading">
|
|
1558
|
+
${this.expandable?this.renderExpandButton():v.nothing} ${this.renderLeadingControls()}
|
|
1559
|
+
<div part="leading-text">
|
|
1560
|
+
${this.label?v.html`<span part="primary-label">${this.label}</span>`:v.nothing}
|
|
1561
|
+
${this.secondaryLabel?v.html`<span part="secondary-label">${this.secondaryLabel}</span>`:v.nothing}
|
|
1562
|
+
${this.tertiaryLabel?v.html`<span part="tertiary-label">${this.tertiaryLabel}</span>`:v.nothing}
|
|
1563
|
+
</div>
|
|
1564
|
+
</div>
|
|
1565
|
+
<div part="header-trailing">${this.renderTrailingControls()}</div>
|
|
1566
|
+
</div>
|
|
1567
|
+
<div class="panel-container">
|
|
1568
|
+
<div class="expandable-content">
|
|
1569
|
+
<slot
|
|
1570
|
+
name="panel"
|
|
1571
|
+
@keyup=${this.stopArrowKeyEventPropagation}
|
|
1572
|
+
@keydown=${this.stopArrowKeyEventPropagation}
|
|
1573
|
+
></slot>
|
|
1574
|
+
</div>
|
|
1575
|
+
</div>
|
|
1576
|
+
</slot>
|
|
1577
|
+
`}renderExpandButton(){return v.html`<md-button
|
|
1578
|
+
circle
|
|
1579
|
+
size="24"
|
|
1580
|
+
@button-click=${this._handleExpand}
|
|
1581
|
+
@click=${this.stopEventPropagation}
|
|
1582
|
+
?disabled=${this.disabled}
|
|
1583
|
+
ariaExpanded=${this.expanded}
|
|
1584
|
+
ariaLabel=${this.expandLabel}
|
|
1585
|
+
ariaLive="polite"
|
|
1586
|
+
>
|
|
1587
|
+
<md-icon
|
|
1588
|
+
slot="icon"
|
|
1589
|
+
class="expand-icon"
|
|
1590
|
+
iconSet="momentumDesign"
|
|
1591
|
+
name="arrow-right-bold"
|
|
1592
|
+
size="14"
|
|
1593
|
+
ariaHidden="true"
|
|
1594
|
+
></md-icon>
|
|
1595
|
+
</md-button>`}renderLeadingControls(){return v.html`<slot
|
|
1596
|
+
name="leading-controls"
|
|
1597
|
+
@click=${this.stopEventPropagation}
|
|
1598
|
+
@keyup=${this.stopEventPropagation}
|
|
1599
|
+
@keydown=${this.stopEventPropagation}
|
|
1600
|
+
></slot>`}renderTrailingControls(){return v.html`<slot
|
|
1601
|
+
name="trailing-controls"
|
|
1602
|
+
@click=${this.stopEventPropagation}
|
|
1603
|
+
@keyup=${this.stopEventPropagation}
|
|
1604
|
+
@keydown=${this.stopEventPropagation}
|
|
1605
|
+
></slot>`}stopArrowKeyEventPropagation(t){t instanceof KeyboardEvent&&(0,Et.q)(t.key)&&t.stopPropagation()}isExpandCollapseKey(t){return t===Ct.Uz.ArrowRight||t===Ct.Uz.ArrowLeft}stopEventPropagation(t){(t instanceof KeyboardEvent&&((0,Et.o)(t.key)||this.isExpandCollapseKey(t.key))||t instanceof MouseEvent)&&t.stopPropagation()}setExpanded(t){this.expanded=t,this.setAttribute("aria-expanded",String(this.expanded)),this.dispatchEvent(new CustomEvent("list-item-expanded",{bubbles:!0,detail:this.expanded}))}_handleExpand(t){t.stopPropagation(),this.expandable&&this.setExpanded(!this.expanded)}_handleListItemClick(t){const e=t.composedPath(),i=e[0];!e.includes(this.header)&&i!==this||this.disabled||this.dispatchEvent(new CustomEvent("list-item-click",{bubbles:!0}))}_handleArrowKeyExpand(t){t.key!==Ct.Uz.ArrowRight||this.expanded?t.key===Ct.Uz.ArrowLeft&&this.expanded&&(t.stopPropagation(),this.setExpanded(!1)):(t.stopPropagation(),this.setExpanded(!0))}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem"),this.setAttribute("tabindex","0"),this.addEventListener("click",this._handleListItemClick),this.expandable&&this.addEventListener("keydown",this._handleArrowKeyExpand)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleListItemClick),this.removeEventListener("keydown",this._handleArrowKeyExpand)}static get styles(){return St}};Tt([(0,y.property)({type:String,reflect:!0})],e.prototype,"label",void 0),Tt([(0,y.property)({type:String,reflect:!0,attribute:"secondary-label"})],e.prototype,"secondaryLabel",void 0),Tt([(0,y.property)({type:String,reflect:!0,attribute:"tertiary-label"})],e.prototype,"tertiaryLabel",void 0),Tt([(0,y.property)({type:Boolean})],e.prototype,"expandable",void 0),Tt([(0,y.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",void 0),Tt([(0,y.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),Tt([(0,y.property)({type:String})],e.prototype,"variant",void 0),Tt([(0,y.property)({type:String,attribute:"expand-label"})],e.prototype,"expandLabel",void 0),Tt([(0,y.query)(".header")],e.prototype,"header",void 0),e=Tt([(0,y.customElement)("md-list-item-v2")],e),t.ELEMENT=e}($t||($t={}));var kt,At=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends v.LitElement{constructor(){super(...arguments),this.gap="none",this.orientation="vertical"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","list"),this.addEventListener("keydown",this.handleKeyDown)}render(){return v.html` <slot @click=${this.handleMouseClick}></slot>`}get listItems(){return Array.from(this.assignedNodes).filter(t=>t instanceof $t.ELEMENT&&!t.disabled)}handleMouseClick(t){const e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}getNewIndexBasedOnKey(t,e,i){switch(t){case Ct.Uz.ArrowDown:return(e+1)%i;case Ct.Uz.ArrowUp:return(e-1+i)%i;case Ct.Uz.Home:return 0;case Ct.Uz.End:return i-1;default:return}}handleKeyDown(t){var e;const i=this.getCurrentIndex(t.target),o=this.getNewIndexBasedOnKey(t.key,i,this.listItems.length);void 0!==o&&(null===(e=this.listItems[o])||void 0===e||e.focus(),this.resetTabIndexAndSetActiveTabIndex(o))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,i)=>{const o=t===i?"0":"-1";e.setAttribute("tabindex",o)})}static get styles(){return St}};At([(0,y.property)({type:String})],e.prototype,"gap",void 0),At([(0,y.property)({type:String})],e.prototype,"orientation",void 0),At([(0,y.queryAssignedNodes)()],e.prototype,"assignedNodes",void 0),e=At([(0,y.customElement)("md-list-v2")],e),t.ELEMENT=e}(kt||(kt={}));var It=i(68490),Lt=i(66245),Ot=i(69788),Mt=i(61997),Dt=i(11323),Pt=i(84032),Rt=i(48171),_t=i(32252),Bt=i(23026),zt=i(84205),Ft=i(71128),Vt=i(15300),Nt=i(58287),jt=i(81144),Ut=i(32217);const qt=v.css`:host{width:100%;height:100%;display:block;background-color:var(--md-textColor-primary);opacity:.5}:host([variant=circle]){border-radius:50%}:host([variant=rectangular]){border-radius:0}:host([variant=rounded]){border-radius:.5rem}:host([animation=none]){animation:none}:host([animation=pulse]){animation:skeleton-pulse 2s ease-in-out infinite}@keyframes skeleton-pulse{0%{opacity:.5}50%{opacity:.25}100%{opacity:.5}}`;var Ht,Wt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends v.LitElement{constructor(){super(...arguments),this.variant="rounded",this.animation="pulse"}render(){var t,e;return this.style.width=null!==(t=this.width)&&void 0!==t?t:this.style.width,this.style.height=null!==(e=this.height)&&void 0!==e?e:this.style.height,v.html`<slot></slot>`}static get styles(){return[qt]}};Wt([(0,y.property)({type:String})],e.prototype,"width",void 0),Wt([(0,y.property)({type:String})],e.prototype,"height",void 0),Wt([(0,y.property)({reflect:!0})],e.prototype,"variant",void 0),Wt([(0,y.property)({reflect:!0})],e.prototype,"animation",void 0),e=Wt([(0,y.customElement)("md-skeleton")],e),t.ELEMENT=e}(Ht||(Ht={}));var Kt=i(25428),Gt=i(12176),Yt=i(77935),Xt=i(40428),Zt=i(16643),Qt=i(97737),Jt=i(50226),te=i(86610),ee=i(1072),ie=i(49256),oe=i(20331),se=i(81786),re=i(37719)},52619:(t,e,i)=>{i.d(e,{InputFile:()=>o}),i(96798);var o,s=i(3001),r=i(4313),a=i(45001),n=i.n(a),l=i(87161),d=i(70429),h=i(20291),c=i(65812),p=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},u=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function n(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((o=o.apply(t,e||[])).next())})};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.acceptLanguage="javascript",this.getLocalization="Input File",this.acceptTypes="",this.fileName=""}static get styles(){return[r.A,c.A]}triggerFileLoad(t){t.preventDefault(),this.input.click()}handleFile(t){return u(this,void 0,void 0,function*(){t.preventDefault();const e=this.input.files;if(e&&0!==e.length)for(const t of e){this.fileName=t.name;try{yield this.readFile(t)}catch(t){console.error("Error reading file",t)}}})}readFile(t){return new Promise((e,i)=>{const o=new FileReader;o.onload=t=>{e(t.target.result)},o.onerror=t=>i(t),o.readAsText(t)})}importLanguage(t){return u(this,void 0,void 0,function*(){try{const{default:e}=yield i(32908)(`./${t}`);n().registerLanguage(`${t}`,e),this.setAcceptTypes()}catch(t){console.warn("Please set correct language name")}})}getAllAcceptTypes(){const t=n().listLanguages();return t.length?t.map(t=>n().getLanguage(`${t}`).aliases).map(t=>t.map(t=>`.${t}`)).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(t){super.updated(t),t.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage)}render(){return l.html`
|
|
1607
1606
|
<div class="md-input-file">
|
|
1608
1607
|
<label for="file-input">
|
|
1609
1608
|
<md-button color="blue" class="md-input-file-btn" @click=${this.triggerFileLoad}>
|
|
@@ -1685,7 +1684,7 @@
|
|
|
1685
1684
|
</div>
|
|
1686
1685
|
</div>
|
|
1687
1686
|
`:c.nothing}
|
|
1688
|
-
`}};v([(0,p.property)({type:String})],e.prototype,"heading",void 0),v([(0,p.property)({type:String})],e.prototype,"label",void 0),v([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),v([(0,p.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),v([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),v([(0,p.property)({type:String,attribute:"maximize-icon-aria-label"})],e.prototype,"maximizeIconAriaLabel",void 0),v([(0,p.property)({type:Object})],e.prototype,"minPosition",void 0),v([(0,p.query)(".md-floating")],e.prototype,"container",void 0),v([(0,p.query)(".md-floating__header")],e.prototype,"header",void 0),v([(0,p.state)()],e.prototype,"dragOccured",void 0),v([(0,p.state)()],e.prototype,"containerTransform",void 0),e=v([(0,a.w)("md-floating-modal-minimized")],e),t.ELEMENT=e}(o||(o={}))},60046:(t,e,i)=>{i.d(e,{Chip:()=>o}),i(58287),i(83192);var o,s=i(90195),r=i(31890),a=i(4313),n=i(87161),l=i(70429),d=i(85125),h=i(20291),c=i(58391),p=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.color="",this.bgColor="",this.textColor="",this.height="",this.icon="",this.iconColor="",this.iconSize="",this.role="group",this.id="",this.small=!1,this.readonly=!1,this.selected=!1,this.disabled=!1,this.determinateProgress=0,this.indeterminateProgress=!1,this.tooltipText="",this.tooltipPlacement="auto",this.iconSet="momentumUI",this.suppressDefaultMaxWidth=!1,this.decorative=!1,this.shouldTruncateValue=!0,this.value="",this.textOverflow=!1,this.renderedText="",this.
|
|
1687
|
+
`}};v([(0,p.property)({type:String})],e.prototype,"heading",void 0),v([(0,p.property)({type:String})],e.prototype,"label",void 0),v([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),v([(0,p.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),v([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),v([(0,p.property)({type:String,attribute:"maximize-icon-aria-label"})],e.prototype,"maximizeIconAriaLabel",void 0),v([(0,p.property)({type:Object})],e.prototype,"minPosition",void 0),v([(0,p.query)(".md-floating")],e.prototype,"container",void 0),v([(0,p.query)(".md-floating__header")],e.prototype,"header",void 0),v([(0,p.state)()],e.prototype,"dragOccured",void 0),v([(0,p.state)()],e.prototype,"containerTransform",void 0),e=v([(0,a.w)("md-floating-modal-minimized")],e),t.ELEMENT=e}(o||(o={}))},60046:(t,e,i)=>{i.d(e,{Chip:()=>o}),i(58287),i(83192);var o,s=i(90195),r=i(31890),a=i(4313),n=i(87161),l=i(70429),d=i(85125),h=i(20291),c=i(58391),p=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.color="",this.bgColor="",this.textColor="",this.height="",this.icon="",this.iconColor="",this.iconSize="",this.role="group",this.id="",this.small=!1,this.readonly=!1,this.selected=!1,this.disabled=!1,this.determinateProgress=0,this.indeterminateProgress=!1,this.tooltipText="",this.tooltipPlacement="auto",this.iconSet="momentumUI",this.suppressDefaultMaxWidth=!1,this.decorative=!1,this.shouldTruncateValue=!0,this.value="",this.textOverflow=!1,this.renderedText="",this.MAXWIDTH=115,this.selectionChange=t=>{this.dispatchEvent(new CustomEvent("chip-selected",{composed:!0,bubbles:!0,detail:{selected:t}}))},this.handleClear=t=>{this.dispatchEvent(new CustomEvent("chip-deleted",{composed:!0,bubbles:!0,detail:{id:t}}))},this.handleSelect=()=>{this.disabled||(this.selected=!0,this.selectionChange(!0))},this.handleDeSelect=()=>{this.selected=!1,this.selectionChange(!1)},this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:n.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:n.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:n.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height?n.html`
|
|
1689
1688
|
<style>
|
|
1690
1689
|
:host .md-chip {
|
|
1691
1690
|
${this.renderBgColor()};
|
|
@@ -1693,7 +1692,7 @@
|
|
|
1693
1692
|
${this.renderHeight()};
|
|
1694
1693
|
}
|
|
1695
1694
|
</style>
|
|
1696
|
-
`:n.nothing}connectedCallback(){super.connectedCallback(),this.truncStringPortion(this.value),this.setAttribute("role",this.role)}updated(t){super.updated(t),this.truncStringPortion(this.value)}
|
|
1695
|
+
`:n.nothing}connectedCallback(){super.connectedCallback(),this.truncStringPortion(this.value),this.setAttribute("role",this.role)}updated(t){super.updated(t),this.truncStringPortion(this.value)}getTextWidth(t,e=getComputedStyle(this).font){const i=document.createElement("canvas").getContext("2d");return i?(i.font=e,i.measureText(t).width):0}truncStringPortion(t){const e=this.getTextWidth(t);if(!this.shouldTruncateValue||e<this.MAXWIDTH)return this.renderedText=t,void(this.textOverflow=!1);const i=Array.from(t);let o=Math.min(4,i.length),s=Math.min(5,Math.max(0,i.length-o-1)),r=i.slice(0,o).join(""),a=i.slice(-s).join(""),n=`${r}…${a}`;if(this.getTextWidth(n)>this.MAXWIDTH)return this.renderedText=n,void(this.textOverflow=!0);for(;o+s<i.length;){let t=!1;if(o+s<i.length){const e=r+i[o],s=`${e}…${a}`;this.getTextWidth(s)<=this.MAXWIDTH&&(r=e,o+=1,n=s,t=!0)}if(o+s<i.length){const e=i[i.length-s-1]+a,o=`${r}…${e}`;this.getTextWidth(o)<=this.MAXWIDTH&&(a=e,s+=1,n=o,t=!0)}if(!t)break}this.renderedText=n,this.textOverflow=!0}handleClick(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("md-tooltip");null==e||e.dispatchEvent(new CustomEvent("tooltip-destroy",{bubbles:!0,composed:!0,detail:{placement:null==e?void 0:e.placement,reference:null==e?void 0:e.reference,popper:null==e?void 0:e.popper}})),this.dispatchEvent(new CustomEvent("chip-interaction",{composed:!0,bubbles:!0,detail:{id:this.id}}))}handleKeydown(t){switch(t.code){case s.Uz.Space:case s.Uz.Enter:this.handleSelect(),this.handleClick()}}static get styles(){return[a.A,c.A]}loadingTemplate(){return this.determinateProgress||this.indeterminateProgress?this.determinateProgress?n.html`
|
|
1697
1696
|
<md-progress-bar
|
|
1698
1697
|
class="md-chip--loading"
|
|
1699
1698
|
type="determinate"
|
|
@@ -1736,7 +1735,7 @@
|
|
|
1736
1735
|
<slot name="custom-right-content" part="chip-right"> </slot>
|
|
1737
1736
|
</span>
|
|
1738
1737
|
</md-tooltip>
|
|
1739
|
-
`}};p([(0,l.property)({type:String})],e.prototype,"color",void 0),p([(0,l.property)({type:String})],e.prototype,"bgColor",void 0),p([(0,l.property)({type:String})],e.prototype,"textColor",void 0),p([(0,l.property)({type:String})],e.prototype,"height",void 0),p([(0,l.property)({type:String})],e.prototype,"icon",void 0),p([(0,l.property)({type:String})],e.prototype,"iconColor",void 0),p([(0,l.property)({type:String})],e.prototype,"iconSize",void 0),p([(0,l.property)({type:String})],e.prototype,"role",void 0),p([(0,l.property)({type:String,reflect:!0})],e.prototype,"id",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"small",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"readonly",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),p([(0,l.property)({type:Number})],e.prototype,"determinateProgress",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"indeterminateProgress",void 0),p([(0,l.property)({type:String})],e.prototype,"tooltipText",void 0),p([(0,l.property)({type:String})],e.prototype,"tooltipPlacement",void 0),p([(0,l.property)({type:String})],e.prototype,"iconSet",void 0),p([(0,l.property)({type:Boolean,attribute:"suppress-default-max-width"})],e.prototype,"suppressDefaultMaxWidth",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"decorative",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"shouldTruncateValue",void 0),p([(0,l.property)({type:String,hasChanged:(t,e)=>t!==e})],e.prototype,"value",void 0),p([(0,l.state)({hasChanged:(t,e)=>t!==e})],e.prototype,"textOverflow",void 0),p([(0,l.state)()],e.prototype,"renderedText",void 0),e=p([(0,r.w)("md-chip")],e),t.ELEMENT=e}(o||(o={}))},60554:t=>{t.exports=a},61200:(t,e,i)=>{i.d(e,{Icon:()=>o}),i(96798);var o,s=i(31890),r=i(4313),a=i(32022),n=i.n(a),l=i(60554),d=i.n(l),h=i(87161),c=i(70429),p=i(85125),u=i(20291),m=i(10318),v=i(57955),y=i(24480),b=i(81786),g=i(9223),f=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){var e;let i=e=class extends h.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.`)}}}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 e=this,i=void 0,s=function*(){var e,i;if(this.isSvgAlreadyLoaded(t))return;const
|
|
1738
|
+
`}};p([(0,l.property)({type:String})],e.prototype,"color",void 0),p([(0,l.property)({type:String})],e.prototype,"bgColor",void 0),p([(0,l.property)({type:String})],e.prototype,"textColor",void 0),p([(0,l.property)({type:String})],e.prototype,"height",void 0),p([(0,l.property)({type:String})],e.prototype,"icon",void 0),p([(0,l.property)({type:String})],e.prototype,"iconColor",void 0),p([(0,l.property)({type:String})],e.prototype,"iconSize",void 0),p([(0,l.property)({type:String})],e.prototype,"role",void 0),p([(0,l.property)({type:String,reflect:!0})],e.prototype,"id",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"small",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"readonly",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),p([(0,l.property)({type:Number})],e.prototype,"determinateProgress",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"indeterminateProgress",void 0),p([(0,l.property)({type:String})],e.prototype,"tooltipText",void 0),p([(0,l.property)({type:String})],e.prototype,"tooltipPlacement",void 0),p([(0,l.property)({type:String})],e.prototype,"iconSet",void 0),p([(0,l.property)({type:Boolean,attribute:"suppress-default-max-width"})],e.prototype,"suppressDefaultMaxWidth",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"decorative",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"shouldTruncateValue",void 0),p([(0,l.property)({type:String,hasChanged:(t,e)=>t!==e})],e.prototype,"value",void 0),p([(0,l.state)({hasChanged:(t,e)=>t!==e})],e.prototype,"textOverflow",void 0),p([(0,l.state)()],e.prototype,"renderedText",void 0),e=p([(0,r.w)("md-chip")],e),t.ELEMENT=e}(o||(o={}))},60554:t=>{t.exports=a},61200:(t,e,i)=>{i.d(e,{Icon:()=>o}),i(96798);var o,s=i(31890),r=i(4313),a=i(32022),n=i.n(a),l=i(60554),d=i.n(l),h=i(87161),c=i(70429),p=i(85125),u=i(20291),m=i(10318),v=i(57955),y=i(24480),b=i(81786),g=i(9223),f=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){var e;let i=e=class extends h.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.`);break;case"name-changed":console.warn(`[@momentum-ui/web-component] Icon: The name changed to '${e[0]}' before the SVG icon '${e[1]}' finished loading; skipping outdated result.`)}}}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 e=this,i=void 0,s=function*(){var e,i,o,s;if(this.isSvgAlreadyLoaded(t))return;const r=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"),a="momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet?yield(0,g.Jp)(this.computedSvgPath,t,"svg"):yield(0,g.D6)(t);if(!a)return;const n=null===(i=this.svgIcon)||void 0===i?void 0:i.getAttribute("class");r===n?(this.svgIcon=a,null===(o=this.svgIcon)||void 0===o||o.setAttribute("class",`icon ${t}`),null===(s=this.svgIcon)||void 0===s||s.setAttribute("part","icon"),this.setSvgIconAttributes()):this.consoleHandler("name-changed",[null!=n?n:"",t])},new((o=void 0)||(o=Promise))(function(t,r){function a(t){try{l(s.next(t))}catch(t){r(t)}}function n(t){try{l(s.throw(t))}catch(t){r(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o(function(t){t(i)})).then(a,n)}l((s=s.apply(e,i||[])).next())});var e,i,o,s}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 computedSvgPath(){return this.svgUrl?this.svgUrl:b.O.svgIconUrl}getIsMomentumDesignName(t){return t.endsWith("-filled")||t.endsWith("-light")||t.endsWith("-regular")||t.endsWith("-bold")}get svgIconName(){if("momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet)return this.name;if("preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name))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:d()(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):"preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name)?"":n().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[r.A,y.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||"svg"===this.iconSet}get isSVGRender(){return this.svgIcon&&"preferMomentumDesign"===this.iconSet||"momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}render(){return this.isSVGRender?this.renderSVGIcon():this.renderFontIcon()}renderFontIcon(){var t;return h.html`
|
|
1740
1739
|
<i
|
|
1741
1740
|
part="icon"
|
|
1742
1741
|
id=${this.id}
|
|
@@ -1815,7 +1814,7 @@
|
|
|
1815
1814
|
</slot>
|
|
1816
1815
|
</div>
|
|
1817
1816
|
`:n.nothing}
|
|
1818
|
-
`}};c([(0,l.property)({type:Array})],e.prototype,"attendees",void 0),c([(0,l.property)({type:String})],e.prototype,"closeAriaLabel",void 0),c([(0,l.property)({attribute:!1})],e.prototype,"onKeyDown",void 0),c([(0,l.property)({attribute:!1})],e.prototype,"onSnooze",void 0),c([(0,l.property)({type:String})],e.prototype,"message",void 0),c([(0,l.property)({type:String})],e.prototype,"snoozeAriaLabel",void 0),c([(0,l.property)({type:String})],e.prototype,"role",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"show",void 0),c([(0,l.property)({type:String})],e.prototype,"src",void 0),c([(0,l.property)({type:String})],e.prototype,"status",void 0),c([(0,l.property)({type:String})],e.prototype,"userStyles",void 0),c([(0,l.property)({type:String})],e.prototype,"title",void 0),e=c([(0,r.w)("md-meeting-alert")],e),t.ELEMENT=e}(o||(o={}))},63208:(t,e,i)=>{i.d(e,{DatePickerCalendar:()=>o}),i(17814),i(61200);var o,s=i(31890),r=i(81625),a=i(4313),n=i(87161),l=i(70429),d=i(34363),h=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.monthFormat="MMMM yyyy",this.filterParams=void 0,this.handleMonthChange=void 0,this.datePickerProps=void 0,this.shortDay=!1,this.viewAnchorDate=(0,r.tB)(),this.localeMonth=void 0,this.setDate=(t,e)=>{this.viewAnchorDate=t,null==e||e()},this.increaseMonth=t=>{const{handleMonthChange:e}=this,{viewAnchorDate:i}=this;this.setDate((0,r.PS)(i,1),()=>e&&e(t,this.viewAnchorDate))},this.decreaseMonth=t=>{const{handleMonthChange:e}=this,{viewAnchorDate:i}=this;this.setDate((0,r.SL)(i,1),()=>e&&e(t,this.viewAnchorDate))},this.renderMonthName=()=>n.html` <div class="md-datepicker__navigation--current-month" aria-live="polite">${this.localeMonth}</div> `,this.renderPreviousMonthButton=()=>{var t,e;const i=(null===(t=this.filterParams)||void 0===t?void 0:t.minDate)&&(0,r.PD)(this.viewAnchorDate,null===(e=this.filterParams)||void 0===e?void 0:e.minDate);return n.html`
|
|
1817
|
+
`}};c([(0,l.property)({type:Array})],e.prototype,"attendees",void 0),c([(0,l.property)({type:String})],e.prototype,"closeAriaLabel",void 0),c([(0,l.property)({attribute:!1})],e.prototype,"onKeyDown",void 0),c([(0,l.property)({attribute:!1})],e.prototype,"onSnooze",void 0),c([(0,l.property)({type:String})],e.prototype,"message",void 0),c([(0,l.property)({type:String})],e.prototype,"snoozeAriaLabel",void 0),c([(0,l.property)({type:String})],e.prototype,"role",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"show",void 0),c([(0,l.property)({type:String})],e.prototype,"src",void 0),c([(0,l.property)({type:String})],e.prototype,"status",void 0),c([(0,l.property)({type:String})],e.prototype,"userStyles",void 0),c([(0,l.property)({type:String})],e.prototype,"title",void 0),e=c([(0,r.w)("md-meeting-alert")],e),t.ELEMENT=e}(o||(o={}))},63208:(t,e,i)=>{i.d(e,{DatePickerCalendar:()=>o}),i(17814),i(61200),i(12176);var o,s=i(31890),r=i(81625),a=i(4313),n=i(87161),l=i(70429),d=i(34363),h=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.monthFormat="MMMM yyyy",this.filterParams=void 0,this.handleMonthChange=void 0,this.onRetry=void 0,this.datePickerProps=void 0,this.errorMessages={},this.shortDay=!1,this.isDatePickerMonthLoading=!1,this.isDatePickerMonthError=!1,this.viewAnchorDate=(0,r.tB)(),this.localeMonth=void 0,this.setDate=(t,e)=>{this.viewAnchorDate=t,null==e||e()},this.increaseMonth=t=>{const{handleMonthChange:e}=this,{viewAnchorDate:i}=this;this.setDate((0,r.PS)(i,1),()=>e&&e(t,this.viewAnchorDate))},this.decreaseMonth=t=>{const{handleMonthChange:e}=this,{viewAnchorDate:i}=this;this.setDate((0,r.SL)(i,1),()=>e&&e(t,this.viewAnchorDate))},this.handleRetryClick=()=>{this.onRetry&&this.onRetry()},this.renderMonthName=()=>n.html` <div class="md-datepicker__navigation--current-month" aria-live="polite">${this.localeMonth}</div> `,this.renderPreviousMonthButton=()=>{var t,e;const i=(null===(t=this.filterParams)||void 0===t?void 0:t.minDate)&&(0,r.PD)(this.viewAnchorDate,null===(e=this.filterParams)||void 0===e?void 0:e.minDate);return n.html`
|
|
1819
1818
|
<md-button
|
|
1820
1819
|
variant="ghost"
|
|
1821
1820
|
circle
|
|
@@ -1842,7 +1841,30 @@
|
|
|
1842
1841
|
tabindex="-1"
|
|
1843
1842
|
><md-icon name="arrow-right-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
1844
1843
|
</md-button>
|
|
1845
|
-
`},this.header=()=>{var t;const e=(0,r.mK)(this.viewAnchorDate,null===(t=this.datePickerProps)||void 0===t?void 0:t.weekStart);return[].concat([0,1,2,3,4,5,6].map(t=>{var i;const o=(0,r.fi)((0,r.WV)(e,(null===(i=this.datePickerProps)||void 0===i?void 0:i.locale)||"en"),t),s=(0,r.XN)(o),a=this.getWeekDayName(s,o);return n.html` <div class="md-datepicker__day--name">${a}</div> `}))},this.
|
|
1844
|
+
`},this.header=()=>{var t;const e=(0,r.mK)(this.viewAnchorDate,null===(t=this.datePickerProps)||void 0===t?void 0:t.weekStart);return[].concat([0,1,2,3,4,5,6].map(t=>{var i;const o=(0,r.fi)((0,r.WV)(e,(null===(i=this.datePickerProps)||void 0===i?void 0:i.locale)||"en"),t),s=(0,r.XN)(o),a=this.getWeekDayName(s,o);return n.html` <div class="md-datepicker__day--name">${a}</div> `}))}}connectedCallback(){var t,e,i;super.connectedCallback(),this.viewAnchorDate=(null===(t=this.datePickerProps)||void 0===t?void 0:t.focused)||(null===(e=this.datePickerProps)||void 0===e?void 0:e.selected)||(0,r.tB)(),this.localeMonth=(0,r.WV)(this.viewAnchorDate,(null===(i=this.datePickerProps)||void 0===i?void 0:i.locale)||"en").toFormat(this.monthFormat)}updated(t){var e,i,o,s,a;super.updated(t),t.has("datePickerProps")&&(null===(null===(e=this.datePickerProps)||void 0===e?void 0:e.selected.invalidReason)&&(this.viewAnchorDate=this.datePickerProps.selected||(0,r.tB)()),this.localeMonth=((null===(i=this.datePickerProps)||void 0===i?void 0:i.locale)?(0,r.WV)(this.viewAnchorDate,null===(o=this.datePickerProps)||void 0===o?void 0:o.locale):this.viewAnchorDate).toFormat(this.monthFormat)),t.has("viewAnchorDate")&&(this.localeMonth=((null===(s=this.datePickerProps)||void 0===s?void 0:s.locale)?(0,r.WV)(this.viewAnchorDate,null===(a=this.datePickerProps)||void 0===a?void 0:a.locale):this.viewAnchorDate).toFormat(this.monthFormat))}getWeekDayName(t,e){return this.shortDay?(0,r.XY)(t,e):(0,r.DY)(t,e)}renderLoader(){return n.html`
|
|
1845
|
+
<div class="md-datepicker__loading">
|
|
1846
|
+
<div class="md-datepicker__loading-text">${this.errorMessages.LOADING}</div>
|
|
1847
|
+
<md-spinner size="32"></md-spinner>
|
|
1848
|
+
</div>
|
|
1849
|
+
`}renderDateError(){return n.html`
|
|
1850
|
+
<div class="md-datepicker__error-container">
|
|
1851
|
+
<md-icon name="error-legacy-bold" size="24" iconSet="momentumDesign" class="md-datepicker__error-icon">
|
|
1852
|
+
</md-icon>
|
|
1853
|
+
<div class="md-datepicker__error-header">${this.errorMessages.HEADER}</div>
|
|
1854
|
+
<div class="md-datepicker__error-text">${this.errorMessages.TEXT}</div>
|
|
1855
|
+
<md-button variant="secondary" size="24" @click=${this.handleRetryClick}>
|
|
1856
|
+
<md-icon slot="icon" name="refresh-bold" size="14" iconSet="momentumDesign"></md-icon>
|
|
1857
|
+
<span slot="text">${this.errorMessages.RETRY}</span>
|
|
1858
|
+
</md-button>
|
|
1859
|
+
</div>
|
|
1860
|
+
`}renderMonthContent(){return this.isDatePickerMonthError?this.renderDateError():this.isDatePickerMonthLoading?this.renderLoader():n.html`
|
|
1861
|
+
<md-datepicker-month
|
|
1862
|
+
.day=${this.viewAnchorDate}
|
|
1863
|
+
.filterParams=${this.filterParams}
|
|
1864
|
+
.datePickerProps=${this.datePickerProps}
|
|
1865
|
+
>
|
|
1866
|
+
</md-datepicker-month>
|
|
1867
|
+
`}renderMonth(){return n.html`
|
|
1846
1868
|
<div class="md-datepicker__month-container">
|
|
1847
1869
|
<div class="md-datepicker__header">
|
|
1848
1870
|
<div class="md-datepicker__navigation">
|
|
@@ -1853,15 +1875,11 @@
|
|
|
1853
1875
|
</div>
|
|
1854
1876
|
<div class="md-datepicker__day--names">${this.header()}</div>
|
|
1855
1877
|
</div>
|
|
1856
|
-
|
|
1857
|
-
.day=${this.viewAnchorDate}
|
|
1858
|
-
.filterParams=${this.filterParams}
|
|
1859
|
-
.datePickerProps=${this.datePickerProps}
|
|
1860
|
-
></md-datepicker-month>
|
|
1878
|
+
${this.renderMonthContent()}
|
|
1861
1879
|
</div>
|
|
1862
|
-
`}
|
|
1880
|
+
`}static get styles(){return[a.A,d.A]}render(){return n.html`
|
|
1863
1881
|
<div class="md-datepicker__calendar" id="Datepicker-Calendar">${this.viewAnchorDate&&this.renderMonth()}</div>
|
|
1864
|
-
`}};h([(0,l.property)({attribute:!1})],e.prototype,"monthFormat",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"filterParams",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"handleMonthChange",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),h([(0,l.property)({type:Boolean,reflect:!0,attribute:"short-day"})],e.prototype,"shortDay",void 0),h([(0,l.state)()],e.prototype,"viewAnchorDate",void 0),h([(0,l.state)()],e.prototype,"localeMonth",void 0),e=h([(0,s.w)("md-datepicker-calendar")],e),t.ELEMENT=e}(o||(o={}))},63704:(t,e,i)=>{i.d(e,{Badge:()=>o});var o,s=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(20291),h=i(15427),c=i(49480),p=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.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.circleSize=h.zj[40],this.small=!1,this.split=!1,this.disabled=!1,this.tabIndexing="",this.ariaHiddenSplits="",this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:a.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:a.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:a.nothing,this.renderWidth=()=>this.width?`width: ${this.width};`:a.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height||this.width?a.html`
|
|
1882
|
+
`}};h([(0,l.property)({attribute:!1})],e.prototype,"monthFormat",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"filterParams",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"handleMonthChange",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"onRetry",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),h([(0,l.property)({type:Object,attribute:!1})],e.prototype,"errorMessages",void 0),h([(0,l.property)({type:Boolean,reflect:!0,attribute:"short-day"})],e.prototype,"shortDay",void 0),h([(0,l.property)({type:Boolean,reflect:!0,attribute:"is-date-picker-month-loading"})],e.prototype,"isDatePickerMonthLoading",void 0),h([(0,l.property)({type:Boolean,reflect:!0,attribute:"is-date-picker-month-error"})],e.prototype,"isDatePickerMonthError",void 0),h([(0,l.state)()],e.prototype,"viewAnchorDate",void 0),h([(0,l.state)()],e.prototype,"localeMonth",void 0),e=h([(0,s.w)("md-datepicker-calendar")],e),t.ELEMENT=e}(o||(o={}))},63704:(t,e,i)=>{i.d(e,{Badge:()=>o});var o,s=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(20291),h=i(15427),c=i(49480),p=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.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.circleSize=h.zj[40],this.small=!1,this.split=!1,this.disabled=!1,this.tabIndexing="",this.ariaHiddenSplits="",this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:a.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:a.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:a.nothing,this.renderWidth=()=>this.width?`width: ${this.width};`:a.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height||this.width?a.html`
|
|
1865
1883
|
<style>
|
|
1866
1884
|
:host .md-badge {
|
|
1867
1885
|
${this.renderBgColor()};
|
|
@@ -1969,11 +1987,11 @@
|
|
|
1969
1987
|
${this.renderHeader()}
|
|
1970
1988
|
<div class="content-margin">${this.renderCardText()} ${this.renderFooter()}</div>
|
|
1971
1989
|
</div>
|
|
1972
|
-
`}};c([(0,l.property)({type:String})],e.prototype,"id",void 0),c([(0,l.property)({type:String})],e.prototype,"title",void 0),c([(0,l.property)({type:String})],e.prototype,"cardText",void 0),c([(0,l.property)({type:String})],e.prototype,"timestamp",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"summariseMoreVisible",void 0),c([(0,l.property)({type:String})],e.prototype,"variant",void 0),c([(0,l.state)()],e.prototype,"copyChecked",void 0),c([(0,l.state)()],e.prototype,"thumbsUpChecked",void 0),c([(0,l.state)()],e.prototype,"thumbsDownChecked",void 0),e=c([(0,r.w)("md-card-ai")],e),t.ELEMENT=e}(s||(s={}))},65796:t=>{t.exports=c},65875:t=>{t.exports=w},66245:(t,e,i)=>{i.d(e,{ListItem:()=>o});var o,s=i(3001),r=i(31890),a=i(4313),n=i(87161),l=i(70429),d=i(85125),h=i(91729),c=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,s.yC)(n.LitElement)){constructor(){super(...arguments),this.role="option",this.tabIndex=-1,this.shape="rounded",this._disabled=!1,this._selected=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.requestUpdate("disabled",e)}get selected(){return this._selected}set selected(t){const e=this._selected;this._selected=t,this.requestUpdate("selected",e)}get listItemTemplateClassMap(){return{[`md-list-item--${this.shape}`]:!!this.shape}}static get styles(){return[a.A,h.A]}render(){return n.html`
|
|
1990
|
+
`}};c([(0,l.property)({type:String})],e.prototype,"id",void 0),c([(0,l.property)({type:String})],e.prototype,"title",void 0),c([(0,l.property)({type:String})],e.prototype,"cardText",void 0),c([(0,l.property)({type:String})],e.prototype,"timestamp",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"summariseMoreVisible",void 0),c([(0,l.property)({type:String})],e.prototype,"variant",void 0),c([(0,l.state)()],e.prototype,"copyChecked",void 0),c([(0,l.state)()],e.prototype,"thumbsUpChecked",void 0),c([(0,l.state)()],e.prototype,"thumbsDownChecked",void 0),e=c([(0,r.w)("md-card-ai")],e),t.ELEMENT=e}(s||(s={}))},65796:t=>{t.exports=c},65875:t=>{t.exports=w},66245:(t,e,i)=>{i.d(e,{ListItem:()=>o});var o,s=i(3001),r=i(31890),a=i(4313),n=i(87161),l=i(70429),d=i(85125),h=i(91729),c=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,s.yC)(n.LitElement)){constructor(){super(...arguments),this.role="option",this.tabIndex=-1,this.shape="rounded",this._disabled=!1,this._selected=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.requestUpdate("disabled",e)}get selected(){return this._selected}set selected(t){const e=this._selected;this._selected=t,"option"===this.role&&this.setAttribute("aria-selected",`${t}`),this.requestUpdate("selected",e)}get listItemTemplateClassMap(){return{[`md-list-item--${this.shape}`]:!!this.shape}}static get styles(){return[a.A,h.A]}render(){return n.html`
|
|
1973
1991
|
<div class="md-list-item ${(0,d.classMap)(this.listItemTemplateClassMap)}" part="list-item">
|
|
1974
1992
|
<slot></slot>
|
|
1975
1993
|
</div>
|
|
1976
|
-
`}};c([(0,l.property)({type:String,reflect:!0})],e.prototype,"role",void 0),c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([(0,l.property)({type:String,reflect:!0})],e.prototype,"shape",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"selected",null),e=c([(0,r.w)("md-list-item")],e),t.ELEMENT=e}(o||(o={}))},66677:(t,e,i)=>{i.d(e,{QZ:()=>r,Qx:()=>a,XI:()=>l,dw:()=>d,qi:()=>n,sg:()=>s,ws:()=>o});const o=(t,e)=>{const i=[];[e].forEach(e=>{i.push(...((t,e)=>{const i=e.length;if(0===i)return[];const o=[],s=t.toLowerCase(),r=e.toLowerCase();let a=0,n=s.indexOf(r,a);for(;n>-1;)a=n+i,o.push([n,a]),n=s.indexOf(r,n+1);return o})(t,e))});const o=(([...t])=>{if(!t.length)return[];t.sort((t,e)=>t[0]!==e[0]?t[0]-e[0]:t[1]-e[1]);const e=[];let i=t[0][0],o=t[0][1];return t.shift(),t.forEach(([t,s])=>{t>=o?(e.push([i,o]),i=t,o=s):s>o&&(o=s)}),e.push([i,o]),e})(i),s=[];let r=0;return o.forEach(([e,i])=>{r!==e&&s.push({range:[e,i],matching:!1,text:t.slice(r,e)}),s.push({range:[e,i],matching:!0,text:t.slice(e,i)}),r=i}),r!==t.length&&s.push({range:[r],matching:!1,text:t.slice(r)}),s};function s(t,e,i){let o;return function(...s){const r=this,a=i&&!o;clearTimeout(o),o=setTimeout(function(){o=null,i||t.apply(r,s)},e),a&&t.apply(r,s)}}function r(t,e){return function e(i){if(!i||i===document||i===window)return null;const o=i.closest(t);return null!=o?o:e(i.getRootNode().host)}(e)}function a(t,e){return e>=0&&e<t.length?t[e]:void 0}function n(t,e=document){var i;const o=e instanceof ShadowRoot||e instanceof Document?e.querySelector(t):null===(i=e.shadowRoot)||void 0===i?void 0:i.querySelector(t);if(o)return o;const s=Array.from(e.querySelectorAll("*")).map(t=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null}).filter(t=>null!==t);for(const e of s){const i=n(t,e);if(i)return i}return null}function l(t,e=document){if(e instanceof ShadowRoot||e instanceof Document){const i=e.getElementById(t);if(i)return i}const i=Array.from(e.querySelectorAll("*")).map(t=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null}).filter(t=>null!==t);for(const e of i){const i=l(t,e);if(i)return i}return null}function d(){var t;let e=document.activeElement;for(;null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.activeElement;)e=e.shadowRoot.activeElement;return e}},68250:t=>{t.exports=m},68490:(t,e,i)=>{i.d(e,{List:()=>o});var o,s=i(90195),r=i(3001),a=i(31890),n=i(4313),l=i(87161),d=i(70429),h=i(20291),c=i(91729),p=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,r.Io)(l.LitElement)){constructor(){super(...arguments),this.alignment="vertical",this.label="option",this.activated=-1,this._role="listbox"}firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-label",this.label)}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}isFocusable(t){return!t.hasAttribute("hidden")}connectedCallback(){super.connectedCallback()
|
|
1994
|
+
`}};c([(0,l.property)({type:String,reflect:!0})],e.prototype,"role",void 0),c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([(0,l.property)({type:String,reflect:!0})],e.prototype,"shape",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"selected",null),e=c([(0,r.w)("md-list-item")],e),t.ELEMENT=e}(o||(o={}))},66677:(t,e,i)=>{i.d(e,{QZ:()=>r,Qx:()=>a,XI:()=>l,dw:()=>d,qi:()=>n,sg:()=>s,ws:()=>o});const o=(t,e)=>{const i=[];[e].forEach(e=>{i.push(...((t,e)=>{const i=e.length;if(0===i)return[];const o=[],s=t.toLowerCase(),r=e.toLowerCase();let a=0,n=s.indexOf(r,a);for(;n>-1;)a=n+i,o.push([n,a]),n=s.indexOf(r,n+1);return o})(t,e))});const o=(([...t])=>{if(!t.length)return[];t.sort((t,e)=>t[0]!==e[0]?t[0]-e[0]:t[1]-e[1]);const e=[];let i=t[0][0],o=t[0][1];return t.shift(),t.forEach(([t,s])=>{t>=o?(e.push([i,o]),i=t,o=s):s>o&&(o=s)}),e.push([i,o]),e})(i),s=[];let r=0;return o.forEach(([e,i])=>{r!==e&&s.push({range:[e,i],matching:!1,text:t.slice(r,e)}),s.push({range:[e,i],matching:!0,text:t.slice(e,i)}),r=i}),r!==t.length&&s.push({range:[r],matching:!1,text:t.slice(r)}),s};function s(t,e,i){let o;return function(...s){const r=this,a=i&&!o;clearTimeout(o),o=setTimeout(function(){o=null,i||t.apply(r,s)},e),a&&t.apply(r,s)}}function r(t,e){return function e(i){if(!i||i===document||i===window)return null;const o=i.closest(t);return null!=o?o:e(i.getRootNode().host)}(e)}function a(t,e){return e>=0&&e<t.length?t[e]:void 0}function n(t,e=document){var i;const o=e instanceof ShadowRoot||e instanceof Document?e.querySelector(t):null===(i=e.shadowRoot)||void 0===i?void 0:i.querySelector(t);if(o)return o;const s=Array.from(e.querySelectorAll("*")).map(t=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null}).filter(t=>null!==t);for(const e of s){const i=n(t,e);if(i)return i}return null}function l(t,e=document){if(e instanceof ShadowRoot||e instanceof Document){const i=e.getElementById(t);if(i)return i}const i=Array.from(e.querySelectorAll("*")).map(t=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null}).filter(t=>null!==t);for(const e of i){const i=l(t,e);if(i)return i}return null}function d(){var t;let e=document.activeElement;for(;null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.activeElement;)e=e.shadowRoot.activeElement;return e}},68250:t=>{t.exports=m},68490:(t,e,i)=>{i.d(e,{List:()=>o});var o,s=i(90195),r=i(3001),a=i(31890),n=i(4313),l=i(87161),d=i(70429),h=i(20291),c=i(91729),p=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,r.Io)(l.LitElement)){constructor(){super(...arguments),this.alignment="vertical",this.label="option",this.activated=-1,this._role="listbox"}firstUpdated(t){super.firstUpdated(t),"none"!==this._role&&this.setAttribute("aria-label",this.label)}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}isFocusable(t){return!t.hasAttribute("hidden")}connectedCallback(){super.connectedCallback();const t=this.getAttribute("role");this._role=t||"listbox",this.removeAttribute("role"),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}findListItemIndex(t){const e=t.composedPath();return this.slotted.findIndex(t=>e.includes(t))}switchListItemOnArrowPress(t,e=1){const i=super.getAvailableSelectedIndex(t,e);-1!==i&&(this.selected=i)}setActivated(t){-1!==t&&(this.activated=t,this.selected=t,this.setSelected(t))}findSelectedListItemIndex(){return this.slotted.findIndex(t=>t.selected)}setSelected(t){const e=this.findSelectedListItemIndex();-1!==e&&e!==t&&(this.slotted[e].selected=!1),this.slotted[t]&&(this.slotted[t].selected=!0)}updated(t){super.updated(t),t.has("slotted")&&this.setActivated(this.activated),t.has("activated")&&this.setActivated(this.activated),t.has("label")&&"none"!==this._role&&this.setAttribute("aria-label",this.label)}isListItemDisabled(t){var e;const i=this.slotted[t];return null===(e=null==i?void 0:i.disabled)||void 0===e||e}handleClick(t){const e=this.findListItemIndex(t);-1!==e&&(this.isListItemDisabled(e)||(this.setActivated(e),this.notifySelectedChange()))}shouldElementHandleKey(t,e){if(t.hasAttribute("data-handles-keys")||t.closest("[data-handles-keys]"))return!0;const i=t.tagName.toLowerCase(),o=t.nodeName.toLowerCase(),r="input"===o||"textarea"===o||"select"===o,a=t.getAttribute("role"),n=t.hasAttribute("contenteditable")||"false"===t.getAttribute("aria-readonly"),l=[s.Uz.ArrowUp,s.Uz.ArrowDown,s.Uz.ArrowLeft,s.Uz.ArrowRight],d=[s.Uz.Enter,s.Uz.Space];return l.includes(e)?r||n||"textbox"===a||"combobox"===a||"listbox"===a||"menu"===a||"slider"===a||"scrollbar"===a||"tablist"===a||i.startsWith("md-")&&("md-input"===i||"md-select"===i||"md-combobox"===i):d.includes(e)?"button"===a||"link"===a||"checkbox"===a||"radio"===a||"button"===i||"a"===i||"md-button"===i||"md-checkbox"===i||"md-radio"===i||r:(e===s.Uz.Home||e===s.Uz.End)&&(r||n||"textbox"===a||"md-input"===i)}handleKeyDown(t){const e=t.composedPath()[0];if(this.shouldElementHandleKey(e,t.code))return;const{code:i}=t;switch(i){case s.Uz.End:this.switchListItemOnArrowPress(this.slotted.length-1);break;case s.Uz.Home:this.switchListItemOnArrowPress(0);break;case s.Uz.ArrowUp:case s.Uz.ArrowLeft:t.preventDefault(),0===this.selected?this.switchListItemOnArrowPress(this.slotted.length-1,-1):this.switchListItemOnArrowPress(this.selected-1,-1);break;case s.Uz.ArrowDown:case s.Uz.ArrowRight:t.preventDefault(),this.selected===this.slotted.length-1?this.switchListItemOnArrowPress(0):this.switchListItemOnArrowPress(this.selected+1);break;case s.Uz.Enter:case s.Uz.Space:this.isListItemDisabled(this.selected)||(this.setActivated(this.selected),this.notifySelectedChange())}}get slotElement(){return this.listItemSlot}static get styles(){return[n.A,c.A]}render(){return l.html`
|
|
1977
1995
|
<ul role=${(0,h.ifDefined)("list"!==this._role?this._role:void 0)} class="md-list" part="list">
|
|
1978
1996
|
<slot name="list-item"></slot>
|
|
1979
1997
|
</ul>
|
|
@@ -2186,14 +2204,14 @@
|
|
|
2186
2204
|
</div>
|
|
2187
2205
|
`}handleSlotContentChange(t){this.updateFooterSlotInUse()}updateFooterSlotInUse(){var t;this.hasFooterSlotContent=(null===(t=this.alertFooterSlot)||void 0===t?void 0:t.assignedNodes().length)>0}renderSlottedFooter(){return a.html` <div class="md-new-alert__footer ${(0,l.classMap)(this.slottedFooterClassMap)}">
|
|
2188
2206
|
<slot name="alert-footer" @slotchange=${this.handleSlotContentChange}></slot>
|
|
2189
|
-
</div>`}newRender(){return a.html`
|
|
2207
|
+
</div>`}newRender(){var t,e;return a.html`
|
|
2190
2208
|
<div role="alert" aria-live="polite" part="alert" class="md-new-alert ${(0,l.classMap)(this.alertClassMap)}">
|
|
2191
2209
|
<div class="md-new-alert__body">
|
|
2192
2210
|
<div class="md-new-alert__icon aria-hidden=true">${this.renderIconTemplate()}</div>
|
|
2193
2211
|
<div part="content" class="md-new-alert__content">
|
|
2194
2212
|
${this.title&&""!==this.title?a.html` <div class="md-new-alert__title" role="heading" aria-level="1">${this.title}</div> `:a.nothing}
|
|
2195
|
-
<div class="md-new-alert__message" title="${this.message}">
|
|
2196
|
-
|
|
2213
|
+
<div class="md-new-alert__message" part="message" title="${null===(t=this.message)||void 0===t?void 0:t.trim()}">
|
|
2214
|
+
<span class="md-new-alert__message_span" part="text">${null===(e=this.message)||void 0===e?void 0:e.trim()}</span>
|
|
2197
2215
|
<slot name="alert-body"></slot>
|
|
2198
2216
|
${this.showMore?a.html`<md-link href=${this.href} inline>Show more...</md-link>`:a.nothing}
|
|
2199
2217
|
</div>
|
|
@@ -2383,28 +2401,43 @@
|
|
|
2383
2401
|
<div class="md-draggable" part="draggable" aria-disabled=${this.disabled}>
|
|
2384
2402
|
<slot name="draggable-item"></slot>
|
|
2385
2403
|
</div>
|
|
2386
|
-
`}};p([(0,l.property)({type:Number})],e.prototype,"delay",void 0),p([(0,l.property)({type:Number})],e.prototype,"animation",void 0),p([(0,l.property)({type:String})],e.prototype,"handle",void 0),p([(0,l.property)({type:String})],e.prototype,"filter",void 0),p([(0,l.property)({type:String})],e.prototype,"easing",void 0),p([(0,l.property)({type:String})],e.prototype,"direction",void 0),p([(0,l.property)({type:Object})],e.prototype,"group",void 0),p([(0,l.property)({type:String,attribute:"draggable-items"})],e.prototype,"draggableItems",void 0),p([(0,l.property)({type:String,attribute:"ghost-class"})],e.prototype,"ghostClass",void 0),p([(0,l.property)({type:String,attribute:"chosen-class"})],e.prototype,"chosenClass",void 0),p([(0,l.property)({type:String,attribute:"drag-class"})],e.prototype,"dragClass",void 0),p([(0,l.property)({type:String,attribute:"fallback-class"})],e.prototype,"fallbackClass",void 0),p([(0,l.property)({type:Number,attribute:"swap-threshold"})],e.prototype,"swapThreshold",void 0),p([(0,l.property)({type:Number,attribute:"touch-start-threshold"})],e.prototype,"touchStartThreshold",void 0),p([(0,l.property)({type:Boolean,attribute:"force-fallback"})],e.prototype,"forceFallback",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"sort",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"editable",void 0),p([(0,l.query)("slot[name='draggable-item']")],e.prototype,"draggableSlot",void 0),e=p([(0,s.wW)("md-draggable")],e),t.ELEMENT=e}(o||(o={}))},81144:(t,e,i)=>{i.d(e,{Radio:()=>o});var o,s=i(3001),r=i(31890),a=i(4313),n=i(87161),l=i(70429),d=i(
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2404
|
+
`}};p([(0,l.property)({type:Number})],e.prototype,"delay",void 0),p([(0,l.property)({type:Number})],e.prototype,"animation",void 0),p([(0,l.property)({type:String})],e.prototype,"handle",void 0),p([(0,l.property)({type:String})],e.prototype,"filter",void 0),p([(0,l.property)({type:String})],e.prototype,"easing",void 0),p([(0,l.property)({type:String})],e.prototype,"direction",void 0),p([(0,l.property)({type:Object})],e.prototype,"group",void 0),p([(0,l.property)({type:String,attribute:"draggable-items"})],e.prototype,"draggableItems",void 0),p([(0,l.property)({type:String,attribute:"ghost-class"})],e.prototype,"ghostClass",void 0),p([(0,l.property)({type:String,attribute:"chosen-class"})],e.prototype,"chosenClass",void 0),p([(0,l.property)({type:String,attribute:"drag-class"})],e.prototype,"dragClass",void 0),p([(0,l.property)({type:String,attribute:"fallback-class"})],e.prototype,"fallbackClass",void 0),p([(0,l.property)({type:Number,attribute:"swap-threshold"})],e.prototype,"swapThreshold",void 0),p([(0,l.property)({type:Number,attribute:"touch-start-threshold"})],e.prototype,"touchStartThreshold",void 0),p([(0,l.property)({type:Boolean,attribute:"force-fallback"})],e.prototype,"forceFallback",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"sort",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"editable",void 0),p([(0,l.query)("slot[name='draggable-item']")],e.prototype,"draggableSlot",void 0),e=p([(0,s.wW)("md-draggable")],e),t.ELEMENT=e}(o||(o={}))},81144:(t,e,i)=>{i.d(e,{Radio:()=>o});var o,s=i(3001),r=i(31890),a=i(4313),n=i(87161),l=i(70429),d=i(85125),h=i(20291),c=i(60836),p=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,s.yC)(n.LitElement)){constructor(){super(...arguments),this.tabIndex=-1,this.label="",this.value="",this.message="",this.hideMessage=!1,this.ariaLabel="",this.autofocus=!1,this._disabled=!1,this.checked=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get inputAriaLabel(){var t,e,i,o;const s=(null===(t=this.message)||void 0===t?void 0:t.length)?` - ${this.message}`:"";if(null===(e=this.ariaLabel)||void 0===e?void 0:e.length)return this.ariaLabel;if(null===(i=this.label)||void 0===i?void 0:i.length)return this.label+s;const r=null===(o=this.textContent)||void 0===o?void 0:o.trim();return(null==r?void 0:r.length)?r+s:s}static get styles(){return[a.A,c.A]}get helpTextClassMap(){return{"md-radio-help-text--hide":this.hideMessage}}messagesTemplate(){var t;return(null===(t=this.message)||void 0===t?void 0:t.length)?n.html`
|
|
2405
|
+
<div class="${(0,d.classMap)(this.helpTextClassMap)}">
|
|
2406
|
+
<md-help-text class="help-text-radio" newMomentum role="alert" aria-live="assertive">
|
|
2407
|
+
${this.message}
|
|
2408
|
+
</md-help-text>
|
|
2409
|
+
</div>
|
|
2410
|
+
`:n.nothing}render(){return n.html`
|
|
2411
|
+
<div>
|
|
2412
|
+
<slot name="image"></slot>
|
|
2413
|
+
<div class="md-radio-wrapper" part="radio-wrapper">
|
|
2414
|
+
<div class="md-radio-icon"></div>
|
|
2415
|
+
<input
|
|
2416
|
+
class="md-radio-input"
|
|
2417
|
+
part="radio-input"
|
|
2418
|
+
type="radio"
|
|
2419
|
+
role="radio"
|
|
2420
|
+
aria-label=${(0,h.ifDefined)(this.inputAriaLabel)}
|
|
2421
|
+
aria-checked=${this.checked?"true":"false"}
|
|
2422
|
+
.value=${this.value}
|
|
2423
|
+
?checked=${this.checked}
|
|
2424
|
+
?autofocus=${this.autofocus}
|
|
2425
|
+
?disabled=${this.disabled}
|
|
2426
|
+
tabindex="-1"
|
|
2427
|
+
id="radio-label"
|
|
2428
|
+
/>
|
|
2429
|
+
<label
|
|
2430
|
+
for="radio-label"
|
|
2431
|
+
class="md-radio-label"
|
|
2432
|
+
part="radio-label"
|
|
2433
|
+
@click=${t=>t.preventDefault()}
|
|
2434
|
+
>
|
|
2435
|
+
<slot></slot>
|
|
2436
|
+
</label>
|
|
2437
|
+
</div>
|
|
2406
2438
|
</div>
|
|
2407
|
-
|
|
2439
|
+
${this.messagesTemplate()}
|
|
2440
|
+
`}};p([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),p([(0,l.property)({type:String})],e.prototype,"label",void 0),p([(0,l.property)({type:String})],e.prototype,"value",void 0),p([(0,l.property)({type:String})],e.prototype,"message",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"hideMessage",void 0),p([(0,l.property)({type:String})],e.prototype,"ariaLabel",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"checked",void 0),e=p([(0,r.w)("md-radio")],e),t.ELEMENT=e}(o||(o={}))},83048:t=>{t.exports=l},83192:(t,e,i)=>{i.d(e,{Tooltip:()=>o});var o,s=i(90195),r=i(3001),a=i(31890),n=i(66677),l=i(4313),d=i(87161),h=i(70429),c=i(85125),p=i(62848),u=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,r.UM)((0,r.yC)(d.LitElement))){constructor(){super(...arguments),this.message="",this.placement="auto",this.disabled=!1,this.opened=!1,this.slotToTooltip=!1,this.slotContent=null,this._keyDownListener=t=>{this.handleKeyDown(t)},this._wheelListener=t=>{this.opened&&this.notifyTooltipDestroy()}}hasMessage(){return this.message&&this.message.trim().length>0}hasSlotContent(){return this.slotContent&&this.slotContent.length>0}get hasTooltipContent(){return this.hasMessage()||this.hasSlotContent()}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this._keyDownListener),window.addEventListener("wheel",this._wheelListener,{passive:!0})}disconnectedCallback(){this.notifyTooltipDisconnected(),super.disconnectedCallback(),document.removeEventListener("keydown",this._keyDownListener),window.removeEventListener("wheel",this._wheelListener)}handleResize(t){var e;null===(e=super.handleResize)||void 0===e||e.call(this,t),(0,n.sg)(()=>{this.slotToTooltip&&(this.disabled=this.reference&&!this.isContentTruncated(this.reference))},100)()}handleFocusIn(t){super.handleFocusIn&&super.handleFocusIn(t),this.notifyTooltipCreate()}handleFocusOut(t){super.handleFocusOut&&super.handleFocusOut(t),this.notifyTooltipDestroy()}openTooltip(){this.dispatchEvent(new CustomEvent("tooltip-create",{bubbles:!0,composed:!0,detail:Object.assign({placement:this.placement,reference:this.reference,popper:this.popper},!this.message&&{slotContent:this.slotContent})}))}notifyTooltipDisconnected(){document.dispatchEvent(new CustomEvent("tooltip-disconnected",{bubbles:!0,composed:!0,detail:{}}))}closeTooltip(){this.dispatchEvent(new CustomEvent("tooltip-destroy",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}changeMessage(){this.dispatchEvent(new CustomEvent("tooltip-message",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}changeSlotContent(t){this.dispatchEvent(new CustomEvent("tooltip-slot",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper,slotContent:t}}))}notifyTooltipCreate(){!this.disabled&&this.hasTooltipContent&&(this.opened=!0)}notifyTooltipDestroy(){this.disabled||(this.opened=!1)}handleKeyDown(t){t.code===s.Uz.Escape&&this.notifyTooltipDestroy()}handleSlotContentChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent&&this.changeSlotContent(t),this.slotContent=t)}}updated(t){super.updated(t),t.has("opened")&&(this.opened?this.openTooltip():this.closeTooltip()),t.has("message")&&this.changeMessage(),t.has("disabled")&&this.opened&&(this.opened=!1)}handleSlotChanged(t){const e=t.target;if(this.slotToTooltip&&e){const t=e.assignedNodes({flatten:!0}).map(t=>t.textContent).join(" ").trim();this.message=t,this.disabled=this.reference&&!this.isContentTruncated(this.reference)}}isContentTruncated(t){return t.scrollWidth>t.clientWidth}get tooltipClassMap(){return{"md-tooltip--disabled":this.disabled}}render(){return d.html`
|
|
2408
2441
|
<div class="md-tooltip ${(0,c.classMap)(this.tooltipClassMap)}">
|
|
2409
2442
|
<div class="md-tooltip__popper" role="tooltip" part="tooltip-popper">
|
|
2410
2443
|
<div id="md-tooltip__content" class="md-tooltip__content" part="tooltip-content">
|
|
@@ -2502,16 +2535,15 @@
|
|
|
2502
2535
|
</div>
|
|
2503
2536
|
</md-datepicker>
|
|
2504
2537
|
</div>
|
|
2505
|
-
`}};u([(0,l.property)({type:String})],e.prototype,"maxDate",void 0),u([(0,l.property)({type:String})],e.prototype,"minDate",void 0),u([(0,l.property)({type:String})],e.prototype,"weekStart",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaLabel",void 0),u([(0,l.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),u([(0,l.property)({type:Boolean,attribute:"should-close-on-select"})],e.prototype,"shouldCloseOnSelect",void 0),u([(0,l.property)({type:Boolean,attribute:"twenty-four-hour-format"})],e.prototype,"twentyFourHourFormat",void 0),u([(0,l.property)({type:String})],e.prototype,"timeSpecificity",void 0),u([(0,l.property)({type:String,attribute:"date-value"})],e.prototype,"dateValue",void 0),u([(0,l.property)({type:String,attribute:"time-value"})],e.prototype,"timeValue",void 0),u([(0,l.property)({type:String,reflect:!0})],e.prototype,"value",void 0),u([(0,l.property)({type:Boolean,attribute:"disable-date-validation"})],e.prototype,"disableDateValidation",void 0),u([(0,l.property)({type:String})],e.prototype,"locale",void 0),u([(0,l.property)({type:String,attribute:"placeholder"})],e.prototype,"placeholder",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"useISOFormat",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,l.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),u([(0,l.property)({type:Boolean,attribute:"show-default-now-date"})],e.prototype,"showDefaultNowDate",void 0),u([(0,l.property)({type:Boolean,attribute:"compact-input"})],e.prototype,"compactInput",void 0),u([(0,l.property)({type:Object,attribute:!1})],e.prototype,"controlButtons",void 0),u([(0,l.state)()],e.prototype,"fullDateTime",void 0),u([(0,l.state)()],e.prototype,"selectedTimeObject",void 0),u([(0,l.state)()],e.prototype,"selectedDateObject",void 0),u([(0,l.query)("md-datepicker")],e.prototype,"datePicker",void 0),u([(0,l.query)("md-timepicker")],e.prototype,"timePicker",void 0),e=u([(0,s.w)("md-date-time-picker")],e),t.ELEMENT=e}(o||(o={}))},86610:(t,e,i)=>{i.d(e,{TaskItem:()=>o}),i(38028),i(63704),i(61200);var o,s=i(31890),r=i(4313),a=i(87161),n=i(
|
|
2538
|
+
`}};u([(0,l.property)({type:String})],e.prototype,"maxDate",void 0),u([(0,l.property)({type:String})],e.prototype,"minDate",void 0),u([(0,l.property)({type:String})],e.prototype,"weekStart",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaLabel",void 0),u([(0,l.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),u([(0,l.property)({type:Boolean,attribute:"should-close-on-select"})],e.prototype,"shouldCloseOnSelect",void 0),u([(0,l.property)({type:Boolean,attribute:"twenty-four-hour-format"})],e.prototype,"twentyFourHourFormat",void 0),u([(0,l.property)({type:String})],e.prototype,"timeSpecificity",void 0),u([(0,l.property)({type:String,attribute:"date-value"})],e.prototype,"dateValue",void 0),u([(0,l.property)({type:String,attribute:"time-value"})],e.prototype,"timeValue",void 0),u([(0,l.property)({type:String,reflect:!0})],e.prototype,"value",void 0),u([(0,l.property)({type:Boolean,attribute:"disable-date-validation"})],e.prototype,"disableDateValidation",void 0),u([(0,l.property)({type:String})],e.prototype,"locale",void 0),u([(0,l.property)({type:String,attribute:"placeholder"})],e.prototype,"placeholder",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"useISOFormat",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,l.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),u([(0,l.property)({type:Boolean,attribute:"show-default-now-date"})],e.prototype,"showDefaultNowDate",void 0),u([(0,l.property)({type:Boolean,attribute:"compact-input"})],e.prototype,"compactInput",void 0),u([(0,l.property)({type:Object,attribute:!1})],e.prototype,"controlButtons",void 0),u([(0,l.state)()],e.prototype,"fullDateTime",void 0),u([(0,l.state)()],e.prototype,"selectedTimeObject",void 0),u([(0,l.state)()],e.prototype,"selectedDateObject",void 0),u([(0,l.query)("md-datepicker")],e.prototype,"datePicker",void 0),u([(0,l.query)("md-timepicker")],e.prototype,"timePicker",void 0),e=u([(0,s.w)("md-date-time-picker")],e),t.ELEMENT=e}(o||(o={}))},86610:(t,e,i)=>{i.d(e,{TaskItem:()=>o}),i(38028),i(63704),i(61200);var o,s=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(20291),h=i(31465),c=i(5657),p=i(52339),u=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.mediaType=h.r.TELEPHONY,this.status="",this.popovertitle="",this.queue="",this.queueTimeLabel="",this.accepted=!1,this.displayOnlyTitle=!1,this.quantity=0,this.lastmessage="",this.selected=!1,this.disabled=!1,this.customAriaLabel="",this.iconSrc="",this.tabIndexForContainer="0",this.isRestyle=!1,this.displayTitle="",this.titleValue="",this.itemTitleValue="",this.additionEmptyMargin=!1}get title(){return this.displayTitle}set title(t){this.titleValue=t,this.updateTitle()}get itemTitle(){return this.displayTitle}set itemTitle(t){this.itemTitleValue=t,this.updateTitle()}updateTitle(){this.itemTitleValue?this.displayTitle=this.itemTitleValue:this.displayTitle=this.titleValue}handleClick(t){this.dispatchEvent(new CustomEvent("taskitem-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.blur()}handleKeyDown(t){this.dispatchEvent(new CustomEvent("taskitem-keydown",{detail:{key:t.code},bubbles:!0,composed:!0}))}getAriaLabel(){var t,e,i,o;if(this.customAriaLabel)return this.customAriaLabel;let s=this.queue;if(!s){const i=this.querySelector('[slot="queue"]');if(i){s=null!==(e=null===(t=i.textContent)||void 0===t?void 0:t.trim())&&void 0!==e?e:i.innerText.trim();const o=/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/.exec(s);if(o){const[,t=0,e,i]=o.map(Number);(new Date).setHours(t,e,i),s=s.replace(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/,`${t?t+" hours ":""}${e} minutes ${i} seconds`)}}}const r=this.querySelector('[slot="queue-time"]');let a=this.queueTimeLabel;return r&&(a+=`${null!==(o=null===(i=r.textContent)||void 0===i?void 0:i.trim())&&void 0!==o?o:r.innerText.trim()}`),`${this.mediaType} ${this.status} ${this.popovertitle} ${this.itemTitle} ${s} ${a} ${this.quantity?this.quantity:""} ${this.lastmessage}`}static get styles(){return[r.A,p.A]}get sanitizedTabIndexForContainer(){var t;return null!==(t=parseInt(this.tabIndexForContainer))&&void 0!==t?t:0}handleAdditionSlotChange(){var t;const e=(null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-taskitem__addition")).getBoundingClientRect();this.additionEmptyMargin=0===e.width&&0===e.height}render(){return a.html`
|
|
2506
2539
|
<div
|
|
2507
2540
|
part="task-item-container"
|
|
2508
|
-
class="md-taskitem ${(0,
|
|
2541
|
+
class="md-taskitem ${(0,l.classMap)({selected:this.selected})}"
|
|
2509
2542
|
tabindex=${this.sanitizedTabIndexForContainer}
|
|
2510
|
-
aria-selected="${this.selected}"
|
|
2511
2543
|
@click=${t=>this.handleClick(t)}
|
|
2512
2544
|
@keydown=${t=>this.handleKeyDown(t)}
|
|
2513
2545
|
aria-label=${this.getAriaLabel()}
|
|
2514
|
-
aria-disabled=${(0,
|
|
2546
|
+
aria-disabled=${(0,d.ifDefined)(this.disabled||void 0)}
|
|
2515
2547
|
>
|
|
2516
2548
|
<div class="md-taskitem__mediatype">
|
|
2517
2549
|
${(0,c.i0)(this.isRestyle,this.mediaType,this.selected,this.status,this.iconSrc)}
|
|
@@ -2525,7 +2557,7 @@
|
|
|
2525
2557
|
`:a.nothing}
|
|
2526
2558
|
${this.itemTitle?a.html`
|
|
2527
2559
|
<span
|
|
2528
|
-
class="md-taskitem__content_title ${(0,
|
|
2560
|
+
class="md-taskitem__content_title ${(0,l.classMap)({mainTitle:!this.popovertitle,"display-only-title":this.displayOnlyTitle})}"
|
|
2529
2561
|
><md-tooltip placement="bottom" slot-to-tooltip>${this.itemTitle}</md-tooltip></span
|
|
2530
2562
|
>
|
|
2531
2563
|
`:a.html`
|
|
@@ -2556,12 +2588,12 @@
|
|
|
2556
2588
|
`:a.nothing}
|
|
2557
2589
|
${this.lastmessage?a.nothing:a.html` <slot name="lastmessage"></slot> `}
|
|
2558
2590
|
</div>
|
|
2559
|
-
<div class="md-taskitem__addition ${(0,
|
|
2591
|
+
<div class="md-taskitem__addition ${(0,l.classMap)({empty_addition:this.additionEmptyMargin})}">
|
|
2560
2592
|
<slot @slotchange=${this.handleAdditionSlotChange}></slot>
|
|
2561
2593
|
${(0,c.Um)(this.quantity,this.isRestyle,this)}
|
|
2562
2594
|
</div>
|
|
2563
2595
|
</div>
|
|
2564
|
-
`}};u([(0,
|
|
2596
|
+
`}};u([(0,n.property)({type:String})],e.prototype,"mediaType",void 0),u([(0,n.property)({type:String})],e.prototype,"status",void 0),u([(0,n.property)({type:String})],e.prototype,"popovertitle",void 0),u([(0,n.property)({type:String})],e.prototype,"queue",void 0),u([(0,n.property)({type:String,attribute:"queue-time-label"})],e.prototype,"queueTimeLabel",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"accepted",void 0),u([(0,n.property)({type:Boolean,attribute:"display-only-title"})],e.prototype,"displayOnlyTitle",void 0),u([(0,n.property)({type:Number})],e.prototype,"quantity",void 0),u([(0,n.property)({type:String})],e.prototype,"lastmessage",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"selected",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,n.property)({type:String})],e.prototype,"customAriaLabel",void 0),u([(0,n.property)({type:String})],e.prototype,"iconSrc",void 0),u([(0,n.property)({type:String})],e.prototype,"tabIndexForContainer",void 0),u([(0,n.property)({type:Boolean,attribute:"is-restyle"})],e.prototype,"isRestyle",void 0),u([(0,n.property)({type:String,reflect:!0})],e.prototype,"title",null),u([(0,n.property)({type:String,reflect:!0,attribute:"item-title"})],e.prototype,"itemTitle",null),u([(0,n.state)()],e.prototype,"additionEmptyMargin",void 0),e=u([(0,s.w)("md-task-item")],e),t.ELEMENT=e}(o||(o={}))},87161:e=>{e.exports=t},89756:t=>{t.exports=d},90195:(t,e,i)=>{var o,s,r,a;i.d(e,{R5:()=>s,Uz:()=>o,iw:()=>a}),function(t){t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.Backspace="Backspace",t.Delete="Delete",t.End="End",t.Enter="Enter",t.Escape="Escape",t.Home="Home",t.Space="Space",t.Tab="Tab",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.NumpadEnter="NumpadEnter"}(o||(o={})),function(t){t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.AM_PM="am_pm"}(s||(s={})),function(t){t.GRAMMAR="grammar",t.FALSE="false",t.SPELLING="spelling",t.TRUE="true"}(r||(r={})),function(t){t.AriaActivedescendant="aria-activedescendant"}(a||(a={}))},90827:(t,e,i)=>{i.d(e,{CardV2:()=>u}),i(96798),i(61200),i(83192);var o=i(31890),s=i(4313),r=i(87161),a=i(70429),n=i(85125),l=i(65796),d=i(80622),h=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const c="hh:mm:ss";var p,u;!function(t){t.DEFAULT="default",t.ACTIVE="active",t.INACTIVE="inactive"}(p||(p={})),function(t){let e=class extends r.LitElement{constructor(){super(...arguments),this.state=p.DEFAULT,this.identifier=void 0,this.header=void 0,this.info=void 0,this.data=void 0,this.createdTime=0,this.active=!1,this.expandable=!1,this.expandAriaLabel="Expand for more details",this.renderedData=""}connectedCallback(){super.connectedCallback(),this.checkForExtraInfoSlot()}disconnectedCallback(){super.disconnectedCallback(),this.clearInterval()}clearInterval(){this.interval&&(clearInterval(this.interval),this.interval=void 0)}static get styles(){return[s.A,d.A]}get isCardActive(){return this.state===p.ACTIVE}update(t){super.update(t),(t.has("active")||t.has("data")||t.has("createdTime"))&&this.calculateRenderedData()}expandCardToggled(){var t;this.state=this.isCardActive?p.DEFAULT:p.ACTIVE,this.dispatchEvent(new CustomEvent("expand-card-toggled",{detail:{identifier:null!==(t=this.identifier)&&void 0!==t?t:"",active:this.isCardActive},bubbles:!0,composed:!0}))}checkForExtraInfoSlot(){var t;(null===(t=this.extraInfoSlot)||void 0===t?void 0:t.assignedNodes().length)>0?this.setAttribute("has-extra-info",""):this.removeAttribute("has-extra-info")}handleExtraInfoSlotChange(t){this.checkForExtraInfoSlot()}get cardClassMap(){return{"md-card-v2":!0,[`md-card--${this.state}`]:!0}}get contentClassMap(){return{"md-card-v2-content":!0,inactive:this.state===p.INACTIVE}}get footerExpandClassMap(){return{"md-card-v2-footer-expand":!0,hidden:!this.expandable}}get expandCardHandler(){return this.expandable?this.expandCardToggled:null}renderHeader(){return r.html`
|
|
2565
2597
|
<div class="md-card-v2-header-title">
|
|
2566
2598
|
<h3>${this.header}</h3>
|
|
2567
2599
|
${this.info?r.html`
|
|
@@ -2656,7 +2688,7 @@
|
|
|
2656
2688
|
</div>
|
|
2657
2689
|
</div>
|
|
2658
2690
|
</div>
|
|
2659
|
-
`}};h([(0,n.property)({type:String})],e.prototype,"title",void 0),h([(0,n.property)({type:String})],e.prototype,"src",void 0),h([(0,n.property)({type:String})],e.prototype,"time",void 0),h([(0,n.property)({type:String})],e.prototype,"label",void 0),h([(0,n.property)({type:String})],e.prototype,"status",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"clickableTimestamp",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"isSelected",void 0),h([(0,n.property)({type:String,reflect:!0,attribute:"self-label"})],e.prototype,"selfLabel",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"self",void 0),h([(0,n.property)({type:String,reflect:!0,attribute:"avatar-color"})],e.prototype,"avatarColor",void 0),h([(0,n.property)({type:String,reflect:!0,attribute:"avatar-type"})],e.prototype,"avatarType",void 0),h([(0,n.property)({type:Number,reflect:!0,attribute:"avatar-size"})],e.prototype,"avatarSize",void 0),e=h([(0,s.w)("md-chat-message")],e),t.ELEMENT=e}(o||(o={}))},96408:(t,e,i)=>{i.d(e,{Input:()=>o}),i(20109),i(61200),i(6396),i(12176);var o,s=i(90195),r=i(31890),a=i(32972),n=i(4313),l=(i(32022),i(87161)),d=i(70429),h=i(85125),c=i(20291),p=i(58175),u=i(10318),m=i(13739),v=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){class e{determineMessageType(t){return t.reduce((t,e)=>"error"===e?t:e.type,"")}filterMessagesByType(t,e){return t.reduce((t,i)=>i.type===e?t.concat(i.message):t,[])}}t.MessageController=e;let i=class extends((0,a.y)(l.LitElement)){constructor(){super(...arguments),this.ariaDescribedBy="",this.ariaInvalid="false",this.ariaLabel="input",this.autofocus=!1,this.auxiliaryContentPosition=null,this.clear=!1,this.clearAriaLabel="",this.compact=!1,this.containerSize="small-12",this.disabled=!1,this.id="",this.inputSize="",this.isFilled=!1,this.isLoading=!1,this.label="",this.helpText="",this.hideMessage=!1,this.htmlId="",this.
|
|
2691
|
+
`}};h([(0,n.property)({type:String})],e.prototype,"title",void 0),h([(0,n.property)({type:String})],e.prototype,"src",void 0),h([(0,n.property)({type:String})],e.prototype,"time",void 0),h([(0,n.property)({type:String})],e.prototype,"label",void 0),h([(0,n.property)({type:String})],e.prototype,"status",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"clickableTimestamp",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"isSelected",void 0),h([(0,n.property)({type:String,reflect:!0,attribute:"self-label"})],e.prototype,"selfLabel",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"self",void 0),h([(0,n.property)({type:String,reflect:!0,attribute:"avatar-color"})],e.prototype,"avatarColor",void 0),h([(0,n.property)({type:String,reflect:!0,attribute:"avatar-type"})],e.prototype,"avatarType",void 0),h([(0,n.property)({type:Number,reflect:!0,attribute:"avatar-size"})],e.prototype,"avatarSize",void 0),e=h([(0,s.w)("md-chat-message")],e),t.ELEMENT=e}(o||(o={}))},96408:(t,e,i)=>{i.d(e,{Input:()=>o}),i(20109),i(61200),i(6396),i(12176);var o,s=i(90195),r=i(31890),a=i(32972),n=i(4313),l=(i(32022),i(87161)),d=i(70429),h=i(85125),c=i(20291),p=i(58175),u=i(10318),m=i(13739),v=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){class e{determineMessageType(t){return t.reduce((t,e)=>"error"===e?t:e.type,"")}filterMessagesByType(t,e){return t.reduce((t,i)=>i.type===e?t.concat(i.message):t,[])}}t.MessageController=e;let i=class extends((0,a.y)(l.LitElement)){constructor(){super(...arguments),this.ariaDescribedBy="",this.ariaInvalid="false",this.ariaLabel="input",this.autofocus=!1,this.auxiliaryContentPosition=null,this.clear=!1,this.clearAriaLabel="",this.compact=!1,this.containerSize="small-12",this.disabled=!1,this.id="",this.inputSize="",this.isFilled=!1,this.isLoading=!1,this.label="",this.helpText="",this.hideMessage=!1,this.htmlId="",this.ariaRole=void 0,this.messageArr=[],this.min=void 0,this.max=void 0,this.maxLength=void 0,this.multi=!1,this.multiline=!1,this.name="",this.nestedLevel=0,this.placeholder="",this.readOnly=!1,this.required=!1,this.searchable=!1,this.secondaryLabel="",this.selectWhenInFocus=!1,this.shape="",this.type="text",this.value="",this.ariaControls="",this.ariaExpanded="",this.newMomentum=!1,this.disableUserTextInput=!1,this.autocomplete=void 0,this.showDropdown=!1,this.dropdownExpanded=!1,this.dropdownAriaLabel="Show options",this.maxSuggestedLength=void 0,this.isEditing=!1,this.hasRightSlotContent=!1,this.messageController=new e}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}select(){var t;null===(t=this.input)||void 0===t||t.select()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}handleOutsideClick(t){let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||(this.input.blur(),this.isEditing=!1))}handleKeyDown(t){this.dispatchEvent(new CustomEvent("input-keydown",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleFocus(t){this.disabled||(this.isEditing=!0,this.selectWhenInFocus&&this.select(),this.dispatchEvent(new CustomEvent("input-focus",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleMouseDown(t){this.disabled||(this.isEditing=!0,this.dispatchEvent(new CustomEvent("input-mousedown",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleChange(t){var e;this.value=t.target.value,null===(e=this.control)||void 0===e||e.setValue(this.value),this.dispatchEvent(new CustomEvent("input-change",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:this.value}}))}handleBlur(t){var e;null===(e=this.control)||void 0===e||e.markAsTouched(),this.isEditing=!1,this.dispatchEvent(new CustomEvent("input-blur",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleClear(t){if("keydown"===t.type){const{code:e}=t;if(e!==s.Uz.Space&&e!==s.Uz.Enter)return;t.preventDefault(),t.stopPropagation()}else"click"===t.type&&(t.preventDefault(),t.stopPropagation());this.input.focus(),this.dispatchEvent(new CustomEvent("input-clear",{bubbles:!0,composed:!0,detail:{srcEvent:t}})),document.dispatchEvent(new CustomEvent("on-widget-update")),this.handleChange(t)}handleLabelClick(){this.input.focus()}handleRighSlotChange(){var t;this.hasRightSlotContent=(null===(t=this.inputSectionRightSlot)||void 0===t?void 0:t.assignedNodes().length)>0}handleDropdownClick(t){t.preventDefault(),this.dropdownExpanded=!this.dropdownExpanded,this.dispatchEvent(new CustomEvent("input-dropdown-click",{bubbles:!0,composed:!0,detail:{srcEvent:t,expanded:this.dropdownExpanded}}))}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}get inputClassMap(){return{"md-input--filled":this.isFilled,colums:!!this.containerSize,[`${this.containerSize}`]:!!this.containerSize,"md-read-only":this.readOnly,"md-disabled":this.disabled,[`md-${this.messageType}`]:!!this.messageType,[`md-input--nested-${this.nestedLevel}`]:!!this.nestedLevel,"md-multi":this.multi,"md-new-momentum":this.newMomentum}}get inputWrapperClassMap(){return{columns:!!this.inputSize,[`${this.inputSize}`]:!!this.inputSize}}get inputTemplateClassMap(){return{"md-input--multiline":this.multiline,"md-input--multi":this.multi,[`md-input--${this.shape}`]:!!this.shape,"md-input--compact":this.compact,"md-input--before":"before"===this.auxiliaryContentPosition||this.searchable,"md-input--after":"after"===this.auxiliaryContentPosition,"md-active":this.isEditing,"md-focus":this.isEditing,"md-read-only":this.readOnly,"md-disable-user-text-input":this.disableUserTextInput,"md-disabled":this.disabled,"md-dirty":!!this.value,"md-has-right-icon":this.hasRightIcon}}get ariaExpandedValue(){return"true"===this.ariaExpanded||"false"===this.ariaExpanded?this.ariaExpanded:void 0}get hasRightIcon(){return!(!this.clear||this.disabled||!this.value||this.readOnly)||!!this.showDropdown||!this.compact&&this.hasRightSlotContent}inputTemplate(){var t;return this.multiline?l.html`
|
|
2660
2692
|
<textarea
|
|
2661
2693
|
part="input"
|
|
2662
2694
|
class="md-input ${(0,h.classMap)(this.inputTemplateClassMap)}"
|
|
@@ -2702,7 +2734,7 @@
|
|
|
2702
2734
|
aria-errormessage=${`${this.htmlId}-message`}
|
|
2703
2735
|
aria-disabled=${(0,c.ifDefined)(this.disabled||void 0)}
|
|
2704
2736
|
id=${this.htmlId}
|
|
2705
|
-
role=${this.
|
|
2737
|
+
role=${(0,c.ifDefined)(this.ariaRole)}
|
|
2706
2738
|
placeholder=${this.placeholder}
|
|
2707
2739
|
?readonly=${this.readOnly||this.disabled||this.disableUserTextInput}
|
|
2708
2740
|
min=${(0,c.ifDefined)(this.min)}
|
|
@@ -2762,11 +2794,12 @@
|
|
|
2762
2794
|
>
|
|
2763
2795
|
</md-icon>
|
|
2764
2796
|
</button>
|
|
2765
|
-
`:l.nothing}characterCountLabelTemplate(){return
|
|
2766
|
-
<span
|
|
2767
|
-
|
|
2797
|
+
`:l.nothing}characterCountLabelTemplate(){return!this.maxSuggestedLength||this.disabled||this.readOnly?l.nothing:l.html`<div class="md-input__character-count-label-container">
|
|
2798
|
+
<span
|
|
2799
|
+
class="md-input__character-count-label ${(0,h.classMap)({error:this.value.length>this.maxSuggestedLength})}"
|
|
2800
|
+
>${this.value.length}/${this.maxSuggestedLength}</span
|
|
2768
2801
|
>
|
|
2769
|
-
</div>
|
|
2802
|
+
</div> `}secondaryLabelTemplate(){return this.secondaryLabel?l.html`
|
|
2770
2803
|
<md-label
|
|
2771
2804
|
class="md-input__secondary-label ${(0,h.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
|
|
2772
2805
|
secondaryLabel
|
|
@@ -2811,7 +2844,7 @@
|
|
|
2811
2844
|
${this.characterCountLabelTemplate()}
|
|
2812
2845
|
</div>
|
|
2813
2846
|
</div>
|
|
2814
|
-
`}};v([(0,d.property)({type:String})],i.prototype,"ariaDescribedBy",void 0),v([(0,d.property)({type:String,reflect:!0})],i.prototype,"ariaInvalid",void 0),v([(0,d.property)({type:String})],i.prototype,"ariaLabel",void 0),v([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),v([(0,d.property)({type:String})],i.prototype,"auxiliaryContentPosition",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"clear",void 0),v([(0,d.property)({type:String})],i.prototype,"clearAriaLabel",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"compact",void 0),v([(0,d.property)({type:String})],i.prototype,"containerSize",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"disabled",void 0),v([(0,d.property)({type:String})],i.prototype,"id",void 0),v([(0,d.property)({type:String})],i.prototype,"inputSize",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"isFilled",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"isLoading",void 0),v([(0,d.property)({type:String})],i.prototype,"label",void 0),v([(0,d.property)({type:String})],i.prototype,"helpText",void 0),v([(0,d.property)({type:Boolean,attribute:"hide-message",reflect:!0})],i.prototype,"hideMessage",void 0),v([(0,d.property)({type:String})],i.prototype,"htmlId",void 0),v([(0,d.property)({type:String})],i.prototype,"
|
|
2847
|
+
`}};v([(0,d.property)({type:String})],i.prototype,"ariaDescribedBy",void 0),v([(0,d.property)({type:String,reflect:!0})],i.prototype,"ariaInvalid",void 0),v([(0,d.property)({type:String})],i.prototype,"ariaLabel",void 0),v([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),v([(0,d.property)({type:String})],i.prototype,"auxiliaryContentPosition",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"clear",void 0),v([(0,d.property)({type:String})],i.prototype,"clearAriaLabel",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"compact",void 0),v([(0,d.property)({type:String})],i.prototype,"containerSize",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"disabled",void 0),v([(0,d.property)({type:String})],i.prototype,"id",void 0),v([(0,d.property)({type:String})],i.prototype,"inputSize",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"isFilled",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"isLoading",void 0),v([(0,d.property)({type:String})],i.prototype,"label",void 0),v([(0,d.property)({type:String})],i.prototype,"helpText",void 0),v([(0,d.property)({type:Boolean,attribute:"hide-message",reflect:!0})],i.prototype,"hideMessage",void 0),v([(0,d.property)({type:String})],i.prototype,"htmlId",void 0),v([(0,d.property)({type:String})],i.prototype,"ariaRole",void 0),v([(0,d.property)({type:Array})],i.prototype,"messageArr",void 0),v([(0,d.property)({type:Number,reflect:!0})],i.prototype,"min",void 0),v([(0,d.property)({type:Number,reflect:!0})],i.prototype,"max",void 0),v([(0,d.property)({type:Number})],i.prototype,"maxLength",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"multi",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"multiline",void 0),v([(0,d.property)({type:String,reflect:!0})],i.prototype,"name",void 0),v([(0,d.property)({type:Number})],i.prototype,"nestedLevel",void 0),v([(0,d.property)({type:String})],i.prototype,"placeholder",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"readOnly",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"required",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"searchable",void 0),v([(0,d.property)({type:String})],i.prototype,"secondaryLabel",void 0),v([(0,d.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),v([(0,d.property)({type:String})],i.prototype,"shape",void 0),v([(0,d.property)({type:String})],i.prototype,"type",void 0),v([(0,d.property)({type:String,reflect:!0})],i.prototype,"value",void 0),v([(0,d.property)({type:String})],i.prototype,"ariaControls",void 0),v([(0,d.property)({type:String})],i.prototype,"ariaExpanded",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"newMomentum",void 0),v([(0,d.property)({type:Object})],i.prototype,"control",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"disableUserTextInput",void 0),v([(0,d.property)({type:String})],i.prototype,"autocomplete",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"showDropdown",void 0),v([(0,d.property)({type:Boolean})],i.prototype,"dropdownExpanded",void 0),v([(0,d.property)({type:String})],i.prototype,"dropdownAriaLabel",void 0),v([(0,d.property)({type:Number})],i.prototype,"maxSuggestedLength",void 0),v([(0,d.query)(".md-input")],i.prototype,"input",void 0),v([(0,d.state)()],i.prototype,"isEditing",void 0),v([(0,d.query)('slot[name="input-section-right"]')],i.prototype,"inputSectionRightSlot",void 0),v([(0,d.state)()],i.prototype,"hasRightSlotContent",void 0),i=v([(0,r.w)("md-input")],i),t.ELEMENT=i}(o||(o={}))},96798:(t,e,i)=>{i.d(e,{Button:()=>o});var o,s=i(3643),r=(i(12176),i(31890)),a=i(26283),n=i(4313),l=i(87161),d=i(70429),h=i(85125),c=i(20291),p=i(13017),u=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends l.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.autofocus=!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 l.html`
|
|
2815
2848
|
<style>
|
|
2816
2849
|
:host .md-button--${this.size} {
|
|
2817
2850
|
${this.renderWidth()};
|
|
@@ -2929,4 +2962,4 @@
|
|
|
2929
2962
|
size="16"
|
|
2930
2963
|
></md-icon>
|
|
2931
2964
|
</label>
|
|
2932
|
-
`}};u([(0,d.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"checked",void 0),u([(0,d.property)({type:String})],e.prototype,"value",void 0),u([(0,d.property)({type:String})],e.prototype,"id",void 0),u([(0,d.property)({type:String})],e.prototype,"label",void 0),e=u([(0,a.w)("md-favorite")],e),t.ELEMENT=e}(o||(o={}))}},z={};function F(t){var e=z[t];if(void 0!==e)return e.exports;var i=z[t]={exports:{}};return B[t].call(i.exports,i,i.exports,F),i.exports}F.m=B,M=[],F.O=(t,e,i,o)=>{if(!e){var s=1/0;for(l=0;l<M.length;l++){for(var[e,i,o]=M[l],r=!0,a=0;a<e.length;a++)(!1&o||s>=o)&&Object.keys(F.O).every(t=>F.O[t](e[a]))?e.splice(a--,1):(r=!1,o<s&&(s=o));if(r){M.splice(l--,1);var n=i();void 0!==n&&(t=n)}}return t}o=o||0;for(var l=M.length;l>0&&M[l-1][2]>o;l--)M[l]=M[l-1];M[l]=[e,i,o]},F.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return F.d(e,{a:e}),e},P=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,F.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var i=Object.create(null);F.r(i);var o={};D=D||[null,P({}),P([]),P(P)];for(var s=2&e&&t;("object"==typeof s||"function"==typeof s)&&!~D.indexOf(s);s=P(s))Object.getOwnPropertyNames(s).forEach(e=>o[e]=()=>t[e]);return o.default=()=>t,F.d(i,o),i},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.f={},F.e=t=>Promise.all(Object.keys(F.f).reduce((e,i)=>(F.f[i](t,e),e),[])),F.u=t=>"chunks/md-"+t+".js",F.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),F.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),R={},_="@momentum-ui/web-components:",F.l=(t,e,i,o)=>{if(R[t])R[t].push(e);else{var s,r;if(void 0!==i)for(var a=document.getElementsByTagName("script"),n=0;n<a.length;n++){var l=a[n];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==_+i){s=l;break}}s||(r=!0,(s=document.createElement("script")).charset="utf-8",
|
|
2965
|
+
`}};u([(0,d.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"checked",void 0),u([(0,d.property)({type:String})],e.prototype,"value",void 0),u([(0,d.property)({type:String})],e.prototype,"id",void 0),u([(0,d.property)({type:String})],e.prototype,"label",void 0),e=u([(0,a.w)("md-favorite")],e),t.ELEMENT=e}(o||(o={}))}},z={};function F(t){var e=z[t];if(void 0!==e)return e.exports;var i=z[t]={exports:{}};return B[t].call(i.exports,i,i.exports,F),i.exports}F.m=B,M=[],F.O=(t,e,i,o)=>{if(!e){var s=1/0;for(l=0;l<M.length;l++){for(var[e,i,o]=M[l],r=!0,a=0;a<e.length;a++)(!1&o||s>=o)&&Object.keys(F.O).every(t=>F.O[t](e[a]))?e.splice(a--,1):(r=!1,o<s&&(s=o));if(r){M.splice(l--,1);var n=i();void 0!==n&&(t=n)}}return t}o=o||0;for(var l=M.length;l>0&&M[l-1][2]>o;l--)M[l]=M[l-1];M[l]=[e,i,o]},F.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return F.d(e,{a:e}),e},P=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,F.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var i=Object.create(null);F.r(i);var o={};D=D||[null,P({}),P([]),P(P)];for(var s=2&e&&t;("object"==typeof s||"function"==typeof s)&&!~D.indexOf(s);s=P(s))Object.getOwnPropertyNames(s).forEach(e=>o[e]=()=>t[e]);return o.default=()=>t,F.d(i,o),i},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.f={},F.e=t=>Promise.all(Object.keys(F.f).reduce((e,i)=>(F.f[i](t,e),e),[])),F.u=t=>"chunks/md-"+t+".js",F.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),F.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),R={},_="@momentum-ui/web-components:",F.l=(t,e,i,o)=>{if(R[t])R[t].push(e);else{var s,r;if(void 0!==i)for(var a=document.getElementsByTagName("script"),n=0;n<a.length;n++){var l=a[n];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==_+i){s=l;break}}s||(r=!0,(s=document.createElement("script")).charset="utf-8",F.nc&&s.setAttribute("nonce",F.nc),s.setAttribute("data-webpack",_+i),s.src=t),R[t]=[e];var d=(e,i)=>{s.onerror=s.onload=null,clearTimeout(h);var o=R[t];if(delete R[t],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(t=>t(i)),e)return e(i)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),r&&document.head.appendChild(s)}},F.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},F.p="/",(()=>{var t={109:0,144:0,195:0,445:0,502:0,555:0,671:0,762:0,984:0,1037:0,1200:0,1266:0,1323:0,1439:0,1459:0,1462:0,1521:0,1528:0,1682:0,1745:0,1788:0,1807:0,2105:0,2139:0,2169:0,2176:0,2330:0,2434:0,2547:0,2555:0,2576:0,2779:0,2781:0,2909:0,3001:0,3079:0,3192:0,3413:0,3477:0,3539:0,3747:0,3820:0,3938:0,3943:0,4131:0,4139:0,4259:0,4545:0,4908:0,4928:0,4971:0,5156:0,5310:0,5369:0,5382:0,5427:0,5433:0,5517:0,6029:0,6060:0,6085:0,6132:0,6220:0,6283:0,6396:0,6408:0,6433:0,6494:0,6587:0,6677:0,6724:0,6753:0,6754:0,6798:0,6834:0,6920:0,7119:0,7145:0,7219:0,7455:0,7684:0,7711:0,7719:0,7763:0,7814:0,7927:0,8028:0,8111:0,8115:0,8220:0,8334:0,8339:0,8442:0,8510:0,8654:0,8894:0,9058:0,9237:0};F.f.j=(e,i)=>{var o=F.o(t,e)?t[e]:void 0;if(0!==o)if(o)i.push(o[2]);else{var s=new Promise((i,s)=>o=t[e]=[i,s]);i.push(o[2]=s);var r=F.p+F.u(e),a=new Error;F.l(r,i=>{if(F.o(t,e)&&(0!==(o=t[e])&&(t[e]=void 0),o)){var s=i&&("load"===i.type?"missing":i.type),r=i&&i.target&&i.target.src;a.message="Loading chunk "+e+" failed.\n("+s+": "+r+")",a.name="ChunkLoadError",a.type=s,a.request=r,o[1](a)}},"chunk-"+e,e)}},F.O.j=e=>0===t[e];var e=(e,i)=>{var o,s,[r,a,n]=i,l=0;if(r.some(e=>0!==t[e])){for(o in a)F.o(a,o)&&(F.m[o]=a[o]);if(n)var d=n(F)}for(e&&e(i);l<r.length;l++)s=r[l],F.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return F.O(d)},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,[8983,7103,1890,4313,510,5087,6865,8889,8210,5630,3135,1013,3739,7819,2848,4363,2243,7919,7292,6188,15,8345,9270,8923,4548,2669,1729,9164,9480,1625,836,3625,2056,9409,4889,9654,5838,4659,6765,1626,3852,8161,6273,8391,679,8033,1564,4462,4744,8576,1092,2186,8171,2201,9425,8588,3212,5799,622,5809,9455,759,2093,8148,9312,7833,2714,9238,2924,5524,8227,2314],()=>F(51853));return F.O(V)})());
|