@roxyapi/ui 0.17.0 → 0.17.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/components-catalog.json +109 -109
- package/dist/cdn/components/endpoint-form.js +1 -1
- package/dist/cdn/components/endpoint-form.js.map +2 -2
- package/dist/cdn/components/location-search.js +1 -1
- package/dist/cdn/components/location-search.js.map +2 -2
- package/dist/cdn/roxy-ui.js +2 -2
- package/dist/cdn/roxy-ui.js.map +2 -2
- package/dist/components/endpoint-form.d.ts +3 -1
- package/dist/components/endpoint-form.d.ts.map +1 -1
- package/dist/components/endpoint-form.js +1 -1
- package/dist/components/endpoint-form.js.map +2 -2
- package/dist/components/location-search.d.ts.map +1 -1
- package/dist/components/location-search.js +1 -1
- package/dist/components/location-search.js.map +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +2 -2
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/endpoint-form.ts +4 -2
- package/src/components/location-search.ts +8 -1
- package/src/version.ts +1 -1
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ROXY_UI_VERSION = "0.17.
|
|
1
|
+
export declare const ROXY_UI_VERSION = "0.17.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.17.
|
|
3
|
+
"version": "0.17.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",
|
|
@@ -522,10 +522,12 @@ export class RoxyEndpointForm extends LitElement {
|
|
|
522
522
|
return LOCATION_TRIO.every((n) => inGroup.some((f) => f.name === n));
|
|
523
523
|
}
|
|
524
524
|
|
|
525
|
-
/**
|
|
525
|
+
/**
|
|
526
|
+
* True when the location block must show a required mark, i.e. ANY member of the trio is required. The block is a single city-search input that fills all three, so if even one is required (e.g. bodygraph requires `timezone` while `latitude`/`longitude` are optional) the input is required and `collectMissing` blocks submit without it. Requiring ALL three understated that: the asterisk went missing on a block the form still enforced, which reads as optional to a non-technical embedder.
|
|
527
|
+
*/
|
|
526
528
|
private locationRequired(group?: string): boolean {
|
|
527
529
|
const inGroup = this.fields.filter((f) => f.group === group);
|
|
528
|
-
return LOCATION_TRIO.
|
|
530
|
+
return LOCATION_TRIO.some((n) =>
|
|
529
531
|
inGroup.some((f) => f.name === n && f.required),
|
|
530
532
|
);
|
|
531
533
|
}
|
|
@@ -86,6 +86,12 @@ export class RoxyLocationSearch extends LitElement {
|
|
|
86
86
|
top: calc(100% + 4px);
|
|
87
87
|
left: 0;
|
|
88
88
|
right: 0;
|
|
89
|
+
/* Reset the UA <ul> defaults, or the listbox shows disc bullets and a
|
|
90
|
+
* ~40px inline indent. Small even inset so rounded rows never clip the
|
|
91
|
+
* container corners. */
|
|
92
|
+
margin: 0;
|
|
93
|
+
padding: var(--roxy-space-xs, 0.25rem);
|
|
94
|
+
list-style: none;
|
|
89
95
|
background: var(--roxy-bg, #fff);
|
|
90
96
|
border: 1px solid var(--roxy-border, #e4e4e7);
|
|
91
97
|
border-radius: var(--roxy-radius-md, 8px);
|
|
@@ -97,12 +103,13 @@ export class RoxyLocationSearch extends LitElement {
|
|
|
97
103
|
}
|
|
98
104
|
.option {
|
|
99
105
|
display: flex;
|
|
100
|
-
align-items:
|
|
106
|
+
align-items: center;
|
|
101
107
|
gap: var(--roxy-space-sm, 0.5rem);
|
|
102
108
|
width: 100%;
|
|
103
109
|
padding: var(--roxy-space-sm, 0.5rem) var(--roxy-space-md, 1rem);
|
|
104
110
|
background: transparent;
|
|
105
111
|
border: 0;
|
|
112
|
+
border-radius: var(--roxy-radius-sm, 6px);
|
|
106
113
|
text-align: left;
|
|
107
114
|
font-family: inherit;
|
|
108
115
|
font-size: var(--roxy-text-sm, 0.875rem);
|
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.17.
|
|
2
|
+
export const ROXY_UI_VERSION = '0.17.1';
|