@covalent/components 6.4.0 → 6.4.2
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 +24 -23
- package/alert.js +4 -4
- package/alert.mjs +28 -27
- package/app-shell.js +4 -4
- package/app-shell.mjs +10 -10
- package/{base-element-67ae173f.mjs → base-element-c3dc926e.mjs} +2 -2
- package/{base-element-58a3f9ea.js → base-element-d5abe37a.js} +1 -1
- package/button.js +4 -4
- package/button.mjs +13 -13
- package/card.js +8 -8
- package/card.mjs +4 -4
- package/check-list-item.js +3 -3
- package/check-list-item.mjs +16 -16
- package/checkbox.js +1 -1
- package/checkbox.mjs +15 -15
- package/circular-progress.js +7 -7
- package/circular-progress.mjs +6 -6
- package/class-map-08c84aeb.mjs +62 -0
- package/class-map-50b8edb4.js +9 -0
- package/code-snippet.js +9 -9
- package/code-snippet.mjs +1213 -1276
- package/{dialog-9ac44447.mjs → dialog-85c21333.mjs} +39 -39
- package/{dialog-79036d60.js → dialog-8ee07177.js} +4 -4
- package/dialog.js +1 -1
- package/dialog.mjs +8 -8
- package/{directive-helpers-e3ea6592.mjs → directive-helpers-725a181d.mjs} +3 -3
- package/{directive-helpers-0ce1f995.js → directive-helpers-fce8cf91.js} +2 -2
- package/drawer.js +1 -1
- package/drawer.mjs +8 -8
- package/empty-state.js +7 -7
- package/empty-state.mjs +4 -4
- package/{event-options-78d6cf94.mjs → event-options-3937d997.mjs} +1 -1
- package/{event-options-3f5eb195.js → event-options-7bc382d8.js} +1 -1
- package/{form-element-bd973124.mjs → form-element-6dbd7afa.mjs} +4 -4
- package/{form-element-ead758d4.js → form-element-d4e7bcdb.js} +2 -2
- package/foundation-2334d146.mjs +60 -0
- package/{foundation-62d4413d.js → foundation-3f55a9dc.js} +3 -24
- package/{foundation-3f556da7.mjs → foundation-c580100a.mjs} +28 -78
- package/foundation-e830bd94.js +22 -0
- package/icon-button.js +5 -5
- package/icon-button.mjs +12 -12
- package/icon-check-toggle.js +5 -5
- package/icon-check-toggle.mjs +15 -15
- package/icon-radio-toggle.js +4 -4
- package/icon-radio-toggle.mjs +15 -15
- package/icon.js +1 -1
- package/icon.mjs +3 -3
- package/{if-defined-c367f208.mjs → if-defined-639ed018.mjs} +1 -1
- package/if-defined-cb12d481.js +5 -0
- package/index.js +1 -1
- package/index.mjs +121 -120
- package/linear-progress.js +6 -6
- package/linear-progress.mjs +13 -13
- package/{list-066f5de4.mjs → list-d616957b.mjs} +3 -3
- package/{list-05db7fed.js → list-defdaa3b.js} +2 -2
- package/list-expansion.js +4 -4
- package/list-expansion.mjs +25 -25
- package/{list-item-8da7ba96.js → list-item-3fa66f09.js} +3 -3
- package/{list-item-ba77097d.mjs → list-item-d5c05e10.mjs} +6 -6
- package/list-item.js +1 -1
- package/list-item.mjs +13 -13
- package/list.js +1 -1
- package/list.mjs +15 -15
- package/menu.js +1 -1
- package/menu.mjs +15 -15
- package/{mwc-checkbox-base-3da36456.mjs → mwc-checkbox-base-10e977f2.mjs} +21 -21
- package/{mwc-checkbox-base-d46c7666.js → mwc-checkbox-base-435c1f1d.js} +9 -9
- package/{mwc-checkbox.css-b3434429.js → mwc-checkbox.css-956e3d6c.js} +1 -1
- package/{mwc-checkbox.css-8f4f1a9b.mjs → mwc-checkbox.css-b7abc7fd.mjs} +1 -1
- package/{mwc-drawer-base-fe660bdf.mjs → mwc-drawer-base-b2b772c3.mjs} +10 -10
- package/{mwc-drawer-base-8eecb1de.js → mwc-drawer-base-f44fcf34.js} +6 -6
- package/{mwc-icon-8c9cd0c9.js → mwc-icon-b96fb867.js} +2 -2
- package/{mwc-icon-ba18383d.mjs → mwc-icon-c7013880.mjs} +2 -2
- package/{mwc-line-ripple-directive-d1cf9570.js → mwc-line-ripple-directive-a97ce725.js} +3 -3
- package/{mwc-line-ripple-directive-ffce2cff.mjs → mwc-line-ripple-directive-c3e1f04a.mjs} +6 -6
- package/{mwc-list-base-cb3500b4.js → mwc-list-base-7d5f7278.js} +4 -4
- package/{mwc-list-base-32d4ac31.mjs → mwc-list-base-c0f8af1c.mjs} +9 -9
- package/{mwc-list-item-base-4a4d1e1b.js → mwc-list-item-base-803b9771.js} +8 -8
- package/{mwc-list-item-base-8654347d.mjs → mwc-list-item-base-acef0223.mjs} +7 -7
- package/{mwc-list-item.css-25adc0c4.js → mwc-list-item.css-401e2407.js} +1 -1
- package/{mwc-list-item.css-b0009fc7.mjs → mwc-list-item.css-b5481d96.mjs} +1 -1
- package/{mwc-menu-base-572a76b9.mjs → mwc-menu-base-8970b43d.mjs} +11 -11
- package/{mwc-menu-base-f14ec544.js → mwc-menu-base-ac49fe54.js} +17 -17
- package/{mwc-radio-base-470b4fcc.js → mwc-radio-base-442d495a.js} +4 -4
- package/{mwc-radio-base-9446d39b.mjs → mwc-radio-base-c29e6f42.mjs} +11 -11
- package/{mwc-radio.css-4e140252.js → mwc-radio.css-388ad26d.js} +1 -1
- package/{mwc-radio.css-7454bb11.mjs → mwc-radio.css-4694aa9c.mjs} +1 -1
- package/{mwc-slider.css-10adbaf8.mjs → mwc-slider.css-336f809b.mjs} +12 -12
- package/{mwc-slider.css-9dd57b10.js → mwc-slider.css-48f02f1e.js} +11 -11
- package/{mwc-tab-base-fc3ffb43.js → mwc-tab-base-1a19b299.js} +13 -13
- package/{mwc-tab-base-4ba47acc.mjs → mwc-tab-base-7fb3d339.mjs} +14 -14
- package/{mwc-top-app-bar-base-0304e67f.js → mwc-top-app-bar-base-14e0a018.js} +8 -8
- package/{mwc-top-app-bar-base-adc4168a.mjs → mwc-top-app-bar-base-79c87e69.mjs} +24 -22
- package/nav-list-item.js +2 -2
- package/nav-list-item.mjs +13 -13
- package/package.json +1 -1
- package/{property-57f6f6fe.js → property-074570d1.js} +1 -1
- package/{property-9b6ea53b.mjs → property-ca27685b.mjs} +9 -9
- package/{query-d843aa92.mjs → query-1e7846ea.mjs} +1 -1
- package/{query-680f1868.js → query-2ba749b7.js} +1 -1
- package/query-assigned-elements-07e38f46.js +33 -0
- package/{query-assigned-elements-4a39219d.mjs → query-assigned-elements-514e5265.mjs} +152 -153
- package/{query-assigned-nodes-99eae71d.js → query-assigned-nodes-9ec0fa5f.js} +1 -1
- package/{query-assigned-nodes-df691e78.mjs → query-assigned-nodes-bea12e0c.mjs} +1 -1
- package/radio-list-item.js +3 -3
- package/radio-list-item.mjs +18 -18
- package/radio.js +1 -1
- package/radio.mjs +15 -15
- package/{ripple-handlers-c82b1232.js → ripple-handlers-2176f137.js} +5 -5
- package/{ripple-handlers-321219b8.mjs → ripple-handlers-227497d3.mjs} +10 -10
- package/select.js +10 -10
- package/select.mjs +20 -20
- package/side-sheet.js +2 -2
- package/side-sheet.mjs +21 -21
- package/slider-range.js +7 -7
- package/slider-range.mjs +13 -13
- package/slider.js +3 -3
- package/slider.mjs +15 -15
- package/snackbar.js +6 -6
- package/snackbar.mjs +12 -12
- package/{state-b5e865db.mjs → state-6f7e570d.mjs} +1 -1
- package/state-949232e6.js +5 -0
- package/status-header-item.js +3 -3
- package/status-header-item.mjs +15 -15
- package/status-header.js +2 -2
- package/status-header.mjs +3 -3
- package/style-map-2cb0fb63.mjs +40 -0
- package/style-map-3056a771.js +5 -0
- package/style.css +1 -1
- package/switch.js +8 -8
- package/switch.mjs +13 -13
- package/tab-bar.js +5 -5
- package/tab-bar.mjs +16 -16
- package/tab.js +1 -1
- package/tab.mjs +12 -12
- package/text-lockup.js +4 -4
- package/text-lockup.mjs +7 -7
- package/textarea.js +4 -4
- package/textarea.mjs +26 -26
- package/{textfield-2cee5a1a.mjs → textfield-276b0ded.mjs} +14 -14
- package/{textfield-0993c163.js → textfield-507c6a06.js} +12 -12
- package/textfield.js +1 -1
- package/textfield.mjs +14 -14
- package/toolbar.js +1 -1
- package/toolbar.mjs +8 -8
- package/tooltip/tooltip.d.ts.map +1 -1
- package/tooltip.js +11 -32
- package/tooltip.mjs +516 -611
- package/{top-app-bar-a531c1b4.js → top-app-bar-34e85527.js} +1 -1
- package/{top-app-bar-f83386e0.mjs → top-app-bar-a236c3bc.mjs} +1 -1
- package/top-app-bar-fixed.js +5 -89
- package/top-app-bar-fixed.mjs +37 -279
- package/top-app-bar.js +1 -1
- package/top-app-bar.mjs +9 -9
- package/tree-list-item.js +7 -7
- package/tree-list-item.mjs +6 -6
- package/tree-list.js +2 -2
- package/tree-list.mjs +1 -1
- package/tslib.es6-6b53b818.js +1 -0
- package/tslib.es6-b5e819a6.mjs +82 -0
- package/typography.js +3 -3
- package/typography.mjs +2 -2
- package/{utils-2932417c.mjs → utils-dc65fdc9.mjs} +2 -2
- package/class-map-4b94b017.mjs +0 -62
- package/class-map-b5efe8da.js +0 -9
- package/if-defined-f1c45245.js +0 -5
- package/query-assigned-elements-f623705d.js +0 -31
- package/state-0974a8e5.js +0 -5
- package/style-map-88d2563f.js +0 -5
- package/style-map-bc3ed3e0.mjs +0 -44
- package/tslib.es6-e6a11c8a.js +0 -1
- package/tslib.es6-f1eaf65c.mjs +0 -82
package/top-app-bar-fixed.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-07e38f46.js"),a=require("./mwc-top-app-bar-base-14e0a018.js"),d=require("./tslib.es6-6b53b818.js"),n=require("./top-app-bar-34e85527.js");require("./property-074570d1.js");require("./base-element-d5abe37a.js");require("./utils-a8190a39.js");require("./query-2ba749b7.js");require("./class-map-50b8edb4.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2018 Google Inc.
|
4
4
|
*
|
@@ -19,94 +19,10 @@
|
|
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 c={
|
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 T=function(){function r(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r}();/**
|
44
|
-
* @license
|
45
|
-
* Copyright 2018 Google Inc.
|
46
|
-
*
|
47
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
48
|
-
* of this software and associated documentation files (the "Software"), to deal
|
49
|
-
* in the Software without restriction, including without limitation the rights
|
50
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
51
|
-
* copies of the Software, and to permit persons to whom the Software is
|
52
|
-
* furnished to do so, subject to the following conditions:
|
53
|
-
*
|
54
|
-
* The above copyright notice and this permission notice shall be included in
|
55
|
-
* all copies or substantial portions of the Software.
|
56
|
-
*
|
57
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
58
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
59
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
60
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
61
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
62
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
63
|
-
* THE SOFTWARE.
|
64
|
-
*/var A=function(r){s.__extends(e,r);function e(t){return r.call(this,s.__assign(s.__assign({},e.defaultAdapter),t))||this}return Object.defineProperty(e,"strings",{get:function(){return h},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return c},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return p},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},getTopAppBarHeight:function(){return 0},notifyNavigationIconClicked:function(){},getViewportScrollY:function(){return 0},getTotalActionItems:function(){return 0}}},enumerable:!1,configurable:!0}),e.prototype.handleTargetScroll=function(){},e.prototype.handleWindowResize=function(){},e.prototype.handleNavigationClick=function(){this.adapter.notifyNavigationIconClicked()},e}(T);/**
|
65
|
-
* @license
|
66
|
-
* Copyright 2018 Google Inc.
|
67
|
-
*
|
68
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
69
|
-
* of this software and associated documentation files (the "Software"), to deal
|
70
|
-
* in the Software without restriction, including without limitation the rights
|
71
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
72
|
-
* copies of the Software, and to permit persons to whom the Software is
|
73
|
-
* furnished to do so, subject to the following conditions:
|
74
|
-
*
|
75
|
-
* The above copyright notice and this permission notice shall be included in
|
76
|
-
* all copies or substantial portions of the Software.
|
77
|
-
*
|
78
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
79
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
80
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
81
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
82
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
83
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
84
|
-
* THE SOFTWARE.
|
85
|
-
*/var a=0,g=function(r){s.__extends(e,r);function e(t){var i=r.call(this,t)||this;return i.wasDocked=!0,i.isDockedShowing=!0,i.currentAppBarOffsetTop=0,i.isCurrentlyBeingResized=!1,i.resizeThrottleId=a,i.resizeDebounceId=a,i.lastScrollPosition=i.adapter.getViewportScrollY(),i.topAppBarHeight=i.adapter.getTopAppBarHeight(),i}return e.prototype.destroy=function(){r.prototype.destroy.call(this),this.adapter.setStyle("top","")},e.prototype.handleTargetScroll=function(){var t=Math.max(this.adapter.getViewportScrollY(),0),i=t-this.lastScrollPosition;this.lastScrollPosition=t,this.isCurrentlyBeingResized||(this.currentAppBarOffsetTop-=i,this.currentAppBarOffsetTop>0?this.currentAppBarOffsetTop=0:Math.abs(this.currentAppBarOffsetTop)>this.topAppBarHeight&&(this.currentAppBarOffsetTop=-this.topAppBarHeight),this.moveTopAppBar())},e.prototype.handleWindowResize=function(){var t=this;this.resizeThrottleId||(this.resizeThrottleId=setTimeout(function(){t.resizeThrottleId=a,t.throttledResizeHandler()},p.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)),this.isCurrentlyBeingResized=!0,this.resizeDebounceId&&clearTimeout(this.resizeDebounceId),this.resizeDebounceId=setTimeout(function(){t.handleTargetScroll(),t.isCurrentlyBeingResized=!1,t.resizeDebounceId=a},p.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)},e.prototype.checkForUpdate=function(){var t=-this.topAppBarHeight,i=this.currentAppBarOffsetTop<0,o=this.currentAppBarOffsetTop>t,n=i&&o;if(n)this.wasDocked=!1;else if(this.wasDocked){if(this.isDockedShowing!==o)return this.isDockedShowing=o,!0}else return this.wasDocked=!0,!0;return n},e.prototype.moveTopAppBar=function(){if(this.checkForUpdate()){var t=this.currentAppBarOffsetTop;Math.abs(t)>=this.topAppBarHeight&&(t=-p.MAX_TOP_APP_BAR_HEIGHT),this.adapter.setStyle("top",t+"px")}},e.prototype.throttledResizeHandler=function(){var t=this.adapter.getTopAppBarHeight();this.topAppBarHeight!==t&&(this.wasDocked=!1,this.currentAppBarOffsetTop-=this.topAppBarHeight-t,this.topAppBarHeight=t),this.handleTargetScroll()},e}(A);/**
|
86
|
-
* @license
|
87
|
-
* Copyright 2018 Google Inc.
|
88
|
-
*
|
89
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
90
|
-
* of this software and associated documentation files (the "Software"), to deal
|
91
|
-
* in the Software without restriction, including without limitation the rights
|
92
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
93
|
-
* copies of the Software, and to permit persons to whom the Software is
|
94
|
-
* furnished to do so, subject to the following conditions:
|
95
|
-
*
|
96
|
-
* The above copyright notice and this permission notice shall be included in
|
97
|
-
* all copies or substantial portions of the Software.
|
98
|
-
*
|
99
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
100
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
101
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
102
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
103
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
104
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
105
|
-
* THE SOFTWARE.
|
106
|
-
*/var _=function(r){s.__extends(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.wasScrolled=!1,t}return e.prototype.handleTargetScroll=function(){var t=this.adapter.getViewportScrollY();t<=0?this.wasScrolled&&(this.adapter.removeClass(c.FIXED_SCROLLED_CLASS),this.wasScrolled=!1):this.wasScrolled||(this.adapter.addClass(c.FIXED_SCROLLED_CLASS),this.wasScrolled=!0)},e}(g);const S=_;/**
|
22
|
+
*/var c=function(e){d.__extends(r,e);function r(){var s=e!==null&&e.apply(this,arguments)||this;return s.wasScrolled=!1,s}return r.prototype.handleTargetScroll=function(){var s=this.adapter.getViewportScrollY();s<=0?this.wasScrolled&&(this.adapter.removeClass(a.cssClasses.FIXED_SCROLLED_CLASS),this.wasScrolled=!1):this.wasScrolled||(this.adapter.addClass(a.cssClasses.FIXED_SCROLLED_CLASS),this.wasScrolled=!0)},r}(a.MDCTopAppBarFoundation);const u=c;/**
|
107
23
|
* @license
|
108
24
|
* Copyright 2019 Google LLC
|
109
25
|
* SPDX-License-Identifier: Apache-2.0
|
110
|
-
*/class
|
111
|
-
${
|
112
|
-
`];exports.CovalentTopAppBarFixed=
|
26
|
+
*/class v extends a.TopAppBarBase{constructor(){super(...arguments),this.mdcFoundationClass=u}barClasses(){return Object.assign(Object.assign({},super.barClasses()),{"mdc-top-app-bar--fixed":!0})}registerListeners(){this.scrollTarget.addEventListener("scroll",this.handleTargetScroll,a.passiveEventOptionsIfSupported)}unregisterListeners(){this.scrollTarget.removeEventListener("scroll",this.handleTargetScroll)}}var C=Object.defineProperty,S=Object.getOwnPropertyDescriptor,T=(e,r,s,o)=>{for(var t=o>1?void 0:o?S(r,s):r,p=e.length-1,l;p>=0;p--)(l=e[p])&&(t=(o?l(r,s,t):l(t))||t);return o&&t&&C(r,s,t),t};exports.CovalentTopAppBarFixed=class extends v{};exports.CovalentTopAppBarFixed.styles=[n.styles,i.i`
|
27
|
+
${i.r(n.baseStyles)}
|
28
|
+
`];exports.CovalentTopAppBarFixed=T([i.e("cv-top-app-bar-fixed")],exports.CovalentTopAppBarFixed);const h=exports.CovalentTopAppBarFixed;exports.default=h;
|
package/top-app-bar-fixed.mjs
CHANGED
@@ -1,107 +1,12 @@
|
|
1
|
-
import { i as
|
2
|
-
import { T as
|
3
|
-
import {
|
4
|
-
import { s as
|
5
|
-
import "./property-
|
6
|
-
import "./base-element-
|
7
|
-
import "./utils-
|
8
|
-
import "./query-
|
9
|
-
import "./class-map-
|
10
|
-
/**
|
11
|
-
* @license
|
12
|
-
* Copyright 2018 Google Inc.
|
13
|
-
*
|
14
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
15
|
-
* of this software and associated documentation files (the "Software"), to deal
|
16
|
-
* in the Software without restriction, including without limitation the rights
|
17
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
18
|
-
* copies of the Software, and to permit persons to whom the Software is
|
19
|
-
* furnished to do so, subject to the following conditions:
|
20
|
-
*
|
21
|
-
* The above copyright notice and this permission notice shall be included in
|
22
|
-
* all copies or substantial portions of the Software.
|
23
|
-
*
|
24
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
25
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
26
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
27
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
28
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
29
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
30
|
-
* THE SOFTWARE.
|
31
|
-
*/
|
32
|
-
var c = {
|
33
|
-
FIXED_CLASS: "mdc-top-app-bar--fixed",
|
34
|
-
FIXED_SCROLLED_CLASS: "mdc-top-app-bar--fixed-scrolled",
|
35
|
-
SHORT_CLASS: "mdc-top-app-bar--short",
|
36
|
-
SHORT_COLLAPSED_CLASS: "mdc-top-app-bar--short-collapsed",
|
37
|
-
SHORT_HAS_ACTION_ITEM_CLASS: "mdc-top-app-bar--short-has-action-item"
|
38
|
-
}, s = {
|
39
|
-
DEBOUNCE_THROTTLE_RESIZE_TIME_MS: 100,
|
40
|
-
MAX_TOP_APP_BAR_HEIGHT: 128
|
41
|
-
}, b = {
|
42
|
-
ACTION_ITEM_SELECTOR: ".mdc-top-app-bar__action-item",
|
43
|
-
NAVIGATION_EVENT: "MDCTopAppBar:nav",
|
44
|
-
NAVIGATION_ICON_SELECTOR: ".mdc-top-app-bar__navigation-icon",
|
45
|
-
ROOT_SELECTOR: ".mdc-top-app-bar",
|
46
|
-
TITLE_SELECTOR: ".mdc-top-app-bar__title"
|
47
|
-
};
|
48
|
-
/**
|
49
|
-
* @license
|
50
|
-
* Copyright 2016 Google Inc.
|
51
|
-
*
|
52
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
53
|
-
* of this software and associated documentation files (the "Software"), to deal
|
54
|
-
* in the Software without restriction, including without limitation the rights
|
55
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
56
|
-
* copies of the Software, and to permit persons to whom the Software is
|
57
|
-
* furnished to do so, subject to the following conditions:
|
58
|
-
*
|
59
|
-
* The above copyright notice and this permission notice shall be included in
|
60
|
-
* all copies or substantial portions of the Software.
|
61
|
-
*
|
62
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
63
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
64
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
65
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
66
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
67
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
68
|
-
* THE SOFTWARE.
|
69
|
-
*/
|
70
|
-
var O = (
|
71
|
-
/** @class */
|
72
|
-
function() {
|
73
|
-
function r(e) {
|
74
|
-
e === void 0 && (e = {}), this.adapter = e;
|
75
|
-
}
|
76
|
-
return Object.defineProperty(r, "cssClasses", {
|
77
|
-
get: function() {
|
78
|
-
return {};
|
79
|
-
},
|
80
|
-
enumerable: !1,
|
81
|
-
configurable: !0
|
82
|
-
}), Object.defineProperty(r, "strings", {
|
83
|
-
get: function() {
|
84
|
-
return {};
|
85
|
-
},
|
86
|
-
enumerable: !1,
|
87
|
-
configurable: !0
|
88
|
-
}), Object.defineProperty(r, "numbers", {
|
89
|
-
get: function() {
|
90
|
-
return {};
|
91
|
-
},
|
92
|
-
enumerable: !1,
|
93
|
-
configurable: !0
|
94
|
-
}), Object.defineProperty(r, "defaultAdapter", {
|
95
|
-
get: function() {
|
96
|
-
return {};
|
97
|
-
},
|
98
|
-
enumerable: !1,
|
99
|
-
configurable: !0
|
100
|
-
}), r.prototype.init = function() {
|
101
|
-
}, r.prototype.destroy = function() {
|
102
|
-
}, r;
|
103
|
-
}()
|
104
|
-
);
|
1
|
+
import { i as n, r as c, e as d } from "./query-assigned-elements-514e5265.mjs";
|
2
|
+
import { c as l, M as u, T as f, p as h } from "./mwc-top-app-bar-base-79c87e69.mjs";
|
3
|
+
import { a as m } from "./tslib.es6-b5e819a6.mjs";
|
4
|
+
import { s as v, b as S } from "./top-app-bar-a236c3bc.mjs";
|
5
|
+
import "./property-ca27685b.mjs";
|
6
|
+
import "./base-element-c3dc926e.mjs";
|
7
|
+
import "./utils-dc65fdc9.mjs";
|
8
|
+
import "./query-1e7846ea.mjs";
|
9
|
+
import "./class-map-08c84aeb.mjs";
|
105
10
|
/**
|
106
11
|
* @license
|
107
12
|
* Copyright 2018 Google Inc.
|
@@ -127,202 +32,55 @@ var O = (
|
|
127
32
|
var C = (
|
128
33
|
/** @class */
|
129
34
|
function(r) {
|
130
|
-
|
131
|
-
function
|
132
|
-
|
133
|
-
|
134
|
-
return Object.defineProperty(e, "strings", {
|
135
|
-
get: function() {
|
136
|
-
return b;
|
137
|
-
},
|
138
|
-
enumerable: !1,
|
139
|
-
configurable: !0
|
140
|
-
}), Object.defineProperty(e, "cssClasses", {
|
141
|
-
get: function() {
|
142
|
-
return c;
|
143
|
-
},
|
144
|
-
enumerable: !1,
|
145
|
-
configurable: !0
|
146
|
-
}), Object.defineProperty(e, "numbers", {
|
147
|
-
get: function() {
|
148
|
-
return s;
|
149
|
-
},
|
150
|
-
enumerable: !1,
|
151
|
-
configurable: !0
|
152
|
-
}), Object.defineProperty(e, "defaultAdapter", {
|
153
|
-
/**
|
154
|
-
* See {@link MDCTopAppBarAdapter} for typing information on parameters and return types.
|
155
|
-
*/
|
156
|
-
get: function() {
|
157
|
-
return {
|
158
|
-
addClass: function() {
|
159
|
-
},
|
160
|
-
removeClass: function() {
|
161
|
-
},
|
162
|
-
hasClass: function() {
|
163
|
-
return !1;
|
164
|
-
},
|
165
|
-
setStyle: function() {
|
166
|
-
},
|
167
|
-
getTopAppBarHeight: function() {
|
168
|
-
return 0;
|
169
|
-
},
|
170
|
-
notifyNavigationIconClicked: function() {
|
171
|
-
},
|
172
|
-
getViewportScrollY: function() {
|
173
|
-
return 0;
|
174
|
-
},
|
175
|
-
getTotalActionItems: function() {
|
176
|
-
return 0;
|
177
|
-
}
|
178
|
-
};
|
179
|
-
},
|
180
|
-
enumerable: !1,
|
181
|
-
configurable: !0
|
182
|
-
}), e.prototype.handleTargetScroll = function() {
|
183
|
-
}, e.prototype.handleWindowResize = function() {
|
184
|
-
}, e.prototype.handleNavigationClick = function() {
|
185
|
-
this.adapter.notifyNavigationIconClicked();
|
186
|
-
}, e;
|
187
|
-
}(O)
|
188
|
-
);
|
189
|
-
/**
|
190
|
-
* @license
|
191
|
-
* Copyright 2018 Google Inc.
|
192
|
-
*
|
193
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
194
|
-
* of this software and associated documentation files (the "Software"), to deal
|
195
|
-
* in the Software without restriction, including without limitation the rights
|
196
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
197
|
-
* copies of the Software, and to permit persons to whom the Software is
|
198
|
-
* furnished to do so, subject to the following conditions:
|
199
|
-
*
|
200
|
-
* The above copyright notice and this permission notice shall be included in
|
201
|
-
* all copies or substantial portions of the Software.
|
202
|
-
*
|
203
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
204
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
205
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
206
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
207
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
208
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
209
|
-
* THE SOFTWARE.
|
210
|
-
*/
|
211
|
-
var a = 0, m = (
|
212
|
-
/** @class */
|
213
|
-
function(r) {
|
214
|
-
u(e, r);
|
215
|
-
function e(t) {
|
216
|
-
var i = r.call(this, t) || this;
|
217
|
-
return i.wasDocked = !0, i.isDockedShowing = !0, i.currentAppBarOffsetTop = 0, i.isCurrentlyBeingResized = !1, i.resizeThrottleId = a, i.resizeDebounceId = a, i.lastScrollPosition = i.adapter.getViewportScrollY(), i.topAppBarHeight = i.adapter.getTopAppBarHeight(), i;
|
218
|
-
}
|
219
|
-
return e.prototype.destroy = function() {
|
220
|
-
r.prototype.destroy.call(this), this.adapter.setStyle("top", "");
|
221
|
-
}, e.prototype.handleTargetScroll = function() {
|
222
|
-
var t = Math.max(this.adapter.getViewportScrollY(), 0), i = t - this.lastScrollPosition;
|
223
|
-
this.lastScrollPosition = t, this.isCurrentlyBeingResized || (this.currentAppBarOffsetTop -= i, this.currentAppBarOffsetTop > 0 ? this.currentAppBarOffsetTop = 0 : Math.abs(this.currentAppBarOffsetTop) > this.topAppBarHeight && (this.currentAppBarOffsetTop = -this.topAppBarHeight), this.moveTopAppBar());
|
224
|
-
}, e.prototype.handleWindowResize = function() {
|
225
|
-
var t = this;
|
226
|
-
this.resizeThrottleId || (this.resizeThrottleId = setTimeout(function() {
|
227
|
-
t.resizeThrottleId = a, t.throttledResizeHandler();
|
228
|
-
}, s.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)), this.isCurrentlyBeingResized = !0, this.resizeDebounceId && clearTimeout(this.resizeDebounceId), this.resizeDebounceId = setTimeout(function() {
|
229
|
-
t.handleTargetScroll(), t.isCurrentlyBeingResized = !1, t.resizeDebounceId = a;
|
230
|
-
}, s.DEBOUNCE_THROTTLE_RESIZE_TIME_MS);
|
231
|
-
}, e.prototype.checkForUpdate = function() {
|
232
|
-
var t = -this.topAppBarHeight, i = this.currentAppBarOffsetTop < 0, o = this.currentAppBarOffsetTop > t, n = i && o;
|
233
|
-
if (n)
|
234
|
-
this.wasDocked = !1;
|
235
|
-
else if (this.wasDocked) {
|
236
|
-
if (this.isDockedShowing !== o)
|
237
|
-
return this.isDockedShowing = o, !0;
|
238
|
-
} else
|
239
|
-
return this.wasDocked = !0, !0;
|
240
|
-
return n;
|
241
|
-
}, e.prototype.moveTopAppBar = function() {
|
242
|
-
if (this.checkForUpdate()) {
|
243
|
-
var t = this.currentAppBarOffsetTop;
|
244
|
-
Math.abs(t) >= this.topAppBarHeight && (t = -s.MAX_TOP_APP_BAR_HEIGHT), this.adapter.setStyle("top", t + "px");
|
245
|
-
}
|
246
|
-
}, e.prototype.throttledResizeHandler = function() {
|
247
|
-
var t = this.adapter.getTopAppBarHeight();
|
248
|
-
this.topAppBarHeight !== t && (this.wasDocked = !1, this.currentAppBarOffsetTop -= this.topAppBarHeight - t, this.topAppBarHeight = t), this.handleTargetScroll();
|
249
|
-
}, e;
|
250
|
-
}(C)
|
251
|
-
);
|
252
|
-
/**
|
253
|
-
* @license
|
254
|
-
* Copyright 2018 Google Inc.
|
255
|
-
*
|
256
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
257
|
-
* of this software and associated documentation files (the "Software"), to deal
|
258
|
-
* in the Software without restriction, including without limitation the rights
|
259
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
260
|
-
* copies of the Software, and to permit persons to whom the Software is
|
261
|
-
* furnished to do so, subject to the following conditions:
|
262
|
-
*
|
263
|
-
* The above copyright notice and this permission notice shall be included in
|
264
|
-
* all copies or substantial portions of the Software.
|
265
|
-
*
|
266
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
267
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
268
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
269
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
270
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
271
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
272
|
-
* THE SOFTWARE.
|
273
|
-
*/
|
274
|
-
var B = (
|
275
|
-
/** @class */
|
276
|
-
function(r) {
|
277
|
-
u(e, r);
|
278
|
-
function e() {
|
279
|
-
var t = r !== null && r.apply(this, arguments) || this;
|
280
|
-
return t.wasScrolled = !1, t;
|
35
|
+
m(s, r);
|
36
|
+
function s() {
|
37
|
+
var e = r !== null && r.apply(this, arguments) || this;
|
38
|
+
return e.wasScrolled = !1, e;
|
281
39
|
}
|
282
|
-
return
|
283
|
-
var
|
284
|
-
|
285
|
-
},
|
286
|
-
}(
|
40
|
+
return s.prototype.handleTargetScroll = function() {
|
41
|
+
var e = this.adapter.getViewportScrollY();
|
42
|
+
e <= 0 ? this.wasScrolled && (this.adapter.removeClass(l.FIXED_SCROLLED_CLASS), this.wasScrolled = !1) : this.wasScrolled || (this.adapter.addClass(l.FIXED_SCROLLED_CLASS), this.wasScrolled = !0);
|
43
|
+
}, s;
|
44
|
+
}(u)
|
287
45
|
);
|
288
|
-
const
|
46
|
+
const T = C;
|
289
47
|
/**
|
290
48
|
* @license
|
291
49
|
* Copyright 2019 Google LLC
|
292
50
|
* SPDX-License-Identifier: Apache-2.0
|
293
51
|
*/
|
294
|
-
class
|
52
|
+
class F extends f {
|
295
53
|
constructor() {
|
296
|
-
super(...arguments), this.mdcFoundationClass =
|
54
|
+
super(...arguments), this.mdcFoundationClass = T;
|
297
55
|
}
|
298
56
|
barClasses() {
|
299
57
|
return Object.assign(Object.assign({}, super.barClasses()), { "mdc-top-app-bar--fixed": !0 });
|
300
58
|
}
|
301
59
|
registerListeners() {
|
302
|
-
this.scrollTarget.addEventListener("scroll", this.handleTargetScroll,
|
60
|
+
this.scrollTarget.addEventListener("scroll", this.handleTargetScroll, h);
|
303
61
|
}
|
304
62
|
unregisterListeners() {
|
305
63
|
this.scrollTarget.removeEventListener("scroll", this.handleTargetScroll);
|
306
64
|
}
|
307
65
|
}
|
308
|
-
var
|
309
|
-
for (var
|
310
|
-
(
|
311
|
-
return
|
66
|
+
var g = Object.defineProperty, x = Object.getOwnPropertyDescriptor, _ = (r, s, e, a) => {
|
67
|
+
for (var t = a > 1 ? void 0 : a ? x(s, e) : s, p = r.length - 1, i; p >= 0; p--)
|
68
|
+
(i = r[p]) && (t = (a ? i(s, e, t) : i(t)) || t);
|
69
|
+
return a && t && g(s, e, t), t;
|
312
70
|
};
|
313
|
-
let
|
71
|
+
let o = class extends F {
|
314
72
|
};
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
${
|
73
|
+
o.styles = [
|
74
|
+
v,
|
75
|
+
n`
|
76
|
+
${c(S)}
|
319
77
|
`
|
320
78
|
];
|
321
|
-
|
322
|
-
|
323
|
-
],
|
324
|
-
const
|
79
|
+
o = _([
|
80
|
+
d("cv-top-app-bar-fixed")
|
81
|
+
], o);
|
82
|
+
const M = o;
|
325
83
|
export {
|
326
|
-
|
327
|
-
|
84
|
+
o as CovalentTopAppBarFixed,
|
85
|
+
M as default
|
328
86
|
};
|
package/top-app-bar.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./query-assigned-elements-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./query-assigned-elements-07e38f46.js"),n=require("./mwc-top-app-bar-base-14e0a018.js"),u=require("./top-app-bar-34e85527.js");require("./tslib.es6-6b53b818.js");require("./property-074570d1.js");require("./base-element-d5abe37a.js");require("./utils-a8190a39.js");require("./query-2ba749b7.js");require("./class-map-50b8edb4.js");var v=Object.defineProperty,i=Object.getOwnPropertyDescriptor,B=(o,r,a,p)=>{for(var e=p>1?void 0:p?i(r,a):r,t=o.length-1,s;t>=0;t--)(s=o[t])&&(e=(p?s(r,a,e):s(e))||e);return p&&e&&v(r,a,e),e};exports.CovalentTopAppBar=class extends n.TopAppBarBase{};exports.CovalentTopAppBar.styles=[u.styles,l.i`
|
2
2
|
${l.r(u.baseStyles)}
|
3
3
|
`];exports.CovalentTopAppBar=B([l.e("cv-top-app-bar")],exports.CovalentTopAppBar);const c=exports.CovalentTopAppBar;exports.default=c;
|
package/top-app-bar.mjs
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
import { i as l, r as i, e as f } from "./query-assigned-elements-
|
2
|
-
import { T as v } from "./mwc-top-app-bar-base-
|
3
|
-
import { s as n, b as _ } from "./top-app-bar-
|
4
|
-
import "./tslib.es6-
|
5
|
-
import "./property-
|
6
|
-
import "./base-element-
|
7
|
-
import "./utils-
|
8
|
-
import "./query-
|
9
|
-
import "./class-map-
|
1
|
+
import { i as l, r as i, e as f } from "./query-assigned-elements-514e5265.mjs";
|
2
|
+
import { T as v } from "./mwc-top-app-bar-base-79c87e69.mjs";
|
3
|
+
import { s as n, b as _ } from "./top-app-bar-a236c3bc.mjs";
|
4
|
+
import "./tslib.es6-b5e819a6.mjs";
|
5
|
+
import "./property-ca27685b.mjs";
|
6
|
+
import "./base-element-c3dc926e.mjs";
|
7
|
+
import "./utils-dc65fdc9.mjs";
|
8
|
+
import "./query-1e7846ea.mjs";
|
9
|
+
import "./class-map-08c84aeb.mjs";
|
10
10
|
var b = Object.defineProperty, c = Object.getOwnPropertyDescriptor, B = (m, r, e, o) => {
|
11
11
|
for (var p = o > 1 ? void 0 : o ? c(r, e) : r, s = m.length - 1, a; s >= 0; s--)
|
12
12
|
(a = m[s]) && (p = (o ? a(r, e, p) : a(p)) || p);
|
package/tree-list-item.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
2
|
-
`;var m=Object.defineProperty,f=Object.getOwnPropertyDescriptor,o=(c,
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./query-assigned-elements-07e38f46.js"),n=require("./property-074570d1.js"),d=require("./class-map-50b8edb4.js"),l=`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-ripple-surface:before,.mdc-ripple-surface:after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface:after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded:before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded:after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded:after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface:before,.mdc-ripple-surface:after{top:0%;left:0%;width:100%;height:100%}.mdc-ripple-surface.mdc-ripple-upgraded:after{width:var(--mdc-ripple-fg-size, 50%);height:var(--mdc-ripple-fg-size, 50%)}.mdc-ripple-surface:before,.mdc-ripple-surface:after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover:before,.mdc-ripple-surface.mdc-ripple-surface--hover:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused:before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded):after{transition:opacity .15s linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.mdc-ripple-surface:after,.mdc-ripple-surface:before{border-radius:0 16px 16px 0}.itemContent{padding:0 32px 0 var(--indent);margin-right:16px}.itemContent:hover{cursor:pointer;background-color:var(--mdc-theme-surface-neutral-highlight-hover);border-radius:0 16px 16px 0}.selected{background-color:var(--mdc-theme-surface-primary-highlight);color:var(--mdc-theme-primary);border-radius:0 16px 16px 0}.selected:hover{background-color:var(--mdc-theme-surface-primary-highlight-hover)}.mainContent{display:flex;flex-direction:row;padding:4px 0}[name=label]::slotted(*){font-family:var(--mdc-typography-body1-font-family);font-size:var(--mdc-typography-body1-font-size);font-weight:var(--mdc-typography-body1-font-weight);line-height:var(--mdc-typography-body1-line-height);letter-spacing:.25px;padding-left:16px}[name=extraContent]::slotted(*){padding-left:64px;padding-bottom:4px;margin-top:-4px;letter-spacing:.4px;color:var(--mdc-theme-text-secondary-on-background);font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);font-weight:var(--mdc-typography-caption-font-weight);line-height:var(--mdc-typography-caption-line-height)}.hidden{display:none}.visible{display:flex;flex-direction:column}.endOfNest{padding:8px;padding-left:calc(var(--indent) + 20px);letter-spacing:.4px;user-select:none;color:var(--mdc-theme-text-disabled-on-background);font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);font-weight:var(--mdc-typography-caption-font-weight);line-height:var(--mdc-typography-caption-line-height)}.arrowIcon{color:var(--mdc-theme-text-primary-on-background)}.open{transition:transform .1s ease-out;transform:rotate(90deg)}.close{transition:transform .1s ease-in;transform:rotate(0)}
|
2
|
+
`;var m=Object.defineProperty,f=Object.getOwnPropertyDescriptor,o=(c,r,a,i)=>{for(var e=i>1?void 0:i?f(r,a):r,p=c.length-1,s;p>=0;p--)(s=c[p])&&(e=(i?s(r,a,e):s(e))||e);return i&&e&&m(r,a,e),e};exports.CovalentTreeListItem=class extends t.s{constructor(){super(...arguments),this.isOpen=!1,this.icon="",this.indentLevel=0,this.indentMultiple=16}render(){const r={hidden:!this.isOpen,visible:this.isOpen},a={open:this.isOpen,close:!this.isOpen},i="arrow_right",e=t.y`<cv-icon>${this.icon}</cv-icon>`,p=t.y`<cv-icon class="${d.o(a)} arrowIcon"
|
3
3
|
>${i}</cv-icon
|
4
|
-
>`;return
|
4
|
+
>`;return t.y`
|
5
5
|
<div
|
6
6
|
class="itemContent mdc-ripple-surface"
|
7
7
|
@click="${this._handleClick}"
|
@@ -13,7 +13,7 @@
|
|
13
13
|
</div>
|
14
14
|
<slot name="extraContent"></slot>
|
15
15
|
</div>
|
16
|
-
<slot name="nest" class="${d.o(
|
16
|
+
<slot name="nest" class="${d.o(r)}">
|
17
17
|
<div
|
18
18
|
class="endOfNest"
|
19
19
|
style="--indent:${this.indentLevel*this.indentMultiple+this.indentMultiple}px"
|
@@ -21,6 +21,6 @@
|
|
21
21
|
No results
|
22
22
|
</div>
|
23
23
|
</slot>
|
24
|
-
`}_handleClick(){this.isOpen=!this.isOpen;const
|
25
|
-
${
|
26
|
-
`];o([n.
|
24
|
+
`}_handleClick(){this.isOpen=!this.isOpen;const r=new CustomEvent("select",{detail:{message:`Emitting an event from ${this}`},bubbles:!0,composed:!0});this.dispatchEvent(r)}};exports.CovalentTreeListItem.styles=[t.i`
|
25
|
+
${t.r(l)}
|
26
|
+
`];o([n.e({type:Boolean})],exports.CovalentTreeListItem.prototype,"isOpen",2);o([n.e({type:String})],exports.CovalentTreeListItem.prototype,"icon",2);o([n.e({type:Number})],exports.CovalentTreeListItem.prototype,"indentLevel",2);o([n.e({type:Number})],exports.CovalentTreeListItem.prototype,"indentMultiple",2);exports.CovalentTreeListItem=o([t.e("cv-tree-list-item")],exports.CovalentTreeListItem);const u=exports.CovalentTreeListItem;exports.default=u;
|
package/tree-list-item.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { i as m, r as f, s as g,
|
2
|
-
import { n } from "./property-
|
3
|
-
import { o as l } from "./class-map-
|
4
|
-
const
|
1
|
+
import { i as m, r as f, s as g, y as s, e as h } from "./query-assigned-elements-514e5265.mjs";
|
2
|
+
import { e as n } from "./property-ca27685b.mjs";
|
3
|
+
import { o as l } from "./class-map-08c84aeb.mjs";
|
4
|
+
const u = `.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-ripple-surface:before,.mdc-ripple-surface:after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface:after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded:before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded:after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded:after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface:before,.mdc-ripple-surface:after{top:0%;left:0%;width:100%;height:100%}.mdc-ripple-surface.mdc-ripple-upgraded:after{width:var(--mdc-ripple-fg-size, 50%);height:var(--mdc-ripple-fg-size, 50%)}.mdc-ripple-surface:before,.mdc-ripple-surface:after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover:before,.mdc-ripple-surface.mdc-ripple-surface--hover:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused:before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded):after{transition:opacity .15s linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.mdc-ripple-surface:after,.mdc-ripple-surface:before{border-radius:0 16px 16px 0}.itemContent{padding:0 32px 0 var(--indent);margin-right:16px}.itemContent:hover{cursor:pointer;background-color:var(--mdc-theme-surface-neutral-highlight-hover);border-radius:0 16px 16px 0}.selected{background-color:var(--mdc-theme-surface-primary-highlight);color:var(--mdc-theme-primary);border-radius:0 16px 16px 0}.selected:hover{background-color:var(--mdc-theme-surface-primary-highlight-hover)}.mainContent{display:flex;flex-direction:row;padding:4px 0}[name=label]::slotted(*){font-family:var(--mdc-typography-body1-font-family);font-size:var(--mdc-typography-body1-font-size);font-weight:var(--mdc-typography-body1-font-weight);line-height:var(--mdc-typography-body1-line-height);letter-spacing:.25px;padding-left:16px}[name=extraContent]::slotted(*){padding-left:64px;padding-bottom:4px;margin-top:-4px;letter-spacing:.4px;color:var(--mdc-theme-text-secondary-on-background);font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);font-weight:var(--mdc-typography-caption-font-weight);line-height:var(--mdc-typography-caption-line-height)}.hidden{display:none}.visible{display:flex;flex-direction:column}.endOfNest{padding:8px;padding-left:calc(var(--indent) + 20px);letter-spacing:.4px;user-select:none;color:var(--mdc-theme-text-disabled-on-background);font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);font-weight:var(--mdc-typography-caption-font-weight);line-height:var(--mdc-typography-caption-line-height)}.arrowIcon{color:var(--mdc-theme-text-primary-on-background)}.open{transition:transform .1s ease-out;transform:rotate(90deg)}.close{transition:transform .1s ease-in;transform:rotate(0)}
|
5
5
|
`;
|
6
6
|
var v = Object.defineProperty, y = Object.getOwnPropertyDescriptor, o = (t, i, a, p) => {
|
7
7
|
for (var e = p > 1 ? void 0 : p ? y(i, a) : i, c = t.length - 1, d; c >= 0; c--)
|
@@ -59,7 +59,7 @@ let r = class extends g {
|
|
59
59
|
};
|
60
60
|
r.styles = [
|
61
61
|
m`
|
62
|
-
${f(
|
62
|
+
${f(u)}
|
63
63
|
`
|
64
64
|
];
|
65
65
|
o([
|
@@ -75,7 +75,7 @@ o([
|
|
75
75
|
n({ type: Number })
|
76
76
|
], r.prototype, "indentMultiple", 2);
|
77
77
|
r = o([
|
78
|
-
|
78
|
+
h("cv-tree-list-item")
|
79
79
|
], r);
|
80
80
|
const z = r;
|
81
81
|
export {
|