@momentum-ui/web-components 3.2.11 → 3.2.13
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/2245.js +1 -1
- package/dist/6325.js +1 -1
- package/dist/861.js +9 -2
- package/dist/comp/md-avatar-entry.js +1 -1
- package/dist/comp/md-floating-minimize-entry.js +3 -3
- package/dist/comp/md-floating-modal-entry.js +6 -6
- package/dist/esm/1156.js +1 -0
- package/dist/esm/1280.js +1 -0
- package/dist/esm/1756.js +1 -0
- package/dist/esm/1821.js +1 -1
- package/dist/esm/1982.js +1 -0
- package/dist/esm/2245.js +1 -1
- package/dist/esm/2451.js +1 -0
- package/dist/esm/2458.js +1 -0
- package/dist/esm/2577.js +1 -0
- package/dist/esm/2599.js +1 -0
- package/dist/esm/2927.js +1 -1
- package/dist/esm/3051.js +1 -1
- package/dist/esm/3155.js +1 -0
- package/dist/esm/3365.js +1 -0
- package/dist/esm/3517.js +1 -0
- package/dist/esm/3648.js +1 -0
- package/dist/esm/3876.js +1 -1
- package/dist/esm/4060.js +1 -0
- package/dist/esm/4137.js +1 -0
- package/dist/esm/4613.js +1 -0
- package/dist/esm/4626.js +1 -1
- package/dist/esm/477.js +1 -0
- package/dist/esm/4955.js +1 -0
- package/dist/esm/4980.js +1 -0
- package/dist/esm/5308.js +1 -0
- package/dist/esm/5410.js +1 -1
- package/dist/esm/5432.js +1 -0
- package/dist/esm/546.js +1 -0
- package/dist/esm/5958.js +3 -3
- package/dist/esm/5983.js +1 -1
- package/dist/esm/6325.js +1 -1
- package/dist/esm/6518.js +1 -0
- package/dist/esm/6525.js +1 -0
- package/dist/esm/6897.js +1 -0
- package/dist/esm/6933.js +1 -0
- package/dist/esm/6994.js +1 -0
- package/dist/esm/708.js +1 -1
- package/dist/esm/7119.js +1 -0
- package/dist/esm/7638.js +1 -0
- package/dist/esm/7755.js +1 -0
- package/dist/esm/7838.js +1 -0
- package/dist/esm/8165.js +1 -0
- package/dist/esm/8235.js +1 -0
- package/dist/esm/8497.js +1 -1
- package/dist/esm/861.js +9 -2
- package/dist/esm/8663.js +1 -1
- package/dist/esm/878.js +1 -1
- package/dist/esm/8899.js +1 -0
- package/dist/esm/9375.js +1 -0
- package/dist/esm/9500.js +1 -0
- package/dist/esm/9613.js +1 -1
- package/dist/esm/9642.js +1 -0
- package/dist/esm/comp/md-accordion-entry.js +2 -2
- package/dist/esm/comp/md-accordion-item-entry.js +2 -2
- package/dist/esm/comp/md-accordion-item.js +1 -1
- package/dist/esm/comp/md-accordion.js +1 -1
- package/dist/esm/comp/md-activity-button-entry.js +2 -2
- package/dist/esm/comp/md-activity-button.js +1 -1
- package/dist/esm/comp/md-advance-list-entry.js +2 -2
- package/dist/esm/comp/md-advance-list.js +1 -1
- package/dist/esm/comp/md-alert-banner-entry.js +10 -10
- package/dist/esm/comp/md-alert-banner.js +1 -1
- package/dist/esm/comp/md-alert-entry.js +9 -9
- package/dist/esm/comp/md-alert.js +1 -1
- package/dist/esm/comp/md-audio-player-entry.js +2 -2
- package/dist/esm/comp/md-audio-player.js +1 -1
- package/dist/esm/comp/md-avatar-entry.js +1 -1
- package/dist/esm/comp/md-avatar.js +1 -1
- package/dist/esm/comp/md-badge-entry.js +1 -1
- package/dist/esm/comp/md-badge.js +1 -1
- package/dist/esm/comp/md-breadcrumb-entry.js +5 -5
- package/dist/esm/comp/md-breadcrumb.js +1 -1
- package/dist/esm/comp/md-button-entry.js +2 -2
- package/dist/esm/comp/md-button-group-entry.js +2 -2
- package/dist/esm/comp/md-button-group.js +1 -1
- package/dist/esm/comp/md-button.js +1 -1
- package/dist/esm/comp/md-card-ai-entry.js +2 -2
- package/dist/esm/comp/md-card-ai.js +1 -1
- package/dist/esm/comp/md-card-entry.js +6 -6
- package/dist/esm/comp/md-card-v2-entry.js +6 -6
- package/dist/esm/comp/md-card-v2.js +1 -1
- package/dist/esm/comp/md-card.js +1 -1
- package/dist/esm/comp/md-chat-message-entry.js +2 -2
- package/dist/esm/comp/md-chat-message.js +1 -1
- package/dist/esm/comp/md-checkbox-entry.js +2 -2
- package/dist/esm/comp/md-checkbox.js +1 -1
- package/dist/esm/comp/md-checkboxgroup-entry.js +2 -2
- package/dist/esm/comp/md-checkboxgroup.js +1 -1
- package/dist/esm/comp/md-chip-entry.js +2 -2
- package/dist/esm/comp/md-chip.js +1 -1
- package/dist/esm/comp/md-coachmark-entry.js +8 -8
- package/dist/esm/comp/md-coachmark-popover-entry.js +3 -3
- package/dist/esm/comp/md-coachmark-popover.js +1 -1
- package/dist/esm/comp/md-coachmark.js +1 -1
- package/dist/esm/comp/md-combobox-entry.js +1 -1
- package/dist/esm/comp/md-combobox.js +1 -1
- package/dist/esm/comp/md-composite-avatar-entry.js +3 -3
- package/dist/esm/comp/md-composite-avatar.js +1 -1
- package/dist/esm/comp/md-country-code-picker-entry.js +1 -1
- package/dist/esm/comp/md-country-code-picker.js +1 -1
- package/dist/esm/comp/md-date-range-picker-entry.js +1 -1
- package/dist/esm/comp/md-date-range-picker.js +1 -1
- package/dist/esm/comp/md-date-time-picker-entry.js +2 -2
- package/dist/esm/comp/md-date-time-picker.js +1 -1
- package/dist/esm/comp/md-datepicker-calendar-entry.js +1 -1
- package/dist/esm/comp/md-datepicker-calendar.js +1 -1
- package/dist/esm/comp/md-datepicker-day-entry.js +1 -1
- package/dist/esm/comp/md-datepicker-day.js +1 -1
- package/dist/esm/comp/md-datepicker-entry.js +11 -11
- package/dist/esm/comp/md-datepicker-month-entry.js +1 -1
- package/dist/esm/comp/md-datepicker-month.js +1 -1
- package/dist/esm/comp/md-datepicker-week-entry.js +1 -1
- package/dist/esm/comp/md-datepicker-week.js +1 -1
- package/dist/esm/comp/md-datepicker.js +1 -1
- package/dist/esm/comp/md-draggable-entry.js +2 -2
- package/dist/esm/comp/md-draggable-item-entry.js +5 -5
- package/dist/esm/comp/md-draggable-item.js +1 -1
- package/dist/esm/comp/md-draggable.js +1 -1
- package/dist/esm/comp/md-dropdown-entry.js +16 -16
- package/dist/esm/comp/md-dropdown.js +1 -1
- package/dist/esm/comp/md-editable-field-entry.js +2 -2
- package/dist/esm/comp/md-editable-field.js +1 -1
- package/dist/esm/comp/md-favorite-entry.js +1 -1
- package/dist/esm/comp/md-favorite.js +1 -1
- package/dist/esm/comp/md-floating-minimize-entry.js +1 -1
- package/dist/esm/comp/md-floating-minimize.js +1 -1
- package/dist/esm/comp/md-floating-modal-entry.js +11 -11
- package/dist/esm/comp/md-floating-modal.js +1 -1
- package/dist/esm/comp/md-form-entry.js +2 -2
- package/dist/esm/comp/md-form.js +1 -1
- package/dist/esm/comp/md-grabber-entry.js +5 -5
- package/dist/esm/comp/md-grabber.js +1 -1
- package/dist/esm/comp/md-help-text-entry.js +1 -1
- package/dist/esm/comp/md-help-text.js +1 -1
- package/dist/esm/comp/md-icon-entry.js +5 -5
- package/dist/esm/comp/md-icon.js +1 -1
- package/dist/esm/comp/md-inpu.js +1 -1
- package/dist/esm/comp/md-input-entry.js +2 -2
- package/dist/esm/comp/md-input-file.js +4 -4
- package/dist/esm/comp/md-input.js +1 -1
- package/dist/esm/comp/md-label-entry.js +1 -1
- package/dist/esm/comp/md-label.js +1 -1
- package/dist/esm/comp/md-link-entry.js +14 -14
- package/dist/esm/comp/md-link.js +1 -1
- package/dist/esm/comp/md-list-entry.js +1 -1
- package/dist/esm/comp/md-list-item-entry.js +1 -1
- package/dist/esm/comp/md-list-item.js +1 -1
- package/dist/esm/comp/md-list.js +1 -1
- package/dist/esm/comp/md-loading-entry.js +1 -1
- package/dist/esm/comp/md-loading.js +1 -1
- package/dist/esm/comp/md-meeting-alert-entry.js +2 -2
- package/dist/esm/comp/md-meeting-alert.js +1 -1
- package/dist/esm/comp/md-menu-entry.js +3 -3
- package/dist/esm/comp/md-menu-item-entry.js +3 -3
- package/dist/esm/comp/md-menu-item.js +1 -1
- package/dist/esm/comp/md-menu-overlay-entry.js +5 -5
- package/dist/esm/comp/md-menu-overlay.js +1 -1
- package/dist/esm/comp/md-menu.js +1 -1
- package/dist/esm/comp/md-modal-entry.js +13 -13
- package/dist/esm/comp/md-modal.js +1 -1
- package/dist/esm/comp/md-pagination-entry.js +2 -2
- package/dist/esm/comp/md-pagination.js +1 -1
- package/dist/esm/comp/md-phone-input-entry.js +11 -11
- package/dist/esm/comp/md-phone-input.js +1 -1
- package/dist/esm/comp/md-popover-entry.js +1 -1
- package/dist/esm/comp/md-popover.js +1 -1
- package/dist/esm/comp/md-presence-entry.js +1 -1
- package/dist/esm/comp/md-presence.js +1 -1
- package/dist/esm/comp/md-progress-bar-entry.js +1 -1
- package/dist/esm/comp/md-progress-bar.js +1 -1
- package/dist/esm/comp/md-radio-entry.js +2 -2
- package/dist/esm/comp/md-radio.js +1 -1
- package/dist/esm/comp/md-radiogroup-entry.js +2 -2
- package/dist/esm/comp/md-radiogroup.js +1 -1
- package/dist/esm/comp/md-slider-entry.js +2 -2
- package/dist/esm/comp/md-slider.js +1 -1
- package/dist/esm/comp/md-spinner-entry.js +1 -1
- package/dist/esm/comp/md-spinner.js +1 -1
- package/dist/esm/comp/md-tab-entry.js +3 -3
- package/dist/esm/comp/md-tab-panel-entry.js +1 -1
- package/dist/esm/comp/md-tab-panel.js +1 -1
- package/dist/esm/comp/md-tab.js +1 -1
- package/dist/esm/comp/md-table-advanced-entry.js +5 -5
- package/dist/esm/comp/md-table-advanced.js +1 -1
- package/dist/esm/comp/md-table-entry.js +2 -2
- package/dist/esm/comp/md-table.js +1 -1
- package/dist/esm/comp/md-tabs-entry.js +3 -3
- package/dist/esm/comp/md-tabs.js +1 -1
- package/dist/esm/comp/md-task-item-entry.js +7 -7
- package/dist/esm/comp/md-task-item.js +1 -1
- package/dist/esm/comp/md-theme-entry.js +3 -3
- package/dist/esm/comp/md-theme.js +1 -1
- package/dist/esm/comp/md-timepicker-entry.js +3 -3
- package/dist/esm/comp/md-timepicker.js +1 -1
- package/dist/esm/comp/md-toggle-switch-entry.js +2 -2
- package/dist/esm/comp/md-toggle-switch.js +1 -1
- package/dist/esm/comp/md-tooltip-entry.js +3 -3
- package/dist/esm/comp/md-tooltip.js +1 -1
- package/dist/esm/index-entry.js +194 -194
- package/dist/esm/index.js +1 -1
- package/dist/esm/managers/thememanager-entry.js +1 -1
- package/dist/esm/managers/thememanager.js +1 -1
- package/dist/index-entry.js +7 -7
- package/dist/types/components/avatar/Avatar.constants.d.ts +1 -1
- package/dist/types/components/combobox/ComboBox.d.ts +1 -1
- package/dist/types/components/taskitem/TaskItem.constants.d.ts +1 -0
- package/package.json +1 -1
- package/dist/esm/1618.js +0 -1
- package/dist/esm/2492.js +0 -1
- package/dist/esm/3013.js +0 -1
- package/dist/esm/3241.js +0 -1
- package/dist/esm/6429.js +0 -1
- package/dist/esm/6573.js +0 -1
- package/dist/esm/7262.js +0 -1
- package/dist/esm/8373.js +0 -1
- package/dist/esm/8881.js +0 -1
- package/dist/esm/9146.js +0 -1
- package/dist/esm/9488.js +0 -1
- package/dist/esm/9956.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var r,o,e={},s={};function t(r){var o=s[r];if(void 0!==o)return o.exports;var a=s[r]={exports:{}};return e[r](a,a.exports,t),a.exports}t.m=e,r=[],t.O=(o,e,s,a)=>{if(!e){var m=1/0;for(_=0;_<r.length;_++){for(var[e,s,a]=r[_],p=!0,i=0;i<e.length;i++)(!1&a||m>=a)&&Object.keys(t.O).every(r=>t.O[r](e[i]))?e.splice(i--,1):(p=!1,a<m&&(m=a));if(p){r.splice(_--,1);var f=s();void 0!==f&&(o=f)}}return o}a=a||0;for(var _=r.length;_>0&&r[_-1][2]>a;_--)r[_]=r[_-1];r[_]=[e,s,a]},t.d=(r,o)=>{for(var e in o)t.o(o,e)&&!t.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:o[e]})},t.o=(r,o)=>Object.prototype.hasOwnProperty.call(r,o);export{t as __webpack_require__};o={8111:0},t.C=r=>{var e,s,{__webpack_esm_ids__:a,__webpack_esm_modules__:m,__webpack_esm_runtime__:p}=r,i=0;for(e in m)t.o(m,e)&&(t.m[e]=m[e]);for(p&&p(t);i<a.length;i++)s=a[i],t.o(o,s)&&o[s]&&o[s][0](),o[a[i]]=0;t.O()},t.O.j=r=>0===o[r];import*as a from"../9609.js";t.C(a);import*as m from"../4084.js";t.C(m);import*as p from"../4955.js";t.C(p);import*as i from"../3517.js";t.C(i);import*as f from"../8165.js";t.C(f);import*as _ from"../6518.js";t.C(_);import*as n from"../3543.js";t.C(n);import*as v from"../7901.js";t.C(v);import*as j from"../4958.js";t.C(j);var c=t.O(void 0,[9609,4084,4955,3517,8165,6518,3543,7901,4958],()=>t(7901));const O=(c=t.O(c)).E;export{O as Badge};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../9609.js";import"../4084.js";import"../3543.js";import"../7901.js";import"../4958.js";export*from"../comp/md-badge-entry.js";
|
|
1
|
+
import"../9609.js";import"../4084.js";import"../4955.js";import"../3517.js";import"../8165.js";import"../6518.js";import"../3543.js";import"../7901.js";import"../4958.js";export*from"../comp/md-badge-entry.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as r from"lit/decorators.js";var e,t,a={3445(r,e,t){t.d(e,{Q:()=>a});var a,o=t(9609),s=t(4084),i=t(2927),n=t(8899),l=t(3517),p=t(2577),c=t(9485),u=function(r,e,t,a){var o,s=arguments.length,i=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(r,e,t,a);else for(var n=r.length-1;n>=0;n--)(o=r[n])&&(i=(s<3?o(i):s>3?o(e,t,i):o(e,t))||i);return s>3&&i&&Object.defineProperty(e,t,i),i};!function(r){let e=class extends i.LitElement{constructor(){super(...arguments),this.label="Breadcrumb",this.navCrumbs=[]}static get styles(){return[s.A,c.A]}setLastAnchorCurrent(){var r;(null===(r=this.anchors)||void 0===r?void 0:r.length)&&this.anchors[this.anchors.length-1].setAttribute("aria-current","page")}firstUpdated(r){super.firstUpdated(r),this.setLastAnchorCurrent()}update(r){super.update(r),r.has("navCrumbs")&&this.setLastAnchorCurrent()}handleClick(r){var e;const t=r.target;if(null===(e=this.anchors)||void 0===e?void 0:e.length){const r=Array.from(this.anchors).indexOf(t);-1!==r&&(this.navCrumbs=[...this.navCrumbs.splice(0,r+1)])}}render(){return i.html`
|
|
2
2
|
<nav aria-label="${(0,l.ifDefined)(this.label?this.label:void 0)}" class="md-breadcrumb">
|
|
3
|
-
<ul @click=${
|
|
4
|
-
${(0,p.repeat)(this.navCrumbs,
|
|
3
|
+
<ul @click=${r=>this.handleClick(r)}>
|
|
4
|
+
${(0,p.repeat)(this.navCrumbs,r=>r.link,r=>i.html`
|
|
5
5
|
<li>
|
|
6
|
-
<a href="${
|
|
6
|
+
<a href="${r.link}"> ${r.label} </a>
|
|
7
7
|
</li>
|
|
8
8
|
`)}
|
|
9
9
|
</ul>
|
|
10
10
|
</nav>
|
|
11
|
-
`}};
|
|
11
|
+
`}};u([(0,n.property)({type:String,attribute:"aria-label"})],e.prototype,"label",void 0),u([(0,n.property)({type:Array,attribute:"nav-crumbs",reflect:!0})],e.prototype,"navCrumbs",void 0),u([(0,n.queryAll)("a[href]")],e.prototype,"anchors",void 0),e=u([(0,o.w)("md-breadcrumb")],e),r.ELEMENT=e}(a||(a={}))},8899(e,t,a){var o,s;e.exports=(o={property:()=>r.property,queryAll:()=>r.queryAll},s={},a.d(s,o),s)}},o={};function s(r){var e=o[r];if(void 0!==e)return e.exports;var t=o[r]={exports:{}};return a[r](t,t.exports,s),t.exports}s.m=a,e=[],s.O=(r,t,a,o)=>{if(!t){var i=1/0;for(c=0;c<e.length;c++){for(var[t,a,o]=e[c],n=!0,l=0;l<t.length;l++)(!1&o||i>=o)&&Object.keys(s.O).every(r=>s.O[r](t[l]))?t.splice(l--,1):(n=!1,o<i&&(i=o));if(n){e.splice(c--,1);var p=a();void 0!==p&&(r=p)}}return r}o=o||0;for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[t,a,o]},s.d=(r,e)=>{for(var t in e)s.o(e,t)&&!s.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})},s.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e);export{s as __webpack_require__};t={555:0,1280:0,1756:0,4137:0,4613:0,6518:0,6994:0,8899:0,9375:0},s.C=r=>{var e,a,{__webpack_esm_ids__:o,__webpack_esm_modules__:i,__webpack_esm_runtime__:n}=r,l=0;for(e in i)s.o(i,e)&&(s.m[e]=i[e]);for(n&&n(s);l<o.length;l++)a=o[l],s.o(t,a)&&t[a]&&t[a][0](),t[o[l]]=0;s.O()},s.O.j=r=>0===t[r];import*as i from"../9609.js";s.C(i);import*as n from"../4084.js";s.C(n);import*as l from"../3517.js";s.C(l);import*as p from"../2577.js";s.C(p);import*as c from"../546.js";s.C(c);import*as u from"../9485.js";s.C(u);var h=s.O(void 0,[9609,4084,3517,2577,546,9485],()=>s(3445));const d=(h=s.O(h)).Q;export{d as Breadcrumb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../9609.js";import"../4084.js";import"../9485.js";export*from"../comp/md-breadcrumb-entry.js";
|
|
1
|
+
import"../9609.js";import"../4084.js";import"../3517.js";import"../2577.js";import"../546.js";import"../9485.js";export*from"../comp/md-breadcrumb-entry.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var t,e,i={5983(t,e,i){i.d(e,{$n:()=>$,El:()=>c,Fr:()=>u,Gh:()=>g,MS:()=>v,Sq:()=>f,r3:()=>b,uZ:()=>m});var o=i(6616),r=(i(9773),i(9609)),a=i(7154),s=i(4084),n=i(2927),p=i(8899),d=i(4955),l=i(3517),h=i(680),y=function(t,e,i,o){var r,a=arguments.length,s=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(s=(a<3?r(s):a>3?r(e,i,s):r(e,i))||s);return a>3&&s&&Object.defineProperty(e,i,s),s};const c=["20","24","28","32","36","40","44","52","56","72","68","84","size-none",20,24,28,32,36,40,44,52,56,68,72,68,84],u=["button","input","a"],b=["button","reset","submit"],v=["button","checkbox","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","switch","tab"],m=["primary","secondary","red","green","ghost","ghostInheritTextColor","white","darkGrey","promotional","tab","available","unavailable","engaged","idle","inverted-primary","inverted-secondary","inverted-ghost","dropdown","secondary-negative","secondary-positive","secondary-accent"],f=["blue","red","green","orange","yellow","mint","purple","pink","cyan","white","dark-gray","duck-egg","violet","color-none",""],g=["","off","polite","assertive"];var $;!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this._active=!1,this._tabIndex=0,this.ariaLabel="",this.ariaLabelledBy="",this.ariaLive="",this.ariaExpanded="",this.ariaHaspopup="false",this.ariaPressed="",this.circle=!1,this.rounded=!1,this.color="",this.containerLarge=!1,this.disabled=!1,this.href="",this.id="",this.value="",this.keyboardKey="",this.label="",this.loading=!1,this.outline=!1,this.hasRemoveStyle=!1,this.size="32",this.tag="button",this.type="button",this.role="button",this.variant="secondary",this.width="",this.maxWidth="",this.activityType="",this.iconActive=!1,this.isActive=!1,this.autofocus=!1,this.renderWidth=()=>this.width?`width: ${this.width};`:n.nothing,this.renderMaxWidth=()=>this.maxWidth?`max-width: ${this.maxWidth};`:n.nothing,this.getStyles=()=>{if(this.width||this.maxWidth)return n.html`
|
|
2
2
|
<style>
|
|
3
3
|
:host .md-button--${this.size} {
|
|
4
4
|
${this.renderWidth()};
|
|
@@ -76,4 +76,4 @@ import*as t from"lit";import*as e from"lit/decorators.js";import*as i from"lit/d
|
|
|
76
76
|
<div part="button-label" class="md-button__label">${this.label}</div>
|
|
77
77
|
</div>
|
|
78
78
|
`:n.html` ${this.buttonTemplate(this.tag)} `}
|
|
79
|
-
`}};y([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"active",null),y([(0,p.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),y([(0,p.property)({type:String})],e.prototype,"ariaLabel",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaLabelledBy",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaLive",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaExpanded",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaHaspopup",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaPressed",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"circle",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"rounded",void 0),y([(0,p.property)({type:String})],e.prototype,"color",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"containerLarge",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"disabled",void 0),y([(0,p.property)({type:String})],e.prototype,"href",void 0),y([(0,p.property)({type:String})],e.prototype,"id",void 0),y([(0,p.property)({type:String})],e.prototype,"value",void 0),y([(0,p.property)({type:String})],e.prototype,"keyboardKey",void 0),y([(0,p.property)({type:String})],e.prototype,"label",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"loading",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"outline",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"hasRemoveStyle",void 0),y([(0,p.property)({type:String})],e.prototype,"size",void 0),y([(0,p.property)({type:String})],e.prototype,"tag",void 0),y([(0,p.property)({type:String})],e.prototype,"type",void 0),y([(0,p.property)({type:String})],e.prototype,"role",void 0),y([(0,p.property)({type:String})],e.prototype,"variant",void 0),y([(0,p.property)({type:String})],e.prototype,"width",void 0),y([(0,p.property)({type:String})],e.prototype,"maxWidth",void 0),y([(0,p.property)({type:String})],e.prototype,"activityType",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"iconActive",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"isActive",void 0),y([(0,p.property)({type:String,attribute:"aria-describedby"})],e.prototype,"ariaDescribedBy",void 0),y([(0,p.property)({attribute:!1})],e.prototype,"clickFunction",void 0),y([(0,p.property)({type:Boolean,attribute:"is-placeholder-text"})],e.prototype,"isPlaceholderText",void 0),y([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),y([(0,p.query)(".md-button")],e.prototype,"button",void 0),e=y([(0,r.w)("md-button")],e),t.ELEMENT=e}($||($={}))},
|
|
79
|
+
`}};y([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"active",null),y([(0,p.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),y([(0,p.property)({type:String})],e.prototype,"ariaLabel",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaLabelledBy",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaLive",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaExpanded",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaHaspopup",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaPressed",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"circle",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"rounded",void 0),y([(0,p.property)({type:String})],e.prototype,"color",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"containerLarge",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"disabled",void 0),y([(0,p.property)({type:String})],e.prototype,"href",void 0),y([(0,p.property)({type:String})],e.prototype,"id",void 0),y([(0,p.property)({type:String})],e.prototype,"value",void 0),y([(0,p.property)({type:String})],e.prototype,"keyboardKey",void 0),y([(0,p.property)({type:String})],e.prototype,"label",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"loading",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"outline",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"hasRemoveStyle",void 0),y([(0,p.property)({type:String})],e.prototype,"size",void 0),y([(0,p.property)({type:String})],e.prototype,"tag",void 0),y([(0,p.property)({type:String})],e.prototype,"type",void 0),y([(0,p.property)({type:String})],e.prototype,"role",void 0),y([(0,p.property)({type:String})],e.prototype,"variant",void 0),y([(0,p.property)({type:String})],e.prototype,"width",void 0),y([(0,p.property)({type:String})],e.prototype,"maxWidth",void 0),y([(0,p.property)({type:String})],e.prototype,"activityType",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"iconActive",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"isActive",void 0),y([(0,p.property)({type:String,attribute:"aria-describedby"})],e.prototype,"ariaDescribedBy",void 0),y([(0,p.property)({attribute:!1})],e.prototype,"clickFunction",void 0),y([(0,p.property)({type:Boolean,attribute:"is-placeholder-text"})],e.prototype,"isPlaceholderText",void 0),y([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),y([(0,p.query)(".md-button")],e.prototype,"button",void 0),e=y([(0,r.w)("md-button")],e),t.ELEMENT=e}($||($={}))}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var a=o[t]={exports:{}};return i[t](a,a.exports,r),a.exports}r.m=i,t=[],r.O=(e,i,o,a)=>{if(!i){var s=1/0;for(l=0;l<t.length;l++){for(var[i,o,a]=t[l],n=!0,p=0;p<i.length;p++)(!1&a||s>=a)&&Object.keys(r.O).every(t=>r.O[t](i[p]))?i.splice(p--,1):(n=!1,a<s&&(s=a));if(n){t.splice(l--,1);var d=o();void 0!==d&&(e=d)}}return e}a=a||0;for(var l=t.length;l>0&&t[l-1][2]>a;l--)t[l]=t[l-1];t[l]=[i,o,a]},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{r as __webpack_require__};e={5156:0,5983:0},r.C=t=>{var i,o,{__webpack_esm_ids__:a,__webpack_esm_modules__:s,__webpack_esm_runtime__:n}=t,p=0;for(i in s)r.o(s,i)&&(r.m[i]=s[i]);for(n&&n(r);p<a.length;p++)o=a[p],r.o(e,o)&&e[o]&&e[o][0](),e[a[p]]=0;r.O()},r.O.j=t=>0===e[t];import*as a from"../9609.js";r.C(a);import*as s from"../4084.js";r.C(s);import*as n from"../4955.js";r.C(n);import*as p from"../3517.js";r.C(p);import*as d from"../1156.js";r.C(d);import*as l from"../3305.js";r.C(l);import*as h from"../4739.js";r.C(h);import*as y from"../7154.js";r.C(y);import*as c from"../9773.js";r.C(c);import*as u from"../519.js";r.C(u);import*as b from"../8165.js";r.C(b);import*as v from"../9375.js";r.C(v);var m=r.O(void 0,[9609,4084,4955,3517,1156,3305,4739,7154,9773,519,8165,9375],()=>r(5983));const f=(m=r.O(m)).$n,g=m.Gh,$=m.Sq,x=m.MS,_=m.El,S=m.Fr,C=m.r3,w=m.uZ;export{f as Button,g as buttonAriaLive,$ as buttonColor,x as buttonRoles,_ as buttonSize,S as buttonTag,C as buttonType,w as buttonVariant};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
var t,e,s={2890(t,e,s){s.d(e,{e:()=>i});var i,r=s(2900),o=s(7704),n=s(4084),d=s(2927),l=s(8899),a=s(2670),c=function(t,e,s,i){var r,o=arguments.length,n=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var d=t.length-1;d>=0;d--)(r=t[d])&&(n=(o<3?r(n):o>3?r(e,s,n):r(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n};!function(t){let e=class extends((0,o.TS)((0,o.yC)(d.LitElement))){constructor(){super(...arguments),this.active=0,this.tabIndex=0,this.newMomentum=!1,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get slotElement(){return this.buttonSlot}static get styles(){return[n.A,a.A]}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","group")}setButtonTabIndex(){this.slotted.forEach(t=>t.tabIndex=-1)}updated(t){super.updated(t),t.has("slotted")&&(this.setButtonTabIndex(),this.setFirstActive())}get selectedBtnValue(){return this.slotted[this.active].value}notifySelectedChange(){this.dispatchEvent(new CustomEvent("button-group-change",{detail:{selected:this.selectedBtnValue},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}setSelected(t){var e,s;const i=this.findSelectedBtnIndex();-1!==i&&i!==t&&(null===(e=this.slotted[i])||void 0===e||e.toggleAttribute("selected",!1)),null===(s=this.slotted[t])||void 0===s||s.toggleAttribute("selected",!0)}setFirstActive(){-1===this.findSelectedBtnIndex()&&this.setSelected(this.active)}findBtnIndex(t){const e=t.composedPath();return this.slotted.findIndex(t=>e.includes(t))}findSelectedBtnIndex(){return this.slotted.findIndex(t=>t.hasAttribute("selected"))}isBtnDisabled(t){return this.slotted[t].disabled}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}switchBtnOnArrowPress(t,e=1){const s=this.getAvailableSelectedIndex(t,e);-1!==s&&(this.active=s,this.setSelected(s),this.notifySelectedChange())}getAvailableSelectedIndex(t,e=1){const s=this.slotted.length;for(let i=0,r=t;i<s;i+=1,r+=e){r<0?r=s-1:r>=s&&(r=0);const t=this.slotted[r];if(this.isFocusable(t))return r}return-1}isFocusable(t){return!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")}handleClick(t){const e=this.findBtnIndex(t);-1!==e&&(this.isBtnDisabled(e)||(this.active=e,this.setSelected(e),this.notifySelectedChange()))}handleKeyDown(t){const{code:e}=t;switch(e){case r.Uz.Enter:case r.Uz.Space:this.isBtnDisabled(this.active)||(this.setSelected(this.active),this.notifySelectedChange());break;case r.Uz.ArrowLeft:0===this.active?this.switchBtnOnArrowPress(this.slotted.length-1,-1):this.switchBtnOnArrowPress(this.active-1,-1);break;case r.Uz.ArrowRight:this.active===this.slotted.length-1?this.switchBtnOnArrowPress(0):this.switchBtnOnArrowPress(this.active+1)}}render(){return d.html`
|
|
2
2
|
<div role="group" class="md-button-group" part="button-group">
|
|
3
3
|
<slot name="button"></slot>
|
|
4
4
|
</div>
|
|
5
|
-
`}};c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"active",void 0),c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"newMomentum",void 0),c([(0,l.query)("slot[name='button']")],e.prototype,"buttonSlot",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=c([(0,o.wW)("md-button-group")],e),t.ELEMENT=e}(i||(i={}))},7704(t,e,s){s.d(e,{TS:()=>r.T,wW:()=>o.w,yC:()=>i.y}),s(2364);var i=s(3203),r=(s(9938),s(5201),s(4781),s(608)),o=s(9609)}
|
|
5
|
+
`}};c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"active",void 0),c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"newMomentum",void 0),c([(0,l.query)("slot[name='button']")],e.prototype,"buttonSlot",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=c([(0,o.wW)("md-button-group")],e),t.ELEMENT=e}(i||(i={}))},7704(t,e,s){s.d(e,{TS:()=>r.T,wW:()=>o.w,yC:()=>i.y}),s(2364);var i=s(3203),r=(s(9938),s(5201),s(4781),s(608)),o=s(9609)}},i={};function r(t){var e=i[t];if(void 0!==e)return e.exports;var o=i[t]={exports:{}};return s[t](o,o.exports,r),o.exports}r.m=s,t=[],r.O=(e,s,i,o)=>{if(!s){var n=1/0;for(c=0;c<t.length;c++){for(var[s,i,o]=t[c],d=!0,l=0;l<s.length;l++)(!1&o||n>=o)&&Object.keys(r.O).every(t=>r.O[t](s[l]))?s.splice(l--,1):(d=!1,o<n&&(n=o));if(d){t.splice(c--,1);var a=i();void 0!==a&&(e=a)}}return e}o=o||0;for(var c=t.length;c>0&&t[c-1][2]>o;c--)t[c]=t[c-1];t[c]=[s,i,o]},r.d=(t,e)=>{for(var s in e)r.o(e,s)&&!r.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{r as __webpack_require__};e={561:0,2942:0,5310:0,5323:0,7704:0,8180:0},r.C=t=>{var s,i,{__webpack_esm_ids__:o,__webpack_esm_modules__:n,__webpack_esm_runtime__:d}=t,l=0;for(s in n)r.o(n,s)&&(r.m[s]=n[s]);for(d&&d(r);l<o.length;l++)i=o[l],r.o(e,i)&&e[i]&&e[i][0](),e[o[l]]=0;r.O()},r.O.j=t=>0===e[t];import*as o from"../9609.js";r.C(o);import*as n from"../4084.js";r.C(n);import*as d from"../2364.js";r.C(d);import*as l from"../9938.js";r.C(l);import*as a from"../4781.js";r.C(a);import*as c from"../5201.js";r.C(c);import*as h from"../5584.js";r.C(h);import*as p from"../2900.js";r.C(p);import*as u from"../2927.js";r.C(u);import*as b from"../608.js";r.C(b);import*as f from"../8899.js";r.C(f);import*as v from"../2670.js";r.C(v);var m=r.O(void 0,[9609,4084,2364,9938,4781,5201,5584,2900,2927,608,8899,2670],()=>r(2890));const y=(m=r.O(m)).e;export{y as ButtonGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../9609.js";import"../4084.js";import"../2364.js";import"../9938.js";import"../4781.js";import"../5201.js";import"../5584.js";import"../2900.js";import"../608.js";import"../2670.js";export*from"../comp/md-button-group-entry.js";
|
|
1
|
+
import"../9609.js";import"../4084.js";import"../2364.js";import"../9938.js";import"../4781.js";import"../5201.js";import"../5584.js";import"../2900.js";import"../2927.js";import"../608.js";import"../8899.js";import"../2670.js";export*from"../comp/md-button-group-entry.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../9609.js";import"../4084.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../519.js";export*from"../comp/md-button-entry.js";
|
|
1
|
+
import"../9609.js";import"../4084.js";import"../4955.js";import"../3517.js";import"../1156.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../519.js";import"../8165.js";import"../9375.js";export*from"../comp/md-button-entry.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var t,e,s={7224(t,e,s){s.d(e,{a:()=>i,p:()=>r}),s(5983),s(1821);var i,r,o=s(9609),a=s(4084),d=s(2927),n=s(8899),m=s(4955),c=s(5308),h=function(t,e,s,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,s,i);else for(var d=t.length-1;d>=0;d--)(r=t[d])&&(a=(o<3?r(a):o>3?r(e,s,a):r(e,s))||a);return o>3&&a&&Object.defineProperty(e,s,a),a};!function(t){t.USER_QUERY="user_query",t.RESPONSE="response"}(i||(i={})),function(t){let e=class extends d.LitElement{constructor(){super(...arguments),this.id="",this.title="",this.cardText="",this.timestamp="",this.summariseMoreVisible=!1,this.variant=i.RESPONSE,this.copyChecked=!1,this.thumbsUpChecked=!1,this.thumbsDownChecked=!1}static get styles(){return[a.A,c.A]}thumbsUpToggled(){this.thumbsDownChecked=!1,this.thumbsUpChecked=!this.thumbsUpChecked,this.dispatchEvent(new CustomEvent("thumbs-up-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}thumbsDownToggled(){this.thumbsUpChecked=!1,this.thumbsDownChecked=!this.thumbsDownChecked,this.dispatchEvent(new CustomEvent("thumbs-down-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}summariseMoreToggled(){this.dispatchEvent(new CustomEvent("summarise-more-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}copyToggled(){navigator.clipboard.writeText(this.cardText),this.copyChecked=!0,setTimeout(()=>{this.copyChecked=!1},2e3)}get bottomBorderRadiusClass(){return this.timestamp?"with-bottom-border-radius":"no-bottom-border-radius"}get cardTextClassMap(){return{"md-card-ai-card-body-user-query":this.variant===i.USER_QUERY,[`md-card-ai-card-body-response-${this.bottomBorderRadiusClass}`]:this.variant===i.RESPONSE}}renderHeader(){return this.variant===i.RESPONSE&&""!==this.title?d.html`
|
|
2
2
|
<div class="md-card-ai-header">
|
|
3
3
|
<slot name="card-header-aside">
|
|
4
4
|
<md-icon name="cisco-ai-assistant-color-gradient" iconSet="momentumBrandVisuals"></md-icon>
|
|
@@ -74,4 +74,4 @@ import*as t from"@momentum-ui/icons/data/momentumUiIconsNames.json";import*as e
|
|
|
74
74
|
${this.renderHeader()}
|
|
75
75
|
<div class="content-margin">${this.renderCardText()} ${this.renderFooter()}</div>
|
|
76
76
|
</div>
|
|
77
|
-
`}};
|
|
77
|
+
`}};h([(0,n.property)({type:String})],e.prototype,"id",void 0),h([(0,n.property)({type:String})],e.prototype,"title",void 0),h([(0,n.property)({type:String})],e.prototype,"cardText",void 0),h([(0,n.property)({type:String})],e.prototype,"timestamp",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"summariseMoreVisible",void 0),h([(0,n.property)({type:String})],e.prototype,"variant",void 0),h([(0,n.state)()],e.prototype,"copyChecked",void 0),h([(0,n.state)()],e.prototype,"thumbsUpChecked",void 0),h([(0,n.state)()],e.prototype,"thumbsDownChecked",void 0),e=h([(0,o.w)("md-card-ai")],e),t.ELEMENT=e}(r||(r={}))}},i={};function r(t){var e=i[t];if(void 0!==e)return e.exports;var o=i[t]={exports:{}};return s[t](o,o.exports,r),o.exports}r.m=s,t=[],r.O=(e,s,i,o)=>{if(!s){var a=1/0;for(c=0;c<t.length;c++){for(var[s,i,o]=t[c],d=!0,n=0;n<s.length;n++)(!1&o||a>=o)&&Object.keys(r.O).every(t=>r.O[t](s[n]))?s.splice(n--,1):(d=!1,o<a&&(a=o));if(d){t.splice(c--,1);var m=i();void 0!==m&&(e=m)}}return e}o=o||0;for(var c=t.length;c>0&&t[c-1][2]>o;c--)t[c]=t[c-1];t[c]=[s,i,o]},r.d=(t,e)=>{for(var s in e)r.o(e,s)&&!r.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{r as __webpack_require__};e={4971:0},r.C=t=>{var s,i,{__webpack_esm_ids__:o,__webpack_esm_modules__:a,__webpack_esm_runtime__:d}=t,n=0;for(s in a)r.o(a,s)&&(r.m[s]=a[s]);for(d&&d(r);n<o.length;n++)i=o[n],r.o(e,i)&&e[i]&&e[i][0](),e[o[n]]=0;r.O()},r.O.j=t=>0===e[t];import*as o from"../9609.js";r.C(o);import*as a from"../4084.js";r.C(a);import*as d from"../4955.js";r.C(d);import*as n from"../3517.js";r.C(n);import*as m from"../1156.js";r.C(m);import*as c from"../3305.js";r.C(c);import*as h from"../4739.js";r.C(h);import*as p from"../7154.js";r.C(p);import*as l from"../9773.js";r.C(l);import*as u from"../5983.js";r.C(u);import*as b from"../7755.js";r.C(b);import*as v from"../1821.js";r.C(v);import*as C from"../4980.js";r.C(C);import*as g from"../519.js";r.C(g);import*as y from"../9500.js";r.C(y);import*as f from"../4137.js";r.C(f);import*as k from"../8165.js";r.C(k);import*as T from"../2451.js";r.C(T);var E=r.O(void 0,[9609,4084,4955,3517,1156,3305,4739,7154,9773,5983,7755,1821,4980,519,9500,4137,8165,2451],()=>r(7224));const $=(E=r.O(E)).p,j=E.a;export{$ as CardAi,j as CardAiVariant};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../9609.js";import"../4084.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../5983.js";import"../
|
|
1
|
+
import"../9609.js";import"../4084.js";import"../4955.js";import"../3517.js";import"../1156.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../5983.js";import"../7755.js";import"../1821.js";import"../4980.js";import"../519.js";import"../9500.js";import"../4137.js";import"../8165.js";import"../2451.js";export*from"../comp/md-card-ai-entry.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var e,t,s={1499(e,t,s){s.d(t,{Z:()=>i}),s(5983),s(23),s(1821),s(6131),s(8552),s(708),s(9613);var i,o=s(9609),r=s(4084),a=s(2927),d=s(2577),l=s(2900),n=s(4242),c=s(8899),h=function(e,t,s,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,i);else for(var d=e.length-1;d>=0;d--)(o=e[d])&&(a=(r<3?o(a):r>3?o(t,s,a):o(t,s))||a);return r>3&&a&&Object.defineProperty(t,s,a),a};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.title="title",this.subtitle="",this.id="",this.info="",this.infoAriaLabel="Card Info",this.menuAriaLabel="Card Menu",this.menuOptions=[]}static get styles(){return[r.A,n.A]}handleCardClick(){this.dispatchEvent(new CustomEvent("card-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardKeyDown(e){e.code!==l.Uz.Enter&&e.code!==l.Uz.Space||this.dispatchEvent(new CustomEvent("card-keydown",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardMenuEvent(e,t){e.stopPropagation();const s=t.toLowerCase();this.dispatchEvent(new CustomEvent("card-menu-click",{detail:{id:this.id,type:s},bubbles:!0,composed:!0}))}handleCardMenuKeyDown(e,t){e.preventDefault(),this.dispatchEvent(new CustomEvent("card-menu-keydown",{detail:{id:this.id,type:t.toLowerCase(),keyCode:e.code},bubbles:!0,composed:!0}))}render(){return a.html`
|
|
2
2
|
<div
|
|
3
3
|
class="md-card"
|
|
4
4
|
id="${this.id}"
|
|
@@ -65,7 +65,7 @@ import*as e from"@momentum-ui/icons/data/momentumUiIconsNames.json";import*as t
|
|
|
65
65
|
<slot name="footer"> </slot>
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
68
|
-
`}};
|
|
68
|
+
`}};h([(0,c.property)({type:String})],t.prototype,"title",void 0),h([(0,c.property)({type:String})],t.prototype,"subtitle",void 0),h([(0,c.property)({type:String})],t.prototype,"id",void 0),h([(0,c.property)({type:String})],t.prototype,"info",void 0),h([(0,c.property)({type:String,attribute:"info-aria-label"})],t.prototype,"infoAriaLabel",void 0),h([(0,c.property)({type:String,attribute:"menu-aria-label"})],t.prototype,"menuAriaLabel",void 0),h([(0,c.property)({type:Array})],t.prototype,"menuOptions",void 0),t=h([(0,o.w)("md-card")],t),e.ELEMENT=t}(i||(i={}))},23(e,t,s){s(1821);var i,o=s(2900),r=s(7704),a=s(9609),d=s(4084),l=s(2927),n=s(8899),c=s(4955),h=s(3517),p=s(6816),m=function(e,t,s,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,i);else for(var d=e.length-1;d>=0;d--)(o=e[d])&&(a=(r<3?o(a):r>3?o(t,s,a):o(t,s))||a);return r>3&&a&&Object.defineProperty(t,s,a),a};!function(e){let t=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.value="Select favorite",this.id="",this.label="Favorite"}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleElectKeyDown),this.addEventListener("click",this.handleFavorite)}static get styles(){return[d.A,p.A]}handleFavorite(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-toggle",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}handleElectKeyDown(e){e.code!==o.Uz.Enter&&e.code!==o.Uz.Space||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-keydown",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleElectKeyDown),this.removeEventListener("click",this.handleFavorite)}get favoriteClassMap(){return{"md-favorite--active":this.checked,"md-favorite--disabled":this.disabled}}render(){return l.html`
|
|
69
69
|
<label
|
|
70
70
|
for="favorite-checkbox"
|
|
71
71
|
id="${this.id}"
|
|
@@ -74,7 +74,7 @@ import*as e from"@momentum-ui/icons/data/momentumUiIconsNames.json";import*as t
|
|
|
74
74
|
>
|
|
75
75
|
<input
|
|
76
76
|
type="checkbox"
|
|
77
|
-
aria-label=${(0,
|
|
77
|
+
aria-label=${(0,h.ifDefined)(this.label.length?this.label:void 0)}
|
|
78
78
|
value=${this.value}
|
|
79
79
|
?checked=${this.checked}
|
|
80
80
|
?disabled=${this.disabled}
|
|
@@ -87,12 +87,12 @@ import*as e from"@momentum-ui/icons/data/momentumUiIconsNames.json";import*as t
|
|
|
87
87
|
size="16"
|
|
88
88
|
></md-icon>
|
|
89
89
|
</label>
|
|
90
|
-
`}};
|
|
90
|
+
`}};m([(0,n.property)({type:Boolean})],t.prototype,"disabled",void 0),m([(0,n.property)({type:Boolean})],t.prototype,"checked",void 0),m([(0,n.property)({type:String})],t.prototype,"value",void 0),m([(0,n.property)({type:String})],t.prototype,"id",void 0),m([(0,n.property)({type:String})],t.prototype,"label",void 0),t=m([(0,a.w)("md-favorite")],t),e.ELEMENT=t}(i||(i={}))},6131(e,t,s){var i,o=s(2900),r=s(7704),a=s(9609),d=s(4084),l=s(2927),n=s(8899),c=s(3517),h=s(740),p=function(e,t,s,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,i);else for(var d=e.length-1;d>=0;d--)(o=e[d])&&(a=(r<3?o(a):r>3?o(t,s,a):o(t,s))||a);return r>3&&a&&Object.defineProperty(t,s,a),a};!function(e){let t=class extends((0,r.Io)(l.LitElement)){constructor(){super(...arguments),this.alignment="vertical",this.label="option",this.activated=-1,this._role="listbox"}firstUpdated(e){super.firstUpdated(e),"none"!==this._role&&this.setAttribute("aria-label",this.label)}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}isFocusable(e){return!e.hasAttribute("hidden")}connectedCallback(){super.connectedCallback();const e=this.getAttribute("role");this._role=e||"listbox",this.removeAttribute("role"),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}findListItemIndex(e){const t=e.composedPath();return this.slotted.findIndex(e=>t.includes(e))}switchListItemOnArrowPress(e,t=1){const s=super.getAvailableSelectedIndex(e,t);-1!==s&&(this.selected=s)}setActivated(e){-1!==e&&(this.activated=e,this.selected=e,this.setSelected(e))}findSelectedListItemIndex(){return this.slotted.findIndex(e=>e.selected)}setSelected(e){const t=this.findSelectedListItemIndex();-1!==t&&t!==e&&(this.slotted[t].selected=!1),this.slotted[e]&&(this.slotted[e].selected=!0)}updated(e){super.updated(e),e.has("slotted")&&this.setActivated(this.activated),e.has("activated")&&this.setActivated(this.activated),e.has("label")&&"none"!==this._role&&this.setAttribute("aria-label",this.label)}isListItemDisabled(e){var t;const s=this.slotted[e];return null===(t=null==s?void 0:s.disabled)||void 0===t||t}handleClick(e){const t=this.findListItemIndex(e);-1!==t&&(this.isListItemDisabled(t)||(this.setActivated(t),this.notifySelectedChange()))}shouldElementHandleKey(e,t){if(e.hasAttribute("data-handles-keys")||e.closest("[data-handles-keys]"))return!0;const s=e.tagName.toLowerCase(),i=e.nodeName.toLowerCase(),r="input"===i||"textarea"===i||"select"===i,a=e.getAttribute("role"),d=e.hasAttribute("contenteditable")||"false"===e.getAttribute("aria-readonly"),l=[o.Uz.ArrowUp,o.Uz.ArrowDown,o.Uz.ArrowLeft,o.Uz.ArrowRight],n=[o.Uz.Enter,o.Uz.Space];return l.includes(t)?r||d||"textbox"===a||"combobox"===a||"listbox"===a||"menu"===a||"slider"===a||"scrollbar"===a||"tablist"===a||s.startsWith("md-")&&("md-input"===s||"md-select"===s||"md-combobox"===s):n.includes(t)?"button"===a||"link"===a||"checkbox"===a||"radio"===a||"button"===s||"a"===s||"md-button"===s||"md-checkbox"===s||"md-radio"===s||r:(t===o.Uz.Home||t===o.Uz.End)&&(r||d||"textbox"===a||"md-input"===s)}handleKeyDown(e){const t=e.composedPath()[0];if(this.shouldElementHandleKey(t,e.code))return;const{code:s}=e;switch(s){case o.Uz.End:this.switchListItemOnArrowPress(this.slotted.length-1);break;case o.Uz.Home:this.switchListItemOnArrowPress(0);break;case o.Uz.ArrowUp:case o.Uz.ArrowLeft:e.preventDefault(),0===this.selected?this.switchListItemOnArrowPress(this.slotted.length-1,-1):this.switchListItemOnArrowPress(this.selected-1,-1);break;case o.Uz.ArrowDown:case o.Uz.ArrowRight:e.preventDefault(),this.selected===this.slotted.length-1?this.switchListItemOnArrowPress(0):this.switchListItemOnArrowPress(this.selected+1);break;case o.Uz.Enter:case o.Uz.Space:this.isListItemDisabled(this.selected)||(this.setActivated(this.selected),this.notifySelectedChange())}}get slotElement(){return this.listItemSlot}static get styles(){return[d.A,h.A]}render(){return l.html`
|
|
91
91
|
<ul role=${(0,c.ifDefined)("list"!==this._role?this._role:void 0)} class="md-list" part="list">
|
|
92
92
|
<slot name="list-item"></slot>
|
|
93
93
|
</ul>
|
|
94
|
-
`}};
|
|
94
|
+
`}};p([(0,n.property)({type:String,reflect:!0})],t.prototype,"alignment",void 0),p([(0,n.property)({type:String})],t.prototype,"label",void 0),p([(0,n.property)({type:Number,reflect:!0})],t.prototype,"activated",void 0),p([(0,n.query)("slot[name='list-item']")],t.prototype,"listItemSlot",void 0),t=p([(0,a.w)("md-list")],t),e.ELEMENT=t}(i||(i={}))},8552(e,t,s){var i,o=s(7704),r=s(9609),a=s(4084),d=s(2927),l=s(8899),n=s(4955),c=s(740),h=function(e,t,s,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,i);else for(var d=e.length-1;d>=0;d--)(o=e[d])&&(a=(r<3?o(a):r>3?o(t,s,a):o(t,s))||a);return r>3&&a&&Object.defineProperty(t,s,a),a};!function(e){let t=class extends((0,o.yC)(d.LitElement)){constructor(){super(...arguments),this.role="option",this.tabIndex=-1,this.shape="rounded",this._disabled=!1,this._selected=!1}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.setAttribute("aria-disabled",`${e}`),this.requestUpdate("disabled",t)}get selected(){return this._selected}set selected(e){const t=this._selected;this._selected=e,"option"===this.role&&this.setAttribute("aria-selected",`${e}`),this.requestUpdate("selected",t)}get listItemTemplateClassMap(){return{[`md-list-item--${this.shape}`]:!!this.shape}}static get styles(){return[a.A,c.A]}render(){return d.html`
|
|
95
95
|
<div class="md-list-item ${(0,n.classMap)(this.listItemTemplateClassMap)}" part="list-item">
|
|
96
96
|
<slot></slot>
|
|
97
97
|
</div>
|
|
98
|
-
`}};
|
|
98
|
+
`}};h([(0,l.property)({type:String,reflect:!0})],t.prototype,"role",void 0),h([(0,l.property)({type:Number,reflect:!0})],t.prototype,"tabIndex",void 0),h([(0,l.property)({type:String,reflect:!0})],t.prototype,"shape",void 0),h([(0,l.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),h([(0,l.property)({type:Boolean,reflect:!0})],t.prototype,"selected",null),t=h([(0,r.w)("md-list-item")],t),e.ELEMENT=t}(i||(i={}))},7704(e,t,s){s.d(t,{Io:()=>r.I,UM:()=>o.U,yC:()=>i.y}),s(2364);var i=s(3203),o=(s(9938),s(5201)),r=s(4781);s(608)}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return s[e](r,r.exports,o),r.exports}o.m=s,e=[],o.O=(t,s,i,r)=>{if(!s){var a=1/0;for(c=0;c<e.length;c++){for(var[s,i,r]=e[c],d=!0,l=0;l<s.length;l++)(!1&r||a>=r)&&Object.keys(o.O).every(e=>o.O[e](s[l]))?s.splice(l--,1):(d=!1,r<a&&(a=r));if(d){e.splice(c--,1);var n=i();void 0!==n&&(t=n)}}return t}r=r||0;for(var c=e.length;c>0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[s,i,r]},o.d=(e,t)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);export{o as __webpack_require__};t={23:0,561:0,1462:0,2942:0,5323:0,6131:0,7704:0,8180:0,8552:0},o.C=e=>{var s,i,{__webpack_esm_ids__:r,__webpack_esm_modules__:a,__webpack_esm_runtime__:d}=e,l=0;for(s in a)o.o(a,s)&&(o.m[s]=a[s]);for(d&&d(o);l<r.length;l++)i=r[l],o.o(t,i)&&t[i]&&t[i][0](),t[r[l]]=0;o.O()},o.O.j=e=>0===t[e];import*as r from"../9609.js";o.C(r);import*as a from"../4084.js";o.C(a);import*as d from"../4955.js";o.C(d);import*as l from"../3517.js";o.C(l);import*as n from"../1156.js";o.C(n);import*as c from"../3305.js";o.C(c);import*as h from"../4739.js";o.C(h);import*as p from"../7154.js";o.C(p);import*as m from"../9773.js";o.C(m);import*as u from"../5983.js";o.C(u);import*as b from"../7755.js";o.C(b);import*as f from"../1821.js";o.C(f);import*as v from"../2364.js";o.C(v);import*as y from"../4980.js";o.C(y);import*as C from"../5308.js";o.C(C);import*as g from"../519.js";o.C(g);import*as w from"../9500.js";o.C(w);import*as k from"../2577.js";o.C(k);import*as E from"../2050.js";o.C(E);import*as j from"../8441.js";o.C(j);import*as A from"../608.js";o.C(A);import*as L from"../6525.js";o.C(L);import*as x from"../6343.js";o.C(x);import*as O from"../7162.js";o.C(O);import*as _ from"../7582.js";o.C(_);import*as I from"../708.js";o.C(I);import*as S from"../9613.js";o.C(S);import*as U from"../1756.js";o.C(U);import*as $ from"../740.js";o.C($);import*as z from"../6816.js";o.C(z);import*as D from"../7557.js";o.C(D);import*as P from"../4242.js";o.C(P);var M=o.O(void 0,[9609,4084,4955,3517,1156,3305,4739,7154,9773,5983,7755,1821,2364,4980,5308,519,9500,2577,2050,8441,608,6525,6343,7162,7582,708,9613,1756,740,6816,7557,4242],()=>o(1499));const R=(M=o.O(M)).Z;export{R as Card};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as t from"
|
|
1
|
+
import*as t from"luxon";var e,r,a={7540(t,e,r){r.d(e,{h:()=>h,o:()=>m}),r(5983),r(1821),r(9613);var a=r(9609),o=r(4084),i=r(2927),s=r(8899),n=r(4955),d=r(9642),p=r(513),l=function(t,e,r,a){var o,i=arguments.length,s=i<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,a);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};const c="hh:mm:ss";var m,h;!function(t){t.DEFAULT="default",t.ACTIVE="active",t.INACTIVE="inactive"}(m||(m={})),function(t){let e=class extends i.LitElement{constructor(){super(...arguments),this.state=m.DEFAULT,this.identifier=void 0,this.header=void 0,this.info=void 0,this.data=void 0,this.createdTime=0,this.active=!1,this.expandable=!1,this.expandAriaLabel="Expand for more details",this.renderedData=""}connectedCallback(){super.connectedCallback(),this.checkForExtraInfoSlot()}disconnectedCallback(){super.disconnectedCallback(),this.clearInterval()}clearInterval(){this.interval&&(clearInterval(this.interval),this.interval=void 0)}static get styles(){return[o.A,p.A]}get isCardActive(){return this.state===m.ACTIVE}willUpdate(t){super.willUpdate(t),(t.has("active")||t.has("data")||t.has("createdTime"))&&this.calculateRenderedData()}expandCardToggled(){var t;this.state=this.isCardActive?m.DEFAULT:m.ACTIVE,this.dispatchEvent(new CustomEvent("expand-card-toggled",{detail:{identifier:null!==(t=this.identifier)&&void 0!==t?t:"",active:this.isCardActive},bubbles:!0,composed:!0}))}checkForExtraInfoSlot(){var t;(null===(t=this.extraInfoSlot)||void 0===t?void 0:t.assignedNodes().length)>0?this.setAttribute("has-extra-info",""):this.removeAttribute("has-extra-info")}handleExtraInfoSlotChange(t){this.checkForExtraInfoSlot()}get cardClassMap(){return{"md-card-v2":!0,[`md-card--${this.state}`]:!0}}get contentClassMap(){return{"md-card-v2-content":!0,inactive:this.state===m.INACTIVE}}get footerExpandClassMap(){return{"md-card-v2-footer-expand":!0,hidden:!this.expandable}}get expandCardHandler(){return this.expandable?this.expandCardToggled:null}renderHeader(){return i.html`
|
|
2
2
|
<div class="md-card-v2-header-title">
|
|
3
3
|
<h3>${this.header}</h3>
|
|
4
4
|
${this.info?i.html`
|
|
@@ -10,7 +10,7 @@ import*as t from"@momentum-ui/icons/data/momentumUiIconsNames.json";import*as e
|
|
|
10
10
|
`:i.nothing}
|
|
11
11
|
</div>
|
|
12
12
|
`}renderExpandButton(){return i.html`
|
|
13
|
-
<div class="${(0,
|
|
13
|
+
<div class="${(0,n.classMap)(this.footerExpandClassMap)}">
|
|
14
14
|
<md-button ariaLabel="${this.expandAriaLabel}" circle size="28">
|
|
15
15
|
<md-icon
|
|
16
16
|
slot="icon"
|
|
@@ -27,10 +27,10 @@ import*as t from"@momentum-ui/icons/data/momentumUiIconsNames.json";import*as e
|
|
|
27
27
|
</div>
|
|
28
28
|
${this.renderExpandButton()}
|
|
29
29
|
</div>
|
|
30
|
-
`}calculateRenderedData(){this.clearInterval(),!this.active&&this.data?this.renderedData=this.data:this.active&&this.createdTime>0&&(this.renderedData=
|
|
31
|
-
<div class="${(0,
|
|
30
|
+
`}calculateRenderedData(){this.clearInterval(),!this.active&&this.data?this.renderedData=this.data:this.active&&this.createdTime>0&&(this.renderedData=d.Duration.fromMillis(Date.now()-this.createdTime).toFormat(c),this.interval=window.setInterval(()=>{this.renderedData=d.Duration.fromMillis(Date.now()-this.createdTime).toFormat(c)},1e3))}render(){return i.html`
|
|
31
|
+
<div class="${(0,n.classMap)(this.cardClassMap)}" @click=${this.expandCardHandler}>
|
|
32
32
|
<div class="md-card-v2-header">${this.renderHeader()}</div>
|
|
33
|
-
<div class="${(0,
|
|
33
|
+
<div class="${(0,n.classMap)(this.contentClassMap)}">
|
|
34
34
|
<h2>${this.renderedData}</h2>
|
|
35
35
|
<div class="md-card-v2-content-extra-info">
|
|
36
36
|
<slot name="card-extra-info" @slotchange=${this.handleExtraInfoSlotChange}></slot>
|
|
@@ -38,4 +38,4 @@ import*as t from"@momentum-ui/icons/data/momentumUiIconsNames.json";import*as e
|
|
|
38
38
|
</div>
|
|
39
39
|
${this.renderFooter()}
|
|
40
40
|
</div>
|
|
41
|
-
`}};
|
|
41
|
+
`}};l([(0,s.property)({type:String})],e.prototype,"state",void 0),l([(0,s.property)({type:String})],e.prototype,"identifier",void 0),l([(0,s.property)({type:String})],e.prototype,"header",void 0),l([(0,s.property)({type:String})],e.prototype,"info",void 0),l([(0,s.property)({type:String})],e.prototype,"data",void 0),l([(0,s.property)({type:Number})],e.prototype,"createdTime",void 0),l([(0,s.property)({type:Boolean})],e.prototype,"active",void 0),l([(0,s.property)({type:Boolean,reflect:!0})],e.prototype,"expandable",void 0),l([(0,s.property)({type:String,attribute:"expand-aria-label"})],e.prototype,"expandAriaLabel",void 0),l([(0,s.query)('slot[name="card-extra-info"]')],e.prototype,"extraInfoSlot",void 0),l([(0,s.state)()],e.prototype,"interval",void 0),l([(0,s.state)()],e.prototype,"renderedData",void 0),e=l([(0,a.w)("md-card-v2")],e),t.ELEMENT=e}(h||(h={}))},9642(e,r,a){var o,i;e.exports=(o={Duration:()=>t.Duration},i={},a.d(i,o),i)}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return a[t](r,r.exports,i),r.exports}i.m=a,e=[],i.O=(t,r,a,o)=>{if(!r){var s=1/0;for(l=0;l<e.length;l++){for(var[r,a,o]=e[l],n=!0,d=0;d<r.length;d++)(!1&o||s>=o)&&Object.keys(i.O).every(t=>i.O[t](r[d]))?r.splice(d--,1):(n=!1,o<s&&(s=o));if(n){e.splice(l--,1);var p=a();void 0!==p&&(t=p)}}return t}o=o||0;for(var l=e.length;l>0&&e[l-1][2]>o;l--)e[l]=e[l-1];e[l]=[r,a,o]},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{i as __webpack_require__};r={1521:0,9642:0},i.C=t=>{var e,a,{__webpack_esm_ids__:o,__webpack_esm_modules__:s,__webpack_esm_runtime__:n}=t,d=0;for(e in s)i.o(s,e)&&(i.m[e]=s[e]);for(n&&n(i);d<o.length;d++)a=o[d],i.o(r,a)&&r[a]&&r[a][0](),r[o[d]]=0;i.O()},i.O.j=t=>0===r[t];import*as s from"../9609.js";i.C(s);import*as n from"../4084.js";i.C(n);import*as d from"../4955.js";i.C(d);import*as p from"../3517.js";i.C(p);import*as l from"../1156.js";i.C(l);import*as c from"../3305.js";i.C(c);import*as m from"../4739.js";i.C(m);import*as h from"../7154.js";i.C(h);import*as v from"../9773.js";i.C(v);import*as f from"../5983.js";i.C(f);import*as C from"../7755.js";i.C(C);import*as u from"../1821.js";i.C(u);import*as y from"../2364.js";i.C(y);import*as x from"../4980.js";i.C(x);import*as b from"../5308.js";i.C(b);import*as g from"../9938.js";i.C(g);import*as j from"../9500.js";i.C(j);import*as E from"../4781.js";i.C(E);import*as D from"../5584.js";i.C(D);import*as A from"../8227.js";i.C(A);import*as I from"../2900.js";i.C(I);import*as $ from"../2050.js";i.C($);import*as _ from"../1280.js";i.C(_);import*as T from"../6343.js";i.C(T);import*as w from"../7582.js";i.C(w);import*as S from"../9613.js";i.C(S);import*as O from"../5323.js";i.C(O);import*as k from"../513.js";i.C(k);var M=i.O(void 0,[9609,4084,4955,3517,1156,3305,4739,7154,9773,5983,7755,1821,2364,4980,5308,9938,9500,4781,5584,8227,2900,2050,1280,6343,7582,9613,5323,513],()=>i(7540));const F=(M=i.O(M)).o,L=M.h;export{F as CardState,L as CardV2};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../9609.js";import"../4084.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../5983.js";import"../
|
|
1
|
+
import"../9609.js";import"../4084.js";import"../4955.js";import"../3517.js";import"../1156.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../5983.js";import"../7755.js";import"../1821.js";import"../2364.js";import"../4980.js";import"../5308.js";import"../9938.js";import"../9500.js";import"../4781.js";import"../5584.js";import"../8227.js";import"../2900.js";import"../2050.js";import"../1280.js";import"../6343.js";import"../7582.js";import"../9613.js";import"../5323.js";import"../513.js";export*from"../comp/md-card-v2-entry.js";
|
package/dist/esm/comp/md-card.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../9609.js";import"../4084.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../5983.js";import"../
|
|
1
|
+
import"../9609.js";import"../4084.js";import"../4955.js";import"../3517.js";import"../1156.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../5983.js";import"../7755.js";import"../1821.js";import"../2364.js";import"../4980.js";import"../5308.js";import"../519.js";import"../9500.js";import"../2577.js";import"../2050.js";import"../8441.js";import"../608.js";import"../6525.js";import"../6343.js";import"../7162.js";import"../7582.js";import"../708.js";import"../9613.js";import"../1756.js";import"../740.js";import"../6816.js";import"../7557.js";import"../4242.js";export*from"../comp/md-card-entry.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var t,e,s={5558(t,e,s){s.d(e,{c:()=>r}),s(2245);var r,i=s(9609),o=s(4084),a=s(2927),p=s(8899),m=s(3517),l=s(9316),c=function(t,e,s,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,s,r);else for(var p=t.length-1;p>=0;p--)(i=t[p])&&(a=(o<3?i(a):o>3?i(e,s,a):i(e,s))||a);return o>3&&a&&Object.defineProperty(e,s,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.title="",this.src="",this.time="",this.label="Avatar",this.status="",this.clickableTimestamp=!1,this.isSelected=!1,this.self=!1}get computedAvatarType(){return void 0!==this.avatarType?this.avatarType:this.self?"self":void 0}get computedYouLabel(){return this.selfLabel||"You"}get isSelfType(){return void 0===this.avatarType?this.self:"self"===this.avatarType}timeStampClicked(){this.dispatchEvent(new CustomEvent("timestamp-clicked",{bubbles:!0,composed:!0}))}static get styles(){return[o.A,l.A]}render(){return a.html`
|
|
2
2
|
<div class="md-chat-message">
|
|
3
3
|
<div class="md-chat-message_avatar">
|
|
4
4
|
<md-avatar
|
|
@@ -31,4 +31,4 @@ import*as t from"@momentum-ui/icons/data/momentumUiIconsNames.json";import*as e
|
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
34
|
-
`}};
|
|
34
|
+
`}};c([(0,p.property)({type:String})],e.prototype,"title",void 0),c([(0,p.property)({type:String})],e.prototype,"src",void 0),c([(0,p.property)({type:String})],e.prototype,"time",void 0),c([(0,p.property)({type:String})],e.prototype,"label",void 0),c([(0,p.property)({type:String})],e.prototype,"status",void 0),c([(0,p.property)({type:Boolean})],e.prototype,"clickableTimestamp",void 0),c([(0,p.property)({type:Boolean})],e.prototype,"isSelected",void 0),c([(0,p.property)({type:String,reflect:!0,attribute:"self-label"})],e.prototype,"selfLabel",void 0),c([(0,p.property)({type:Boolean})],e.prototype,"self",void 0),c([(0,p.property)({type:String,reflect:!0,attribute:"avatar-color"})],e.prototype,"avatarColor",void 0),c([(0,p.property)({type:String,reflect:!0,attribute:"avatar-type"})],e.prototype,"avatarType",void 0),c([(0,p.property)({type:Number,reflect:!0,attribute:"avatar-size"})],e.prototype,"avatarSize",void 0),e=c([(0,i.w)("md-chat-message")],e),t.ELEMENT=e}(r||(r={}))}},r={};function i(t){var e=r[t];if(void 0!==e)return e.exports;var o=r[t]={exports:{}};return s[t](o,o.exports,i),o.exports}i.m=s,t=[],i.O=(e,s,r,o)=>{if(!s){var a=1/0;for(c=0;c<t.length;c++){for(var[s,r,o]=t[c],p=!0,m=0;m<s.length;m++)(!1&o||a>=o)&&Object.keys(i.O).every(t=>i.O[t](s[m]))?s.splice(m--,1):(p=!1,o<a&&(a=o));if(p){t.splice(c--,1);var l=r();void 0!==l&&(e=l)}}return e}o=o||0;for(var c=t.length;c>0&&t[c-1][2]>o;c--)t[c]=t[c-1];t[c]=[s,r,o]},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{i as __webpack_require__};e={7684:0},i.C=t=>{var s,r,{__webpack_esm_ids__:o,__webpack_esm_modules__:a,__webpack_esm_runtime__:p}=t,m=0;for(s in a)i.o(a,s)&&(i.m[s]=a[s]);for(p&&p(i);m<o.length;m++)r=o[m],i.o(e,r)&&e[r]&&e[r][0](),e[o[m]]=0;i.O()},i.O.j=t=>0===e[t];import*as o from"../9609.js";i.C(o);import*as a from"../4084.js";i.C(a);import*as p from"../4955.js";i.C(p);import*as m from"../3517.js";i.C(m);import*as l from"../1156.js";i.C(l);import*as c from"../3305.js";i.C(c);import*as d from"../4739.js";i.C(d);import*as f from"../7154.js";i.C(f);import*as v from"../9773.js";i.C(v);import*as n from"../5983.js";i.C(n);import*as h from"../7755.js";i.C(h);import*as y from"../1821.js";i.C(y);import*as u from"../4980.js";i.C(u);import*as g from"../519.js";i.C(g);import*as j from"../9500.js";i.C(j);import*as C from"../4137.js";i.C(C);import*as b from"../8165.js";i.C(b);import*as _ from"../6325.js";i.C(_);import*as S from"../4449.js";i.C(S);import*as O from"../1392.js";i.C(O);import*as k from"../3365.js";i.C(k);import*as T from"../378.js";i.C(T);import*as $ from"../9244.js";i.C($);import*as x from"../4626.js";i.C(x);import*as w from"../9316.js";i.C(w);var D=i.O(void 0,[9609,4084,4955,3517,1156,3305,4739,7154,9773,5983,7755,1821,4980,519,9500,4137,8165,6325,4449,1392,3365,378,9244,4626,9316],()=>i(5558));const E=(D=i.O(D)).c;export{E as ChatMessage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../9609.js";import"../4084.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../5983.js";import"../
|
|
1
|
+
import"../9609.js";import"../4084.js";import"../4955.js";import"../3517.js";import"../1156.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../5983.js";import"../7755.js";import"../1821.js";import"../4980.js";import"../519.js";import"../9500.js";import"../4137.js";import"../8165.js";import"../6325.js";import"../4449.js";import"../1392.js";import"../3365.js";import"../378.js";import"../9244.js";import"../4626.js";import"../9316.js";export*from"../comp/md-chat-message-entry.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var e,t,i={8381(e,t,i){i.d(t,{S:()=>s}),i(1821);var s,o=i(2900),r=i(7704),a=i(9609),c=i(4084),n=i(2927),h=i(8899),d=i(4973),l=function(e,t,i,s){var o,r=arguments.length,a=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};!function(e){let t=class extends((0,r.yC)(n.LitElement)){constructor(){super(...arguments),this.autofocus=!1,this._checked=!1,this._indeterminate=!1,this._disabled=!1,this.label="",this.tabIndex=0}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,this.requestUpdate("checked",t)}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=this._indeterminate;this._indeterminate=e,this.requestUpdate("indeterminate",t)}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.tabIndex=e?-1:0,this.requestUpdate("disabled",t)}static get styles(){return[c.A,d.A]}toggleCheckbox(){this.checked=!this.checked}isCheckboxActive(){return this.disabled||this.indeterminate}handleClick(e){this.isCheckboxActive()?e.stopPropagation():(this.toggleCheckbox(),this.handleChange(e))}handleKeyDown(e){const{code:t}=e;t!==o.Uz.Space&&t!==o.Uz.Enter||(e.preventDefault(),this.isCheckboxActive()?e.stopPropagation():(this.toggleCheckbox(),this.handleChange(e)))}handleChange(e){this.dispatchEvent(new CustomEvent("checkbox-change",{bubbles:!0,composed:!0,detail:{sourceEvent:e,checked:this.checked}}))}firstUpdated(e){super.firstUpdated(e),this.setAttribute("role","checkbox"),this.label&&this.setAttribute("aria-label",this.label)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}willUpdate(e){var t;null===(t=super.willUpdate)||void 0===t||t.call(this,e),e.has("indeterminate")&&this.indeterminate&&(this.checked=!1),(e.has("checked")||e.has("indeterminate"))&&(this.indeterminate?this.setAttribute("aria-checked","mixed"):this.setAttribute("aria-checked",`${this.checked}`)),e.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`)}updated(e){super.updated(e),e.has("indeterminate")&&(this.input.indeterminate=this.indeterminate)}get checkboxIconName(){return this.checked?"check-bold":this.indeterminate?"minus-bold":null}checkboxIconTemplate(){const e=this.checkboxIconName;return e?n.html`<md-icon name="${e}" iconSet="momentumDesign" size="16"></md-icon>`:n.nothing}checkboxBoxTemplate(){return n.html` <div part="checkbox-box" class="checkbox-box">${this.checkboxIconTemplate()}</div> `}render(){return n.html`
|
|
2
2
|
<input
|
|
3
3
|
class="checkbox-input"
|
|
4
4
|
type="checkbox"
|
|
@@ -12,4 +12,4 @@ import*as e from"@momentum-ui/icons/data/momentumUiIconsNames.json";import*as t
|
|
|
12
12
|
${this.checkboxBoxTemplate()}
|
|
13
13
|
<slot></slot>
|
|
14
14
|
</label>
|
|
15
|
-
`}};
|
|
15
|
+
`}};l([(0,h.property)({type:Boolean,reflect:!0})],t.prototype,"autofocus",void 0),l([(0,h.property)({type:Boolean,reflect:!0})],t.prototype,"checked",null),l([(0,h.property)({type:Boolean,reflect:!0})],t.prototype,"indeterminate",null),l([(0,h.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),l([(0,h.property)({type:String})],t.prototype,"label",void 0),l([(0,h.property)({type:Number,reflect:!0})],t.prototype,"tabIndex",void 0),l([(0,h.query)(".checkbox-input")],t.prototype,"input",void 0),t=l([(0,a.w)("md-checkbox")],t),e.ELEMENT=t}(s||(s={}))}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return i[e](r,r.exports,o),r.exports}o.m=i,e=[],o.O=(t,i,s,r)=>{if(!i){var a=1/0;for(d=0;d<e.length;d++){for(var[i,s,r]=e[d],c=!0,n=0;n<i.length;n++)(!1&r||a>=r)&&Object.keys(o.O).every(e=>o.O[e](i[n]))?i.splice(n--,1):(c=!1,r<a&&(a=r));if(c){e.splice(d--,1);var h=s();void 0!==h&&(t=h)}}return t}r=r||0;for(var d=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[i,s,r]},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);export{o as __webpack_require__};t={7455:0},o.C=e=>{var i,s,{__webpack_esm_ids__:r,__webpack_esm_modules__:a,__webpack_esm_runtime__:c}=e,n=0;for(i in a)o.o(a,i)&&(o.m[i]=a[i]);for(c&&c(o);n<r.length;n++)s=r[n],o.o(t,s)&&t[s]&&t[s][0](),t[r[n]]=0;o.O()},o.O.j=e=>0===t[e];import*as r from"../9609.js";o.C(r);import*as a from"../4084.js";o.C(a);import*as c from"../4955.js";o.C(c);import*as n from"../3517.js";o.C(n);import*as h from"../1156.js";o.C(h);import*as d from"../3305.js";o.C(d);import*as l from"../4739.js";o.C(l);import*as p from"../7154.js";o.C(p);import*as m from"../9773.js";o.C(m);import*as b from"../5983.js";o.C(b);import*as u from"../7755.js";o.C(u);import*as k from"../1821.js";o.C(k);import*as f from"../2364.js";o.C(f);import*as C from"../4980.js";o.C(C);import*as x from"../5308.js";o.C(x);import*as v from"../9938.js";o.C(v);import*as y from"../9500.js";o.C(y);import*as j from"../4781.js";o.C(j);import*as _ from"../5201.js";o.C(_);import*as g from"../5584.js";o.C(g);import*as w from"../8227.js";o.C(w);import*as O from"../2900.js";o.C(O);import*as E from"../7704.js";o.C(E);import*as A from"../1280.js";o.C(A);import*as U from"../4973.js";o.C(U);var $=o.O(void 0,[9609,4084,4955,3517,1156,3305,4739,7154,9773,5983,7755,1821,2364,4980,5308,9938,9500,4781,5201,5584,8227,2900,7704,1280,4973],()=>o(8381));const I=($=o.O($)).S;export{I as Checkbox};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../9609.js";import"../4084.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../5983.js";import"../
|
|
1
|
+
import"../9609.js";import"../4084.js";import"../4955.js";import"../3517.js";import"../1156.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../5983.js";import"../7755.js";import"../1821.js";import"../2364.js";import"../4980.js";import"../5308.js";import"../9938.js";import"../9500.js";import"../4781.js";import"../5201.js";import"../5584.js";import"../8227.js";import"../2900.js";import"../7704.js";import"../1280.js";import"../4973.js";export*from"../comp/md-checkbox-entry.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
var e,t,r={4870(e,t,r){r.d(t,{$:()=>o});var o,s=r(2900),i=r(7704),n=r(9609),c=r(4084),a=r(2927),l=r(8899),p=r(4973),h=function(e,t,r,o){var s,i=arguments.length,n=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(n=(i<3?s(n):i>3?s(t,r,n):s(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n};!function(e){let t=class extends((0,i.Io)(a.LitElement)){constructor(){super(...arguments),this.label="group",this.alignment="vertical"}static get styles(){return[c.A,p.A]}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown)}switchCheckboxOnArrowPress(e,t=1){const r=super.getAvailableSelectedIndex(e,t);-1!==r&&(this.selected=r)}handleKeyDown(e){const{code:t}=e;switch(t){case s.Uz.ArrowUp:case s.Uz.ArrowLeft:e.stopPropagation(),0===this.selected?this.switchCheckboxOnArrowPress(this.slotted.length-1,-1):this.switchCheckboxOnArrowPress(this.selected-1,-1);break;case s.Uz.ArrowDown:case s.Uz.ArrowRight:e.stopPropagation(),this.selected===this.slotted.length-1?this.switchCheckboxOnArrowPress(0):this.switchCheckboxOnArrowPress(this.selected+1)}}get slotElement(){return this.checkboxSlot}render(){return a.html`
|
|
2
2
|
<div role="group" aria-labelledby="id-group-label">
|
|
3
3
|
<slot name="checkbox"></slot>
|
|
4
4
|
</div>
|
|
5
|
-
`}};h([(0,l.property)({type:String,attribute:"group-label"})],t.prototype,"label",void 0),h([(0,l.property)({type:String,reflect:!0})],t.prototype,"alignment",void 0),h([(0,l.query)("slot[name='checkbox']")],t.prototype,"checkboxSlot",void 0),t=h([(0,
|
|
5
|
+
`}};h([(0,l.property)({type:String,attribute:"group-label"})],t.prototype,"label",void 0),h([(0,l.property)({type:String,reflect:!0})],t.prototype,"alignment",void 0),h([(0,l.query)("slot[name='checkbox']")],t.prototype,"checkboxSlot",void 0),t=h([(0,n.w)("md-checkboxgroup")],t),e.ELEMENT=t}(o||(o={}))}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return r[e](i,i.exports,s),i.exports}s.m=r,e=[],s.O=(t,r,o,i)=>{if(!r){var n=1/0;for(p=0;p<e.length;p++){for(var[r,o,i]=e[p],c=!0,a=0;a<r.length;a++)(!1&i||n>=i)&&Object.keys(s.O).every(e=>s.O[e](r[a]))?r.splice(a--,1):(c=!1,i<n&&(n=i));if(c){e.splice(p--,1);var l=o();void 0!==l&&(t=l)}}return t}i=i||0;for(var p=e.length;p>0&&e[p-1][2]>i;p--)e[p]=e[p-1];e[p]=[r,o,i]},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);export{s as __webpack_require__};t={6834:0},s.C=e=>{var r,o,{__webpack_esm_ids__:i,__webpack_esm_modules__:n,__webpack_esm_runtime__:c}=e,a=0;for(r in n)s.o(n,r)&&(s.m[r]=n[r]);for(c&&c(s);a<i.length;a++)o=i[a],s.o(t,o)&&t[o]&&t[o][0](),t[i[a]]=0;s.O()},s.O.j=e=>0===t[e];import*as i from"../9609.js";s.C(i);import*as n from"../4084.js";s.C(n);import*as c from"../2364.js";s.C(c);import*as a from"../9938.js";s.C(a);import*as l from"../5201.js";s.C(l);import*as p from"../2900.js";s.C(p);import*as h from"../2927.js";s.C(h);import*as d from"../608.js";s.C(d);import*as m from"../8899.js";s.C(m);import*as f from"../3203.js";s.C(f);import*as b from"../7162.js";s.C(b);import*as u from"../4973.js";s.C(u);import*as v from"../2942.js";s.C(v);var w=s.O(void 0,[9609,4084,2364,9938,5201,2900,2927,608,8899,3203,7162,4973,2942],()=>s(4870));const g=(w=s.O(w)).$;export{g as CheckboxGroup};
|