formed.css
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -1,2 +0,12 @@ | ||
/******/ (function(modules) { // webpackBootstrap | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(); | ||
else if(typeof define === 'function' && define.amd) | ||
define([], factory); | ||
else if(typeof exports === 'object') | ||
exports["formed-checkbox"] = factory(); | ||
else | ||
root["formed-checkbox"] = factory(); | ||
})(this, function() { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
/******/ // The module cache | ||
@@ -66,7 +76,8 @@ /******/ var installedModules = {}; | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 0); | ||
/******/ return __webpack_require__(__webpack_require__.s = 52); | ||
/******/ }) | ||
/************************************************************************/ | ||
/******/ ([ | ||
/* 0 */ | ||
/******/ ({ | ||
/***/ 52: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -195,3 +206,5 @@ | ||
/***/ }) | ||
/******/ ]); | ||
/******/ }); | ||
}); | ||
//# sourceMappingURL=checkbox.js.map |
@@ -1,2 +0,12 @@ | ||
/******/ (function(modules) { // webpackBootstrap | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(); | ||
else if(typeof define === 'function' && define.amd) | ||
define([], factory); | ||
else if(typeof exports === 'object') | ||
exports["formed-editor"] = factory(); | ||
else | ||
root["formed-editor"] = factory(); | ||
})(this, function() { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
/******/ // The module cache | ||
@@ -66,8 +76,8 @@ /******/ var installedModules = {}; | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 1); | ||
/******/ return __webpack_require__(__webpack_require__.s = 53); | ||
/******/ }) | ||
/************************************************************************/ | ||
/******/ ([ | ||
/* 0 */, | ||
/* 1 */ | ||
/******/ ({ | ||
/***/ 53: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -239,3 +249,5 @@ | ||
/***/ }) | ||
/******/ ]); | ||
/******/ }); | ||
}); | ||
//# sourceMappingURL=editor.js.map |
@@ -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.formed=t():e.formed=t()}(this,function(){return function(e){function t(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=4)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.element.classList.remove(f.IS_FOCUSED)}function t(){o.call(this)}function i(e){this.element.classList.add(f.IS_FOCUSED)}function r(r){r.control.addEventListener("blur",e.bind(r)),r.control.addEventListener("change",t.bind(r)),r.control.addEventListener("focus",i.bind(r))}function n(){var e=this.control.disabled?"add":"remove";this.element.classList[e](f.IS_DISABLED)}function s(){var e=this.control.checked?"add":"remove";this.element.classList[e](f.IS_CHECKED)}function a(e,t){e.classList.add(f.IS_CUSTOM);var i=document.createElement("span");return i.classList.add(f.BOX),e.insertBefore(i,t.nextSibling),i}function o(){n.call(this),s.call(this)}function l(){this.control.checked=!0,o()}function d(){this.control.checked=!1,o()}function c(){this.control.disabled=!0,o()}function u(){this.control.disabled=!1,o()}function h(e){if(e&&1!==e.nodeType)throw new TypeError("Element passed in is not a HTML node.");var t=Object.create(E);return t.element=e,t.control=e.querySelector("."+f.CONTROL),t.label=e.querySelector("."+f.LABEL),t.box=a(t.element,t.control),r(t),o.call(t),t}var f={CHECKBOX:"Checkbox",CONTROL:"Checkbox-control",BOX:"Checkbox-box",LABEL:"Checkbox-label",IS_CHECKED:"is-checked",IS_CUSTOM:"is-custom",IS_DISABLED:"is-disabled",IS_FOCUSED:"is-focused"},E={check:l,uncheck:d,disable:c,enable:u};return h}();t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){return this.controlEl.disabled=!0,this.refreshState()}function t(){return this.controlEl.disabled=!1,this.refreshState()}function i(e){var t=Object.create(v);if(e&&1!==e.nodeType)throw new TypeError("Element passed in is not a HTML node.");return t.editorEl=e,t.controlEl=t.editorEl.querySelector("."+b.CONTROL),t.iconEl=t.editorEl.querySelector("."+b.ICON),t.labelEl=t.editorEl.querySelector("."+b.LABEL),s.call(t),u.call(t),t.refreshState(),t.controlEl.hasAttribute("autofocus")&&(t.editorEl.focus(),o.call(t)),t}function r(){this.controlEl.removeEventListener("blur",h.bind(this)),this.controlEl.removeEventListener("focus",f.bind(this)),this.controlEl.removeEventListener("input",E.bind(this)),this.controlEl.removeEventListener("reset",L.bind(this))}function n(){return l.call(this),a.call(this),o.call(this),d.call(this),c.call(this),this}function s(){this.controlEl.addEventListener("blur",h.bind(this)),this.controlEl.addEventListener("focus",f.bind(this)),this.controlEl.addEventListener("input",E.bind(this)),this.controlEl.addEventListener("reset",L.bind(this))}function a(){var e=this.controlEl.hasAttribute("disabled"),t=e?"add":"remove";this.editorEl.classList[t](b.IS_DISABLED)}function o(){var e=!!this.editorEl.querySelector(":focus"),t=e?"add":"remove";this.editorEl.classList[t](b.IS_FOCUSED)}function l(){var e=this.controlEl.value&&this.controlEl.value.length>0,t=e?"add":"remove";this.editorEl.classList[t](b.IS_DIRTY)}function d(){var e=this.controlEl.hasAttribute("readonly"),t=e?"add":"remove";this.editorEl.classList[t](b.IS_READONLY)}function c(){if(this.controlEl.validity){var e=this.controlEl.validity.valid,t=e?"remove":"add";this.editorEl.classList[t](b.IS_INVALID)}}function u(){this.controlEl&&this.controlEl.hasAttribute("placeholder")&&this.editorEl.classList.add(b.HAS_PLACEHOLDER)}function h(){this.editorEl.classList.remove(b.IS_FOCUSED)}function f(){this.editorEl.classList.add(b.IS_FOCUSED)}function E(){this.refreshState()}function L(){this.refreshState()}var b={CONTROL:"Editor-control",LABEL:"Editor-label",ICON:"Editor-icon",HAS_ICON:"has-icon",HAS_PLACEHOLDER:"has-placeholder",IS_DIRTY:"is-dirty",IS_DISABLED:"is-disabled",IS_FOCUSED:"is-focused",IS_INVALID:"is-invalid",IS_READONLY:"is-readonly"},v={disable:e,enable:t,refreshState:n,destroy:r};return i}();t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){return this.drawer&&this.drawer.classList.contains(h.isDrawerActiveClass)}function t(){return this.drawer&&this.element.classList.contains("Layout--drawerFixed")}function i(){this.drawer.classList.toggle(h.isDrawerActiveClass),this.mask.classList.toggle(h.isDrawerActiveClass),this.hasActiveDrawer()?(this.drawer.setAttribute("aria-hidden","false"),this.drawerBtn.setAttribute("aria-expanded","true")):(this.drawer.setAttribute("aria-hidden","true"),this.drawerBtn.setAttribute("aria-expanded","false"))}function r(e){var t=Object.create(E);return t.element=e,l.call(t),d.call(t),t.drawer&&c.call(t),t.breakpoint=window.matchMedia(h.breakpoint),a.call(t),o.call(t),t}function n(e){var t=f.SPACE,i=f.ENTER;if(e&&"keydown"===e.type){if(e.keyCode!==t&&e.keyCode!==i)return;e.preventDefault()}this.toggleDrawer()}function s(e){e.keyCode===f.ESCAPE&&this.hasActiveDrawer()&&this.toggleDrawer()}function a(){this.breakpoint.matches&&this.drawer?(this.drawer.setAttribute("aria-hidden",(!this.hasDrawerFixed()).toString()),this.drawerBtn.setAttribute("aria-expanded","false"),this.drawer.classList.remove(h.isDrawerActiveClass),this.mask.classList.remove(h.isDrawerActiveClass)):this.hasDrawerFixed()&&this.drawer.setAttribute("aria-hidden","true")}function o(){return this.drawer&&(this.drawerBtn.addEventListener("click",n.bind(this)),this.drawerBtn.addEventListener("keydown",n.bind(this)),this.drawer.addEventListener("keydown",s.bind(this)),this.mask.addEventListener("click",n.bind(this))),this.breakpoint.addListener(a.bind(this)),this}function l(){var e=document.createElement("div");e.classList.add("layout-absoluteViewport");var t=document.querySelector(":focus");return this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element),e.appendChild(this.element),t&&t.focus(),this}function d(){for(var e=this.element.childNodes,t=e.length,i=0;i<t;i++){var r=e[i];r.classList&&r.classList.contains(h.headerClass)&&(this.header=r),r.classList&&r.classList.contains(h.drawerClass)&&(this.drawer=r),r.classList&&r.classList.contains(h.mainClass)&&(this.main=r)}return this}function c(){return this.drawerBtn=this.element.querySelector("."+h.drawerBtnClass),this.drawer.setAttribute("aria-hidden","true"),this.drawerBtn.setAttribute("aria-expanded","false"),this.drawerBtn.setAttribute("tabindex","0"),this.drawerBtn.setAttribute("type","button"),"button"!==this.drawerBtn.tagName.toLowerCase()&&this.drawerBtn.setAttribute("role","button"),u.call(this),this}function u(){return this.mask=document.createElement("div"),this.mask.classList.add(h.maskClass),this.element.appendChild(this.mask),this}var h={headerClass:"Layout-header",drawerClass:"Layout-drawer",drawerBtnClass:"Layout-header-menu",mainClass:"Layout-main",maskClass:"Layout-mask",isDrawerActiveClass:"is-active",breakpoint:"(min-width: 992px)"},f={ENTER:13,ESCAPE:27,SPACE:32},E={hasActiveDrawer:e,hasDrawerFixed:t,toggleDrawer:i};return r}();t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.element.classList.remove(L.IS_FOCUSED)}function t(){this.radioSet.forEach(function(e){var t=new Event("radio:update");e.dispatchEvent(t)})}function i(e){this.element.classList.add(L.IS_FOCUSED)}function r(){this.element.classList.add(L.IS_PRESSED)}function n(){this.element.classList.remove(L.IS_PRESSED)}function s(s){s.control.addEventListener("blur",e.bind(s)),s.control.addEventListener("change",t.bind(s)),s.control.addEventListener("focus",i.bind(s)),s.element.addEventListener("radio:update",d.bind(s)),s.element.addEventListener("mousedown",r.bind(s)),s.element.addEventListener("mouseup",n.bind(s))}function a(){var e=this.control.disabled?"add":"remove";this.element.classList[e](L.IS_DISABLED)}function o(){var e=this.control.checked?"add":"remove";this.element.classList[e](L.IS_CHECKED)}function l(e,t){e.classList.add(L.IS_CUSTOM);var i=document.createElement("span");return i.classList.add(L.CIRCLE),e.insertBefore(i,t.nextSibling),i}function d(){a.call(this),o.call(this)}function c(){this.control.checked=!0,d()}function u(){this.control.checked=!1,d()}function h(){this.control.disabled=!0,d()}function f(){this.control.disabled=!1,d()}function E(e){if(e&&1!==e.nodeType)throw new TypeError("Element passed in is not a HTML node.");var t=Object.create(b);return t.element=e,t.control=e.querySelector("."+L.CONTROL),t.label=e.querySelector("."+L.LABEL),t.circle=l(t.element,t.control),t.radioSet=Array.from(e.parentNode.getElementsByClassName(L.RADIO)),s(t),d.call(t),t}var L={RADIO:"Radio",CONTROL:"Radio-control",CIRCLE:"Radio-circle",LABEL:"Radio-label",IS_CHECKED:"is-checked",IS_CUSTOM:"is-custom",IS_DISABLED:"is-disabled",IS_FOCUSED:"is-focused",IS_PRESSED:"is-pressed"},b={check:c,uncheck:u,disable:h,enable:f};return E}();t.default=r},function(e,t,i){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),s=r(n),a=i(1),o=r(a),l=i(2),d=r(l),c=i(3),u=r(c);t.default={checkbox:s.default,editor:o.default,layout:d.default,radio:u.default}}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.formed=e():t.formed=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=56)}([function(t,e,r){function n(t){return null==t?void 0===t?c:a:l&&l in Object(t)?i(t):s(t)}var o=r(5),i=r(35),s=r(41),a="[object Null]",c="[object Undefined]",l=o?o.toStringTag:void 0;t.exports=n},function(t,e,r){var n=r(9),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},function(t,e,r){function n(t){return null!=t&&i(t.length)&&!o(t)}var o=r(14),i=r(15);t.exports=n},function(t,e){function r(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=r},function(t,e){function r(t){return null!=t&&"object"==typeof t}t.exports=r},function(t,e,r){var n=r(1),o=n.Symbol;t.exports=o},function(t,e,r){function n(t,e,r){var n=t[e];a.call(t,e)&&i(n,r)&&(void 0!==r||e in t)||o(t,e,r)}var o=r(7),i=r(12),s=Object.prototype,a=s.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e,r){"__proto__"==e&&o?o(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var o=r(8);t.exports=n},function(t,e,r){var n=r(34),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(e,r(55))},function(t,e){function r(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||o.test(t))&&t>-1&&t%1==0&&t<e}var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;t.exports=r},function(t,e){function r(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}var n=Object.prototype;t.exports=r},function(t,e){function r(t,e){return t===e||t!==t&&e!==e}t.exports=r},function(t,e){function r(t){return t}t.exports=r},function(t,e,r){function n(t){if(!i(t))return!1;var e=o(t);return e==a||e==c||e==s||e==l}var o=r(0),i=r(3),s="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",l="[object Proxy]";t.exports=n},function(t,e){function r(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}var n=9007199254740991;t.exports=r},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.element.classList.remove(h.IS_FOCUSED)}function e(){a.call(this)}function r(t){this.element.classList.add(h.IS_FOCUSED)}function n(n){n.control.addEventListener("blur",t.bind(n)),n.control.addEventListener("change",e.bind(n)),n.control.addEventListener("focus",r.bind(n))}function o(){var t=this.control.disabled?"add":"remove";this.element.classList[t](h.IS_DISABLED)}function i(){var t=this.control.checked?"add":"remove";this.element.classList[t](h.IS_CHECKED)}function s(t,e){t.classList.add(h.IS_CUSTOM);var r=document.createElement("span");return r.classList.add(h.BOX),t.insertBefore(r,e.nextSibling),r}function a(){o.call(this),i.call(this)}function c(){this.control.checked=!0,a()}function l(){this.control.checked=!1,a()}function u(){this.control.disabled=!0,a()}function d(){this.control.disabled=!1,a()}function f(t){if(t&&1!==t.nodeType)throw new TypeError("Element passed in is not a HTML node.");var e=Object.create(p);return e.element=t,e.control=t.querySelector("."+h.CONTROL),e.label=t.querySelector("."+h.LABEL),e.box=s(e.element,e.control),n(e),a.call(e),e}var h={CHECKBOX:"Checkbox",CONTROL:"Checkbox-control",BOX:"Checkbox-box",LABEL:"Checkbox-label",IS_CHECKED:"is-checked",IS_CUSTOM:"is-custom",IS_DISABLED:"is-disabled",IS_FOCUSED:"is-focused"},p={check:c,uncheck:l,disable:u,enable:d};return f}();e.default=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){return this.controlEl.disabled=!0,this.refreshState()}function e(){return this.controlEl.disabled=!1,this.refreshState()}function r(t){var e=Object.create(E);if(t&&1!==t.nodeType)throw new TypeError("Element passed in is not a HTML node.");return e.editorEl=t,e.controlEl=e.editorEl.querySelector("."+b.CONTROL),e.iconEl=e.editorEl.querySelector("."+b.ICON),e.labelEl=e.editorEl.querySelector("."+b.LABEL),i.call(e),d.call(e),e.refreshState(),e.controlEl.hasAttribute("autofocus")&&(e.editorEl.focus(),a.call(e)),e}function n(){this.controlEl.removeEventListener("blur",f.bind(this)),this.controlEl.removeEventListener("focus",h.bind(this)),this.controlEl.removeEventListener("input",p.bind(this)),this.controlEl.removeEventListener("reset",v.bind(this))}function o(){return c.call(this),s.call(this),a.call(this),l.call(this),u.call(this),this}function i(){this.controlEl.addEventListener("blur",f.bind(this)),this.controlEl.addEventListener("focus",h.bind(this)),this.controlEl.addEventListener("input",p.bind(this)),this.controlEl.addEventListener("reset",v.bind(this))}function s(){var t=this.controlEl.hasAttribute("disabled"),e=t?"add":"remove";this.editorEl.classList[e](b.IS_DISABLED)}function a(){var t=!!this.editorEl.querySelector(":focus"),e=t?"add":"remove";this.editorEl.classList[e](b.IS_FOCUSED)}function c(){var t=this.controlEl.value&&this.controlEl.value.length>0,e=t?"add":"remove";this.editorEl.classList[e](b.IS_DIRTY)}function l(){var t=this.controlEl.hasAttribute("readonly"),e=t?"add":"remove";this.editorEl.classList[e](b.IS_READONLY)}function u(){if(this.controlEl.validity){var t=this.controlEl.validity.valid,e=t?"remove":"add";this.editorEl.classList[e](b.IS_INVALID)}}function d(){this.controlEl&&this.controlEl.hasAttribute("placeholder")&&this.editorEl.classList.add(b.HAS_PLACEHOLDER)}function f(){this.editorEl.classList.remove(b.IS_FOCUSED)}function h(){this.editorEl.classList.add(b.IS_FOCUSED)}function p(){this.refreshState()}function v(){this.refreshState()}var b={CONTROL:"Editor-control",LABEL:"Editor-label",ICON:"Editor-icon",HAS_ICON:"has-icon",HAS_PLACEHOLDER:"has-placeholder",IS_DIRTY:"is-dirty",IS_DISABLED:"is-disabled",IS_FOCUSED:"is-focused",IS_INVALID:"is-invalid",IS_READONLY:"is-readonly"},E={disable:t,enable:e,refreshState:o,destroy:n};return r}();e.default=n},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=r(47),i=n(o),s=function(){function t(){return this.drawer&&this.drawer.classList.contains(E.isDrawerActiveClass)}function e(){return this.drawer&&this.element.classList.contains("Layout--drawerFixed")}function r(){d.call(this)}function n(){return d.call(this),h.call(this),this.drawer&&p.call(this),this.screenSizeHandler(),u.call(this),this}function o(){return this.drawer.classList.toggle(E.isDrawerActiveClass),this.mask.classList.toggle(E.isDrawerActiveClass),this.hasActiveDrawer()?(this.drawer.setAttribute("aria-hidden","false"),this.drawerBtn.setAttribute("aria-expanded","true")):(this.drawer.setAttribute("aria-hidden","true"),this.drawerBtn.setAttribute("aria-expanded","false")),this}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.create(m);return r.config=(0,i.default)({},b,e),r.element=t,r.drawerToggleHandler=a.bind(r),r.keyboardHandler=c.bind(r),r.screenSizeHandler=l.bind(r),f.call(r),h.call(r),r.drawer&&p.call(r),r.breakpoint=window.matchMedia(E.breakpoint),r.screenSizeHandler(),u.call(r),r}function a(t){var e=y.SPACE,r=y.ENTER;if(t&&"keydown"===t.type){if(t.keyCode!==e&&t.keyCode!==r)return;t.preventDefault()}this.toggleDrawer()}function c(t){t.keyCode===y.ESCAPE&&this.hasActiveDrawer()&&this.toggleDrawer()}function l(){this.breakpoint.matches&&this.drawer?(this.drawer.setAttribute("aria-hidden",(!this.hasDrawerFixed()).toString()),this.drawerBtn.setAttribute("aria-expanded","false"),this.drawer.classList.remove(E.isDrawerActiveClass),this.mask.classList.remove(E.isDrawerActiveClass)):this.hasDrawerFixed()&&this.drawer.setAttribute("aria-hidden","true")}function u(){return this.drawer&&(this.drawerBtn.addEventListener("click",this.drawerToggleHandler),this.drawerBtn.addEventListener("keydown",this.drawerToggleHandler),this.drawer.addEventListener("keydown",this.keyboardHandler),this.mask.addEventListener("click",this.drawerToggleHandler)),this.breakpoint.addListener(this.screenSizeHandler),this}function d(){this.drawer&&(this.drawerBtn.removeEventListener("click",this.drawerToggleHandler),this.drawerBtn.removeEventListener("keydown",this.drawerToggleHandler),this.drawer.removeEventListener("keydown",this.keyboardHandler),this.mask.removeEventListener("click",this.drawerToggleHandler)),this.breakpoint.removeListener(l)}function f(){var t=this.config.parent?document.querySelector(this.config.parent):document.createElement("div");t.classList.add("layout-absoluteViewport");var e=document.querySelector(":focus");return this.config.parent||(this.element.parentNode.insertBefore(t,this.element),this.element.parentNode.removeChild(this.element),t.appendChild(this.element)),e&&e.focus(),this}function h(){for(var t=this.element.childNodes,e=t.length,r=0;r<e;r++){var n=t[r];n.classList&&n.classList.contains(E.headerClass)&&(this.header=n),n.classList&&n.classList.contains(E.drawerClass)&&(this.drawer=n),n.classList&&n.classList.contains(E.mainClass)&&(this.main=n)}return this}function p(){if(this.drawerBtn=this.element.querySelector("."+E.drawerBtnClass),!this.drawerBtn)throw Error("No "+E.drawerBtnClass+" detected.");return this.drawer.setAttribute("aria-hidden","true"),this.drawerBtn.setAttribute("aria-expanded","false"),this.drawerBtn.setAttribute("tabindex","0"),this.drawerBtn.setAttribute("type","button"),"button"!==this.drawerBtn.tagName.toLowerCase()&&this.drawerBtn.setAttribute("role","button"),v.call(this),this}function v(){return this.mask=document.createElement("div"),this.mask.classList.add(E.maskClass),this.element.appendChild(this.mask),this}var b={parent:null},E={headerClass:"Layout-header",drawerClass:"Layout-drawer",drawerBtnClass:"Layout-header-menu",mainClass:"Layout-main",maskClass:"Layout-mask",isDrawerActiveClass:"is-active",breakpoint:"(min-width: 992px)"},y={ENTER:13,ESCAPE:27,SPACE:32},m={destroy:r,hasActiveDrawer:t,hasDrawerFixed:e,toggleDrawer:o,refresh:n};return s}();e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.element.classList.remove(v.IS_FOCUSED)}function e(){this.radioSet.forEach(function(t){var e=new Event("radio:update");t.dispatchEvent(e)})}function r(t){this.element.classList.add(v.IS_FOCUSED)}function n(){this.element.classList.add(v.IS_PRESSED)}function o(){this.element.classList.remove(v.IS_PRESSED)}function i(i){i.control.addEventListener("blur",t.bind(i)),i.control.addEventListener("change",e.bind(i)),i.control.addEventListener("focus",r.bind(i)),i.element.addEventListener("radio:update",l.bind(i)),i.element.addEventListener("mousedown",n.bind(i)),i.element.addEventListener("mouseup",o.bind(i))}function s(){var t=this.control.disabled?"add":"remove";this.element.classList[t](v.IS_DISABLED)}function a(){var t=this.control.checked?"add":"remove";this.element.classList[t](v.IS_CHECKED)}function c(t,e){t.classList.add(v.IS_CUSTOM);var r=document.createElement("span");return r.classList.add(v.CIRCLE),t.insertBefore(r,e.nextSibling),r}function l(){s.call(this),a.call(this)}function u(){this.control.checked=!0,l()}function d(){this.control.checked=!1,l()}function f(){this.control.disabled=!0,l()}function h(){this.control.disabled=!1,l()}function p(t){if(t&&1!==t.nodeType)throw new TypeError("Element passed in is not a HTML node.");var e=Object.create(b);return e.element=t,e.control=t.querySelector("."+v.CONTROL),e.label=t.querySelector("."+v.LABEL),e.circle=c(e.element,e.control),e.radioSet=Array.from(t.parentNode.getElementsByClassName(v.RADIO)),i(e),l.call(e),e}var v={RADIO:"Radio",CONTROL:"Radio-control",CIRCLE:"Radio-circle",LABEL:"Radio-label",IS_CHECKED:"is-checked",IS_CUSTOM:"is-custom",IS_DISABLED:"is-disabled",IS_FOCUSED:"is-focused",IS_PRESSED:"is-pressed"},b={check:u,uncheck:d,disable:f,enable:h};return p}();e.default=n},function(t,e){function r(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}t.exports=r},function(t,e,r){function n(t,e){var r=s(t),n=!r&&i(t),u=!r&&!n&&a(t),f=!r&&!n&&!u&&l(t),h=r||n||u||f,p=h?o(t.length,String):[],v=p.length;for(var b in t)!e&&!d.call(t,b)||h&&("length"==b||u&&("offset"==b||"parent"==b)||f&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||c(b,v))||p.push(b);return p}var o=r(29),i=r(49),s=r(50),a=r(51),c=r(10),l=r(52),u=Object.prototype,d=u.hasOwnProperty;t.exports=n},function(t,e,r){function n(t){return i(t)&&o(t)==s}var o=r(0),i=r(4),s="[object Arguments]";t.exports=n},function(t,e,r){function n(t){return!(!s(t)||i(t))&&(o(t)?p:l).test(a(t))}var o=r(14),i=r(38),s=r(3),a=r(46),c=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,d=Object.prototype,f=u.toString,h=d.hasOwnProperty,p=RegExp("^"+f.call(h).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=n},function(t,e,r){function n(t){return s(t)&&i(t.length)&&!!a[o(t)]}var o=r(0),i=r(15),s=r(4),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=n},function(t,e,r){function n(t){if(!o(t))return i(t);var e=[];for(var r in Object(t))a.call(t,r)&&"constructor"!=r&&e.push(r);return e}var o=r(11),i=r(39),s=Object.prototype,a=s.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e){return s(i(t,e,o),t+"")}var o=r(13),i=r(43),s=r(44);t.exports=n},function(t,e,r){var n=r(48),o=r(8),i=r(13),s=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=s},function(t,e){function r(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}t.exports=r},function(t,e){function r(t){return function(e){return t(e)}}t.exports=r},function(t,e,r){function n(t,e,r,n){var s=!r;r||(r={});for(var a=-1,c=e.length;++a<c;){var l=e[a],u=n?n(r[l],t[l],l,r,t):void 0;void 0===u&&(u=t[l]),s?i(r,l,u):o(r,l,u)}return r}var o=r(6),i=r(7);t.exports=n},function(t,e,r){var n=r(1),o=n["__core-js_shared__"];t.exports=o},function(t,e,r){function n(t){return o(function(e,r){var n=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++n<o;){var c=r[n];c&&t(e,c,n,s)}return e})}var o=r(27),i=r(37);t.exports=n},function(t,e,r){function n(t,e){var r=i(t,e);return o(r)?r:void 0}var o=r(24),i=r(36);t.exports=n},function(t,e,r){function n(t){var e=s.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[c]=r:delete t[c]),o}var o=r(5),i=Object.prototype,s=i.hasOwnProperty,a=i.toString,c=o?o.toStringTag:void 0;t.exports=n},function(t,e){function r(t,e){return null==t?void 0:t[e]}t.exports=r},function(t,e,r){function n(t,e,r){if(!a(r))return!1;var n=typeof e;return!!("number"==n?i(r)&&s(e,r.length):"string"==n&&e in r)&&o(r[e],t)}var o=r(12),i=r(2),s=r(10),a=r(3);t.exports=n},function(t,e,r){function n(t){return!!i&&i in t}var o=r(32),i=function(){var t=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=n},function(t,e,r){var n=r(42),o=n(Object.keys,Object);t.exports=o},function(t,e,r){(function(t){var n=r(9),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=i&&i.exports===o,a=s&&n.process,c=function(){try{return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c}).call(e,r(16)(t))},function(t,e){function r(t){return o.call(t)}var n=Object.prototype,o=n.toString;t.exports=r},function(t,e){function r(t,e){return function(r){return t(e(r))}}t.exports=r},function(t,e,r){function n(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var n=arguments,s=-1,a=i(n.length-e,0),c=Array(a);++s<a;)c[s]=n[e+s];s=-1;for(var l=Array(e+1);++s<e;)l[s]=n[s];return l[e]=r(c),o(t,this,l)}}var o=r(21),i=Math.max;t.exports=n},function(t,e,r){var n=r(28),o=r(45),i=o(n);t.exports=i},function(t,e){function r(t){var e=0,r=0;return function(){var s=i(),a=o-(s-r);if(r=s,a>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var n=800,o=16,i=Date.now;t.exports=r},function(t,e){function r(t){if(null!=t){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var n=Function.prototype,o=n.toString;t.exports=r},function(t,e,r){var n=r(6),o=r(31),i=r(33),s=r(2),a=r(11),c=r(53),l=Object.prototype,u=l.hasOwnProperty,d=i(function(t,e){if(a(e)||s(e))return void o(e,c(e),t);for(var r in e)u.call(e,r)&&n(t,r,e[r])});t.exports=d},function(t,e){function r(t){return function(){return t}}t.exports=r},function(t,e,r){var n=r(23),o=r(4),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return o(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){(function(t){var n=r(1),o=r(54),i="object"==typeof e&&e&&!e.nodeType&&e,s=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===i,c=a?n.Buffer:void 0,l=c?c.isBuffer:void 0,u=l||o;t.exports=u}).call(e,r(16)(t))},function(t,e,r){var n=r(25),o=r(30),i=r(40),s=i&&i.isTypedArray,a=s?o(s):n;t.exports=a},function(t,e,r){function n(t){return s(t)?o(t):i(t)}var o=r(22),i=r(26),s=r(2);t.exports=n},function(t,e){function r(){return!1}t.exports=r},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=r(17),i=n(o),s=r(18),a=n(s),c=r(19),l=n(c),u=r(20),d=n(u);e.default={checkbox:i.default,editor:a.default,layout:l.default,radio:d.default}}])}); | ||
//# sourceMappingURL=formed.min.js.map |
@@ -1,2 +0,12 @@ | ||
/******/ (function(modules) { // webpackBootstrap | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(); | ||
else if(typeof define === 'function' && define.amd) | ||
define([], factory); | ||
else if(typeof exports === 'object') | ||
exports["formed-layout"] = factory(); | ||
else | ||
root["formed-layout"] = factory(); | ||
})(this, function() { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
/******/ // The module cache | ||
@@ -66,10 +76,1694 @@ /******/ var installedModules = {}; | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 2); | ||
/******/ return __webpack_require__(__webpack_require__.s = 54); | ||
/******/ }) | ||
/************************************************************************/ | ||
/******/ ({ | ||
/******/ ([ | ||
/* 0 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
/***/ 2: | ||
var Symbol = __webpack_require__(5), | ||
getRawTag = __webpack_require__(32), | ||
objectToString = __webpack_require__(38); | ||
/** `Object#toString` result references. */ | ||
var nullTag = '[object Null]', | ||
undefinedTag = '[object Undefined]'; | ||
/** Built-in value references. */ | ||
var symToStringTag = Symbol ? Symbol.toStringTag : undefined; | ||
/** | ||
* The base implementation of `getTag` without fallbacks for buggy environments. | ||
* | ||
* @private | ||
* @param {*} value The value to query. | ||
* @returns {string} Returns the `toStringTag`. | ||
*/ | ||
function baseGetTag(value) { | ||
if (value == null) { | ||
return value === undefined ? undefinedTag : nullTag; | ||
} | ||
return (symToStringTag && symToStringTag in Object(value)) | ||
? getRawTag(value) | ||
: objectToString(value); | ||
} | ||
module.exports = baseGetTag; | ||
/***/ }), | ||
/* 1 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var freeGlobal = __webpack_require__(9); | ||
/** Detect free variable `self`. */ | ||
var freeSelf = typeof self == 'object' && self && self.Object === Object && self; | ||
/** Used as a reference to the global object. */ | ||
var root = freeGlobal || freeSelf || Function('return this')(); | ||
module.exports = root; | ||
/***/ }), | ||
/* 2 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var isFunction = __webpack_require__(14), | ||
isLength = __webpack_require__(15); | ||
/** | ||
* Checks if `value` is array-like. A value is considered array-like if it's | ||
* not a function and has a `value.length` that's an integer greater than or | ||
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @since 4.0.0 | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is array-like, else `false`. | ||
* @example | ||
* | ||
* _.isArrayLike([1, 2, 3]); | ||
* // => true | ||
* | ||
* _.isArrayLike(document.body.children); | ||
* // => true | ||
* | ||
* _.isArrayLike('abc'); | ||
* // => true | ||
* | ||
* _.isArrayLike(_.noop); | ||
* // => false | ||
*/ | ||
function isArrayLike(value) { | ||
return value != null && isLength(value.length) && !isFunction(value); | ||
} | ||
module.exports = isArrayLike; | ||
/***/ }), | ||
/* 3 */ | ||
/***/ (function(module, exports) { | ||
/** | ||
* Checks if `value` is the | ||
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) | ||
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @since 0.1.0 | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is an object, else `false`. | ||
* @example | ||
* | ||
* _.isObject({}); | ||
* // => true | ||
* | ||
* _.isObject([1, 2, 3]); | ||
* // => true | ||
* | ||
* _.isObject(_.noop); | ||
* // => true | ||
* | ||
* _.isObject(null); | ||
* // => false | ||
*/ | ||
function isObject(value) { | ||
var type = typeof value; | ||
return value != null && (type == 'object' || type == 'function'); | ||
} | ||
module.exports = isObject; | ||
/***/ }), | ||
/* 4 */ | ||
/***/ (function(module, exports) { | ||
/** | ||
* Checks if `value` is object-like. A value is object-like if it's not `null` | ||
* and has a `typeof` result of "object". | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @since 4.0.0 | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is object-like, else `false`. | ||
* @example | ||
* | ||
* _.isObjectLike({}); | ||
* // => true | ||
* | ||
* _.isObjectLike([1, 2, 3]); | ||
* // => true | ||
* | ||
* _.isObjectLike(_.noop); | ||
* // => false | ||
* | ||
* _.isObjectLike(null); | ||
* // => false | ||
*/ | ||
function isObjectLike(value) { | ||
return value != null && typeof value == 'object'; | ||
} | ||
module.exports = isObjectLike; | ||
/***/ }), | ||
/* 5 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var root = __webpack_require__(1); | ||
/** Built-in value references. */ | ||
var Symbol = root.Symbol; | ||
module.exports = Symbol; | ||
/***/ }), | ||
/* 6 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var baseAssignValue = __webpack_require__(7), | ||
eq = __webpack_require__(12); | ||
/** Used for built-in method references. */ | ||
var objectProto = Object.prototype; | ||
/** Used to check objects for own properties. */ | ||
var hasOwnProperty = objectProto.hasOwnProperty; | ||
/** | ||
* Assigns `value` to `key` of `object` if the existing value is not equivalent | ||
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) | ||
* for equality comparisons. | ||
* | ||
* @private | ||
* @param {Object} object The object to modify. | ||
* @param {string} key The key of the property to assign. | ||
* @param {*} value The value to assign. | ||
*/ | ||
function assignValue(object, key, value) { | ||
var objValue = object[key]; | ||
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || | ||
(value === undefined && !(key in object))) { | ||
baseAssignValue(object, key, value); | ||
} | ||
} | ||
module.exports = assignValue; | ||
/***/ }), | ||
/* 7 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var defineProperty = __webpack_require__(8); | ||
/** | ||
* The base implementation of `assignValue` and `assignMergeValue` without | ||
* value checks. | ||
* | ||
* @private | ||
* @param {Object} object The object to modify. | ||
* @param {string} key The key of the property to assign. | ||
* @param {*} value The value to assign. | ||
*/ | ||
function baseAssignValue(object, key, value) { | ||
if (key == '__proto__' && defineProperty) { | ||
defineProperty(object, key, { | ||
'configurable': true, | ||
'enumerable': true, | ||
'value': value, | ||
'writable': true | ||
}); | ||
} else { | ||
object[key] = value; | ||
} | ||
} | ||
module.exports = baseAssignValue; | ||
/***/ }), | ||
/* 8 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var getNative = __webpack_require__(31); | ||
var defineProperty = (function() { | ||
try { | ||
var func = getNative(Object, 'defineProperty'); | ||
func({}, '', {}); | ||
return func; | ||
} catch (e) {} | ||
}()); | ||
module.exports = defineProperty; | ||
/***/ }), | ||
/* 9 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ | ||
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; | ||
module.exports = freeGlobal; | ||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(51))) | ||
/***/ }), | ||
/* 10 */ | ||
/***/ (function(module, exports) { | ||
/** Used as references for various `Number` constants. */ | ||
var MAX_SAFE_INTEGER = 9007199254740991; | ||
/** Used to detect unsigned integer values. */ | ||
var reIsUint = /^(?:0|[1-9]\d*)$/; | ||
/** | ||
* Checks if `value` is a valid array-like index. | ||
* | ||
* @private | ||
* @param {*} value The value to check. | ||
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. | ||
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`. | ||
*/ | ||
function isIndex(value, length) { | ||
length = length == null ? MAX_SAFE_INTEGER : length; | ||
return !!length && | ||
(typeof value == 'number' || reIsUint.test(value)) && | ||
(value > -1 && value % 1 == 0 && value < length); | ||
} | ||
module.exports = isIndex; | ||
/***/ }), | ||
/* 11 */ | ||
/***/ (function(module, exports) { | ||
/** Used for built-in method references. */ | ||
var objectProto = Object.prototype; | ||
/** | ||
* Checks if `value` is likely a prototype object. | ||
* | ||
* @private | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`. | ||
*/ | ||
function isPrototype(value) { | ||
var Ctor = value && value.constructor, | ||
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; | ||
return value === proto; | ||
} | ||
module.exports = isPrototype; | ||
/***/ }), | ||
/* 12 */ | ||
/***/ (function(module, exports) { | ||
/** | ||
* Performs a | ||
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) | ||
* comparison between two values to determine if they are equivalent. | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @since 4.0.0 | ||
* @category Lang | ||
* @param {*} value The value to compare. | ||
* @param {*} other The other value to compare. | ||
* @returns {boolean} Returns `true` if the values are equivalent, else `false`. | ||
* @example | ||
* | ||
* var object = { 'a': 1 }; | ||
* var other = { 'a': 1 }; | ||
* | ||
* _.eq(object, object); | ||
* // => true | ||
* | ||
* _.eq(object, other); | ||
* // => false | ||
* | ||
* _.eq('a', 'a'); | ||
* // => true | ||
* | ||
* _.eq('a', Object('a')); | ||
* // => false | ||
* | ||
* _.eq(NaN, NaN); | ||
* // => true | ||
*/ | ||
function eq(value, other) { | ||
return value === other || (value !== value && other !== other); | ||
} | ||
module.exports = eq; | ||
/***/ }), | ||
/* 13 */ | ||
/***/ (function(module, exports) { | ||
/** | ||
* This method returns the first argument it receives. | ||
* | ||
* @static | ||
* @since 0.1.0 | ||
* @memberOf _ | ||
* @category Util | ||
* @param {*} value Any value. | ||
* @returns {*} Returns `value`. | ||
* @example | ||
* | ||
* var object = { 'a': 1 }; | ||
* | ||
* console.log(_.identity(object) === object); | ||
* // => true | ||
*/ | ||
function identity(value) { | ||
return value; | ||
} | ||
module.exports = identity; | ||
/***/ }), | ||
/* 14 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var baseGetTag = __webpack_require__(0), | ||
isObject = __webpack_require__(3); | ||
/** `Object#toString` result references. */ | ||
var asyncTag = '[object AsyncFunction]', | ||
funcTag = '[object Function]', | ||
genTag = '[object GeneratorFunction]', | ||
proxyTag = '[object Proxy]'; | ||
/** | ||
* Checks if `value` is classified as a `Function` object. | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @since 0.1.0 | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is a function, else `false`. | ||
* @example | ||
* | ||
* _.isFunction(_); | ||
* // => true | ||
* | ||
* _.isFunction(/abc/); | ||
* // => false | ||
*/ | ||
function isFunction(value) { | ||
if (!isObject(value)) { | ||
return false; | ||
} | ||
// The use of `Object#toString` avoids issues with the `typeof` operator | ||
// in Safari 9 which returns 'object' for typed arrays and other constructors. | ||
var tag = baseGetTag(value); | ||
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; | ||
} | ||
module.exports = isFunction; | ||
/***/ }), | ||
/* 15 */ | ||
/***/ (function(module, exports) { | ||
/** Used as references for various `Number` constants. */ | ||
var MAX_SAFE_INTEGER = 9007199254740991; | ||
/** | ||
* Checks if `value` is a valid array-like length. | ||
* | ||
* **Note:** This method is loosely based on | ||
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @since 4.0.0 | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`. | ||
* @example | ||
* | ||
* _.isLength(3); | ||
* // => true | ||
* | ||
* _.isLength(Number.MIN_VALUE); | ||
* // => false | ||
* | ||
* _.isLength(Infinity); | ||
* // => false | ||
* | ||
* _.isLength('3'); | ||
* // => false | ||
*/ | ||
function isLength(value) { | ||
return typeof value == 'number' && | ||
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; | ||
} | ||
module.exports = isLength; | ||
/***/ }), | ||
/* 16 */ | ||
/***/ (function(module, exports) { | ||
module.exports = function(module) { | ||
if(!module.webpackPolyfill) { | ||
module.deprecate = function() {}; | ||
module.paths = []; | ||
// module.parent = undefined by default | ||
if(!module.children) module.children = []; | ||
Object.defineProperty(module, "loaded", { | ||
enumerable: true, | ||
get: function() { | ||
return module.l; | ||
} | ||
}); | ||
Object.defineProperty(module, "id", { | ||
enumerable: true, | ||
get: function() { | ||
return module.i; | ||
} | ||
}); | ||
module.webpackPolyfill = 1; | ||
} | ||
return module; | ||
}; | ||
/***/ }), | ||
/* 17 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var assignValue = __webpack_require__(6), | ||
copyObject = __webpack_require__(28), | ||
createAssigner = __webpack_require__(30), | ||
isArrayLike = __webpack_require__(2), | ||
isPrototype = __webpack_require__(11), | ||
keys = __webpack_require__(49); | ||
/** Used for built-in method references. */ | ||
var objectProto = Object.prototype; | ||
/** Used to check objects for own properties. */ | ||
var hasOwnProperty = objectProto.hasOwnProperty; | ||
/** | ||
* Assigns own enumerable string keyed properties of source objects to the | ||
* destination object. Source objects are applied from left to right. | ||
* Subsequent sources overwrite property assignments of previous sources. | ||
* | ||
* **Note:** This method mutates `object` and is loosely based on | ||
* [`Object.assign`](https://mdn.io/Object/assign). | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @since 0.10.0 | ||
* @category Object | ||
* @param {Object} object The destination object. | ||
* @param {...Object} [sources] The source objects. | ||
* @returns {Object} Returns `object`. | ||
* @see _.assignIn | ||
* @example | ||
* | ||
* function Foo() { | ||
* this.a = 1; | ||
* } | ||
* | ||
* function Bar() { | ||
* this.c = 3; | ||
* } | ||
* | ||
* Foo.prototype.b = 2; | ||
* Bar.prototype.d = 4; | ||
* | ||
* _.assign({ 'a': 0 }, new Foo, new Bar); | ||
* // => { 'a': 1, 'c': 3 } | ||
*/ | ||
var assign = createAssigner(function(object, source) { | ||
if (isPrototype(source) || isArrayLike(source)) { | ||
copyObject(source, keys(source), object); | ||
return; | ||
} | ||
for (var key in source) { | ||
if (hasOwnProperty.call(source, key)) { | ||
assignValue(object, key, source[key]); | ||
} | ||
} | ||
}); | ||
module.exports = assign; | ||
/***/ }), | ||
/* 18 */ | ||
/***/ (function(module, exports) { | ||
/** | ||
* A faster alternative to `Function#apply`, this function invokes `func` | ||
* with the `this` binding of `thisArg` and the arguments of `args`. | ||
* | ||
* @private | ||
* @param {Function} func The function to invoke. | ||
* @param {*} thisArg The `this` binding of `func`. | ||
* @param {Array} args The arguments to invoke `func` with. | ||
* @returns {*} Returns the result of `func`. | ||
*/ | ||
function apply(func, thisArg, args) { | ||
switch (args.length) { | ||
case 0: return func.call(thisArg); | ||
case 1: return func.call(thisArg, args[0]); | ||
case 2: return func.call(thisArg, args[0], args[1]); | ||
case 3: return func.call(thisArg, args[0], args[1], args[2]); | ||
} | ||
return func.apply(thisArg, args); | ||
} | ||
module.exports = apply; | ||
/***/ }), | ||
/* 19 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var baseTimes = __webpack_require__(26), | ||
isArguments = __webpack_require__(45), | ||
isArray = __webpack_require__(46), | ||
isBuffer = __webpack_require__(47), | ||
isIndex = __webpack_require__(10), | ||
isTypedArray = __webpack_require__(48); | ||
/** Used for built-in method references. */ | ||
var objectProto = Object.prototype; | ||
/** Used to check objects for own properties. */ | ||
var hasOwnProperty = objectProto.hasOwnProperty; | ||
/** | ||
* Creates an array of the enumerable property names of the array-like `value`. | ||
* | ||
* @private | ||
* @param {*} value The value to query. | ||
* @param {boolean} inherited Specify returning inherited property names. | ||
* @returns {Array} Returns the array of property names. | ||
*/ | ||
function arrayLikeKeys(value, inherited) { | ||
var isArr = isArray(value), | ||
isArg = !isArr && isArguments(value), | ||
isBuff = !isArr && !isArg && isBuffer(value), | ||
isType = !isArr && !isArg && !isBuff && isTypedArray(value), | ||
skipIndexes = isArr || isArg || isBuff || isType, | ||
result = skipIndexes ? baseTimes(value.length, String) : [], | ||
length = result.length; | ||
for (var key in value) { | ||
if ((inherited || hasOwnProperty.call(value, key)) && | ||
!(skipIndexes && ( | ||
// Safari 9 has enumerable `arguments.length` in strict mode. | ||
key == 'length' || | ||
// Node.js 0.10 has enumerable non-index properties on buffers. | ||
(isBuff && (key == 'offset' || key == 'parent')) || | ||
// PhantomJS 2 has enumerable non-index properties on typed arrays. | ||
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || | ||
// Skip index properties. | ||
isIndex(key, length) | ||
))) { | ||
result.push(key); | ||
} | ||
} | ||
return result; | ||
} | ||
module.exports = arrayLikeKeys; | ||
/***/ }), | ||
/* 20 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var baseGetTag = __webpack_require__(0), | ||
isObjectLike = __webpack_require__(4); | ||
/** `Object#toString` result references. */ | ||
var argsTag = '[object Arguments]'; | ||
/** | ||
* The base implementation of `_.isArguments`. | ||
* | ||
* @private | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is an `arguments` object, | ||
*/ | ||
function baseIsArguments(value) { | ||
return isObjectLike(value) && baseGetTag(value) == argsTag; | ||
} | ||
module.exports = baseIsArguments; | ||
/***/ }), | ||
/* 21 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var isFunction = __webpack_require__(14), | ||
isMasked = __webpack_require__(35), | ||
isObject = __webpack_require__(3), | ||
toSource = __webpack_require__(43); | ||
/** | ||
* Used to match `RegExp` | ||
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). | ||
*/ | ||
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; | ||
/** Used to detect host constructors (Safari). */ | ||
var reIsHostCtor = /^\[object .+?Constructor\]$/; | ||
/** Used for built-in method references. */ | ||
var funcProto = Function.prototype, | ||
objectProto = Object.prototype; | ||
/** Used to resolve the decompiled source of functions. */ | ||
var funcToString = funcProto.toString; | ||
/** Used to check objects for own properties. */ | ||
var hasOwnProperty = objectProto.hasOwnProperty; | ||
/** Used to detect if a method is native. */ | ||
var reIsNative = RegExp('^' + | ||
funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') | ||
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' | ||
); | ||
/** | ||
* The base implementation of `_.isNative` without bad shim checks. | ||
* | ||
* @private | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is a native function, | ||
* else `false`. | ||
*/ | ||
function baseIsNative(value) { | ||
if (!isObject(value) || isMasked(value)) { | ||
return false; | ||
} | ||
var pattern = isFunction(value) ? reIsNative : reIsHostCtor; | ||
return pattern.test(toSource(value)); | ||
} | ||
module.exports = baseIsNative; | ||
/***/ }), | ||
/* 22 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var baseGetTag = __webpack_require__(0), | ||
isLength = __webpack_require__(15), | ||
isObjectLike = __webpack_require__(4); | ||
/** `Object#toString` result references. */ | ||
var argsTag = '[object Arguments]', | ||
arrayTag = '[object Array]', | ||
boolTag = '[object Boolean]', | ||
dateTag = '[object Date]', | ||
errorTag = '[object Error]', | ||
funcTag = '[object Function]', | ||
mapTag = '[object Map]', | ||
numberTag = '[object Number]', | ||
objectTag = '[object Object]', | ||
regexpTag = '[object RegExp]', | ||
setTag = '[object Set]', | ||
stringTag = '[object String]', | ||
weakMapTag = '[object WeakMap]'; | ||
var arrayBufferTag = '[object ArrayBuffer]', | ||
dataViewTag = '[object DataView]', | ||
float32Tag = '[object Float32Array]', | ||
float64Tag = '[object Float64Array]', | ||
int8Tag = '[object Int8Array]', | ||
int16Tag = '[object Int16Array]', | ||
int32Tag = '[object Int32Array]', | ||
uint8Tag = '[object Uint8Array]', | ||
uint8ClampedTag = '[object Uint8ClampedArray]', | ||
uint16Tag = '[object Uint16Array]', | ||
uint32Tag = '[object Uint32Array]'; | ||
/** Used to identify `toStringTag` values of typed arrays. */ | ||
var typedArrayTags = {}; | ||
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = | ||
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = | ||
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = | ||
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = | ||
typedArrayTags[uint32Tag] = true; | ||
typedArrayTags[argsTag] = typedArrayTags[arrayTag] = | ||
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = | ||
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = | ||
typedArrayTags[errorTag] = typedArrayTags[funcTag] = | ||
typedArrayTags[mapTag] = typedArrayTags[numberTag] = | ||
typedArrayTags[objectTag] = typedArrayTags[regexpTag] = | ||
typedArrayTags[setTag] = typedArrayTags[stringTag] = | ||
typedArrayTags[weakMapTag] = false; | ||
/** | ||
* The base implementation of `_.isTypedArray` without Node.js optimizations. | ||
* | ||
* @private | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`. | ||
*/ | ||
function baseIsTypedArray(value) { | ||
return isObjectLike(value) && | ||
isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; | ||
} | ||
module.exports = baseIsTypedArray; | ||
/***/ }), | ||
/* 23 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var isPrototype = __webpack_require__(11), | ||
nativeKeys = __webpack_require__(36); | ||
/** Used for built-in method references. */ | ||
var objectProto = Object.prototype; | ||
/** Used to check objects for own properties. */ | ||
var hasOwnProperty = objectProto.hasOwnProperty; | ||
/** | ||
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense. | ||
* | ||
* @private | ||
* @param {Object} object The object to query. | ||
* @returns {Array} Returns the array of property names. | ||
*/ | ||
function baseKeys(object) { | ||
if (!isPrototype(object)) { | ||
return nativeKeys(object); | ||
} | ||
var result = []; | ||
for (var key in Object(object)) { | ||
if (hasOwnProperty.call(object, key) && key != 'constructor') { | ||
result.push(key); | ||
} | ||
} | ||
return result; | ||
} | ||
module.exports = baseKeys; | ||
/***/ }), | ||
/* 24 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var identity = __webpack_require__(13), | ||
overRest = __webpack_require__(40), | ||
setToString = __webpack_require__(41); | ||
/** | ||
* The base implementation of `_.rest` which doesn't validate or coerce arguments. | ||
* | ||
* @private | ||
* @param {Function} func The function to apply a rest parameter to. | ||
* @param {number} [start=func.length-1] The start position of the rest parameter. | ||
* @returns {Function} Returns the new function. | ||
*/ | ||
function baseRest(func, start) { | ||
return setToString(overRest(func, start, identity), func + ''); | ||
} | ||
module.exports = baseRest; | ||
/***/ }), | ||
/* 25 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var constant = __webpack_require__(44), | ||
defineProperty = __webpack_require__(8), | ||
identity = __webpack_require__(13); | ||
/** | ||
* The base implementation of `setToString` without support for hot loop shorting. | ||
* | ||
* @private | ||
* @param {Function} func The function to modify. | ||
* @param {Function} string The `toString` result. | ||
* @returns {Function} Returns `func`. | ||
*/ | ||
var baseSetToString = !defineProperty ? identity : function(func, string) { | ||
return defineProperty(func, 'toString', { | ||
'configurable': true, | ||
'enumerable': false, | ||
'value': constant(string), | ||
'writable': true | ||
}); | ||
}; | ||
module.exports = baseSetToString; | ||
/***/ }), | ||
/* 26 */ | ||
/***/ (function(module, exports) { | ||
/** | ||
* The base implementation of `_.times` without support for iteratee shorthands | ||
* or max array length checks. | ||
* | ||
* @private | ||
* @param {number} n The number of times to invoke `iteratee`. | ||
* @param {Function} iteratee The function invoked per iteration. | ||
* @returns {Array} Returns the array of results. | ||
*/ | ||
function baseTimes(n, iteratee) { | ||
var index = -1, | ||
result = Array(n); | ||
while (++index < n) { | ||
result[index] = iteratee(index); | ||
} | ||
return result; | ||
} | ||
module.exports = baseTimes; | ||
/***/ }), | ||
/* 27 */ | ||
/***/ (function(module, exports) { | ||
/** | ||
* The base implementation of `_.unary` without support for storing metadata. | ||
* | ||
* @private | ||
* @param {Function} func The function to cap arguments for. | ||
* @returns {Function} Returns the new capped function. | ||
*/ | ||
function baseUnary(func) { | ||
return function(value) { | ||
return func(value); | ||
}; | ||
} | ||
module.exports = baseUnary; | ||
/***/ }), | ||
/* 28 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var assignValue = __webpack_require__(6), | ||
baseAssignValue = __webpack_require__(7); | ||
/** | ||
* Copies properties of `source` to `object`. | ||
* | ||
* @private | ||
* @param {Object} source The object to copy properties from. | ||
* @param {Array} props The property identifiers to copy. | ||
* @param {Object} [object={}] The object to copy properties to. | ||
* @param {Function} [customizer] The function to customize copied values. | ||
* @returns {Object} Returns `object`. | ||
*/ | ||
function copyObject(source, props, object, customizer) { | ||
var isNew = !object; | ||
object || (object = {}); | ||
var index = -1, | ||
length = props.length; | ||
while (++index < length) { | ||
var key = props[index]; | ||
var newValue = customizer | ||
? customizer(object[key], source[key], key, object, source) | ||
: undefined; | ||
if (newValue === undefined) { | ||
newValue = source[key]; | ||
} | ||
if (isNew) { | ||
baseAssignValue(object, key, newValue); | ||
} else { | ||
assignValue(object, key, newValue); | ||
} | ||
} | ||
return object; | ||
} | ||
module.exports = copyObject; | ||
/***/ }), | ||
/* 29 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var root = __webpack_require__(1); | ||
/** Used to detect overreaching core-js shims. */ | ||
var coreJsData = root['__core-js_shared__']; | ||
module.exports = coreJsData; | ||
/***/ }), | ||
/* 30 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var baseRest = __webpack_require__(24), | ||
isIterateeCall = __webpack_require__(34); | ||
/** | ||
* Creates a function like `_.assign`. | ||
* | ||
* @private | ||
* @param {Function} assigner The function to assign values. | ||
* @returns {Function} Returns the new assigner function. | ||
*/ | ||
function createAssigner(assigner) { | ||
return baseRest(function(object, sources) { | ||
var index = -1, | ||
length = sources.length, | ||
customizer = length > 1 ? sources[length - 1] : undefined, | ||
guard = length > 2 ? sources[2] : undefined; | ||
customizer = (assigner.length > 3 && typeof customizer == 'function') | ||
? (length--, customizer) | ||
: undefined; | ||
if (guard && isIterateeCall(sources[0], sources[1], guard)) { | ||
customizer = length < 3 ? undefined : customizer; | ||
length = 1; | ||
} | ||
object = Object(object); | ||
while (++index < length) { | ||
var source = sources[index]; | ||
if (source) { | ||
assigner(object, source, index, customizer); | ||
} | ||
} | ||
return object; | ||
}); | ||
} | ||
module.exports = createAssigner; | ||
/***/ }), | ||
/* 31 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var baseIsNative = __webpack_require__(21), | ||
getValue = __webpack_require__(33); | ||
/** | ||
* Gets the native function at `key` of `object`. | ||
* | ||
* @private | ||
* @param {Object} object The object to query. | ||
* @param {string} key The key of the method to get. | ||
* @returns {*} Returns the function if it's native, else `undefined`. | ||
*/ | ||
function getNative(object, key) { | ||
var value = getValue(object, key); | ||
return baseIsNative(value) ? value : undefined; | ||
} | ||
module.exports = getNative; | ||
/***/ }), | ||
/* 32 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var Symbol = __webpack_require__(5); | ||
/** Used for built-in method references. */ | ||
var objectProto = Object.prototype; | ||
/** Used to check objects for own properties. */ | ||
var hasOwnProperty = objectProto.hasOwnProperty; | ||
/** | ||
* Used to resolve the | ||
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) | ||
* of values. | ||
*/ | ||
var nativeObjectToString = objectProto.toString; | ||
/** Built-in value references. */ | ||
var symToStringTag = Symbol ? Symbol.toStringTag : undefined; | ||
/** | ||
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. | ||
* | ||
* @private | ||
* @param {*} value The value to query. | ||
* @returns {string} Returns the raw `toStringTag`. | ||
*/ | ||
function getRawTag(value) { | ||
var isOwn = hasOwnProperty.call(value, symToStringTag), | ||
tag = value[symToStringTag]; | ||
try { | ||
value[symToStringTag] = undefined; | ||
var unmasked = true; | ||
} catch (e) {} | ||
var result = nativeObjectToString.call(value); | ||
if (unmasked) { | ||
if (isOwn) { | ||
value[symToStringTag] = tag; | ||
} else { | ||
delete value[symToStringTag]; | ||
} | ||
} | ||
return result; | ||
} | ||
module.exports = getRawTag; | ||
/***/ }), | ||
/* 33 */ | ||
/***/ (function(module, exports) { | ||
/** | ||
* Gets the value at `key` of `object`. | ||
* | ||
* @private | ||
* @param {Object} [object] The object to query. | ||
* @param {string} key The key of the property to get. | ||
* @returns {*} Returns the property value. | ||
*/ | ||
function getValue(object, key) { | ||
return object == null ? undefined : object[key]; | ||
} | ||
module.exports = getValue; | ||
/***/ }), | ||
/* 34 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var eq = __webpack_require__(12), | ||
isArrayLike = __webpack_require__(2), | ||
isIndex = __webpack_require__(10), | ||
isObject = __webpack_require__(3); | ||
/** | ||
* Checks if the given arguments are from an iteratee call. | ||
* | ||
* @private | ||
* @param {*} value The potential iteratee value argument. | ||
* @param {*} index The potential iteratee index or key argument. | ||
* @param {*} object The potential iteratee object argument. | ||
* @returns {boolean} Returns `true` if the arguments are from an iteratee call, | ||
* else `false`. | ||
*/ | ||
function isIterateeCall(value, index, object) { | ||
if (!isObject(object)) { | ||
return false; | ||
} | ||
var type = typeof index; | ||
if (type == 'number' | ||
? (isArrayLike(object) && isIndex(index, object.length)) | ||
: (type == 'string' && index in object) | ||
) { | ||
return eq(object[index], value); | ||
} | ||
return false; | ||
} | ||
module.exports = isIterateeCall; | ||
/***/ }), | ||
/* 35 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var coreJsData = __webpack_require__(29); | ||
/** Used to detect methods masquerading as native. */ | ||
var maskSrcKey = (function() { | ||
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); | ||
return uid ? ('Symbol(src)_1.' + uid) : ''; | ||
}()); | ||
/** | ||
* Checks if `func` has its source masked. | ||
* | ||
* @private | ||
* @param {Function} func The function to check. | ||
* @returns {boolean} Returns `true` if `func` is masked, else `false`. | ||
*/ | ||
function isMasked(func) { | ||
return !!maskSrcKey && (maskSrcKey in func); | ||
} | ||
module.exports = isMasked; | ||
/***/ }), | ||
/* 36 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var overArg = __webpack_require__(39); | ||
/* Built-in method references for those with the same name as other `lodash` methods. */ | ||
var nativeKeys = overArg(Object.keys, Object); | ||
module.exports = nativeKeys; | ||
/***/ }), | ||
/* 37 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(9); | ||
/** Detect free variable `exports`. */ | ||
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; | ||
/** Detect free variable `module`. */ | ||
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; | ||
/** Detect the popular CommonJS extension `module.exports`. */ | ||
var moduleExports = freeModule && freeModule.exports === freeExports; | ||
/** Detect free variable `process` from Node.js. */ | ||
var freeProcess = moduleExports && freeGlobal.process; | ||
/** Used to access faster Node.js helpers. */ | ||
var nodeUtil = (function() { | ||
try { | ||
return freeProcess && freeProcess.binding && freeProcess.binding('util'); | ||
} catch (e) {} | ||
}()); | ||
module.exports = nodeUtil; | ||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(16)(module))) | ||
/***/ }), | ||
/* 38 */ | ||
/***/ (function(module, exports) { | ||
/** Used for built-in method references. */ | ||
var objectProto = Object.prototype; | ||
/** | ||
* Used to resolve the | ||
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) | ||
* of values. | ||
*/ | ||
var nativeObjectToString = objectProto.toString; | ||
/** | ||
* Converts `value` to a string using `Object.prototype.toString`. | ||
* | ||
* @private | ||
* @param {*} value The value to convert. | ||
* @returns {string} Returns the converted string. | ||
*/ | ||
function objectToString(value) { | ||
return nativeObjectToString.call(value); | ||
} | ||
module.exports = objectToString; | ||
/***/ }), | ||
/* 39 */ | ||
/***/ (function(module, exports) { | ||
/** | ||
* Creates a unary function that invokes `func` with its argument transformed. | ||
* | ||
* @private | ||
* @param {Function} func The function to wrap. | ||
* @param {Function} transform The argument transform. | ||
* @returns {Function} Returns the new function. | ||
*/ | ||
function overArg(func, transform) { | ||
return function(arg) { | ||
return func(transform(arg)); | ||
}; | ||
} | ||
module.exports = overArg; | ||
/***/ }), | ||
/* 40 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var apply = __webpack_require__(18); | ||
/* Built-in method references for those with the same name as other `lodash` methods. */ | ||
var nativeMax = Math.max; | ||
/** | ||
* A specialized version of `baseRest` which transforms the rest array. | ||
* | ||
* @private | ||
* @param {Function} func The function to apply a rest parameter to. | ||
* @param {number} [start=func.length-1] The start position of the rest parameter. | ||
* @param {Function} transform The rest array transform. | ||
* @returns {Function} Returns the new function. | ||
*/ | ||
function overRest(func, start, transform) { | ||
start = nativeMax(start === undefined ? (func.length - 1) : start, 0); | ||
return function() { | ||
var args = arguments, | ||
index = -1, | ||
length = nativeMax(args.length - start, 0), | ||
array = Array(length); | ||
while (++index < length) { | ||
array[index] = args[start + index]; | ||
} | ||
index = -1; | ||
var otherArgs = Array(start + 1); | ||
while (++index < start) { | ||
otherArgs[index] = args[index]; | ||
} | ||
otherArgs[start] = transform(array); | ||
return apply(func, this, otherArgs); | ||
}; | ||
} | ||
module.exports = overRest; | ||
/***/ }), | ||
/* 41 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var baseSetToString = __webpack_require__(25), | ||
shortOut = __webpack_require__(42); | ||
/** | ||
* Sets the `toString` method of `func` to return `string`. | ||
* | ||
* @private | ||
* @param {Function} func The function to modify. | ||
* @param {Function} string The `toString` result. | ||
* @returns {Function} Returns `func`. | ||
*/ | ||
var setToString = shortOut(baseSetToString); | ||
module.exports = setToString; | ||
/***/ }), | ||
/* 42 */ | ||
/***/ (function(module, exports) { | ||
/** Used to detect hot functions by number of calls within a span of milliseconds. */ | ||
var HOT_COUNT = 800, | ||
HOT_SPAN = 16; | ||
/* Built-in method references for those with the same name as other `lodash` methods. */ | ||
var nativeNow = Date.now; | ||
/** | ||
* Creates a function that'll short out and invoke `identity` instead | ||
* of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` | ||
* milliseconds. | ||
* | ||
* @private | ||
* @param {Function} func The function to restrict. | ||
* @returns {Function} Returns the new shortable function. | ||
*/ | ||
function shortOut(func) { | ||
var count = 0, | ||
lastCalled = 0; | ||
return function() { | ||
var stamp = nativeNow(), | ||
remaining = HOT_SPAN - (stamp - lastCalled); | ||
lastCalled = stamp; | ||
if (remaining > 0) { | ||
if (++count >= HOT_COUNT) { | ||
return arguments[0]; | ||
} | ||
} else { | ||
count = 0; | ||
} | ||
return func.apply(undefined, arguments); | ||
}; | ||
} | ||
module.exports = shortOut; | ||
/***/ }), | ||
/* 43 */ | ||
/***/ (function(module, exports) { | ||
/** Used for built-in method references. */ | ||
var funcProto = Function.prototype; | ||
/** Used to resolve the decompiled source of functions. */ | ||
var funcToString = funcProto.toString; | ||
/** | ||
* Converts `func` to its source code. | ||
* | ||
* @private | ||
* @param {Function} func The function to convert. | ||
* @returns {string} Returns the source code. | ||
*/ | ||
function toSource(func) { | ||
if (func != null) { | ||
try { | ||
return funcToString.call(func); | ||
} catch (e) {} | ||
try { | ||
return (func + ''); | ||
} catch (e) {} | ||
} | ||
return ''; | ||
} | ||
module.exports = toSource; | ||
/***/ }), | ||
/* 44 */ | ||
/***/ (function(module, exports) { | ||
/** | ||
* Creates a function that returns `value`. | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @since 2.4.0 | ||
* @category Util | ||
* @param {*} value The value to return from the new function. | ||
* @returns {Function} Returns the new constant function. | ||
* @example | ||
* | ||
* var objects = _.times(2, _.constant({ 'a': 1 })); | ||
* | ||
* console.log(objects); | ||
* // => [{ 'a': 1 }, { 'a': 1 }] | ||
* | ||
* console.log(objects[0] === objects[1]); | ||
* // => true | ||
*/ | ||
function constant(value) { | ||
return function() { | ||
return value; | ||
}; | ||
} | ||
module.exports = constant; | ||
/***/ }), | ||
/* 45 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var baseIsArguments = __webpack_require__(20), | ||
isObjectLike = __webpack_require__(4); | ||
/** Used for built-in method references. */ | ||
var objectProto = Object.prototype; | ||
/** Used to check objects for own properties. */ | ||
var hasOwnProperty = objectProto.hasOwnProperty; | ||
/** Built-in value references. */ | ||
var propertyIsEnumerable = objectProto.propertyIsEnumerable; | ||
/** | ||
* Checks if `value` is likely an `arguments` object. | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @since 0.1.0 | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is an `arguments` object, | ||
* else `false`. | ||
* @example | ||
* | ||
* _.isArguments(function() { return arguments; }()); | ||
* // => true | ||
* | ||
* _.isArguments([1, 2, 3]); | ||
* // => false | ||
*/ | ||
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { | ||
return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && | ||
!propertyIsEnumerable.call(value, 'callee'); | ||
}; | ||
module.exports = isArguments; | ||
/***/ }), | ||
/* 46 */ | ||
/***/ (function(module, exports) { | ||
/** | ||
* Checks if `value` is classified as an `Array` object. | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @since 0.1.0 | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is an array, else `false`. | ||
* @example | ||
* | ||
* _.isArray([1, 2, 3]); | ||
* // => true | ||
* | ||
* _.isArray(document.body.children); | ||
* // => false | ||
* | ||
* _.isArray('abc'); | ||
* // => false | ||
* | ||
* _.isArray(_.noop); | ||
* // => false | ||
*/ | ||
var isArray = Array.isArray; | ||
module.exports = isArray; | ||
/***/ }), | ||
/* 47 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(1), | ||
stubFalse = __webpack_require__(50); | ||
/** Detect free variable `exports`. */ | ||
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; | ||
/** Detect free variable `module`. */ | ||
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; | ||
/** Detect the popular CommonJS extension `module.exports`. */ | ||
var moduleExports = freeModule && freeModule.exports === freeExports; | ||
/** Built-in value references. */ | ||
var Buffer = moduleExports ? root.Buffer : undefined; | ||
/* Built-in method references for those with the same name as other `lodash` methods. */ | ||
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; | ||
/** | ||
* Checks if `value` is a buffer. | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @since 4.3.0 | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`. | ||
* @example | ||
* | ||
* _.isBuffer(new Buffer(2)); | ||
* // => true | ||
* | ||
* _.isBuffer(new Uint8Array(2)); | ||
* // => false | ||
*/ | ||
var isBuffer = nativeIsBuffer || stubFalse; | ||
module.exports = isBuffer; | ||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(16)(module))) | ||
/***/ }), | ||
/* 48 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var baseIsTypedArray = __webpack_require__(22), | ||
baseUnary = __webpack_require__(27), | ||
nodeUtil = __webpack_require__(37); | ||
/* Node.js helper references. */ | ||
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; | ||
/** | ||
* Checks if `value` is classified as a typed array. | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @since 3.0.0 | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`. | ||
* @example | ||
* | ||
* _.isTypedArray(new Uint8Array); | ||
* // => true | ||
* | ||
* _.isTypedArray([]); | ||
* // => false | ||
*/ | ||
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; | ||
module.exports = isTypedArray; | ||
/***/ }), | ||
/* 49 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var arrayLikeKeys = __webpack_require__(19), | ||
baseKeys = __webpack_require__(23), | ||
isArrayLike = __webpack_require__(2); | ||
/** | ||
* Creates an array of the own enumerable property names of `object`. | ||
* | ||
* **Note:** Non-object values are coerced to objects. See the | ||
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) | ||
* for more details. | ||
* | ||
* @static | ||
* @since 0.1.0 | ||
* @memberOf _ | ||
* @category Object | ||
* @param {Object} object The object to query. | ||
* @returns {Array} Returns the array of property names. | ||
* @example | ||
* | ||
* function Foo() { | ||
* this.a = 1; | ||
* this.b = 2; | ||
* } | ||
* | ||
* Foo.prototype.c = 3; | ||
* | ||
* _.keys(new Foo); | ||
* // => ['a', 'b'] (iteration order is not guaranteed) | ||
* | ||
* _.keys('hi'); | ||
* // => ['0', '1'] | ||
*/ | ||
function keys(object) { | ||
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); | ||
} | ||
module.exports = keys; | ||
/***/ }), | ||
/* 50 */ | ||
/***/ (function(module, exports) { | ||
/** | ||
* This method returns `false`. | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @since 4.13.0 | ||
* @category Util | ||
* @returns {boolean} Returns `false`. | ||
* @example | ||
* | ||
* _.times(2, _.stubFalse); | ||
* // => [false, false] | ||
*/ | ||
function stubFalse() { | ||
return false; | ||
} | ||
module.exports = stubFalse; | ||
/***/ }), | ||
/* 51 */ | ||
/***/ (function(module, exports) { | ||
var g; | ||
// This works in non-strict mode | ||
g = (function() { | ||
return this; | ||
})(); | ||
try { | ||
// This works if eval is allowed (see CSP) | ||
g = g || Function("return this")() || (1,eval)("this"); | ||
} catch(e) { | ||
// This works if the window reference is available | ||
if(typeof window === "object") | ||
g = window; | ||
} | ||
// g can still be undefined, but nothing to do about it... | ||
// We return undefined, instead of nothing here, so it's | ||
// easier to handle this case. if(!global) { ...} | ||
module.exports = g; | ||
/***/ }), | ||
/* 52 */, | ||
/* 53 */, | ||
/* 54 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
@@ -81,9 +1775,16 @@ | ||
}); | ||
/** | ||
* Create a Formed layout. | ||
*/ | ||
var _assign2 = __webpack_require__(17); | ||
var _assign3 = _interopRequireDefault(_assign2); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var layout = function () { | ||
'use strict'; | ||
var defaults = { | ||
parent: null | ||
}; | ||
var cssInterface = { | ||
@@ -113,2 +1814,21 @@ headerClass: 'Layout-header', | ||
function destroy() { | ||
killEvents.call(this); | ||
} | ||
function refresh() { | ||
killEvents.call(this); | ||
cacheChildren.call(this); | ||
if (this.drawer) { | ||
drawerSetup.call(this); | ||
} | ||
this.screenSizeHandler(); | ||
events.call(this); | ||
return this; | ||
} | ||
function toggleDrawer() { | ||
@@ -126,2 +1846,4 @@ this.drawer.classList.toggle(cssInterface.isDrawerActiveClass); | ||
} | ||
return this; | ||
} | ||
@@ -133,6 +1855,13 @@ | ||
function create(element) { | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var layout = Object.create(api); | ||
layout.config = (0, _assign3.default)({}, defaults, options); | ||
layout.element = element; | ||
layout.drawerToggleHandler = drawerToggleHandler.bind(layout); | ||
layout.keyboardHandler = keyboardHandler.bind(layout); | ||
layout.screenSizeHandler = screenSizeHandler.bind(layout); | ||
wrapLayout.call(layout); | ||
@@ -147,4 +1876,4 @@ cacheChildren.call(layout); | ||
screenSizeHandler.call(layout); | ||
bindings.call(layout); | ||
layout.screenSizeHandler(); | ||
events.call(layout); | ||
@@ -194,14 +1923,14 @@ return layout; | ||
function bindings() { | ||
function events() { | ||
if (this.drawer) { | ||
this.drawerBtn.addEventListener('click', drawerToggleHandler.bind(this)); | ||
this.drawerBtn.addEventListener('click', this.drawerToggleHandler); | ||
this.drawerBtn.addEventListener('keydown', drawerToggleHandler.bind(this)); | ||
this.drawerBtn.addEventListener('keydown', this.drawerToggleHandler); | ||
this.drawer.addEventListener('keydown', keyboardHandler.bind(this)); | ||
this.drawer.addEventListener('keydown', this.keyboardHandler); | ||
this.mask.addEventListener('click', drawerToggleHandler.bind(this)); | ||
this.mask.addEventListener('click', this.drawerToggleHandler); | ||
} | ||
this.breakpoint.addListener(screenSizeHandler.bind(this)); | ||
this.breakpoint.addListener(this.screenSizeHandler); | ||
@@ -211,4 +1940,19 @@ return this; | ||
function killEvents() { | ||
if (this.drawer) { | ||
this.drawerBtn.removeEventListener('click', this.drawerToggleHandler); | ||
this.drawerBtn.removeEventListener('keydown', this.drawerToggleHandler); | ||
this.drawer.removeEventListener('keydown', this.keyboardHandler); | ||
this.mask.removeEventListener('click', this.drawerToggleHandler); | ||
} | ||
this.breakpoint.removeListener(screenSizeHandler); | ||
} | ||
function wrapLayout() { | ||
var container = document.createElement('div'); | ||
var container = !this.config.parent ? document.createElement('div') : document.querySelector(this.config.parent); | ||
container.classList.add('layout-absoluteViewport'); | ||
@@ -219,5 +1963,7 @@ | ||
this.element.parentNode.insertBefore(container, this.element); | ||
this.element.parentNode.removeChild(this.element); | ||
container.appendChild(this.element); | ||
if (!this.config.parent) { | ||
this.element.parentNode.insertBefore(container, this.element); | ||
this.element.parentNode.removeChild(this.element); | ||
container.appendChild(this.element); | ||
} | ||
@@ -257,2 +2003,6 @@ if (focusedElement) { | ||
if (!this.drawerBtn) { | ||
throw Error('No ' + cssInterface.drawerBtnClass + ' detected.'); | ||
} | ||
// Ensure proper attributes are set. | ||
@@ -284,9 +2034,13 @@ this.drawer.setAttribute('aria-hidden', 'true'); | ||
var api = { | ||
destroy: destroy, | ||
hasActiveDrawer: hasActiveDrawer, | ||
hasDrawerFixed: hasDrawerFixed, | ||
toggleDrawer: toggleDrawer | ||
toggleDrawer: toggleDrawer, | ||
refresh: refresh | ||
}; | ||
return create; | ||
}(); | ||
}(); /** | ||
* Create a Formed layout. | ||
*/ | ||
@@ -296,4 +2050,4 @@ exports.default = layout; | ||
/***/ }) | ||
/******/ }); | ||
/******/ ]); | ||
}); | ||
//# sourceMappingURL=layout.js.map |
@@ -1,2 +0,12 @@ | ||
/******/ (function(modules) { // webpackBootstrap | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(); | ||
else if(typeof define === 'function' && define.amd) | ||
define([], factory); | ||
else if(typeof exports === 'object') | ||
exports["formed-radio"] = factory(); | ||
else | ||
root["formed-radio"] = factory(); | ||
})(this, function() { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
/******/ // The module cache | ||
@@ -66,3 +76,3 @@ /******/ var installedModules = {}; | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 3); | ||
/******/ return __webpack_require__(__webpack_require__.s = 55); | ||
/******/ }) | ||
@@ -72,3 +82,3 @@ /************************************************************************/ | ||
/***/ 3: | ||
/***/ 55: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -218,2 +228,3 @@ | ||
/******/ }); | ||
}); | ||
//# sourceMappingURL=radio.js.map |
@@ -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.formed=t():e.formed=t()}(this,function(){return function(e){function t(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=4)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.element.classList.remove(f.IS_FOCUSED)}function t(){o.call(this)}function i(e){this.element.classList.add(f.IS_FOCUSED)}function r(r){r.control.addEventListener("blur",e.bind(r)),r.control.addEventListener("change",t.bind(r)),r.control.addEventListener("focus",i.bind(r))}function n(){var e=this.control.disabled?"add":"remove";this.element.classList[e](f.IS_DISABLED)}function s(){var e=this.control.checked?"add":"remove";this.element.classList[e](f.IS_CHECKED)}function a(e,t){e.classList.add(f.IS_CUSTOM);var i=document.createElement("span");return i.classList.add(f.BOX),e.insertBefore(i,t.nextSibling),i}function o(){n.call(this),s.call(this)}function l(){this.control.checked=!0,o()}function d(){this.control.checked=!1,o()}function c(){this.control.disabled=!0,o()}function u(){this.control.disabled=!1,o()}function h(e){if(e&&1!==e.nodeType)throw new TypeError("Element passed in is not a HTML node.");var t=Object.create(E);return t.element=e,t.control=e.querySelector("."+f.CONTROL),t.label=e.querySelector("."+f.LABEL),t.box=a(t.element,t.control),r(t),o.call(t),t}var f={CHECKBOX:"Checkbox",CONTROL:"Checkbox-control",BOX:"Checkbox-box",LABEL:"Checkbox-label",IS_CHECKED:"is-checked",IS_CUSTOM:"is-custom",IS_DISABLED:"is-disabled",IS_FOCUSED:"is-focused"},E={check:l,uncheck:d,disable:c,enable:u};return h}();t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){return this.controlEl.disabled=!0,this.refreshState()}function t(){return this.controlEl.disabled=!1,this.refreshState()}function i(e){var t=Object.create(v);if(e&&1!==e.nodeType)throw new TypeError("Element passed in is not a HTML node.");return t.editorEl=e,t.controlEl=t.editorEl.querySelector("."+b.CONTROL),t.iconEl=t.editorEl.querySelector("."+b.ICON),t.labelEl=t.editorEl.querySelector("."+b.LABEL),s.call(t),u.call(t),t.refreshState(),t.controlEl.hasAttribute("autofocus")&&(t.editorEl.focus(),o.call(t)),t}function r(){this.controlEl.removeEventListener("blur",h.bind(this)),this.controlEl.removeEventListener("focus",f.bind(this)),this.controlEl.removeEventListener("input",E.bind(this)),this.controlEl.removeEventListener("reset",L.bind(this))}function n(){return l.call(this),a.call(this),o.call(this),d.call(this),c.call(this),this}function s(){this.controlEl.addEventListener("blur",h.bind(this)),this.controlEl.addEventListener("focus",f.bind(this)),this.controlEl.addEventListener("input",E.bind(this)),this.controlEl.addEventListener("reset",L.bind(this))}function a(){var e=this.controlEl.hasAttribute("disabled"),t=e?"add":"remove";this.editorEl.classList[t](b.IS_DISABLED)}function o(){var e=!!this.editorEl.querySelector(":focus"),t=e?"add":"remove";this.editorEl.classList[t](b.IS_FOCUSED)}function l(){var e=this.controlEl.value&&this.controlEl.value.length>0,t=e?"add":"remove";this.editorEl.classList[t](b.IS_DIRTY)}function d(){var e=this.controlEl.hasAttribute("readonly"),t=e?"add":"remove";this.editorEl.classList[t](b.IS_READONLY)}function c(){if(this.controlEl.validity){var e=this.controlEl.validity.valid,t=e?"remove":"add";this.editorEl.classList[t](b.IS_INVALID)}}function u(){this.controlEl&&this.controlEl.hasAttribute("placeholder")&&this.editorEl.classList.add(b.HAS_PLACEHOLDER)}function h(){this.editorEl.classList.remove(b.IS_FOCUSED)}function f(){this.editorEl.classList.add(b.IS_FOCUSED)}function E(){this.refreshState()}function L(){this.refreshState()}var b={CONTROL:"Editor-control",LABEL:"Editor-label",ICON:"Editor-icon",HAS_ICON:"has-icon",HAS_PLACEHOLDER:"has-placeholder",IS_DIRTY:"is-dirty",IS_DISABLED:"is-disabled",IS_FOCUSED:"is-focused",IS_INVALID:"is-invalid",IS_READONLY:"is-readonly"},v={disable:e,enable:t,refreshState:n,destroy:r};return i}();t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){return this.drawer&&this.drawer.classList.contains(h.isDrawerActiveClass)}function t(){return this.drawer&&this.element.classList.contains("Layout--drawerFixed")}function i(){this.drawer.classList.toggle(h.isDrawerActiveClass),this.mask.classList.toggle(h.isDrawerActiveClass),this.hasActiveDrawer()?(this.drawer.setAttribute("aria-hidden","false"),this.drawerBtn.setAttribute("aria-expanded","true")):(this.drawer.setAttribute("aria-hidden","true"),this.drawerBtn.setAttribute("aria-expanded","false"))}function r(e){var t=Object.create(E);return t.element=e,l.call(t),d.call(t),t.drawer&&c.call(t),t.breakpoint=window.matchMedia(h.breakpoint),a.call(t),o.call(t),t}function n(e){var t=f.SPACE,i=f.ENTER;if(e&&"keydown"===e.type){if(e.keyCode!==t&&e.keyCode!==i)return;e.preventDefault()}this.toggleDrawer()}function s(e){e.keyCode===f.ESCAPE&&this.hasActiveDrawer()&&this.toggleDrawer()}function a(){this.breakpoint.matches&&this.drawer?(this.drawer.setAttribute("aria-hidden",(!this.hasDrawerFixed()).toString()),this.drawerBtn.setAttribute("aria-expanded","false"),this.drawer.classList.remove(h.isDrawerActiveClass),this.mask.classList.remove(h.isDrawerActiveClass)):this.hasDrawerFixed()&&this.drawer.setAttribute("aria-hidden","true")}function o(){return this.drawer&&(this.drawerBtn.addEventListener("click",n.bind(this)),this.drawerBtn.addEventListener("keydown",n.bind(this)),this.drawer.addEventListener("keydown",s.bind(this)),this.mask.addEventListener("click",n.bind(this))),this.breakpoint.addListener(a.bind(this)),this}function l(){var e=document.createElement("div");e.classList.add("layout-absoluteViewport");var t=document.querySelector(":focus");return this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element),e.appendChild(this.element),t&&t.focus(),this}function d(){for(var e=this.element.childNodes,t=e.length,i=0;i<t;i++){var r=e[i];r.classList&&r.classList.contains(h.headerClass)&&(this.header=r),r.classList&&r.classList.contains(h.drawerClass)&&(this.drawer=r),r.classList&&r.classList.contains(h.mainClass)&&(this.main=r)}return this}function c(){return this.drawerBtn=this.element.querySelector("."+h.drawerBtnClass),this.drawer.setAttribute("aria-hidden","true"),this.drawerBtn.setAttribute("aria-expanded","false"),this.drawerBtn.setAttribute("tabindex","0"),this.drawerBtn.setAttribute("type","button"),"button"!==this.drawerBtn.tagName.toLowerCase()&&this.drawerBtn.setAttribute("role","button"),u.call(this),this}function u(){return this.mask=document.createElement("div"),this.mask.classList.add(h.maskClass),this.element.appendChild(this.mask),this}var h={headerClass:"Layout-header",drawerClass:"Layout-drawer",drawerBtnClass:"Layout-header-menu",mainClass:"Layout-main",maskClass:"Layout-mask",isDrawerActiveClass:"is-active",breakpoint:"(min-width: 992px)"},f={ENTER:13,ESCAPE:27,SPACE:32},E={hasActiveDrawer:e,hasDrawerFixed:t,toggleDrawer:i};return r}();t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.element.classList.remove(L.IS_FOCUSED)}function t(){this.radioSet.forEach(function(e){var t=new Event("radio:update");e.dispatchEvent(t)})}function i(e){this.element.classList.add(L.IS_FOCUSED)}function r(){this.element.classList.add(L.IS_PRESSED)}function n(){this.element.classList.remove(L.IS_PRESSED)}function s(s){s.control.addEventListener("blur",e.bind(s)),s.control.addEventListener("change",t.bind(s)),s.control.addEventListener("focus",i.bind(s)),s.element.addEventListener("radio:update",d.bind(s)),s.element.addEventListener("mousedown",r.bind(s)),s.element.addEventListener("mouseup",n.bind(s))}function a(){var e=this.control.disabled?"add":"remove";this.element.classList[e](L.IS_DISABLED)}function o(){var e=this.control.checked?"add":"remove";this.element.classList[e](L.IS_CHECKED)}function l(e,t){e.classList.add(L.IS_CUSTOM);var i=document.createElement("span");return i.classList.add(L.CIRCLE),e.insertBefore(i,t.nextSibling),i}function d(){a.call(this),o.call(this)}function c(){this.control.checked=!0,d()}function u(){this.control.checked=!1,d()}function h(){this.control.disabled=!0,d()}function f(){this.control.disabled=!1,d()}function E(e){if(e&&1!==e.nodeType)throw new TypeError("Element passed in is not a HTML node.");var t=Object.create(b);return t.element=e,t.control=e.querySelector("."+L.CONTROL),t.label=e.querySelector("."+L.LABEL),t.circle=l(t.element,t.control),t.radioSet=Array.from(e.parentNode.getElementsByClassName(L.RADIO)),s(t),d.call(t),t}var L={RADIO:"Radio",CONTROL:"Radio-control",CIRCLE:"Radio-circle",LABEL:"Radio-label",IS_CHECKED:"is-checked",IS_CUSTOM:"is-custom",IS_DISABLED:"is-disabled",IS_FOCUSED:"is-focused",IS_PRESSED:"is-pressed"},b={check:c,uncheck:u,disable:h,enable:f};return E}();t.default=r},function(e,t,i){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),s=r(n),a=i(1),o=r(a),l=i(2),d=r(l),c=i(3),u=r(c);t.default={checkbox:s.default,editor:o.default,layout:d.default,radio:u.default}}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.formed=e():t.formed=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=56)}([function(t,e,r){function n(t){return null==t?void 0===t?c:a:l&&l in Object(t)?i(t):s(t)}var o=r(5),i=r(35),s=r(41),a="[object Null]",c="[object Undefined]",l=o?o.toStringTag:void 0;t.exports=n},function(t,e,r){var n=r(9),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},function(t,e,r){function n(t){return null!=t&&i(t.length)&&!o(t)}var o=r(14),i=r(15);t.exports=n},function(t,e){function r(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=r},function(t,e){function r(t){return null!=t&&"object"==typeof t}t.exports=r},function(t,e,r){var n=r(1),o=n.Symbol;t.exports=o},function(t,e,r){function n(t,e,r){var n=t[e];a.call(t,e)&&i(n,r)&&(void 0!==r||e in t)||o(t,e,r)}var o=r(7),i=r(12),s=Object.prototype,a=s.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e,r){"__proto__"==e&&o?o(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var o=r(8);t.exports=n},function(t,e,r){var n=r(34),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(e,r(55))},function(t,e){function r(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||o.test(t))&&t>-1&&t%1==0&&t<e}var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;t.exports=r},function(t,e){function r(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}var n=Object.prototype;t.exports=r},function(t,e){function r(t,e){return t===e||t!==t&&e!==e}t.exports=r},function(t,e){function r(t){return t}t.exports=r},function(t,e,r){function n(t){if(!i(t))return!1;var e=o(t);return e==a||e==c||e==s||e==l}var o=r(0),i=r(3),s="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",l="[object Proxy]";t.exports=n},function(t,e){function r(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}var n=9007199254740991;t.exports=r},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.element.classList.remove(h.IS_FOCUSED)}function e(){a.call(this)}function r(t){this.element.classList.add(h.IS_FOCUSED)}function n(n){n.control.addEventListener("blur",t.bind(n)),n.control.addEventListener("change",e.bind(n)),n.control.addEventListener("focus",r.bind(n))}function o(){var t=this.control.disabled?"add":"remove";this.element.classList[t](h.IS_DISABLED)}function i(){var t=this.control.checked?"add":"remove";this.element.classList[t](h.IS_CHECKED)}function s(t,e){t.classList.add(h.IS_CUSTOM);var r=document.createElement("span");return r.classList.add(h.BOX),t.insertBefore(r,e.nextSibling),r}function a(){o.call(this),i.call(this)}function c(){this.control.checked=!0,a()}function l(){this.control.checked=!1,a()}function u(){this.control.disabled=!0,a()}function d(){this.control.disabled=!1,a()}function f(t){if(t&&1!==t.nodeType)throw new TypeError("Element passed in is not a HTML node.");var e=Object.create(p);return e.element=t,e.control=t.querySelector("."+h.CONTROL),e.label=t.querySelector("."+h.LABEL),e.box=s(e.element,e.control),n(e),a.call(e),e}var h={CHECKBOX:"Checkbox",CONTROL:"Checkbox-control",BOX:"Checkbox-box",LABEL:"Checkbox-label",IS_CHECKED:"is-checked",IS_CUSTOM:"is-custom",IS_DISABLED:"is-disabled",IS_FOCUSED:"is-focused"},p={check:c,uncheck:l,disable:u,enable:d};return f}();e.default=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){return this.controlEl.disabled=!0,this.refreshState()}function e(){return this.controlEl.disabled=!1,this.refreshState()}function r(t){var e=Object.create(E);if(t&&1!==t.nodeType)throw new TypeError("Element passed in is not a HTML node.");return e.editorEl=t,e.controlEl=e.editorEl.querySelector("."+b.CONTROL),e.iconEl=e.editorEl.querySelector("."+b.ICON),e.labelEl=e.editorEl.querySelector("."+b.LABEL),i.call(e),d.call(e),e.refreshState(),e.controlEl.hasAttribute("autofocus")&&(e.editorEl.focus(),a.call(e)),e}function n(){this.controlEl.removeEventListener("blur",f.bind(this)),this.controlEl.removeEventListener("focus",h.bind(this)),this.controlEl.removeEventListener("input",p.bind(this)),this.controlEl.removeEventListener("reset",v.bind(this))}function o(){return c.call(this),s.call(this),a.call(this),l.call(this),u.call(this),this}function i(){this.controlEl.addEventListener("blur",f.bind(this)),this.controlEl.addEventListener("focus",h.bind(this)),this.controlEl.addEventListener("input",p.bind(this)),this.controlEl.addEventListener("reset",v.bind(this))}function s(){var t=this.controlEl.hasAttribute("disabled"),e=t?"add":"remove";this.editorEl.classList[e](b.IS_DISABLED)}function a(){var t=!!this.editorEl.querySelector(":focus"),e=t?"add":"remove";this.editorEl.classList[e](b.IS_FOCUSED)}function c(){var t=this.controlEl.value&&this.controlEl.value.length>0,e=t?"add":"remove";this.editorEl.classList[e](b.IS_DIRTY)}function l(){var t=this.controlEl.hasAttribute("readonly"),e=t?"add":"remove";this.editorEl.classList[e](b.IS_READONLY)}function u(){if(this.controlEl.validity){var t=this.controlEl.validity.valid,e=t?"remove":"add";this.editorEl.classList[e](b.IS_INVALID)}}function d(){this.controlEl&&this.controlEl.hasAttribute("placeholder")&&this.editorEl.classList.add(b.HAS_PLACEHOLDER)}function f(){this.editorEl.classList.remove(b.IS_FOCUSED)}function h(){this.editorEl.classList.add(b.IS_FOCUSED)}function p(){this.refreshState()}function v(){this.refreshState()}var b={CONTROL:"Editor-control",LABEL:"Editor-label",ICON:"Editor-icon",HAS_ICON:"has-icon",HAS_PLACEHOLDER:"has-placeholder",IS_DIRTY:"is-dirty",IS_DISABLED:"is-disabled",IS_FOCUSED:"is-focused",IS_INVALID:"is-invalid",IS_READONLY:"is-readonly"},E={disable:t,enable:e,refreshState:o,destroy:n};return r}();e.default=n},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=r(47),i=n(o),s=function(){function t(){return this.drawer&&this.drawer.classList.contains(E.isDrawerActiveClass)}function e(){return this.drawer&&this.element.classList.contains("Layout--drawerFixed")}function r(){d.call(this)}function n(){return d.call(this),h.call(this),this.drawer&&p.call(this),this.screenSizeHandler(),u.call(this),this}function o(){return this.drawer.classList.toggle(E.isDrawerActiveClass),this.mask.classList.toggle(E.isDrawerActiveClass),this.hasActiveDrawer()?(this.drawer.setAttribute("aria-hidden","false"),this.drawerBtn.setAttribute("aria-expanded","true")):(this.drawer.setAttribute("aria-hidden","true"),this.drawerBtn.setAttribute("aria-expanded","false")),this}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.create(m);return r.config=(0,i.default)({},b,e),r.element=t,r.drawerToggleHandler=a.bind(r),r.keyboardHandler=c.bind(r),r.screenSizeHandler=l.bind(r),f.call(r),h.call(r),r.drawer&&p.call(r),r.breakpoint=window.matchMedia(E.breakpoint),r.screenSizeHandler(),u.call(r),r}function a(t){var e=y.SPACE,r=y.ENTER;if(t&&"keydown"===t.type){if(t.keyCode!==e&&t.keyCode!==r)return;t.preventDefault()}this.toggleDrawer()}function c(t){t.keyCode===y.ESCAPE&&this.hasActiveDrawer()&&this.toggleDrawer()}function l(){this.breakpoint.matches&&this.drawer?(this.drawer.setAttribute("aria-hidden",(!this.hasDrawerFixed()).toString()),this.drawerBtn.setAttribute("aria-expanded","false"),this.drawer.classList.remove(E.isDrawerActiveClass),this.mask.classList.remove(E.isDrawerActiveClass)):this.hasDrawerFixed()&&this.drawer.setAttribute("aria-hidden","true")}function u(){return this.drawer&&(this.drawerBtn.addEventListener("click",this.drawerToggleHandler),this.drawerBtn.addEventListener("keydown",this.drawerToggleHandler),this.drawer.addEventListener("keydown",this.keyboardHandler),this.mask.addEventListener("click",this.drawerToggleHandler)),this.breakpoint.addListener(this.screenSizeHandler),this}function d(){this.drawer&&(this.drawerBtn.removeEventListener("click",this.drawerToggleHandler),this.drawerBtn.removeEventListener("keydown",this.drawerToggleHandler),this.drawer.removeEventListener("keydown",this.keyboardHandler),this.mask.removeEventListener("click",this.drawerToggleHandler)),this.breakpoint.removeListener(l)}function f(){var t=this.config.parent?document.querySelector(this.config.parent):document.createElement("div");t.classList.add("layout-absoluteViewport");var e=document.querySelector(":focus");return this.config.parent||(this.element.parentNode.insertBefore(t,this.element),this.element.parentNode.removeChild(this.element),t.appendChild(this.element)),e&&e.focus(),this}function h(){for(var t=this.element.childNodes,e=t.length,r=0;r<e;r++){var n=t[r];n.classList&&n.classList.contains(E.headerClass)&&(this.header=n),n.classList&&n.classList.contains(E.drawerClass)&&(this.drawer=n),n.classList&&n.classList.contains(E.mainClass)&&(this.main=n)}return this}function p(){if(this.drawerBtn=this.element.querySelector("."+E.drawerBtnClass),!this.drawerBtn)throw Error("No "+E.drawerBtnClass+" detected.");return this.drawer.setAttribute("aria-hidden","true"),this.drawerBtn.setAttribute("aria-expanded","false"),this.drawerBtn.setAttribute("tabindex","0"),this.drawerBtn.setAttribute("type","button"),"button"!==this.drawerBtn.tagName.toLowerCase()&&this.drawerBtn.setAttribute("role","button"),v.call(this),this}function v(){return this.mask=document.createElement("div"),this.mask.classList.add(E.maskClass),this.element.appendChild(this.mask),this}var b={parent:null},E={headerClass:"Layout-header",drawerClass:"Layout-drawer",drawerBtnClass:"Layout-header-menu",mainClass:"Layout-main",maskClass:"Layout-mask",isDrawerActiveClass:"is-active",breakpoint:"(min-width: 992px)"},y={ENTER:13,ESCAPE:27,SPACE:32},m={destroy:r,hasActiveDrawer:t,hasDrawerFixed:e,toggleDrawer:o,refresh:n};return s}();e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.element.classList.remove(v.IS_FOCUSED)}function e(){this.radioSet.forEach(function(t){var e=new Event("radio:update");t.dispatchEvent(e)})}function r(t){this.element.classList.add(v.IS_FOCUSED)}function n(){this.element.classList.add(v.IS_PRESSED)}function o(){this.element.classList.remove(v.IS_PRESSED)}function i(i){i.control.addEventListener("blur",t.bind(i)),i.control.addEventListener("change",e.bind(i)),i.control.addEventListener("focus",r.bind(i)),i.element.addEventListener("radio:update",l.bind(i)),i.element.addEventListener("mousedown",n.bind(i)),i.element.addEventListener("mouseup",o.bind(i))}function s(){var t=this.control.disabled?"add":"remove";this.element.classList[t](v.IS_DISABLED)}function a(){var t=this.control.checked?"add":"remove";this.element.classList[t](v.IS_CHECKED)}function c(t,e){t.classList.add(v.IS_CUSTOM);var r=document.createElement("span");return r.classList.add(v.CIRCLE),t.insertBefore(r,e.nextSibling),r}function l(){s.call(this),a.call(this)}function u(){this.control.checked=!0,l()}function d(){this.control.checked=!1,l()}function f(){this.control.disabled=!0,l()}function h(){this.control.disabled=!1,l()}function p(t){if(t&&1!==t.nodeType)throw new TypeError("Element passed in is not a HTML node.");var e=Object.create(b);return e.element=t,e.control=t.querySelector("."+v.CONTROL),e.label=t.querySelector("."+v.LABEL),e.circle=c(e.element,e.control),e.radioSet=Array.from(t.parentNode.getElementsByClassName(v.RADIO)),i(e),l.call(e),e}var v={RADIO:"Radio",CONTROL:"Radio-control",CIRCLE:"Radio-circle",LABEL:"Radio-label",IS_CHECKED:"is-checked",IS_CUSTOM:"is-custom",IS_DISABLED:"is-disabled",IS_FOCUSED:"is-focused",IS_PRESSED:"is-pressed"},b={check:u,uncheck:d,disable:f,enable:h};return p}();e.default=n},function(t,e){function r(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}t.exports=r},function(t,e,r){function n(t,e){var r=s(t),n=!r&&i(t),u=!r&&!n&&a(t),f=!r&&!n&&!u&&l(t),h=r||n||u||f,p=h?o(t.length,String):[],v=p.length;for(var b in t)!e&&!d.call(t,b)||h&&("length"==b||u&&("offset"==b||"parent"==b)||f&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||c(b,v))||p.push(b);return p}var o=r(29),i=r(49),s=r(50),a=r(51),c=r(10),l=r(52),u=Object.prototype,d=u.hasOwnProperty;t.exports=n},function(t,e,r){function n(t){return i(t)&&o(t)==s}var o=r(0),i=r(4),s="[object Arguments]";t.exports=n},function(t,e,r){function n(t){return!(!s(t)||i(t))&&(o(t)?p:l).test(a(t))}var o=r(14),i=r(38),s=r(3),a=r(46),c=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,d=Object.prototype,f=u.toString,h=d.hasOwnProperty,p=RegExp("^"+f.call(h).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=n},function(t,e,r){function n(t){return s(t)&&i(t.length)&&!!a[o(t)]}var o=r(0),i=r(15),s=r(4),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=n},function(t,e,r){function n(t){if(!o(t))return i(t);var e=[];for(var r in Object(t))a.call(t,r)&&"constructor"!=r&&e.push(r);return e}var o=r(11),i=r(39),s=Object.prototype,a=s.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e){return s(i(t,e,o),t+"")}var o=r(13),i=r(43),s=r(44);t.exports=n},function(t,e,r){var n=r(48),o=r(8),i=r(13),s=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=s},function(t,e){function r(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}t.exports=r},function(t,e){function r(t){return function(e){return t(e)}}t.exports=r},function(t,e,r){function n(t,e,r,n){var s=!r;r||(r={});for(var a=-1,c=e.length;++a<c;){var l=e[a],u=n?n(r[l],t[l],l,r,t):void 0;void 0===u&&(u=t[l]),s?i(r,l,u):o(r,l,u)}return r}var o=r(6),i=r(7);t.exports=n},function(t,e,r){var n=r(1),o=n["__core-js_shared__"];t.exports=o},function(t,e,r){function n(t){return o(function(e,r){var n=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++n<o;){var c=r[n];c&&t(e,c,n,s)}return e})}var o=r(27),i=r(37);t.exports=n},function(t,e,r){function n(t,e){var r=i(t,e);return o(r)?r:void 0}var o=r(24),i=r(36);t.exports=n},function(t,e,r){function n(t){var e=s.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[c]=r:delete t[c]),o}var o=r(5),i=Object.prototype,s=i.hasOwnProperty,a=i.toString,c=o?o.toStringTag:void 0;t.exports=n},function(t,e){function r(t,e){return null==t?void 0:t[e]}t.exports=r},function(t,e,r){function n(t,e,r){if(!a(r))return!1;var n=typeof e;return!!("number"==n?i(r)&&s(e,r.length):"string"==n&&e in r)&&o(r[e],t)}var o=r(12),i=r(2),s=r(10),a=r(3);t.exports=n},function(t,e,r){function n(t){return!!i&&i in t}var o=r(32),i=function(){var t=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=n},function(t,e,r){var n=r(42),o=n(Object.keys,Object);t.exports=o},function(t,e,r){(function(t){var n=r(9),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=i&&i.exports===o,a=s&&n.process,c=function(){try{return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c}).call(e,r(16)(t))},function(t,e){function r(t){return o.call(t)}var n=Object.prototype,o=n.toString;t.exports=r},function(t,e){function r(t,e){return function(r){return t(e(r))}}t.exports=r},function(t,e,r){function n(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var n=arguments,s=-1,a=i(n.length-e,0),c=Array(a);++s<a;)c[s]=n[e+s];s=-1;for(var l=Array(e+1);++s<e;)l[s]=n[s];return l[e]=r(c),o(t,this,l)}}var o=r(21),i=Math.max;t.exports=n},function(t,e,r){var n=r(28),o=r(45),i=o(n);t.exports=i},function(t,e){function r(t){var e=0,r=0;return function(){var s=i(),a=o-(s-r);if(r=s,a>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var n=800,o=16,i=Date.now;t.exports=r},function(t,e){function r(t){if(null!=t){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var n=Function.prototype,o=n.toString;t.exports=r},function(t,e,r){var n=r(6),o=r(31),i=r(33),s=r(2),a=r(11),c=r(53),l=Object.prototype,u=l.hasOwnProperty,d=i(function(t,e){if(a(e)||s(e))return void o(e,c(e),t);for(var r in e)u.call(e,r)&&n(t,r,e[r])});t.exports=d},function(t,e){function r(t){return function(){return t}}t.exports=r},function(t,e,r){var n=r(23),o=r(4),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return o(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){(function(t){var n=r(1),o=r(54),i="object"==typeof e&&e&&!e.nodeType&&e,s=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===i,c=a?n.Buffer:void 0,l=c?c.isBuffer:void 0,u=l||o;t.exports=u}).call(e,r(16)(t))},function(t,e,r){var n=r(25),o=r(30),i=r(40),s=i&&i.isTypedArray,a=s?o(s):n;t.exports=a},function(t,e,r){function n(t){return s(t)?o(t):i(t)}var o=r(22),i=r(26),s=r(2);t.exports=n},function(t,e){function r(){return!1}t.exports=r},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=r(17),i=n(o),s=r(18),a=n(s),c=r(19),l=n(c),u=r(20),d=n(u);e.default={checkbox:i.default,editor:a.default,layout:l.default,radio:d.default}}])}); | ||
//# sourceMappingURL=formed.min.js.map |
{ | ||
"name": "formed.css", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Formed solutions visual style and component-based library.", | ||
@@ -5,0 +5,0 @@ "style": "dist/css/formed.css", |
@@ -26,3 +26,5 @@ const webpack = require('webpack'); | ||
path: join(__dirname, 'dist', 'js'), | ||
filename: '[name].js' | ||
filename: '[name].js', | ||
library: 'formed-[name]', | ||
libraryTarget: 'umd' | ||
}, | ||
@@ -29,0 +31,0 @@ devtool: 'source-map', |
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
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
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
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
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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1328188
3181
1