@covalent/components 10.4.0-beta.3 → 11.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_commonjsHelpers-DGT2Y9Xa.js +1 -0
- package/{_commonjsHelpers-HP5nalso.mjs → _commonjsHelpers-MdHo5S7N.mjs} +1 -1
- package/action-ribbon.js +5 -5
- package/action-ribbon.mjs +33 -33
- package/alert.js +5 -5
- package/alert.mjs +48 -48
- package/app-shell.js +1 -1
- package/app-shell.mjs +7 -7
- package/async-directive-JqUnzsgG.mjs +66 -0
- package/async-directive-X7VhNdG3.js +5 -0
- package/badge.js +1 -1
- package/badge.mjs +4 -4
- package/{base-element-5ZU-p99q.js → base-element-DP9GZic2.js} +1 -1
- package/{base-element-CzNmpVoz.mjs → base-element-DUJkJh_y.mjs} +1 -1
- package/button.js +2 -2
- package/button.mjs +26 -26
- package/card.js +8 -8
- package/card.mjs +39 -39
- package/check-list-item.js +8 -8
- package/check-list-item.mjs +34 -34
- package/checkbox.js +1 -1
- package/checkbox.mjs +15 -15
- package/{chip-DmwMNZYy.js → chip-BjFvUMom.js} +44 -44
- package/{chip-tQfbvpbh.mjs → chip-Dc7_8pVI.mjs} +412 -408
- package/chip-set.js +5 -5
- package/chip-set.mjs +125 -125
- package/chip.js +1 -1
- package/chip.mjs +2 -2
- package/circular-progress.js +15 -15
- package/circular-progress.mjs +25 -25
- package/class-map-DPUylGZM.mjs +36 -0
- package/class-map-DTzB8z-1.js +5 -0
- package/{code-editor-CryBkPGy.js → code-editor-Bu3qtyEg.js} +110 -110
- package/{code-editor-XU5DhFbC.mjs → code-editor-CPpojoPe.mjs} +5423 -5477
- package/code-editor.js +1 -1
- package/code-editor.mjs +2 -2
- package/code-snippet.js +11 -11
- package/code-snippet.mjs +2611 -2641
- package/{dialog-DMqDMT_N.js → dialog-BShWbhKq.js} +9 -9
- package/{dialog-BodJc4rc.mjs → dialog-CGLRIM8z.mjs} +186 -186
- package/dialog.js +1 -1
- package/dialog.mjs +2 -2
- package/directive-C7oCP5Bh.js +5 -0
- package/directive-helpers-C-un5pST.js +5 -0
- package/directive-helpers-DS-VuBZD.mjs +11 -0
- package/{directive-B76A7YXI.mjs → directive-oAbCiebi.mjs} +4 -4
- package/drawer.js +2 -2
- package/drawer.mjs +14 -14
- package/empty-state.js +1 -1
- package/empty-state.mjs +6 -6
- package/{event-options-D44mpm5S.mjs → event-options-C7DvXRgq.mjs} +1 -1
- package/{event-options-IG-2g8HU.js → event-options-DD382x85.js} +1 -1
- package/expansion-panel-item.js +1 -1
- package/expansion-panel-item.mjs +3 -3
- package/expansion-panel.js +1 -1
- package/expansion-panel.mjs +5 -5
- package/focused-page.js +1 -1
- package/focused-page.mjs +7 -7
- package/form-element-BOhYShN_.mjs +50 -0
- package/form-element-BSAsNxWv.js +5 -0
- package/formfield.js +7 -7
- package/formfield.mjs +45 -45
- package/{foundation-BYhAXCW_.mjs → foundation-CZtT3AWn.mjs} +15 -17
- package/{foundation-sIsx2I_x.js → foundation-CySCCTUE.js} +2 -2
- package/{foundation-D6JHa7Lg.mjs → foundation-PL3XY-m_.mjs} +4 -4
- package/{foundation-aT_gy6X8.js → foundation-pgmPu2iJ.js} +1 -1
- package/full-screen-dialog.js +2 -2
- package/full-screen-dialog.mjs +10 -10
- package/{html-DW6Y8eLM.mjs → html-DC72jQvb.mjs} +1 -1
- package/{html-CEiNqoVv.js → html-wWghN8cA.js} +1 -1
- package/icon-button-toggle.js +6 -6
- package/icon-button-toggle.mjs +32 -32
- package/icon-button.js +5 -5
- package/icon-button.mjs +36 -36
- package/icon-check-toggle.js +1 -1
- package/icon-check-toggle.mjs +7 -7
- package/icon-lockup.js +5 -5
- package/icon-lockup.mjs +4 -4
- package/icon-radio-toggle.js +1 -1
- package/icon-radio-toggle.mjs +13 -13
- package/icon.js +1 -1
- package/icon.mjs +13 -13
- package/{if-defined-B7G84qob.js → if-defined-CZCqOAYs.js} +1 -1
- package/{if-defined-DN7whKwy.mjs → if-defined-DGrxuPYz.mjs} +1 -1
- package/index.js +7 -7
- package/index.mjs +121 -121
- package/inert.esm-CknhJysw.mjs +645 -0
- package/inert.esm-D2PJKL9E.js +28 -0
- package/{javascript-DzJ0FiwJ.mjs → javascript-C_a5TwhW.mjs} +1 -1
- package/{javascript-vVCDG6Rm.js → javascript-cY8cX08V.js} +1 -1
- package/linear-progress.js +7 -7
- package/linear-progress.mjs +32 -32
- package/{list-item-BIuZJQpK.mjs → list-item-CK66f3gK.mjs} +1 -1
- package/{list-item-V8RaZO6L.js → list-item-LcvIn8Xz.js} +1 -1
- package/list-item.js +7 -7
- package/list-item.mjs +21 -21
- package/list.js +3 -3
- package/list.mjs +16 -16
- package/menu.js +3 -3
- package/menu.mjs +16 -16
- package/{mwc-checkbox.css-CNoj0V14.mjs → mwc-checkbox.css-BrjbMwch.mjs} +28 -28
- package/{mwc-checkbox.css-BV3dyB4C.js → mwc-checkbox.css-u49MHsHT.js} +1 -1
- package/{mwc-drawer-base-BIn51sQu.js → mwc-drawer-base-C2YS_KZk.js} +3 -3
- package/{mwc-drawer-base-C96HTnbC.mjs → mwc-drawer-base-_d7xArWM.mjs} +11 -11
- package/{mwc-icon-Xgr698ax.js → mwc-icon-BUzuM0iB.js} +1 -1
- package/{mwc-icon-DTCUplqR.mjs → mwc-icon-U80igLyY.mjs} +2 -2
- package/{mwc-icon-button.css-DOVWWyjA.js → mwc-icon-button.css-BzElD_JI.js} +1 -1
- package/{mwc-icon-button.css-DJiDOS0_.mjs → mwc-icon-button.css-DosQIdlt.mjs} +1 -1
- package/{mwc-line-ripple-directive-r80jluoU.js → mwc-line-ripple-directive-DBy5sTfo.js} +4 -4
- package/{mwc-line-ripple-directive-TO37-41n.mjs → mwc-line-ripple-directive-at_ngzOj.mjs} +35 -34
- package/{mwc-list-item.css-CO1JlA8e.js → mwc-list-item.css-Bib8TVz5.js} +10 -10
- package/{mwc-list-item.css-Cg9onxQ-.mjs → mwc-list-item.css-BtGzAhUF.mjs} +10 -10
- package/{mwc-list.css-C_-DVEme.mjs → mwc-list.css-BBbQixrF.mjs} +100 -100
- package/{mwc-list.css-Deg9oBaO.js → mwc-list.css-DWV8pw-x.js} +1 -1
- package/{mwc-menu.css-qpZxKN-g.mjs → mwc-menu.css-BUjxqJjM.mjs} +303 -303
- package/{mwc-menu.css-Dvr-f3_T.js → mwc-menu.css-D3EFugOg.js} +18 -18
- package/{mwc-radio.css-DjO4Rn44.js → mwc-radio.css-BWiWreTh.js} +1 -1
- package/{mwc-radio.css-BiHC1R8I.mjs → mwc-radio.css-DPbyzNg_.mjs} +8 -8
- package/{mwc-slider.css-Deh1__Ar.mjs → mwc-slider.css-CBNgYCJf.mjs} +277 -288
- package/{mwc-slider.css-DFOaS04S.js → mwc-slider.css-DytByuJk.js} +13 -13
- package/{mwc-tab.css-sq5suZKe.js → mwc-tab.css-CrjUDOft.js} +11 -11
- package/{mwc-tab.css-2UrPKkNg.mjs → mwc-tab.css-DJHVL7wZ.mjs} +31 -31
- package/{mwc-top-app-bar-base-DUdOcIjS.js → mwc-top-app-bar-base-Gxaye-WD.js} +3 -3
- package/{mwc-top-app-bar-base-BIZGhVtM.mjs → mwc-top-app-bar-base-N3OLLWe5.mjs} +21 -21
- package/nav-list-item.js +1 -1
- package/nav-list-item.mjs +13 -13
- package/notebook-cell.js +1 -1
- package/notebook-cell.mjs +23 -23
- package/package.json +3 -3
- package/{property-BRKnMYJe.js → property-DYTC_2-m.js} +1 -1
- package/{python-CddQNZH2.mjs → python-3XbrQbry.mjs} +1 -1
- package/{python-DnfGbG5q.js → python-C-jtMxm_.js} +1 -1
- package/query-CDOd1Kwm.mjs +15 -0
- package/query-Dv2F3m_t.js +5 -0
- package/query-assigned-elements-8EurZY45.js +31 -0
- package/query-assigned-elements-D930kELM.mjs +591 -0
- package/query-assigned-nodes-BAfLwxmx.js +5 -0
- package/query-assigned-nodes-Dof2CSLU.mjs +17 -0
- package/radio-list-item.js +9 -9
- package/radio-list-item.mjs +28 -28
- package/radio.js +1 -1
- package/radio.mjs +15 -15
- package/{ripple-handlers-BDmOLx8c.js → ripple-handlers-C7an-EE1.js} +5 -5
- package/{ripple-handlers-BAdg-fJB.mjs → ripple-handlers-_gEIkKpx.mjs} +71 -71
- package/select.js +15 -15
- package/select.mjs +166 -167
- package/side-sheet.js +1 -1
- package/side-sheet.mjs +8 -8
- package/slider-range.js +5 -5
- package/slider-range.mjs +43 -43
- package/slider.js +2 -2
- package/slider.mjs +19 -19
- package/snackbar.js +11 -11
- package/snackbar.mjs +54 -54
- package/{state-Csv4sdJA.js → state-C3HoXfoa.js} +1 -1
- package/status-dialog.js +1 -1
- package/status-dialog.mjs +6 -6
- package/status-header-item.js +1 -1
- package/status-header-item.mjs +17 -17
- package/status-header.js +5 -5
- package/status-header.mjs +34 -34
- package/style-map-D2TR7M-D.mjs +42 -0
- package/style-map-DOMuf9Fg.js +5 -0
- package/switch.js +5 -5
- package/switch.mjs +42 -42
- package/tab-bar.js +11 -11
- package/tab-bar.mjs +98 -98
- package/tab.js +1 -1
- package/tab.mjs +13 -13
- package/text-lockup.js +1 -1
- package/text-lockup.mjs +9 -9
- package/textarea.js +6 -6
- package/textarea.mjs +29 -29
- package/{textfield-bHWjhOOq.js → textfield-Byf2gP_G.js} +31 -31
- package/{textfield-i_Whj47J.mjs → textfield-RbQ6Kwq7.mjs} +102 -102
- package/textfield.js +3 -3
- package/textfield.mjs +17 -17
- package/theme/prebuilt/dark-theme.css +1 -1
- package/theme/prebuilt/light-theme.css +1 -1
- package/toolbar.js +1 -1
- package/toolbar.mjs +4 -4
- package/tooltip.js +3 -3
- package/tooltip.mjs +54 -55
- package/{top-app-bar-CZ5ILmAf.mjs → top-app-bar-BQ88Rom5.mjs} +1 -1
- package/top-app-bar-fixed.js +8 -8
- package/top-app-bar-fixed.mjs +40 -40
- package/{top-app-bar-UVbXY1md.js → top-app-bar-lbNkmJbQ.js} +1 -1
- package/top-app-bar.js +3 -3
- package/top-app-bar.mjs +18 -18
- package/tree-list-item.js +1 -1
- package/tree-list-item.mjs +4 -4
- package/tree-list.js +4 -4
- package/tree-list.mjs +22 -22
- package/tslib.es6-CJ7TUrOc.mjs +75 -0
- package/{typescript-BRw9OFm1.js → typescript-CNfpftAV.js} +1 -1
- package/{typescript-CdlgcZ3y.mjs → typescript-Dj6mne2e.mjs} +1 -1
- package/typography.js +1 -1
- package/typography.mjs +3 -3
- package/_commonjsHelpers-6jR-N8xe.js +0 -1
- package/async-directive-2AOdKBUW.mjs +0 -66
- package/async-directive-DZ3MjSIj.js +0 -5
- package/class-map-BHl5MHd7.mjs +0 -36
- package/class-map-PsUYVqvf.js +0 -5
- package/directive-C_VV3qwo.js +0 -5
- package/directive-helpers-6HCt_-zj.mjs +0 -11
- package/directive-helpers-BnUMbYHh.js +0 -5
- package/form-element--PS8uSRI.js +0 -5
- package/form-element-Dn0Lerng.mjs +0 -50
- package/inert.esm-C8R-X3j4.mjs +0 -639
- package/inert.esm-t-228rpY.js +0 -28
- package/query-BvlE-gMJ.js +0 -5
- package/query-DSO61t36.mjs +0 -15
- package/query-assigned-elements-BQszEgac.js +0 -31
- package/query-assigned-elements-DhyCP_2z.mjs +0 -591
- package/query-assigned-nodes-9DFnkxV8.js +0 -5
- package/query-assigned-nodes-B-jCihdA.mjs +0 -17
- package/style-map-3QfsA_1O.js +0 -5
- package/style-map-QxIETvrs.mjs +0 -42
- package/theme/prebuilt/dark-theme.css.map +0 -1
- package/theme/prebuilt/light-theme.css.map +0 -1
- package/tslib.es6-CISSdiiH.mjs +0 -75
- /package/{style.css → covalent.css} +0 -0
package/chip-set.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("./query-assigned-elements-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("./query-assigned-elements-8EurZY45.js"),c=require("./chip-BjFvUMom.js"),d=require("./tslib.es6-CHeFCc6E.js"),S=require("./foundation-pgmPu2iJ.js"),C=require("./keyboard-CZlaSOb1.js"),E=require("./property-DYTC_2-m.js"),N=require("./query-Dv2F3m_t.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2016 Google Inc.
|
4
4
|
*
|
@@ -61,7 +61,7 @@
|
|
61
61
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
62
62
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
63
63
|
* THE SOFTWARE.
|
64
|
-
*/var b;(function(a){a.POLITE="polite",a.ASSERTIVE="assertive"})(b||(b={}));var M="data-mdc-dom-announce";function D(a,i){T.getInstance().say(a,i)}var T=function(){function a(){this.liveRegions=new Map}return a.getInstance=function(){return a.instance||(a.instance=new a),a.instance},a.prototype.say=function(i,e){var t,r,n=(t=e==null?void 0:e.priority)!==null&&t!==void 0?t:b.POLITE,o=(r=e==null?void 0:e.ownerDocument)!==null&&r!==void 0?r:document,h=this.getLiveRegion(n,o);h.textContent="",setTimeout(function(){h.textContent=i,o.addEventListener("click",s)},1);function s(){h.textContent="",o.removeEventListener("click",s)}},a.prototype.getLiveRegion=function(i,e){var t=this.liveRegions.get(e);t||(t=new Map,this.liveRegions.set(e,t));var r=t.get(i);if(r&&e.body.contains(r))return r;var n=this.createLiveRegion(i,e);return t.set(i,n),n},a.prototype.createLiveRegion=function(i,e){var t=e.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",t.style.height="1px",t.style.overflow="hidden",t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live",i),t.setAttribute(M,"true"),e.body.appendChild(t),t},a}(),
|
64
|
+
*/var b;(function(a){a.POLITE="polite",a.ASSERTIVE="assertive"})(b||(b={}));var M="data-mdc-dom-announce";function D(a,i){T.getInstance().say(a,i)}var T=function(){function a(){this.liveRegions=new Map}return a.getInstance=function(){return a.instance||(a.instance=new a),a.instance},a.prototype.say=function(i,e){var t,r,n=(t=e==null?void 0:e.priority)!==null&&t!==void 0?t:b.POLITE,o=(r=e==null?void 0:e.ownerDocument)!==null&&r!==void 0?r:document,h=this.getLiveRegion(n,o);h.textContent="",setTimeout(function(){h.textContent=i,o.addEventListener("click",s)},1);function s(){h.textContent="",o.removeEventListener("click",s)}},a.prototype.getLiveRegion=function(i,e){var t=this.liveRegions.get(e);t||(t=new Map,this.liveRegions.set(e,t));var r=t.get(i);if(r&&e.body.contains(r))return r;var n=this.createLiveRegion(i,e);return t.set(i,n),n},a.prototype.createLiveRegion=function(i,e){var t=e.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",t.style.height="1px",t.style.overflow="hidden",t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live",i),t.setAttribute(M,"true"),e.body.appendChild(t),t},a}(),L=Object.defineProperty,g=(a,i,e,t)=>{for(var r=void 0,n=a.length-1,o;n>=0;n--)(o=a[n])&&(r=o(i,e,r)||r);return r&&L(i,e,r),r};class A extends I.s{constructor(){super(...arguments),this.selectable=!1,this.multi=!1,this.label="",this.activeIndex=0,this._previousActiveIndex=-1,this.chips=[]}render(){return I.x`<span
|
65
65
|
class="mdc-evolution-chip-set"
|
66
66
|
role="${this.selectable||this.multi?"listbox":"grid"}"
|
67
67
|
aria-label="${this.label}"
|
@@ -70,6 +70,6 @@
|
|
70
70
|
<span class="mdc-evolution-chip-set__chips" role="presentation">
|
71
71
|
<slot></slot>
|
72
72
|
</span>
|
73
|
-
</span>`}async updated(i){super.updated(i),await this.updateComplete,this.activeIndex!=this._previousActiveIndex&&this.mdcFoundation.setChipSelected(this.activeIndex,c.MDCChipActionType.PRIMARY,!0)}firstUpdated(i){var r;super.firstUpdated(i);const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),t=(e==null?void 0:e.assignedElements().filter(n=>n instanceof c.CovalentChip))??[];for(let n=0;n<t.length;n++){const o=t[n];this.chips.push(o)}this.mdcFoundation!==void 0&&this.mdcFoundation.destroy(),this.mdcFoundation=new R(this.createAdapter()),this.mdcFoundation.init()}connectedCallback(){super.connectedCallback(),this.addEventListener(c.MDCChipEvents.ANIMATION,this._handleChipAnimation),this.addEventListener(c.MDCChipEvents.INTERACTION,this._handleChipInteraction),this.addEventListener(c.MDCChipEvents.NAVIGATION,this._handleChipNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(c.MDCChipEvents.ANIMATION,this._handleChipAnimation),this.removeEventListener(c.MDCChipEvents.INTERACTION,this._handleChipInteraction),this.removeEventListener(c.MDCChipEvents.NAVIGATION,this._handleChipNavigation)}createAdapter(){return{announceMessage:D,emitEvent:(i,e)=>this.dispatchEvent(new CustomEvent(i,{bubbles:!0,detail:e})),getAttribute:i=>this.mdcRoot.getAttribute(i),getChipActionsAtIndex:i=>this.chips[i].getActions(),getChipCount:()=>this.chips.length,getChipIdAtIndex:i=>this.chips[i].getElementID(),getChipIndexById:i=>this.chips.findIndex(e=>e.getElementID()===i),isChipFocusableAtIndex:(i,e)=>this.chips[i].isActionFocusable(e),isChipSelectableAtIndex:(i,e)=>this.chips[i].isActionSelectable(e),isChipSelectedAtIndex:(i,e)=>this.chips[i].isActionSelected(e),removeChipAtIndex:i=>this.chips[i].remove(),setChipFocusAtIndex:(i,e,t)=>this.chips[i].setActionFocus(e,t),setChipSelectedAtIndex:(i,e,t)=>this.chips[i].setActionSelected(e,t),startChipAnimationAtIndex:(i,e)=>this.chips[i].startAnimation(e)}}_handleChipAnimation(i){this.mdcFoundation.handleChipAnimation(i)}_handleChipInteraction(i){this.mdcFoundation.handleChipInteraction(i)}_handleChipNavigation(i){this.mdcFoundation.handleChipNavigation(i)}}g([N.i(".mdc-evolution-chip-set")],A.prototype,"mdcRoot");g([E.n({type:Boolean,reflect:!0})],A.prototype,"selectable");g([E.n({type:Boolean,reflect:!0})],A.prototype,"multi");g([E.n()],A.prototype,"label");g([E.n({type:Number})],A.prototype,"activeIndex");const
|
74
|
-
${I.r(
|
75
|
-
`];exports.CovalentChipSet=
|
73
|
+
</span>`}async updated(i){super.updated(i),await this.updateComplete,this.activeIndex!=this._previousActiveIndex&&this.mdcFoundation.setChipSelected(this.activeIndex,c.MDCChipActionType.PRIMARY,!0)}firstUpdated(i){var r;super.firstUpdated(i);const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),t=(e==null?void 0:e.assignedElements().filter(n=>n instanceof c.CovalentChip))??[];for(let n=0;n<t.length;n++){const o=t[n];this.chips.push(o)}this.mdcFoundation!==void 0&&this.mdcFoundation.destroy(),this.mdcFoundation=new R(this.createAdapter()),this.mdcFoundation.init()}connectedCallback(){super.connectedCallback(),this.addEventListener(c.MDCChipEvents.ANIMATION,this._handleChipAnimation),this.addEventListener(c.MDCChipEvents.INTERACTION,this._handleChipInteraction),this.addEventListener(c.MDCChipEvents.NAVIGATION,this._handleChipNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(c.MDCChipEvents.ANIMATION,this._handleChipAnimation),this.removeEventListener(c.MDCChipEvents.INTERACTION,this._handleChipInteraction),this.removeEventListener(c.MDCChipEvents.NAVIGATION,this._handleChipNavigation)}createAdapter(){return{announceMessage:D,emitEvent:(i,e)=>this.dispatchEvent(new CustomEvent(i,{bubbles:!0,detail:e})),getAttribute:i=>this.mdcRoot.getAttribute(i),getChipActionsAtIndex:i=>this.chips[i].getActions(),getChipCount:()=>this.chips.length,getChipIdAtIndex:i=>this.chips[i].getElementID(),getChipIndexById:i=>this.chips.findIndex(e=>e.getElementID()===i),isChipFocusableAtIndex:(i,e)=>this.chips[i].isActionFocusable(e),isChipSelectableAtIndex:(i,e)=>this.chips[i].isActionSelectable(e),isChipSelectedAtIndex:(i,e)=>this.chips[i].isActionSelected(e),removeChipAtIndex:i=>this.chips[i].remove(),setChipFocusAtIndex:(i,e,t)=>this.chips[i].setActionFocus(e,t),setChipSelectedAtIndex:(i,e,t)=>this.chips[i].setActionSelected(e,t),startChipAnimationAtIndex:(i,e)=>this.chips[i].startAnimation(e)}}_handleChipAnimation(i){this.mdcFoundation.handleChipAnimation(i)}_handleChipInteraction(i){this.mdcFoundation.handleChipInteraction(i)}_handleChipNavigation(i){this.mdcFoundation.handleChipNavigation(i)}}g([N.i(".mdc-evolution-chip-set")],A.prototype,"mdcRoot");g([E.n({type:Boolean,reflect:!0})],A.prototype,"selectable");g([E.n({type:Boolean,reflect:!0})],A.prototype,"multi");g([E.n()],A.prototype,"label");g([E.n({type:Number})],A.prototype,"activeIndex");const O=".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}::slotted(cv-chip){margin:4px 0 4px 8px}[dir=rtl] ::slotted(cv-chip),::slotted(cv-chip[dir=rtl]){margin-left:0;margin-right:8px}";var _=Object.getOwnPropertyDescriptor,w=(a,i,e,t)=>{for(var r=t>1?void 0:t?_(i,e):i,n=a.length-1,o;n>=0;n--)(o=a[n])&&(r=o(r)||r);return r};exports.CovalentChipSet=class extends A{};exports.CovalentChipSet.styles=[I.i`
|
74
|
+
${I.r(O)}
|
75
|
+
`];exports.CovalentChipSet=w([I.e("cv-chip-set")],exports.CovalentChipSet);const B=exports.CovalentChipSet;exports.default=B;
|
package/chip-set.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import { s as M, x as D,
|
2
|
-
import { M as E, a as A, b as T, C as w, c as
|
3
|
-
import { _ as
|
4
|
-
import { M as
|
5
|
-
import { K as
|
1
|
+
import { s as M, x as D, r as L, i as O, e as _ } from "./query-assigned-elements-D930kELM.mjs";
|
2
|
+
import { M as E, a as A, b as T, C as w, c as v } from "./chip-Dc7_8pVI.mjs";
|
3
|
+
import { _ as B, a as F, c as I } from "./tslib.es6-CJ7TUrOc.mjs";
|
4
|
+
import { M as P } from "./foundation-PL3XY-m_.mjs";
|
5
|
+
import { K as l } from "./keyboard-BLpVBEDM.mjs";
|
6
6
|
import { n as y } from "./property-DJzm_oB9.mjs";
|
7
|
-
import { i as U } from "./query-
|
7
|
+
import { i as U } from "./query-CDOd1Kwm.mjs";
|
8
8
|
/**
|
9
9
|
* @license
|
10
10
|
* Copyright 2016 Google Inc.
|
@@ -35,10 +35,10 @@ var S;
|
|
35
35
|
(function(a) {
|
36
36
|
a.CHIP = "mdc-evolution-chip";
|
37
37
|
})(S || (S = {}));
|
38
|
-
var
|
38
|
+
var f;
|
39
39
|
(function(a) {
|
40
40
|
a.INTERACTION = "MDCChipSet:interaction", a.REMOVAL = "MDCChipSet:removal", a.SELECTION = "MDCChipSet:selection";
|
41
|
-
})(
|
41
|
+
})(f || (f = {}));
|
42
42
|
/**
|
43
43
|
* @license
|
44
44
|
* Copyright 2020 Google Inc.
|
@@ -61,16 +61,16 @@ var v;
|
|
61
61
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
62
62
|
* THE SOFTWARE.
|
63
63
|
*/
|
64
|
-
var
|
64
|
+
var d;
|
65
65
|
(function(a) {
|
66
66
|
a[a.INCREMENT = 0] = "INCREMENT", a[a.DECREMENT = 1] = "DECREMENT";
|
67
|
-
})(
|
68
|
-
var
|
67
|
+
})(d || (d = {}));
|
68
|
+
var k = (
|
69
69
|
/** @class */
|
70
70
|
function(a) {
|
71
|
-
|
72
|
-
function i(
|
73
|
-
return a.call(this, F(F({}, i.defaultAdapter),
|
71
|
+
B(i, a);
|
72
|
+
function i(t) {
|
73
|
+
return a.call(this, F(F({}, i.defaultAdapter), t)) || this;
|
74
74
|
}
|
75
75
|
return Object.defineProperty(i, "defaultAdapter", {
|
76
76
|
get: function() {
|
@@ -115,8 +115,8 @@ var $ = (
|
|
115
115
|
},
|
116
116
|
enumerable: !1,
|
117
117
|
configurable: !0
|
118
|
-
}), i.prototype.handleChipAnimation = function(
|
119
|
-
var
|
118
|
+
}), i.prototype.handleChipAnimation = function(t) {
|
119
|
+
var e = t.detail, r = e.chipID, n = e.animation, o = e.isComplete, h = e.addedAnnouncement, s = e.removedAnnouncement, p = this.adapter.getChipIndexById(r);
|
120
120
|
if (n === E.EXIT && o) {
|
121
121
|
s && this.adapter.announceMessage(s), this.removeAfterAnimation(p, r);
|
122
122
|
return;
|
@@ -125,99 +125,99 @@ var $ = (
|
|
125
125
|
this.adapter.announceMessage(h);
|
126
126
|
return;
|
127
127
|
}
|
128
|
-
}, i.prototype.handleChipInteraction = function(
|
129
|
-
var
|
128
|
+
}, i.prototype.handleChipInteraction = function(t) {
|
129
|
+
var e = t.detail, r = e.source, n = e.chipID, o = e.isSelectable, h = e.isSelected, s = e.shouldRemove, p = this.adapter.getChipIndexById(n);
|
130
130
|
if (s) {
|
131
131
|
this.removeChip(p);
|
132
132
|
return;
|
133
133
|
}
|
134
|
-
this.focusChip(p, r, A.FOCUSABLE), this.adapter.emitEvent(
|
134
|
+
this.focusChip(p, r, A.FOCUSABLE), this.adapter.emitEvent(f.INTERACTION, {
|
135
135
|
chipIndex: p,
|
136
136
|
chipID: n
|
137
137
|
}), o && this.setSelection(p, r, !h);
|
138
|
-
}, i.prototype.handleChipNavigation = function(
|
139
|
-
var
|
138
|
+
}, i.prototype.handleChipNavigation = function(t) {
|
139
|
+
var e = t.detail, r = e.chipID, n = e.key, o = e.isRTL, h = e.source, s = this.adapter.getChipIndexById(r), p = n === l.ARROW_RIGHT && !o || n === l.ARROW_LEFT && o;
|
140
140
|
if (p) {
|
141
141
|
this.focusNextChipFrom(s + 1);
|
142
142
|
return;
|
143
143
|
}
|
144
|
-
var c = n ===
|
144
|
+
var c = n === l.ARROW_LEFT && !o || n === l.ARROW_RIGHT && o;
|
145
145
|
if (c) {
|
146
146
|
this.focusPrevChipFrom(s - 1);
|
147
147
|
return;
|
148
148
|
}
|
149
|
-
if (n ===
|
149
|
+
if (n === l.ARROW_DOWN) {
|
150
150
|
this.focusNextChipFrom(s + 1, h);
|
151
151
|
return;
|
152
152
|
}
|
153
|
-
if (n ===
|
153
|
+
if (n === l.ARROW_UP) {
|
154
154
|
this.focusPrevChipFrom(s - 1, h);
|
155
155
|
return;
|
156
156
|
}
|
157
|
-
if (n ===
|
157
|
+
if (n === l.HOME) {
|
158
158
|
this.focusNextChipFrom(0, h);
|
159
159
|
return;
|
160
160
|
}
|
161
|
-
if (n ===
|
161
|
+
if (n === l.END) {
|
162
162
|
this.focusPrevChipFrom(this.adapter.getChipCount() - 1, h);
|
163
163
|
return;
|
164
164
|
}
|
165
165
|
}, i.prototype.getSelectedChipIndexes = function() {
|
166
|
-
for (var
|
166
|
+
for (var t, e, r = /* @__PURE__ */ new Set(), n = this.adapter.getChipCount(), o = 0; o < n; o++) {
|
167
167
|
var h = this.adapter.getChipActionsAtIndex(o);
|
168
168
|
try {
|
169
|
-
for (var s = (
|
169
|
+
for (var s = (t = void 0, I(h)), p = s.next(); !p.done; p = s.next()) {
|
170
170
|
var c = p.value;
|
171
171
|
this.adapter.isChipSelectedAtIndex(o, c) && r.add(o);
|
172
172
|
}
|
173
173
|
} catch (u) {
|
174
|
-
|
174
|
+
t = { error: u };
|
175
175
|
} finally {
|
176
176
|
try {
|
177
|
-
p && !p.done && (
|
177
|
+
p && !p.done && (e = s.return) && e.call(s);
|
178
178
|
} finally {
|
179
|
-
if (
|
179
|
+
if (t) throw t.error;
|
180
180
|
}
|
181
181
|
}
|
182
182
|
}
|
183
183
|
return r;
|
184
|
-
}, i.prototype.setChipSelected = function(
|
185
|
-
this.adapter.isChipSelectableAtIndex(
|
186
|
-
}, i.prototype.isChipSelected = function(
|
187
|
-
return this.adapter.isChipSelectedAtIndex(
|
188
|
-
}, i.prototype.removeChip = function(
|
189
|
-
|
190
|
-
chipID: this.adapter.getChipIdAtIndex(
|
191
|
-
chipIndex:
|
184
|
+
}, i.prototype.setChipSelected = function(t, e, r) {
|
185
|
+
this.adapter.isChipSelectableAtIndex(t, e) && this.setSelection(t, e, r);
|
186
|
+
}, i.prototype.isChipSelected = function(t, e) {
|
187
|
+
return this.adapter.isChipSelectedAtIndex(t, e);
|
188
|
+
}, i.prototype.removeChip = function(t) {
|
189
|
+
t >= this.adapter.getChipCount() || t < 0 || (this.adapter.startChipAnimationAtIndex(t, E.EXIT), this.adapter.emitEvent(f.REMOVAL, {
|
190
|
+
chipID: this.adapter.getChipIdAtIndex(t),
|
191
|
+
chipIndex: t,
|
192
192
|
isComplete: !1
|
193
193
|
}));
|
194
|
-
}, i.prototype.addChip = function(
|
195
|
-
|
196
|
-
}, i.prototype.focusNextChipFrom = function(
|
197
|
-
for (var r = this.adapter.getChipCount(), n =
|
198
|
-
var o = this.getFocusableAction(n,
|
194
|
+
}, i.prototype.addChip = function(t) {
|
195
|
+
t >= this.adapter.getChipCount() || t < 0 || this.adapter.startChipAnimationAtIndex(t, E.ENTER);
|
196
|
+
}, i.prototype.focusNextChipFrom = function(t, e) {
|
197
|
+
for (var r = this.adapter.getChipCount(), n = t; n < r; n++) {
|
198
|
+
var o = this.getFocusableAction(n, d.INCREMENT, e);
|
199
199
|
if (o) {
|
200
200
|
this.focusChip(n, o, A.FOCUSABLE_AND_FOCUSED);
|
201
201
|
return;
|
202
202
|
}
|
203
203
|
}
|
204
|
-
}, i.prototype.focusPrevChipFrom = function(
|
205
|
-
for (var r =
|
206
|
-
var n = this.getFocusableAction(r,
|
204
|
+
}, i.prototype.focusPrevChipFrom = function(t, e) {
|
205
|
+
for (var r = t; r > -1; r--) {
|
206
|
+
var n = this.getFocusableAction(r, d.DECREMENT, e);
|
207
207
|
if (n) {
|
208
208
|
this.focusChip(r, n, A.FOCUSABLE_AND_FOCUSED);
|
209
209
|
return;
|
210
210
|
}
|
211
211
|
}
|
212
|
-
}, i.prototype.getFocusableAction = function(
|
213
|
-
var n = this.adapter.getChipActionsAtIndex(
|
214
|
-
return
|
215
|
-
}, i.prototype.getFirstFocusableAction = function(
|
212
|
+
}, i.prototype.getFocusableAction = function(t, e, r) {
|
213
|
+
var n = this.adapter.getChipActionsAtIndex(t);
|
214
|
+
return e === d.DECREMENT && n.reverse(), r ? this.getMatchingFocusableAction(t, n, r) : this.getFirstFocusableAction(t, n);
|
215
|
+
}, i.prototype.getFirstFocusableAction = function(t, e) {
|
216
216
|
var r, n;
|
217
217
|
try {
|
218
|
-
for (var o = I(
|
218
|
+
for (var o = I(e), h = o.next(); !h.done; h = o.next()) {
|
219
219
|
var s = h.value;
|
220
|
-
if (this.adapter.isChipFocusableAtIndex(
|
220
|
+
if (this.adapter.isChipFocusableAtIndex(t, s))
|
221
221
|
return s;
|
222
222
|
}
|
223
223
|
} catch (p) {
|
@@ -230,12 +230,12 @@ var $ = (
|
|
230
230
|
}
|
231
231
|
}
|
232
232
|
return null;
|
233
|
-
}, i.prototype.getMatchingFocusableAction = function(
|
233
|
+
}, i.prototype.getMatchingFocusableAction = function(t, e, r) {
|
234
234
|
var n, o, h = null;
|
235
235
|
try {
|
236
|
-
for (var s = I(
|
236
|
+
for (var s = I(e), p = s.next(); !p.done; p = s.next()) {
|
237
237
|
var c = p.value;
|
238
|
-
if (this.adapter.isChipFocusableAtIndex(
|
238
|
+
if (this.adapter.isChipFocusableAtIndex(t, c) && (h = c), h === r)
|
239
239
|
return h;
|
240
240
|
}
|
241
241
|
} catch (u) {
|
@@ -248,15 +248,15 @@ var $ = (
|
|
248
248
|
}
|
249
249
|
}
|
250
250
|
return h;
|
251
|
-
}, i.prototype.focusChip = function(
|
251
|
+
}, i.prototype.focusChip = function(t, e, r) {
|
252
252
|
var n, o;
|
253
|
-
this.adapter.setChipFocusAtIndex(
|
253
|
+
this.adapter.setChipFocusAtIndex(t, e, r);
|
254
254
|
for (var h = this.adapter.getChipCount(), s = 0; s < h; s++) {
|
255
255
|
var p = this.adapter.getChipActionsAtIndex(s);
|
256
256
|
try {
|
257
257
|
for (var c = (n = void 0, I(p)), u = c.next(); !u.done; u = c.next()) {
|
258
258
|
var m = u.value;
|
259
|
-
m ===
|
259
|
+
m === e && s === t || this.adapter.setChipFocusAtIndex(s, m, A.NOT_FOCUSABLE);
|
260
260
|
}
|
261
261
|
} catch (b) {
|
262
262
|
n = { error: b };
|
@@ -270,11 +270,11 @@ var $ = (
|
|
270
270
|
}
|
271
271
|
}, i.prototype.supportsMultiSelect = function() {
|
272
272
|
return this.adapter.getAttribute(N.ARIA_MULTISELECTABLE) === "true";
|
273
|
-
}, i.prototype.setSelection = function(
|
273
|
+
}, i.prototype.setSelection = function(t, e, r) {
|
274
274
|
var n, o;
|
275
|
-
if (this.adapter.setChipSelectedAtIndex(
|
276
|
-
chipID: this.adapter.getChipIdAtIndex(
|
277
|
-
chipIndex:
|
275
|
+
if (this.adapter.setChipSelectedAtIndex(t, e, r), this.adapter.emitEvent(f.SELECTION, {
|
276
|
+
chipID: this.adapter.getChipIdAtIndex(t),
|
277
|
+
chipIndex: t,
|
278
278
|
isSelected: r
|
279
279
|
}), !this.supportsMultiSelect())
|
280
280
|
for (var h = this.adapter.getChipCount(), s = 0; s < h; s++) {
|
@@ -282,7 +282,7 @@ var $ = (
|
|
282
282
|
try {
|
283
283
|
for (var c = (n = void 0, I(p)), u = c.next(); !u.done; u = c.next()) {
|
284
284
|
var m = u.value;
|
285
|
-
m ===
|
285
|
+
m === e && s === t || this.adapter.setChipSelectedAtIndex(s, m, !1);
|
286
286
|
}
|
287
287
|
} catch (b) {
|
288
288
|
n = { error: b };
|
@@ -294,16 +294,16 @@ var $ = (
|
|
294
294
|
}
|
295
295
|
}
|
296
296
|
}
|
297
|
-
}, i.prototype.removeAfterAnimation = function(
|
298
|
-
this.adapter.removeChipAtIndex(
|
299
|
-
chipIndex:
|
297
|
+
}, i.prototype.removeAfterAnimation = function(t, e) {
|
298
|
+
this.adapter.removeChipAtIndex(t), this.adapter.emitEvent(f.REMOVAL, {
|
299
|
+
chipIndex: t,
|
300
300
|
isComplete: !0,
|
301
|
-
chipID:
|
301
|
+
chipID: e
|
302
302
|
});
|
303
303
|
var r = this.adapter.getChipCount();
|
304
|
-
r <= 0 || this.focusNearestFocusableAction(
|
305
|
-
}, i.prototype.focusNearestFocusableAction = function(
|
306
|
-
for (var
|
304
|
+
r <= 0 || this.focusNearestFocusableAction(t);
|
305
|
+
}, i.prototype.focusNearestFocusableAction = function(t) {
|
306
|
+
for (var e = this.adapter.getChipCount(), r = t, n = t; r > -1 || n < e; ) {
|
307
307
|
var o = this.getNearestFocusableAction(r, n, T.TRAILING);
|
308
308
|
if (o) {
|
309
309
|
this.focusChip(o.index, o.action, A.FOCUSABLE_AND_FOCUSED);
|
@@ -311,22 +311,22 @@ var $ = (
|
|
311
311
|
}
|
312
312
|
r--, n++;
|
313
313
|
}
|
314
|
-
}, i.prototype.getNearestFocusableAction = function(
|
315
|
-
var n = this.getFocusableAction(
|
314
|
+
}, i.prototype.getNearestFocusableAction = function(t, e, r) {
|
315
|
+
var n = this.getFocusableAction(t, d.DECREMENT, r);
|
316
316
|
if (n)
|
317
317
|
return {
|
318
|
-
index:
|
318
|
+
index: t,
|
319
319
|
action: n
|
320
320
|
};
|
321
|
-
if (
|
321
|
+
if (e === t)
|
322
322
|
return null;
|
323
|
-
var o = this.getFocusableAction(
|
323
|
+
var o = this.getFocusableAction(e, d.INCREMENT, r);
|
324
324
|
return o ? {
|
325
|
-
index:
|
325
|
+
index: e,
|
326
326
|
action: o
|
327
327
|
} : null;
|
328
328
|
}, i;
|
329
|
-
}(
|
329
|
+
}(P)
|
330
330
|
);
|
331
331
|
/**
|
332
332
|
* @license
|
@@ -355,10 +355,10 @@ var R;
|
|
355
355
|
a.POLITE = "polite", a.ASSERTIVE = "assertive";
|
356
356
|
})(R || (R = {}));
|
357
357
|
var W = "data-mdc-dom-announce";
|
358
|
-
function
|
359
|
-
|
358
|
+
function $(a, i) {
|
359
|
+
V.getInstance().say(a, i);
|
360
360
|
}
|
361
|
-
var
|
361
|
+
var V = (
|
362
362
|
/** @class */
|
363
363
|
function() {
|
364
364
|
function a() {
|
@@ -366,31 +366,31 @@ var G = (
|
|
366
366
|
}
|
367
367
|
return a.getInstance = function() {
|
368
368
|
return a.instance || (a.instance = new a()), a.instance;
|
369
|
-
}, a.prototype.say = function(i,
|
370
|
-
var
|
369
|
+
}, a.prototype.say = function(i, t) {
|
370
|
+
var e, r, n = (e = t == null ? void 0 : t.priority) !== null && e !== void 0 ? e : R.POLITE, o = (r = t == null ? void 0 : t.ownerDocument) !== null && r !== void 0 ? r : document, h = this.getLiveRegion(n, o);
|
371
371
|
h.textContent = "", setTimeout(function() {
|
372
372
|
h.textContent = i, o.addEventListener("click", s);
|
373
373
|
}, 1);
|
374
374
|
function s() {
|
375
375
|
h.textContent = "", o.removeEventListener("click", s);
|
376
376
|
}
|
377
|
-
}, a.prototype.getLiveRegion = function(i,
|
378
|
-
var
|
379
|
-
|
380
|
-
var r =
|
381
|
-
if (r &&
|
377
|
+
}, a.prototype.getLiveRegion = function(i, t) {
|
378
|
+
var e = this.liveRegions.get(t);
|
379
|
+
e || (e = /* @__PURE__ */ new Map(), this.liveRegions.set(t, e));
|
380
|
+
var r = e.get(i);
|
381
|
+
if (r && t.body.contains(r))
|
382
382
|
return r;
|
383
|
-
var n = this.createLiveRegion(i,
|
384
|
-
return
|
385
|
-
}, a.prototype.createLiveRegion = function(i,
|
386
|
-
var
|
387
|
-
return
|
383
|
+
var n = this.createLiveRegion(i, t);
|
384
|
+
return e.set(i, n), n;
|
385
|
+
}, a.prototype.createLiveRegion = function(i, t) {
|
386
|
+
var e = t.createElement("div");
|
387
|
+
return e.style.position = "absolute", e.style.top = "-9999px", e.style.left = "-9999px", e.style.height = "1px", e.style.overflow = "hidden", e.setAttribute("aria-atomic", "true"), e.setAttribute("aria-live", i), e.setAttribute(W, "true"), t.body.appendChild(e), e;
|
388
388
|
}, a;
|
389
389
|
}()
|
390
|
-
),
|
390
|
+
), G = Object.defineProperty, g = (a, i, t, e) => {
|
391
391
|
for (var r = void 0, n = a.length - 1, o; n >= 0; n--)
|
392
|
-
(o = a[n]) && (r = o(i,
|
393
|
-
return r &&
|
392
|
+
(o = a[n]) && (r = o(i, t, r) || r);
|
393
|
+
return r && G(i, t, r), r;
|
394
394
|
};
|
395
395
|
class C extends M {
|
396
396
|
constructor() {
|
@@ -418,38 +418,38 @@ class C extends M {
|
|
418
418
|
firstUpdated(i) {
|
419
419
|
var r;
|
420
420
|
super.firstUpdated(i);
|
421
|
-
const
|
422
|
-
for (let n = 0; n <
|
423
|
-
const o =
|
421
|
+
const t = (r = this.shadowRoot) == null ? void 0 : r.querySelector("slot"), e = (t == null ? void 0 : t.assignedElements().filter((n) => n instanceof w)) ?? [];
|
422
|
+
for (let n = 0; n < e.length; n++) {
|
423
|
+
const o = e[n];
|
424
424
|
this.chips.push(o);
|
425
425
|
}
|
426
|
-
this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new
|
426
|
+
this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new k(this.createAdapter()), this.mdcFoundation.init();
|
427
427
|
}
|
428
428
|
connectedCallback() {
|
429
|
-
super.connectedCallback(), this.addEventListener(
|
430
|
-
|
429
|
+
super.connectedCallback(), this.addEventListener(v.ANIMATION, this._handleChipAnimation), this.addEventListener(
|
430
|
+
v.INTERACTION,
|
431
431
|
this._handleChipInteraction
|
432
|
-
), this.addEventListener(
|
432
|
+
), this.addEventListener(v.NAVIGATION, this._handleChipNavigation);
|
433
433
|
}
|
434
434
|
disconnectedCallback() {
|
435
435
|
super.disconnectedCallback(), this.removeEventListener(
|
436
|
-
|
436
|
+
v.ANIMATION,
|
437
437
|
this._handleChipAnimation
|
438
438
|
), this.removeEventListener(
|
439
|
-
|
439
|
+
v.INTERACTION,
|
440
440
|
this._handleChipInteraction
|
441
441
|
), this.removeEventListener(
|
442
|
-
|
442
|
+
v.NAVIGATION,
|
443
443
|
this._handleChipNavigation
|
444
444
|
);
|
445
445
|
}
|
446
446
|
createAdapter() {
|
447
447
|
return {
|
448
448
|
/** Announces the message via an aria-live region */
|
449
|
-
announceMessage:
|
449
|
+
announceMessage: $,
|
450
450
|
/** Emits the given event with the given detail. */
|
451
|
-
emitEvent: (i,
|
452
|
-
new CustomEvent(i, { bubbles: !0, detail:
|
451
|
+
emitEvent: (i, t) => this.dispatchEvent(
|
452
|
+
new CustomEvent(i, { bubbles: !0, detail: t })
|
453
453
|
),
|
454
454
|
/** Returns the value for the given attribute, if it exists. */
|
455
455
|
getAttribute: (i) => this.mdcRoot.getAttribute(i),
|
@@ -460,21 +460,21 @@ class C extends M {
|
|
460
460
|
/** Returns the ID of the chip at the given index. */
|
461
461
|
getChipIdAtIndex: (i) => this.chips[i].getElementID(),
|
462
462
|
/** Returns the index of the child chip with the matching ID. */
|
463
|
-
getChipIndexById: (i) => this.chips.findIndex((
|
463
|
+
getChipIndexById: (i) => this.chips.findIndex((t) => t.getElementID() === i),
|
464
464
|
/** Proxies to the MDCChip#isActionFocusable method. */
|
465
|
-
isChipFocusableAtIndex: (i,
|
465
|
+
isChipFocusableAtIndex: (i, t) => this.chips[i].isActionFocusable(t),
|
466
466
|
/** Proxies to the MDCChip#isActionSelectable method. */
|
467
|
-
isChipSelectableAtIndex: (i,
|
467
|
+
isChipSelectableAtIndex: (i, t) => this.chips[i].isActionSelectable(t),
|
468
468
|
/** Proxies to the MDCChip#isActionSelected method. */
|
469
|
-
isChipSelectedAtIndex: (i,
|
469
|
+
isChipSelectedAtIndex: (i, t) => this.chips[i].isActionSelected(t),
|
470
470
|
/** Removes the chip at the given index. */
|
471
471
|
removeChipAtIndex: (i) => this.chips[i].remove(),
|
472
472
|
/** Proxies to the MDCChip#setActionFocus method. */
|
473
|
-
setChipFocusAtIndex: (i,
|
473
|
+
setChipFocusAtIndex: (i, t, e) => this.chips[i].setActionFocus(t, e),
|
474
474
|
/** Proxies to the MDCChip#setActionSelected method. */
|
475
|
-
setChipSelectedAtIndex: (i,
|
475
|
+
setChipSelectedAtIndex: (i, t, e) => this.chips[i].setActionSelected(t, e),
|
476
476
|
/** Starts the chip animation at the given index. */
|
477
|
-
startChipAnimationAtIndex: (i,
|
477
|
+
startChipAnimationAtIndex: (i, t) => this.chips[i].startAnimation(t)
|
478
478
|
};
|
479
479
|
}
|
480
480
|
_handleChipAnimation(i) {
|
@@ -503,23 +503,23 @@ g([
|
|
503
503
|
y({ type: Number })
|
504
504
|
], C.prototype, "activeIndex");
|
505
505
|
const H = ".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}::slotted(cv-chip){margin:4px 0 4px 8px}[dir=rtl] ::slotted(cv-chip),::slotted(cv-chip[dir=rtl]){margin-left:0;margin-right:8px}";
|
506
|
-
var
|
507
|
-
for (var r =
|
508
|
-
(o = a[n]) && (r =
|
509
|
-
return
|
506
|
+
var j = Object.getOwnPropertyDescriptor, K = (a, i, t, e) => {
|
507
|
+
for (var r = e > 1 ? void 0 : e ? j(i, t) : i, n = a.length - 1, o; n >= 0; n--)
|
508
|
+
(o = a[n]) && (r = o(r) || r);
|
509
|
+
return r;
|
510
510
|
};
|
511
511
|
let x = class extends C {
|
512
512
|
};
|
513
513
|
x.styles = [
|
514
|
-
|
515
|
-
${
|
514
|
+
O`
|
515
|
+
${L(H)}
|
516
516
|
`
|
517
517
|
];
|
518
|
-
x =
|
518
|
+
x = K([
|
519
519
|
_("cv-chip-set")
|
520
520
|
], x);
|
521
|
-
const
|
521
|
+
const tt = x;
|
522
522
|
export {
|
523
523
|
x as CovalentChipSet,
|
524
|
-
|
524
|
+
tt as default
|
525
525
|
};
|
package/chip.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./query-assigned-elements-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./query-assigned-elements-8EurZY45.js");const e=require("./chip-BjFvUMom.js");Object.defineProperty(exports,"CovalentChip",{enumerable:!0,get:()=>e.CovalentChip});exports.default=e.CovalentChip$1;
|
package/chip.mjs
CHANGED