@roxyapi/ui 0.53.0 → 0.53.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.
@@ -1 +1 @@
1
- {"title":"Calculate numerology compatibility","fields":[{"key":"person1.fullName","name":"fullName","group":"person1","kind":"text","required":false,"description":"Full birth name to calculate Expression and Soul Urge numbers automatically. Use instead of passing expression and soulUrge directly.","example":"John William Smith"},{"key":"person1.year","name":"year","group":"person1","kind":"number","required":false,"description":"Birth year to calculate Life Path automatically. Use with month and day instead of passing lifePath directly.","min":100,"max":2100,"example":1990},{"key":"person1.month","name":"month","group":"person1","kind":"number","required":false,"description":"Birth month (1-12). Required with year and day for automatic Life Path calculation.","min":1,"max":12,"example":7},{"key":"person1.day","name":"day","group":"person1","kind":"number","required":false,"description":"Birth day (1-31). Required with year and month for automatic Life Path calculation.","min":1,"max":31,"example":15},{"key":"person1.lifePath","name":"lifePath","group":"person1","kind":"number","required":false,"description":"Person 1 Life Path number (1-9, 11, 22, 33). Optional if year, month, day are provided.","min":1,"max":33,"example":5},{"key":"person1.expression","name":"expression","group":"person1","kind":"number","required":false,"description":"Person 1 Expression number (1-9, 11, 22, 33). Optional if fullName is provided.","min":1,"max":33,"example":7},{"key":"person1.soulUrge","name":"soulUrge","group":"person1","kind":"number","required":false,"description":"Person 1 Soul Urge number (1-9, 11, 22, 33). Optional if fullName is provided.","min":1,"max":33,"example":6},{"key":"person2.fullName","name":"fullName","group":"person2","kind":"text","required":false,"description":"Full birth name to calculate Expression and Soul Urge numbers automatically. Use instead of passing expression and soulUrge directly.","example":"Jane Marie Doe"},{"key":"person2.year","name":"year","group":"person2","kind":"number","required":false,"description":"Birth year to calculate Life Path automatically. Use with month and day instead of passing lifePath directly.","min":100,"max":2100,"example":1992},{"key":"person2.month","name":"month","group":"person2","kind":"number","required":false,"description":"Birth month (1-12). Required with year and day for automatic Life Path calculation.","min":1,"max":12,"example":3},{"key":"person2.day","name":"day","group":"person2","kind":"number","required":false,"description":"Birth day (1-31). Required with year and month for automatic Life Path calculation.","min":1,"max":31,"example":22},{"key":"person2.lifePath","name":"lifePath","group":"person2","kind":"number","required":false,"description":"Person 2 Life Path number (1-9, 11, 22, 33). Optional if year, month, day are provided.","min":1,"max":33,"example":3},{"key":"person2.expression","name":"expression","group":"person2","kind":"number","required":false,"description":"Person 2 Expression number (1-9, 11, 22, 33). Optional if fullName is provided.","min":1,"max":33,"example":9},{"key":"person2.soulUrge","name":"soulUrge","group":"person2","kind":"number","required":false,"description":"Person 2 Soul Urge number (1-9, 11, 22, 33). Optional if fullName is provided.","min":1,"max":33,"example":2}],"hasLang":true,"groups":[{"key":"person1","label":"Person 1"},{"key":"person2","label":"Person 2"}],"opensOnLoad":false}
1
+ {"title":"Calculate numerology compatibility","fields":[{"key":"person1.fullName","name":"fullName","group":"person1","kind":"text","required":true,"description":"Full birth name to calculate Expression and Soul Urge numbers automatically. Use instead of passing expression and soulUrge directly.","example":"John William Smith"},{"key":"person1.year","name":"year","group":"person1","kind":"number","required":true,"description":"Birth year to calculate Life Path automatically. Use with month and day instead of passing lifePath directly.","min":100,"max":2100,"example":1990},{"key":"person1.month","name":"month","group":"person1","kind":"number","required":true,"description":"Birth month (1-12). Required with year and day for automatic Life Path calculation.","min":1,"max":12,"example":7},{"key":"person1.day","name":"day","group":"person1","kind":"number","required":true,"description":"Birth day (1-31). Required with year and month for automatic Life Path calculation.","min":1,"max":31,"example":15},{"key":"person1.lifePath","name":"lifePath","group":"person1","kind":"number","required":false,"description":"Person 1 Life Path number (1-9, 11, 22, 33). Optional if year, month, day are provided.","min":1,"max":33,"example":5},{"key":"person1.expression","name":"expression","group":"person1","kind":"number","required":false,"description":"Person 1 Expression number (1-9, 11, 22, 33). Optional if fullName is provided.","min":1,"max":33,"example":7},{"key":"person1.soulUrge","name":"soulUrge","group":"person1","kind":"number","required":false,"description":"Person 1 Soul Urge number (1-9, 11, 22, 33). Optional if fullName is provided.","min":1,"max":33,"example":6},{"key":"person2.fullName","name":"fullName","group":"person2","kind":"text","required":true,"description":"Full birth name to calculate Expression and Soul Urge numbers automatically. Use instead of passing expression and soulUrge directly.","example":"Jane Marie Doe"},{"key":"person2.year","name":"year","group":"person2","kind":"number","required":true,"description":"Birth year to calculate Life Path automatically. Use with month and day instead of passing lifePath directly.","min":100,"max":2100,"example":1992},{"key":"person2.month","name":"month","group":"person2","kind":"number","required":true,"description":"Birth month (1-12). Required with year and day for automatic Life Path calculation.","min":1,"max":12,"example":3},{"key":"person2.day","name":"day","group":"person2","kind":"number","required":true,"description":"Birth day (1-31). Required with year and month for automatic Life Path calculation.","min":1,"max":31,"example":22},{"key":"person2.lifePath","name":"lifePath","group":"person2","kind":"number","required":false,"description":"Person 2 Life Path number (1-9, 11, 22, 33). Optional if year, month, day are provided.","min":1,"max":33,"example":3},{"key":"person2.expression","name":"expression","group":"person2","kind":"number","required":false,"description":"Person 2 Expression number (1-9, 11, 22, 33). Optional if fullName is provided.","min":1,"max":33,"example":9},{"key":"person2.soulUrge","name":"soulUrge","group":"person2","kind":"number","required":false,"description":"Person 2 Soul Urge number (1-9, 11, 22, 33). Optional if fullName is provided.","min":1,"max":33,"example":2}],"hasLang":true,"groups":[{"key":"person1","label":"Person 1"},{"key":"person2","label":"Person 2"}],"opensOnLoad":false}
@@ -1 +1 @@
1
- {"title":"Calculate entrance pada","fields":[{"key":"plot.width","name":"width","group":"plot","kind":"number","required":false,"description":"East-west extent of a rectangular plot, in the unit given. Send this with depth for a rectangle, or send polygon instead.","min":0,"example":30},{"key":"plot.depth","name":"depth","group":"plot","kind":"number","required":false,"description":"North-south extent of a rectangular plot, in the unit given. Send this with width for a rectangle, or send polygon instead.","min":0,"example":40},{"key":"plot.unit","name":"unit","group":"plot","kind":"tiles","required":false,"description":"Unit the plot dimensions are given in. Every distance the response returns is in this same unit. The mandala projection is scale free, so this affects the areas and the marma size and nothing else.","enum":["feet","metres"],"default":"feet","example":"feet"},{"key":"facing","name":"facing","kind":"tiles","required":false,"description":"Direction the front of the house looks out toward, one of the eight compass sectors. Case and punctuation are folded, so north-east, northeast and NorthEast all resolve. Send this or facingDegrees, never both.","enum":["North","Northeast","East","Southeast","South","Southwest","West","Northwest"],"example":"North"},{"key":"facingDegrees","name":"facingDegrees","kind":"number","required":false,"description":"Direction the front of the house looks out toward, as a compass bearing in degrees clockwise from true north, measured looking OUT from the building. The same convention the feng shui facing endpoints use, so a bearing works unchanged across the two domains. Send this or facing, never both.","min":0,"max":360,"example":15},{"key":"door.x","name":"x","group":"door","kind":"number","required":false,"description":"Distance east of the plot origin, in the same unit as the plot. The x axis runs east.","example":15},{"key":"door.y","name":"y","group":"door","kind":"number","required":false,"description":"Distance north of the plot origin, in the same unit as the plot. The y axis runs north.","example":0},{"key":"doorPosition","name":"doorPosition","kind":"number","required":false,"description":"Where the main door sits along the facing side, as a fraction from 0 to 1 measured from the corner the chapter starts that side at: the north-east for an east facing, the south-east for a south facing, the south-west for a west facing and the north-west for a north facing. The side carries 8 padas, so to aim at pada n of 8 send its midpoint, (n - 0.5) / 8: 0.0625 for the first pada, 0.4375 for the fourth, 0.9375 for the eighth. The response names the pada the fraction resolved to in ordinalOnSide. Requires a cardinal facing, since an intercardinal facing names no single side. Send this or door, never both.","min":0,"max":1,"example":0.4},{"key":"grid","name":"grid","kind":"tiles","required":false,"description":"Which division of the ground to read: 81-pada is the Paramasayika of Brihat Samhita 53.42, the grid the chapter numbers and names every devata on, and 64-pada is the Manduka of 53.55, for which the chapter gives structure only and no devata names. Defaults to 81-pada.","enum":["81-pada","64-pada"],"default":"81-pada","example":"81-pada","fold":true}],"hasLang":true,"groups":[{"key":"plot","label":"Plot"},{},{"key":"door","label":"Door"}],"opensOnLoad":false}
1
+ {"title":"Calculate entrance pada","fields":[{"key":"plot.width","name":"width","group":"plot","kind":"number","required":true,"description":"East-west extent of a rectangular plot, in the unit given. Send this with depth for a rectangle, or send polygon instead.","min":0,"example":30},{"key":"plot.depth","name":"depth","group":"plot","kind":"number","required":true,"description":"North-south extent of a rectangular plot, in the unit given. Send this with width for a rectangle, or send polygon instead.","min":0,"example":40},{"key":"plot.unit","name":"unit","group":"plot","kind":"tiles","required":false,"description":"Unit the plot dimensions are given in. Every distance the response returns is in this same unit. The mandala projection is scale free, so this affects the areas and the marma size and nothing else.","enum":["feet","metres"],"default":"feet","example":"feet"},{"key":"facing","name":"facing","kind":"tiles","required":true,"description":"Direction the front of the house looks out toward, one of the eight compass sectors. Case and punctuation are folded, so north-east, northeast and NorthEast all resolve. Send this or facingDegrees, never both.","enum":["North","Northeast","East","Southeast","South","Southwest","West","Northwest"],"example":"North"},{"key":"facingDegrees","name":"facingDegrees","kind":"number","required":false,"description":"Direction the front of the house looks out toward, as a compass bearing in degrees clockwise from true north, measured looking OUT from the building. The same convention the feng shui facing endpoints use, so a bearing works unchanged across the two domains. Send this or facing, never both.","min":0,"max":360,"example":15,"fold":true},{"key":"door.x","name":"x","group":"door","kind":"number","required":false,"description":"Distance east of the plot origin, in the same unit as the plot. The x axis runs east.","example":15,"fold":true},{"key":"door.y","name":"y","group":"door","kind":"number","required":false,"description":"Distance north of the plot origin, in the same unit as the plot. The y axis runs north.","example":0,"fold":true},{"key":"doorPosition","name":"doorPosition","kind":"number","required":true,"description":"Where the main door sits along the facing side, as a fraction from 0 to 1 measured from the corner the chapter starts that side at: the north-east for an east facing, the south-east for a south facing, the south-west for a west facing and the north-west for a north facing. The side carries 8 padas, so to aim at pada n of 8 send its midpoint, (n - 0.5) / 8: 0.0625 for the first pada, 0.4375 for the fourth, 0.9375 for the eighth. The response names the pada the fraction resolved to in ordinalOnSide. Requires a cardinal facing, since an intercardinal facing names no single side. Send this or door, never both.","min":0,"max":1,"example":0.4},{"key":"grid","name":"grid","kind":"tiles","required":false,"description":"Which division of the ground to read: 81-pada is the Paramasayika of Brihat Samhita 53.42, the grid the chapter numbers and names every devata on, and 64-pada is the Manduka of 53.55, for which the chapter gives structure only and no devata names. Defaults to 81-pada.","enum":["81-pada","64-pada"],"default":"81-pada","example":"81-pada","fold":true}],"hasLang":true,"requiredAnyOf":[["facing","doorPosition"],["facing","door"],["facingDegrees","doorPosition"],["facingDegrees","door"]],"groups":[{"key":"plot","label":"Plot"},{},{"key":"door","label":"Door","fold":true}],"opensOnLoad":false}
@@ -1 +1 @@
1
- {"title":"Generate Vastu Purusha Mandala","fields":[{"key":"plot.width","name":"width","group":"plot","kind":"number","required":false,"description":"East-west extent of a rectangular plot, in the unit given. Send this with depth for a rectangle, or send polygon instead.","min":0,"example":30},{"key":"plot.depth","name":"depth","group":"plot","kind":"number","required":false,"description":"North-south extent of a rectangular plot, in the unit given. Send this with width for a rectangle, or send polygon instead.","min":0,"example":40},{"key":"plot.unit","name":"unit","group":"plot","kind":"tiles","required":false,"description":"Unit the plot dimensions are given in. Every distance the response returns is in this same unit. The mandala projection is scale free, so this affects the areas and the marma size and nothing else.","enum":["feet","metres"],"default":"feet","example":"feet"},{"key":"grid","name":"grid","kind":"tiles","required":false,"description":"Which division of the ground to read: 81-pada is the Paramasayika of Brihat Samhita 53.42, the grid the chapter numbers and names every devata on, and 64-pada is the Manduka of 53.55, for which the chapter gives structure only and no devata names. Defaults to 81-pada.","enum":["81-pada","64-pada"],"default":"81-pada","example":"81-pada","fold":true}],"hasLang":true,"groups":[{"key":"plot","label":"Plot"},{}],"opensOnLoad":false}
1
+ {"title":"Generate Vastu Purusha Mandala","fields":[{"key":"plot.width","name":"width","group":"plot","kind":"number","required":true,"description":"East-west extent of a rectangular plot, in the unit given. Send this with depth for a rectangle, or send polygon instead.","min":0,"example":30},{"key":"plot.depth","name":"depth","group":"plot","kind":"number","required":true,"description":"North-south extent of a rectangular plot, in the unit given. Send this with width for a rectangle, or send polygon instead.","min":0,"example":40},{"key":"plot.unit","name":"unit","group":"plot","kind":"tiles","required":false,"description":"Unit the plot dimensions are given in. Every distance the response returns is in this same unit. The mandala projection is scale free, so this affects the areas and the marma size and nothing else.","enum":["feet","metres"],"default":"feet","example":"feet"},{"key":"grid","name":"grid","kind":"tiles","required":false,"description":"Which division of the ground to read: 81-pada is the Paramasayika of Brihat Samhita 53.42, the grid the chapter numbers and names every devata on, and 64-pada is the Manduka of 53.55, for which the chapter gives structure only and no devata names. Defaults to 81-pada.","enum":["81-pada","64-pada"],"default":"81-pada","example":"81-pada","fold":true}],"hasLang":true,"groups":[{"key":"plot","label":"Plot"},{}],"opensOnLoad":false}
@@ -1 +1 @@
1
- {"title":"Analyse a plot","fields":[{"key":"plot.width","name":"width","group":"plot","kind":"number","required":false,"description":"East-west extent of a rectangular plot, in the unit given. Send this with depth for a rectangle, or send polygon instead.","min":0,"example":30},{"key":"plot.depth","name":"depth","group":"plot","kind":"number","required":false,"description":"North-south extent of a rectangular plot, in the unit given. Send this with width for a rectangle, or send polygon instead.","min":0,"example":40},{"key":"plot.unit","name":"unit","group":"plot","kind":"tiles","required":false,"description":"Unit the plot dimensions are given in. Every distance the response returns is in this same unit. The mandala projection is scale free, so this affects the areas and the marma size and nothing else.","enum":["feet","metres"],"default":"feet","example":"feet"},{"key":"facing","name":"facing","kind":"tiles","required":false,"description":"Direction the front of the house looks out toward, one of the eight compass sectors. Case and punctuation are folded, so north-east, northeast and NorthEast all resolve. Send this or facingDegrees, never both.","enum":["North","Northeast","East","Southeast","South","Southwest","West","Northwest"],"example":"North"},{"key":"facingDegrees","name":"facingDegrees","kind":"number","required":false,"description":"Direction the front of the house looks out toward, as a compass bearing in degrees clockwise from true north, measured looking OUT from the building. The same convention the feng shui facing endpoints use, so a bearing works unchanged across the two domains. Send this or facing, never both.","min":0,"max":360,"example":15},{"key":"slopeLowDirection","name":"slopeLowDirection","kind":"tiles","required":false,"description":"Which quarter of the plot the ground falls toward, that is where the LOW point is. The chapter states its rules in terms of the side that stands HIGHER, so the opposite of this value is what the verses are read against, and both are returned. Omit it if the ground is level.","enum":["North","Northeast","East","Southeast","South","Southwest","West","Northwest"],"example":"Northeast"},{"key":"road","name":"road","kind":"tiles","required":false,"description":"Which side a road runs along. The verdict is convention: the chapter states no rule for the side a road is on, only that an obstruction facing the gate brings misery unless it lies beyond twice the height of the house.","enum":["North","Northeast","East","Southeast","South","Southwest","West","Northwest"],"example":"North"},{"key":"extensions","name":"extensions","kind":"array","required":false,"description":"Quarters where the plot bulges out beyond a rectangle. Every extension verdict is convention: the chapter states no rule for a named corner and the nearest verses speak of a figure with a limb wanting.","example":["Northeast"]},{"key":"cuts","name":"cuts","kind":"array","required":false,"description":"Quarters where a corner is missing from the rectangle. Every cut verdict is convention, for the same reason as the extensions.","example":["Southwest"]},{"key":"water","name":"water","kind":"tiles","required":false,"description":"Which quarter holds standing water, a well, a tank or a sump. This one IS sourced: 53.119 gives a distinct effect for each of the eight directions and calls only the north and the north-east favourable.","enum":["North","Northeast","East","Southeast","South","Southwest","West","Northwest"],"example":"Northeast"},{"key":"slopeSchool","name":"slopeSchool","kind":"tiles","required":false,"description":"Which reading of the ground level to lead with. brihat-samhita applies verses 115 to 117 as written, where a higher north-east is a loss, a higher east or north is permitted when level ground is unavoidable and still carries its stated cost, and a higher south or west carries its cost with no allowance. modern applies the widely taught rule that the north-east must be the lowest point, which agrees with verse 115 and contradicts the verse 116 allowance. Both readings are returned whichever you choose, so the disagreement is visible rather than hidden. Defaults to brihat-samhita.","enum":["brihat-samhita","modern"],"default":"brihat-samhita","example":"brihat-samhita","fold":true}],"hasLang":true,"groups":[{"key":"plot","label":"Plot"},{}],"opensOnLoad":false}
1
+ {"title":"Analyse a plot","fields":[{"key":"plot.width","name":"width","group":"plot","kind":"number","required":true,"description":"East-west extent of a rectangular plot, in the unit given. Send this with depth for a rectangle, or send polygon instead.","min":0,"example":30},{"key":"plot.depth","name":"depth","group":"plot","kind":"number","required":true,"description":"North-south extent of a rectangular plot, in the unit given. Send this with width for a rectangle, or send polygon instead.","min":0,"example":40},{"key":"plot.unit","name":"unit","group":"plot","kind":"tiles","required":false,"description":"Unit the plot dimensions are given in. Every distance the response returns is in this same unit. The mandala projection is scale free, so this affects the areas and the marma size and nothing else.","enum":["feet","metres"],"default":"feet","example":"feet"},{"key":"facing","name":"facing","kind":"tiles","required":true,"description":"Direction the front of the house looks out toward, one of the eight compass sectors. Case and punctuation are folded, so north-east, northeast and NorthEast all resolve. Send this or facingDegrees, never both.","enum":["North","Northeast","East","Southeast","South","Southwest","West","Northwest"],"example":"North"},{"key":"facingDegrees","name":"facingDegrees","kind":"number","required":false,"description":"Direction the front of the house looks out toward, as a compass bearing in degrees clockwise from true north, measured looking OUT from the building. The same convention the feng shui facing endpoints use, so a bearing works unchanged across the two domains. Send this or facing, never both.","min":0,"max":360,"example":15,"fold":true},{"key":"slopeLowDirection","name":"slopeLowDirection","kind":"tiles","required":false,"description":"Which quarter of the plot the ground falls toward, that is where the LOW point is. The chapter states its rules in terms of the side that stands HIGHER, so the opposite of this value is what the verses are read against, and both are returned. Omit it if the ground is level.","enum":["North","Northeast","East","Southeast","South","Southwest","West","Northwest"],"example":"Northeast","fold":true},{"key":"road","name":"road","kind":"tiles","required":false,"description":"Which side a road runs along. The verdict is convention: the chapter states no rule for the side a road is on, only that an obstruction facing the gate brings misery unless it lies beyond twice the height of the house.","enum":["North","Northeast","East","Southeast","South","Southwest","West","Northwest"],"example":"North","fold":true},{"key":"extensions","name":"extensions","kind":"array","required":false,"description":"Quarters where the plot bulges out beyond a rectangle. Every extension verdict is convention: the chapter states no rule for a named corner and the nearest verses speak of a figure with a limb wanting.","example":["Northeast"],"fold":true},{"key":"cuts","name":"cuts","kind":"array","required":false,"description":"Quarters where a corner is missing from the rectangle. Every cut verdict is convention, for the same reason as the extensions.","example":["Southwest"],"fold":true},{"key":"water","name":"water","kind":"tiles","required":false,"description":"Which quarter holds standing water, a well, a tank or a sump. This one IS sourced: 53.119 gives a distinct effect for each of the eight directions and calls only the north and the north-east favourable.","enum":["North","Northeast","East","Southeast","South","Southwest","West","Northwest"],"example":"Northeast","fold":true},{"key":"slopeSchool","name":"slopeSchool","kind":"tiles","required":false,"description":"Which reading of the ground level to lead with. brihat-samhita applies verses 115 to 117 as written, where a higher north-east is a loss, a higher east or north is permitted when level ground is unavoidable and still carries its stated cost, and a higher south or west carries its cost with no allowance. modern applies the widely taught rule that the north-east must be the lowest point, which agrees with verse 115 and contradicts the verse 116 allowance. Both readings are returned whichever you choose, so the disagreement is visible rather than hidden. Defaults to brihat-samhita.","enum":["brihat-samhita","modern"],"default":"brihat-samhita","example":"brihat-samhita","fold":true}],"hasLang":true,"requiredAnyOf":[["facing"],["facingDegrees"]],"groups":[{"key":"plot","label":"Plot"},{}],"opensOnLoad":false}
@@ -1 +1 @@
1
- {"title":"Check room placement","fields":[{"key":"plot.width","name":"width","group":"plot","kind":"number","required":false,"description":"East-west extent of a rectangular plot, in the unit given. Send this with depth for a rectangle, or send polygon instead.","min":0,"example":30,"fold":true},{"key":"plot.depth","name":"depth","group":"plot","kind":"number","required":false,"description":"North-south extent of a rectangular plot, in the unit given. Send this with width for a rectangle, or send polygon instead.","min":0,"example":40,"fold":true},{"key":"plot.unit","name":"unit","group":"plot","kind":"tiles","required":false,"description":"Unit the plot dimensions are given in. Every distance the response returns is in this same unit. The mandala projection is scale free, so this affects the areas and the marma size and nothing else.","enum":["feet","metres"],"default":"feet","example":"feet","fold":true},{"key":"facing","name":"facing","kind":"tiles","required":false,"description":"Direction the front of the house looks out toward, one of the eight compass sectors. Case and punctuation are folded, so north-east, northeast and NorthEast all resolve. Send this or facingDegrees, never both.","enum":["North","Northeast","East","Southeast","South","Southwest","West","Northwest"],"example":"North","fold":true},{"key":"facingDegrees","name":"facingDegrees","kind":"number","required":false,"description":"Direction the front of the house looks out toward, as a compass bearing in degrees clockwise from true north, measured looking OUT from the building. The same convention the feng shui facing endpoints use, so a bearing works unchanged across the two domains. Send this or facing, never both.","min":0,"max":360,"example":15,"fold":true},{"key":"rooms.0.type","name":"type","group":"rooms.0","kind":"tiles","required":true,"description":"What the room is, one of puja, kitchen, master-bedroom, bedroom, living, dining, study, toilet, store, staircase, water-storage, entrance. Case and punctuation are folded, so Master Bedroom and master_bedroom both resolve. Four of the twelve carry a verse and the rest carry convention, and the response says which.","enum":["puja","kitchen","master-bedroom","bedroom","living","dining","study","toilet","store","staircase","water-storage","entrance"],"example":"kitchen"},{"key":"rooms.0.direction","name":"direction","group":"rooms.0","kind":"tiles","required":false,"description":"Which quarter of the plot the room sits in, if you already know it. Send this or polygon, never both.","enum":["North","Northeast","East","Southeast","South","Southwest","West","Northwest"],"example":"Southeast"},{"key":"rooms.0.polygon","name":"polygon","group":"rooms.0","kind":"array","required":false,"description":"The room outline in plot coordinates, 3 to 16 vertices. The quarter is read from the area centroid against thirds of the plot, so an L-shaped room lands where its mass is rather than where its corners are. Send this or direction, never both.","example":[{"x":20,"y":2},{"x":28,"y":2},{"x":28,"y":12},{"x":20,"y":12}]}],"hasLang":true,"repeats":[{"key":"rooms","min":1,"max":24}],"groups":[{"key":"plot","label":"Plot","fold":true},{},{"key":"rooms.0","label":"Rooms 1"}],"opensOnLoad":false}
1
+ {"title":"Check room placement","fields":[{"key":"plot.width","name":"width","group":"plot","kind":"number","required":true,"description":"East-west extent of a rectangular plot, in the unit given. Send this with depth for a rectangle, or send polygon instead.","min":0,"example":30},{"key":"plot.depth","name":"depth","group":"plot","kind":"number","required":true,"description":"North-south extent of a rectangular plot, in the unit given. Send this with width for a rectangle, or send polygon instead.","min":0,"example":40},{"key":"plot.unit","name":"unit","group":"plot","kind":"tiles","required":false,"description":"Unit the plot dimensions are given in. Every distance the response returns is in this same unit. The mandala projection is scale free, so this affects the areas and the marma size and nothing else.","enum":["feet","metres"],"default":"feet","example":"feet"},{"key":"facing","name":"facing","kind":"tiles","required":true,"description":"Direction the front of the house looks out toward, one of the eight compass sectors. Case and punctuation are folded, so north-east, northeast and NorthEast all resolve. Send this or facingDegrees, never both.","enum":["North","Northeast","East","Southeast","South","Southwest","West","Northwest"],"example":"North"},{"key":"facingDegrees","name":"facingDegrees","kind":"number","required":false,"description":"Direction the front of the house looks out toward, as a compass bearing in degrees clockwise from true north, measured looking OUT from the building. The same convention the feng shui facing endpoints use, so a bearing works unchanged across the two domains. Send this or facing, never both.","min":0,"max":360,"example":15,"fold":true},{"key":"rooms.0.type","name":"type","group":"rooms.0","kind":"tiles","required":true,"description":"What the room is, one of puja, kitchen, master-bedroom, bedroom, living, dining, study, toilet, store, staircase, water-storage, entrance. Case and punctuation are folded, so Master Bedroom and master_bedroom both resolve. Four of the twelve carry a verse and the rest carry convention, and the response says which.","enum":["puja","kitchen","master-bedroom","bedroom","living","dining","study","toilet","store","staircase","water-storage","entrance"],"example":"kitchen"},{"key":"rooms.0.direction","name":"direction","group":"rooms.0","kind":"tiles","required":true,"description":"Which quarter of the plot the room sits in, if you already know it. Send this or polygon, never both.","enum":["North","Northeast","East","Southeast","South","Southwest","West","Northwest"],"example":"Southeast"},{"key":"rooms.0.polygon","name":"polygon","group":"rooms.0","kind":"array","required":false,"description":"The room outline in plot coordinates, 3 to 16 vertices. The quarter is read from the area centroid against thirds of the plot, so an L-shaped room lands where its mass is rather than where its corners are. Send this or direction, never both.","example":[{"x":20,"y":2},{"x":28,"y":2},{"x":28,"y":12},{"x":20,"y":12}]}],"hasLang":true,"repeats":[{"key":"rooms","min":1,"max":24}],"requiredAnyOf":[["facing"],["facingDegrees"]],"groups":[{"key":"plot","label":"Plot"},{},{"key":"rooms.0","label":"Rooms 1"}],"opensOnLoad":false}
@@ -27,7 +27,7 @@
27
27
  font-style: normal;
