@momentum-ui/web-components 2.14.16 → 2.14.18
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/README.md +1 -1
- package/dist/chunks/md-0.js +1 -1
- package/dist/chunks/md-1.js +1 -1
- package/dist/chunks/md-10.js +1 -26
- package/dist/chunks/md-100.js +1 -1
- package/dist/chunks/md-101.js +1 -1
- package/dist/chunks/md-102.js +1 -1
- package/dist/chunks/md-103.js +1 -1
- package/dist/chunks/md-104.js +1 -1
- package/dist/chunks/md-105.js +1 -1
- package/dist/chunks/md-106.js +1 -1
- package/dist/chunks/md-107.js +1 -1
- package/dist/chunks/md-108.js +1 -1
- package/dist/chunks/md-109.js +1 -1
- package/dist/chunks/md-11.js +1 -1
- package/dist/chunks/md-110.js +1 -1
- package/dist/chunks/md-111.js +1 -1
- package/dist/chunks/md-112.js +1 -1
- package/dist/chunks/md-113.js +1 -1
- package/dist/chunks/md-114.js +1 -1
- package/dist/chunks/md-115.js +1 -1
- package/dist/chunks/md-116.js +1 -1
- package/dist/chunks/md-117.js +1 -1
- package/dist/chunks/md-118.js +1 -1
- package/dist/chunks/md-119.js +1 -1
- package/dist/chunks/md-120.js +1 -1
- package/dist/chunks/md-121.js +1 -1
- package/dist/chunks/md-122.js +1 -1
- package/dist/chunks/md-123.js +1 -1
- package/dist/chunks/md-124.js +1 -1
- package/dist/chunks/md-125.js +1 -1
- package/dist/chunks/md-126.js +1 -1
- package/dist/chunks/md-127.js +1 -1
- package/dist/chunks/md-128.js +1 -1
- package/dist/chunks/md-129.js +1 -1
- package/dist/chunks/md-13.js +1 -11
- package/dist/chunks/md-130.js +1 -1
- package/dist/chunks/md-131.js +1 -1
- package/dist/chunks/md-132.js +1 -1
- package/dist/chunks/md-133.js +1 -1
- package/dist/chunks/md-134.js +1 -1
- package/dist/chunks/md-135.js +1 -1
- package/dist/chunks/md-136.js +1 -1
- package/dist/chunks/md-137.js +1 -1
- package/dist/chunks/md-138.js +1 -1
- package/dist/chunks/md-139.js +1 -1
- package/dist/chunks/md-14.js +10 -8
- package/dist/chunks/md-140.js +1 -1
- package/dist/chunks/md-141.js +1 -1
- package/dist/chunks/md-142.js +1 -1
- package/dist/chunks/md-143.js +1 -1
- package/dist/chunks/md-144.js +1 -1
- package/dist/chunks/md-145.js +1 -1
- package/dist/chunks/md-146.js +1 -1
- package/dist/chunks/md-147.js +1 -1
- package/dist/chunks/md-148.js +1 -1
- package/dist/chunks/md-149.js +1 -1
- package/dist/chunks/md-15.js +9 -1
- package/dist/chunks/md-150.js +1 -1
- package/dist/chunks/md-151.js +1 -1
- package/dist/chunks/md-152.js +1 -1
- package/dist/chunks/md-153.js +1 -1
- package/dist/chunks/md-154.js +1 -1
- package/dist/chunks/md-155.js +1 -1
- package/dist/chunks/md-156.js +1 -1
- package/dist/chunks/md-157.js +1 -1
- package/dist/chunks/md-158.js +1 -1
- package/dist/chunks/md-159.js +1 -1
- package/dist/chunks/md-16.js +1 -26
- package/dist/chunks/md-160.js +1 -1
- package/dist/chunks/md-161.js +1 -1
- package/dist/chunks/md-162.js +1 -1
- package/dist/chunks/md-163.js +1 -1
- package/dist/chunks/md-164.js +1 -1
- package/dist/chunks/md-165.js +1 -1
- package/dist/chunks/md-166.js +1 -1
- package/dist/chunks/md-167.js +1 -1
- package/dist/chunks/md-168.js +1 -1
- package/dist/chunks/md-169.js +1 -1
- package/dist/chunks/md-17.js +23 -119
- package/dist/chunks/md-170.js +1 -1
- package/dist/chunks/md-171.js +1 -1
- package/dist/chunks/md-172.js +1 -1
- package/dist/chunks/md-173.js +1 -1
- package/dist/chunks/md-174.js +1 -1
- package/dist/chunks/md-175.js +1 -1
- package/dist/chunks/md-176.js +1 -1
- package/dist/chunks/md-177.js +1 -1
- package/dist/chunks/md-178.js +1 -1
- package/dist/chunks/md-179.js +1 -1
- package/dist/chunks/md-18.js +122 -17
- package/dist/chunks/md-180.js +1 -1
- package/dist/chunks/md-181.js +1 -1
- package/dist/chunks/md-182.js +1 -1
- package/dist/chunks/md-183.js +1 -1
- package/dist/chunks/md-184.js +1 -1
- package/dist/chunks/md-185.js +1 -1
- package/dist/chunks/md-186.js +1 -1
- package/dist/chunks/md-187.js +1 -1
- package/dist/chunks/md-188.js +1 -1
- package/dist/chunks/md-189.js +1 -1
- package/dist/chunks/md-19.js +17 -1
- package/dist/chunks/md-190.js +1 -1
- package/dist/chunks/md-191.js +1 -1
- package/dist/chunks/md-192.js +1 -1
- package/dist/chunks/md-193.js +1 -1
- package/dist/chunks/md-194.js +1 -1
- package/dist/chunks/md-195.js +1 -1
- package/dist/chunks/md-196.js +1 -1
- package/dist/chunks/md-197.js +1 -1
- package/dist/chunks/md-198.js +1 -1
- package/dist/chunks/md-199.js +1 -1
- package/dist/chunks/md-20.js +1 -8
- package/dist/chunks/md-200.js +1 -1
- package/dist/chunks/md-201.js +1 -1
- package/dist/chunks/md-202.js +1 -1
- package/dist/chunks/md-203.js +1 -1
- package/dist/chunks/md-204.js +1 -1
- package/dist/chunks/md-205.js +1 -1
- package/dist/chunks/md-206.js +1 -1
- package/dist/chunks/md-207.js +1 -1
- package/dist/chunks/md-208.js +1 -1
- package/dist/chunks/md-209.js +1 -1
- package/dist/chunks/md-21.js +8 -23
- package/dist/chunks/md-210.js +1 -1
- package/dist/chunks/md-211.js +1 -1
- package/dist/chunks/md-212.js +1 -1
- package/dist/chunks/md-213.js +1 -1
- package/dist/chunks/md-214.js +1 -1
- package/dist/chunks/md-215.js +1 -1
- package/dist/chunks/md-216.js +1 -1
- package/dist/chunks/md-217.js +1 -1
- package/dist/chunks/md-218.js +1 -1
- package/dist/chunks/md-219.js +1 -1
- package/dist/chunks/md-22.js +23 -1
- package/dist/chunks/md-220.js +1 -1
- package/dist/chunks/md-221.js +1 -1
- package/dist/chunks/md-222.js +1 -1
- package/dist/chunks/md-223.js +1 -1
- package/dist/chunks/md-224.js +1 -1
- package/dist/chunks/md-225.js +1 -1
- package/dist/chunks/md-226.js +1 -1
- package/dist/chunks/md-227.js +1 -1
- package/dist/chunks/md-228.js +1 -1
- package/dist/chunks/md-229.js +1 -1
- package/dist/chunks/md-23.js +1 -7
- package/dist/chunks/md-230.js +1 -1
- package/dist/chunks/md-231.js +1 -1
- package/dist/chunks/md-232.js +1 -1
- package/dist/chunks/md-233.js +1 -1
- package/dist/chunks/md-234.js +1 -1
- package/dist/chunks/md-235.js +1 -1
- package/dist/chunks/md-236.js +1 -1
- package/dist/chunks/md-237.js +1 -1
- package/dist/chunks/md-238.js +1 -1
- package/dist/chunks/md-239.js +1 -1
- package/dist/chunks/md-24.js +7 -8
- package/dist/chunks/md-240.js +1 -1
- package/dist/chunks/md-241.js +1 -1
- package/dist/chunks/md-242.js +1 -1
- package/dist/chunks/md-243.js +1 -1
- package/dist/chunks/md-244.js +1 -1
- package/dist/chunks/md-245.js +1 -1
- package/dist/chunks/md-246.js +1 -1
- package/dist/chunks/md-247.js +1 -1
- package/dist/chunks/md-248.js +1 -1
- package/dist/chunks/md-249.js +1 -1
- package/dist/chunks/md-25.js +8 -1
- package/dist/chunks/md-250.js +1 -1
- package/dist/chunks/md-251.js +1 -1
- package/dist/chunks/md-252.js +1 -1
- package/dist/chunks/md-253.js +1 -1
- package/dist/chunks/md-254.js +1 -1
- package/dist/chunks/md-255.js +1 -1
- package/dist/chunks/md-256.js +1 -1
- package/dist/chunks/md-257.js +1 -1
- package/dist/chunks/md-258.js +1 -1
- package/dist/chunks/md-259.js +1 -1
- package/dist/chunks/md-26.js +1 -1
- package/dist/chunks/md-260.js +1 -1
- package/dist/chunks/md-261.js +1 -1
- package/dist/chunks/md-262.js +1 -1
- package/dist/chunks/md-263.js +1 -1
- package/dist/chunks/md-264.js +1 -1
- package/dist/chunks/md-265.js +1 -1
- package/dist/chunks/md-266.js +1 -1
- package/dist/chunks/md-267.js +1 -1
- package/dist/chunks/md-268.js +1 -1
- package/dist/chunks/md-269.js +1 -1
- package/dist/chunks/md-27.js +1 -61
- package/dist/chunks/md-270.js +1 -1
- package/dist/chunks/md-271.js +1 -1
- package/dist/chunks/md-272.js +1 -1
- package/dist/chunks/md-273.js +1 -1
- package/dist/chunks/md-274.js +1 -1
- package/dist/chunks/md-275.js +1 -1
- package/dist/chunks/md-276.js +1 -1
- package/dist/chunks/md-277.js +1 -1
- package/dist/chunks/md-278.js +1 -1
- package/dist/chunks/md-279.js +1 -1
- package/dist/chunks/md-28.js +55 -1
- package/dist/chunks/md-280.js +1 -0
- package/dist/chunks/md-281.js +1 -0
- package/dist/chunks/md-282.js +1 -0
- package/dist/chunks/md-29.js +1 -221
- package/dist/chunks/md-3.js +1 -1
- package/dist/chunks/md-30.js +213 -43
- package/dist/chunks/md-31.js +49 -1
- package/dist/chunks/md-32.js +1 -1
- package/dist/chunks/md-33.js +1 -36
- package/dist/chunks/md-34.js +36 -33
- package/dist/chunks/md-35.js +32 -22
- package/dist/chunks/md-36.js +23 -5
- package/dist/chunks/md-37.js +5 -5
- package/dist/chunks/md-38.js +5 -1
- package/dist/chunks/md-39.js +1 -21
- package/dist/chunks/md-4.js +1 -1
- package/dist/chunks/md-40.js +20 -41
- package/dist/chunks/md-41.js +26 -1
- package/dist/chunks/md-42.js +42 -30
- package/dist/chunks/md-43.js +1 -16
- package/dist/chunks/md-44.js +30 -1
- package/dist/chunks/md-45.js +12 -23
- package/dist/chunks/md-46.js +1 -5
- package/dist/chunks/md-47.js +26 -37
- package/dist/chunks/md-48.js +5 -13
- package/dist/chunks/md-49.js +37 -25
- package/dist/chunks/md-5.js +1 -1
- package/dist/chunks/md-50.js +13 -20
- package/dist/chunks/md-51.js +31 -119
- package/dist/chunks/md-52.js +17 -95
- package/dist/chunks/md-53.js +121 -11
- package/dist/chunks/md-54.js +97 -4
- package/dist/chunks/md-55.js +11 -77
- package/dist/chunks/md-56.js +4 -67
- package/dist/chunks/md-57.js +74 -19
- package/dist/chunks/md-58.js +68 -14
- package/dist/chunks/md-59.js +21 -4
- package/dist/chunks/md-6.js +3 -3
- package/dist/chunks/md-60.js +14 -51
- package/dist/chunks/md-61.js +4 -21
- package/dist/chunks/md-62.js +51 -5
- package/dist/chunks/md-63.js +22 -1
- package/dist/chunks/md-64.js +46 -22
- package/dist/chunks/md-65.js +4 -4
- package/dist/chunks/md-66.js +1 -11
- package/dist/chunks/md-67.js +22 -141
- package/dist/chunks/md-68.js +4 -29
- package/dist/chunks/md-69.js +11 -70
- package/dist/chunks/md-7.js +1 -1
- package/dist/chunks/md-70.js +141 -18
- package/dist/chunks/md-71.js +29 -21
- package/dist/chunks/md-72.js +70 -17
- package/dist/chunks/md-73.js +19 -76
- package/dist/chunks/md-74.js +22 -7
- package/dist/chunks/md-75.js +17 -72
- package/dist/chunks/md-76.js +76 -78
- package/dist/chunks/md-77.js +7 -66
- package/dist/chunks/md-78.js +72 -17
- package/dist/chunks/md-79.js +78 -5
- package/dist/chunks/md-8.js +26 -1
- package/dist/chunks/md-80.js +65 -18
- package/dist/chunks/md-81.js +17 -1
- package/dist/chunks/md-82.js +4 -167
- package/dist/chunks/md-83.js +18 -42
- package/dist/chunks/md-84.js +1 -101
- package/dist/chunks/md-85.js +166 -80
- package/dist/chunks/md-86.js +42 -11
- package/dist/chunks/md-87.js +98 -39
- package/dist/chunks/md-88.js +78 -30
- package/dist/chunks/md-89.js +12 -1
- package/dist/chunks/md-9.js +1 -1
- package/dist/chunks/md-90.js +42 -1
- package/dist/chunks/md-91.js +34 -1
- package/dist/chunks/md-92.js +1 -1
- package/dist/chunks/md-93.js +1 -1
- package/dist/chunks/md-94.js +1 -1
- package/dist/chunks/md-95.js +1 -1
- package/dist/chunks/md-96.js +1 -1
- package/dist/chunks/md-97.js +1 -1
- package/dist/chunks/md-98.js +1 -1
- package/dist/chunks/md-99.js +1 -1
- package/dist/comp/md-accordion-entry.js +1 -1
- package/dist/comp/md-accordion-item-entry.js +1 -1
- package/dist/comp/md-accordion-item.js +4 -4
- package/dist/comp/md-accordion.js +4 -4
- package/dist/comp/md-activity-button-entry.js +1 -1
- package/dist/comp/md-activity-button.js +3 -3
- package/dist/comp/md-advance-list-entry.js +1 -1
- package/dist/comp/md-advance-list.js +1 -1
- package/dist/comp/md-alert-banner-entry.js +1 -1
- package/dist/comp/md-alert-banner.js +3 -3
- package/dist/comp/md-alert-entry.js +1 -1
- package/dist/comp/md-alert.js +4 -4
- package/dist/comp/md-audio-player-entry.js +1 -1
- package/dist/comp/md-audio-player.js +6 -5
- package/dist/comp/md-avatar-entry.js +1 -1
- package/dist/comp/md-avatar.js +4 -4
- package/dist/comp/md-badge-entry.js +1 -1
- package/dist/comp/md-badge.js +1 -1
- package/dist/comp/md-breadcrumb-entry.js +1 -1
- package/dist/comp/md-breadcrumb.js +1 -1
- package/dist/comp/md-button-entry.js +1 -1
- package/dist/comp/md-button-group-entry.js +1 -1
- package/dist/comp/md-button-group.js +3 -3
- package/dist/comp/md-card-ai-entry.js +1 -1
- package/dist/comp/md-card-ai.js +3 -3
- package/dist/comp/md-card-entry.js +1 -1
- package/dist/comp/md-card.js +10 -9
- package/dist/comp/md-chat-message-entry.js +1 -1
- package/dist/comp/md-chat-message.js +5 -5
- package/dist/comp/md-checkbox-entry.js +1 -1
- package/dist/comp/md-checkbox.js +4 -4
- package/dist/comp/md-checkboxgroup-entry.js +1 -1
- package/dist/comp/md-checkboxgroup.js +4 -4
- package/dist/comp/md-chip-entry.js +1 -1
- package/dist/comp/md-chip.js +7 -6
- package/dist/comp/md-coachmark-entry.js +1 -1
- package/dist/comp/md-coachmark-popover-entry.js +1 -0
- package/dist/comp/md-coachmark-popover.js +15 -0
- package/dist/comp/md-coachmark.js +3 -3
- package/dist/comp/md-combobox-entry.js +1 -1
- package/dist/comp/md-combobox.js +5 -5
- package/dist/comp/md-composite-avatar-entry.js +1 -1
- package/dist/comp/md-composite-avatar.js +2 -2
- package/dist/comp/md-date-range-picker-entry.js +1 -1
- package/dist/comp/md-date-range-picker.js +10 -9
- package/dist/comp/md-date-time-picker-entry.js +1 -1
- package/dist/comp/md-date-time-picker.js +6 -5
- package/dist/comp/md-datepicker-calendar-entry.js +1 -1
- package/dist/comp/md-datepicker-calendar.js +7 -7
- package/dist/comp/md-datepicker-day-entry.js +1 -1
- package/dist/comp/md-datepicker-day.js +2 -2
- package/dist/comp/md-datepicker-entry.js +1 -1
- package/dist/comp/md-datepicker-month-entry.js +1 -1
- package/dist/comp/md-datepicker-month.js +4 -4
- package/dist/comp/md-datepicker-week-entry.js +1 -1
- package/dist/comp/md-datepicker-week.js +3 -3
- package/dist/comp/md-datepicker.js +9 -8
- package/dist/comp/md-draggable-entry.js +1 -1
- package/dist/comp/md-draggable-item-entry.js +1 -1
- package/dist/comp/md-draggable-item.js +4 -4
- package/dist/comp/md-draggable.js +4 -4
- package/dist/comp/md-dropdown-entry.js +1 -1
- package/dist/comp/md-dropdown.js +3 -3
- package/dist/comp/md-editable-field-entry.js +1 -1
- package/dist/comp/md-editable-field.js +6 -6
- package/dist/comp/md-favorite-entry.js +1 -1
- package/dist/comp/md-favorite.js +3 -3
- package/dist/comp/md-floating-minimize-entry.js +1 -1
- package/dist/comp/md-floating-minimize.js +3 -3
- package/dist/comp/md-floating-modal-entry.js +1 -1
- package/dist/comp/md-floating-modal.js +4 -4
- package/dist/comp/md-form-entry.js +1 -1
- package/dist/comp/md-form.js +3 -3
- package/dist/comp/md-grabber-entry.js +1 -1
- package/dist/comp/md-grabber.js +3 -3
- package/dist/comp/md-help-text-entry.js +1 -1
- package/dist/comp/md-help-text.js +1 -1
- package/dist/comp/md-icon-entry.js +1 -1
- package/dist/comp/md-icon.js +2 -2
- package/dist/comp/md-inpu.js +3 -3
- package/dist/comp/md-input-entry.js +1 -1
- package/dist/comp/md-input-file.js +1 -1
- package/dist/comp/md-input.js +4 -4
- package/dist/comp/md-label-entry.js +1 -1
- package/dist/comp/md-label.js +1 -1
- package/dist/comp/md-link-entry.js +1 -1
- package/dist/comp/md-link.js +1 -1
- package/dist/comp/md-list-entry.js +1 -1
- package/dist/comp/md-list-item-entry.js +1 -1
- package/dist/comp/md-list-item.js +4 -4
- package/dist/comp/md-list.js +4 -4
- package/dist/comp/md-loading-entry.js +1 -1
- package/dist/comp/md-loading.js +1 -1
- package/dist/comp/md-meeting-alert-entry.js +1 -1
- package/dist/comp/md-meeting-alert.js +5 -5
- package/dist/comp/md-menu-entry.js +1 -1
- package/dist/comp/md-menu-item-entry.js +1 -1
- package/dist/comp/md-menu-item.js +1 -1
- package/dist/comp/md-menu-overlay-entry.js +1 -1
- package/dist/comp/md-menu-overlay.js +2 -1
- package/dist/comp/md-menu.js +3 -3
- package/dist/comp/md-modal-entry.js +1 -1
- package/dist/comp/md-modal.js +3 -3
- package/dist/comp/md-pagination-entry.js +1 -1
- package/dist/comp/md-pagination.js +3 -3
- package/dist/comp/md-phone-input-entry.js +1 -1
- package/dist/comp/md-phone-input.js +7 -7
- package/dist/comp/md-popover-entry.js +1 -0
- package/dist/comp/md-popover.js +14 -0
- package/dist/comp/md-progress-bar-entry.js +1 -1
- package/dist/comp/md-progress-bar.js +1 -1
- package/dist/comp/md-radio-entry.js +1 -1
- package/dist/comp/md-radio.js +4 -4
- package/dist/comp/md-radiogroup-entry.js +1 -1
- package/dist/comp/md-radiogroup.js +4 -4
- package/dist/comp/md-slider-entry.js +1 -1
- package/dist/comp/md-slider.js +3 -3
- package/dist/comp/md-spinner-entry.js +1 -1
- package/dist/comp/md-tab-entry.js +1 -1
- package/dist/comp/md-tab-panel-entry.js +1 -1
- package/dist/comp/md-tab-panel.js +4 -4
- package/dist/comp/md-tab.js +4 -4
- package/dist/comp/md-table-advanced-entry.js +1 -1
- package/dist/comp/md-table-advanced.js +5 -4
- package/dist/comp/md-table-entry.js +1 -1
- package/dist/comp/md-table.js +3 -3
- package/dist/comp/md-tabs-entry.js +1 -1
- package/dist/comp/md-tabs.js +8 -7
- package/dist/comp/md-task-item-entry.js +1 -1
- package/dist/comp/md-task-item.js +4 -4
- package/dist/comp/md-theme-entry.js +1 -1
- package/dist/comp/md-theme.js +2 -2
- package/dist/comp/md-timepicker-entry.js +1 -1
- package/dist/comp/md-timepicker.js +9 -9
- package/dist/comp/md-toggle-switch-entry.js +1 -1
- package/dist/comp/md-toggle-switch.js +4 -4
- package/dist/comp/md-tooltip-entry.js +1 -1
- package/dist/comp/md-tooltip.js +5 -4
- package/dist/index-entry.js +2 -2
- package/dist/index.js +55 -52
- package/dist/types/components/advance-list/AdvanceList.d.ts +3 -0
- package/dist/types/components/alert/Alert.d.ts +7 -5
- package/dist/types/components/avatar/Avatar.d.ts +1 -1
- package/dist/types/components/avatar/Presence.d.ts +1 -2
- package/dist/types/components/avatar/Presence.utils.d.ts +0 -1
- package/dist/types/components/button/Button.d.ts +3 -1
- package/dist/types/components/chip/Chip.d.ts +2 -2
- package/dist/types/components/coachmark-popover/CoachmarkPopover.d.ts +211 -0
- package/dist/types/components/combobox/ComboBox.d.ts +25 -11
- package/dist/types/components/input/Input.d.ts +1 -0
- package/dist/types/components/menu-overlay/MenuOverlay.d.ts +1 -1
- package/dist/types/components/popover/Popover.d.ts +184 -0
- package/dist/types/components/popover/Popover.types.d.ts +8 -0
- package/dist/types/components/timepicker/TimePicker.d.ts +1 -1
- package/dist/types/components/tooltip/Tooltip.d.ts +3 -2
- package/dist/types/index.d.ts +3 -1
- package/package.json +1 -1
package/dist/chunks/md-60.js
CHANGED
|
@@ -1,51 +1,14 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[60],{115:function(o,e,r){"use strict";r.r(e),r.d(e,"tooltipPlacement",(function(){return v})),r.d(e,"Chip",(function(){return h}));r(15),r(80),r(41);var t=r(1),c=r(6),a=r(5),l=r(0),i=r(2),d=r(4),g=r(3),n=l.css`:focus{outline:0}.md-chip{padding:.25rem 1rem;font-size:var(--body-secondary-font-size,.75rem);align-items:center;background-color:var(--md-secondary-bg-color,#f7f7f7);color:var(--md-primary-text-color,#121212);cursor:pointer;display:inline-flex;font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);font-weight:400;height:2rem;justify-content:space-between;line-height:1rem;margin-bottom:auto;max-width:12.5rem;overflow:auto;position:relative;text-align:center;text-decoration:none;white-space:nowrap;width:auto}.md-chip{border-radius:1.125rem}.md-chip{--left-content-right-margin:0.625rem}.md-chip--small{padding:.1875rem .75rem;font-size:var(--body-secondary-font-size,.75rem);height:1.5rem;min-width:auto}.md-chip:focus{box-shadow:0 0 0 .0625rem var(--md-default-focus-outline-color,#005e7d)}.md-chip:hover{background-color:var(--md-tertiary-bg-color,#ededed)}.md-chip:active,.md-chip[aria-selected=true]{background-color:var(--button-secondary-active-normal-bg-color,var(--md-quaternary-bg-color,#dedede))}.md-chip--blue,.md-chip--cobalt{background-color:var(--badge-blue-bg-color);color:var(--badge-blue-text-color)}.md-chip--blue:hover,.md-chip--cobalt:hover{background-color:var(--badge-blue-bg-color);color:var(--badge-blue-text-color)}.md-chip--blue:active,.md-chip--cobalt:active{background-color:var(--badge-blue-bg-color);color:var(--badge-blue-text-color)}.md-chip--blue:hover,.md-chip--cobalt:hover{background-color:var(--badge-blue-hover-bg-color);color:var(--badge-blue-text-color)}.md-chip--blue:hover:hover,.md-chip--cobalt:hover:hover{background-color:var(--badge-blue-hover-bg-color);color:var(--badge-blue-text-color)}.md-chip--blue:hover:active,.md-chip--cobalt:hover:active{background-color:var(--badge-blue-hover-bg-color);color:var(--badge-blue-text-color)}.md-chip--blue:active,.md-chip--cobalt:active{background-color:var(--badge-blue-active-bg-color);color:var(--badge-blue-text-color)}.md-chip--blue:active:hover,.md-chip--cobalt:active:hover{background-color:var(--badge-blue-active-bg-color);color:var(--badge-blue-text-color)}.md-chip--blue:active:active,.md-chip--cobalt:active:active{background-color:var(--badge-blue-active-bg-color);color:var(--badge-blue-text-color)}.md-chip--gray{background-color:var(--badge-gray-bg-color);color:var(--badge-gray-text-color)}.md-chip--gray:hover{background-color:var(--badge-gray-bg-color);color:var(--badge-gray-text-color)}.md-chip--gray:active{background-color:var(--badge-gray-bg-color);color:var(--badge-gray-text-color)}.md-chip--gray:hover{background-color:var(--badge-gray-hover-bg-color);color:var(--badge-gray-text-color)}.md-chip--gray:hover:hover{background-color:var(--badge-gray-hover-bg-color);color:var(--badge-gray-text-color)}.md-chip--gray:hover:active{background-color:var(--badge-gray-hover-bg-color);color:var(--badge-gray-text-color)}.md-chip--gray:active{background-color:var(--badge-gray-active-bg-color);color:var(--badge-gray-text-color)}.md-chip--gray:active:hover{background-color:var(--badge-gray-active-bg-color);color:var(--badge-gray-text-color)}.md-chip--gray:active:active{background-color:var(--badge-gray-active-bg-color);color:var(--badge-gray-text-color)}.md-chip--mint{background-color:var(--badge-mint-bg-color);color:var(--badge-mint-text-color)}.md-chip--mint:hover{background-color:var(--badge-mint-bg-color);color:var(--badge-mint-text-color)}.md-chip--mint:active{background-color:var(--badge-mint-bg-color);color:var(--badge-mint-text-color)}.md-chip--mint:hover{background-color:var(--badge-mint-hover-bg-color);color:var(--badge-mint-text-color)}.md-chip--mint:hover:hover{background-color:var(--badge-mint-hover-bg-color);color:var(--badge-mint-text-color)}.md-chip--mint:hover:active{background-color:var(--badge-mint-hover-bg-color);color:var(--badge-mint-text-color)}.md-chip--mint:active{background-color:var(--badge-mint-active-bg-color);color:var(--badge-mint-text-color)}.md-chip--mint:active:hover{background-color:var(--badge-mint-active-bg-color);color:var(--badge-mint-text-color)}.md-chip--mint:active:active{background-color:var(--badge-mint-active-bg-color);color:var(--badge-mint-text-color)}.md-chip--darkmint{background-color:var(--badge-darkmint-bg-color);color:var(--badge-darkmint-text-color)}.md-chip--darkmint:hover{background-color:var(--badge-darkmint-bg-color);color:var(--badge-darkmint-text-color)}.md-chip--darkmint:active{background-color:var(--badge-darkmint-bg-color);color:var(--badge-darkmint-text-color)}.md-chip--green{background-color:var(--badge-green-bg-color);color:var(--badge-green-text-color)}.md-chip--green:hover{background-color:var(--badge-green-bg-color);color:var(--badge-green-text-color)}.md-chip--green:active{background-color:var(--badge-green-bg-color);color:var(--badge-green-text-color)}.md-chip--yellow{background-color:var(--badge-yellow-bg-color);color:var(--badge-yellow-text-color)}.md-chip--yellow:hover{background-color:var(--badge-yellow-bg-color);color:var(--badge-yellow-text-color)}.md-chip--yellow:active{background-color:var(--badge-yellow-bg-color);color:var(--badge-yellow-text-color)}.md-chip--red{background-color:var(--badge-red-bg-color);color:var(--badge-red-text-color)}.md-chip--red:hover{background-color:var(--badge-red-bg-color);color:var(--badge-red-text-color)}.md-chip--red:active{background-color:var(--badge-red-bg-color);color:var(--badge-red-text-color)}.md-chip--orange{background-color:var(--badge-orange-bg-color);color:var(--badge-orange-text-color)}.md-chip--orange:hover{background-color:var(--badge-orange-bg-color);color:var(--badge-orange-text-color)}.md-chip--orange:active{background-color:var(--badge-orange-bg-color);color:var(--badge-orange-text-color)}.md-chip--orange:hover{background-color:var(--badge-orange-hover-bg-color);color:var(--badge-orange-text-color)}.md-chip--orange:hover:hover{background-color:var(--badge-orange-hover-bg-color);color:var(--badge-orange-text-color)}.md-chip--orange:hover:active{background-color:var(--badge-orange-hover-bg-color);color:var(--badge-orange-text-color)}.md-chip--orange:active{background-color:var(--badge-orange-active-bg-color);color:var(--badge-orange-text-color)}.md-chip--orange:active:hover{background-color:var(--badge-orange-active-bg-color);color:var(--badge-orange-text-color)}.md-chip--orange:active:active{background-color:var(--badge-orange-active-bg-color);color:var(--badge-orange-text-color)}.md-chip--gold{background-color:var(--badge-gold-bg-color);color:var(--badge-gold-text-color)}.md-chip--gold:hover{background-color:var(--badge-gold-bg-color);color:var(--badge-gold-text-color)}.md-chip--gold:active{background-color:var(--badge-gold-bg-color);color:var(--badge-gold-text-color)}.md-chip--gold:hover{background-color:var(--badge-gold-hover-bg-color);color:var(--badge-gold-text-color)}.md-chip--gold:hover:hover{background-color:var(--badge-gold-hover-bg-color);color:var(--badge-gold-text-color)}.md-chip--gold:hover:active{background-color:var(--badge-gold-hover-bg-color);color:var(--badge-gold-text-color)}.md-chip--gold:active{background-color:var(--badge-gold-active-bg-color);color:var(--badge-gold-text-color)}.md-chip--gold:active:hover{background-color:var(--badge-gold-active-bg-color);color:var(--badge-gold-text-color)}.md-chip--gold:active:active{background-color:var(--badge-gold-active-bg-color);color:var(--badge-gold-text-color)}.md-chip--lime{background-color:var(--badge-lime-bg-color);color:var(--badge-lime-text-color)}.md-chip--lime:hover{background-color:var(--badge-lime-bg-color);color:var(--badge-lime-text-color)}.md-chip--lime:active{background-color:var(--badge-lime-bg-color);color:var(--badge-lime-text-color)}.md-chip--lime:hover{background-color:var(--badge-lime-hover-bg-color);color:var(--badge-lime-text-color)}.md-chip--lime:hover:hover{background-color:var(--badge-lime-hover-bg-color);color:var(--badge-lime-text-color)}.md-chip--lime:hover:active{background-color:var(--badge-lime-hover-bg-color);color:var(--badge-lime-text-color)}.md-chip--lime:active{background-color:var(--badge-lime-active-bg-color);color:var(--badge-lime-text-color)}.md-chip--lime:active:hover{background-color:var(--badge-lime-active-bg-color);color:var(--badge-lime-text-color)}.md-chip--lime:active:active{background-color:var(--badge-lime-active-bg-color);color:var(--badge-lime-text-color)}.md-chip--pink{background-color:var(--badge-pink-bg-color);color:var(--badge-pink-text-color)}.md-chip--pink:hover{background-color:var(--badge-pink-bg-color);color:var(--badge-pink-text-color)}.md-chip--pink:active{background-color:var(--badge-pink-bg-color);color:var(--badge-pink-text-color)}.md-chip--pink:hover{background-color:var(--badge-pink-hover-bg-color);color:var(--badge-pink-text-color)}.md-chip--pink:hover:hover{background-color:var(--badge-pink-hover-bg-color);color:var(--badge-pink-text-color)}.md-chip--pink:hover:active{background-color:var(--badge-pink-hover-bg-color);color:var(--badge-pink-text-color)}.md-chip--pink:active{background-color:var(--badge-pink-active-bg-color);color:var(--badge-pink-text-color)}.md-chip--pink:active:hover{background-color:var(--badge-pink-active-bg-color);color:var(--badge-pink-text-color)}.md-chip--pink:active:active{background-color:var(--badge-pink-active-bg-color);color:var(--badge-pink-text-color)}.md-chip--purple{background-color:var(--badge-purple-bg-color);color:var(--badge-purple-text-color)}.md-chip--purple:hover{background-color:var(--badge-purple-bg-color);color:var(--badge-purple-text-color)}.md-chip--purple:active{background-color:var(--badge-purple-bg-color);color:var(--badge-purple-text-color)}.md-chip--violet{background-color:var(--badge-violet-bg-color);color:var(--badge-violet-text-color)}.md-chip--violet:hover{background-color:var(--badge-violet-bg-color);color:var(--badge-violet-text-color)}.md-chip--violet:active{background-color:var(--badge-violet-bg-color);color:var(--badge-violet-text-color)}.md-chip--violet:hover{background-color:var(--badge-violet-hover-bg-color);color:var(--badge-violet-text-color)}.md-chip--violet:hover:hover{background-color:var(--badge-violet-hover-bg-color);color:var(--badge-violet-text-color)}.md-chip--violet:hover:active{background-color:var(--badge-violet-hover-bg-color);color:var(--badge-violet-text-color)}.md-chip--violet:active{background-color:var(--badge-violet-active-bg-color);color:var(--badge-violet-text-color)}.md-chip--violet:active:hover{background-color:var(--badge-violet-active-bg-color);color:var(--badge-violet-text-color)}.md-chip--violet:active:active{background-color:var(--badge-violet-active-bg-color);color:var(--badge-violet-text-color)}.md-chip--cyan{background-color:var(--badge-cyan-bg-color);color:var(--badge-cyan-text-color)}.md-chip--cyan:hover{background-color:var(--badge-cyan-bg-color);color:var(--badge-cyan-text-color)}.md-chip--cyan:active{background-color:var(--badge-cyan-bg-color);color:var(--badge-cyan-text-color)}.md-chip--positive{--left-content-right-margin:4px;padding:0 4px;font-weight:500;font-family:var(--brand-font-regular);background-color:var(--badge-positive-bg-color);color:var(--badge-positive-text-color);border:1px solid var(--badge-positive-border-color);border-radius:4px}.md-chip--positive:hover{background-color:var(--badge-positive-hover-bg-color)}.md-chip--positive:active{background-color:var(--badge-positive-active-bg-color)}.md-chip--negative{--left-content-right-margin:4px;padding:0 4px;font-weight:500;font-family:var(--brand-font-regular);background-color:var(--badge-negative-bg-color);color:var(--badge-negative-text-color);border:1px solid var(--badge-negative-border-color);border-radius:4px}.md-chip--negative:hover{background-color:var(--badge-negative-hover-bg-color)}.md-chip--negative:active{background-color:var(--badge-negative-active-bg-color)}.md-chip--neutral{--left-content-right-margin:4px;padding:0 4px;font-weight:500;font-family:var(--brand-font-regular);background-color:var(--badge-neutral-bg-color);color:var(--badge-neutral-text-color);border:1px solid var(--badge-neutral-border-color);border-radius:4px}.md-chip--neutral:hover{background-color:var(--badge-neutral-hover-bg-color)}.md-chip--neutral:active{background-color:var(--badge-neutral-active-bg-color)}.md-chip .md-chip--clear{display:flow-root;margin-left:.625rem;margin-right:0;height:.875rem;right:.75rem;top:.75rem;width:.875rem}.md-chip .md-chip--clear::before{font-size:.875rem}.md-chip .md-chip--loading{left:0;overflow:hidden;position:absolute;top:-.125rem;width:100%}.md-chip .md-chip--textcontent{max-width:9.375rem}.md-chip md-icon{display:flex;margin-right:var(--left-content-right-margin)}.md-chip.md-chip--disabled{color:var(--md-disabled-text-color,#b2b2b2);cursor:default;align-items:center;background-color:var(--md-secondary-bg-color,#f7f7f7);color:var(--md-primary-text-color,#121212);cursor:pointer;display:inline-flex;font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);font-weight:400;height:2rem;justify-content:space-between;line-height:1rem;margin-bottom:auto;max-width:12.5rem;overflow:auto;position:relative;text-align:center;text-decoration:none;white-space:nowrap;width:auto}.md-chip.md-chip--disabled{border-radius:1.125rem}.md-chip.md-chip--disabled md-icon{color:var(--md-disabled-text-color,#b2b2b2)}::slotted(*){line-height:normal}::slotted([slot=custom-left-content]){margin-right:var(--left-content-right-margin)}::slotted([slot=custom-right-content]){margin-left:.625rem}@media(forced-colors:active){.md-chip{outline:1px solid CanvasText}.md-chip:focus,.md-chip:hover{box-shadow:none;outline:2px solid Highlight}.md-chip.md-chip--disabled{color:GrayText;outline:1px solid GrayText}.md-chip.md-chip--disabled:focus,.md-chip.md-chip--disabled:hover{outline:2px solid Highlight}.md-chip.md-chip--disabled md-icon{color:GrayText}}`,b=function(o,e,r,t){var c,a=arguments.length,l=a<3?e:null===t?t=Object.getOwnPropertyDescriptor(e,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(o,e,r,t);else for(var i=o.length-1;i>=0;i--)(c=o[i])&&(l=(a<3?c(l):a>3?c(e,r,l):c(e,r))||l);return a>3&&l&&Object.defineProperty(e,r,l),l};const v=["auto","auto-start","auto-end","left-start","left","left-end","right-start","right","right-end","top-start","top","top-end","bottom-start","bottom","bottom-end"];var h;!function(o){let e=class extends l.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.value="",this.textOverflow=!1,this.renderedText="",this.MAX_LENGTH=18,this.PRE_TRUNC_CHARS=6,this.POST_TRUNC_CHARS=9,this.DOT_COUNT=3,this.selectionChange=o=>{this.dispatchEvent(new CustomEvent("chip-selected",{composed:!0,bubbles:!0,detail:{selected:o}}))},this.handleClear=o=>{this.dispatchEvent(new CustomEvent("chip-deleted",{composed:!0,bubbles:!0,detail:{id:o}}))},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};`:i.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:i.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:i.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height?l.html`
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
>
|
|
16
|
-
</md-progress-bar>
|
|
17
|
-
`:l.html`
|
|
18
|
-
<md-progress-bar class="md-chip--loading" type="indeterminate" displayFormat="none"></md-progress-bar>
|
|
19
|
-
`:i.nothing}iconTemplate(){const o=this.disabled?"":this.iconColor;return this.icon?l.html`
|
|
20
|
-
<md-icon
|
|
21
|
-
class="md-chip--icon"
|
|
22
|
-
part="chip-icon"
|
|
23
|
-
name="${this.icon}"
|
|
24
|
-
color="${o}"
|
|
25
|
-
iconSet=${Object(g.ifDefined)(this.iconSet||void 0)}
|
|
26
|
-
size="${Object(g.ifDefined)(this.iconSize||void 0)}"
|
|
27
|
-
>
|
|
28
|
-
</md-icon>
|
|
29
|
-
`:i.nothing}getToolTipContent(){return this.tooltipText&&this.textOverflow?this.value===this.tooltipText?this.tooltipText:`${this.value}, ${this.tooltipText}`:this.tooltipText?this.tooltipText:this.value}render(){const o={"md-chip--small":this.small,"md-chip--disabled":this.disabled,["md-chip--"+this.color]:this.color};return l.html`
|
|
30
|
-
${this.getStyles()}
|
|
31
|
-
<md-tooltip
|
|
32
|
-
?disabled=${!this.tooltipText&&!this.textOverflow}
|
|
33
|
-
message="${this.getToolTipContent()}"
|
|
34
|
-
placement="${this.tooltipPlacement}"
|
|
35
|
-
>
|
|
36
|
-
<span
|
|
37
|
-
role="button"
|
|
38
|
-
tabindex="0"
|
|
39
|
-
class="md-chip ${Object(d.classMap)(o)}"
|
|
40
|
-
part="chip"
|
|
41
|
-
aria-pressed=${this.selected}
|
|
42
|
-
@click=${()=>{this.handleClick()}}
|
|
43
|
-
@keydown=${o=>{this.handleKeydown(o)}}
|
|
44
|
-
>
|
|
45
|
-
${this.loadingTemplate()} ${this.iconTemplate()}
|
|
46
|
-
<slot name="custom-left-content" part="chip-left"> </slot>
|
|
47
|
-
<span class="md-chip--textcontent"> ${this.renderedText}</span>
|
|
48
|
-
<slot name="custom-right-content" part="chip-right"> </slot>
|
|
49
|
-
</span>
|
|
50
|
-
</md-tooltip>
|
|
51
|
-
`}};b([Object(l.property)({type:String})],e.prototype,"color",void 0),b([Object(l.property)({type:String})],e.prototype,"bgColor",void 0),b([Object(l.property)({type:String})],e.prototype,"textColor",void 0),b([Object(l.property)({type:String})],e.prototype,"height",void 0),b([Object(l.property)({type:String})],e.prototype,"icon",void 0),b([Object(l.property)({type:String})],e.prototype,"iconColor",void 0),b([Object(l.property)({type:String})],e.prototype,"iconSize",void 0),b([Object(l.property)({type:String})],e.prototype,"role",void 0),b([Object(l.property)({type:String,reflect:!0})],e.prototype,"id",void 0),b([Object(l.property)({type:Boolean})],e.prototype,"small",void 0),b([Object(l.property)({type:Boolean})],e.prototype,"readonly",void 0),b([Object(l.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),b([Object(l.property)({type:Boolean})],e.prototype,"disabled",void 0),b([Object(l.property)({type:Number})],e.prototype,"determinateProgress",void 0),b([Object(l.property)({type:Boolean})],e.prototype,"indeterminateProgress",void 0),b([Object(l.property)({type:String})],e.prototype,"tooltipText",void 0),b([Object(l.property)({type:String})],e.prototype,"tooltipPlacement",void 0),b([Object(l.property)({type:String})],e.prototype,"iconSet",void 0),b([Object(l.property)({type:String,hasChanged:(o,e)=>o!==e})],e.prototype,"value",void 0),b([Object(l.internalProperty)({hasChanged:(o,e)=>o!==e})],e.prototype,"textOverflow",void 0),b([Object(l.internalProperty)()],e.prototype,"renderedText",void 0),e=b([Object(c.a)("md-chip")],e),o.ELEMENT=e}(h||(h={}))}}]);
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[60],{92:function(e,t,i){"use strict";i.r(t),i.d(t,"Checkbox",(function(){return s}));var s,c=i(1),n=i(7),a=i(6),d=i(5),o=i(0),r=i(64),h=function(e,t,i,s){var c,n=arguments.length,a=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(a=(n<3?c(a):n>3?c(t,i,a):c(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};!function(e){let t=class extends(Object(n.a)(o.LitElement)){constructor(){super(...arguments),this.autofocus=!1,this._checked=!1,this._indeterminate=!1,this._disabled=!1,this.label="",this.tabIndex=0}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,this.indeterminate||this.setAttribute("aria-checked",""+e),this.requestUpdate("checked",t)}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=this._indeterminate;this._indeterminate=e,this.setAttribute("aria-checked","mixed"),this.requestUpdate("indeterminate",t)}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.setAttribute("aria-disabled",""+e),this.tabIndex=e?-1:0,this.requestUpdate("disabled",t)}static get styles(){return[a.a,r.a]}toggleCheckbox(){this.checked=!this.checked}isCheckboxActive(){return this.disabled||this.indeterminate}handleClick(e){this.isCheckboxActive()?e.stopPropagation():(this.toggleCheckbox(),this.handleChange(e))}handleKeyDown(e){const{code:t}=e;t!==c.b.Space&&t!==c.b.Enter||(e.preventDefault(),this.isCheckboxActive()?e.stopPropagation():(this.toggleCheckbox(),this.handleChange(e)))}handleChange(e){this.dispatchEvent(new CustomEvent("checkbox-change",{bubbles:!0,composed:!0,detail:{sourceEvent:e}}))}firstUpdated(e){super.firstUpdated(e),this.setAttribute("role","checkbox"),this.label&&this.setAttribute("aria-label",this.label)}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)}update(e){super.update(e),e.has("indeterminate")&&(this.checked=!1)}updated(e){super.updated(e),e.has("indeterminate")&&(this.input.indeterminate=this.indeterminate)}render(){return o.html`
|
|
2
|
+
<input
|
|
3
|
+
class="checkbox-input"
|
|
4
|
+
type="checkbox"
|
|
5
|
+
part="checkbox-input"
|
|
6
|
+
?checked=${this.checked}
|
|
7
|
+
?disabled=${this.disabled}
|
|
8
|
+
?autofocus=${this.autofocus}
|
|
9
|
+
aria-hidden="true"
|
|
10
|
+
/>
|
|
11
|
+
<label part="checkbox-label" class="checkbox-label">
|
|
12
|
+
<slot></slot>
|
|
13
|
+
</label>
|
|
14
|
+
`}};h([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"autofocus",void 0),h([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"checked",null),h([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"indeterminate",null),h([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),h([Object(o.property)({type:String})],t.prototype,"label",void 0),h([Object(o.property)({type:Number,reflect:!0})],t.prototype,"tabIndex",void 0),h([Object(o.query)(".checkbox-input")],t.prototype,"input",void 0),t=h([Object(d.a)("md-checkbox")],t),e.ELEMENT=t}(s||(s={}))}}]);
|
package/dist/chunks/md-61.js
CHANGED
|
@@ -1,22 +1,5 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[61],{116:function(r,o,a){"use strict";a.r(o),a.d(o,"coachmarkPlacement",(function(){return l})),a.d(o,"Coachmark",(function(){return k}));a(17);var c=a(7),e=a(6),m=a(16),p=a(5),t=a(0),d=a(4),h=t.css`.md-coachmark{display:inline-flex;position:relative}.md-coachmark__popper{border-radius:.25rem;display:none;min-width:10.625rem;padding:.75rem;position:absolute;width:auto;z-index:1}.md-coachmark__popper .md-coachmark__arrow{height:0;position:absolute;width:0}.md-coachmark__popper--right{animation:coach-fade 1s,coach-slide-right .5s ease;left:calc(100% + 1rem);top:50%;transform:translateY(-50%)}.md-coachmark__popper--right .md-coachmark__arrow{border-bottom:.625rem solid transparent;border-top:.625rem solid transparent;left:-.625rem;top:50%;transform:translateY(-50%)}.md-coachmark__popper--left{animation:coach-fade 1s,coach-slide-left .5s ease;right:calc(100% + 1rem);top:50%;transform:translateY(-50%)}.md-coachmark__popper--left .md-coachmark__arrow{border-bottom:.625rem solid transparent;border-top:.625rem solid transparent;right:-.625rem;top:50%;transform:translateY(-50%)}.md-coachmark__popper--top{animation:coach-fade 1s,coach-slide-top .5s ease;bottom:calc(100% + .5rem);left:50%;transform:translateX(-50%)}.md-coachmark__popper--top .md-coachmark__arrow{border-left:.625rem solid transparent;border-right:.625rem solid transparent;bottom:-.625rem;left:50%;transform:translateX(-50%)}.md-coachmark__popper--bottom{animation:coach-fade 1s,coach-slide-bottom .5s ease;left:50%;top:calc(100% + .5rem);transform:translateX(-50%)}.md-coachmark__popper--bottom .md-coachmark__arrow{border-left:.625rem solid transparent;border-right:.625rem solid transparent;left:50%;top:-.625rem;transform:translateX(-50%)}.md-coachmark__popper--default{background:var(--coachmark-default-bg-color,#f7f7f7);color:var(-coachmark-default-text-color,#545454)}.md-coachmark__popper--default.md-coachmark__popper--left .md-coachmark__arrow{border-left:.625rem solid var(--coachmark-default-bg-color,#f7f7f7)}.md-coachmark__popper--default.md-coachmark__popper--right .md-coachmark__arrow{border-right:.625rem solid var(--coachmark-default-bg-color,#f7f7f7)}.md-coachmark__popper--default.md-coachmark__popper--top .md-coachmark__arrow{border-top:.625rem solid var(--coachmark-default-bg-color,#f7f7f7)}.md-coachmark__popper--default.md-coachmark__popper--bottom .md-coachmark__arrow{border-bottom:.625rem solid var(--coachmark-default-bg-color,#f7f7f7)}.md-coachmark__popper--blue{background:var(--coachmark-blue-bg-color,#c7eeff);color:var(--coachmark-blue-text-color,#08599c)}.md-coachmark__popper--blue.md-coachmark__popper--left .md-coachmark__arrow{border-left:.625rem solid var(--coachmark-blue-bg-color,#c7eeff)}.md-coachmark__popper--blue.md-coachmark__popper--right .md-coachmark__arrow{border-right:.625rem solid var(--coachmark-blue-bg-color,#c7eeff)}.md-coachmark__popper--blue.md-coachmark__popper--top .md-coachmark__arrow{border-top:.625rem solid var(--coachmark-blue-bg-color,#c7eeff)}.md-coachmark__popper--blue.md-coachmark__popper--bottom .md-coachmark__arrow{border-bottom:.625rem solid var(--coachmark-blue-bg-color,#c7eeff)}.md-coachmark__popper--green{background:var(--coachmark-green-bg-color,#78f5b8);color:var(--coachmark-green-text-color,#03612c)}.md-coachmark__popper--green.md-coachmark__popper--left .md-coachmark__arrow{border-left:.625rem solid var(--coachmark-green-bg-color,#78f5b8)}.md-coachmark__popper--green.md-coachmark__popper--right .md-coachmark__arrow{border-right:.625rem solid var(--coachmark-green-bg-color,#78f5b8)}.md-coachmark__popper--green.md-coachmark__popper--top .md-coachmark__arrow{border-top:.625rem solid var(--coachmark-green-bg-color,#78f5b8)}.md-coachmark__popper--green.md-coachmark__popper--bottom .md-coachmark__arrow{border-bottom:.625rem solid var(--coachmark-green-bg-color,#78f5b8)}.md-coachmark__popper--purple{background:var(--coachmark-purple-bg-color,#fce1fc);color:var(--coachmark-purple-text-color,#932099)}.md-coachmark__popper--purple.md-coachmark__popper--left .md-coachmark__arrow{border-left:.625rem solid var(--coachmark-purple-bg-color,#fce1fc)}.md-coachmark__popper--purple.md-coachmark__popper--right .md-coachmark__arrow{border-right:.625rem solid var(--coachmark-purple-bg-color,#fce1fc)}.md-coachmark__popper--purple.md-coachmark__popper--top .md-coachmark__arrow{border-top:.625rem solid var(--coachmark-purple-bg-color,#fce1fc)}.md-coachmark__popper--purple.md-coachmark__popper--bottom .md-coachmark__arrow{border-bottom:.625rem solid var(--coachmark-purple-bg-color,#fce1fc)}.md-coachmark__popper--violet{background:var(--coachmark-violet-bg-color,#f0e3fc);color:var(--coachmark-violet-text-color,#643abd)}.md-coachmark__popper--violet.md-coachmark__popper--left .md-coachmark__arrow{border-left:.625rem solid var(--coachmark-violet-bg-color,#f0e3fc)}.md-coachmark__popper--violet.md-coachmark__popper--right .md-coachmark__arrow{border-right:.625rem solid var(--coachmark-violet-bg-color,#f0e3fc)}.md-coachmark__popper--violet.md-coachmark__popper--top .md-coachmark__arrow{border-top:.625rem solid var(--coachmark-violet-bg-color,#f0e3fc)}.md-coachmark__popper--violet.md-coachmark__popper--bottom .md-coachmark__arrow{border-bottom:.625rem solid var(--coachmark-violet-bg-color,#f0e3fc)}.md-coachmark__popper--mint{background:var(--coachmark-mint-bg-color,#baf5e7);color:var(--coachmark-mint-text-color,#12615a)}.md-coachmark__popper--mint.md-coachmark__popper--left .md-coachmark__arrow{border-left:.625rem solid var(--coachmark-mint-bg-color,#baf5e7)}.md-coachmark__popper--mint.md-coachmark__popper--right .md-coachmark__arrow{border-right:.625rem solid var(--coachmark-mint-bg-color,#baf5e7)}.md-coachmark__popper--mint.md-coachmark__popper--top .md-coachmark__arrow{border-top:1 .625rem solid var(--coachmark-mint-bg-color,#baf5e7)}.md-coachmark__popper--mint.md-coachmark__popper--bottom .md-coachmark__arrow{border-bottom:.625rem solid var(--coachmark-mint-bg-color,#baf5e7)}.md-coachmark__popper--darkmint{background:var(--coachmark-darkmint-bg-color,#16a693);color:var(--coachmark-darkmint-text-color,#f7f7f7)}.md-coachmark__popper--darkmint.md-coachmark__popper--left .md-coachmark__arrow{border-left:.625rem solid var(--coachmark-darkmint-bg-color,#16a693)}.md-coachmark__popper--darkmint.md-coachmark__popper--right .md-coachmark__arrow{border-right:.625rem solid var(--coachmark-darkmint-bg-color,#16a693)}.md-coachmark__popper--darkmint.md-coachmark__popper--top .md-coachmark__arrow{border-top:.625rem solid var(--coachmark-darkmint-bg-color,#16a693)}.md-coachmark__popper--darkmint.md-coachmark__popper--bottom .md-coachmark__arrow{border-bottom:.625rem solid var(--coachmark-darkmint-bg-color,#16a693)}.md-coachmark__popper--yellow{background:var(--coachmark-yellow-bg-color,#ffd98c);color:var(--coachmark-yellow-text-color,#7d4705)}.md-coachmark__popper--yellow.md-coachmark__popper--left .md-coachmark__arrow{border-left:.625rem solid var(--coachmark-yellow-bg-color,#ffd98c)}.md-coachmark__popper--yellow.md-coachmark__popper--right .md-coachmark__arrow{border-right:.625rem solid var(--coachmark-yellow-bg-color,#ffd98c)}.md-coachmark__popper--yellow.md-coachmark__popper--top .md-coachmark__arrow{border-top:.625rem solid var(--coachmark-yellow-bg-color,#ffd98c)}.md-coachmark__popper--yellow.md-coachmark__popper--bottom .md-coachmark__arrow{border-bottom:.625rem solid var(--coachmark-yellow-bg-color,#ffd98c)}.md-coachmark__popper--red{background:var(--coachmark-red-bg-color,#ffd5cc);color:var(--coachmark-red-text-color,#a12512)}.md-coachmark__popper--red.md-coachmark__popper--left .md-coachmark__arrow{border-left:.625rem solid var(--coachmark-red-bg-color,#ffd5cc)}.md-coachmark__popper--red.md-coachmark__popper--right .md-coachmark__arrow{border-right:.625rem solid var(--coachmark-red-bg-color,#ffd5cc)}.md-coachmark__popper--red.md-coachmark__popper--top .md-coachmark__arrow{border-top:.625rem solid var(--coachmark-red-bg-color,#ffd5cc)}.md-coachmark__popper--red.md-coachmark__popper--bottom .md-coachmark__arrow{border-bottom:.625rem solid var(--coachmark-red-bg-color,#ffd5cc)}.md-coachmark__popper--darkred{background:var(--coachmark-darkred-bg-color,#d4371c);color:var(--coachmark-darkred-text-color,#4a1812)}.md-coachmark__popper--darkred.md-coachmark__popper--left .md-coachmark__arrow{border-left:.625rem solid var(--coachmark-darkred-bg-color,#d4371c)}.md-coachmark__popper--darkred.md-coachmark__popper--right .md-coachmark__arrow{border-right:.625rem solid var(--coachmark-darkred-bg-color,#d4371c)}.md-coachmark__popper--darkred.md-coachmark__popper--top .md-coachmark__arrow{border-top:.625rem solid var(--coachmark-darkred-bg-color,#d4371c)}.md-coachmark__popper--darkred.md-coachmark__popper--bottom .md-coachmark__arrow{border-bottom:.625rem solid var(--coachmark-darkred-bg-color,#d4371c)}.md-coachmark__popper--orange{background:var(--coachmark-orange-bg-color,#fce4c7);color:var(--coachmark-orange-text-color,#914017)}.md-coachmark__popper--orange.md-coachmark__popper--left .md-coachmark__arrow{border-left:.625rem solid var(--coachmark-orange-bg-color,#fce4c7)}.md-coachmark__popper--orange.md-coachmark__popper--right .md-coachmark__arrow{border-right:.625rem solid var(--coachmark-orange-bg-color,#fce4c7)}.md-coachmark__popper--orange.md-coachmark__popper--top .md-coachmark__arrow{border-top:.625rem solid var(--coachmark-orange-bg-color,#fce4c7)}.md-coachmark__popper--orange.md-coachmark__popper--bottom .md-coachmark__arrow{border-bottom:.625rem solid var(--coachmark-orange-bg-color,#fce4c7)}.md-coachmark__popper--cyan{background:var(--coachmark-cyan-bg-color,#b2f4f7);color:var(--coachmark-cyan-text-color,#066070)}.md-coachmark__popper--cyan.md-coachmark__popper--left .md-coachmark__arrow{border-left:.625rem solid var(--coachmark-cyan-bg-color,#b2f4f7)}.md-coachmark__popper--cyan.md-coachmark__popper--right .md-coachmark__arrow{border-right:.625rem solid var(--coachmark-cyan-bg-color,#b2f4f7)}.md-coachmark__popper--cyan.md-coachmark__popper--top .md-coachmark__arrow{border-top:.625rem solid var(--coachmark-cyan-bg-color,#b2f4f7)}.md-coachmark__popper--cyan.md-coachmark__popper--bottom .md-coachmark__arrow{border-bottom:.625rem solid var(--coachmark-cyan-bg-color,#b2f4f7)}.md-coachmark__popper--outline{background:var(--coachmark-outline-color,#b2b2b2);color:var(--coachmark-outline-text-color,#949494)}.md-coachmark__popper--outline.md-coachmark__popper--left .md-coachmark__arrow{border-left:.625rem solid var(--coachmark-outline-color,#b2b2b2)}.md-coachmark__popper--outline.md-coachmark__popper--right .md-coachmark__arrow{border-right:.625rem solid var(--coachmark-outline-color,#b2b2b2)}.md-coachmark__popper--outline.md-coachmark__popper--top .md-coachmark__arrow{border-top:.625rem solid var(--coachmark-outline-color,#b2b2b2)}.md-coachmark__popper--outline.md-coachmark__popper--bottom .md-coachmark__arrow{border-bottom:.625rem solid var(--coachmark-outline-color,#b2b2b2)}.md-coachmark--active .md-coachmark__popper{display:block}@keyframes coach-fade{from{opacity:0}to{opacity:1}}@keyframes coach-slide-right{from{left:100%}to{left:calc(100% + 1rem)}}@keyframes coach-slide-top{from{bottom:100%}to{bottom:calc(100% + .5rem)}}@keyframes coach-slide-left{from{right:100%}to{right:calc(100% + 1rem)}}@keyframes coach-slide-bottom{from{top:100%}to{top:calc(100% + .5rem)}}@media(forced-colors:active){.md-coachmark md-task-item{outline:2px solid transparent}.md-coachmark__popper--blue,.md-coachmark__popper--cyan,.md-coachmark__popper--darked,.md-coachmark__popper--darkmint,.md-coachmark__popper--default,.md-coachmark__popper--green,.md-coachmark__popper--mint,.md-coachmark__popper--orange,.md-coachmark__popper--purple,.md-coachmark__popper--red,.md-coachmark__popper--violet,.md-coachmark__popper--yellow{background-color:Canvas;outline:1px solid CanvasText}.md-coachmark__popper--bottom .md-coachmark__arrow,.md-coachmark__popper--top .md-coachmark__arrow{border-left:.625rem solid Canvas;border-right:.625rem solid Canvas}.md-coachmark__popper--left .md-coachmark__arrow,.md-coachmark__popper--right .md-coachmark__arrow{border-top:.625rem solid Canvas;border-bottom:.625rem solid Canvas}}`,_=function(r,o,a,c){var e,m=arguments.length,p=m<3?o:null===c?c=Object.getOwnPropertyDescriptor(o,a):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(r,o,a,c);else for(var t=r.length-1;t>=0;t--)(e=r[t])&&(p=(m<3?e(p):m>3?e(o,a,p):e(o,a))||p);return m>3&&p&&Object.defineProperty(o,a,p),p};const l=["auto","left","right","top","bottom"];var k;!function(r){let o=class extends(Object(c.b)(t.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(r){const o=r.target;if(o){const r=o.assignedElements({flatten:!0});r.length&&(this.slotContent=r)}}update(r){super.update(r),r.has("show")&&this.show&&(this.setFocusableElements(),this.focusableElements&&this.focusableElements.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[p.a,h]}coachmarkContentTemplate(){return t.html`
|
|
2
|
-
<div
|
|
3
|
-
|
|
4
|
-
<div class="md-coachmark__action">
|
|
5
|
-
${this.hidebutton?t.html` <slot name="coachmark-action"></slot> `:t.html` <md-button variant="secondary" @button-click=${this.coachAction}>${this.actionname}</md-button> `}
|
|
6
|
-
</div>
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[61],{93:function(e,t,o){"use strict";o.r(t),o.d(t,"CheckboxGroup",(function(){return r}));var r,c=o(1),s=o(7),n=o(6),l=o(5),i=o(0),h=o(64),a=function(e,t,o,r){var c,s=arguments.length,n=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(n=(s<3?c(n):s>3?c(t,o,n):c(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};!function(e){let t=class extends(Object(s.d)(i.LitElement)){constructor(){super(...arguments),this.label="group",this.alignment="vertical"}static get styles(){return[n.a,h.a]}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown)}switchCheckboxOnArrowPress(e,t=1){const o=super.getAvailableSelectedIndex(e,t);-1!==o&&(this.selected=o)}handleKeyDown(e){const{code:t}=e;switch(t){case c.b.ArrowUp:case c.b.ArrowLeft:0===this.selected?this.switchCheckboxOnArrowPress(this.slotted.length-1,-1):this.switchCheckboxOnArrowPress(this.selected-1,-1);break;case c.b.ArrowDown:case c.b.ArrowRight:this.selected===this.slotted.length-1?this.switchCheckboxOnArrowPress(0):this.switchCheckboxOnArrowPress(this.selected+1)}}get slotElement(){return this.checkboxSlot}render(){return i.html`
|
|
2
|
+
<div role="group" aria-labelledby="id-group-label">
|
|
3
|
+
<slot name="checkbox"></slot>
|
|
7
4
|
</div>
|
|
8
|
-
`}
|
|
9
|
-
<md-theme theme="momentumV2" ?darkTheme=${!r.darkTheme}>
|
|
10
|
-
${this.coachmarkContentTemplate()}
|
|
11
|
-
</md-theme>
|
|
12
|
-
`:this.coachmarkContentTemplate()}render(){return t.html`
|
|
13
|
-
<div class="md-coachmark ${Object(d.classMap)(this.coachWrapClassMap)}">
|
|
14
|
-
<div class="md-coachmark__popper ${Object(d.classMap)(this.coachClassMap)}" tabindex="0">
|
|
15
|
-
${this.wrappedCoachmarkContentTemplate()}
|
|
16
|
-
<div id="arrow" class="md-coachmark__arrow" data-popper-arrow></div>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="md-coachmark__reference" @click=${()=>this.notifyCoachCreate()} aria-describedby="coachmark">
|
|
19
|
-
<slot></slot>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
`}};_([Object(t.property)({type:String})],o.prototype,"message",void 0),_([Object(t.property)({type:String})],o.prototype,"actionname",void 0),_([Object(t.property)({type:Boolean})],o.prototype,"hidebutton",void 0),_([Object(t.property)({type:String})],o.prototype,"placement",void 0),_([Object(t.property)({type:Boolean})],o.prototype,"show",void 0),_([Object(t.property)({type:String})],o.prototype,"color",void 0),_([Object(t.query)(".md-coachmark__popper")],o.prototype,"popper",void 0),_([Object(t.query)(".md-coachmark__reference")],o.prototype,"reference",void 0),o=_([Object(e.a)("md-coachmark")],o),r.ELEMENT=o}(k||(k={}))}}]);
|
|
5
|
+
`}};a([Object(i.property)({type:String,attribute:"group-label"})],t.prototype,"label",void 0),a([Object(i.property)({type:String,reflect:!0})],t.prototype,"alignment",void 0),a([Object(i.query)("slot[name='checkbox']")],t.prototype,"checkboxSlot",void 0),t=a([Object(l.a)("md-checkboxgroup")],t),e.ELEMENT=t}(r||(r={}))}}]);
|
package/dist/chunks/md-62.js
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[62],{88:function(t,e,r){"use strict";r.r(e),r.d(e,"CompositeAvatar",(function(){return o}));var o,s=r(5),a=r(6),n=r(0),i=r(4),c=r(38),p=function(t,e,r,o){var s,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var i=t.length-1;i>=0;i--)(s=t[i])&&(n=(a<3?s(n):a>3?s(e,r,n):s(e,r))||n);return a>3&&n&&Object.defineProperty(e,r,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.size=0}static get styles(){return[s.a,c.a]}get avatarClassMap(){return{["md-composite-avatar--"+this.size]:!!this.size}}render(){return n.html`
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[62],{118:function(o,e,r){"use strict";r.r(e),r.d(e,"Chip",(function(){return t}));r(14),r(82),r(42);var t,c=r(1),a=r(5),l=r(6),i=r(0),d=r(2),g=r(4),n=r(3),b=i.css`:focus{outline:0}.md-chip{padding:.25rem 1rem;font-size:var(--body-secondary-font-size,.75rem);align-items:center;background-color:var(--md-secondary-bg-color,#f7f7f7);color:var(--md-primary-text-color,#121212);cursor:pointer;display:inline-flex;font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);font-weight:400;height:2rem;justify-content:space-between;line-height:1rem;margin-bottom:auto;max-width:12.5rem;overflow:auto;position:relative;text-align:center;text-decoration:none;white-space:nowrap;width:auto}.md-chip{border-radius:1.125rem}.md-chip{--left-content-right-margin:0.625rem}.md-chip--small{padding:.1875rem .75rem;font-size:var(--body-secondary-font-size,.75rem);height:1.5rem;min-width:auto}.md-chip:focus{box-shadow:0 0 0 .0625rem var(--md-default-focus-outline-color,#005e7d)}.md-chip:hover{background-color:var(--md-tertiary-bg-color,#ededed)}.md-chip:active,.md-chip[aria-selected=true]{background-color:var(--button-secondary-active-normal-bg-color,var(--md-quaternary-bg-color,#dedede))}.md-chip--blue,.md-chip--cobalt{background-color:var(--badge-blue-bg-color);color:var(--badge-blue-text-color)}.md-chip--blue:hover,.md-chip--cobalt:hover{background-color:var(--badge-blue-bg-color);color:var(--badge-blue-text-color)}.md-chip--blue:active,.md-chip--cobalt:active{background-color:var(--badge-blue-bg-color);color:var(--badge-blue-text-color)}.md-chip--blue:hover,.md-chip--cobalt:hover{background-color:var(--badge-blue-hover-bg-color);color:var(--badge-blue-text-color)}.md-chip--blue:hover:hover,.md-chip--cobalt:hover:hover{background-color:var(--badge-blue-hover-bg-color);color:var(--badge-blue-text-color)}.md-chip--blue:hover:active,.md-chip--cobalt:hover:active{background-color:var(--badge-blue-hover-bg-color);color:var(--badge-blue-text-color)}.md-chip--blue:active,.md-chip--cobalt:active{background-color:var(--badge-blue-active-bg-color);color:var(--badge-blue-text-color)}.md-chip--blue:active:hover,.md-chip--cobalt:active:hover{background-color:var(--badge-blue-active-bg-color);color:var(--badge-blue-text-color)}.md-chip--blue:active:active,.md-chip--cobalt:active:active{background-color:var(--badge-blue-active-bg-color);color:var(--badge-blue-text-color)}.md-chip--gray{background-color:var(--badge-gray-bg-color);color:var(--badge-gray-text-color)}.md-chip--gray:hover{background-color:var(--badge-gray-bg-color);color:var(--badge-gray-text-color)}.md-chip--gray:active{background-color:var(--badge-gray-bg-color);color:var(--badge-gray-text-color)}.md-chip--gray:hover{background-color:var(--badge-gray-hover-bg-color);color:var(--badge-gray-text-color)}.md-chip--gray:hover:hover{background-color:var(--badge-gray-hover-bg-color);color:var(--badge-gray-text-color)}.md-chip--gray:hover:active{background-color:var(--badge-gray-hover-bg-color);color:var(--badge-gray-text-color)}.md-chip--gray:active{background-color:var(--badge-gray-active-bg-color);color:var(--badge-gray-text-color)}.md-chip--gray:active:hover{background-color:var(--badge-gray-active-bg-color);color:var(--badge-gray-text-color)}.md-chip--gray:active:active{background-color:var(--badge-gray-active-bg-color);color:var(--badge-gray-text-color)}.md-chip--mint{background-color:var(--badge-mint-bg-color);color:var(--badge-mint-text-color)}.md-chip--mint:hover{background-color:var(--badge-mint-bg-color);color:var(--badge-mint-text-color)}.md-chip--mint:active{background-color:var(--badge-mint-bg-color);color:var(--badge-mint-text-color)}.md-chip--mint:hover{background-color:var(--badge-mint-hover-bg-color);color:var(--badge-mint-text-color)}.md-chip--mint:hover:hover{background-color:var(--badge-mint-hover-bg-color);color:var(--badge-mint-text-color)}.md-chip--mint:hover:active{background-color:var(--badge-mint-hover-bg-color);color:var(--badge-mint-text-color)}.md-chip--mint:active{background-color:var(--badge-mint-active-bg-color);color:var(--badge-mint-text-color)}.md-chip--mint:active:hover{background-color:var(--badge-mint-active-bg-color);color:var(--badge-mint-text-color)}.md-chip--mint:active:active{background-color:var(--badge-mint-active-bg-color);color:var(--badge-mint-text-color)}.md-chip--darkmint{background-color:var(--badge-darkmint-bg-color);color:var(--badge-darkmint-text-color)}.md-chip--darkmint:hover{background-color:var(--badge-darkmint-bg-color);color:var(--badge-darkmint-text-color)}.md-chip--darkmint:active{background-color:var(--badge-darkmint-bg-color);color:var(--badge-darkmint-text-color)}.md-chip--green{background-color:var(--badge-green-bg-color);color:var(--badge-green-text-color)}.md-chip--green:hover{background-color:var(--badge-green-bg-color);color:var(--badge-green-text-color)}.md-chip--green:active{background-color:var(--badge-green-bg-color);color:var(--badge-green-text-color)}.md-chip--yellow{background-color:var(--badge-yellow-bg-color);color:var(--badge-yellow-text-color)}.md-chip--yellow:hover{background-color:var(--badge-yellow-bg-color);color:var(--badge-yellow-text-color)}.md-chip--yellow:active{background-color:var(--badge-yellow-bg-color);color:var(--badge-yellow-text-color)}.md-chip--red{background-color:var(--badge-red-bg-color);color:var(--badge-red-text-color)}.md-chip--red:hover{background-color:var(--badge-red-bg-color);color:var(--badge-red-text-color)}.md-chip--red:active{background-color:var(--badge-red-bg-color);color:var(--badge-red-text-color)}.md-chip--orange{background-color:var(--badge-orange-bg-color);color:var(--badge-orange-text-color)}.md-chip--orange:hover{background-color:var(--badge-orange-bg-color);color:var(--badge-orange-text-color)}.md-chip--orange:active{background-color:var(--badge-orange-bg-color);color:var(--badge-orange-text-color)}.md-chip--orange:hover{background-color:var(--badge-orange-hover-bg-color);color:var(--badge-orange-text-color)}.md-chip--orange:hover:hover{background-color:var(--badge-orange-hover-bg-color);color:var(--badge-orange-text-color)}.md-chip--orange:hover:active{background-color:var(--badge-orange-hover-bg-color);color:var(--badge-orange-text-color)}.md-chip--orange:active{background-color:var(--badge-orange-active-bg-color);color:var(--badge-orange-text-color)}.md-chip--orange:active:hover{background-color:var(--badge-orange-active-bg-color);color:var(--badge-orange-text-color)}.md-chip--orange:active:active{background-color:var(--badge-orange-active-bg-color);color:var(--badge-orange-text-color)}.md-chip--gold{background-color:var(--badge-gold-bg-color);color:var(--badge-gold-text-color)}.md-chip--gold:hover{background-color:var(--badge-gold-bg-color);color:var(--badge-gold-text-color)}.md-chip--gold:active{background-color:var(--badge-gold-bg-color);color:var(--badge-gold-text-color)}.md-chip--gold:hover{background-color:var(--badge-gold-hover-bg-color);color:var(--badge-gold-text-color)}.md-chip--gold:hover:hover{background-color:var(--badge-gold-hover-bg-color);color:var(--badge-gold-text-color)}.md-chip--gold:hover:active{background-color:var(--badge-gold-hover-bg-color);color:var(--badge-gold-text-color)}.md-chip--gold:active{background-color:var(--badge-gold-active-bg-color);color:var(--badge-gold-text-color)}.md-chip--gold:active:hover{background-color:var(--badge-gold-active-bg-color);color:var(--badge-gold-text-color)}.md-chip--gold:active:active{background-color:var(--badge-gold-active-bg-color);color:var(--badge-gold-text-color)}.md-chip--lime{background-color:var(--badge-lime-bg-color);color:var(--badge-lime-text-color)}.md-chip--lime:hover{background-color:var(--badge-lime-bg-color);color:var(--badge-lime-text-color)}.md-chip--lime:active{background-color:var(--badge-lime-bg-color);color:var(--badge-lime-text-color)}.md-chip--lime:hover{background-color:var(--badge-lime-hover-bg-color);color:var(--badge-lime-text-color)}.md-chip--lime:hover:hover{background-color:var(--badge-lime-hover-bg-color);color:var(--badge-lime-text-color)}.md-chip--lime:hover:active{background-color:var(--badge-lime-hover-bg-color);color:var(--badge-lime-text-color)}.md-chip--lime:active{background-color:var(--badge-lime-active-bg-color);color:var(--badge-lime-text-color)}.md-chip--lime:active:hover{background-color:var(--badge-lime-active-bg-color);color:var(--badge-lime-text-color)}.md-chip--lime:active:active{background-color:var(--badge-lime-active-bg-color);color:var(--badge-lime-text-color)}.md-chip--pink{background-color:var(--badge-pink-bg-color);color:var(--badge-pink-text-color)}.md-chip--pink:hover{background-color:var(--badge-pink-bg-color);color:var(--badge-pink-text-color)}.md-chip--pink:active{background-color:var(--badge-pink-bg-color);color:var(--badge-pink-text-color)}.md-chip--pink:hover{background-color:var(--badge-pink-hover-bg-color);color:var(--badge-pink-text-color)}.md-chip--pink:hover:hover{background-color:var(--badge-pink-hover-bg-color);color:var(--badge-pink-text-color)}.md-chip--pink:hover:active{background-color:var(--badge-pink-hover-bg-color);color:var(--badge-pink-text-color)}.md-chip--pink:active{background-color:var(--badge-pink-active-bg-color);color:var(--badge-pink-text-color)}.md-chip--pink:active:hover{background-color:var(--badge-pink-active-bg-color);color:var(--badge-pink-text-color)}.md-chip--pink:active:active{background-color:var(--badge-pink-active-bg-color);color:var(--badge-pink-text-color)}.md-chip--purple{background-color:var(--badge-purple-bg-color);color:var(--badge-purple-text-color)}.md-chip--purple:hover{background-color:var(--badge-purple-bg-color);color:var(--badge-purple-text-color)}.md-chip--purple:active{background-color:var(--badge-purple-bg-color);color:var(--badge-purple-text-color)}.md-chip--violet{background-color:var(--badge-violet-bg-color);color:var(--badge-violet-text-color)}.md-chip--violet:hover{background-color:var(--badge-violet-bg-color);color:var(--badge-violet-text-color)}.md-chip--violet:active{background-color:var(--badge-violet-bg-color);color:var(--badge-violet-text-color)}.md-chip--violet:hover{background-color:var(--badge-violet-hover-bg-color);color:var(--badge-violet-text-color)}.md-chip--violet:hover:hover{background-color:var(--badge-violet-hover-bg-color);color:var(--badge-violet-text-color)}.md-chip--violet:hover:active{background-color:var(--badge-violet-hover-bg-color);color:var(--badge-violet-text-color)}.md-chip--violet:active{background-color:var(--badge-violet-active-bg-color);color:var(--badge-violet-text-color)}.md-chip--violet:active:hover{background-color:var(--badge-violet-active-bg-color);color:var(--badge-violet-text-color)}.md-chip--violet:active:active{background-color:var(--badge-violet-active-bg-color);color:var(--badge-violet-text-color)}.md-chip--cyan{background-color:var(--badge-cyan-bg-color);color:var(--badge-cyan-text-color)}.md-chip--cyan:hover{background-color:var(--badge-cyan-bg-color);color:var(--badge-cyan-text-color)}.md-chip--cyan:active{background-color:var(--badge-cyan-bg-color);color:var(--badge-cyan-text-color)}.md-chip--positive{--left-content-right-margin:4px;padding:0 4px;font-weight:500;font-family:var(--brand-font-regular);background-color:var(--badge-positive-bg-color);color:var(--badge-positive-text-color);border:1px solid var(--badge-positive-border-color);border-radius:4px}.md-chip--positive:hover{background-color:var(--badge-positive-hover-bg-color)}.md-chip--positive:active{background-color:var(--badge-positive-active-bg-color)}.md-chip--negative{--left-content-right-margin:4px;padding:0 4px;font-weight:500;font-family:var(--brand-font-regular);background-color:var(--badge-negative-bg-color);color:var(--badge-negative-text-color);border:1px solid var(--badge-negative-border-color);border-radius:4px}.md-chip--negative:hover{background-color:var(--badge-negative-hover-bg-color)}.md-chip--negative:active{background-color:var(--badge-negative-active-bg-color)}.md-chip--neutral{--left-content-right-margin:4px;padding:0 4px;font-weight:500;font-family:var(--brand-font-regular);background-color:var(--badge-neutral-bg-color);color:var(--badge-neutral-text-color);border:1px solid var(--badge-neutral-border-color);border-radius:4px}.md-chip--neutral:hover{background-color:var(--badge-neutral-hover-bg-color)}.md-chip--neutral:active{background-color:var(--badge-neutral-active-bg-color)}.md-chip .md-chip--clear{display:flow-root;margin-left:.625rem;margin-right:0;height:.875rem;right:.75rem;top:.75rem;width:.875rem}.md-chip .md-chip--clear::before{font-size:.875rem}.md-chip .md-chip--loading{left:0;overflow:hidden;position:absolute;top:-.125rem;width:100%}.md-chip .md-chip--textcontent{max-width:9.375rem}.md-chip md-icon{display:flex;margin-right:var(--left-content-right-margin)}.md-chip.md-chip--disabled{color:var(--md-disabled-text-color,#b2b2b2);cursor:default;align-items:center;background-color:var(--md-secondary-bg-color,#f7f7f7);color:var(--md-primary-text-color,#121212);cursor:pointer;display:inline-flex;font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);font-weight:400;height:2rem;justify-content:space-between;line-height:1rem;margin-bottom:auto;max-width:12.5rem;overflow:auto;position:relative;text-align:center;text-decoration:none;white-space:nowrap;width:auto}.md-chip.md-chip--disabled{border-radius:1.125rem}.md-chip.md-chip--disabled md-icon{color:var(--md-disabled-text-color,#b2b2b2)}::slotted(*){line-height:normal}::slotted([slot=custom-left-content]){margin-right:var(--left-content-right-margin)}::slotted([slot=custom-right-content]){margin-left:.625rem}@media(forced-colors:active){.md-chip{outline:1px solid CanvasText}.md-chip:focus,.md-chip:hover{box-shadow:none;outline:2px solid Highlight}.md-chip.md-chip--disabled{color:GrayText;outline:1px solid GrayText}.md-chip.md-chip--disabled:focus,.md-chip.md-chip--disabled:hover{outline:2px solid Highlight}.md-chip.md-chip--disabled md-icon{color:GrayText}}`,v=function(o,e,r,t){var c,a=arguments.length,l=a<3?e:null===t?t=Object.getOwnPropertyDescriptor(e,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(o,e,r,t);else for(var i=o.length-1;i>=0;i--)(c=o[i])&&(l=(a<3?c(l):a>3?c(e,r,l):c(e,r))||l);return a>3&&l&&Object.defineProperty(e,r,l),l};!function(o){let e=class extends i.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.value="",this.textOverflow=!1,this.renderedText="",this.MAX_LENGTH=18,this.PRE_TRUNC_CHARS=6,this.POST_TRUNC_CHARS=9,this.DOT_COUNT=3,this.selectionChange=o=>{this.dispatchEvent(new CustomEvent("chip-selected",{composed:!0,bubbles:!0,detail:{selected:o}}))},this.handleClear=o=>{this.dispatchEvent(new CustomEvent("chip-deleted",{composed:!0,bubbles:!0,detail:{id:o}}))},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};`:d.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:d.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:d.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height?i.html`
|
|
2
|
+
<style>
|
|
3
|
+
:host .md-chip {
|
|
4
|
+
${this.renderBgColor()};
|
|
5
|
+
${this.renderTextColor()};
|
|
6
|
+
${this.renderHeight()};
|
|
7
|
+
}
|
|
8
|
+
</style>
|
|
9
|
+
`:d.nothing}connectedCallback(){super.connectedCallback(),this.truncStringPortion(this.value),this.setAttribute("role",this.role)}updated(o){super.updated(o),this.truncStringPortion(this.value)}truncStringPortion(o,e=this.PRE_TRUNC_CHARS,r=this.POST_TRUNC_CHARS,t=this.DOT_COUNT){if(this.value.length>this.MAX_LENGTH){let c="";c+=o.substring(0,e),c+=".".repeat(t),c+=o.substring(o.length-r,o.length),this.renderedText=c,this.textOverflow=!0}else this.renderedText=this.value}handleClick(){var o;const e=null===(o=this.shadowRoot)||void 0===o?void 0:o.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(o){switch(o.code){case c.b.Space:case c.b.Enter:this.handleSelect(),this.handleClick()}}static get styles(){return[l.a,b]}loadingTemplate(){return this.determinateProgress||this.indeterminateProgress?this.determinateProgress?i.html`
|
|
10
|
+
<md-progress-bar
|
|
11
|
+
class="md-chip--loading"
|
|
12
|
+
type="determinate"
|
|
13
|
+
value="${this.determinateProgress}"
|
|
14
|
+
displayFormat="none"
|
|
15
|
+
>
|
|
16
|
+
</md-progress-bar>
|
|
17
|
+
`:i.html`
|
|
18
|
+
<md-progress-bar class="md-chip--loading" type="indeterminate" displayFormat="none"></md-progress-bar>
|
|
19
|
+
`:d.nothing}iconTemplate(){const o=this.disabled?"":this.iconColor;return this.icon?i.html`
|
|
20
|
+
<md-icon
|
|
21
|
+
class="md-chip--icon"
|
|
22
|
+
part="chip-icon"
|
|
23
|
+
name="${this.icon}"
|
|
24
|
+
color="${o}"
|
|
25
|
+
iconSet=${Object(n.ifDefined)(this.iconSet||void 0)}
|
|
26
|
+
size="${Object(n.ifDefined)(this.iconSize||void 0)}"
|
|
27
|
+
>
|
|
28
|
+
</md-icon>
|
|
29
|
+
`:d.nothing}getToolTipContent(){return this.tooltipText&&this.textOverflow?this.value===this.tooltipText?this.tooltipText:`${this.value}, ${this.tooltipText}`:this.tooltipText?this.tooltipText:this.value}render(){const o={"md-chip--small":this.small,"md-chip--disabled":this.disabled,["md-chip--"+this.color]:this.color};return i.html`
|
|
30
|
+
${this.getStyles()}
|
|
31
|
+
<md-tooltip
|
|
32
|
+
?disabled=${!this.tooltipText&&!this.textOverflow}
|
|
33
|
+
message="${this.getToolTipContent()}"
|
|
34
|
+
placement="${this.tooltipPlacement}"
|
|
35
|
+
>
|
|
36
|
+
<span
|
|
37
|
+
role="button"
|
|
38
|
+
tabindex="0"
|
|
39
|
+
class="md-chip ${Object(g.classMap)(o)}"
|
|
40
|
+
part="chip"
|
|
41
|
+
aria-pressed=${this.selected}
|
|
42
|
+
@click=${()=>{this.handleClick()}}
|
|
43
|
+
@keydown=${o=>{this.handleKeydown(o)}}
|
|
44
|
+
>
|
|
45
|
+
${this.loadingTemplate()} ${this.iconTemplate()}
|
|
46
|
+
<slot name="custom-left-content" part="chip-left"> </slot>
|
|
47
|
+
<span class="md-chip--textcontent"> ${this.renderedText}</span>
|
|
48
|
+
<slot name="custom-right-content" part="chip-right"> </slot>
|
|
49
|
+
</span>
|
|
50
|
+
</md-tooltip>
|
|
51
|
+
`}};v([Object(i.property)({type:String})],e.prototype,"color",void 0),v([Object(i.property)({type:String})],e.prototype,"bgColor",void 0),v([Object(i.property)({type:String})],e.prototype,"textColor",void 0),v([Object(i.property)({type:String})],e.prototype,"height",void 0),v([Object(i.property)({type:String})],e.prototype,"icon",void 0),v([Object(i.property)({type:String})],e.prototype,"iconColor",void 0),v([Object(i.property)({type:String})],e.prototype,"iconSize",void 0),v([Object(i.property)({type:String})],e.prototype,"role",void 0),v([Object(i.property)({type:String,reflect:!0})],e.prototype,"id",void 0),v([Object(i.property)({type:Boolean})],e.prototype,"small",void 0),v([Object(i.property)({type:Boolean})],e.prototype,"readonly",void 0),v([Object(i.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),v([Object(i.property)({type:Boolean})],e.prototype,"disabled",void 0),v([Object(i.property)({type:Number})],e.prototype,"determinateProgress",void 0),v([Object(i.property)({type:Boolean})],e.prototype,"indeterminateProgress",void 0),v([Object(i.property)({type:String})],e.prototype,"tooltipText",void 0),v([Object(i.property)({type:String})],e.prototype,"tooltipPlacement",void 0),v([Object(i.property)({type:String})],e.prototype,"iconSet",void 0),v([Object(i.property)({type:String,hasChanged:(o,e)=>o!==e})],e.prototype,"value",void 0),v([Object(i.internalProperty)({hasChanged:(o,e)=>o!==e})],e.prototype,"textOverflow",void 0),v([Object(i.internalProperty)()],e.prototype,"renderedText",void 0),e=v([Object(a.a)("md-chip")],e),o.ELEMENT=e}(t||(t={}))}}]);
|
package/dist/chunks/md-63.js
CHANGED
|
@@ -1 +1,22 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[63],{
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[63],{120:function(o,r,a){"use strict";a.r(r),a.d(r,"coachmarkPlacement",(function(){return n})),a.d(r,"Coachmark",(function(){return s}));a(17);var c=a(7),e=a(5),t=a(16),m=a(6),p=a(0),l=a(4),d=p.css`.md-coachmark{--coachmark-arrow-border-color:var(--coachmark-default-bg-color);display:inline-flex;position:relative}.md-coachmark__popper{border-radius:.3125rem;display:none;min-width:10.625rem;max-width:18.75rem;padding:.75rem;position:absolute;width:100%;z-index:1}.md-coachmark__popper .md-coachmark__arrow{height:0;position:absolute;width:0}.md-coachmark__popper--right{animation:coach-fade 1s,coach-slide-right .5s ease;left:calc(100% + 1rem);top:50%;transform:translateY(-50%)}.md-coachmark__popper--right .md-coachmark__arrow{border-bottom:.625rem solid transparent;border-top:.625rem solid transparent;left:-.625rem;top:50%;transform:translateY(-50%)}.md-coachmark__popper--left{animation:coach-fade 1s,coach-slide-left .5s ease;right:calc(100% + 1rem);top:50%;transform:translateY(-50%)}.md-coachmark__popper--left .md-coachmark__arrow{border-bottom:.625rem solid transparent;border-top:.625rem solid transparent;right:-.625rem;top:50%;transform:translateY(-50%)}.md-coachmark__popper--top{animation:coach-fade 1s,coach-slide-top .5s ease;bottom:calc(100% + .5rem);left:50%;transform:translateX(-50%)}.md-coachmark__popper--top .md-coachmark__arrow{border-left:.625rem solid transparent;border-right:.625rem solid transparent;bottom:-.625rem;left:50%;transform:translateX(-50%)}.md-coachmark__popper--bottom{animation:coach-fade 1s,coach-slide-bottom .5s ease;left:50%;top:calc(100% + .5rem);transform:translateX(-50%)}.md-coachmark__popper--bottom .md-coachmark__arrow{border-left:.625rem solid transparent;border-right:.625rem solid transparent;left:50%;top:-.625rem;transform:translateX(-50%)}.md-coachmark__popper--default{background:var(--coachmark-default-bg-color);color:var(--coachmark-default-text-color)}.md-coachmark__popper--blue{background:var(--coachmark-blue-bg-color);color:var(--coachmark-blue-text-color);--coachmark-arrow-border-color:var(--coachmark-blue-bg-color)}.md-coachmark__popper--green{background:var(--coachmark-green-bg-color);color:var(--coachmark-green-text-color);--coachmark-arrow-border-color:var(--coachmark-green-bg-color)}.md-coachmark__popper--purple{background:var(--coachmark-purple-bg-color);color:var(--coachmark-purple-text-color);--coachmark-arrow-border-color:var(--coachmark-purple-bg-color)}.md-coachmark__popper--violet{background:var(--coachmark-violet-bg-color);color:var(--coachmark-violet-text-color);--coachmark-arrow-border-color:var(--coachmark-violet-bg-color)}.md-coachmark__popper--mint{background:var(--coachmark-mint-bg-color);color:var(--coachmark-mint-text-color);--coachmark-arrow-border-color:var(--coachmark-mint-bg-color)}.md-coachmark__popper--darkmint{background:var(--coachmark-darkmint-bg-color);color:var(--coachmark-darkmint-text-color);--coachmark-arrow-border-color:var(--coachmark-darkmint-bg-color)}.md-coachmark__popper--yellow{background:var(--coachmark-yellow-bg-color);color:var(--coachmark-yellow-text-color);--coachmark-arrow-border-color:var(--coachmark-yellow-bg-color)}.md-coachmark__popper--red{background:var(--coachmark-red-bg-color);color:var(--coachmark-red-text-color);--coachmark-arrow-border-color:var(--coachmark-red-bg-color)}.md-coachmark__popper--darkred{background:var(--coachmark-darkred-bg-color);color:var(--coachmark-darkred-text-color);--coachmark-arrow-border-color:var(--coachmark-darkred-bg-color)}.md-coachmark__popper--orange{background:var(--coachmark-orange-bg-color);color:var(--coachmark-orange-text-color);--coachmark-arrow-border-color:var(--coachmark-orange-bg-color)}.md-coachmark__popper--cyan{background:var(--coachmark-cyan-bg-color);color:var(--coachmark-cyan-text-color);--coachmark-arrow-border-color:var(--coachmark-cyan-bg-color)}.md-coachmark__popper--outline{background:var(--coachmark-outline-color);color:var(--coachmark-outline-text-color);--coachmark-arrow-border-color:var(--coachmark-outline-color)}.md-coachmark__popper.md-coachmark__popper--left .md-coachmark__arrow{border-left:.625rem solid var(--coachmark-arrow-border-color)}.md-coachmark__popper.md-coachmark__popper--right .md-coachmark__arrow{border-right:.625rem solid var(--coachmark-arrow-border-color)}.md-coachmark__popper.md-coachmark__popper--top .md-coachmark__arrow{border-top:.625rem solid var(--coachmark-arrow-border-color)}.md-coachmark__popper.md-coachmark__popper--bottom .md-coachmark__arrow{border-bottom:.625rem solid var(--coachmark-arrow-border-color)}.md-coachmark--active .md-coachmark__popper{display:block}@keyframes coach-fade{from{opacity:0}to{opacity:1}}@keyframes coach-slide-right{from{left:100%}to{left:calc(100% + 1rem)}}@keyframes coach-slide-top{from{bottom:100%}to{bottom:calc(100% + .5rem)}}@keyframes coach-slide-left{from{right:100%}to{right:calc(100% + 1rem)}}@keyframes coach-slide-bottom{from{top:100%}to{top:calc(100% + .5rem)}}@media(forced-colors:active){.md-coachmark md-task-item{outline:2px solid transparent}.md-coachmark__popper--blue,.md-coachmark__popper--cyan,.md-coachmark__popper--darked,.md-coachmark__popper--darkmint,.md-coachmark__popper--default,.md-coachmark__popper--green,.md-coachmark__popper--mint,.md-coachmark__popper--orange,.md-coachmark__popper--purple,.md-coachmark__popper--red,.md-coachmark__popper--violet,.md-coachmark__popper--yellow{background-color:Canvas;outline:1px solid CanvasText}.md-coachmark__popper--bottom .md-coachmark__arrow,.md-coachmark__popper--top .md-coachmark__arrow{border-left:.625rem solid Canvas;border-right:.625rem solid Canvas}.md-coachmark__popper--left .md-coachmark__arrow,.md-coachmark__popper--right .md-coachmark__arrow{border-top:.625rem solid Canvas;border-bottom:.625rem solid Canvas}}`,h=function(o,r,a,c){var e,t=arguments.length,m=t<3?r:null===c?c=Object.getOwnPropertyDescriptor(r,a):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)m=Reflect.decorate(o,r,a,c);else for(var p=o.length-1;p>=0;p--)(e=o[p])&&(m=(t<3?e(m):t>3?e(r,a,m):e(r,a))||m);return t>3&&m&&Object.defineProperty(r,a,m),m};const n=["auto","left","right","top","bottom"];var s;!function(o){let r=class extends(Object(c.b)(p.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(o){const r=o.target;if(r){const o=r.assignedElements({flatten:!0});o.length&&(this.slotContent=o)}}update(o){var r;super.update(o),o.has("show")&&this.show&&(this.setFocusableElements(),(null===(r=this.focusableElements)||void 0===r?void 0:r.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[m.a,d]}coachmarkContentTemplate(){return p.html`
|
|
2
|
+
<div class="md-coachmark__content">
|
|
3
|
+
${this.message?this.message:p.html` <slot name="coachmark-content" @slotchange=${this.handleSlotChange}></slot> `}
|
|
4
|
+
<div class="md-coachmark__action">
|
|
5
|
+
${this.hidebutton?p.html` <slot name="coachmark-action"></slot> `:p.html` <md-button variant="secondary" @button-click=${this.coachAction}>${this.actionname}</md-button> `}
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
`}wrappedCoachmarkContentTemplate(){const o=Object(t.a)("md-theme",this);return"momentumV2"===(null==o?void 0:o.theme)?p.html`
|
|
9
|
+
<md-theme theme="momentumV2" ?darkTheme=${!o.darkTheme}>
|
|
10
|
+
${this.coachmarkContentTemplate()}
|
|
11
|
+
</md-theme>
|
|
12
|
+
`:this.coachmarkContentTemplate()}render(){return p.html`
|
|
13
|
+
<div class="md-coachmark ${Object(l.classMap)(this.coachWrapClassMap)}">
|
|
14
|
+
<div class="md-coachmark__popper ${Object(l.classMap)(this.coachClassMap)}" tabindex="0">
|
|
15
|
+
${this.wrappedCoachmarkContentTemplate()}
|
|
16
|
+
<div id="arrow" class="md-coachmark__arrow" data-popper-arrow></div>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="md-coachmark__reference" @click=${()=>this.notifyCoachCreate()} aria-describedby="coachmark">
|
|
19
|
+
<slot></slot>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
`}};h([Object(p.property)({type:String})],r.prototype,"message",void 0),h([Object(p.property)({type:String})],r.prototype,"actionname",void 0),h([Object(p.property)({type:Boolean})],r.prototype,"hidebutton",void 0),h([Object(p.property)({type:String})],r.prototype,"placement",void 0),h([Object(p.property)({type:Boolean})],r.prototype,"show",void 0),h([Object(p.property)({type:String})],r.prototype,"color",void 0),h([Object(p.query)(".md-coachmark__popper")],r.prototype,"popper",void 0),h([Object(p.query)(".md-coachmark__reference")],r.prototype,"reference",void 0),r=h([Object(e.a)("md-coachmark")],r),o.ELEMENT=r}(s||(s={}))}}]);
|
package/dist/chunks/md-64.js
CHANGED
|
@@ -1,23 +1,47 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[64],{
|
|
2
|
-
<md-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[64],{119:function(t,e,o){"use strict";o.r(e),o.d(e,"CoachmarkPopover",(function(){return r}));o(17),o(14),o(83);var r,n=o(5),a=o(6),i=o(0),c=o(4),p=i.css`.md-coachmark{--coachmark-arrow-border-color:var(--coachmark-default-bg-color)}.md-coachmark md-popover::part(popover){min-width:10.625rem;max-width:18.75rem}.md-coachmark__popper{border-radius:.3125rem;min-width:10.625rem;max-width:18.75rem;width:282px}.md-coachmark__popper .header-container{display:flex;width:100%;gap:.25rem;padding-right:1.75rem;align-items:center}.md-coachmark__popper .header-container.hide-close{margin-right:.75rem}.md-coachmark__popper .header-title{font-family:var(--brand-font-bold);font-size:.875rem;font-weight:var(--brand-font-weight-bold,700);line-height:1.25rem}.md-coachmark__popper .body-container{display:flex}.md-coachmark__popper .md-coachmark__content{font-family:var(--brand-font-regular);font-size:.875rem;font-weight:450;line-height:1.25rem}.md-coachmark__popper .footer-container{display:flex;justify-content:flex-end;flex-direction:row;gap:.5rem;padding-top:.75rem;flex-grow:1}@media(forced-colors:active){.md-coachmark__popper{background-color:Canvas;outline:1px solid CanvasText}.md-coachmark__popper--bottom .md-coachmark__arrow,.md-coachmark__popper--top .md-coachmark__arrow{border-left:.625rem solid Canvas;border-right:.625rem solid Canvas}.md-coachmark__popper--left .md-coachmark__arrow,.md-coachmark__popper--right .md-coachmark__arrow{border-top:.625rem solid Canvas;border-bottom:.625rem solid Canvas}}`,s=function(t,e,o,r){var n,a=arguments.length,i=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,r);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(i=(a<3?n(i):a>3?n(e,o,i):n(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i};!function(t){let e=class extends i.LitElement{constructor(){super(...arguments),this.placement="bottom",this.headerIconName=void 0,this.header=void 0,this.message=void 0,this.show=!1,this.hideCloseButton=!1,this.href="",this.slotContent=null}static get styles(){return[a.a,p]}connectedCallback(){super.connectedCallback()}notifyCustomEvent(t){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:{placement:this.placement,triggerComponent:this.triggerComponent,popper:this.popper}}))}notifyCoachCreate(){this.notifyCustomEvent("coach-create")}notifyPrimaryButtonAction(){this.notifyCustomEvent("primary-button-action")}notifySecondaryButtonAction(){this.notifyCustomEvent("secondary-button-action")}notifyLinkAction(){this.notifyCustomEvent("link-action")}notifyCoachClose(){this.notifyCustomEvent("coachmark-close")}handleSlotChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent=t)}}updated(t){super.updated(t),t.has("show")&&(this.show?this.notifyCoachCreate():this.notifyCoachClose())}coachmarkContentTemplate(){return i.html`
|
|
2
|
+
<div class="md-coachmark__content">
|
|
3
|
+
${this.message?this.message:i.html` <slot name="coachmark-content" @slotchange=${this.handleSlotChange}></slot> `}
|
|
4
|
+
</div>
|
|
5
|
+
`}renderHeader(){return i.html`
|
|
6
|
+
<div class="header-container ${Object(c.classMap)({"hide-close":this.hideCloseButton})}">
|
|
7
|
+
${this.headerIconName?i.html`<md-icon name=${this.headerIconName} size="16" iconSet="momentumDesign"></md-icon>`:""}
|
|
8
|
+
${this.header?i.html`<span class="header-title">${this.header}</span>`:""}
|
|
9
|
+
</div>
|
|
10
|
+
`}renderBody(){return i.html` <div class="body-container">${this.coachmarkContentTemplate()}</div> `}renderFooter(){return i.html`
|
|
11
|
+
<div class="footer-container">
|
|
12
|
+
${this.primaryButton?i.html`<md-button
|
|
13
|
+
variant="inverted-primary"
|
|
14
|
+
size="28"
|
|
15
|
+
@button-click=${()=>this.notifyPrimaryButtonAction()}
|
|
16
|
+
>
|
|
17
|
+
${this.primaryButton}</md-button
|
|
18
|
+
>`:""}
|
|
19
|
+
${this.secondaryButton?i.html`<md-button
|
|
20
|
+
variant="inverted-secondary"
|
|
21
|
+
size="28"
|
|
22
|
+
@button-click=${()=>this.notifySecondaryButtonAction()}
|
|
23
|
+
>
|
|
24
|
+
${this.secondaryButton}</md-button
|
|
25
|
+
>`:""}
|
|
26
|
+
${this.linkText?i.html`<a href=${this.href} @click=${()=>this.notifyLinkAction()} target="_blank" rel="noreferrer">
|
|
27
|
+
${this.linkText}</a
|
|
28
|
+
>`:""}
|
|
29
|
+
</div>
|
|
30
|
+
`}render(){return i.html`
|
|
31
|
+
<md-popover
|
|
32
|
+
class="md-coachmark"
|
|
33
|
+
?is-open=${this.show}
|
|
34
|
+
role="dialog"
|
|
35
|
+
show-arrow
|
|
36
|
+
?show-close=${!this.hideCloseButton}
|
|
37
|
+
interactive
|
|
38
|
+
trigger="manual"
|
|
39
|
+
placement=${this.placement}
|
|
40
|
+
@popover-open-changed="${t=>{t.detail.isOpen||this.notifyCoachClose()}}"
|
|
41
|
+
>
|
|
42
|
+
<slot slot="triggerElement"></slot>
|
|
43
|
+
<div class="md-coachmark__popper" tabindex="-1">
|
|
44
|
+
${this.renderHeader()} ${this.renderBody()} ${this.renderFooter()}
|
|
20
45
|
</div>
|
|
21
|
-
</md-
|
|
22
|
-
|
|
23
|
-
`}};h([Object(s.property)({type:String})],t.prototype,"maxDate",void 0),h([Object(s.property)({type:String})],t.prototype,"minDate",void 0),h([Object(s.property)({type:String})],t.prototype,"weekStart",void 0),h([Object(s.property)({type:String})],t.prototype,"ariaLabel",void 0),h([Object(s.property)({type:Boolean,attribute:"two-digit-auto-tab"})],t.prototype,"twoDigitAutoTab",void 0),h([Object(s.property)({type:Boolean,attribute:"twenty-four-hour-format"})],t.prototype,"twentyFourHourFormat",void 0),h([Object(s.property)({type:String})],t.prototype,"timeSpecificity",void 0),h([Object(s.property)({type:String,attribute:"date-value"})],t.prototype,"dateValue",void 0),h([Object(s.property)({type:String,attribute:"time-value"})],t.prototype,"timeValue",void 0),h([Object(s.property)({type:String,reflect:!0})],t.prototype,"value",void 0),h([Object(s.property)({type:String})],t.prototype,"locale",void 0),h([Object(s.property)({type:Boolean})],t.prototype,"disabled",void 0),h([Object(s.internalProperty)()],t.prototype,"fullDateTime",void 0),h([Object(s.internalProperty)()],t.prototype,"selectedTimeObject",void 0),h([Object(s.internalProperty)()],t.prototype,"selectedDateObject",void 0),h([Object(s.query)("md-datepicker")],t.prototype,"datePicker",void 0),h([Object(s.query)("md-timepicker")],t.prototype,"timePicker",void 0),t=h([Object(o.a)("md-date-time-picker")],t),e.ELEMENT=t}(a||(a={}))}}]);
|
|
46
|
+
</md-popover>
|
|
47
|
+
`}};s([Object(i.property)({type:String})],e.prototype,"placement",void 0),s([Object(i.property)({type:String})],e.prototype,"headerIconName",void 0),s([Object(i.property)({type:String})],e.prototype,"header",void 0),s([Object(i.property)({type:String})],e.prototype,"message",void 0),s([Object(i.property)({type:Boolean})],e.prototype,"show",void 0),s([Object(i.property)({type:Boolean,reflect:!0,attribute:"hide-close-button"})],e.prototype,"hideCloseButton",void 0),s([Object(i.property)({type:String})],e.prototype,"primaryButton",void 0),s([Object(i.property)({type:String})],e.prototype,"secondaryButton",void 0),s([Object(i.property)({type:String})],e.prototype,"linkText",void 0),s([Object(i.property)({type:String})],e.prototype,"href",void 0),s([Object(i.query)(".md-coachmark__trigger-component")],e.prototype,"triggerComponent",void 0),s([Object(i.query)(".md-coachmark__popper")],e.prototype,"popper",void 0),e=s([Object(n.a)("md-coachmark-popover")],e),t.ELEMENT=e}(r||(r={}))}}]);
|
package/dist/chunks/md-65.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[65],{
|
|
2
|
-
<div class="md-
|
|
3
|
-
<slot
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[65],{91:function(t,e,r){"use strict";r.r(e),r.d(e,"CompositeAvatar",(function(){return o}));var o,s=r(6),a=r(5),n=r(0),i=r(4),c=r(39),p=function(t,e,r,o){var s,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var i=t.length-1;i>=0;i--)(s=t[i])&&(n=(a<3?s(n):a>3?s(e,r,n):s(e,r))||n);return a>3&&n&&Object.defineProperty(e,r,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.size=0}static get styles(){return[s.a,c.a]}get avatarClassMap(){return{["md-composite-avatar--"+this.size]:!!this.size}}render(){return n.html`
|
|
2
|
+
<div class="md-composite-avatar ${Object(i.classMap)(this.avatarClassMap)}">
|
|
3
|
+
<slot></slot>
|
|
4
4
|
</div>
|
|
5
|
-
`}};
|
|
5
|
+
`}};p([Object(n.property)({type:Number})],e.prototype,"size",void 0),e=p([Object(a.a)("md-composite-avatar")],e),t.ELEMENT=e}(o||(o={}))}}]);
|
package/dist/chunks/md-66.js
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[66],{
|
|
2
|
-
<div
|
|
3
|
-
class="md-draggable-item ${Object(s.classMap)(this.draggableItemClassMap)}"
|
|
4
|
-
part="draggable-item"
|
|
5
|
-
aria-disabled=${this.disabled}
|
|
6
|
-
>
|
|
7
|
-
${this.extended&&this.editable?a.html` <md-icon name="dragger-vertical-bold" size="16" iconSet="momentumDesign"></md-icon> `:l.nothing}
|
|
8
|
-
<slot></slot>
|
|
9
|
-
${this.extended?a.html` <slot name="extended"></slot> `:l.nothing}
|
|
10
|
-
</div>
|
|
11
|
-
`}};p([Object(a.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",void 0),p([Object(a.property)({type:Boolean,reflect:!0})],t.prototype,"extended",void 0),p([Object(a.property)({type:Boolean,reflect:!0})],t.prototype,"editable",void 0),t=p([Object(i.a)("md-draggable-item")],t),e.ELEMENT=t}(n||(n={}))}}]);
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[66],{96:function(t,e,a){"use strict";a.r(e),a.d(e,"DateRangePicker",(function(){return s}));var s,n=a(5),i=a(0),r=a(15),o=a(44),d=function(t,e,a,s){var n,i=arguments.length,r=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,a,s);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(r=(i<3?n(r):i>3?n(e,a,r):n(e,a))||r);return i>3&&r&&Object.defineProperty(e,a,r),r};!function(t){let e=class extends o.DatePicker.ELEMENT{constructor(){super(...arguments),this.startDate=void 0,this.endDate=void 0,this.updateValue=()=>{this.startDate&&this.endDate&&(this.value=`${this.sqlDateToSlashes(this.startDate)} - ${this.sqlDateToSlashes(this.endDate)}`)},this.handleDateSelection=t=>{const e=t.detail.data;this.startDate?this.endDate?(this.startDate=this.dateToSqlTranslate(e),this.endDate=void 0):e<r.DateTime.fromISO(this.startDate)?(this.endDate=this.startDate,this.startDate=this.dateToSqlTranslate(e)):this.endDate=this.dateToSqlTranslate(e):this.startDate=this.dateToSqlTranslate(e),this.emitDateRange(),this.updateValue()}}connectedCallback(){super.connectedCallback(),super.render(),this.addEventListener("date-selection-change",this.handleDateSelection)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("date-selection-change",this.handleDateSelection)}dateToSqlTranslate(t){return t.toSQLDate()}sqlDateToSlashes(t){return t.replace(/-+/g,"/")}emitDateRange(){if(!this.startDate||!this.endDate)return;const t=new CustomEvent("date-range-change",{detail:{startDate:this.startDate,endDate:this.endDate}});this.dispatchEvent(t)}};d([Object(i.property)({type:String,attribute:"start-date",reflect:!0})],e.prototype,"startDate",void 0),d([Object(i.property)({type:String,attribute:"end-date",reflect:!0})],e.prototype,"endDate",void 0),e=d([Object(n.a)("md-date-range-picker")],e),t.ELEMENT=e}(s||(s={}))}}]);
|