@covalent/components 8.4.0 → 8.5.0
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/action-ribbon.js +3 -3
- package/action-ribbon.mjs +25 -24
- package/alert.js +2 -2
- package/alert.mjs +21 -20
- package/{chip-d6f5c2bb.js → chip-21138b58.js} +53 -95
- package/{chip-9c846d01.mjs → chip-eb043df9.mjs} +1139 -1326
- package/chip-set.js +8 -8
- package/chip-set.mjs +17 -15
- package/chip.js +1 -1
- package/chip.mjs +5 -3
- package/foundation-2334d146.mjs +60 -0
- package/{foundation-eff81c1e.mjs → foundation-b3e4efcd.mjs} +22 -78
- package/foundation-e830bd94.js +22 -0
- package/{foundation-786bf879.js → foundation-e980aa3d.js} +3 -24
- package/index.d.ts +4 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.mjs +99 -91
- package/keyboard-39125691.js +43 -0
- package/keyboard-983b121c.mjs +159 -0
- package/package.json +1 -1
- package/tooltip.js +10 -73
- package/tooltip.mjs +385 -590
package/chip-set.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("./query-assigned-elements-f623705d.js"),c=require("./chip-21138b58.js"),d=require("./tslib.es6-98719205.js"),S=require("./foundation-e830bd94.js"),C=require("./keyboard-39125691.js"),E=require("./property-57f6f6fe.js"),N=require("./query-680f1868.js");require("./utils-a8190a39.js");require("./class-map-b5efe8da.js");require("./_commonjsHelpers-2367a3a2.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2016 Google Inc.
|
4
4
|
*
|
@@ -19,7 +19,7 @@
|
|
19
19
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
20
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
21
|
* THE SOFTWARE.
|
22
|
-
*/var
|
22
|
+
*/var y;(function(a){a.ARIA_MULTISELECTABLE="aria-multiselectable"})(y||(y={}));var F;(function(a){a.CHIP="mdc-evolution-chip"})(F||(F={}));var f;(function(a){a.INTERACTION="MDCChipSet:interaction",a.REMOVAL="MDCChipSet:removal",a.SELECTION="MDCChipSet:selection"})(f||(f={}));/**
|
23
23
|
* @license
|
24
24
|
* Copyright 2020 Google Inc.
|
25
25
|
*
|
@@ -40,7 +40,7 @@
|
|
40
40
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
41
41
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
42
42
|
* THE SOFTWARE.
|
43
|
-
*/var
|
43
|
+
*/var v;(function(a){a[a.INCREMENT=0]="INCREMENT",a[a.DECREMENT=1]="DECREMENT"})(v||(v={}));var R=function(a){d.__extends(i,a);function i(e){return a.call(this,d.__assign(d.__assign({},i.defaultAdapter),e))||this}return Object.defineProperty(i,"defaultAdapter",{get:function(){return{announceMessage:function(){},emitEvent:function(){},getAttribute:function(){return null},getChipActionsAtIndex:function(){return[]},getChipCount:function(){return 0},getChipIdAtIndex:function(){return""},getChipIndexById:function(){return 0},isChipFocusableAtIndex:function(){return!1},isChipSelectableAtIndex:function(){return!1},isChipSelectedAtIndex:function(){return!1},removeChipAtIndex:function(){},setChipFocusAtIndex:function(){},setChipSelectedAtIndex:function(){},startChipAnimationAtIndex:function(){}}},enumerable:!1,configurable:!0}),i.prototype.handleChipAnimation=function(e){var t=e.detail,r=t.chipID,n=t.animation,o=t.isComplete,h=t.addedAnnouncement,s=t.removedAnnouncement,p=this.adapter.getChipIndexById(r);if(n===c.MDCChipAnimation.EXIT&&o){s&&this.adapter.announceMessage(s),this.removeAfterAnimation(p,r);return}if(n===c.MDCChipAnimation.ENTER&&o&&h){this.adapter.announceMessage(h);return}},i.prototype.handleChipInteraction=function(e){var t=e.detail,r=t.source,n=t.chipID,o=t.isSelectable,h=t.isSelected,s=t.shouldRemove,p=this.adapter.getChipIndexById(n);if(s){this.removeChip(p);return}this.focusChip(p,r,c.MDCChipActionFocusBehavior.FOCUSABLE),this.adapter.emitEvent(f.INTERACTION,{chipIndex:p,chipID:n}),o&&this.setSelection(p,r,!h)},i.prototype.handleChipNavigation=function(e){var t=e.detail,r=t.chipID,n=t.key,o=t.isRTL,h=t.source,s=this.adapter.getChipIndexById(r),p=n===C.KEY.ARROW_RIGHT&&!o||n===C.KEY.ARROW_LEFT&&o;if(p){this.focusNextChipFrom(s+1);return}var u=n===C.KEY.ARROW_LEFT&&!o||n===C.KEY.ARROW_RIGHT&&o;if(u){this.focusPrevChipFrom(s-1);return}if(n===C.KEY.ARROW_DOWN){this.focusNextChipFrom(s+1,h);return}if(n===C.KEY.ARROW_UP){this.focusPrevChipFrom(s-1,h);return}if(n===C.KEY.HOME){this.focusNextChipFrom(0,h);return}if(n===C.KEY.END){this.focusPrevChipFrom(this.adapter.getChipCount()-1,h);return}},i.prototype.getSelectedChipIndexes=function(){for(var e,t,r=new Set,n=this.adapter.getChipCount(),o=0;o<n;o++){var h=this.adapter.getChipActionsAtIndex(o);try{for(var s=(e=void 0,d.__values(h)),p=s.next();!p.done;p=s.next()){var u=p.value;this.adapter.isChipSelectedAtIndex(o,u)&&r.add(o)}}catch(l){e={error:l}}finally{try{p&&!p.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}}return r},i.prototype.setChipSelected=function(e,t,r){this.adapter.isChipSelectableAtIndex(e,t)&&this.setSelection(e,t,r)},i.prototype.isChipSelected=function(e,t){return this.adapter.isChipSelectedAtIndex(e,t)},i.prototype.removeChip=function(e){e>=this.adapter.getChipCount()||e<0||(this.adapter.startChipAnimationAtIndex(e,c.MDCChipAnimation.EXIT),this.adapter.emitEvent(f.REMOVAL,{chipID:this.adapter.getChipIdAtIndex(e),chipIndex:e,isComplete:!1}))},i.prototype.addChip=function(e){e>=this.adapter.getChipCount()||e<0||this.adapter.startChipAnimationAtIndex(e,c.MDCChipAnimation.ENTER)},i.prototype.focusNextChipFrom=function(e,t){for(var r=this.adapter.getChipCount(),n=e;n<r;n++){var o=this.getFocusableAction(n,v.INCREMENT,t);if(o){this.focusChip(n,o,c.MDCChipActionFocusBehavior.FOCUSABLE_AND_FOCUSED);return}}},i.prototype.focusPrevChipFrom=function(e,t){for(var r=e;r>-1;r--){var n=this.getFocusableAction(r,v.DECREMENT,t);if(n){this.focusChip(r,n,c.MDCChipActionFocusBehavior.FOCUSABLE_AND_FOCUSED);return}}},i.prototype.getFocusableAction=function(e,t,r){var n=this.adapter.getChipActionsAtIndex(e);return t===v.DECREMENT&&n.reverse(),r?this.getMatchingFocusableAction(e,n,r):this.getFirstFocusableAction(e,n)},i.prototype.getFirstFocusableAction=function(e,t){var r,n;try{for(var o=d.__values(t),h=o.next();!h.done;h=o.next()){var s=h.value;if(this.adapter.isChipFocusableAtIndex(e,s))return s}}catch(p){r={error:p}}finally{try{h&&!h.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null},i.prototype.getMatchingFocusableAction=function(e,t,r){var n,o,h=null;try{for(var s=d.__values(t),p=s.next();!p.done;p=s.next()){var u=p.value;if(this.adapter.isChipFocusableAtIndex(e,u)&&(h=u),h===r)return h}}catch(l){n={error:l}}finally{try{p&&!p.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return h},i.prototype.focusChip=function(e,t,r){var n,o;this.adapter.setChipFocusAtIndex(e,t,r);for(var h=this.adapter.getChipCount(),s=0;s<h;s++){var p=this.adapter.getChipActionsAtIndex(s);try{for(var u=(n=void 0,d.__values(p)),l=u.next();!l.done;l=u.next()){var m=l.value;m===t&&s===e||this.adapter.setChipFocusAtIndex(s,m,c.MDCChipActionFocusBehavior.NOT_FOCUSABLE)}}catch(x){n={error:x}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}}},i.prototype.supportsMultiSelect=function(){return this.adapter.getAttribute(y.ARIA_MULTISELECTABLE)==="true"},i.prototype.setSelection=function(e,t,r){var n,o;if(this.adapter.setChipSelectedAtIndex(e,t,r),this.adapter.emitEvent(f.SELECTION,{chipID:this.adapter.getChipIdAtIndex(e),chipIndex:e,isSelected:r}),!this.supportsMultiSelect())for(var h=this.adapter.getChipCount(),s=0;s<h;s++){var p=this.adapter.getChipActionsAtIndex(s);try{for(var u=(n=void 0,d.__values(p)),l=u.next();!l.done;l=u.next()){var m=l.value;m===t&&s===e||this.adapter.setChipSelectedAtIndex(s,m,!1)}}catch(x){n={error:x}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}}},i.prototype.removeAfterAnimation=function(e,t){this.adapter.removeChipAtIndex(e),this.adapter.emitEvent(f.REMOVAL,{chipIndex:e,isComplete:!0,chipID:t});var r=this.adapter.getChipCount();r<=0||this.focusNearestFocusableAction(e)},i.prototype.focusNearestFocusableAction=function(e){for(var t=this.adapter.getChipCount(),r=e,n=e;r>-1||n<t;){var o=this.getNearestFocusableAction(r,n,c.MDCChipActionType.TRAILING);if(o){this.focusChip(o.index,o.action,c.MDCChipActionFocusBehavior.FOCUSABLE_AND_FOCUSED);return}r--,n++}},i.prototype.getNearestFocusableAction=function(e,t,r){var n=this.getFocusableAction(e,v.DECREMENT,r);if(n)return{index:e,action:n};if(t===e)return null;var o=this.getFocusableAction(t,v.INCREMENT,r);return o?{index:t,action:o}:null},i}(S.MDCFoundation);/**
|
44
44
|
* @license
|
45
45
|
* Copyright 2020 Google Inc.
|
46
46
|
*
|
@@ -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
|
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}(),O=Object.defineProperty,L=Object.getOwnPropertyDescriptor,g=(a,i,e,t)=>{for(var r=t>1?void 0:t?L(i,e):i,n=a.length-1,o;n>=0;n--)(o=a[n])&&(r=(t?o(i,e,r):o(r))||r);return t&&r&&O(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,7 +70,7 @@
|
|
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,
|
74
|
-
`;var
|
75
|
-
${
|
76
|
-
`];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",2);g([E.n({type:Boolean,reflect:!0})],A.prototype,"selectable",2);g([E.n({type:Boolean,reflect:!0})],A.prototype,"multi",2);g([E.n()],A.prototype,"label",2);g([E.n({type:Number})],A.prototype,"activeIndex",2);const _=`.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}
|
74
|
+
`;var w=Object.defineProperty,B=Object.getOwnPropertyDescriptor,P=(a,i,e,t)=>{for(var r=t>1?void 0:t?B(i,e):i,n=a.length-1,o;n>=0;n--)(o=a[n])&&(r=(t?o(i,e,r):o(r))||r);return t&&r&&w(i,e,r),r};exports.CovalentChipSet=class extends A{};exports.CovalentChipSet.styles=[I.i`
|
75
|
+
${I.r(_)}
|
76
|
+
`];exports.CovalentChipSet=P([I.e("cv-chip-set")],exports.CovalentChipSet);const U=exports.CovalentChipSet;exports.default=U;
|
package/chip-set.mjs
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
import { s as M, x as D, i as O, r as L, e as _ } from "./query-assigned-elements-4a39219d.mjs";
|
2
|
-
import { M as E, a as
|
3
|
-
import { _ as
|
2
|
+
import { M as E, a as A, b as T, C as w, c as v } from "./chip-eb043df9.mjs";
|
3
|
+
import { _ as P, a as F, c as I } from "./tslib.es6-226581a4.mjs";
|
4
|
+
import { M as B } from "./foundation-2334d146.mjs";
|
5
|
+
import { K as l } from "./keyboard-983b121c.mjs";
|
4
6
|
import { n as y } from "./property-9b6ea53b.mjs";
|
5
7
|
import { i as U } from "./query-d843aa92.mjs";
|
6
8
|
import "./utils-2932417c.mjs";
|
@@ -69,7 +71,7 @@ var d;
|
|
69
71
|
var $ = (
|
70
72
|
/** @class */
|
71
73
|
function(a) {
|
72
|
-
|
74
|
+
P(i, a);
|
73
75
|
function i(t) {
|
74
76
|
return a.call(this, F(F({}, i.defaultAdapter), t)) || this;
|
75
77
|
}
|
@@ -132,7 +134,7 @@ var $ = (
|
|
132
134
|
this.removeChip(p);
|
133
135
|
return;
|
134
136
|
}
|
135
|
-
this.focusChip(p, r,
|
137
|
+
this.focusChip(p, r, A.FOCUSABLE), this.adapter.emitEvent(f.INTERACTION, {
|
136
138
|
chipIndex: p,
|
137
139
|
chipID: n
|
138
140
|
}), o && this.setSelection(p, r, !h);
|
@@ -199,7 +201,7 @@ var $ = (
|
|
199
201
|
for (var r = this.adapter.getChipCount(), n = t; n < r; n++) {
|
200
202
|
var o = this.getFocusableAction(n, d.INCREMENT, e);
|
201
203
|
if (o) {
|
202
|
-
this.focusChip(n, o,
|
204
|
+
this.focusChip(n, o, A.FOCUSABLE_AND_FOCUSED);
|
203
205
|
return;
|
204
206
|
}
|
205
207
|
}
|
@@ -207,7 +209,7 @@ var $ = (
|
|
207
209
|
for (var r = t; r > -1; r--) {
|
208
210
|
var n = this.getFocusableAction(r, d.DECREMENT, e);
|
209
211
|
if (n) {
|
210
|
-
this.focusChip(r, n,
|
212
|
+
this.focusChip(r, n, A.FOCUSABLE_AND_FOCUSED);
|
211
213
|
return;
|
212
214
|
}
|
213
215
|
}
|
@@ -259,8 +261,8 @@ var $ = (
|
|
259
261
|
var p = this.adapter.getChipActionsAtIndex(s);
|
260
262
|
try {
|
261
263
|
for (var c = (n = void 0, I(p)), u = c.next(); !u.done; u = c.next()) {
|
262
|
-
var
|
263
|
-
|
264
|
+
var m = u.value;
|
265
|
+
m === e && s === t || this.adapter.setChipFocusAtIndex(s, m, A.NOT_FOCUSABLE);
|
264
266
|
}
|
265
267
|
} catch (b) {
|
266
268
|
n = { error: b };
|
@@ -286,8 +288,8 @@ var $ = (
|
|
286
288
|
var p = this.adapter.getChipActionsAtIndex(s);
|
287
289
|
try {
|
288
290
|
for (var c = (n = void 0, I(p)), u = c.next(); !u.done; u = c.next()) {
|
289
|
-
var
|
290
|
-
|
291
|
+
var m = u.value;
|
292
|
+
m === e && s === t || this.adapter.setChipSelectedAtIndex(s, m, !1);
|
291
293
|
}
|
292
294
|
} catch (b) {
|
293
295
|
n = { error: b };
|
@@ -312,7 +314,7 @@ var $ = (
|
|
312
314
|
for (var e = this.adapter.getChipCount(), r = t, n = t; r > -1 || n < e; ) {
|
313
315
|
var o = this.getNearestFocusableAction(r, n, T.TRAILING);
|
314
316
|
if (o) {
|
315
|
-
this.focusChip(o.index, o.action,
|
317
|
+
this.focusChip(o.index, o.action, A.FOCUSABLE_AND_FOCUSED);
|
316
318
|
return;
|
317
319
|
}
|
318
320
|
r--, n++;
|
@@ -332,7 +334,7 @@ var $ = (
|
|
332
334
|
action: o
|
333
335
|
} : null;
|
334
336
|
}, i;
|
335
|
-
}(
|
337
|
+
}(B)
|
336
338
|
);
|
337
339
|
/**
|
338
340
|
* @license
|
@@ -424,7 +426,7 @@ class C extends M {
|
|
424
426
|
firstUpdated(i) {
|
425
427
|
var r;
|
426
428
|
super.firstUpdated(i);
|
427
|
-
const t = (r = this.shadowRoot) == null ? void 0 : r.querySelector("slot"), e = (t == null ? void 0 : t.assignedElements().filter((n) => n instanceof
|
429
|
+
const t = (r = this.shadowRoot) == null ? void 0 : r.querySelector("slot"), e = (t == null ? void 0 : t.assignedElements().filter((n) => n instanceof w)) ?? [];
|
428
430
|
for (let n = 0; n < e.length; n++) {
|
429
431
|
const o = e[n];
|
430
432
|
this.chips.push(o);
|
@@ -525,8 +527,8 @@ x.styles = [
|
|
525
527
|
x = q([
|
526
528
|
_("cv-chip-set")
|
527
529
|
], x);
|
528
|
-
const
|
530
|
+
const ot = x;
|
529
531
|
export {
|
530
532
|
x as CovalentChipSet,
|
531
|
-
|
533
|
+
ot as default
|
532
534
|
};
|
package/chip.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./query-assigned-elements-f623705d.js");const e=require("./chip-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./query-assigned-elements-f623705d.js");const e=require("./chip-21138b58.js");require("./utils-a8190a39.js");require("./tslib.es6-98719205.js");require("./keyboard-39125691.js");require("./foundation-e830bd94.js");require("./property-57f6f6fe.js");require("./query-680f1868.js");require("./class-map-b5efe8da.js");require("./_commonjsHelpers-2367a3a2.js");Object.defineProperty(exports,"CovalentChip",{enumerable:!0,get:()=>e.CovalentChip});exports.default=e.CovalentChip$1;
|
package/chip.mjs
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
import "./query-assigned-elements-4a39219d.mjs";
|
2
|
-
import { C as
|
2
|
+
import { C as l, d as s } from "./chip-eb043df9.mjs";
|
3
3
|
import "./utils-2932417c.mjs";
|
4
4
|
import "./tslib.es6-226581a4.mjs";
|
5
|
+
import "./keyboard-983b121c.mjs";
|
6
|
+
import "./foundation-2334d146.mjs";
|
5
7
|
import "./property-9b6ea53b.mjs";
|
6
8
|
import "./query-d843aa92.mjs";
|
7
9
|
import "./class-map-4b94b017.mjs";
|
8
10
|
import "./_commonjsHelpers-de2741aa.mjs";
|
9
11
|
export {
|
10
|
-
|
11
|
-
|
12
|
+
l as CovalentChip,
|
13
|
+
s as default
|
12
14
|
};
|
@@ -0,0 +1,60 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2016 Google Inc.
|
4
|
+
*
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
10
|
+
* furnished to do so, subject to the following conditions:
|
11
|
+
*
|
12
|
+
* The above copyright notice and this permission notice shall be included in
|
13
|
+
* all copies or substantial portions of the Software.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
* THE SOFTWARE.
|
22
|
+
*/
|
23
|
+
var n = (
|
24
|
+
/** @class */
|
25
|
+
function() {
|
26
|
+
function e(t) {
|
27
|
+
t === void 0 && (t = {}), this.adapter = t;
|
28
|
+
}
|
29
|
+
return Object.defineProperty(e, "cssClasses", {
|
30
|
+
get: function() {
|
31
|
+
return {};
|
32
|
+
},
|
33
|
+
enumerable: !1,
|
34
|
+
configurable: !0
|
35
|
+
}), Object.defineProperty(e, "strings", {
|
36
|
+
get: function() {
|
37
|
+
return {};
|
38
|
+
},
|
39
|
+
enumerable: !1,
|
40
|
+
configurable: !0
|
41
|
+
}), Object.defineProperty(e, "numbers", {
|
42
|
+
get: function() {
|
43
|
+
return {};
|
44
|
+
},
|
45
|
+
enumerable: !1,
|
46
|
+
configurable: !0
|
47
|
+
}), Object.defineProperty(e, "defaultAdapter", {
|
48
|
+
get: function() {
|
49
|
+
return {};
|
50
|
+
},
|
51
|
+
enumerable: !1,
|
52
|
+
configurable: !0
|
53
|
+
}), e.prototype.init = function() {
|
54
|
+
}, e.prototype.destroy = function() {
|
55
|
+
}, e;
|
56
|
+
}()
|
57
|
+
);
|
58
|
+
export {
|
59
|
+
n as M
|
60
|
+
};
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { _ as
|
1
|
+
import { _ as f, a as c } from "./tslib.es6-226581a4.mjs";
|
2
|
+
import { M as m } from "./foundation-2334d146.mjs";
|
2
3
|
/**
|
3
4
|
* @license
|
4
5
|
* Copyright 2020 Google Inc.
|
@@ -25,85 +26,28 @@ var d = {
|
|
25
26
|
CLOSING: "mdc-banner--closing",
|
26
27
|
OPEN: "mdc-banner--open",
|
27
28
|
OPENING: "mdc-banner--opening"
|
28
|
-
},
|
29
|
+
}, u = {
|
29
30
|
BANNER_ANIMATION_CLOSE_TIME_MS: 250,
|
30
31
|
BANNER_ANIMATION_OPEN_TIME_MS: 300
|
31
|
-
},
|
32
|
+
}, C = {
|
32
33
|
CLOSED: "MDCBanner:closed",
|
33
34
|
CLOSING: "MDCBanner:closing",
|
34
35
|
OPENED: "MDCBanner:opened",
|
35
36
|
OPENING: "MDCBanner:opening",
|
36
37
|
ACTION_CLICKED: "MDCBanner:actionClicked"
|
37
|
-
},
|
38
|
+
}, l = {
|
38
39
|
CONTENT: ".mdc-banner__content",
|
39
40
|
PRIMARY_ACTION: ".mdc-banner__primary-action",
|
40
41
|
SECONDARY_ACTION: ".mdc-banner__secondary-action",
|
41
42
|
TEXT: ".mdc-banner__text"
|
42
|
-
},
|
43
|
+
}, a;
|
43
44
|
(function(e) {
|
44
45
|
e[e.PRIMARY = 0] = "PRIMARY", e[e.SECONDARY = 1] = "SECONDARY", e[e.UNSPECIFIED = 2] = "UNSPECIFIED";
|
45
|
-
})(
|
46
|
-
var
|
46
|
+
})(a || (a = {}));
|
47
|
+
var r;
|
47
48
|
(function(e) {
|
48
49
|
e[e.PRIMARY = 0] = "PRIMARY", e[e.SECONDARY = 1] = "SECONDARY", e[e.UNKNOWN = 2] = "UNKNOWN";
|
49
|
-
})(
|
50
|
-
/**
|
51
|
-
* @license
|
52
|
-
* Copyright 2016 Google Inc.
|
53
|
-
*
|
54
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
55
|
-
* of this software and associated documentation files (the "Software"), to deal
|
56
|
-
* in the Software without restriction, including without limitation the rights
|
57
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
58
|
-
* copies of the Software, and to permit persons to whom the Software is
|
59
|
-
* furnished to do so, subject to the following conditions:
|
60
|
-
*
|
61
|
-
* The above copyright notice and this permission notice shall be included in
|
62
|
-
* all copies or substantial portions of the Software.
|
63
|
-
*
|
64
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
65
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
66
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
67
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
68
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
69
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
70
|
-
* THE SOFTWARE.
|
71
|
-
*/
|
72
|
-
var m = (
|
73
|
-
/** @class */
|
74
|
-
function() {
|
75
|
-
function e(t) {
|
76
|
-
t === void 0 && (t = {}), this.adapter = t;
|
77
|
-
}
|
78
|
-
return Object.defineProperty(e, "cssClasses", {
|
79
|
-
get: function() {
|
80
|
-
return {};
|
81
|
-
},
|
82
|
-
enumerable: !1,
|
83
|
-
configurable: !0
|
84
|
-
}), Object.defineProperty(e, "strings", {
|
85
|
-
get: function() {
|
86
|
-
return {};
|
87
|
-
},
|
88
|
-
enumerable: !1,
|
89
|
-
configurable: !0
|
90
|
-
}), Object.defineProperty(e, "numbers", {
|
91
|
-
get: function() {
|
92
|
-
return {};
|
93
|
-
},
|
94
|
-
enumerable: !1,
|
95
|
-
configurable: !0
|
96
|
-
}), Object.defineProperty(e, "defaultAdapter", {
|
97
|
-
get: function() {
|
98
|
-
return {};
|
99
|
-
},
|
100
|
-
enumerable: !1,
|
101
|
-
configurable: !0
|
102
|
-
}), e.prototype.init = function() {
|
103
|
-
}, e.prototype.destroy = function() {
|
104
|
-
}, e;
|
105
|
-
}()
|
106
|
-
);
|
50
|
+
})(r || (r = {}));
|
107
51
|
/**
|
108
52
|
* @license
|
109
53
|
* Copyright 2020 Google Inc.
|
@@ -126,12 +70,12 @@ var m = (
|
|
126
70
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
127
71
|
* THE SOFTWARE.
|
128
72
|
*/
|
129
|
-
var o = d.OPENING,
|
73
|
+
var o = d.OPENING, p = d.OPEN, s = d.CLOSING, O = (
|
130
74
|
/** @class */
|
131
75
|
function(e) {
|
132
|
-
|
76
|
+
f(t, e);
|
133
77
|
function t(n) {
|
134
|
-
var i = e.call(this,
|
78
|
+
var i = e.call(this, c(c({}, t.defaultAdapter), n)) || this;
|
135
79
|
return i.isOpened = !1, i.animationFrame = 0, i.animationTimer = 0, i;
|
136
80
|
}
|
137
81
|
return Object.defineProperty(t, "defaultAdapter", {
|
@@ -171,21 +115,21 @@ var o = d.OPENING, f = d.OPEN, s = d.CLOSING, C = (
|
|
171
115
|
this.isOpened = !0, this.adapter.removeClass(s), this.adapter.addClass(o), this.adapter.notifyOpening();
|
172
116
|
var i = this.adapter.getContentHeight();
|
173
117
|
this.animationFrame = requestAnimationFrame(function() {
|
174
|
-
n.adapter.addClass(
|
118
|
+
n.adapter.addClass(p), n.adapter.setStyleProperty("height", i + "px"), n.animationTimer = setTimeout(function() {
|
175
119
|
n.handleAnimationTimerEnd(), n.adapter.trapFocus(), n.adapter.notifyOpened();
|
176
|
-
},
|
120
|
+
}, u.BANNER_ANIMATION_OPEN_TIME_MS);
|
177
121
|
});
|
178
122
|
}, t.prototype.close = function(n) {
|
179
123
|
var i = this;
|
180
|
-
this.isOpened && (cancelAnimationFrame(this.animationFrame), this.animationFrame = 0, this.isOpened = !1, this.adapter.notifyClosing(n), this.adapter.addClass(s), this.adapter.setStyleProperty("height", "0"), this.adapter.removeClass(
|
124
|
+
this.isOpened && (cancelAnimationFrame(this.animationFrame), this.animationFrame = 0, this.isOpened = !1, this.adapter.notifyClosing(n), this.adapter.addClass(s), this.adapter.setStyleProperty("height", "0"), this.adapter.removeClass(p), this.adapter.removeClass(o), clearTimeout(this.animationTimer), this.animationTimer = setTimeout(function() {
|
181
125
|
i.adapter.releaseFocus(), i.handleAnimationTimerEnd(), i.adapter.notifyClosed(n);
|
182
|
-
},
|
126
|
+
}, u.BANNER_ANIMATION_CLOSE_TIME_MS));
|
183
127
|
}, t.prototype.isOpen = function() {
|
184
128
|
return this.isOpened;
|
185
129
|
}, t.prototype.handlePrimaryActionClick = function(n) {
|
186
|
-
n === void 0 && (n = !1), n ? this.adapter.notifyActionClicked(
|
130
|
+
n === void 0 && (n = !1), n ? this.adapter.notifyActionClicked(r.PRIMARY) : this.close(a.PRIMARY);
|
187
131
|
}, t.prototype.handleSecondaryActionClick = function(n) {
|
188
|
-
n === void 0 && (n = !1), n ? this.adapter.notifyActionClicked(
|
132
|
+
n === void 0 && (n = !1), n ? this.adapter.notifyActionClicked(r.SECONDARY) : this.close(a.SECONDARY);
|
189
133
|
}, t.prototype.layout = function() {
|
190
134
|
var n = this.adapter.getContentHeight();
|
191
135
|
this.adapter.setStyleProperty("height", n + "px");
|
@@ -195,8 +139,8 @@ var o = d.OPENING, f = d.OPEN, s = d.CLOSING, C = (
|
|
195
139
|
}(m)
|
196
140
|
);
|
197
141
|
export {
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
142
|
+
a as C,
|
143
|
+
O as M,
|
144
|
+
C as e,
|
145
|
+
l as s
|
202
146
|
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2016 Google Inc.
|
4
|
+
*
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
10
|
+
* furnished to do so, subject to the following conditions:
|
11
|
+
*
|
12
|
+
* The above copyright notice and this permission notice shall be included in
|
13
|
+
* all copies or substantial portions of the Software.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
* THE SOFTWARE.
|
22
|
+
*/var n=function(){function e(t){t===void 0&&(t={}),this.adapter=t}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}();exports.MDCFoundation=n;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const
|
1
|
+
"use strict";const r=require("./tslib.es6-98719205.js"),f=require("./foundation-e830bd94.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2020 Google Inc.
|
4
4
|
*
|
@@ -19,28 +19,7 @@
|
|
19
19
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
20
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
21
|
* THE SOFTWARE.
|
22
|
-
*/var d={CLOSING:"mdc-banner--closing",OPEN:"mdc-banner--open",OPENING:"mdc-banner--opening"},
|
23
|
-
* @license
|
24
|
-
* Copyright 2016 Google Inc.
|
25
|
-
*
|
26
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
27
|
-
* of this software and associated documentation files (the "Software"), to deal
|
28
|
-
* in the Software without restriction, including without limitation the rights
|
29
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
30
|
-
* copies of the Software, and to permit persons to whom the Software is
|
31
|
-
* furnished to do so, subject to the following conditions:
|
32
|
-
*
|
33
|
-
* The above copyright notice and this permission notice shall be included in
|
34
|
-
* all copies or substantial portions of the Software.
|
35
|
-
*
|
36
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
37
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
38
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
39
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
40
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
41
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
42
|
-
* THE SOFTWARE.
|
43
|
-
*/var l=function(){function e(t){t===void 0&&(t={}),this.adapter=t}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}();/**
|
22
|
+
*/var d={CLOSING:"mdc-banner--closing",OPEN:"mdc-banner--open",OPENING:"mdc-banner--opening"},c={BANNER_ANIMATION_CLOSE_TIME_MS:250,BANNER_ANIMATION_OPEN_TIME_MS:300},p={CLOSED:"MDCBanner:closed",CLOSING:"MDCBanner:closing",OPENED:"MDCBanner:opened",OPENING:"MDCBanner:opening",ACTION_CLICKED:"MDCBanner:actionClicked"},m={CONTENT:".mdc-banner__content",PRIMARY_ACTION:".mdc-banner__primary-action",SECONDARY_ACTION:".mdc-banner__secondary-action",TEXT:".mdc-banner__text"};exports.CloseReason=void 0;(function(e){e[e.PRIMARY=0]="PRIMARY",e[e.SECONDARY=1]="SECONDARY",e[e.UNSPECIFIED=2]="UNSPECIFIED"})(exports.CloseReason||(exports.CloseReason={}));var a;(function(e){e[e.PRIMARY=0]="PRIMARY",e[e.SECONDARY=1]="SECONDARY",e[e.UNKNOWN=2]="UNKNOWN"})(a||(a={}));/**
|
44
23
|
* @license
|
45
24
|
* Copyright 2020 Google Inc.
|
46
25
|
*
|
@@ -61,4 +40,4 @@
|
|
61
40
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
62
41
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
63
42
|
* THE SOFTWARE.
|
64
|
-
*/var o=d.OPENING,
|
43
|
+
*/var o=d.OPENING,u=d.OPEN,s=d.CLOSING,h=function(e){r.__extends(t,e);function t(n){var i=e.call(this,r.__assign(r.__assign({},t.defaultAdapter),n))||this;return i.isOpened=!1,i.animationFrame=0,i.animationTimer=0,i}return Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},getContentHeight:function(){return 0},notifyClosed:function(){},notifyClosing:function(){},notifyOpened:function(){},notifyOpening:function(){},notifyActionClicked:function(){},releaseFocus:function(){},removeClass:function(){},setStyleProperty:function(){},trapFocus:function(){}}},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){cancelAnimationFrame(this.animationFrame),this.animationFrame=0,clearTimeout(this.animationTimer),this.animationTimer=0},t.prototype.open=function(){var n=this;this.isOpened=!0,this.adapter.removeClass(s),this.adapter.addClass(o),this.adapter.notifyOpening();var i=this.adapter.getContentHeight();this.animationFrame=requestAnimationFrame(function(){n.adapter.addClass(u),n.adapter.setStyleProperty("height",i+"px"),n.animationTimer=setTimeout(function(){n.handleAnimationTimerEnd(),n.adapter.trapFocus(),n.adapter.notifyOpened()},c.BANNER_ANIMATION_OPEN_TIME_MS)})},t.prototype.close=function(n){var i=this;this.isOpened&&(cancelAnimationFrame(this.animationFrame),this.animationFrame=0,this.isOpened=!1,this.adapter.notifyClosing(n),this.adapter.addClass(s),this.adapter.setStyleProperty("height","0"),this.adapter.removeClass(u),this.adapter.removeClass(o),clearTimeout(this.animationTimer),this.animationTimer=setTimeout(function(){i.adapter.releaseFocus(),i.handleAnimationTimerEnd(),i.adapter.notifyClosed(n)},c.BANNER_ANIMATION_CLOSE_TIME_MS))},t.prototype.isOpen=function(){return this.isOpened},t.prototype.handlePrimaryActionClick=function(n){n===void 0&&(n=!1),n?this.adapter.notifyActionClicked(a.PRIMARY):this.close(exports.CloseReason.PRIMARY)},t.prototype.handleSecondaryActionClick=function(n){n===void 0&&(n=!1),n?this.adapter.notifyActionClicked(a.SECONDARY):this.close(exports.CloseReason.SECONDARY)},t.prototype.layout=function(){var n=this.adapter.getContentHeight();this.adapter.setStyleProperty("height",n+"px")},t.prototype.handleAnimationTimerEnd=function(){this.animationTimer=0,this.adapter.removeClass(o),this.adapter.removeClass(s)},t}(f.MDCFoundation);exports.MDCBannerFoundation=h;exports.events=p;exports.selectors=m;
|
package/index.d.ts
CHANGED
@@ -11,6 +11,9 @@ export * from './code-snippet/code-snippet';
|
|
11
11
|
export * from './dialog/dialog';
|
12
12
|
export * from './drawer/drawer';
|
13
13
|
export * from './empty-state/empty-state';
|
14
|
+
export * from './expansion-panel/expansion-panel';
|
15
|
+
export * from './expansion-panel/expansion-panel-item';
|
16
|
+
export * from './formfield/formfield';
|
14
17
|
export * from './icon/icon';
|
15
18
|
export * from './icon-button/icon-button';
|
16
19
|
export * from './icon-checkbox/icon-check-toggle';
|
@@ -43,5 +46,5 @@ export * from './top-app-bar/top-app-bar-fixed';
|
|
43
46
|
export * from './tree-list/tree-list';
|
44
47
|
export * from './tree-list/tree-list-item';
|
45
48
|
export * from './typography/typography';
|
46
|
-
import '
|
49
|
+
import './index.scss';
|
47
50
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../libs/components/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AAExC,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../libs/components/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AAExC,OAAO,cAAc,CAAC"}
|
package/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./action-ribbon.js"),t=require("./alert.js"),r=require("./app-shell.js"),n=require("./button.js"),o=require("./checkbox.js"),a=require("./card.js"),i=require("./chip-
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./action-ribbon.js"),t=require("./alert.js"),r=require("./app-shell.js"),n=require("./button.js"),o=require("./checkbox.js"),a=require("./card.js"),i=require("./chip-21138b58.js"),u=require("./chip-set.js"),l=require("./circular-progress.js"),c=require("./code-snippet.js"),b=require("./dialog-82b03745.js"),C=require("./drawer.js"),p=require("./empty-state.js"),s=require("./expansion-panel.js"),v=require("./expansion-panel-item.js"),d=require("./formfield.js"),q=require("./icon.js"),g=require("./icon-button.js"),m=require("./icon-check-toggle.js"),P=require("./icon-radio-toggle.js"),y=require("./linear-progress.js"),f=require("./check-list-item.js"),j=require("./list.js"),O=require("./list-item.js"),S=require("./nav-list-item.js"),T=require("./radio-list-item.js"),I=require("./menu.js"),h=require("./radio.js"),L=require("./select.js"),x=require("./side-sheet.js"),k=require("./slider.js"),R=require("./slider-range.js"),A=require("./snackbar.js"),B=require("./status-header.js"),F=require("./status-header-item.js"),w=require("./switch.js"),E=require("./tab.js"),H=require("./tab-bar.js"),D=require("./textarea.js"),M=require("./textfield.js"),N=require("./text-lockup.js"),_=require("./toolbar.js"),z=require("./tooltip.js"),G=require("./top-app-bar.js"),J=require("./top-app-bar-fixed.js"),K=require("./tree-list.js"),Q=require("./tree-list-item.js"),U=require("./typography.js");require("./query-assigned-elements-f623705d.js");require("./utils-a8190a39.js");require("./observer-a096ab43.js");require("./foundation-e980aa3d.js");require("./tslib.es6-98719205.js");require("./foundation-e830bd94.js");require("./class-map-b5efe8da.js");require("./property-57f6f6fe.js");require("./query-680f1868.js");require("./mwc-drawer-base-798b11f8.js");require("./inert.esm-2cee6f2e.js");require("./base-element-58a3f9ea.js");require("./mwc-icon-f87639bc.js");require("./ripple-handlers-5d5b21db.js");require("./state-0974a8e5.js");require("./style-map-88d2563f.js");require("./aria-property-849c8816.js");require("./event-options-3f5eb195.js");require("./if-defined-f1c45245.js");require("./mwc-checkbox-base-3d8c9549.js");require("./form-element-c553d6f5.js");require("./mwc-checkbox.css-b3434429.js");require("./keyboard-39125691.js");require("./_commonjsHelpers-2367a3a2.js");require("./query-assigned-nodes-99eae71d.js");require("./mwc-radio-base-913e02e2.js");require("./mwc-radio.css-4e140252.js");require("./mwc-list-item-base-297d86b0.js");require("./list-item-de5f96d8.js");require("./mwc-list-base-400b00e2.js");require("./mwc-menu-base-c75ca473.js");require("./mwc-line-ripple-directive-a6b39a3c.js");require("./mwc-slider.css-c7107d94.js");require("./directive-helpers-0ce1f995.js");require("./mwc-tab-base-f28722aa.js");require("./textfield-11525c88.js");require("./mwc-top-app-bar-base-aec60f27.js");require("./top-app-bar-a531c1b4.js");Object.defineProperty(exports,"CovalentActionRibbon",{enumerable:!0,get:()=>e.CovalentActionRibbon});Object.defineProperty(exports,"CovalentAlert",{enumerable:!0,get:()=>t.CovalentAlert});Object.defineProperty(exports,"CovalentAppShell",{enumerable:!0,get:()=>r.CovalentAppShell});Object.defineProperty(exports,"CovalentButton",{enumerable:!0,get:()=>n.CovalentButton});Object.defineProperty(exports,"CovalentCheckbox",{enumerable:!0,get:()=>o.CovalentCheckbox});Object.defineProperty(exports,"CovalentCard",{enumerable:!0,get:()=>a.CovalentCard});Object.defineProperty(exports,"CovalentChip",{enumerable:!0,get:()=>i.CovalentChip});Object.defineProperty(exports,"CovalentChipSet",{enumerable:!0,get:()=>u.CovalentChipSet});Object.defineProperty(exports,"CovalentCircularProgress",{enumerable:!0,get:()=>l.CovalentCircularProgress});Object.defineProperty(exports,"CovalentCodeSnippet",{enumerable:!0,get:()=>c.CovalentCodeSnippet});Object.defineProperty(exports,"CovalentDialog",{enumerable:!0,get:()=>b.CovalentDialog});Object.defineProperty(exports,"CovalentDrawer",{enumerable:!0,get:()=>C.CovalentDrawer});Object.defineProperty(exports,"CovalentEmptyState",{enumerable:!0,get:()=>p.CovalentEmptyState});Object.defineProperty(exports,"CovalentExpansionPanel",{enumerable:!0,get:()=>s.CovalentExpansionPanel});Object.defineProperty(exports,"CovalentExpansionPanelItem",{enumerable:!0,get:()=>v.CovalentExpansionPanelItem});Object.defineProperty(exports,"CovalentFormfield",{enumerable:!0,get:()=>d.CovalentFormfield});Object.defineProperty(exports,"CovalentIcon",{enumerable:!0,get:()=>q.CovalentIcon});Object.defineProperty(exports,"CovalentIconButton",{enumerable:!0,get:()=>g.CovalentIconButton});Object.defineProperty(exports,"CovalentIconCheckToggle",{enumerable:!0,get:()=>m.CovalentIconCheckToggle});Object.defineProperty(exports,"CovalentIconRadioToggle",{enumerable:!0,get:()=>P.CovalentIconRadioToggle});Object.defineProperty(exports,"CovalentLinearProgress",{enumerable:!0,get:()=>y.CovalentLinearProgress});Object.defineProperty(exports,"CovalentCheckListItem",{enumerable:!0,get:()=>f.CovalentCheckListItem});Object.defineProperty(exports,"CovalentList",{enumerable:!0,get:()=>j.CovalentList});Object.defineProperty(exports,"CovalentListItem",{enumerable:!0,get:()=>O.CovalentListItem});Object.defineProperty(exports,"CovalentNavRailListItem",{enumerable:!0,get:()=>S.CovalentNavRailListItem});Object.defineProperty(exports,"CovalentRadioListItem",{enumerable:!0,get:()=>T.CovalentRadioListItem});Object.defineProperty(exports,"CovalentMenu",{enumerable:!0,get:()=>I.CovalentMenu});Object.defineProperty(exports,"CovalentRadio",{enumerable:!0,get:()=>h.CovalentRadio});Object.defineProperty(exports,"CovalentSelect",{enumerable:!0,get:()=>L.CovalentSelect});Object.defineProperty(exports,"CovalentSideSheet",{enumerable:!0,get:()=>x.CovalentSideSheet});Object.defineProperty(exports,"CovalentSlider",{enumerable:!0,get:()=>k.CovalentSlider});Object.defineProperty(exports,"CovalentSliderRange",{enumerable:!0,get:()=>R.CovalentSliderRange});Object.defineProperty(exports,"CovalentSnackbar",{enumerable:!0,get:()=>A.CovalentSnackbar});Object.defineProperty(exports,"CovalentStatusHeader",{enumerable:!0,get:()=>B.CovalentStatusHeader});Object.defineProperty(exports,"CovalentStatusHeaderItem",{enumerable:!0,get:()=>F.CovalentStatusHeaderItem});Object.defineProperty(exports,"CovalentSwitch",{enumerable:!0,get:()=>w.CovalentSwitch});Object.defineProperty(exports,"CovalentTab",{enumerable:!0,get:()=>E.CovalentTab});Object.defineProperty(exports,"CovalentTabBar",{enumerable:!0,get:()=>H.CovalentTabBar});Object.defineProperty(exports,"CovalentTextArea",{enumerable:!0,get:()=>D.CovalentTextArea});Object.defineProperty(exports,"CovalentTextField",{enumerable:!0,get:()=>M.CovalentTextField});Object.defineProperty(exports,"CovalentTextLockup",{enumerable:!0,get:()=>N.CovalentTextLockup});Object.defineProperty(exports,"CovalentToolbar",{enumerable:!0,get:()=>_.CovalentToolbar});Object.defineProperty(exports,"CovalentTooltip",{enumerable:!0,get:()=>z.CovalentTooltip});Object.defineProperty(exports,"CovalentTopAppBar",{enumerable:!0,get:()=>G.CovalentTopAppBar});Object.defineProperty(exports,"CovalentTopAppBarFixed",{enumerable:!0,get:()=>J.CovalentTopAppBarFixed});Object.defineProperty(exports,"CovalentTreeList",{enumerable:!0,get:()=>K.CovalentTreeList});Object.defineProperty(exports,"CovalentTreeListItem",{enumerable:!0,get:()=>Q.CovalentTreeListItem});Object.defineProperty(exports,"CovalentTypography",{enumerable:!0,get:()=>U.CovalentTypography});
|