28
28
  font-weight: 400 600;
29
29
  font-display: swap;
30
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.0/dist/styles/fonts/fraunces/fraunces-latin.woff2")
30
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.1/dist/styles/fonts/fraunces/fraunces-latin.woff2")
31
31
  format("woff2");
32
32
  unicode-range:
33
33
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
@@ -38,7 +38,7 @@
38
38
  font-style: normal;
39
39
  font-weight: 400 600;
40
40
  font-display: swap;
41
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.0/dist/styles/fonts/fraunces/fraunces-latin-ext.woff2")
41
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.1/dist/styles/fonts/fraunces/fraunces-latin-ext.woff2")
42
42
  format("woff2");
43
43
  unicode-range:
44
44
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
@@ -49,7 +49,7 @@
49
49
  font-style: normal;
50
50
  font-weight: 400 600;
51
51
  font-display: swap;
52
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.0/dist/styles/fonts/jost/jost-latin.woff2")
52
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.1/dist/styles/fonts/jost/jost-latin.woff2")
53
53
  format("woff2");
54
54
  unicode-range:
55
55
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
@@ -60,7 +60,7 @@
60
60
  font-style: normal;
61
61
  font-weight: 400 600;
62
62
  font-display: swap;
63
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.0/dist/styles/fonts/jost/jost-latin-ext.woff2")
63
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.1/dist/styles/fonts/jost/jost-latin-ext.woff2")
64
64
  format("woff2");
