@momentum-ui/web-components 2.13.23 → 2.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/md-10.js +2 -2
- 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-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 +1 -1
- 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-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-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 +1 -1
- 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-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-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-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-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-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 -1
- 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-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-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 -1
- 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 -0
- package/dist/chunks/md-29.js +2 -2
- package/dist/chunks/md-33.js +36 -33
- package/dist/chunks/md-34.js +32 -22
- package/dist/chunks/md-35.js +23 -5
- package/dist/chunks/md-36.js +5 -5
- package/dist/chunks/md-37.js +5 -1
- package/dist/chunks/md-38.js +1 -21
- package/dist/chunks/md-39.js +20 -41
- package/dist/chunks/md-40.js +42 -1
- package/dist/chunks/md-41.js +1 -30
- package/dist/chunks/md-42.js +30 -16
- package/dist/chunks/md-43.js +16 -1
- package/dist/chunks/md-44.js +1 -27
- package/dist/chunks/md-45.js +26 -4
- package/dist/chunks/md-46.js +4 -37
- package/dist/chunks/md-47.js +38 -13
- package/dist/chunks/md-48.js +13 -20
- package/dist/chunks/md-49.js +19 -119
- package/dist/chunks/md-5.js +1 -1
- package/dist/chunks/md-50.js +114 -91
- package/dist/chunks/md-51.js +98 -11
- package/dist/chunks/md-52.js +11 -5
- package/dist/chunks/md-53.js +4 -67
- package/dist/chunks/md-54.js +74 -19
- package/dist/chunks/md-55.js +68 -14
- package/dist/chunks/md-56.js +21 -4
- package/dist/chunks/md-57.js +14 -51
- package/dist/chunks/md-58.js +4 -21
- package/dist/chunks/md-59.js +51 -5
- package/dist/chunks/md-6.js +1 -1
- package/dist/chunks/md-60.js +22 -1
- package/dist/chunks/md-61.js +5 -23
- package/dist/chunks/md-62.js +1 -5
- package/dist/chunks/md-63.js +23 -11
- package/dist/chunks/md-64.js +4 -141
- package/dist/chunks/md-65.js +8 -27
- package/dist/chunks/md-66.js +141 -69
- package/dist/chunks/md-67.js +29 -18
- package/dist/chunks/md-68.js +70 -21
- package/dist/chunks/md-69.js +19 -17
- package/dist/chunks/md-70.js +21 -36
- package/dist/chunks/md-71.js +17 -76
- package/dist/chunks/md-72.js +76 -7
- package/dist/chunks/md-73.js +7 -72
- package/dist/chunks/md-74.js +71 -77
- package/dist/chunks/md-75.js +78 -66
- package/dist/chunks/md-76.js +64 -15
- package/dist/chunks/md-77.js +16 -4
- package/dist/chunks/md-78.js +4 -18
- package/dist/chunks/md-79.js +19 -1
- package/dist/chunks/md-80.js +1 -166
- package/dist/chunks/md-81.js +165 -32
- package/dist/chunks/md-82.js +31 -98
- package/dist/chunks/md-83.js +93 -75
- package/dist/chunks/md-84.js +81 -11
- package/dist/chunks/md-85.js +11 -41
- package/dist/chunks/md-86.js +40 -32
- package/dist/chunks/md-87.js +34 -1
- package/dist/chunks/md-88.js +1 -1
- package/dist/chunks/md-89.js +1 -1
- package/dist/chunks/md-90.js +1 -1
- package/dist/chunks/md-91.js +1 -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 +2 -2
- package/dist/comp/md-accordion.js +2 -2
- package/dist/comp/md-activity-button-entry.js +1 -1
- package/dist/comp/md-activity-button.js +2 -2
- package/dist/comp/md-alert-banner-entry.js +1 -1
- package/dist/comp/md-alert-banner.js +2 -2
- package/dist/comp/md-alert-entry.js +1 -1
- package/dist/comp/md-alert.js +3 -2
- package/dist/comp/md-audio-player-entry.js +1 -1
- package/dist/comp/md-audio-player.js +2 -2
- package/dist/comp/md-avatar-entry.js +1 -1
- package/dist/comp/md-avatar.js +1 -1
- 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 +2 -2
- package/dist/comp/md-button.js +1 -1
- package/dist/comp/md-card-ai-entry.js +1 -0
- package/dist/comp/md-card-ai.js +9 -0
- package/dist/comp/md-card-entry.js +1 -1
- package/dist/comp/md-card.js +4 -4
- package/dist/comp/md-chat-message-entry.js +1 -1
- package/dist/comp/md-chat-message.js +2 -2
- package/dist/comp/md-checkbox-entry.js +1 -1
- package/dist/comp/md-checkbox.js +3 -3
- package/dist/comp/md-checkboxgroup-entry.js +1 -1
- package/dist/comp/md-checkboxgroup.js +3 -3
- package/dist/comp/md-chip-entry.js +1 -1
- package/dist/comp/md-chip.js +3 -3
- package/dist/comp/md-coachmark-entry.js +1 -1
- package/dist/comp/md-coachmark.js +2 -2
- package/dist/comp/md-combobox-entry.js +1 -1
- package/dist/comp/md-combobox.js +1 -1
- package/dist/comp/md-composite-avatar-entry.js +1 -1
- package/dist/comp/md-composite-avatar.js +1 -1
- package/dist/comp/md-date-range-picker-entry.js +1 -1
- package/dist/comp/md-date-range-picker.js +3 -3
- package/dist/comp/md-date-time-picker-entry.js +1 -1
- package/dist/comp/md-date-time-picker.js +2 -2
- package/dist/comp/md-datepicker-calendar-entry.js +1 -1
- package/dist/comp/md-datepicker-calendar.js +1 -1
- package/dist/comp/md-datepicker-day-entry.js +1 -1
- package/dist/comp/md-datepicker-day.js +1 -1
- 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 +1 -1
- package/dist/comp/md-datepicker-week-entry.js +1 -1
- package/dist/comp/md-datepicker-week.js +1 -1
- package/dist/comp/md-datepicker.js +2 -2
- 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 +3 -3
- package/dist/comp/md-draggable.js +3 -3
- package/dist/comp/md-dropdown-entry.js +1 -1
- package/dist/comp/md-dropdown.js +2 -2
- package/dist/comp/md-editable-field-entry.js +1 -1
- package/dist/comp/md-editable-field.js +2 -2
- package/dist/comp/md-favorite-entry.js +1 -1
- package/dist/comp/md-favorite.js +2 -2
- package/dist/comp/md-floating-minimize-entry.js +1 -1
- package/dist/comp/md-floating-minimize.js +2 -2
- package/dist/comp/md-floating-modal-entry.js +1 -1
- package/dist/comp/md-floating-modal.js +3 -3
- package/dist/comp/md-form-entry.js +1 -1
- package/dist/comp/md-form.js +2 -2
- package/dist/comp/md-grabber-entry.js +1 -1
- package/dist/comp/md-grabber.js +2 -2
- package/dist/comp/md-help-text-entry.js +1 -1
- package/dist/comp/md-icon-entry.js +1 -1
- package/dist/comp/md-icon.js +1 -1
- package/dist/comp/md-inpu.js +2 -2
- package/dist/comp/md-input-entry.js +1 -1
- package/dist/comp/md-input-file.js +1 -1
- package/dist/comp/md-input.js +1 -1
- package/dist/comp/md-label-entry.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 +2 -2
- package/dist/comp/md-list.js +2 -2
- package/dist/comp/md-loading-entry.js +1 -1
- package/dist/comp/md-meeting-alert-entry.js +1 -1
- package/dist/comp/md-meeting-alert.js +2 -2
- 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 +1 -1
- package/dist/comp/md-menu.js +2 -2
- package/dist/comp/md-modal-entry.js +1 -1
- package/dist/comp/md-modal.js +2 -2
- package/dist/comp/md-pagination-entry.js +1 -1
- package/dist/comp/md-pagination.js +2 -2
- package/dist/comp/md-phone-input-entry.js +1 -1
- package/dist/comp/md-phone-input.js +2 -2
- 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 +3 -3
- package/dist/comp/md-radiogroup-entry.js +1 -1
- package/dist/comp/md-radiogroup.js +3 -3
- package/dist/comp/md-slider-entry.js +1 -1
- package/dist/comp/md-slider.js +2 -2
- package/dist/comp/md-spinner-entry.js +1 -1
- package/dist/comp/md-spinner.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 +2 -2
- package/dist/comp/md-tab.js +2 -2
- package/dist/comp/md-table-advanced-entry.js +1 -1
- package/dist/comp/md-table-advanced.js +2 -2
- package/dist/comp/md-table-entry.js +1 -1
- package/dist/comp/md-table.js +1 -1
- package/dist/comp/md-tabs-entry.js +1 -1
- package/dist/comp/md-tabs.js +3 -3
- package/dist/comp/md-task-item-entry.js +1 -1
- package/dist/comp/md-task-item.js +3 -3
- package/dist/comp/md-theme-entry.js +1 -1
- package/dist/comp/md-theme.js +1 -1
- package/dist/comp/md-timepicker-entry.js +1 -1
- package/dist/comp/md-timepicker.js +2 -2
- package/dist/comp/md-toggle-switch-entry.js +1 -1
- package/dist/comp/md-toggle-switch.js +2 -2
- package/dist/comp/md-tooltip-entry.js +1 -1
- package/dist/comp/md-tooltip.js +1 -1
- package/dist/index-entry.js +2 -2
- package/dist/index.js +43 -42
- package/dist/types/components/alert/Alert.d.ts +8 -1
- package/dist/types/components/card-ai/CardAi.d.ts +45 -0
- package/dist/types/components/combobox/ComboBox.d.ts +2 -1
- package/dist/types/components/grabber/Grabber.d.ts +1 -1
- package/dist/types/components/slider/Slider.d.ts +1 -0
- package/dist/types/components/timepicker/TimePicker.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +4 -4
package/dist/chunks/md-45.js
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[45],{
|
|
2
|
-
<div
|
|
3
|
-
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[45],{44:function(t,e,s){"use strict";s.r(e),s.d(e,"TAB_CROSS_WIDTH",(function(){return b})),s.d(e,"Tab",(function(){return h}));var i=s(1),o=s(7),a=s(6),l=s(5),r=s(0),n=s(4),d=s(3),c=s(38),p=function(t,e,s,i){var o,a=arguments.length,l=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,s,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(l=(a<3?o(l):a>3?o(e,s,l):o(e,s))||l);return a>3&&l&&Object.defineProperty(e,s,l),l};const b=22;var h;!function(t){let e=class extends(Object(o.a)(r.LitElement)){constructor(){super(...arguments),this.tabIndex=-1,this.ariaLabel="",this.closable="",this.name="",this.isCrossVisible=!1,this.ariaRole="tab",this.type="Line",this.newMomentum=!1,this.onlyIcon=!1,this._disabled=!1,this._selected=0===this.tabIndex,this.vertical=!1,this.viewportHidden=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",""+t),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get selected(){return this._selected}set selected(t){const e=this._selected;this._selected=t,t&&this.notifySelectedTab(),this.setAttribute("aria-selected",""+t),this.requestUpdate("selected",e)}static get styles(){return[l.a,c.a]}handleClick(t){t.preventDefault(),this.id&&this.dispatchEvent(new CustomEvent("tab-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCrossKeydown(t){t.stopPropagation(),t.code===i.b.Enter&&this.handleCrossEventDispatch()}handleCrossClick(t){t.preventDefault(),!0!==this.disabled&&this.handleCrossEventDispatch()}handleCrossEventDispatch(){this.id&&("auto"===this.closable?this.dispatchEvent(new CustomEvent("tab-cross-click",{detail:{id:this.id},bubbles:!0,composed:!0})):"custom"===this.closable&&this.dispatchEvent(new CustomEvent("tab-close-click",{detail:{id:this.id,name:this.name},bubbles:!0,composed:!0})))}notifySelectedTab(){this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}update(t){super.update(t),t.has("disabled")&&(this.selected=!1,this.setAttribute("aria-disabled",""+this.disabled))}connectedCallback(){super.connectedCallback()}firstUpdated(t){super.firstUpdated(t),this.ariaRole&&this.setAttribute("role",this.ariaRole)}renderCrossButton(){return r.html`
|
|
2
|
+
<div
|
|
3
|
+
?disabled=${this.disabled}
|
|
4
|
+
tabindex="-1"
|
|
5
|
+
class="tab-action-button"
|
|
6
|
+
@click=${t=>this.handleCrossClick(t)}
|
|
7
|
+
@keydown=${t=>this.handleCrossKeydown(t)}
|
|
8
|
+
>
|
|
9
|
+
<md-icon tabindex="0" name="cancel-bold" size="14" iconSet="momentumDesign"></md-icon>
|
|
4
10
|
</div>
|
|
5
|
-
`}
|
|
11
|
+
`}render(){return r.html`
|
|
12
|
+
<button
|
|
13
|
+
type="button"
|
|
14
|
+
role="button"
|
|
15
|
+
?disabled=${this.disabled}
|
|
16
|
+
aria-selected="false"
|
|
17
|
+
aria-label=${Object(d.ifDefined)(this.ariaLabel||void 0)}
|
|
18
|
+
aria-hidden="true"
|
|
19
|
+
tabindex="-1"
|
|
20
|
+
part="tab"
|
|
21
|
+
class="${Object(n.classMap)({closable:""!==this.closable,isPill:"Pill"===this.type,newMomentum:this.newMomentum,onlyIcon:this.onlyIcon})}"
|
|
22
|
+
@click=${t=>this.handleClick(t)}
|
|
23
|
+
>
|
|
24
|
+
<slot class="tab-slot"></slot>
|
|
25
|
+
${this.isCrossVisible&&this.closable?this.renderCrossButton():""}
|
|
26
|
+
</button>
|
|
27
|
+
`}};p([Object(r.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),p([Object(r.property)({type:String,attribute:"aria-label"})],e.prototype,"ariaLabel",void 0),p([Object(r.property)({type:String,attribute:"closable"})],e.prototype,"closable",void 0),p([Object(r.property)({type:String,attribute:"name"})],e.prototype,"name",void 0),p([Object(r.property)({type:Boolean,attribute:"cross-visible"})],e.prototype,"isCrossVisible",void 0),p([Object(r.property)({type:String})],e.prototype,"ariaRole",void 0),p([Object(r.property)({type:String})],e.prototype,"type",void 0),p([Object(r.property)({type:Boolean})],e.prototype,"newMomentum",void 0),p([Object(r.property)({type:Boolean})],e.prototype,"onlyIcon",void 0),p([Object(r.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),p([Object(r.property)({type:Boolean,reflect:!0})],e.prototype,"selected",null),p([Object(r.property)({type:Boolean,reflect:!0})],e.prototype,"vertical",void 0),p([Object(r.property)({type:Boolean,reflect:!0})],e.prototype,"viewportHidden",void 0),e=p([Object(a.a)("md-tab")],e),t.ELEMENT=e}(h||(h={}))}}]);
|
package/dist/chunks/md-46.js
CHANGED
|
@@ -1,38 +1,5 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[46],{85:function(e,t,
|
|
2
|
-
<div class="md-accordion
|
|
3
|
-
<
|
|
4
|
-
<button
|
|
5
|
-
type="button"
|
|
6
|
-
aria-expanded=${this.expanded}
|
|
7
|
-
class="md-accordion-expander"
|
|
8
|
-
aria-label=${Object(l.ifDefined)(this.label||void 0)}
|
|
9
|
-
aria-controls="panel-${this.uniqueId}"
|
|
10
|
-
aria-disabled=${this.disabled}
|
|
11
|
-
?disabled=${this.disabled}
|
|
12
|
-
id="header-${this.uniqueId}"
|
|
13
|
-
part="accordion-button"
|
|
14
|
-
tabindex=${Object(l.ifDefined)(this.disabled?-1:void 0)}
|
|
15
|
-
@mousedown=${this.handleMouseDown}
|
|
16
|
-
@keydown=${this.handleKeyDown}
|
|
17
|
-
>
|
|
18
|
-
<slot name="header-content">
|
|
19
|
-
<span class="md-accordion-expander-label">${this.label}</span>
|
|
20
|
-
</slot>
|
|
21
|
-
<md-icon
|
|
22
|
-
iconSet=${"momentumDesign"}
|
|
23
|
-
size="14"
|
|
24
|
-
name=${this.expanded?"arrow-up-bold":"arrow-down-bold"}
|
|
25
|
-
></md-icon>
|
|
26
|
-
</button>
|
|
27
|
-
</div>
|
|
28
|
-
<div
|
|
29
|
-
role="region"
|
|
30
|
-
id="panel-${this.uniqueId}"
|
|
31
|
-
aria-labelledby="header-${this.uniqueId}"
|
|
32
|
-
class="md-accordion-panel"
|
|
33
|
-
part="accordion-panel"
|
|
34
|
-
>
|
|
35
|
-
<slot></slot>
|
|
36
|
-
</div>
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[46],{85:function(e,t,o){"use strict";o.r(t),o.d(t,"Accordion",(function(){return c}));var c,s=o(1),i=o(7),n=o(6),d=o(5),r=o(0),a=o(58),l=function(e,t,o,c){var s,i=arguments.length,n=i<3?t:null===c?c=Object.getOwnPropertyDescriptor(t,o):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,c);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(n=(i<3?s(n):i>3?s(t,o,n):s(t,o))||n);return i>3&&n&&Object.defineProperty(t,o,n),n};!function(e){let t=class extends(Object(i.e)(r.LitElement)){constructor(){super(...arguments),this.multiple=!1,this.handleAccordionItemFocus=()=>{this.toggleAttribute("focusable",!0)},this.handleAccordionItemBlur=()=>{this.toggleAttribute("focusable",!1)}}get slotItem(){return this.accordionItemSlotElement}filterSlotted(){return this.accordionItemSlotElement.assignedElements()}switchFocusedAccordionItem(e){const t=this.slotted.findIndex(e=>e.hasAttribute("focus-visible")),o=this.slotted.length;let c=t;for(c=(o+c+e)%o;this.slotted[c].disabled;)c=(o+c+e)%o;this.focusAccordionItem(this.slotted[c])}focusAccordionItem(e){e.hasAttribute("focus-visible")||requestAnimationFrame(()=>e.header.focus())}setActiveAccordionItem(e){this.multiple?e.expanded=!e.expanded:(this.slotted.forEach(t=>{const o=t;o.expanded&&!t.isEqualNode(e)&&(o.expanded=!1)}),e.expanded=!0)}setupExpandedAccordionItems(){this.multiple||this.slotted.filter(e=>e.expanded).forEach((e,t)=>{const o=e;o.expanded&&t>0&&(o.expanded=!1)})}setupFocusAccordionItems(){this.slotted.forEach(e=>{e.addEventListener("focus",this.handleAccordionItemFocus),e.addEventListener("blur",this.handleAccordionItemBlur)})}removeFocusAccordionItems(){this.slotted.forEach(e=>{e.removeEventListener("focus",this.handleAccordionItemFocus),e.removeEventListener("blur",this.handleAccordionItemBlur)})}handleKeyDown(e){const{srcEvent:t}=e.detail,{code:o}=t;switch(o){case s.b.Space:case s.b.Enter:{const{target:t}=e;t&&this.setActiveAccordionItem(t);break}case s.b.ArrowDown:this.switchFocusedAccordionItem(1);break;case s.b.ArrowUp:this.switchFocusedAccordionItem(-1);break;case s.b.Home:{const e=this.slotted[0];this.focusAccordionItem(e);break}case s.b.End:{const e=this.slotted[this.slotted.length-1];this.focusAccordionItem(e);break}}}handleClick(e){const{target:t}=e,o=this.slotted.find(e=>e.isSameNode(t));o&&this.setActiveAccordionItem(o)}updated(e){super.updated(e),e.has("slotted")&&(this.setupExpandedAccordionItems(),this.setupFocusAccordionItems())}connectedCallback(){super.connectedCallback(),this.addEventListener("accordion-item-keydown",this.handleKeyDown),this.addEventListener("accordion-item-click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("accordion-item-keydown",this.handleKeyDown),this.removeEventListener("accordion-item-click",this.handleClick),this.removeFocusAccordionItems()}static get styles(){return[d.a,a.a]}render(){return r.html`
|
|
2
|
+
<div class="md-accordion" part="accordion">
|
|
3
|
+
<slot name="accordion-item"></slot>
|
|
37
4
|
</div>
|
|
38
|
-
`}};
|
|
5
|
+
`}};l([Object(r.property)({type:Boolean,reflect:!0})],t.prototype,"multiple",void 0),l([Object(r.query)('slot[name="accordion-item"]')],t.prototype,"accordionItemSlotElement",void 0),t=l([Object(n.a)("md-accordion")],t),e.ELEMENT=t}(c||(c={}))}}]);
|
package/dist/chunks/md-47.js
CHANGED
|
@@ -1,13 +1,38 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[47],{86:function(t,
|
|
2
|
-
<md-
|
|
3
|
-
aria-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[47],{86:function(e,t,d){"use strict";d.r(t),d.d(t,"AccordionItem",(function(){return i}));d(15);var i,n=d(7),o=d(6),s=d(5),a=d(0),l=d(3),r=d(22),c=d(58),p=function(e,t,d,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,d):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,d,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,d,s):n(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s};!function(e){let t=class extends(Object(n.a)(a.LitElement)){constructor(){super(...arguments),this._expanded=!1,this._level=3,this.uniqueId=Object(r.nanoid)(),this.label="",this.disabled=!1}get expanded(){return this._expanded}set expanded(e){const t=this._expanded;this._expanded=e,e?(this.notifyAccordionFocus(),this.notifyExpandedHeader()):this.notifyCollapsedHeader(),this.requestUpdate("expanded",t)}get level(){return this._level}set level(e){const t=this.level;e<1||e>6?(console.warn("Please set appropriate section heading level"),this._level=3):this._level=e,this.requestUpdate("level",t)}notifyExpandedHeader(){this.dispatchEvent(new CustomEvent("accordion-item-expanded",{composed:!0,bubbles:!0,detail:{id:this.uniqueId}}))}notifyCollapsedHeader(){this.dispatchEvent(new CustomEvent("accordion-item-collapsed",{composed:!0,bubbles:!0,detail:{id:this.uniqueId}}))}notifyAccordionFocus(){this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}firstUpdated(e){super.firstUpdated(e),this.setAttribute("id",this.uniqueId)}static get styles(){return[s.a,c.a]}handleMouseDown(e){this.disabled||this.dispatchEvent(new CustomEvent("accordion-item-click",{detail:{srcEvent:e},composed:!0,bubbles:!0}))}handleKeyDown(e){this.disabled||this.dispatchEvent(new CustomEvent("accordion-item-keydown",{detail:{srcEvent:e},bubbles:!0,composed:!0}))}render(){return a.html`
|
|
2
|
+
<div class="md-accordion-item">
|
|
3
|
+
<div role="heading" aria-level=${this.level} class="md-accordion-header" part="accordion-header">
|
|
4
|
+
<button
|
|
5
|
+
type="button"
|
|
6
|
+
aria-expanded=${this.expanded}
|
|
7
|
+
class="md-accordion-expander"
|
|
8
|
+
aria-label=${Object(l.ifDefined)(this.label||void 0)}
|
|
9
|
+
aria-controls="panel-${this.uniqueId}"
|
|
10
|
+
aria-disabled=${this.disabled}
|
|
11
|
+
?disabled=${this.disabled}
|
|
12
|
+
id="header-${this.uniqueId}"
|
|
13
|
+
part="accordion-button"
|
|
14
|
+
tabindex=${Object(l.ifDefined)(this.disabled?-1:void 0)}
|
|
15
|
+
@mousedown=${this.handleMouseDown}
|
|
16
|
+
@keydown=${this.handleKeyDown}
|
|
17
|
+
>
|
|
18
|
+
<slot name="header-content">
|
|
19
|
+
<span class="md-accordion-expander-label">${this.label}</span>
|
|
20
|
+
</slot>
|
|
21
|
+
<md-icon
|
|
22
|
+
iconSet=${"momentumDesign"}
|
|
23
|
+
size="14"
|
|
24
|
+
name=${this.expanded?"arrow-up-bold":"arrow-down-bold"}
|
|
25
|
+
></md-icon>
|
|
26
|
+
</button>
|
|
27
|
+
</div>
|
|
28
|
+
<div
|
|
29
|
+
role="region"
|
|
30
|
+
id="panel-${this.uniqueId}"
|
|
31
|
+
aria-labelledby="header-${this.uniqueId}"
|
|
32
|
+
class="md-accordion-panel"
|
|
33
|
+
part="accordion-panel"
|
|
34
|
+
>
|
|
35
|
+
<slot></slot>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
`}};p([Object(a.property)({type:String})],t.prototype,"label",void 0),p([Object(a.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",void 0),p([Object(a.property)({type:Boolean,reflect:!0})],t.prototype,"expanded",null),p([Object(a.property)({type:Number,reflect:!0})],t.prototype,"level",null),p([Object(a.query)(".md-accordion-expander")],t.prototype,"header",void 0),t=p([Object(o.a)("md-accordion-item")],t),e.ELEMENT=t}(i||(i={}))}}]);
|
package/dist/chunks/md-48.js
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[48],{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<div class="md-alert-banner__text">
|
|
15
|
-
<slot><span>${this.message}</span></slot>
|
|
16
|
-
</div>
|
|
17
|
-
${r}
|
|
18
|
-
</div>
|
|
19
|
-
`:null}
|
|
20
|
-
`}};d([Object(c.property)({type:String})],r.prototype,"type",void 0),d([Object(c.property)({type:String})],r.prototype,"message",void 0),d([Object(c.property)({type:Boolean})],r.prototype,"closable",void 0),d([Object(c.property)({type:Boolean})],r.prototype,"show",void 0),d([Object(c.property)({type:String,attribute:"close-aria-label"})],r.prototype,"closeAriaLabel",void 0),r=d([Object(a.a)("md-alert-banner")],r),e.ELEMENT=r}(n||(n={}))}}]);
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[48],{87:function(t,e,i){"use strict";i.r(e),i.d(e,"activityButtonSize",(function(){return c})),i.d(e,"activityButtonType",(function(){return p})),i.d(e,"ActivityButton",(function(){return y}));var r=i(5),n=i(6),o=i(0),s=(i(17),i(15),i(59)),a=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};const c=["56","68","84",56,68,84],p=["chat","camera","contact-card","meetings","whiteboard","files","share-screen","tasks"];var y;!function(t){let e=class extends o.LitElement{constructor(){super(...arguments),this.ariaLabel="",this.disabled=!1,this.label="",this.size="68",this._type="chat"}get type(){return this._type}set type(t){const e=this.type;p.includes(t)?this._type=t:this._type="chat",this.requestUpdate("type",e)}get buttonToIconSizeMapping(){return{56:"24",68:"28",84:"36"}}get formatClass(){return{"md-activity":!0,["md-activity__"+this.type]:this.type}}static get styles(){return[r.a,s.a]}render(){return o.html`
|
|
2
|
+
<md-button
|
|
3
|
+
aria-label=${this.ariaLabel}
|
|
4
|
+
circle
|
|
5
|
+
.activityType=${this.type}
|
|
6
|
+
?containerLarge=${"84"===this.size}
|
|
7
|
+
?disabled=${this.disabled}
|
|
8
|
+
.size=${this.size}
|
|
9
|
+
.label=${this.label}
|
|
10
|
+
>
|
|
11
|
+
<md-icon name=${`icon-${this.type}_${this.buttonToIconSizeMapping[this.size]}`}></md-icon>
|
|
12
|
+
</md-button>
|
|
13
|
+
`}};a([Object(o.property)({type:String})],e.prototype,"ariaLabel",void 0),a([Object(o.property)({type:Boolean})],e.prototype,"disabled",void 0),a([Object(o.property)({type:String})],e.prototype,"label",void 0),a([Object(o.property)({type:String})],e.prototype,"size",void 0),a([Object(o.property)({type:String})],e.prototype,"type",null),e=a([Object(n.a)("md-activity-button")],e),t.ELEMENT=e}(y||(y={}))}}]);
|
package/dist/chunks/md-49.js
CHANGED
|
@@ -1,120 +1,20 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[49],{106:function(e,t
|
|
2
|
-
<md-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<md-icon
|
|
17
|
-
name="check-circle-bold"
|
|
18
|
-
size="${this.newMomentum?24:32}"
|
|
19
|
-
iconSet="momentumDesign"
|
|
20
|
-
color="var(--md-alert-success-text-color, green)"
|
|
21
|
-
></md-icon>
|
|
22
|
-
`;case"warn":case"warning":return l.html`
|
|
23
|
-
<md-icon
|
|
24
|
-
name="warning-bold"
|
|
25
|
-
size="${this.newMomentum?24:32}"
|
|
26
|
-
iconSet="momentumDesign"
|
|
27
|
-
D
|
|
28
|
-
color="var(--md-alert-warning-text-color, orange)"
|
|
29
|
-
></md-icon>
|
|
30
|
-
`;case"message":return l.html`
|
|
31
|
-
<md-icon
|
|
32
|
-
name="chat-bold"
|
|
33
|
-
size="${this.newMomentum?24:32}"
|
|
34
|
-
iconSet="momentumDesign"
|
|
35
|
-
color="var(--alert-title-text-color)"
|
|
36
|
-
></md-icon>
|
|
37
|
-
`;case"loading":return l.html`<md-spinner size="24"></md-spinner>`;default:return l.html` <slot name="alert-icon"></slot> `}}}close(){this.dispatchEvent(new CustomEvent("alert-close",{composed:!0,bubbles:!0})),this.internalClose&&(this.show=!1)}static get styles(){return[n.a,c]}get alertClassMap(){return{["md-alert--"+this.type]:!!this.type,"md-alert__inline":this.inline}}legacyRender(){return l.html`
|
|
38
|
-
<div role="alert" aria-live="polite" part="alert" class="md-alert ${Object(s.classMap)(this.alertClassMap)}">
|
|
39
|
-
<div class="md-alert__icon aria-hidden="true">
|
|
40
|
-
${this.renderIconTemplate()}
|
|
41
|
-
</div>
|
|
42
|
-
<div part="content" class="md-alert__content">
|
|
43
|
-
${this.title&&""!==this.title?l.html` <div class="md-alert__title" role="heading" aria-level="1">${this.title}</div> `:a.nothing}
|
|
44
|
-
<div class="md-alert__message">
|
|
45
|
-
${this.message}
|
|
46
|
-
<slot name="alert-body"></slot>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
${this.closable?l.html`
|
|
50
|
-
<div class="md-alert__button">
|
|
51
|
-
<md-button
|
|
52
|
-
arialabel="${this.btnlabel}"
|
|
53
|
-
hasRemoveStyle
|
|
54
|
-
color="color-none"
|
|
55
|
-
circle
|
|
56
|
-
@click="${()=>this.close()}"
|
|
57
|
-
>
|
|
58
|
-
<md-icon slot="icon" name="cancel-bold" size="18" iconSet="momentumDesign"></md-icon>
|
|
59
|
-
</md-button>
|
|
60
|
-
</div>
|
|
61
|
-
`:l.html`
|
|
62
|
-
<div class="md-alert__footer">
|
|
63
|
-
<slot name="alert-footer"></slot>
|
|
64
|
-
</div>
|
|
65
|
-
`}
|
|
66
|
-
</div>
|
|
67
|
-
`}newRender(){return l.html`
|
|
68
|
-
<div role="alert" aria-live="polite" part="alert" class="md-new-alert ${Object(s.classMap)(this.alertClassMap)}">
|
|
69
|
-
<div class="md-new-alert__body">
|
|
70
|
-
<div class="md-new-alert__icon aria-hidden="true">
|
|
71
|
-
${this.renderIconTemplate()}
|
|
72
|
-
</div>
|
|
73
|
-
<div part="content" class="md-new-alert__content">
|
|
74
|
-
${this.title&&""!==this.title?l.html` <div class="md-new-alert__title" role="heading" aria-level="1">${this.title}</div> `:a.nothing}
|
|
75
|
-
<div class="md-new-alert__message" title="${this.message}">
|
|
76
|
-
${this.message}
|
|
77
|
-
<slot name="alert-body"></slot>
|
|
78
|
-
${this.showMore?l.html`<md-link href=${this.href} inline>Show more...</md-link>`:a.nothing}
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
${this.closable?l.html`
|
|
82
|
-
<div class="md-new-alert__button">
|
|
83
|
-
<md-button
|
|
84
|
-
arialabel="${this.btnlabel}"
|
|
85
|
-
hasRemoveStyle
|
|
86
|
-
color="color-none"
|
|
87
|
-
circle
|
|
88
|
-
@click="${()=>this.close()}"
|
|
89
|
-
>
|
|
90
|
-
<md-icon slot="icon" name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
91
|
-
</md-button>
|
|
92
|
-
</div>
|
|
93
|
-
`:a.nothing}
|
|
94
|
-
</div>
|
|
95
|
-
${this.primaryButton||this.secondaryButton||this.link?l.html`
|
|
96
|
-
<div class="md-new-alert__footer">
|
|
97
|
-
${this.link?l.html`
|
|
98
|
-
<md-link href="${this.href}"
|
|
99
|
-
><span class="md-new-alert__link">Link
|
|
100
|
-
<md-icon
|
|
101
|
-
name="pop-out-bold"
|
|
102
|
-
size="16"
|
|
103
|
-
iconSet="momentumDesign"
|
|
104
|
-
color="var(--md-alert-info-text-color, blue)"
|
|
105
|
-
></md-icon
|
|
106
|
-
><span></md-link>
|
|
107
|
-
`:a.nothing}
|
|
108
|
-
${this.secondaryButton?l.html`<md-button variant="secondary" .clickFunction="${this.secondaryButtonClickFunction}"
|
|
109
|
-
>${this.secondaryButton}</md-button
|
|
110
|
-
>`:a.nothing}
|
|
111
|
-
${this.primaryButton?l.html`<md-button
|
|
112
|
-
variant=${this.primaryButtonVariant}
|
|
113
|
-
color=${this.primaryButtonColor}
|
|
114
|
-
.clickFunction="${this.primaryButtonClickFunction}"
|
|
115
|
-
>${this.primaryButton}</md-button
|
|
116
|
-
>`:a.nothing}
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[49],{106:function(e,r,t){"use strict";t.r(r),t.d(r,"AlertBanner",(function(){return n}));t(17),t(15);var n,a=t(6),o=t(36),l=t(5),c=t(0),s=t(12),i=c.css`.md-alert-banner{padding:.75rem;position:relative;text-align:center;border-radius:var(--alert-banner-border-radius);font-family:var(--brand-font-regular);font-weight:var(--brand-font-weight-regular)}.md-alert-banner.md-alert-banner--default{background-color:var(--alert-banner-default-bg-color,#c9f4ff);color:var(--alert-banner-default-text-color,#005e7d)}.md-alert-banner.md-alert-banner--default md-icon{color:var(--alert-banner-default-text-color,#005e7d)}.md-alert-banner.md-alert-banner--warning{background-color:var(--alert-banner-warning-bg-color,#ffecc2);color:var(--alert-banner-warning-text-color,#7d4705)}.md-alert-banner.md-alert-banner--warning md-icon{color:var(--alert-banner-warning-text-color,#7d4705)}.md-alert-banner.md-alert-banner--error{background-color:var(--alert-banner-error-bg-color,#ffe8e3);color:var(--alert-banner-error-text-color,#a12512)}.md-alert-banner.md-alert-banner--error md-icon{color:var(--alert-banner-error-text-color,#a12512)}.md-alert-banner.md-alert-banner--success{background-color:var(--alert-banner-success-bg-color,#c9f4ff);color:var(--alert-banner-success-text-color,#005e7d)}.md-alert-banner.md-alert-banner--success md-icon{color:var(--alert-banner-success-text-color,#005e7d)}.md-alert-banner__text{font-size:var(--body-primary-font-size,.875rem);padding:0 1.75rem;text-align:center}.md-alert-banner__text a{color:inherit;text-decoration:underline}.md-alert-banner__close{cursor:pointer;height:1rem;position:absolute;right:1rem;top:.75rem;width:1rem}@media(forced-colors:active){.md-alert-banner{box-shadow:none;outline:2px solid CanvasText}}`,d=function(e,r,t,n){var a,o=arguments.length,l=o<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,t):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,r,t,n);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(l=(o<3?a(l):o>3?a(r,t,l):a(r,t))||l);return o>3&&l&&Object.defineProperty(r,t,l),l};!function(e){let r=class extends c.LitElement{constructor(){super(...arguments),this.type="",this.message="",this.closable=!1,this.show=!1,this.closeAriaLabel="Close Banner"}connectedCallback(){super.connectedCallback(),this.requestUpdate("show")}onHide(){this.show=!this.show,this.dispatchEvent(new CustomEvent("alertBanner-hide")),this.requestUpdate("show")}handleKeyDown(e){const{code:r}=e;Object(o.a)(r)&&this.onHide()}static get styles(){return[l.a,i]}render(){const e={"md-alert-banner":!0,["md-alert-banner--"+this.type]:this.type},r=this.closable?c.html`
|
|
2
|
+
<md-button
|
|
3
|
+
class="md-alert-banner__close"
|
|
4
|
+
hasRemoveStyle
|
|
5
|
+
ariaLabel=${this.closeAriaLabel}
|
|
6
|
+
@click="${this.onHide}"
|
|
7
|
+
@keydown="${this.handleKeyDown}"
|
|
8
|
+
>
|
|
9
|
+
<md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
10
|
+
</md-button>
|
|
11
|
+
`:null;return c.html`
|
|
12
|
+
${this.show?c.html`
|
|
13
|
+
<div class="${Object(s.classMap)(e)}" role="alert">
|
|
14
|
+
<div class="md-alert-banner__text">
|
|
15
|
+
<slot><span>${this.message}</span></slot>
|
|
117
16
|
</div>
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
17
|
+
${r}
|
|
18
|
+
</div>
|
|
19
|
+
`:null}
|
|
20
|
+
`}};d([Object(c.property)({type:String})],r.prototype,"type",void 0),d([Object(c.property)({type:String})],r.prototype,"message",void 0),d([Object(c.property)({type:Boolean})],r.prototype,"closable",void 0),d([Object(c.property)({type:Boolean})],r.prototype,"show",void 0),d([Object(c.property)({type:String,attribute:"close-aria-label"})],r.prototype,"closeAriaLabel",void 0),r=d([Object(a.a)("md-alert-banner")],r),e.ELEMENT=r}(n||(n={}))}}]);
|
package/dist/chunks/md-5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[5],{
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[5],{51:function(e,t,r){"use strict";r.r(t),r.d(t,"Spinner",(function(){return n}));var n,o=r(5),i=r(8),s=r(0),p=s.css`:host(:focus){box-shadow:none;outline:0}:host(md-spinner){line-height:1rem}:host(md-spinner) .md-spinner{border-radius:50%;display:block;position:relative;border:1px solid var(--spinner-bg-color,#b2b2b2)}:host(md-spinner) .md-spinner::after{border-bottom:1px solid transparent;border-left:1px solid var(--spinner-color,#000);border-right:1px solid transparent;border-top:1px solid transparent}:host(md-spinner) .md-spinner::after{animation:load8 1s infinite linear;border-radius:50%;content:"";height:calc(100% + 2px);left:-1px;position:absolute;top:-1px;width:calc(100% + 2px)}@keyframes load8{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@media(forced-colors:active){:host(md-spinner) .md-spinner:after{border-bottom:2px solid Highlight;border-left:2px solid HighlightText;border-right:2px solid Highlight;border-top:2px solid Highlight}}`,d=r(6),l=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var p=e.length-1;p>=0;p--)(o=e[p])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s};!function(e){let t=class extends s.LitElement{constructor(){super(...arguments),this.size=56}static get styles(){return[o.a,p]}get spinnerStyleMap(){return{width:this.size+"px",height:this.size+"px"}}render(){return s.html` <i class="md-spinner" part="spinner" style=${Object(i.styleMap)(this.spinnerStyleMap)}></i> `}};l([Object(s.property)({type:Number,reflect:!0})],t.prototype,"size",void 0),t=l([Object(d.a)("md-spinner")],t),e.ELEMENT=t}(n||(n={}))}}]);
|