@covalent/components 6.3.0 → 7.0.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 +6 -6
- package/action-ribbon.mjs +23 -24
- package/alert.js +4 -4
- package/alert.mjs +27 -28
- package/app-shell.js +4 -4
- package/app-shell.mjs +10 -10
- package/{base-element-d5abe37a.js → base-element-58a3f9ea.js} +1 -1
- package/{base-element-c3dc926e.mjs → base-element-67ae173f.mjs} +2 -2
- 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-4b94b017.mjs +62 -0
- package/class-map-b5efe8da.js +9 -0
- package/code-snippet.js +9 -9
- package/code-snippet.mjs +1276 -1213
- package/{dialog-8ee07177.js → dialog-79036d60.js} +4 -4
- package/{dialog-85c21333.mjs → dialog-9ac44447.mjs} +39 -39
- package/dialog.js +1 -1
- package/dialog.mjs +8 -8
- package/{directive-helpers-fce8cf91.js → directive-helpers-0ce1f995.js} +2 -2
- package/{directive-helpers-725a181d.mjs → directive-helpers-e3ea6592.mjs} +3 -3
- 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-7bc382d8.js → event-options-3f5eb195.js} +1 -1
- package/{event-options-3937d997.mjs → event-options-78d6cf94.mjs} +1 -1
- package/{form-element-6dbd7afa.mjs → form-element-bd973124.mjs} +4 -4
- package/{form-element-d4e7bcdb.js → form-element-ead758d4.js} +2 -2
- package/{foundation-c580100a.mjs → foundation-3f556da7.mjs} +78 -28
- package/{foundation-3f55a9dc.js → foundation-62d4413d.js} +24 -3
- 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-639ed018.mjs → if-defined-c367f208.mjs} +1 -1
- package/if-defined-f1c45245.js +5 -0
- package/index.js +1 -1
- package/index.mjs +120 -121
- package/linear-progress.js +6 -6
- package/linear-progress.mjs +13 -13
- package/{list-defdaa3b.js → list-05db7fed.js} +2 -2
- package/{list-d616957b.mjs → list-066f5de4.mjs} +3 -3
- package/list-expansion.js +4 -4
- package/list-expansion.mjs +25 -25
- package/{list-item-3fa66f09.js → list-item-8da7ba96.js} +3 -3
- package/{list-item-d5c05e10.mjs → list-item-ba77097d.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-10e977f2.mjs → mwc-checkbox-base-3da36456.mjs} +21 -21
- package/{mwc-checkbox-base-435c1f1d.js → mwc-checkbox-base-d46c7666.js} +9 -9
- package/{mwc-checkbox.css-b7abc7fd.mjs → mwc-checkbox.css-8f4f1a9b.mjs} +1 -1
- package/{mwc-checkbox.css-956e3d6c.js → mwc-checkbox.css-b3434429.js} +1 -1
- package/{mwc-drawer-base-f44fcf34.js → mwc-drawer-base-8eecb1de.js} +6 -6
- package/{mwc-drawer-base-b2b772c3.mjs → mwc-drawer-base-fe660bdf.mjs} +10 -10
- package/{mwc-icon-b96fb867.js → mwc-icon-8c9cd0c9.js} +2 -2
- package/{mwc-icon-c7013880.mjs → mwc-icon-ba18383d.mjs} +2 -2
- package/{mwc-line-ripple-directive-a97ce725.js → mwc-line-ripple-directive-d1cf9570.js} +3 -3
- package/{mwc-line-ripple-directive-c3e1f04a.mjs → mwc-line-ripple-directive-ffce2cff.mjs} +6 -6
- package/{mwc-list-base-c0f8af1c.mjs → mwc-list-base-32d4ac31.mjs} +9 -9
- package/{mwc-list-base-7d5f7278.js → mwc-list-base-cb3500b4.js} +4 -4
- package/{mwc-list-item-base-803b9771.js → mwc-list-item-base-4a4d1e1b.js} +8 -8
- package/{mwc-list-item-base-acef0223.mjs → mwc-list-item-base-8654347d.mjs} +7 -7
- package/{mwc-list-item.css-401e2407.js → mwc-list-item.css-25adc0c4.js} +1 -1
- package/{mwc-list-item.css-b5481d96.mjs → mwc-list-item.css-b0009fc7.mjs} +1 -1
- package/{mwc-menu-base-8970b43d.mjs → mwc-menu-base-572a76b9.mjs} +11 -11
- package/{mwc-menu-base-ac49fe54.js → mwc-menu-base-f14ec544.js} +17 -17
- package/{mwc-radio-base-442d495a.js → mwc-radio-base-470b4fcc.js} +4 -4
- package/{mwc-radio-base-c29e6f42.mjs → mwc-radio-base-9446d39b.mjs} +11 -11
- package/{mwc-radio.css-388ad26d.js → mwc-radio.css-4e140252.js} +1 -1
- package/{mwc-radio.css-4694aa9c.mjs → mwc-radio.css-7454bb11.mjs} +1 -1
- package/{mwc-slider.css-336f809b.mjs → mwc-slider.css-10adbaf8.mjs} +12 -12
- package/{mwc-slider.css-48f02f1e.js → mwc-slider.css-9dd57b10.js} +11 -11
- package/{mwc-tab-base-7fb3d339.mjs → mwc-tab-base-4ba47acc.mjs} +14 -14
- package/{mwc-tab-base-1a19b299.js → mwc-tab-base-fc3ffb43.js} +13 -13
- package/{mwc-top-app-bar-base-14e0a018.js → mwc-top-app-bar-base-0304e67f.js} +8 -8
- package/{mwc-top-app-bar-base-79c87e69.mjs → mwc-top-app-bar-base-adc4168a.mjs} +22 -24
- package/nav-list-item.js +2 -2
- package/nav-list-item.mjs +13 -13
- package/package.json +1 -1
- package/{property-074570d1.js → property-57f6f6fe.js} +1 -1
- package/{property-ca27685b.mjs → property-9b6ea53b.mjs} +9 -9
- package/{query-2ba749b7.js → query-680f1868.js} +1 -1
- package/{query-assigned-elements-514e5265.mjs → query-assigned-elements-4a39219d.mjs} +153 -152
- package/query-assigned-elements-f623705d.js +31 -0
- package/{query-assigned-nodes-9ec0fa5f.js → query-assigned-nodes-99eae71d.js} +1 -1
- package/{query-assigned-nodes-bea12e0c.mjs → query-assigned-nodes-df691e78.mjs} +1 -1
- package/{query-1e7846ea.mjs → query-d843aa92.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-227497d3.mjs → ripple-handlers-321219b8.mjs} +10 -10
- package/{ripple-handlers-2176f137.js → ripple-handlers-c82b1232.js} +5 -5
- 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-0974a8e5.js +5 -0
- package/{state-6f7e570d.mjs → state-b5e865db.mjs} +1 -1
- 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-88d2563f.js +5 -0
- package/style-map-bc3ed3e0.mjs +44 -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-507c6a06.js → textfield-0993c163.js} +12 -12
- package/{textfield-276b0ded.mjs → textfield-2cee5a1a.mjs} +14 -14
- 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 +32 -11
- package/tooltip.mjs +611 -516
- package/{top-app-bar-34e85527.js → top-app-bar-a531c1b4.js} +1 -1
- package/{top-app-bar-a236c3bc.mjs → top-app-bar-f83386e0.mjs} +1 -1
- package/top-app-bar-fixed.js +89 -5
- package/top-app-bar-fixed.mjs +279 -37
- 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-e6a11c8a.js +1 -0
- package/tslib.es6-f1eaf65c.mjs +82 -0
- package/typography.js +3 -3
- package/typography.mjs +2 -2
- package/{utils-dc65fdc9.mjs → utils-2932417c.mjs} +2 -2
- package/class-map-08c84aeb.mjs +0 -62
- package/class-map-50b8edb4.js +0 -9
- package/foundation-2334d146.mjs +0 -60
- package/foundation-e830bd94.js +0 -22
- package/if-defined-cb12d481.js +0 -5
- package/query-assigned-elements-07e38f46.js +0 -33
- package/state-949232e6.js +0 -5
- package/style-map-2cb0fb63.mjs +0 -40
- package/style-map-3056a771.js +0 -5
- package/tslib.es6-6b53b818.js +0 -1
- package/tslib.es6-b5e819a6.mjs +0 -82
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const d=require("./tslib.es6-
|
1
|
+
"use strict";const d=require("./tslib.es6-e6a11c8a.js"),V=require("./ripple-handlers-c82b1232.js"),k=require("./aria-property-849c8816.js"),L=require("./form-element-ead758d4.js"),m=require("./query-assigned-elements-f623705d.js"),b=require("./property-57f6f6fe.js"),f=require("./state-0974a8e5.js"),g=require("./query-680f1868.js"),x=require("./class-map-b5efe8da.js"),A=require("./if-defined-f1c45245.js"),U=require("./style-map-88d2563f.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2020 Google Inc.
|
4
4
|
*
|
@@ -61,7 +61,7 @@
|
|
61
61
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
62
62
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
63
63
|
* THE SOFTWARE.
|
64
|
-
*/var
|
64
|
+
*/var M={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}};function H(a){return!!a.document&&typeof a.document.createElement=="function"}function w(a,r){if(H(a)&&r in M){var t=a.document.createElement("div"),e=M[r],i=e.standard,n=e.prefixed,s=i in t.style;return s?i:n}return r}/**
|
65
65
|
* @license
|
66
66
|
* Copyright 2016 Google Inc.
|
67
67
|
*
|
@@ -124,24 +124,24 @@
|
|
124
124
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
125
125
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
126
126
|
* THE SOFTWARE.
|
127
|
-
*/var I;(function(a){a.SLIDER_UPDATE="slider_update"})(I||(I={}));var C=typeof window<"u",B=function(a){d.__extends(r,a);function r(t){var e=a.call(this,d.__assign(d.__assign({},r.defaultAdapter),t))||this;return e.initialStylesRemoved=!1,e.isDisabled=!1,e.isDiscrete=!1,e.step=N.STEP_SIZE,e.minRange=N.MIN_RANGE,e.hasTickMarks=!1,e.isRange=!1,e.thumb=null,e.downEventClientX=null,e.startThumbKnobWidth=0,e.endThumbKnobWidth=0,e.animFrame=new F,e}return Object.defineProperty(r,"defaultAdapter",{get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},addThumbClass:function(){},removeThumbClass:function(){},getAttribute:function(){return null},getInputValue:function(){return""},setInputValue:function(){},getInputAttribute:function(){return null},setInputAttribute:function(){return null},removeInputAttribute:function(){return null},focusInput:function(){},isInputFocused:function(){return!1},shouldHideFocusStylesForPointerEvents:function(){return!1},getThumbKnobWidth:function(){return 0},getValueIndicatorContainerWidth:function(){return 0},getThumbBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},isRTL:function(){return!1},setThumbStyleProperty:function(){},removeThumbStyleProperty:function(){},setTrackActiveStyleProperty:function(){},removeTrackActiveStyleProperty:function(){},setValueIndicatorText:function(){},getValueToAriaValueTextFn:function(){return null},updateTickMarks:function(){},setPointerCapture:function(){},emitChangeEvent:function(){},emitInputEvent:function(){},emitDragStartEvent:function(){},emitDragEndEvent:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){},registerThumbEventHandler:function(){},deregisterThumbEventHandler:function(){},registerInputEventHandler:function(){},deregisterInputEventHandler:function(){},registerBodyEventHandler:function(){},deregisterBodyEventHandler:function(){},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!1,configurable:!0}),r.prototype.init=function(){var t=this;this.isDisabled=this.adapter.hasClass(l.DISABLED),this.isDiscrete=this.adapter.hasClass(l.DISCRETE),this.hasTickMarks=this.adapter.hasClass(l.TICK_MARKS),this.isRange=this.adapter.hasClass(l.RANGE);var e=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(h.INPUT_MIN,this.isRange?exports.Thumb.START:exports.Thumb.END),h.INPUT_MIN),i=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(h.INPUT_MAX,exports.Thumb.END),h.INPUT_MAX),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(h.INPUT_VALUE,exports.Thumb.END),h.INPUT_VALUE),s=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(h.INPUT_VALUE,exports.Thumb.START),h.INPUT_VALUE):e,u=this.adapter.getInputAttribute(h.INPUT_STEP,exports.Thumb.END),p=u?this.convertAttributeValueToNumber(u,h.INPUT_STEP):this.step,T=this.adapter.getAttribute(h.DATA_MIN_RANGE),v=T?this.convertAttributeValueToNumber(T,h.DATA_MIN_RANGE):this.minRange;this.validateProperties({min:e,max:i,value:n,valueStart:s,step:p,minRange:v}),this.min=e,this.max=i,this.value=n,this.valueStart=s,this.step=p,this.minRange=v,this.numDecimalPlaces=P(this.step),this.valueBeforeDownEvent=n,this.valueStartBeforeDownEvent=s,this.mousedownOrTouchstartListener=this.handleMousedownOrTouchstart.bind(this),this.moveListener=this.handleMove.bind(this),this.pointerdownListener=this.handlePointerdown.bind(this),this.pointerupListener=this.handlePointerup.bind(this),this.thumbMouseenterListener=this.handleThumbMouseenter.bind(this),this.thumbMouseleaveListener=this.handleThumbMouseleave.bind(this),this.inputStartChangeListener=function(){t.handleInputChange(exports.Thumb.START)},this.inputEndChangeListener=function(){t.handleInputChange(exports.Thumb.END)},this.inputStartFocusListener=function(){t.handleInputFocus(exports.Thumb.START)},this.inputEndFocusListener=function(){t.handleInputFocus(exports.Thumb.END)},this.inputStartBlurListener=function(){t.handleInputBlur(exports.Thumb.START)},this.inputEndBlurListener=function(){t.handleInputBlur(exports.Thumb.END)},this.resizeListener=this.handleResize.bind(this),this.registerEventHandlers()},r.prototype.destroy=function(){this.deregisterEventHandlers()},r.prototype.setMin=function(t){this.min=t,this.isRange||(this.valueStart=t),this.updateUI()},r.prototype.setMax=function(t){this.max=t,this.updateUI()},r.prototype.getMin=function(){return this.min},r.prototype.getMax=function(){return this.max},r.prototype.getValue=function(){return this.value},r.prototype.setValue=function(t){if(this.isRange&&t<this.valueStart+this.minRange)throw new Error("end thumb value ("+t+") must be >= start thumb "+("value ("+this.valueStart+") + min range ("+this.minRange+")"));this.updateValue(t,exports.Thumb.END)},r.prototype.getValueStart=function(){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");return this.valueStart},r.prototype.setValueStart=function(t){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&t>this.value-this.minRange)throw new Error("start thumb value ("+t+") must be <= end thumb "+("value ("+this.value+") - min range ("+this.minRange+")"));this.updateValue(t,exports.Thumb.START)},r.prototype.setStep=function(t){this.step=t,this.numDecimalPlaces=P(t),this.updateUI()},r.prototype.setMinRange=function(t){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");if(t<0)throw new Error("`minRange` must be non-negative. "+("Current value: "+t));if(this.value-this.valueStart<t)throw new Error("start thumb value ("+this.valueStart+") and end thumb value "+("("+this.value+") must differ by at least "+t+"."));this.minRange=t},r.prototype.setIsDiscrete=function(t){this.isDiscrete=t,this.updateValueIndicatorUI(),this.updateTickMarksUI()},r.prototype.getStep=function(){return this.step},r.prototype.getMinRange=function(){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");return this.minRange},r.prototype.setHasTickMarks=function(t){this.hasTickMarks=t,this.updateTickMarksUI()},r.prototype.getDisabled=function(){return this.isDisabled},r.prototype.setDisabled=function(t){this.isDisabled=t,t?(this.adapter.addClass(l.DISABLED),this.isRange&&this.adapter.setInputAttribute(h.INPUT_DISABLED,"",exports.Thumb.START),this.adapter.setInputAttribute(h.INPUT_DISABLED,"",exports.Thumb.END)):(this.adapter.removeClass(l.DISABLED),this.isRange&&this.adapter.removeInputAttribute(h.INPUT_DISABLED,exports.Thumb.START),this.adapter.removeInputAttribute(h.INPUT_DISABLED,exports.Thumb.END))},r.prototype.getIsRange=function(){return this.isRange},r.prototype.layout=function(t){var e=t===void 0?{}:t,i=e.skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(exports.Thumb.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(exports.Thumb.END)),i||this.updateUI()},r.prototype.handleResize=function(){this.layout()},r.prototype.handleDown=function(t){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var e=t.clientX!=null?t.clientX:t.targetTouches[0].clientX;this.downEventClientX=e;var i=this.mapClientXOnSliderScale(e);this.thumb=this.getThumbFromDownEvent(e,i),this.thumb!==null&&(this.handleDragStart(t,i,this.thumb),this.updateValue(i,this.thumb,{emitInputEvent:!0}))}},r.prototype.handleMove=function(t){if(!this.isDisabled){t.preventDefault();var e=t.clientX!=null?t.clientX:t.targetTouches[0].clientX,i=this.thumb!=null;if(this.thumb=this.getThumbFromMoveEvent(e),this.thumb!==null){var n=this.mapClientXOnSliderScale(e);i||(this.handleDragStart(t,n,this.thumb),this.adapter.emitDragStartEvent(n,this.thumb)),this.updateValue(n,this.thumb,{emitInputEvent:!0})}}},r.prototype.handleUp=function(){var t,e;if(!(this.isDisabled||this.thumb===null)){!((e=(t=this.adapter).shouldHideFocusStylesForPointerEvents)===null||e===void 0)&&e.call(t)&&this.handleInputBlur(this.thumb);var i=this.thumb===exports.Thumb.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,n=this.thumb===exports.Thumb.START?this.valueStart:this.value;i!==n&&this.adapter.emitChangeEvent(n,this.thumb),this.adapter.emitDragEndEvent(n,this.thumb),this.thumb=null}},r.prototype.handleThumbMouseenter=function(){!this.isDiscrete||!this.isRange||(this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR,exports.Thumb.START),this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR,exports.Thumb.END))},r.prototype.handleThumbMouseleave=function(){var t,e;!this.isDiscrete||!this.isRange||!(!((e=(t=this.adapter).shouldHideFocusStylesForPointerEvents)===null||e===void 0)&&e.call(t))&&(this.adapter.isInputFocused(exports.Thumb.START)||this.adapter.isInputFocused(exports.Thumb.END))||this.thumb||(this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR,exports.Thumb.START),this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR,exports.Thumb.END))},r.prototype.handleMousedownOrTouchstart=function(t){var e=this,i=t.type==="mousedown"?"mousemove":"touchmove";this.adapter.registerBodyEventHandler(i,this.moveListener);var n=function(){e.handleUp(),e.adapter.deregisterBodyEventHandler(i,e.moveListener),e.adapter.deregisterEventHandler("mouseup",n),e.adapter.deregisterEventHandler("touchend",n)};this.adapter.registerBodyEventHandler("mouseup",n),this.adapter.registerBodyEventHandler("touchend",n),this.handleDown(t)},r.prototype.handlePointerdown=function(t){var e=t.button===0;e&&(t.pointerId!=null&&this.adapter.setPointerCapture(t.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(t))},r.prototype.handleInputChange=function(t){var e=Number(this.adapter.getInputValue(t));t===exports.Thumb.START?this.setValueStart(e):this.setValue(e),this.adapter.emitChangeEvent(t===exports.Thumb.START?this.valueStart:this.value,t),this.adapter.emitInputEvent(t===exports.Thumb.START?this.valueStart:this.value,t)},r.prototype.handleInputFocus=function(t){if(this.adapter.addThumbClass(l.THUMB_FOCUSED,t),!!this.isDiscrete&&(this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===exports.Thumb.START?exports.Thumb.END:exports.Thumb.START;this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR,e)}},r.prototype.handleInputBlur=function(t){if(this.adapter.removeThumbClass(l.THUMB_FOCUSED,t),!!this.isDiscrete&&(this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===exports.Thumb.START?exports.Thumb.END:exports.Thumb.START;this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR,e)}},r.prototype.handleDragStart=function(t,e,i){var n,s;this.adapter.emitDragStartEvent(e,i),this.adapter.focusInput(i),!((s=(n=this.adapter).shouldHideFocusStylesForPointerEvents)===null||s===void 0)&&s.call(n)&&this.handleInputFocus(i),t.preventDefault()},r.prototype.getThumbFromDownEvent=function(t,e){if(!this.isRange)return exports.Thumb.END;var i=this.adapter.getThumbBoundingClientRect(exports.Thumb.START),n=this.adapter.getThumbBoundingClientRect(exports.Thumb.END),s=t>=i.left&&t<=i.right,u=t>=n.left&&t<=n.right;return s&&u?null:s?exports.Thumb.START:u?exports.Thumb.END:e<this.valueStart?exports.Thumb.START:e>this.value?exports.Thumb.END:e-this.valueStart<=this.value-e?exports.Thumb.START:exports.Thumb.END},r.prototype.getThumbFromMoveEvent=function(t){if(this.thumb!==null)return this.thumb;if(this.downEventClientX===null)throw new Error("`downEventClientX` is null after move event.");var e=Math.abs(this.downEventClientX-t)<N.THUMB_UPDATE_MIN_PX;if(e)return this.thumb;var i=t<this.downEventClientX;return i?this.adapter.isRTL()?exports.Thumb.END:exports.Thumb.START:this.adapter.isRTL()?exports.Thumb.START:exports.Thumb.END},r.prototype.updateUI=function(t){t?this.updateThumbAndInputAttributes(t):(this.updateThumbAndInputAttributes(exports.Thumb.START),this.updateThumbAndInputAttributes(exports.Thumb.END)),this.updateThumbAndTrackUI(t),this.updateValueIndicatorUI(t),this.updateTickMarksUI()},r.prototype.updateThumbAndInputAttributes=function(t){if(t){var e=this.isRange&&t===exports.Thumb.START?this.valueStart:this.value,i=String(e);this.adapter.setInputAttribute(h.INPUT_VALUE,i,t),this.isRange&&t===exports.Thumb.START?this.adapter.setInputAttribute(h.INPUT_MIN,String(e+this.minRange),exports.Thumb.END):this.isRange&&t===exports.Thumb.END&&this.adapter.setInputAttribute(h.INPUT_MAX,String(e-this.minRange),exports.Thumb.START),this.adapter.getInputValue(t)!==i&&this.adapter.setInputValue(i,t);var n=this.adapter.getValueToAriaValueTextFn();n&&this.adapter.setInputAttribute(h.ARIA_VALUETEXT,n(e,t),t)}},r.prototype.updateValueIndicatorUI=function(t){if(this.isDiscrete){var e=this.isRange&&t===exports.Thumb.START?this.valueStart:this.value;this.adapter.setValueIndicatorText(e,t===exports.Thumb.START?exports.Thumb.START:exports.Thumb.END),!t&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,exports.Thumb.START)}},r.prototype.updateTickMarksUI=function(){if(!(!this.isDiscrete||!this.hasTickMarks)){var t=(this.valueStart-this.min)/this.step,e=(this.value-this.valueStart)/this.step+1,i=(this.max-this.value)/this.step,n=Array.from({length:t}).fill(_.INACTIVE),s=Array.from({length:e}).fill(_.ACTIVE),u=Array.from({length:i}).fill(_.INACTIVE);this.adapter.updateTickMarks(n.concat(s).concat(u))}},r.prototype.mapClientXOnSliderScale=function(t){var e=t-this.rect.left,i=e/this.rect.width;this.adapter.isRTL()&&(i=1-i);var n=this.min+i*(this.max-this.min);return n===this.max||n===this.min?n:Number(this.quantize(n).toFixed(this.numDecimalPlaces))},r.prototype.quantize=function(t){var e=Math.round((t-this.min)/this.step);return this.min+e*this.step},r.prototype.updateValue=function(t,e,i){var n=i===void 0?{}:i,s=n.emitInputEvent;if(t=this.clampValue(t,e),this.isRange&&e===exports.Thumb.START){if(this.valueStart===t)return;this.valueStart=t}else{if(this.value===t)return;this.value=t}this.updateUI(e),s&&this.adapter.emitInputEvent(e===exports.Thumb.START?this.valueStart:this.value,e)},r.prototype.clampValue=function(t,e){t=Math.min(Math.max(t,this.min),this.max);var i=this.isRange&&e===exports.Thumb.START&&t>this.value-this.minRange;if(i)return this.value-this.minRange;var n=this.isRange&&e===exports.Thumb.END&&t<this.valueStart+this.minRange;return n?this.valueStart+this.minRange:t},r.prototype.updateThumbAndTrackUI=function(t){var e=this,i=this,n=i.max,s=i.min,u=(this.value-this.valueStart)/(n-s),p=u*this.rect.width,T=this.adapter.isRTL(),v=C?x(window,"transform"):"transform";if(this.isRange){var E=this.adapter.isRTL()?(n-this.value)/(n-s)*this.rect.width:(this.valueStart-s)/(n-s)*this.rect.width,R=E+p;this.animFrame.request(I.SLIDER_UPDATE,function(){var y=!T&&t===exports.Thumb.START||T&&t!==exports.Thumb.START;y?(e.adapter.setTrackActiveStyleProperty("transform-origin","right"),e.adapter.setTrackActiveStyleProperty("left","auto"),e.adapter.setTrackActiveStyleProperty("right",e.rect.width-R+"px")):(e.adapter.setTrackActiveStyleProperty("transform-origin","left"),e.adapter.setTrackActiveStyleProperty("right","auto"),e.adapter.setTrackActiveStyleProperty("left",E+"px")),e.adapter.setTrackActiveStyleProperty(v,"scaleX("+u+")");var S=T?R:E,D=e.adapter.isRTL()?E:R;(t===exports.Thumb.START||!t||!e.initialStylesRemoved)&&(e.adapter.setThumbStyleProperty(v,"translateX("+S+"px)",exports.Thumb.START),e.alignValueIndicator(exports.Thumb.START,S)),(t===exports.Thumb.END||!t||!e.initialStylesRemoved)&&(e.adapter.setThumbStyleProperty(v,"translateX("+D+"px)",exports.Thumb.END),e.alignValueIndicator(exports.Thumb.END,D)),e.removeInitialStyles(T),e.updateOverlappingThumbsUI(S,D,t)})}else this.animFrame.request(I.SLIDER_UPDATE,function(){var y=T?e.rect.width-p:p;e.adapter.setThumbStyleProperty(v,"translateX("+y+"px)",exports.Thumb.END),e.alignValueIndicator(exports.Thumb.END,y),e.adapter.setTrackActiveStyleProperty(v,"scaleX("+u+")"),e.removeInitialStyles(T)})},r.prototype.alignValueIndicator=function(t,e){if(this.isDiscrete){var i=this.adapter.getThumbBoundingClientRect(t).width/2,n=this.adapter.getValueIndicatorContainerWidth(t),s=this.adapter.getBoundingClientRect().width;n/2>e+i?(this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_LEFT,i+"px",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"0",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",t)):n/2>s-e+i?(this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_LEFT,"auto",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_RIGHT,i+"px",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(50%)",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"auto",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"0",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",t)):(this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_LEFT,"50%",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"50%",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"translateX(-50%)",t))}},r.prototype.removeInitialStyles=function(t){if(!this.initialStylesRemoved){var e=t?"right":"left";this.adapter.removeThumbStyleProperty(e,exports.Thumb.END),this.isRange&&this.adapter.removeThumbStyleProperty(e,exports.Thumb.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},r.prototype.resetTrackAndThumbAnimation=function(){var t=this;if(this.isDiscrete){var e=C?x(window,"transition"):"transition",i="none 0s ease 0s";this.adapter.setThumbStyleProperty(e,i,exports.Thumb.END),this.isRange&&this.adapter.setThumbStyleProperty(e,i,exports.Thumb.START),this.adapter.setTrackActiveStyleProperty(e,i),requestAnimationFrame(function(){t.adapter.removeThumbStyleProperty(e,exports.Thumb.END),t.adapter.removeTrackActiveStyleProperty(e),t.isRange&&t.adapter.removeThumbStyleProperty(e,exports.Thumb.START)})}},r.prototype.updateOverlappingThumbsUI=function(t,e,i){var n=!1;if(this.adapter.isRTL()){var s=t-this.startThumbKnobWidth/2,u=e+this.endThumbKnobWidth/2;n=u>=s}else{var p=t+this.startThumbKnobWidth/2,T=e-this.endThumbKnobWidth/2;n=p>=T}n?(this.adapter.addThumbClass(l.THUMB_TOP,i||exports.Thumb.END),this.adapter.removeThumbClass(l.THUMB_TOP,i===exports.Thumb.START?exports.Thumb.END:exports.Thumb.START)):(this.adapter.removeThumbClass(l.THUMB_TOP,exports.Thumb.START),this.adapter.removeThumbClass(l.THUMB_TOP,exports.Thumb.END))},r.prototype.convertAttributeValueToNumber=function(t,e){if(t===null)throw new Error("MDCSliderFoundation: `"+e+"` must be non-null.");var i=Number(t);if(isNaN(i))throw new Error("MDCSliderFoundation: `"+e+"` value is `"+t+"`, but must be a number.");return i},r.prototype.validateProperties=function(t){var e=t.min,i=t.max,n=t.value,s=t.valueStart,u=t.step,p=t.minRange;if(e>=i)throw new Error("MDCSliderFoundation: min must be strictly less than max. "+("Current: [min: "+e+", max: "+i+"]"));if(u<=0)throw new Error("MDCSliderFoundation: step must be a positive number. "+("Current step: "+u));if(this.isRange){if(n<e||n>i||s<e||s>i)throw new Error("MDCSliderFoundation: values must be in [min, max] range. "+("Current values: [start value: "+s+", end value: ")+(n+", min: "+e+", max: "+i+"]"));if(s>n)throw new Error("MDCSliderFoundation: start value must be <= end value. "+("Current values: [start value: "+s+", end value: "+n+"]"));if(p<0)throw new Error("MDCSliderFoundation: minimum range must be non-negative. "+("Current min range: "+p));if(n-s<p)throw new Error("MDCSliderFoundation: start value and end value must differ by at least "+(p+". Current values: [start value: "+s+", ")+("end value: "+n+"]"));var T=(s-e)/u,v=(n-e)/u;if(!Number.isInteger(parseFloat(T.toFixed(6)))||!Number.isInteger(parseFloat(v.toFixed(6))))throw new Error("MDCSliderFoundation: Slider values must be valid based on the "+("step value ("+u+"). Current values: [start value: ")+(s+", end value: "+n+", min: "+e+"]"))}else{if(n<e||n>i)throw new Error("MDCSliderFoundation: value must be in [min, max] range. "+("Current values: [value: "+n+", min: "+e+", max: "+i+"]"));var v=(n-e)/u;if(!Number.isInteger(parseFloat(v.toFixed(6))))throw new Error("MDCSliderFoundation: Slider value must be valid based on the "+("step value ("+u+"). Current value: "+n))}},r.prototype.registerEventHandlers=function(){this.adapter.registerWindowEventHandler("resize",this.resizeListener),r.SUPPORTS_POINTER_EVENTS?(this.adapter.registerEventHandler("pointerdown",this.pointerdownListener),this.adapter.registerEventHandler("pointerup",this.pointerupListener)):(this.adapter.registerEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.registerEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.registerThumbEventHandler(exports.Thumb.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(exports.Thumb.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(exports.Thumb.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(exports.Thumb.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(exports.Thumb.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(exports.Thumb.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(exports.Thumb.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(exports.Thumb.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(exports.Thumb.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(exports.Thumb.END,"blur",this.inputEndBlurListener)},r.prototype.deregisterEventHandlers=function(){this.adapter.deregisterWindowEventHandler("resize",this.resizeListener),r.SUPPORTS_POINTER_EVENTS?(this.adapter.deregisterEventHandler("pointerdown",this.pointerdownListener),this.adapter.deregisterEventHandler("pointerup",this.pointerupListener)):(this.adapter.deregisterEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.deregisterEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.deregisterThumbEventHandler(exports.Thumb.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(exports.Thumb.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(exports.Thumb.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(exports.Thumb.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(exports.Thumb.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(exports.Thumb.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(exports.Thumb.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(exports.Thumb.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(exports.Thumb.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(exports.Thumb.END,"blur",this.inputEndBlurListener)},r.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},r.SUPPORTS_POINTER_EVENTS=C&&Boolean(window.PointerEvent)&&!$(),r}(O);function $(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function P(a){var r=/(?:\.(\d+))?(?:[eE]([+\-]?\d+))?$/.exec(String(a));if(!r)return 0;var t=r[1]||"",e=r[2]||0;return Math.max(0,(t==="0"?0:t.length)-Number(e))}/**
|
127
|
+
*/var I;(function(a){a.SLIDER_UPDATE="slider_update"})(I||(I={}));var C=typeof window<"u",B=function(a){d.__extends(r,a);function r(t){var e=a.call(this,d.__assign(d.__assign({},r.defaultAdapter),t))||this;return e.initialStylesRemoved=!1,e.isDisabled=!1,e.isDiscrete=!1,e.step=N.STEP_SIZE,e.minRange=N.MIN_RANGE,e.hasTickMarks=!1,e.isRange=!1,e.thumb=null,e.downEventClientX=null,e.startThumbKnobWidth=0,e.endThumbKnobWidth=0,e.animFrame=new F,e}return Object.defineProperty(r,"defaultAdapter",{get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},addThumbClass:function(){},removeThumbClass:function(){},getAttribute:function(){return null},getInputValue:function(){return""},setInputValue:function(){},getInputAttribute:function(){return null},setInputAttribute:function(){return null},removeInputAttribute:function(){return null},focusInput:function(){},isInputFocused:function(){return!1},shouldHideFocusStylesForPointerEvents:function(){return!1},getThumbKnobWidth:function(){return 0},getValueIndicatorContainerWidth:function(){return 0},getThumbBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},isRTL:function(){return!1},setThumbStyleProperty:function(){},removeThumbStyleProperty:function(){},setTrackActiveStyleProperty:function(){},removeTrackActiveStyleProperty:function(){},setValueIndicatorText:function(){},getValueToAriaValueTextFn:function(){return null},updateTickMarks:function(){},setPointerCapture:function(){},emitChangeEvent:function(){},emitInputEvent:function(){},emitDragStartEvent:function(){},emitDragEndEvent:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){},registerThumbEventHandler:function(){},deregisterThumbEventHandler:function(){},registerInputEventHandler:function(){},deregisterInputEventHandler:function(){},registerBodyEventHandler:function(){},deregisterBodyEventHandler:function(){},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!1,configurable:!0}),r.prototype.init=function(){var t=this;this.isDisabled=this.adapter.hasClass(l.DISABLED),this.isDiscrete=this.adapter.hasClass(l.DISCRETE),this.hasTickMarks=this.adapter.hasClass(l.TICK_MARKS),this.isRange=this.adapter.hasClass(l.RANGE);var e=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(h.INPUT_MIN,this.isRange?exports.Thumb.START:exports.Thumb.END),h.INPUT_MIN),i=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(h.INPUT_MAX,exports.Thumb.END),h.INPUT_MAX),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(h.INPUT_VALUE,exports.Thumb.END),h.INPUT_VALUE),s=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(h.INPUT_VALUE,exports.Thumb.START),h.INPUT_VALUE):e,u=this.adapter.getInputAttribute(h.INPUT_STEP,exports.Thumb.END),p=u?this.convertAttributeValueToNumber(u,h.INPUT_STEP):this.step,T=this.adapter.getAttribute(h.DATA_MIN_RANGE),v=T?this.convertAttributeValueToNumber(T,h.DATA_MIN_RANGE):this.minRange;this.validateProperties({min:e,max:i,value:n,valueStart:s,step:p,minRange:v}),this.min=e,this.max=i,this.value=n,this.valueStart=s,this.step=p,this.minRange=v,this.numDecimalPlaces=P(this.step),this.valueBeforeDownEvent=n,this.valueStartBeforeDownEvent=s,this.mousedownOrTouchstartListener=this.handleMousedownOrTouchstart.bind(this),this.moveListener=this.handleMove.bind(this),this.pointerdownListener=this.handlePointerdown.bind(this),this.pointerupListener=this.handlePointerup.bind(this),this.thumbMouseenterListener=this.handleThumbMouseenter.bind(this),this.thumbMouseleaveListener=this.handleThumbMouseleave.bind(this),this.inputStartChangeListener=function(){t.handleInputChange(exports.Thumb.START)},this.inputEndChangeListener=function(){t.handleInputChange(exports.Thumb.END)},this.inputStartFocusListener=function(){t.handleInputFocus(exports.Thumb.START)},this.inputEndFocusListener=function(){t.handleInputFocus(exports.Thumb.END)},this.inputStartBlurListener=function(){t.handleInputBlur(exports.Thumb.START)},this.inputEndBlurListener=function(){t.handleInputBlur(exports.Thumb.END)},this.resizeListener=this.handleResize.bind(this),this.registerEventHandlers()},r.prototype.destroy=function(){this.deregisterEventHandlers()},r.prototype.setMin=function(t){this.min=t,this.isRange||(this.valueStart=t),this.updateUI()},r.prototype.setMax=function(t){this.max=t,this.updateUI()},r.prototype.getMin=function(){return this.min},r.prototype.getMax=function(){return this.max},r.prototype.getValue=function(){return this.value},r.prototype.setValue=function(t){if(this.isRange&&t<this.valueStart+this.minRange)throw new Error("end thumb value ("+t+") must be >= start thumb "+("value ("+this.valueStart+") + min range ("+this.minRange+")"));this.updateValue(t,exports.Thumb.END)},r.prototype.getValueStart=function(){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");return this.valueStart},r.prototype.setValueStart=function(t){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&t>this.value-this.minRange)throw new Error("start thumb value ("+t+") must be <= end thumb "+("value ("+this.value+") - min range ("+this.minRange+")"));this.updateValue(t,exports.Thumb.START)},r.prototype.setStep=function(t){this.step=t,this.numDecimalPlaces=P(t),this.updateUI()},r.prototype.setMinRange=function(t){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");if(t<0)throw new Error("`minRange` must be non-negative. "+("Current value: "+t));if(this.value-this.valueStart<t)throw new Error("start thumb value ("+this.valueStart+") and end thumb value "+("("+this.value+") must differ by at least "+t+"."));this.minRange=t},r.prototype.setIsDiscrete=function(t){this.isDiscrete=t,this.updateValueIndicatorUI(),this.updateTickMarksUI()},r.prototype.getStep=function(){return this.step},r.prototype.getMinRange=function(){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");return this.minRange},r.prototype.setHasTickMarks=function(t){this.hasTickMarks=t,this.updateTickMarksUI()},r.prototype.getDisabled=function(){return this.isDisabled},r.prototype.setDisabled=function(t){this.isDisabled=t,t?(this.adapter.addClass(l.DISABLED),this.isRange&&this.adapter.setInputAttribute(h.INPUT_DISABLED,"",exports.Thumb.START),this.adapter.setInputAttribute(h.INPUT_DISABLED,"",exports.Thumb.END)):(this.adapter.removeClass(l.DISABLED),this.isRange&&this.adapter.removeInputAttribute(h.INPUT_DISABLED,exports.Thumb.START),this.adapter.removeInputAttribute(h.INPUT_DISABLED,exports.Thumb.END))},r.prototype.getIsRange=function(){return this.isRange},r.prototype.layout=function(t){var e=t===void 0?{}:t,i=e.skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(exports.Thumb.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(exports.Thumb.END)),i||this.updateUI()},r.prototype.handleResize=function(){this.layout()},r.prototype.handleDown=function(t){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var e=t.clientX!=null?t.clientX:t.targetTouches[0].clientX;this.downEventClientX=e;var i=this.mapClientXOnSliderScale(e);this.thumb=this.getThumbFromDownEvent(e,i),this.thumb!==null&&(this.handleDragStart(t,i,this.thumb),this.updateValue(i,this.thumb,{emitInputEvent:!0}))}},r.prototype.handleMove=function(t){if(!this.isDisabled){t.preventDefault();var e=t.clientX!=null?t.clientX:t.targetTouches[0].clientX,i=this.thumb!=null;if(this.thumb=this.getThumbFromMoveEvent(e),this.thumb!==null){var n=this.mapClientXOnSliderScale(e);i||(this.handleDragStart(t,n,this.thumb),this.adapter.emitDragStartEvent(n,this.thumb)),this.updateValue(n,this.thumb,{emitInputEvent:!0})}}},r.prototype.handleUp=function(){var t,e;if(!(this.isDisabled||this.thumb===null)){!((e=(t=this.adapter).shouldHideFocusStylesForPointerEvents)===null||e===void 0)&&e.call(t)&&this.handleInputBlur(this.thumb);var i=this.thumb===exports.Thumb.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,n=this.thumb===exports.Thumb.START?this.valueStart:this.value;i!==n&&this.adapter.emitChangeEvent(n,this.thumb),this.adapter.emitDragEndEvent(n,this.thumb),this.thumb=null}},r.prototype.handleThumbMouseenter=function(){!this.isDiscrete||!this.isRange||(this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR,exports.Thumb.START),this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR,exports.Thumb.END))},r.prototype.handleThumbMouseleave=function(){var t,e;!this.isDiscrete||!this.isRange||!(!((e=(t=this.adapter).shouldHideFocusStylesForPointerEvents)===null||e===void 0)&&e.call(t))&&(this.adapter.isInputFocused(exports.Thumb.START)||this.adapter.isInputFocused(exports.Thumb.END))||this.thumb||(this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR,exports.Thumb.START),this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR,exports.Thumb.END))},r.prototype.handleMousedownOrTouchstart=function(t){var e=this,i=t.type==="mousedown"?"mousemove":"touchmove";this.adapter.registerBodyEventHandler(i,this.moveListener);var n=function(){e.handleUp(),e.adapter.deregisterBodyEventHandler(i,e.moveListener),e.adapter.deregisterEventHandler("mouseup",n),e.adapter.deregisterEventHandler("touchend",n)};this.adapter.registerBodyEventHandler("mouseup",n),this.adapter.registerBodyEventHandler("touchend",n),this.handleDown(t)},r.prototype.handlePointerdown=function(t){var e=t.button===0;e&&(t.pointerId!=null&&this.adapter.setPointerCapture(t.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(t))},r.prototype.handleInputChange=function(t){var e=Number(this.adapter.getInputValue(t));t===exports.Thumb.START?this.setValueStart(e):this.setValue(e),this.adapter.emitChangeEvent(t===exports.Thumb.START?this.valueStart:this.value,t),this.adapter.emitInputEvent(t===exports.Thumb.START?this.valueStart:this.value,t)},r.prototype.handleInputFocus=function(t){if(this.adapter.addThumbClass(l.THUMB_FOCUSED,t),!!this.isDiscrete&&(this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===exports.Thumb.START?exports.Thumb.END:exports.Thumb.START;this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR,e)}},r.prototype.handleInputBlur=function(t){if(this.adapter.removeThumbClass(l.THUMB_FOCUSED,t),!!this.isDiscrete&&(this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===exports.Thumb.START?exports.Thumb.END:exports.Thumb.START;this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR,e)}},r.prototype.handleDragStart=function(t,e,i){var n,s;this.adapter.emitDragStartEvent(e,i),this.adapter.focusInput(i),!((s=(n=this.adapter).shouldHideFocusStylesForPointerEvents)===null||s===void 0)&&s.call(n)&&this.handleInputFocus(i),t.preventDefault()},r.prototype.getThumbFromDownEvent=function(t,e){if(!this.isRange)return exports.Thumb.END;var i=this.adapter.getThumbBoundingClientRect(exports.Thumb.START),n=this.adapter.getThumbBoundingClientRect(exports.Thumb.END),s=t>=i.left&&t<=i.right,u=t>=n.left&&t<=n.right;return s&&u?null:s?exports.Thumb.START:u?exports.Thumb.END:e<this.valueStart?exports.Thumb.START:e>this.value?exports.Thumb.END:e-this.valueStart<=this.value-e?exports.Thumb.START:exports.Thumb.END},r.prototype.getThumbFromMoveEvent=function(t){if(this.thumb!==null)return this.thumb;if(this.downEventClientX===null)throw new Error("`downEventClientX` is null after move event.");var e=Math.abs(this.downEventClientX-t)<N.THUMB_UPDATE_MIN_PX;if(e)return this.thumb;var i=t<this.downEventClientX;return i?this.adapter.isRTL()?exports.Thumb.END:exports.Thumb.START:this.adapter.isRTL()?exports.Thumb.START:exports.Thumb.END},r.prototype.updateUI=function(t){t?this.updateThumbAndInputAttributes(t):(this.updateThumbAndInputAttributes(exports.Thumb.START),this.updateThumbAndInputAttributes(exports.Thumb.END)),this.updateThumbAndTrackUI(t),this.updateValueIndicatorUI(t),this.updateTickMarksUI()},r.prototype.updateThumbAndInputAttributes=function(t){if(t){var e=this.isRange&&t===exports.Thumb.START?this.valueStart:this.value,i=String(e);this.adapter.setInputAttribute(h.INPUT_VALUE,i,t),this.isRange&&t===exports.Thumb.START?this.adapter.setInputAttribute(h.INPUT_MIN,String(e+this.minRange),exports.Thumb.END):this.isRange&&t===exports.Thumb.END&&this.adapter.setInputAttribute(h.INPUT_MAX,String(e-this.minRange),exports.Thumb.START),this.adapter.getInputValue(t)!==i&&this.adapter.setInputValue(i,t);var n=this.adapter.getValueToAriaValueTextFn();n&&this.adapter.setInputAttribute(h.ARIA_VALUETEXT,n(e,t),t)}},r.prototype.updateValueIndicatorUI=function(t){if(this.isDiscrete){var e=this.isRange&&t===exports.Thumb.START?this.valueStart:this.value;this.adapter.setValueIndicatorText(e,t===exports.Thumb.START?exports.Thumb.START:exports.Thumb.END),!t&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,exports.Thumb.START)}},r.prototype.updateTickMarksUI=function(){if(!(!this.isDiscrete||!this.hasTickMarks)){var t=(this.valueStart-this.min)/this.step,e=(this.value-this.valueStart)/this.step+1,i=(this.max-this.value)/this.step,n=Array.from({length:t}).fill(_.INACTIVE),s=Array.from({length:e}).fill(_.ACTIVE),u=Array.from({length:i}).fill(_.INACTIVE);this.adapter.updateTickMarks(n.concat(s).concat(u))}},r.prototype.mapClientXOnSliderScale=function(t){var e=t-this.rect.left,i=e/this.rect.width;this.adapter.isRTL()&&(i=1-i);var n=this.min+i*(this.max-this.min);return n===this.max||n===this.min?n:Number(this.quantize(n).toFixed(this.numDecimalPlaces))},r.prototype.quantize=function(t){var e=Math.round((t-this.min)/this.step);return this.min+e*this.step},r.prototype.updateValue=function(t,e,i){var n=i===void 0?{}:i,s=n.emitInputEvent;if(t=this.clampValue(t,e),this.isRange&&e===exports.Thumb.START){if(this.valueStart===t)return;this.valueStart=t}else{if(this.value===t)return;this.value=t}this.updateUI(e),s&&this.adapter.emitInputEvent(e===exports.Thumb.START?this.valueStart:this.value,e)},r.prototype.clampValue=function(t,e){t=Math.min(Math.max(t,this.min),this.max);var i=this.isRange&&e===exports.Thumb.START&&t>this.value-this.minRange;if(i)return this.value-this.minRange;var n=this.isRange&&e===exports.Thumb.END&&t<this.valueStart+this.minRange;return n?this.valueStart+this.minRange:t},r.prototype.updateThumbAndTrackUI=function(t){var e=this,i=this,n=i.max,s=i.min,u=(this.value-this.valueStart)/(n-s),p=u*this.rect.width,T=this.adapter.isRTL(),v=C?w(window,"transform"):"transform";if(this.isRange){var E=this.adapter.isRTL()?(n-this.value)/(n-s)*this.rect.width:(this.valueStart-s)/(n-s)*this.rect.width,R=E+p;this.animFrame.request(I.SLIDER_UPDATE,function(){var y=!T&&t===exports.Thumb.START||T&&t!==exports.Thumb.START;y?(e.adapter.setTrackActiveStyleProperty("transform-origin","right"),e.adapter.setTrackActiveStyleProperty("left","auto"),e.adapter.setTrackActiveStyleProperty("right",e.rect.width-R+"px")):(e.adapter.setTrackActiveStyleProperty("transform-origin","left"),e.adapter.setTrackActiveStyleProperty("right","auto"),e.adapter.setTrackActiveStyleProperty("left",E+"px")),e.adapter.setTrackActiveStyleProperty(v,"scaleX("+u+")");var S=T?R:E,D=e.adapter.isRTL()?E:R;(t===exports.Thumb.START||!t||!e.initialStylesRemoved)&&(e.adapter.setThumbStyleProperty(v,"translateX("+S+"px)",exports.Thumb.START),e.alignValueIndicator(exports.Thumb.START,S)),(t===exports.Thumb.END||!t||!e.initialStylesRemoved)&&(e.adapter.setThumbStyleProperty(v,"translateX("+D+"px)",exports.Thumb.END),e.alignValueIndicator(exports.Thumb.END,D)),e.removeInitialStyles(T),e.updateOverlappingThumbsUI(S,D,t)})}else this.animFrame.request(I.SLIDER_UPDATE,function(){var y=T?e.rect.width-p:p;e.adapter.setThumbStyleProperty(v,"translateX("+y+"px)",exports.Thumb.END),e.alignValueIndicator(exports.Thumb.END,y),e.adapter.setTrackActiveStyleProperty(v,"scaleX("+u+")"),e.removeInitialStyles(T)})},r.prototype.alignValueIndicator=function(t,e){if(this.isDiscrete){var i=this.adapter.getThumbBoundingClientRect(t).width/2,n=this.adapter.getValueIndicatorContainerWidth(t),s=this.adapter.getBoundingClientRect().width;n/2>e+i?(this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_LEFT,i+"px",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"0",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",t)):n/2>s-e+i?(this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_LEFT,"auto",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_RIGHT,i+"px",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(50%)",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"auto",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"0",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",t)):(this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_LEFT,"50%",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"50%",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(c.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"translateX(-50%)",t))}},r.prototype.removeInitialStyles=function(t){if(!this.initialStylesRemoved){var e=t?"right":"left";this.adapter.removeThumbStyleProperty(e,exports.Thumb.END),this.isRange&&this.adapter.removeThumbStyleProperty(e,exports.Thumb.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},r.prototype.resetTrackAndThumbAnimation=function(){var t=this;if(this.isDiscrete){var e=C?w(window,"transition"):"transition",i="none 0s ease 0s";this.adapter.setThumbStyleProperty(e,i,exports.Thumb.END),this.isRange&&this.adapter.setThumbStyleProperty(e,i,exports.Thumb.START),this.adapter.setTrackActiveStyleProperty(e,i),requestAnimationFrame(function(){t.adapter.removeThumbStyleProperty(e,exports.Thumb.END),t.adapter.removeTrackActiveStyleProperty(e),t.isRange&&t.adapter.removeThumbStyleProperty(e,exports.Thumb.START)})}},r.prototype.updateOverlappingThumbsUI=function(t,e,i){var n=!1;if(this.adapter.isRTL()){var s=t-this.startThumbKnobWidth/2,u=e+this.endThumbKnobWidth/2;n=u>=s}else{var p=t+this.startThumbKnobWidth/2,T=e-this.endThumbKnobWidth/2;n=p>=T}n?(this.adapter.addThumbClass(l.THUMB_TOP,i||exports.Thumb.END),this.adapter.removeThumbClass(l.THUMB_TOP,i===exports.Thumb.START?exports.Thumb.END:exports.Thumb.START)):(this.adapter.removeThumbClass(l.THUMB_TOP,exports.Thumb.START),this.adapter.removeThumbClass(l.THUMB_TOP,exports.Thumb.END))},r.prototype.convertAttributeValueToNumber=function(t,e){if(t===null)throw new Error("MDCSliderFoundation: `"+e+"` must be non-null.");var i=Number(t);if(isNaN(i))throw new Error("MDCSliderFoundation: `"+e+"` value is `"+t+"`, but must be a number.");return i},r.prototype.validateProperties=function(t){var e=t.min,i=t.max,n=t.value,s=t.valueStart,u=t.step,p=t.minRange;if(e>=i)throw new Error("MDCSliderFoundation: min must be strictly less than max. "+("Current: [min: "+e+", max: "+i+"]"));if(u<=0)throw new Error("MDCSliderFoundation: step must be a positive number. "+("Current step: "+u));if(this.isRange){if(n<e||n>i||s<e||s>i)throw new Error("MDCSliderFoundation: values must be in [min, max] range. "+("Current values: [start value: "+s+", end value: ")+(n+", min: "+e+", max: "+i+"]"));if(s>n)throw new Error("MDCSliderFoundation: start value must be <= end value. "+("Current values: [start value: "+s+", end value: "+n+"]"));if(p<0)throw new Error("MDCSliderFoundation: minimum range must be non-negative. "+("Current min range: "+p));if(n-s<p)throw new Error("MDCSliderFoundation: start value and end value must differ by at least "+(p+". Current values: [start value: "+s+", ")+("end value: "+n+"]"));var T=(s-e)/u,v=(n-e)/u;if(!Number.isInteger(parseFloat(T.toFixed(6)))||!Number.isInteger(parseFloat(v.toFixed(6))))throw new Error("MDCSliderFoundation: Slider values must be valid based on the "+("step value ("+u+"). Current values: [start value: ")+(s+", end value: "+n+", min: "+e+"]"))}else{if(n<e||n>i)throw new Error("MDCSliderFoundation: value must be in [min, max] range. "+("Current values: [value: "+n+", min: "+e+", max: "+i+"]"));var v=(n-e)/u;if(!Number.isInteger(parseFloat(v.toFixed(6))))throw new Error("MDCSliderFoundation: Slider value must be valid based on the "+("step value ("+u+"). Current value: "+n))}},r.prototype.registerEventHandlers=function(){this.adapter.registerWindowEventHandler("resize",this.resizeListener),r.SUPPORTS_POINTER_EVENTS?(this.adapter.registerEventHandler("pointerdown",this.pointerdownListener),this.adapter.registerEventHandler("pointerup",this.pointerupListener)):(this.adapter.registerEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.registerEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.registerThumbEventHandler(exports.Thumb.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(exports.Thumb.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(exports.Thumb.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(exports.Thumb.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(exports.Thumb.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(exports.Thumb.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(exports.Thumb.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(exports.Thumb.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(exports.Thumb.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(exports.Thumb.END,"blur",this.inputEndBlurListener)},r.prototype.deregisterEventHandlers=function(){this.adapter.deregisterWindowEventHandler("resize",this.resizeListener),r.SUPPORTS_POINTER_EVENTS?(this.adapter.deregisterEventHandler("pointerdown",this.pointerdownListener),this.adapter.deregisterEventHandler("pointerup",this.pointerupListener)):(this.adapter.deregisterEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.deregisterEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.deregisterThumbEventHandler(exports.Thumb.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(exports.Thumb.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(exports.Thumb.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(exports.Thumb.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(exports.Thumb.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(exports.Thumb.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(exports.Thumb.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(exports.Thumb.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(exports.Thumb.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(exports.Thumb.END,"blur",this.inputEndBlurListener)},r.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},r.SUPPORTS_POINTER_EVENTS=C&&!!window.PointerEvent&&!$(),r}(O);function $(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function P(a){var r=/(?:\.(\d+))?(?:[eE]([+\-]?\d+))?$/.exec(String(a));if(!r)return 0;var t=r[1]||"",e=r[2]||0;return Math.max(0,(t==="0"?0:t.length)-Number(e))}/**
|
128
128
|
* @license
|
129
129
|
* Copyright 2018 Google LLC
|
130
130
|
* SPDX-License-Identifier: Apache-2.0
|
131
|
-
*/class o extends L.FormElement{constructor(){super(...arguments),this.mdcFoundationClass=B,this.disabled=!1,this.min=0,this.max=100,this.valueEnd=0,this.name="",this.step=1,this.withTickMarks=!1,this.discrete=!1,this.tickMarks=[],this.trackTransformOriginStyle="",this.trackLeftStyle="",this.trackRightStyle="",this.trackTransitionStyle="",this.endThumbWithIndicator=!1,this.endThumbTop=!1,this.shouldRenderEndRipple=!1,this.endThumbTransformStyle="",this.endThumbTransitionStyle="",this.endThumbCssProperties={},this.valueToAriaTextTransform=null,this.valueToValueIndicatorTransform=r=>`${r}`,this.boundMoveListener=null,this.endRippleHandlers=new V.RippleHandlers(()=>(this.shouldRenderEndRipple=!0,this.endRipple))}update(r){if(r.has("valueEnd")&&this.mdcFoundation){this.mdcFoundation.setValue(this.valueEnd);const t=this.mdcFoundation.getValue();t!==this.valueEnd&&(this.valueEnd=t)}r.has("discrete")&&(this.discrete||(this.tickMarks=[])),super.update(r)}render(){return this.renderRootEl(m.
|
131
|
+
*/class o extends L.FormElement{constructor(){super(...arguments),this.mdcFoundationClass=B,this.disabled=!1,this.min=0,this.max=100,this.valueEnd=0,this.name="",this.step=1,this.withTickMarks=!1,this.discrete=!1,this.tickMarks=[],this.trackTransformOriginStyle="",this.trackLeftStyle="",this.trackRightStyle="",this.trackTransitionStyle="",this.endThumbWithIndicator=!1,this.endThumbTop=!1,this.shouldRenderEndRipple=!1,this.endThumbTransformStyle="",this.endThumbTransitionStyle="",this.endThumbCssProperties={},this.valueToAriaTextTransform=null,this.valueToValueIndicatorTransform=r=>`${r}`,this.boundMoveListener=null,this.endRippleHandlers=new V.RippleHandlers(()=>(this.shouldRenderEndRipple=!0,this.endRipple))}update(r){if(r.has("valueEnd")&&this.mdcFoundation){this.mdcFoundation.setValue(this.valueEnd);const t=this.mdcFoundation.getValue();t!==this.valueEnd&&(this.valueEnd=t)}r.has("discrete")&&(this.discrete||(this.tickMarks=[])),super.update(r)}render(){return this.renderRootEl(m.x`
|
132
132
|
${this.renderStartInput()}
|
133
133
|
${this.renderEndInput()}
|
134
134
|
${this.renderTrack()}
|
135
135
|
${this.renderTickMarks()}
|
136
136
|
${this.renderStartThumb()}
|
137
|
-
${this.renderEndThumb()}`)}renderRootEl(r){const t=
|
137
|
+
${this.renderEndThumb()}`)}renderRootEl(r){const t=x.o({"mdc-slider--disabled":this.disabled,"mdc-slider--discrete":this.discrete});return m.x`
|
138
138
|
<div
|
139
139
|
class="mdc-slider ${t}"
|
140
140
|
@pointerdown=${this.onPointerdown}
|
141
141
|
@pointerup=${this.onPointerup}
|
142
142
|
@contextmenu=${this.onContextmenu}>
|
143
143
|
${r}
|
144
|
-
</div>`}renderStartInput(){return m.
|
144
|
+
</div>`}renderStartInput(){return m.A}renderEndInput(){var r;return m.x`
|
145
145
|
<input
|
146
146
|
class="mdc-slider__input end"
|
147
147
|
type="range"
|
@@ -158,10 +158,10 @@
|
|
158
158
|
aria-labelledby=${A.l(this.ariaLabelledBy)}
|
159
159
|
aria-describedby=${A.l(this.ariaDescribedBy)}
|
160
160
|
aria-valuetext=${A.l((r=this.valueToAriaTextTransform)===null||r===void 0?void 0:r.call(this,this.valueEnd))}>
|
161
|
-
`}renderTrack(){return m.
|
161
|
+
`}renderTrack(){return m.A}renderTickMarks(){return this.withTickMarks?m.x`
|
162
162
|
<div class="mdc-slider__tick-marks">
|
163
|
-
${this.tickMarks.map(r=>{const t=r===_.ACTIVE;return m.
|
164
|
-
</div>`:m.
|
163
|
+
${this.tickMarks.map(r=>{const t=r===_.ACTIVE;return m.x`<div class="${t?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"}"></div>`})}
|
164
|
+
</div>`:m.A}renderStartThumb(){return m.A}renderEndThumb(){const r=x.o({"mdc-slider__thumb--with-indicator":this.endThumbWithIndicator,"mdc-slider__thumb--top":this.endThumbTop}),t=U.o(Object.assign({"-webkit-transform":this.endThumbTransformStyle,transform:this.endThumbTransformStyle,"-webkit-transition":this.endThumbTransitionStyle,transition:this.endThumbTransitionStyle,left:this.endThumbTransformStyle||getComputedStyle(this).direction==="rtl"?"":`calc(${(this.valueEnd-this.min)/(this.max-this.min)*100}% - 24px)`,right:this.endThumbTransformStyle||getComputedStyle(this).direction!=="rtl"?"":`calc(${(this.valueEnd-this.min)/(this.max-this.min)*100}% - 24px)`},this.endThumbCssProperties)),e=this.shouldRenderEndRipple?m.x`<mwc-ripple class="ripple" unbounded></mwc-ripple>`:m.A;return m.x`
|
165
165
|
<div
|
166
166
|
class="mdc-slider__thumb end ${r}"
|
167
167
|
style=${t}
|
@@ -171,14 +171,14 @@
|
|
171
171
|
${this.renderValueIndicator(this.valueToValueIndicatorTransform(this.valueEnd))}
|
172
172
|
<div class="mdc-slider__thumb-knob"></div>
|
173
173
|
</div>
|
174
|
-
`}renderValueIndicator(r){return this.discrete?m.
|
174
|
+
`}renderValueIndicator(r){return this.discrete?m.x`
|
175
175
|
<div class="mdc-slider__value-indicator-container" aria-hidden="true">
|
176
176
|
<div class="mdc-slider__value-indicator">
|
177
177
|
<span class="mdc-slider__value-indicator-text">
|
178
178
|
${r}
|
179
179
|
</span>
|
180
180
|
</div>
|
181
|
-
</div>`:m.
|
181
|
+
</div>`:m.A}disconnectedCallback(){super.disconnectedCallback(),this.mdcFoundation&&this.mdcFoundation.destroy()}createAdapter(){}async firstUpdated(){super.firstUpdated(),await this.layout(!0)}updated(r){super.updated(r),this.mdcFoundation&&(r.has("disabled")&&this.mdcFoundation.setDisabled(this.disabled),r.has("min")&&this.mdcFoundation.setMin(this.min),r.has("max")&&this.mdcFoundation.setMax(this.max),r.has("step")&&this.mdcFoundation.setStep(this.step),r.has("discrete")&&this.mdcFoundation.setIsDiscrete(this.discrete),r.has("withTickMarks")&&this.mdcFoundation.setHasTickMarks(this.withTickMarks))}async layout(r=!1){var t;(t=this.mdcFoundation)===null||t===void 0||t.layout({skipUpdateUI:r}),this.requestUpdate(),await this.updateComplete}onEndChange(r){var t;this.valueEnd=Number(r.target.value),(t=this.mdcFoundation)===null||t===void 0||t.handleInputChange(exports.Thumb.END)}onEndFocus(){var r;(r=this.mdcFoundation)===null||r===void 0||r.handleInputFocus(exports.Thumb.END),this.endRippleHandlers.startFocus()}onEndBlur(){var r;(r=this.mdcFoundation)===null||r===void 0||r.handleInputBlur(exports.Thumb.END),this.endRippleHandlers.endFocus()}onEndMouseenter(){var r;(r=this.mdcFoundation)===null||r===void 0||r.handleThumbMouseenter(),this.endRippleHandlers.startHover()}onEndMouseleave(){var r;(r=this.mdcFoundation)===null||r===void 0||r.handleThumbMouseleave(),this.endRippleHandlers.endHover()}onPointerdown(r){this.layout(),this.mdcFoundation&&(this.mdcFoundation.handlePointerdown(r),this.boundMoveListener=this.mdcFoundation.handleMove.bind(this.mdcFoundation),this.mdcRoot.addEventListener("pointermove",this.boundMoveListener))}onPointerup(){this.mdcFoundation&&(this.mdcFoundation.handleUp(),this.boundMoveListener&&(this.mdcRoot.removeEventListener("pointermove",this.boundMoveListener),this.boundMoveListener=null))}onContextmenu(r){r.preventDefault()}setFormData(r){this.name&&r.append(this.name,`${this.valueEnd}`)}}d.__decorate([g.i("input.end")],o.prototype,"formElement",void 0);d.__decorate([g.i(".mdc-slider")],o.prototype,"mdcRoot",void 0);d.__decorate([g.i(".end.mdc-slider__thumb")],o.prototype,"endThumb",void 0);d.__decorate([g.i(".end.mdc-slider__thumb .mdc-slider__thumb-knob")],o.prototype,"endThumbKnob",void 0);d.__decorate([g.i(".end.mdc-slider__thumb .mdc-slider__value-indicator-container")],o.prototype,"endValueIndicatorContainer",void 0);d.__decorate([V.e(".end .ripple")],o.prototype,"endRipple",void 0);d.__decorate([b.n({type:Boolean,reflect:!0})],o.prototype,"disabled",void 0);d.__decorate([b.n({type:Number})],o.prototype,"min",void 0);d.__decorate([b.n({type:Number})],o.prototype,"max",void 0);d.__decorate([b.n({type:Number})],o.prototype,"valueEnd",void 0);d.__decorate([b.n({type:String})],o.prototype,"name",void 0);d.__decorate([b.n({type:Number})],o.prototype,"step",void 0);d.__decorate([b.n({type:Boolean})],o.prototype,"withTickMarks",void 0);d.__decorate([b.n({type:Boolean})],o.prototype,"discrete",void 0);d.__decorate([f.t()],o.prototype,"tickMarks",void 0);d.__decorate([f.t()],o.prototype,"trackTransformOriginStyle",void 0);d.__decorate([f.t()],o.prototype,"trackLeftStyle",void 0);d.__decorate([f.t()],o.prototype,"trackRightStyle",void 0);d.__decorate([f.t()],o.prototype,"trackTransitionStyle",void 0);d.__decorate([f.t()],o.prototype,"endThumbWithIndicator",void 0);d.__decorate([f.t()],o.prototype,"endThumbTop",void 0);d.__decorate([f.t()],o.prototype,"shouldRenderEndRipple",void 0);d.__decorate([f.t()],o.prototype,"endThumbTransformStyle",void 0);d.__decorate([f.t()],o.prototype,"endThumbTransitionStyle",void 0);d.__decorate([f.t()],o.prototype,"endThumbCssProperties",void 0);d.__decorate([k.ariaProperty,b.n({type:String,attribute:"aria-label"})],o.prototype,"ariaLabel",void 0);d.__decorate([k.ariaProperty,b.n({type:String,attribute:"aria-labelledby"})],o.prototype,"ariaLabelledBy",void 0);d.__decorate([k.ariaProperty,b.n({type:String,attribute:"aria-describedby"})],o.prototype,"ariaDescribedBy",void 0);/**
|
182
182
|
* @license
|
183
183
|
* Copyright 2021 Google LLC
|
184
184
|
* SPDX-LIcense-Identifier: Apache-2.0
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { B as g } from "./base-element-
|
4
|
-
import {
|
5
|
-
import { i as l } from "./query-
|
6
|
-
import { o as v } from "./class-map-
|
7
|
-
import { a as I } from "./utils-
|
8
|
-
import { e as T, R as E } from "./ripple-handlers-
|
1
|
+
import { _ as m, a as h, b as i } from "./tslib.es6-f1eaf65c.mjs";
|
2
|
+
import { x as c, i as R, e as A } from "./query-assigned-elements-4a39219d.mjs";
|
3
|
+
import { B as g } from "./base-element-67ae173f.mjs";
|
4
|
+
import { n as r } from "./property-9b6ea53b.mjs";
|
5
|
+
import { i as l } from "./query-d843aa92.mjs";
|
6
|
+
import { o as v } from "./class-map-4b94b017.mjs";
|
7
|
+
import { a as I } from "./utils-2932417c.mjs";
|
8
|
+
import { e as T, R as E } from "./ripple-handlers-321219b8.mjs";
|
9
9
|
import { o as F } from "./observer-be7b92e2.mjs";
|
10
|
-
import { t as _ } from "./state-
|
11
|
-
import { e as O } from "./event-options-
|
10
|
+
import { t as _ } from "./state-b5e865db.mjs";
|
11
|
+
import { e as O } from "./event-options-78d6cf94.mjs";
|
12
12
|
/**
|
13
13
|
* @license
|
14
14
|
* Copyright 2016 Google Inc.
|
@@ -88,11 +88,11 @@ var D = (
|
|
88
88
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
89
89
|
* THE SOFTWARE.
|
90
90
|
*/
|
91
|
-
var
|
91
|
+
var w = {
|
92
92
|
ACTIVE: "mdc-tab-indicator--active",
|
93
93
|
FADE: "mdc-tab-indicator--fade",
|
94
94
|
NO_TRANSITION: "mdc-tab-indicator--no-transition"
|
95
|
-
},
|
95
|
+
}, $ = {
|
96
96
|
CONTENT_SELECTOR: ".mdc-tab-indicator__content"
|
97
97
|
};
|
98
98
|
/**
|
@@ -126,13 +126,13 @@ var s = (
|
|
126
126
|
}
|
127
127
|
return Object.defineProperty(t, "cssClasses", {
|
128
128
|
get: function() {
|
129
|
-
return
|
129
|
+
return w;
|
130
130
|
},
|
131
131
|
enumerable: !1,
|
132
132
|
configurable: !0
|
133
133
|
}), Object.defineProperty(t, "strings", {
|
134
134
|
get: function() {
|
135
|
-
return
|
135
|
+
return $;
|
136
136
|
},
|
137
137
|
enumerable: !1,
|
138
138
|
configurable: !0
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const n=require("./tslib.es6-
|
1
|
+
"use strict";const n=require("./tslib.es6-e6a11c8a.js"),s=require("./query-assigned-elements-f623705d.js"),_=require("./base-element-58a3f9ea.js"),r=require("./property-57f6f6fe.js"),l=require("./query-680f1868.js"),m=require("./class-map-b5efe8da.js"),C=require("./utils-a8190a39.js"),y=require("./ripple-handlers-c82b1232.js"),I=require("./observer-a096ab43.js"),g=require("./state-0974a8e5.js"),R=require("./event-options-3f5eb195.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2016 Google Inc.
|
4
4
|
*
|
@@ -107,19 +107,19 @@
|
|
107
107
|
* @license
|
108
108
|
* Copyright 2018 Google LLC
|
109
109
|
* SPDX-License-Identifier: Apache-2.0
|
110
|
-
*/class u extends _.BaseElement{constructor(){super(...arguments),this.icon="",this.fade=!1}get mdcFoundationClass(){return this.fade?O:w}render(){const t={"mdc-tab-indicator__content--icon":this.icon,"material-icons":this.icon,"mdc-tab-indicator__content--underline":!this.icon};return s.
|
110
|
+
*/class u extends _.BaseElement{constructor(){super(...arguments),this.icon="",this.fade=!1}get mdcFoundationClass(){return this.fade?O:w}render(){const t={"mdc-tab-indicator__content--icon":this.icon,"material-icons":this.icon,"mdc-tab-indicator__content--underline":!this.icon};return s.x`
|
111
111
|
<span class="mdc-tab-indicator ${m.o({"mdc-tab-indicator--fade":this.fade})}">
|
112
112
|
<span class="mdc-tab-indicator__content ${m.o(t)}">${this.icon}</span>
|
113
113
|
</span>
|
114
|
-
`}updated(t){t.has("fade")&&this.createFoundation()}createAdapter(){return Object.assign(Object.assign({},C.addHasRemoveClass(this.mdcRoot)),{computeContentClientRect:()=>this.contentElement.getBoundingClientRect(),setContentStyleProperty:(t,i)=>this.contentElement.style.setProperty(t,i)})}computeContentClientRect(){return this.mdcFoundation.computeContentClientRect()}activate(t){this.mdcFoundation.activate(t)}deactivate(){this.mdcFoundation.deactivate()}}n.__decorate([l.i(".mdc-tab-indicator")],u.prototype,"mdcRoot",void 0);n.__decorate([l.i(".mdc-tab-indicator__content")],u.prototype,"contentElement",void 0);n.__decorate([r.
|
114
|
+
`}updated(t){t.has("fade")&&this.createFoundation()}createAdapter(){return Object.assign(Object.assign({},C.addHasRemoveClass(this.mdcRoot)),{computeContentClientRect:()=>this.contentElement.getBoundingClientRect(),setContentStyleProperty:(t,i)=>this.contentElement.style.setProperty(t,i)})}computeContentClientRect(){return this.mdcFoundation.computeContentClientRect()}activate(t){this.mdcFoundation.activate(t)}deactivate(){this.mdcFoundation.deactivate()}}n.__decorate([l.i(".mdc-tab-indicator")],u.prototype,"mdcRoot",void 0);n.__decorate([l.i(".mdc-tab-indicator__content")],u.prototype,"contentElement",void 0);n.__decorate([r.n()],u.prototype,"icon",void 0);n.__decorate([r.n({type:Boolean})],u.prototype,"fade",void 0);/**
|
115
115
|
* @license
|
116
116
|
* Copyright 2021 Google LLC
|
117
117
|
* SPDX-LIcense-Identifier: Apache-2.0
|
118
|
-
*/const
|
118
|
+
*/const x=s.i`.material-icons{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"}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-tab-indicator .mdc-tab-indicator__content--icon{color:#018786;color:var(--mdc-theme-secondary, #018786)}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}`;/**
|
119
119
|
* @license
|
120
120
|
* Copyright 2018 Google LLC
|
121
121
|
* SPDX-License-Identifier: Apache-2.0
|
122
|
-
*/let b=class extends u{};b.styles=[
|
122
|
+
*/let b=class extends u{};b.styles=[x];b=n.__decorate([s.e("mwc-tab-indicator")],b);/**
|
123
123
|
* @license
|
124
124
|
* Copyright 2016 Google Inc.
|
125
125
|
*
|
@@ -140,7 +140,7 @@
|
|
140
140
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
141
141
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
142
142
|
* THE SOFTWARE.
|
143
|
-
*/var
|
143
|
+
*/var $=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}();/**
|
144
144
|
* @license
|
145
145
|
* Copyright 2018 Google Inc.
|
146
146
|
*
|
@@ -182,13 +182,13 @@
|
|
182
182
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
183
183
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
184
184
|
* THE SOFTWARE.
|
185
|
-
*/var
|
185
|
+
*/var L=function(e){n.__extends(t,e);function t(i){var o=e.call(this,n.__assign(n.__assign({},t.defaultAdapter),i))||this;return o.focusOnActivate=!0,o}return Object.defineProperty(t,"cssClasses",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return d},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},activateIndicator:function(){},deactivateIndicator:function(){},notifyInteracted:function(){},getOffsetLeft:function(){return 0},getOffsetWidth:function(){return 0},getContentOffsetLeft:function(){return 0},getContentOffsetWidth:function(){return 0},focus:function(){}}},enumerable:!1,configurable:!0}),t.prototype.handleClick=function(){this.adapter.notifyInteracted()},t.prototype.isActive=function(){return this.adapter.hasClass(f.ACTIVE)},t.prototype.setFocusOnActivate=function(i){this.focusOnActivate=i},t.prototype.activate=function(i){this.adapter.addClass(f.ACTIVE),this.adapter.setAttr(d.ARIA_SELECTED,"true"),this.adapter.setAttr(d.TABINDEX,"0"),this.adapter.activateIndicator(i),this.focusOnActivate&&this.adapter.focus()},t.prototype.deactivate=function(){this.isActive()&&(this.adapter.removeClass(f.ACTIVE),this.adapter.setAttr(d.ARIA_SELECTED,"false"),this.adapter.setAttr(d.TABINDEX,"-1"),this.adapter.deactivateIndicator())},t.prototype.computeDimensions=function(){var i=this.adapter.getOffsetWidth(),o=this.adapter.getOffsetLeft(),h=this.adapter.getContentOffsetWidth(),p=this.adapter.getContentOffsetLeft();return{contentLeft:o+p,contentRight:o+p+h,rootLeft:o,rootRight:o+i}},t}($);const v=L;/**
|
186
186
|
* @license
|
187
187
|
* Copyright 2018 Google LLC
|
188
188
|
* SPDX-License-Identifier: Apache-2.0
|
189
|
-
*/let
|
190
|
-
<span class="mdc-tab__icon material-icons"><slot name="icon">${this.icon}</slot></span>`);let o=s.
|
191
|
-
<span class="mdc-tab__text-label">${this.label}</span>`),s.
|
189
|
+
*/let P=0;class a extends _.BaseElement{constructor(){super(...arguments),this.mdcFoundationClass=v,this.label="",this.icon="",this.hasImageIcon=!1,this.isFadingIndicator=!1,this.minWidth=!1,this.isMinWidthIndicator=!1,this.indicatorIcon="",this.stacked=!1,this.focusOnActivate=!0,this._active=!1,this.initFocus=!1,this.shouldRenderRipple=!1,this.useStateLayerCustomProperties=!1,this.rippleElement=null,this.rippleHandlers=new y.RippleHandlers(()=>(this.shouldRenderRipple=!0,this.ripple.then(t=>this.rippleElement=t),this.ripple))}get active(){return this._active}connectedCallback(){this.dir=document.dir,super.connectedCallback()}firstUpdated(){super.firstUpdated(),this.id=this.id||`mdc-tab-${++P}`}render(){const t={"mdc-tab--min-width":this.minWidth,"mdc-tab--stacked":this.stacked};let i=s.x``;(this.hasImageIcon||this.icon)&&(i=s.x`
|
190
|
+
<span class="mdc-tab__icon material-icons"><slot name="icon">${this.icon}</slot></span>`);let o=s.x``;return this.label&&(o=s.x`
|
191
|
+
<span class="mdc-tab__text-label">${this.label}</span>`),s.x`
|
192
192
|
<button
|
193
193
|
@click="${this.handleClick}"
|
194
194
|
class="mdc-tab ${m.o(t)}"
|
@@ -210,7 +210,7 @@
|
|
210
210
|
</span>
|
211
211
|
${this.isMinWidthIndicator?"":this.renderIndicator()}
|
212
212
|
${this.renderRipple()}
|
213
|
-
</button>`}renderIndicator(){return s.
|
213
|
+
</button>`}renderIndicator(){return s.x`<mwc-tab-indicator
|
214
214
|
.icon="${this.indicatorIcon}"
|
215
|
-
.fade="${this.isFadingIndicator}"></mwc-tab-indicator>`}renderRipple(){return this.shouldRenderRipple?s.
|
216
|
-
.internalUseStateLayerCustomProperties="${this.useStateLayerCustomProperties}"></mwc-ripple>`:""}createAdapter(){return Object.assign(Object.assign({},C.addHasRemoveClass(this.mdcRoot)),{setAttr:(t,i)=>this.mdcRoot.setAttribute(t,i),activateIndicator:async t=>{await this.tabIndicator.updateComplete,this.tabIndicator.activate(t)},deactivateIndicator:async()=>{await this.tabIndicator.updateComplete,this.tabIndicator.deactivate()},notifyInteracted:()=>this.dispatchEvent(new CustomEvent(v.strings.INTERACTED_EVENT,{detail:{tabId:this.id},bubbles:!0,composed:!0,cancelable:!0})),getOffsetLeft:()=>this.offsetLeft,getOffsetWidth:()=>this.mdcRoot.offsetWidth,getContentOffsetLeft:()=>this._contentElement.offsetLeft,getContentOffsetWidth:()=>this._contentElement.offsetWidth,focus:()=>{this.initFocus?this.initFocus=!1:this.mdcRoot.focus()}})}activate(t){t||(this.initFocus=!0),this.mdcFoundation?(this.mdcFoundation.activate(t),this.setActive(this.mdcFoundation.isActive())):this.updateComplete.then(()=>{this.mdcFoundation.activate(t),this.setActive(this.mdcFoundation.isActive())})}deactivate(){this.mdcFoundation.deactivate(),this.setActive(this.mdcFoundation.isActive())}setActive(t){const i=this.active;i!==t&&(this._active=t,this.requestUpdate("active",i))}computeDimensions(){return this.mdcFoundation.computeDimensions()}computeIndicatorClientRect(){return this.tabIndicator.computeContentClientRect()}focus(){this.mdcRoot.focus(),this.handleFocus()}handleClick(){this.handleFocus(),this.mdcFoundation.handleClick()}handleFocus(){this.handleRippleFocus()}handleBlur(){this.handleRippleBlur()}handleRippleMouseDown(t){const i=()=>{window.removeEventListener("mouseup",i),this.handleRippleDeactivate()};window.addEventListener("mouseup",i),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}get isRippleActive(){var t;return((t=this.rippleElement)===null||t===void 0?void 0:t.isActive)||!1}}a.shadowRootOptions={mode:"open",delegatesFocus:!0};n.__decorate([l.i(".mdc-tab")],a.prototype,"mdcRoot",void 0);n.__decorate([l.i("mwc-tab-indicator")],a.prototype,"tabIndicator",void 0);n.__decorate([r.
|
215
|
+
.fade="${this.isFadingIndicator}"></mwc-tab-indicator>`}renderRipple(){return this.shouldRenderRipple?s.x`<mwc-ripple primary
|
216
|
+
.internalUseStateLayerCustomProperties="${this.useStateLayerCustomProperties}"></mwc-ripple>`:""}createAdapter(){return Object.assign(Object.assign({},C.addHasRemoveClass(this.mdcRoot)),{setAttr:(t,i)=>this.mdcRoot.setAttribute(t,i),activateIndicator:async t=>{await this.tabIndicator.updateComplete,this.tabIndicator.activate(t)},deactivateIndicator:async()=>{await this.tabIndicator.updateComplete,this.tabIndicator.deactivate()},notifyInteracted:()=>this.dispatchEvent(new CustomEvent(v.strings.INTERACTED_EVENT,{detail:{tabId:this.id},bubbles:!0,composed:!0,cancelable:!0})),getOffsetLeft:()=>this.offsetLeft,getOffsetWidth:()=>this.mdcRoot.offsetWidth,getContentOffsetLeft:()=>this._contentElement.offsetLeft,getContentOffsetWidth:()=>this._contentElement.offsetWidth,focus:()=>{this.initFocus?this.initFocus=!1:this.mdcRoot.focus()}})}activate(t){t||(this.initFocus=!0),this.mdcFoundation?(this.mdcFoundation.activate(t),this.setActive(this.mdcFoundation.isActive())):this.updateComplete.then(()=>{this.mdcFoundation.activate(t),this.setActive(this.mdcFoundation.isActive())})}deactivate(){this.mdcFoundation.deactivate(),this.setActive(this.mdcFoundation.isActive())}setActive(t){const i=this.active;i!==t&&(this._active=t,this.requestUpdate("active",i))}computeDimensions(){return this.mdcFoundation.computeDimensions()}computeIndicatorClientRect(){return this.tabIndicator.computeContentClientRect()}focus(){this.mdcRoot.focus(),this.handleFocus()}handleClick(){this.handleFocus(),this.mdcFoundation.handleClick()}handleFocus(){this.handleRippleFocus()}handleBlur(){this.handleRippleBlur()}handleRippleMouseDown(t){const i=()=>{window.removeEventListener("mouseup",i),this.handleRippleDeactivate()};window.addEventListener("mouseup",i),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}get isRippleActive(){var t;return((t=this.rippleElement)===null||t===void 0?void 0:t.isActive)||!1}}a.shadowRootOptions={mode:"open",delegatesFocus:!0};n.__decorate([l.i(".mdc-tab")],a.prototype,"mdcRoot",void 0);n.__decorate([l.i("mwc-tab-indicator")],a.prototype,"tabIndicator",void 0);n.__decorate([r.n()],a.prototype,"label",void 0);n.__decorate([r.n()],a.prototype,"icon",void 0);n.__decorate([r.n({type:Boolean})],a.prototype,"hasImageIcon",void 0);n.__decorate([r.n({type:Boolean})],a.prototype,"isFadingIndicator",void 0);n.__decorate([r.n({type:Boolean})],a.prototype,"minWidth",void 0);n.__decorate([r.n({type:Boolean})],a.prototype,"isMinWidthIndicator",void 0);n.__decorate([r.n({type:Boolean,reflect:!0,attribute:"active"})],a.prototype,"active",null);n.__decorate([r.n()],a.prototype,"indicatorIcon",void 0);n.__decorate([r.n({type:Boolean})],a.prototype,"stacked",void 0);n.__decorate([I.observer(async function(e){await this.updateComplete,this.mdcFoundation.setFocusOnActivate(e)}),r.n({type:Boolean})],a.prototype,"focusOnActivate",void 0);n.__decorate([l.i(".mdc-tab__content")],a.prototype,"_contentElement",void 0);n.__decorate([g.t()],a.prototype,"shouldRenderRipple",void 0);n.__decorate([g.t()],a.prototype,"useStateLayerCustomProperties",void 0);n.__decorate([y.e("mwc-ripple")],a.prototype,"ripple",void 0);n.__decorate([R.e({passive:!0})],a.prototype,"handleRippleTouchStart",null);exports.TabBase=a;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const i=require("./tslib.es6-
|
1
|
+
"use strict";const i=require("./tslib.es6-e6a11c8a.js"),p=require("./property-57f6f6fe.js"),l=require("./query-assigned-elements-f623705d.js"),m=require("./base-element-58a3f9ea.js"),g=require("./utils-a8190a39.js"),T=require("./query-680f1868.js"),f=require("./class-map-b5efe8da.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2018 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={FIXED_CLASS:"mdc-top-app-bar--fixed",FIXED_SCROLLED_CLASS:"mdc-top-app-bar--fixed-scrolled",SHORT_CLASS:"mdc-top-app-bar--short",SHORT_COLLAPSED_CLASS:"mdc-top-app-bar--short-collapsed",SHORT_HAS_ACTION_ITEM_CLASS:"mdc-top-app-bar--short-has-action-item"},a={DEBOUNCE_THROTTLE_RESIZE_TIME_MS:100,MAX_TOP_APP_BAR_HEIGHT:128},_={ACTION_ITEM_SELECTOR:".mdc-top-app-bar__action-item",NAVIGATION_EVENT:"MDCTopAppBar:nav",NAVIGATION_ICON_SELECTOR:".mdc-top-app-bar__navigation-icon",ROOT_SELECTOR:".mdc-top-app-bar",TITLE_SELECTOR:".mdc-top-app-bar__title"};/**
|
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 A=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
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 S=function(r){i.__extends(e,r);function e(t){return r.call(this,i.__assign(i.__assign({},e.defaultAdapter),t))||this}return Object.defineProperty(e,"strings",{get:function(){return _},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return b},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{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(){},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}(A);/**
|
65
65
|
* @license
|
66
66
|
* Copyright 2018 Google Inc.
|
67
67
|
*
|
@@ -82,11 +82,11 @@
|
|
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 o=0,v=function(r){i.__extends(e,r);function e(t){var s=r.call(this,t)||this;return s.wasDocked=!0,s.isDockedShowing=!0,s.currentAppBarOffsetTop=0,s.isCurrentlyBeingResized=!1,s.resizeThrottleId=o,s.resizeDebounceId=o,s.lastScrollPosition=s.adapter.getViewportScrollY(),s.topAppBarHeight=s.adapter.getTopAppBarHeight(),s}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),s=t-this.lastScrollPosition;this.lastScrollPosition=t,this.isCurrentlyBeingResized||(this.currentAppBarOffsetTop-=s,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=o,t.throttledResizeHandler()},a.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)),this.isCurrentlyBeingResized=!0,this.resizeDebounceId&&clearTimeout(this.resizeDebounceId),this.resizeDebounceId=setTimeout(function(){t.handleTargetScroll(),t.isCurrentlyBeingResized=!1,t.resizeDebounceId=o},a.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)},e.prototype.checkForUpdate=function(){var t=-this.topAppBarHeight,s=this.currentAppBarOffsetTop<0,c=this.currentAppBarOffsetTop>t,h=s&&c;if(h)this.wasDocked=!1;else if(this.wasDocked){if(this.isDockedShowing!==c)return this.isDockedShowing=c,!0}else return this.wasDocked=!0,!0;return h},e.prototype.moveTopAppBar=function(){if(this.checkForUpdate()){var t=this.currentAppBarOffsetTop;Math.abs(t)>=this.topAppBarHeight&&(t=-a.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}(S);const y=v;/**
|
86
86
|
* @license
|
87
87
|
* Copyright 2019 Google LLC
|
88
88
|
* SPDX-License-Identifier: Apache-2.0
|
89
|
-
*/const d=g.supportsPassiveEventListener?{passive:!0}:void 0;class
|
89
|
+
*/const d=g.supportsPassiveEventListener?{passive:!0}:void 0;class n extends m.BaseElement{constructor(){super(...arguments),this.centerTitle=!1,this.handleTargetScroll=()=>{this.mdcFoundation.handleTargetScroll()},this.handleNavigationClick=()=>{this.mdcFoundation.handleNavigationClick()}}get scrollTarget(){return this._scrollTarget||window}set scrollTarget(e){this.unregisterScrollListener();const t=this.scrollTarget;this._scrollTarget=e,this.updateRootPosition(),this.requestUpdate("scrollTarget",t),this.registerScrollListener()}updateRootPosition(){if(this.mdcRoot){const e=this.scrollTarget===window;this.mdcRoot.style.position=e?"":"absolute"}}render(){let e=l.x`<span class="mdc-top-app-bar__title"><slot name="title"></slot></span>`;return this.centerTitle&&(e=l.x`<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-center">${e}</section>`),l.x`
|
90
90
|
<header class="mdc-top-app-bar ${f.o(this.barClasses())}">
|
91
91
|
<div class="mdc-top-app-bar__row">
|
92
92
|
<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-start" id="navigation">
|
@@ -103,8 +103,8 @@
|
|
103
103
|
<div class="${f.o(this.contentClasses())}">
|
104
104
|
<slot></slot>
|
105
105
|
</div>
|
106
|
-
`}createAdapter(){return Object.assign(Object.assign({},g.addHasRemoveClass(this.mdcRoot)),{setStyle:(e,t)=>this.mdcRoot.style.setProperty(e,t),getTopAppBarHeight:()=>this.mdcRoot.clientHeight,notifyNavigationIconClicked:()=>{this.dispatchEvent(new Event(
|
106
|
+
`}createAdapter(){return Object.assign(Object.assign({},g.addHasRemoveClass(this.mdcRoot)),{setStyle:(e,t)=>this.mdcRoot.style.setProperty(e,t),getTopAppBarHeight:()=>this.mdcRoot.clientHeight,notifyNavigationIconClicked:()=>{this.dispatchEvent(new Event(_.NAVIGATION_EVENT,{bubbles:!0,cancelable:!0}))},getViewportScrollY:()=>this.scrollTarget instanceof Window?this.scrollTarget.pageYOffset:this.scrollTarget.scrollTop,getTotalActionItems:()=>this._actionItemsSlot.assignedNodes({flatten:!0}).length})}registerListeners(){this.registerScrollListener()}unregisterListeners(){this.unregisterScrollListener()}registerScrollListener(){this.scrollTarget.addEventListener("scroll",this.handleTargetScroll,d)}unregisterScrollListener(){this.scrollTarget.removeEventListener("scroll",this.handleTargetScroll)}firstUpdated(){super.firstUpdated(),this.updateRootPosition(),this.registerListeners()}disconnectedCallback(){super.disconnectedCallback(),this.unregisterListeners()}}i.__decorate([T.i(".mdc-top-app-bar")],n.prototype,"mdcRoot",void 0);i.__decorate([T.i('slot[name="actionItems"]')],n.prototype,"_actionItemsSlot",void 0);i.__decorate([p.n({type:Boolean})],n.prototype,"centerTitle",void 0);i.__decorate([p.n({type:Object})],n.prototype,"scrollTarget",null);/**
|
107
107
|
* @license
|
108
108
|
* Copyright 2018 Google LLC
|
109
109
|
* SPDX-License-Identifier: Apache-2.0
|
110
|
-
*/class u extends
|
110
|
+
*/class u extends n{constructor(){super(...arguments),this.mdcFoundationClass=y,this.prominent=!1,this.dense=!1,this.handleResize=()=>{this.mdcFoundation.handleWindowResize()}}barClasses(){return{"mdc-top-app-bar--dense":this.dense,"mdc-top-app-bar--prominent":this.prominent,"center-title":this.centerTitle}}contentClasses(){return{"mdc-top-app-bar--fixed-adjust":!this.dense&&!this.prominent,"mdc-top-app-bar--dense-fixed-adjust":this.dense&&!this.prominent,"mdc-top-app-bar--prominent-fixed-adjust":!this.dense&&this.prominent,"mdc-top-app-bar--dense-prominent-fixed-adjust":this.dense&&this.prominent}}registerListeners(){super.registerListeners(),window.addEventListener("resize",this.handleResize,d)}unregisterListeners(){super.unregisterListeners(),window.removeEventListener("resize",this.handleResize)}}i.__decorate([p.n({type:Boolean,reflect:!0})],u.prototype,"prominent",void 0);i.__decorate([p.n({type:Boolean,reflect:!0})],u.prototype,"dense",void 0);exports.TopAppBarBase=u;exports.passiveEventOptionsIfSupported=d;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import { B as _ } from "./base-element-
|
5
|
-
import { a as A, s as S } from "./utils-
|
6
|
-
import { i as g } from "./query-
|
7
|
-
import { o as h } from "./class-map-
|
1
|
+
import { _ as f, a as u, b as s } from "./tslib.es6-f1eaf65c.mjs";
|
2
|
+
import { n as p } from "./property-9b6ea53b.mjs";
|
3
|
+
import { x as c } from "./query-assigned-elements-4a39219d.mjs";
|
4
|
+
import { B as _ } from "./base-element-67ae173f.mjs";
|
5
|
+
import { a as A, s as S } from "./utils-2932417c.mjs";
|
6
|
+
import { i as g } from "./query-d843aa92.mjs";
|
7
|
+
import { o as h } from "./class-map-4b94b017.mjs";
|
8
8
|
/**
|
9
9
|
* @license
|
10
10
|
* Copyright 2018 Google Inc.
|
@@ -65,7 +65,7 @@ var v = {
|
|
65
65
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
66
66
|
* THE SOFTWARE.
|
67
67
|
*/
|
68
|
-
var
|
68
|
+
var B = (
|
69
69
|
/** @class */
|
70
70
|
function() {
|
71
71
|
function r(e) {
|
@@ -122,7 +122,7 @@ var y = (
|
|
122
122
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
123
123
|
* THE SOFTWARE.
|
124
124
|
*/
|
125
|
-
var
|
125
|
+
var y = (
|
126
126
|
/** @class */
|
127
127
|
function(r) {
|
128
128
|
f(e, r);
|
@@ -182,7 +182,7 @@ var B = (
|
|
182
182
|
}, e.prototype.handleNavigationClick = function() {
|
183
183
|
this.adapter.notifyNavigationIconClicked();
|
184
184
|
}, e;
|
185
|
-
}(
|
185
|
+
}(B)
|
186
186
|
);
|
187
187
|
/**
|
188
188
|
* @license
|
@@ -211,14 +211,14 @@ var n = 0, C = (
|
|
211
211
|
function(r) {
|
212
212
|
f(e, r);
|
213
213
|
function e(t) {
|
214
|
-
var
|
215
|
-
return
|
214
|
+
var i = r.call(this, t) || this;
|
215
|
+
return i.wasDocked = !0, i.isDockedShowing = !0, i.currentAppBarOffsetTop = 0, i.isCurrentlyBeingResized = !1, i.resizeThrottleId = n, i.resizeDebounceId = n, i.lastScrollPosition = i.adapter.getViewportScrollY(), i.topAppBarHeight = i.adapter.getTopAppBarHeight(), i;
|
216
216
|
}
|
217
217
|
return e.prototype.destroy = function() {
|
218
218
|
r.prototype.destroy.call(this), this.adapter.setStyle("top", "");
|
219
219
|
}, e.prototype.handleTargetScroll = function() {
|
220
|
-
var t = Math.max(this.adapter.getViewportScrollY(), 0),
|
221
|
-
this.lastScrollPosition = t, this.isCurrentlyBeingResized || (this.currentAppBarOffsetTop -=
|
220
|
+
var t = Math.max(this.adapter.getViewportScrollY(), 0), i = t - this.lastScrollPosition;
|
221
|
+
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());
|
222
222
|
}, e.prototype.handleWindowResize = function() {
|
223
223
|
var t = this;
|
224
224
|
this.resizeThrottleId || (this.resizeThrottleId = setTimeout(function() {
|
@@ -227,7 +227,7 @@ var n = 0, C = (
|
|
227
227
|
t.handleTargetScroll(), t.isCurrentlyBeingResized = !1, t.resizeDebounceId = n;
|
228
228
|
}, a.DEBOUNCE_THROTTLE_RESIZE_TIME_MS);
|
229
229
|
}, e.prototype.checkForUpdate = function() {
|
230
|
-
var t = -this.topAppBarHeight,
|
230
|
+
var t = -this.topAppBarHeight, i = this.currentAppBarOffsetTop < 0, l = this.currentAppBarOffsetTop > t, d = i && l;
|
231
231
|
if (d)
|
232
232
|
this.wasDocked = !1;
|
233
233
|
else if (this.wasDocked) {
|
@@ -245,7 +245,7 @@ var n = 0, C = (
|
|
245
245
|
var t = this.adapter.getTopAppBarHeight();
|
246
246
|
this.topAppBarHeight !== t && (this.wasDocked = !1, this.currentAppBarOffsetTop -= this.topAppBarHeight - t, this.topAppBarHeight = t), this.handleTargetScroll();
|
247
247
|
}, e;
|
248
|
-
}(
|
248
|
+
}(y)
|
249
249
|
);
|
250
250
|
const O = C;
|
251
251
|
/**
|
@@ -321,16 +321,16 @@ class o extends _ {
|
|
321
321
|
super.disconnectedCallback(), this.unregisterListeners();
|
322
322
|
}
|
323
323
|
}
|
324
|
-
|
324
|
+
s([
|
325
325
|
g(".mdc-top-app-bar")
|
326
326
|
], o.prototype, "mdcRoot", void 0);
|
327
|
-
|
327
|
+
s([
|
328
328
|
g('slot[name="actionItems"]')
|
329
329
|
], o.prototype, "_actionItemsSlot", void 0);
|
330
|
-
|
330
|
+
s([
|
331
331
|
p({ type: Boolean })
|
332
332
|
], o.prototype, "centerTitle", void 0);
|
333
|
-
|
333
|
+
s([
|
334
334
|
p({ type: Object })
|
335
335
|
], o.prototype, "scrollTarget", null);
|
336
336
|
/**
|
@@ -366,15 +366,13 @@ class b extends o {
|
|
366
366
|
super.unregisterListeners(), window.removeEventListener("resize", this.handleResize);
|
367
367
|
}
|
368
368
|
}
|
369
|
-
|
369
|
+
s([
|
370
370
|
p({ type: Boolean, reflect: !0 })
|
371
371
|
], b.prototype, "prominent", void 0);
|
372
|
-
|
372
|
+
s([
|
373
373
|
p({ type: Boolean, reflect: !0 })
|
374
374
|
], b.prototype, "dense", void 0);
|
375
375
|
export {
|
376
|
-
C as M,
|
377
376
|
b as T,
|
378
|
-
v as c,
|
379
377
|
m as p
|
380
378
|
};
|