@finbheara/domain 0.52.0 → 0.53.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 +1 -1
- package/dist/ceili.js +2 -2
- package/dist/chunks/{place-ng98cts4.js → place-3pgn1jgx.js} +13 -1
- package/dist/chunks/{place-gd57gavk.js → place-3xxgddqw.js} +1 -1
- package/dist/chunks/{place-tpj00cfp.js → place-4gycgaw0.js} +1 -1
- package/dist/dance-types.js +5 -1
- package/dist/dance.js +3 -3
- package/dist/tune.js +2 -2
- package/dist/types/dance-types.d.ts +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ ESM, Node ≥ 22 or Bun ≥ 1.4.2. MIT. Not affiliated with or endorsed by any d
|
|
|
46
46
|
| `@finbheara/domain/dance` | `dance()`: a print read as a tune and a céilí dance, narrowed by its round |
|
|
47
47
|
| `@finbheara/domain/age` | `Age.from`, `Age.fromYOB`, `Age.fromTitle`, `ageTitleToken`, `ageRelation`, `canOverlap`, `averageAge`, `isAveraged`, `intersectBirthYears`, `validYOB`, `DEFAULT_ADULT_KEYWORDS`, the age constants |
|
|
48
48
|
| `@finbheara/domain/noun-index` | `createIndex`, `indexSchema`, `personEncoder`, `roleEncoder`, `roleSchoolGlob`, and the `SqlHandle`/`NounEncoder` types: a database-backed name map (below) |
|
|
49
|
-
| `@finbheara/domain/dance-types` | `danceTypes()`, `DANCE_TYPES`, `rhythmOfTime`, and the shared `DanceMatch`/`DanceRelation`/`SetRhythm`/`TimeSignature` types |
|
|
49
|
+
| `@finbheara/domain/dance-types` | `danceTypes()`, `DANCE_TYPES`, `GRADE_DANCES` and `isGradeDance()` (the six solo dances a grade is held in, per dance), `rhythmOfTime`, and the shared `DanceMatch`/`DanceRelation`/`SetRhythm`/`TimeSignature` types |
|
|
50
50
|
| `@finbheara/domain/promotion` | `samePromotedRow`, `samePromotedSchool`, `samePromotedHeir`, `samePromotedName`, `questionMarksRead`, `foldCharSynonyms`: is a row the same row after a promotion (below) |
|
|
51
51
|
| `@finbheara/domain/person` | `seatName`, `dancerName`, `teacherName`, `roleName`, `roleSentinelOf`, `rolePrintsNoName`, `dancerPrintsNoName`, the role lists and `SHARED_ROW_SENTINELS`: a person's print read in its role (below) |
|
|
52
52
|
| `@finbheara/domain/title` | `compTitle`, `titleRelation`, `matchTitle`, `ladderOf`, `populationIn`, `populationRelation`, `roundNumbersIn`, `roundFold`, `codePopulation`, `secondIn`: a competition title read and matched onto syllabus entries, a code's sex suffix, a second chance (below) |
|
package/dist/ceili.js
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ceiliById2,
|
|
5
5
|
ceili2,
|
|
6
6
|
ceiliRelation2
|
|
7
|
-
} from "./chunks/place-
|
|
8
|
-
import"./chunks/place-
|
|
7
|
+
} from "./chunks/place-3xxgddqw.js";
|
|
8
|
+
import"./chunks/place-3pgn1jgx.js";
|
|
9
9
|
export {
|
|
10
10
|
CEILI_NODES2 as CEILI_NODES,
|
|
11
11
|
allCeilis2 as allCeilis,
|
|
@@ -99,6 +99,18 @@ var DANCE_TYPES2 = Object.freeze([
|
|
|
99
99
|
"traditional-set",
|
|
100
100
|
"set-dance"
|
|
101
101
|
]);
|
|
102
|
+
var GRADE_DANCES2 = Object.freeze([
|
|
103
|
+
"reel",
|
|
104
|
+
"light-jig",
|
|
105
|
+
"single-jig",
|
|
106
|
+
"slip-jig",
|
|
107
|
+
"treble-jig",
|
|
108
|
+
"hornpipe"
|
|
109
|
+
]);
|
|
110
|
+
var GRADED = new Set(GRADE_DANCES2);
|
|
111
|
+
function isGradeDance2(d) {
|
|
112
|
+
return d != null && GRADED.has(d);
|
|
113
|
+
}
|
|
102
114
|
function rhythmOfTime2(time) {
|
|
103
115
|
return time === "2/4" || time === "4/4" ? "hornpipe" : "jig";
|
|
104
116
|
}
|
|
@@ -138,4 +150,4 @@ function isDanceTypePrint2(print) {
|
|
|
138
150
|
return danceTypes2(print).length > 0;
|
|
139
151
|
}
|
|
140
152
|
|
|
141
|
-
export { foldDancePrint, splitTempo, matchNodes, candidateRelation, DANCE_TYPES2, rhythmOfTime2, danceTypes2, danceTypePrints2, isDanceTypePrint2 };
|
|
153
|
+
export { foldDancePrint, splitTempo, matchNodes, candidateRelation, DANCE_TYPES2, GRADE_DANCES2, isGradeDance2, rhythmOfTime2, danceTypes2, danceTypePrints2, isDanceTypePrint2 };
|
package/dist/dance-types.js
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DANCE_TYPES2,
|
|
3
|
+
GRADE_DANCES2,
|
|
4
|
+
isGradeDance2,
|
|
3
5
|
rhythmOfTime2,
|
|
4
6
|
danceTypes2,
|
|
5
7
|
danceTypePrints2,
|
|
6
8
|
isDanceTypePrint2
|
|
7
|
-
} from "./chunks/place-
|
|
9
|
+
} from "./chunks/place-3pgn1jgx.js";
|
|
8
10
|
export {
|
|
9
11
|
DANCE_TYPES2 as DANCE_TYPES,
|
|
12
|
+
GRADE_DANCES2 as GRADE_DANCES,
|
|
10
13
|
danceTypePrints2 as danceTypePrints,
|
|
11
14
|
danceTypes2 as danceTypes,
|
|
12
15
|
isDanceTypePrint2 as isDanceTypePrint,
|
|
16
|
+
isGradeDance2 as isGradeDance,
|
|
13
17
|
rhythmOfTime2 as rhythmOfTime
|
|
14
18
|
};
|
package/dist/dance.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import"./chunks/place-
|
|
1
|
+
import"./chunks/place-3pgn1jgx.js";
|
|
2
2
|
import {
|
|
3
3
|
ceili2
|
|
4
|
-
} from "./chunks/place-
|
|
4
|
+
} from "./chunks/place-3xxgddqw.js";
|
|
5
5
|
import {
|
|
6
6
|
tune2
|
|
7
|
-
} from "./chunks/place-
|
|
7
|
+
} from "./chunks/place-4gycgaw0.js";
|
|
8
8
|
import {
|
|
9
9
|
validity
|
|
10
10
|
} from "./chunks/place-q9kwsmzd.js";
|
package/dist/tune.js
CHANGED
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
settingAt2,
|
|
9
9
|
tune2,
|
|
10
10
|
tuneRelation2
|
|
11
|
-
} from "./chunks/place-
|
|
12
|
-
import"./chunks/place-
|
|
11
|
+
} from "./chunks/place-4gycgaw0.js";
|
|
12
|
+
import"./chunks/place-3pgn1jgx.js";
|
|
13
13
|
export {
|
|
14
14
|
PLAUSIBLE_SET_TEMPO_MAX2 as PLAUSIBLE_SET_TEMPO_MAX,
|
|
15
15
|
SET_MIN_SPEED2 as SET_MIN_SPEED,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export type { DanceMatch, DanceRelation } from "./dance-match.ts";
|
|
2
2
|
export type DanceType = "reel" | "light-jig" | "single-jig" | "slip-jig" | "treble-jig" | "hornpipe" | "traditional-set" | "set-dance";
|
|
3
3
|
export declare const DANCE_TYPES: readonly DanceType[];
|
|
4
|
+
export type GradeDance = Exclude<DanceType, "traditional-set" | "set-dance">;
|
|
5
|
+
export declare const GRADE_DANCES: readonly GradeDance[];
|
|
6
|
+
export declare function isGradeDance(d: string | null | undefined): d is GradeDance;
|
|
4
7
|
export type TimeSignature = "2/4" | "4/4" | "6/8" | "9/8" | "6/8+9/8";
|
|
5
8
|
export type SetRhythm = "jig" | "hornpipe";
|
|
6
9
|
export declare function rhythmOfTime(time: TimeSignature): SetRhythm;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finbheara/domain",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0",
|
|
4
4
|
"description": "Places, CLRG regions, school names, ages, dances, competition titles, codes and schedules, and a person's print in its role, as they are printed: read, compared and told apart",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"places",
|