@engie-group/fluid-design-system
Advanced tools
Comparing version 5.16.1 to 6.0.0-next.0
@@ -1,1 +0,1 @@ | ||
const e=window.NJ&&window.NJ.config||null,t={".nj-alert":"Alert",".nj-checkbox":"Checkbox",".nj-collapse":"Collapse",".nj-dropdown":"Dropdown",".nj-fab-menu":"Fab",".nj-form-autocomplete":"Form",".nj-form-input-password":"Form",".nj-search":"Search","input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]).nj-form-control":"Form","textarea.nj-form-control":"Form",".nj-header":"Header",".nj-modal":"Modal",".nj-navbar":"Navbar",".nj-radio > label > input[type=radio]":"Radio","select.nj-form-control":"Select",".nj-sidebar":"Sidebar",".nj-slider":"Slider",".nj-tab":"Tab",".nj-tag":"Tag",".nj-accordion":"Accordion"},o=Object.values(t),n=Object.keys(t),r=n.toString(),i=(()=>{if("undefined"!=typeof window){function t(e=null){if(window.NJ)e?window.NJ[e].init():window.NJ.AutoInit();else if(e)window[e].init();else{const e=o.length;let t=0;for(;t<e;t++)window[o[t]]&&window[o[t]].init()}}function i(e){const t=[];for(const o of e){o&&o.key&&t.push(o)}return!!t.length&&t}function s(e,t){const r={};if("childList"===e[t].type&&e[t].addedNodes.length)for(let s=0;s<e[t].addedNodes.length;s++){const l=e[t].addedNodes[s];if(l){const e=[],t=(t,o)=>{l.classList&&l.classList.contains(t.substring(1))?e[o]=l:l.querySelector&&l.querySelector(`${t}`)&&(e[o]=l.querySelector(`${t}`))};n.forEach(t);let s=-1;switch(l.tagName){case"INPUT":s=8;break;case"SELECT":s=14;break;case"CHECKBOX":s=9}if(-1!==s&&(e[s]=l),e.length>0){const t=i(e);(!t||t.length<e.length)&&e.forEach(((e,t)=>{e&&(r[o[t]]=o[t])}))}}}return r}function l(e,t){if("childList"===e[t].type&&e[t].removedNodes.length)for(let o=0;o<e[t].removedNodes.length;o++){const s=e[t].removedNodes[o];if(s){const e=s.querySelectorAll?[...s.querySelectorAll(r)]:[];n.forEach((t=>{s.classList&&s.classList.contains(t.substring(1))&&e.push(s)})),"INPUT"!==s.tagName&&"SELECT"!==s.tagName&&"CHECKBOX"!==s.tagName||e.push(s);const t=s.querySelectorAll?[...s.querySelectorAll('[data-toggle="tooltip"]')]:[];if(s.getAttribute&&"tooltip"===s.getAttribute("data-toggle")&&t.push(s),t.length>0&&e.push(...t),e.length>0){const t=i(e);if(t){const e=e=>{const t=e;window.NJStore[t.key.id].dispose()};t.forEach(e)}}}}}function c(){let o=document.getElementById("root")||document.body;e&&e.rootElementId&&(o=document.getElementById(e.rootElementId)||o);const n=o;if(n){const e={attributes:!1,childList:!0,subtree:!0};new MutationObserver((e=>{for(let o=0,n=e.length;o<n;o++){l(e,o);const n=s(e,o);for(const e in n)t(n[e])}})).observe(n,e)}}const d=()=>{t(),c()};return document.addEventListener("DOMContentLoaded",d),!0}return!1})();export{i as default}; | ||
const e=window.NJ&&window.NJ.config||null,t={".nj-alert":"Alert",".nj-checkbox":"Checkbox",".nj-collapse":"Collapse",".nj-dropdown":"Dropdown",".nj-fab-menu":"Fab",".nj-form-autocomplete":"Form",".nj-form-input-password":"Form",".nj-search":"Search","input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]).nj-form-control":"Form","textarea.nj-form-control":"Form",".nj-header":"Header",".nj-modal":"Modal",".nj-navbar":"Navbar",".nj-radio > label > input[type=radio]":"Radio","select.nj-form-control":"Select",".nj-sidebar":"Sidebar",".nj-slider":"Slider",".nj-tab":"Tab",".nj-tag":"Tag",".nj-accordion":"Accordion"},o=Object.values(t),n=Object.keys(t),r=n.toString(),i=(()=>{if("undefined"!=typeof window){function init(e=null){if(window.NJ)e?window.NJ[e].init():window.NJ.AutoInit();else if(e)window[e].init();else{const e=o.length;let t=0;for(;t<e;t++)window[o[t]]&&window[o[t]].init()}}function hasKey(e){const t=[];for(const o of e){o&&o.key&&t.push(o)}return!!t.length&&t}function onAddedNode(e,t){const r={};if("childList"===e[t].type&&e[t].addedNodes.length)for(let i=0;i<e[t].addedNodes.length;i++){const d=e[t].addedNodes[i];if(d){const e=[],getComponents=(t,o)=>{d.classList&&d.classList.contains(t.substring(1))?e[o]=d:d.querySelector&&d.querySelector(`${t}`)&&(e[o]=d.querySelector(`${t}`))};n.forEach(getComponents);let t=-1;switch(d.tagName){case"INPUT":t=8;break;case"SELECT":t=14;break;case"CHECKBOX":t=9}if(-1!==t&&(e[t]=d),e.length>0){const t=hasKey(e);(!t||t.length<e.length)&&e.forEach(((e,t)=>{e&&(r[o[t]]=o[t])}))}}}return r}function onRemovedNode(e,t){if("childList"===e[t].type&&e[t].removedNodes.length)for(let o=0;o<e[t].removedNodes.length;o++){const i=e[t].removedNodes[o];if(i){const e=i.querySelectorAll?[...i.querySelectorAll(r)]:[];n.forEach((t=>{i.classList&&i.classList.contains(t.substring(1))&&e.push(i)})),"INPUT"!==i.tagName&&"SELECT"!==i.tagName&&"CHECKBOX"!==i.tagName||e.push(i);const t=i.querySelectorAll?[...i.querySelectorAll('[data-toggle="tooltip"]')]:[];if(i.getAttribute&&"tooltip"===i.getAttribute("data-toggle")&&t.push(i),t.length>0&&e.push(...t),e.length>0){const t=hasKey(e);if(t){const destroyComponents=e=>{const t=e;window.NJStore[t.key.id].dispose()};t.forEach(destroyComponents)}}}}}function initObserver(){let t=document.getElementById("root")||document.body;e&&e.rootElementId&&(t=document.getElementById(e.rootElementId)||t);const o=t;if(o){const e={attributes:!1,childList:!0,subtree:!0};new MutationObserver((e=>{for(let t=0,o=e.length;t<o;t++){onRemovedNode(e,t);const o=onAddedNode(e,t);for(const e in o)init(o[e])}})).observe(o,e)}}const onDomLoaded=()=>{init(),initObserver()};return document.addEventListener("DOMContentLoaded",onDomLoaded),!0}return!1})();export{i as default}; |
{ | ||
"name": "@engie-group/fluid-design-system", | ||
"version": "5.16.1", | ||
"version": "6.0.0-next.0", | ||
"description": "The Fluid Design System is ENGIE’s open-source library to create, build and deliver ENGIE digital services in a more efficient way.", | ||
@@ -116,4 +116,4 @@ "type": "module", | ||
"vitest": "^2.0.5", | ||
"fluid-styles": "0.0.0", | ||
"@engie-group/fluid-design-tokens": "5.9.0" | ||
"@engie-group/fluid-design-tokens": "5.9.0", | ||
"fluid-styles": "0.0.0" | ||
}, | ||
@@ -120,0 +120,0 @@ "scripts": { |
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 too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1496613
14499
1