courthive-components 5.0.0 → 6.0.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/README.md +33 -0
- package/dist/components/renderStructure/seedingBasis.d.ts +33 -0
- package/dist/courthive-components.css +1 -1
- package/dist/courthive-components.es.js +6169 -6157
- package/dist/courthive-components.umd.js +45 -45
- package/dist/{dist-Cb-NZgoU.mjs → dist-DtcVkd_L.mjs} +2 -2
- package/dist/types.d.ts +18 -0
- package/package.json +13 -13
|
@@ -821,7 +821,7 @@ var oe = class {
|
|
|
821
821
|
if (Array.isArray(e) && e.length > 0) return !e.map((e) => E(e, t, n)).some((e) => e === !1);
|
|
822
822
|
if (typeof e == "string" || typeof e == "number") {
|
|
823
823
|
let i = E(e, t, n), a = r?.map(Number).includes(Number(e));
|
|
824
|
-
return
|
|
824
|
+
return !(!i || a);
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
}, de = class {
|
|
@@ -2033,7 +2033,7 @@ var z = class {
|
|
|
2033
2033
|
}
|
|
2034
2034
|
setBgColorToCircleWithMinutesTips() {
|
|
2035
2035
|
let e = this.core.getMinutes(), t = this.core.getCircle();
|
|
2036
|
-
if (
|
|
2036
|
+
if (e && t && e.value && v.includes(e.value)) {
|
|
2037
2037
|
let e = getComputedStyle(t).getPropertyValue("--timepicker-primary").trim();
|
|
2038
2038
|
e && (t.style.backgroundColor = e), t.classList.remove("small-circle");
|
|
2039
2039
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -42,6 +42,16 @@ export interface Side {
|
|
|
42
42
|
score?: SideScore;
|
|
43
43
|
seedNumber?: number;
|
|
44
44
|
seedValue?: string | number;
|
|
45
|
+
/**
|
|
46
|
+
* Why the seed was awarded, as distinct from `seedValue`, which says only where it sits.
|
|
47
|
+
*
|
|
48
|
+
* Arrives on the side for free: the factory's `getSideValue` does `Object.assign(side, seeding)`,
|
|
49
|
+
* spreading the whole `SeedAssignment`. Measured — a side carrying seed 9 on a protected ranking
|
|
50
|
+
* reads `{ seedValue: 9, seedNumber: 9, seedingBasis: 'PROTECTED_RANKING' }`.
|
|
51
|
+
*
|
|
52
|
+
* Absent means the ordinary basis (`RANKING`), not "unknown".
|
|
53
|
+
*/
|
|
54
|
+
seedingBasis?: string;
|
|
45
55
|
}
|
|
46
56
|
export interface Participant {
|
|
47
57
|
participantId: string;
|
|
@@ -159,6 +169,14 @@ export interface Configuration {
|
|
|
159
169
|
matchUpFooter?: boolean;
|
|
160
170
|
showAddress?: boolean;
|
|
161
171
|
seedingElement?: 'sup' | 'span';
|
|
172
|
+
/**
|
|
173
|
+
* Mark a seed awarded on a non-ordinary basis, and title it with that basis. Default `true`.
|
|
174
|
+
*
|
|
175
|
+
* On by default because the on-screen draw is the ONLY surface that carries the fact — unlike the
|
|
176
|
+
* printed sheet, which has a seedings table to footnote and therefore leaves the bracket alone.
|
|
177
|
+
* Set `false` where a consumer renders its own explanation elsewhere.
|
|
178
|
+
*/
|
|
179
|
+
seedingBasisMarker?: boolean;
|
|
162
180
|
matchUpHover?: boolean | string;
|
|
163
181
|
participantDetail?: string;
|
|
164
182
|
inlineAssignment?: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "courthive-components",
|
|
3
|
-
"packageManager": "pnpm@12.
|
|
4
|
-
"version": "
|
|
3
|
+
"packageManager": "pnpm@12.5.1",
|
|
4
|
+
"version": "6.0.0",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22"
|
|
7
7
|
},
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@chromatic-com/storybook": "^5.0.0",
|
|
73
|
-
"@commitlint/cli": "21.2.
|
|
74
|
-
"@commitlint/config-conventional": "21.2.
|
|
73
|
+
"@commitlint/cli": "21.2.3",
|
|
74
|
+
"@commitlint/config-conventional": "21.2.3",
|
|
75
75
|
"@eslint/js": "^10.0.1",
|
|
76
76
|
"@fortawesome/fontawesome-free": "^7.2.0",
|
|
77
77
|
"@storybook/addon-docs": "^10.2.17",
|
|
@@ -80,27 +80,27 @@
|
|
|
80
80
|
"@types/d3": "^7.4.3",
|
|
81
81
|
"@types/leaflet": "^1.9.12",
|
|
82
82
|
"@types/vanillajs-datepicker": "^1.3.5",
|
|
83
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
84
|
-
"@typescript-eslint/parser": "8.
|
|
83
|
+
"@typescript-eslint/eslint-plugin": "8.70.0",
|
|
84
|
+
"@typescript-eslint/parser": "8.70.0",
|
|
85
85
|
"@vitest/coverage-v8": "^5.0.0",
|
|
86
86
|
"@vitest/ui": "^5.0.0",
|
|
87
|
-
"eslint": "10.
|
|
88
|
-
"eslint-plugin-sonarjs": "4.2.
|
|
87
|
+
"eslint": "10.11.0",
|
|
88
|
+
"eslint-plugin-sonarjs": "4.2.1",
|
|
89
89
|
"eslint-plugin-storybook": "^10.2.17",
|
|
90
90
|
"gh-pages": "6.3.0",
|
|
91
91
|
"globals": "^17.3.0",
|
|
92
92
|
"happy-dom": "^20.8.3",
|
|
93
93
|
"husky": "9.1.7",
|
|
94
94
|
"leaflet": "1.9.4",
|
|
95
|
-
"lint-staged": "17.
|
|
95
|
+
"lint-staged": "17.5.1",
|
|
96
96
|
"playwright": "^1.57.0",
|
|
97
97
|
"prettier": "^3.8.1",
|
|
98
98
|
"semver": "7.8.5",
|
|
99
99
|
"storybook": "^10.2.17",
|
|
100
|
-
"tabulator-tables": "6.5.
|
|
101
|
-
"tods-competition-factory": "7.
|
|
100
|
+
"tabulator-tables": "6.5.3",
|
|
101
|
+
"tods-competition-factory": "^7.1.0",
|
|
102
102
|
"typescript": "^6.0.2",
|
|
103
|
-
"vite": "8.
|
|
103
|
+
"vite": "8.3.0",
|
|
104
104
|
"vite-plugin-dts": "^5.0.0",
|
|
105
105
|
"vitest": "^5.0.0"
|
|
106
106
|
},
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"vanillajs-datepicker": "1.3.4"
|
|
124
124
|
},
|
|
125
125
|
"peerDependencies": {
|
|
126
|
-
"tods-competition-factory": "^7.
|
|
126
|
+
"tods-competition-factory": "^7.1.0",
|
|
127
127
|
"leaflet": "^1.9.4"
|
|
128
128
|
},
|
|
129
129
|
"peerDependenciesMeta": {
|