@momentum-ui/web-components 3.0.0-beta.4 → 3.0.0-beta.5
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/2547.js +1 -1
- package/dist/2669.js +1 -1
- package/dist/4659.js +1 -1
- package/dist/6408.js +4 -2
- package/dist/6865.js +1 -1
- package/dist/8493.js +1 -0
- package/dist/comp/md-accordion-item-entry.js +1 -1
- package/dist/comp/md-accordion-item.js +1 -1
- package/dist/comp/md-activity-button-entry.js +1 -1
- package/dist/comp/md-activity-button.js +1 -1
- package/dist/comp/md-alert-banner-entry.js +1 -1
- package/dist/comp/md-alert-banner.js +1 -1
- package/dist/comp/md-alert-entry.js +1 -1
- package/dist/comp/md-alert.js +1 -1
- package/dist/comp/md-audio-player-entry.js +1 -1
- package/dist/comp/md-audio-player.js +1 -1
- package/dist/comp/md-avatar-entry.js +1 -1
- package/dist/comp/md-avatar.js +1 -1
- package/dist/comp/md-card-ai-entry.js +1 -1
- package/dist/comp/md-card-ai.js +1 -1
- package/dist/comp/md-card-entry.js +1 -1
- package/dist/comp/md-card-v2-entry.js +1 -1
- package/dist/comp/md-card-v2.js +1 -1
- package/dist/comp/md-card.js +1 -1
- package/dist/comp/md-chat-message-entry.js +1 -1
- package/dist/comp/md-chat-message.js +1 -1
- package/dist/comp/md-checkbox-entry.js +1 -1
- package/dist/comp/md-checkbox.js +1 -1
- package/dist/comp/md-coachmark-popover-entry.js +1 -1
- package/dist/comp/md-coachmark-popover.js +1 -1
- package/dist/comp/md-combobox-entry.js +2 -2
- package/dist/comp/md-combobox.js +1 -1
- package/dist/comp/md-country-code-picker-entry.js +1 -1
- package/dist/comp/md-country-code-picker.js +1 -1
- package/dist/comp/md-date-range-picker-entry.js +1 -1
- package/dist/comp/md-date-range-picker.js +1 -1
- package/dist/comp/md-date-time-picker-entry.js +1 -1
- package/dist/comp/md-date-time-picker.js +1 -1
- package/dist/comp/md-datepicker-calendar-entry.js +1 -1
- package/dist/comp/md-datepicker-calendar.js +1 -1
- package/dist/comp/md-datepicker-entry.js +1 -1
- package/dist/comp/md-datepicker.js +1 -1
- package/dist/comp/md-dropdown-entry.js +1 -1
- package/dist/comp/md-dropdown.js +1 -1
- package/dist/comp/md-editable-field-entry.js +1 -1
- package/dist/comp/md-editable-field.js +1 -1
- package/dist/comp/md-favorite-entry.js +1 -1
- package/dist/comp/md-favorite.js +1 -1
- package/dist/comp/md-floating-minimize-entry.js +1 -1
- package/dist/comp/md-floating-minimize.js +1 -1
- package/dist/comp/md-floating-modal-entry.js +1 -1
- package/dist/comp/md-floating-modal.js +1 -1
- package/dist/comp/md-grabber-entry.js +1 -1
- package/dist/comp/md-grabber.js +1 -1
- package/dist/comp/md-icon-entry.js +1 -1
- package/dist/comp/md-icon.js +1 -1
- package/dist/comp/md-input-entry.js +4 -2
- package/dist/comp/md-input.js +1 -1
- package/dist/comp/md-meeting-alert-entry.js +1 -1
- package/dist/comp/md-meeting-alert.js +1 -1
- package/dist/comp/md-modal-entry.js +1 -1
- package/dist/comp/md-modal.js +1 -1
- package/dist/comp/md-pagination-entry.js +1 -1
- package/dist/comp/md-pagination.js +1 -1
- package/dist/comp/md-phone-input-entry.js +1 -1
- package/dist/comp/md-phone-input.js +1 -1
- package/dist/comp/md-popover-entry.js +1 -1
- package/dist/comp/md-popover.js +1 -1
- package/dist/comp/md-presence-entry.js +1 -1
- package/dist/comp/md-presence.js +1 -1
- package/dist/comp/md-table-advanced-entry.js +1 -1
- package/dist/comp/md-table-advanced.js +1 -1
- package/dist/comp/md-table-entry.js +1 -1
- package/dist/comp/md-table.js +1 -1
- package/dist/comp/md-tabs-entry.js +1 -1
- package/dist/comp/md-tabs.js +1 -1
- package/dist/comp/md-task-item-entry.js +1 -1
- package/dist/comp/md-task-item.js +1 -1
- package/dist/comp/md-timepicker-entry.js +1 -1
- package/dist/comp/md-timepicker.js +1 -1
- package/dist/index-entry.js +8 -7
- package/dist/index.js +1 -1
- package/dist/types/components/combobox/ComboBox.d.ts +1 -1
- package/dist/types/components/input/Input.d.ts +3 -1
- package/dist/types/components/list-v2/list-item-v2.d.ts +5 -0
- package/package.json +2 -2
- package/dist/2237.js +0 -1
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
>
|
|
10
10
|
</md-icon>
|
|
11
11
|
</div>
|
|
12
|
-
`}};d([(0,o.property)({type:String})],r.prototype,"name",void 0),d([(0,o.property)({type:Number})],r.prototype,"size",void 0),d([(0,o.property)({type:String})],r.prototype,"title",void 0),d([(0,o.property)({type:String})],r.prototype,"color",void 0),d([(0,o.property)({type:String,attribute:"presence-type"})],r.prototype,"presenceType",void 0),d([(0,o.property)({type:Boolean})],r.prototype,"newMomentum",void 0),d([(0,o.property)({type:Boolean})],r.prototype,"failurePresence",void 0),d([(0,o.property)({type:Boolean})],r.prototype,"avatarLinked",void 0),r=d([(0,i.w)("md-presence")],r),e.ELEMENT=r}(a||(a={}))},20291:e=>{e.exports=i},32022:e=>{e.exports=s},38923:(e,r,t)=>{t.d(r,{E:()=>i});var a=t(31465);const i=(e,r,t=!1)=>{let i="",s="";if(r)i="warning-badge-filled",s="var(--avatar-presence-warning)";else{if(!e)return{presenceIcon:void 0,presenceColor:void 0};switch(e){case"active":i="active-presence-small-filled",s="var(--avatar-presence-active)";break;case"meeting":i=t?"camera-presence-filled":"camera-presence_14",s="var(--avatar-presence-unstable)";break;case"schedule":i=t?"meetings-presence-badge-filled":"meetings-presence_14",s="var(--avatar-presence-unstable)";break;case"call":i=t?"handset-filled":"handset-active_16",s="var(--avatar-presence-unstable)";break;case"dnd":i=t?"dnd-presence-badge-filled":"dnd-presence_14",s="var(--avatar-presence-dnd)";break;case"presenting":i=t?"share-screen-badge-filled":"content-share_14",s="var(--avatar-presence-dnd)";break;case"quiet-hours":i="quiet-hours-presence-filled",s="var(--avatar-presence-inactive)";break;case"away":case"idle":case"inactive":i=t?"recents-presence-badge-filled":"recents-presence_14",s="var(--avatar-presence-inactive)";break;case"away-calling":i="away-calling-presence-filled",s="var(--avatar-presence-inactive)";break;case"ooo":i="pto-presence-filled",s="var(--avatar-presence-inactive)";break;case"busy":i="busy-presence-bold",s="var(--avatar-presence-unstable)";break;case"wrapup":i="archive-filled",s="var(--avatar-chat-icon-color)";break;case"on-mobile":i="phone-filled",s="var(--avatar-presence-inactive)";break;case"on-device":i=t?"generic-device-video-filled":"generic-device-video_16",s="var(--avatar-presence-inactive)";break;case"on-hold":case a.j.HOLD:i="pause-badge-filled",s="var(--avatar-presence-inactive)";break;case"engaged":i="busy-presence-bold",s="var(--avatar-presence-engaged)";break;case"rona":i="dnd-presence-badge-filled",s="var(--avatar-presence-rona)";break;case a.j.CONSULTING:i="headset-bold",s="var(--avatar-presence-inactive)";break;case a.j.PLAY:i="play-bold",s="var(--avatar-presence-inactive)";break;case a.j.CONFERENCE:i="meet-bold",s="var(--avatar-presence-inactive)";break;case a.j.TRANSFERED:i="assign-privilege-bold",s="var(--avatar-presence-inactive)";break;case a.j.COURTESY_CALLBACK:i="callrate-bold",s="var(--avatar-presence-inactive)";break;case a.j.CAMPAIGN:i="announcement-bold",s="var(--avatar-presence-inactive)"}}return{presenceColor:s,presenceIcon:i}}},60554:e=>{e.exports=n},70429:e=>{e.exports=r},85125:e=>{e.exports=t},85314:e=>{e.exports=o},87161:r=>{r.exports=e}},p={};function d(e){var r=p[e];if(void 0!==r)return r.exports;var t=p[e]={exports:{}};return l[e](t,t.exports,d),t.exports}d.m=l,c=[],d.O=(e,r,t,a)=>{if(!r){var i=1/0;for(l=0;l<c.length;l++){for(var[r,t,a]=c[l],s=!0,n=0;n<r.length;n++)(!1&a||i>=a)&&Object.keys(d.O).every(e=>d.O[e](r[n]))?r.splice(n--,1):(s=!1,a<i&&(i=a));if(s){c.splice(l--,1);var o=t();void 0!==o&&(e=o)}}return e}a=a||0;for(var l=c.length;l>0&&c[l-1][2]>a;l--)c[l]=c[l-1];c[l]=[r,t,a]},d.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return d.d(r,{a:r}),r},d.d=(e,r)=>{for(var t in r)d.o(r,t)&&!d.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},d.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={3667:0,8923:0};d.O.j=r=>0===e[r];var r=(r,t)=>{var a,i,[s,n,o]=t,c=0;if(s.some(r=>0!==e[r])){for(a in n)d.o(n,a)&&(d.m[a]=n[a]);if(o)var l=o(d)}for(r&&r(t);c<s.length;c++)i=s[c],d.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return d.O(l)},t=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var v=d.O(void 0,[
|
|
12
|
+
`}};d([(0,o.property)({type:String})],r.prototype,"name",void 0),d([(0,o.property)({type:Number})],r.prototype,"size",void 0),d([(0,o.property)({type:String})],r.prototype,"title",void 0),d([(0,o.property)({type:String})],r.prototype,"color",void 0),d([(0,o.property)({type:String,attribute:"presence-type"})],r.prototype,"presenceType",void 0),d([(0,o.property)({type:Boolean})],r.prototype,"newMomentum",void 0),d([(0,o.property)({type:Boolean})],r.prototype,"failurePresence",void 0),d([(0,o.property)({type:Boolean})],r.prototype,"avatarLinked",void 0),r=d([(0,i.w)("md-presence")],r),e.ELEMENT=r}(a||(a={}))},20291:e=>{e.exports=i},32022:e=>{e.exports=s},38923:(e,r,t)=>{t.d(r,{E:()=>i});var a=t(31465);const i=(e,r,t=!1)=>{let i="",s="";if(r)i="warning-badge-filled",s="var(--avatar-presence-warning)";else{if(!e)return{presenceIcon:void 0,presenceColor:void 0};switch(e){case"active":i="active-presence-small-filled",s="var(--avatar-presence-active)";break;case"meeting":i=t?"camera-presence-filled":"camera-presence_14",s="var(--avatar-presence-unstable)";break;case"schedule":i=t?"meetings-presence-badge-filled":"meetings-presence_14",s="var(--avatar-presence-unstable)";break;case"call":i=t?"handset-filled":"handset-active_16",s="var(--avatar-presence-unstable)";break;case"dnd":i=t?"dnd-presence-badge-filled":"dnd-presence_14",s="var(--avatar-presence-dnd)";break;case"presenting":i=t?"share-screen-badge-filled":"content-share_14",s="var(--avatar-presence-dnd)";break;case"quiet-hours":i="quiet-hours-presence-filled",s="var(--avatar-presence-inactive)";break;case"away":case"idle":case"inactive":i=t?"recents-presence-badge-filled":"recents-presence_14",s="var(--avatar-presence-inactive)";break;case"away-calling":i="away-calling-presence-filled",s="var(--avatar-presence-inactive)";break;case"ooo":i="pto-presence-filled",s="var(--avatar-presence-inactive)";break;case"busy":i="busy-presence-bold",s="var(--avatar-presence-unstable)";break;case"wrapup":i="archive-filled",s="var(--avatar-chat-icon-color)";break;case"on-mobile":i="phone-filled",s="var(--avatar-presence-inactive)";break;case"on-device":i=t?"generic-device-video-filled":"generic-device-video_16",s="var(--avatar-presence-inactive)";break;case"on-hold":case a.j.HOLD:i="pause-badge-filled",s="var(--avatar-presence-inactive)";break;case"engaged":i="busy-presence-bold",s="var(--avatar-presence-engaged)";break;case"rona":i="dnd-presence-badge-filled",s="var(--avatar-presence-rona)";break;case a.j.CONSULTING:i="headset-bold",s="var(--avatar-presence-inactive)";break;case a.j.PLAY:i="play-bold",s="var(--avatar-presence-inactive)";break;case a.j.CONFERENCE:i="meet-bold",s="var(--avatar-presence-inactive)";break;case a.j.TRANSFERED:i="assign-privilege-bold",s="var(--avatar-presence-inactive)";break;case a.j.COURTESY_CALLBACK:i="callrate-bold",s="var(--avatar-presence-inactive)";break;case a.j.CAMPAIGN:i="announcement-bold",s="var(--avatar-presence-inactive)"}}return{presenceColor:s,presenceIcon:i}}},60554:e=>{e.exports=n},70429:e=>{e.exports=r},85125:e=>{e.exports=t},85314:e=>{e.exports=o},87161:r=>{r.exports=e}},p={};function d(e){var r=p[e];if(void 0!==r)return r.exports;var t=p[e]={exports:{}};return l[e](t,t.exports,d),t.exports}d.m=l,c=[],d.O=(e,r,t,a)=>{if(!r){var i=1/0;for(l=0;l<c.length;l++){for(var[r,t,a]=c[l],s=!0,n=0;n<r.length;n++)(!1&a||i>=a)&&Object.keys(d.O).every(e=>d.O[e](r[n]))?r.splice(n--,1):(s=!1,a<i&&(i=a));if(s){c.splice(l--,1);var o=t();void 0!==o&&(e=o)}}return e}a=a||0;for(var l=c.length;l>0&&c[l-1][2]>a;l--)c[l]=c[l-1];c[l]=[r,t,a]},d.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return d.d(r,{a:r}),r},d.d=(e,r)=>{for(var t in r)d.o(r,t)&&!d.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},d.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={3667:0,8923:0};d.O.j=r=>0===e[r];var r=(r,t)=>{var a,i,[s,n,o]=t,c=0;if(s.some(r=>0!==e[r])){for(a in n)d.o(n,a)&&(d.m[a]=n[a]);if(o)var l=o(d)}for(r&&r(t);c<s.length;c++)i=s[c],d.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return d.O(l)},t=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var v=d.O(void 0,[8493,1890,4313,510,5087,6283,2176,6798,6865,1200,2576,6188,1465],()=>d(15300));return d.O(v)})());
|
package/dist/comp/md-presence.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require("../
|
|
1
|
+
require("../8493"),require("../1890"),require("../4313"),require("../510"),require("../5087"),require("../6283"),require("../2176"),require("../6798"),require("../6865"),require("../1200"),require("../2576"),require("../6188"),require("../1465"),module.exports=require("../comp/md-presence-entry");
|
|
@@ -163,4 +163,4 @@
|
|
|
163
163
|
</div>
|
|
164
164
|
`;return r.options.isHeader?l.html` <th part="cell-ishead" scope="row" title="${i.text}">${m}</th> `:l.html` <td part=${0===o?"first-cell":"cell"} title="${i.text}">${m}</td> `})}
|
|
165
165
|
</tr>
|
|
166
|
-
`}static get styles(){return[r.A,m.A]}};g([(0,n.property)({attribute:"config"})],t.prototype,"config",void 0),g([(0,n.property)({attribute:"data"})],t.prototype,"data",void 0),g([(0,n.property)({type:String})],t.prototype,"isRowFocusable",void 0),g([(0,u.Wj)()],t.prototype,"md-table-advanced-change",void 0),g([(0,n.state)()],t.prototype,"tableConfig",void 0),g([(0,n.state)()],t.prototype,"tableData",void 0),g([(0,n.state)()],t.prototype,"error",void 0),g([(0,n.state)()],t.prototype,"COLS",void 0),g([(0,n.state)()],t.prototype,"ROWS",void 0),g([(0,n.state)()],t.prototype,"dragRow",void 0),g([(0,n.state)()],t.prototype,"dropRow",void 0),g([(0,n.state)()],t.prototype,"drops",void 0),g([(0,n.state)()],t.prototype,"dragCol",void 0),g([(0,n.state)()],t.prototype,"dropCol",void 0),g([(0,n.queryAll)("tr[tabindex]")],t.prototype,"tableRaws",void 0),g([(0,u.sg)(500)],t.prototype,"filter",null),t=g([(0,o.w)("md-table-advanced")],t),e.ELEMENT=t}(b||(b={}))},84157:e=>{e.exports=d},85125:e=>{e.exports=i},85314:e=>{e.exports=n},87161:t=>{t.exports=e}},v={};function b(e){var t=v[e];if(void 0!==t)return t.exports;var i=v[e]={exports:{}};return g[e](i,i.exports,b),i.exports}b.m=g,f=[],b.O=(e,t,i,o)=>{if(!t){var s=1/0;for(a=0;a<f.length;a++){for(var[t,i,o]=f[a],r=!0,l=0;l<t.length;l++)(!1&o||s>=o)&&Object.keys(b.O).every(e=>b.O[e](t[l]))?t.splice(l--,1):(r=!1,o<s&&(s=o));if(r){f.splice(a--,1);var n=i();void 0!==n&&(e=n)}}return e}o=o||0;for(var a=f.length;a>0&&f[a-1][2]>o;a--)f[a]=f[a-1];f[a]=[t,i,o]},b.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return b.d(t,{a:t}),t},b.d=(e,t)=>{for(var i in t)b.o(t,i)&&!b.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},b.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),b.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={4139:0};b.O.j=t=>0===e[t];var t=(t,i)=>{var o,s,[r,l,n]=i,a=0;if(r.some(t=>0!==e[t])){for(o in l)b.o(l,o)&&(b.m[o]=l[o]);if(n)var d=n(b)}for(t&&t(i);a<r.length;a++)s=r[a],b.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return b.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var x=b.O(void 0,[
|
|
166
|
+
`}static get styles(){return[r.A,m.A]}};g([(0,n.property)({attribute:"config"})],t.prototype,"config",void 0),g([(0,n.property)({attribute:"data"})],t.prototype,"data",void 0),g([(0,n.property)({type:String})],t.prototype,"isRowFocusable",void 0),g([(0,u.Wj)()],t.prototype,"md-table-advanced-change",void 0),g([(0,n.state)()],t.prototype,"tableConfig",void 0),g([(0,n.state)()],t.prototype,"tableData",void 0),g([(0,n.state)()],t.prototype,"error",void 0),g([(0,n.state)()],t.prototype,"COLS",void 0),g([(0,n.state)()],t.prototype,"ROWS",void 0),g([(0,n.state)()],t.prototype,"dragRow",void 0),g([(0,n.state)()],t.prototype,"dropRow",void 0),g([(0,n.state)()],t.prototype,"drops",void 0),g([(0,n.state)()],t.prototype,"dragCol",void 0),g([(0,n.state)()],t.prototype,"dropCol",void 0),g([(0,n.queryAll)("tr[tabindex]")],t.prototype,"tableRaws",void 0),g([(0,u.sg)(500)],t.prototype,"filter",null),t=g([(0,o.w)("md-table-advanced")],t),e.ELEMENT=t}(b||(b={}))},84157:e=>{e.exports=d},85125:e=>{e.exports=i},85314:e=>{e.exports=n},87161:t=>{t.exports=e}},v={};function b(e){var t=v[e];if(void 0!==t)return t.exports;var i=v[e]={exports:{}};return g[e](i,i.exports,b),i.exports}b.m=g,f=[],b.O=(e,t,i,o)=>{if(!t){var s=1/0;for(a=0;a<f.length;a++){for(var[t,i,o]=f[a],r=!0,l=0;l<t.length;l++)(!1&o||s>=o)&&Object.keys(b.O).every(e=>b.O[e](t[l]))?t.splice(l--,1):(r=!1,o<s&&(s=o));if(r){f.splice(a--,1);var n=i();void 0!==n&&(e=n)}}return e}o=o||0;for(var a=f.length;a>0&&f[a-1][2]>o;a--)f[a]=f[a-1];f[a]=[t,i,o]},b.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return b.d(t,{a:t}),t},b.d=(e,t)=>{for(var i in t)b.o(t,i)&&!b.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},b.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),b.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={4139:0};b.O.j=t=>0===e[t];var t=(t,i)=>{var o,s,[r,l,n]=i,a=0;if(r.some(t=>0!==e[t])){for(o in l)b.o(l,o)&&(b.m[o]=l[o]);if(n)var d=n(b)}for(t&&t(i);a<r.length;a++)s=r[a],b.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return b.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var x=b.O(void 0,[8493,1890,4313,510,5087,6283,2176,6798,6865,1200,2576,6677,8210,1270,3135,7819,1323,4462],()=>b(77935));return b.O(x)})());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require("../
|
|
1
|
+
require("../8493"),require("../1890"),require("../4313"),require("../510"),require("../5087"),require("../6283"),require("../2176"),require("../6798"),require("../6865"),require("../1200"),require("../2576"),require("../6677"),require("../8210"),require("../1270"),require("../3135"),require("../7819"),require("../1323"),require("../4462"),module.exports=require("../comp/md-table-advanced-entry");
|
|
@@ -40,4 +40,4 @@
|
|
|
40
40
|
</table>
|
|
41
41
|
`:i.html` <p>${this.nodata}</p> `}
|
|
42
42
|
</div>
|
|
43
|
-
`}};p([(0,a.property)({type:String})],t.prototype,"tabledata",void 0),p([(0,a.property)({type:Boolean})],t.prototype,"zebra",void 0),p([(0,a.property)({type:Boolean})],t.prototype,"clean",void 0),p([(0,a.property)({type:Boolean})],t.prototype,"sorting",void 0),p([(0,a.property)({type:String})],t.prototype,"nodata",void 0),p([(0,a.property)({type:Boolean})],t.prototype,"stickheader",void 0),p([(0,a.property)({type:String})],t.prototype,"label",void 0),p([(0,a.property)({type:Boolean,attribute:"no-borders"})],t.prototype,"noBorders",void 0),p([(0,a.property)({type:String})],t.prototype,"format",void 0),p([(0,a.property)({type:Array})],t.prototype,"warning",void 0),p([(0,a.property)({type:Array})],t.prototype,"errors",void 0),p([(0,a.state)()],t.prototype,"sort",void 0),p([(0,a.state)()],t.prototype,"csvData",void 0),p([(0,a.queryAll)('.md-table__body tr[role="row"]')],t.prototype,"rowTable",void 0),t=p([(0,o.w)("md-table")],t),e.ELEMENT=t}(u||(u={}))},60554:e=>{e.exports=a},70429:e=>{e.exports=t},85125:e=>{e.exports=r},85314:e=>{e.exports=l},87161:t=>{t.exports=e}},p={};function m(e){var t=p[e];if(void 0!==t)return t.exports;var r=p[e]={exports:{}};return c[e](r,r.exports,m),r.exports}m.m=c,d=[],m.O=(e,t,r,o)=>{if(!t){var s=1/0;for(n=0;n<d.length;n++){for(var[t,r,o]=d[n],i=!0,a=0;a<t.length;a++)(!1&o||s>=o)&&Object.keys(m.O).every(e=>m.O[e](t[a]))?t.splice(a--,1):(i=!1,o<s&&(s=o));if(i){d.splice(n--,1);var l=r();void 0!==l&&(e=l)}}return e}o=o||0;for(var n=d.length;n>0&&d[n-1][2]>o;n--)d[n]=d[n-1];d[n]=[t,r,o]},m.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return m.d(t,{a:t}),t},m.d=(e,t)=>{for(var r in t)m.o(t,r)&&!m.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},m.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),m.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={8510:0};m.O.j=t=>0===e[t];var t=(t,r)=>{var o,s,[i,a,l]=r,n=0;if(i.some(t=>0!==e[t])){for(o in a)m.o(a,o)&&(m.m[o]=a[o]);if(l)var d=l(m)}for(t&&t(r);n<i.length;n++)s=i[n],m.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return m.O(d)},r=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var u=m.O(void 0,[
|
|
43
|
+
`}};p([(0,a.property)({type:String})],t.prototype,"tabledata",void 0),p([(0,a.property)({type:Boolean})],t.prototype,"zebra",void 0),p([(0,a.property)({type:Boolean})],t.prototype,"clean",void 0),p([(0,a.property)({type:Boolean})],t.prototype,"sorting",void 0),p([(0,a.property)({type:String})],t.prototype,"nodata",void 0),p([(0,a.property)({type:Boolean})],t.prototype,"stickheader",void 0),p([(0,a.property)({type:String})],t.prototype,"label",void 0),p([(0,a.property)({type:Boolean,attribute:"no-borders"})],t.prototype,"noBorders",void 0),p([(0,a.property)({type:String})],t.prototype,"format",void 0),p([(0,a.property)({type:Array})],t.prototype,"warning",void 0),p([(0,a.property)({type:Array})],t.prototype,"errors",void 0),p([(0,a.state)()],t.prototype,"sort",void 0),p([(0,a.state)()],t.prototype,"csvData",void 0),p([(0,a.queryAll)('.md-table__body tr[role="row"]')],t.prototype,"rowTable",void 0),t=p([(0,o.w)("md-table")],t),e.ELEMENT=t}(u||(u={}))},60554:e=>{e.exports=a},70429:e=>{e.exports=t},85125:e=>{e.exports=r},85314:e=>{e.exports=l},87161:t=>{t.exports=e}},p={};function m(e){var t=p[e];if(void 0!==t)return t.exports;var r=p[e]={exports:{}};return c[e](r,r.exports,m),r.exports}m.m=c,d=[],m.O=(e,t,r,o)=>{if(!t){var s=1/0;for(n=0;n<d.length;n++){for(var[t,r,o]=d[n],i=!0,a=0;a<t.length;a++)(!1&o||s>=o)&&Object.keys(m.O).every(e=>m.O[e](t[a]))?t.splice(a--,1):(i=!1,o<s&&(s=o));if(i){d.splice(n--,1);var l=r();void 0!==l&&(e=l)}}return e}o=o||0;for(var n=d.length;n>0&&d[n-1][2]>o;n--)d[n]=d[n-1];d[n]=[t,r,o]},m.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return m.d(t,{a:t}),t},m.d=(e,t)=>{for(var r in t)m.o(t,r)&&!m.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},m.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),m.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={8510:0};m.O.j=t=>0===e[t];var t=(t,r)=>{var o,s,[i,a,l]=r,n=0;if(i.some(t=>0!==e[t])){for(o in a)m.o(a,o)&&(m.m[o]=a[o]);if(l)var d=l(m)}for(t&&t(r);n<i.length;n++)s=i[n],m.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return m.O(d)},r=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var u=m.O(void 0,[8493,1890,4313,510,5087,6283,2176,6798,6865,1200,2576,759],()=>m(40428));return m.O(u)})());
|
package/dist/comp/md-table.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require("../
|
|
1
|
+
require("../8493"),require("../1890"),require("../4313"),require("../510"),require("../5087"),require("../6283"),require("../2176"),require("../6798"),require("../6865"),require("../1200"),require("../2576"),require("../759"),module.exports=require("../comp/md-table-entry");
|
|
@@ -158,4 +158,4 @@
|
|
|
158
158
|
>
|
|
159
159
|
<slot name="panel" @slotchange=${this.initializeTabs}></slot>
|
|
160
160
|
</div>
|
|
161
|
-
`}};g([(0,h.property)({type:Boolean})],t.prototype,"justified",void 0),g([(0,h.property)({type:Boolean,attribute:"hug-tabs"})],t.prototype,"hugTabs",void 0),g([(0,h.property)({type:String})],t.prototype,"overflowLabel",void 0),g([(0,h.property)({type:Boolean,attribute:"draggable"})],t.prototype,"draggable",void 0),g([(0,h.property)({type:String,reflect:!0})],t.prototype,"direction",void 0),g([(0,h.property)({type:Number,attribute:"more-items-scroll-limit"})],t.prototype,"moreItemsScrollLimit",void 0),g([(0,h.property)({type:Number,reflect:!0,attribute:"selected-index"})],t.prototype,"selectedIndex",null),g([(0,h.property)({type:Number})],t.prototype,"animation",void 0),g([(0,h.property)({type:String,attribute:"ghost-class"})],t.prototype,"ghostClass",void 0),g([(0,h.property)({type:String,attribute:"chosen-class"})],t.prototype,"chosenClass",void 0),g([(0,h.property)({type:Boolean,attribute:"force-fallback"})],t.prototype,"forceFallback",void 0),g([(0,h.property)({type:String,attribute:"fallback-class"})],t.prototype,"fallbackClass",void 0),g([(0,h.property)({type:String,attribute:"tabs-id"})],t.prototype,"tabsId",void 0),g([(0,h.property)({type:Boolean,attribute:"persist-selection"})],t.prototype,"persistSelection",void 0),g([(0,h.property)({type:String,attribute:"comp-unique-id"})],t.prototype,"compUniqueId",void 0),g([(0,h.property)({type:String})],t.prototype,"type",void 0),g([(0,h.property)({type:Boolean})],t.prototype,"newMomentum",void 0),g([(0,h.property)({type:String})],t.prototype,"variant",void 0),g([(0,h.property)({type:Boolean,attribute:"scroll-arrow"})],t.prototype,"scrollArrow",void 0),g([(0,h.property)({type:String,attribute:"left-arrow-aria-label"})],t.prototype,"leftArrowAriaLabel",void 0),g([(0,h.property)({type:String,attribute:"right-arrow-aria-label"})],t.prototype,"rightArrowAriaLabel",void 0),g([(0,h.property)({type:Number})],t.prototype,"size",void 0),g([(0,h.state)()],t.prototype,"isMoreTabMenuVisible",void 0),g([(0,h.state)()],t.prototype,"isMoreTabMenuMeasured",void 0),g([(0,h.state)()],t.prototype,"isMoreTabMenuOpen",void 0),g([(0,h.state)()],t.prototype,"isMoreTabMenuSelected",void 0),g([(0,h.state)()],t.prototype,"isMoreTabMenuScrollable",void 0),g([(0,h.state)()],t.prototype,"moreTabMenuOffsetWidth",void 0),g([(0,h.state)()],t.prototype,"moreTabMenuMaxHeight",void 0),g([(0,h.state)()],t.prototype,"tabsViewportDataList",void 0),g([(0,h.state)()],t.prototype,"tabsFilteredAsVisibleList",void 0),g([(0,h.state)()],t.prototype,"tabsFilteredAsHiddenList",void 0),g([(0,h.state)()],t.prototype,"noTabsVisible",void 0),g([(0,h.state)()],t.prototype,"defaultTabsOrderArray",void 0),g([(0,h.state)()],t.prototype,"tabsOrderPrefsArray",void 0),g([(0,h.state)()],t.prototype,"isMoreTabTruncated",void 0),g([(0,h.state)()],t.prototype,"showLeftArrow",void 0),g([(0,h.state)()],t.prototype,"showRightArrow",void 0),g([(0,h.query)("slot[name='tab']")],t.prototype,"tabSlotElement",void 0),g([(0,h.query)("slot[name='panel']")],t.prototype,"panelSlotElement",void 0),g([(0,h.query)(".md-tab__list[part='tabs-list']")],t.prototype,"tabsListElement",void 0),g([(0,h.query)(".md-tabs__settings[part='md-tabs__settings']")],t.prototype,"tabsSettingsElement",void 0),g([(0,h.query)(".md-menu-overlay__more_tab")],t.prototype,"moreTabMenuElement",void 0),g([(0,h.query)("md-menu-overlay")],t.prototype,"menuOverlayElement",void 0),g([(0,h.query)(".md-tab__list[part='tabs-more-list']")],t.prototype,"tabsMoreListElement",void 0),g([(0,h.queryAll)(".md-menu-overlay__more_list md-tab")],t.prototype,"tabsCopyHiddenListElements",void 0),g([(0,h.query)("#visible-tabs-list")],t.prototype,"visibleTabsContainerElement",void 0),g([(0,h.query)("#tabs-more-list")],t.prototype,"hiddenTabsContainerElement",void 0),t=g([(0,r.wW)("md-tabs")],t),e.ELEMENT=t}(V||(V={}))},58175:e=>{e.exports=p},60554:e=>{e.exports=a},66677:(e,t,i)=>{function s(e,t,i){let s;return function(...r){const o=this,a=i&&!s;clearTimeout(s),s=setTimeout(function(){s=null,i||e.apply(o,r)},t),a&&e.apply(o,r)}}function r(e,t){return t>=0&&t<e.length?e[t]:void 0}i.d(t,{Qx:()=>r,sg:()=>s})},68250:e=>{e.exports=h},69371:e=>{e.exports=b},70429:e=>{e.exports=t},84157:e=>{e.exports=d},85125:e=>{e.exports=i},85314:e=>{e.exports=l},87161:t=>{t.exports=e}},T={};function y(e){var t=T[e];if(void 0!==t)return t.exports;var i=T[e]={exports:{}};return f[e].call(i.exports,i,i.exports,y),i.exports}y.m=f,v=[],y.O=(e,t,i,s)=>{if(!t){var r=1/0;for(n=0;n<v.length;n++){for(var[t,i,s]=v[n],o=!0,a=0;a<t.length;a++)(!1&s||r>=s)&&Object.keys(y.O).every(e=>y.O[e](t[a]))?t.splice(a--,1):(o=!1,s<r&&(r=s));if(o){v.splice(n--,1);var l=i();void 0!==l&&(e=l)}}return e}s=s||0;for(var n=v.length;n>0&&v[n-1][2]>s;n--)v[n]=v[n-1];v[n]=[t,i,s]},y.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return y.d(t,{a:t}),t},y.d=(e,t)=>{for(var i in t)y.o(t,i)&&!y.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={144:0,1439:0,1528:0,2139:0,3001:0,3477:0,3820:0,5382:0,6677:0,7763:0,9058:0};y.O.j=t=>0===e[t];var t=(t,i)=>{var s,r,[o,a,l]=i,n=0;if(o.some(t=>0!==e[t])){for(s in a)y.o(a,s)&&(y.m[s]=a[s]);if(l)var d=l(y)}for(t&&t(i);n<o.length;n++)r=o[n],y.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return y.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var g=y.O(void 0,[
|
|
161
|
+
`}};g([(0,h.property)({type:Boolean})],t.prototype,"justified",void 0),g([(0,h.property)({type:Boolean,attribute:"hug-tabs"})],t.prototype,"hugTabs",void 0),g([(0,h.property)({type:String})],t.prototype,"overflowLabel",void 0),g([(0,h.property)({type:Boolean,attribute:"draggable"})],t.prototype,"draggable",void 0),g([(0,h.property)({type:String,reflect:!0})],t.prototype,"direction",void 0),g([(0,h.property)({type:Number,attribute:"more-items-scroll-limit"})],t.prototype,"moreItemsScrollLimit",void 0),g([(0,h.property)({type:Number,reflect:!0,attribute:"selected-index"})],t.prototype,"selectedIndex",null),g([(0,h.property)({type:Number})],t.prototype,"animation",void 0),g([(0,h.property)({type:String,attribute:"ghost-class"})],t.prototype,"ghostClass",void 0),g([(0,h.property)({type:String,attribute:"chosen-class"})],t.prototype,"chosenClass",void 0),g([(0,h.property)({type:Boolean,attribute:"force-fallback"})],t.prototype,"forceFallback",void 0),g([(0,h.property)({type:String,attribute:"fallback-class"})],t.prototype,"fallbackClass",void 0),g([(0,h.property)({type:String,attribute:"tabs-id"})],t.prototype,"tabsId",void 0),g([(0,h.property)({type:Boolean,attribute:"persist-selection"})],t.prototype,"persistSelection",void 0),g([(0,h.property)({type:String,attribute:"comp-unique-id"})],t.prototype,"compUniqueId",void 0),g([(0,h.property)({type:String})],t.prototype,"type",void 0),g([(0,h.property)({type:Boolean})],t.prototype,"newMomentum",void 0),g([(0,h.property)({type:String})],t.prototype,"variant",void 0),g([(0,h.property)({type:Boolean,attribute:"scroll-arrow"})],t.prototype,"scrollArrow",void 0),g([(0,h.property)({type:String,attribute:"left-arrow-aria-label"})],t.prototype,"leftArrowAriaLabel",void 0),g([(0,h.property)({type:String,attribute:"right-arrow-aria-label"})],t.prototype,"rightArrowAriaLabel",void 0),g([(0,h.property)({type:Number})],t.prototype,"size",void 0),g([(0,h.state)()],t.prototype,"isMoreTabMenuVisible",void 0),g([(0,h.state)()],t.prototype,"isMoreTabMenuMeasured",void 0),g([(0,h.state)()],t.prototype,"isMoreTabMenuOpen",void 0),g([(0,h.state)()],t.prototype,"isMoreTabMenuSelected",void 0),g([(0,h.state)()],t.prototype,"isMoreTabMenuScrollable",void 0),g([(0,h.state)()],t.prototype,"moreTabMenuOffsetWidth",void 0),g([(0,h.state)()],t.prototype,"moreTabMenuMaxHeight",void 0),g([(0,h.state)()],t.prototype,"tabsViewportDataList",void 0),g([(0,h.state)()],t.prototype,"tabsFilteredAsVisibleList",void 0),g([(0,h.state)()],t.prototype,"tabsFilteredAsHiddenList",void 0),g([(0,h.state)()],t.prototype,"noTabsVisible",void 0),g([(0,h.state)()],t.prototype,"defaultTabsOrderArray",void 0),g([(0,h.state)()],t.prototype,"tabsOrderPrefsArray",void 0),g([(0,h.state)()],t.prototype,"isMoreTabTruncated",void 0),g([(0,h.state)()],t.prototype,"showLeftArrow",void 0),g([(0,h.state)()],t.prototype,"showRightArrow",void 0),g([(0,h.query)("slot[name='tab']")],t.prototype,"tabSlotElement",void 0),g([(0,h.query)("slot[name='panel']")],t.prototype,"panelSlotElement",void 0),g([(0,h.query)(".md-tab__list[part='tabs-list']")],t.prototype,"tabsListElement",void 0),g([(0,h.query)(".md-tabs__settings[part='md-tabs__settings']")],t.prototype,"tabsSettingsElement",void 0),g([(0,h.query)(".md-menu-overlay__more_tab")],t.prototype,"moreTabMenuElement",void 0),g([(0,h.query)("md-menu-overlay")],t.prototype,"menuOverlayElement",void 0),g([(0,h.query)(".md-tab__list[part='tabs-more-list']")],t.prototype,"tabsMoreListElement",void 0),g([(0,h.queryAll)(".md-menu-overlay__more_list md-tab")],t.prototype,"tabsCopyHiddenListElements",void 0),g([(0,h.query)("#visible-tabs-list")],t.prototype,"visibleTabsContainerElement",void 0),g([(0,h.query)("#tabs-more-list")],t.prototype,"hiddenTabsContainerElement",void 0),t=g([(0,r.wW)("md-tabs")],t),e.ELEMENT=t}(V||(V={}))},58175:e=>{e.exports=p},60554:e=>{e.exports=a},66677:(e,t,i)=>{function s(e,t,i){let s;return function(...r){const o=this,a=i&&!s;clearTimeout(s),s=setTimeout(function(){s=null,i||e.apply(o,r)},t),a&&e.apply(o,r)}}function r(e,t){return t>=0&&t<e.length?e[t]:void 0}i.d(t,{Qx:()=>r,sg:()=>s})},68250:e=>{e.exports=h},69371:e=>{e.exports=b},70429:e=>{e.exports=t},84157:e=>{e.exports=d},85125:e=>{e.exports=i},85314:e=>{e.exports=l},87161:t=>{t.exports=e}},T={};function y(e){var t=T[e];if(void 0!==t)return t.exports;var i=T[e]={exports:{}};return f[e].call(i.exports,i,i.exports,y),i.exports}y.m=f,v=[],y.O=(e,t,i,s)=>{if(!t){var r=1/0;for(n=0;n<v.length;n++){for(var[t,i,s]=v[n],o=!0,a=0;a<t.length;a++)(!1&s||r>=s)&&Object.keys(y.O).every(e=>y.O[e](t[a]))?t.splice(a--,1):(o=!1,s<r&&(r=s));if(o){v.splice(n--,1);var l=i();void 0!==l&&(e=l)}}return e}s=s||0;for(var n=v.length;n>0&&v[n-1][2]>s;n--)v[n]=v[n-1];v[n]=[t,i,s]},y.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return y.d(t,{a:t}),t},y.d=(e,t)=>{for(var i in t)y.o(t,i)&&!y.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={144:0,1439:0,1528:0,2139:0,3001:0,3477:0,3820:0,5382:0,6677:0,7763:0,9058:0};y.O.j=t=>0===e[t];var t=(t,i)=>{var s,r,[o,a,l]=i,n=0;if(o.some(t=>0!==e[t])){for(s in a)y.o(a,s)&&(y.m[s]=a[s]);if(l)var d=l(y)}for(t&&t(i);n<o.length;n++)r=o[n],y.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return y.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var g=y.O(void 0,[8493,7103,4765,6752,1890,4313,510,5087,6283,2176,6798,6865,1200,8889,591,195,7819,2848,2243,7919,1323,3192,2669,9164,3625,754],()=>y(50226));return y.O(g)})());
|
package/dist/comp/md-tabs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require("../
|
|
1
|
+
require("../8493"),require("../7103"),require("../4765"),require("../6752"),require("../1890"),require("../4313"),require("../510"),require("../5087"),require("../6283"),require("../2176"),require("../6798"),require("../6865"),require("../1200"),require("../8889"),require("../591"),require("../195"),require("../7819"),require("../2848"),require("../2243"),require("../7919"),require("../1323"),require("../3192"),require("../2669"),require("../9164"),require("../3625"),require("../754"),module.exports=require("../comp/md-tabs-entry");
|
|
@@ -89,4 +89,4 @@
|
|
|
89
89
|
${(0,h.Um)(this.quantity,this.isRestyle,this)}
|
|
90
90
|
</div>
|
|
91
91
|
</div>
|
|
92
|
-
`}};c([(0,n.property)({type:String})],e.prototype,"mediaType",void 0),c([(0,n.property)({type:String})],e.prototype,"status",void 0),c([(0,n.property)({type:String})],e.prototype,"popovertitle",void 0),c([(0,n.property)({type:String})],e.prototype,"queue",void 0),c([(0,n.property)({type:String,attribute:"queue-time-label"})],e.prototype,"queueTimeLabel",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"accepted",void 0),c([(0,n.property)({type:Boolean,attribute:"display-only-title"})],e.prototype,"displayOnlyTitle",void 0),c([(0,n.property)({type:Number})],e.prototype,"quantity",void 0),c([(0,n.property)({type:String})],e.prototype,"lastmessage",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"selected",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,n.property)({type:String})],e.prototype,"customAriaLabel",void 0),c([(0,n.property)({type:String})],e.prototype,"iconSrc",void 0),c([(0,n.property)({type:String})],e.prototype,"tabIndexForContainer",void 0),c([(0,n.property)({type:Boolean,attribute:"is-restyle"})],e.prototype,"isRestyle",void 0),c([(0,n.property)({type:String,reflect:!0})],e.prototype,"title",null),c([(0,n.property)({type:String,reflect:!0,attribute:"item-title"})],e.prototype,"itemTitle",null),c([(0,n.state)()],e.prototype,"additionEmptyMargin",void 0),e=c([(0,o.w)("md-task-item")],e),t.ELEMENT=e}(s||(s={}))},87161:e=>{e.exports=t},89756:t=>{t.exports=n}},h={};function m(t){var e=h[t];if(void 0!==e)return e.exports;var i=h[t]={exports:{}};return d[t](i,i.exports,m),i.exports}m.m=d,p=[],m.O=(t,e,i,s)=>{if(!e){var o=1/0;for(n=0;n<p.length;n++){for(var[e,i,s]=p[n],r=!0,l=0;l<e.length;l++)(!1&s||o>=s)&&Object.keys(m.O).every(t=>m.O[t](e[l]))?e.splice(l--,1):(r=!1,s<o&&(o=s));if(r){p.splice(n--,1);var a=i();void 0!==a&&(t=a)}}return t}s=s||0;for(var n=p.length;n>0&&p[n-1][2]>s;n--)p[n]=p[n-1];p[n]=[e,i,s]},m.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return m.d(e,{a:e}),e},m.d=(t,e)=>{for(var i in e)m.o(e,i)&&!m.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},m.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),m.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={8111:0,8339:0};m.O.j=e=>0===t[e];var e=(e,i)=>{var s,o,[r,l,a]=i,n=0;if(r.some(e=>0!==t[e])){for(s in l)m.o(l,s)&&(m.m[s]=l[s]);if(a)var p=a(m)}for(e&&e(i);n<r.length;n++)o=r[n],m.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return m.O(p)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var c=m.O(void 0,[
|
|
92
|
+
`}};c([(0,n.property)({type:String})],e.prototype,"mediaType",void 0),c([(0,n.property)({type:String})],e.prototype,"status",void 0),c([(0,n.property)({type:String})],e.prototype,"popovertitle",void 0),c([(0,n.property)({type:String})],e.prototype,"queue",void 0),c([(0,n.property)({type:String,attribute:"queue-time-label"})],e.prototype,"queueTimeLabel",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"accepted",void 0),c([(0,n.property)({type:Boolean,attribute:"display-only-title"})],e.prototype,"displayOnlyTitle",void 0),c([(0,n.property)({type:Number})],e.prototype,"quantity",void 0),c([(0,n.property)({type:String})],e.prototype,"lastmessage",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"selected",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,n.property)({type:String})],e.prototype,"customAriaLabel",void 0),c([(0,n.property)({type:String})],e.prototype,"iconSrc",void 0),c([(0,n.property)({type:String})],e.prototype,"tabIndexForContainer",void 0),c([(0,n.property)({type:Boolean,attribute:"is-restyle"})],e.prototype,"isRestyle",void 0),c([(0,n.property)({type:String,reflect:!0})],e.prototype,"title",null),c([(0,n.property)({type:String,reflect:!0,attribute:"item-title"})],e.prototype,"itemTitle",null),c([(0,n.state)()],e.prototype,"additionEmptyMargin",void 0),e=c([(0,o.w)("md-task-item")],e),t.ELEMENT=e}(s||(s={}))},87161:e=>{e.exports=t},89756:t=>{t.exports=n}},h={};function m(t){var e=h[t];if(void 0!==e)return e.exports;var i=h[t]={exports:{}};return d[t](i,i.exports,m),i.exports}m.m=d,p=[],m.O=(t,e,i,s)=>{if(!e){var o=1/0;for(n=0;n<p.length;n++){for(var[e,i,s]=p[n],r=!0,l=0;l<e.length;l++)(!1&s||o>=s)&&Object.keys(m.O).every(t=>m.O[t](e[l]))?e.splice(l--,1):(r=!1,s<o&&(o=s));if(r){p.splice(n--,1);var a=i();void 0!==a&&(t=a)}}return t}s=s||0;for(var n=p.length;n>0&&p[n-1][2]>s;n--)p[n]=p[n-1];p[n]=[e,i,s]},m.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return m.d(e,{a:e}),e},m.d=(t,e)=>{for(var i in e)m.o(e,i)&&!m.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},m.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),m.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={8111:0,8339:0};m.O.j=e=>0===t[e];var e=(e,i)=>{var s,o,[r,l,a]=i,n=0;if(r.some(e=>0!==t[e])){for(s in l)m.o(l,s)&&(m.m[s]=l[s]);if(a)var p=a(m)}for(e&&e(i);n<r.length;n++)o=r[n],m.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return m.O(p)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var c=m.O(void 0,[8493,4765,6752,1890,4313,510,5087,6283,2176,6798,6865,1200,2576,7292,6188,15,8923,7119,8028,9480,679,5427],()=>m(86610));return m.O(c)})());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require("../
|
|
1
|
+
require("../8493"),require("../4765"),require("../6752"),require("../1890"),require("../4313"),require("../510"),require("../5087"),require("../6283"),require("../2176"),require("../6798"),require("../6865"),require("../1200"),require("../2576"),require("../7292"),require("../6188"),require("../15"),require("../8923"),require("../7119"),require("../8028"),require("../9480"),require("../679"),require("../5427"),module.exports=require("../comp/md-task-item-entry");
|
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
${this.finalTwentyFourFormat?l.nothing:this.generateAmPmComboBox()}
|
|
44
44
|
</div>
|
|
45
45
|
</div>
|
|
46
|
-
`}};p([(0,m.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),p([(0,m.property)({type:Boolean,attribute:"twenty-four-hour-format",reflect:!0})],e.prototype,"twentyFourHourFormat",void 0),p([(0,m.property)({type:String})],e.prototype,"timeSpecificity",void 0),p([(0,m.property)({type:String})],e.prototype,"locale",void 0),p([(0,m.property)({type:String,reflect:!0})],e.prototype,"value",void 0),p([(0,m.property)({type:Boolean,attribute:"show-default-now-time"})],e.prototype,"showDefaultNowTime",void 0),p([(0,m.state)()],e.prototype,"finalTwentyFourFormat",void 0),p([(0,m.state)()],e.prototype,"timeObject",void 0),p([(0,m.state)()],e.prototype,"tabNext",void 0),p([(0,m.state)()],e.prototype,"timeValue",void 0),p([(0,m.state)()],e.prototype,"timeValidity",void 0),e=p([(0,o.w)("md-timepicker")],e),t.ELEMENT=e}(b||(b={}))},58175:t=>{t.exports=l},60554:t=>{t.exports=a},65796:t=>{t.exports=m},70429:t=>{t.exports=e},85125:t=>{t.exports=i},85314:t=>{t.exports=n},87161:e=>{e.exports=t},90195:(t,e,i)=>{var s,o,r,a;i.d(e,{R5:()=>o,Uz:()=>s,iw:()=>a}),function(t){t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.Backspace="Backspace",t.Delete="Delete",t.End="End",t.Enter="Enter",t.Escape="Escape",t.Home="Home",t.Space="Space",t.Tab="Tab",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.NumpadEnter="NumpadEnter"}(s||(s={})),function(t){t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.AM_PM="am_pm"}(o||(o={})),function(t){t.GRAMMAR="grammar",t.FALSE="false",t.SPELLING="spelling",t.TRUE="true"}(r||(r={})),function(t){t.AriaActivedescendant="aria-activedescendant"}(a||(a={}))}},c={};function d(t){var e=c[t];if(void 0!==e)return e.exports;var i=c[t]={exports:{}};return h[t].call(i.exports,i,i.exports,d),i.exports}d.m=h,u=[],d.O=(t,e,i,s)=>{if(!e){var o=1/0;for(l=0;l<u.length;l++){for(var[e,i,s]=u[l],r=!0,a=0;a<e.length;a++)(!1&s||o>=s)&&Object.keys(d.O).every(t=>d.O[t](e[a]))?e.splice(a--,1):(r=!1,s<o&&(o=s));if(r){u.splice(l--,1);var n=i();void 0!==n&&(t=n)}}return t}s=s||0;for(var l=u.length;l>0&&u[l-1][2]>s;l--)u[l]=u[l-1];u[l]=[e,i,s]},d.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return d.d(e,{a:e}),e},d.d=(t,e)=>{for(var i in e)d.o(e,i)&&!d.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},d.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),d.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),d.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={195:0,671:0,2576:0,5433:0,7145:0};d.O.j=e=>0===t[e];var e=(e,i)=>{var s,o,[r,a,n]=i,l=0;if(r.some(e=>0!==t[e])){for(s in a)d.o(a,s)&&(d.m[s]=a[s]);if(n)var m=n(d)}for(e&&e(i);l<r.length;l++)o=r[l],d.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return d.O(m)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var p=d.O(void 0,[
|
|
46
|
+
`}};p([(0,m.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),p([(0,m.property)({type:Boolean,attribute:"twenty-four-hour-format",reflect:!0})],e.prototype,"twentyFourHourFormat",void 0),p([(0,m.property)({type:String})],e.prototype,"timeSpecificity",void 0),p([(0,m.property)({type:String})],e.prototype,"locale",void 0),p([(0,m.property)({type:String,reflect:!0})],e.prototype,"value",void 0),p([(0,m.property)({type:Boolean,attribute:"show-default-now-time"})],e.prototype,"showDefaultNowTime",void 0),p([(0,m.state)()],e.prototype,"finalTwentyFourFormat",void 0),p([(0,m.state)()],e.prototype,"timeObject",void 0),p([(0,m.state)()],e.prototype,"tabNext",void 0),p([(0,m.state)()],e.prototype,"timeValue",void 0),p([(0,m.state)()],e.prototype,"timeValidity",void 0),e=p([(0,o.w)("md-timepicker")],e),t.ELEMENT=e}(b||(b={}))},58175:t=>{t.exports=l},60554:t=>{t.exports=a},65796:t=>{t.exports=m},70429:t=>{t.exports=e},85125:t=>{t.exports=i},85314:t=>{t.exports=n},87161:e=>{e.exports=t},90195:(t,e,i)=>{var s,o,r,a;i.d(e,{R5:()=>o,Uz:()=>s,iw:()=>a}),function(t){t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.Backspace="Backspace",t.Delete="Delete",t.End="End",t.Enter="Enter",t.Escape="Escape",t.Home="Home",t.Space="Space",t.Tab="Tab",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.NumpadEnter="NumpadEnter"}(s||(s={})),function(t){t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.AM_PM="am_pm"}(o||(o={})),function(t){t.GRAMMAR="grammar",t.FALSE="false",t.SPELLING="spelling",t.TRUE="true"}(r||(r={})),function(t){t.AriaActivedescendant="aria-activedescendant"}(a||(a={}))}},c={};function d(t){var e=c[t];if(void 0!==e)return e.exports;var i=c[t]={exports:{}};return h[t].call(i.exports,i,i.exports,d),i.exports}d.m=h,u=[],d.O=(t,e,i,s)=>{if(!e){var o=1/0;for(l=0;l<u.length;l++){for(var[e,i,s]=u[l],r=!0,a=0;a<e.length;a++)(!1&s||o>=s)&&Object.keys(d.O).every(t=>d.O[t](e[a]))?e.splice(a--,1):(r=!1,s<o&&(o=s));if(r){u.splice(l--,1);var n=i();void 0!==n&&(t=n)}}return t}s=s||0;for(var l=u.length;l>0&&u[l-1][2]>s;l--)u[l]=u[l-1];u[l]=[e,i,s]},d.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return d.d(e,{a:e}),e},d.d=(t,e)=>{for(var i in e)d.o(e,i)&&!d.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},d.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),d.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),d.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={195:0,671:0,2576:0,5433:0,7145:0};d.O.j=e=>0===t[e];var e=(e,i)=>{var s,o,[r,a,n]=i,l=0;if(r.some(e=>0!==t[e])){for(s in a)d.o(a,s)&&(d.m[s]=a[s]);if(n)var m=n(d)}for(e&&e(i);l<r.length;l++)o=r[l],d.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return d.O(m)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var p=d.O(void 0,[8493,7103,1890,4313,510,5087,6283,2176,6798,6865,1200,8889,8373,4624,300,591,768,3001,5630,1013,109,3739,6396,6408,9270,4548,3820,2547,4006,9238],()=>d(49256));return d.O(p)})());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require("../
|
|
1
|
+
require("../8493"),require("../7103"),require("../1890"),require("../4313"),require("../510"),require("../5087"),require("../6283"),require("../2176"),require("../6798"),require("../6865"),require("../1200"),require("../8889"),require("../8373"),require("../4624"),require("../300"),require("../591"),require("../768"),require("../3001"),require("../5630"),require("../1013"),require("../109"),require("../3739"),require("../6396"),require("../6408"),require("../9270"),require("../4548"),require("../3820"),require("../2547"),require("../4006"),require("../9238"),module.exports=require("../comp/md-timepicker-entry");
|
package/dist/index-entry.js
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
${this.isCustomContent?this.getCustomContent(t):this.highlightingSearchedText(t)}
|
|
51
51
|
</span>
|
|
52
52
|
</div>
|
|
53
|
-
`}}get focusedIndex(){return this._focusedIndex}set focusedIndex(t){this.updateFocusedIndex(t)}updateFocusedIndex(t){var e,i,o,s;const r=this._focusedIndex;if(this.checkForVirtualScroll()){let r;r=this.allowSelectAll?0===t?"selectAll":this.getOptionId(this.filteredOptions[t-1]):this.getOptionId(this.filteredOptions[t]);const a=this.lists?null===(e=[...this.lists])||void 0===e?void 0:e.find(t=>0!==t.offsetHeight&&t.id===r):"";this.lists&&[...this.lists].forEach(t=>{t.toggleAttribute("focused",!1)}),a&&(null==a||a.toggleAttribute("focused",!0));const n=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector("lit-virtualizer");n&&(-1===t?null===(o=n.element(t))||void 0===o||o.scrollIntoView({block:"start"}):null===(s=n.element(t))||void 0===s||s.scrollIntoView({block:"center"}))}else if(this.lists){const e=this.lists[r];e&&e.toggleAttribute("focused",!1);const i=this.lists[t];i&&i.toggleAttribute("focused",!0)}this._focusedIndex=t,this.requestUpdate("focusedIndex",r)}get focusedGroupIndex(){return this._focusedGroupIndex}set focusedGroupIndex(t){const e=this._focusedGroupIndex;if(this.labels&&0!==this.labels.length){const i=this.labels[e];i&&i.toggleAttribute("focused",!1);const o=this.labels[t];o&&(o.toggleAttribute("focused",!0),o.focus())}this._focusedGroupIndex=t,this.requestUpdate("focusedGroupIndex",e)}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}notifySearchResultCount(){if(this.searchResultAriaLabel){const t=/{{.*?}}/g;this.ariaLabelForComboBox=this.searchResultAriaLabel.replace(t,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForComboBox=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForComboBox=`ComboBox Element, ${this.filteredOptions.length} results found.`}firstUpdated(t){this.ariaLabelForComboBox=this.ariaLabel?this.ariaLabel:"ComboBox Element",super.firstUpdated(t),this.isCustomContent&&(this.optionId="id",this.optionValue="value",this.setOptionCustomContent()),this.setInitialValue()}updated(t){super.updated(t),t.has("expanded")&&(this.expanded?(this.resizeListbox(),this.checkSelectedOptions()):this.unCheckAllOptions()),t.has("focusedIndex")&&this.focusedIndex>=0&&(this.checkForVirtualScroll()||this.scrollToOption()),t.has("value")&&0===this.selectedOptions.length&&this.setInitialValue(),t.has("customOptions")&&this.isCustomContent&&(this.setOptionCustomContent(),this.resizeListbox()),t.has("showCustomError")&&this.resizeListbox(),t.has("showLoader")&&this.resizeListbox(),t.has("searchItem")&&this.resizeListbox()}handleFocusIn(t){var e;this.disabled&&!this.readOnly||(this.noClearIcon&&(requestAnimationFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1}),this.selectWhenInFocus&&this.input.select()),null===(e=super.handleFocusIn)||void 0===e||e.call(this,t)),this.dispatchEvent(new CustomEvent("combobox-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){var e;null===(e=super.handleFocusOut)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("combobox-focus-out",{composed:!0,bubbles:!0}))}findFilteredOption(t){return this.isOptionObject(t)?this.filteredOptions.findIndex(e=>this.getOptionId(e)===this.getOptionId(t)&&this.getOptionValue(e)===this.getOptionValue(t)):this.filteredOptions.indexOf(t)}setInitialValue(){var t;if(this.value.length)if(this.isMulti)this.value.forEach(t=>{-1!==this.findFilteredOption(t)&&this.setSelectedOption(t)});else{const e=this.value[0],i=this.findFilteredOption(e);-1!==i&&(this.setSelectedOption(e),this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedIndex=i,this.focusedGroupIndex=-1)}}isOptionObject(t){return"object"==typeof t&&null!==t}setOptionCustomContent(){if(this.isOptGroup){const t=[...this.querySelectorAll("optgroup")],e=[];for(const i of t){const t=i.getAttribute("label"),o=[...i.querySelectorAll("[slot]")];e.push({isLabel:"true",[this.optionValue]:t,groupName:t});for(const i of o){const o=i.getAttribute("aria-label"),s=i.getAttribute("display-value"),r=i.getAttribute("slot");o&&s&&e.push({[this.optionId]:o,[this.optionValue]:s,isLabel:"false",groupName:t,slot:r})}}this.options=e}else this.customContent=[...this.querySelectorAll("[slot]")],this.customContent&&this.customContent.length?this.options=this.customContent.map(t=>{const e=t.getAttribute("aria-label"),i=t.getAttribute("display-value");if(e&&i)return{[this.optionId]:e,[this.optionValue]:i}}):this.options=[]}getOptionValue(t){return this.isOptionObject(t)?t[this.optionValue]:t}getOptionGroupName(t){return null==t?void 0:t.groupName}getOptionId(t){return this.isOptionObject(t)?t[this.optionId]:t}getFocusedItem(t){if(t>=0)return this.filteredOptions[t]}setupEvents(){document.addEventListener("click",this.handleOutsideClick),this.addEventListener("remove-all-selected",this.removeAllSelected),this.addEventListener("selected-changed",this.selectedChange)}teardownEvents(){document.removeEventListener("click",this.handleOutsideClick),this.removeEventListener("remove-all-selected",this.removeAllSelected),this.removeEventListener("selected-changed",this.selectedChange)}setVisualListbox(t){this.expanded=t}setGroupList(t){this.groupExpandedList.includes(t)?(this.groupExpandedList.splice(this.groupExpandedList.indexOf(t),1),this.groupExpandedList=[...this.groupExpandedList]):this.searchItem?this.groupExpandedList.push(t):this.groupExpandedList=[t]}findSelectedOption(t){return this.optionId&&t?this.selectedOptions.findIndex(e=>e&&e[this.optionId]===t[this.optionId]):this.selectedOptions.indexOf(t)}findOptionIndex(t){const e=t.composedPath();if(this.checkForVirtualScroll()){let t="";return[...this.lists].forEach(i=>{e.includes(i)&&(t=i.id)}),this.filteredOptions.findIndex(e=>this.getOptionId(e)===t)}return[...this.lists].findIndex(t=>e.includes(t))}checkSelectedOptions(){if(this.checkForVirtualScroll()){const t=this.selectedOptions.map(t=>this.getOptionId(t)),e=[...this.lists].filter(t=>"selectAll"!==t.id);null==e||e.forEach(e=>{t.includes(e.id)?(this.isMulti&&(null==e||e.setAttribute("aria-checked","true")),null==e||e.setAttribute("aria-selected","true")):this.isMulti&&(null==e||e.setAttribute("aria-checked","false"))})}}unCheckAllOptions(){var t;this.checkForVirtualScroll()&&this.isMulti&&(null===(t=[...this.lists])||void 0===t||t.forEach(t=>{"selectAll"!==(null==t?void 0:t.id)&&(null==t||t.setAttribute("aria-checked","false"))}))}setSelectedOption(t){this.isMulti||(this.selectedOptions=[]);const e=this.findSelectedOption(t);if(-1!==e){const t=this.selectedOptions[e];this.selectedOptions.splice(e,1),this.notifySelectedChange({value:t,selected:this.selectedOptions})}else this.selectedOptions.push(t),this.notifySelectedChange({value:t,selected:this.selectedOptions});this.checkSelectedOptions(),this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()),this.requestUpdate()}filterOptions(t){if(this.preventFilter)return this.searchItem=!1,this.options;if(t&&t.length){const e=this.options.filter(e=>this.isOptGroup&&"string"!=typeof e&&"true"===e.isLabel?e:(this.isCustomContent?this.getOptionId(e):this.getOptionValue(e)).toLowerCase().includes(t.toLowerCase()));return this.isOptGroup?this.handleGroupFilter(e):e}return this.searchItem=!1,this.options}getListBoxVerticalPadding(){if(this.listBox){const t=window.getComputedStyle(this.listBox,null),e=parseInt(t.getPropertyValue("padding-top"))+parseInt(t.getPropertyValue("padding-bottom"));if(!isNaN(e))return e+2}return 10}resizeListbox(){this.updateOnNextFrame(()=>{var t;let e=0,i=0,o=0;const s=this.getListBoxVerticalPadding();if(this.lists){const t=this.checkForVirtualScroll()?[...this.lists].filter(t=>0!==t.offsetHeight):[...this.lists];e=t.slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0),o=this.checkForVirtualScroll()&&this.allowSelectAll?t.slice(1,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0):t.slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0)}if(this.labels&&(i=[...this.labels].slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0)),this.listBox&&(this.listBox.style.maxHeight=`${e+i+s}px`),this.virtualizer&&(this.virtualizer.style.height=`${o+s}px`),this.showCustomError||this.showLoader){const e=null===(t=this.listBox)||void 0===t?void 0:t.querySelector("[slot]");this.listBox&&e&&(this.listBox.style.height=`${e.clientHeight+s}px`,this.listBox.style.maxHeight=`${e.clientHeight+s}px`)}})}setInputValue(t=""){this.input.value=t}updateOnNextFrame(t){requestAnimationFrame(t)}unCheckedAllOptions(){this.isMulti&&(this.lists.forEach((t,e)=>this.unCheckedOption(e)),this.isSelectAllChecked=!1)}unCheckedOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","false"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}checkAllOptions(){this.isMulti&&this.lists.forEach((t,e)=>this.checkOption(e))}checkOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","true"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}isSelectAllSelected(){return this.selectedOptions.length===this.options.length}setFocusOnHost(t){this.setFocus&&this.setFocus(t)}isOptionFocused(t){return this.focusedIndex===t}getAriaState(t){return this.isOptionFocused(t)}scrollToOption(){var t,e;let i=0;const{top:o,bottom:s}=this.listBox.getBoundingClientRect(),r=this.lists[this.focusedIndex],a=null===(t=this.lists[this.focusedIndex+1]||r)||void 0===t?void 0:t.getBoundingClientRect(),n=null===(e=this.lists[this.focusedIndex-1]||r)||void 0===e?void 0:e.getBoundingClientRect();(null==a?void 0:a.bottom)>s?i=a.bottom-s+2:(null==n?void 0:n.top)<o&&(i=n.top-o-2),this.updateOnNextFrame(()=>{this.listBox.scrollTop+=i})}getCustomContentName(t){const e=this.options.indexOf(t);if(this.isOptGroup){const t=this.options[e];if(t&&"string"!=typeof t)return t.slot}else if(-1!==e)return this.customContent[e].slot}setInputSelectionRange(t,e){this.input.setSelectionRange(t,e)}isOptionChecked(t){return-1!==this.findSelectedOption(t)?"true":"false"}getInputSelection(){return this.input.selectionStart}canMultiSelect(){return 0===this.getInputSelection()&&0!==this.selectedOptions.length&&this.isMulti}removeMultiTag(){this.selected&&this.multiSelected.forEach(t=>{const e=this.selected[t];e&&e.hasAttribute("selected")&&this.removeSelected(this.selectedOptions[t])})}unselectedAllMultiTag(){this.selected&&this.selected.forEach(t=>t.removeAttribute("selected")),this.multiSelectedIndex=-1}findLastMultiSelected(){return this.selected[this.multiSelectedIndex]}toggleMultiSelectedTag(t,e){t&&t.toggleAttribute("selected",e)}selectMultiTag(t){if(this.canMultiSelect()){if(!t){this.multiSelected=[];const t=this.findLastMultiSelected();this.toggleMultiSelectedTag(t,!1)}this.multiSelectedIndex<=0?this.multiSelectedIndex=this.selectedOptions.length-1:this.multiSelectedIndex--,this.multiSelected.push(this.multiSelectedIndex);const e=this.findLastMultiSelected();this.toggleMultiSelectedTag(e,!0)}}handleListClick(t){return g(this,void 0,void 0,function*(){this.dispatchEvent(new CustomEvent("selected-changed",{detail:{event:t}})),yield this.updateComplete,this.isMulti?this.setVisualListbox(!0):this.setVisualListbox(!1),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1})})}handleSelectAll(){return g(this,void 0,void 0,function*(){this.isSelectAllChecked=!this.isSelectAllChecked,this.isSelectAllChecked?(this.selectedOptions=[...this.options],this.checkAllOptions()):(this.selectedOptions=[],this.unCheckedAllOptions()),yield this.updateComplete,this.setVisualListbox(!0),this.notifySelectedChange({selected:this.selectedOptions})})}handleInputKeyUp(t){switch(t.code){case s.Uz.Escape:break;case s.Uz.Backspace:this.setFocusOnHost(!0),this.setVisualListbox(!0),this.resizeListbox(),this.removeMultiTag();break;case s.Uz.ArrowLeft:this.isMulti&&(t.shiftKey?this.selectMultiTag(!0):this.selectMultiTag(!1));break;default:this.isMulti&&this.unselectedAllMultiTag()}}handleInput(t){const e=t.target.value;this.inputValue=e.trim(),this.notifyInputValueChanged(e.trim())}removeAllSelected(){var t;this.focusedIndex=-1,this.focusedGroupIndex=-1,this.selectedOptions=[],this.inputValue="",this.setInputValue(),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.unCheckedAllOptions(),this.setSelectedAttribute(void 0),this.updateOnNextFrame(()=>{this.input.focus()}),this.notifySelectedChange({selected:this.selectedOptions})}removeSelected(t){const e=this.findSelectedOption(t),i=this.filteredOptions.indexOf(t);-1!==i&&this.unCheckedOption(i),-1!==e&&(this.selectedOptions.splice(e,1),this.requestUpdate()),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1})}selectedChange(t){var e;const{event:i}=t.detail;let o=this.findOptionIndex(i);if(-1!==o){this.focusedIndex=this.allowSelectAll&&this.checkForVirtualScroll()?o+1:o,this.isMulti&&this.allowSelectAll&&!this.checkForVirtualScroll()&&(o-=1);const t=this.getFocusedItem(o);this.setSelectedAttribute(t),t&&(this.setSelectedOption(t),this.isMulti?this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()):(this.setInputValue(this.getOptionValue(t)),null===(e=this.input)||void 0===e||e.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(t))))}}setSelectedAttribute(t){var e;let i="";t&&(i=this.getOptionId(t)),null===(e=this.lists)||void 0===e||e.forEach((t,e)=>{(null==t?void 0:t.id)===i?null==t||t.setAttribute("selected","true"):null==t||t.setAttribute("selected","false")})}shouldChangeButton(){const t=this.input&&this.input.value.length>0&&!this.noClearIcon||this.isMulti&&this.selectedOptions.length&&!this.noClearIcon;return t&&document.dispatchEvent(new CustomEvent("on-widget-update")),t}setCustomValue(){this.optionId||this.optionValue||(this.options=[...this.options,this.inputValue],this.setSelectedOption(this.inputValue),this.isMulti||this.updateOnNextFrame(()=>{var t;this.focusedIndex=this.filteredOptions.length-1;const e=this.getFocusedItem(this.focusedIndex);e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)))}),this.dispatchEvent(new CustomEvent("custom-value-add",{composed:!0,bubbles:!0,detail:{value:this.inputValue}}))),this.inputValue=""}handleGroupFocus(){this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.filteredGroupOptions.length>0&&-1===this.focusedGroupIndex&&(this.focusedGroupIndex=this.filteredGroupOptions.findIndex(t=>"string"!=typeof t&&t.groupName===this.groupExpandedList[0])),this.updateOnNextFrame(()=>{-1===this.focusedGroupIndex||!this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length-1||this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length?this.focusedGroupIndex=0:this.focusedGroupIndex++}),this.focusedIndex=-1}handleInputKeyDown(t){var e,i;switch(t.code){case s.Uz.Backspace:this.focusedIndex=-1;break;case s.Uz.Tab:case s.Uz.Enter:if(this.setFocusOnHost(!0),this.expanded&&this.updateOnNextFrame(()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);this.allowCustomValue&&this.input&&this.input.value.length&&-1===this.findFilteredOption(this.inputValue)?this.setCustomValue():(e&&(this.setSelectedAttribute(e),this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll())}),this.setVisualListbox(!1),t.code===s.Uz.Tab&&this.isMulti)return;break;case s.Uz.ArrowDown:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame(()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1});break;case s.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame(()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedGroupIndex=-1)});break;case s.Uz.ArrowLeft:case s.Uz.ArrowRight:t.stopPropagation();break;case s.Uz.Escape:this.setFocusOnHost(!0),this.expanded?(t.stopPropagation(),this.setVisualListbox(!1)):(this.setInputValue(),null===(e=this.input)||void 0===e||e.setAttribute(s.iw.AriaActivedescendant,""),this.focusedIndex=-1,this.focusedGroupIndex=-1,this.removeAllSelected(),this.setSelectedAttribute(void 0));break;case s.Uz.Home:this.setInputSelectionRange(0,0);break;case s.Uz.End:{const{length:t}=this.inputValue;this.setInputSelectionRange(t,t)}break;case s.Uz.Space:if(this.isMulti&&this.expanded){t.preventDefault();const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.setSelectedAttribute(e),this.showSelectedCount||(this.setInputValue(),null===(i=this.input)||void 0===i||i.setAttribute(s.iw.AriaActivedescendant,""))),0===this.focusedIndex&&this.allowSelectAll&&this.handleSelectAll()}this.expanded=!0}}handleGroupLabelKeyDown(t,e){switch(t.code){case s.Uz.Tab:this.handleGroupFocus();break;case s.Uz.Enter:case s.Uz.Space:-1!==this.focusedGroupIndex?this.toggleGroupListBox(t,e.value):(this.setFocusOnHost(!0),this.setVisualListbox(!1),this.updateOnNextFrame(()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1}))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll()}));break;case s.Uz.ArrowDown:if(0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame(()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1});break;case s.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame(()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)))});break;case s.Uz.Escape:this.focusedGroupIndex=-1,this.setVisualListbox(!1),this.setFocusOnHost(!0),this.input.focus();break;default:this.setVisualListbox(!0)}}toggleVisualListBox(t){var e,i;if(!this.readOnly){if(t.target.classList.contains("md-combobox-listbox"))t.target.focus();else if("md-icon"===t.target.localName){const o=null===(i=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.parentElement;if(o){const t=o.querySelector(".md-combobox-listbox");(0,y.setTimeout)(()=>{t.focus()},10)}}this.expanded?this.setVisualListbox(!1):(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.setVisualListbox(!0)),this.input.focus(),this.setGroupList(""),this.focusedGroupIndex=-1}}toggleGroupListBox(t,e){t.stopPropagation(),this.focusedGroupIndex=this.filteredGroupOptions.findIndex(t=>"string"!=typeof t&&t.groupName===e),this.setGroupList(e),this.resizeListbox()}handleRemoveAll(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}connectedCallback(){super.connectedCallback(),this.setupEvents(),this.querySelector("optgroup")&&(this.isOptGroup=!0)}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}static get styles(){return[l.A,b.A]}get listItemOptionMap(){return{"md-combobox-multiselect":this.isMulti,compact:this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}get filteredOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter(t=>!this.isOptGroup||("string"!=typeof t&&this.groupExpandedList.includes(this.getOptionGroupName(t))?"false"===t.isLabel:void 0))}get filteredGroupOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter(t=>!this.isOptGroup||("string"!=typeof t?"true"===t.isLabel:void 0))}get comboBoxTemplateClassMap(){return{[`md-combobox--${this.shape}`]:!!this.shape,"md-combobox-searchable":this.searchable,"md-combobox-has-leading-icon":this.searchable||this.showFilterIcon,"md-new-combobox":this.newMomentum,[`md-${this.messageType}`]:!!this.messageType,"md-combobox-readonly":this.readOnly,"md-combobox-compact":this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}searchIconTemplate(){return this.leadingIconTemplate("search-bold","search-icon")}filterIconTemplate(){return this.leadingIconTemplate("filter-bold","filter-icon")}leadingIconTemplate(t,e){return d.html`
|
|
53
|
+
`}}get focusedIndex(){return this._focusedIndex}set focusedIndex(t){this.updateFocusedIndex(t)}updateFocusedIndex(t){var e,i,o,s;const r=this._focusedIndex;if(this.checkForVirtualScroll()){let r;r=this.allowSelectAll?0===t?"selectAll":this.getOptionId(this.filteredOptions[t-1]):this.getOptionId(this.filteredOptions[t]);const a=this.lists?null===(e=[...this.lists])||void 0===e?void 0:e.find(t=>0!==t.offsetHeight&&t.id===r):"";this.lists&&[...this.lists].forEach(t=>{t.toggleAttribute("focused",!1)}),a&&(null==a||a.toggleAttribute("focused",!0));const n=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector("lit-virtualizer");n&&(-1===t?null===(o=n.element(t))||void 0===o||o.scrollIntoView({block:"start"}):null===(s=n.element(t))||void 0===s||s.scrollIntoView({block:"center"}))}else if(this.lists){const e=this.lists[r];e&&e.toggleAttribute("focused",!1);const i=this.lists[t];i&&i.toggleAttribute("focused",!0)}this._focusedIndex=t,this.requestUpdate("focusedIndex",r)}get focusedGroupIndex(){return this._focusedGroupIndex}set focusedGroupIndex(t){const e=this._focusedGroupIndex;if(this.labels&&0!==this.labels.length){const i=this.labels[e];i&&i.toggleAttribute("focused",!1);const o=this.labels[t];o&&(o.toggleAttribute("focused",!0),o.focus())}this._focusedGroupIndex=t,this.requestUpdate("focusedGroupIndex",e)}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}notifySearchResultCount(){if(this.searchResultAriaLabel){const t=/{{.*?}}/g;this.ariaLabelForComboBox=this.searchResultAriaLabel.replace(t,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForComboBox=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForComboBox=`ComboBox Element, ${this.filteredOptions.length} results found.`}firstUpdated(t){this.ariaLabelForComboBox=this.ariaLabel?this.ariaLabel:"ComboBox Element",super.firstUpdated(t),this.isCustomContent&&(this.optionId="id",this.optionValue="value",this.setOptionCustomContent()),this.setInitialValue()}updated(t){super.updated(t),t.has("expanded")&&(this.expanded?(this.resizeListbox(),this.checkSelectedOptions()):this.unCheckAllOptions()),t.has("focusedIndex")&&this.focusedIndex>=0&&(this.checkForVirtualScroll()||this.scrollToOption()),t.has("value")&&0===this.selectedOptions.length&&this.setInitialValue(),t.has("options")&&this.expanded&&this.checkForVirtualScroll()&&this.updateOnNextFrame(()=>{this.resizeListbox()}),t.has("customOptions")&&this.isCustomContent&&(this.setOptionCustomContent(),this.resizeListbox()),t.has("showCustomError")&&this.resizeListbox(),t.has("showLoader")&&this.resizeListbox(),t.has("searchItem")&&this.resizeListbox()}handleFocusIn(t){var e;this.disabled&&!this.readOnly||(this.noClearIcon&&(requestAnimationFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1}),this.selectWhenInFocus&&this.input.select()),null===(e=super.handleFocusIn)||void 0===e||e.call(this,t)),this.dispatchEvent(new CustomEvent("combobox-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){var e;null===(e=super.handleFocusOut)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("combobox-focus-out",{composed:!0,bubbles:!0}))}findFilteredOption(t){return this.isOptionObject(t)?this.filteredOptions.findIndex(e=>this.getOptionId(e)===this.getOptionId(t)&&this.getOptionValue(e)===this.getOptionValue(t)):this.filteredOptions.indexOf(t)}setInitialValue(){var t;if(this.value.length)if(this.isMulti)this.value.forEach(t=>{-1!==this.findFilteredOption(t)&&this.setSelectedOption(t)});else{const e=this.value[0],i=this.findFilteredOption(e);-1!==i&&(this.setSelectedOption(e),this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedIndex=i,this.focusedGroupIndex=-1)}}isOptionObject(t){return"object"==typeof t&&null!==t}setOptionCustomContent(){if(this.isOptGroup){const t=[...this.querySelectorAll("optgroup")],e=[];for(const i of t){const t=i.getAttribute("label"),o=[...i.querySelectorAll("[slot]")];e.push({isLabel:"true",[this.optionValue]:t,groupName:t});for(const i of o){const o=i.getAttribute("aria-label"),s=i.getAttribute("display-value"),r=i.getAttribute("slot");o&&s&&e.push({[this.optionId]:o,[this.optionValue]:s,isLabel:"false",groupName:t,slot:r})}}this.options=e}else this.customContent=[...this.querySelectorAll("[slot]")],this.customContent&&this.customContent.length?this.options=this.customContent.map(t=>{const e=t.getAttribute("aria-label"),i=t.getAttribute("display-value");if(e&&i)return{[this.optionId]:e,[this.optionValue]:i}}):this.options=[]}getOptionValue(t){return this.isOptionObject(t)?t[this.optionValue]:t}getOptionGroupName(t){return null==t?void 0:t.groupName}getOptionId(t){return this.isOptionObject(t)?t[this.optionId]:t}getFocusedItem(t){if(t>=0)return this.filteredOptions[t]}setupEvents(){document.addEventListener("click",this.handleOutsideClick),this.addEventListener("remove-all-selected",this.removeAllSelected),this.addEventListener("selected-changed",this.selectedChange)}teardownEvents(){document.removeEventListener("click",this.handleOutsideClick),this.removeEventListener("remove-all-selected",this.removeAllSelected),this.removeEventListener("selected-changed",this.selectedChange)}setVisualListbox(t){this.expanded=t}setGroupList(t){this.groupExpandedList.includes(t)?(this.groupExpandedList.splice(this.groupExpandedList.indexOf(t),1),this.groupExpandedList=[...this.groupExpandedList]):this.searchItem?this.groupExpandedList.push(t):this.groupExpandedList=[t]}findSelectedOption(t){return this.optionId&&t?this.selectedOptions.findIndex(e=>e&&e[this.optionId]===t[this.optionId]):this.selectedOptions.indexOf(t)}findOptionIndex(t){const e=t.composedPath();if(this.checkForVirtualScroll()){let t="";return[...this.lists].forEach(i=>{e.includes(i)&&(t=i.id)}),this.filteredOptions.findIndex(e=>this.getOptionId(e)===t)}return[...this.lists].findIndex(t=>e.includes(t))}checkSelectedOptions(){if(this.checkForVirtualScroll()){const t=this.selectedOptions.map(t=>this.getOptionId(t)),e=[...this.lists].filter(t=>"selectAll"!==t.id);null==e||e.forEach(e=>{t.includes(e.id)?(this.isMulti&&(null==e||e.setAttribute("aria-checked","true")),null==e||e.setAttribute("aria-selected","true")):this.isMulti&&(null==e||e.setAttribute("aria-checked","false"))})}}unCheckAllOptions(){var t;this.checkForVirtualScroll()&&this.isMulti&&(null===(t=[...this.lists])||void 0===t||t.forEach(t=>{"selectAll"!==(null==t?void 0:t.id)&&(null==t||t.setAttribute("aria-checked","false"))}))}setSelectedOption(t){this.isMulti||(this.selectedOptions=[]);const e=this.findSelectedOption(t);if(-1!==e){const t=this.selectedOptions[e];this.selectedOptions.splice(e,1),this.notifySelectedChange({value:t,selected:this.selectedOptions})}else this.selectedOptions.push(t),this.notifySelectedChange({value:t,selected:this.selectedOptions});this.checkSelectedOptions(),this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()),this.requestUpdate()}filterOptions(t){if(this.preventFilter)return this.searchItem=!1,this.options;if(t&&t.length){const e=this.options.filter(e=>this.isOptGroup&&"string"!=typeof e&&"true"===e.isLabel?e:(this.isCustomContent?this.getOptionId(e):this.getOptionValue(e)).toLowerCase().includes(t.toLowerCase()));return this.isOptGroup?this.handleGroupFilter(e):e}return this.searchItem=!1,this.options}getListBoxVerticalPadding(){if(this.listBox){const t=window.getComputedStyle(this.listBox,null),e=parseInt(t.getPropertyValue("padding-top"))+parseInt(t.getPropertyValue("padding-bottom"));if(!isNaN(e))return e+2}return 10}resizeListbox(){this.updateOnNextFrame(()=>{var t;let e=0,i=0,o=0;const s=this.getListBoxVerticalPadding();if(this.lists){const t=this.checkForVirtualScroll()?[...this.lists].filter(t=>0!==t.offsetHeight):[...this.lists];e=t.slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0),o=this.checkForVirtualScroll()&&this.allowSelectAll?t.slice(1,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0):t.slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0)}if(this.labels&&(i=[...this.labels].slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0)),this.listBox&&(this.listBox.style.maxHeight=`${e+i+s}px`),this.virtualizer&&(this.virtualizer.style.height=`${o+s}px`),this.showCustomError||this.showLoader){const e=null===(t=this.listBox)||void 0===t?void 0:t.querySelector("[slot]");this.listBox&&e&&(this.listBox.style.height=`${e.clientHeight+s}px`,this.listBox.style.maxHeight=`${e.clientHeight+s}px`)}})}setInputValue(t=""){this.input.value=t}updateOnNextFrame(t){requestAnimationFrame(t)}unCheckedAllOptions(){this.isMulti&&(this.lists.forEach((t,e)=>this.unCheckedOption(e)),this.isSelectAllChecked=!1)}unCheckedOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","false"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}checkAllOptions(){this.isMulti&&this.lists.forEach((t,e)=>this.checkOption(e))}checkOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","true"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}isSelectAllSelected(){return this.selectedOptions.length===this.options.length}setFocusOnHost(t){this.setFocus&&this.setFocus(t)}isOptionFocused(t){return this.focusedIndex===t}getAriaState(t){return this.isOptionFocused(t)}scrollToOption(){var t,e;let i=0;const{top:o,bottom:s}=this.listBox.getBoundingClientRect(),r=this.lists[this.focusedIndex],a=null===(t=this.lists[this.focusedIndex+1]||r)||void 0===t?void 0:t.getBoundingClientRect(),n=null===(e=this.lists[this.focusedIndex-1]||r)||void 0===e?void 0:e.getBoundingClientRect();(null==a?void 0:a.bottom)>s?i=a.bottom-s+2:(null==n?void 0:n.top)<o&&(i=n.top-o-2),this.updateOnNextFrame(()=>{this.listBox.scrollTop+=i})}getCustomContentName(t){const e=this.options.indexOf(t);if(this.isOptGroup){const t=this.options[e];if(t&&"string"!=typeof t)return t.slot}else if(-1!==e)return this.customContent[e].slot}setInputSelectionRange(t,e){this.input.setSelectionRange(t,e)}isOptionChecked(t){return-1!==this.findSelectedOption(t)?"true":"false"}getInputSelection(){return this.input.selectionStart}canMultiSelect(){return 0===this.getInputSelection()&&0!==this.selectedOptions.length&&this.isMulti}removeMultiTag(){this.selected&&this.multiSelected.forEach(t=>{const e=this.selected[t];e&&e.hasAttribute("selected")&&this.removeSelected(this.selectedOptions[t])})}unselectedAllMultiTag(){this.selected&&this.selected.forEach(t=>t.removeAttribute("selected")),this.multiSelectedIndex=-1}findLastMultiSelected(){return this.selected[this.multiSelectedIndex]}toggleMultiSelectedTag(t,e){t&&t.toggleAttribute("selected",e)}selectMultiTag(t){if(this.canMultiSelect()){if(!t){this.multiSelected=[];const t=this.findLastMultiSelected();this.toggleMultiSelectedTag(t,!1)}this.multiSelectedIndex<=0?this.multiSelectedIndex=this.selectedOptions.length-1:this.multiSelectedIndex--,this.multiSelected.push(this.multiSelectedIndex);const e=this.findLastMultiSelected();this.toggleMultiSelectedTag(e,!0)}}handleListClick(t){return g(this,void 0,void 0,function*(){this.dispatchEvent(new CustomEvent("selected-changed",{detail:{event:t}})),yield this.updateComplete,this.isMulti?this.setVisualListbox(!0):this.setVisualListbox(!1),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1})})}handleSelectAll(){return g(this,void 0,void 0,function*(){this.isSelectAllChecked=!this.isSelectAllChecked,this.isSelectAllChecked?(this.selectedOptions=[...this.options],this.checkAllOptions()):(this.selectedOptions=[],this.unCheckedAllOptions()),yield this.updateComplete,this.setVisualListbox(!0),this.notifySelectedChange({selected:this.selectedOptions})})}handleInputKeyUp(t){switch(t.code){case s.Uz.Escape:break;case s.Uz.Backspace:this.setFocusOnHost(!0),this.setVisualListbox(!0),this.resizeListbox(),this.removeMultiTag();break;case s.Uz.ArrowLeft:this.isMulti&&(t.shiftKey?this.selectMultiTag(!0):this.selectMultiTag(!1));break;default:this.isMulti&&this.unselectedAllMultiTag()}}handleInput(t){const e=t.target.value;this.inputValue=e.trim(),this.notifyInputValueChanged(e.trim())}removeAllSelected(){var t;this.focusedIndex=-1,this.focusedGroupIndex=-1,this.selectedOptions=[],this.inputValue="",this.setInputValue(),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.unCheckedAllOptions(),this.setSelectedAttribute(void 0),this.updateOnNextFrame(()=>{this.input.focus()}),this.notifySelectedChange({selected:this.selectedOptions})}removeSelected(t){const e=this.findSelectedOption(t),i=this.filteredOptions.indexOf(t);-1!==i&&this.unCheckedOption(i),-1!==e&&(this.selectedOptions.splice(e,1),this.requestUpdate()),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1})}selectedChange(t){var e;const{event:i}=t.detail;let o=this.findOptionIndex(i);if(-1!==o){this.focusedIndex=this.allowSelectAll&&this.checkForVirtualScroll()?o+1:o,this.isMulti&&this.allowSelectAll&&!this.checkForVirtualScroll()&&(o-=1);const t=this.getFocusedItem(o);this.setSelectedAttribute(t),t&&(this.setSelectedOption(t),this.isMulti?this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()):(this.setInputValue(this.getOptionValue(t)),null===(e=this.input)||void 0===e||e.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(t))))}}setSelectedAttribute(t){var e;let i="";t&&(i=this.getOptionId(t)),null===(e=this.lists)||void 0===e||e.forEach((t,e)=>{(null==t?void 0:t.id)===i?null==t||t.setAttribute("selected","true"):null==t||t.setAttribute("selected","false")})}shouldChangeButton(){const t=this.input&&this.input.value.length>0&&!this.noClearIcon||this.isMulti&&this.selectedOptions.length&&!this.noClearIcon;return t&&document.dispatchEvent(new CustomEvent("on-widget-update")),t}setCustomValue(){this.optionId||this.optionValue||(this.options=[...this.options,this.inputValue],this.setSelectedOption(this.inputValue),this.isMulti||this.updateOnNextFrame(()=>{var t;this.focusedIndex=this.filteredOptions.length-1;const e=this.getFocusedItem(this.focusedIndex);e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)))}),this.dispatchEvent(new CustomEvent("custom-value-add",{composed:!0,bubbles:!0,detail:{value:this.inputValue}}))),this.inputValue=""}handleGroupFocus(){this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.filteredGroupOptions.length>0&&-1===this.focusedGroupIndex&&(this.focusedGroupIndex=this.filteredGroupOptions.findIndex(t=>"string"!=typeof t&&t.groupName===this.groupExpandedList[0])),this.updateOnNextFrame(()=>{-1===this.focusedGroupIndex||!this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length-1||this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length?this.focusedGroupIndex=0:this.focusedGroupIndex++}),this.focusedIndex=-1}handleInputKeyDown(t){var e,i;switch(t.code){case s.Uz.Backspace:this.focusedIndex=-1;break;case s.Uz.Tab:case s.Uz.Enter:if(this.setFocusOnHost(!0),this.expanded&&this.updateOnNextFrame(()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);this.allowCustomValue&&this.input&&this.input.value.length&&-1===this.findFilteredOption(this.inputValue)?this.setCustomValue():(e&&(this.setSelectedAttribute(e),this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll())}),this.setVisualListbox(!1),t.code===s.Uz.Tab&&this.isMulti)return;break;case s.Uz.ArrowDown:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame(()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1});break;case s.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame(()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedGroupIndex=-1)});break;case s.Uz.ArrowLeft:case s.Uz.ArrowRight:t.stopPropagation();break;case s.Uz.Escape:this.setFocusOnHost(!0),this.expanded?(t.stopPropagation(),this.setVisualListbox(!1)):(this.setInputValue(),null===(e=this.input)||void 0===e||e.setAttribute(s.iw.AriaActivedescendant,""),this.focusedIndex=-1,this.focusedGroupIndex=-1,this.removeAllSelected(),this.setSelectedAttribute(void 0));break;case s.Uz.Home:this.setInputSelectionRange(0,0);break;case s.Uz.End:{const{length:t}=this.inputValue;this.setInputSelectionRange(t,t)}break;case s.Uz.Space:if(this.isMulti&&this.expanded){t.preventDefault();const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.setSelectedAttribute(e),this.showSelectedCount||(this.setInputValue(),null===(i=this.input)||void 0===i||i.setAttribute(s.iw.AriaActivedescendant,""))),0===this.focusedIndex&&this.allowSelectAll&&this.handleSelectAll()}this.expanded=!0}}handleGroupLabelKeyDown(t,e){switch(t.code){case s.Uz.Tab:this.handleGroupFocus();break;case s.Uz.Enter:case s.Uz.Space:-1!==this.focusedGroupIndex?this.toggleGroupListBox(t,e.value):(this.setFocusOnHost(!0),this.setVisualListbox(!1),this.updateOnNextFrame(()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1}))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll()}));break;case s.Uz.ArrowDown:if(0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame(()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1});break;case s.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame(()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)))});break;case s.Uz.Escape:this.focusedGroupIndex=-1,this.setVisualListbox(!1),this.setFocusOnHost(!0),this.input.focus();break;default:this.setVisualListbox(!0)}}toggleVisualListBox(t){var e,i;if(!this.readOnly){if(t.target.classList.contains("md-combobox-listbox"))t.target.focus();else if("md-icon"===t.target.localName){const o=null===(i=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.parentElement;if(o){const t=o.querySelector(".md-combobox-listbox");(0,y.setTimeout)(()=>{t.focus()},10)}}this.expanded?this.setVisualListbox(!1):(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.setVisualListbox(!0)),this.input.focus(),this.setGroupList(""),this.focusedGroupIndex=-1}}toggleGroupListBox(t,e){t.stopPropagation(),this.focusedGroupIndex=this.filteredGroupOptions.findIndex(t=>"string"!=typeof t&&t.groupName===e),this.setGroupList(e),this.resizeListbox()}handleRemoveAll(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}connectedCallback(){super.connectedCallback(),this.setupEvents(),this.querySelector("optgroup")&&(this.isOptGroup=!0)}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}static get styles(){return[l.A,b.A]}get listItemOptionMap(){return{"md-combobox-multiselect":this.isMulti,compact:this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}get filteredOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter(t=>!this.isOptGroup||("string"!=typeof t&&this.groupExpandedList.includes(this.getOptionGroupName(t))?"false"===t.isLabel:void 0))}get filteredGroupOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter(t=>!this.isOptGroup||("string"!=typeof t?"true"===t.isLabel:void 0))}get comboBoxTemplateClassMap(){return{[`md-combobox--${this.shape}`]:!!this.shape,"md-combobox-searchable":this.searchable,"md-combobox-has-leading-icon":this.searchable||this.showFilterIcon,"md-new-combobox":this.newMomentum,[`md-${this.messageType}`]:!!this.messageType,"md-combobox-readonly":this.readOnly,"md-combobox-compact":this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}searchIconTemplate(){return this.leadingIconTemplate("search-bold","search-icon")}filterIconTemplate(){return this.leadingIconTemplate("filter-bold","filter-icon")}leadingIconTemplate(t,e){return d.html`
|
|
54
54
|
<md-icon
|
|
55
55
|
name=${t}
|
|
56
56
|
class=${e}
|
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
`}getActionTemplate(t){return t.isIconOnly?this.getTooltipCircleButtonTemplate(t):this.getPillButtonTemplate(t)}getActionGroupTemplate(t){return y.html` ${this.separatorTemplate} ${t.actions.map(t=>this.getActionTemplate(t))} `}render(){return y.html`
|
|
430
430
|
${this.showCloseButton?this.closeButtonTemplate:y.nothing} ${this.getSecondaryLabelTemplate(this.leadingLabel)}
|
|
431
431
|
${this.actions.map(t=>this.getActionGroupTemplate(t))}
|
|
432
|
-
`}};rt([(0,g.property)({type:String})],at.prototype,"leadingLabel",void 0),rt([(0,g.property)({type:String})],at.prototype,"closeButtonAriaLabel",void 0),rt([(0,g.property)({type:Boolean})],at.prototype,"showCloseButton",void 0),rt([(0,g.property)({type:Array})],at.prototype,"actions",void 0),at=rt([(0,g.customElement)("md-floating-button-bar")],at);var nt=i(58871),lt=i(73093);class dt{constructor(){this.listeners=new Set}onChange(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}emitChange(){for(const t of Array.from(this.listeners))t(this)}}class ht extends dt{constructor(t){var e;super(),this.controls=t;for(const t of this.controls)null===(e=t.onChange)||void 0===e||e.call(t,()=>this.emitChange())}at(t){return this.controls[t]}push(t){var e;this.controls.push(t),null===(e=t.onChange)||void 0===e||e.call(t,()=>this.emitChange()),this.emitChange()}removeAt(t){this.controls.splice(t,1),this.emitChange()}get value(){return this.controls.map(t=>t.value)}get valid(){return this.controls.every(t=>t.valid)}get length(){return this.controls.length}getControls(){return this.controls}validate(){this.controls.forEach(t=>t.validate()),this.emitChange()}markAllAsTouched(){this.controls.forEach(t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)})}}class ct extends dt{constructor(t,e=[]){super(),this.validationErrors=[],this.touched=!1,this.currentValue=t,this.validators=e,this.validate()}get value(){return this.currentValue}markAsTouched(){this.touched=!0,this.validate()}get valid(){return 0===this.validationErrors.length}get errors(){return this.touched?this.validationErrors:[]}setValue(t){this.currentValue=t,this.markAsTouched()}validate(){this.emitChange(),this.validationErrors=this.validators.map(t=>t(this.currentValue)).filter(t=>null!==t)}}class pt extends dt{constructor(t){var e;super(),this.controls=t;for(const t of Object.keys(this.controls)){const i=this.controls[t];null===(e=i.onChange)||void 0===e||e.call(i,()=>this.emitChange())}}get(t){return this.controls[t]}get value(){const t={};for(const e in this.controls)t[e]=this.controls[e].value;return t}get valid(){return Object.values(this.controls).every(t=>t.valid)}validate(){for(const t of Object.values(this.controls))t.validate();this.emitChange()}markAllAsTouched(){Object.values(this.controls).forEach(t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)})}}const ut={required:()=>t=>null==t||"string"==typeof t&&""===t.trim()?{type:"required"}:null,minLength:t=>e=>e.length<t?{type:"minLength",count:t}:null,maxLength:t=>e=>e.length>t?{type:"maxLength",count:t}:null};var mt=i(97866),yt=i(69112),bt=i(20109),vt=i(52619),gt=i(96408),ft=i(6396),wt=i(19026),xt=i(90195),Ct=i(26283);const Et=y.css`:host{--list-item-border-radius:0;--list-item-expand-duration:400ms;--list-item-hover-bg-color:var(--md-button-secondary-hover-bg-color);--list-item-active-bg-color:var(--md-button-secondary-pressed-bg-color);--list-item-disabled-bg-color:none;--list-item-disabled-text-color:var(--md-textColor-disabled);--list-item-primary-label-color:var(--md-textColor-primary);--list-item-secondary-label-color:var(--md-textColor-secondary);--list-item-primary-label-font-size:14px;--list-item-secondary-label-font-size:12px;--list-item-bg-color:none;border-radius:var(--list-item-border-radius);background-color:var(--list-item-bg-color)}:host(:focus-visible){box-shadow:none!important}:host([variant=inset-rectangle]){--list-item-border-radius:0.5rem}:host([variant=inset-pill]){--list-item-border-radius:3.125rem}:host([disabled]){--list-item-primary-label-color:var(--list-item-disabled-text-color);--list-item-secondary-label-color:var(--list-item-disabled-text-color);--list-item-bg-color:var(--list-item-disabled-bg-color)}.header{border-radius:var(--list-item-border-radius);padding:.5rem;display:flex;justify-content:space-between;align-items:center}.header:hover:not(:disabled){background-color:var(--list-item-hover-bg-color)}.header:active:not(:disabled){background-color:var(--list-item-active-bg-color)}:host(:focus-visible) .header{box-shadow:0 0 0 .125rem var(--list-focus-border-color)}:host::part(header-leading),:host::part(header-trailing){display:flex;align-items:center;gap:.5rem}:host::part(primary-label),:host::part(secondary-label),:host::part(tertiary-label){display:block;line-height:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host::part(primary-label){font-size:var(--list-item-primary-label-font-size);color:var(--list-item-primary-label-color)}:host::part(secondary-label),:host::part(tertiary-label){font-size:var(--list-item-secondary-label-font-size);color:var(--list-item-secondary-label-color)}.expand-icon{transition:transform var(--list-item-expand-duration)}.panel-container{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows var(--list-item-expand-duration) ease-out}.expandable-content{min-height:0;visibility:hidden;transform:translateY(-15px);margin:0 10px;transition:all var(--list-item-expand-duration)}:host([expanded]) .panel-container{padding-top:0;grid-template-rows:1fr}:host([expanded]) .expandable-content{visibility:visible;transform:translateY(0);margin:10px}:host([expanded]) .expand-icon{transform:rotate(90deg)}:host{--md-list-v2-gap:0;--md-list-v2-orientation:column;padding:0;margin:0;display:flex;flex-direction:var(--md-list-v2-orientation);gap:var(--md-list-v2-gap)}:host([orientation=horizontal]){--md-list-v2-orientation:row}:host([gap=sm]){--md-list-v2-gap:0.25rem}:host([gap=md]){--md-list-v2-gap:0.5rem}:host([gap=lg]){--md-list-v2-gap:1rem}`;var St,$t=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends y.LitElement{constructor(){super(...arguments),this.expandable=!1,this.expanded=!1,this.disabled=!1,this.variant="full-width",this.expandLabel="Expand"}render(){return y.html`
|
|
432
|
+
`}};rt([(0,g.property)({type:String})],at.prototype,"leadingLabel",void 0),rt([(0,g.property)({type:String})],at.prototype,"closeButtonAriaLabel",void 0),rt([(0,g.property)({type:Boolean})],at.prototype,"showCloseButton",void 0),rt([(0,g.property)({type:Array})],at.prototype,"actions",void 0),at=rt([(0,g.customElement)("md-floating-button-bar")],at);var nt=i(58871),lt=i(73093);class dt{constructor(){this.listeners=new Set}onChange(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}emitChange(){for(const t of Array.from(this.listeners))t(this)}}class ht extends dt{constructor(t){var e;super(),this.controls=t;for(const t of this.controls)null===(e=t.onChange)||void 0===e||e.call(t,()=>this.emitChange())}at(t){return this.controls[t]}push(t){var e;this.controls.push(t),null===(e=t.onChange)||void 0===e||e.call(t,()=>this.emitChange()),this.emitChange()}removeAt(t){this.controls.splice(t,1),this.emitChange()}get value(){return this.controls.map(t=>t.value)}get valid(){return this.controls.every(t=>t.valid)}get length(){return this.controls.length}getControls(){return this.controls}validate(){this.controls.forEach(t=>t.validate()),this.emitChange()}markAllAsTouched(){this.controls.forEach(t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)})}}class ct extends dt{constructor(t,e=[]){super(),this.validationErrors=[],this.touched=!1,this.currentValue=t,this.validators=e,this.validate()}get value(){return this.currentValue}markAsTouched(){this.touched=!0,this.validate()}get valid(){return 0===this.validationErrors.length}get errors(){return this.touched?this.validationErrors:[]}setValue(t){this.currentValue=t,this.markAsTouched()}validate(){this.emitChange(),this.validationErrors=this.validators.map(t=>t(this.currentValue)).filter(t=>null!==t)}}class pt extends dt{constructor(t){var e;super(),this.controls=t;for(const t of Object.keys(this.controls)){const i=this.controls[t];null===(e=i.onChange)||void 0===e||e.call(i,()=>this.emitChange())}}get(t){return this.controls[t]}get value(){const t={};for(const e in this.controls)t[e]=this.controls[e].value;return t}get valid(){return Object.values(this.controls).every(t=>t.valid)}validate(){for(const t of Object.values(this.controls))t.validate();this.emitChange()}markAllAsTouched(){Object.values(this.controls).forEach(t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)})}}const ut={required:()=>t=>null==t||"string"==typeof t&&""===t.trim()?{type:"required"}:null,minLength:t=>e=>e.length<t?{type:"minLength",count:t}:null,maxLength:t=>e=>e.length>t?{type:"maxLength",count:t}:null};var mt=i(97866),yt=i(69112),bt=i(20109),vt=i(52619),gt=i(96408),ft=i(6396),wt=i(19026),xt=i(90195),Ct=i(26283);const Et=y.css`:host{--list-item-border-radius:0;--list-item-expand-duration:400ms;--list-item-hover-bg-color:var(--md-button-secondary-hover-bg-color);--list-item-active-bg-color:var(--md-button-secondary-pressed-bg-color);--list-item-disabled-bg-color:none;--list-item-disabled-text-color:var(--md-textColor-disabled);--list-item-primary-label-color:var(--md-textColor-primary);--list-item-secondary-label-color:var(--md-textColor-secondary);--list-item-primary-label-font-size:14px;--list-item-secondary-label-font-size:12px;--list-item-bg-color:none;border-radius:var(--list-item-border-radius);background-color:var(--list-item-bg-color)}:host(:focus-visible){box-shadow:none!important}:host([variant=inset-rectangle]){--list-item-border-radius:0.5rem}:host([variant=inset-pill]){--list-item-border-radius:3.125rem}:host([disabled]){--list-item-primary-label-color:var(--list-item-disabled-text-color);--list-item-secondary-label-color:var(--list-item-disabled-text-color);--list-item-bg-color:var(--list-item-disabled-bg-color)}.header{border-radius:var(--list-item-border-radius);padding:.5rem;display:flex;justify-content:space-between;align-items:center;cursor:pointer}.header:hover:not(:disabled){background-color:var(--list-item-hover-bg-color)}.header:active:not(:disabled){background-color:var(--list-item-active-bg-color)}:host(:focus-visible) .header{box-shadow:0 0 0 .125rem var(--list-focus-border-color)}:host::part(header-leading),:host::part(header-trailing){display:flex;align-items:center;gap:.5rem}:host::part(primary-label),:host::part(secondary-label),:host::part(tertiary-label){display:block;line-height:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host::part(primary-label){font-size:var(--list-item-primary-label-font-size);color:var(--list-item-primary-label-color)}:host::part(secondary-label),:host::part(tertiary-label){font-size:var(--list-item-secondary-label-font-size);color:var(--list-item-secondary-label-color)}.expand-icon{transition:transform var(--list-item-expand-duration)}.panel-container{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows var(--list-item-expand-duration) ease-out}.expandable-content{min-height:0;visibility:hidden;transform:translateY(-15px);margin:0 10px;transition:all var(--list-item-expand-duration)}:host([expanded]) .panel-container{padding-top:0;grid-template-rows:1fr}:host([expanded]) .expandable-content{visibility:visible;transform:translateY(0);margin:10px}:host([expanded]) .expand-icon{transform:rotate(90deg)}:host{--md-list-v2-gap:0;--md-list-v2-orientation:column;padding:0;margin:0;display:flex;flex-direction:var(--md-list-v2-orientation);gap:var(--md-list-v2-gap)}:host([orientation=horizontal]){--md-list-v2-orientation:row}:host([gap=sm]){--md-list-v2-gap:0.25rem}:host([gap=md]){--md-list-v2-gap:0.5rem}:host([gap=lg]){--md-list-v2-gap:1rem}`;var St,$t=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends y.LitElement{constructor(){super(...arguments),this.expandable=!1,this.expanded=!1,this.disabled=!1,this.variant="full-width",this.expandLabel="Expand"}render(){return y.html`
|
|
433
433
|
<slot name="content">
|
|
434
434
|
<div class="header">
|
|
435
435
|
<div part="header-leading">
|
|
@@ -446,7 +446,6 @@
|
|
|
446
446
|
<div class="expandable-content">
|
|
447
447
|
<slot
|
|
448
448
|
name="panel"
|
|
449
|
-
@click=${this.stopEventPropagation}
|
|
450
449
|
@keyup=${this.stopArrowKeyEventPropagation}
|
|
451
450
|
@keydown=${this.stopArrowKeyEventPropagation}
|
|
452
451
|
></slot>
|
|
@@ -481,7 +480,7 @@
|
|
|
481
480
|
@click=${this.stopEventPropagation}
|
|
482
481
|
@keyup=${this.stopEventPropagation}
|
|
483
482
|
@keydown=${this.stopEventPropagation}
|
|
484
|
-
></slot>`}stopArrowKeyEventPropagation(t){t instanceof KeyboardEvent&&(0,Ct.q)(t.key)&&t.stopPropagation()}isExpandCollapseKey(t){return t===xt.Uz.ArrowRight||t===xt.Uz.ArrowLeft}stopEventPropagation(t){(t instanceof KeyboardEvent&&((0,Ct.o)(t.key)||this.isExpandCollapseKey(t.key))||t instanceof MouseEvent)&&t.stopPropagation()}setExpanded(t){this.expanded=t,this.setAttribute("aria-expanded",String(this.expanded)),this.dispatchEvent(new CustomEvent("list-item-expanded",{bubbles:!0,detail:this.expanded}))}_handleExpand(t){t.stopPropagation(),this.expandable&&this.setExpanded(!this.expanded)}_handleListItemClick(){this.disabled||this.dispatchEvent(new CustomEvent("list-item-click",{bubbles:!0}))}_handleArrowKeyExpand(t){t.key!==xt.Uz.ArrowRight||this.expanded?t.key===xt.Uz.ArrowLeft&&this.expanded&&(t.stopPropagation(),this.setExpanded(!1)):(t.stopPropagation(),this.setExpanded(!0))}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem"),this.setAttribute("tabindex","0"),this.addEventListener("click",this._handleListItemClick),this.expandable&&this.addEventListener("keydown",this._handleArrowKeyExpand)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleListItemClick),this.removeEventListener("keydown",this._handleArrowKeyExpand)}static get styles(){return Et}};$t([(0,g.property)({type:String,reflect:!0})],e.prototype,"label",void 0),$t([(0,g.property)({type:String,reflect:!0,attribute:"secondary-label"})],e.prototype,"secondaryLabel",void 0),$t([(0,g.property)({type:String,reflect:!0,attribute:"tertiary-label"})],e.prototype,"tertiaryLabel",void 0),$t([(0,g.property)({type:Boolean})],e.prototype,"expandable",void 0),$t([(0,g.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",void 0),$t([(0,g.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),$t([(0,g.property)({type:String})],e.prototype,"variant",void 0),$t([(0,g.property)({type:String,attribute:"expand-label"})],e.prototype,"expandLabel",void 0),e=$t([(0,g.customElement)("md-list-item-v2")],e),t.ELEMENT=e}(St||(St={}));var Tt,kt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends y.LitElement{constructor(){super(...arguments),this.gap="none",this.orientation="vertical"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","list"),this.addEventListener("keydown",this.handleKeyDown)}render(){return y.html` <slot @click=${this.handleMouseClick}></slot>`}get listItems(){return Array.from(this.assignedNodes).filter(t=>t instanceof St.ELEMENT&&!t.disabled)}handleMouseClick(t){const e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}getNewIndexBasedOnKey(t,e,i){switch(t){case xt.Uz.ArrowDown:return(e+1)%i;case xt.Uz.ArrowUp:return(e-1+i)%i;case xt.Uz.Home:return 0;case xt.Uz.End:return i-1;default:return}}handleKeyDown(t){const
|
|
483
|
+
></slot>`}stopArrowKeyEventPropagation(t){t instanceof KeyboardEvent&&(0,Ct.q)(t.key)&&t.stopPropagation()}isExpandCollapseKey(t){return t===xt.Uz.ArrowRight||t===xt.Uz.ArrowLeft}stopEventPropagation(t){(t instanceof KeyboardEvent&&((0,Ct.o)(t.key)||this.isExpandCollapseKey(t.key))||t instanceof MouseEvent)&&t.stopPropagation()}setExpanded(t){this.expanded=t,this.setAttribute("aria-expanded",String(this.expanded)),this.dispatchEvent(new CustomEvent("list-item-expanded",{bubbles:!0,detail:this.expanded}))}_handleExpand(t){t.stopPropagation(),this.expandable&&this.setExpanded(!this.expanded)}_handleListItemClick(t){const e=t.composedPath(),i=e[0];!e.includes(this.header)&&i!==this||this.disabled||this.dispatchEvent(new CustomEvent("list-item-click",{bubbles:!0}))}_handleArrowKeyExpand(t){t.key!==xt.Uz.ArrowRight||this.expanded?t.key===xt.Uz.ArrowLeft&&this.expanded&&(t.stopPropagation(),this.setExpanded(!1)):(t.stopPropagation(),this.setExpanded(!0))}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem"),this.setAttribute("tabindex","0"),this.addEventListener("click",this._handleListItemClick),this.expandable&&this.addEventListener("keydown",this._handleArrowKeyExpand)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleListItemClick),this.removeEventListener("keydown",this._handleArrowKeyExpand)}static get styles(){return Et}};$t([(0,g.property)({type:String,reflect:!0})],e.prototype,"label",void 0),$t([(0,g.property)({type:String,reflect:!0,attribute:"secondary-label"})],e.prototype,"secondaryLabel",void 0),$t([(0,g.property)({type:String,reflect:!0,attribute:"tertiary-label"})],e.prototype,"tertiaryLabel",void 0),$t([(0,g.property)({type:Boolean})],e.prototype,"expandable",void 0),$t([(0,g.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",void 0),$t([(0,g.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),$t([(0,g.property)({type:String})],e.prototype,"variant",void 0),$t([(0,g.property)({type:String,attribute:"expand-label"})],e.prototype,"expandLabel",void 0),$t([(0,g.query)(".header")],e.prototype,"header",void 0),e=$t([(0,g.customElement)("md-list-item-v2")],e),t.ELEMENT=e}(St||(St={}));var Tt,kt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends y.LitElement{constructor(){super(...arguments),this.gap="none",this.orientation="vertical"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","list"),this.addEventListener("keydown",this.handleKeyDown)}render(){return y.html` <slot @click=${this.handleMouseClick}></slot>`}get listItems(){return Array.from(this.assignedNodes).filter(t=>t instanceof St.ELEMENT&&!t.disabled)}handleMouseClick(t){const e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}getNewIndexBasedOnKey(t,e,i){switch(t){case xt.Uz.ArrowDown:return(e+1)%i;case xt.Uz.ArrowUp:return(e-1+i)%i;case xt.Uz.Home:return 0;case xt.Uz.End:return i-1;default:return}}handleKeyDown(t){var e;const i=this.getCurrentIndex(t.target),o=this.getNewIndexBasedOnKey(t.key,i,this.listItems.length);void 0!==o&&(null===(e=this.listItems[o])||void 0===e||e.focus(),this.resetTabIndexAndSetActiveTabIndex(o))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,i)=>{const o=t===i?"0":"-1";e.setAttribute("tabindex",o)})}static get styles(){return Et}};kt([(0,g.property)({type:String})],e.prototype,"gap",void 0),kt([(0,g.property)({type:String})],e.prototype,"orientation",void 0),kt([(0,g.queryAssignedNodes)()],e.prototype,"assignedNodes",void 0),e=kt([(0,g.customElement)("md-list-v2")],e),t.ELEMENT=e}(Tt||(Tt={}));var At=i(68490),It=i(66245),Lt=i(69788),Ot=i(61997),Mt=i(11323),Dt=i(84032),Pt=i(48171),Rt=i(32252),_t=i(23026),Bt=i(84205),zt=i(71128),Ft=i(15300),Nt=i(58287),Vt=i(81144),jt=i(32217);const Ut=y.css`:host{width:100%;height:100%;display:block;background-color:var(--md-textColor-primary);opacity:.5}:host([variant=circle]){border-radius:50%}:host([variant=rectangular]){border-radius:0}:host([variant=rounded]){border-radius:.5rem}:host([animation=none]){animation:none}:host([animation=pulse]){animation:skeleton-pulse 2s ease-in-out infinite}@keyframes skeleton-pulse{0%{opacity:.5}50%{opacity:.25}100%{opacity:.5}}`;var qt,Ht=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends y.LitElement{constructor(){super(...arguments),this.variant="rounded",this.animation="pulse"}render(){var t,e;return this.style.width=null!==(t=this.width)&&void 0!==t?t:this.style.width,this.style.height=null!==(e=this.height)&&void 0!==e?e:this.style.height,y.html`<slot></slot>`}static get styles(){return[Ut]}};Ht([(0,g.property)({type:String})],e.prototype,"width",void 0),Ht([(0,g.property)({type:String})],e.prototype,"height",void 0),Ht([(0,g.property)({reflect:!0})],e.prototype,"variant",void 0),Ht([(0,g.property)({reflect:!0})],e.prototype,"animation",void 0),e=Ht([(0,g.customElement)("md-skeleton")],e),t.ELEMENT=e}(qt||(qt={}));var Kt=i(25428),Wt=i(12176),Gt=i(77935),Yt=i(40428),Xt=i(16643),Zt=i(97737),Qt=i(50226),Jt=i(86610),te=i(1072),ee=i(49256),ie=i(20331),oe=i(81786),se=i(37719)},10984:(t,e,i)=>{i.d(e,{DatePickerWeek:()=>o}),i(16754);var o,s=i(31890),r=i(81625),a=i(4313),n=i(87161),l=i(70429),d=i(34363),h=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.startOfWeekDay=(0,r.tB)(),this.viewAnchorMonth=(0,r.tB)().month,this.filterParams=void 0,this.datePickerProps=void 0,this.renderDays=()=>[0,1,2,3,4,5,6].map(t=>{const e=(0,r.fi)(this.startOfWeekDay,t);return n.html`
|
|
485
484
|
<md-datepicker-day
|
|
486
485
|
.viewAnchorMonth=${this.viewAnchorMonth}
|
|
487
486
|
.day=${e}
|
|
@@ -2656,7 +2655,7 @@
|
|
|
2656
2655
|
</div>
|
|
2657
2656
|
</div>
|
|
2658
2657
|
</div>
|
|
2659
|
-
`}};h([(0,n.property)({type:String})],e.prototype,"title",void 0),h([(0,n.property)({type:String})],e.prototype,"src",void 0),h([(0,n.property)({type:String})],e.prototype,"time",void 0),h([(0,n.property)({type:String})],e.prototype,"label",void 0),h([(0,n.property)({type:String})],e.prototype,"status",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"clickableTimestamp",void 0),h([(0,n.property)({type:String,reflect:!0,attribute:"self-label"})],e.prototype,"selfLabel",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"self",void 0),h([(0,n.property)({type:String,reflect:!0,attribute:"avatar-color"})],e.prototype,"avatarColor",void 0),h([(0,n.property)({type:String,reflect:!0,attribute:"avatar-type"})],e.prototype,"avatarType",void 0),h([(0,n.property)({type:Number,reflect:!0,attribute:"avatar-size"})],e.prototype,"avatarSize",void 0),e=h([(0,s.w)("md-chat-message")],e),t.ELEMENT=e}(o||(o={}))},96408:(t,e,i)=>{i.d(e,{Input:()=>o}),i(20109),i(61200),i(6396),i(12176);var o,s=i(90195),r=i(31890),a=i(32972),n=i(4313),l=(i(32022),i(87161)),d=i(70429),h=i(85125),c=i(20291),p=i(58175),u=i(10318),m=i(13739),y=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){class e{determineMessageType(t){return t.reduce((t,e)=>"error"===e?t:e.type,"")}filterMessagesByType(t,e){return t.reduce((t,i)=>i.type===e?t.concat(i.message):t,[])}}t.MessageController=e;let i=class extends((0,a.y)(l.LitElement)){constructor(){super(...arguments),this.ariaDescribedBy="",this.ariaInvalid="false",this.ariaLabel="input",this.autofocus=!1,this.auxiliaryContentPosition=null,this.clear=!1,this.clearAriaLabel="",this.compact=!1,this.containerSize="small-12",this.disabled=!1,this.id="",this.inputSize="",this.isFilled=!1,this.isLoading=!1,this.label="",this.helpText="",this.hideMessage=!1,this.htmlId="",this.role="",this.messageArr=[],this.min=void 0,this.max=void 0,this.maxLength=void 0,this.multi=!1,this.multiline=!1,this.name="",this.nestedLevel=0,this.placeholder="",this.readOnly=!1,this.required=!1,this.searchable=!1,this.secondaryLabel="",this.selectWhenInFocus=!1,this.shape="",this.type="text",this.value="",this.ariaControls="",this.ariaExpanded="",this.newMomentum=!1,this.disableUserTextInput=!1,this.showDropdown=!1,this.dropdownExpanded=!1,this.dropdownAriaLabel="Show options",this.isEditing=!1,this.hasRightSlotContent=!1,this.messageController=new e}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}select(){this.input.select()}focus(){this.input.focus()}handleOutsideClick(t){let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||(this.input.blur(),this.isEditing=!1))}handleKeyDown(t){this.dispatchEvent(new CustomEvent("input-keydown",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleFocus(t){this.disabled||(this.isEditing=!0,this.selectWhenInFocus&&this.select(),this.dispatchEvent(new CustomEvent("input-focus",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleMouseDown(t){this.disabled||(this.isEditing=!0,this.dispatchEvent(new CustomEvent("input-mousedown",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleChange(t){var e;this.value=t.target.value,null===(e=this.control)||void 0===e||e.setValue(this.value),this.dispatchEvent(new CustomEvent("input-change",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:this.value}}))}handleBlur(t){var e;null===(e=this.control)||void 0===e||e.markAsTouched(),this.isEditing=!1,this.dispatchEvent(new CustomEvent("input-blur",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleClear(t){if("keydown"===t.type){const{code:e}=t;if(e!==s.Uz.Space&&e!==s.Uz.Enter)return;t.preventDefault(),t.stopPropagation()}else"click"===t.type&&(t.preventDefault(),t.stopPropagation());this.input.focus(),this.dispatchEvent(new CustomEvent("input-clear",{bubbles:!0,composed:!0,detail:{srcEvent:t}})),document.dispatchEvent(new CustomEvent("on-widget-update")),this.handleChange(t)}handleLabelClick(){this.input.focus()}handleRighSlotChange(){var t;this.hasRightSlotContent=(null===(t=this.inputSectionRightSlot)||void 0===t?void 0:t.assignedNodes().length)>0}handleDropdownClick(t){t.preventDefault(),this.dropdownExpanded=!this.dropdownExpanded,this.dispatchEvent(new CustomEvent("input-dropdown-click",{bubbles:!0,composed:!0,detail:{srcEvent:t,expanded:this.dropdownExpanded}}))}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}get inputClassMap(){return{"md-input--filled":this.isFilled,colums:!!this.containerSize,[`${this.containerSize}`]:!!this.containerSize,"md-read-only":this.readOnly,"md-disabled":this.disabled,[`md-${this.messageType}`]:!!this.messageType,[`md-input--nested-${this.nestedLevel}`]:!!this.nestedLevel,"md-multi":this.multi,"md-new-momentum":this.newMomentum}}get inputWrapperClassMap(){return{columns:!!this.inputSize,[`${this.inputSize}`]:!!this.inputSize}}get inputTemplateClassMap(){return{"md-input--multiline":this.multiline,"md-input--multi":this.multi,[`md-input--${this.shape}`]:!!this.shape,"md-input--compact":this.compact,"md-input--before":"before"===this.auxiliaryContentPosition||this.searchable,"md-input--after":"after"===this.auxiliaryContentPosition,"md-active":this.isEditing,"md-focus":this.isEditing,"md-read-only":this.readOnly,"md-disable-user-text-input":this.disableUserTextInput,"md-disabled":this.disabled,"md-dirty":!!this.value,"md-has-right-icon":this.hasRightIcon}}get ariaExpandedValue(){return"true"===this.ariaExpanded||"false"===this.ariaExpanded?this.ariaExpanded:void 0}get hasRightIcon(){return!(!this.clear||this.disabled||!this.value||this.readOnly)||!!this.showDropdown||!this.compact&&this.hasRightSlotContent}inputTemplate(){var t;return this.multiline?l.html`
|
|
2658
|
+
`}};h([(0,n.property)({type:String})],e.prototype,"title",void 0),h([(0,n.property)({type:String})],e.prototype,"src",void 0),h([(0,n.property)({type:String})],e.prototype,"time",void 0),h([(0,n.property)({type:String})],e.prototype,"label",void 0),h([(0,n.property)({type:String})],e.prototype,"status",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"clickableTimestamp",void 0),h([(0,n.property)({type:String,reflect:!0,attribute:"self-label"})],e.prototype,"selfLabel",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"self",void 0),h([(0,n.property)({type:String,reflect:!0,attribute:"avatar-color"})],e.prototype,"avatarColor",void 0),h([(0,n.property)({type:String,reflect:!0,attribute:"avatar-type"})],e.prototype,"avatarType",void 0),h([(0,n.property)({type:Number,reflect:!0,attribute:"avatar-size"})],e.prototype,"avatarSize",void 0),e=h([(0,s.w)("md-chat-message")],e),t.ELEMENT=e}(o||(o={}))},96408:(t,e,i)=>{i.d(e,{Input:()=>o}),i(20109),i(61200),i(6396),i(12176);var o,s=i(90195),r=i(31890),a=i(32972),n=i(4313),l=(i(32022),i(87161)),d=i(70429),h=i(85125),c=i(20291),p=i(58175),u=i(10318),m=i(13739),y=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){class e{determineMessageType(t){return t.reduce((t,e)=>"error"===e?t:e.type,"")}filterMessagesByType(t,e){return t.reduce((t,i)=>i.type===e?t.concat(i.message):t,[])}}t.MessageController=e;let i=class extends((0,a.y)(l.LitElement)){constructor(){super(...arguments),this.ariaDescribedBy="",this.ariaInvalid="false",this.ariaLabel="input",this.autofocus=!1,this.auxiliaryContentPosition=null,this.clear=!1,this.clearAriaLabel="",this.compact=!1,this.containerSize="small-12",this.disabled=!1,this.id="",this.inputSize="",this.isFilled=!1,this.isLoading=!1,this.label="",this.helpText="",this.hideMessage=!1,this.htmlId="",this.role="",this.messageArr=[],this.min=void 0,this.max=void 0,this.maxLength=void 0,this.multi=!1,this.multiline=!1,this.name="",this.nestedLevel=0,this.placeholder="",this.readOnly=!1,this.required=!1,this.searchable=!1,this.secondaryLabel="",this.selectWhenInFocus=!1,this.shape="",this.type="text",this.value="",this.ariaControls="",this.ariaExpanded="",this.newMomentum=!1,this.disableUserTextInput=!1,this.autocomplete=void 0,this.showDropdown=!1,this.dropdownExpanded=!1,this.dropdownAriaLabel="Show options",this.isEditing=!1,this.hasRightSlotContent=!1,this.messageController=new e}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}select(){this.input.select()}focus(){this.input.focus()}handleOutsideClick(t){let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||(this.input.blur(),this.isEditing=!1))}handleKeyDown(t){this.dispatchEvent(new CustomEvent("input-keydown",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleFocus(t){this.disabled||(this.isEditing=!0,this.selectWhenInFocus&&this.select(),this.dispatchEvent(new CustomEvent("input-focus",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleMouseDown(t){this.disabled||(this.isEditing=!0,this.dispatchEvent(new CustomEvent("input-mousedown",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleChange(t){var e;this.value=t.target.value,null===(e=this.control)||void 0===e||e.setValue(this.value),this.dispatchEvent(new CustomEvent("input-change",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:this.value}}))}handleBlur(t){var e;null===(e=this.control)||void 0===e||e.markAsTouched(),this.isEditing=!1,this.dispatchEvent(new CustomEvent("input-blur",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleClear(t){if("keydown"===t.type){const{code:e}=t;if(e!==s.Uz.Space&&e!==s.Uz.Enter)return;t.preventDefault(),t.stopPropagation()}else"click"===t.type&&(t.preventDefault(),t.stopPropagation());this.input.focus(),this.dispatchEvent(new CustomEvent("input-clear",{bubbles:!0,composed:!0,detail:{srcEvent:t}})),document.dispatchEvent(new CustomEvent("on-widget-update")),this.handleChange(t)}handleLabelClick(){this.input.focus()}handleRighSlotChange(){var t;this.hasRightSlotContent=(null===(t=this.inputSectionRightSlot)||void 0===t?void 0:t.assignedNodes().length)>0}handleDropdownClick(t){t.preventDefault(),this.dropdownExpanded=!this.dropdownExpanded,this.dispatchEvent(new CustomEvent("input-dropdown-click",{bubbles:!0,composed:!0,detail:{srcEvent:t,expanded:this.dropdownExpanded}}))}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}get inputClassMap(){return{"md-input--filled":this.isFilled,colums:!!this.containerSize,[`${this.containerSize}`]:!!this.containerSize,"md-read-only":this.readOnly,"md-disabled":this.disabled,[`md-${this.messageType}`]:!!this.messageType,[`md-input--nested-${this.nestedLevel}`]:!!this.nestedLevel,"md-multi":this.multi,"md-new-momentum":this.newMomentum}}get inputWrapperClassMap(){return{columns:!!this.inputSize,[`${this.inputSize}`]:!!this.inputSize}}get inputTemplateClassMap(){return{"md-input--multiline":this.multiline,"md-input--multi":this.multi,[`md-input--${this.shape}`]:!!this.shape,"md-input--compact":this.compact,"md-input--before":"before"===this.auxiliaryContentPosition||this.searchable,"md-input--after":"after"===this.auxiliaryContentPosition,"md-active":this.isEditing,"md-focus":this.isEditing,"md-read-only":this.readOnly,"md-disable-user-text-input":this.disableUserTextInput,"md-disabled":this.disabled,"md-dirty":!!this.value,"md-has-right-icon":this.hasRightIcon}}get ariaExpandedValue(){return"true"===this.ariaExpanded||"false"===this.ariaExpanded?this.ariaExpanded:void 0}get hasRightIcon(){return!(!this.clear||this.disabled||!this.value||this.readOnly)||!!this.showDropdown||!this.compact&&this.hasRightSlotContent}inputTemplate(){var t;return this.multiline?l.html`
|
|
2660
2659
|
<textarea
|
|
2661
2660
|
part="input"
|
|
2662
2661
|
class="md-input ${(0,h.classMap)(this.inputTemplateClassMap)}"
|
|
@@ -2678,6 +2677,7 @@
|
|
|
2678
2677
|
placeholder=${this.placeholder}
|
|
2679
2678
|
?readonly=${this.readOnly}
|
|
2680
2679
|
maxlength=${(0,c.ifDefined)(this.maxLength)}
|
|
2680
|
+
autocomplete=${(0,c.ifDefined)(this.autocomplete)}
|
|
2681
2681
|
></textarea>
|
|
2682
2682
|
`:l.html`
|
|
2683
2683
|
<input
|
|
@@ -2708,6 +2708,7 @@
|
|
|
2708
2708
|
max=${(0,c.ifDefined)(this.max)}
|
|
2709
2709
|
maxlength=${(0,c.ifDefined)(this.maxLength)}
|
|
2710
2710
|
aria-haspopup=${(0,c.ifDefined)(this.showDropdown?"true":void 0)}
|
|
2711
|
+
autocomplete=${(0,c.ifDefined)(this.autocomplete)}
|
|
2711
2712
|
/>
|
|
2712
2713
|
`}inputLeftTemplate(){return this.searchable?l.html`
|
|
2713
2714
|
<div class="md-input__before">
|
|
@@ -2800,7 +2801,7 @@
|
|
|
2800
2801
|
</div>
|
|
2801
2802
|
${this.messagesTemplate()} ${this.secondaryLabelTemplate()} ${this.helpTextTemplate()}
|
|
2802
2803
|
</div>
|
|
2803
|
-
`}};y([(0,d.property)({type:String})],i.prototype,"ariaDescribedBy",void 0),y([(0,d.property)({type:String,reflect:!0})],i.prototype,"ariaInvalid",void 0),y([(0,d.property)({type:String})],i.prototype,"ariaLabel",void 0),y([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),y([(0,d.property)({type:String})],i.prototype,"auxiliaryContentPosition",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"clear",void 0),y([(0,d.property)({type:String})],i.prototype,"clearAriaLabel",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"compact",void 0),y([(0,d.property)({type:String})],i.prototype,"containerSize",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"disabled",void 0),y([(0,d.property)({type:String})],i.prototype,"id",void 0),y([(0,d.property)({type:String})],i.prototype,"inputSize",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"isFilled",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"isLoading",void 0),y([(0,d.property)({type:String})],i.prototype,"label",void 0),y([(0,d.property)({type:String})],i.prototype,"helpText",void 0),y([(0,d.property)({type:Boolean,attribute:"hide-message",reflect:!0})],i.prototype,"hideMessage",void 0),y([(0,d.property)({type:String})],i.prototype,"htmlId",void 0),y([(0,d.property)({type:String})],i.prototype,"role",void 0),y([(0,d.property)({type:Array})],i.prototype,"messageArr",void 0),y([(0,d.property)({type:Number,reflect:!0})],i.prototype,"min",void 0),y([(0,d.property)({type:Number,reflect:!0})],i.prototype,"max",void 0),y([(0,d.property)({type:Number})],i.prototype,"maxLength",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"multi",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"multiline",void 0),y([(0,d.property)({type:String,reflect:!0})],i.prototype,"name",void 0),y([(0,d.property)({type:Number})],i.prototype,"nestedLevel",void 0),y([(0,d.property)({type:String})],i.prototype,"placeholder",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"readOnly",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"required",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"searchable",void 0),y([(0,d.property)({type:String})],i.prototype,"secondaryLabel",void 0),y([(0,d.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),y([(0,d.property)({type:String})],i.prototype,"shape",void 0),y([(0,d.property)({type:String})],i.prototype,"type",void 0),y([(0,d.property)({type:String,reflect:!0})],i.prototype,"value",void 0),y([(0,d.property)({type:String})],i.prototype,"ariaControls",void 0),y([(0,d.property)({type:String})],i.prototype,"ariaExpanded",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"newMomentum",void 0),y([(0,d.property)({type:Object})],i.prototype,"control",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"disableUserTextInput",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"showDropdown",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"dropdownExpanded",void 0),y([(0,d.property)({type:String})],i.prototype,"dropdownAriaLabel",void 0),y([(0,d.query)(".md-input")],i.prototype,"input",void 0),y([(0,d.state)()],i.prototype,"isEditing",void 0),y([(0,d.query)('slot[name="input-section-right"]')],i.prototype,"inputSectionRightSlot",void 0),y([(0,d.state)()],i.prototype,"hasRightSlotContent",void 0),i=y([(0,r.w)("md-input")],i),t.ELEMENT=i}(o||(o={}))},96798:(t,e,i)=>{i.d(e,{Button:()=>o});var o,s=i(3643),r=(i(12176),i(31890)),a=i(26283),n=i(4313),l=i(87161),d=i(70429),h=i(85125),c=i(20291),p=i(13017),u=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this._active=!1,this._tabIndex=0,this.ariaLabel="",this.ariaLabelledBy="",this.ariaLive="",this.ariaExpanded="",this.ariaHaspopup="false",this.ariaPressed="",this.circle=!1,this.rounded=!1,this.color="",this.containerLarge=!1,this.disabled=!1,this.href="",this.id="",this.value="",this.keyboardKey="",this.label="",this.loading=!1,this.outline=!1,this.hasRemoveStyle=!1,this.size="32",this.tag="button",this.type="button",this.role="button",this.variant="secondary",this.width="",this.maxWidth="",this.activityType="",this.iconActive=!1,this.isActive=!1,this.autofocus=!1,this.renderWidth=()=>this.width?`width: ${this.width};`:l.nothing,this.renderMaxWidth=()=>this.maxWidth?`max-width: ${this.maxWidth};`:l.nothing,this.getStyles=()=>{if(this.width||this.maxWidth)return l.html`
|
|
2804
|
+
`}};y([(0,d.property)({type:String})],i.prototype,"ariaDescribedBy",void 0),y([(0,d.property)({type:String,reflect:!0})],i.prototype,"ariaInvalid",void 0),y([(0,d.property)({type:String})],i.prototype,"ariaLabel",void 0),y([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),y([(0,d.property)({type:String})],i.prototype,"auxiliaryContentPosition",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"clear",void 0),y([(0,d.property)({type:String})],i.prototype,"clearAriaLabel",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"compact",void 0),y([(0,d.property)({type:String})],i.prototype,"containerSize",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"disabled",void 0),y([(0,d.property)({type:String})],i.prototype,"id",void 0),y([(0,d.property)({type:String})],i.prototype,"inputSize",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"isFilled",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"isLoading",void 0),y([(0,d.property)({type:String})],i.prototype,"label",void 0),y([(0,d.property)({type:String})],i.prototype,"helpText",void 0),y([(0,d.property)({type:Boolean,attribute:"hide-message",reflect:!0})],i.prototype,"hideMessage",void 0),y([(0,d.property)({type:String})],i.prototype,"htmlId",void 0),y([(0,d.property)({type:String})],i.prototype,"role",void 0),y([(0,d.property)({type:Array})],i.prototype,"messageArr",void 0),y([(0,d.property)({type:Number,reflect:!0})],i.prototype,"min",void 0),y([(0,d.property)({type:Number,reflect:!0})],i.prototype,"max",void 0),y([(0,d.property)({type:Number})],i.prototype,"maxLength",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"multi",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"multiline",void 0),y([(0,d.property)({type:String,reflect:!0})],i.prototype,"name",void 0),y([(0,d.property)({type:Number})],i.prototype,"nestedLevel",void 0),y([(0,d.property)({type:String})],i.prototype,"placeholder",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"readOnly",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"required",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"searchable",void 0),y([(0,d.property)({type:String})],i.prototype,"secondaryLabel",void 0),y([(0,d.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),y([(0,d.property)({type:String})],i.prototype,"shape",void 0),y([(0,d.property)({type:String})],i.prototype,"type",void 0),y([(0,d.property)({type:String,reflect:!0})],i.prototype,"value",void 0),y([(0,d.property)({type:String})],i.prototype,"ariaControls",void 0),y([(0,d.property)({type:String})],i.prototype,"ariaExpanded",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"newMomentum",void 0),y([(0,d.property)({type:Object})],i.prototype,"control",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"disableUserTextInput",void 0),y([(0,d.property)({type:String})],i.prototype,"autocomplete",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"showDropdown",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"dropdownExpanded",void 0),y([(0,d.property)({type:String})],i.prototype,"dropdownAriaLabel",void 0),y([(0,d.query)(".md-input")],i.prototype,"input",void 0),y([(0,d.state)()],i.prototype,"isEditing",void 0),y([(0,d.query)('slot[name="input-section-right"]')],i.prototype,"inputSectionRightSlot",void 0),y([(0,d.state)()],i.prototype,"hasRightSlotContent",void 0),i=y([(0,r.w)("md-input")],i),t.ELEMENT=i}(o||(o={}))},96798:(t,e,i)=>{i.d(e,{Button:()=>o});var o,s=i(3643),r=(i(12176),i(31890)),a=i(26283),n=i(4313),l=i(87161),d=i(70429),h=i(85125),c=i(20291),p=i(13017),u=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this._active=!1,this._tabIndex=0,this.ariaLabel="",this.ariaLabelledBy="",this.ariaLive="",this.ariaExpanded="",this.ariaHaspopup="false",this.ariaPressed="",this.circle=!1,this.rounded=!1,this.color="",this.containerLarge=!1,this.disabled=!1,this.href="",this.id="",this.value="",this.keyboardKey="",this.label="",this.loading=!1,this.outline=!1,this.hasRemoveStyle=!1,this.size="32",this.tag="button",this.type="button",this.role="button",this.variant="secondary",this.width="",this.maxWidth="",this.activityType="",this.iconActive=!1,this.isActive=!1,this.autofocus=!1,this.renderWidth=()=>this.width?`width: ${this.width};`:l.nothing,this.renderMaxWidth=()=>this.maxWidth?`max-width: ${this.maxWidth};`:l.nothing,this.getStyles=()=>{if(this.width||this.maxWidth)return l.html`
|
|
2804
2805
|
<style>
|
|
2805
2806
|
:host .md-button--${this.size} {
|
|
2806
2807
|
${this.renderWidth()};
|
|
@@ -2918,4 +2919,4 @@
|
|
|
2918
2919
|
size="16"
|
|
2919
2920
|
></md-icon>
|
|
2920
2921
|
</label>
|
|
2921
|
-
`}};u([(0,d.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"checked",void 0),u([(0,d.property)({type:String})],e.prototype,"value",void 0),u([(0,d.property)({type:String})],e.prototype,"id",void 0),u([(0,d.property)({type:String})],e.prototype,"label",void 0),e=u([(0,a.w)("md-favorite")],e),t.ELEMENT=e}(o||(o={}))}},z={};function F(t){var e=z[t];if(void 0!==e)return e.exports;var i=z[t]={exports:{}};return B[t].call(i.exports,i,i.exports,F),i.exports}F.m=B,M=[],F.O=(t,e,i,o)=>{if(!e){var s=1/0;for(l=0;l<M.length;l++){for(var[e,i,o]=M[l],r=!0,a=0;a<e.length;a++)(!1&o||s>=o)&&Object.keys(F.O).every(t=>F.O[t](e[a]))?e.splice(a--,1):(r=!1,o<s&&(s=o));if(r){M.splice(l--,1);var n=i();void 0!==n&&(t=n)}}return t}o=o||0;for(var l=M.length;l>0&&M[l-1][2]>o;l--)M[l]=M[l-1];M[l]=[e,i,o]},F.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return F.d(e,{a:e}),e},P=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,F.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var i=Object.create(null);F.r(i);var o={};D=D||[null,P({}),P([]),P(P)];for(var s=2&e&&t;("object"==typeof s||"function"==typeof s)&&!~D.indexOf(s);s=P(s))Object.getOwnPropertyNames(s).forEach(e=>o[e]=()=>t[e]);return o.default=()=>t,F.d(i,o),i},F.d=(t,e)=>{for(var i in e)F.o(e,i)&&!F.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},F.f={},F.e=t=>Promise.all(Object.keys(F.f).reduce((e,i)=>(F.f[i](t,e),e),[])),F.u=t=>"chunks/md-"+t+".js",F.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),F.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),R={},_="@momentum-ui/web-components:",F.l=(t,e,i,o)=>{if(R[t])R[t].push(e);else{var s,r;if(void 0!==i)for(var a=document.getElementsByTagName("script"),n=0;n<a.length;n++){var l=a[n];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==_+i){s=l;break}}s||(r=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,F.nc&&s.setAttribute("nonce",F.nc),s.setAttribute("data-webpack",_+i),s.src=t),R[t]=[e];var d=(e,i)=>{s.onerror=s.onload=null,clearTimeout(h);var o=R[t];if(delete R[t],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(t=>t(i)),e)return e(i)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),r&&document.head.appendChild(s)}},F.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},F.p="/",(()=>{var t={109:0,144:0,195:0,445:0,502:0,555:0,671:0,762:0,984:0,1037:0,1200:0,1266:0,1323:0,1439:0,1459:0,1462:0,1521:0,1528:0,1682:0,1745:0,1788:0,1807:0,2105:0,2139:0,2169:0,2176:0,2330:0,2434:0,2547:0,2555:0,2576:0,2779:0,2781:0,2909:0,3001:0,3079:0,3192:0,3413:0,3477:0,3539:0,3747:0,3820:0,3938:0,3943:0,4131:0,4139:0,4259:0,4545:0,4908:0,4928:0,4971:0,5156:0,5310:0,5369:0,5382:0,5427:0,5433:0,5517:0,6029:0,6060:0,6085:0,6132:0,6220:0,6283:0,6396:0,6408:0,6433:0,6494:0,6587:0,6677:0,6724:0,6753:0,6754:0,6798:0,6834:0,6920:0,7119:0,7145:0,7219:0,7455:0,7684:0,7711:0,7719:0,7763:0,7814:0,7927:0,8028:0,8111:0,8115:0,8220:0,8334:0,8339:0,8442:0,8510:0,8654:0,8894:0,9058:0,9237:0};F.f.j=(e,i)=>{var o=F.o(t,e)?t[e]:void 0;if(0!==o)if(o)i.push(o[2]);else{var s=new Promise((i,s)=>o=t[e]=[i,s]);i.push(o[2]=s);var r=F.p+F.u(e),a=new Error;F.l(r,i=>{if(F.o(t,e)&&(0!==(o=t[e])&&(t[e]=void 0),o)){var s=i&&("load"===i.type?"missing":i.type),r=i&&i.target&&i.target.src;a.message="Loading chunk "+e+" failed.\n("+s+": "+r+")",a.name="ChunkLoadError",a.type=s,a.request=r,o[1](a)}},"chunk-"+e,e)}},F.O.j=e=>0===t[e];var e=(e,i)=>{var o,s,[r,a,n]=i,l=0;if(r.some(e=>0!==t[e])){for(o in a)F.o(a,o)&&(F.m[o]=a[o]);if(n)var d=n(F)}for(e&&e(i);l<r.length;l++)s=r[l],F.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return F.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var N=F.O(void 0,[
|
|
2922
|
+
`}};u([(0,d.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"checked",void 0),u([(0,d.property)({type:String})],e.prototype,"value",void 0),u([(0,d.property)({type:String})],e.prototype,"id",void 0),u([(0,d.property)({type:String})],e.prototype,"label",void 0),e=u([(0,a.w)("md-favorite")],e),t.ELEMENT=e}(o||(o={}))}},z={};function F(t){var e=z[t];if(void 0!==e)return e.exports;var i=z[t]={exports:{}};return B[t].call(i.exports,i,i.exports,F),i.exports}F.m=B,M=[],F.O=(t,e,i,o)=>{if(!e){var s=1/0;for(l=0;l<M.length;l++){for(var[e,i,o]=M[l],r=!0,a=0;a<e.length;a++)(!1&o||s>=o)&&Object.keys(F.O).every(t=>F.O[t](e[a]))?e.splice(a--,1):(r=!1,o<s&&(s=o));if(r){M.splice(l--,1);var n=i();void 0!==n&&(t=n)}}return t}o=o||0;for(var l=M.length;l>0&&M[l-1][2]>o;l--)M[l]=M[l-1];M[l]=[e,i,o]},F.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return F.d(e,{a:e}),e},P=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,F.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var i=Object.create(null);F.r(i);var o={};D=D||[null,P({}),P([]),P(P)];for(var s=2&e&&t;("object"==typeof s||"function"==typeof s)&&!~D.indexOf(s);s=P(s))Object.getOwnPropertyNames(s).forEach(e=>o[e]=()=>t[e]);return o.default=()=>t,F.d(i,o),i},F.d=(t,e)=>{for(var i in e)F.o(e,i)&&!F.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},F.f={},F.e=t=>Promise.all(Object.keys(F.f).reduce((e,i)=>(F.f[i](t,e),e),[])),F.u=t=>"chunks/md-"+t+".js",F.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),F.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),R={},_="@momentum-ui/web-components:",F.l=(t,e,i,o)=>{if(R[t])R[t].push(e);else{var s,r;if(void 0!==i)for(var a=document.getElementsByTagName("script"),n=0;n<a.length;n++){var l=a[n];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==_+i){s=l;break}}s||(r=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,F.nc&&s.setAttribute("nonce",F.nc),s.setAttribute("data-webpack",_+i),s.src=t),R[t]=[e];var d=(e,i)=>{s.onerror=s.onload=null,clearTimeout(h);var o=R[t];if(delete R[t],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(t=>t(i)),e)return e(i)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),r&&document.head.appendChild(s)}},F.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},F.p="/",(()=>{var t={109:0,144:0,195:0,445:0,502:0,555:0,671:0,762:0,984:0,1037:0,1200:0,1266:0,1323:0,1439:0,1459:0,1462:0,1521:0,1528:0,1682:0,1745:0,1788:0,1807:0,2105:0,2139:0,2169:0,2176:0,2330:0,2434:0,2547:0,2555:0,2576:0,2779:0,2781:0,2909:0,3001:0,3079:0,3192:0,3413:0,3477:0,3539:0,3747:0,3820:0,3938:0,3943:0,4131:0,4139:0,4259:0,4545:0,4908:0,4928:0,4971:0,5156:0,5310:0,5369:0,5382:0,5427:0,5433:0,5517:0,6029:0,6060:0,6085:0,6132:0,6220:0,6283:0,6396:0,6408:0,6433:0,6494:0,6587:0,6677:0,6724:0,6753:0,6754:0,6798:0,6834:0,6920:0,7119:0,7145:0,7219:0,7455:0,7684:0,7711:0,7719:0,7763:0,7814:0,7927:0,8028:0,8111:0,8115:0,8220:0,8334:0,8339:0,8442:0,8510:0,8654:0,8894:0,9058:0,9237:0};F.f.j=(e,i)=>{var o=F.o(t,e)?t[e]:void 0;if(0!==o)if(o)i.push(o[2]);else{var s=new Promise((i,s)=>o=t[e]=[i,s]);i.push(o[2]=s);var r=F.p+F.u(e),a=new Error;F.l(r,i=>{if(F.o(t,e)&&(0!==(o=t[e])&&(t[e]=void 0),o)){var s=i&&("load"===i.type?"missing":i.type),r=i&&i.target&&i.target.src;a.message="Loading chunk "+e+" failed.\n("+s+": "+r+")",a.name="ChunkLoadError",a.type=s,a.request=r,o[1](a)}},"chunk-"+e,e)}},F.O.j=e=>0===t[e];var e=(e,i)=>{var o,s,[r,a,n]=i,l=0;if(r.some(e=>0!==t[e])){for(o in a)F.o(a,o)&&(F.m[o]=a[o]);if(n)var d=n(F)}for(e&&e(i);l<r.length;l++)s=r[l],F.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return F.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var N=F.O(void 0,[8493,7103,4765,1873,1890,4313,510,5087,6865,8889,8210,5630,3135,1013,3739,7819,2848,4363,2243,7919,7292,6188,15,8345,9270,8923,4548,2669,1729,9164,9480,1625,836,3625,2056,4889,9409,9654,4659,5838,6765,1626,3852,8161,6273,8391,679,8033,1564,4462,4744,8576,1092,8171,2201,2186,9425,8588,3212,622,5809,9455,759,2093,8148,5799,9312,2714,9238,7833,2924,5524,674,2314],()=>F(10981));return F.O(N)})());
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require("./
|
|
1
|
+
require("./8493"),require("./7103"),require("./4765"),require("./1873"),require("./1890"),require("./4313"),require("./510"),require("./5087"),require("./6865"),require("./8889"),require("./8210"),require("./5630"),require("./3135"),require("./1013"),require("./3739"),require("./7819"),require("./2848"),require("./4363"),require("./2243"),require("./7919"),require("./7292"),require("./6188"),require("./15"),require("./8345"),require("./9270"),require("./8923"),require("./4548"),require("./2669"),require("./1729"),require("./9164"),require("./9480"),require("./1625"),require("./836"),require("./3625"),require("./2056"),require("./4889"),require("./9409"),require("./9654"),require("./4659"),require("./5838"),require("./6765"),require("./1626"),require("./3852"),require("./8161"),require("./6273"),require("./8391"),require("./679"),require("./8033"),require("./1564"),require("./4462"),require("./4744"),require("./8576"),require("./1092"),require("./8171"),require("./2201"),require("./2186"),require("./9425"),require("./8588"),require("./3212"),require("./622"),require("./5809"),require("./9455"),require("./759"),require("./2093"),require("./8148"),require("./5799"),require("./9312"),require("./2714"),require("./9238"),require("./7833"),require("./2924"),require("./5524"),require("./674"),require("./2314"),module.exports=require("./index-entry");
|
|
@@ -203,7 +203,7 @@ export declare namespace ComboBox {
|
|
|
203
203
|
checkForVirtualScroll(): boolean;
|
|
204
204
|
rangeChanged(): void;
|
|
205
205
|
getCustomErrorContent(): DocumentFragment;
|
|
206
|
-
getCustomContent(option: string | OptionMember): TemplateResult<1
|
|
206
|
+
getCustomContent(option: string | OptionMember): DocumentFragment | TemplateResult<1>;
|
|
207
207
|
renderGroupLabelHeader(option: OptionMember, optionIndex: number): TemplateResult<1>;
|
|
208
208
|
renderWithoutVirtualScroll(): unknown;
|
|
209
209
|
highlightingSearchedText(option: OptionMember | string): TemplateResult<1>[];
|
|
@@ -20,7 +20,7 @@ export declare const iconPosition: string[];
|
|
|
20
20
|
export declare const nestedLevel: number[];
|
|
21
21
|
export declare const ariaInvalidType: string[];
|
|
22
22
|
export declare namespace Input {
|
|
23
|
-
export type Type = "text" | "number" | "password" | "email" | "tel" | "checkbox";
|
|
23
|
+
export type Type = "text" | "number" | "password" | "email" | "tel" | "checkbox" | "search";
|
|
24
24
|
export type MessageType = "error" | "success" | "warning" | "priority";
|
|
25
25
|
export type Message = {
|
|
26
26
|
type: MessageType;
|
|
@@ -33,6 +33,7 @@ export declare namespace Input {
|
|
|
33
33
|
export type InputType = typeof inputSize;
|
|
34
34
|
export type shape = typeof inputShape;
|
|
35
35
|
export type AriaInvalidType = (typeof ariaInvalidType)[number];
|
|
36
|
+
export type Autocomplete = "on" | "off";
|
|
36
37
|
export class MessageController {
|
|
37
38
|
determineMessageType(array: Input.Message[]): MessageType;
|
|
38
39
|
filterMessagesByType(array: Input.Message[], value: string): string[];
|
|
@@ -103,6 +104,7 @@ export declare namespace Input {
|
|
|
103
104
|
newMomentum: boolean;
|
|
104
105
|
control?: FormControl<unknown>;
|
|
105
106
|
disableUserTextInput: boolean;
|
|
107
|
+
autocomplete?: Autocomplete;
|
|
106
108
|
showDropdown: boolean;
|
|
107
109
|
dropdownExpanded: boolean;
|
|
108
110
|
dropdownAriaLabel: string;
|
|
@@ -3,6 +3,10 @@ import "@/components/icon/Icon";
|
|
|
3
3
|
import { LitElement } from "lit";
|
|
4
4
|
export declare namespace ListItemV2 {
|
|
5
5
|
type Variant = "full-width" | "inset-pill" | "inset-rectangle";
|
|
6
|
+
/**
|
|
7
|
+
* @fires list-item-click
|
|
8
|
+
* @fires list-item-expanded
|
|
9
|
+
*/
|
|
6
10
|
class ELEMENT extends LitElement {
|
|
7
11
|
/**
|
|
8
12
|
* The primary label of the list item.
|
|
@@ -39,6 +43,7 @@ export declare namespace ListItemV2 {
|
|
|
39
43
|
* The ARIA label for the expand button. Only use if `expandable` is true.
|
|
40
44
|
*/
|
|
41
45
|
expandLabel: string;
|
|
46
|
+
header: HTMLElement;
|
|
42
47
|
render(): import("lit").TemplateResult<1>;
|
|
43
48
|
private renderExpandButton;
|
|
44
49
|
private renderLeadingControls;
|