1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
Files
netbox-community-netbox/netbox/project-static/dist/netbox.js

36 lines
446 KiB
JavaScript
Raw Normal View History

Closes #12128: Refresh the web UI to employ the Tabler CSS framework (#14833) * Remove dark mode styling * Condense & rename light mode stylesheet * Upgrade to Bootstrap 5.3.2 * Swap out Bootstrap for Tabler; remove custom styling * Update base page layout for Tabler * Update login page * Bump node to v18 * Update button styles * Update object list view * Tweak navbar size * Clean up dashboard widgets * Ditch separate stylesheet for print media * Remove simplebar * Remove obsolete sidebar styling * Clean up object view template * Clean up object edit template * Standardize primary button sizing * Clean up object list styling * Add buttons for add & import to navigation menu * Fix global search bar * Fix slim-select form widget styling * Fix toast styling * Set base fonts * Clean up paginator styling * Clean up navigation menu group headings * Clean up footer links * Clean up card styles * Move SVG styles to a designated directory * Restructure SCSS files * Remove obsolete/redundant dependencies * Fix icon spacing * Update background color classes * Tweak banner & footer styling and spacing * Fix badge background colors in table content * Bump @types/bootstrap to 5.2.10 * Clean up form layouts * Fix object selector button style * Fix icon padding inside small buttons * Fix icon & badge spacing inside buttons and tabs * Hide paginator for empty pages * Fix hover color for list items (Tabler bug #1694) * Fix width of checkbox column in empty tables * Clean up bulk edit template * Fix border color of reslug button * Package & serve Google fonts locally * Fix tab styling * Reduce vetical space at top of dashboard * Remove obsolete content-wrapper template block * Fix icon spacing in dropdown menu items * Fix color label sizing * Separate bulk delete form & object list into tabs * Fix styling of filter group headings * Fix styling for object changelog & journal views * Standardize ordering & styling of action buttons * Fix designation of active menu item * Automatically expand menu section containing the active link * Clean up nav menu styling * Remove button colors; hide buttons except on hover/active * Highlight menu group containing the active item * Update & standardize alert styling * Refactor base templates to ensure consistent display of header content * Tweak styling for links inside badges * Clean up top menu * Fix JSON/YAML toggles for config context data * Fix object template header * Constrain tabs to container-xl; tweak header margins * Fix object identifier styling * Fix positioning of card header buttons * Remove padding from HTMX tables inside cards * Ensure consistent use of row headings in attribute tables * Remove padding surrounding tables inside cards * Remove obsolete CSS classes * Misc cleanup of old styling * Refactor 'controls' template block; ditch old classes * Fix login button sizing * Limit object edit form width * Append asterisk to required form field labels * Remove obsolete styling * Remove obsolete styling * Fix position of progress bar outside label * Fix alignment of delete button in report/script lists * Fix <pre> styling * Clean up page headers * Replace SVG icons with Material Design icons * Restore dark mode togle functionality * Fix top navbar background color under dark mode * Rebuild static assets
2024-01-17 16:25:42 -05:00
(()=>{var hh=Object.create;var co=Object.defineProperty,ph=Object.defineProperties,mh=Object.getOwnPropertyDescriptor,gh=Object.getOwnPropertyDescriptors,vh=Object.getOwnPropertyNames,yc=Object.getOwnPropertySymbols,bh=Object.getPrototypeOf,Ec=Object.prototype.hasOwnProperty,yh=Object.prototype.propertyIsEnumerable;var il=(ii,ti,ei)=>ti in ii?co(ii,ti,{enumerable:!0,configurable:!0,writable:!0,value:ei}):ii[ti]=ei,Rr=(ii,ti)=>{for(var ei in ti||(ti={}))Ec.call(ti,ei)&&il(ii,ei,ti[ei]);if(yc)for(var ei of yc(ti))yh.call(ti,ei)&&il(ii,ei,ti[ei]);return ii},Ko=(ii,ti)=>ph(ii,gh(ti)),_c=ii=>co(ii,"__esModule",{value:!0});var _r=(ii,ti)=>()=>(ti||ii((ti={exports:{}}).exports,ti),ti.exports),Eh=(ii,ti)=>{_c(ii);for(var ei in ti)co(ii,ei,{get:ti[ei],enumerable:!0})},_h=(ii,ti,ei)=>{if(ti&&typeof ti=="object"||typeof ti=="function")for(let ri of vh(ti))!Ec.call(ii,ri)&&ri!=="default"&&co(ii,ri,{get:()=>ti[ri],enumerable:!(ei=mh(ti,ri))||ei.enumerable});return ii},uo=ii=>_h(_c(co(ii!=null?hh(bh(ii)):{},"default",ii&&ii.__esModule&&"default"in ii?{get:()=>ii.default,enumerable:!0}:{value:ii,enumerable:!0})),ii);var zi=(ii,ti,ei)=>(il(ii,typeof ti!="symbol"?ti+"":ti,ei),ei);var jr=(ii,ti,ei)=>new Promise((ri,ni)=>{var si=li=>{try{ai(ei.next(li))}catch(ci){ni(ci)}},oi=li=>{try{ai(ei.throw(li))}catch(ci){ni(ci)}},ai=li=>li.done?ri(li.value):Promise.resolve(li.value).then(si,oi);ai((ei=ei.apply(ii,ti)).next())});var Uu=_r((exports,module)=>{(function(ii,ti){typeof define=="function"&&define.amd?define([],ti):ii.htmx=ii.htmx||ti()})(typeof self!="undefined"?self:exports,function(){return function(){"use strict";var U={onLoad:t,process:vt,on:X,off:F,trigger:$,ajax:nr,find:R,findAll:O,closest:N,values:function(ii,ti){var ei=Pt(ii,ti||"post");return ei.values},remove:q,addClass:L,removeClass:T,toggleClass:A,takeClass:H,defineExtension:fr,removeExtension:cr,logAll:C,logger:null,config:{historyEnabled:!0,historyCacheSize:10,refreshOnHistoryMiss:!1,defaultSwapStyle:"innerHTML",defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:!0,indicatorClass:"htmx-indicator",requestClass:"htmx-request",addedClass:"htmx-added",settlingClass:"htmx-settling",swappingClass:"htmx-swapping",allowEval:!0,inlineScriptNonce:"",attributesToSettle:["class","style","width","height"],withCredentials:!1,timeout:0,wsReconnectDelay:"full-jitter",disableSelector:"[hx-disable], [data-hx-disable]",useTemplateFragments:!1,scrollBehavior:"smooth",defaultFocusScroll:!1},parseInterval:v,_:e,createEventSource:function(ii){return new EventSource(ii,{withCredentials:!0})},createWebSocket:function(ii){return new WebSocket(ii,[])},version:"1.8.0"},r={addTriggerHandler:st,bodyContains:K,canAccessLocalStorage:E,filterValues:Ut,hasAttribute:o,getAttributeValue:V,getClosestMatch:h,getExpressionVars:Qt,getHeaders:Bt,getInputValues:Pt,getInternalData:W,getSwapSpecification:_t,getTriggerSpecs:Me,getTarget:re,makeFragment:g,mergeObjects:Y,makeSettleInfo:Gt,oobSwap:ae,selectAndSwap:Ee,settleImmediately:Lt,shouldCancel:je,triggerEvent:$,triggerErrorEvent:J,withExtensions:xt},n=["get","post","put","delete","patch"],i=n.map(function(ii){return"[hx-"+ii+"], [data-hx-"+ii+"]"}).join(", ");function v(ii){if(ii!=null)return ii.slice(-2)=="ms"?parseFloat(ii.slice(0,-2))||void 0:ii.slice(-1)=="s"?parseFloat(ii.slice(0,-1))*1e3||void 0:ii.slice(-1)=="m"?parseFloat(ii.slice(0,-1))*1e3*60||void 0:parseFloat(ii)||void 0}function f(ii,ti){return ii.getAttribute&&ii.getAttribute(ti)}function o(ii,ti){return ii.hasAttribute&&(ii.hasAttribute(ti)||ii.hasAttribute("data-"+ti))}function V(ii,ti){return f(ii,ti)||f(ii,"data-"+ti)}function u(ii){return ii.parentElement}function _(){return document}function h(ii,ti){for(;ii&&!ti(ii);)ii=u(ii);return ii||null}function a(ii,ti,ei){var ri=V(ti,ei),ni=V(ti,"hx-disinherit");return ii!==ti&&ni&&(ni==="*"||ni.split(" ").indexOf(ei)>=0)?"unset":ri}function z(ii,ti){var ei=null;if(h(ii,function(ri){return ei=a(ii,ri,ti)}),ei!=="unset")return ei}function d(ii,ti){var ei=ii.matches||ii.matchesSelector||ii.msMatchesSelector||ii.mozMatchesSelector||ii.webkitMatc
`,"&Nfr;":"\u{1D511}","&NoBreak;":"\u2060","&NonBreakingSpace;":"\xA0","&Nopf;":"\u2115","&Not;":"\u2AEC","&NotCongruent;":"\u2262","&NotCupCap;":"\u226D","&NotDoubleVerticalBar;":"\u2226","&NotElement;":"\u2209","&NotEqual;":"\u2260","&NotEqualTilde;":"\u2242\u0338","&NotExists;":"\u2204","&NotGreater;":"\u226F","&NotGreaterEqual;":"\u2271","&NotGreaterFullEqual;":"\u2267\u0338","&NotGreaterGreater;":"\u226B\u0338","&NotGreaterLess;":"\u2279","&NotGreaterSlantEqual;":"\u2A7E\u0338","&NotGreaterTilde;":"\u2275","&NotHumpDownHump;":"\u224E\u0338","&NotHumpEqual;":"\u224F\u0338","&NotLeftTriangle;":"\u22EA","&NotLeftTriangleBar;":"\u29CF\u0338","&NotLeftTriangleEqual;":"\u22EC","&NotLess;":"\u226E","&NotLessEqual;":"\u2270","&NotLessGreater;":"\u2278","&NotLessLess;":"\u226A\u0338","&NotLessSlantEqual;":"\u2A7D\u0338","&NotLessTilde;":"\u2274","&NotNestedGreaterGreater;":"\u2AA2\u0338","&NotNestedLessLess;":"\u2AA1\u0338","&NotPrecedes;":"\u2280","&NotPrecedesEqual;":"\u2AAF\u0338","&NotPrecedesSlantEqual;":"\u22E0","&NotReverseElement;":"\u220C","&NotRightTriangle;":"\u22EB","&NotRightTriangleBar;":"\u29D0\u0338","&NotRightTriangleEqual;":"\u22ED","&NotSquareSubset;":"\u228F\u0338","&NotSquareSubsetEqual;":"\u22E2","&NotSquareSuperset;":"\u2290\u0338","&NotSquareSupersetEqual;":"\u22E3","&NotSubset;":"\u2282\u20D2","&NotSubsetEqual;":"\u2288","&NotSucceeds;":"\u2281","&NotSucceedsEqual;":"\u2AB0\u0338","&NotSucceedsSlantEqual;":"\u22E1","&NotSucceedsTilde;":"\u227F\u0338","&NotSuperset;":"\u2283\u20D2","&NotSupersetEqual;":"\u2289","&NotTilde;":"\u2241","&NotTildeEqual;":"\u2244","&NotTildeFullEqual;":"\u2247","&NotTildeTilde;":"\u2249","&NotVerticalBar;":"\u2224","&Nscr;":"\u{1D4A9}","&Ntilde":"\xD1","&Ntilde;":"\xD1","&Nu;":"\u039D","&OElig;":"\u0152","&Oacute":"\xD3","&Oacute;":"\xD3","&Ocirc":"\xD4","&Ocirc;":"\xD4","&Ocy;":"\u041E","&Odblac;":"\u0150","&Ofr;":"\u{1D512}","&Ograve":"\xD2","&Ograve;":"\xD2","&Omacr;":"\u014C","&Omega;":"\u03A9","&Omicron;":"\u039F","&Oopf;":"\u{1D546}","&OpenCurlyDoubleQuote;":"\u201C","&OpenCurlyQuote;":"\u2018","&Or;":"\u2A54","&Oscr;":"\u{1D4AA}","&Oslash":"\xD8","&Oslash;":"\xD8","&Otilde":"\xD5","&Otilde;":"\xD5","&Otimes;":"\u2A37","&Ouml":"\xD6","&Ouml;":"\xD6","&OverBar;":"\u203E","&OverBrace;":"\u23DE","&OverBracket;":"\u23B4","&OverParenthesis;":"\u23DC","&PartialD;":"\u2202","&Pcy;":"\u041F","&Pfr;":"\u{1D513}","&Phi;":"\u03A6","&Pi;":"\u03A0","&PlusMinus;":"\xB1","&Poincareplane;":"\u210C","&Popf;":"\u2119","&Pr;":"\u2ABB","&Precedes;":"\u227A","&PrecedesEqual;":"\u2AAF","&PrecedesSlantEqual;":"\u227C","&PrecedesTilde;":"\u227E","&Prime;":"\u2033","&Product;":"\u220F","&Proportion;":"\u2237","&Proportional;":"\u221D","&Pscr;":"\u{1D4AB}","&Psi;":"\u03A8","&QUOT":'"',"&QUOT;":'"',"&Qfr;":"\u{1D514}","&Qopf;":"\u211A","&Qscr;":"\u{1D4AC}","&RBarr;":"\u2910","&REG":"\xAE","&REG;":"\xAE","&Racute;":"\u0154","&Rang;":"\u27EB","&Rarr;":"\u21A0","&Rarrtl;":"\u2916","&Rcaron;":"\u0158","&Rcedil;":"\u0156","&Rcy;":"\u0420","&Re;":"\u211C","&ReverseElement;":"\u220B","&ReverseEquilibrium;":"\u21CB","&ReverseUpEquilibrium;":"\u296F","&Rfr;":"\u211C","&Rho;":"\u03A1","&RightAngleBracket;":"\u27E9","&RightArrow;":"\u2192","&RightArrowBar;":"\u21E5","&RightArrowLeftArrow;":"\u21C4","&RightCeiling;":"\u2309","&RightDoubleBracket;":"\u27E7","&RightDownTeeVector;":"\u295D","&RightDownVector;":"\u21C2","&RightDownVectorBar;":"\u2955","&RightFloor;":"\u230B","&RightTee;":"\u22A2","&RightTeeArrow;":"\u21A6","&RightTeeVector;":"\u295B","&RightTriangle;":"\u22B3","&RightTriangleBar;":"\u29D0","&RightTriangleEqual;":"\u22B5","&RightUpDownVector;":"\u294F","&RightUpTeeVector;":"\u295C","&RightUpVector;":"\u21BE","&RightUpVectorBar;":"\u2954","&RightVector;":"\u21C0","&RightVectorBar;":"\u2953","&Rightarrow;":"\u21D2","&Ropf;":"\u211D","&RoundImplies;":"\u2970","&Rrightarrow;":"\u21DB","&Rscr;":"\u211B","&Rsh;":"\u21B1","&RuleDelayed;":"\u29F4","&SHCHcy;":"\u0429","&SHcy;":"\u0428","&SOFTcy;":"\u042C","&Sacute;":"\u015A","&Sc;":"\u2ABC","&Scaron;":"\u0160","&Scedil;":"\u015E","&Scirc;":"\u015C","&
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`:"GridStack.init() no grid element was passed."),null)}static initAll(ti={},ei=".grid-stack"){let ri=[];return Ar.getGridElements(ei).forEach(ni=>{ni.gridstack||(ni.gridstack=new Ar(ni,Ci.Utils.cloneDeep(ti)),delete ti.dragIn,delete ti.dragInOptions),ri.push(ni.gridstack)}),ri.length===0&&console.error('GridStack.initAll() no grid was found with selector "'+ei+`" - element missing or wrong selector ?
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`),ri}static addGrid(ti,ei={}){if(!ti)return null;let ri=ti;if(!ti.classList.contains("grid-stack")){let si=document.implementation.createHTMLDocument("");si.body.innerHTML=`<div class="grid-stack ${ei.class||""}"></div>`,ri=si.body.children[0],ti.appendChild(ri)}return Ar.init(ei,ri)}static registerEngine(ti){Ar.engineClass=ti}get placeholder(){if(!this._placeholder){let ti=document.createElement("div");ti.className="placeholder-content",this.opts.placeholderText&&(ti.innerHTML=this.opts.placeholderText),this._placeholder=document.createElement("div"),this._placeholder.classList.add(this.opts.placeholderClass,sn.gridDefaults.itemClass,this.opts.itemClass),this.placeholder.appendChild(ti)}return this._placeholder}addWidget(ti,ei){function ri(ai){return ai.el!==void 0||ai.x!==void 0||ai.y!==void 0||ai.w!==void 0||ai.h!==void 0||ai.content!==void 0}let ni,si;if(typeof ti=="string"){let ai=document.implementation.createHTMLDocument("");ai.body.innerHTML=ti,ni=ai.body.children[0]}else if(arguments.length===0||arguments.length===1&&ri(ti))if(si=ei=ti,si==null?void 0:si.el)ni=si.el;else if(this.opts.addRemoveCB)ni=this.opts.addRemoveCB(this,ei,!0);else{let ai=(ei==null?void 0:ei.content)||"",li=document.implementation.createHTMLDocument("");li.body.innerHTML=`<div class="grid-stack-item ${this.opts.itemClass||""}"><div class="grid-stack-item-content">${ai}</div></div>`,ni=li.body.children[0]}else ni=ti;if(!ni)return;let oi=this._readAttr(ni);return ei=Ci.Utils.cloneDeep(ei)||{},Ci.Utils.defaults(ei,oi),si=this.engine.prepareNode(ei),this._writeAttr(ni,ei),this._insertNotAppend?this.el.prepend(ni):this.el.appendChild(ni),this._prepareElement(ni,!0,ei),this._updateContainerHeight(),si.subGrid&&this.makeSubGrid(si.el,void 0,void 0,!1),this._prevColumn&&this.opts.column===1&&(this._ignoreLayoutsNodeChange=!0),this._triggerAddEvent(),this._triggerChangeEvent(),delete this._ignoreLayoutsNodeChange,ni}makeSubGrid(ti,ei,ri,ni=!0){var si,oi,ai;let li=ti.gridstackNode;if(li||(li=this.makeWidget(ti).gridstackNode),(si=li.subGrid)===null||si===void 0?void 0:si.el)return li.subGrid;let ci,ui=this;for(;ui&&!ci;)ci=(oi=ui.opts)===null||oi===void 0?void 0:oi.subGrid,ui=(ai=ui.parentGridItem)===null||ai===void 0?void 0:ai.grid;ei=Ci.Utils.cloneDeep(Object.assign(Object.assign(Object.assign({},ci||{}),{children:void 0}),ei||li.subGrid)),li.subGrid=ei;let fi;ei.column==="auto"&&(fi=!0,ei.column=Math.max(li.w||1,(ri==null?void 0:ri.w)||1),ei.disableOneColumnMode=!0);let di=li.el.querySelector(".grid-stack-item-content"),hi,gi;if(ni){this._removeDD(li.el);let yi=document.implementation.createHTMLDocument("");yi.body.innerHTML='<div class="grid-stack-item"></div>',hi=yi.body.children[0],hi.appendChild(di),gi=Object.assign(Object.assign({},li),{x:0,y:0}),Ci.Utils.removeInternalForSave(gi),delete gi.subGrid,li.content&&(gi.content=li.content,delete li.content),yi.body.innerHTML='<div class="grid-stack-item-content"></div>',di=yi.body.children[0],li.el.appendChild(di),this._prepareDragDropByNode(li)}if(ri){let yi=fi?ei.column:li.w,xi=li.h+ri.h,Si=li.el.style;Si.transition="none",this.update(li.el,{w:yi,h:xi}),setTimeout(()=>Si.transition=null)}let vi=li.subGrid=Ar.addGrid(di,ei);return(ri==null?void 0:ri._moving)&&(vi._isTemp=!0),fi&&(vi._autoColumn=!0),ni&&vi.addWidget(hi,gi),ri&&(ri._moving?window.setTimeout(()=>Ci.Utils.simulateMouseEvent(ri._event,"mouseenter",vi.el),0):vi.addWidget(li.el,li)),vi}removeAsSubGrid(ti){var ei;let ri=(ei=this.parentGridItem)===null||ei===void 0?void 0:ei.grid;!ri||(ri.batchUpdate(),ri.removeWidget(this.parentGridItem.el,!0,!0),this.engine.nodes.forEach(ni=>{ni.x+=this.parentGridItem.x,ni.y+=this.parentGridItem.y,ri.addWidget(ni.el,ni)}),ri.batchUpdate(!1),delete this.parentGridItem,ti&&window.setTimeout(()=>Ci.Utils.simulateMouseEvent(ti._event,"mouseenter",ri.el),0))}save(ti=!0,ei=!1){let ri=this.engine.save(ti);if(ri.forEach(ni=>{var si;if(ti&&ni.el&&!ni.subGrid){let oi=ni.el.querySelector(".grid-stack-item-content");n
`)}:!oi.ok&&"detail"in li?{error:li.detail}:li})}function zs(ii,ti){return jr(this,null,function*(){return yield zu(ii,"PATCH",ti)})}function ab(ii){return jr(this,null,function*(){return yield zu(ii,"GET")})}function Wu(ii){return jr(this,null,function*(){return yield ab(ii)})}function*Ti(...ii){for(let ti of ii)for(let ei of document.querySelectorAll(ti))ei!==null&&(yield ei)}function Oo(ii){return document.getElementById(ii)}function Gu(ii,ti=0){let ei=ti,ri=document.getElementById("content-title");ri!==null&&(ei+=ri.getBoundingClientRect().bottom);let ni=ii.getBoundingClientRect().top+window.pageYOffset+ei;window.scrollTo({top:ni,behavior:"smooth"})}function Yu(ii,ti="select"){let ei=[];for(let ri of ii.querySelectorAll(ti))if(ri!==null){let ni={name:ri.name,options:[]};for(let si of ri.options)si.selected&&ni.options.push(si.value);ei=[...ei,ni]}return ei}function Ul(ii,ti){ii!==null&&(typeof ti=="undefined"?window.getComputedStyle(ii).display==="none"?ii.style.display="":ii.style.display="none":ti==="show"?ii.style.display="":ii.style.display="none")}function Fn(ii,ti,ei){function ri(si){return!!(typeof ei=="string"&&si!==null&&si.matches(ei))}function ni(si){if(si!==null&&si.parentElement!==null&&!ri(si)){for(let oi of si.parentElement.querySelectorAll(ti))if(oi!==null)return oi;return ni(si.parentElement.parentElement)}return null}return ni(ii)}function Ws(ii,ti,ei=null,ri=[]){let ni=document.createElement(ii);if(ti!==null)for(let si of Object.keys(ti)){let oi=si,ai=ti[oi];oi in ni&&(ni[oi]=ai)}ei!==null&&ei.length>0&&ni.classList.add(...ei);for(let si of ri)ni.appendChild(si);return ni}function Ku(ii,ti){let ei=new Map;for(let ri of ii){let ni=ri[ti];ei.has(ni)||ei.set(ni,ri)}return Array.from(ei.values())}function Qn(ii,ti,ei){if(typeof ii!="string")throw new TypeError("replaceAll 'input' argument must be a string");if(typeof ti!="string"&&!(ti instanceof RegExp))throw new TypeError("replaceAll 'pattern' argument must be a string or RegExp instance");switch(typeof ei){case"boolean":ei=String(ei);break;case"number":ei=String(ei);break;case"string":break;default:throw new TypeError("replaceAll 'replacement' argument must be stringifyable")}if(ti instanceof RegExp){let ri=Array.from(new Set([...ti.flags.split(""),"g"])).join("");ti=new RegExp(ti.source,ri)}else ti=new RegExp(ti,"g");return ii.replace(ti,ei)}function lb(ii,ti){let ei=new Set;for(let ri of ti.querySelectorAll("*[name]"))ri.validity.valid?ri.classList.contains("is-invalid")&&ri.classList.remove("is-invalid"):(ei.add(ri.name),ri.classList.contains("is-invalid")||ri.classList.add("is-invalid"));if(ei.size!==0){let ri=ti.elements.namedItem(Array.from(ei)[0]);Gu(ri),ii.preventDefault()}}function Xu(){for(let ii of Ti("form")){let ti=ii.querySelectorAll("button[type=submit]");for(let ei of ti)ei.addEventListener("click",ri=>lb(ri,ii))}}function Ju(){for(let ii of Ti("a.set_field_value"))if(ii!==null){let ti=function(ei){ei.preventDefault();let ri=ii.getAttribute("data"),ni=document.getElementById(ii.target);ni!==null&&ri!==null&&(ni.value=ri)};ii.addEventListener("click",ti)}}var Qu={vlangroup:{region:{hide:["id_sitegroup","id_site","id_location","id_rack","id_clustergroup","id_cluster"],show:["id_region"]},"site group":{hide:["id_region","id_site","id_location","id_rack","id_clustergroup","id_cluster"],show:["id_sitegroup"]},site:{hide:["id_location","id_rack","id_clustergroup","id_cluster"],show:["id_region","id_sitegroup","id_site"]},location:{hide:["id_rack","id_clustergroup","id_cluster"],show:["id_region","id_sitegroup","id_site","id_location"]},rack:{hide:["id_clustergroup","id_cluster"],show:["id_region","id_sitegroup","id_site","id_location","id_rack"]},"cluster group":{hide:["id_region","id_sitegroup","id_site","id_location","id_rack","id_cluster"],show:["id_clustergroup"]},cluster:{hide:["id_region","id_sitegroup","id_site","id_location","id_rack"],show:["id_clustergroup","id_cluster"]},default:{hide:["id_region","id_sitegroup","id_site","id_location","id_rack","id_clustergroup","id_cluster"],show:[]}}},Zu={vlangroup_add:"vlangroup",vlangroup_
Closes #12128: Refresh the web UI to employ the Tabler CSS framework (#14833) * Remove dark mode styling * Condense & rename light mode stylesheet * Upgrade to Bootstrap 5.3.2 * Swap out Bootstrap for Tabler; remove custom styling * Update base page layout for Tabler * Update login page * Bump node to v18 * Update button styles * Update object list view * Tweak navbar size * Clean up dashboard widgets * Ditch separate stylesheet for print media * Remove simplebar * Remove obsolete sidebar styling * Clean up object view template * Clean up object edit template * Standardize primary button sizing * Clean up object list styling * Add buttons for add & import to navigation menu * Fix global search bar * Fix slim-select form widget styling * Fix toast styling * Set base fonts * Clean up paginator styling * Clean up navigation menu group headings * Clean up footer links * Clean up card styles * Move SVG styles to a designated directory * Restructure SCSS files * Remove obsolete/redundant dependencies * Fix icon spacing * Update background color classes * Tweak banner & footer styling and spacing * Fix badge background colors in table content * Bump @types/bootstrap to 5.2.10 * Clean up form layouts * Fix object selector button style * Fix icon padding inside small buttons * Fix icon & badge spacing inside buttons and tabs * Hide paginator for empty pages * Fix hover color for list items (Tabler bug #1694) * Fix width of checkbox column in empty tables * Clean up bulk edit template * Fix border color of reslug button * Package & serve Google fonts locally * Fix tab styling * Reduce vetical space at top of dashboard * Remove obsolete content-wrapper template block * Fix icon spacing in dropdown menu items * Fix color label sizing * Separate bulk delete form & object list into tabs * Fix styling of filter group headings * Fix styling for object changelog & journal views * Standardize ordering & styling of action buttons * Fix designation of active menu item * Automatically expand menu section containing the active link * Clean up nav menu styling * Remove button colors; hide buttons except on hover/active * Highlight menu group containing the active item * Update & standardize alert styling * Refactor base templates to ensure consistent display of header content * Tweak styling for links inside badges * Clean up top menu * Fix JSON/YAML toggles for config context data * Fix object template header * Constrain tabs to container-xl; tweak header margins * Fix object identifier styling * Fix positioning of card header buttons * Remove padding from HTMX tables inside cards * Ensure consistent use of row headings in attribute tables * Remove padding surrounding tables inside cards * Remove obsolete CSS classes * Misc cleanup of old styling * Refactor 'controls' template block; ditch old classes * Fix login button sizing * Limit object edit form width * Append asterisk to required form field labels * Remove obsolete styling * Remove obsolete styling * Fix position of progress bar outside label * Fix alignment of delete button in report/script lists * Fix <pre> styling * Clean up page headers * Replace SVG icons with Material Design icons * Restore dark mode togle functionality * Fix top navbar background color under dark mode * Rebuild static assets
2024-01-17 16:25:42 -05:00
div.ss-values div.ss-value[data-id="${ei}"],
div.ss-list div.ss-option:not(.ss-disabled)[data-id="${ei}"]
{
Closes #12128: Refresh the web UI to employ the Tabler CSS framework (#14833) * Remove dark mode styling * Condense & rename light mode stylesheet * Upgrade to Bootstrap 5.3.2 * Swap out Bootstrap for Tabler; remove custom styling * Update base page layout for Tabler * Update login page * Bump node to v18 * Update button styles * Update object list view * Tweak navbar size * Clean up dashboard widgets * Ditch separate stylesheet for print media * Remove simplebar * Remove obsolete sidebar styling * Clean up object view template * Clean up object edit template * Standardize primary button sizing * Clean up object list styling * Add buttons for add & import to navigation menu * Fix global search bar * Fix slim-select form widget styling * Fix toast styling * Set base fonts * Clean up paginator styling * Clean up navigation menu group headings * Clean up footer links * Clean up card styles * Move SVG styles to a designated directory * Restructure SCSS files * Remove obsolete/redundant dependencies * Fix icon spacing * Update background color classes * Tweak banner & footer styling and spacing * Fix badge background colors in table content * Bump @types/bootstrap to 5.2.10 * Clean up form layouts * Fix object selector button style * Fix icon padding inside small buttons * Fix icon & badge spacing inside buttons and tabs * Hide paginator for empty pages * Fix hover color for list items (Tabler bug #1694) * Fix width of checkbox column in empty tables * Clean up bulk edit template * Fix border color of reslug button * Package & serve Google fonts locally * Fix tab styling * Reduce vetical space at top of dashboard * Remove obsolete content-wrapper template block * Fix icon spacing in dropdown menu items * Fix color label sizing * Separate bulk delete form & object list into tabs * Fix styling of filter group headings * Fix styling for object changelog & journal views * Standardize ordering & styling of action buttons * Fix designation of active menu item * Automatically expand menu section containing the active link * Clean up nav menu styling * Remove button colors; hide buttons except on hover/active * Highlight menu group containing the active item * Update & standardize alert styling * Refactor base templates to ensure consistent display of header content * Tweak styling for links inside badges * Clean up top menu * Fix JSON/YAML toggles for config context data * Fix object template header * Constrain tabs to container-xl; tweak header margins * Fix object identifier styling * Fix positioning of card header buttons * Remove padding from HTMX tables inside cards * Ensure consistent use of row headings in attribute tables * Remove padding surrounding tables inside cards * Remove obsolete CSS classes * Misc cleanup of old styling * Refactor 'controls' template block; ditch old classes * Fix login button sizing * Limit object edit form width * Append asterisk to required form field labels * Remove obsolete styling * Remove obsolete styling * Fix position of progress bar outside label * Fix alignment of delete button in report/script lists * Fix <pre> styling * Clean up page headers * Replace SVG icons with Material Design icons * Restore dark mode togle functionality * Fix top navbar background color under dark mode * Rebuild static assets
2024-01-17 16:25:42 -05:00
background-color: ${si} !important;
color: ${oi} !important;
}
`,`
Closes #12128: Refresh the web UI to employ the Tabler CSS framework (#14833) * Remove dark mode styling * Condense & rename light mode stylesheet * Upgrade to Bootstrap 5.3.2 * Swap out Bootstrap for Tabler; remove custom styling * Update base page layout for Tabler * Update login page * Bump node to v18 * Update button styles * Update object list view * Tweak navbar size * Clean up dashboard widgets * Ditch separate stylesheet for print media * Remove simplebar * Remove obsolete sidebar styling * Clean up object view template * Clean up object edit template * Standardize primary button sizing * Clean up object list styling * Add buttons for add & import to navigation menu * Fix global search bar * Fix slim-select form widget styling * Fix toast styling * Set base fonts * Clean up paginator styling * Clean up navigation menu group headings * Clean up footer links * Clean up card styles * Move SVG styles to a designated directory * Restructure SCSS files * Remove obsolete/redundant dependencies * Fix icon spacing * Update background color classes * Tweak banner & footer styling and spacing * Fix badge background colors in table content * Bump @types/bootstrap to 5.2.10 * Clean up form layouts * Fix object selector button style * Fix icon padding inside small buttons * Fix icon & badge spacing inside buttons and tabs * Hide paginator for empty pages * Fix hover color for list items (Tabler bug #1694) * Fix width of checkbox column in empty tables * Clean up bulk edit template * Fix border color of reslug button * Package & serve Google fonts locally * Fix tab styling * Reduce vetical space at top of dashboard * Remove obsolete content-wrapper template block * Fix icon spacing in dropdown menu items * Fix color label sizing * Separate bulk delete form & object list into tabs * Fix styling of filter group headings * Fix styling for object changelog & journal views * Standardize ordering & styling of action buttons * Fix designation of active menu item * Automatically expand menu section containing the active link * Clean up nav menu styling * Remove button colors; hide buttons except on hover/active * Highlight menu group containing the active item * Update & standardize alert styling * Refactor base templates to ensure consistent display of header content * Tweak styling for links inside badges * Clean up top menu * Fix JSON/YAML toggles for config context data * Fix object template header * Constrain tabs to container-xl; tweak header margins * Fix object identifier styling * Fix positioning of card header buttons * Remove padding from HTMX tables inside cards * Ensure consistent use of row headings in attribute tables * Remove padding surrounding tables inside cards * Remove obsolete CSS classes * Misc cleanup of old styling * Refactor 'controls' template block; ditch old classes * Fix login button sizing * Limit object edit form width * Append asterisk to required form field labels * Remove obsolete styling * Remove obsolete styling * Fix position of progress bar outside label * Fix alignment of delete button in report/script lists * Fix <pre> styling * Clean up page headers * Replace SVG icons with Material Design icons * Restore dark mode togle functionality * Fix top navbar background color under dark mode * Rebuild static assets
2024-01-17 16:25:42 -05:00
`,"").trim(),document.head.appendChild(ni)}}resetClasses(){let ti=this.slim.slim;if(ti)for(let ei of this.base.classList)ti.container.classList.remove(ei)}initResetButton(){let ti=Fn(this.base,"button[data-reset-select]");ti!==null&&ti.addEventListener("click",()=>{window.location.assign(window.location.origin+window.location.pathname)})}initRefreshButton(){if(this.allowRefresh){let ti=Ws("button",{type:"button"},["btn","btn-sm","btn-ghost-dark"],[Ws("i",null,["mdi","mdi-reload"])]);ti.addEventListener("click",()=>this.loadData()),ti.type="button",this.slim.slim.search.container.appendChild(ti)}}};function Bd(){for(let ii of Ti(".netbox-api-select:not([data-ssid])"))new tc(ii)}function Vd(ii){return typeof ii.value=="string"&&ii.value!==""}function zd(ii,ti){if(ii.slim.singleSelected!==null)if(Vd(ti)){let ei=`#${ti.value}`,ri=ko(ei);ii.slim.singleSelected.container.style.backgroundColor=ei,ii.slim.singleSelected.container.style.color=ri}else ii.slim.singleSelected.container.removeAttribute("style")}function Wd(){for(let ii of Ti("select.netbox-color-select:not([data-ssid])")){for(let ei of ii.options)if(Vd(ei)){let ri=`#${ei.value}`,ni=ko(ri);ei.style.backgroundColor=ri,ei.style.color=ni}let ti=new Ks({select:ii,allowDeselect:!0,deselectLabel:'<i class="mdi mdi-close-circle" style="color: currentColor;"></i>'});for(let ei of ti.data.data)if("selected"in ei&&ei.selected){zd(ti,ei);break}for(let ei of ii.classList)ti.slim.container.classList.remove(ei);ti.onChange=ei=>zd(ti,ei)}}function Gd(){for(let ii of Ti(".netbox-static-select:not([data-ssid])"))if(ii!==null){let ti=document.querySelector(`label[for="${ii.id}"]`),ei;ti!==null&&(ei=`Select ${ti.innerText.trim()}`);let ri=new Ks({select:ii,allowDeselect:!0,deselectLabel:'<i class="mdi mdi-close-circle"></i>',placeholder:ei});for(let ni of ii.classList)ri.slim.container.classList.remove(ni)}}function xa(){for(let ii of[Bd,Wd,Gd])ii()}function zb(ii){let ti=ii.getAttribute("data-url"),ei=ii.classList.contains("connected"),ri=ei?"planned":"connected";Ki(ti)&&zs(ti,{status:ri}).then(ni=>{var si;if($n(ni)){On("danger","Error",ni.error).show();return}else{let oi=(si=ii.parentElement)==null?void 0:si.parentElement,ai=ii.querySelector("i.mdi, span.mdi");ei?(oi.classList.remove("success"),oi.classList.add("info"),ii.classList.remove("connected","btn-warning"),ii.classList.add("btn-info"),ii.title="Mark Installed",ai.classList.remove("mdi-lan-disconnect"),ai.classList.add("mdi-lan-connect")):(oi.classList.remove("info"),oi.classList.add("success"),ii.classList.remove("btn-success"),ii.classList.add("connected","btn-warning"),ii.title="Mark Installed",ai.classList.remove("mdi-lan-connect"),ai.classList.add("mdi-lan-disconnect"))}})}function Yd(){for(let ii of Ti("button.cable-toggle"))ii.addEventListener("click",()=>zb(ii))}var Kd=class{set(ti,ei,ri){return ti[ei]=ri,!0}get(ti,ei){return ti[ei]}has(ti,ei){return ei in ti}},Sa=class{constructor(ti,ei){zi(this,"handlers");zi(this,"proxy");zi(this,"options");zi(this,"key","");if(this.options=ei,typeof this.options.key=="string"?this.key=this.options.key:this.key=this.generateStateKey(ti),this.options.persist){let ri=this.retrieve();ri!==null&&(ti=Rr(Rr({},ti),ri))}this.handlers=new Kd,this.proxy=new Proxy(ti,this.handlers),this.options.persist&&this.save()}generateStateKey(ti){return`netbox-${window.btoa(Object.keys(ti).join("---"))}`}get(ti){return this.handlers.get(this.proxy,ti)}set(ti,ei){this.handlers.set(this.proxy,ti,ei),this.options.persist&&this.save()}all(){return this.proxy}keys(){return Object.keys(this.proxy)}values(){return Object.values(this.proxy)}save(){let ti=JSON.stringify(this.proxy);localStorage.setItem(this.key,ti)}retrieve(){let ti=localStorage.getItem(this.key);return ti!==null?JSON.parse(ti):null}};function Zn(ii,ti={}){return new Sa(ii,ti)}var ic=Zn({hidden:!1},{persist:!0,key:"netbox-object-depth"});var rc=Zn({view:"images-and-labels"},{persist:!0});var Xd=Zn({element:null},{persist:!1});var Jd=Zn({hidden:!0},{persist:!0,key:"netbox-secret"});function Qd(ii,ti){ti.setAttribute("data-depth-indicators",ii?"h
2022-10-04 15:02:37 +02:00
<span class='flatpickr-weekday'>
Closes #12128: Refresh the web UI to employ the Tabler CSS framework (#14833) * Remove dark mode styling * Condense & rename light mode stylesheet * Upgrade to Bootstrap 5.3.2 * Swap out Bootstrap for Tabler; remove custom styling * Update base page layout for Tabler * Update login page * Bump node to v18 * Update button styles * Update object list view * Tweak navbar size * Clean up dashboard widgets * Ditch separate stylesheet for print media * Remove simplebar * Remove obsolete sidebar styling * Clean up object view template * Clean up object edit template * Standardize primary button sizing * Clean up object list styling * Add buttons for add & import to navigation menu * Fix global search bar * Fix slim-select form widget styling * Fix toast styling * Set base fonts * Clean up paginator styling * Clean up navigation menu group headings * Clean up footer links * Clean up card styles * Move SVG styles to a designated directory * Restructure SCSS files * Remove obsolete/redundant dependencies * Fix icon spacing * Update background color classes * Tweak banner & footer styling and spacing * Fix badge background colors in table content * Bump @types/bootstrap to 5.2.10 * Clean up form layouts * Fix object selector button style * Fix icon padding inside small buttons * Fix icon & badge spacing inside buttons and tabs * Hide paginator for empty pages * Fix hover color for list items (Tabler bug #1694) * Fix width of checkbox column in empty tables * Clean up bulk edit template * Fix border color of reslug button * Package & serve Google fonts locally * Fix tab styling * Reduce vetical space at top of dashboard * Remove obsolete content-wrapper template block * Fix icon spacing in dropdown menu items * Fix color label sizing * Separate bulk delete form & object list into tabs * Fix styling of filter group headings * Fix styling for object changelog & journal views * Standardize ordering & styling of action buttons * Fix designation of active menu item * Automatically expand menu section containing the active link * Clean up nav menu styling * Remove button colors; hide buttons except on hover/active * Highlight menu group containing the active item * Update & standardize alert styling * Refactor base templates to ensure consistent display of header content * Tweak styling for links inside badges * Clean up top menu * Fix JSON/YAML toggles for config context data * Fix object template header * Constrain tabs to container-xl; tweak header margins * Fix object identifier styling * Fix positioning of card header buttons * Remove padding from HTMX tables inside cards * Ensure consistent use of row headings in attribute tables * Remove padding surrounding tables inside cards * Remove obsolete CSS classes * Misc cleanup of old styling * Refactor 'controls' template block; ditch old classes * Fix login button sizing * Limit object edit form width * Append asterisk to required form field labels * Remove obsolete styling * Remove obsolete styling * Fix position of progress bar outside label * Fix alignment of delete button in report/script lists * Fix <pre> styling * Clean up page headers * Replace SVG icons with Material Design icons * Restore dark mode togle functionality * Fix top navbar background color under dark mode * Rebuild static assets
2024-01-17 16:25:42 -05:00
`+mi.join("</span><span class='flatpickr-weekday'>")+`
2022-10-04 15:02:37 +02:00
</span>
Closes #12128: Refresh the web UI to employ the Tabler CSS framework (#14833) * Remove dark mode styling * Condense & rename light mode stylesheet * Upgrade to Bootstrap 5.3.2 * Swap out Bootstrap for Tabler; remove custom styling * Update base page layout for Tabler * Update login page * Bump node to v18 * Update button styles * Update object list view * Tweak navbar size * Clean up dashboard widgets * Ditch separate stylesheet for print media * Remove simplebar * Remove obsolete sidebar styling * Clean up object view template * Clean up object edit template * Standardize primary button sizing * Clean up object list styling * Add buttons for add & import to navigation menu * Fix global search bar * Fix slim-select form widget styling * Fix toast styling * Set base fonts * Clean up paginator styling * Clean up navigation menu group headings * Clean up footer links * Clean up card styles * Move SVG styles to a designated directory * Restructure SCSS files * Remove obsolete/redundant dependencies * Fix icon spacing * Update background color classes * Tweak banner & footer styling and spacing * Fix badge background colors in table content * Bump @types/bootstrap to 5.2.10 * Clean up form layouts * Fix object selector button style * Fix icon padding inside small buttons * Fix icon & badge spacing inside buttons and tabs * Hide paginator for empty pages * Fix hover color for list items (Tabler bug #1694) * Fix width of checkbox column in empty tables * Clean up bulk edit template * Fix border color of reslug button * Package & serve Google fonts locally * Fix tab styling * Reduce vetical space at top of dashboard * Remove obsolete content-wrapper template block * Fix icon spacing in dropdown menu items * Fix color label sizing * Separate bulk delete form & object list into tabs * Fix styling of filter group headings * Fix styling for object changelog & journal views * Standardize ordering & styling of action buttons * Fix designation of active menu item * Automatically expand menu section containing the active link * Clean up nav menu styling * Remove button colors; hide buttons except on hover/active * Highlight menu group containing the active item * Update & standardize alert styling * Refactor base templates to ensure consistent display of header content * Tweak styling for links inside badges * Clean up top menu * Fix JSON/YAML toggles for config context data * Fix object template header * Constrain tabs to container-xl; tweak header margins * Fix object identifier styling * Fix positioning of card header buttons * Remove padding from HTMX tables inside cards * Ensure consistent use of row headings in attribute tables * Remove padding surrounding tables inside cards * Remove obsolete CSS classes * Misc cleanup of old styling * Refactor 'controls' template block; ditch old classes * Fix login button sizing * Limit object edit form width * Append asterisk to required form field labels * Remove obsolete styling * Remove obsolete styling * Fix position of progress bar outside label * Fix alignment of delete button in report/script lists * Fix <pre> styling * Clean up page headers * Replace SVG icons with Material Design icons * Restore dark mode togle functionality * Fix top navbar background color under dark mode * Rebuild static assets
2024-01-17 16:25:42 -05:00
`}}function Hi(){ei.calendarContainer.classList.add("hasWeeks");var pi=Xi("div","flatpickr-weekwrapper");pi.appendChild(Xi("span","flatpickr-weekday",ei.l10n.weekAbbreviation));var mi=Xi("div","flatpickr-weeks");return pi.appendChild(mi),{weekWrapper:pi,weekNumbers:mi}}function ki(pi,mi){mi===void 0&&(mi=!0);var bi=mi?pi:pi-ei.currentMonth;bi<0&&ei._hidePrevMonthArrow===!0||bi>0&&ei._hideNextMonthArrow===!0||(ei.currentMonth+=bi,(ei.currentMonth<0||ei.currentMonth>11)&&(ei.currentYear+=ei.currentMonth>11?1:-1,ei.currentMonth=(ei.currentMonth+12)%12,Sr("onYearChange"),mr()),Lr(),Sr("onMonthChange"),Yo())}function Li(pi,mi){if(pi===void 0&&(pi=!0),mi===void 0&&(mi=!0),ei.input.value="",ei.altInput!==void 0&&(ei.altInput.value=""),ei.mobileInput!==void 0&&(ei.mobileInput.value=""),ei.selectedDates=[],ei.latestSelectedDateObj=void 0,mi===!0&&(ei.currentYear=ei._initialDate.getFullYear(),ei.currentMonth=ei._initialDate.getMonth()),ei.config.enableTime===!0){var bi=ka(ei.config),Ei=bi.hours,wi=bi.minutes,Ai=bi.seconds;hi(Ei,wi,Ai)}ei.redraw(),pi&&Sr("onChange")}function ji(){ei.isOpen=!1,ei.isMobile||(ei.calendarContainer!==void 0&&ei.calendarContainer.classList.remove("open"),ei._input!==void 0&&ei._input.classList.remove("active")),Sr("onClose")}function Mi(){ei.config!==void 0&&Sr("onDestroy");for(var pi=ei._handlers.length;pi--;)ei._handlers[pi].remove();if(ei._handlers=[],ei.mobileInput)ei.mobileInput.parentNode&&ei.mobileInput.parentNode.removeChild(ei.mobileInput),ei.mobileInput=void 0;else if(ei.calendarContainer&&ei.calendarContainer.parentNode)if(ei.config.static&&ei.calendarContainer.parentNode){var mi=ei.calendarContainer.parentNode;if(mi.lastChild&&mi.removeChild(mi.lastChild),mi.parentNode){for(;mi.firstChild;)mi.parentNode.insertBefore(mi.firstChild,mi);mi.parentNode.removeChild(mi)}}else ei.calendarContainer.parentNode.removeChild(ei.calendarContainer);ei.altInput&&(ei.input.type="text",ei.altInput.parentNode&&ei.altInput.parentNode.removeChild(ei.altInput),delete ei.altInput),ei.input&&(ei.input.type=ei.input._type,ei.input.classList.remove("flatpickr-input"),ei.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(bi){try{delete ei[bi]}catch(Ei){}})}function Ii(pi){return ei.calendarContainer.contains(pi)}function Qi(pi){if(ei.isOpen&&!ei.config.inline){var mi=en(pi),bi=Ii(mi),Ei=mi===ei.input||mi===ei.altInput||ei.element.contains(mi)||pi.path&&pi.path.indexOf&&(~pi.path.indexOf(ei.input)||~pi.path.indexOf(ei.altInput)),wi=!Ei&&!bi&&!Ii(pi.relatedTarget),Ai=!ei.config.ignoredFocusElements.some(function(Vi){return Vi.contains(mi)});wi&&Ai&&(ei.config.allowInput&&ei.setDate(ei._input.value,!1,ei.config.altInput?ei.config.altFormat:ei.config.dateFormat),ei.timeContainer!==void 0&&ei.minuteElement!==void 0&&ei.hourElement!==void 0&&ei.input.value!==""&&ei.input.value!==void 0&&li(),ei.close(),ei.config&&ei.config.mode==="range"&&ei.selectedDates.length===1&&ei.clear(!1))}}function Er(pi){if(!(!pi||ei.config.minDate&&pi<ei.config.minDate.getFullYear()||ei.config.maxDate&&pi>ei.config.maxDate.getFullYear())){var mi=pi,bi=ei.currentYear!==mi;ei.currentYear=mi||ei.currentYear,ei.config.maxDate&&ei.currentYear===ei.config.maxDate.getFullYear()?ei.currentMonth=Math.min(ei.config.maxDate.getMonth(),ei.currentMonth):ei.config.minDate&&ei.currentYear===ei.config.minDate.getFullYear()&&(ei.currentMonth=Math.max(ei.config.minDate.getMonth(),ei.currentMonth)),bi&&(ei.redraw(),Sr("onYearChange"),mr())}}function xr(pi,mi){var bi;mi===void 0&&(mi=!0);var Ei=ei.parseDate(pi,void 0,mi);if(ei.config.minDate&&Ei&&tn(Ei,ei.config.m
/*!
Closes #12128: Refresh the web UI to employ the Tabler CSS framework (#14833) * Remove dark mode styling * Condense & rename light mode stylesheet * Upgrade to Bootstrap 5.3.2 * Swap out Bootstrap for Tabler; remove custom styling * Update base page layout for Tabler * Update login page * Bump node to v18 * Update button styles * Update object list view * Tweak navbar size * Clean up dashboard widgets * Ditch separate stylesheet for print media * Remove simplebar * Remove obsolete sidebar styling * Clean up object view template * Clean up object edit template * Standardize primary button sizing * Clean up object list styling * Add buttons for add & import to navigation menu * Fix global search bar * Fix slim-select form widget styling * Fix toast styling * Set base fonts * Clean up paginator styling * Clean up navigation menu group headings * Clean up footer links * Clean up card styles * Move SVG styles to a designated directory * Restructure SCSS files * Remove obsolete/redundant dependencies * Fix icon spacing * Update background color classes * Tweak banner & footer styling and spacing * Fix badge background colors in table content * Bump @types/bootstrap to 5.2.10 * Clean up form layouts * Fix object selector button style * Fix icon padding inside small buttons * Fix icon & badge spacing inside buttons and tabs * Hide paginator for empty pages * Fix hover color for list items (Tabler bug #1694) * Fix width of checkbox column in empty tables * Clean up bulk edit template * Fix border color of reslug button * Package & serve Google fonts locally * Fix tab styling * Reduce vetical space at top of dashboard * Remove obsolete content-wrapper template block * Fix icon spacing in dropdown menu items * Fix color label sizing * Separate bulk delete form & object list into tabs * Fix styling of filter group headings * Fix styling for object changelog & journal views * Standardize ordering & styling of action buttons * Fix designation of active menu item * Automatically expand menu section containing the active link * Clean up nav menu styling * Remove button colors; hide buttons except on hover/active * Highlight menu group containing the active item * Update & standardize alert styling * Refactor base templates to ensure consistent display of header content * Tweak styling for links inside badges * Clean up top menu * Fix JSON/YAML toggles for config context data * Fix object template header * Constrain tabs to container-xl; tweak header margins * Fix object identifier styling * Fix positioning of card header buttons * Remove padding from HTMX tables inside cards * Ensure consistent use of row headings in attribute tables * Remove padding surrounding tables inside cards * Remove obsolete CSS classes * Misc cleanup of old styling * Refactor 'controls' template block; ditch old classes * Fix login button sizing * Limit object edit form width * Append asterisk to required form field labels * Remove obsolete styling * Remove obsolete styling * Fix position of progress bar outside label * Fix alignment of delete button in report/script lists * Fix <pre> styling * Clean up page headers * Replace SVG icons with Material Design icons * Restore dark mode togle functionality * Fix top navbar background color under dark mode * Rebuild static assets
2024-01-17 16:25:42 -05:00
* Bootstrap v5.3.1 (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
/*!
* GridStack 7.2.3
* https://gridstackjs.com/
*
* Copyright (c) 2021-2022 Alain Dumesny
* see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
*/
/*!
2022-10-04 15:02:37 +02:00
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/