1175 lines
76 KiB
JavaScript
1175 lines
76 KiB
JavaScript
var D=globalThis,L=D.ShadowRoot&&(D.ShadyCSS===void 0||D.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,F=Symbol(),re=new WeakMap,$=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==F)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(L&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=re.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&re.set(t,e))}return e}toString(){return this.cssText}},ne=r=>new $(typeof r=="string"?r:r+"",void 0,F),I=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((o,n,i)=>o+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[i+1],r[0]);return new $(t,r,F)},ie=(r,e)=>{if(L)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),n=D.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)}},B=L?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return ne(t)})(r):r;var{is:Ee,defineProperty:Ce,getOwnPropertyDescriptor:je,getOwnPropertyNames:Ne,getOwnPropertySymbols:Te,getPrototypeOf:Re}=Object,M=globalThis,ae=M.trustedTypes,ze=ae?ae.emptyScript:"",Pe=M.reactiveElementPolyfillSupport,E=(r,e)=>r,C={toAttribute(r,e){switch(e){case Boolean:r=r?ze:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},U=(r,e)=>!Ee(r,e),se={attribute:!0,type:String,converter:C,reflect:!1,useDefault:!1,hasChanged:U};Symbol.metadata??=Symbol("metadata"),M.litPropertyMetadata??=new WeakMap;var g=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=se){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,t);n!==void 0&&Ce(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:i}=je(this.prototype,e)??{get(){return this[t]},set(a){this[t]=a}};return{get:n,set(a){let l=n?.call(this);i?.call(this,a),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??se}static _$Ei(){if(this.hasOwnProperty(E("elementProperties")))return;let e=Re(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(E("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(E("properties"))){let t=this.properties,o=[...Ne(t),...Te(t)];for(let n of o)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,n]of t)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let n=this._$Eu(t,o);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(B(n))}else e!==void 0&&t.push(B(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ie(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let i=(o.converter?.toAttribute!==void 0?o.converter:C).toAttribute(t,o.type);this._$Em=e,i==null?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let i=o.getPropertyOptions(n),a=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:C;this._$Em=n;let l=a.fromAttribute(t,i.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,t,o,n=!1,i){if(e!==void 0){let a=this.constructor;if(n===!1&&(i=this[e]),o??=a.getPropertyOptions(e),!((o.hasChanged??U)(i,t)||o.useDefault&&o.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,o))))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:n,wrapped:i},a){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),i!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,i]of this._$Ep)this[n]=i;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,i]of o){let{wrapped:a}=i,l=this[n];a!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,i,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};g.elementStyles=[],g.shadowRootOptions={mode:"open"},g[E("elementProperties")]=new Map,g[E("finalized")]=new Map,Pe?.({ReactiveElement:g}),(M.reactiveElementVersions??=[]).push("2.1.2");var Y=globalThis,le=r=>r,q=Y.trustedTypes,ce=q?q.createPolicy("lit-html",{createHTML:r=>r}):void 0,ge="$lit$",f=`lit$${Math.random().toFixed(9).slice(2)}$`,me="?"+f,Oe=`<${me}>`,v=document,N=()=>v.createComment(""),T=r=>r===null||typeof r!="object"&&typeof r!="function",Z=Array.isArray,De=r=>Z(r)||typeof r?.[Symbol.iterator]=="function",W=`[
|
|
\f\r]`,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,de=/-->/g,pe=/>/g,b=RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^
|
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),ue=/'/g,_e=/"/g,fe=/^(?:script|style|textarea|title)$/i,X=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),Ze=X(1),Xe=X(2),et=X(3),x=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),he=new WeakMap,y=v.createTreeWalker(v,129);function be(r,e){if(!Z(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ce!==void 0?ce.createHTML(e):e}var Le=(r,e)=>{let t=r.length-1,o=[],n,i=e===2?"<svg>":e===3?"<math>":"",a=j;for(let l=0;l<t;l++){let s=r[l],d,u,c=-1,h=0;for(;h<s.length&&(a.lastIndex=h,u=a.exec(s),u!==null);)h=a.lastIndex,a===j?u[1]==="!--"?a=de:u[1]!==void 0?a=pe:u[2]!==void 0?(fe.test(u[2])&&(n=RegExp("</"+u[2],"g")),a=b):u[3]!==void 0&&(a=b):a===b?u[0]===">"?(a=n??j,c=-1):u[1]===void 0?c=-2:(c=a.lastIndex-u[2].length,d=u[1],a=u[3]===void 0?b:u[3]==='"'?_e:ue):a===_e||a===ue?a=b:a===de||a===pe?a=j:(a=b,n=void 0);let m=a===b&&r[l+1].startsWith("/>")?" ":"";i+=a===j?s+Oe:c>=0?(o.push(d),s.slice(0,c)+ge+s.slice(c)+f+m):s+f+(c===-2?l:m)}return[be(r,i+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},R=class r{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let i=0,a=0,l=e.length-1,s=this.parts,[d,u]=Le(e,t);if(this.el=r.createElement(d,o),y.currentNode=this.el.content,t===2||t===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(n=y.nextNode())!==null&&s.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let c of n.getAttributeNames())if(c.endsWith(ge)){let h=u[a++],m=n.getAttribute(c).split(f),O=/([.?@])?(.*)/.exec(h);s.push({type:1,index:i,name:O[2],strings:m,ctor:O[1]==="."?V:O[1]==="?"?Q:O[1]==="@"?K:S}),n.removeAttribute(c)}else c.startsWith(f)&&(s.push({type:6,index:i}),n.removeAttribute(c));if(fe.test(n.tagName)){let c=n.textContent.split(f),h=c.length-1;if(h>0){n.textContent=q?q.emptyScript:"";for(let m=0;m<h;m++)n.append(c[m],N()),y.nextNode(),s.push({type:2,index:++i});n.append(c[h],N())}}}else if(n.nodeType===8)if(n.data===me)s.push({type:2,index:i});else{let c=-1;for(;(c=n.data.indexOf(f,c+1))!==-1;)s.push({type:7,index:i}),c+=f.length-1}i++}}static createElement(e,t){let o=v.createElement("template");return o.innerHTML=e,o}};function k(r,e,t=r,o){if(e===x)return e;let n=o!==void 0?t._$Co?.[o]:t._$Cl,i=T(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),i===void 0?n=void 0:(n=new i(r),n._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=n:t._$Cl=n),n!==void 0&&(e=k(r,n._$AS(r,e.values),n,o)),e}var G=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,n=(e?.creationScope??v).importNode(t,!0);y.currentNode=n;let i=y.nextNode(),a=0,l=0,s=o[0];for(;s!==void 0;){if(a===s.index){let d;s.type===2?d=new z(i,i.nextSibling,this,e):s.type===1?d=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(d=new J(i,this,e)),this._$AV.push(d),s=o[++l]}a!==s?.index&&(i=y.nextNode(),a++)}return y.currentNode=v,n}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},z=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,n){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=k(this,e,t),T(e)?e===p||e==null||e===""?(this._$AH!==p&&this._$AR(),this._$AH=p):e!==this._$AH&&e!==x&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):De(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==p&&T(this._$AH)?this._$AA.nextSibling.data=e:this.T(v.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=R.createElement(be(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let i=new G(n,this),a=i.u(this.options);i.p(t),this.T(a),this._$AH=i}}_$AC(e){let t=he.get(e.strings);return t===void 0&&he.set(e.strings,t=new R(e)),t}k(e){Z(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let i of e)n===t.length?t.push(o=new r(this.O(N()),this.O(N()),this,this.options)):o=t[n],o._$AI(i),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let o=le(e).nextSibling;le(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},S=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,n,i){this.type=1,this._$AH=p,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=i,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=p}_$AI(e,t=this,o,n){let i=this.strings,a=!1;if(i===void 0)e=k(this,e,t,0),a=!T(e)||e!==this._$AH&&e!==x,a&&(this._$AH=e);else{let l=e,s,d;for(e=i[0],s=0;s<i.length-1;s++)d=k(this,l[o+s],t,s),d===x&&(d=this._$AH[s]),a||=!T(d)||d!==this._$AH[s],d===p?e=p:e!==p&&(e+=(d??"")+i[s+1]),this._$AH[s]=d}a&&!n&&this.j(e)}j(e){e===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},V=class extends S{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===p?void 0:e}},Q=class extends S{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==p)}},K=class extends S{constructor(e,t,o,n,i){super(e,t,o,n,i),this.type=5}_$AI(e,t=this){if((e=k(this,e,t,0)??p)===x)return;let o=this._$AH,n=e===p&&o!==p||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,i=e!==p&&(o===p||n);n&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},J=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){k(this,e)}};var Me=Y.litHtmlPolyfillSupport;Me?.(R,z),(Y.litHtmlVersions??=[]).push("3.3.2");var ye=(r,e,t)=>{let o=t?.renderBefore??e,n=o._$litPart$;if(n===void 0){let i=t?.renderBefore??null;o._$litPart$=n=new z(e.insertBefore(N(),i),i,void 0,t??{})}return n._$AI(r),n};var ee=globalThis,A=class extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ye(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return x}};A._$litElement$=!0,A.finalized=!0,ee.litElementHydrateSupport?.({LitElement:A});var Ue=ee.litElementPolyfillSupport;Ue?.({LitElement:A});(ee.litElementVersions??=[]).push("4.2.2");var qe={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:U},He=(r=qe,e,t)=>{let{kind:o,metadata:n}=t,i=globalThis.litPropertyMetadata.get(n);if(i===void 0&&globalThis.litPropertyMetadata.set(n,i=new Map),o==="setter"&&((r=Object.create(r)).wrapped=!0),i.set(t.name,r),o==="accessor"){let{name:a}=t;return{set(l){let s=e.get.call(this);e.set.call(this,l),this.requestUpdate(a,s,r,!0,l)},init(l){return l!==void 0&&this.C(a,void 0,r,l),l}}}if(o==="setter"){let{name:a}=t;return function(l){let s=this[a];e.call(this,l),this.requestUpdate(a,s,r,!0,l)}}throw Error("Unsupported decorator location: "+o)};function ve(r){return(e,t)=>typeof t=="object"?He(r,e,t):((o,n,i)=>{let a=n.hasOwnProperty(i);return n.constructor.createProperty(i,o),a?Object.getOwnPropertyDescriptor(n,i):void 0})(r,e,t)}function mt(r){return ve({...r,state:!0,attribute:!1})}var xe={maintenance:"Maintenance",objects:"Objects",tasks:"Tasks",overdue:"Overdue",due_soon:"Due Soon",triggered:"Triggered",trigger_replaced:"Trigger replaced",ok:"OK",all:"All",new_object:"+ New Object",templates_from:"From template",templates_title:"Start from a template",templates_task_count:"{n} tasks",template_created:"Created from template",onboard_hint:"Add your first object to start tracking maintenance.",edit:"Edit",duplicate:"Duplicate",task_duplicated:"Task duplicated",object_duplicated:"Object duplicated",delete:"Delete",add_task:"+ Add Task",complete:"Complete",completed:"Completed",skip:"Skip",skipped:"Skipped",missed:"Missed",reset:"Reset",snooze:"Snooze",snoozed:"Snoozed",cancel:"Cancel",bulk_select:"Select",bulk_select_all:"Select all",bulk_n_selected:"{n} selected",bulk_completed:"{n} tasks completed",bulk_archived:"{n} tasks archived",completing:"Completing\u2026",interval:"Interval",warning:"Warning",last_performed:"Last performed",next_due:"Next due",days_until_due:"Days until due",avg_duration:"Avg duration",trigger:"Trigger",trigger_type:"Trigger type",threshold_above:"Upper limit",threshold_below:"Lower limit",threshold:"Threshold",counter:"Counter",state_change:"State change",runtime:"Runtime",runtime_hours:"Target runtime (hours)",target_value:"Target value",baseline:"Baseline",target_changes:"Target changes",for_minutes:"For (minutes)",time_based:"Time-based",sensor_based:"Sensor-based",manual:"Manual",one_time:"One-time",weekdays:"Weekdays",nth_weekday:"Nth weekday of month",day_of_month:"Day of month",recurrence_on_days:"Repeat on",recurrence_occurrence:"Occurrence",recurrence_weekday:"Weekday",recurrence_day:"Day of month (1\u201331)",recurrence_last_day:"Last day of the month",recurrence_business_day:"Business days only (roll back from weekend)",recurrence_offset:"Offset (days, \xB1)",recurrence_offset_help:"Shift the date by \xB1N days, e.g. -2 = two days before.",last_day_month:"Last day of month",last_business_day_month:"Last business day",ord_1:"1st",ord_2:"2nd",ord_3:"3rd",ord_4:"4th",ord_5:"5th",ord_last:"Last",day_word:"Day",interval_value:"Interval",interval_unit:"Unit",unit_days:"Days",unit_weeks:"Weeks",unit_months:"Months",unit_years:"Years",due_date:"Due date",cleaning:"Cleaning",inspection:"Inspection",replacement:"Replacement",calibration:"Calibration",service:"Service",reading:"Reading",custom:"Custom",history:"History",cost:"Cost",report_button:"Report",report_title:"Maintenance report",report_generated:"Generated",report_times_done:"Done",report_total_cost:"Total cost",report_every:"every {n} {unit}",report_notes:"Notes",report_col_type:"Type",report_col_status:"Status",report_col_schedule:"Schedule",duration:"Duration",both:"Both",trigger_val:"Trigger value",complete_title:"Complete: ",checklist:"Checklist",checklist_steps_optional:"Checklist steps (optional)",checklist_placeholder:`Clean filter
|
|
Replace seal
|
|
Test pressure`,checklist_help:"One step per line. Max 100 items.",err_too_long:"{field}: too long (max {n} characters)",err_too_short:"{field}: too short (min {n} characters)",err_value_too_high:"{field}: too large (max {n})",err_value_too_low:"{field}: too small (min {n})",err_required:"{field}: required",err_wrong_type:"{field}: wrong type (expected: {type})",err_invalid_choice:"{field}: not an allowed value",err_invalid_value:"{field}: invalid value",feat_schedule_time:"Time-of-day scheduling",feat_schedule_time_desc:"Tasks become overdue at a specific time of day instead of midnight.",schedule_time_optional:"Due at time (optional, HH:MM)",schedule_time_help:"Empty = midnight (default). HA timezone.",at_time:"at",notes_optional:"Notes (optional)",cost_optional:"Cost (optional)",duration_minutes:"Duration in minutes (optional)",days:"days",day:"day",today:"Today",d_overdue:"d overdue",no_tasks:"No maintenance tasks yet. Create an object to get started.",no_tasks_short:"No tasks",no_history:"No history entries yet.",show_all:"Show all",cost_duration_chart:"Cost & Duration",installed:"Installed",confirm_delete_object:"Delete this object and all its tasks?",confirm_delete_task:"Delete this task?",min:"Min",max:"Max",save:"Save",saving:"Saving\u2026",edit_task:"Edit Task",new_task:"New Maintenance Task",task_name:"Task name",maintenance_type:"Maintenance type",priority:"Priority",labels:"Labels",labels_placeholder:"e.g. safety, seasonal, tenant-visible",labels_help:"Comma-separated tags for filtering and reporting.",priority_low:"Low",priority_normal:"Normal",priority_high:"High",schedule_type:"Schedule type",interval_days:"Interval (days)",warning_days:"Warning days",earliest_completion_days:"Earliest completion (days before due)",earliest_completion_days_help:"Leave empty to allow completing any time. 0 = only on/after the due date.",last_performed_optional:"Last performed (optional)",interval_anchor:"Interval anchor",anchor_completion:"From completion date",anchor_planned:"From planned date (no drift)",edit_object:"Edit Object",name:"Name",manufacturer_optional:"Manufacturer (optional)",model_optional:"Model (optional)",serial_number_optional:"Serial number (optional)",serial_number_label:"S/N",documentation_url_label:"Manual",object_notes_label:"Notes",sort_due_date:"Due date",sort_object:"Object name",sort_type:"Type",sort_task_name:"Task name",all_objects:"All objects",tasks_lower:"tasks",no_tasks_yet:"No tasks yet",add_first_task:"Add first task",trigger_configuration:"Trigger Configuration",entity_id:"Entity ID",comma_separated:"comma-separated",entity_logic:"Entity logic",entity_logic_any:"Any entity triggers",entity_logic_all:"All entities must trigger",entities:"entities",attribute_optional:"Attribute (optional, blank = state)",use_entity_state:"Use entity state (no attribute)",trigger_above:"Trigger above",trigger_below:"Trigger below",for_at_least_minutes:"For at least (minutes)",safety_interval_days:"Safety interval (days, optional)",safety_interval:"Safety interval (optional)",delta_mode:"Delta mode",from_state_optional:"From state (optional)",to_state_optional:"To state (optional)",documentation_url_optional:"Documentation URL (optional)",object_notes_optional:"Notes (optional)",nfc_tag_id_optional:"NFC Tag ID (optional)",nfc_tags_empty_help:"No NFC tags registered in Home Assistant yet.",nfc_tags_open_settings:"Open Tags settings",nfc_tags_refresh:"Refresh",environmental_entity_optional:"Environmental sensor (optional)",environmental_entity_helper:"e.g. sensor.outdoor_temperature \u2014 adjusts the interval based on environmental conditions",environmental_attribute_optional:"Environmental attribute (optional)",nfc_tag_id:"NFC Tag ID",nfc_linked:"NFC tag linked",nfc_link_hint:"Click to link NFC tag",responsible_user:"Responsible User",shared_with:"Shared with (rotation)",shared_with_help:"Pick multiple people to share this task; the responsible person rotates on each completion.",rotation_strategy:"Rotation",rotation_none:"No rotation",rotation_round_robin:"Round-robin",rotation_least_completed:"Least completed",rotation_random:"Random",no_user_assigned:"(No user assigned)",all_users:"All Users",my_tasks:"My Tasks",tab_calendar:"Calendar",cal_no_events:"No maintenance",cal_window_7:"7 days",cal_window_14:"14 days",cal_window_30:"30 days",cal_window_365:"1 year",cal_every_n_days:"every {n} days",cal_source_time:"Time-based",cal_source_time_adaptive:"Time-based (adaptive)",cal_source_sensor:"Sensor-based",cal_predicted:"predicted",cal_confidence_high:"high confidence",cal_confidence_medium:"medium confidence",cal_confidence_low:"low confidence",budget_monthly:"Monthly budget",budget_yearly:"Yearly budget",groups:"Groups",new_group:"New group",edit_group:"Edit group",no_groups:"No groups yet",delete_group:"Delete group",delete_group_confirm:"Delete group '{name}'?",group_select_tasks:"Select tasks",group_name_required:"Name is required",description_optional:"Description (optional)",selected:"Selected",loading_chart:"Loading chart data...",hide_outliers:"Hide outliers (sensor glitches)",was_maintenance_needed:"Was this maintenance needed?",feedback_needed:"Needed",feedback_not_needed:"Not needed",feedback_not_sure:"Not sure",suggested_interval:"Suggested interval",apply_suggestion:"Apply",reanalyze:"Re-analyze",reanalyze_result:"New analysis",reanalyze_insufficient_data:"Not enough data to produce a recommendation",data_points:"data points",dismiss_suggestion:"Dismiss",confidence_low:"Low",confidence_medium:"Medium",confidence_high:"High",recommended:"recommended",seasonal_awareness:"Seasonal Awareness",edit_seasonal_overrides:"Edit seasonal factors",seasonal_overrides_title:"Seasonal factors (override)",seasonal_overrides_hint:"Factor per month (0.1\u20135.0). Empty = learned automatically.",seasonal_override_invalid:"Invalid value",seasonal_override_range:"Factor must be between 0.1 and 5.0",clear_all:"Clear all",seasonal_chart_title:"Seasonal Factors",seasonal_learned:"Learned",seasonal_manual:"Manual",month_jan:"Jan",month_feb:"Feb",month_mar:"Mar",month_apr:"Apr",month_may:"May",month_jun:"Jun",month_jul:"Jul",month_aug:"Aug",month_sep:"Sep",month_oct:"Oct",month_nov:"Nov",month_dec:"Dec",sensor_prediction:"Sensor Prediction",degradation_trend:"Trend",trend_rising:"Rising",trend_falling:"Falling",trend_stable:"Stable",trend_insufficient_data:"Insufficient data",days_until_threshold:"Days until threshold",threshold_exceeded:"Threshold exceeded",environmental_adjustment:"Environmental factor",sensor_prediction_urgency:"Sensor predicts threshold in ~{days} days",day_short:"day",weibull_reliability_curve:"Reliability Curve",weibull_failure_probability:"Failure Probability",weibull_r_squared:"Fit R\xB2",beta_early_failures:"Early Failures",beta_random_failures:"Random Failures",beta_wear_out:"Wear-out",beta_highly_predictable:"Highly Predictable",confidence_interval:"Confidence Interval",confidence_conservative:"Conservative",confidence_aggressive:"Optimistic",current_interval_marker:"Current interval",recommended_marker:"Recommended",characteristic_life:"Characteristic life",chart_mini_sparkline:"Trend sparkline",chart_history:"Cost and duration history",chart_seasonal:"Seasonal factors, 12 months",chart_weibull:"Weibull reliability curve",chart_sparkline:"Sensor trigger value chart",days_progress:"Days progress",qr_code:"QR Code",qr_generating:"Generating QR code\u2026",qr_error:"Failed to generate QR code.",qr_error_no_url:"No HA URL configured. Please set an external or internal URL in Settings \u2192 System \u2192 Network.",save_error:"Failed to save. Please try again.",qr_print:"Print",qr_download:"Download SVG",qr_action:"Action on scan",qr_action_view:"View maintenance info",qr_action_complete:"Mark maintenance as complete",qr_url_mode:"Link type",qr_mode_companion:"Companion App",qr_mode_local:"Local (mDNS)",qr_mode_server:"Server URL",overview:"Overview",analysis:"Analysis",recent_activities:"Recent Activities",search_notes:"Search notes",avg_cost:"Avg Cost",no_advanced_features:"No advanced features enabled",no_advanced_features_hint:"Enable \u201CAdaptive Intervals\u201D or \u201CSeasonal Patterns\u201D in the integration settings to see analysis data here.",analysis_not_enough_data:"Not enough data for analysis yet.",analysis_not_enough_data_hint:"Weibull analysis requires at least 5 completed maintenances; seasonal patterns become visible after 6+ data points per month.",analysis_manual_task_hint:"Manual tasks without an interval do not generate analysis data.",completions:"completions",current:"Current",shorter:"Shorter",longer:"Longer",normal:"Normal",disabled:"Disabled",compound_logic:"Compound logic",compound:"Compound (multiple conditions)",compound_logic_and:"AND \u2014 all conditions must trigger",compound_logic_or:"OR \u2014 any condition triggers",compound_help:"Combine several sensor conditions into one trigger.",compound_no_conditions:"No conditions yet \u2014 add at least one.",compound_add_condition:"Add condition",compound_condition:"Condition",compound_remove_condition:"Remove condition",card_title:"Title",card_show_header:"Show header with statistics",card_show_actions:"Show action buttons",card_compact:"Compact mode",card_max_items:"Max items (0 = all)",card_filter_status:"Filter by status",card_filter_status_help:"Empty = show all statuses.",card_filter_objects:"Filter by objects",card_filter_objects_help:"Empty = show all objects.",card_filter_entities:"Filter by entities (entity_ids)",card_filter_entities_help:"Pick sensor / binary_sensor entities from this integration. Empty = all.",card_loading_objects:"Loading objects\u2026",card_load_error:"Could not load objects \u2014 check the WebSocket connection.",card_no_tasks_title:"No maintenance tasks yet",card_no_tasks_cta:"\u2192 Create one in the Maintenance panel",no_objects:"No objects yet.",action_error:"Action failed. Please try again.",area_id_optional:"Area (optional)",installation_date_optional:"Installation date (optional)",warranty_expiry_optional:"Warranty expiry (optional)",warranty:"Warranty",warranty_valid_until:"valid until {date}",warranty_expires_in:"expires in {days} days",warranty_expired:"expired",cal_past_windows:"Past windows",cal_forward_windows:"Forward windows",history_edit_title:"Edit history entry",history_edit_timestamp:"Timestamp",manufacturer:"Manufacturer",model:"Model",area:"Area",actions:"Actions",view_mode_label:"View",view_cards:"Card view",view_table:"Table view",objects_table_columns_label:"Objects table columns",objects_table_columns_hint:"Choose which columns appear in the objects table view.",custom_icon_optional:"Icon (optional, e.g. mdi:wrench)",task_enabled:"Task enabled",skip_reason_prompt:"Skip this task?",reason_optional:"Reason (optional)",reset_date_prompt:"Mark task as performed?",reset_date_optional:"Last performed date (optional, defaults to today)",notes_label:"Notes",documentation_label:"Documentation",no_nfc_tag:"\u2014 No tag \u2014",dashboard:"Dashboard",tab_today:"Today",palette_placeholder:"Search objects and tasks\u2026",palette_no_results:"No matches",palette_hint:"\u2191\u2193 to navigate \xB7 Enter to open \xB7 Esc to close",today_all_caught_up:"All caught up! Nothing due this week.",today_overdue:"Overdue",today_due_today:"Due today",today_this_week:"This week",settings:"Settings",settings_features:"Advanced Features",settings_features_desc:"Enable or disable advanced features. Disabling hides them from the UI but does not delete data.",feat_adaptive:"Adaptive Scheduling",feat_adaptive_desc:"Learn optimal intervals from maintenance history",feat_predictions:"Sensor Predictions",feat_predictions_desc:"Predict trigger dates from sensor degradation",feat_seasonal:"Seasonal Adjustments",feat_seasonal_desc:"Adjust intervals based on seasonal patterns",feat_environmental:"Environmental Correlation",feat_environmental_desc:"Correlate intervals with temperature/humidity",feat_budget:"Budget Tracking",feat_budget_desc:"Track monthly and yearly maintenance spending",feat_groups:"Task Groups",feat_groups_desc:"Organize tasks into logical groups",feat_checklists:"Checklists",feat_checklists_desc:"Multi-step procedures for task completion",settings_general:"General",settings_default_warning:"Default warning days",settings_panel_enabled:"Sidebar panel",settings_panel_title:"Sidebar panel title",settings_notifications:"Notifications",settings_notify_service:"Notification service",test_notification:"Test notification",send_test:"Send test",testing:"Sending\u2026",test_notification_success:"Test notification sent",test_notification_failed:"Test notification failed",settings_notify_due_soon:"Notify when due soon",settings_notify_overdue:"Notify when overdue",settings_notify_triggered:"Notify when triggered",settings_interval_hours:"Repeat interval (hours, 0 = once)",settings_quiet_hours:"Quiet hours",settings_quiet_start:"Start",settings_quiet_end:"End",settings_max_per_day:"Max notifications per day (0 = unlimited)",settings_bundling:"Bundle notifications",settings_bundle_threshold:"Bundle threshold",settings_reminder_leads:"Extra reminders (days before due)",settings_reminder_leads_hint:"Comma-separated lead times, e.g. 14, 3, 0 \u2014 one extra reminder fires on each matching day. Empty = off.",settings_actions:"Mobile Action Buttons",settings_action_complete:"Show 'Complete' button",settings_action_skip:"Show 'Skip' button",settings_action_snooze:"Show 'Snooze' button",settings_weekly_digest:"Weekly digest",settings_weekly_digest_hint:"A single summary notification on Monday morning when tasks are due.",settings_warranty_reminder:"Warranty expiry reminder",settings_warranty_reminder_days:"Days before expiry",settings_warranty_reminder_hint:"Notify once when an object's warranty is this many days from expiring.",settings_snooze_hours:"Snooze duration (hours)",settings_budget:"Budget",settings_currency:"Currency",settings_budget_monthly:"Monthly budget",settings_budget_yearly:"Yearly budget",settings_budget_alerts:"Budget alerts",settings_budget_threshold:"Alert threshold (%)",settings_import_export:"Import / Export",settings_export_json:"Export JSON",settings_export_yaml:"Export YAML",settings_export_csv:"Export CSV",settings_import_csv:"Import CSV",settings_import_placeholder:"Paste JSON or CSV content here\u2026",settings_import_btn:"Import",settings_import_success:"{count} objects imported successfully.",settings_export_success:"Export downloaded.",settings_saved:"Setting saved.",settings_include_history:"Include history",sort_alphabetical:"Alphabetical",sort_due_soonest:"Due soonest",sort_task_count:"Task count",sort_area:"Area",sort_assigned_user:"Assigned user",sort_group:"Group",groupby_none:"No grouping",groupby_area:"By area",groupby_group:"By group",groupby_user:"By user",filter_label:"Filter",user_label:"User",sort_label:"Sort",group_by_label:"Group by",state_value_help:'Use the HA state value (usually lowercase, e.g. "on"/"off"). Case is normalised on save.',target_changes_help:"Number of matching transitions before the trigger fires (default: 1).",qr_print_title:"Print QR codes",qr_print_desc:"Generate a printable page of QR codes to cut out and stick on your equipment.",qr_print_load:"Load objects",qr_print_filter:"Filter",qr_print_objects:"Objects",qr_print_actions:"Actions",qr_print_url_mode:"Link type",qr_print_estimate:"Estimated QR codes",qr_print_over_limit:"cap is 200, narrow the filter",qr_print_generate:"Generate QR codes",qr_print_generating:"Generating\u2026",qr_print_ready:"QR codes ready",qr_print_print_button:"Print",qr_print_empty:"Nothing to generate",qr_action_skip:"Skip",vacation_title:"Vacation mode",vacation_active:"active",vacation_ended:"ended",vacation_desc:"Plan a vacation: notifications are paused during the period plus a buffer of days. You can opt specific tasks back in.",vacation_enable:"Enable vacation mode",vacation_start:"Start",vacation_end:"End",vacation_buffer:"Buffer (days)",vacation_exempt_title:"Notify anyway during vacation",vacation_exempt_desc:"Pick tasks that should still notify during vacation (e.g. critical pool chemistry).",vacation_load_tasks:"Load tasks",vacation_preview_btn:"Show preview",vacation_preview_affected:"tasks affected",vacation_event_due_soon:"becomes due soon",vacation_event_overdue:"becomes overdue",vacation_event_triggered_est:"sensor trigger possible",vacation_sensor_based:"(sensor-based)",vacation_action_notify:"Notify anyway",vacation_action_unsilence:"Silence again",vacation_marked_complete:"Marked complete",vacation_marked_skip:"Skipped",vacation_end_now:"End vacation now",add:"Add",show_stats:"Show stats + graphs",hide_stats:"Hide stats",adaptive_no_data:"Not enough completion history yet for adaptive analysis. Complete this task a few more times to unlock interval recommendations and reliability charts.",suggestion_applied:"Suggested interval applied",vacation_mode:"Vacation mode",vacation_status_active:"Active now",vacation_status_scheduled:"Scheduled",vacation_status_inactive:"Inactive",vacation_end_now_confirm:"End vacation immediately?",vacation_exempt_count:"exempt",vacation_advanced:"Advanced\u2026",vacation_open_panel:"Open in panel",enable:"Enable",saved:"Saved",budget_monthly_set:"Set monthly",budget_yearly_set:"Set yearly",budget_advanced:"Currency, alerts\u2026",budget_open_panel:"Open in panel",groups_empty:"No groups yet.",group_new_placeholder:"Add group\u2026",group_delete_confirm:'Delete group "{name}"?',groups_manage_tasks:"Manage task assignments\u2026",groups_open_panel:"Open in panel",unassigned:"Unassigned",no_area:"No area",has_overdue:"Has overdue tasks",object:"Object",settings_panel_access:"Panel access",settings_panel_access_desc:"Admins always have full access. To delegate create, edit and delete to specific non-admins, switch this on and pick them below \u2014 everyone else sees only Complete and Skip.",settings_operator_write:"Allow selected users to create, edit & delete",settings_operator_write_desc:"Off: only admins can change content. On: the selected users below get full access too.",no_non_admin_users:"No non-admin users found. Add some in Settings \u2192 People.",owner_label:"Owner",feat_completion_actions:"Completion actions",feat_completion_actions_desc:"Per-task HA action on complete + quick-complete QR with pre-set values.",on_complete_action_title:"On complete: trigger HA action (optional)",on_complete_action_desc:"Calls an HA service when the task is completed \u2014 e.g. reset a counter on the device.",on_complete_action_service:"Service",on_complete_action_target:"Target entity",on_complete_action_target_hint:"Note: the entity domain must match the service \u2014 e.g. 'button.press' only works on button.*, 'counter.increment' only on counter.*, 'input_button.press' only on input_button.* etc. On a mismatch the action will silently fail (HA logs 'Referenced entities ... missing or not currently available').",on_complete_action_data:"Data (JSON, optional)",on_complete_action_test:"Validate configuration",on_complete_action_test_success:"\u2713 Configuration valid (action will fire only on task completion)",on_complete_action_test_failed:"Failed",quick_complete_defaults_title:"Quick-complete defaults (for QR scans, optional)",quick_complete_defaults_desc:"Pre-set values for quick-complete QR scans. Without these, the QR opens the complete dialog.",quick_complete_defaults_notes:"Notes",quick_complete_defaults_cost:"Cost",quick_complete_defaults_duration:"Duration (minutes)",quick_complete_defaults_feedback_none:"No feedback",quick_complete_defaults_feedback_needed:"Was needed",quick_complete_defaults_feedback_not_needed:"Not needed",quick_complete_success:"Quickly marked complete",show_all_objects:"Show all objects",show_all_tasks:"Clear filter \u2014 show all tasks",filter_to_overdue:"Filter task list to overdue only",filter_to_due_soon:"Filter task list to due-soon only",filter_to_triggered:"Filter task list to triggered only",open_task:"Open task",show_details:"Show history + stats",hide_details:"Hide details",history_empty:"No history yet.",history_edit_button:"Edit entry",total_cost:"Total cost",times_performed:"Performed",older_entries:"older",open_in_panel:"Open in Maintenance panel",skip_reason:"Skip reason (optional)",reset_to_date:"Reset last_performed to",delete_task_confirm:"Delete this task and its history?",delete_object_confirm:"Delete this object and all its tasks?",loading:"Loading\u2026",archive:"Archive",undo:"Undo",task_archived:"Task archived",object_archived:"Object archived",unarchive:"Unarchive",archived:"Archived",show_archived:"Show archived",hide_archived:"Hide archived",confirm_archive_object:"Archive this object and its tasks? They keep their history and can be unarchived later.",settings_archive:"Archive & Retention",settings_archive_desc:"Retire completed one-off tasks without deleting them. Archived items are hidden and inert but keep their history and cost.",settings_archive_oneoff_days:"Auto-archive completed one-off tasks after (days, 0 = off)",settings_delete_archived_oneoff_days:"Auto-delete archived one-off tasks after (days, 0 = never)",archive_object:"Archive object",unarchive_object:"Unarchive object",documents:"Documents",documents_empty:"No documents yet.",doc_upload:"Upload file",doc_uploading:"Uploading\u2026",doc_add_link:"Add link",doc_link_url:"URL (https://\u2026)",doc_link_title:"Title (optional)",doc_open:"Open",doc_delete_confirm:'Delete "{name}"?',doc_too_large:"File is too large (max 25 MB).",doc_upload_failed:"Upload failed.",completion_photo_optional:"Completion photo (optional)",add_photo:"Add photo",uploading:"Uploading\u2026",remove:"Remove",doc_deduped:"Already stored elsewhere \u2014 shared, no extra space used.",doc_dup_in_object:"This file is already attached to this object.",doc_link_invalid:"Only http/https links are allowed.",doc_cat_manual:"Manual",doc_cat_warranty:"Warranty",doc_cat_invoice:"Invoice",doc_cat_spare_parts:"Spare parts",doc_cat_photo:"Photo",doc_cat_other:"Other",doc_link_badge:"Link",doc_storage_title:"Document storage",doc_storage_saved:"Saved via deduplication",doc_storage_refresh:"Refresh",doc_download:"Download",doc_close:"Close",doc_camera:"Take photo",doc_drop_hint:"Drop files here",doc_task_none:"No documents linked to this task.",doc_link_existing:"Link a document\u2026",doc_attach:"Link",doc_unlink:"Unlink",doc_page:"Page",chart_range_7d:"7d",chart_range_30d:"30d",chart_range_90d:"90d",chart_range_1y:"1y",chart_since_service:"since last service",chart_no_stats:"No long-term statistics for this entity \u2014 showing maintenance-event values only",auto_complete_on_recovery:"Auto-complete when the sensor recovers",auto_complete_on_recovery_help:"Records a completion (sets last performed) when the trigger clears itself \u2014 e.g. salt refilled, filter replaced.",doc_search:"Search documents\u2026",doc_search_none:"No matching documents",link_device_optional:"Link to existing device (optional)",parent_object_optional:"Parent object (optional)",parent_none:"(No parent)",paused:"Paused",pause_object:"Pause",resume_object:"Resume",pause_until_prompt:"Freeze this object's schedules \u2014 nothing becomes due and nothing notifies until it is resumed. Optionally set an auto-resume date.",pause_until_label:"Resume on (optional)",object_paused:"Object paused",object_resumed:"Object resumed \u2014 schedules restarted",object_paused_badge:"Paused",paused_until_label:"until",replace_object:"Replace\u2026",replace_object_prompt:"Retire this object and create a successor. History and costs stay archived on the old one; tasks and documents carry over to the new one, counters start fresh.",replace_name_label:"Successor name",object_replaced:"Object replaced \u2014 successor created",reading_unit_label:"Reading unit (e.g. kWh, m\xB3)",reading_unit_help:"Shown next to the recorded value when completing this task.",reading_value_label:"Reading value",reading_label:"Reading",settings_templates_label:"Template gallery",settings_templates_hint:`Untick templates you'll never need \u2014 they disappear from the "From template" pickers (panel and config flow). Nothing else changes; you can re-enable them any time.`,worksheet:"Work sheet",worksheet_scan_view:"Scan to open the task",worksheet_scan_complete:"Scan to complete",worksheet_manual_excerpt:"Manual excerpt",worksheet_pages:"pages",worksheet_printed:"Printed",worksheet_never:"Never",card_all_caught_up:"All caught up \u2014 nothing needs attention",postpone:"Postpone",postpone_date_prompt:"Postpone this occurrence to which date?",postpone_date_label:"New due date",postponed:"Postponed",postponed_to:"Postponed to",season_window_label:"Seasonal window (months)",season_window_hint:"Only due in the selected months; off-season dates roll to the next active month. None = all year.",series_end_label:"Ends",series_end_never:"Never (repeats indefinitely)",series_end_after_count:"After a number of times",series_end_until:"On a date",series_end_count_label:"Number of times",series_end_until_label:"End date"};var Bt="\u20AC",Wt={ok:"var(--success-color, #4caf50)",due_soon:"var(--warning-color, #ff9800)",overdue:"var(--error-color, #f44336)",triggered:"var(--deep-orange-color, #ff5722)",archived:"var(--disabled-color, #9e9e9e)",paused:"var(--info-color, #2196f3)"};var te="en",Ae=(()=>{let r=window;return r.__msLocales||(r.__msLocales={store:{},inflight:{}}),r.__msLocales})(),w=Ae.store;w.en||(w.en=xe);var Ie=new Set(["de","nl","fr","it","es","pt","ru","uk","pl","cs","sv","zh","da","fi","nb","ja","hi"]),Be="/maintenance_supporter_locales",P=Ae.inflight;function oe(r){return(r||te).substring(0,2).toLowerCase()}function _(r,e){let t=oe(e);return w[t]?.[r]??w.en[r]??r}function Gt(r){let e=oe(r);return e===te||e in w}function Vt(r){let e=oe(r);return e===te||e in w||!Ie.has(e)?Promise.resolve():(e in P||(P[e]=fetch(`${Be}/${e}.json`).then(t=>t.ok?t.json():null).then(t=>{t?w[e]=t:delete P[e]}).catch(()=>{delete P[e]})),P[e])}function $e(r){let e=(r||"en").substring(0,2).toLowerCase();return{de:"de-DE",en:"en-US",nl:"nl-NL",fr:"fr-FR",it:"it-IT",es:"es-ES",pt:"pt-PT",ru:"ru-RU",uk:"uk-UA",zh:"zh-CN",da:"da-DK",fi:"fi-FI",nb:"nb-NO",ja:"ja-JP",hi:"hi-IN"}[e]??"en-US"}function we(r,e){if(!r)return"\u2014";try{let t=r.includes("T")?r:r+"T00:00:00";return new Date(t).toLocaleDateString($e(e),{day:"2-digit",month:"2-digit",year:"numeric"})}catch{return r}}function Qt(r,e){if(!r)return"\u2014";try{let t=$e(e),o=new Date(r);return o.toLocaleDateString(t,{day:"2-digit",month:"2-digit",year:"numeric"})+" "+o.toLocaleTimeString(t,{hour:"2-digit",minute:"2-digit"})}catch{return r}}function ke(r,e,t){return r==null?"\u2014":`${r} ${_("unit_"+(e||"days"),t)}`}function Se(r,e,t="long"){let o=(e||"en").substring(0,2);return new Date(Date.UTC(2024,0,1+r)).toLocaleDateString(o,{weekday:t,timeZone:"UTC"})}function Kt(r,e){let t=r.schedule,o=t?.offset?` ${t.offset>0?"+":"\u2212"}${Math.abs(t.offset)}d`:"";switch(t?.kind){case"weekdays":return((t.weekdays||[]).map(n=>Se(n,e,"short")).join(" & ")||"\u2014")+o;case"nth_weekday":return t.weekday==null||t.nth==null?"\u2014":`${t.nth===-1?_("ord_last",e):_("ord_"+t.nth,e)} ${Se(t.weekday,e,"long")}${o}`;case"day_of_month":return t.day==null?"\u2014":(t.day===-1?_(t.business?"last_business_day_month":"last_day_month",e):`${_("day_word",e)} ${t.day}`)+o;case"one_time":return r.due_date?we(r.due_date,e):_("one_time",e);case"manual":return _("manual",e);case"interval":return ke(t.every,t.unit,e)}return r.schedule_type==="one_time"?r.due_date?we(r.due_date,e):_("one_time",e):r.schedule_type==="manual"?_("manual",e):r.schedule_type==="sensor_based"?_("sensor_based",e):r.interval_days!=null?ke(r.interval_days,r.interval_unit,e):"\u2014"}function Jt(r,e){r.currentTarget.dispatchEvent(new CustomEvent("hass-more-info",{detail:{entityId:e},bubbles:!0,composed:!0}))}var Yt=I`
|
|
:host {
|
|
--maint-ok-color: var(--success-color, #4caf50);
|
|
--maint-due-soon-color: var(--warning-color, #ff9800);
|
|
--maint-overdue-color: var(--error-color, #f44336);
|
|
--maint-triggered-color: #ff5722;
|
|
}
|
|
|
|
.status-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: white;
|
|
white-space: nowrap;
|
|
/* Fixed minimum so OK / Due Soon / Overdue / Triggered pills are uniform
|
|
width in the task table — keeps the object-name column aligned. */
|
|
min-width: 70px;
|
|
box-sizing: border-box;
|
|
}
|
|
/* Shape icon so status is not conveyed by colour alone (accessibility). */
|
|
.status-badge ha-icon { --mdc-icon-size: 14px; margin-left: -1px; }
|
|
|
|
.status-badge.ok { background-color: var(--maint-ok-color); }
|
|
.status-badge.due_soon { background-color: var(--maint-due-soon-color); }
|
|
.status-badge.overdue { background-color: var(--maint-overdue-color); }
|
|
.status-badge.triggered { background-color: var(--maint-triggered-color); }
|
|
/* Completed one-time task ("done") — muted blue-grey. */
|
|
.status-badge.done { background-color: var(--maint-done-color, #78909c); }
|
|
/* v2.10.0: archived (retire-but-retain) — neutral grey, clearly inert. */
|
|
.status-badge.archived { background-color: var(--disabled-color, #9e9e9e); }
|
|
/* v2.20 (N3): paused — frozen but present, info blue. */
|
|
.status-badge.paused { background-color: var(--info-color, #2196f3); }
|
|
|
|
/* v1.4.7: 5-column grid so all 5 KPIs (Objects/Tasks/Overdue/Due Soon/
|
|
Triggered) always stay in one row. The previous flex-wrap layout was
|
|
wrapping the 5th item (Triggered, the widest label) onto its own row
|
|
on narrow viewports because the natural width of the items pushed past
|
|
the container width. Grid forces equal 1/5 distribution regardless of
|
|
label length. */
|
|
.stats-bar {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
gap: 16px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.stat-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
min-width: 0;
|
|
}
|
|
.stat-item .stat-label {
|
|
/* Allow long labels to ellipsis rather than overflow the grid cell. */
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.stat-item.clickable { cursor: pointer; border-radius: 8px; padding: 4px 8px; transition: background 0.15s, box-shadow 0.15s; }
|
|
.stat-item.clickable:hover { background: var(--secondary-background-color); }
|
|
/* v2.1.0 — KPIs that map to a status filter highlight when active so the
|
|
user can see at a glance which filter is on, even after scrolling away. */
|
|
.stat-item.clickable.active {
|
|
background: var(--secondary-background-color);
|
|
box-shadow: inset 0 -3px 0 var(--primary-color);
|
|
}
|
|
|
|
.objects-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
|
gap: 16px;
|
|
padding: 16px 0;
|
|
}
|
|
.object-card {
|
|
padding: 16px;
|
|
background: var(--card-background-color);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
border: 1px solid var(--divider-color);
|
|
transition: transform 0.15s, box-shadow 0.15s;
|
|
/* Large installs (100+ objects): skip rendering off-screen cards. The
|
|
intrinsic size keeps the scrollbar stable while they're skipped. */
|
|
content-visibility: auto;
|
|
contain-intrinsic-size: auto 120px;
|
|
}
|
|
.object-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
|
|
.object-card-header { display: flex; justify-content: space-between; align-items: center; }
|
|
.object-card-name { font-weight: 500; font-size: 16px; }
|
|
.object-card-count { color: var(--secondary-text-color); font-size: 13px; }
|
|
.object-card-meta { color: var(--secondary-text-color); font-size: 13px; margin-top: 4px; }
|
|
.object-card-empty { color: var(--warning-color); font-size: 13px; margin-top: 8px; font-style: italic; }
|
|
|
|
/* Overdue indicator dot on object cards (#35) */
|
|
.object-card { position: relative; }
|
|
.object-card-overdue { border-left: 3px solid var(--error-color); }
|
|
.overdue-dot {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 12px;
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: var(--error-color);
|
|
box-shadow: 0 0 0 2px var(--card-background-color);
|
|
}
|
|
|
|
/* Group-by collapsible sections (#35 + #36) */
|
|
.group-section {
|
|
margin: 12px 0;
|
|
border: 1px solid var(--divider-color);
|
|
border-radius: 8px;
|
|
background: var(--card-background-color);
|
|
}
|
|
.group-section[open] { padding-bottom: 8px; }
|
|
.group-section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 16px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
list-style: none;
|
|
user-select: none;
|
|
}
|
|
.group-section-header::-webkit-details-marker { display: none; }
|
|
.group-section-header::before {
|
|
content: "▶";
|
|
font-size: 10px;
|
|
color: var(--secondary-text-color);
|
|
transition: transform 0.15s;
|
|
}
|
|
.group-section[open] .group-section-header::before { transform: rotate(90deg); }
|
|
.group-section-count {
|
|
color: var(--secondary-text-color);
|
|
font-size: 13px;
|
|
font-weight: 400;
|
|
}
|
|
.group-section .objects-grid,
|
|
.group-section .task-table {
|
|
padding: 0 12px;
|
|
}
|
|
|
|
.empty-state-centered { text-align: center; padding: 32px 16px; }
|
|
.empty-state-centered ha-button { margin-top: 16px; }
|
|
|
|
.stat-value {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
color: var(--primary-text-color);
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 12px;
|
|
color: var(--secondary-text-color);
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 16px;
|
|
}
|
|
|
|
.card-header h1 {
|
|
margin: 0;
|
|
font-size: 20px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.action-buttons ha-button {
|
|
--ha-button-font-size: 13px;
|
|
}
|
|
|
|
.history-timeline { padding: 0 16px 16px; }
|
|
|
|
.history-entry {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid var(--divider-color);
|
|
/* Long histories: skip painting off-screen entries (flex, not subgrid, so
|
|
safe — subgrid task rows can't use this without breaking alignment). */
|
|
content-visibility: auto;
|
|
contain-intrinsic-size: auto 48px;
|
|
}
|
|
.history-entry:last-child { border-bottom: none; }
|
|
|
|
.history-icon {
|
|
flex-shrink: 0;
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
color: white;
|
|
}
|
|
|
|
.history-icon.completed { background: var(--maint-ok-color); }
|
|
.history-icon.skipped { background: var(--secondary-text-color); }
|
|
.history-icon.reset { background: var(--info-color, #2196f3); }
|
|
.history-icon.triggered { background: var(--maint-triggered-color); }
|
|
|
|
.history-content { flex: 1; min-width: 0; }
|
|
|
|
/* v2.2.0 — row holds the type label + the small Edit button */
|
|
.history-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
.history-edit-btn {
|
|
background: transparent;
|
|
color: var(--secondary-text-color);
|
|
border: none;
|
|
border-radius: 4px;
|
|
padding: 4px;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
transition: background 0.15s, color 0.15s;
|
|
}
|
|
.history-edit-btn:hover {
|
|
background: var(--secondary-background-color);
|
|
color: var(--primary-color);
|
|
}
|
|
.history-edit-btn ha-icon { --mdc-icon-size: 16px; }
|
|
|
|
.history-date {
|
|
font-size: 12px;
|
|
color: var(--secondary-text-color);
|
|
}
|
|
|
|
.history-details {
|
|
display: flex;
|
|
gap: 12px;
|
|
font-size: 13px;
|
|
color: var(--secondary-text-color);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* History filter chips */
|
|
.history-filters {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.filter-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 4px 12px;
|
|
border-radius: 16px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
background: var(--secondary-background-color, #f5f5f5);
|
|
color: var(--primary-text-color);
|
|
border: 1px solid var(--divider-color);
|
|
transition: all 0.2s;
|
|
user-select: none;
|
|
}
|
|
|
|
.filter-chip:hover { background: var(--divider-color); }
|
|
|
|
.filter-chip.active {
|
|
background: var(--primary-color);
|
|
color: var(--text-primary-color, #fff);
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
.filter-chip.clear {
|
|
font-style: italic;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Cost/Duration history chart */
|
|
.history-chart {
|
|
width: 100%;
|
|
height: 200px;
|
|
display: block;
|
|
}
|
|
|
|
.chart-legend {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 16px;
|
|
margin-top: 4px;
|
|
font-size: 11px;
|
|
color: var(--secondary-text-color);
|
|
}
|
|
|
|
.legend-item {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.legend-swatch {
|
|
display: inline-block;
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 48px 16px;
|
|
color: var(--secondary-text-color);
|
|
}
|
|
|
|
.empty-state ha-svg-icon {
|
|
--mdc-icon-size: 48px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/* Sparkline chart */
|
|
.sparkline-container { position: relative; margin: 8px 0; }
|
|
|
|
.sparkline-svg {
|
|
width: 100%;
|
|
height: 140px;
|
|
display: block;
|
|
}
|
|
|
|
/* Trigger info card */
|
|
.trigger-card {
|
|
background: var(--card-background-color, #fff);
|
|
border-radius: 12px;
|
|
padding: 12px 16px;
|
|
margin: 8px 0;
|
|
border: 1px solid var(--divider-color);
|
|
}
|
|
|
|
.trigger-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.trigger-entity-name { font-weight: 500; font-size: 14px; }
|
|
.trigger-entity-id { font-size: 11px; color: var(--secondary-text-color); font-family: monospace; }
|
|
|
|
.entity-link {
|
|
cursor: pointer;
|
|
text-decoration: underline dotted;
|
|
text-underline-offset: 2px;
|
|
}
|
|
.entity-link:hover {
|
|
color: var(--primary-color);
|
|
text-decoration: underline solid;
|
|
}
|
|
|
|
.trigger-value-row {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 6px;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.trigger-current { font-size: 28px; font-weight: 700; color: var(--primary-text-color); }
|
|
.trigger-current.active { color: var(--maint-triggered-color); }
|
|
.trigger-unit { font-size: 14px; color: var(--secondary-text-color); }
|
|
|
|
/* Counter progress ("8,507 / 15,000 km · 57 %" + bar) */
|
|
.counter-progress { margin: 6px 0 4px; }
|
|
.counter-progress-nums {
|
|
display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
|
|
}
|
|
.counter-progress-main { font-size: 26px; font-weight: 700; color: var(--primary-text-color); }
|
|
.counter-progress-target { font-size: 15px; font-weight: 500; color: var(--secondary-text-color); }
|
|
.counter-progress-pct { font-size: 15px; font-weight: 700; }
|
|
.counter-progress-pct.ok { color: var(--success-color, #4caf50); }
|
|
.counter-progress-pct.near { color: var(--warning-color, #ff9800); }
|
|
.counter-progress-pct.over { color: var(--error-color, #f44336); }
|
|
.counter-progress-bar {
|
|
height: 8px; border-radius: 4px; margin: 6px 0 4px; overflow: hidden;
|
|
background: var(--secondary-background-color, rgba(0, 0, 0, 0.08));
|
|
}
|
|
.counter-progress-fill { height: 100%; border-radius: 4px; transition: width 0.3s ease; }
|
|
.counter-progress-fill.ok { background: var(--success-color, #4caf50); }
|
|
.counter-progress-fill.near { background: var(--warning-color, #ff9800); }
|
|
.counter-progress-fill.over { background: var(--error-color, #f44336); }
|
|
.counter-progress-caption { font-size: 12px; color: var(--secondary-text-color); }
|
|
|
|
/* Note under a chart that fell back to sparse maintenance-event values */
|
|
.chart-note {
|
|
display: flex; align-items: center; gap: 6px; margin-top: 2px;
|
|
font-size: 12px; color: var(--secondary-text-color);
|
|
}
|
|
.chart-note ha-icon { --mdc-icon-size: 15px; flex: none; }
|
|
|
|
.trigger-limits {
|
|
display: flex;
|
|
gap: 16px;
|
|
font-size: 13px;
|
|
color: var(--secondary-text-color);
|
|
margin: 6px 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.trigger-limit-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.trigger-limit-item .dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
.trigger-limit-item .dot.warn { background: var(--error-color, #f44336); }
|
|
.trigger-limit-item .dot.range { background: var(--secondary-text-color); }
|
|
.trigger-limit-item .dot.ok { background: var(--maint-ok-color); }
|
|
|
|
/* Row action buttons */
|
|
.row-actions {
|
|
display: flex;
|
|
gap: 0;
|
|
flex-shrink: 0;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.row-actions mwc-icon-button {
|
|
--mdc-icon-button-size: 32px;
|
|
--mdc-icon-size: 18px;
|
|
}
|
|
|
|
.row-actions .btn-complete { color: var(--maint-ok-color); }
|
|
.row-actions .btn-skip { color: var(--secondary-text-color); }
|
|
|
|
/* Days bar for overview */
|
|
.due-cell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
min-width: 90px;
|
|
gap: 2px;
|
|
}
|
|
|
|
.due-text { font-size: 13px; }
|
|
|
|
.days-bar {
|
|
width: 100%;
|
|
height: 3px;
|
|
background: var(--divider-color);
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.days-bar-fill {
|
|
height: 100%;
|
|
border-radius: 2px;
|
|
transition: width 0.3s;
|
|
}
|
|
|
|
/* Trigger progress bar (overview rows). width:100% — the due-cell doesn't
|
|
stretch its children (align-items: flex-end), so without it the bar
|
|
shrinks to its label and reads shorter than the days-bar in other rows. */
|
|
.trigger-progress {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
width: 100%;
|
|
min-width: 90px;
|
|
}
|
|
|
|
.trigger-progress-bar {
|
|
width: 100%;
|
|
height: 6px;
|
|
background: var(--divider-color);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.trigger-progress-fill {
|
|
height: 100%;
|
|
border-radius: 2px;
|
|
transition: width 0.3s;
|
|
}
|
|
|
|
.trigger-progress-label {
|
|
font-size: 12px;
|
|
color: var(--secondary-text-color);
|
|
text-align: right;
|
|
}
|
|
|
|
/* Days progress bar (detail view) */
|
|
.days-progress {
|
|
margin: 8px 0 16px;
|
|
padding: 12px 16px;
|
|
background: var(--card-background-color, #fff);
|
|
border-radius: 12px;
|
|
border: 1px solid var(--divider-color);
|
|
}
|
|
|
|
.days-progress-labels {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 12px;
|
|
color: var(--secondary-text-color);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.days-progress-bar {
|
|
width: 100%;
|
|
height: 6px;
|
|
background: var(--divider-color);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.days-progress-fill {
|
|
height: 100%;
|
|
border-radius: 3px;
|
|
transition: width 0.3s;
|
|
}
|
|
|
|
.days-progress-text {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
margin-top: 6px;
|
|
color: var(--primary-text-color);
|
|
}
|
|
|
|
/* Mini-sparkline in overview rows */
|
|
.mini-sparkline {
|
|
width: 60px;
|
|
height: 20px;
|
|
display: block;
|
|
margin-top: 2px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Overflow indicator for overdue progress bars */
|
|
.days-bar-fill.overflow,
|
|
.days-progress-fill.overflow,
|
|
.trigger-progress-fill.overflow {
|
|
background-image: repeating-linear-gradient(
|
|
-45deg,
|
|
transparent,
|
|
transparent 3px,
|
|
rgba(255,255,255,0.2) 3px,
|
|
rgba(255,255,255,0.2) 6px
|
|
);
|
|
animation: overflow-pulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes overflow-pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.7; }
|
|
}
|
|
|
|
/* Budget bars */
|
|
.budget-bars {
|
|
display: flex;
|
|
gap: 16px;
|
|
padding: 8px 16px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.budget-item {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.budget-label {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 12px;
|
|
color: var(--secondary-text-color);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.budget-bar {
|
|
width: 100%;
|
|
height: 6px;
|
|
background: var(--divider-color);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.budget-bar-fill {
|
|
height: 100%;
|
|
border-radius: 3px;
|
|
transition: width 0.3s;
|
|
}
|
|
|
|
/* Groups section */
|
|
.groups-section {
|
|
padding: 8px 16px 16px;
|
|
}
|
|
|
|
.groups-section h3 {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--secondary-text-color);
|
|
margin: 0 0 8px;
|
|
}
|
|
|
|
.groups-grid {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.group-card {
|
|
background: var(--card-background-color, #fff);
|
|
border: 1px solid var(--divider-color);
|
|
border-radius: 12px;
|
|
padding: 12px 16px;
|
|
min-width: 180px;
|
|
flex: 1;
|
|
max-width: 300px;
|
|
cursor: default;
|
|
}
|
|
|
|
.group-card-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
|
|
.group-card-name {
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.group-card-actions {
|
|
display: flex;
|
|
gap: 0;
|
|
}
|
|
.group-card-actions mwc-icon-button {
|
|
--mdc-icon-button-size: 28px;
|
|
--mdc-icon-size: 16px;
|
|
color: var(--secondary-text-color);
|
|
}
|
|
|
|
.groups-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
.groups-header h3 { margin: 0; }
|
|
|
|
.seasonal-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.group-card-desc {
|
|
font-size: 12px;
|
|
color: var(--secondary-text-color);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.group-card-tasks {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.group-task-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
background: var(--secondary-background-color, #f5f5f5);
|
|
color: var(--primary-text-color);
|
|
}
|
|
|
|
/* Adaptive scheduling suggestion badge */
|
|
.suggestion-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 10px;
|
|
border-radius: 16px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
background: var(--info-color, #2196f3);
|
|
color: white;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.suggestion-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.suggestion-actions ha-button {
|
|
--ha-button-font-size: 12px;
|
|
}
|
|
|
|
.confidence-dot {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.confidence-dot.low { background: var(--secondary-text-color); }
|
|
.confidence-dot.medium { background: var(--warning-color, #ff9800); }
|
|
.confidence-dot.high { background: var(--success-color, #4caf50); }
|
|
|
|
/* Feedback toggle buttons in complete dialog */
|
|
.feedback-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 8px 0;
|
|
border-top: 1px solid var(--divider-color);
|
|
}
|
|
|
|
.feedback-label {
|
|
font-weight: 500;
|
|
font-size: 13px;
|
|
color: var(--secondary-text-color);
|
|
}
|
|
|
|
.feedback-buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.feedback-btn {
|
|
flex: 1;
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--divider-color);
|
|
border-radius: 8px;
|
|
background: var(--card-background-color, #fff);
|
|
color: var(--primary-text-color);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.feedback-btn:hover {
|
|
background: var(--secondary-background-color, #f5f5f5);
|
|
}
|
|
|
|
.feedback-btn.selected {
|
|
background: var(--primary-color);
|
|
color: var(--text-primary-color, #fff);
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
/* Seasonal chart */
|
|
.seasonal-chart {
|
|
padding: 12px 16px;
|
|
margin: 8px 0;
|
|
background: var(--card-background-color, #fff);
|
|
border-radius: 12px;
|
|
border: 1px solid var(--divider-color);
|
|
}
|
|
|
|
.seasonal-chart-title {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--secondary-text-color);
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.seasonal-chart-title .source-tag {
|
|
font-size: 10px;
|
|
padding: 1px 6px;
|
|
border-radius: 8px;
|
|
background: var(--secondary-background-color, #f5f5f5);
|
|
color: var(--secondary-text-color);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.seasonal-chart svg {
|
|
width: 100%;
|
|
height: 100px;
|
|
display: block;
|
|
}
|
|
|
|
.seasonal-labels {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 0 2px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.seasonal-label {
|
|
font-size: 10px;
|
|
color: var(--secondary-text-color);
|
|
text-align: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.seasonal-label.active-month {
|
|
font-weight: 700;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.seasonal-factor-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
background: var(--secondary-background-color, #f5f5f5);
|
|
color: var(--secondary-text-color);
|
|
margin-left: 6px;
|
|
}
|
|
|
|
.seasonal-factor-tag.short {
|
|
background: rgba(76, 175, 80, 0.15);
|
|
color: var(--success-color, #4caf50);
|
|
}
|
|
|
|
.seasonal-factor-tag.long {
|
|
background: rgba(255, 152, 0, 0.15);
|
|
color: var(--warning-color, #ff9800);
|
|
}
|
|
|
|
/* --- Sensor Prediction Section (Phase 3) --- */
|
|
|
|
.prediction-section {
|
|
margin: 16px 0;
|
|
padding: 12px 16px;
|
|
background: var(--card-background-color, #fff);
|
|
border-radius: 12px;
|
|
border: 1px solid var(--divider-color, #e0e0e0);
|
|
}
|
|
|
|
.prediction-urgency-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
margin-bottom: 12px;
|
|
border-radius: 8px;
|
|
background: rgba(255, 152, 0, 0.15);
|
|
color: var(--warning-color, #ff9800);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
}
|
|
.prediction-urgency-banner ha-svg-icon {
|
|
--mdc-icon-size: 18px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.prediction-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--primary-text-color);
|
|
margin-bottom: 10px;
|
|
}
|
|
.prediction-title ha-svg-icon {
|
|
--mdc-icon-size: 16px;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.prediction-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
|
|
.prediction-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 12px;
|
|
color: var(--secondary-text-color);
|
|
}
|
|
.prediction-item ha-svg-icon {
|
|
--mdc-icon-size: 14px;
|
|
color: var(--secondary-text-color);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.prediction-label {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.prediction-value {
|
|
font-weight: 600;
|
|
color: var(--primary-text-color);
|
|
}
|
|
.prediction-value.rising { color: var(--error-color, #f44336); }
|
|
.prediction-value.falling { color: var(--info-color, #2196f3); }
|
|
.prediction-value.stable { color: var(--success-color, #4caf50); }
|
|
.prediction-value.exceeded { color: var(--error-color, #f44336); font-weight: 700; }
|
|
.prediction-value.urgent { color: var(--warning-color, #ff9800); font-weight: 700; }
|
|
|
|
.prediction-rate {
|
|
font-size: 11px;
|
|
opacity: 0.7;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.prediction-date {
|
|
font-size: 11px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.prediction-entity {
|
|
font-size: 10px;
|
|
opacity: 0.6;
|
|
font-family: monospace;
|
|
}
|
|
|
|
/* --- Weibull Reliability Section (Phase 4) --- */
|
|
|
|
.weibull-section {
|
|
margin: 16px 0;
|
|
padding: 12px 16px;
|
|
background: var(--card-background-color, #fff);
|
|
border-radius: 12px;
|
|
border: 1px solid var(--divider-color, #e0e0e0);
|
|
}
|
|
|
|
.weibull-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--primary-text-color);
|
|
margin-bottom: 10px;
|
|
}
|
|
.weibull-title ha-svg-icon {
|
|
--mdc-icon-size: 16px;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.weibull-chart svg {
|
|
width: 100%;
|
|
height: 160px;
|
|
display: block;
|
|
}
|
|
|
|
.weibull-info-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.weibull-info-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 12px;
|
|
color: var(--secondary-text-color);
|
|
}
|
|
|
|
.weibull-info-value {
|
|
font-weight: 600;
|
|
color: var(--primary-text-color);
|
|
}
|
|
|
|
/* Beta interpretation badge */
|
|
.beta-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 10px;
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
.beta-badge ha-svg-icon {
|
|
--mdc-icon-size: 14px;
|
|
}
|
|
|
|
.beta-badge.early_failures {
|
|
background: rgba(244, 67, 54, 0.15);
|
|
color: var(--error-color, #f44336);
|
|
}
|
|
.beta-badge.random_failures {
|
|
background: var(--secondary-background-color, #f5f5f5);
|
|
color: var(--secondary-text-color);
|
|
}
|
|
.beta-badge.wear_out {
|
|
background: rgba(255, 152, 0, 0.15);
|
|
color: var(--warning-color, #ff9800);
|
|
}
|
|
.beta-badge.highly_predictable {
|
|
background: rgba(76, 175, 80, 0.15);
|
|
color: var(--success-color, #4caf50);
|
|
}
|
|
|
|
/* Confidence interval range bar */
|
|
.confidence-range {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.confidence-range-title {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--secondary-text-color);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.confidence-bar {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 8px;
|
|
background: var(--divider-color, #e0e0e0);
|
|
border-radius: 4px;
|
|
overflow: visible;
|
|
}
|
|
|
|
.confidence-fill {
|
|
position: absolute;
|
|
height: 100%;
|
|
border-radius: 4px;
|
|
background: var(--primary-color, #03a9f4);
|
|
opacity: 0.25;
|
|
}
|
|
|
|
.confidence-marker {
|
|
position: absolute;
|
|
top: -4px;
|
|
width: 3px;
|
|
height: 16px;
|
|
border-radius: 1px;
|
|
transform: translateX(-50%);
|
|
}
|
|
.confidence-marker.recommended {
|
|
background: var(--success-color, #4caf50);
|
|
}
|
|
.confidence-marker.current {
|
|
background: var(--primary-color, #03a9f4);
|
|
}
|
|
|
|
.confidence-labels {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.confidence-text {
|
|
font-size: 10px;
|
|
color: var(--secondary-text-color);
|
|
}
|
|
.confidence-text.low {
|
|
text-align: left;
|
|
}
|
|
.confidence-text.high {
|
|
text-align: right;
|
|
}
|
|
|
|
.task-disabled { opacity: 0.5; }
|
|
.badge-disabled {
|
|
font-size: 10px;
|
|
padding: 1px 6px;
|
|
border-radius: 8px;
|
|
background: var(--disabled-color, #9e9e9e);
|
|
color: white;
|
|
}
|
|
|
|
/* ── Shared responsive styles (panel + card) ── */
|
|
@media (max-width: 600px) {
|
|
.row-actions mwc-icon-button {
|
|
--mdc-icon-button-size: 44px;
|
|
--mdc-icon-size: 22px;
|
|
}
|
|
|
|
.due-cell { min-width: 70px; }
|
|
|
|
.trigger-card { padding: 10px 12px; }
|
|
.trigger-current { font-size: 22px; }
|
|
|
|
.prediction-grid { flex-direction: column; gap: 8px; }
|
|
|
|
.weibull-info-row { flex-direction: column; gap: 8px; }
|
|
|
|
.budget-bars { flex-direction: column; }
|
|
.budget-item { min-width: 0; }
|
|
|
|
.group-card { min-width: 0; max-width: 100%; }
|
|
|
|
.filter-chip { padding: 6px 12px; font-size: 13px; }
|
|
|
|
.history-details { flex-wrap: wrap; gap: 6px; }
|
|
|
|
.sparkline-container { max-width: 100%; overflow: hidden; }
|
|
.sparkline-svg { height: 100px; }
|
|
|
|
.stats-bar { gap: 8px; padding: 12px; }
|
|
.stat-item { min-width: 60px; }
|
|
.stat-value { font-size: 20px; }
|
|
}
|
|
`;var We={name:"name",task_type:"maintenance_type",schedule_type:"schedule_type",interval_days:"interval_days",interval_anchor:"interval_anchor",warning_days:"warning_days",last_performed:"last_performed_optional",notes:"notes_optional",documentation_url:"documentation_url_optional",custom_icon:"custom_icon_optional",nfc_tag_id:"nfc_tag_id_optional",responsible_user_id:"responsible_user",entity_slug:"entity_slug",entity_id:"entity_id",area_id:"area_id_optional",manufacturer:"manufacturer_optional",model:"model_optional",serial_number:"serial_number_optional",installation_date:"installation_date_optional",warranty_expiry:"warranty_expiry_optional",checklist:"checklist_steps_optional",reason:"reason",feedback:"feedback",cost:"cost",duration:"duration",description:"description_optional",group_name:"name",group_description:"description_optional",environmental_entity:"environmental_entity_optional",environmental_attribute:"environmental_attribute_optional",trigger_above:"trigger_above",trigger_below:"trigger_below",trigger_for_minutes:"trigger_for_minutes"};function Ge(r,e){let t=We[r];if(!t)return r;let o=_(t,e);return o&&o!==t?o:r}function Ve(r){let t=r.match(/data\['([^']+)'\]/)?.[1],o;return(o=r.match(/length of value must be at most (\d+)/))?{field:t,rule:"too_long",param:o[1]}:(o=r.match(/length of value must be at least (\d+)/))?{field:t,rule:"too_short",param:o[1]}:(o=r.match(/value must be at most (\S+)/))?{field:t,rule:"value_too_high",param:o[1]}:(o=r.match(/value must be at least (\S+)/))?{field:t,rule:"value_too_low",param:o[1]}:/required key not provided/.test(r)?{field:t,rule:"required"}:(o=r.match(/expected (\w+)/))?{field:t,rule:"wrong_type",param:o[1]}:/value must be one of/.test(r)?{field:t,rule:"invalid_choice"}:/not a valid value/.test(r)?{field:t,rule:"invalid_value"}:{field:t,rule:"unknown"}}function eo(r,e,t){if(t=t??_("action_error",e),typeof r=="string")return r;if(typeof r!="object"||r===null)return t;let o=r,n=o.message||o.error?.message||"";if(!n)return t;let i=Ve(n),a=i.field?Ge(i.field,e):"",l=s=>_(s,e).replace("{field}",a).replace("{n}",i.param??"");switch(i.rule){case"too_long":return l("err_too_long");case"too_short":return l("err_too_short");case"value_too_high":return l("err_value_too_high");case"value_too_low":return l("err_value_too_low");case"required":return l("err_required");case"wrong_type":return l("err_wrong_type").replace("{type}",i.param??"");case"invalid_choice":return l("err_invalid_choice");case"invalid_value":return l("err_invalid_value");default:return n||t}}export{I as a,Ze as b,Xe as c,p as d,A as e,ve as f,mt as g,Bt as h,Wt as i,_ as j,Gt as k,Vt as l,we as m,Qt as n,Se as o,Kt as p,Jt as q,Yt as r,eo as s};
|
|
/*! Bundled license information:
|
|
|
|
@lit/reactive-element/css-tag.js:
|
|
(**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*)
|
|
|
|
@lit/reactive-element/reactive-element.js:
|
|
lit-html/lit-html.js:
|
|
lit-element/lit-element.js:
|
|
@lit/reactive-element/decorators/property.js:
|
|
@lit/reactive-element/decorators/state.js:
|
|
@lit/reactive-element/decorators/custom-element.js:
|
|
@lit/reactive-element/decorators/event-options.js:
|
|
@lit/reactive-element/decorators/base.js:
|
|
@lit/reactive-element/decorators/query.js:
|
|
@lit/reactive-element/decorators/query-all.js:
|
|
@lit/reactive-element/decorators/query-async.js:
|
|
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
(**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*)
|
|
|
|
lit-html/is-server.js:
|
|
(**
|
|
* @license
|
|
* Copyright 2022 Google LLC
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*)
|
|
|
|
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
(**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*)
|
|
*/
|