@engie-group/fluid-design-system
Advanced tools
Comparing version 3.0.0-alpha.1 to 3.0.0-alpha.2
315
CHANGELOG.md
@@ -16,21 +16,330 @@ # Changelog | ||
* Conventional commit for readable meaning to commit messages | ||
* Add three new colors (`orange-crusta`, `red-mandy` and `yellow-bright-sun`) for these components: | ||
* Avatar | ||
* Badge | ||
* Icon | ||
* Tag | ||
* Util `text-*` and `bg-*` | ||
### :pencil2: Changed | ||
* Update the colors according to the new ENGIE identity | ||
* Replace Webpack with Rollup for TypeScript files and Gulp for style files | ||
* Change Vanilla JS component files to TypeScript | ||
* Refact into reusable components with an easily unique import: | ||
* Alert | ||
* Avatar | ||
* Badge | ||
* Breadcrumb | ||
* Buttons | ||
* Button | ||
* Card | ||
* Checkbox | ||
* Collapse | ||
* Divider | ||
* Dropdown | ||
* Footer | ||
* Form | ||
* Grid | ||
* Icon | ||
* Link | ||
* List group | ||
* Modal | ||
* Navbar | ||
* Pagination | ||
* Radio | ||
* Select | ||
* Slider | ||
* Spinner | ||
* Switch | ||
* Tables | ||
* Table | ||
* Tag | ||
* Toggle | ||
* Tooltip | ||
* Util | ||
### :bug: Fixed | ||
### :x: Removed | ||
* $gradient-secondary and $gradient-tertiary | ||
* two components will be added in a future version (reusable and unique import): | ||
* Floating Action Button | ||
* Progress | ||
## 2.4.4 - 2019-XX-XX | ||
### Fixed | ||
- Input label color now have the correct gray. | ||
- Remove v2 folder in scss folder. | ||
## 2.4.3 - 2019-11-12 | ||
### Fixed | ||
- Click event for password (visible icon) and search input (erase icon) | ||
## 2.4.2 - 2019-10-29 | ||
### Added | ||
- Add decoration text css class utility | ||
- Add hover behavior for the card component | ||
## 2.4.1 - 2019-10-16 | ||
### Fixed | ||
- Inconsistency between the source and compiled assets of the NPM library. | ||
## 2.4.0 - 2019-10-11 | ||
### Added | ||
- Single dropdown component | ||
- New Modal component | ||
- Spinner component | ||
### Changed | ||
- Pagination buttons now have small rounded corners, instead of being entirely round | ||
- Navbar can now be displayed as small | ||
### Fixed | ||
- Fix icon color in the button component | ||
- Fix progress bar in slider component | ||
## 2.3.0 - 2019-06-28 | ||
### Added | ||
- Inputs with icon on the left and right | ||
- Input with a search icon and a clear icon to reset the input value | ||
- Input type password with an eye icon to reveal the password | ||
- Components test with the Jest library | ||
### Changed | ||
- The Lato font is removed as NPM dependency, now called from the HTML header. | ||
- Fix amperstand selector in form component | ||
## 2.2.0 - 2019-06-06 | ||
### Added | ||
- Library is now available trough CDN assets.design.digital.engie.com | ||
- Overflow classes utilities | ||
### Changed | ||
- SCSS variables components have been prefixed with 'nj' | ||
- Change horizontal padding value from 3rem to 2 rem for Navbar component | ||
- Alert component width a new style | ||
- Lato fonts is now imported as a package | ||
## 2.1.2 - 2019-05-21 | ||
### Fixed | ||
- fix missing `src/js` folder and files in published package | ||
## 2.1.1 - 2019-05-21 | ||
### Fixed | ||
- Fix export of stylesheets filename | ||
## 2.1.0 - 2019-05-21 | ||
### Added | ||
- FAB (Floating Action Button) component with menu interaction | ||
### Changed | ||
- Disabled state of input and select | ||
- Change order of tag for the select component | ||
- Fix a regression on the link component | ||
- Npm setup guide (new artifactory url) | ||
### Deprecated | ||
- `nj-label-floating` should be replace by `nj-label-static` for the select label tag | ||
## 2.0.3 - 2019-05-06 | ||
### Changed | ||
- Update footer component by adding hr tag | ||
## 2.0.2 - 2019-04-30 | ||
### Added | ||
- Stretched link utility | ||
- Add color theme to Toggle component | ||
### Changed | ||
- Fix background button of list group item | ||
- Renamed range component as slider component | ||
- Reduce the padding of navbar on mobile | ||
## 2.0.1 - 2019-04-18 | ||
### Changed | ||
- Exclude js folder when package is installed as a dependency | ||
## 2.0.0 - 2019-04-17 | ||
### Added | ||
* AbstractComponent as a base component to extends for all components | ||
* Components are now globally or individually instanciated at the bottom of the page. | ||
- Pagination component | ||
- Gradient utility class modifier for horizontal gradient | ||
- Text gradient mixin | ||
- Fix blue-bigstone color value | ||
- Progress Bar component | ||
- List group | ||
- Switch (new) component | ||
- Range component | ||
- Tooltip component | ||
### Changed | ||
* Webpack export `NJ` as an umd, window, and global var | ||
* The js components are no longer self-initialized. You must do it manually. | ||
- Fix the color in the navbar navbar | ||
- Increase logo size in the navbar | ||
- Change gardient variables and mixin | ||
- New palette of colors (21 > 19) | ||
- Gradients colors and variables updated | ||
- Rewrite old remaining components to apply our javascript component model : Alert, Checkbox, CollapseSearchBar, Radio, Select, Switch, Tag, Text, Textarea | ||
- Buttons radius and focus style updated | ||
- Footer style updated | ||
- Switch renamed to toggle | ||
### Fixed | ||
- Fix the font link by adding a scss variable $fonts-path | ||
### Removed | ||
- enable-gradient variable and condition | ||
- Flux bar component | ||
## 1.5.6 - 2019-02-27 | ||
### Changed | ||
- Fix shadow issue on showcase navigation | ||
- Fix background size on showcase homepage | ||
## 1.5.5 - 2019-02-26 | ||
### Added | ||
- Mobile navigation on design system pages | ||
### Changed | ||
- Images on showcase | ||
- Navigation on showcase | ||
- Form refactored | ||
- Collapse refactored | ||
- Prefix collapse class | ||
- Fix transparent navbar | ||
- Update sketch file | ||
### Removed | ||
- Css nano rule for zindexing | ||
- Remove useless scss file (variables, components, mixins) | ||
## 1.5.4 - 2019-02-07 | ||
### Changed | ||
- Update node and npm version to fix of linters that's does not works as expected | ||
## 1.5.3 - 2019-02-07 | ||
### Changed | ||
- Start algolia search only on documentation | ||
## 1.5.2 - 2019-02-07 | ||
### Added | ||
- Search for the documentation | ||
- Card component | ||
- Table component | ||
- New template page named Articles | ||
- Add a dedicated Jenkinsfile to tests all the buids actions during development | ||
### Changed | ||
- Fix sketch color palette url | ||
- Change jenkins file to publish npm package on expose repository | ||
### Removed | ||
- Unnecessary css file in documentation folder | ||
## 1.5.1 - 2019-01-22 | ||
### Added | ||
- Page for user testing | ||
### Changed | ||
- New version of sketch | ||
- Getting started page for designers | ||
### Removed | ||
- Remove jQuery from the showcase pages | ||
## 1.5.0 - 2019-01-18 | ||
### Added | ||
- Js polyfills | ||
- Xml rss file to add sketch as a library | ||
### Changed | ||
- Translate checkbox, radio and switch components in vanilla js | ||
### Removed | ||
- Remove bootstrap from package.json | ||
- Remove legacy js components | ||
- Remove nj-components-old.js generation | ||
## 1.4.2 - 2019-01-08 | ||
### Added | ||
- Add checkout template | ||
- Add sigin template | ||
- Add cover template | ||
### Changed | ||
- Change content in several pages | ||
- Make spelling corrections | ||
- Reduce the sketch file size (26mo -> 8mo) | ||
- Change our core size (mega to giga and giga to tera) | ||
### Removed | ||
- Remove useless screenshots for the thumbnails in page examples | ||
## 1.4.1 - 2018-12-21 | ||
### Changed | ||
- Change application.min.css by application.css for prod build | ||
## 1.4.0 - 2018-12-21 | ||
### Added | ||
- Add slider section in the homepage | ||
- Add ux principles section in the experience page | ||
- Add accessibility page | ||
- Add methodology pdf | ||
- Add new sketch file | ||
- Add engie font icons | ||
- Add alert component | ||
### Changed | ||
- Change showcase pages style and pictures | ||
- Change the form from jQuery to vanilla JS | ||
- Change the collapse utility from jQuery to vanilla JS | ||
- Review the documentation content pages | ||
### Removed | ||
- Remove progress bar page | ||
- Remove cards page | ||
## 1.3.2 - 2018-12-20 | ||
### Changed | ||
- Fix npm version in package-lock.json | ||
## 1.3.1 - 2018-12-20 | ||
### Changed | ||
- Change name of the artifact by adding the version for prod build | ||
## 1.3.0 - 2018-12-18 | ||
### Added | ||
- Add webpack | ||
- Add the tag component | ||
- Add the navbar component | ||
- Add the footer component | ||
- Create showcase pages with content | ||
- Add content into design system | ||
### Changed | ||
- Change the name of font-map (based on metric now) | ||
- Change the CI workflow thanks to Jenkinsfile | ||
## 1.2.0 - 2018-11-26 | ||
### Added | ||
- Add build folder | ||
- Add showcase pages in Jekyll | ||
- Add commands to publish on NPM | ||
- Add component status page | ||
- Add Google Analytics tracking | ||
### Changed | ||
- Change the build commands in package.json | ||
- Change tree structure | ||
- Update breadcrumb component | ||
- Update badge component | ||
- Update link component | ||
- Add source files to zip file | ||
### Removed | ||
- Remove the version folder for documentation. | ||
- Remove operation/customer themes | ||
## 1.1.0 - 2018-09-28 | ||
### Added | ||
- Add card component. | ||
- Add navbar component. | ||
- Add a navigation to the documentation. | ||
- New examples pages with pictures. | ||
- Add sketch palette to download. | ||
- Add shades of black and white. | ||
### Changed | ||
- Change the tree documentation. | ||
- Rename b2c to customer. | ||
- Rename b2b to operation. | ||
- Move the assets directory to assets in site/ | ||
- Review the whole colors page documentation. | ||
### Removed | ||
- Remove assets/img (use base64 for svg). | ||
- Remove assets task in package.json. | ||
## 1.0.0 - 2018-08-23 | ||
First launch of ENGIE design system and documentation. |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("popper.js")):"function"==typeof define&&define.amd?define(["popper.js"],e):(t=t||self).Slider=e(t.Popper)}(this,(function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t; | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Slider=e()}(this,(function(){"use strict"; | ||
/*! ***************************************************************************** | ||
@@ -15,3 +15,26 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
and limitations under the License. | ||
***************************************************************************** */ | ||
var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,n)};function n(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}var o,i,r=function(){return(r=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},a=function(){function t(t,e,n){void 0===n&&(n={}),!e||e instanceof Element||console.error(Error(e+" is not an HTML Element"));var o=t.getInstance(e);o&&o.dispose(),this.options=n,this.element=e}return t.init=function(t,e,n){void 0===e&&(e={});var o=[];return document.querySelectorAll(n).forEach((function(n){o.push(new t(n,e))})),o},t.prototype.dispose=function(){throw new Error("You have to implement the method dispose !")},t.getInstance=function(t){throw new Error("You have to implement the method getInstance !")},t}(),s=(o={},i=1,{set:function(t,e,n){void 0===t.key&&(t.key={key:e,id:i},i++),o[t.key.id]=n},get:function(t,e){if(!t||void 0===t.key)return null;var n=t.key;return n.key===e?o[n.id]:null},delete:function(t,e){if(void 0!==t.key){var n=t.key;n.key===e&&(delete o[n.id],delete t.key)}}}),l={setData:function(t,e,n){s.set(t,e,n)},getData:function(t,e){return s.get(t,e)},removeData:function(t,e){s.delete(t,e)}},u=/[^.]*(?=\..*)\.|.*/,c=/\..*/,p=/^key/,h=/::\d+$/,f={},d=1,E={mouseenter:"mouseover",mouseleave:"mouseout"},m=["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"];function g(t,e){return e&&e+"::"+d++||t.uidEvent||d++}function T(t){var e=g(t);return t.uidEvent=e,f[e]=f[e]||{}}function v(t,e){null===t.which&&p.test(t.type)&&(t.which=null!==t.charCode?t.charCode:t.keyCode),t.delegateTarget=e}function y(t,e){return function n(o){return v(o,t),n.oneOff&&O.off(t,o.type,e),e.apply(t,[o])}}function A(t,e,n){return function o(i){for(var r=t.querySelectorAll(e),a=i.target;a&&a!==this;a=a.parentNode)for(var s=r.length;s--;)if(r[s]===a)return v(i,a),o.oneOff&&O.off(t,i.type,n),n.apply(a,[i]);return null}}function S(t,e,n){for(var o in void 0===n&&(n=null),t)if(Object.prototype.hasOwnProperty.call(t,o)){var i=t[o];if(i.originalHandler===e&&i.delegationSelector===n)return t[o]}return null}function b(t,e,n){var o="string"==typeof e,i=o?n:e,r=t.replace(c,""),a=E[r];return a&&(r=a),m.indexOf(r)>-1||(r=t),[o,i,r]}function N(t,e,n,o,i){if("string"==typeof e&&null!=t){n||(n=o,o=null);for(var r=T(t),a=0,s=e.split(" ");a<s.length;a++){var l=s[a],c=b(l,n,o),p=c[0],h=c[1],f=c[2],d=r[f]||(r[f]={}),E=S(d,h,p?n:null);if(E)return void(E.oneOff=E.oneOff&&i);var m=g(h,l.replace(u,"")),v=p?A(t,n,o):y(t,n);v.delegationSelector=p?n:null,v.originalHandler=h,v.oneOff=i,v.uidEvent=m,d[m]=v,t.addEventListener(f,v,p)}}}function w(t,e,n,o,i){var r=S(e[n],o,i);null!==r&&(t.removeEventListener(n,r,Boolean(i)),delete e[n][r.uidEvent])}function _(t,e,n,o){var i=e[n]||{};for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&r.indexOf(o)>-1){var a=i[r];w(t,e,n,a.originalHandler,a.delegationSelector)}}var O={on:function(t,e,n,o){N(t,e,n,o,!1)},one:function(t,e,n,o){N(t,e,n,o,!0)},off:function(t,e,n,o){if("string"==typeof e&&null!=t){var i=b(e,n,o),r=i[0],a=i[1],s=i[2],l=s!==e,u=T(t);if(void 0===a){if("."===e.charAt(0))for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&_(t,u,c,e.substr(1));var p=u[s]||{};for(var f in p)if(Object.prototype.hasOwnProperty.call(p,f)){var d=f.replace(h,"");if(!l||e.indexOf(d)>-1){var E=p[f];w(t,u,s,E.originalHandler,E.delegationSelector)}}}else{if(!u||!u[s])return;w(t,u,s,a,r?n:null)}}},trigger:function(t,e,n){if("string"!=typeof e||null==t)return null;var o=e.replace(c,""),i=m.indexOf(o)>-1,r=null;return i?(r=document.createEvent("HTMLEvents")).initEvent(o,!0,!0):r=new CustomEvent(e,{bubbles:!0,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((function(t){Object.defineProperty(r,t,{get:function(){return n[t]}})})),t.dispatchEvent(r),r}};var C={getDataAttributes:function(t){if(null==t)return{};var e={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))e=r({},t.dataset);else for(var n=0;n<t.attributes.length;n++){var o=t.attributes[n];if(-1!==o.nodeName.indexOf("data-")){var i=o.nodeName.substring("data-".length).replace(/-./g,(function(t){return t.charAt(1).toUpperCase()}));e[i]=o.nodeValue}}return Object.keys(e).forEach((function(t){var n;e[t]="true"===(n=e[t])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),e},toggleClass:function(t,e){null!=t&&(t.classList.contains(e)?t.classList.remove(e):t.classList.add(e))},extend:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n={},o=!1,i=0;function r(t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o&&"[object Object]"===Object.prototype.toString.call(t[e])?n[e]=C.extend(n[e],t[e]):n[e]=t[e])}for("[object Boolean]"===Object.prototype.toString.call(t[0])&&(o=t[0],i++);i<t.length;i++)r(t[i]);return n},createHtmlNode:function(t){return(new DOMParser).parseFromString(t,"text/html").body.firstChild}},L="nj",D="click",R="hide",I="hidden",M="show",P="shown",k="inserted",V="focusin",H="focusout",j="mouseenter",Y="mouseleave";var x={TRANSITION_END:"transitionend",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=window.getComputedStyle(t).transitionDuration,n=window.getComputedStyle(t).transitionDelay,o=parseFloat(e),i=parseFloat(n);return o||i?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){t.dispatchEvent(new Event(x.TRANSITION_END))},isElement:function(t){return(t[0]||t).nodeType},emulateTransitionEnd:function(t,e){var n=!1,o=e+5;t.addEventListener(x.TRANSITION_END,(function e(){n=!0,t.removeEventListener(x.TRANSITION_END,e)})),setTimeout((function(){n||x.triggerTransitionEnd(t)}),o)},typeCheckConfig:function(t,e,n){for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var i=n[o],r=e[o],a=r&&x.isElement(r)?"element":(s=r,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(i).test(a))throw new Error(t.toUpperCase()+': Option "'+o+'" provided type "'+a+'" but expected type "'+i+'".')}var s},makeArray:function(t){return null==t?[]:[].slice.call(t)},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?x.findShadowRoot(t.parentElement):null}},G=function(e){function o(t,n){void 0===n&&(n={});var i=e.call(this,o,t,o.getOptions(t,n))||this;return i.isEnabled=!0,i.timeout=0,i.hoverState="",i.activeTrigger={},i.popper=null,i.tip=null,i.setListeners(),l.setData(t,o.DATA_KEY,i),i}return n(o,e),o.prototype.enable=function(){this.isEnabled=!0},o.prototype.disable=function(){this.isEnabled=!1},o.prototype.toggleEnabled=function(){this.isEnabled=!this.isEnabled},o.prototype.toggle=function(t){if(this.isEnabled)if(t){var e=o.DATA_KEY,n=l.getData(t.delegateTarget,e);n||(n=new o(t.delegateTarget,this.getDelegateConfig()),l.setData(t.delegateTarget,e,n)),n.activeTrigger.click=!n.activeTrigger.click,n.isWithActiveTrigger()?n.enter(null,n):n.leave(null,n)}else{if(this.getTipElement().classList.contains(o.CLASS_NAME.show))return void this.leave(null,this);this.enter(null,this)}},o.prototype.dispose=function(){clearTimeout(this.timeout),l.removeData(this.element,o.DATA_KEY),O.off(this.element,o.EVENT_KEY),O.off(this.element.closest(".modal"),"hide.nj.modal"),this.tip&&this.tip.parentNode.removeChild(this.tip),this.isEnabled=null,this.timeout=null,this.hoverState=null,this.activeTrigger=null,null!==this.popper&&this.popper.destroy(),this.popper=null,this.element=null,this.options=null,this.tip=null},o.prototype.show=function(){var e=this;if("none"===this.element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this.isEnabled){var n=O.trigger(this.element,o.EVENT.show),i=x.findShadowRoot(this.element),r=null!==i?i.contains(this.element):this.element.ownerDocument.documentElement.contains(this.element);if(n.defaultPrevented||!r)return;var a=this.getTipElement(),s=x.getUID(o.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.options.animation&&a.classList.add(o.CLASS_NAME.fade);var u="function"==typeof this.options.placement?this.options.placement.call(this,a,this.element):this.options.placement,c=o.getAttachment(u);this.addAttachmentClass(c),this.options.arrow||this.getTipElement().classList.add(o.CLASS_NAME.withoutArrow);var p=this.getContainer();l.setData(a,o.DATA_KEY,this),this.element.ownerDocument.documentElement.contains(this.tip)||p.appendChild(a),O.trigger(this.element,o.EVENT.inserted),this.popper=new t(this.element,a,{placement:c,modifiers:{offset:{offset:this.options.offset},flip:{behavior:this.options.fallbackPlacement},arrow:{element:o.SELECTOR.arrow},preventOverflow:{boundariesElement:this.options.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e.handlePopperPlacementChange(t)},onUpdate:function(t){return e.handlePopperPlacementChange(t)}}),a.classList.add(o.CLASS_NAME.show),"ontouchstart"in document.documentElement&&x.makeArray(document.body.children).forEach((function(t){O.on(t,"mouseover")}));var h=function(){e.options.animation&&e.fixTransition();var t=e.hoverState;e.hoverState=null,O.trigger(e.element,o.EVENT.shown),t===o.HOVER_STATE.out&&e.leave(null,e)};if(this.tip.classList.contains(o.CLASS_NAME.fade)){var f=x.getTransitionDurationFromElement(this.tip);O.one(this.tip,x.TRANSITION_END,h),x.emulateTransitionEnd(this.tip,f)}else h()}},o.prototype.hide=function(t){var e=this,n=this.getTipElement(),i=function(){e.hoverState!==o.HOVER_STATE.show&&n.parentNode&&n.parentNode.removeChild(n),e.cleanTipClass(),e.element.removeAttribute("aria-describedby"),O.trigger(e.element,o.EVENT.hidden),null!==e.popper&&e.popper.destroy(),t&&t()};if(!O.trigger(this.element,o.EVENT.hide).defaultPrevented){if(n.classList.remove(o.CLASS_NAME.show),"ontouchstart"in document.documentElement&&x.makeArray(document.body.children).forEach((function(t){return O.off(t,"mouseover")})),this.activeTrigger[o.TRIGGER.click]=!1,this.activeTrigger[o.TRIGGER.focus]=!1,this.activeTrigger[o.TRIGGER.hover]=!1,this.tip.classList.contains(o.CLASS_NAME.fade)){var r=x.getTransitionDurationFromElement(n);O.one(n,x.TRANSITION_END,i),x.emulateTransitionEnd(n,r)}else i();this.hoverState=""}},o.prototype.update=function(){null!==this.popper&&this.popper.scheduleUpdate()},o.prototype.isWithContent=function(){return Boolean(this.getTitle())},o.prototype.addAttachmentClass=function(t){this.getTipElement().classList.add(o.CLASS_NAME.default+"--"+t)},o.prototype.getTipElement=function(){if(this.tip)return this.tip;var t=document.createElement("div");return t.innerHTML=this.options.template,this.tip=t.children[0],this.tip},o.prototype.setContent=function(){var t=this.getTipElement();this.setElementContent(t.querySelector(o.SELECTOR.inner),this.getTitle()),t.classList.remove(o.CLASS_NAME.fade),t.classList.remove(o.CLASS_NAME.show)},o.prototype.setElementContent=function(t,e){if(null!==t){var n=this.options.html;"object"==typeof e&&e.nodeType?n?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.innerText=e.textContent:t[n?"innerHTML":"innerText"]=e}},o.prototype.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.options.title?this.options.title.call(this.element):this.options.title),t},o.prototype.getContainer=function(){return!1===this.options.container?document.body:x.isElement(this.options.container)?this.options.container:document.querySelector(this.options.container)},o.prototype.setListeners=function(){var t=this;this.options.trigger.split(" ").forEach((function(e){if("click"===e)O.on(t.element,o.EVENT.click,t.options.selector,(function(e){return t.toggle(e)}));else if(e!==o.TRIGGER.manual){var n=e===o.TRIGGER.hover?o.EVENT.mouseenter:o.EVENT.focusin,i=e===o.TRIGGER.hover?o.EVENT.mouseleave:o.EVENT.focusout;O.on(t.element,n,t.options.selector,(function(e){return t.enter(e)})),O.on(t.element,i,t.options.selector,(function(e){return t.leave(e)}))}})),O.on(this.element.closest(".modal"),"hide.nj.modal",(function(){t.element&&t.hide()})),this.options.selector?this.options=r(r({},this.options),{trigger:"manual",selector:""}):this.fixTitle()},o.prototype.fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},o.prototype.enter=function(t,e){var n=o.DATA_KEY;if((e=e||l.getData(t.delegateTarget,n))||(e=new o(t.delegateTarget,this.getDelegateConfig()),l.setData(t.delegateTarget,n,e)),t){var i="focusin"===t.type?o.TRIGGER.focus:o.TRIGGER.hover;e.activeTrigger[i]=!0}e.getTipElement().classList.contains(o.CLASS_NAME.show)||e.hoverState===o.HOVER_STATE.show?e.hoverState=o.HOVER_STATE.show:(clearTimeout(e.timeout),e.hoverState=o.HOVER_STATE.show,e.options.delay&&e.options.delay.show?e.timeout=setTimeout((function(){e._hoverState===o.HOVER_STATE.show&&e.show()}),e.options.delay.show):e.show())},o.prototype.leave=function(t,e){var n=o.DATA_KEY;if((e=e||l.getData(t.delegateTarget,n))||(e=new o(t.delegateTarget,this.getDelegateConfig()),l.setData(t.delegateTarget,n,e)),t){var i="focusout"===t.type?o.TRIGGER.focus:o.TRIGGER.hover;e.activeTrigger[i]=!1}e.isWithActiveTrigger()||(clearTimeout(e.timeout),e.hoverState=o.HOVER_STATE.out,e.options.delay&&e.options.delay.hide?e.timeout=setTimeout((function(){e.hoverState===o.HOVER_STATE.out&&e.hide()}),e.options.delay.hide):e.hide())},o.prototype.isWithActiveTrigger=function(){for(var t in this.activeTrigger)if(this.activeTrigger[t])return!0;return!1},o.getOptions=function(t,e){return"number"==typeof(e=r(r(r({},o.DEFAULT_OPTIONS),C.getDataAttributes(t)),"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),x.typeCheckConfig(o.NAME,e,o.DEFAULT_TYPE),e},o.prototype.getDelegateConfig=function(){var t={};if(this.options)for(var e in this.options)o.DEFAULT_OPTIONS[e]!==this.options[e]&&(t[e]=this.options[e]);return t},o.prototype.cleanTipClass=function(){var t=this.getTipElement(),e=t.getAttribute("class").match(o.NJCLS_PREFIX_REGEX);null!==e&&e.length&&e.map((function(t){return t.trim()})).forEach((function(e){return t.classList.remove(e)}))},o.prototype.handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this.cleanTipClass(),this.addAttachmentClass(o.getAttachment(t.placement))},o.prototype.fixTransition=function(){var t=this.getTipElement(),e=this.options.animation;null===t.getAttribute("x-placement")&&(t.classList.remove(o.CLASS_NAME.fade),this.options.animation=!1,this.hide(),this.show(),this.options.animation=e)},o.getAttachment=function(t){return o.ATTACHMENT_MAP[t.toUpperCase()]},o.getInstance=function(t){return l.getData(t,o.DATA_KEY)},o.init=function(){return console.info("\n [NJ Warning]: Tooltips are opt-in for performance reasons, so you must initialize them yourself.\n Read the doc : https://design.engie.com/design-system/components/tooltip/#example-enable-tooltips-everywhere\n "),[]},o.NAME=L+"-tooltip",o.DATA_KEY=L+".tooltip",o.EVENT_KEY="."+o.DATA_KEY,o.CLASS_NAME={default:L+"-tooltip",inner:L+"-tooltip__inner",arrow:L+"-tooltip__arrow",withoutArrow:L+"-tooltip--without-arrow",fade:"fade",show:"show"},o.NJCLS_PREFIX_REGEX=new RegExp("(^|\\s)"+o.CLASS_NAME.default+"\\S+","g"),o.DEFAULT_TYPE={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",arrow:"boolean"},o.ATTACHMENT_MAP={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},o.DEFAULT_OPTIONS={animation:!0,template:'<div class="'+o.CLASS_NAME.default+'" role="tooltip"><div class="'+o.CLASS_NAME.arrow+'"></div><div class="'+o.CLASS_NAME.inner+'"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",arrow:!0},o.HOVER_STATE={show:"show",out:"out"},o.EVENT={hide:""+R+o.EVENT_KEY,hidden:""+I+o.EVENT_KEY,show:""+M+o.EVENT_KEY,shown:""+P+o.EVENT_KEY,inserted:""+k+o.EVENT_KEY,click:""+D+o.EVENT_KEY,focusin:""+V+o.EVENT_KEY,focusout:""+H+o.EVENT_KEY,mouseenter:""+j+o.EVENT_KEY,mouseleave:""+Y+o.EVENT_KEY},o.SELECTOR={default:"."+o.CLASS_NAME.default,inner:"."+o.CLASS_NAME.inner,arrow:"."+o.CLASS_NAME.arrow},o.TRIGGER={hover:"hover",focus:"focus",click:"click",manual:"manual"},o}(a);return function(t){function e(n,o){void 0===o&&(o={});var i=t.call(this,e,n,e.getOptions(n,o))||this;return i.dataId=Number(String(Math.random()).slice(2))+Date.now(),i.dynamicStyles=document.createElement("style"),i.input=i.element.querySelector(e.SELECTOR.input),i.element.setAttribute("data-id",i.dataId.toString()),document.body.appendChild(i.dynamicStyles),i.refreshProgressValue(),i.setListeners(),i.options.tooltip&&(i.addTooltip(),i.setTooltipListeners()),l.setData(n,e.DATA_KEY,i),i}return n(e,t),e.prototype.addTooltip=function(){this.tooltip=C.createHtmlNode(G.DEFAULT_OPTIONS.template),this.tooltip.classList.add("nj-tooltip--top"),this.tooltip.classList.add("show"),this.element.insertBefore(this.tooltip,this.element.querySelector(e.SELECTOR.label)),this.refreshTooltipValue()},e.prototype.setListeners=function(){var t=this;O.on(this.element,"input change keyup",(function(){t.refreshProgressValue()}))},e.prototype.setTooltipListeners=function(){var t=this;O.on(this.element,"input change keyup",(function(){t.refreshTooltipValue()}));var e=!1;O.on(document,"resize",(function(){e||(t.refreshTooltipValue(),e=!0,setTimeout((function(){e=!1}),100))}))},e.prototype.refreshProgressValue=function(){var t=this,n=parseInt(this.input.max,10)||e.PERCENT_CONV,o=parseInt(this.input.min,10)||0,i=parseInt(this.input.value,10),r=Math.floor(e.PERCENT_CONV*(i-o)/(n-o)),a="";e.PSEUDO_ELEMS.forEach((function(n){a+=e.SELECTOR.default+"[data-id='"+t.dataId+"'] input[type=range]::-"+n+"-track{background-size: "+r+"% 100%} "})),this.dynamicStyles.textContent=a},e.prototype.refreshTooltipValue=function(){this.tooltip.querySelector(G.SELECTOR.inner).innerHTML=this.input.value,this.replaceTooltip()},e.prototype.replaceTooltip=function(){var t=""===this.input.min?0:parseInt(this.input.min,10),n=""===this.input.max?100:parseInt(this.input.max,10),o=(parseInt(this.input.value,10)-t)/(n-t);this.tooltip.style.left=o*(this.input.offsetWidth-e.THUMB_WIDTH)-this.tooltip.offsetWidth/2+e.THUMB_WIDTH/2+"px"},e.getOptions=function(t,n){return void 0===n&&(n={}),n=r(r(r({},e.DEFAULT_OPTIONS),C.getDataAttributes(t)),"object"==typeof n&&n?n:{}),x.typeCheckConfig(e.NAME,n,e.DEFAULT_TYPE),n},e.prototype.dispose=function(){l.removeData(this.element,e.DATA_KEY),this.element=null},e.getInstance=function(t){return l.getData(t,e.DATA_KEY)},e.init=function(n){return void 0===n&&(n={}),t.init.call(this,this,n,e.SELECTOR.default)},e.NAME="nj-slider",e.DATA_KEY=L+".slider",e.CLASS_NAME=L+"-slider",e.SELECTOR={default:"."+e.CLASS_NAME,input:"input",label:"label"},e.THUMB_WIDTH=16,e.DEFAULT_TYPE={tooltip:"boolean"},e.DEFAULT_OPTIONS={tooltip:!1},e.PERCENT_CONV=100,e.PSEUDO_ELEMS=["webkit-slider-runnable","moz-range","ms"],e}(a)})); | ||
***************************************************************************** */var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};function e(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}var n,o,i=function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},r=function(){function t(t,e,n){void 0===n&&(n={}),!e||e instanceof Element||console.error(Error(e+" is not an HTML Element"));var o=t.getInstance(e);o&&o.dispose(),this.options=n,this.element=e}return t.init=function(t,e,n){void 0===e&&(e={});var o=[];return document.querySelectorAll(n).forEach((function(n){o.push(new t(n,e))})),o},t.prototype.dispose=function(){throw new Error("You have to implement the method dispose !")},t.getInstance=function(t){throw new Error("You have to implement the method getInstance !")},t}(),a=(n={},o=1,{set:function(t,e,i){void 0===t.key&&(t.key={key:e,id:o},o++),n[t.key.id]=i},get:function(t,e){if(!t||void 0===t.key)return null;var o=t.key;return o.key===e?n[o.id]:null},delete:function(t,e){if(void 0!==t.key){var o=t.key;o.key===e&&(delete n[o.id],delete t.key)}}}),s={setData:function(t,e,n){a.set(t,e,n)},getData:function(t,e){return a.get(t,e)},removeData:function(t,e){a.delete(t,e)}},l=/[^.]*(?=\..*)\.|.*/,u=/\..*/,p=/^key/,f=/::\d+$/,c={},d=1,h={mouseenter:"mouseover",mouseleave:"mouseout"},m=["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"];function g(t,e){return e&&e+"::"+d++||t.uidEvent||d++}function v(t){var e=g(t);return t.uidEvent=e,c[e]=c[e]||{}}function E(t,e){null===t.which&&p.test(t.type)&&(t.which=null!==t.charCode?t.charCode:t.keyCode),t.delegateTarget=e}function y(t,e){return function n(o){return E(o,t),n.oneOff&&N.off(t,o.type,e),e.apply(t,[o])}}function b(t,e,n){return function o(i){for(var r=t.querySelectorAll(e),a=i.target;a&&a!==this;a=a.parentNode)for(var s=r.length;s--;)if(r[s]===a)return E(i,a),o.oneOff&&N.off(t,i.type,n),n.apply(a,[i]);return null}}function T(t,e,n){for(var o in void 0===n&&(n=null),t)if(Object.prototype.hasOwnProperty.call(t,o)){var i=t[o];if(i.originalHandler===e&&i.delegationSelector===n)return t[o]}return null}function w(t,e,n){var o="string"==typeof e,i=o?n:e,r=t.replace(u,""),a=h[r];return a&&(r=a),m.indexOf(r)>-1||(r=t),[o,i,r]}function A(t,e,n,o,i){if("string"==typeof e&&null!=t){n||(n=o,o=null);for(var r=v(t),a=0,s=e.split(" ");a<s.length;a++){var u=s[a],p=w(u,n,o),f=p[0],c=p[1],d=p[2],h=r[d]||(r[d]={}),m=T(h,c,f?n:null);if(m)return void(m.oneOff=m.oneOff&&i);var E=g(c,u.replace(l,"")),A=f?b(t,n,o):y(t,n);A.delegationSelector=f?n:null,A.originalHandler=c,A.oneOff=i,A.uidEvent=E,h[E]=A,t.addEventListener(d,A,f)}}}function S(t,e,n,o,i){var r=T(e[n],o,i);null!==r&&(t.removeEventListener(n,r,Boolean(i)),delete e[n][r.uidEvent])}function O(t,e,n,o){var i=e[n]||{};for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&r.indexOf(o)>-1){var a=i[r];S(t,e,n,a.originalHandler,a.delegationSelector)}}var N={on:function(t,e,n,o){A(t,e,n,o,!1)},one:function(t,e,n,o){A(t,e,n,o,!0)},off:function(t,e,n,o){if("string"==typeof e&&null!=t){var i=w(e,n,o),r=i[0],a=i[1],s=i[2],l=s!==e,u=v(t);if(void 0===a){if("."===e.charAt(0))for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&O(t,u,p,e.substr(1));var c=u[s]||{};for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)){var h=d.replace(f,"");if(!l||e.indexOf(h)>-1){var m=c[d];S(t,u,s,m.originalHandler,m.delegationSelector)}}}else{if(!u||!u[s])return;S(t,u,s,a,r?n:null)}}},trigger:function(t,e,n){if("string"!=typeof e||null==t)return null;var o=e.replace(u,""),i=m.indexOf(o)>-1,r=null;return i?(r=document.createEvent("HTMLEvents")).initEvent(o,!0,!0):r=new CustomEvent(e,{bubbles:!0,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((function(t){Object.defineProperty(r,t,{get:function(){return n[t]}})})),t.dispatchEvent(r),r}};var L={getDataAttributes:function(t){if(null==t)return{};var e={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))e=i({},t.dataset);else for(var n=0;n<t.attributes.length;n++){var o=t.attributes[n];if(-1!==o.nodeName.indexOf("data-")){var r=o.nodeName.substring("data-".length).replace(/-./g,(function(t){return t.charAt(1).toUpperCase()}));e[r]=o.nodeValue}}return Object.keys(e).forEach((function(t){var n;e[t]="true"===(n=e[t])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),e},toggleClass:function(t,e){null!=t&&(t.classList.contains(e)?t.classList.remove(e):t.classList.add(e))},extend:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n={},o=!1,i=0;function r(t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o&&"[object Object]"===Object.prototype.toString.call(t[e])?n[e]=L.extend(n[e],t[e]):n[e]=t[e])}for("[object Boolean]"===Object.prototype.toString.call(t[0])&&(o=t[0],i++);i<t.length;i++)r(t[i]);return n},createHtmlNode:function(t){return(new DOMParser).parseFromString(t,"text/html").body.firstChild}},C="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,D=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(C&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}(); | ||
/**! | ||
* @fileOverview Kickass library to create and place poppers near their reference elements. | ||
* @version 1.16.0 | ||
* @license | ||
* Copyright (c) 2016 Federico Zivolo and contributors | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
*/var _=C&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),D))}};function x(t){return t&&"[object Function]"==={}.toString.call(t)}function M(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function R(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function P(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=M(t),n=e.overflow,o=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+o)?t:P(R(t))}function I(t){return t&&t.referenceNode?t.referenceNode:t}var k=C&&!(!window.MSInputMethodContext||!document.documentMode),H=C&&/MSIE 10/.test(navigator.userAgent);function F(t){return 11===t?k:10===t?H:k||H}function V(t){if(!t)return document.documentElement;for(var e=F(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===M(n,"position")?V(n):n:t?t.ownerDocument.documentElement:document.documentElement}function j(t){return null!==t.parentNode?j(t.parentNode):t}function Y(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?t:e,i=n?e:t,r=document.createRange();r.setStart(o,0),r.setEnd(i,0);var a,s,l=r.commonAncestorContainer;if(t!==l&&e!==l||o.contains(i))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&V(a.firstElementChild)!==a?V(l):l;var u=j(t);return u.host?Y(u.host,e):Y(t,j(e).host)}function W(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var o=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||o)[e]}return t[e]}function U(t,e){var n="x"===e?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+o+"Width"],10)}function B(t,e,n,o){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],F(10)?parseInt(n["offset"+t])+parseInt(o["margin"+("Height"===t?"Top":"Left")])+parseInt(o["margin"+("Height"===t?"Bottom":"Right")]):0)}function K(t){var e=t.body,n=t.documentElement,o=F(10)&&getComputedStyle(n);return{height:B("Height",e,n,o),width:B("Width",e,n,o)}}var G=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},q=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),z=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},X=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};function J(t){return X({},t,{right:t.left+t.width,bottom:t.top+t.height})}function $(t){var e={};try{if(F(10)){e=t.getBoundingClientRect();var n=W(t,"top"),o=W(t,"left");e.top+=n,e.left+=o,e.bottom+=n,e.right+=o}else e=t.getBoundingClientRect()}catch(t){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?K(t.ownerDocument):{},a=r.width||t.clientWidth||i.width,s=r.height||t.clientHeight||i.height,l=t.offsetWidth-a,u=t.offsetHeight-s;if(l||u){var p=M(t);l-=U(p,"x"),u-=U(p,"y"),i.width-=l,i.height-=u}return J(i)}function Q(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=F(10),i="HTML"===e.nodeName,r=$(t),a=$(e),s=P(t),l=M(e),u=parseFloat(l.borderTopWidth,10),p=parseFloat(l.borderLeftWidth,10);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var f=J({top:r.top-a.top-u,left:r.left-a.left-p,width:r.width,height:r.height});if(f.marginTop=0,f.marginLeft=0,!o&&i){var c=parseFloat(l.marginTop,10),d=parseFloat(l.marginLeft,10);f.top-=u-c,f.bottom-=u-c,f.left-=p-d,f.right-=p-d,f.marginTop=c,f.marginLeft=d}return(o&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(f=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=W(e,"top"),i=W(e,"left"),r=n?-1:1;return t.top+=o*r,t.bottom+=o*r,t.left+=i*r,t.right+=i*r,t}(f,e)),f}function Z(t){if(!t||!t.parentElement||F())return document.documentElement;for(var e=t.parentElement;e&&"none"===M(e,"transform");)e=e.parentElement;return e||document.documentElement}function tt(t,e,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=i?Z(t):Y(t,I(e));if("viewport"===o)r=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,o=Q(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:W(n),s=e?0:W(n,"left");return J({top:a-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:i,height:r})}(a,i);else{var s=void 0;"scrollParent"===o?"BODY"===(s=P(R(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===o?t.ownerDocument.documentElement:o;var l=Q(s,a,i);if("HTML"!==s.nodeName||function t(e){var n=e.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===M(e,"position"))return!0;var o=R(e);return!!o&&t(o)}(a))r=l;else{var u=K(t.ownerDocument),p=u.height,f=u.width;r.top+=l.top-l.marginTop,r.bottom=p+l.top,r.left+=l.left-l.marginLeft,r.right=f+l.left}}var c="number"==typeof(n=n||0);return r.left+=c?n:n.left||0,r.top+=c?n:n.top||0,r.right-=c?n:n.right||0,r.bottom-=c?n:n.bottom||0,r}function et(t,e,n,o,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=tt(n,o,r,i),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map((function(t){return X({key:t},s[t],{area:(e=s[t],e.width*e.height)});var e})).sort((function(t,e){return e.area-t.area})),u=l.filter((function(t){var e=t.width,o=t.height;return e>=n.clientWidth&&o>=n.clientHeight})),p=u.length>0?u[0].key:l[0].key,f=t.split("-")[1];return p+(f?"-"+f:"")}function nt(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Q(n,o?Z(e):Y(e,I(n)),o)}function ot(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),o=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+o,height:t.offsetHeight+n}}function it(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function rt(t,e,n){n=n.split("-")[0];var o=ot(t),i={width:o.width,height:o.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",l=r?"height":"width",u=r?"width":"height";return i[a]=e[a]+e[l]/2-o[l]/2,i[s]=n===s?e[s]-o[u]:e[it(s)],i}function at(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function st(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var o=at(t,(function(t){return t[e]===n}));return t.indexOf(o)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&x(n)&&(e.offsets.popper=J(e.offsets.popper),e.offsets.reference=J(e.offsets.reference),e=n(e,t))})),e}function lt(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=nt(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=et(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=rt(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=st(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function ut(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function pt(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),o=0;o<e.length;o++){var i=e[o],r=i?""+i+n:t;if(void 0!==document.body.style[r])return r}return null}function ft(){return this.state.isDestroyed=!0,ut(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[pt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function ct(t){var e=t.ownerDocument;return e?e.defaultView:window}function dt(t,e,n,o){n.updateBound=o,ct(t).addEventListener("resize",n.updateBound,{passive:!0});var i=P(t);return function t(e,n,o,i){var r="BODY"===e.nodeName,a=r?e.ownerDocument.defaultView:e;a.addEventListener(n,o,{passive:!0}),r||t(P(a.parentNode),n,o,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function ht(){this.state.eventsEnabled||(this.state=dt(this.reference,this.options,this.state,this.scheduleUpdate))}function mt(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,ct(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function gt(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function vt(t,e){Object.keys(e).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&>(e[n])&&(o="px"),t.style[n]=e[n]+o}))}var Et=C&&/Firefox/i.test(navigator.userAgent);function yt(t,e,n){var o=at(t,(function(t){return t.name===e})),i=!!o&&t.some((function(t){return t.name===n&&t.enabled&&t.order<o.order}));if(!i){var r="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return i}var bt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Tt=bt.slice(3);function wt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Tt.indexOf(t),o=Tt.slice(n+1).concat(Tt.slice(0,n));return e?o.reverse():o}var At={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function St(t,e,n,o){var i=[0,0],r=-1!==["right","left"].indexOf(o),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(at(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(u=u.map((function(t,o){var i=(1===o?!r:r)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,o){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],a=i[2];if(!r)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=o}return J(s)[e]/100*r}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r}return r}(t,i,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,o){gt(n)&&(i[e]+=n*("-"===t[o-1]?-1:1))}))})),i}var Ot={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],o=e.split("-")[1];if(o){var i=t.offsets,r=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",p={start:z({},l,r[l]),end:z({},l,r[l]+r[u]-a[u])};t.offsets.popper=X({},a,p[o])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,o=t.placement,i=t.offsets,r=i.popper,a=i.reference,s=o.split("-")[0],l=void 0;return l=gt(+n)?[+n,0]:St(n,r,a,s),"left"===s?(r.top+=l[0],r.left-=l[1]):"right"===s?(r.top+=l[0],r.left+=l[1]):"top"===s?(r.left+=l[0],r.top-=l[1]):"bottom"===s&&(r.left+=l[0],r.top+=l[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||V(t.instance.popper);t.instance.reference===n&&(n=V(n));var o=pt("transform"),i=t.instance.popper.style,r=i.top,a=i.left,s=i[o];i.top="",i.left="",i[o]="";var l=tt(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=r,i.left=a,i[o]=s,e.boundaries=l;var u=e.priority,p=t.offsets.popper,f={primary:function(t){var n=p[t];return p[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(p[t],l[t])),z({},t,n)},secondary:function(t){var n="right"===t?"left":"top",o=p[n];return p[t]>l[t]&&!e.escapeWithReference&&(o=Math.min(p[n],l[t]-("right"===t?p.width:p.height))),z({},n,o)}};return u.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";p=X({},p,f[e](t))})),t.offsets.popper=p,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,o=e.reference,i=t.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<r(o[l])&&(t.offsets.popper[l]=r(o[l])-n[u]),n[l]>r(o[s])&&(t.offsets.popper[l]=r(o[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!yt(t.instance.modifiers,"arrow","keepTogether"))return t;var o=e.element;if("string"==typeof o){if(!(o=t.instance.popper.querySelector(o)))return t}else if(!t.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],r=t.offsets,a=r.popper,s=r.reference,l=-1!==["left","right"].indexOf(i),u=l?"height":"width",p=l?"Top":"Left",f=p.toLowerCase(),c=l?"left":"top",d=l?"bottom":"right",h=ot(o)[u];s[d]-h<a[f]&&(t.offsets.popper[f]-=a[f]-(s[d]-h)),s[f]+h>a[d]&&(t.offsets.popper[f]+=s[f]+h-a[d]),t.offsets.popper=J(t.offsets.popper);var m=s[f]+s[u]/2-h/2,g=M(t.instance.popper),v=parseFloat(g["margin"+p],10),E=parseFloat(g["border"+p+"Width"],10),y=m-t.offsets.popper[f]-v-E;return y=Math.max(Math.min(a[u]-h,y),0),t.arrowElement=o,t.offsets.arrow=(z(n={},f,Math.round(y)),z(n,c,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(ut(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=tt(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),o=t.placement.split("-")[0],i=it(o),r=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case At.FLIP:a=[o,i];break;case At.CLOCKWISE:a=wt(o);break;case At.COUNTERCLOCKWISE:a=wt(o,!0);break;default:a=e.behavior}return a.forEach((function(s,l){if(o!==s||a.length===l+1)return t;o=t.placement.split("-")[0],i=it(o);var u=t.offsets.popper,p=t.offsets.reference,f=Math.floor,c="left"===o&&f(u.right)>f(p.left)||"right"===o&&f(u.left)<f(p.right)||"top"===o&&f(u.bottom)>f(p.top)||"bottom"===o&&f(u.top)<f(p.bottom),d=f(u.left)<f(n.left),h=f(u.right)>f(n.right),m=f(u.top)<f(n.top),g=f(u.bottom)>f(n.bottom),v="left"===o&&d||"right"===o&&h||"top"===o&&m||"bottom"===o&&g,E=-1!==["top","bottom"].indexOf(o),y=!!e.flipVariations&&(E&&"start"===r&&d||E&&"end"===r&&h||!E&&"start"===r&&m||!E&&"end"===r&&g),b=!!e.flipVariationsByContent&&(E&&"start"===r&&h||E&&"end"===r&&d||!E&&"start"===r&&g||!E&&"end"===r&&m),T=y||b;(c||v||T)&&(t.flipped=!0,(c||v)&&(o=a[l+1]),T&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=o+(r?"-"+r:""),t.offsets.popper=X({},t.offsets.popper,rt(t.instance.popper,t.offsets.reference,t.placement)),t=st(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],o=t.offsets,i=o.popper,r=o.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=r[n]-(s?i[a?"width":"height"]:0),t.placement=it(e),t.offsets.popper=J(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!yt(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=at(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,o=e.y,i=t.offsets.popper,r=at(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==r?r:e.gpuAcceleration,s=V(t.instance.popper),l=$(s),u={position:i.position},p=function(t,e){var n=t.offsets,o=n.popper,i=n.reference,r=Math.round,a=Math.floor,s=function(t){return t},l=r(i.width),u=r(o.width),p=-1!==["left","right"].indexOf(t.placement),f=-1!==t.placement.indexOf("-"),c=e?p||f||l%2==u%2?r:a:s,d=e?r:s;return{left:c(l%2==1&&u%2==1&&!f&&e?o.left-1:o.left),top:d(o.top),bottom:d(o.bottom),right:c(o.right)}}(t,window.devicePixelRatio<2||!Et),f="bottom"===n?"top":"bottom",c="right"===o?"left":"right",d=pt("transform"),h=void 0,m=void 0;if(m="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+p.bottom:-l.height+p.bottom:p.top,h="right"===c?"HTML"===s.nodeName?-s.clientWidth+p.right:-l.width+p.right:p.left,a&&d)u[d]="translate3d("+h+"px, "+m+"px, 0)",u[f]=0,u[c]=0,u.willChange="transform";else{var g="bottom"===f?-1:1,v="right"===c?-1:1;u[f]=m*g,u[c]=h*v,u.willChange=f+", "+c}var E={"x-placement":t.placement};return t.attributes=X({},E,t.attributes),t.styles=X({},u,t.styles),t.arrowStyles=X({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return vt(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&vt(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,o,i){var r=nt(i,e,t,n.positionFixed),a=et(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),vt(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Nt=function(){function t(e,n){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};G(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=_(this.update.bind(this)),this.options=X({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(X({},t.Defaults.modifiers,i.modifiers)).forEach((function(e){o.options.modifiers[e]=X({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return X({name:t},o.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&x(t.onLoad)&&t.onLoad(o.reference,o.popper,o.options,t,o.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return q(t,[{key:"update",value:function(){return lt.call(this)}},{key:"destroy",value:function(){return ft.call(this)}},{key:"enableEventListeners",value:function(){return ht.call(this)}},{key:"disableEventListeners",value:function(){return mt.call(this)}}]),t}();Nt.Utils=("undefined"!=typeof window?window:global).PopperUtils,Nt.placements=bt,Nt.Defaults=Ot;var Lt="nj",Ct="click",Dt="hide",_t="hidden",xt="show",Mt="shown",Rt="inserted",Pt="focusin",It="focusout",kt="mouseenter",Ht="mouseleave";var Ft={TRANSITION_END:"transitionend",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=window.getComputedStyle(t).transitionDuration,n=window.getComputedStyle(t).transitionDelay,o=parseFloat(e),i=parseFloat(n);return o||i?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){t.dispatchEvent(new Event(Ft.TRANSITION_END))},isElement:function(t){return(t[0]||t).nodeType},emulateTransitionEnd:function(t,e){var n=!1,o=e+5;t.addEventListener(Ft.TRANSITION_END,(function e(){n=!0,t.removeEventListener(Ft.TRANSITION_END,e)})),setTimeout((function(){n||Ft.triggerTransitionEnd(t)}),o)},typeCheckConfig:function(t,e,n){for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var i=n[o],r=e[o],a=r&&Ft.isElement(r)?"element":(s=r,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(i).test(a))throw new Error(t.toUpperCase()+': Option "'+o+'" provided type "'+a+'" but expected type "'+i+'".')}var s},makeArray:function(t){return null==t?[]:[].slice.call(t)},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Ft.findShadowRoot(t.parentElement):null}},Vt=function(t){function n(e,o){void 0===o&&(o={});var i=t.call(this,n,e,n.getOptions(e,o))||this;return i.isEnabled=!0,i.timeout=0,i.hoverState="",i.activeTrigger={},i.popper=null,i.tip=null,i.setListeners(),s.setData(e,n.DATA_KEY,i),i}return e(n,t),n.prototype.enable=function(){this.isEnabled=!0},n.prototype.disable=function(){this.isEnabled=!1},n.prototype.toggleEnabled=function(){this.isEnabled=!this.isEnabled},n.prototype.toggle=function(t){if(this.isEnabled)if(t){var e=n.DATA_KEY,o=s.getData(t.delegateTarget,e);o||(o=new n(t.delegateTarget,this.getDelegateConfig()),s.setData(t.delegateTarget,e,o)),o.activeTrigger.click=!o.activeTrigger.click,o.isWithActiveTrigger()?o.enter(null,o):o.leave(null,o)}else{if(this.getTipElement().classList.contains(n.CLASS_NAME.show))return void this.leave(null,this);this.enter(null,this)}},n.prototype.dispose=function(){clearTimeout(this.timeout),s.removeData(this.element,n.DATA_KEY),N.off(this.element,n.EVENT_KEY),N.off(this.element.closest(".modal"),"hide.nj.modal"),this.tip&&this.tip.parentNode.removeChild(this.tip),this.isEnabled=null,this.timeout=null,this.hoverState=null,this.activeTrigger=null,null!==this.popper&&this.popper.destroy(),this.popper=null,this.element=null,this.options=null,this.tip=null},n.prototype.show=function(){var t=this;if("none"===this.element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this.isEnabled){var e=N.trigger(this.element,n.EVENT.show),o=Ft.findShadowRoot(this.element),i=null!==o?o.contains(this.element):this.element.ownerDocument.documentElement.contains(this.element);if(e.defaultPrevented||!i)return;var r=this.getTipElement(),a=Ft.getUID(n.NAME);r.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.options.animation&&r.classList.add(n.CLASS_NAME.fade);var l="function"==typeof this.options.placement?this.options.placement.call(this,r,this.element):this.options.placement,u=n.getAttachment(l);this.addAttachmentClass(u),this.options.arrow||this.getTipElement().classList.add(n.CLASS_NAME.withoutArrow);var p=this.getContainer();s.setData(r,n.DATA_KEY,this),this.element.ownerDocument.documentElement.contains(this.tip)||p.appendChild(r),N.trigger(this.element,n.EVENT.inserted),this.popper=new Nt(this.element,r,{placement:u,modifiers:{offset:{offset:this.options.offset},flip:{behavior:this.options.fallbackPlacement},arrow:{element:n.SELECTOR.arrow},preventOverflow:{boundariesElement:this.options.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t.handlePopperPlacementChange(e)},onUpdate:function(e){return t.handlePopperPlacementChange(e)}}),r.classList.add(n.CLASS_NAME.show),"ontouchstart"in document.documentElement&&Ft.makeArray(document.body.children).forEach((function(t){N.on(t,"mouseover")}));var f=function(){t.options.animation&&t.fixTransition();var e=t.hoverState;t.hoverState=null,N.trigger(t.element,n.EVENT.shown),e===n.HOVER_STATE.out&&t.leave(null,t)};if(this.tip.classList.contains(n.CLASS_NAME.fade)){var c=Ft.getTransitionDurationFromElement(this.tip);N.one(this.tip,Ft.TRANSITION_END,f),Ft.emulateTransitionEnd(this.tip,c)}else f()}},n.prototype.hide=function(t){var e=this,o=this.getTipElement(),i=function(){e.hoverState!==n.HOVER_STATE.show&&o.parentNode&&o.parentNode.removeChild(o),e.cleanTipClass(),e.element.removeAttribute("aria-describedby"),N.trigger(e.element,n.EVENT.hidden),null!==e.popper&&e.popper.destroy(),t&&t()};if(!N.trigger(this.element,n.EVENT.hide).defaultPrevented){if(o.classList.remove(n.CLASS_NAME.show),"ontouchstart"in document.documentElement&&Ft.makeArray(document.body.children).forEach((function(t){return N.off(t,"mouseover")})),this.activeTrigger[n.TRIGGER.click]=!1,this.activeTrigger[n.TRIGGER.focus]=!1,this.activeTrigger[n.TRIGGER.hover]=!1,this.tip.classList.contains(n.CLASS_NAME.fade)){var r=Ft.getTransitionDurationFromElement(o);N.one(o,Ft.TRANSITION_END,i),Ft.emulateTransitionEnd(o,r)}else i();this.hoverState=""}},n.prototype.update=function(){null!==this.popper&&this.popper.scheduleUpdate()},n.prototype.isWithContent=function(){return Boolean(this.getTitle())},n.prototype.addAttachmentClass=function(t){this.getTipElement().classList.add(n.CLASS_NAME.default+"--"+t)},n.prototype.getTipElement=function(){if(this.tip)return this.tip;var t=document.createElement("div");return t.innerHTML=this.options.template,this.tip=t.children[0],this.tip},n.prototype.setContent=function(){var t=this.getTipElement();this.setElementContent(t.querySelector(n.SELECTOR.inner),this.getTitle()),t.classList.remove(n.CLASS_NAME.fade),t.classList.remove(n.CLASS_NAME.show)},n.prototype.setElementContent=function(t,e){if(null!==t){var n=this.options.html;"object"==typeof e&&e.nodeType?n?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.innerText=e.textContent:t[n?"innerHTML":"innerText"]=e}},n.prototype.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.options.title?this.options.title.call(this.element):this.options.title),t},n.prototype.getContainer=function(){return!1===this.options.container?document.body:Ft.isElement(this.options.container)?this.options.container:document.querySelector(this.options.container)},n.prototype.setListeners=function(){var t=this;this.options.trigger.split(" ").forEach((function(e){if("click"===e)N.on(t.element,n.EVENT.click,t.options.selector,(function(e){return t.toggle(e)}));else if(e!==n.TRIGGER.manual){var o=e===n.TRIGGER.hover?n.EVENT.mouseenter:n.EVENT.focusin,i=e===n.TRIGGER.hover?n.EVENT.mouseleave:n.EVENT.focusout;N.on(t.element,o,t.options.selector,(function(e){return t.enter(e)})),N.on(t.element,i,t.options.selector,(function(e){return t.leave(e)}))}})),N.on(this.element.closest(".modal"),"hide.nj.modal",(function(){t.element&&t.hide()})),this.options.selector?this.options=i(i({},this.options),{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n.prototype.enter=function(t,e){var o=n.DATA_KEY;if((e=e||s.getData(t.delegateTarget,o))||(e=new n(t.delegateTarget,this.getDelegateConfig()),s.setData(t.delegateTarget,o,e)),t){var i="focusin"===t.type?n.TRIGGER.focus:n.TRIGGER.hover;e.activeTrigger[i]=!0}e.getTipElement().classList.contains(n.CLASS_NAME.show)||e.hoverState===n.HOVER_STATE.show?e.hoverState=n.HOVER_STATE.show:(clearTimeout(e.timeout),e.hoverState=n.HOVER_STATE.show,e.options.delay&&e.options.delay.show?e.timeout=setTimeout((function(){e._hoverState===n.HOVER_STATE.show&&e.show()}),e.options.delay.show):e.show())},n.prototype.leave=function(t,e){var o=n.DATA_KEY;if((e=e||s.getData(t.delegateTarget,o))||(e=new n(t.delegateTarget,this.getDelegateConfig()),s.setData(t.delegateTarget,o,e)),t){var i="focusout"===t.type?n.TRIGGER.focus:n.TRIGGER.hover;e.activeTrigger[i]=!1}e.isWithActiveTrigger()||(clearTimeout(e.timeout),e.hoverState=n.HOVER_STATE.out,e.options.delay&&e.options.delay.hide?e.timeout=setTimeout((function(){e.hoverState===n.HOVER_STATE.out&&e.hide()}),e.options.delay.hide):e.hide())},n.prototype.isWithActiveTrigger=function(){for(var t in this.activeTrigger)if(this.activeTrigger[t])return!0;return!1},n.getOptions=function(t,e){return"number"==typeof(e=i(i(i({},n.DEFAULT_OPTIONS),L.getDataAttributes(t)),"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),Ft.typeCheckConfig(n.NAME,e,n.DEFAULT_TYPE),e},n.prototype.getDelegateConfig=function(){var t={};if(this.options)for(var e in this.options)n.DEFAULT_OPTIONS[e]!==this.options[e]&&(t[e]=this.options[e]);return t},n.prototype.cleanTipClass=function(){var t=this.getTipElement(),e=t.getAttribute("class").match(n.NJCLS_PREFIX_REGEX);null!==e&&e.length&&e.map((function(t){return t.trim()})).forEach((function(e){return t.classList.remove(e)}))},n.prototype.handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this.cleanTipClass(),this.addAttachmentClass(n.getAttachment(t.placement))},n.prototype.fixTransition=function(){var t=this.getTipElement(),e=this.options.animation;null===t.getAttribute("x-placement")&&(t.classList.remove(n.CLASS_NAME.fade),this.options.animation=!1,this.hide(),this.show(),this.options.animation=e)},n.getAttachment=function(t){return n.ATTACHMENT_MAP[t.toUpperCase()]},n.getInstance=function(t){return s.getData(t,n.DATA_KEY)},n.init=function(){return console.info("\n [NJ Warning]: Tooltips are opt-in for performance reasons, so you must initialize them yourself.\n Read the doc : https://design.engie.com/design-system/components/tooltip/#example-enable-tooltips-everywhere\n "),[]},n.NAME=Lt+"-tooltip",n.DATA_KEY=Lt+".tooltip",n.EVENT_KEY="."+n.DATA_KEY,n.CLASS_NAME={default:Lt+"-tooltip",inner:Lt+"-tooltip__inner",arrow:Lt+"-tooltip__arrow",withoutArrow:Lt+"-tooltip--without-arrow",fade:"fade",show:"show"},n.NJCLS_PREFIX_REGEX=new RegExp("(^|\\s)"+n.CLASS_NAME.default+"\\S+","g"),n.DEFAULT_TYPE={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",arrow:"boolean"},n.ATTACHMENT_MAP={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},n.DEFAULT_OPTIONS={animation:!0,template:'<div class="'+n.CLASS_NAME.default+'" role="tooltip"><div class="'+n.CLASS_NAME.arrow+'"></div><div class="'+n.CLASS_NAME.inner+'"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",arrow:!0},n.HOVER_STATE={show:"show",out:"out"},n.EVENT={hide:""+Dt+n.EVENT_KEY,hidden:""+_t+n.EVENT_KEY,show:""+xt+n.EVENT_KEY,shown:""+Mt+n.EVENT_KEY,inserted:""+Rt+n.EVENT_KEY,click:""+Ct+n.EVENT_KEY,focusin:""+Pt+n.EVENT_KEY,focusout:""+It+n.EVENT_KEY,mouseenter:""+kt+n.EVENT_KEY,mouseleave:""+Ht+n.EVENT_KEY},n.SELECTOR={default:"."+n.CLASS_NAME.default,inner:"."+n.CLASS_NAME.inner,arrow:"."+n.CLASS_NAME.arrow},n.TRIGGER={hover:"hover",focus:"focus",click:"click",manual:"manual"},n}(r);return function(t){function n(e,o){void 0===o&&(o={});var i=t.call(this,n,e,n.getOptions(e,o))||this;return i.dataId=Number(String(Math.random()).slice(2))+Date.now(),i.dynamicStyles=document.createElement("style"),i.input=i.element.querySelector(n.SELECTOR.input),i.element.setAttribute("data-id",i.dataId.toString()),document.body.appendChild(i.dynamicStyles),i.refreshProgressValue(),i.setListeners(),i.options.tooltip&&(i.addTooltip(),i.setTooltipListeners()),s.setData(e,n.DATA_KEY,i),i}return e(n,t),n.prototype.addTooltip=function(){this.tooltip=L.createHtmlNode(Vt.DEFAULT_OPTIONS.template),this.tooltip.classList.add("nj-tooltip--top"),this.tooltip.classList.add("show"),this.element.insertBefore(this.tooltip,this.element.querySelector(n.SELECTOR.label)),this.refreshTooltipValue()},n.prototype.setListeners=function(){var t=this;N.on(this.element,"input change keyup",(function(){t.refreshProgressValue()}))},n.prototype.setTooltipListeners=function(){var t=this;N.on(this.element,"input change keyup",(function(){t.refreshTooltipValue()}));var e=!1;N.on(document,"resize",(function(){e||(t.refreshTooltipValue(),e=!0,setTimeout((function(){e=!1}),100))}))},n.prototype.refreshProgressValue=function(){var t=this,e=parseInt(this.input.max,10)||n.PERCENT_CONV,o=parseInt(this.input.min,10)||0,i=parseInt(this.input.value,10),r=Math.floor(n.PERCENT_CONV*(i-o)/(e-o)),a="";n.PSEUDO_ELEMS.forEach((function(e){a+=n.SELECTOR.default+"[data-id='"+t.dataId+"'] input[type=range]::-"+e+"-track{background-size: "+r+"% 100%} "})),this.dynamicStyles.textContent=a},n.prototype.refreshTooltipValue=function(){this.tooltip.querySelector(Vt.SELECTOR.inner).innerHTML=this.input.value,this.replaceTooltip()},n.prototype.replaceTooltip=function(){var t=""===this.input.min?0:parseInt(this.input.min,10),e=""===this.input.max?100:parseInt(this.input.max,10),o=(parseInt(this.input.value,10)-t)/(e-t);this.tooltip.style.left=o*(this.input.offsetWidth-n.THUMB_WIDTH)-this.tooltip.offsetWidth/2+n.THUMB_WIDTH/2+"px"},n.getOptions=function(t,e){return void 0===e&&(e={}),e=i(i(i({},n.DEFAULT_OPTIONS),L.getDataAttributes(t)),"object"==typeof e&&e?e:{}),Ft.typeCheckConfig(n.NAME,e,n.DEFAULT_TYPE),e},n.prototype.dispose=function(){s.removeData(this.element,n.DATA_KEY),this.element=null},n.getInstance=function(t){return s.getData(t,n.DATA_KEY)},n.init=function(e){return void 0===e&&(e={}),t.init.call(this,this,e,n.SELECTOR.default)},n.NAME="nj-slider",n.DATA_KEY=Lt+".slider",n.CLASS_NAME=Lt+"-slider",n.SELECTOR={default:"."+n.CLASS_NAME,input:"input",label:"label"},n.THUMB_WIDTH=16,n.DEFAULT_TYPE={tooltip:"boolean"},n.DEFAULT_OPTIONS={tooltip:!1},n.PERCENT_CONV=100,n.PSEUDO_ELEMS=["webkit-slider-runnable","moz-range","ms"],n}(r)})); |
{ | ||
"name": "@engie-group/fluid-design-system", | ||
"version": "3.0.0-alpha.1", | ||
"description": "ENGIE Fluid is open-source design system to create, build and deliver ENGIE digital services in a more efficient way.", | ||
"version": "3.0.0-alpha.2", | ||
"description": "The Fluid Design System is ENGIE’s open-source library to create, build and deliver ENGIE digital services in a more efficient way.", | ||
"keywords": [ | ||
@@ -44,11 +44,12 @@ "engie", | ||
"build": "npm-run-all build:*", | ||
"build:scripts": "rollup -c config/rollup.config.js", | ||
"build:styles": "gulp scss -f config/gulpfile.js", | ||
"build:assets": "gulp assets", | ||
"build:scripts": "rollup -c", | ||
"build:styles": "gulp scss", | ||
"lint": "npm-run-all lint:*", | ||
"lint:scripts": "eslint src/**/*.ts -c config/.eslintrc.typescript.js", | ||
"lint:styles": "stylelint src/**/*.scss --config config/stylelint.config.js", | ||
"lint:scripts": "eslint src/**/*.ts -c .eslintrc.typescript.js", | ||
"lint:styles": "stylelint src/**/*.scss", | ||
"prepare": "npm run build", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"prettier": "./config/.prettierrc.js", | ||
"prettier": "./.prettierrc.js", | ||
"husky": { | ||
@@ -61,14 +62,14 @@ "hooks": { | ||
"src/**/*.scss": [ | ||
"stylelint src/**/*.scss --config config/stylelint.config.js" | ||
"stylelint src/**/*.scss" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^2.6.0", | ||
"@typescript-eslint/parser": "^2.6.0", | ||
"@typescript-eslint/eslint-plugin": "^2.8.0", | ||
"@typescript-eslint/parser": "^2.8.0", | ||
"babel-eslint": "^10.0.3", | ||
"eslint": "^6.6.0", | ||
"eslint-config-prettier": "^6.5.0", | ||
"eslint-config-prettier": "^6.7.0", | ||
"eslint-plugin-compat": "^3.3.0", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"eslint-plugin-unicorn": "^12.1.0", | ||
"eslint-plugin-unicorn": "^13.0.0", | ||
"gulp": "^4.0.2", | ||
@@ -78,21 +79,20 @@ "gulp-rename": "^1.4.0", | ||
"gulp-sourcemaps": "^2.6.5", | ||
"husky": "^3.0.9", | ||
"lint-staged": "^9.4.2", | ||
"husky": "^3.1.0", | ||
"lint-staged": "^9.4.3", | ||
"npm-run-all": "^4.1.5", | ||
"path": "^0.12.7", | ||
"popper.js": "^1.16.0", | ||
"prettier": "^1.18.2", | ||
"rollup": "^1.26.0", | ||
"prettier": "^1.19.1", | ||
"rollup": "^1.27.4", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-terser": "^5.1.2", | ||
"rollup-plugin-typescript": "^1.0.1", | ||
"sass": "^1.23.1", | ||
"sass": "^1.23.7", | ||
"sass-loader": "^8.0.0", | ||
"stylelint": "^11.1.1", | ||
"stylelint": "^12.0.0", | ||
"stylelint-config-rational-order": "^0.1.2", | ||
"stylelint-config-recommended-scss": "^4.0.0", | ||
"stylelint-no-unsupported-browser-features": "^3.0.2", | ||
"stylelint-config-recommended-scss": "^4.1.0", | ||
"stylelint-no-unsupported-browser-features": "^4.0.0", | ||
"stylelint-order": "^3.1.1", | ||
"stylelint-scss": "^3.11.1", | ||
"stylelint-webpack-plugin": "^1.0.2", | ||
"stylelint-scss": "^3.13.0", | ||
"ts-loader": "^6.2.1", | ||
@@ -104,3 +104,3 @@ "typescript": "^3.7.2" | ||
}, | ||
"gitHead": "2474093447e4c5eb40c584d63b4bac08632a6393" | ||
"gitHead": "d90cc646cabc58aab97df884400931da627bb47c" | ||
} |
@@ -11,3 +11,3 @@ /** | ||
import Manipulator from '../../globals/ts/manipulator'; | ||
import Utils from '../../globals/ts/utils'; | ||
import Util from '../../globals/ts/util'; | ||
@@ -67,3 +67,3 @@ export default class Collapse extends AbstractComponent { | ||
this.isTransitioning = false; | ||
this.triggerArray = Utils.makeArray( | ||
this.triggerArray = Util.makeArray( | ||
document.querySelectorAll( | ||
@@ -75,9 +75,9 @@ `${Collapse.SELECTOR.dataToggle}[href="#${element.id}"],` + | ||
const toggleList = Utils.makeArray(document.querySelectorAll(Collapse.SELECTOR.dataToggle)); | ||
const toggleList = Util.makeArray(document.querySelectorAll(Collapse.SELECTOR.dataToggle)); | ||
for (let i = 0, len = toggleList.length; i < len; i++) { | ||
const elem = toggleList[i]; | ||
const selector = Utils.getSelectorFromElement(elem); | ||
const selector = Util.getSelectorFromElement(elem); | ||
const filterElement = Utils.makeArray(document.querySelectorAll(selector)).filter( | ||
const filterElement = Util.makeArray(document.querySelectorAll(selector)).filter( | ||
foundElem => foundElem === element | ||
@@ -126,3 +126,3 @@ ); | ||
if (this.parent) { | ||
actives = Utils.makeArray(this.parent.querySelectorAll(Collapse.SELECTOR.actives)).filter(elem => { | ||
actives = Util.makeArray(this.parent.querySelectorAll(Collapse.SELECTOR.actives)).filter(elem => { | ||
if (typeof this.options.parent === 'string') { | ||
@@ -197,7 +197,7 @@ return elem.getAttribute('data-parent') === this.options.parent; | ||
const scrollSize = `scroll${capitalizedDimension}`; | ||
const transitionDuration = Utils.getTransitionDurationFromElement(this.element); | ||
const transitionDuration = Util.getTransitionDurationFromElement(this.element); | ||
EventHandler.one(this.element, Utils.TRANSITION_END, complete); | ||
EventHandler.one(this.element, Util.TRANSITION_END, complete); | ||
Utils.emulateTransitionEnd(this.element, transitionDuration); | ||
Util.emulateTransitionEnd(this.element, transitionDuration); | ||
this.element.style[dimension] = `${this.element[scrollSize]}px`; | ||
@@ -220,3 +220,3 @@ } | ||
Utils.reflow(this.element); | ||
Util.reflow(this.element); | ||
@@ -231,3 +231,3 @@ this.element.classList.add(Collapse.CLASS_NAME.collapsing); | ||
const trigger = this.triggerArray[i]; | ||
const selector = Utils.getSelectorFromElement(trigger); | ||
const selector = Util.getSelectorFromElement(trigger); | ||
@@ -255,6 +255,6 @@ if (selector !== null) { | ||
this.element.style[dimension] = ''; | ||
const transitionDuration = Utils.getTransitionDurationFromElement(this.element); | ||
const transitionDuration = Util.getTransitionDurationFromElement(this.element); | ||
EventHandler.one(this.element, Utils.TRANSITION_END, complete); | ||
Utils.emulateTransitionEnd(this.element, transitionDuration); | ||
EventHandler.one(this.element, Util.TRANSITION_END, complete); | ||
Util.emulateTransitionEnd(this.element, transitionDuration); | ||
} | ||
@@ -284,3 +284,3 @@ | ||
if (Utils.isElement(this.options.parent)) { | ||
if (Util.isElement(this.options.parent)) { | ||
parent = this.options.parent; | ||
@@ -293,3 +293,3 @@ } else if (this.options.parent) { | ||
Utils.makeArray(parent.querySelectorAll(selector)).forEach(element => { | ||
Util.makeArray(parent.querySelectorAll(selector)).forEach(element => { | ||
this.addAriaAndCollapsedClass(Collapse.getTargetFromElement(element), [element]); | ||
@@ -324,3 +324,3 @@ }); | ||
options.toggle = Boolean(options.toggle); // Coerce string values | ||
Utils.typeCheckConfig(Collapse.NAME, options, Collapse.DEFAULT_TYPE); | ||
Util.typeCheckConfig(Collapse.NAME, options, Collapse.DEFAULT_TYPE); | ||
@@ -331,3 +331,3 @@ return options; | ||
static getTargetFromElement(element): Element | null { | ||
const selector = Utils.getSelectorFromElement(element); | ||
const selector = Util.getSelectorFromElement(element); | ||
@@ -382,4 +382,4 @@ return selector ? document.querySelector(selector) : null; | ||
const triggerData = Manipulator.getDataAttributes(this); | ||
const selector = Utils.getSelectorFromElement(this); | ||
const selectorElements = Utils.makeArray(document.querySelectorAll(selector)); | ||
const selector = Util.getSelectorFromElement(this); | ||
const selectorElements = Util.makeArray(document.querySelectorAll(selector)); | ||
@@ -386,0 +386,0 @@ selectorElements.forEach(element => { |
@@ -5,3 +5,3 @@ import { coreConfig, eventsName } from '../../globals/ts/config'; | ||
import EventHandler from '../../globals/ts/event-handler'; | ||
import Utils from '../../globals/ts/utils'; | ||
import Util from '../../globals/ts/util'; | ||
@@ -128,3 +128,3 @@ export default class Modal extends AbstractComponent { | ||
if (animate) { | ||
Utils.reflow(this.backdrop); | ||
Util.reflow(this.backdrop); | ||
} | ||
@@ -143,6 +143,6 @@ | ||
const backdropTransitionDuration = Utils.getTransitionDurationFromElement(this.backdrop); | ||
const backdropTransitionDuration = Util.getTransitionDurationFromElement(this.backdrop); | ||
EventHandler.one(this.backdrop, Utils.TRANSITION_END, callback); | ||
Utils.emulateTransitionEnd(this.backdrop, backdropTransitionDuration); | ||
EventHandler.one(this.backdrop, Util.TRANSITION_END, callback); | ||
Util.emulateTransitionEnd(this.backdrop, backdropTransitionDuration); | ||
} else if (!this.isShown && this.backdrop) { | ||
@@ -159,6 +159,6 @@ this.backdrop.classList.remove(Modal.CLASSNAME.show); | ||
if (this.element.classList.contains(Modal.CLASSNAME.fade)) { | ||
const backdropTransitionDuration = Utils.getTransitionDurationFromElement(this.backdrop); | ||
const backdropTransitionDuration = Util.getTransitionDurationFromElement(this.backdrop); | ||
EventHandler.one(this.backdrop, Utils.TRANSITION_END, callbackRemove); | ||
Utils.emulateTransitionEnd(this.backdrop, backdropTransitionDuration); | ||
EventHandler.one(this.backdrop, Util.TRANSITION_END, callbackRemove); | ||
Util.emulateTransitionEnd(this.backdrop, backdropTransitionDuration); | ||
} else { | ||
@@ -187,3 +187,3 @@ callbackRemove(); | ||
if (transition) { | ||
Utils.reflow(this.element); | ||
Util.reflow(this.element); | ||
} | ||
@@ -201,6 +201,6 @@ | ||
if (transition) { | ||
const transitionDuration = Utils.getTransitionDurationFromElement(this.dialog); | ||
const transitionDuration = Util.getTransitionDurationFromElement(this.dialog); | ||
EventHandler.one(this.dialog, Utils.TRANSITION_END, transitionComplete); | ||
Utils.emulateTransitionEnd(this.dialog, transitionDuration); | ||
EventHandler.one(this.dialog, Util.TRANSITION_END, transitionComplete); | ||
Util.emulateTransitionEnd(this.dialog, transitionDuration); | ||
} else { | ||
@@ -255,6 +255,6 @@ transitionComplete(); | ||
if (transition) { | ||
const transitionDuration = Utils.getTransitionDurationFromElement(this.element); | ||
const transitionDuration = Util.getTransitionDurationFromElement(this.element); | ||
EventHandler.one(this.element, Utils.TRANSITION_END, () => this.hideModal()); | ||
Utils.emulateTransitionEnd(this.element, transitionDuration); | ||
EventHandler.one(this.element, Util.TRANSITION_END, () => this.hideModal()); | ||
Util.emulateTransitionEnd(this.element, transitionDuration); | ||
} else { | ||
@@ -307,3 +307,3 @@ this.hideModal(); | ||
let target; | ||
const selector = Utils.getSelectorFromElement(event.target); | ||
const selector = Util.getSelectorFromElement(event.target); | ||
@@ -310,0 +310,0 @@ if (selector) { |
@@ -13,3 +13,3 @@ /** | ||
import Manipulator from '../../globals/ts/manipulator'; | ||
import Util from '../../globals/ts/utils'; | ||
import Util from '../../globals/ts/util'; | ||
@@ -16,0 +16,0 @@ export default class Tooltip extends AbstractComponent { |
@@ -9,2 +9,3 @@ import Alert from './components/alert'; | ||
import Select from './components/select'; | ||
import Slider from './components/slider'; | ||
import Tag from './components/tag'; | ||
@@ -28,2 +29,3 @@ import Toggle from './components/toggle'; | ||
Select, | ||
Slider, | ||
Tag, | ||
@@ -30,0 +32,0 @@ Toggle, |
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
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 too big to display
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
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
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2934065
32
223
10265
3