@momentum-ui/web-components 2.14.17 → 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/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 +2 -2
- 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 +1 -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/grabber/Grabber.d.ts +1 -1
- 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/tooltip/Tooltip.d.ts +3 -2
- package/dist/types/index.d.ts +3 -1
- package/package.json +1 -1
package/dist/chunks/md-72.js
CHANGED
|
@@ -1,17 +1,70 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[72],{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[72],{99:function(t,i,e){"use strict";e.r(i),e.d(i,"FloatingModal",(function(){return o}));e(17),e(14);var o,n=e(7),a=e(5),s=e(6),r=(e(48),e(49),e(50),e(25)),l=e.n(r),d=(e(51),e(0)),c=e(2),h=e(3),m=(e(78),e(67)),p=function(t,i,e,o){var n,a=arguments.length,s=a<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,o);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(s=(a<3?n(s):a>3?n(i,e,s):n(i,e))||s);return a>3&&s&&Object.defineProperty(i,e,s),s},b=function(t,i,e,o){return new(e||(e=Promise))((function(n,a){function s(t){try{l(o.next(t))}catch(t){a(t)}}function r(t){try{l(o.throw(t))}catch(t){a(t)}}function l(t){var i;t.done?n(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(s,r)}l((o=o.apply(t,i||[])).next())}))};!function(t){let i=class extends(Object(n.a)(Object(n.e)(d.LitElement))){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.aspectRatio=!1,this.fixed=!1,this.full=!1,this.closeAriaLabel="Close Modal",this.resizeAriaLabel="Resize Modal",this.maximizeScreenLabel="Maximize Modal",this.minimizeAriaLabel="Minimize Modal",this.minimize=!1,this.minimizable=!1,this.containerRect=null,this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.resizeMoveListener=t=>{const{target:i}=t;let e=parseFloat(i.getAttribute("data-x"))||0,o=parseFloat(i.getAttribute("data-y"))||0;i.style.setProperty("width",t.rect.width+"px","important"),i.style.setProperty("height",t.rect.height+"px","important");const{initialX:n,initialY:a}=this.getInitialPosition();e+=t.deltaRect.left+n,o+=t.deltaRect.top+a,this.setTargetPosition(i,e,o),this.applyInitialPosition=!1},this.resizeEndListener=()=>{this.setContainerRect()},this.getInitialPosition=()=>{var t,i;return this.applyInitialPosition&&this.position?{initialX:Number(null===(t=this.position)||void 0===t?void 0:t.x),initialY:Number(null===(i=this.position)||void 0===i?void 0:i.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:i}=t,{x:e,y:o}=this.getTransformValues(t);this.setTargetPosition(i,e,o),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[s.a,m.a]}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("position")&&!t.has("show")&&this.setInitialTargetPosition()}isNewPositionNotSame(){var t,i,e,o;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(i=this.position)||void 0===i?void 0:i.x)||Number(null===(e=this.container)||void 0===e?void 0:e.getAttribute("data-y"))!==(null===(o=this.position)||void 0===o?void 0:o.y)}setInitialTargetPosition(){var t,i;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.position)||void 0===t?void 0:t.x),Number(null===(i=this.position)||void 0===i?void 0:i.y))}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),i=this.container.getAttribute("data-y");return t&&i?(this.dispatchEvent(new CustomEvent("floating-modal-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:i}}})),`translate(${t}px, ${i}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame(()=>b(this,void 0,void 0,(function*(){yield this.updateComplete,this.containerRect=this.container.getBoundingClientRect(),this.dispatchEvent(new CustomEvent("floating-modal-resize",{composed:!0,bubbles:!0,detail:{size:this.containerRect}})),this.containerTransform=this.getContainerTransform()})))}setInteractInstance(){requestAnimationFrame(()=>{this.container&&l()(this.container).resizable({edges:{left:!0,right:!0,bottom:!0,top:!0},listeners:{end:this.resizeEndListener,move:this.resizeMoveListener},modifiers:this.aspectRatio?[l.a.modifiers.aspectRatio({ratio:"preserve",equalDelta:!0,modifiers:[l.a.modifiers.restrictSize({max:"parent"})]})]:void 0}).draggable({autoScroll:!0,allowFrom:this.header,ignoreFrom:this.body,listeners:{move:this.dragMoveListener,end:this.dragEndListener}})})}handleClose(t){this.show=!1,this.full=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleMinimize(){this.minimizable&&(this.dragOccured||(this.minimize=!this.minimize,this.dispatchEvent(new CustomEvent("floating-modal-minimize",{composed:!0,bubbles:!0,detail:{minimize:this.minimize}}))),this.dragOccured=!1)}handleToggleExpandCollapse(){this.full=!this.full}getTransformValues(t){const{target:i,dx:e,dy:o}=t,{initialX:n,initialY:a}=this.getInitialPosition();return{x:(parseFloat(i.getAttribute("data-x"))||0)+e+n,y:(parseFloat(i.getAttribute("data-y"))||0)+o+a}}setTargetPosition(t,i,e){t.style.transform=`translate(${i}px, ${e}px)`,t.setAttribute("data-x",""+i),t.setAttribute("data-y",""+e)}destroyInteractInstance(){this.container&&l.a.isSet(this.container)&&l()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance()}renderedCallback(){this.containerTransform=this.position?`translate(${this.position.x}px, ${this.position.y}px)`:""}render(){return d.html`
|
|
2
|
+
${this.show?d.html`
|
|
3
|
+
<div
|
|
4
|
+
class="md-floating ${this.fixed?"fixed":""} ${this.minimize?"hide":""}"
|
|
5
|
+
part="floating"
|
|
6
|
+
role="dialog"
|
|
7
|
+
aria-label=${Object(h.ifDefined)(this.label||void 0)}
|
|
8
|
+
aria-modal="true"
|
|
9
|
+
style=${Object(h.ifDefined)(this.containerRect?`width: ${this.full?"100% !important":this.containerRect.width+"px !important"};\n height: ${this.full?"100% !important":this.containerRect.height+"px !important"};\n top: ${this.full?"0 !important":""};\n left: ${this.full?"0 !important":""};\n bottom: ${this.full?"0 !important":""};\n right: ${this.full?"0 !important":""};\n ${this.full?"transform: none !important":""};\n ${this.full?"":`transform: ${this.position?`translate(${this.position.x}px, ${this.position.y}px)`:this.containerTransform} !important`};`:void 0)}
|
|
10
|
+
>
|
|
11
|
+
<div class="md-floating__header">
|
|
12
|
+
<div class="md-floating__header-text">
|
|
13
|
+
${this.heading?d.html` ${this.heading} `:d.html`
|
|
14
|
+
${!this.minimize&&this.headerSlot}
|
|
15
|
+
<slot name="header"></slot>
|
|
16
|
+
`}
|
|
17
|
+
</div>
|
|
18
|
+
${this.minimizable?d.html` <md-button
|
|
19
|
+
color="color-none"
|
|
20
|
+
class="md-floating__minimize"
|
|
21
|
+
ariaLabel="${this.minimizeAriaLabel}"
|
|
22
|
+
circle
|
|
23
|
+
@click=${this.handleMinimize}
|
|
24
|
+
>
|
|
25
|
+
<md-icon name="minus-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
26
|
+
</md-button>`:c.nothing}
|
|
27
|
+
${this.minimize?"":d.html` <md-button
|
|
28
|
+
color="color-none"
|
|
29
|
+
class="md-floating__resize"
|
|
30
|
+
ariaLabel="${this.full?this.resizeAriaLabel:this.maximizeScreenLabel}"
|
|
31
|
+
circle
|
|
32
|
+
@click=${this.handleToggleExpandCollapse}
|
|
33
|
+
>
|
|
34
|
+
<md-icon
|
|
35
|
+
name=${this.full?"minimize-bold":"maximize-bold"}
|
|
36
|
+
size="16"
|
|
37
|
+
iconSet="momentumDesign"
|
|
38
|
+
></md-icon>
|
|
39
|
+
</md-button>`}
|
|
40
|
+
|
|
41
|
+
<md-button
|
|
42
|
+
color="color-none"
|
|
43
|
+
class="md-floating__close"
|
|
44
|
+
ariaLabel="${this.closeAriaLabel}"
|
|
45
|
+
circle
|
|
46
|
+
@click=${this.handleClose}
|
|
47
|
+
>
|
|
48
|
+
<md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
49
|
+
</md-button>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="md-floating__body" part="floating-body">
|
|
52
|
+
<slot></slot>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
${this.minimizable?d.html` <div class="md-floating-min-parent" part="minimize-floating" tabindex="-1">
|
|
56
|
+
<md-floating-modal-minimized
|
|
57
|
+
class="float-modal-min"
|
|
58
|
+
part="floating-minimized"
|
|
59
|
+
heading=${this.heading}
|
|
60
|
+
.minimize=${this.minimize}
|
|
61
|
+
.minPosition=${this.minPosition}
|
|
62
|
+
@floating-min-modal-minimize=${()=>this.handleMinimize()}
|
|
63
|
+
@floating-modal-close=${this.handleClose}
|
|
64
|
+
?show=${this.show}
|
|
65
|
+
>
|
|
66
|
+
${this.minimize&&this.headerSlot}
|
|
67
|
+
</md-floating-modal-minimized>
|
|
68
|
+
</div>`:c.nothing}
|
|
69
|
+
`:c.nothing}
|
|
70
|
+
`}};p([Object(d.property)({type:String})],i.prototype,"heading",void 0),p([Object(d.property)({type:String})],i.prototype,"label",void 0),p([Object(d.property)({type:Boolean,reflect:!0})],i.prototype,"show",void 0),p([Object(d.property)({type:Boolean,reflect:!0,attribute:"aspect-ratio"})],i.prototype,"aspectRatio",void 0),p([Object(d.property)({type:Boolean,reflect:!0,attribute:"fixed-strategy"})],i.prototype,"fixed",void 0),p([Object(d.property)({type:Boolean,reflect:!0,attribute:"full-screen"})],i.prototype,"full",void 0),p([Object(d.property)({type:String,attribute:"close-aria-label"})],i.prototype,"closeAriaLabel",void 0),p([Object(d.property)({type:String,attribute:"resize-aria-label"})],i.prototype,"resizeAriaLabel",void 0),p([Object(d.property)({type:String,attribute:"maximize-aria-label"})],i.prototype,"maximizeScreenLabel",void 0),p([Object(d.property)({type:String,attribute:"minimize-aria-label"})],i.prototype,"minimizeAriaLabel",void 0),p([Object(d.property)({type:Boolean,reflect:!0})],i.prototype,"minimize",void 0),p([Object(d.property)({type:Object})],i.prototype,"position",void 0),p([Object(d.property)({type:Object})],i.prototype,"minPosition",void 0),p([Object(d.property)({type:Boolean,reflect:!0})],i.prototype,"minimizable",void 0),p([Object(d.property)({type:Object})],i.prototype,"containerRect",void 0),p([Object(d.internalProperty)()],i.prototype,"dragOccured",void 0),p([Object(d.query)(".md-floating")],i.prototype,"container",void 0),p([Object(d.query)(".md-floating__body")],i.prototype,"body",void 0),p([Object(d.query)(".md-floating__header")],i.prototype,"header",void 0),p([Object(d.query)(".md-floating-min-parent")],i.prototype,"minimizedHeader",void 0),p([Object(d.query)('slot[name="header"]')],i.prototype,"headerSlot",void 0),i=p([Object(a.a)("md-floating-modal")],i),t.ELEMENT=i}(o||(o={}))}}]);
|
package/dist/chunks/md-73.js
CHANGED
|
@@ -1,76 +1,19 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[73],{
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
role=${o}
|
|
21
|
-
>
|
|
22
|
-
<slot name="custom-avatar"> ${e.length>=2?(e=>{const t="display: flex;width: 1.625rem;height: 1.625rem;font-size: .56875rem;line-height: .8125rem;";return i.html`
|
|
23
|
-
<div class="md-composite-avatar md-composite-avatar--wc-override" style=${"position: relative; display: block;\n width: 2.5rem;\n height: 2.5rem;\n font-size: 0.875rem;\n line-height: 1.25rem;"}>
|
|
24
|
-
<md-avatar
|
|
25
|
-
slot="avatar"
|
|
26
|
-
class="md-avatar"
|
|
27
|
-
alt=${e[0].alt||e[0].title}
|
|
28
|
-
src=${Object(m.ifDefined)(e[0].src?e[0].src:void 0)}
|
|
29
|
-
title=${e[0].title}
|
|
30
|
-
size="24"
|
|
31
|
-
style=${t+"position: absolute;left: 0px;top: 0px;"}
|
|
32
|
-
></md-avatar>
|
|
33
|
-
<md-avatar
|
|
34
|
-
slot="avatar"
|
|
35
|
-
class="md-avatar"
|
|
36
|
-
alt=${e[1].alt||e[1].title}
|
|
37
|
-
src=${Object(m.ifDefined)(e[1].src?e[1].src:void 0)}
|
|
38
|
-
title=${e[1].title}
|
|
39
|
-
size="24"
|
|
40
|
-
style=${t+"position: absolute;right: 0px;bottom: 0px;"}
|
|
41
|
-
></md-avatar>
|
|
42
|
-
</div>
|
|
43
|
-
`})(e):i.html` <md-avatar title=${s} label="avatar" src=${l} tabindex="-1"></md-avatar> `} </slot>
|
|
44
|
-
<div class=${"md-alert__content "+(r?"":" md-alert__content--wide")}>
|
|
45
|
-
<div class="md-alert__title" title=${s}>${s}</div>
|
|
46
|
-
<div class="md-alert__status" title=${a}>${a}</div>
|
|
47
|
-
<div class="md-alert__message" title=${t}>${t}</div>
|
|
48
|
-
</div>
|
|
49
|
-
${r?i.html`
|
|
50
|
-
<div class="md-alert__button">
|
|
51
|
-
<md-button
|
|
52
|
-
variant="secondary"
|
|
53
|
-
aria-label=${p}
|
|
54
|
-
circle
|
|
55
|
-
@click=${e=>{this.handleSnooze(e)}}
|
|
56
|
-
.size=${40}
|
|
57
|
-
>
|
|
58
|
-
<md-icon name="alarm-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
59
|
-
</md-button>
|
|
60
|
-
</div>
|
|
61
|
-
`:n.nothing}
|
|
62
|
-
<slot name="custom-action">
|
|
63
|
-
<md-button
|
|
64
|
-
class="md-alert__button"
|
|
65
|
-
variant="ghost"
|
|
66
|
-
ariaLabel=${d}
|
|
67
|
-
circle
|
|
68
|
-
@click=${e=>{this.handleClose(e)}}
|
|
69
|
-
.size=${40}
|
|
70
|
-
>
|
|
71
|
-
<md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
72
|
-
</md-button>
|
|
73
|
-
</slot>
|
|
74
|
-
</div>
|
|
75
|
-
`:n.nothing}
|
|
76
|
-
`}};d([Object(i.property)({type:Array})],t.prototype,"attendees",void 0),d([Object(i.property)({type:String})],t.prototype,"closeAriaLabel",void 0),d([Object(i.property)({attribute:!1})],t.prototype,"onKeyDown",void 0),d([Object(i.property)({attribute:!1})],t.prototype,"onSnooze",void 0),d([Object(i.property)({type:String})],t.prototype,"message",void 0),d([Object(i.property)({type:String})],t.prototype,"snoozeAriaLabel",void 0),d([Object(i.property)({type:String})],t.prototype,"role",void 0),d([Object(i.property)({type:Boolean})],t.prototype,"show",void 0),d([Object(i.property)({type:String})],t.prototype,"src",void 0),d([Object(i.property)({type:String})],t.prototype,"status",void 0),d([Object(i.property)({type:String})],t.prototype,"userStyles",void 0),d([Object(i.property)({type:String})],t.prototype,"title",void 0),t=d([Object(l.a)("md-meeting-alert")],t),e.ELEMENT=t}(p||(p={}))}}]);
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[73],{100:function(t,e,i){"use strict";i.r(e),i.d(e,"Form",(function(){return o}));var o,r=i(7),n=i(0),s=i(3),a=function(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};!function(t){let e=class extends(Object(r.e)(n.LitElement)){constructor(){super(...arguments),this.rel="",this.name="",this.action="",this.label="",this.method="get",this.target="_self",this.enctype="application/x-www-form-urlencoded",this.novalidate=!1,this.charset="UTF-8",this.isvalid=!1,this.token="on",this.allowRedirect=!1,this.autofillname="input-name",this.formElement=[],this.handleSubmit=t=>{t.preventDefault(),this.validated()&&this.submitForm()},this.handleFormSubmit=t=>{this.allowRedirect||t.preventDefault(),this.dispatchEvent(new CustomEvent("form-submitted",{composed:!0,bubbles:!0}))}}get formMethod(){return"GET"===this.method?"get":"POST"===this.method?"post":this.method}isSubmittable(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement}isDisabled(t){return t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")}findSubmittable(t,e){const i=Array.from(t.children);for(const t of i)if(!this.isDisabled(t))if(this.isSubmittable(t)&&e.add(t),t.shadowRoot)this.findSubmittable(t.shadowRoot,e);else if("SLOT"===t.tagName){const i=t.assignedElements();if(i.length){const{parentElement:t}=i[0];t&&this.findSubmittable(t,e)}}else this.findSubmittable(t,e);return[...e]}validated(){return!!this.novalidate||this.isvalid}submitForm(){const{form:t}=this;t.requestSubmit?t.requestSubmit():t.submit()}get submitButton(){return this.querySelector("button[type='submit']")||this.querySelector("input[type='submit']")||this.querySelector("md-button[type='submit']")}disconnectedCallback(){super.disconnectedCallback(),this.cleanupWrappedForms(),this.teardownEvents()}deleteWrappedForm(t){t.removeEventListener("submit",this.handleFormSubmit)}cleanupWrappedForms(){const{formElement:t}=this;if(t.length)for(const e of t)this.deleteWrappedForm(e);this.formElement=[]}createWrappedForm(t){const e=document.createElement("form");e.addEventListener("submit",this.handleFormSubmit);const{parentNode:i}=t;t.autocomplete=this.token,t.id||(t.id=this.autofillname),t.name||(t.name=this.autofillname),i&&(this.formElement.push(e),i.insertBefore(e,t),e.append(t))}teardownEvents(){this.submitButton&&this.submitButton.removeEventListener("click",this.handleSubmit)}setupEvents(){this.submitButton&&this.submitButton.addEventListener("click",this.handleSubmit)}setupSubmittable(){const t=this.findSubmittable(this.form,new Set);if(t.length)for(const e of t)this.createWrappedForm(e)}slottedChanged(){this.setupSubmittable(),this.setupEvents()}render(){return n.html`
|
|
2
|
+
<form
|
|
3
|
+
class="md-form"
|
|
4
|
+
role="form"
|
|
5
|
+
name=${Object(s.ifDefined)(this.name||void 0)}
|
|
6
|
+
rel=${Object(s.ifDefined)(this.rel||void 0)}
|
|
7
|
+
action=${Object(s.ifDefined)(this.action||void 0)}
|
|
8
|
+
accept-charset=${this.charset}
|
|
9
|
+
enctype=${this.enctype}
|
|
10
|
+
aria-label=${Object(s.ifDefined)(this.label||void 0)}
|
|
11
|
+
?novalidate=${this.novalidate}
|
|
12
|
+
method=${this.formMethod}
|
|
13
|
+
target=${this.target}
|
|
14
|
+
part="form"
|
|
15
|
+
@submit=${this.handleFormSubmit}
|
|
16
|
+
>
|
|
17
|
+
<slot></slot>
|
|
18
|
+
</form>
|
|
19
|
+
`}};a([Object(n.property)({type:String})],e.prototype,"rel",void 0),a([Object(n.property)({type:String})],e.prototype,"name",void 0),a([Object(n.property)({type:String})],e.prototype,"action",void 0),a([Object(n.property)({type:String})],e.prototype,"label",void 0),a([Object(n.property)({type:String})],e.prototype,"method",void 0),a([Object(n.property)({type:String})],e.prototype,"target",void 0),a([Object(n.property)({type:String})],e.prototype,"enctype",void 0),a([Object(n.property)({type:Boolean,reflect:!0,attribute:"no-validate"})],e.prototype,"novalidate",void 0),a([Object(n.property)({type:String,reflect:!0,attribute:"accept-charset"})],e.prototype,"charset",void 0),a([Object(n.property)({type:Boolean,reflect:!0,attribute:"is-valid"})],e.prototype,"isvalid",void 0),a([Object(n.property)({type:String,attribute:"autofill-token"})],e.prototype,"token",void 0),a([Object(n.property)({type:Boolean,attribute:"allow-redirect"})],e.prototype,"allowRedirect",void 0),a([Object(n.property)({type:String,attribute:"autofill-name"})],e.prototype,"autofillname",void 0),a([Object(n.query)(".md-form")],e.prototype,"form",void 0),e=a([Object(r.f)("md-form")],e),t.ELEMENT=e}(o||(o={}))}}]);
|
package/dist/chunks/md-74.js
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[74],{
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[74],{124:function(e,r,t){"use strict";t.r(r),t.d(r,"Grabber",(function(){return o}));t(14);var o,a=t(7),i=t(5),b=t(27),d=t(6),n=t(0),l=t(4),s=t(3),c=n.css`:host{align-content:center;align-items:center;display:inline-flex;flex-flow:row nowrap;justify-content:center}.md-grabber__container{align-content:center;align-items:center;display:inline-flex;flex-flow:row nowrap;justify-content:center;overflow:hidden}.md-grabber__container:focus-within{box-shadow:0 0 0 2px var(--md-default-focus-outline-color)}.md-grabber{align-content:center;align-items:center;display:inline-flex;flex-flow:row nowrap;justify-content:center;position:relative;gap:2px;background-color:var(--grabber-bg-color);border-color:var(--grabber-border-color);justify-content:center;align-items:center;cursor:pointer;transition:transform 150ms ease-in-out}.md-grabber.visible{transform:translate3d(0,0,0)}.md-grabber:hover{background-color:var(--grabber-hover-bg-color)}.md-grabber:active{background-color:var(--grabber-pressed-bg-color)}.md-grabber:focus{outline:0}.md-grabber--leading,.md-grabber--trailing{width:var(--grabber-width,20px);height:40px;border-radius:0 var(--grabber-border-radius) var(--grabber-border-radius) 0;border:1px solid var(--grabber-border-color);border-left-width:0}.md-grabber--leading.md-grabber--dragger,.md-grabber--trailing.md-grabber--dragger{cursor:ew-resize}.md-grabber--leading:not(.visible),.md-grabber--trailing:not(.visible){transform:translate3d(-100%,0,0)}.md-grabber--trailing{rotate:180deg}.md-grabber--bottom,.md-grabber--top{width:40px;height:var(--grabber-width,20px);border-radius:0 0 var(--grabber-border-radius) var(--grabber-border-radius);border:1px solid var(--grabber-border-color);border-top-width:0}.md-grabber--bottom.md-grabber--dragger,.md-grabber--top.md-grabber--dragger{cursor:ns-resize}.md-grabber--bottom:not(.visible),.md-grabber--top:not(.visible){transform:translate3d(0,-100%,0)}.md-grabber--bottom{rotate:180deg}.md-grabber md-icon,.md-grabber md-icon::part(icon){color:var(--grabber-text-color);width:fit-content;height:fit-content}.md-grabber--disabled{background-color:rgba(0,0,0,0)}.md-grabber--disabled:active,.md-grabber--disabled:hover{background-color:rgba(0,0,0,0)}.md-grabber--disabled md-icon::part(icon){color:var(--button-disabled-text-color)}@media(forced-colors:active){.md-grabber__container:focus-within{outline:2px solid ButtonText;outline-offset:1px}.md-grabber{background-color:Highlight}.md-grabber:hover{background-color:Highlight}.md-grabber:active{background-color:Highlight}.md-grabber md-icon,.md-grabber md-icon::part(icon){forced-color-adjust:none;color:HighlightText}}`,g=function(e,r,t,o){var a,i=arguments.length,b=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)b=Reflect.decorate(e,r,t,o);else for(var d=e.length-1;d>=0;d--)(a=e[d])&&(b=(i<3?a(b):i>3?a(r,t,b):a(r,t))||b);return i>3&&b&&Object.defineProperty(r,t,b),b};!function(e){let r=class extends(Object(a.a)(n.LitElement)){constructor(){super(...arguments),this.label="Expand",this.checkedLabel="Collapse",this.hovered=!1,this.disabled=!1,this.checked=!1,this.visible=!0,this.focused=!1,this.disableClickToggle=!1,this.alignment="leading",this.dragger=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}static get styles(){return[d.a,c]}toggleGrabber(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("grabber-toggled",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}handleMouseDown(){this.disableClickToggle||this.toggleGrabber()}handleKeyDown(e){this.disableClickToggle||Object(b.a)(e.code)&&(e.preventDefault(),this.toggleGrabber())}handleMouseEnter(){this.hovered=!0,this.dispatchHoverEvent()}handleMouseLeave(){this.hovered=!1,this.dispatchHoverEvent()}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}dispatchHoverEvent(){this.dispatchEvent(new CustomEvent("grabber-hover-changed",{bubbles:!0,composed:!0,detail:{hovered:this.hovered}}))}get collapsed(){return!this.checked}get grabberClassMap(){return{"md-grabber--active":this.checked,"md-grabber--disabled":this.disabled,"md-grabber--dragger":this.dragger,["md-grabber--"+this.alignment]:this.alignment,visible:this.visible||this.focused}}get iconName(){return this.dragger?"list-menu-bold":"leading"===this.alignment||"trailing"===this.alignment?this.checked?"arrow-left-bold":"arrow-right-bold":this.checked?"arrow-up-bold":"arrow-down-bold"}get iconSize(){return this.dragger?"10":"12"}render(){return n.html`
|
|
2
|
+
<div class="md-grabber__container">
|
|
3
|
+
<button
|
|
4
|
+
class="md-grabber ${Object(l.classMap)(this.grabberClassMap)}"
|
|
5
|
+
part="grabber"
|
|
6
|
+
aria-pressed=${this.checked}
|
|
7
|
+
?disabled=${this.disabled}
|
|
8
|
+
tabindex="0"
|
|
9
|
+
aria-label=${Object(s.ifDefined)(this.label.length?this.label:void 0)}
|
|
10
|
+
type="button"
|
|
11
|
+
role="button"
|
|
12
|
+
@click="${()=>this.handleMouseDown()}"
|
|
13
|
+
@keydown="${e=>this.handleKeyDown(e)}"
|
|
14
|
+
@mouseenter="${()=>this.handleMouseEnter()}"
|
|
15
|
+
@mouseleave="${()=>this.handleMouseLeave()}"
|
|
16
|
+
@focus="${()=>this.handleFocus()}"
|
|
17
|
+
@blur="${()=>this.handleBlur()}"
|
|
18
|
+
>
|
|
19
|
+
<md-icon name="${this.iconName}" size="${this.iconSize}" iconSet="momentumDesign"></md-icon>
|
|
20
|
+
</button>
|
|
21
|
+
</div>
|
|
22
|
+
`}};g([Object(n.property)({type:String})],r.prototype,"label",void 0),g([Object(n.property)({type:String})],r.prototype,"checkedLabel",void 0),g([Object(n.property)({type:Boolean})],r.prototype,"hovered",void 0),g([Object(n.property)({type:Boolean})],r.prototype,"disabled",void 0),g([Object(n.property)({type:Boolean})],r.prototype,"checked",void 0),g([Object(n.property)({type:Boolean})],r.prototype,"visible",void 0),g([Object(n.property)({type:Boolean})],r.prototype,"focused",void 0),g([Object(n.property)({type:Boolean,attribute:"disable-click-toggle"})],r.prototype,"disableClickToggle",void 0),g([Object(n.property)({type:String,reflect:!0})],r.prototype,"alignment",void 0),g([Object(n.property)({type:Boolean})],r.prototype,"dragger",void 0),r=g([Object(i.a)("md-grabber")],r),e.ELEMENT=r}(o||(o={}))}}]);
|
package/dist/chunks/md-75.js
CHANGED
|
@@ -1,72 +1,17 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[75],{122:function(d,e,m){"use strict";m.r(e),m.d(e,"modalType",(function(){return f})),m.d(e,"Modal",(function(){return p}));m(17),m(15);var o=m(1),a=m(7),l=m(6),t=m(5),i=m(0),n=m(2),r=m(4),s=m(3),h=i.css`.md-modal{color:var(--md-primary-text-color,#121212);display:block;height:100vh;left:0;margin:0 auto;position:fixed;right:0;visibility:visible;width:100vw;width:100vw;max-height:none;top:auto}.md-modal .md-modal__content{height:auto;min-height:0;max-height:none}.md-modal .md-modal__content{border-radius:var(--modal-main-radius,.5rem)}.md-modal .md-modal__title{color:var(--md-primary-text-color,#707070)}.md-modal:focus{box-shadow:none}.md-modal__header{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center;font-family:var(--brand-font-bold, "CiscoSansTT Bold", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:1rem;line-height:1.5rem;width:100%;flex-shrink:0;padding-bottom:1rem;padding-left:calc(1rem/2);padding-right:calc(1rem/2)}.md-modal__header h2{font-size:inherit;font-weight:inherit;line-height:inherit;margin:0}.md-modal__header .md-modal__title{overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;width:100%}.md-modal__header .md-modal__message{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center;font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:.875rem;line-height:1.5rem;width:100%;color:var(--modal-main-text-color,#545454);flex-flow:row wrap;text-align:center}.md-modal__header .md-modal__close{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;border:0;position:absolute}.md-modal__content{background-color:var(--modal-main-bg-color,#fff);box-shadow:0 8px 16px 0 rgba(0,0,0,.16);border:1px solid var(--modal-main-border-color,#dedede);display:flex;flex-direction:column}.md-modal__flex-container{display:flex;flex:1 1 0%;flex-direction:column;max-height:inherit;min-height:inherit;padding:var(--modal-main-padding,1.5rem 1rem);width:100%}.md-modal__body{align-items:stretch;align-self:stretch;background:var(--modal-main-bg-color,#fff);display:flex;flex:1 1 auto;flex-direction:column;margin:0;overflow-x:hidden;overflow-y:auto;padding-left:calc(1rem/2);padding-right:calc(1rem/2)}.md-modal__body--padding{padding:0 2rem}.md-modal__footer{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:flex-end;flex-shrink:0;padding-left:calc(1rem/2);padding-right:calc(1rem/2);padding-top:1rem;width:100%}.md-modal__footer md-button:not(:first-of-type){margin-left:.75rem}.md-modal__footer ::slotted(md-button){margin-left:.75rem}.md-modal.md-modal--full{width:100vw;max-height:none;top:auto}.md-modal.md-modal--full .md-modal__content{height:100vh;min-height:0;max-height:none}.md-modal.md-modal--full .md-modal__content{border-radius:0}.md-modal.md-modal--full .md-modal__header{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center;font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:2.25rem;line-height:3rem;width:100%}.md-modal.md-modal--full .md-modal__header .md-modal__message{font-size:1.25rem;line-height:2rem;padding-top:1.25rem}.md-modal.md-modal--full .md-modal__header .md-modal__close{height:1.25rem;right:1.5rem;top:auto;width:1.25rem}.md-modal.md-modal--full .md-modal__header .md-modal__close::before{font-size:1.25rem}.md-modal.md-modal--full .md-modal__footer{padding-bottom:1.5rem;padding-top:1.5rem}.md-modal.md-modal--large{width:60rem;max-height:none;top:auto}.md-modal.md-modal--large .md-modal__content{min-height:45rem;max-height:none}.md-modal.md-modal--large .md-modal__content{border-radius:var(--modal-main-radius,.5rem)}.md-modal.md-modal--large .md-modal__header{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center;font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:1.625rem;line-height:2rem;width:100%}.md-modal.md-modal--large .md-modal__header .md-modal__message{font-size:1rem;line-height:1.5rem;text-align:left}.md-modal.md-modal--large .md-modal__header .md-modal__close{height:1rem;right:1rem;top:auto;width:1rem}.md-modal.md-modal--large .md-modal__header .md-modal__close::before{font-size:1rem}@media only screen and (min-width:40.0625em)and (max-width:64em){.md-modal.md-modal--large{width:40rem;max-height:none;top:auto}.md-modal.md-modal--large .md-modal__content{min-height:30rem;max-height:none}.md-modal.md-modal--large .md-modal__header{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center;font-family:var(--brand-font-bold, "CiscoSansTT Bold", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:1rem;line-height:1.5rem;width:100%}.md-modal.md-modal--large .md-modal__header .md-modal__message{font-size:.875rem;line-height:1.5rem;text-align:center}.md-modal.md-modal--large .md-modal__header .md-modal__close{height:.875rem;right:.75rem;top:auto;width:.875rem}.md-modal.md-modal--large .md-modal__header .md-modal__close::before{font-size:.875rem}}@media only screen and (max-height:50em){.md-modal.md-modal--large .md-modal__content{min-height:auto}}.md-modal.md-modal--default,.md-modal.md-modal--medium{width:40rem;max-height:none;top:auto}.md-modal.md-modal--default .md-modal__content,.md-modal.md-modal--medium .md-modal__content{min-height:30rem;max-height:none}.md-modal.md-modal--default .md-modal__close,.md-modal.md-modal--medium .md-modal__close{height:.875rem;right:.75rem;top:auto;width:.875rem}.md-modal.md-modal--default .md-modal__close::before,.md-modal.md-modal--medium .md-modal__close::before{font-size:.875rem}@media only screen and (min-width:40.0625em)and (max-width:64em){.md-modal.md-modal--default,.md-modal.md-modal--medium{width:40rem;max-height:none;top:auto}.md-modal.md-modal--default .md-modal__content,.md-modal.md-modal--medium .md-modal__content{min-height:30rem;max-height:none}}@media only screen and (max-height:50em){.md-modal.md-modal--default .md-modal__content,.md-modal.md-modal--medium .md-modal__content{min-height:auto}}.md-modal.md-modal--small{width:27.5rem;max-height:none;top:auto}.md-modal.md-modal--small .md-modal__content{min-height:23.75rem;max-height:none}.md-modal.md-modal--small .md-modal__close{height:.875rem;right:.75rem;top:auto;width:.875rem}.md-modal.md-modal--small .md-modal__close::before{font-size:.875rem}@media only screen and (min-width:40.0625em)and (max-width:64em){.md-modal.md-modal--small{width:27.5rem;max-height:none;top:auto}.md-modal.md-modal--small .md-modal__content{min-height:23.75rem;max-height:none}}.md-modal.md-modal--dialog{width:27.5rem;max-height:none;top:auto}.md-modal.md-modal--dialog .md-modal__content{height:auto;min-height:0;max-height:none}.md-modal.md-modal--dialog .md-modal__content{border-radius:var(--modal-main-radius,.5rem)}.md-modal.md-modal--dialog .md-modal__close{height:.875rem;right:.75rem;top:auto;width:.875rem}.md-modal.md-modal--dialog .md-modal__close::before{font-size:.875rem}.md-modal.md-modal--dialog .md-modal__content{flex-direction:row}.md-modal.md-modal--dialog .md-modal__content .md-modal__header{align-items:flex-start;padding:0 0 .75rem 0}.md-modal.md-modal--dialog .md-modal__content .md-modal__title{font-family:var(--brand-font-bold, "CiscoSansTT Bold", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:16px;line-height:1.5rem}.md-modal.md-modal--dialog .md-modal__content .md-modal__body{margin-bottom:1.5rem;text-align:left}.md-modal.md-modal--dialog .md-modal__content .md-modal__body>*{font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:14px;line-height:1.375rem}.md-modal.md-modal--dialog .md-modal__content .md-modal__footer{display:flex;justify-content:flex-end;padding:0}.md-modal.md-modal--default,.md-modal.md-modal--dialog,.md-modal.md-modal--full,.md-modal.md-modal--large,.md-modal.md-modal--medium,.md-modal.md-modal--small{display:flex;flex-direction:column;justify-content:center}@media only screen and (max-width:40em){.md-modal.md-modal--default.md-modal--dialog .md-modal__flex-container,.md-modal.md-modal--dialog.md-modal--dialog .md-modal__flex-container,.md-modal.md-modal--full.md-modal--dialog .md-modal__flex-container,.md-modal.md-modal--large.md-modal--dialog .md-modal__flex-container,.md-modal.md-modal--medium.md-modal--dialog .md-modal__flex-container,.md-modal.md-modal--small.md-modal--dialog .md-modal__flex-container{min-height:calc(100vh - 1.5rem*2)}}@media only screen and (max-width:40em){.md-modal.md-modal--default,.md-modal.md-modal--dialog,.md-modal.md-modal--full,.md-modal.md-modal--large,.md-modal.md-modal--medium,.md-modal.md-modal--small{width:100vw;max-height:none;top:auto}.md-modal.md-modal--default .md-modal__content,.md-modal.md-modal--dialog .md-modal__content,.md-modal.md-modal--full .md-modal__content,.md-modal.md-modal--large .md-modal__content,.md-modal.md-modal--medium .md-modal__content,.md-modal.md-modal--small .md-modal__content{height:100vh;min-height:0;max-height:none}.md-modal.md-modal--default .md-modal__content,.md-modal.md-modal--dialog .md-modal__content,.md-modal.md-modal--full .md-modal__content,.md-modal.md-modal--large .md-modal__content,.md-modal.md-modal--medium .md-modal__content,.md-modal.md-modal--small .md-modal__content{border-radius:0}.md-modal.md-modal--default .md-modal__flex-container,.md-modal.md-modal--dialog .md-modal__flex-container,.md-modal.md-modal--full .md-modal__flex-container,.md-modal.md-modal--large .md-modal__flex-container,.md-modal.md-modal--medium .md-modal__flex-container,.md-modal.md-modal--small .md-modal__flex-container{min-height:100vh}.md-modal.md-modal--default .md-modal__header,.md-modal.md-modal--dialog .md-modal__header,.md-modal.md-modal--full .md-modal__header,.md-modal.md-modal--large .md-modal__header,.md-modal.md-modal--medium .md-modal__header,.md-modal.md-modal--small .md-modal__header{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center;font-family:var(--brand-font-bold, "CiscoSansTT Bold", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:.875rem;line-height:1.5rem;width:100%}.md-modal.md-modal--default .md-modal__header .md-modal__message,.md-modal.md-modal--dialog .md-modal__header .md-modal__message,.md-modal.md-modal--full .md-modal__header .md-modal__message,.md-modal.md-modal--large .md-modal__header .md-modal__message,.md-modal.md-modal--medium .md-modal__header .md-modal__message,.md-modal.md-modal--small .md-modal__header .md-modal__message{font-size:.875rem;line-height:1.5rem;padding-top:.75rem}.md-modal.md-modal--default .md-modal__header .md-modal__close,.md-modal.md-modal--dialog .md-modal__header .md-modal__close,.md-modal.md-modal--full .md-modal__header .md-modal__close,.md-modal.md-modal--large .md-modal__header .md-modal__close,.md-modal.md-modal--medium .md-modal__header .md-modal__close,.md-modal.md-modal--small .md-modal__header .md-modal__close{height:.875rem;right:.75rem;top:auto;width:.875rem}.md-modal.md-modal--default .md-modal__header .md-modal__close::before,.md-modal.md-modal--dialog .md-modal__header .md-modal__close::before,.md-modal.md-modal--full .md-modal__header .md-modal__close::before,.md-modal.md-modal--large .md-modal__header .md-modal__close::before,.md-modal.md-modal--medium .md-modal__header .md-modal__close::before,.md-modal.md-modal--small .md-modal__header .md-modal__close::before{font-size:.875rem}.md-modal.md-modal--default .md-modal__footer,.md-modal.md-modal--dialog .md-modal__footer,.md-modal.md-modal--full .md-modal__footer,.md-modal.md-modal--large .md-modal__footer,.md-modal.md-modal--medium .md-modal__footer,.md-modal.md-modal--small .md-modal__footer{padding:var(--modal-main-padding,1.5rem 1rem);padding-right:1.5rem}.md-modal.md-modal--default .md-modal__footer md-button:not(:first-of-type),.md-modal.md-modal--dialog .md-modal__footer md-button:not(:first-of-type),.md-modal.md-modal--full .md-modal__footer md-button:not(:first-of-type),.md-modal.md-modal--large .md-modal__footer md-button:not(:first-of-type),.md-modal.md-modal--medium .md-modal__footer md-button:not(:first-of-type),.md-modal.md-modal--small .md-modal__footer md-button:not(:first-of-type){margin-left:1rem}}.md-modal__backdrop{background:rgba(0,0,0,.45);bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:1040}.md-modal__backdrop .md-modal_overlay{bottom:0;position:absolute;top:0;width:100%}.md-close{color:#545454;float:right;font-size:21px;font-weight:700;line-height:1;text-shadow:0 1px 0 #fff}.md-close:focus,.md-close:hover{color:#064157;cursor:pointer;text-decoration:none}.md-close{background:rgba(0,0,0,0);border-radius:0;cursor:pointer;font-weight:400;min-width:initial;padding:0}.md-close::before{font-family:momentum-ui-icons;vertical-align:middle}.md-close:hover{color:#005e7d}.fade{opacity:0;transition:opacity .15s linear}.fade.in{opacity:1}`,c=function(d,e,m,o){var a,l=arguments.length,t=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,m):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)t=Reflect.decorate(d,e,m,o);else for(var i=d.length-1;i>=0;i--)(a=d[i])&&(t=(l<3?a(t):l>3?a(e,m,t):a(e,m))||t);return l>3&&t&&Object.defineProperty(e,m,t),t},_=function(d,e,m,o){return new(m||(m=Promise))((function(a,l){function t(d){try{n(o.next(d))}catch(d){l(d)}}function i(d){try{n(o.throw(d))}catch(d){l(d)}}function n(d){var e;d.done?a(d.value):(e=d.value,e instanceof m?e:new m((function(d){d(e)}))).then(t,i)}n((o=o.apply(d,e||[])).next())}))};const f=["default","full","large","small","dialog"];var p;!function(d){let e=class extends(Object(a.b)(i.LitElement)){constructor(){super(...arguments),this.show=!1,this.headerLabel="",this.headerMessage="",this.htmlId="",this.ariaLabel="modal",this.ariaLabelClose="Close Modal",this.ariaLabelCancel="Cancel Modal",this.ariaLabelSubmit="Submit Modal",this.ariaDescription="",this.showCloseButton=!1,this.backdropClickExit=!1,this.noExitOnEsc=!1,this.size="default",this.closeBtnName="",this.hideFooter=!1,this.hideHeader=!1,this.disableInitialFocus=!1,this.animating=!1,this.handleCloseOutside=d=>{d.code===o.b.Escape&&(d.preventDefault(),this.show&&!this.noExitOnEsc&&(this.show=!1))}}static get styles(){return[t.a,h]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleCloseOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleCloseOutside)}update(d){super.update(d),d.has("show")&&(this.show?this.modalFadeIn():!0===d.get("show")&&this.modalFadeOut())}notifyModalClose(){this.dispatchEvent(new CustomEvent("close-modal",{composed:!0,bubbles:!0}))}focusInsideModal(){var d;(null===(d=this.focusableElements)||void 0===d?void 0:d.length)&&this.setInitialFocus()}handleKeyDown(d){d.code!==o.b.Enter&&d.code!==o.b.Space||this.show&&(this.show=!0)}transitionPromise(d){return new Promise(e=>{const m=()=>{d.removeEventListener("transitionend",m),this.activateFocusTrap(),this.setFocusableElements(),requestAnimationFrame(()=>{e()})},o=()=>{d.removeEventListener("transitioncancel",o),this.deactivateFocusTrap(),this.modalFadeOut(),e()};d.addEventListener("transitionend",m),d.addEventListener("transitioncancel",o),setTimeout(()=>{this.animating=!0},13)})}modalFadeIn(){return _(this,void 0,void 0,(function*(){this.backDrop&&(yield this.transitionPromise(this.backDrop),this.disableInitialFocus||this.focusInsideModal())}))}modalFadeOut(){this.animating=!1,this.deactivateFocusTrap(),this.notifyModalClose()}handleCloseBackdrop(){this.backdropClickExit&&(this.show=!1)}hideModal(){this.animating=!1,this.show=!1}topCloseBtnTemplate(){return i.html`
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
`:i.html`
|
|
19
|
-
<div id="modal_header" part="modal-header" class="md-modal__header">
|
|
20
|
-
<h2 class="md-modal__title">${this.headerLabel}</h2>
|
|
21
|
-
${this.headerMessage?i.html` <span class="md-modal__message">${this.headerMessage}</span> `:n.nothing}
|
|
22
|
-
${this.topCloseBtnTemplate()}
|
|
23
|
-
</div>
|
|
24
|
-
`}footerTemplate(){return this.hideFooter?i.html`
|
|
25
|
-
<div part="modal-footer" class="md-modal__footer">
|
|
26
|
-
<slot name="footer"></slot>
|
|
27
|
-
</div>
|
|
28
|
-
`:i.html`
|
|
29
|
-
<div part="modal-footer" class="md-modal__footer">
|
|
30
|
-
<md-button
|
|
31
|
-
aria-label=${this.ariaLabelCancel}
|
|
32
|
-
@click="${this.handleFooterClick}"
|
|
33
|
-
@keydown="${this.handleKeyDown}"
|
|
34
|
-
>
|
|
35
|
-
<span>Cancel</span>
|
|
36
|
-
</md-button>
|
|
37
|
-
<md-button
|
|
38
|
-
type="submit"
|
|
39
|
-
variant="primary"
|
|
40
|
-
aria-label=${this.ariaLabelSubmit}
|
|
41
|
-
@click="${this.handleFooterClick}"
|
|
42
|
-
@keydown="${this.handleKeyDown}"
|
|
43
|
-
>
|
|
44
|
-
<span>${this.closeBtnName}</span>
|
|
45
|
-
</md-button>
|
|
46
|
-
</div>
|
|
47
|
-
`}get modalBackDropClassMap(){return{in:this.show&&this.animating}}get modalContainerClassMap(){return{in:this.show,["md-modal--"+this.size]:!!this.size}}render(){return i.html`
|
|
48
|
-
${this.show?i.html`
|
|
49
|
-
<div part="modal-backdrop" class="md-modal__backdrop fade ${Object(r.classMap)(this.modalBackDropClassMap)}">
|
|
50
|
-
${this.backdropClickExit?i.html` <div class="md-modal_overlay" @click="${this.handleCloseBackdrop}"></div> `:n.nothing}
|
|
51
|
-
|
|
52
|
-
<div
|
|
53
|
-
part="modal-container"
|
|
54
|
-
role="dialog"
|
|
55
|
-
id="${this.htmlId}"
|
|
56
|
-
class="md-modal ${Object(r.classMap)(this.modalContainerClassMap)}"
|
|
57
|
-
aria-label="${Object(s.ifDefined)(this.headerLabel||this.ariaLabel||void 0)}"
|
|
58
|
-
aria-describedby=${Object(s.ifDefined)(this.ariaDescription||void 0)}
|
|
59
|
-
>
|
|
60
|
-
<div part="modal-content" class="md-modal__content">
|
|
61
|
-
<div class="md-modal__flex-container" part="modal-flex-container">
|
|
62
|
-
${this.headerTemplate()}
|
|
63
|
-
<div id="modal-body" part="modal-body" class="md-modal__body">
|
|
64
|
-
<slot></slot>
|
|
65
|
-
</div>
|
|
66
|
-
${this.footerTemplate()}
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
`:n.nothing}
|
|
72
|
-
`}};c([Object(i.property)({type:Boolean})],e.prototype,"show",void 0),c([Object(i.property)({type:String})],e.prototype,"headerLabel",void 0),c([Object(i.property)({type:String})],e.prototype,"headerMessage",void 0),c([Object(i.property)({type:String})],e.prototype,"htmlId",void 0),c([Object(i.property)({type:String,attribute:"aria-label"})],e.prototype,"ariaLabel",void 0),c([Object(i.property)({type:String})],e.prototype,"ariaLabelClose",void 0),c([Object(i.property)({type:String})],e.prototype,"ariaLabelCancel",void 0),c([Object(i.property)({type:String})],e.prototype,"ariaLabelSubmit",void 0),c([Object(i.property)({type:String})],e.prototype,"ariaDescription",void 0),c([Object(i.property)({type:Boolean})],e.prototype,"showCloseButton",void 0),c([Object(i.property)({type:Boolean})],e.prototype,"backdropClickExit",void 0),c([Object(i.property)({type:Boolean})],e.prototype,"noExitOnEsc",void 0),c([Object(i.property)({type:String})],e.prototype,"size",void 0),c([Object(i.property)({type:String})],e.prototype,"closeBtnName",void 0),c([Object(i.property)({type:Boolean})],e.prototype,"hideFooter",void 0),c([Object(i.property)({type:Boolean})],e.prototype,"hideHeader",void 0),c([Object(i.property)({type:Boolean})],e.prototype,"disableInitialFocus",void 0),c([Object(i.internalProperty)()],e.prototype,"animating",void 0),c([Object(i.query)(".md-modal__backdrop")],e.prototype,"backDrop",void 0),e=c([Object(l.a)("md-modal")],e),d.ELEMENT=e}(p||(p={}))}}]);
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[75],{125:function(s,e,t){"use strict";t.r(e),t.d(e,"InputFile",(function(){return a}));t(17);var a,i=t(7),r=t(6),l=t(28),n=t.n(l),o=t(0),j=t(2),c=t(3),p=o.css`:host(md-input-file) md-button{margin:.25rem}:host(md-input-file) input[type=file]{display:none}`,u=function(s,e,t,a){var i,r=arguments.length,l=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(s,e,t,a);else for(var n=s.length-1;n>=0;n--)(i=s[n])&&(l=(r<3?i(l):r>3?i(e,t,l):i(e,t))||l);return r>3&&l&&Object.defineProperty(e,t,l),l},m=function(s,e,t,a){return new(t||(t=Promise))((function(i,r){function l(s){try{o(a.next(s))}catch(s){r(s)}}function n(s){try{o(a.throw(s))}catch(s){r(s)}}function o(s){var e;s.done?i(s.value):(e=s.value,e instanceof t?e:new t((function(s){s(e)}))).then(l,n)}o((a=a.apply(s,e||[])).next())}))};!function(s){let e=class extends o.LitElement{constructor(){super(...arguments),this.acceptLanguage="javascript",this.getLocalization="Input File",this.acceptTypes="",this.fileName=""}static get styles(){return[r.a,p]}triggerFileLoad(s){s.preventDefault(),this.input.click()}handleFile(s){return m(this,void 0,void 0,(function*(){s.preventDefault();const e=this.input.files;if(e&&0!==e.length)for(const s of e){this.fileName=s.name;try{yield this.readFile(s)}catch(s){console.error("Error reading file",s)}}}))}readFile(s){return new Promise((e,t)=>{const a=new FileReader;a.onload=s=>{e(s.target.result)},a.onerror=s=>t(s),a.readAsText(s)})}importLanguage(s){return m(this,void 0,void 0,(function*(){try{const{default:e}=yield t(94)("./"+s);n.a.registerLanguage(""+s,e),this.setAcceptTypes()}catch(s){console.warn("Please set correct language name")}}))}getAllAcceptTypes(){const s=n.a.listLanguages();return s.length?s.map(s=>n.a.getLanguage(""+s).aliases).map(s=>s.map(s=>"."+s)).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(s){super.updated(s),s.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage)}render(){return o.html`
|
|
2
|
+
<div class="md-input-file">
|
|
3
|
+
<label for="file-input">
|
|
4
|
+
<md-button color="blue" class="md-input-file-btn" @click=${this.triggerFileLoad}>
|
|
5
|
+
${this.getLocalization.trim()}
|
|
6
|
+
</md-button>
|
|
7
|
+
${this.fileName.length?this.fileName:j.nothing}
|
|
8
|
+
</label>
|
|
9
|
+
<input
|
|
10
|
+
type="file"
|
|
11
|
+
id="file-input"
|
|
12
|
+
name="file-input"
|
|
13
|
+
accept=${Object(c.ifDefined)(this.acceptTypes||void 0)}
|
|
14
|
+
@change=${s=>this.handleFile(s)}
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
17
|
+
`}};u([Object(o.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),u([Object(o.property)({type:String})],e.prototype,"getLocalization",void 0),u([Object(o.query)("input[type='file']")],e.prototype,"input",void 0),u([Object(o.internalProperty)()],e.prototype,"acceptTypes",void 0),u([Object(o.internalProperty)()],e.prototype,"fileName",void 0),e=u([Object(i.f)("md-input-file")],e),s.ELEMENT=e}(a||(a={}))},94:function(s,e,t){var a={"./1c":[135,92],"./1c.js":[135,92],"./abnf":[136,93],"./abnf.js":[136,93],"./accesslog":[137,94],"./accesslog.js":[137,94],"./actionscript":[138,95],"./actionscript.js":[138,95],"./ada":[139,96],"./ada.js":[139,96],"./angelscript":[140,97],"./angelscript.js":[140,97],"./apache":[141,98],"./apache.js":[141,98],"./applescript":[142,99],"./applescript.js":[142,99],"./arcade":[143,100],"./arcade.js":[143,100],"./arduino":[144,101],"./arduino.js":[144,101],"./armasm":[145,102],"./armasm.js":[145,102],"./asciidoc":[146,103],"./asciidoc.js":[146,103],"./aspectj":[147,104],"./aspectj.js":[147,104],"./autohotkey":[148,105],"./autohotkey.js":[148,105],"./autoit":[149,106],"./autoit.js":[149,106],"./avrasm":[150,107],"./avrasm.js":[150,107],"./awk":[151,108],"./awk.js":[151,108],"./axapta":[152,109],"./axapta.js":[152,109],"./bash":[153,110],"./bash.js":[153,110],"./basic":[154,111],"./basic.js":[154,111],"./bnf":[155,112],"./bnf.js":[155,112],"./brainfuck":[156,113],"./brainfuck.js":[156,113],"./c":[158,115],"./c-like":[157,114],"./c-like.js":[157,114],"./c.js":[158,115],"./cal":[159,116],"./cal.js":[159,116],"./capnproto":[160,117],"./capnproto.js":[160,117],"./ceylon":[161,118],"./ceylon.js":[161,118],"./clean":[162,119],"./clean.js":[162,119],"./clojure":[164,121],"./clojure-repl":[163,120],"./clojure-repl.js":[163,120],"./clojure.js":[164,121],"./cmake":[165,122],"./cmake.js":[165,122],"./coffeescript":[166,123],"./coffeescript.js":[166,123],"./coq":[167,124],"./coq.js":[167,124],"./cos":[168,125],"./cos.js":[168,125],"./cpp":[169,126],"./cpp.js":[169,126],"./crmsh":[170,127],"./crmsh.js":[170,127],"./crystal":[171,128],"./crystal.js":[171,128],"./csharp":[172,129],"./csharp.js":[172,129],"./csp":[173,130],"./csp.js":[173,130],"./css":[174,131],"./css.js":[174,131],"./d":[175,132],"./d.js":[175,132],"./dart":[176,133],"./dart.js":[176,133],"./delphi":[177,134],"./delphi.js":[177,134],"./diff":[178,135],"./diff.js":[178,135],"./django":[179,136],"./django.js":[179,136],"./dns":[180,137],"./dns.js":[180,137],"./dockerfile":[181,138],"./dockerfile.js":[181,138],"./dos":[182,139],"./dos.js":[182,139],"./dsconfig":[183,140],"./dsconfig.js":[183,140],"./dts":[184,141],"./dts.js":[184,141],"./dust":[185,142],"./dust.js":[185,142],"./ebnf":[186,143],"./ebnf.js":[186,143],"./elixir":[187,144],"./elixir.js":[187,144],"./elm":[188,145],"./elm.js":[188,145],"./erb":[189,146],"./erb.js":[189,146],"./erlang":[191,148],"./erlang-repl":[190,147],"./erlang-repl.js":[190,147],"./erlang.js":[191,148],"./excel":[192,149],"./excel.js":[192,149],"./fix":[193,150],"./fix.js":[193,150],"./flix":[194,151],"./flix.js":[194,151],"./fortran":[195,152],"./fortran.js":[195,152],"./fsharp":[196,153],"./fsharp.js":[196,153],"./gams":[197,154],"./gams.js":[197,154],"./gauss":[198,155],"./gauss.js":[198,155],"./gcode":[199,156],"./gcode.js":[199,156],"./gherkin":[200,157],"./gherkin.js":[200,157],"./glsl":[201,158],"./glsl.js":[201,158],"./gml":[202,159],"./gml.js":[202,159],"./go":[203,160],"./go.js":[203,160],"./golo":[204,161],"./golo.js":[204,161],"./gradle":[205,162],"./gradle.js":[205,162],"./groovy":[206,163],"./groovy.js":[206,163],"./haml":[207,164],"./haml.js":[207,164],"./handlebars":[208,165],"./handlebars.js":[208,165],"./haskell":[209,166],"./haskell.js":[209,166],"./haxe":[210,167],"./haxe.js":[210,167],"./hsp":[211,168],"./hsp.js":[211,168],"./htmlbars":[212,169],"./htmlbars.js":[212,169],"./http":[213,170],"./http.js":[213,170],"./hy":[214,171],"./hy.js":[214,171],"./inform7":[215,172],"./inform7.js":[215,172],"./ini":[216,173],"./ini.js":[216,173],"./irpf90":[217,174],"./irpf90.js":[217,174],"./isbl":[218,175],"./isbl.js":[218,175],"./java":[219,176],"./java.js":[219,176],"./javascript":[220,177],"./javascript.js":[220,177],"./jboss-cli":[221,178],"./jboss-cli.js":[221,178],"./json":[222,179],"./json.js":[222,179],"./julia":[224,181],"./julia-repl":[223,180],"./julia-repl.js":[223,180],"./julia.js":[224,181],"./kotlin":[225,182],"./kotlin.js":[225,182],"./lasso":[226,183],"./lasso.js":[226,183],"./latex":[227,184],"./latex.js":[227,184],"./ldif":[228,185],"./ldif.js":[228,185],"./leaf":[229,186],"./leaf.js":[229,186],"./less":[230,187],"./less.js":[230,187],"./lisp":[231,188],"./lisp.js":[231,188],"./livecodeserver":[232,189],"./livecodeserver.js":[232,189],"./livescript":[233,190],"./livescript.js":[233,190],"./llvm":[234,191],"./llvm.js":[234,191],"./lsl":[235,192],"./lsl.js":[235,192],"./lua":[236,193],"./lua.js":[236,193],"./makefile":[237,194],"./makefile.js":[237,194],"./markdown":[238,195],"./markdown.js":[238,195],"./mathematica":[239,196],"./mathematica.js":[239,196],"./matlab":[240,197],"./matlab.js":[240,197],"./maxima":[241,198],"./maxima.js":[241,198],"./mel":[242,199],"./mel.js":[242,199],"./mercury":[243,200],"./mercury.js":[243,200],"./mipsasm":[244,201],"./mipsasm.js":[244,201],"./mizar":[245,202],"./mizar.js":[245,202],"./mojolicious":[246,203],"./mojolicious.js":[246,203],"./monkey":[247,204],"./monkey.js":[247,204],"./moonscript":[248,205],"./moonscript.js":[248,205],"./n1ql":[249,206],"./n1ql.js":[249,206],"./nginx":[250,207],"./nginx.js":[250,207],"./nim":[251,208],"./nim.js":[251,208],"./nix":[252,209],"./nix.js":[252,209],"./node-repl":[253,210],"./node-repl.js":[253,210],"./nsis":[254,211],"./nsis.js":[254,211],"./objectivec":[255,212],"./objectivec.js":[255,212],"./ocaml":[256,213],"./ocaml.js":[256,213],"./openscad":[257,214],"./openscad.js":[257,214],"./oxygene":[258,215],"./oxygene.js":[258,215],"./parser3":[259,216],"./parser3.js":[259,216],"./perl":[260,217],"./perl.js":[260,217],"./pf":[261,218],"./pf.js":[261,218],"./pgsql":[262,219],"./pgsql.js":[262,219],"./php":[264,221],"./php-template":[263,220],"./php-template.js":[263,220],"./php.js":[264,221],"./plaintext":[265,222],"./plaintext.js":[265,222],"./pony":[266,223],"./pony.js":[266,223],"./powershell":[267,224],"./powershell.js":[267,224],"./processing":[268,225],"./processing.js":[268,225],"./profile":[269,226],"./profile.js":[269,226],"./prolog":[270,227],"./prolog.js":[270,227],"./properties":[271,228],"./properties.js":[271,228],"./protobuf":[272,229],"./protobuf.js":[272,229],"./puppet":[273,230],"./puppet.js":[273,230],"./purebasic":[274,231],"./purebasic.js":[274,231],"./python":[276,233],"./python-repl":[275,232],"./python-repl.js":[275,232],"./python.js":[276,233],"./q":[277,234],"./q.js":[277,234],"./qml":[278,235],"./qml.js":[278,235],"./r":[279,236],"./r.js":[279,236],"./reasonml":[280,237],"./reasonml.js":[280,237],"./rib":[281,238],"./rib.js":[281,238],"./roboconf":[282,239],"./roboconf.js":[282,239],"./routeros":[283,240],"./routeros.js":[283,240],"./rsl":[284,241],"./rsl.js":[284,241],"./ruby":[285,242],"./ruby.js":[285,242],"./ruleslanguage":[286,243],"./ruleslanguage.js":[286,243],"./rust":[287,244],"./rust.js":[287,244],"./sas":[288,245],"./sas.js":[288,245],"./scala":[289,246],"./scala.js":[289,246],"./scheme":[290,247],"./scheme.js":[290,247],"./scilab":[291,248],"./scilab.js":[291,248],"./scss":[292,249],"./scss.js":[292,249],"./shell":[293,250],"./shell.js":[293,250],"./smali":[294,251],"./smali.js":[294,251],"./smalltalk":[295,252],"./smalltalk.js":[295,252],"./sml":[296,253],"./sml.js":[296,253],"./sqf":[297,254],"./sqf.js":[297,254],"./sql":[298,255],"./sql.js":[298,255],"./sql_more":[299,256],"./sql_more.js":[299,256],"./stan":[300,257],"./stan.js":[300,257],"./stata":[301,258],"./stata.js":[301,258],"./step21":[302,259],"./step21.js":[302,259],"./stylus":[303,260],"./stylus.js":[303,260],"./subunit":[304,261],"./subunit.js":[304,261],"./swift":[305,262],"./swift.js":[305,262],"./taggerscript":[306,263],"./taggerscript.js":[306,263],"./tap":[307,264],"./tap.js":[307,264],"./tcl":[308,265],"./tcl.js":[308,265],"./thrift":[309,266],"./thrift.js":[309,266],"./tp":[310,267],"./tp.js":[310,267],"./twig":[311,268],"./twig.js":[311,268],"./typescript":[312,269],"./typescript.js":[312,269],"./vala":[313,270],"./vala.js":[313,270],"./vbnet":[314,271],"./vbnet.js":[314,271],"./vbscript":[316,273],"./vbscript-html":[315,272],"./vbscript-html.js":[315,272],"./vbscript.js":[316,273],"./verilog":[317,274],"./verilog.js":[317,274],"./vhdl":[318,275],"./vhdl.js":[318,275],"./vim":[319,276],"./vim.js":[319,276],"./x86asm":[320,277],"./x86asm.js":[320,277],"./xl":[321,278],"./xl.js":[321,278],"./xml":[322,279],"./xml.js":[322,279],"./xquery":[323,280],"./xquery.js":[323,280],"./yaml":[324,281],"./yaml.js":[324,281],"./zephir":[325,282],"./zephir.js":[325,282]};function i(s){if(!t.o(a,s))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+s+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=a[s],i=e[0];return t.e(e[1]).then((function(){return t.t(i,7)}))}i.keys=function(){return Object.keys(a)},i.id=94,s.exports=i}}]);
|