@roxyapi/ui 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/components/transits-table.js +36 -31
- package/dist/cdn/components/transits-table.js.map +3 -3
- package/dist/cdn/roxy-ui.js +35 -30
- package/dist/cdn/roxy-ui.js.map +3 -3
- package/dist/components/transits-table.d.ts.map +1 -1
- package/dist/components/transits-table.js +35 -30
- package/dist/components/transits-table.js.map +2 -2
- package/dist/index.cjs +36 -31
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +36 -31
- package/dist/index.js.map +2 -2
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/transits-table.ts +39 -31
- package/src/version.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";var RoxyUI_transits_table=(()=>{var z=Object.defineProperty;var nt=Object.getOwnPropertyDescriptor;var Nt=Object.getOwnPropertyNames;var Tt=Object.prototype.hasOwnProperty;var Rt=(s,t)=>{for(var e in t)z(s,e,{get:t[e],enumerable:!0})},Mt=(s,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Nt(t))!Tt.call(s,o)&&o!==e&&z(s,o,{get:()=>t[o],enumerable:!(r=nt(t,o))||r.enumerable});return s};var Lt=s=>Mt(z({},"__esModule",{value:!0}),s),W=(s,t,e,r)=>{for(var o=r>1?void 0:r?nt(t,e):t,i=s.length-1,n;i>=0;i--)(n=s[i])&&(o=(r?n(t,e,o):n(o))||o);return r&&o&&z(t,e,o),o};var Jt={};Rt(Jt,{RoxyTransitsTable:()=>A});var q=globalThis,D=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Y=Symbol(),at=new WeakMap,E=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Y)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(D&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=at.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&at.set(e,t))}return t}toString(){return this.cssText}},lt=s=>new E(typeof s=="string"?s:s+"",void 0,Y),C=(s,...t)=>{let e=s.length===1?s[0]:t.reduce((r,o,i)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[i+1],s[0]);return new E(e,s,Y)},ct=(s,t)=>{if(D)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=q.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,s.appendChild(r)}},K=D?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return lt(e)})(s):s;var{is:Ut,defineProperty:Ot,getOwnPropertyDescriptor:Ht,getOwnPropertyNames:kt,getOwnPropertySymbols:zt,getPrototypeOf:qt}=Object,j=globalThis,pt=j.trustedTypes,Dt=pt?pt.emptyScript:"",jt=j.reactiveElementPolyfillSupport,P=(s,t)=>s,N={toAttribute(s,t){switch(t){case Boolean:s=s?Dt:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},
|
|
1
|
+
"use strict";var RoxyUI_transits_table=(()=>{var z=Object.defineProperty;var nt=Object.getOwnPropertyDescriptor;var Nt=Object.getOwnPropertyNames;var Tt=Object.prototype.hasOwnProperty;var Rt=(s,t)=>{for(var e in t)z(s,e,{get:t[e],enumerable:!0})},Mt=(s,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Nt(t))!Tt.call(s,o)&&o!==e&&z(s,o,{get:()=>t[o],enumerable:!(r=nt(t,o))||r.enumerable});return s};var Lt=s=>Mt(z({},"__esModule",{value:!0}),s),W=(s,t,e,r)=>{for(var o=r>1?void 0:r?nt(t,e):t,i=s.length-1,n;i>=0;i--)(n=s[i])&&(o=(r?n(t,e,o):n(o))||o);return r&&o&&z(t,e,o),o};var Jt={};Rt(Jt,{RoxyTransitsTable:()=>A});var q=globalThis,D=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Y=Symbol(),at=new WeakMap,E=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Y)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(D&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=at.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&at.set(e,t))}return t}toString(){return this.cssText}},lt=s=>new E(typeof s=="string"?s:s+"",void 0,Y),C=(s,...t)=>{let e=s.length===1?s[0]:t.reduce((r,o,i)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[i+1],s[0]);return new E(e,s,Y)},ct=(s,t)=>{if(D)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=q.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,s.appendChild(r)}},K=D?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return lt(e)})(s):s;var{is:Ut,defineProperty:Ot,getOwnPropertyDescriptor:Ht,getOwnPropertyNames:kt,getOwnPropertySymbols:zt,getPrototypeOf:qt}=Object,j=globalThis,pt=j.trustedTypes,Dt=pt?pt.emptyScript:"",jt=j.reactiveElementPolyfillSupport,P=(s,t)=>s,N={toAttribute(s,t){switch(t){case Boolean:s=s?Dt:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},B=(s,t)=>!Ut(s,t),ht={attribute:!0,type:String,converter:N,reflect:!1,useDefault:!1,hasChanged:B};Symbol.metadata??=Symbol("metadata"),j.litPropertyMetadata??=new WeakMap;var g=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ht){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&Ot(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){let{get:o,set:i}=Ht(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:o,set(n){let l=o?.call(this);i?.call(this,n),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ht}static _$Ei(){if(this.hasOwnProperty(P("elementProperties")))return;let t=qt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(P("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(P("properties"))){let e=this.properties,r=[...kt(e),...zt(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let o of r)e.unshift(K(o))}else t!==void 0&&e.push(K(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.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(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ct(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let i=(r.converter?.toAttribute!==void 0?r.converter:N).toAttribute(e,r.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,e){let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let i=r.getPropertyOptions(o),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:N;this._$Em=o;let l=n.fromAttribute(e,i.type);this[o]=l??this._$Ej?.get(o)??l,this._$Em=null}}requestUpdate(t,e,r,o=!1,i){if(t!==void 0){let n=this.constructor;if(o===!1&&(i=this[t]),r??=n.getPropertyOptions(t),!((r.hasChanged??B)(i,e)||r.useDefault&&r.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:o,wrapped:i},n){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[o,i]of r){let{wrapped:n}=i,l=this[o];n!==!0||this._$AL.has(o)||l===void 0||this.C(o,void 0,i,l)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};g.elementStyles=[],g.shadowRootOptions={mode:"open"},g[P("elementProperties")]=new Map,g[P("finalized")]=new Map,jt?.({ReactiveElement:g}),(j.reactiveElementVersions??=[]).push("2.1.2");var et=globalThis,dt=s=>s,I=et.trustedTypes,ut=I?I.createPolicy("lit-html",{createHTML:s=>s}):void 0,xt="$lit$",y=`lit$${Math.random().toFixed(9).slice(2)}$`,vt="?"+y,Bt=`<${vt}>`,b=document,R=()=>b.createComment(""),M=s=>s===null||typeof s!="object"&&typeof s!="function",rt=Array.isArray,It=s=>rt(s)||typeof s?.[Symbol.iterator]=="function",F=`[
|
|
2
2
|
\f\r]`,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,mt=/-->/g,gt=/>/g,x=RegExp(`>|${F}(?:([^\\s"'>=/]+)(${F}*=${F}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ft=/'/g,yt=/"/g,
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ft=/'/g,yt=/"/g,bt=/^(?:script|style|textarea|title)$/i,st=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),u=st(1),re=st(2),se=st(3),_=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),$t=new WeakMap,v=b.createTreeWalker(b,129);function _t(s,t){if(!rt(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return ut!==void 0?ut.createHTML(t):t}var Gt=(s,t)=>{let e=s.length-1,r=[],o,i=t===2?"<svg>":t===3?"<math>":"",n=T;for(let l=0;l<e;l++){let a=s[l],h,d,c=-1,m=0;for(;m<a.length&&(n.lastIndex=m,d=n.exec(a),d!==null);)m=n.lastIndex,n===T?d[1]==="!--"?n=mt:d[1]!==void 0?n=gt:d[2]!==void 0?(bt.test(d[2])&&(o=RegExp("</"+d[2],"g")),n=x):d[3]!==void 0&&(n=x):n===x?d[0]===">"?(n=o??T,c=-1):d[1]===void 0?c=-2:(c=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?x:d[3]==='"'?yt:ft):n===yt||n===ft?n=x:n===mt||n===gt?n=T:(n=x,o=void 0);let f=n===x&&s[l+1].startsWith("/>")?" ":"";i+=n===T?a+Bt:c>=0?(r.push(h),a.slice(0,c)+xt+a.slice(c)+y+f):a+y+(c===-2?l:f)}return[_t(s,i+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},L=class s{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let i=0,n=0,l=t.length-1,a=this.parts,[h,d]=Gt(t,e);if(this.el=s.createElement(h,r),v.currentNode=this.el.content,e===2||e===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=v.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let c of o.getAttributeNames())if(c.endsWith(xt)){let m=d[n++],f=o.getAttribute(c).split(y),k=/([.?@])?(.*)/.exec(m);a.push({type:1,index:i,name:k[2],strings:f,ctor:k[1]==="."?Z:k[1]==="?"?Q:k[1]==="@"?X:w}),o.removeAttribute(c)}else c.startsWith(y)&&(a.push({type:6,index:i}),o.removeAttribute(c));if(bt.test(o.tagName)){let c=o.textContent.split(y),m=c.length-1;if(m>0){o.textContent=I?I.emptyScript:"";for(let f=0;f<m;f++)o.append(c[f],R()),v.nextNode(),a.push({type:2,index:++i});o.append(c[m],R())}}}else if(o.nodeType===8)if(o.data===vt)a.push({type:2,index:i});else{let c=-1;for(;(c=o.data.indexOf(y,c+1))!==-1;)a.push({type:7,index:i}),c+=y.length-1}i++}}static createElement(t,e){let r=b.createElement("template");return r.innerHTML=t,r}};function S(s,t,e=s,r){if(t===_)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,i=M(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(s),o._$AT(s,e,r)),r!==void 0?(e._$Co??=[])[r]=o:e._$Cl=o),o!==void 0&&(t=S(s,o._$AS(s,t.values),o,r)),t}var J=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??b).importNode(e,!0);v.currentNode=o;let i=v.nextNode(),n=0,l=0,a=r[0];for(;a!==void 0;){if(n===a.index){let h;a.type===2?h=new U(i,i.nextSibling,this,t):a.type===1?h=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(h=new tt(i,this,t)),this._$AV.push(h),a=r[++l]}n!==a?.index&&(i=v.nextNode(),n++)}return v.currentNode=b,o}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},U=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),M(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==_&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):It(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==p&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(b.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=L.createElement(_t(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let i=new J(o,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=$t.get(t.strings);return e===void 0&&$t.set(t.strings,e=new L(t)),e}k(t){rt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let i of t)o===e.length?e.push(r=new s(this.O(R()),this.O(R()),this,this.options)):r=e[o],r._$AI(i),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=dt(t).nextSibling;dt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},w=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,i){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=p}_$AI(t,e=this,r,o){let i=this.strings,n=!1;if(i===void 0)t=S(this,t,e,0),n=!M(t)||t!==this._$AH&&t!==_,n&&(this._$AH=t);else{let l=t,a,h;for(t=i[0],a=0;a<i.length-1;a++)h=S(this,l[r+a],e,a),h===_&&(h=this._$AH[a]),n||=!M(h)||h!==this._$AH[a],h===p?t=p:t!==p&&(t+=(h??"")+i[a+1]),this._$AH[a]=h}n&&!o&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Z=class extends w{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}},Q=class extends w{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}},X=class extends w{constructor(t,e,r,o,i){super(t,e,r,o,i),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??p)===_)return;let r=this._$AH,o=t===p&&r!==p||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==p&&(r===p||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},tt=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}};var Vt=et.litHtmlPolyfillSupport;Vt?.(L,U),(et.litHtmlVersions??=[]).push("3.3.2");var At=(s,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let i=e?.renderBefore??null;r._$litPart$=o=new U(t.insertBefore(R(),i),i,void 0,e??{})}return o._$AI(s),o};var ot=globalThis,$=class extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=At(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return _}};$._$litElement$=!0,$.finalized=!0,ot.litElementHydrateSupport?.({LitElement:$});var Wt=ot.litElementPolyfillSupport;Wt?.({LitElement:$});(ot.litElementVersions??=[]).push("4.2.2");var St=s=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)};var Yt={attribute:!0,type:String,converter:N,reflect:!1,hasChanged:B},Kt=(s=Yt,t,e)=>{let{kind:r,metadata:o}=e,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),r==="setter"&&((s=Object.create(s)).wrapped=!0),i.set(e.name,s),r==="accessor"){let{name:n}=e;return{set(l){let a=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,a,s,!0,l)},init(l){return l!==void 0&&this.C(n,void 0,s,l),l}}}if(r==="setter"){let{name:n}=e;return function(l){let a=this[n];t.call(this,l),this.requestUpdate(n,a,s,!0,l)}}throw Error("Unsupported decorator location: "+r)};function it(s){return(t,e)=>typeof e=="object"?Kt(s,t,e):((r,o,i)=>{let n=o.hasOwnProperty(i);return o.constructor.createProperty(i,r),n?Object.getOwnPropertyDescriptor(o,i):void 0})(s,t,e)}var V={Sun:"\u2609",Moon:"\u263D",Mercury:"\u263F",Venus:"\u2640",Earth:"\u2641",Mars:"\u2642",Jupiter:"\u2643",Saturn:"\u2644",Uranus:"\u2645",Neptune:"\u2646",Pluto:"\u2647",Rahu:"\u260A",Ketu:"\u260B",Ascendant:"Asc",Lagna:"La",NorthNode:"\u260A",SouthNode:"\u260B","North node":"\u260A","South node":"\u260B",Chiron:"\u26B7",Lilith:"\u26B8","Black moon lilith":"\u26B8"};var wt={Aries:"\u2648",Taurus:"\u2649",Gemini:"\u264A",Cancer:"\u264B",Leo:"\u264C",Virgo:"\u264D",Libra:"\u264E",Scorpio:"\u264F",Sagittarius:"\u2650",Capricorn:"\u2651",Aquarius:"\u2652",Pisces:"\u2653"};var Ft=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],Ie=Ft.map(s=>s.toLowerCase());var Et=C`
|
|
4
4
|
:host {
|
|
5
5
|
display: block;
|
|
6
6
|
container-type: inline-size;
|
|
@@ -156,29 +156,30 @@
|
|
|
156
156
|
<th scope="col">Orb</th>
|
|
157
157
|
<th scope="col">Status</th>
|
|
158
158
|
<th scope="col">Strength</th>
|
|
159
|
-
<th scope="col" class="interp">Interpretation</th>
|
|
160
159
|
</tr>
|
|
161
160
|
</thead>
|
|
162
161
|
<tbody>
|
|
163
|
-
${e.map(r=>{let o=V[H(r.transitPlanet)]??"",i=V[H(r.natalPlanet)]??"",n=`nature-${(r.nature??"").toLowerCase()}`,l=r.interpretation?.summary??""
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
162
|
+
${e.map(r=>{let o=V[H(r.transitPlanet)]??"",i=V[H(r.natalPlanet)]??"",n=`nature-${(r.nature??"").toLowerCase()}`,l=r.interpretation?.summary??"";return u`<tr class=${l?"aspect-row":"aspect-row no-interp"}>
|
|
163
|
+
<td>
|
|
164
|
+
<div class="arrow-cell">
|
|
165
|
+
<span class="glyph" aria-hidden="true">${o}</span>
|
|
166
|
+
${r.transitPlanet}
|
|
167
|
+
</div>
|
|
168
|
+
</td>
|
|
169
|
+
<td>
|
|
170
|
+
<div class="arrow-cell">
|
|
171
|
+
<span class="glyph" aria-hidden="true">${i}</span>
|
|
172
|
+
${r.natalPlanet}
|
|
173
|
+
</div>
|
|
174
|
+
</td>
|
|
175
|
+
<td class=${n}>${(r.type??"").toLowerCase()}</td>
|
|
176
|
+
<td class="num">${O(r.orb,2)}</td>
|
|
177
|
+
<td>${r.isApplying?"Applying":"Separating"}</td>
|
|
178
|
+
<td class="num">${O(r.strength,1)}</td>
|
|
179
|
+
</tr>
|
|
180
|
+
${l?u`<tr class="interp-row">
|
|
181
|
+
<td colspan="6">${l}</td>
|
|
182
|
+
</tr>`:p}`})}
|
|
182
183
|
</tbody>
|
|
183
184
|
</table>`}};A.styles=[Et,C`
|
|
184
185
|
.wrap {
|
|
@@ -327,19 +328,23 @@
|
|
|
327
328
|
white-space: nowrap;
|
|
328
329
|
}
|
|
329
330
|
|
|
330
|
-
.interp {
|
|
331
|
+
.interp-row td {
|
|
332
|
+
padding-top: 0;
|
|
333
|
+
padding-bottom: var(--roxy-space-sm, 0.5rem);
|
|
334
|
+
border-bottom: 1px solid var(--roxy-border, #e4e4e7);
|
|
331
335
|
color: var(--roxy-secondary, #475569);
|
|
332
336
|
font-size: var(--roxy-text-xs, 0.75rem);
|
|
333
|
-
|
|
334
|
-
white-space: nowrap;
|
|
335
|
-
overflow: hidden;
|
|
336
|
-
text-overflow: ellipsis;
|
|
337
|
+
line-height: 1.45;
|
|
337
338
|
}
|
|
338
339
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
340
|
+
.aspect-row td {
|
|
341
|
+
border-bottom: none;
|
|
342
|
+
padding-bottom: 4px;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.aspect-row.no-interp td {
|
|
346
|
+
border-bottom: 1px solid var(--roxy-border, #e4e4e7);
|
|
347
|
+
padding-bottom: var(--roxy-space-sm, 0.5rem);
|
|
343
348
|
}
|
|
344
349
|
|
|
345
350
|
.overflow-scroll {
|