65
65
  unicode-range:
66
66
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
@@ -71,7 +71,7 @@
71
71
  font-style: normal;
72
72
  font-weight: 400 600;
73
73
  font-display: swap;
74
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.0/dist/styles/fonts/jost/jost-cyrillic.woff2")
74
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.1/dist/styles/fonts/jost/jost-cyrillic.woff2")
75
75
  format("woff2");
76
76
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
77
77
  }
@@ -30,13 +30,13 @@ export interface OpenApiSchema extends OpenApiSchemaRef {
30
30
  example?: unknown;
31
31
  anyOf?: OpenApiSchema[];
32
32
  oneOf?: OpenApiSchema[];
33
+ /** Input sets of an object whose fields are all optional yet need one complete set; the first is the one a form asks for. */
34
+ 'x-required-any-of'?: string[][];
33
35
  }
34
36
  /** One operation's request shape, as read from `spec.paths[path][method]`. */
35
37
  export interface OperationSchema {
36
38
  operationId?: string;
37
39
  summary?: string;
38
- /** Input sets of an either-or body; read into {@link FormModel.requiredAnyOf}. */
39
- 'x-required-any-of'?: string[][];
40
40
  requestBody?: {
41
41
  content?: Record<string, {
42
42
  schema?: OpenApiSchema | OpenApiSchemaRef;
@@ -166,7 +166,7 @@ export interface FormModel {
166
166
  opensOnLoad?: boolean;
167
167
  /** The array-of-object properties, each already expanded into `min` groups inside `fields`. Absent when the request has none. */
168
168
  repeats?: RepeatDef[];
169
- /** Wire-key sets of an either-or body: any ONE complete set is a valid request. The first set is the one the form asks for, so its fields are marked `required`. Absent when the request has none. */
169
+ /** Wire-key sets of an either-or request body: any ONE complete set is a valid request. The first set's fields are marked `required`, as are a nested object's first set. Absent when the body has none. */
170
170
  requiredAnyOf?: string[][];
171
171
  }
172
172
  /** The group key of the `index`th record of a repeating property, and its inverse. */
@@ -1 +1 @@
1
- {"version":3,"file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AgB,WAAW,CAC1B,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,QAAQ,EAAE,MAAM,GACd,MAAM,CAIR;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAIrE;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAChC,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,SAAS,QAAQ,EAAO,GAC9B,MAAM,CAUR;AAED,wIAAwI;AACxI,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMtE;AAkBD;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,SAAO,GAAG,WAAW,EAAE,CA4BtE;AAED,+EAA+E;AAC/E,wBAAgB,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAGzD;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAC3B,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,aAAa,CAAA;CAAE,GACjE,YAAY,GAAG,SAAS,CAQ1B;AAED,gKAAgK;AAChK,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,MAAM,GACV,YAAY,GAAG,SAAS,CAa1B"}
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const ROXY_UI_VERSION = "0.53.0";
1
+ export declare const ROXY_UI_VERSION = "0.53.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roxyapi/ui",
3
- "version": "0.53.0",
3
+ "version": "0.53.1",
4
4
  "description": "Web components for the RoxyAPI catalog. Drop-in charts, tables, cards, forms for astrology, tarot, numerology, biorhythm, I Ching, crystals, dreams, angel numbers, and more. One key, beautiful in 30 minutes.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -27,7 +27,7 @@
27
27
  font-style: normal;
28
28
  font-weight: 400 600;
29
29
  font-display: swap;
30
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.0/dist/styles/fonts/fraunces/fraunces-latin.woff2")
30
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.1/dist/styles/fonts/fraunces/fraunces-latin.woff2")
31
31
  format("woff2");
32
32
  unicode-range:
33
33
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
@@ -38,7 +38,7 @@
38
38
  font-style: normal;
39
39
  font-weight: 400 600;
40
40
  font-display: swap;
41
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.0/dist/styles/fonts/fraunces/fraunces-latin-ext.woff2")
41
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.1/dist/styles/fonts/fraunces/fraunces-latin-ext.woff2")
42
42
  format("woff2");
43
43
  unicode-range:
44
44
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
@@ -49,7 +49,7 @@
49
49
  font-style: normal;
50
50
  font-weight: 400 600;
51
51
  font-display: swap;
52
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.0/dist/styles/fonts/jost/jost-latin.woff2")
52
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.1/dist/styles/fonts/jost/jost-latin.woff2")
53
53
  format("woff2");
54
54
  unicode-range:
55
55
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
@@ -60,7 +60,7 @@
60
60
  font-style: normal;
61
61
  font-weight: 400 600;
62
62
  font-display: swap;
63
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.0/dist/styles/fonts/jost/jost-latin-ext.woff2")
63
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.1/dist/styles/fonts/jost/jost-latin-ext.woff2")
64
64
  format("woff2");
65
65
  unicode-range:
66
66
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
@@ -71,7 +71,7 @@
71
71
  font-style: normal;
72
72
  font-weight: 400 600;
73
73
  font-display: swap;
74
- src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.0/dist/styles/fonts/jost/jost-cyrillic.woff2")
74
+ src: url("https://cdn.jsdelivr.net/npm/@roxyapi/ui@0.53.1/dist/styles/fonts/jost/jost-cyrillic.woff2")
75
75
  format("woff2");
76
76
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
77
77
  }
@@ -37,14 +37,14 @@ export interface OpenApiSchema extends OpenApiSchemaRef {
37
37
  example?: unknown;
38
38
  anyOf?: OpenApiSchema[];
39
39
  oneOf?: OpenApiSchema[];
40
+ /** Input sets of an object whose fields are all optional yet need one complete set; the first is the one a form asks for. */
41
+ 'x-required-any-of'?: string[][];
40
42
  }
41
43
 
42
44
  /** One operation's request shape, as read from `spec.paths[path][method]`. */
43
45
  export interface OperationSchema {
44
46
  operationId?: string;
45
47
  summary?: string;
46
- /** Input sets of an either-or body; read into {@link FormModel.requiredAnyOf}. */
47
- 'x-required-any-of'?: string[][];
48
48
  requestBody?: {
49
49
  content?: Record<string, { schema?: OpenApiSchema | OpenApiSchemaRef }>;
50
50
  };
@@ -184,7 +184,7 @@ export interface FormModel {
184
184
  opensOnLoad?: boolean;
185
185
  /** The array-of-object properties, each already expanded into `min` groups inside `fields`. Absent when the request has none. */
186
186
  repeats?: RepeatDef[];
187
- /** Wire-key sets of an either-or body: any ONE complete set is a valid request. The first set is the one the form asks for, so its fields are marked `required`. Absent when the request has none. */
187
+ /** Wire-key sets of an either-or request body: any ONE complete set is a valid request. The first set's fields are marked `required`, as are a nested object's first set. Absent when the body has none. */
188
188
  requiredAnyOf?: string[][];
189
189
  }
190
190
 
@@ -402,6 +402,14 @@ function toField(
402
402
  };
403
403
  }
404
404
 
405
+ /** The fields a form asks for in one object: its required ones plus the first of its input sets. */
406
+ function requiredKeys(schema: OpenApiSchema): Set<string> {
407
+ return new Set([
408
+ ...(schema.required ?? []),
409
+ ...(schema['x-required-any-of']?.[0] ?? []),
410
+ ]);
411
+ }
412
+
405
413
  /**
406
414
  * Digest one operation into the {@link FormModel} the form renders. This is the single construction path: body properties (nested objects expand to `group.sub` keys) and path+query parameters flow through {@link toField} identically, so a query integer keeps its min/max the same as a body integer. The `lang` query parameter is dropped from `fields` and surfaced as {@link FormModel.hasLang} instead.
407
415
  */
@@ -417,12 +425,9 @@ export function buildFormModel(
417
425
 
418
426
  const bodyRef = op.requestBody?.content?.['application/json']?.schema;
419
427
  const bodySchema = resolveSchema(bodyRef, schemas);
420
- const anyOf = op['x-required-any-of'];
428
+ const anyOf = bodySchema?.['x-required-any-of'];
421
429
  if (bodySchema?.properties) {
422
- const required = new Set([
423
- ...(bodySchema.required ?? []),
424
- ...(anyOf?.[0] ?? []),
425
- ]);
430
+ const required = requiredKeys(bodySchema);
426
431
  for (const [name, sub] of Object.entries(bodySchema.properties)) {
427
432
  const resolved = resolveSchema(sub, schemas) ?? {};
428
433
  const item =
@@ -431,7 +436,7 @@ export function buildFormModel(
431
436
  : undefined;
432
437
  if (item?.type === 'object' && item.properties) {
433
438
  const min = Math.max(1, resolved.minItems ?? 1);
434
- const itemRequired = new Set(item.required ?? []);
439
+ const itemRequired = requiredKeys(item);
435
440
  repeats.push({ key: name, min, max: resolved.maxItems ?? min });
436
441
  for (let i = 0; i < min; i++) {
437
442
  for (const [subName, subSchema] of Object.entries(item.properties)) {
@@ -446,7 +451,7 @@ export function buildFormModel(
446
451
  }
447
452
  }
448
453
  } else if (resolved.type === 'object' && resolved.properties) {
449
- const subRequired = new Set(resolved.required ?? []);
454
+ const subRequired = requiredKeys(resolved);
450
455
  for (const [subName, subSchema] of Object.entries(
451
456
  resolved.properties,
452
457
  )) {
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by scripts/sync-version.ts. Do not edit.
2
- export const ROXY_UI_VERSION = '0.53.0';
2
+ export const ROXY_UI_VERSION = '0.53.1';