@roxyapi/ui 0.2.3 → 0.3.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/AGENTS.md +216 -38
- package/README.md +200 -24
- 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 +5 -0
- 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
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
+
if (decorator = decorators[i])
|
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
+
if (kind && result) __defProp(target, key, result);
|
|
9
|
+
return result;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
// packages/ui/src/components/vedic-planets-table.ts
|
|
13
|
+
import { css as css2, html, LitElement, nothing } from "lit";
|
|
14
|
+
import { customElement, property } from "lit/decorators.js";
|
|
15
|
+
|
|
16
|
+
// packages/ui/src/tokens/index.ts
|
|
17
|
+
var PLANET_GLYPH = {
|
|
18
|
+
Sun: "\u2609",
|
|
19
|
+
Moon: "\u263D",
|
|
20
|
+
Mercury: "\u263F",
|
|
21
|
+
Venus: "\u2640",
|
|
22
|
+
Earth: "\u2641",
|
|
23
|
+
Mars: "\u2642",
|
|
24
|
+
Jupiter: "\u2643",
|
|
25
|
+
Saturn: "\u2644",
|
|
26
|
+
Uranus: "\u2645",
|
|
27
|
+
Neptune: "\u2646",
|
|
28
|
+
Pluto: "\u2647",
|
|
29
|
+
Rahu: "\u260A",
|
|
30
|
+
Ketu: "\u260B",
|
|
31
|
+
Ascendant: "Asc",
|
|
32
|
+
Lagna: "La",
|
|
33
|
+
NorthNode: "\u260A",
|
|
34
|
+
SouthNode: "\u260B",
|
|
35
|
+
"North node": "\u260A",
|
|
36
|
+
"South node": "\u260B",
|
|
37
|
+
Chiron: "\u26B7",
|
|
38
|
+
Lilith: "\u26B8",
|
|
39
|
+
"Black moon lilith": "\u26B8"
|
|
40
|
+
};
|
|
41
|
+
var SIGN_GLYPH = {
|
|
42
|
+
Aries: "\u2648",
|
|
43
|
+
Taurus: "\u2649",
|
|
44
|
+
Gemini: "\u264A",
|
|
45
|
+
Cancer: "\u264B",
|
|
46
|
+
Leo: "\u264C",
|
|
47
|
+
Virgo: "\u264D",
|
|
48
|
+
Libra: "\u264E",
|
|
49
|
+
Scorpio: "\u264F",
|
|
50
|
+
Sagittarius: "\u2650",
|
|
51
|
+
Capricorn: "\u2651",
|
|
52
|
+
Aquarius: "\u2652",
|
|
53
|
+
Pisces: "\u2653"
|
|
54
|
+
};
|
|
55
|
+
var SIGNS_ORDER = [
|
|
56
|
+
"Aries",
|
|
57
|
+
"Taurus",
|
|
58
|
+
"Gemini",
|
|
59
|
+
"Cancer",
|
|
60
|
+
"Leo",
|
|
61
|
+
"Virgo",
|
|
62
|
+
"Libra",
|
|
63
|
+
"Scorpio",
|
|
64
|
+
"Sagittarius",
|
|
65
|
+
"Capricorn",
|
|
66
|
+
"Aquarius",
|
|
67
|
+
"Pisces"
|
|
68
|
+
];
|
|
69
|
+
var RASHI_KEYS = SIGNS_ORDER.map(
|
|
70
|
+
(s) => s.toLowerCase()
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
// packages/ui/src/utils/base-styles.ts
|
|
74
|
+
import { css } from "lit";
|
|
75
|
+
var baseStyles = css`
|
|
76
|
+
:host {
|
|
77
|
+
display: block;
|
|
78
|
+
container-type: inline-size;
|
|
79
|
+
font-family: var(
|
|
80
|
+
--roxy-font-sans,
|
|
81
|
+
system-ui,
|
|
82
|
+
-apple-system,
|
|
83
|
+
BlinkMacSystemFont,
|
|
84
|
+
'Segoe UI',
|
|
85
|
+
Roboto,
|
|
86
|
+
sans-serif
|
|
87
|
+
);
|
|
88
|
+
color: var(--roxy-fg, #0a0a0a);
|
|
89
|
+
background: transparent;
|
|
90
|
+
font-size: var(--roxy-text-base, 1rem);
|
|
91
|
+
line-height: var(--roxy-leading-normal, 1.5);
|
|
92
|
+
animation: roxy-fade-in var(--roxy-motion-duration, 200ms)
|
|
93
|
+
var(--roxy-motion-easing, cubic-bezier(0.4, 0, 0.2, 1)) both;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
*,
|
|
97
|
+
*::before,
|
|
98
|
+
*::after {
|
|
99
|
+
box-sizing: border-box;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@keyframes roxy-fade-in {
|
|
103
|
+
from {
|
|
104
|
+
opacity: 0;
|
|
105
|
+
transform: translateY(2px);
|
|
106
|
+
}
|
|
107
|
+
to {
|
|
108
|
+
opacity: 1;
|
|
109
|
+
transform: translateY(0);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@media (prefers-reduced-motion: reduce) {
|
|
114
|
+
:host {
|
|
115
|
+
animation: none;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.roxy-skeleton {
|
|
120
|
+
background: linear-gradient(
|
|
121
|
+
90deg,
|
|
122
|
+
var(--roxy-border, #e4e4e7) 0%,
|
|
123
|
+
color-mix(in srgb, var(--roxy-border, #e4e4e7) 60%, transparent) 50%,
|
|
124
|
+
var(--roxy-border, #e4e4e7) 100%
|
|
125
|
+
);
|
|
126
|
+
background-size: 200% 100%;
|
|
127
|
+
animation: roxy-shimmer 1.4s ease-in-out infinite;
|
|
128
|
+
border-radius: var(--roxy-radius-md, 8px);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@keyframes roxy-shimmer {
|
|
132
|
+
0% {
|
|
133
|
+
background-position: 200% 0;
|
|
134
|
+
}
|
|
135
|
+
100% {
|
|
136
|
+
background-position: -200% 0;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@media (prefers-reduced-motion: reduce) {
|
|
141
|
+
.roxy-skeleton {
|
|
142
|
+
animation: none;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.roxy-empty {
|
|
147
|
+
padding: var(--roxy-space-lg, 1.5rem);
|
|
148
|
+
color: var(--roxy-muted, #71717a);
|
|
149
|
+
text-align: center;
|
|
150
|
+
font-size: var(--roxy-text-sm, 0.875rem);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
:host(:focus-within) .roxy-card {
|
|
154
|
+
outline: 2px solid var(--roxy-ring, rgba(245, 158, 11, 0.4));
|
|
155
|
+
outline-offset: 2px;
|
|
156
|
+
}
|
|
157
|
+
`;
|
|
158
|
+
|
|
159
|
+
// packages/ui/src/utils/degree.ts
|
|
160
|
+
function normalizeLongitude(lon) {
|
|
161
|
+
const wrapped = lon % 360;
|
|
162
|
+
return wrapped < 0 ? wrapped + 360 : wrapped;
|
|
163
|
+
}
|
|
164
|
+
function longitudeToSignPosition(longitude) {
|
|
165
|
+
const lon = normalizeLongitude(longitude);
|
|
166
|
+
const signIndex = Math.floor(lon / 30) % 12;
|
|
167
|
+
const within = lon % 30;
|
|
168
|
+
const degree = Math.floor(within);
|
|
169
|
+
const minuteFloat = (within - degree) * 60;
|
|
170
|
+
const minute = Math.floor(minuteFloat);
|
|
171
|
+
const second = Math.round((minuteFloat - minute) * 60);
|
|
172
|
+
return {
|
|
173
|
+
sign: SIGNS_ORDER[signIndex] ?? "Aries",
|
|
174
|
+
signIndex,
|
|
175
|
+
degree,
|
|
176
|
+
minute,
|
|
177
|
+
second
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
function formatSignPosition(longitude) {
|
|
181
|
+
const { sign, degree, minute } = longitudeToSignPosition(longitude);
|
|
182
|
+
return `${degree}\xB0 ${sign} ${String(minute).padStart(2, "0")}'`;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// packages/ui/src/utils/string.ts
|
|
186
|
+
function capitalize(s) {
|
|
187
|
+
if (!s) return "";
|
|
188
|
+
return s.charAt(0).toUpperCase() + s.slice(1).toLowerCase();
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// packages/ui/src/components/vedic-planets-table.ts
|
|
192
|
+
var GRAHA_ORDER = [
|
|
193
|
+
"Lagna",
|
|
194
|
+
"Sun",
|
|
195
|
+
"Moon",
|
|
196
|
+
"Mars",
|
|
197
|
+
"Mercury",
|
|
198
|
+
"Jupiter",
|
|
199
|
+
"Venus",
|
|
200
|
+
"Saturn",
|
|
201
|
+
"Rahu",
|
|
202
|
+
"Ketu"
|
|
203
|
+
];
|
|
204
|
+
var RoxyVedicPlanetsTable = class extends LitElement {
|
|
205
|
+
constructor() {
|
|
206
|
+
super(...arguments);
|
|
207
|
+
this.data = null;
|
|
208
|
+
}
|
|
209
|
+
/** Ordered [name, entry] pairs: GRAHA_ORDER first, then any extras. */
|
|
210
|
+
orderedRows() {
|
|
211
|
+
const meta = this.data?.meta ?? {};
|
|
212
|
+
const seen = /* @__PURE__ */ new Set();
|
|
213
|
+
const rows = [];
|
|
214
|
+
for (const name of GRAHA_ORDER) {
|
|
215
|
+
const entry = meta[name];
|
|
216
|
+
if (entry) {
|
|
217
|
+
rows.push([name, entry]);
|
|
218
|
+
seen.add(name);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
for (const [name, entry] of Object.entries(meta)) {
|
|
222
|
+
if (!seen.has(name)) rows.push([name, entry]);
|
|
223
|
+
}
|
|
224
|
+
return rows;
|
|
225
|
+
}
|
|
226
|
+
render() {
|
|
227
|
+
if (!this.data?.meta)
|
|
228
|
+
return html`<div class="roxy-empty" role="status">No chart data</div>`;
|
|
229
|
+
const rows = this.orderedRows();
|
|
230
|
+
return html`<div class="wrap" aria-label="Vedic planetary positions" tabindex="0">
|
|
231
|
+
<header class="head">
|
|
232
|
+
<h2 class="title">Planetary positions</h2>
|
|
233
|
+
</header>
|
|
234
|
+
<table role="table">
|
|
235
|
+
<thead>
|
|
236
|
+
<tr>
|
|
237
|
+
<th scope="col">Graha</th>
|
|
238
|
+
<th scope="col">Rashi</th>
|
|
239
|
+
<th scope="col">Degree</th>
|
|
240
|
+
<th scope="col">Nakshatra</th>
|
|
241
|
+
<th scope="col">Pada</th>
|
|
242
|
+
<th scope="col">Nak. lord</th>
|
|
243
|
+
<th scope="col">House</th>
|
|
244
|
+
<th scope="col">Avastha</th>
|
|
245
|
+
<th scope="col">Retro</th>
|
|
246
|
+
</tr>
|
|
247
|
+
</thead>
|
|
248
|
+
<tbody>
|
|
249
|
+
${rows.map(([name, p]) => {
|
|
250
|
+
const isLagna = (p.graha ?? name) === "Lagna";
|
|
251
|
+
const glyph = PLANET_GLYPH[capitalize(p.graha ?? name)] ?? "";
|
|
252
|
+
const signGlyph = SIGN_GLYPH[capitalize(p.rashi ?? "")] ?? "";
|
|
253
|
+
return html`<tr class=${isLagna ? "lagna" : ""}>
|
|
254
|
+
<td class="graha">
|
|
255
|
+
${glyph ? html`<span class="glyph">${glyph}</span>` : nothing}${p.graha ?? name}
|
|
256
|
+
</td>
|
|
257
|
+
<td>
|
|
258
|
+
${signGlyph ? html`<span class="glyph">${signGlyph}</span>` : nothing}${p.rashi ?? ""}
|
|
259
|
+
</td>
|
|
260
|
+
<td class="num">
|
|
261
|
+
${typeof p.longitude === "number" ? formatSignPosition(p.longitude) : ""}
|
|
262
|
+
</td>
|
|
263
|
+
<td>${p.nakshatra?.name ?? ""}</td>
|
|
264
|
+
<td class="num">${p.nakshatra?.pada ?? ""}</td>
|
|
265
|
+
<td>${p.nakshatra?.lord ?? ""}</td>
|
|
266
|
+
<td class="num">${typeof p.house === "number" ? p.house : ""}</td>
|
|
267
|
+
<td>${p.awastha ?? ""}</td>
|
|
268
|
+
<td>${p.isRetrograde ? html`<span class="retro">R</span>` : nothing}</td>
|
|
269
|
+
</tr>`;
|
|
270
|
+
})}
|
|
271
|
+
</tbody>
|
|
272
|
+
</table>
|
|
273
|
+
</div>`;
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
RoxyVedicPlanetsTable.styles = [
|
|
277
|
+
baseStyles,
|
|
278
|
+
css2`
|
|
279
|
+
.wrap {
|
|
280
|
+
border: 1px solid var(--roxy-border, #e4e4e7);
|
|
281
|
+
border-radius: var(--roxy-radius-md, 8px);
|
|
282
|
+
background: var(--roxy-bg, #fff);
|
|
283
|
+
overflow: auto;
|
|
284
|
+
box-shadow: var(--roxy-shadow-sm);
|
|
285
|
+
}
|
|
286
|
+
.head {
|
|
287
|
+
padding: var(--roxy-space-md, 1rem);
|
|
288
|
+
border-bottom: 1px solid var(--roxy-border, #e4e4e7);
|
|
289
|
+
}
|
|
290
|
+
.title {
|
|
291
|
+
margin: 0;
|
|
292
|
+
font-size: var(--roxy-text-lg, 1.125rem);
|
|
293
|
+
font-weight: var(--roxy-weight-bold, 600);
|
|
294
|
+
}
|
|
295
|
+
table {
|
|
296
|
+
width: 100%;
|
|
297
|
+
border-collapse: collapse;
|
|
298
|
+
font-size: var(--roxy-text-sm, 0.875rem);
|
|
299
|
+
min-width: 620px;
|
|
300
|
+
}
|
|
301
|
+
thead {
|
|
302
|
+
background: color-mix(in srgb, var(--roxy-border, #e4e4e7) 20%, transparent);
|
|
303
|
+
}
|
|
304
|
+
th,
|
|
305
|
+
td {
|
|
306
|
+
padding: var(--roxy-space-sm, 0.5rem) var(--roxy-space-md, 1rem);
|
|
307
|
+
text-align: left;
|
|
308
|
+
white-space: nowrap;
|
|
309
|
+
}
|
|
310
|
+
th {
|
|
311
|
+
color: var(--roxy-muted, #71717a);
|
|
312
|
+
font-weight: var(--roxy-weight-bold, 600);
|
|
313
|
+
text-transform: uppercase;
|
|
314
|
+
font-size: var(--roxy-text-xs, 0.75rem);
|
|
315
|
+
letter-spacing: 0.04em;
|
|
316
|
+
}
|
|
317
|
+
tbody tr {
|
|
318
|
+
border-top: 1px solid var(--roxy-border, #e4e4e7);
|
|
319
|
+
}
|
|
320
|
+
tbody tr.lagna {
|
|
321
|
+
background: color-mix(in srgb, var(--roxy-accent, #f59e0b) 10%, transparent);
|
|
322
|
+
}
|
|
323
|
+
td.graha {
|
|
324
|
+
font-weight: var(--roxy-weight-bold, 600);
|
|
325
|
+
color: var(--roxy-fg, #0a0a0a);
|
|
326
|
+
}
|
|
327
|
+
.glyph {
|
|
328
|
+
margin-right: 0.4em;
|
|
329
|
+
color: var(--roxy-muted, #71717a);
|
|
330
|
+
}
|
|
331
|
+
/* On the tinted Lagna row the muted glyph drops below the WCAG AA
|
|
332
|
+
contrast floor, so use the accent foreground there instead. */
|
|
333
|
+
tbody tr.lagna .glyph {
|
|
334
|
+
color: var(--roxy-accent-fg, #b45309);
|
|
335
|
+
}
|
|
336
|
+
.retro {
|
|
337
|
+
color: var(--roxy-warning-fg, #9a3412);
|
|
338
|
+
font-size: var(--roxy-text-xs, 0.75rem);
|
|
339
|
+
font-weight: var(--roxy-weight-bold, 600);
|
|
340
|
+
}
|
|
341
|
+
.num {
|
|
342
|
+
font-variant-numeric: tabular-nums;
|
|
343
|
+
}
|
|
344
|
+
`
|
|
345
|
+
];
|
|
346
|
+
__decorateClass([
|
|
347
|
+
property({ attribute: false })
|
|
348
|
+
], RoxyVedicPlanetsTable.prototype, "data", 2);
|
|
349
|
+
RoxyVedicPlanetsTable = __decorateClass([
|
|
350
|
+
customElement("roxy-vedic-planets-table")
|
|
351
|
+
], RoxyVedicPlanetsTable);
|
|
352
|
+
export {
|
|
353
|
+
RoxyVedicPlanetsTable
|
|
354
|
+
};
|
|
355
|
+
//# sourceMappingURL=vedic-planets-table.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/vedic-planets-table.ts", "../../src/tokens/index.ts", "../../src/utils/base-styles.ts", "../../src/utils/degree.ts", "../../src/utils/string.ts"],
|
|
4
|
+
"sourcesContent": ["import { css, html, LitElement, nothing } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { PLANET_GLYPH, SIGN_GLYPH } from '../tokens/index.js';\nimport type { BirthChartResponse } from '../types/index.js';\nimport { baseStyles } from '../utils/base-styles.js';\nimport { formatSignPosition } from '../utils/degree.js';\nimport { capitalize } from '../utils/string.js';\n\n/**\n * Fixed display order: Lagna pinned first as the chart frame, then the nine\n * grahas in classical sequence. Any graha not in this list is appended.\n */\nconst GRAHA_ORDER = [\n\t'Lagna',\n\t'Sun',\n\t'Moon',\n\t'Mars',\n\t'Mercury',\n\t'Jupiter',\n\t'Venus',\n\t'Saturn',\n\t'Rahu',\n\t'Ketu',\n];\n\ntype MetaEntry = BirthChartResponse['meta'][string];\n\n/**\n * Vedic planetary positions table. Renders /vedic-astrology/birth-chart `meta`\n * as the full reference-grade positions grid a practitioner reads alongside\n * the kundli wheel: graha, rashi, exact degree, nakshatra and pada, nakshatra\n * lord, bhava (house), Baladi avastha, and retrograde.\n */\n@customElement('roxy-vedic-planets-table')\nexport class RoxyVedicPlanetsTable extends LitElement {\n\tstatic styles = [\n\t\tbaseStyles,\n\t\tcss`\n\t\t\t.wrap {\n\t\t\t\tborder: 1px solid var(--roxy-border, #e4e4e7);\n\t\t\t\tborder-radius: var(--roxy-radius-md, 8px);\n\t\t\t\tbackground: var(--roxy-bg, #fff);\n\t\t\t\toverflow: auto;\n\t\t\t\tbox-shadow: var(--roxy-shadow-sm);\n\t\t\t}\n\t\t\t.head {\n\t\t\t\tpadding: var(--roxy-space-md, 1rem);\n\t\t\t\tborder-bottom: 1px solid var(--roxy-border, #e4e4e7);\n\t\t\t}\n\t\t\t.title {\n\t\t\t\tmargin: 0;\n\t\t\t\tfont-size: var(--roxy-text-lg, 1.125rem);\n\t\t\t\tfont-weight: var(--roxy-weight-bold, 600);\n\t\t\t}\n\t\t\ttable {\n\t\t\t\twidth: 100%;\n\t\t\t\tborder-collapse: collapse;\n\t\t\t\tfont-size: var(--roxy-text-sm, 0.875rem);\n\t\t\t\tmin-width: 620px;\n\t\t\t}\n\t\t\tthead {\n\t\t\t\tbackground: color-mix(in srgb, var(--roxy-border, #e4e4e7) 20%, transparent);\n\t\t\t}\n\t\t\tth,\n\t\t\ttd {\n\t\t\t\tpadding: var(--roxy-space-sm, 0.5rem) var(--roxy-space-md, 1rem);\n\t\t\t\ttext-align: left;\n\t\t\t\twhite-space: nowrap;\n\t\t\t}\n\t\t\tth {\n\t\t\t\tcolor: var(--roxy-muted, #71717a);\n\t\t\t\tfont-weight: var(--roxy-weight-bold, 600);\n\t\t\t\ttext-transform: uppercase;\n\t\t\t\tfont-size: var(--roxy-text-xs, 0.75rem);\n\t\t\t\tletter-spacing: 0.04em;\n\t\t\t}\n\t\t\ttbody tr {\n\t\t\t\tborder-top: 1px solid var(--roxy-border, #e4e4e7);\n\t\t\t}\n\t\t\ttbody tr.lagna {\n\t\t\t\tbackground: color-mix(in srgb, var(--roxy-accent, #f59e0b) 10%, transparent);\n\t\t\t}\n\t\t\ttd.graha {\n\t\t\t\tfont-weight: var(--roxy-weight-bold, 600);\n\t\t\t\tcolor: var(--roxy-fg, #0a0a0a);\n\t\t\t}\n\t\t\t.glyph {\n\t\t\t\tmargin-right: 0.4em;\n\t\t\t\tcolor: var(--roxy-muted, #71717a);\n\t\t\t}\n\t\t\t/* On the tinted Lagna row the muted glyph drops below the WCAG AA\n\t\t\t contrast floor, so use the accent foreground there instead. */\n\t\t\ttbody tr.lagna .glyph {\n\t\t\t\tcolor: var(--roxy-accent-fg, #b45309);\n\t\t\t}\n\t\t\t.retro {\n\t\t\t\tcolor: var(--roxy-warning-fg, #9a3412);\n\t\t\t\tfont-size: var(--roxy-text-xs, 0.75rem);\n\t\t\t\tfont-weight: var(--roxy-weight-bold, 600);\n\t\t\t}\n\t\t\t.num {\n\t\t\t\tfont-variant-numeric: tabular-nums;\n\t\t\t}\n\t\t`,\n\t];\n\n\t@property({ attribute: false })\n\tdata: BirthChartResponse | null = null;\n\n\t/** Ordered [name, entry] pairs: GRAHA_ORDER first, then any extras. */\n\tprivate orderedRows(): Array<[string, MetaEntry]> {\n\t\tconst meta = this.data?.meta ?? {};\n\t\tconst seen = new Set<string>();\n\t\tconst rows: Array<[string, MetaEntry]> = [];\n\t\tfor (const name of GRAHA_ORDER) {\n\t\t\tconst entry = meta[name];\n\t\t\tif (entry) {\n\t\t\t\trows.push([name, entry]);\n\t\t\t\tseen.add(name);\n\t\t\t}\n\t\t}\n\t\tfor (const [name, entry] of Object.entries(meta)) {\n\t\t\tif (!seen.has(name)) rows.push([name, entry]);\n\t\t}\n\t\treturn rows;\n\t}\n\n\trender() {\n\t\tif (!this.data?.meta)\n\t\t\treturn html`<div class=\"roxy-empty\" role=\"status\">No chart data</div>`;\n\t\tconst rows = this.orderedRows();\n\n\t\treturn html`<div class=\"wrap\" aria-label=\"Vedic planetary positions\" tabindex=\"0\">\n\t\t\t<header class=\"head\">\n\t\t\t\t<h2 class=\"title\">Planetary positions</h2>\n\t\t\t</header>\n\t\t\t<table role=\"table\">\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th scope=\"col\">Graha</th>\n\t\t\t\t\t\t<th scope=\"col\">Rashi</th>\n\t\t\t\t\t\t<th scope=\"col\">Degree</th>\n\t\t\t\t\t\t<th scope=\"col\">Nakshatra</th>\n\t\t\t\t\t\t<th scope=\"col\">Pada</th>\n\t\t\t\t\t\t<th scope=\"col\">Nak. lord</th>\n\t\t\t\t\t\t<th scope=\"col\">House</th>\n\t\t\t\t\t\t<th scope=\"col\">Avastha</th>\n\t\t\t\t\t\t<th scope=\"col\">Retro</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t${rows.map(([name, p]) => {\n\t\t\t\t\t\tconst isLagna = (p.graha ?? name) === 'Lagna';\n\t\t\t\t\t\tconst glyph = PLANET_GLYPH[capitalize(p.graha ?? name)] ?? '';\n\t\t\t\t\t\tconst signGlyph = SIGN_GLYPH[capitalize(p.rashi ?? '')] ?? '';\n\t\t\t\t\t\treturn html`<tr class=${isLagna ? 'lagna' : ''}>\n\t\t\t\t\t\t\t<td class=\"graha\">\n\t\t\t\t\t\t\t\t${glyph ? html`<span class=\"glyph\">${glyph}</span>` : nothing}${p.graha ?? name}\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t${signGlyph ? html`<span class=\"glyph\">${signGlyph}</span>` : nothing}${p.rashi ?? ''}\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td class=\"num\">\n\t\t\t\t\t\t\t\t${typeof p.longitude === 'number' ? formatSignPosition(p.longitude) : ''}\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td>${p.nakshatra?.name ?? ''}</td>\n\t\t\t\t\t\t\t<td class=\"num\">${p.nakshatra?.pada ?? ''}</td>\n\t\t\t\t\t\t\t<td>${p.nakshatra?.lord ?? ''}</td>\n\t\t\t\t\t\t\t<td class=\"num\">${typeof p.house === 'number' ? p.house : ''}</td>\n\t\t\t\t\t\t\t<td>${p.awastha ?? ''}</td>\n\t\t\t\t\t\t\t<td>${p.isRetrograde ? html`<span class=\"retro\">R</span>` : nothing}</td>\n\t\t\t\t\t\t</tr>`;\n\t\t\t\t\t})}\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</div>`;\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'roxy-vedic-planets-table': RoxyVedicPlanetsTable;\n\t}\n}\n", "/**\n * Symbol constants used across components. Single source of truth so chart\n * wheels, card headers, hexagram displays, and panchang tables stay visually\n * consistent.\n */\n\nexport const PLANET_GLYPH: Record<string, string> = {\n\tSun: '\u2609',\n\tMoon: '\u263D',\n\tMercury: '\u263F',\n\tVenus: '\u2640',\n\tEarth: '\u2641',\n\tMars: '\u2642',\n\tJupiter: '\u2643',\n\tSaturn: '\u2644',\n\tUranus: '\u2645',\n\tNeptune: '\u2646',\n\tPluto: '\u2647',\n\tRahu: '\u260A',\n\tKetu: '\u260B',\n\tAscendant: 'Asc',\n\tLagna: 'La',\n\tNorthNode: '\u260A',\n\tSouthNode: '\u260B',\n\t'North node': '\u260A',\n\t'South node': '\u260B',\n\tChiron: '\u26B7',\n\tLilith: '\u26B8',\n\t'Black moon lilith': '\u26B8',\n};\n\nexport const PLANET_ABBR: Record<string, string> = {\n\tSun: 'Su',\n\tMoon: 'Mo',\n\tMercury: 'Me',\n\tVenus: 'Ve',\n\tMars: 'Ma',\n\tJupiter: 'Ju',\n\tSaturn: 'Sa',\n\tUranus: 'Ur',\n\tNeptune: 'Ne',\n\tPluto: 'Pl',\n\tRahu: 'Ra',\n\tKetu: 'Ke',\n\tAscendant: 'Asc',\n\tLagna: 'La',\n};\n\nexport const SIGN_GLYPH: Record<string, string> = {\n\tAries: '\u2648',\n\tTaurus: '\u2649',\n\tGemini: '\u264A',\n\tCancer: '\u264B',\n\tLeo: '\u264C',\n\tVirgo: '\u264D',\n\tLibra: '\u264E',\n\tScorpio: '\u264F',\n\tSagittarius: '\u2650',\n\tCapricorn: '\u2651',\n\tAquarius: '\u2652',\n\tPisces: '\u2653',\n};\n\nexport const SIGN_ABBR: Record<string, string> = {\n\tAries: 'Ar',\n\tTaurus: 'Ta',\n\tGemini: 'Ge',\n\tCancer: 'Cn',\n\tLeo: 'Le',\n\tVirgo: 'Vi',\n\tLibra: 'Li',\n\tScorpio: 'Sc',\n\tSagittarius: 'Sg',\n\tCapricorn: 'Cp',\n\tAquarius: 'Aq',\n\tPisces: 'Pi',\n};\n\nexport const SIGNS_ORDER = [\n\t'Aries',\n\t'Taurus',\n\t'Gemini',\n\t'Cancer',\n\t'Leo',\n\t'Virgo',\n\t'Libra',\n\t'Scorpio',\n\t'Sagittarius',\n\t'Capricorn',\n\t'Aquarius',\n\t'Pisces',\n] as const;\n\n/**\n * Lowercase rashi keys in canonical zodiac order. Derived from `SIGNS_ORDER`\n * so the two stay in lockstep. The /vedic-astrology/birth-chart response\n * carries planet buckets keyed by these names.\n */\nexport const RASHI_KEYS = SIGNS_ORDER.map((s) =>\n\ts.toLowerCase(),\n) as readonly Lowercase<(typeof SIGNS_ORDER)[number]>[];\n\n/** Aspect symbols. Used by synastry and natal chart aspect tables. */\nexport const ASPECT_SYMBOL: Record<string, string> = {\n\tconjunction: '\u260C',\n\topposition: '\u260D',\n\ttrine: '\u25B3',\n\tsquare: '\u25A1',\n\tsextile: '\u2731',\n\tquincunx: '\u22BB',\n\tsemisextile: '\u22BC',\n};\n\n/** Trigrams used by I Ching hexagrams. Eight trigrams compose 64 hexagrams. */\nexport const TRIGRAM_GLYPH: Record<string, string> = {\n\theaven: '\u2630',\n\tlake: '\u2631',\n\tfire: '\u2632',\n\tthunder: '\u2633',\n\twind: '\u2634',\n\twater: '\u2635',\n\tmountain: '\u2636',\n\tearth: '\u2637',\n\tHeaven: '\u2630',\n\tLake: '\u2631',\n\tFire: '\u2632',\n\tThunder: '\u2633',\n\tWind: '\u2634',\n\tWater: '\u2635',\n\tMountain: '\u2636',\n\tEarth: '\u2637',\n};\n\n/** Moon phase emoji set. Used by moon phase card. */\nexport const MOON_PHASE_EMOJI: Record<string, string> = {\n\t'new moon': '\uD83C\uDF11',\n\t'waxing crescent': '\uD83C\uDF12',\n\t'first quarter': '\uD83C\uDF13',\n\t'waxing gibbous': '\uD83C\uDF14',\n\t'full moon': '\uD83C\uDF15',\n\t'waning gibbous': '\uD83C\uDF16',\n\t'last quarter': '\uD83C\uDF17',\n\t'waning crescent': '\uD83C\uDF18',\n};\n", "import { css } from 'lit';\n\n/**\n * Shared host styles every component pulls in. Sets default font, color,\n * container query support, and the entry fade-in.\n */\nexport const baseStyles = css`\n\t:host {\n\t\tdisplay: block;\n\t\tcontainer-type: inline-size;\n\t\tfont-family: var(\n\t\t\t--roxy-font-sans,\n\t\t\tsystem-ui,\n\t\t\t-apple-system,\n\t\t\tBlinkMacSystemFont,\n\t\t\t'Segoe UI',\n\t\t\tRoboto,\n\t\t\tsans-serif\n\t\t);\n\t\tcolor: var(--roxy-fg, #0a0a0a);\n\t\tbackground: transparent;\n\t\tfont-size: var(--roxy-text-base, 1rem);\n\t\tline-height: var(--roxy-leading-normal, 1.5);\n\t\tanimation: roxy-fade-in var(--roxy-motion-duration, 200ms)\n\t\t\tvar(--roxy-motion-easing, cubic-bezier(0.4, 0, 0.2, 1)) both;\n\t}\n\n\t*,\n\t*::before,\n\t*::after {\n\t\tbox-sizing: border-box;\n\t}\n\n\t@keyframes roxy-fade-in {\n\t\tfrom {\n\t\t\topacity: 0;\n\t\t\ttransform: translateY(2px);\n\t\t}\n\t\tto {\n\t\t\topacity: 1;\n\t\t\ttransform: translateY(0);\n\t\t}\n\t}\n\n\t@media (prefers-reduced-motion: reduce) {\n\t\t:host {\n\t\t\tanimation: none;\n\t\t}\n\t}\n\n\t.roxy-skeleton {\n\t\tbackground: linear-gradient(\n\t\t\t90deg,\n\t\t\tvar(--roxy-border, #e4e4e7) 0%,\n\t\t\tcolor-mix(in srgb, var(--roxy-border, #e4e4e7) 60%, transparent) 50%,\n\t\t\tvar(--roxy-border, #e4e4e7) 100%\n\t\t);\n\t\tbackground-size: 200% 100%;\n\t\tanimation: roxy-shimmer 1.4s ease-in-out infinite;\n\t\tborder-radius: var(--roxy-radius-md, 8px);\n\t}\n\n\t@keyframes roxy-shimmer {\n\t\t0% {\n\t\t\tbackground-position: 200% 0;\n\t\t}\n\t\t100% {\n\t\t\tbackground-position: -200% 0;\n\t\t}\n\t}\n\n\t@media (prefers-reduced-motion: reduce) {\n\t\t.roxy-skeleton {\n\t\t\tanimation: none;\n\t\t}\n\t}\n\n\t.roxy-empty {\n\t\tpadding: var(--roxy-space-lg, 1.5rem);\n\t\tcolor: var(--roxy-muted, #71717a);\n\t\ttext-align: center;\n\t\tfont-size: var(--roxy-text-sm, 0.875rem);\n\t}\n\n\t:host(:focus-within) .roxy-card {\n\t\toutline: 2px solid var(--roxy-ring, rgba(245, 158, 11, 0.4));\n\t\toutline-offset: 2px;\n\t}\n`;\n", "/**\n * Math helpers for converting raw ecliptic longitude decimals into the\n * sign / degree / minute / second triplet used across chart components.\n */\n\nimport { SIGNS_ORDER } from '../tokens/index.js';\n\nexport interface SignPosition {\n\tsign: string;\n\tsignIndex: number;\n\tdegree: number;\n\tminute: number;\n\tsecond: number;\n}\n\n/**\n * Wrap longitude into [0, 360) so negative or out-of-range values still\n * resolve to a real sign. Robust to wonky upstream data.\n */\nexport function normalizeLongitude(lon: number): number {\n\tconst wrapped = lon % 360;\n\treturn wrapped < 0 ? wrapped + 360 : wrapped;\n}\n\n/**\n * Convert decimal ecliptic longitude (0-360) into sign/degree/minute/second.\n * Used by every chart wheel and aspect table.\n */\nexport function longitudeToSignPosition(longitude: number): SignPosition {\n\tconst lon = normalizeLongitude(longitude);\n\tconst signIndex = Math.floor(lon / 30) % 12;\n\tconst within = lon % 30;\n\tconst degree = Math.floor(within);\n\tconst minuteFloat = (within - degree) * 60;\n\tconst minute = Math.floor(minuteFloat);\n\tconst second = Math.round((minuteFloat - minute) * 60);\n\treturn {\n\t\tsign: SIGNS_ORDER[signIndex] ?? 'Aries',\n\t\tsignIndex,\n\t\tdegree,\n\t\tminute,\n\t\tsecond,\n\t};\n}\n\n/** Compact display string like \"12\u00B0 Leo 34'\". Used in chart labels. */\nexport function formatSignPosition(longitude: number): string {\n\tconst { sign, degree, minute } = longitudeToSignPosition(longitude);\n\treturn `${degree}\u00B0 ${sign} ${String(minute).padStart(2, '0')}'`;\n}\n\n/**\n * The point diametrically opposite a longitude (e.g. Descendant from\n * Ascendant, IC from MC). Exact derivation, always 180 degrees away.\n */\nexport function oppositePoint(longitude: number): number {\n\treturn normalizeLongitude(longitude + 180);\n}\n\n/**\n * Midpoint of the forward arc from `start` to `end` (both ecliptic\n * longitudes). Handles the 360/0 wrap, so a house spanning 350 to 20 degrees\n * yields a midpoint of 5, not 185. Used to place house numbers between two\n * cusps regardless of how unequal the house is.\n */\nexport function arcMidpoint(start: number, end: number): number {\n\tconst s = normalizeLongitude(start);\n\tlet span = normalizeLongitude(end) - s;\n\tif (span < 0) span += 360;\n\treturn normalizeLongitude(s + span / 2);\n}\n\n/** Polar to cartesian for SVG wheel positioning. Angle in degrees, 0 at 3 o'clock. */\nexport function polarToCartesian(\n\tcx: number,\n\tcy: number,\n\tradius: number,\n\tangleDeg: number,\n): { x: number; y: number } {\n\tconst angleRad = (angleDeg * Math.PI) / 180;\n\treturn {\n\t\tx: cx + radius * Math.cos(angleRad),\n\t\ty: cy + radius * Math.sin(angleRad),\n\t};\n}\n", "/**\n * Shared string helpers used across components. Single source of truth so the\n * same formatting rules apply to every key/label/title that surfaces in the\n * shadow tree.\n *\n * - `capitalize`: title-cases the first character, lowercases the rest. Used\n * when matching API-supplied planet/sign names against the glyph maps in\n * `tokens/index.ts`, which use canonical TitleCase keys.\n * - `humanize`: turns an API key (`birth_date`, `birthDate`, `mahadasha-end`)\n * into a label suitable for display (\"Birth date\", \"Mahadasha end\").\n */\n\nexport function capitalize(s: string): string {\n\tif (!s) return '';\n\treturn s.charAt(0).toUpperCase() + s.slice(1).toLowerCase();\n}\n\nexport function humanize(s: string): string {\n\treturn s\n\t\t.replace(/[_-]+/g, ' ')\n\t\t.replace(/([a-z])([A-Z])/g, '$1 $2')\n\t\t.replace(/^\\w/, (c) => c.toUpperCase());\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;AAAA,SAAS,OAAAA,MAAK,MAAM,YAAY,eAAe;AAC/C,SAAS,eAAe,gBAAgB;;;ACKjC,IAAM,eAAuC;AAAA,EACnD,KAAK;AAAA,EACL,MAAM;AAAA,EACN,SAAS;AAAA,EACT,OAAO;AAAA,EACP,OAAO;AAAA,EACP,MAAM;AAAA,EACN,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AAAA,EACN,WAAW;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AAAA,EACX,WAAW;AAAA,EACX,cAAc;AAAA,EACd,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,qBAAqB;AACtB;AAmBO,IAAM,aAAqC;AAAA,EACjD,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,KAAK;AAAA,EACL,OAAO;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,aAAa;AAAA,EACb,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AACT;AAiBO,IAAM,cAAc;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;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;AAzEY,wBAAN;AAAA,EADN,cAAc,0BAA0B;AAAA,GAC5B;",
|
|
6
|
+
"names": ["css", "css"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import type { NatalChartResponse } from '../types/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* Western planetary positions table. Renders a /astrology/natal-chart response
|
|
5
|
+
* as the reference-grade positions grid astrologers read alongside the wheel:
|
|
6
|
+
* every body with its sign, exact degree, house, and daily motion, followed by
|
|
7
|
+
* the four chart points (Ascendant, Midheaven, Part of Fortune, Vertex).
|
|
8
|
+
*/
|
|
9
|
+
export declare class RoxyWesternPlanetsTable extends LitElement {
|
|
10
|
+
static styles: import("lit").CSSResult[];
|
|
11
|
+
data: NatalChartResponse | null;
|
|
12
|
+
/** Build the ordered row list: the planets array, then the four chart points. */
|
|
13
|
+
private rows;
|
|
14
|
+
render(): import("lit").TemplateResult<1>;
|
|
15
|
+
}
|
|
16
|
+
declare global {
|
|
17
|
+
interface HTMLElementTagNameMap {
|
|
18
|
+
'roxy-western-planets-table': RoxyWesternPlanetsTable;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=western-planets-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"western-planets-table.d.ts","sourceRoot":"","sources":["../../src/components/western-planets-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAW,MAAM,KAAK,CAAC;AAGrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAkB5D;;;;;GAKG;AACH,qBACa,uBAAwB,SAAQ,UAAU;IACtD,MAAM,CAAC,MAAM,4BA+DX;IAGF,IAAI,EAAE,kBAAkB,GAAG,IAAI,CAAQ;IAEvC,iFAAiF;IACjF,OAAO,CAAC,IAAI;IA6BZ,MAAM;CA8CN;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,4BAA4B,EAAE,uBAAuB,CAAC;KACtD;CACD"}
|