@mcwv/data-table
Advanced tools
Comparing version 0.14.0 to 0.15.0
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.dataTable=t():(e.mcwv=e.mcwv||{},e.mcwv.dataTable=t())}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=36)}({36:function(e,t,n){n(37),e.exports=n(89)},37:function(e,t,n){},89:function(e,t,n){"use strict";n.r(t);var o={};n.r(o),n.d(o,"MDCDataTableFoundation",(function(){return _})),n.d(o,"MDCDataTable",(function(){return U})),n.d(o,"cssClasses",(function(){return u})),n.d(o,"strings",(function(){return h})),n.d(o,"events",(function(){return l})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.dataTable=t():(e.mcwv=e.mcwv||{},e.mcwv.dataTable=t())}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}({18:function(e,t,n){e.exports=n(42)},2:function(e,t,n){"use strict";function o(e){return{version:"__VERSION__",install:t=>{Object.entries(e).forEach(([e,n])=>{const o=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),[i,...r]=o.split("-"),a=["mdc",...r].join("-"),s=["mcw",...r].join("-"),c=t.extend(n);t.component(s,c),t.component(a,c)})},components:e}}n.d(t,"a",(function(){return o}))},42:function(e,t,n){"use strict";n.r(t),n.d(t,"mcwDataTable",(function(){return K}));var o={};n.r(o),n.d(o,"MDCDataTable",(function(){return F})),n.d(o,"MDCDataTableFoundation",(function(){return C})),n.d(o,"cssClasses",(function(){return _})),n.d(o,"strings",(function(){return f})),n.d(o,"events",(function(){return p}));var i=n(2),r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)}; | ||
/*! ***************************************************************************** | ||
@@ -15,4 +15,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
and limitations under the License. | ||
***************************************************************************** */ | ||
var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a} | ||
***************************************************************************** */function a(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function c(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{c(o.next(e))}catch(e){r(e)}}function s(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((o=o.apply(e,t||[])).next())}))}function d(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function h(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e} | ||
/** | ||
@@ -40,3 +39,3 @@ * @license | ||
*/ | ||
var d=function(){function e(e){void 0===e&&(e={}),this.adapter_=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}(),u={CELL:"mdc-data-table__cell",CELL_NUMERIC:"mdc-data-table__cell--numeric",CONTENT:"mdc-data-table__content",HEADER_ROW:"mdc-data-table__header-row",HEADER_ROW_CHECKBOX:"mdc-data-table__header-row-checkbox",ROOT:"mdc-data-table",ROW:"mdc-data-table__row",ROW_CHECKBOX:"mdc-data-table__row-checkbox",ROW_SELECTED:"mdc-data-table__row--selected"},h={ARIA_SELECTED:"aria-selected",DATA_ROW_ID_ATTR:"data-row-id",HEADER_ROW_CHECKBOX_SELECTOR:"."+u.HEADER_ROW_CHECKBOX,ROW_CHECKBOX_SELECTOR:"."+u.ROW_CHECKBOX,ROW_SELECTED_SELECTOR:"."+u.ROW_SELECTED,ROW_SELECTOR:"."+u.ROW},l={ROW_SELECTION_CHANGED:"MDCDataTable:rowSelectionChanged",SELECTED_ALL:"MDCDataTable:selectedAll",UNSELECTED_ALL:"MDCDataTable:unselectedAll"},_=function(e){function t(n){return e.call(this,a({},t.defaultAdapter,n))||this}return r(t,e),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassAtRowIndex:function(){},getRowCount:function(){return 0},getRowElements:function(){return[]},getRowIdAtIndex:function(){return""},getRowIndexByChildElement:function(){return 0},getSelectedRowCount:function(){return 0},isCheckboxAtRowIndexChecked:function(){return!1},isHeaderRowCheckboxChecked:function(){return!1},isRowsSelectable:function(){return!1},notifyRowSelectionChanged:function(){},notifySelectedAll:function(){},notifyUnselectedAll:function(){},registerHeaderRowCheckbox:function(){},registerRowCheckboxes:function(){},removeClassAtRowIndex:function(){},setAttributeAtRowIndex:function(){},setHeaderRowCheckboxChecked:function(){},setHeaderRowCheckboxIndeterminate:function(){},setRowCheckboxCheckedAtIndex:function(){}}},enumerable:!0,configurable:!0}),t.prototype.layout=function(){this.adapter_.isRowsSelectable()&&(this.adapter_.registerHeaderRowCheckbox(),this.adapter_.registerRowCheckboxes(),this.setHeaderRowCheckboxState_())},t.prototype.layoutAsync=function(){return e=this,t=void 0,o=function(){return s(this,(function(e){switch(e.label){case 0:return this.adapter_.isRowsSelectable()?[4,this.adapter_.registerHeaderRowCheckbox()]:[3,3];case 1:return e.sent(),[4,this.adapter_.registerRowCheckboxes()];case 2:e.sent(),this.setHeaderRowCheckboxState_(),e.label=3;case 3:return[2]}}))},new((n=void 0)||(n=Promise))((function(i,r){function a(e){try{c(o.next(e))}catch(e){r(e)}}function s(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((o=o.apply(e,t||[])).next())}));var e,t,n,o},t.prototype.getRows=function(){return this.adapter_.getRowElements()},t.prototype.setSelectedRowIds=function(e){for(var t=0;t<this.adapter_.getRowCount();t++){var n=this.adapter_.getRowIdAtIndex(t),o=!1;n&&e.indexOf(n)>=0&&(o=!0),this.adapter_.setRowCheckboxCheckedAtIndex(t,o),this.selectRowAtIndex_(t,o)}this.setHeaderRowCheckboxState_()},t.prototype.getSelectedRowIds=function(){for(var e=[],t=0;t<this.adapter_.getRowCount();t++)this.adapter_.isCheckboxAtRowIndexChecked(t)&&e.push(this.adapter_.getRowIdAtIndex(t));return e},t.prototype.handleHeaderRowCheckboxChange=function(){for(var e=this.adapter_.isHeaderRowCheckboxChecked(),t=0;t<this.adapter_.getRowCount();t++)this.adapter_.setRowCheckboxCheckedAtIndex(t,e),this.selectRowAtIndex_(t,e);e?this.adapter_.notifySelectedAll():this.adapter_.notifyUnselectedAll()},t.prototype.handleRowCheckboxChange=function(e){var t=this.adapter_.getRowIndexByChildElement(e.target);if(-1!==t){var n=this.adapter_.isCheckboxAtRowIndexChecked(t);this.selectRowAtIndex_(t,n),this.setHeaderRowCheckboxState_();var o=this.adapter_.getRowIdAtIndex(t);this.adapter_.notifyRowSelectionChanged({rowId:o,rowIndex:t,selected:n})}},t.prototype.setHeaderRowCheckboxState_=function(){this.adapter_.getSelectedRowCount()===this.adapter_.getRowCount()?(this.adapter_.setHeaderRowCheckboxChecked(!0),this.adapter_.setHeaderRowCheckboxIndeterminate(!1)):0===this.adapter_.getSelectedRowCount()?(this.adapter_.setHeaderRowCheckboxIndeterminate(!1),this.adapter_.setHeaderRowCheckboxChecked(!1)):(this.adapter_.setHeaderRowCheckboxIndeterminate(!0),this.adapter_.setHeaderRowCheckboxChecked(!1))},t.prototype.selectRowAtIndex_=function(e,t){t?(this.adapter_.addClassAtRowIndex(e,u.ROW_SELECTED),this.adapter_.setAttributeAtRowIndex(e,h.ARIA_SELECTED,"true")):(this.adapter_.removeClassAtRowIndex(e,u.ROW_SELECTED),this.adapter_.setAttributeAtRowIndex(e,h.ARIA_SELECTED,"false"))},t}(d),f={animationend:{cssProperty:"animation",prefixed:"webkitAnimationEnd",standard:"animationend"},animationiteration:{cssProperty:"animation",prefixed:"webkitAnimationIteration",standard:"animationiteration"},animationstart:{cssProperty:"animation",prefixed:"webkitAnimationStart",standard:"animationstart"},transitionend:{cssProperty:"transition",prefixed:"webkitTransitionEnd",standard:"transitionend"}};function p(e){return Boolean(e.document)&&"function"==typeof e.document.createElement}function C(e,t){if(p(e)&&t in f){var n=e.document.createElement("div"),o=f[t],i=o.standard,r=o.prefixed;return o.cssProperty in n.style?i:r}return t} | ||
var l=function(){function e(e){void 0===e&&(e={}),this.adapter_=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}(),_={CELL:"mdc-data-table__cell",CELL_NUMERIC:"mdc-data-table__cell--numeric",CONTENT:"mdc-data-table__content",HEADER_ROW:"mdc-data-table__header-row",HEADER_ROW_CHECKBOX:"mdc-data-table__header-row-checkbox",ROOT:"mdc-data-table",ROW:"mdc-data-table__row",ROW_CHECKBOX:"mdc-data-table__row-checkbox",ROW_SELECTED:"mdc-data-table__row--selected"},f={ARIA_SELECTED:"aria-selected",DATA_ROW_ID_ATTR:"data-row-id",HEADER_ROW_CHECKBOX_SELECTOR:"."+_.HEADER_ROW_CHECKBOX,ROW_CHECKBOX_SELECTOR:"."+_.ROW_CHECKBOX,ROW_SELECTED_SELECTOR:"."+_.ROW_SELECTED,ROW_SELECTOR:"."+_.ROW},p={ROW_SELECTION_CHANGED:"MDCDataTable:rowSelectionChanged",SELECTED_ALL:"MDCDataTable:selectedAll",UNSELECTED_ALL:"MDCDataTable:unselectedAll"},C=function(e){function t(n){return e.call(this,s({},t.defaultAdapter,n))||this}return a(t,e),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassAtRowIndex:function(){},getRowCount:function(){return 0},getRowElements:function(){return[]},getRowIdAtIndex:function(){return""},getRowIndexByChildElement:function(){return 0},getSelectedRowCount:function(){return 0},isCheckboxAtRowIndexChecked:function(){return!1},isHeaderRowCheckboxChecked:function(){return!1},isRowsSelectable:function(){return!1},notifyRowSelectionChanged:function(){},notifySelectedAll:function(){},notifyUnselectedAll:function(){},registerHeaderRowCheckbox:function(){},registerRowCheckboxes:function(){},removeClassAtRowIndex:function(){},setAttributeAtRowIndex:function(){},setHeaderRowCheckboxChecked:function(){},setHeaderRowCheckboxIndeterminate:function(){},setRowCheckboxCheckedAtIndex:function(){}}},enumerable:!0,configurable:!0}),t.prototype.layout=function(){this.adapter_.isRowsSelectable()&&(this.adapter_.registerHeaderRowCheckbox(),this.adapter_.registerRowCheckboxes(),this.setHeaderRowCheckboxState_())},t.prototype.layoutAsync=function(){return c(this,void 0,void 0,(function(){return d(this,(function(e){switch(e.label){case 0:return this.adapter_.isRowsSelectable()?[4,this.adapter_.registerHeaderRowCheckbox()]:[3,3];case 1:return e.sent(),[4,this.adapter_.registerRowCheckboxes()];case 2:e.sent(),this.setHeaderRowCheckboxState_(),e.label=3;case 3:return[2]}}))}))},t.prototype.getRows=function(){return this.adapter_.getRowElements()},t.prototype.setSelectedRowIds=function(e){for(var t=0;t<this.adapter_.getRowCount();t++){var n=this.adapter_.getRowIdAtIndex(t),o=!1;n&&e.indexOf(n)>=0&&(o=!0),this.adapter_.setRowCheckboxCheckedAtIndex(t,o),this.selectRowAtIndex_(t,o)}this.setHeaderRowCheckboxState_()},t.prototype.getSelectedRowIds=function(){for(var e=[],t=0;t<this.adapter_.getRowCount();t++)this.adapter_.isCheckboxAtRowIndexChecked(t)&&e.push(this.adapter_.getRowIdAtIndex(t));return e},t.prototype.handleHeaderRowCheckboxChange=function(){for(var e=this.adapter_.isHeaderRowCheckboxChecked(),t=0;t<this.adapter_.getRowCount();t++)this.adapter_.setRowCheckboxCheckedAtIndex(t,e),this.selectRowAtIndex_(t,e);e?this.adapter_.notifySelectedAll():this.adapter_.notifyUnselectedAll()},t.prototype.handleRowCheckboxChange=function(e){var t=this.adapter_.getRowIndexByChildElement(e.target);if(-1!==t){var n=this.adapter_.isCheckboxAtRowIndexChecked(t);this.selectRowAtIndex_(t,n),this.setHeaderRowCheckboxState_();var o=this.adapter_.getRowIdAtIndex(t);this.adapter_.notifyRowSelectionChanged({rowId:o,rowIndex:t,selected:n})}},t.prototype.setHeaderRowCheckboxState_=function(){this.adapter_.getSelectedRowCount()===this.adapter_.getRowCount()?(this.adapter_.setHeaderRowCheckboxChecked(!0),this.adapter_.setHeaderRowCheckboxIndeterminate(!1)):0===this.adapter_.getSelectedRowCount()?(this.adapter_.setHeaderRowCheckboxIndeterminate(!1),this.adapter_.setHeaderRowCheckboxChecked(!1)):(this.adapter_.setHeaderRowCheckboxIndeterminate(!0),this.adapter_.setHeaderRowCheckboxChecked(!1))},t.prototype.selectRowAtIndex_=function(e,t){t?(this.adapter_.addClassAtRowIndex(e,_.ROW_SELECTED),this.adapter_.setAttributeAtRowIndex(e,f.ARIA_SELECTED,"true")):(this.adapter_.removeClassAtRowIndex(e,_.ROW_SELECTED),this.adapter_.setAttributeAtRowIndex(e,f.ARIA_SELECTED,"false"))},t}(l),E={animationend:{cssProperty:"animation",prefixed:"webkitAnimationEnd",standard:"animationend"},animationiteration:{cssProperty:"animation",prefixed:"webkitAnimationIteration",standard:"animationiteration"},animationstart:{cssProperty:"animation",prefixed:"webkitAnimationStart",standard:"animationstart"},transitionend:{cssProperty:"transition",prefixed:"webkitTransitionEnd",standard:"transitionend"}};function m(e){return Boolean(e.document)&&"function"==typeof e.document.createElement}function v(e,t){if(m(e)&&t in E){var n=e.document.createElement("div"),o=E[t],i=o.standard,r=o.prefixed;return o.cssProperty in n.style?i:r}return t} | ||
/** | ||
@@ -63,5 +62,28 @@ * @license | ||
* THE SOFTWARE. | ||
*/var E,m=function(){function e(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];this.root_=e,this.initialize.apply(this,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e}(n)),this.foundation_=void 0===t?this.getDefaultFoundation():t,this.foundation_.init(),this.initialSyncWithDOM()}return e.attachTo=function(t){return new e(t,new d({}))},e.prototype.initialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},e.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},e.prototype.initialSyncWithDOM=function(){},e.prototype.destroy=function(){this.foundation_.destroy()},e.prototype.listen=function(e,t,n){this.root_.addEventListener(e,t,n)},e.prototype.unlisten=function(e,t,n){this.root_.removeEventListener(e,t,n)},e.prototype.emit=function(e,t,n){var o;void 0===n&&(n=!1),"function"==typeof CustomEvent?o=new CustomEvent(e,{bubbles:n,detail:t}):(o=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root_.dispatchEvent(o)},e}();function v(e,t){if(void 0===e&&(e=window),void 0===t&&(t=!1),void 0===E||t){var n=!1;try{e.document.addEventListener("test",(function(){}),{get passive(){return n=!0}})}catch(e){}E=n}return!!E&&{passive:!0}} | ||
*/var b=function(){function e(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];this.root_=e,this.initialize.apply(this,h(n)),this.foundation_=void 0===t?this.getDefaultFoundation():t,this.foundation_.init(),this.initialSyncWithDOM()}return e.attachTo=function(t){return new e(t,new l({}))},e.prototype.initialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},e.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},e.prototype.initialSyncWithDOM=function(){},e.prototype.destroy=function(){this.foundation_.destroy()},e.prototype.listen=function(e,t,n){this.root_.addEventListener(e,t,n)},e.prototype.unlisten=function(e,t,n){this.root_.removeEventListener(e,t,n)},e.prototype.emit=function(e,t,n){var o;void 0===n&&(n=!1),"function"==typeof CustomEvent?o=new CustomEvent(e,{bubbles:n,detail:t}):(o=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root_.dispatchEvent(o)},e}(); | ||
/** | ||
* @license | ||
* Copyright 2019 Google Inc. | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
* THE SOFTWARE. | ||
*/ | ||
function R(e){return void 0===e&&(e=window),!!function(e){void 0===e&&(e=window);var t=!1;try{var n={get passive(){return t=!0,!1}},o=function(){};e.document.addEventListener("test",o,n),e.document.removeEventListener("test",o,n)}catch(e){t=!1}return t} | ||
/** | ||
* @license | ||
* Copyright 2018 Google Inc. | ||
@@ -86,3 +108,3 @@ * | ||
* THE SOFTWARE. | ||
*/function b(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(R(n,t))return n;n=n.parentElement}return null}function R(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)} | ||
*/(e)&&{passive:!0}}function A(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(y(n,t))return n;n=n.parentElement}return null}function y(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)} | ||
/** | ||
@@ -109,3 +131,4 @@ * @license | ||
* THE SOFTWARE. | ||
*/var A,y={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},g={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},w={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}; | ||
*/ | ||
var g,w={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},T={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},I={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}; | ||
/** | ||
@@ -133,3 +156,3 @@ * @license | ||
*/ | ||
var T=["touchstart","pointerdown","mousedown","keydown"],I=["touchend","pointerup","mouseup","contextmenu"],x=[],k=function(e){function t(n){var o=e.call(this,a({},t.defaultAdapter,n))||this;return o.activationAnimationHasEnded_=!1,o.activationTimer_=0,o.fgDeactivationRemovalTimer_=0,o.fgScale_="0",o.frame_={width:0,height:0},o.initialSize_=0,o.layoutFrame_=0,o.maxRadius_=0,o.unboundedCoords_={left:0,top:0},o.activationState_=o.defaultActivationState_(),o.activationTimerCallback_=function(){o.activationAnimationHasEnded_=!0,o.runDeactivationUXLogicIfReady_()},o.activateHandler_=function(e){return o.activate_(e)},o.deactivateHandler_=function(){return o.deactivate_()},o.focusHandler_=function(){return o.handleFocus()},o.blurHandler_=function(){return o.handleBlur()},o.resizeHandler_=function(){return o.layout()},o}return r(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return y},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return g},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return w},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this,n=this.supportsPressRipple_();if(this.registerRootHandlers_(n),n){var o=t.cssClasses,i=o.ROOT,r=o.UNBOUNDED;requestAnimationFrame((function(){e.adapter_.addClass(i),e.adapter_.isUnbounded()&&(e.adapter_.addClass(r),e.layoutInternal_())}))}},t.prototype.destroy=function(){var e=this;if(this.supportsPressRipple_()){this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,this.adapter_.removeClass(t.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer_&&(clearTimeout(this.fgDeactivationRemovalTimer_),this.fgDeactivationRemovalTimer_=0,this.adapter_.removeClass(t.cssClasses.FG_DEACTIVATION));var n=t.cssClasses,o=n.ROOT,i=n.UNBOUNDED;requestAnimationFrame((function(){e.adapter_.removeClass(o),e.adapter_.removeClass(i),e.removeCssVars_()}))}this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_()},t.prototype.activate=function(e){this.activate_(e)},t.prototype.deactivate=function(){this.deactivate_()},t.prototype.layout=function(){var e=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame((function(){e.layoutInternal_(),e.layoutFrame_=0}))},t.prototype.setUnbounded=function(e){var n=t.cssClasses.UNBOUNDED;e?this.adapter_.addClass(n):this.adapter_.removeClass(n)},t.prototype.handleFocus=function(){var e=this;requestAnimationFrame((function(){return e.adapter_.addClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.handleBlur=function(){var e=this;requestAnimationFrame((function(){return e.adapter_.removeClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.supportsPressRipple_=function(){return this.adapter_.browserSupportsCssVars()},t.prototype.defaultActivationState_=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},t.prototype.registerRootHandlers_=function(e){var t=this;e&&(T.forEach((function(e){t.adapter_.registerInteractionHandler(e,t.activateHandler_)})),this.adapter_.isUnbounded()&&this.adapter_.registerResizeHandler(this.resizeHandler_)),this.adapter_.registerInteractionHandler("focus",this.focusHandler_),this.adapter_.registerInteractionHandler("blur",this.blurHandler_)},t.prototype.registerDeactivationHandlers_=function(e){var t=this;"keydown"===e.type?this.adapter_.registerInteractionHandler("keyup",this.deactivateHandler_):I.forEach((function(e){t.adapter_.registerDocumentInteractionHandler(e,t.deactivateHandler_)}))},t.prototype.deregisterRootHandlers_=function(){var e=this;T.forEach((function(t){e.adapter_.deregisterInteractionHandler(t,e.activateHandler_)})),this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.deregisterResizeHandler(this.resizeHandler_)},t.prototype.deregisterDeactivationHandlers_=function(){var e=this;this.adapter_.deregisterInteractionHandler("keyup",this.deactivateHandler_),I.forEach((function(t){e.adapter_.deregisterDocumentInteractionHandler(t,e.deactivateHandler_)}))},t.prototype.removeCssVars_=function(){var e=this,n=t.strings;Object.keys(n).forEach((function(t){0===t.indexOf("VAR_")&&e.adapter_.updateCssVariable(n[t],null)}))},t.prototype.activate_=function(e){var t=this;if(!this.adapter_.isSurfaceDisabled()){var n=this.activationState_;if(!n.isActivated){var o=this.previousActivationEvent_;if(!(o&&void 0!==e&&o.type!==e.type))n.isActivated=!0,n.isProgrammatic=void 0===e,n.activationEvent=e,n.wasActivatedByPointer=!n.isProgrammatic&&(void 0!==e&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type)),void 0!==e&&x.length>0&&x.some((function(e){return t.adapter_.containsEventTarget(e)}))?this.resetActivationState_():(void 0!==e&&(x.push(e.target),this.registerDeactivationHandlers_(e)),n.wasElementMadeActive=this.checkElementMadeActive_(e),n.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame((function(){x=[],n.wasElementMadeActive||void 0===e||" "!==e.key&&32!==e.keyCode||(n.wasElementMadeActive=t.checkElementMadeActive_(e),n.wasElementMadeActive&&t.animateActivation_()),n.wasElementMadeActive||(t.activationState_=t.defaultActivationState_())})))}}},t.prototype.checkElementMadeActive_=function(e){return void 0===e||"keydown"!==e.type||this.adapter_.isSurfaceActive()},t.prototype.animateActivation_=function(){var e=this,n=t.strings,o=n.VAR_FG_TRANSLATE_START,i=n.VAR_FG_TRANSLATE_END,r=t.cssClasses,a=r.FG_DEACTIVATION,s=r.FG_ACTIVATION,c=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var d="",u="";if(!this.adapter_.isUnbounded()){var h=this.getFgTranslationCoordinates_(),l=h.startPoint,_=h.endPoint;d=l.x+"px, "+l.y+"px",u=_.x+"px, "+_.y+"px"}this.adapter_.updateCssVariable(o,d),this.adapter_.updateCssVariable(i,u),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(a),this.adapter_.computeBoundingRect(),this.adapter_.addClass(s),this.activationTimer_=setTimeout((function(){return e.activationTimerCallback_()}),c)},t.prototype.getFgTranslationCoordinates_=function(){var e,t=this.activationState_,n=t.activationEvent;return{startPoint:e={x:(e=t.wasActivatedByPointer?function(e,t,n){if(!e)return{x:0,y:0};var o,i,r=t.x,a=t.y,s=r+n.left,c=a+n.top;if("touchstart"===e.type){var d=e;o=d.changedTouches[0].pageX-s,i=d.changedTouches[0].pageY-c}else{var u=e;o=u.pageX-s,i=u.pageY-c}return{x:o,y:i}}(n,this.adapter_.getWindowPageOffset(),this.adapter_.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:e.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}},t.prototype.runDeactivationUXLogicIfReady_=function(){var e=this,n=t.cssClasses.FG_DEACTIVATION,o=this.activationState_,i=o.hasDeactivationUXRun,r=o.isActivated;(i||!r)&&this.activationAnimationHasEnded_&&(this.rmBoundedActivationClasses_(),this.adapter_.addClass(n),this.fgDeactivationRemovalTimer_=setTimeout((function(){e.adapter_.removeClass(n)}),w.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses_=function(){var e=t.cssClasses.FG_ACTIVATION;this.adapter_.removeClass(e),this.activationAnimationHasEnded_=!1,this.adapter_.computeBoundingRect()},t.prototype.resetActivationState_=function(){var e=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout((function(){return e.previousActivationEvent_=void 0}),t.numbers.TAP_DELAY_MS)},t.prototype.deactivate_=function(){var e=this,t=this.activationState_;if(t.isActivated){var n=a({},t);t.isProgrammatic?(requestAnimationFrame((function(){return e.animateDeactivation_(n)})),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame((function(){e.activationState_.hasDeactivationUXRun=!0,e.animateDeactivation_(n),e.resetActivationState_()})))}},t.prototype.animateDeactivation_=function(e){var t=e.wasActivatedByPointer,n=e.wasElementMadeActive;(t||n)&&this.runDeactivationUXLogicIfReady_()},t.prototype.layoutInternal_=function(){var e=this;this.frame_=this.adapter_.computeBoundingRect();var n=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter_.isUnbounded()?n:Math.sqrt(Math.pow(e.frame_.width,2)+Math.pow(e.frame_.height,2))+t.numbers.PADDING;var o=Math.floor(n*t.numbers.INITIAL_ORIGIN_SCALE);this.adapter_.isUnbounded()&&o%2!=0?this.initialSize_=o-1:this.initialSize_=o,this.fgScale_=""+this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()},t.prototype.updateLayoutCssVars_=function(){var e=t.strings,n=e.VAR_FG_SIZE,o=e.VAR_LEFT,i=e.VAR_TOP,r=e.VAR_FG_SCALE;this.adapter_.updateCssVariable(n,this.initialSize_+"px"),this.adapter_.updateCssVariable(r,this.fgScale_),this.adapter_.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter_.updateCssVariable(o,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(i,this.unboundedCoords_.top+"px"))},t}(d),S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabled=!1,t}return r(t,e),t.attachTo=function(e,n){void 0===n&&(n={isUnbounded:void 0});var o=new t(e);return void 0!==n.isUnbounded&&(o.unbounded=n.isUnbounded),o},t.createAdapter=function(e){return{addClass:function(t){return e.root_.classList.add(t)},browserSupportsCssVars:function(){return function(e,t){void 0===t&&(t=!1);var n=e.CSS,o=A;if("boolean"==typeof A&&!t)return A;if(!(n&&"function"==typeof n.supports))return!1;var i=n.supports("--css-vars","yes"),r=n.supports("(--css-vars: yes)")&&n.supports("color","#00000000");return o=!(!i&&!r)&&!function(e){var t=e.document,n=t.createElement("div");n.className="mdc-ripple-surface--test-edge-var-bug",t.head.appendChild(n);var o=e.getComputedStyle(n),i=null!==o&&"solid"===o.borderTopStyle;return n.parentNode&&n.parentNode.removeChild(n),i}(e),t||(A=o),o}(window)},computeBoundingRect:function(){return e.root_.getBoundingClientRect()},containsEventTarget:function(t){return e.root_.contains(t)},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,v())},deregisterInteractionHandler:function(t,n){return e.root_.removeEventListener(t,n,v())},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return R(e.root_,":active")},isSurfaceDisabled:function(){return Boolean(e.disabled)},isUnbounded:function(){return Boolean(e.unbounded)},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,v())},registerInteractionHandler:function(t,n){return e.root_.addEventListener(t,n,v())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},removeClass:function(t){return e.root_.classList.remove(t)},updateCssVariable:function(t,n){return e.root_.style.setProperty(t,n)}}},Object.defineProperty(t.prototype,"unbounded",{get:function(){return Boolean(this.unbounded_)},set:function(e){this.unbounded_=Boolean(e),this.setUnbounded_()},enumerable:!0,configurable:!0}),t.prototype.activate=function(){this.foundation_.activate()},t.prototype.deactivate=function(){this.foundation_.deactivate()},t.prototype.layout=function(){this.foundation_.layout()},t.prototype.getDefaultFoundation=function(){return new k(t.createAdapter(this))},t.prototype.initialSyncWithDOM=function(){var e=this.root_;this.unbounded="mdcRippleIsUnbounded"in e.dataset},t.prototype.setUnbounded_=function(){this.foundation_.setUnbounded(Boolean(this.unbounded_))},t}(m),O={ANIM_CHECKED_INDETERMINATE:"mdc-checkbox--anim-checked-indeterminate",ANIM_CHECKED_UNCHECKED:"mdc-checkbox--anim-checked-unchecked",ANIM_INDETERMINATE_CHECKED:"mdc-checkbox--anim-indeterminate-checked",ANIM_INDETERMINATE_UNCHECKED:"mdc-checkbox--anim-indeterminate-unchecked",ANIM_UNCHECKED_CHECKED:"mdc-checkbox--anim-unchecked-checked",ANIM_UNCHECKED_INDETERMINATE:"mdc-checkbox--anim-unchecked-indeterminate",BACKGROUND:"mdc-checkbox__background",CHECKED:"mdc-checkbox--checked",CHECKMARK:"mdc-checkbox__checkmark",CHECKMARK_PATH:"mdc-checkbox__checkmark-path",DISABLED:"mdc-checkbox--disabled",INDETERMINATE:"mdc-checkbox--indeterminate",MIXEDMARK:"mdc-checkbox__mixedmark",NATIVE_CONTROL:"mdc-checkbox__native-control",ROOT:"mdc-checkbox",SELECTED:"mdc-checkbox--selected",UPGRADED:"mdc-checkbox--upgraded"},D={ARIA_CHECKED_ATTR:"aria-checked",ARIA_CHECKED_INDETERMINATE_VALUE:"mixed",NATIVE_CONTROL_SELECTOR:".mdc-checkbox__native-control",TRANSITION_STATE_CHECKED:"checked",TRANSITION_STATE_INDETERMINATE:"indeterminate",TRANSITION_STATE_INIT:"init",TRANSITION_STATE_UNCHECKED:"unchecked"},H={ANIM_END_LATCH_MS:250},N=function(e){function t(n){var o=e.call(this,a({},t.defaultAdapter,n))||this;return o.currentCheckState_=D.TRANSITION_STATE_INIT,o.currentAnimationClass_="",o.animEndLatchTimer_=0,o.enableAnimationEndHandler_=!1,o}return r(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return O},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return H},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},forceLayout:function(){},hasNativeControl:function(){return!1},isAttachedToDOM:function(){return!1},isChecked:function(){return!1},isIndeterminate:function(){return!1},removeClass:function(){},removeNativeControlAttr:function(){},setNativeControlAttr:function(){},setNativeControlDisabled:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.currentCheckState_=this.determineCheckState_(),this.updateAriaChecked_(),this.adapter_.addClass(O.UPGRADED)},t.prototype.destroy=function(){clearTimeout(this.animEndLatchTimer_)},t.prototype.setDisabled=function(e){this.adapter_.setNativeControlDisabled(e),e?this.adapter_.addClass(O.DISABLED):this.adapter_.removeClass(O.DISABLED)},t.prototype.handleAnimationEnd=function(){var e=this;this.enableAnimationEndHandler_&&(clearTimeout(this.animEndLatchTimer_),this.animEndLatchTimer_=setTimeout((function(){e.adapter_.removeClass(e.currentAnimationClass_),e.enableAnimationEndHandler_=!1}),H.ANIM_END_LATCH_MS))},t.prototype.handleChange=function(){this.transitionCheckState_()},t.prototype.transitionCheckState_=function(){if(this.adapter_.hasNativeControl()){var e=this.currentCheckState_,t=this.determineCheckState_();if(e!==t){this.updateAriaChecked_();var n=D.TRANSITION_STATE_UNCHECKED,o=O.SELECTED;t===n?this.adapter_.removeClass(o):this.adapter_.addClass(o),this.currentAnimationClass_.length>0&&(clearTimeout(this.animEndLatchTimer_),this.adapter_.forceLayout(),this.adapter_.removeClass(this.currentAnimationClass_)),this.currentAnimationClass_=this.getTransitionAnimationClass_(e,t),this.currentCheckState_=t,this.adapter_.isAttachedToDOM()&&this.currentAnimationClass_.length>0&&(this.adapter_.addClass(this.currentAnimationClass_),this.enableAnimationEndHandler_=!0)}}},t.prototype.determineCheckState_=function(){var e=D.TRANSITION_STATE_INDETERMINATE,t=D.TRANSITION_STATE_CHECKED,n=D.TRANSITION_STATE_UNCHECKED;return this.adapter_.isIndeterminate()?e:this.adapter_.isChecked()?t:n},t.prototype.getTransitionAnimationClass_=function(e,n){var o=D.TRANSITION_STATE_INIT,i=D.TRANSITION_STATE_CHECKED,r=D.TRANSITION_STATE_UNCHECKED,a=t.cssClasses,s=a.ANIM_UNCHECKED_CHECKED,c=a.ANIM_UNCHECKED_INDETERMINATE,d=a.ANIM_CHECKED_UNCHECKED,u=a.ANIM_CHECKED_INDETERMINATE,h=a.ANIM_INDETERMINATE_CHECKED,l=a.ANIM_INDETERMINATE_UNCHECKED;switch(e){case o:return n===r?"":n===i?h:l;case r:return n===i?s:c;case i:return n===r?d:u;default:return n===i?h:l}},t.prototype.updateAriaChecked_=function(){this.adapter_.isIndeterminate()?this.adapter_.setNativeControlAttr(D.ARIA_CHECKED_ATTR,D.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter_.removeNativeControlAttr(D.ARIA_CHECKED_ATTR)},t}(d),L=["checked","indeterminate"],M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ripple_=t.createRipple_(),t}return r(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.ripple_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this.nativeControl_.checked},set:function(e){this.nativeControl_.checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indeterminate",{get:function(){return this.nativeControl_.indeterminate},set:function(e){this.nativeControl_.indeterminate=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.nativeControl_.disabled},set:function(e){this.foundation_.setDisabled(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.nativeControl_.value},set:function(e){this.nativeControl_.value=e},enumerable:!0,configurable:!0}),t.prototype.initialSyncWithDOM=function(){var e=this;this.handleChange_=function(){return e.foundation_.handleChange()},this.handleAnimationEnd_=function(){return e.foundation_.handleAnimationEnd()},this.nativeControl_.addEventListener("change",this.handleChange_),this.listen(C(window,"animationend"),this.handleAnimationEnd_),this.installPropertyChangeHooks_()},t.prototype.destroy=function(){this.ripple_.destroy(),this.nativeControl_.removeEventListener("change",this.handleChange_),this.unlisten(C(window,"animationend"),this.handleAnimationEnd_),this.uninstallPropertyChangeHooks_(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new N({addClass:function(t){return e.root_.classList.add(t)},forceLayout:function(){return e.root_.offsetWidth},hasNativeControl:function(){return!!e.nativeControl_},isAttachedToDOM:function(){return Boolean(e.root_.parentNode)},isChecked:function(){return e.checked},isIndeterminate:function(){return e.indeterminate},removeClass:function(t){return e.root_.classList.remove(t)},removeNativeControlAttr:function(t){return e.nativeControl_.removeAttribute(t)},setNativeControlAttr:function(t,n){return e.nativeControl_.setAttribute(t,n)},setNativeControlDisabled:function(t){return e.nativeControl_.disabled=t}})},t.prototype.createRipple_=function(){var e=this,t=a({},S.createAdapter(this),{deregisterInteractionHandler:function(t,n){return e.nativeControl_.removeEventListener(t,n,v())},isSurfaceActive:function(){return R(e.nativeControl_,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,n){return e.nativeControl_.addEventListener(t,n,v())}});return new S(this.root_,new k(t))},t.prototype.installPropertyChangeHooks_=function(){var e=this,t=this.nativeControl_,n=Object.getPrototypeOf(t);L.forEach((function(o){var i=Object.getOwnPropertyDescriptor(n,o);if(P(i)){var r=i.get,a={configurable:i.configurable,enumerable:i.enumerable,get:r,set:function(n){i.set.call(t,n),e.foundation_.handleChange()}};Object.defineProperty(t,o,a)}}))},t.prototype.uninstallPropertyChangeHooks_=function(){var e=this.nativeControl_,t=Object.getPrototypeOf(e);L.forEach((function(n){var o=Object.getOwnPropertyDescriptor(t,n);P(o)&&Object.defineProperty(e,n,o)}))},Object.defineProperty(t.prototype,"nativeControl_",{get:function(){var e=N.strings.NATIVE_CONTROL_SELECTOR,t=this.root_.querySelector(e);if(!t)throw new Error("Checkbox component requires a "+e+" element");return t},enumerable:!0,configurable:!0}),t}(m);function P(e){return!!e&&"function"==typeof e.set} | ||
var x=["touchstart","pointerdown","mousedown","keydown"],k=["touchend","pointerup","mouseup","contextmenu"],S=[],O=function(e){function t(n){var o=e.call(this,s({},t.defaultAdapter,n))||this;return o.activationAnimationHasEnded_=!1,o.activationTimer_=0,o.fgDeactivationRemovalTimer_=0,o.fgScale_="0",o.frame_={width:0,height:0},o.initialSize_=0,o.layoutFrame_=0,o.maxRadius_=0,o.unboundedCoords_={left:0,top:0},o.activationState_=o.defaultActivationState_(),o.activationTimerCallback_=function(){o.activationAnimationHasEnded_=!0,o.runDeactivationUXLogicIfReady_()},o.activateHandler_=function(e){return o.activate_(e)},o.deactivateHandler_=function(){return o.deactivate_()},o.focusHandler_=function(){return o.handleFocus()},o.blurHandler_=function(){return o.handleBlur()},o.resizeHandler_=function(){return o.layout()},o}return a(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return w},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return T},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return I},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this,n=this.supportsPressRipple_();if(this.registerRootHandlers_(n),n){var o=t.cssClasses,i=o.ROOT,r=o.UNBOUNDED;requestAnimationFrame((function(){e.adapter_.addClass(i),e.adapter_.isUnbounded()&&(e.adapter_.addClass(r),e.layoutInternal_())}))}},t.prototype.destroy=function(){var e=this;if(this.supportsPressRipple_()){this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,this.adapter_.removeClass(t.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer_&&(clearTimeout(this.fgDeactivationRemovalTimer_),this.fgDeactivationRemovalTimer_=0,this.adapter_.removeClass(t.cssClasses.FG_DEACTIVATION));var n=t.cssClasses,o=n.ROOT,i=n.UNBOUNDED;requestAnimationFrame((function(){e.adapter_.removeClass(o),e.adapter_.removeClass(i),e.removeCssVars_()}))}this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_()},t.prototype.activate=function(e){this.activate_(e)},t.prototype.deactivate=function(){this.deactivate_()},t.prototype.layout=function(){var e=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame((function(){e.layoutInternal_(),e.layoutFrame_=0}))},t.prototype.setUnbounded=function(e){var n=t.cssClasses.UNBOUNDED;e?this.adapter_.addClass(n):this.adapter_.removeClass(n)},t.prototype.handleFocus=function(){var e=this;requestAnimationFrame((function(){return e.adapter_.addClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.handleBlur=function(){var e=this;requestAnimationFrame((function(){return e.adapter_.removeClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.supportsPressRipple_=function(){return this.adapter_.browserSupportsCssVars()},t.prototype.defaultActivationState_=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},t.prototype.registerRootHandlers_=function(e){var t=this;e&&(x.forEach((function(e){t.adapter_.registerInteractionHandler(e,t.activateHandler_)})),this.adapter_.isUnbounded()&&this.adapter_.registerResizeHandler(this.resizeHandler_)),this.adapter_.registerInteractionHandler("focus",this.focusHandler_),this.adapter_.registerInteractionHandler("blur",this.blurHandler_)},t.prototype.registerDeactivationHandlers_=function(e){var t=this;"keydown"===e.type?this.adapter_.registerInteractionHandler("keyup",this.deactivateHandler_):k.forEach((function(e){t.adapter_.registerDocumentInteractionHandler(e,t.deactivateHandler_)}))},t.prototype.deregisterRootHandlers_=function(){var e=this;x.forEach((function(t){e.adapter_.deregisterInteractionHandler(t,e.activateHandler_)})),this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.deregisterResizeHandler(this.resizeHandler_)},t.prototype.deregisterDeactivationHandlers_=function(){var e=this;this.adapter_.deregisterInteractionHandler("keyup",this.deactivateHandler_),k.forEach((function(t){e.adapter_.deregisterDocumentInteractionHandler(t,e.deactivateHandler_)}))},t.prototype.removeCssVars_=function(){var e=this,n=t.strings;Object.keys(n).forEach((function(t){0===t.indexOf("VAR_")&&e.adapter_.updateCssVariable(n[t],null)}))},t.prototype.activate_=function(e){var t=this;if(!this.adapter_.isSurfaceDisabled()){var n=this.activationState_;if(!n.isActivated){var o=this.previousActivationEvent_;if(!(o&&void 0!==e&&o.type!==e.type))n.isActivated=!0,n.isProgrammatic=void 0===e,n.activationEvent=e,n.wasActivatedByPointer=!n.isProgrammatic&&(void 0!==e&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type)),void 0!==e&&S.length>0&&S.some((function(e){return t.adapter_.containsEventTarget(e)}))?this.resetActivationState_():(void 0!==e&&(S.push(e.target),this.registerDeactivationHandlers_(e)),n.wasElementMadeActive=this.checkElementMadeActive_(e),n.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame((function(){S=[],n.wasElementMadeActive||void 0===e||" "!==e.key&&32!==e.keyCode||(n.wasElementMadeActive=t.checkElementMadeActive_(e),n.wasElementMadeActive&&t.animateActivation_()),n.wasElementMadeActive||(t.activationState_=t.defaultActivationState_())})))}}},t.prototype.checkElementMadeActive_=function(e){return void 0===e||"keydown"!==e.type||this.adapter_.isSurfaceActive()},t.prototype.animateActivation_=function(){var e=this,n=t.strings,o=n.VAR_FG_TRANSLATE_START,i=n.VAR_FG_TRANSLATE_END,r=t.cssClasses,a=r.FG_DEACTIVATION,s=r.FG_ACTIVATION,c=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var d="",u="";if(!this.adapter_.isUnbounded()){var h=this.getFgTranslationCoordinates_(),l=h.startPoint,_=h.endPoint;d=l.x+"px, "+l.y+"px",u=_.x+"px, "+_.y+"px"}this.adapter_.updateCssVariable(o,d),this.adapter_.updateCssVariable(i,u),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(a),this.adapter_.computeBoundingRect(),this.adapter_.addClass(s),this.activationTimer_=setTimeout((function(){return e.activationTimerCallback_()}),c)},t.prototype.getFgTranslationCoordinates_=function(){var e,t=this.activationState_,n=t.activationEvent;return{startPoint:e={x:(e=t.wasActivatedByPointer?function(e,t,n){if(!e)return{x:0,y:0};var o,i,r=t.x,a=t.y,s=r+n.left,c=a+n.top;if("touchstart"===e.type){var d=e;o=d.changedTouches[0].pageX-s,i=d.changedTouches[0].pageY-c}else{var u=e;o=u.pageX-s,i=u.pageY-c}return{x:o,y:i}}(n,this.adapter_.getWindowPageOffset(),this.adapter_.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:e.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}},t.prototype.runDeactivationUXLogicIfReady_=function(){var e=this,n=t.cssClasses.FG_DEACTIVATION,o=this.activationState_,i=o.hasDeactivationUXRun,r=o.isActivated;(i||!r)&&this.activationAnimationHasEnded_&&(this.rmBoundedActivationClasses_(),this.adapter_.addClass(n),this.fgDeactivationRemovalTimer_=setTimeout((function(){e.adapter_.removeClass(n)}),I.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses_=function(){var e=t.cssClasses.FG_ACTIVATION;this.adapter_.removeClass(e),this.activationAnimationHasEnded_=!1,this.adapter_.computeBoundingRect()},t.prototype.resetActivationState_=function(){var e=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout((function(){return e.previousActivationEvent_=void 0}),t.numbers.TAP_DELAY_MS)},t.prototype.deactivate_=function(){var e=this,t=this.activationState_;if(t.isActivated){var n=s({},t);t.isProgrammatic?(requestAnimationFrame((function(){return e.animateDeactivation_(n)})),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame((function(){e.activationState_.hasDeactivationUXRun=!0,e.animateDeactivation_(n),e.resetActivationState_()})))}},t.prototype.animateDeactivation_=function(e){var t=e.wasActivatedByPointer,n=e.wasElementMadeActive;(t||n)&&this.runDeactivationUXLogicIfReady_()},t.prototype.layoutInternal_=function(){var e=this;this.frame_=this.adapter_.computeBoundingRect();var n=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter_.isUnbounded()?n:Math.sqrt(Math.pow(e.frame_.width,2)+Math.pow(e.frame_.height,2))+t.numbers.PADDING;var o=Math.floor(n*t.numbers.INITIAL_ORIGIN_SCALE);this.adapter_.isUnbounded()&&o%2!=0?this.initialSize_=o-1:this.initialSize_=o,this.fgScale_=""+this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()},t.prototype.updateLayoutCssVars_=function(){var e=t.strings,n=e.VAR_FG_SIZE,o=e.VAR_LEFT,i=e.VAR_TOP,r=e.VAR_FG_SCALE;this.adapter_.updateCssVariable(n,this.initialSize_+"px"),this.adapter_.updateCssVariable(r,this.fgScale_),this.adapter_.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter_.updateCssVariable(o,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(i,this.unboundedCoords_.top+"px"))},t}(l),D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabled=!1,t}return a(t,e),t.attachTo=function(e,n){void 0===n&&(n={isUnbounded:void 0});var o=new t(e);return void 0!==n.isUnbounded&&(o.unbounded=n.isUnbounded),o},t.createAdapter=function(e){return{addClass:function(t){return e.root_.classList.add(t)},browserSupportsCssVars:function(){return function(e,t){void 0===t&&(t=!1);var n,o=e.CSS;if("boolean"==typeof g&&!t)return g;if(!(o&&"function"==typeof o.supports))return!1;var i=o.supports("--css-vars","yes"),r=o.supports("(--css-vars: yes)")&&o.supports("color","#00000000");return n=i||r,t||(g=n),n}(window)},computeBoundingRect:function(){return e.root_.getBoundingClientRect()},containsEventTarget:function(t){return e.root_.contains(t)},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,R())},deregisterInteractionHandler:function(t,n){return e.root_.removeEventListener(t,n,R())},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return y(e.root_,":active")},isSurfaceDisabled:function(){return Boolean(e.disabled)},isUnbounded:function(){return Boolean(e.unbounded)},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,R())},registerInteractionHandler:function(t,n){return e.root_.addEventListener(t,n,R())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},removeClass:function(t){return e.root_.classList.remove(t)},updateCssVariable:function(t,n){return e.root_.style.setProperty(t,n)}}},Object.defineProperty(t.prototype,"unbounded",{get:function(){return Boolean(this.unbounded_)},set:function(e){this.unbounded_=Boolean(e),this.setUnbounded_()},enumerable:!0,configurable:!0}),t.prototype.activate=function(){this.foundation_.activate()},t.prototype.deactivate=function(){this.foundation_.deactivate()},t.prototype.layout=function(){this.foundation_.layout()},t.prototype.getDefaultFoundation=function(){return new O(t.createAdapter(this))},t.prototype.initialSyncWithDOM=function(){var e=this.root_;this.unbounded="mdcRippleIsUnbounded"in e.dataset},t.prototype.setUnbounded_=function(){this.foundation_.setUnbounded(Boolean(this.unbounded_))},t}(b),H={ANIM_CHECKED_INDETERMINATE:"mdc-checkbox--anim-checked-indeterminate",ANIM_CHECKED_UNCHECKED:"mdc-checkbox--anim-checked-unchecked",ANIM_INDETERMINATE_CHECKED:"mdc-checkbox--anim-indeterminate-checked",ANIM_INDETERMINATE_UNCHECKED:"mdc-checkbox--anim-indeterminate-unchecked",ANIM_UNCHECKED_CHECKED:"mdc-checkbox--anim-unchecked-checked",ANIM_UNCHECKED_INDETERMINATE:"mdc-checkbox--anim-unchecked-indeterminate",BACKGROUND:"mdc-checkbox__background",CHECKED:"mdc-checkbox--checked",CHECKMARK:"mdc-checkbox__checkmark",CHECKMARK_PATH:"mdc-checkbox__checkmark-path",DISABLED:"mdc-checkbox--disabled",INDETERMINATE:"mdc-checkbox--indeterminate",MIXEDMARK:"mdc-checkbox__mixedmark",NATIVE_CONTROL:"mdc-checkbox__native-control",ROOT:"mdc-checkbox",SELECTED:"mdc-checkbox--selected",UPGRADED:"mdc-checkbox--upgraded"},N={ARIA_CHECKED_ATTR:"aria-checked",ARIA_CHECKED_INDETERMINATE_VALUE:"mixed",NATIVE_CONTROL_SELECTOR:".mdc-checkbox__native-control",TRANSITION_STATE_CHECKED:"checked",TRANSITION_STATE_INDETERMINATE:"indeterminate",TRANSITION_STATE_INIT:"init",TRANSITION_STATE_UNCHECKED:"unchecked"},L={ANIM_END_LATCH_MS:250},M=function(e){function t(n){var o=e.call(this,s({},t.defaultAdapter,n))||this;return o.currentCheckState_=N.TRANSITION_STATE_INIT,o.currentAnimationClass_="",o.animEndLatchTimer_=0,o.enableAnimationEndHandler_=!1,o}return a(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return H},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return N},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return L},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},forceLayout:function(){},hasNativeControl:function(){return!1},isAttachedToDOM:function(){return!1},isChecked:function(){return!1},isIndeterminate:function(){return!1},removeClass:function(){},removeNativeControlAttr:function(){},setNativeControlAttr:function(){},setNativeControlDisabled:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.currentCheckState_=this.determineCheckState_(),this.updateAriaChecked_(),this.adapter_.addClass(H.UPGRADED)},t.prototype.destroy=function(){clearTimeout(this.animEndLatchTimer_)},t.prototype.setDisabled=function(e){this.adapter_.setNativeControlDisabled(e),e?this.adapter_.addClass(H.DISABLED):this.adapter_.removeClass(H.DISABLED)},t.prototype.handleAnimationEnd=function(){var e=this;this.enableAnimationEndHandler_&&(clearTimeout(this.animEndLatchTimer_),this.animEndLatchTimer_=setTimeout((function(){e.adapter_.removeClass(e.currentAnimationClass_),e.enableAnimationEndHandler_=!1}),L.ANIM_END_LATCH_MS))},t.prototype.handleChange=function(){this.transitionCheckState_()},t.prototype.transitionCheckState_=function(){if(this.adapter_.hasNativeControl()){var e=this.currentCheckState_,t=this.determineCheckState_();if(e!==t){this.updateAriaChecked_();var n=H.SELECTED;t===N.TRANSITION_STATE_UNCHECKED?this.adapter_.removeClass(n):this.adapter_.addClass(n),this.currentAnimationClass_.length>0&&(clearTimeout(this.animEndLatchTimer_),this.adapter_.forceLayout(),this.adapter_.removeClass(this.currentAnimationClass_)),this.currentAnimationClass_=this.getTransitionAnimationClass_(e,t),this.currentCheckState_=t,this.adapter_.isAttachedToDOM()&&this.currentAnimationClass_.length>0&&(this.adapter_.addClass(this.currentAnimationClass_),this.enableAnimationEndHandler_=!0)}}},t.prototype.determineCheckState_=function(){var e=N.TRANSITION_STATE_INDETERMINATE,t=N.TRANSITION_STATE_CHECKED,n=N.TRANSITION_STATE_UNCHECKED;return this.adapter_.isIndeterminate()?e:this.adapter_.isChecked()?t:n},t.prototype.getTransitionAnimationClass_=function(e,n){var o=N.TRANSITION_STATE_INIT,i=N.TRANSITION_STATE_CHECKED,r=N.TRANSITION_STATE_UNCHECKED,a=t.cssClasses,s=a.ANIM_UNCHECKED_CHECKED,c=a.ANIM_UNCHECKED_INDETERMINATE,d=a.ANIM_CHECKED_UNCHECKED,u=a.ANIM_CHECKED_INDETERMINATE,h=a.ANIM_INDETERMINATE_CHECKED,l=a.ANIM_INDETERMINATE_UNCHECKED;switch(e){case o:return n===r?"":n===i?h:l;case r:return n===i?s:c;case i:return n===r?d:u;default:return n===i?h:l}},t.prototype.updateAriaChecked_=function(){this.adapter_.isIndeterminate()?this.adapter_.setNativeControlAttr(N.ARIA_CHECKED_ATTR,N.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter_.removeNativeControlAttr(N.ARIA_CHECKED_ATTR)},t}(l),P=["checked","indeterminate"],U=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ripple_=t.createRipple_(),t}return a(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.ripple_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this.nativeControl_.checked},set:function(e){this.nativeControl_.checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indeterminate",{get:function(){return this.nativeControl_.indeterminate},set:function(e){this.nativeControl_.indeterminate=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.nativeControl_.disabled},set:function(e){this.foundation_.setDisabled(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.nativeControl_.value},set:function(e){this.nativeControl_.value=e},enumerable:!0,configurable:!0}),t.prototype.initialSyncWithDOM=function(){var e=this;this.handleChange_=function(){return e.foundation_.handleChange()},this.handleAnimationEnd_=function(){return e.foundation_.handleAnimationEnd()},this.nativeControl_.addEventListener("change",this.handleChange_),this.listen(v(window,"animationend"),this.handleAnimationEnd_),this.installPropertyChangeHooks_()},t.prototype.destroy=function(){this.ripple_.destroy(),this.nativeControl_.removeEventListener("change",this.handleChange_),this.unlisten(v(window,"animationend"),this.handleAnimationEnd_),this.uninstallPropertyChangeHooks_(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new M({addClass:function(t){return e.root_.classList.add(t)},forceLayout:function(){return e.root_.offsetWidth},hasNativeControl:function(){return!!e.nativeControl_},isAttachedToDOM:function(){return Boolean(e.root_.parentNode)},isChecked:function(){return e.checked},isIndeterminate:function(){return e.indeterminate},removeClass:function(t){return e.root_.classList.remove(t)},removeNativeControlAttr:function(t){return e.nativeControl_.removeAttribute(t)},setNativeControlAttr:function(t,n){return e.nativeControl_.setAttribute(t,n)},setNativeControlDisabled:function(t){return e.nativeControl_.disabled=t}})},t.prototype.createRipple_=function(){var e=this,t=s({},D.createAdapter(this),{deregisterInteractionHandler:function(t,n){return e.nativeControl_.removeEventListener(t,n,R())},isSurfaceActive:function(){return y(e.nativeControl_,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,n){return e.nativeControl_.addEventListener(t,n,R())}});return new D(this.root_,new O(t))},t.prototype.installPropertyChangeHooks_=function(){var e=this,t=this.nativeControl_,n=Object.getPrototypeOf(t);P.forEach((function(o){var i=Object.getOwnPropertyDescriptor(n,o);if(B(i)){var r=i.get,a={configurable:i.configurable,enumerable:i.enumerable,get:r,set:function(n){i.set.call(t,n),e.foundation_.handleChange()}};Object.defineProperty(t,o,a)}}))},t.prototype.uninstallPropertyChangeHooks_=function(){var e=this.nativeControl_,t=Object.getPrototypeOf(e);P.forEach((function(n){var o=Object.getOwnPropertyDescriptor(t,n);B(o)&&Object.defineProperty(e,n,o)}))},Object.defineProperty(t.prototype,"nativeControl_",{get:function(){var e=M.strings.NATIVE_CONTROL_SELECTOR,t=this.root_.querySelector(e);if(!t)throw new Error("Checkbox component requires a "+e+" element");return t},enumerable:!0,configurable:!0}),t}(b);function B(e){return!!e&&"function"==typeof e.set} | ||
/** | ||
@@ -156,3 +179,3 @@ * @license | ||
* THE SOFTWARE. | ||
*/var U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e){void 0===e&&(e=function(e){return new M(e)}),this.checkboxFactory_=e},t.prototype.initialSyncWithDOM=function(){var e=this;this.headerRow_=this.root_.querySelector("."+u.HEADER_ROW),this.handleHeaderRowCheckboxChange_=function(){return e.foundation_.handleHeaderRowCheckboxChange()},this.headerRow_.addEventListener("change",this.handleHeaderRowCheckboxChange_),this.content_=this.root_.querySelector("."+u.CONTENT),this.handleRowCheckboxChange_=function(t){return e.foundation_.handleRowCheckboxChange(t)},this.content_.addEventListener("change",this.handleRowCheckboxChange_),this.layout()},t.prototype.layout=function(){this.foundation_.layout()},t.prototype.getRows=function(){return this.foundation_.getRows()},t.prototype.getSelectedRowIds=function(){return this.foundation_.getSelectedRowIds()},t.prototype.setSelectedRowIds=function(e){this.foundation_.setSelectedRowIds(e)},t.prototype.destroy=function(){this.headerRow_.removeEventListener("change",this.handleHeaderRowCheckboxChange_),this.content_.removeEventListener("change",this.handleRowCheckboxChange_),this.headerRowCheckbox_.destroy(),this.rowCheckboxList_.forEach((function(e){return e.destroy()}))},t.prototype.getDefaultFoundation=function(){var e=this;return new _({addClassAtRowIndex:function(t,n){return e.getRows()[t].classList.add(n)},getRowCount:function(){return e.getRows().length},getRowElements:function(){return[].slice.call(e.root_.querySelectorAll(h.ROW_SELECTOR))},getRowIdAtIndex:function(t){return e.getRows()[t].getAttribute(h.DATA_ROW_ID_ATTR)},getRowIndexByChildElement:function(t){return e.getRows().indexOf(b(t,h.ROW_SELECTOR))},getSelectedRowCount:function(){return e.root_.querySelectorAll(h.ROW_SELECTED_SELECTOR).length},isCheckboxAtRowIndexChecked:function(t){return e.rowCheckboxList_[t].checked},isHeaderRowCheckboxChecked:function(){return e.headerRowCheckbox_.checked},isRowsSelectable:function(){return!!e.root_.querySelector(h.ROW_CHECKBOX_SELECTOR)},notifyRowSelectionChanged:function(t){e.emit(l.ROW_SELECTION_CHANGED,{row:e.getRowByIndex_(t.rowIndex),rowId:e.getRowIdByIndex_(t.rowIndex),rowIndex:t.rowIndex,selected:t.selected},!0)},notifySelectedAll:function(){return e.emit(l.SELECTED_ALL,{},!0)},notifyUnselectedAll:function(){return e.emit(l.UNSELECTED_ALL,{},!0)},registerHeaderRowCheckbox:function(){e.headerRowCheckbox_&&e.headerRowCheckbox_.destroy();var t=e.root_.querySelector(h.HEADER_ROW_CHECKBOX_SELECTOR);e.headerRowCheckbox_=e.checkboxFactory_(t)},registerRowCheckboxes:function(){e.rowCheckboxList_&&e.rowCheckboxList_.forEach((function(e){return e.destroy()})),e.rowCheckboxList_=[],e.getRows().forEach((function(t){var n=e.checkboxFactory_(t.querySelector(h.ROW_CHECKBOX_SELECTOR));e.rowCheckboxList_.push(n)}))},removeClassAtRowIndex:function(t,n){e.getRows()[t].classList.remove(n)},setAttributeAtRowIndex:function(t,n,o){e.getRows()[t].setAttribute(n,o)},setHeaderRowCheckboxChecked:function(t){e.headerRowCheckbox_.checked=t},setHeaderRowCheckboxIndeterminate:function(t){e.headerRowCheckbox_.indeterminate=t},setRowCheckboxCheckedAtIndex:function(t,n){e.rowCheckboxList_[t].checked=n}})},t.prototype.getRowByIndex_=function(e){return this.getRows()[e]},t.prototype.getRowIdByIndex_=function(e){return this.getRowByIndex_(e).getAttribute(h.DATA_ROW_ID_ATTR)},t}(m),B={name:"mcw-data-table",data:()=>({}),methods:{getRows(){return this.foundation.getRows()},layout(){this.foundation.layout()},getRowByIndex_(e){return this.getRows()[e]},getRowIdByIndex_(e){return this.getRowByIndex_(e).getAttribute(h.DATA_ROW_ID_ATTR)}},mounted(){this.checkboxFactory_=e=>new M(e);const{cssClasses:e,events:t,strings:n}=o,i={addClassAtRowIndex:(e,t)=>this.getRows()[e].classList.add(t),getRowCount:()=>this.getRows().length,getRowElements:()=>[].slice.call(this.$el.querySelectorAll(n.ROW_SELECTOR)),getRowIdAtIndex:e=>this.getRows()[e].getAttribute(n.DATA_ROW_ID_ATTR),getRowIndexByChildElement:e=>this.getRows().indexOf(b(e,n.ROW_SELECTOR)),getSelectedRowCount:()=>this.$el.querySelectorAll(n.ROW_SELECTED_SELECTOR).length,isCheckboxAtRowIndexChecked:e=>this.rowCheckboxList_[e].checked,isHeaderRowCheckboxChecked:()=>this.headerRowCheckbox_.checked,isRowsSelectable:()=>!!this.$el.querySelector(n.ROW_CHECKBOX_SELECTOR),notifyRowSelectionChanged:e=>{this.$emit(t.ROW_SELECTION_CHANGED,{row:this.getRowByIndex_(e.rowIndex),rowId:this.getRowIdByIndex_(e.rowIndex),rowIndex:e.rowIndex,selected:e.selected},!0)},notifySelectedAll:()=>this.$emit(t.SELECTED_ALL,{},!0),notifyUnselectedAll:()=>this.$emit(t.UNSELECTED_ALL,{},!0),registerHeaderRowCheckbox:()=>{this.headerRowCheckbox_&&this.headerRowCheckbox_.destroy();const e=this.$el.querySelector(n.HEADER_ROW_CHECKBOX_SELECTOR);this.headerRowCheckbox_=this.checkboxFactory_(e)},registerRowCheckboxes:()=>{this.rowCheckboxList_&&this.rowCheckboxList_.forEach(e=>e.destroy()),this.rowCheckboxList_=[],this.getRows().forEach(e=>{const t=this.checkboxFactory_(e.querySelector(n.ROW_CHECKBOX_SELECTOR));this.rowCheckboxList_.push(t)})},removeClassAtRowIndex:(e,t)=>{this.getRows()[e].classList.remove(t)},setAttributeAtRowIndex:(e,t,n)=>{this.getRows()[e].setAttribute(t,n)},setHeaderRowCheckboxChecked:e=>{this.headerRowCheckbox_.checked=e},setHeaderRowCheckboxIndeterminate:e=>{this.headerRowCheckbox_.indeterminate=e},setRowCheckboxCheckedAtIndex:(e,t)=>{this.rowCheckboxList_[e].checked=t}};this.foundation=new _(i),this.foundation.init(),this.headerRow_=this.$el.querySelector(`.${e.HEADER_ROW}`),this.handleHeaderRowCheckboxChange_=()=>this.foundation.handleHeaderRowCheckboxChange(),this.headerRow_.addEventListener("change",this.handleHeaderRowCheckboxChange_),this.content_=this.$el.querySelector(`.${e.CONTENT}`),this.handleRowCheckboxChange_=e=>this.foundation.handleRowCheckboxChange(e),this.content_.addEventListener("change",this.handleRowCheckboxChange_),this.layout()},beforeDestroy(){this.headerRow_.removeEventListener("change",this.handleHeaderRowCheckboxChange_),this.content_.removeEventListener("change",this.handleRowCheckboxChange_),this.headerRowCheckbox_&&this.headerRowCheckbox_.destroy(),this.rowCheckboxList_&&this.rowCheckboxList_.forEach(e=>e.destroy()),this.foundation.destroy()},render(e){const{$scopedSlots:t}=this;return e("div",{class:["mdc-data-table"],attrs:{}},t.default&&t.default())}}; | ||
*/var F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e){void 0===e&&(e=function(e){return new U(e)}),this.checkboxFactory_=e},t.prototype.initialSyncWithDOM=function(){var e=this;this.headerRow_=this.root_.querySelector("."+_.HEADER_ROW),this.handleHeaderRowCheckboxChange_=function(){return e.foundation_.handleHeaderRowCheckboxChange()},this.headerRow_.addEventListener("change",this.handleHeaderRowCheckboxChange_),this.content_=this.root_.querySelector("."+_.CONTENT),this.handleRowCheckboxChange_=function(t){return e.foundation_.handleRowCheckboxChange(t)},this.content_.addEventListener("change",this.handleRowCheckboxChange_),this.layout()},t.prototype.layout=function(){this.foundation_.layout()},t.prototype.getRows=function(){return this.foundation_.getRows()},t.prototype.getSelectedRowIds=function(){return this.foundation_.getSelectedRowIds()},t.prototype.setSelectedRowIds=function(e){this.foundation_.setSelectedRowIds(e)},t.prototype.destroy=function(){this.headerRow_.removeEventListener("change",this.handleHeaderRowCheckboxChange_),this.content_.removeEventListener("change",this.handleRowCheckboxChange_),this.headerRowCheckbox_.destroy(),this.rowCheckboxList_.forEach((function(e){return e.destroy()}))},t.prototype.getDefaultFoundation=function(){var e=this;return new C({addClassAtRowIndex:function(t,n){return e.getRows()[t].classList.add(n)},getRowCount:function(){return e.getRows().length},getRowElements:function(){return[].slice.call(e.root_.querySelectorAll(f.ROW_SELECTOR))},getRowIdAtIndex:function(t){return e.getRows()[t].getAttribute(f.DATA_ROW_ID_ATTR)},getRowIndexByChildElement:function(t){return e.getRows().indexOf(A(t,f.ROW_SELECTOR))},getSelectedRowCount:function(){return e.root_.querySelectorAll(f.ROW_SELECTED_SELECTOR).length},isCheckboxAtRowIndexChecked:function(t){return e.rowCheckboxList_[t].checked},isHeaderRowCheckboxChecked:function(){return e.headerRowCheckbox_.checked},isRowsSelectable:function(){return!!e.root_.querySelector(f.ROW_CHECKBOX_SELECTOR)},notifyRowSelectionChanged:function(t){e.emit(p.ROW_SELECTION_CHANGED,{row:e.getRowByIndex_(t.rowIndex),rowId:e.getRowIdByIndex_(t.rowIndex),rowIndex:t.rowIndex,selected:t.selected},!0)},notifySelectedAll:function(){return e.emit(p.SELECTED_ALL,{},!0)},notifyUnselectedAll:function(){return e.emit(p.UNSELECTED_ALL,{},!0)},registerHeaderRowCheckbox:function(){e.headerRowCheckbox_&&e.headerRowCheckbox_.destroy();var t=e.root_.querySelector(f.HEADER_ROW_CHECKBOX_SELECTOR);e.headerRowCheckbox_=e.checkboxFactory_(t)},registerRowCheckboxes:function(){e.rowCheckboxList_&&e.rowCheckboxList_.forEach((function(e){return e.destroy()})),e.rowCheckboxList_=[],e.getRows().forEach((function(t){var n=e.checkboxFactory_(t.querySelector(f.ROW_CHECKBOX_SELECTOR));e.rowCheckboxList_.push(n)}))},removeClassAtRowIndex:function(t,n){e.getRows()[t].classList.remove(n)},setAttributeAtRowIndex:function(t,n,o){e.getRows()[t].setAttribute(n,o)},setHeaderRowCheckboxChecked:function(t){e.headerRowCheckbox_.checked=t},setHeaderRowCheckboxIndeterminate:function(t){e.headerRowCheckbox_.indeterminate=t},setRowCheckboxCheckedAtIndex:function(t,n){e.rowCheckboxList_[t].checked=n}})},t.prototype.getRowByIndex_=function(e){return this.getRows()[e]},t.prototype.getRowIdByIndex_=function(e){return this.getRowByIndex_(e).getAttribute(f.DATA_ROW_ID_ATTR)},t}(b),K={name:"mcw-data-table",data:()=>({}),methods:{getRows(){return this.foundation.getRows()},layout(){this.foundation.layout()},getRowByIndex_(e){return this.getRows()[e]},getRowIdByIndex_(e){return this.getRowByIndex_(e).getAttribute(f.DATA_ROW_ID_ATTR)}},mounted(){this.checkboxFactory_=e=>new U(e);const{cssClasses:e,events:t,strings:n}=o,i={addClassAtRowIndex:(e,t)=>this.getRows()[e].classList.add(t),getRowCount:()=>this.getRows().length,getRowElements:()=>[].slice.call(this.$el.querySelectorAll(n.ROW_SELECTOR)),getRowIdAtIndex:e=>this.getRows()[e].getAttribute(n.DATA_ROW_ID_ATTR),getRowIndexByChildElement:e=>this.getRows().indexOf(A(e,n.ROW_SELECTOR)),getSelectedRowCount:()=>this.$el.querySelectorAll(n.ROW_SELECTED_SELECTOR).length,isCheckboxAtRowIndexChecked:e=>this.rowCheckboxList_[e].checked,isHeaderRowCheckboxChecked:()=>this.headerRowCheckbox_.checked,isRowsSelectable:()=>!!this.$el.querySelector(n.ROW_CHECKBOX_SELECTOR),notifyRowSelectionChanged:e=>{this.$emit(t.ROW_SELECTION_CHANGED,{row:this.getRowByIndex_(e.rowIndex),rowId:this.getRowIdByIndex_(e.rowIndex),rowIndex:e.rowIndex,selected:e.selected},!0)},notifySelectedAll:()=>this.$emit(t.SELECTED_ALL,{},!0),notifyUnselectedAll:()=>this.$emit(t.UNSELECTED_ALL,{},!0),registerHeaderRowCheckbox:()=>{this.headerRowCheckbox_&&this.headerRowCheckbox_.destroy();const e=this.$el.querySelector(n.HEADER_ROW_CHECKBOX_SELECTOR);this.headerRowCheckbox_=this.checkboxFactory_(e)},registerRowCheckboxes:()=>{this.rowCheckboxList_&&this.rowCheckboxList_.forEach(e=>e.destroy()),this.rowCheckboxList_=[],this.getRows().forEach(e=>{const t=this.checkboxFactory_(e.querySelector(n.ROW_CHECKBOX_SELECTOR));this.rowCheckboxList_.push(t)})},removeClassAtRowIndex:(e,t)=>{this.getRows()[e].classList.remove(t)},setAttributeAtRowIndex:(e,t,n)=>{this.getRows()[e].setAttribute(t,n)},setHeaderRowCheckboxChecked:e=>{this.headerRowCheckbox_.checked=e},setHeaderRowCheckboxIndeterminate:e=>{this.headerRowCheckbox_.indeterminate=e},setRowCheckboxCheckedAtIndex:(e,t)=>{this.rowCheckboxList_[e].checked=t}};this.foundation=new C(i),this.foundation.init(),this.headerRow_=this.$el.querySelector(`.${e.HEADER_ROW}`),this.handleHeaderRowCheckboxChange_=()=>this.foundation.handleHeaderRowCheckboxChange(),this.headerRow_.addEventListener("change",this.handleHeaderRowCheckboxChange_),this.content_=this.$el.querySelector(`.${e.CONTENT}`),this.handleRowCheckboxChange_=e=>this.foundation.handleRowCheckboxChange(e),this.content_.addEventListener("change",this.handleRowCheckboxChange_),this.layout()},beforeDestroy(){this.headerRow_.removeEventListener("change",this.handleHeaderRowCheckboxChange_),this.content_.removeEventListener("change",this.handleRowCheckboxChange_),this.headerRowCheckbox_&&this.headerRowCheckbox_.destroy(),this.rowCheckboxList_&&this.rowCheckboxList_.forEach(e=>e.destroy()),this.foundation.destroy()},render(e){const{$scopedSlots:t}=this;return e("div",{class:["mdc-data-table"],attrs:{}},t.default&&t.default())}}; | ||
/** | ||
@@ -179,3 +202,3 @@ * @license | ||
* THE SOFTWARE. | ||
*/n.d(t,"mcwDataTable",(function(){return B}));var F;t.default={version:"__VERSION__",install:e=>{Object.entries(F).forEach(([t,n])=>{const o=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),[i,...r]=o.split("-"),a=["mdc",...r].join("-"),s=["mcw",...r].join("-"),c=e.extend(n);e.component(s,c),e.component(a,c)})},components:F={mcwDataTable:B}}}})})); | ||
*/t.default=Object(i.a)({mcwDataTable:K})}})})); | ||
//# sourceMappingURL=mcwv.dataTable.min.js.map |
{ | ||
"name": "@mcwv/data-table", | ||
"description": "The Vue Material Adapter for the web data-table component", | ||
"version": "0.14.0", | ||
"version": "0.15.0", | ||
"license": "MIT", | ||
@@ -19,6 +19,6 @@ "main": "dist/mcwv.data-table.min.js", | ||
"dependencies": { | ||
"@material/checkbox": "^4.0.0", | ||
"@material/data-table": "^4.0.0", | ||
"@material/dom": "^4.0.0", | ||
"@mcwv/base": "^0.14.0" | ||
"@material/checkbox": "^5.1.0", | ||
"@material/data-table": "^5.1.0", | ||
"@material/dom": "^5.1.0", | ||
"@mcwv/base": "^0.15.0" | ||
}, | ||
@@ -29,3 +29,3 @@ "bugs": { | ||
"homepage": "https://github.com/pgbross/vue-material-adapter#readme", | ||
"gitHead": "78fd659b77df5ddf640cacf3c86edd798f679972" | ||
"gitHead": "b22bec8a9ecd8b859f8435c2fd5ef3865ba22f64" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
230003
521
+ Added@material/animation@5.1.0(transitive)
+ Added@material/base@5.1.0(transitive)
+ Added@material/checkbox@5.1.0(transitive)
+ Added@material/data-table@5.1.0(transitive)
+ Added@material/density@5.1.0(transitive)
+ Added@material/dom@5.1.0(transitive)
+ Added@material/elevation@5.1.0(transitive)
+ Added@material/feature-targeting@5.1.0(transitive)
+ Added@material/ripple@5.1.0(transitive)
+ Added@material/rtl@5.1.0(transitive)
+ Added@material/shape@5.1.0(transitive)
+ Added@material/theme@5.1.0(transitive)
+ Added@material/touch-target@5.1.0(transitive)
+ Added@material/typography@5.1.0(transitive)
+ Added@mcwv/base@0.15.0(transitive)
- Removed@material/animation@4.0.0(transitive)
- Removed@material/base@4.0.0(transitive)
- Removed@material/checkbox@4.0.0(transitive)
- Removed@material/data-table@4.0.0(transitive)
- Removed@material/density@4.0.0(transitive)
- Removed@material/dom@4.0.0(transitive)
- Removed@material/elevation@4.0.0(transitive)
- Removed@material/feature-targeting@4.0.0(transitive)
- Removed@material/ripple@4.0.0(transitive)
- Removed@material/rtl@4.0.0(transitive)
- Removed@material/shape@4.0.0(transitive)
- Removed@material/theme@4.0.0(transitive)
- Removed@material/touch-target@4.0.0(transitive)
- Removed@material/typography@4.0.0(transitive)
- Removed@mcwv/base@0.14.0(transitive)
Updated@material/checkbox@^5.1.0
Updated@material/data-table@^5.1.0
Updated@material/dom@^5.1.0
Updated@mcwv/base@^0.15.0