@roxyapi/ui 0.2.3 → 0.3.0
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/AGENTS.md +15 -10
- package/README.md +15 -10
- package/dist/cdn/components/compatibility-card.js.map +1 -1
- package/dist/cdn/components/dasha-timeline.js +8 -8
- package/dist/cdn/components/dasha-timeline.js.map +2 -2
- package/dist/cdn/components/divisional-chart.js +35 -23
- package/dist/cdn/components/divisional-chart.js.map +4 -4
- package/dist/cdn/components/guna-milan.js.map +1 -1
- package/dist/cdn/components/kp-chart.js +306 -0
- package/dist/cdn/components/kp-chart.js.map +7 -0
- package/dist/cdn/components/kp-planets-table.js.map +1 -1
- package/dist/cdn/components/kp-ruling-planets.js +269 -0
- package/dist/cdn/components/kp-ruling-planets.js.map +7 -0
- package/dist/cdn/components/location-search.js +7 -5
- package/dist/cdn/components/location-search.js.map +3 -3
- package/dist/cdn/components/moon-phase.js.map +1 -1
- package/dist/cdn/components/nakshatra-card.js +229 -0
- package/dist/cdn/components/nakshatra-card.js.map +7 -0
- package/dist/cdn/components/natal-chart.js +228 -115
- package/dist/cdn/components/natal-chart.js.map +4 -4
- package/dist/cdn/components/numerology-card.js +3 -3
- package/dist/cdn/components/numerology-card.js.map +2 -2
- package/dist/cdn/components/panchang-table.js.map +1 -1
- package/dist/cdn/components/shadbala-table.js.map +1 -1
- package/dist/cdn/components/synastry-chart.js +3 -3
- package/dist/cdn/components/synastry-chart.js.map +2 -2
- package/dist/cdn/components/transits-table.js.map +1 -1
- package/dist/cdn/components/vedic-kundli.js +34 -22
- package/dist/cdn/components/vedic-kundli.js.map +4 -4
- package/dist/cdn/components/vedic-planets-table.js +231 -0
- package/dist/cdn/components/vedic-planets-table.js.map +7 -0
- package/dist/cdn/components/western-planets-table.js +220 -0
- package/dist/cdn/components/western-planets-table.js.map +7 -0
- package/dist/cdn/roxy-ui.js +1078 -331
- package/dist/cdn/roxy-ui.js.map +4 -4
- package/dist/components/compatibility-card.js.map +1 -1
- package/dist/components/dasha-timeline.d.ts.map +1 -1
- package/dist/components/dasha-timeline.js.map +2 -2
- package/dist/components/divisional-chart.d.ts +5 -3
- package/dist/components/divisional-chart.d.ts.map +1 -1
- package/dist/components/divisional-chart.js +159 -38
- package/dist/components/divisional-chart.js.map +3 -3
- package/dist/components/guna-milan.js.map +1 -1
- package/dist/components/kp-chart.d.ts +26 -0
- package/dist/components/kp-chart.d.ts.map +1 -0
- package/dist/components/kp-chart.js +382 -0
- package/dist/components/kp-chart.js.map +7 -0
- package/dist/components/kp-planets-table.js.map +1 -1
- package/dist/components/kp-ruling-planets.d.ts +20 -0
- package/dist/components/kp-ruling-planets.d.ts.map +1 -0
- package/dist/components/kp-ruling-planets.js +275 -0
- package/dist/components/kp-ruling-planets.js.map +7 -0
- package/dist/components/location-search.d.ts.map +1 -1
- package/dist/components/location-search.js +9 -2
- package/dist/components/location-search.js.map +2 -2
- package/dist/components/moon-phase.js.map +1 -1
- package/dist/components/nakshatra-card.d.ts +18 -0
- package/dist/components/nakshatra-card.d.ts.map +1 -0
- package/dist/components/nakshatra-card.js +231 -0
- package/dist/components/nakshatra-card.js.map +7 -0
- package/dist/components/natal-chart.d.ts +28 -0
- package/dist/components/natal-chart.d.ts.map +1 -1
- package/dist/components/natal-chart.js +401 -104
- package/dist/components/natal-chart.js.map +2 -2
- package/dist/components/numerology-card.d.ts.map +1 -1
- package/dist/components/numerology-card.js.map +2 -2
- package/dist/components/panchang-table.js.map +1 -1
- package/dist/components/shadbala-table.js.map +1 -1
- package/dist/components/synastry-chart.js.map +2 -2
- package/dist/components/transits-table.js.map +1 -1
- package/dist/components/vedic-kundli.d.ts +7 -3
- package/dist/components/vedic-kundli.d.ts.map +1 -1
- package/dist/components/vedic-kundli.js +209 -87
- package/dist/components/vedic-kundli.js.map +3 -3
- package/dist/components/vedic-planets-table.d.ts +21 -0
- package/dist/components/vedic-planets-table.d.ts.map +1 -0
- package/dist/components/vedic-planets-table.js +355 -0
- package/dist/components/vedic-planets-table.js.map +7 -0
- package/dist/components/western-planets-table.d.ts +21 -0
- package/dist/components/western-planets-table.d.ts.map +1 -0
- package/dist/components/western-planets-table.js +350 -0
- package/dist/components/western-planets-table.js.map +7 -0
- package/dist/index.cjs +2042 -695
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2029 -682
- package/dist/index.js.map +4 -4
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.json +23 -18
- package/dist/styles/tokens.css +4 -0
- package/dist/types/types.gen.d.ts +343 -49
- package/dist/types/types.gen.d.ts.map +1 -1
- package/dist/utils/degree.d.ts +12 -0
- package/dist/utils/degree.d.ts.map +1 -1
- package/dist/utils/format.d.ts +1 -1
- package/dist/utils/kundli-render.d.ts +85 -12
- package/dist/utils/kundli-render.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/dasha-timeline.ts +1 -7
- package/src/components/divisional-chart.ts +27 -41
- package/src/components/kp-chart.ts +313 -0
- package/src/components/kp-ruling-planets.ts +196 -0
- package/src/components/location-search.ts +16 -2
- package/src/components/nakshatra-card.ts +149 -0
- package/src/components/natal-chart.ts +408 -119
- package/src/components/numerology-card.ts +1 -5
- package/src/components/vedic-kundli.ts +30 -40
- package/src/components/vedic-planets-table.ts +184 -0
- package/src/components/western-planets-table.ts +180 -0
- package/src/index.ts +5 -0
- package/src/manifest.ts +146 -84
- package/src/styles/tokens.css +4 -0
- package/src/types/types.gen.ts +343 -49
- package/src/utils/degree.ts +21 -0
- package/src/utils/format.ts +1 -1
- package/src/utils/kundli-render.ts +234 -29
- package/src/version.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";var RoxyUI_natal_chart=(()=>{var
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
1
|
+
"use strict";var RoxyUI_natal_chart=(()=>{var K=Object.defineProperty;var vt=Object.getOwnPropertyDescriptor;var Gt=Object.getOwnPropertyNames;var Vt=Object.prototype.hasOwnProperty;var Ft=(o,t)=>{for(var e in t)K(o,e,{get:t[e],enumerable:!0})},Wt=(o,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Gt(t))!Vt.call(o,s)&&s!==e&&K(o,s,{get:()=>t[s],enumerable:!(r=vt(t,s))||r.enumerable});return o};var Kt=o=>Wt(K({},"__esModule",{value:!0}),o),L=(o,t,e,r)=>{for(var s=r>1?void 0:r?vt(t,e):t,n=o.length-1,i;n>=0;n--)(i=o[n])&&(s=(r?i(t,e,s):i(s))||s);return r&&s&&K(t,e,s),s};var he={};Ft(he,{RoxyNatalChart:()=>v});var Y=globalThis,J=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,rt=Symbol(),At=new WeakMap,O=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==rt)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(J&&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}},_t=o=>new O(typeof o=="string"?o:o+"",void 0,rt),U=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,s,n)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+o[n+1],o[0]);return new O(e,o,rt)},wt=(o,t)=>{if(J)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),s=Y.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=e.cssText,o.appendChild(r)}},st=J?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return _t(e)})(o):o;var{is:Yt,defineProperty:Jt,getOwnPropertyDescriptor:Zt,getOwnPropertyNames:Qt,getOwnPropertySymbols:Xt,getPrototypeOf:te}=Object,Z=globalThis,St=Z.trustedTypes,ee=St?St.emptyScript:"",re=Z.reactiveElementPolyfillSupport,H=(o,t)=>o,z={toAttribute(o,t){switch(t){case Boolean:o=o?ee:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},Q=(o,t)=>!Yt(o,t),Et={attribute:!0,type:String,converter:z,reflect:!1,useDefault:!1,hasChanged:Q};Symbol.metadata??=Symbol("metadata"),Z.litPropertyMetadata??=new WeakMap;var b=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=Et){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(),s=this.getPropertyDescriptor(t,r,e);s!==void 0&&Jt(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){let{get:s,set:n}=Zt(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:s,set(i){let a=s?.call(this);n?.call(this,i),this.requestUpdate(t,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Et}static _$Ei(){if(this.hasOwnProperty(H("elementProperties")))return;let t=te(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(H("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(H("properties"))){let e=this.properties,r=[...Qt(e),...Xt(e)];for(let s of r)this.createProperty(s,e[s])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,s]of e)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let s=this._$Eu(e,r);s!==void 0&&this._$Eh.set(s,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 s of r)e.unshift(st(s))}else t!==void 0&&e.push(st(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 wt(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),s=this.constructor._$Eu(t,r);if(s!==void 0&&r.reflect===!0){let n=(r.converter?.toAttribute!==void 0?r.converter:z).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,e){let r=this.constructor,s=r._$Eh.get(t);if(s!==void 0&&this._$Em!==s){let n=r.getPropertyOptions(s),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:z;this._$Em=s;let a=i.fromAttribute(e,n.type);this[s]=a??this._$Ej?.get(s)??a,this._$Em=null}}requestUpdate(t,e,r,s=!1,n){if(t!==void 0){let i=this.constructor;if(s===!1&&(n=this[t]),r??=i.getPropertyOptions(t),!((r.hasChanged??Q)(n,e)||r.useDefault&&r.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:s,wrapped:n},i){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),n!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),s===!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[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[s,n]of r){let{wrapped:i}=n,a=this[s];i!==!0||this._$AL.has(s)||a===void 0||this.C(s,void 0,n,a)}}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){}};b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[H("elementProperties")]=new Map,b[H("finalized")]=new Map,re?.({ReactiveElement:b}),(Z.reactiveElementVersions??=[]).push("2.1.2");var dt=globalThis,Pt=o=>o,X=dt.trustedTypes,kt=X?X.createPolicy("lit-html",{createHTML:o=>o}):void 0,Lt="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,Ot="?"+A,se=`<${Ot}>`,k=document,I=()=>k.createComment(""),j=o=>o===null||typeof o!="object"&&typeof o!="function",pt=Array.isArray,ne=o=>pt(o)||typeof o?.[Symbol.iterator]=="function",nt=`[
|
|
2
|
+
\f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ct=/-->/g,Mt=/>/g,E=RegExp(`>|${nt}(?:([^\\s"'>=/]+)(${nt}*=${nt}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Tt=/'/g,Rt=/"/g,Ut=/^(?:script|style|textarea|title)$/i,ht=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),u=ht(1),x=ht(2),xe=ht(3),C=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Nt=new WeakMap,P=k.createTreeWalker(k,129);function Ht(o,t){if(!pt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return kt!==void 0?kt.createHTML(t):t}var oe=(o,t)=>{let e=o.length-1,r=[],s,n=t===2?"<svg>":t===3?"<math>":"",i=D;for(let a=0;a<e;a++){let l=o[a],p,m,h=-1,y=0;for(;y<l.length&&(i.lastIndex=y,m=i.exec(l),m!==null);)y=i.lastIndex,i===D?m[1]==="!--"?i=Ct:m[1]!==void 0?i=Mt:m[2]!==void 0?(Ut.test(m[2])&&(s=RegExp("</"+m[2],"g")),i=E):m[3]!==void 0&&(i=E):i===E?m[0]===">"?(i=s??D,h=-1):m[1]===void 0?h=-2:(h=i.lastIndex-m[2].length,p=m[1],i=m[3]===void 0?E:m[3]==='"'?Rt:Tt):i===Rt||i===Tt?i=E:i===Ct||i===Mt?i=D:(i=E,s=void 0);let $=i===E&&o[a+1].startsWith("/>")?" ":"";n+=i===D?l+se:h>=0?(r.push(p),l.slice(0,h)+Lt+l.slice(h)+A+$):l+A+(h===-2?a:$)}return[Ht(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},q=class o{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let n=0,i=0,a=t.length-1,l=this.parts,[p,m]=oe(t,e);if(this.el=o.createElement(p,r),P.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=P.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let h of s.getAttributeNames())if(h.endsWith(Lt)){let y=m[i++],$=s.getAttribute(h).split(A),S=/([.?@])?(.*)/.exec(y);l.push({type:1,index:n,name:S[2],strings:$,ctor:S[1]==="."?it:S[1]==="?"?at:S[1]==="@"?lt:R}),s.removeAttribute(h)}else h.startsWith(A)&&(l.push({type:6,index:n}),s.removeAttribute(h));if(Ut.test(s.tagName)){let h=s.textContent.split(A),y=h.length-1;if(y>0){s.textContent=X?X.emptyScript:"";for(let $=0;$<y;$++)s.append(h[$],I()),P.nextNode(),l.push({type:2,index:++n});s.append(h[y],I())}}}else if(s.nodeType===8)if(s.data===Ot)l.push({type:2,index:n});else{let h=-1;for(;(h=s.data.indexOf(A,h+1))!==-1;)l.push({type:7,index:n}),h+=A.length-1}n++}}static createElement(t,e){let r=k.createElement("template");return r.innerHTML=t,r}};function T(o,t,e=o,r){if(t===C)return t;let s=r!==void 0?e._$Co?.[r]:e._$Cl,n=j(t)?void 0:t._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(o),s._$AT(o,e,r)),r!==void 0?(e._$Co??=[])[r]=s:e._$Cl=s),s!==void 0&&(t=T(o,s._$AS(o,t.values),s,r)),t}var ot=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,s=(t?.creationScope??k).importNode(e,!0);P.currentNode=s;let n=P.nextNode(),i=0,a=0,l=r[0];for(;l!==void 0;){if(i===l.index){let p;l.type===2?p=new B(n,n.nextSibling,this,t):l.type===1?p=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(p=new ct(n,this,t)),this._$AV.push(p),l=r[++a]}i!==l?.index&&(n=P.nextNode(),i++)}return P.currentNode=k,s}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++}},B=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,s){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this._$Cv=s?.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=T(this,t,e),j(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==C&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ne(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!==d&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(k.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,s=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=q.createElement(Ht(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===s)this._$AH.p(e);else{let n=new ot(s,this),i=n.u(this.options);n.p(e),this.T(i),this._$AH=n}}_$AC(t){let e=Nt.get(t.strings);return e===void 0&&Nt.set(t.strings,e=new q(t)),e}k(t){pt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,s=0;for(let n of t)s===e.length?e.push(r=new o(this.O(I()),this.O(I()),this,this.options)):r=e[s],r._$AI(n),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=Pt(t).nextSibling;Pt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},R=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,s,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=d}_$AI(t,e=this,r,s){let n=this.strings,i=!1;if(n===void 0)t=T(this,t,e,0),i=!j(t)||t!==this._$AH&&t!==C,i&&(this._$AH=t);else{let a=t,l,p;for(t=n[0],l=0;l<n.length-1;l++)p=T(this,a[r+l],e,l),p===C&&(p=this._$AH[l]),i||=!j(p)||p!==this._$AH[l],p===d?t=d:t!==d&&(t+=(p??"")+n[l+1]),this._$AH[l]=p}i&&!s&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},it=class extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},at=class extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},lt=class extends R{constructor(t,e,r,s,n){super(t,e,r,s,n),this.type=5}_$AI(t,e=this){if((t=T(this,t,e,0)??d)===C)return;let r=this._$AH,s=t===d&&r!==d||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==d&&(r===d||s);s&&this.element.removeEventListener(this.name,this,r),n&&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)}},ct=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){T(this,t)}};var ie=dt.litHtmlPolyfillSupport;ie?.(q,B),(dt.litHtmlVersions??=[]).push("3.3.2");var zt=(o,t,e)=>{let r=e?.renderBefore??t,s=r._$litPart$;if(s===void 0){let n=e?.renderBefore??null;r._$litPart$=s=new B(t.insertBefore(I(),n),n,void 0,e??{})}return s._$AI(o),s};var ut=globalThis,_=class extends b{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=zt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return C}};_._$litElement$=!0,_.finalized=!0,ut.litElementHydrateSupport?.({LitElement:_});var ae=ut.litElementPolyfillSupport;ae?.({LitElement:_});(ut.litElementVersions??=[]).push("4.2.2");var Dt=o=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(o,t)}):customElements.define(o,t)};var le={attribute:!0,type:String,converter:z,reflect:!1,hasChanged:Q},ce=(o=le,t,e)=>{let{kind:r,metadata:s}=e,n=globalThis.litPropertyMetadata.get(s);if(n===void 0&&globalThis.litPropertyMetadata.set(s,n=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),n.set(e.name,o),r==="accessor"){let{name:i}=e;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(i,l,o,!0,a)},init(a){return a!==void 0&&this.C(i,void 0,o,a),a}}}if(r==="setter"){let{name:i}=e;return function(a){let l=this[i];t.call(this,a),this.requestUpdate(i,l,o,!0,a)}}throw Error("Unsupported decorator location: "+r)};function G(o){return(t,e)=>typeof e=="object"?ce(o,t,e):((r,s,n)=>{let i=s.hasOwnProperty(n);return s.constructor.createProperty(n,r),i?Object.getOwnPropertyDescriptor(s,n):void 0})(o,t,e)}function It(o){return G({...o,state:!0,attribute:!1})}var M={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 jt={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 N=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],nr=N.map(o=>o.toLowerCase()),mt={conjunction:"\u260C",opposition:"\u260D",trine:"\u25B3",square:"\u25A1",sextile:"\u2731",quincunx:"\u22BB",semisextile:"\u22BC"};var qt=U`
|
|
4
4
|
:host {
|
|
5
5
|
display: block;
|
|
6
6
|
container-type: inline-size;
|
|
@@ -82,104 +82,133 @@
|
|
|
82
82
|
outline: 2px solid var(--roxy-ring, rgba(245, 158, 11, 0.4));
|
|
83
83
|
outline-offset: 2px;
|
|
84
84
|
}
|
|
85
|
-
`;function
|
|
85
|
+
`;function w(o){let t=o%360;return t<0?t+360:t}function gt(o){let t=w(o),e=Math.floor(t/30)%12,r=t%30,s=Math.floor(r),n=(r-s)*60,i=Math.floor(n),a=Math.round((n-i)*60);return{sign:N[e]??"Aries",signIndex:e,degree:s,minute:i,second:a}}function yt(o){return w(o+180)}function Bt(o,t){let e=w(o),r=w(t)-e;return r<0&&(r+=360),w(e+r/2)}function g(o,t,e,r){let s=r*Math.PI/180;return{x:o+e*Math.cos(s),y:t+e*Math.sin(s)}}function et(o,t=1){return typeof o!="number"||!Number.isFinite(o)?"":o.toFixed(t).replace(/\.?0+$/,"")}var ft={conjunction:"aspect-conjunction",sextile:"aspect-sextile",square:"aspect-square",trine:"aspect-trine",opposition:"aspect-opposition"};function xt(o){return(o.type??"").toLowerCase().replace(/_/g,"-")}function f(o){return o?o.charAt(0).toUpperCase()+o.slice(1).toLowerCase():""}var bt=420,c=bt/2,V=164,$t=146,F=120,W=96,de=178,pe=196,v=class extends _{constructor(){super(...arguments);this.data=null;this.houseSystem="placidus";this.view="wheel"}getPlanets(){return this.data?.planets??[]}getAscendant(){return this.data?.ascendant?.longitude??0}getMidheaven(){let e=this.data?.midheaven?.longitude;return typeof e=="number"?e:null}toAngle(e){return 180+this.getAscendant()-e}render(){if(!this.data)return u`<div class="roxy-empty" role="status">No chart data</div>`;let e=this.getPlanets(),r=this.data.aspects??[],s=this.view;return u`<div class="wrap">
|
|
86
86
|
<header>
|
|
87
87
|
<h2 class="title">Natal chart</h2>
|
|
88
|
-
${this.data.birthDetails?
|
|
88
|
+
${this.data.birthDetails?u`<div class="meta">
|
|
89
89
|
${[this.data.birthDetails.date,this.data.birthDetails.time].filter(Boolean).join(" \xB7 ")}
|
|
90
|
-
</div>`:
|
|
90
|
+
</div>`:d}
|
|
91
91
|
</header>
|
|
92
|
-
<
|
|
93
|
-
|
|
94
|
-
role="
|
|
95
|
-
aria-label="Natal chart
|
|
92
|
+
<div
|
|
93
|
+
class="tablist"
|
|
94
|
+
role="tablist"
|
|
95
|
+
aria-label="Natal chart views"
|
|
96
|
+
@keydown=${this.onTabKeyDown}
|
|
96
97
|
>
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
cy=${u}
|
|
113
|
-
r=${ht}
|
|
114
|
-
stroke-width="1"
|
|
115
|
-
/>
|
|
116
|
-
<circle
|
|
117
|
-
class="wheel-line"
|
|
118
|
-
cx=${u}
|
|
119
|
-
cy=${u}
|
|
120
|
-
r=${J-16}
|
|
121
|
-
stroke-width="0.5"
|
|
122
|
-
/>
|
|
123
|
-
${this.renderSpokes()} ${this.renderSigns()} ${this.renderHouseNumbers()}
|
|
124
|
-
${this.renderAspects(e,r)} ${this.renderPlanets(e)}
|
|
125
|
-
${this.renderAngles()}
|
|
126
|
-
</svg>
|
|
98
|
+
${["wheel","grid"].map(n=>u`<button
|
|
99
|
+
class="tab"
|
|
100
|
+
role="tab"
|
|
101
|
+
id="tab-${n}"
|
|
102
|
+
aria-selected=${s===n?"true":"false"}
|
|
103
|
+
aria-controls="panel-${n}"
|
|
104
|
+
tabindex=${s===n?"0":"-1"}
|
|
105
|
+
@click=${()=>{this.view=n}}
|
|
106
|
+
>
|
|
107
|
+
${n==="wheel"?"Wheel":"Aspect grid"}
|
|
108
|
+
</button>`)}
|
|
109
|
+
</div>
|
|
110
|
+
<div id="panel-${s}" role="tabpanel" aria-labelledby="tab-${s}">
|
|
111
|
+
${s==="wheel"?this.renderWheel(e,r):this.renderAspectGrid(e,r)}
|
|
112
|
+
</div>
|
|
127
113
|
<div class="legend">
|
|
128
114
|
<span>${e.length} planets</span>
|
|
129
115
|
<span>${r.length} aspects</span>
|
|
116
|
+
${this.data.houseSystem?u`<span>${this.data.houseSystem} houses</span>`:d}
|
|
130
117
|
<span><span class="legend-swatch" style="background: var(--roxy-success)"></span>harmonious</span>
|
|
131
118
|
<span><span class="legend-swatch" style="background: var(--roxy-danger)"></span>challenging</span>
|
|
132
119
|
</div>
|
|
133
120
|
${this.renderDetails()}
|
|
134
121
|
${this.renderInterpretations()}
|
|
135
|
-
</div>`}
|
|
122
|
+
</div>`}onTabKeyDown(e){if(e.key!=="ArrowRight"&&e.key!=="ArrowLeft")return;e.preventDefault(),this.view=this.view==="wheel"?"grid":"wheel";let r=this.view;requestAnimationFrame(()=>{this.shadowRoot?.querySelector(`#tab-${r}`)?.focus()})}renderWheel(e,r){return u`<svg
|
|
123
|
+
viewBox="0 0 ${bt} ${bt}"
|
|
124
|
+
role="img"
|
|
125
|
+
aria-label="Natal chart wheel with twelve houses, planets, and aspects"
|
|
126
|
+
>
|
|
127
|
+
<title>Natal chart wheel</title>
|
|
128
|
+
<desc>
|
|
129
|
+
Twelve zodiac sign segments around a circular wheel. Planet glyphs are
|
|
130
|
+
placed at their ecliptic longitudes. Aspect lines connect related planets.
|
|
131
|
+
</desc>
|
|
132
|
+
<circle class="wheel-line" cx=${c} cy=${c} r=${V} stroke-width="1.5" />
|
|
133
|
+
<circle class="wheel-line" cx=${c} cy=${c} r=${$t-14} stroke-width="0.8" />
|
|
134
|
+
<circle class="wheel-line" cx=${c} cy=${c} r=${F} stroke-width="1" />
|
|
135
|
+
<circle class="wheel-line" cx=${c} cy=${c} r=${W-16} stroke-width="0.5" />
|
|
136
|
+
${this.renderTicks()} ${this.renderSpokes()} ${this.renderSigns()}
|
|
137
|
+
${this.renderHouseNumbers()} ${this.renderCuspDegrees()}
|
|
138
|
+
${this.renderAspects(e,r)} ${this.renderPlanets(e)}
|
|
139
|
+
${this.renderAngles()}
|
|
140
|
+
</svg>`}renderAspectGrid(e,r){let s=e.map(i=>f(i.name)),n=new Map;for(let i of r){let a=[f(i.planet1),f(i.planet2)].sort().join("|");n.set(a,i)}return s.length===0?u`<p class="roxy-empty" role="status">No planets to grid</p>`:u`<div class="grid-scroll">
|
|
141
|
+
<table class="aspect-grid" aria-label="Planet by planet aspect grid">
|
|
142
|
+
<thead>
|
|
143
|
+
<tr>
|
|
144
|
+
<th></th>
|
|
145
|
+
${s.slice(0,-1).map(i=>{let a=M[i]??i.slice(0,2);return u`<th scope="col" title=${i}>${a}</th>`})}
|
|
146
|
+
</tr>
|
|
147
|
+
</thead>
|
|
148
|
+
<tbody>
|
|
149
|
+
${s.slice(1).map((i,a)=>{let l=M[i]??i.slice(0,2);return u`<tr>
|
|
150
|
+
<th scope="row" title=${i}>${l}</th>
|
|
151
|
+
${s.slice(0,a+1).map(p=>{let m=n.get([i,p].sort().join("|"));if(!m)return u`<td class="empty"></td>`;let h=xt(m),y=mt[h]??mt[h.replace(/-/g,"")]??h.slice(0,3),$=ft[h]??"aspect-other",S=et(m.orb,1);return u`<td class=${`cell ${$}`} title=${`${i} ${h} ${p}${S?` (orb ${S}\xB0)`:""}`}>
|
|
152
|
+
<span class="asp">${y}</span>
|
|
153
|
+
</td>`})}
|
|
154
|
+
${s.slice(a+1,-1).map(()=>u`<td class="empty"></td>`)}
|
|
155
|
+
</tr>`})}
|
|
156
|
+
</tbody>
|
|
157
|
+
</table>
|
|
158
|
+
</div>`}renderAngles(){let e=this.getAscendant(),r=this.getMidheaven(),s=[this.renderAngleMark(e,"ASC"),this.renderAngleMark(yt(e),"DSC")];r!==null&&(s.push(this.renderAngleMark(r,"MC")),s.push(this.renderAngleMark(yt(r),"IC")));let n=this.data?.partOfFortune?.longitude;typeof n=="number"&&s.push(this.renderAngleMark(w(n),"PoF"));let i=this.data?.vertex?.longitude;return typeof i=="number"&&s.push(this.renderAngleMark(w(i),"Vtx")),s}renderAngleMark(e,r){let s=this.toAngle(e),n=g(c,c,V,s),i=g(c,c,de,s),a=g(c,c,pe,s);return x`
|
|
136
159
|
<g>
|
|
137
|
-
<line class="angle-tick" x1=${
|
|
138
|
-
<text class="angle-marker" x=${
|
|
160
|
+
<line class="angle-tick" x1=${n.x} y1=${n.y} x2=${i.x} y2=${i.y} />
|
|
161
|
+
<text class="angle-marker" x=${a.x} y=${a.y} text-anchor="middle" dominant-baseline="central">${r}</text>
|
|
139
162
|
</g>
|
|
140
|
-
`}renderSpokes(){return
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
163
|
+
`}renderSpokes(){let e=this.data?.houses??[];return(e.length===12?e.map(s=>s.longitude):Array.from({length:12},(s,n)=>this.getAscendant()+n*30)).map(s=>{let n=this.toAngle(s),i=g(c,c,F,n),a=g(c,c,V,n);return x`<line class="wheel-line" x1=${i.x} y1=${i.y} x2=${a.x} y2=${a.y} stroke-width="0.8" />`})}renderSigns(){return N.map((e,r)=>{let s=this.toAngle(r*30+15),n=g(c,c,$t,s);return x`<text class="sign-glyph" x=${n.x} y=${n.y} text-anchor="middle" dominant-baseline="central">${jt[e]}</text>`})}renderHouseNumbers(){let e=this.data?.houses??[];if(e.length===12)return e.map((s,n)=>{let i=e[(n+1)%12],a=Bt(s.longitude,i?i.longitude:s.longitude+30),l=g(c,c,F-12,this.toAngle(a));return x`<text class="house-num" x=${l.x} y=${l.y} text-anchor="middle" dominant-baseline="central">${s.number}</text>`});let r=Math.floor(this.getAscendant()/30);return Array.from({length:12},(s,n)=>{let i=this.toAngle(n*30+15),a=g(c,c,F-12,i),l=(n-r+12)%12+1;return x`<text class="house-num" x=${a.x} y=${a.y} text-anchor="middle" dominant-baseline="central">${l}</text>`})}renderTicks(){let e=[];for(let r=0;r<360;r+=5){let s=this.toAngle(r),n=r%30===0,i=n?$t-14:V-5,a=g(c,c,i,s),l=g(c,c,V,s);e.push(x`<line class=${n?"tick tick-major":"tick"} x1=${a.x} y1=${a.y} x2=${l.x} y2=${l.y} stroke-width=${n?1:.5} />`)}return e}renderCuspDegrees(){let e=this.data?.houses??[];return e.length!==12?d:e.map(r=>{let s=this.toAngle(r.longitude),n=g(c,c,F+9,s),i=gt(r.longitude);return x`<text class="cusp-deg" x=${n.x} y=${n.y} text-anchor="middle" dominant-baseline="central">${i.degree}°${String(i.minute).padStart(2,"0")}'</text>`})}renderPlanets(e){return e.map(r=>{if(!Number.isFinite(r.longitude))return d;let s=this.toAngle(r.longitude),n=g(c,c,W,s),i=g(c,c,W-13,s),a=M[f(r.name)]??r.name.slice(0,2),l=gt(r.longitude),p=r.isRetrograde===!0,m=`${l.degree}\xB0${String(l.minute).padStart(2,"0")}'`;return x`<g>
|
|
164
|
+
<text class="planet-glyph" x=${n.x} y=${n.y} text-anchor="middle" dominant-baseline="central"><title>${r.name}${p?" retrograde":""} - ${m} ${r.sign??""}</title>${a}</text>
|
|
165
|
+
<text class="planet-deg" x=${i.x} y=${i.y} text-anchor="middle" dominant-baseline="central">${m}${p?x`<tspan class="retro"> ℞</tspan>`:d}</text>
|
|
166
|
+
</g>`})}renderDetails(){let e=this.data?.summary,r=this.data?.aspectsInterpretation;if(!e&&!r)return d;let s=e?.retrogradePlanets??[];return u`<div class="details">
|
|
167
|
+
${e?.dominantElement||e?.dominantModality?u`<div class="pill-row">
|
|
168
|
+
${e.dominantElement?u`<span class="pill">Dominant element: ${e.dominantElement}</span>`:d}
|
|
169
|
+
${e.dominantModality?u`<span class="pill">Dominant modality: ${e.dominantModality}</span>`:d}
|
|
170
|
+
</div>`:d}
|
|
171
|
+
${r?u`<div class="pill-row">
|
|
146
172
|
<span class="pill pill--success">Harmonious ${r.harmonious}</span>
|
|
147
173
|
<span class="pill pill--danger">Challenging ${r.challenging}</span>
|
|
148
174
|
<span class="pill pill--muted">Neutral ${r.neutral}</span>
|
|
149
|
-
</div>`:
|
|
150
|
-
${s.length>0?
|
|
151
|
-
${s.map(
|
|
152
|
-
</div>`:
|
|
153
|
-
${r?.summary?
|
|
154
|
-
${
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
</
|
|
172
|
-
|
|
175
|
+
</div>`:d}
|
|
176
|
+
${s.length>0?u`<div class="pill-row">
|
|
177
|
+
${s.map(n=>{let i=M[n]??n.slice(0,2);return u`<span class="pill pill--muted">${i} ${n} R</span>`})}
|
|
178
|
+
</div>`:d}
|
|
179
|
+
${r?.summary?u`<p class="summary">${r.summary}</p>`:d}
|
|
180
|
+
${this.renderElementModalityGrid()}
|
|
181
|
+
</div>`}renderElementModalityGrid(){let e=this.getPlanets();if(e.length===0)return d;let r=["Fire","Earth","Air","Water"],s=["Cardinal","Fixed","Mutable"],n=N,i={};for(let a of r)i[a]={Cardinal:[],Fixed:[],Mutable:[]};for(let a of e){let l=n.indexOf(f(a.sign??""));if(l<0)continue;let p=r[l%4],m=s[l%3],h=M[f(a.name)]??f(a.name).slice(0,2);i[p]?.[m]?.push(h)}return u`<table class="em-grid" aria-label="Element and modality distribution">
|
|
182
|
+
<thead>
|
|
183
|
+
<tr>
|
|
184
|
+
<th></th>
|
|
185
|
+
${s.map(a=>u`<th scope="col">${a.slice(0,3)}</th>`)}
|
|
186
|
+
<th scope="col">Total</th>
|
|
187
|
+
</tr>
|
|
188
|
+
</thead>
|
|
189
|
+
<tbody>
|
|
190
|
+
${r.map(a=>{let l=s.reduce((p,m)=>p+(i[a]?.[m]?.length??0),0);return u`<tr>
|
|
191
|
+
<th scope="row">${a}</th>
|
|
192
|
+
${s.map(p=>u`<td>${(i[a]?.[p]??[]).join(" ")}</td>`)}
|
|
193
|
+
<td class="em-total">${l}</td>
|
|
194
|
+
</tr>`})}
|
|
195
|
+
<tr>
|
|
196
|
+
<th scope="row">Total</th>
|
|
197
|
+
${s.map(a=>u`<td class="em-total">${r.reduce((l,p)=>l+(i[p]?.[a]?.length??0),0)}</td>`)}
|
|
198
|
+
<td class="em-total">${e.length}</td>
|
|
199
|
+
</tr>
|
|
200
|
+
</tbody>
|
|
201
|
+
</table>`}renderInterpretations(){let e=this.getPlanets().filter(r=>r.interpretation);return e.length===0?d:u`<section class="interpretations">
|
|
173
202
|
<h3>Planet readings</h3>
|
|
174
|
-
${e.map((r,s)=>{let
|
|
175
|
-
<summary>${
|
|
203
|
+
${e.map((r,s)=>{let n=r.interpretation,i=M[f(r.name)]??"",a=et(r.degree??0,1);return u`<details class="interp-card" name="natal-planet-readings" ?open=${s===0}>
|
|
204
|
+
<summary>${i} ${r.name} <small>${r.sign??""} ${a}</small></summary>
|
|
176
205
|
<div class="interp-body">
|
|
177
|
-
${
|
|
178
|
-
${
|
|
179
|
-
${
|
|
206
|
+
${n.summary?u`<p class="interp-summary">${n.summary}</p>`:d}
|
|
207
|
+
${n.detailed?u`<p class="interp-detail">${n.detailed}</p>`:d}
|
|
208
|
+
${n.keywords?.length?u`<div class="interp-keywords">${n.keywords.map(l=>u`<span class="kw">${l}</span>`)}</div>`:d}
|
|
180
209
|
</div>
|
|
181
210
|
</details>`})}
|
|
182
|
-
</section>`}renderAspects(e,r){let s=new Map;for(let
|
|
211
|
+
</section>`}renderAspects(e,r){let s=new Map;for(let n of e){if(typeof n.longitude!="number")continue;let i=f(n.name);i&&s.set(i,n.longitude)}return r.map(n=>{let i=s.get(f(n.planet1)),a=s.get(f(n.planet2));if(i===void 0||a===void 0)return d;let l=g(c,c,W-18,this.toAngle(i)),p=g(c,c,W-18,this.toAngle(a)),m=xt(n),h=ft[m]??"aspect-other",y=et(n.orb,1);return x`<line class=${`aspect ${h}`} x1=${l.x} y1=${l.y} x2=${p.x} y2=${p.y}><title>${n.planet1} ${m||""} ${n.planet2}${y?` (orb ${y}\xB0)`:""}</title></line>`})}};v.styles=[qt,U`
|
|
183
212
|
.wrap {
|
|
184
213
|
width: 100%;
|
|
185
214
|
display: grid;
|
|
@@ -224,12 +253,35 @@
|
|
|
224
253
|
font-family: var(--roxy-font-sans);
|
|
225
254
|
}
|
|
226
255
|
|
|
256
|
+
.planet-deg {
|
|
257
|
+
fill: var(--roxy-fg, #0a0a0a);
|
|
258
|
+
font-size: 7px;
|
|
259
|
+
font-family: var(--roxy-font-sans);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.planet-deg .retro {
|
|
263
|
+
fill: var(--roxy-danger, #dc2626);
|
|
264
|
+
}
|
|
265
|
+
|
|
227
266
|
.house-num {
|
|
228
267
|
fill: var(--roxy-muted, #71717a);
|
|
229
268
|
font-size: 9px;
|
|
230
269
|
font-family: var(--roxy-font-sans);
|
|
231
270
|
}
|
|
232
271
|
|
|
272
|
+
.cusp-deg {
|
|
273
|
+
fill: var(--roxy-muted, #71717a);
|
|
274
|
+
font-size: 6px;
|
|
275
|
+
font-family: var(--roxy-font-sans);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.tick {
|
|
279
|
+
stroke: var(--roxy-border, #e4e4e7);
|
|
280
|
+
}
|
|
281
|
+
.tick-major {
|
|
282
|
+
stroke: var(--roxy-secondary, #475569);
|
|
283
|
+
}
|
|
284
|
+
|
|
233
285
|
.aspect {
|
|
234
286
|
stroke-width: 0.8;
|
|
235
287
|
fill: none;
|
|
@@ -279,6 +331,78 @@
|
|
|
279
331
|
vertical-align: middle;
|
|
280
332
|
}
|
|
281
333
|
|
|
334
|
+
.tablist {
|
|
335
|
+
display: flex;
|
|
336
|
+
gap: 2px;
|
|
337
|
+
border-bottom: 2px solid var(--roxy-border, #e4e4e7);
|
|
338
|
+
}
|
|
339
|
+
.tab {
|
|
340
|
+
padding: var(--roxy-space-xs, 0.25rem) var(--roxy-space-md, 1rem);
|
|
341
|
+
font-size: var(--roxy-text-sm, 0.875rem);
|
|
342
|
+
background: none;
|
|
343
|
+
border: none;
|
|
344
|
+
border-bottom: 2px solid transparent;
|
|
345
|
+
margin-bottom: -2px;
|
|
346
|
+
cursor: pointer;
|
|
347
|
+
color: var(--roxy-muted, #71717a);
|
|
348
|
+
font-family: inherit;
|
|
349
|
+
transition: color var(--roxy-motion-duration, 200ms) var(--roxy-motion-easing, ease);
|
|
350
|
+
}
|
|
351
|
+
.tab[aria-selected='true'] {
|
|
352
|
+
color: var(--roxy-accent-fg, #b45309);
|
|
353
|
+
border-bottom-color: var(--roxy-accent, #f59e0b);
|
|
354
|
+
font-weight: var(--roxy-weight-bold, 600);
|
|
355
|
+
}
|
|
356
|
+
.tab:hover:not([aria-selected='true']) {
|
|
357
|
+
color: var(--roxy-fg, #0a0a0a);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.grid-scroll {
|
|
361
|
+
overflow-x: auto;
|
|
362
|
+
-webkit-overflow-scrolling: touch;
|
|
363
|
+
}
|
|
364
|
+
table.aspect-grid {
|
|
365
|
+
border-collapse: collapse;
|
|
366
|
+
font-size: var(--roxy-text-xs, 0.75rem);
|
|
367
|
+
margin: 0 auto;
|
|
368
|
+
}
|
|
369
|
+
table.aspect-grid th,
|
|
370
|
+
table.aspect-grid td {
|
|
371
|
+
width: 1.6rem;
|
|
372
|
+
height: 1.6rem;
|
|
373
|
+
text-align: center;
|
|
374
|
+
border: 1px solid var(--roxy-border, #e4e4e7);
|
|
375
|
+
padding: 0;
|
|
376
|
+
}
|
|
377
|
+
table.aspect-grid th {
|
|
378
|
+
color: var(--roxy-secondary, #475569);
|
|
379
|
+
font-weight: var(--roxy-weight-bold, 600);
|
|
380
|
+
}
|
|
381
|
+
table.aspect-grid td.cell {
|
|
382
|
+
cursor: default;
|
|
383
|
+
}
|
|
384
|
+
table.aspect-grid td.empty {
|
|
385
|
+
background: color-mix(in srgb, var(--roxy-border, #e4e4e7) 18%, transparent);
|
|
386
|
+
}
|
|
387
|
+
table.aspect-grid td .asp {
|
|
388
|
+
font-size: 0.95em;
|
|
389
|
+
line-height: 1;
|
|
390
|
+
}
|
|
391
|
+
table.aspect-grid td.aspect-trine .asp,
|
|
392
|
+
table.aspect-grid td.aspect-sextile .asp {
|
|
393
|
+
color: var(--roxy-success, #16a34a);
|
|
394
|
+
}
|
|
395
|
+
table.aspect-grid td.aspect-square .asp,
|
|
396
|
+
table.aspect-grid td.aspect-opposition .asp {
|
|
397
|
+
color: var(--roxy-danger, #dc2626);
|
|
398
|
+
}
|
|
399
|
+
table.aspect-grid td.aspect-conjunction .asp {
|
|
400
|
+
color: var(--roxy-accent-fg, #b45309);
|
|
401
|
+
}
|
|
402
|
+
table.aspect-grid td.aspect-other .asp {
|
|
403
|
+
color: var(--roxy-muted, #71717a);
|
|
404
|
+
}
|
|
405
|
+
|
|
282
406
|
.details {
|
|
283
407
|
margin-top: var(--roxy-space-md, 1rem);
|
|
284
408
|
}
|
|
@@ -319,48 +443,37 @@
|
|
|
319
443
|
margin: var(--roxy-space-md, 1rem) 0;
|
|
320
444
|
}
|
|
321
445
|
|
|
322
|
-
.
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
446
|
+
.em-grid {
|
|
447
|
+
border-collapse: collapse;
|
|
448
|
+
font-size: var(--roxy-text-xs, 0.75rem);
|
|
449
|
+
width: 100%;
|
|
326
450
|
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
451
|
+
.em-grid th,
|
|
452
|
+
.em-grid td {
|
|
453
|
+
border: 1px solid var(--roxy-border, #e4e4e7);
|
|
454
|
+
padding: 3px 5px;
|
|
455
|
+
text-align: center;
|
|
456
|
+
vertical-align: middle;
|
|
332
457
|
}
|
|
333
|
-
|
|
334
|
-
.dist-section h3 {
|
|
335
|
-
font-size: var(--roxy-text-xs, 0.75rem);
|
|
336
|
-
font-weight: var(--roxy-weight-bold, 600);
|
|
458
|
+
.em-grid th {
|
|
337
459
|
color: var(--roxy-muted, #71717a);
|
|
338
|
-
|
|
460
|
+
font-weight: var(--roxy-weight-bold, 600);
|
|
339
461
|
text-transform: uppercase;
|
|
340
|
-
letter-spacing: 0.
|
|
462
|
+
letter-spacing: 0.04em;
|
|
341
463
|
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
display: grid;
|
|
345
|
-
grid-template-columns: 4rem 1fr 1.5rem;
|
|
346
|
-
align-items: center;
|
|
347
|
-
gap: var(--roxy-space-xs, 0.25rem);
|
|
348
|
-
font-size: var(--roxy-text-xs, 0.75rem);
|
|
349
|
-
color: var(--roxy-fg, #0f172a);
|
|
350
|
-
margin-bottom: 4px;
|
|
464
|
+
.em-grid th[scope='row'] {
|
|
465
|
+
text-align: left;
|
|
351
466
|
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
height:
|
|
356
|
-
|
|
467
|
+
.em-grid td {
|
|
468
|
+
color: var(--roxy-accent, #f59e0b);
|
|
469
|
+
font-size: 0.95em;
|
|
470
|
+
line-height: 1.4;
|
|
471
|
+
min-width: 1.4rem;
|
|
357
472
|
}
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
background: var(--roxy-accent, #f59e0b);
|
|
363
|
-
border-radius: 3px;
|
|
473
|
+
.em-grid .em-total {
|
|
474
|
+
color: var(--roxy-fg, #0a0a0a);
|
|
475
|
+
font-weight: var(--roxy-weight-bold, 600);
|
|
476
|
+
background: color-mix(in srgb, var(--roxy-border, #e4e4e7) 25%, transparent);
|
|
364
477
|
}
|
|
365
478
|
|
|
366
479
|
.interpretations {
|
|
@@ -408,7 +521,7 @@
|
|
|
408
521
|
color: var(--roxy-accent-fg, #b45309);
|
|
409
522
|
font-size: var(--roxy-text-xs, 0.75rem);
|
|
410
523
|
}
|
|
411
|
-
`],
|
|
524
|
+
`],L([G({attribute:!1})],v.prototype,"data",2),L([G({type:String,attribute:"house-system",reflect:!0})],v.prototype,"houseSystem",2),L([It()],v.prototype,"view",2),v=L([Dt("roxy-natal-chart")],v);return Kt(he);})();
|
|
412
525
|
/*! Bundled license information:
|
|
413
526
|
|
|
414
527
|
@lit/reactive-element/css-tag.js:
|