@covalent/components 6.2.1 → 6.2.3
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 +6 -6
- package/action-ribbon.mjs +35 -30
- package/alert.js +6 -6
- package/alert.mjs +19 -14
- package/app-shell.js +8 -8
- package/app-shell.mjs +12 -6
- package/aria-property-fa2717fe.mjs +41 -0
- package/base-element-c3dc926e.mjs +28 -0
- package/base-element-d5abe37a.js +5 -0
- package/button.js +9 -9
- package/button.mjs +25 -16
- package/card.js +8 -8
- package/card.mjs +17 -15
- package/check-list-item.js +9 -9
- package/check-list-item.mjs +26 -17
- package/checkbox.js +2 -2
- package/checkbox.mjs +29 -20
- package/circular-progress.js +29 -29
- package/circular-progress.mjs +14 -10
- package/class-map-08c84aeb.mjs +62 -0
- package/class-map-50b8edb4.js +9 -0
- package/code-snippet.js +9 -9
- package/code-snippet.mjs +10 -7
- package/{dialog2.mjs → dialog-85c21333.mjs} +56 -50
- package/dialog-8ee07177.js +162 -0
- package/dialog.js +1 -1
- package/dialog.mjs +14 -162
- package/directive-helpers-725a181d.mjs +11 -0
- package/directive-helpers-fce8cf91.js +5 -0
- package/drawer.js +3 -3
- package/drawer.mjs +15 -9
- package/empty-state.js +5 -5
- package/empty-state.mjs +6 -4
- package/event-options-3937d997.mjs +14 -0
- package/event-options-7bc382d8.js +5 -0
- package/form-element-6dbd7afa.mjs +50 -0
- package/{form-element.mjs → form-element-d4e7bcdb.js} +2 -2
- package/foundation-2334d146.mjs +60 -0
- package/{foundation.mjs → foundation-3f55a9dc.js} +3 -3
- package/foundation-c580100a.mjs +152 -0
- package/icon-button.js +8 -8
- package/icon-button.mjs +25 -16
- package/icon-check-toggle.js +9 -9
- package/icon-check-toggle.mjs +20 -11
- package/icon-radio-toggle.js +5 -5
- package/icon-radio-toggle.mjs +34 -25
- package/icon.js +2 -2
- package/icon.mjs +9 -8
- package/if-defined-639ed018.mjs +10 -0
- package/if-defined-cb12d481.js +5 -0
- package/index.js +1 -1
- package/index.mjs +124 -114
- package/inert.esm-359d4581.mjs +640 -0
- package/linear-progress.js +12 -12
- package/linear-progress.mjs +23 -17
- package/{list2.mjs → list-d616957b.mjs} +7 -6
- package/list-defdaa3b.js +5 -0
- package/list-expansion.js +8 -8
- package/list-expansion.mjs +43 -34
- package/list-item-3fa66f09.js +9 -0
- package/list-item-d5c05e10.mjs +44 -0
- package/list-item.js +1 -1
- package/list-item.mjs +18 -9
- package/list.js +1 -1
- package/list.mjs +20 -5
- package/menu.js +2 -2
- package/menu.mjs +29 -20
- package/mwc-checkbox-base-10e977f2.mjs +198 -0
- package/{mwc-checkbox-base.mjs → mwc-checkbox-base-435c1f1d.js} +6 -6
- package/mwc-checkbox.css-956e3d6c.js +5 -0
- package/mwc-checkbox.css-b7abc7fd.mjs +10 -0
- package/mwc-drawer-base-b2b772c3.mjs +335 -0
- package/{mwc-drawer-base.mjs → mwc-drawer-base-f44fcf34.js} +11 -11
- package/mwc-icon-b96fb867.js +9 -0
- package/mwc-icon-c7013880.mjs +26 -0
- package/{mwc-line-ripple-directive.mjs → mwc-line-ripple-directive-a97ce725.js} +16 -16
- package/mwc-line-ripple-directive-c3e1f04a.mjs +653 -0
- package/mwc-list-base-7d5f7278.js +111 -0
- package/mwc-list-base-c0f8af1c.mjs +840 -0
- package/mwc-list-item-base-803b9771.js +28 -0
- package/mwc-list-item-base-acef0223.mjs +202 -0
- package/mwc-list-item.css-401e2407.js +9 -0
- package/mwc-list-item.css-b5481d96.mjs +17 -0
- package/mwc-menu-base-8970b43d.mjs +1145 -0
- package/{mwc-menu-base.mjs → mwc-menu-base-ac49fe54.js} +20 -20
- package/{mwc-radio-base.mjs → mwc-radio-base-442d495a.js} +11 -11
- package/mwc-radio-base-c29e6f42.mjs +528 -0
- package/mwc-radio.css-388ad26d.js +5 -0
- package/mwc-radio.css-4694aa9c.mjs +10 -0
- package/mwc-slider.css-336f809b.mjs +956 -0
- package/{mwc-slider.css.mjs → mwc-slider.css-48f02f1e.js} +20 -20
- package/{mwc-tab-base.mjs → mwc-tab-base-1a19b299.js} +22 -22
- package/mwc-tab-base-7fb3d339.mjs +694 -0
- package/{mwc-top-app-bar-base.mjs → mwc-top-app-bar-base-14e0a018.js} +10 -10
- package/mwc-top-app-bar-base-79c87e69.mjs +380 -0
- package/nav-list-item.js +10 -10
- package/nav-list-item.mjs +36 -28
- package/{observer.mjs → observer-a096ab43.js} +1 -1
- package/observer-be7b92e2.mjs +32 -0
- package/package.json +1 -1
- package/property-074570d1.js +5 -0
- package/property-ca27685b.mjs +20 -0
- package/query-1e7846ea.mjs +25 -0
- package/query-2ba749b7.js +5 -0
- package/query-assigned-elements-07e38f46.js +33 -0
- package/query-assigned-elements-514e5265.mjs +615 -0
- package/query-assigned-nodes-9ec0fa5f.js +5 -0
- package/query-assigned-nodes-bea12e0c.mjs +17 -0
- package/radio-list-item.js +10 -10
- package/radio-list-item.mjs +33 -24
- package/radio.js +2 -2
- package/radio.mjs +28 -19
- package/ripple-handlers-2176f137.js +107 -0
- package/ripple-handlers-227497d3.mjs +761 -0
- package/select.js +28 -28
- package/select.mjs +31 -21
- package/side-sheet.js +4 -4
- package/side-sheet.mjs +14 -8
- package/slider-range.js +7 -7
- package/slider-range.mjs +72 -64
- package/slider.js +3 -3
- package/slider.mjs +29 -21
- package/snackbar.js +15 -15
- package/snackbar.mjs +27 -21
- package/state-6f7e570d.mjs +12 -0
- package/state-949232e6.js +5 -0
- package/status-header-item.js +4 -4
- package/status-header-item.mjs +14 -13
- package/status-header.js +6 -6
- package/status-header.mjs +9 -7
- package/style-map-2cb0fb63.mjs +40 -0
- package/style-map-3056a771.js +5 -0
- package/switch.js +18 -18
- package/switch.mjs +31 -22
- package/tab-bar.js +21 -21
- package/tab-bar.mjs +23 -14
- package/tab.js +3 -3
- package/tab.mjs +15 -6
- package/text-lockup.js +5 -5
- package/text-lockup.mjs +8 -6
- package/textarea.js +14 -14
- package/textarea.mjs +28 -20
- package/{textfield2.mjs → textfield-276b0ded.mjs} +28 -21
- package/textfield-507c6a06.js +133 -0
- package/textfield.js +3 -3
- package/textfield.mjs +41 -132
- package/toolbar.js +3 -3
- package/toolbar.mjs +10 -4
- package/tooltip.js +12 -12
- package/tooltip.mjs +13 -9
- package/top-app-bar-34e85527.js +6 -0
- package/{top-app-bar2.mjs → top-app-bar-a236c3bc.mjs} +1 -1
- package/top-app-bar-fixed.js +5 -5
- package/top-app-bar-fixed.mjs +29 -23
- package/top-app-bar.js +3 -3
- package/top-app-bar.mjs +30 -6
- package/tree-list-item.js +8 -8
- package/tree-list-item.mjs +5 -3
- package/tree-list.js +3 -3
- package/tree-list.mjs +4 -4
- package/tslib.es6-6b53b818.js +1 -0
- package/tslib.es6-b5e819a6.mjs +82 -0
- package/typography.js +4 -4
- package/typography.mjs +12 -11
- package/utils-a8190a39.js +5 -0
- package/utils-dc65fdc9.mjs +52 -0
- package/directive-helpers.mjs +0 -5
- package/if-defined.mjs +0 -5
- package/list-item2.mjs +0 -43
- package/mwc-checkbox.css.mjs +0 -5
- package/mwc-icon.mjs +0 -9
- package/mwc-list-base.mjs +0 -111
- package/mwc-list-item-base.mjs +0 -28
- package/mwc-list-item.css.mjs +0 -9
- package/mwc-radio.css.mjs +0 -5
- package/mwc-ripple.mjs +0 -175
- package/ripple-handlers.mjs +0 -5
- /package/{aria-property.mjs → aria-property-849c8816.js} +0 -0
- /package/{foundation2.mjs → foundation-e830bd94.js} +0 -0
- /package/{inert.esm.mjs → inert.esm-2cee6f2e.js} +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const
|
1
|
+
"use strict";const r=require("./tslib.es6-6b53b818.js");require("./inert.esm-2cee6f2e.js");const E=require("./base-element-d5abe37a.js"),O=require("./observer-a096ab43.js"),c=require("./query-assigned-elements-07e38f46.js"),l=require("./property-074570d1.js"),f=require("./query-2ba749b7.js"),b=require("./class-map-50b8edb4.js"),F=require("./utils-a8190a39.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 s={ANIMATE:"mdc-drawer--animate",CLOSING:"mdc-drawer--closing",DISMISSIBLE:"mdc-drawer--dismissible",MODAL:"mdc-drawer--modal",OPEN:"mdc-drawer--open",OPENING:"mdc-drawer--opening",ROOT:"mdc-drawer"},
|
22
|
+
*/var s={ANIMATE:"mdc-drawer--animate",CLOSING:"mdc-drawer--closing",DISMISSIBLE:"mdc-drawer--dismissible",MODAL:"mdc-drawer--modal",OPEN:"mdc-drawer--open",OPENING:"mdc-drawer--opening",ROOT:"mdc-drawer"},u={APP_CONTENT_SELECTOR:".mdc-drawer-app-content",CLOSE_EVENT:"MDCDrawer:closed",OPEN_EVENT:"MDCDrawer:opened",SCRIM_SELECTOR:".mdc-drawer-scrim",LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",LIST_ITEM_ACTIVATED_SELECTOR:".mdc-list-item--activated,.mdc-deprecated-list-item--activated"};/**
|
23
23
|
* @license
|
24
24
|
* Copyright 2016 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 _=function(){function n(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(n,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),n.prototype.init=function(){},n.prototype.destroy=function(){},n}();/**
|
44
44
|
* @license
|
45
45
|
* Copyright 2018 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 h=function(n){r.__extends(e,n);function e(t){var i=n.call(this,r.__assign(r.__assign({},e.defaultAdapter),t))||this;return i.animationFrame=0,i.animationTimer=0,i}return Object.defineProperty(e,"strings",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},elementHasClass:function(){return!1},notifyClose:function(){},notifyOpen:function(){},saveFocus:function(){},restoreFocus:function(){},focusActiveNavigationItem:function(){},trapFocus:function(){},releaseFocus:function(){}}},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.animationFrame&&cancelAnimationFrame(this.animationFrame),this.animationTimer&&clearTimeout(this.animationTimer)},e.prototype.open=function(){var t=this;this.isOpen()||this.isOpening()||this.isClosing()||(this.adapter.addClass(s.OPEN),this.adapter.addClass(s.ANIMATE),this.runNextAnimationFrame(function(){t.adapter.addClass(s.OPENING)}),this.adapter.saveFocus())},e.prototype.close=function(){!this.isOpen()||this.isOpening()||this.isClosing()||this.adapter.addClass(s.CLOSING)},e.prototype.isOpen=function(){return this.adapter.hasClass(s.OPEN)},e.prototype.isOpening=function(){return this.adapter.hasClass(s.OPENING)||this.adapter.hasClass(s.ANIMATE)},e.prototype.isClosing=function(){return this.adapter.hasClass(s.CLOSING)},e.prototype.handleKeydown=function(t){var i=t.keyCode,o=t.key,d=o==="Escape"||i===27;d&&this.close()},e.prototype.handleTransitionEnd=function(t){var i=s.OPENING,o=s.CLOSING,d=s.OPEN,C=s.ANIMATE,y=s.ROOT,v=this.isElement(t.target)&&this.adapter.elementHasClass(t.target,y);v&&(this.isClosing()?(this.adapter.removeClass(d),this.closed(),this.adapter.restoreFocus(),this.adapter.notifyClose()):(this.adapter.focusActiveNavigationItem(),this.opened(),this.adapter.notifyOpen()),this.adapter.removeClass(C),this.adapter.removeClass(i),this.adapter.removeClass(o))},e.prototype.opened=function(){},e.prototype.closed=function(){},e.prototype.runNextAnimationFrame=function(t){var i=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame(function(){i.animationFrame=0,clearTimeout(i.animationTimer),i.animationTimer=setTimeout(t,0)})},e.prototype.isElement=function(t){return Boolean(t.classList)},e}(_);const g=h;/**
|
65
65
|
* @license
|
66
66
|
* Copyright 2018 Google Inc.
|
67
67
|
*
|
@@ -82,24 +82,24 @@
|
|
82
82
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
83
83
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
84
84
|
* THE SOFTWARE.
|
85
|
-
*/var
|
85
|
+
*/var N=function(n){r.__extends(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.handleScrimClick=function(){this.close()},e.prototype.opened=function(){this.adapter.trapFocus()},e.prototype.closed=function(){this.adapter.releaseFocus()},e}(h);const p=N;/**
|
86
86
|
* @license
|
87
87
|
* Copyright 2018 Google LLC
|
88
88
|
* SPDX-License-Identifier: Apache-2.0
|
89
|
-
*/const
|
89
|
+
*/const m=document.$blockingElements;class a extends E.BaseElement{constructor(){super(...arguments),this._previousFocus=null,this.open=!1,this.hasHeader=!1,this.type=""}get mdcFoundationClass(){return this.type==="modal"?p:g}createAdapter(){return Object.assign(Object.assign({},F.addHasRemoveClass(this.mdcRoot)),{elementHasClass:(e,t)=>e.classList.contains(t),saveFocus:()=>{this._previousFocus=this.getRootNode().activeElement},restoreFocus:()=>{this._previousFocus&&this._previousFocus.focus&&this._previousFocus.focus()},notifyClose:()=>{this.open=!1,this.dispatchEvent(new Event(u.CLOSE_EVENT,{bubbles:!0,cancelable:!0}))},notifyOpen:()=>{this.open=!0,this.dispatchEvent(new Event(u.OPEN_EVENT,{bubbles:!0,cancelable:!0}))},focusActiveNavigationItem:()=>{},trapFocus:()=>{m.push(this),this.appContent.inert=!0},releaseFocus:()=>{m.remove(this),this.appContent.inert=!1}})}_handleScrimClick(){this.mdcFoundation instanceof p&&this.mdcFoundation.handleScrimClick()}render(){const e=this.type==="dismissible"||this.type==="modal",t=this.type==="modal",i=this.hasHeader?c.y`
|
90
90
|
<div class="mdc-drawer__header">
|
91
91
|
<h3 class="mdc-drawer__title"><slot name="title"></slot></h3>
|
92
92
|
<h6 class="mdc-drawer__subtitle"><slot name="subtitle"></slot></h6>
|
93
93
|
<slot name="header"></slot>
|
94
94
|
</div>
|
95
|
-
`:"",o={"mdc-drawer--dismissible":e,"mdc-drawer--modal":
|
96
|
-
<aside class="mdc-drawer ${
|
97
|
-
${
|
95
|
+
`:"",o={"mdc-drawer--dismissible":e,"mdc-drawer--modal":t};return c.y`
|
96
|
+
<aside class="mdc-drawer ${b.o(o)}">
|
97
|
+
${i}
|
98
98
|
<div class="mdc-drawer__content"><slot></slot></div>
|
99
99
|
</aside>
|
100
|
-
${
|
100
|
+
${t?c.y`<div class="mdc-drawer-scrim"
|
101
101
|
@click="${this._handleScrimClick}"></div>`:""}
|
102
102
|
<div class="mdc-drawer-app-content">
|
103
103
|
<slot name="appContent"></slot>
|
104
104
|
</div>
|
105
|
-
`}firstUpdated(){this.mdcRoot.addEventListener("keydown",e=>this.mdcFoundation.handleKeydown(e)),this.mdcRoot.addEventListener("transitionend",e=>this.mdcFoundation.handleTransitionEnd(e))}updated(e){e.has("type")&&this.createFoundation()}}
|
105
|
+
`}firstUpdated(){this.mdcRoot.addEventListener("keydown",e=>this.mdcFoundation.handleKeydown(e)),this.mdcRoot.addEventListener("transitionend",e=>this.mdcFoundation.handleTransitionEnd(e))}updated(e){e.has("type")&&this.createFoundation()}}r.__decorate([f.i(".mdc-drawer")],a.prototype,"mdcRoot",void 0);r.__decorate([f.i(".mdc-drawer-app-content")],a.prototype,"appContent",void 0);r.__decorate([O.observer(function(n){this.type!==""&&(n?this.mdcFoundation.open():this.mdcFoundation.close())}),l.e({type:Boolean,reflect:!0})],a.prototype,"open",void 0);r.__decorate([l.e({type:Boolean})],a.prototype,"hasHeader",void 0);r.__decorate([l.e({reflect:!0})],a.prototype,"type",void 0);exports.DrawerBase=a;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";const n=require("./tslib.es6-6b53b818.js"),e=require("./query-assigned-elements-07e38f46.js");/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2021 Google LLC
|
4
|
+
* SPDX-LIcense-Identifier: Apache-2.0
|
5
|
+
*/const t=e.i`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`;/**
|
6
|
+
* @license
|
7
|
+
* Copyright 2018 Google LLC
|
8
|
+
* SPDX-License-Identifier: Apache-2.0
|
9
|
+
*/exports.Icon=class extends e.s{render(){return e.y`<span><slot></slot></span>`}};exports.Icon.styles=[t];exports.Icon=n.__decorate([e.e("mwc-icon")],exports.Icon);
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { _ as o } from "./tslib.es6-b5e819a6.mjs";
|
2
|
+
import { i as n, s as e, y as i, e as s } from "./query-assigned-elements-514e5265.mjs";
|
3
|
+
/**
|
4
|
+
* @license
|
5
|
+
* Copyright 2021 Google LLC
|
6
|
+
* SPDX-LIcense-Identifier: Apache-2.0
|
7
|
+
*/
|
8
|
+
const r = n`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`;
|
9
|
+
/**
|
10
|
+
* @license
|
11
|
+
* Copyright 2018 Google LLC
|
12
|
+
* SPDX-License-Identifier: Apache-2.0
|
13
|
+
*/
|
14
|
+
let t = class extends e {
|
15
|
+
/** @soyTemplate */
|
16
|
+
render() {
|
17
|
+
return i`<span><slot></slot></span>`;
|
18
|
+
}
|
19
|
+
};
|
20
|
+
t.styles = [r];
|
21
|
+
t = o([
|
22
|
+
s("mwc-icon")
|
23
|
+
], t);
|
24
|
+
export {
|
25
|
+
t as I
|
26
|
+
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const o=require("./
|
1
|
+
"use strict";const o=require("./tslib.es6-6b53b818.js"),c=require("./query-assigned-elements-07e38f46.js"),m=require("./base-element-d5abe37a.js"),p=require("./property-074570d1.js"),h=require("./query-2ba749b7.js"),i=require("./class-map-50b8edb4.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 b=function(){function t(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}();/**
|
23
23
|
* @license
|
24
24
|
* Copyright 2018 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 g={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},u={NOTCH_ELEMENT_PADDING:8},_={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"};/**
|
44
44
|
* @license
|
45
45
|
* Copyright 2017 Google Inc.
|
46
46
|
*
|
@@ -61,26 +61,26 @@
|
|
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 E=function(t){o.__extends(e,t);function e(n){return t.call(this,o.__assign(o.__assign({},e.defaultAdapter),n))||this}return Object.defineProperty(e,"strings",{get:function(){return g},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return _},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),e.prototype.notch=function(n){var r=e.cssClasses.OUTLINE_NOTCHED;n>0&&(n+=u.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(n),this.adapter.addClass(r)},e.prototype.closeNotch=function(){var n=e.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(n),this.adapter.removeNotchWidthProperty()},e}(b);/**
|
65
65
|
* @license
|
66
66
|
* Copyright 2019 Google LLC
|
67
67
|
* SPDX-License-Identifier: Apache-2.0
|
68
|
-
*/class
|
68
|
+
*/class s extends m.BaseElement{constructor(){super(...arguments),this.mdcFoundationClass=E,this.width=0,this.open=!1,this.lastOpen=this.open}createAdapter(){return{addClass:e=>this.mdcRoot.classList.add(e),removeClass:e=>this.mdcRoot.classList.remove(e),setNotchWidthProperty:e=>this.notchElement.style.setProperty("width",`${e}px`),removeNotchWidthProperty:()=>this.notchElement.style.removeProperty("width")}}openOrClose(e,n){this.mdcFoundation&&(e&&n!==void 0?this.mdcFoundation.notch(n):this.mdcFoundation.closeNotch())}render(){this.openOrClose(this.open,this.width);const e=i.o({"mdc-notched-outline--notched":this.open});return c.y`
|
69
69
|
<span class="mdc-notched-outline ${e}">
|
70
70
|
<span class="mdc-notched-outline__leading"></span>
|
71
71
|
<span class="mdc-notched-outline__notch">
|
72
72
|
<slot></slot>
|
73
73
|
</span>
|
74
74
|
<span class="mdc-notched-outline__trailing"></span>
|
75
|
-
</span>`}}o.__decorate([
|
75
|
+
</span>`}}o.__decorate([h.i(".mdc-notched-outline")],s.prototype,"mdcRoot",void 0);o.__decorate([p.e({type:Number})],s.prototype,"width",void 0);o.__decorate([p.e({type:Boolean,reflect:!0})],s.prototype,"open",void 0);o.__decorate([h.i(".mdc-notched-outline__notch")],s.prototype,"notchElement",void 0);/**
|
76
76
|
* @license
|
77
77
|
* Copyright 2021 Google LLC
|
78
78
|
* SPDX-LIcense-Identifier: Apache-2.0
|
79
|
-
*/const
|
79
|
+
*/const v=c.i`.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}:host{display:block;position:absolute;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] :host,:host([dir=rtl]){text-align:right}::slotted(.mdc-floating-label){display:inline-block;position:relative;top:17px;bottom:auto;max-width:100%}::slotted(.mdc-floating-label--float-above){text-overflow:clip}.mdc-notched-outline--upgraded ::slotted(.mdc-floating-label--float-above){max-width:calc(100% / 0.75)}.mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__leading,.mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-color:var(--mdc-notched-outline-border-color, var(--mdc-theme-primary, #6200ee));border-width:1px;border-width:var(--mdc-notched-outline-stroke-width, 1px)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0;padding-top:var(--mdc-notched-outline-notch-offset, 0)}`;/**
|
80
80
|
* @license
|
81
81
|
* Copyright 2019 Google LLC
|
82
82
|
* SPDX-License-Identifier: Apache-2.0
|
83
|
-
*/let
|
83
|
+
*/let l=class extends s{};l.styles=[v];l=o.__decorate([c.e("mwc-notched-outline")],l);/**
|
84
84
|
* @license
|
85
85
|
* Copyright 2016 Google Inc.
|
86
86
|
*
|
@@ -101,7 +101,7 @@
|
|
101
101
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
102
102
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
103
103
|
* THE SOFTWARE.
|
104
|
-
*/var
|
104
|
+
*/var y=function(){function t(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}();/**
|
105
105
|
* @license
|
106
106
|
* Copyright 2016 Google Inc.
|
107
107
|
*
|
@@ -122,7 +122,7 @@
|
|
122
122
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
123
123
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
124
124
|
* THE SOFTWARE.
|
125
|
-
*/var
|
125
|
+
*/var L={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"};/**
|
126
126
|
* @license
|
127
127
|
* Copyright 2016 Google Inc.
|
128
128
|
*
|
@@ -143,11 +143,11 @@
|
|
143
143
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
144
144
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
145
145
|
* THE SOFTWARE.
|
146
|
-
*/var
|
146
|
+
*/var C=function(t){o.__extends(e,t);function e(n){var r=t.call(this,o.__assign(o.__assign({},e.defaultAdapter),n))||this;return r.shakeAnimationEndHandler=function(){r.handleShakeAnimationEnd()},r}return Object.defineProperty(e,"cssClasses",{get:function(){return L},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.getWidth=function(){return this.adapter.getWidth()},e.prototype.shake=function(n){var r=e.cssClasses.LABEL_SHAKE;n?this.adapter.addClass(r):this.adapter.removeClass(r)},e.prototype.float=function(n){var r=e.cssClasses,d=r.LABEL_FLOAT_ABOVE,f=r.LABEL_SHAKE;n?this.adapter.addClass(d):(this.adapter.removeClass(d),this.adapter.removeClass(f))},e.prototype.setRequired=function(n){var r=e.cssClasses.LABEL_REQUIRED;n?this.adapter.addClass(r):this.adapter.removeClass(r)},e.prototype.handleShakeAnimationEnd=function(){var n=e.cssClasses.LABEL_SHAKE;this.adapter.removeClass(n)},e}(y);/**
|
147
147
|
* @license
|
148
148
|
* Copyright 2018 Google LLC
|
149
149
|
* SPDX-License-Identifier: Apache-2.0
|
150
|
-
*/const
|
150
|
+
*/const x=t=>({addClass:e=>t.classList.add(e),removeClass:e=>t.classList.remove(e),getWidth:()=>t.scrollWidth,registerInteractionHandler:(e,n)=>{t.addEventListener(e,n)},deregisterInteractionHandler:(e,n)=>{t.removeEventListener(e,n)}});class A extends i.i{constructor(e){switch(super(e),this.foundation=null,this.previousPart=null,e.type){case i.t.ATTRIBUTE:case i.t.PROPERTY:break;default:throw new Error("FloatingLabel directive only support attribute and property parts")}}update(e,[n]){if(e!==this.previousPart){this.foundation&&this.foundation.destroy(),this.previousPart=e;const r=e.element;r.classList.add("mdc-floating-label");const d=x(r);this.foundation=new C(d),this.foundation.init()}return this.render(n)}render(e){return this.foundation}}const P=i.e(A);/**
|
151
151
|
* @license
|
152
152
|
* Copyright 2016 Google Inc.
|
153
153
|
*
|
@@ -168,7 +168,7 @@
|
|
168
168
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
169
169
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
170
170
|
* THE SOFTWARE.
|
171
|
-
*/var
|
171
|
+
*/var O=function(){function t(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}();/**
|
172
172
|
* @license
|
173
173
|
* Copyright 2018 Google Inc.
|
174
174
|
*
|
@@ -189,7 +189,7 @@
|
|
189
189
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
190
190
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
191
191
|
* THE SOFTWARE.
|
192
|
-
*/var
|
192
|
+
*/var a={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"};/**
|
193
193
|
* @license
|
194
194
|
* Copyright 2018 Google Inc.
|
195
195
|
*
|
@@ -210,8 +210,8 @@
|
|
210
210
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
211
211
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
212
212
|
* THE SOFTWARE.
|
213
|
-
*/var
|
213
|
+
*/var N=function(t){o.__extends(e,t);function e(n){var r=t.call(this,o.__assign(o.__assign({},e.defaultAdapter),n))||this;return r.transitionEndHandler=function(d){r.handleTransitionEnd(d)},r}return Object.defineProperty(e,"cssClasses",{get:function(){return a},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},e.prototype.activate=function(){this.adapter.removeClass(a.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(a.LINE_RIPPLE_ACTIVE)},e.prototype.setRippleCenter=function(n){this.adapter.setStyle("transform-origin",n+"px center")},e.prototype.deactivate=function(){this.adapter.addClass(a.LINE_RIPPLE_DEACTIVATING)},e.prototype.handleTransitionEnd=function(n){var r=this.adapter.hasClass(a.LINE_RIPPLE_DEACTIVATING);n.propertyName==="opacity"&&r&&(this.adapter.removeClass(a.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(a.LINE_RIPPLE_DEACTIVATING))},e}(O);/**
|
214
214
|
* @license
|
215
215
|
* Copyright 2019 Google LLC
|
216
216
|
* SPDX-License-Identifier: Apache-2.0
|
217
|
-
*/const
|
217
|
+
*/const I=t=>({addClass:e=>t.classList.add(e),removeClass:e=>t.classList.remove(e),hasClass:e=>t.classList.contains(e),setStyle:(e,n)=>t.style.setProperty(e,n),registerEventHandler:(e,n)=>{t.addEventListener(e,n)},deregisterEventHandler:(e,n)=>{t.removeEventListener(e,n)}});class T extends i.i{constructor(e){switch(super(e),this.previousPart=null,this.foundation=null,e.type){case i.t.ATTRIBUTE:case i.t.PROPERTY:return;default:throw new Error("LineRipple only support attribute and property parts.")}}update(e,n){if(this.previousPart!==e){this.foundation&&this.foundation.destroy(),this.previousPart=e;const r=e.element;r.classList.add("mdc-line-ripple");const d=I(r);this.foundation=new N(d),this.foundation.init()}return this.render()}render(){return this.foundation}}const D=i.e(T);exports.floatingLabel=P;exports.lineRipple=D;
|