courthive-components 3.8.2 → 3.10.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.
@@ -1,4 +1,13 @@
1
1
  import { SunburstDrawData } from './burstChart';
2
+ /**
3
+ * Pick the structure the progression sunburst should render from a draw's
4
+ * `getEventData().drawsData[i].structures`. A composite draw (round-robin
5
+ * qualifying → single-elimination main, or round-robin main → elimination
6
+ * playoff) must render its ELIMINATION structure, never the round-robin one.
7
+ * Returns the elimination structure (MAIN preferred, else the first), or
8
+ * `undefined` when the draw has no bracket (pure round-robin).
9
+ */
10
+ export declare function pickProgressionStructure(structures?: any[]): any | undefined;
2
11
  /**
3
12
  * Convert a tods-competition-factory `getEventData().drawsData[i].structures[0]`
4
13
  * object into the TODS-aligned SunburstDrawData that the sunburst consumes.
@@ -1 +1,16 @@
1
- export declare function renderForm(elem: HTMLElement, items: any[], relationships?: any[]): any;
1
+ export interface RenderFormOptions {
2
+ /**
3
+ * Wrap the fields in a real `<form>` so password managers and native
4
+ * Enter-to-submit have an unambiguous target. `true` uses defaults; pass an
5
+ * object to wire an `onSubmit` handler. Omitted (the default) keeps the
6
+ * historical `<div>` container, so existing callers are unaffected.
7
+ */
8
+ form?: boolean | {
9
+ onSubmit?: (args: {
10
+ e: Event;
11
+ inputs: any;
12
+ fields: any;
13
+ }) => void;
14
+ };
15
+ }
16
+ export declare function renderForm(elem: HTMLElement, items: any[], relationships?: any[], options?: RenderFormOptions): any;