@arraypress/waveform-sounds 2.0.0 → 2.2.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 +44 -2
- package/dist/waveform-sounds-no-autoinit.esm.js +914 -208
- package/dist/waveform-sounds-render.esm.js +274 -82
- package/dist/waveform-sounds.css +92 -17
- package/dist/waveform-sounds.esm.js +917 -210
- package/dist/waveform-sounds.js +913 -210
- package/dist/waveform-sounds.min.css +1 -1
- package/dist/waveform-sounds.min.js +3 -3
- package/package.json +1 -1
- package/src/css/waveform-sounds.css +92 -17
- package/src/js/core/WaveformSounds.ts +540 -120
- package/src/js/core/element.ts +208 -0
- package/src/js/core/engine.ts +9 -3
- package/src/js/core/options.ts +1 -5
- package/src/js/data/bpm.ts +14 -4
- package/src/js/data/keys.ts +156 -0
- package/src/js/data/navigation.ts +51 -11
- package/src/js/data/sounds.ts +73 -36
- package/src/js/data/url-state.ts +39 -12
- package/src/js/dom/colors.ts +28 -1
- package/src/js/dom/draw.ts +16 -3
- package/src/js/dom/menus.ts +2 -3
- package/src/js/dom/rows.ts +38 -15
- package/src/js/entry.ts +13 -3
- package/src/js/index.ts +7 -3
- package/src/js/render/html.ts +0 -2
- package/src/js/render/icons.ts +59 -17
- package/src/js/render/markup.ts +156 -62
- package/src/js/render/options.ts +29 -5
- package/src/js/render/strings.ts +57 -4
- package/src/js/render-entry.ts +1 -1
- package/src/js/shared/utils.ts +4 -4
- package/src/js/types.ts +54 -3
- package/types/core/WaveformSounds.d.ts +41 -11
- package/types/core/WaveformSounds.d.ts.map +1 -1
- package/types/core/element.d.ts +84 -0
- package/types/core/element.d.ts.map +1 -0
- package/types/core/engine.d.ts +8 -3
- package/types/core/engine.d.ts.map +1 -1
- package/types/core/options.d.ts +0 -5
- package/types/core/options.d.ts.map +1 -1
- package/types/data/bpm.d.ts +17 -4
- package/types/data/bpm.d.ts.map +1 -1
- package/types/data/keys.d.ts +88 -0
- package/types/data/keys.d.ts.map +1 -0
- package/types/data/navigation.d.ts +38 -11
- package/types/data/navigation.d.ts.map +1 -1
- package/types/data/sounds.d.ts +33 -17
- package/types/data/sounds.d.ts.map +1 -1
- package/types/data/url-state.d.ts +38 -7
- package/types/data/url-state.d.ts.map +1 -1
- package/types/dom/colors.d.ts +13 -0
- package/types/dom/colors.d.ts.map +1 -1
- package/types/dom/draw.d.ts +5 -3
- package/types/dom/draw.d.ts.map +1 -1
- package/types/dom/menus.d.ts +0 -2
- package/types/dom/menus.d.ts.map +1 -1
- package/types/dom/rows.d.ts +19 -11
- package/types/dom/rows.d.ts.map +1 -1
- package/types/entry.d.ts +10 -4
- package/types/entry.d.ts.map +1 -1
- package/types/index.d.ts +2 -2
- package/types/index.d.ts.map +1 -1
- package/types/render/html.d.ts +0 -2
- package/types/render/html.d.ts.map +1 -1
- package/types/render/icons.d.ts +41 -3
- package/types/render/icons.d.ts.map +1 -1
- package/types/render/markup.d.ts +44 -12
- package/types/render/markup.d.ts.map +1 -1
- package/types/render/options.d.ts +18 -5
- package/types/render/options.d.ts.map +1 -1
- package/types/render/strings.d.ts +22 -4
- package/types/render/strings.d.ts.map +1 -1
- package/types/render-entry.d.ts +1 -1
- package/types/render-entry.d.ts.map +1 -1
- package/types/shared/utils.d.ts +3 -3
- package/types/shared/utils.d.ts.map +1 -1
- package/types/types.d.ts +53 -3
- package/types/types.d.ts.map +1 -1
package/types/render/markup.d.ts
CHANGED
|
@@ -12,14 +12,20 @@
|
|
|
12
12
|
* `data-ws-*` attribute here is read by the runtime (`core.js`,
|
|
13
13
|
* `menus.js`, `rows.js`).
|
|
14
14
|
*
|
|
15
|
+
* Since 2.2.0 the markup carries the rows the list starts with (a page, or
|
|
16
|
+
* with paging off the first `RENDER_CHUNK`), in its starting order,
|
|
17
|
+
* and EVERY sound as JSON (`<script type="application/json"
|
|
18
|
+
* data-ws-sounds>`); the runtime renders the other rows from it as they
|
|
19
|
+
* are revealed. Icons are `<use>`s of one sprite per list.
|
|
20
|
+
*
|
|
15
21
|
* @module render
|
|
16
22
|
*/
|
|
17
23
|
import { escapeHtml } from '../vendor/arraypress-text.js';
|
|
18
24
|
import { availableSorts, facets } from '../data/sounds.js';
|
|
19
|
-
import { RENDER_DEFAULTS, resolveRenderOptions } from './options.js';
|
|
25
|
+
import { pickRenderOptions, RENDER_DEFAULTS, RENDER_OPTION_KEYS, resolveRenderOptions } from './options.js';
|
|
20
26
|
import { countText, DEFAULT_STRINGS, fill } from './strings.js';
|
|
21
27
|
import type { Sound, SoundInput, WaveformSoundsOptions } from '../types.js';
|
|
22
|
-
export { escapeHtml, RENDER_DEFAULTS, resolveRenderOptions, DEFAULT_STRINGS, countText, fill, availableSorts };
|
|
28
|
+
export { escapeHtml, RENDER_DEFAULTS, RENDER_OPTION_KEYS, pickRenderOptions, resolveRenderOptions, DEFAULT_STRINGS, countText, fill, availableSorts };
|
|
23
29
|
/**
|
|
24
30
|
* A stable id prefix for a list's dropdowns, from its sounds: the same on
|
|
25
31
|
* the server and in the browser. Two lists of the SAME sounds on one page
|
|
@@ -41,7 +47,6 @@ export declare function idBase(sounds: {
|
|
|
41
47
|
*
|
|
42
48
|
* @param f - The sounds' facets.
|
|
43
49
|
* @param o - Resolved options.
|
|
44
|
-
* @returns
|
|
45
50
|
*/
|
|
46
51
|
export declare function toolbarPlan(f: ReturnType<typeof facets>, o: ReturnType<typeof resolveRenderOptions>): {
|
|
47
52
|
types: 'chips' | 'menu' | null;
|
|
@@ -60,7 +65,6 @@ export declare function toolbarPlan(f: ReturnType<typeof facets>, o: ReturnType<
|
|
|
60
65
|
*
|
|
61
66
|
* @param loop - The `loop` option.
|
|
62
67
|
* @param f - The sounds' facets.
|
|
63
|
-
* @returns
|
|
64
68
|
*/
|
|
65
69
|
export declare function loopsByDefault(loop: boolean | null | undefined, f: {
|
|
66
70
|
loops: number;
|
|
@@ -71,10 +75,13 @@ export interface MenuSpec {
|
|
|
71
75
|
label: string;
|
|
72
76
|
prefix?: string;
|
|
73
77
|
value: string;
|
|
78
|
+
/** `alt`: other names the menu's search finds the option by (a merged
|
|
79
|
+
* key's other spellings). */
|
|
74
80
|
options: {
|
|
75
81
|
value: string;
|
|
76
82
|
label: string;
|
|
77
83
|
count?: number;
|
|
84
|
+
alt?: string;
|
|
78
85
|
}[];
|
|
79
86
|
searchFrom: number;
|
|
80
87
|
placeholder?: string;
|
|
@@ -95,22 +102,34 @@ export interface MenuSpec {
|
|
|
95
102
|
* @param m.searchFrom - Options above which a search field is added.
|
|
96
103
|
* @param [m.placeholder] - The search field's placeholder (no field without one).
|
|
97
104
|
* @param m.noMatches - Shown when the search matches nothing.
|
|
98
|
-
* @returns
|
|
99
105
|
*/
|
|
100
106
|
export declare function renderMenu(name: string, m: MenuSpec): string;
|
|
101
107
|
/**
|
|
102
108
|
* One row. `index` is the sound's position in the ORIGINAL list: the
|
|
103
109
|
* runtime maps rows back to sounds through it, whatever order they are
|
|
104
|
-
* sorted into.
|
|
105
|
-
*
|
|
110
|
+
* sorted into. The sound's data is not on the row (since 2.2.0): it travels
|
|
111
|
+
* once, in the list's JSON ({@link renderSoundsData}).
|
|
112
|
+
*
|
|
113
|
+
* For a screen reader the cells are one read-out ("Bass loops, 130 BPM,
|
|
114
|
+
* key B minor, 0:07") that also describes the play button; the visible
|
|
115
|
+
* cells are hidden from it. The waveform is a picture until its sound is
|
|
116
|
+
* current: the runtime makes the current row's the seek slider.
|
|
106
117
|
*
|
|
107
118
|
* @param sound - Normalised.
|
|
108
119
|
* @param index
|
|
109
120
|
* @param o
|
|
110
|
-
* @param
|
|
111
|
-
|
|
121
|
+
* @param id - The list's id prefix (its icons, the read-out's id).
|
|
122
|
+
*/
|
|
123
|
+
export declare function renderRow(sound: Sound, index: number, o: ReturnType<typeof resolveRenderOptions>, id: string): string;
|
|
124
|
+
/**
|
|
125
|
+
* Every sound, as the JSON the runtime reads back (`readSoundsData`):
|
|
126
|
+
* normalised, with what normalising would fill in left out (an id that is
|
|
127
|
+
* the default `sound-<n>`, empty fields), peaks as hex. `<` is escaped, so
|
|
128
|
+
* no value can close the script element.
|
|
129
|
+
*
|
|
130
|
+
* @param list - Normalised.
|
|
112
131
|
*/
|
|
113
|
-
export declare function
|
|
132
|
+
export declare function renderSoundsData(list: Sound[]): string;
|
|
114
133
|
/**
|
|
115
134
|
* The whole component's inner markup.
|
|
116
135
|
*
|
|
@@ -119,14 +138,27 @@ export declare function renderRow(sound: Sound, index: number, o: ReturnType<typ
|
|
|
119
138
|
* @returns HTML for the inside of `[data-waveform-sounds]`.
|
|
120
139
|
*/
|
|
121
140
|
export declare function renderSounds(sounds: SoundInput[], options?: WaveformSoundsOptions): string;
|
|
141
|
+
/**
|
|
142
|
+
* The `data-*` attributes that carry the render options set in `options` to
|
|
143
|
+
* the runtime (`data-page-size="20"`, `data-filters=""`, `data-strings='{…}'`),
|
|
144
|
+
* in the form `readDataOptions` reads — so the browser keeps what the server
|
|
145
|
+
* drew instead of falling back to the defaults (re-paging 20 rows to 50).
|
|
146
|
+
* Only options that are set are written; `player` is always written by
|
|
147
|
+
* {@link renderSoundsElement}. Since 2.1.0.
|
|
148
|
+
*
|
|
149
|
+
* @param options
|
|
150
|
+
* @returns Attributes, in {@link RENDER_OPTION_KEYS} order.
|
|
151
|
+
*/
|
|
152
|
+
export declare function renderOptionAttributes(options?: WaveformSoundsOptions): Record<string, string>;
|
|
122
153
|
/**
|
|
123
154
|
* The full element, for callers who want one string: the wrapper div with
|
|
124
|
-
* its `data-waveform-sounds` marker, its `data-player
|
|
155
|
+
* its `data-waveform-sounds` marker, its `data-player`, a `data-*` attribute
|
|
156
|
+
* for every other render option set (see {@link renderOptionAttributes}) and
|
|
157
|
+
* the inner markup. The inner markup is exactly {@link renderSounds}'.
|
|
125
158
|
*
|
|
126
159
|
* @param sounds
|
|
127
160
|
* @param options
|
|
128
161
|
* @param className - Extra classes for the wrapper.
|
|
129
|
-
* @returns
|
|
130
162
|
*/
|
|
131
163
|
export declare function renderSoundsElement(sounds: SoundInput[], options?: WaveformSoundsOptions, className?: string): string;
|
|
132
164
|
//# sourceMappingURL=markup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markup.d.ts","sourceRoot":"","sources":["../../src/js/render/markup.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"markup.d.ts","sourceRoot":"","sources":["../../src/js/render/markup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,cAAc,EAAe,MAAM,EAA8C,MAAM,mBAAmB,CAAC;AAKnH,OAAO,EAAU,iBAAiB,EAAE,eAAe,EAAE,kBAAkB,EAAE,oBAAoB,EAAC,MAAM,cAAc,CAAC;AACnH,OAAO,EAAW,SAAS,EAAE,eAAe,EAAE,IAAI,EAA8B,MAAM,cAAc,CAAC;AAGrG,OAAO,KAAK,EAAC,KAAK,EAAE,UAAU,EAAc,qBAAqB,EAAwB,MAAM,aAAa,CAAC;AAE7G,OAAO,EAAC,UAAU,EAAE,eAAe,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,EAAC,CAAC;AAEpJ;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE;IAAC,GAAG,EAAE,MAAM,CAAA;CAAC,EAAE,GAAG,MAAM,CAGtD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,EAAE,CAAC,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,GAAG;IAAC,KAAK,EAAE,OAAO,GAAC,MAAM,GAAC,IAAI,CAAC;IAAC,GAAG,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE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;AA2BD;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,GAAE,qBAA0B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAkBlG;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE,OAAO,GAAE,qBAA0B,EAAE,SAAS,GAAE,MAAW,GAAG,MAAM,CAI7H"}
|
|
@@ -11,7 +11,7 @@ export declare const FILTERS: SoundsFilterControl[];
|
|
|
11
11
|
/** The columns a row can show after its title. */
|
|
12
12
|
export declare const COLUMNS: SoundsColumn[];
|
|
13
13
|
/** The options that shape the markup (the renderer's whole input). */
|
|
14
|
-
export declare const RENDER_DEFAULTS: Required<Pick<WaveformSoundsOptions, 'player' | 'search' | 'filters' | 'sorts' | 'loopToggle' | 'showCount' | 'menuSearch' | 'pageSize' | 'columns' | 'maxTypeChips'>>;
|
|
14
|
+
export declare const RENDER_DEFAULTS: Required<Pick<WaveformSoundsOptions, 'player' | 'search' | 'filters' | 'sorts' | 'loopToggle' | 'showCount' | 'menuSearch' | 'pageSize' | 'columns' | 'maxTypeChips' | 'mergeEnharmonicKeys'>>;
|
|
15
15
|
/** {@link resolveRenderOptions}' result: the render options, complete, plus
|
|
16
16
|
* whatever else the caller passed. */
|
|
17
17
|
export type RenderOptions = typeof RENDER_DEFAULTS & {
|
|
@@ -19,12 +19,28 @@ export type RenderOptions = typeof RENDER_DEFAULTS & {
|
|
|
19
19
|
idPrefix?: string;
|
|
20
20
|
loop?: boolean | null;
|
|
21
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* Every option that shapes the server markup: the render defaults, plus
|
|
24
|
+
* `idPrefix` (the dropdowns' ids), `loop` (whether the Loop toggle starts
|
|
25
|
+
* pressed) and `strings`. A wrapper that renders on the server passes
|
|
26
|
+
* exactly these to `renderSounds` — and the same values to the runtime, or
|
|
27
|
+
* the browser re-lays out what the server drew. Since 2.1.0.
|
|
28
|
+
*/
|
|
29
|
+
export declare const RENDER_OPTION_KEYS: (keyof WaveformSoundsOptions)[];
|
|
30
|
+
/**
|
|
31
|
+
* The render options set in `options` (those in {@link RENDER_OPTION_KEYS}
|
|
32
|
+
* that aren't null or undefined), for handing a component's options to
|
|
33
|
+
* `renderSounds` on the server. Since 2.1.0.
|
|
34
|
+
*
|
|
35
|
+
* @param options - Any `WaveformSoundsOptions` (or a component's props).
|
|
36
|
+
* @returns Just the render options that are set.
|
|
37
|
+
*/
|
|
38
|
+
export declare function pickRenderOptions(options: WaveformSoundsOptions | null | undefined): WaveformSoundsOptions;
|
|
22
39
|
/**
|
|
23
40
|
* The object without its `undefined` entries (so spreading it can't erase
|
|
24
41
|
* a default).
|
|
25
42
|
*
|
|
26
43
|
* @param obj
|
|
27
|
-
* @returns
|
|
28
44
|
*/
|
|
29
45
|
export declare function defined(obj: Record<string, any> | null | undefined): Record<string, any>;
|
|
30
46
|
/**
|
|
@@ -34,7 +50,6 @@ export declare function defined(obj: Record<string, any> | null | undefined): Re
|
|
|
34
50
|
* @param values
|
|
35
51
|
* @param allowed
|
|
36
52
|
* @param fallback
|
|
37
|
-
* @returns
|
|
38
53
|
*/
|
|
39
54
|
export declare function allowedList<T extends string>(values: unknown, allowed: T[], fallback: T[]): T[];
|
|
40
55
|
/**
|
|
@@ -42,7 +57,6 @@ export declare function allowedList<T extends string>(values: unknown, allowed:
|
|
|
42
57
|
*
|
|
43
58
|
* @param value
|
|
44
59
|
* @param fallback
|
|
45
|
-
* @returns
|
|
46
60
|
*/
|
|
47
61
|
export declare function wholeNumber(value: unknown, fallback: number): number;
|
|
48
62
|
/**
|
|
@@ -50,7 +64,6 @@ export declare function wholeNumber(value: unknown, fallback: number): number;
|
|
|
50
64
|
* columns are dropped, counts are whole numbers, `strings` is complete.
|
|
51
65
|
*
|
|
52
66
|
* @param options
|
|
53
|
-
* @returns
|
|
54
67
|
*/
|
|
55
68
|
export declare function resolveRenderOptions(options?: WaveformSoundsOptions): RenderOptions;
|
|
56
69
|
//# sourceMappingURL=options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/js/render/options.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAC,YAAY,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,qBAAqB,EAAC,MAAM,aAAa,CAAC;AAEjH,4CAA4C;AAC5C,eAAO,MAAM,OAAO,EAAE,mBAAmB,EAAmC,CAAC;AAE7E,kDAAkD;AAClD,eAAO,MAAM,OAAO,EAAE,YAAY,EAAuC,CAAC;AAE1E,sEAAsE;AACtE,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,IAAI,CAAC,qBAAqB,EAC7D,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,GAAG,SAAS,GAAG,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/js/render/options.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAC,YAAY,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,qBAAqB,EAAC,MAAM,aAAa,CAAC;AAEjH,4CAA4C;AAC5C,eAAO,MAAM,OAAO,EAAE,mBAAmB,EAAmC,CAAC;AAE7E,kDAAkD;AAClD,eAAO,MAAM,OAAO,EAAE,YAAY,EAAuC,CAAC;AAE1E,sEAAsE;AACtE,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,IAAI,CAAC,qBAAqB,EAC7D,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,GAAG,SAAS,GAAG,cAAc,GAAG,qBAAqB,CAAC,CAY3J,CAAC;AAEF;uCACuC;AACvC,MAAM,MAAM,aAAa,GAAG,OAAO,eAAe,GAAG;IAAC,OAAO,EAAE,qBAAqB,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;CAAC,CAAC;AAEhI;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,EAAuE,CAAC,MAAM,qBAAqB,CAAC,EAAE,CAAC;AAEtI;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,GAAG,SAAS,GAAG,qBAAqB,CAO1G;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAIxF;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAE/F;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGpE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,qBAA0B,GAAG,aAAa,CAcvF"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module strings
|
|
7
7
|
*/
|
|
8
|
-
import type { SoundsSort, WaveformSoundsStrings } from '../types.js';
|
|
8
|
+
import type { Sound, SoundsColumn, SoundsSort, WaveformSoundsStrings } from '../types.js';
|
|
9
9
|
/** The English defaults. */
|
|
10
10
|
export declare const DEFAULT_STRINGS: WaveformSoundsStrings;
|
|
11
11
|
/** The label each sort order shows in the Sort menu. */
|
|
@@ -15,7 +15,6 @@ export declare const SORT_LABEL_KEYS: Record<SoundsSort, keyof WaveformSoundsStr
|
|
|
15
15
|
*
|
|
16
16
|
* @param template
|
|
17
17
|
* @param vars
|
|
18
|
-
* @returns
|
|
19
18
|
*/
|
|
20
19
|
export declare function fill(template: string, vars?: Record<string, string | number>): string;
|
|
21
20
|
/**
|
|
@@ -25,7 +24,6 @@ export declare function fill(template: string, vars?: Record<string, string | nu
|
|
|
25
24
|
* @param filter
|
|
26
25
|
* @param extent - The pack's BPM range.
|
|
27
26
|
* @param strings
|
|
28
|
-
* @returns
|
|
29
27
|
*/
|
|
30
28
|
export declare function bpmLabel(filter: {
|
|
31
29
|
bpmMin?: string | number;
|
|
@@ -40,7 +38,27 @@ export declare function bpmLabel(filter: {
|
|
|
40
38
|
* @param shown - Sounds matching the filter.
|
|
41
39
|
* @param total - All sounds.
|
|
42
40
|
* @param strings
|
|
43
|
-
* @returns
|
|
44
41
|
*/
|
|
45
42
|
export declare function countText(shown: number, total: number, strings?: typeof DEFAULT_STRINGS): string;
|
|
43
|
+
/**
|
|
44
|
+
* A key as a screen reader should say it: "Bm" → "B minor", "F#" → "F
|
|
45
|
+
* sharp major" (a bare "F#m" is read "F number m"). A label that isn't a
|
|
46
|
+
* key is said as written.
|
|
47
|
+
*
|
|
48
|
+
* @param key - A normalised key.
|
|
49
|
+
* @param strings
|
|
50
|
+
*/
|
|
51
|
+
export declare function spokenKey(key: string, strings?: WaveformSoundsStrings): string;
|
|
52
|
+
/**
|
|
53
|
+
* What a row's cells say, for a screen reader: the visible cells read "Bass
|
|
54
|
+
* loops 130 Bm 0:07"; this reads "Bass loops, 130 BPM, key B minor, 0:07"
|
|
55
|
+
* (and ", Loop" for a loop). Only the columns the row shows, only the
|
|
56
|
+
* values it has. Since 2.2.0.
|
|
57
|
+
*
|
|
58
|
+
* @param sound
|
|
59
|
+
* @param columns - The row's columns, in order.
|
|
60
|
+
* @param strings
|
|
61
|
+
* @returns '' when there is nothing to say.
|
|
62
|
+
*/
|
|
63
|
+
export declare function rowSummary(sound: Sound, columns: SoundsColumn[], strings?: WaveformSoundsStrings): string;
|
|
46
64
|
//# sourceMappingURL=strings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/js/render/strings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/js/render/strings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,qBAAqB,EAAC,MAAM,aAAa,CAAC;AAExF,4BAA4B;AAC5B,eAAO,MAAM,eAAe,EAAE,qBAmD7B,CAAC;AAEF,wDAAwD;AACxD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,qBAAqB,CAM3E,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAC,MAAM,CAAM,GAAG,MAAM,CAEvF;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE;IAAC,MAAM,CAAC,EAAE,MAAM,GAAC,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAC,MAAM,CAAA;CAAC,EAAE,MAAM,EAAE;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAC,EAAE,OAAO,GAAE,OAAO,eAAiC,GAAG,MAAM,CAIhL;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,OAAO,eAAiC,GAAG,MAAM,CAGjH;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,qBAAuC,GAAG,MAAM,CAM/F;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,OAAO,GAAE,qBAAuC,GAAG,MAAM,CAa1H"}
|
package/types/render-entry.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* `@arraypress/waveform-sounds/render` — the DOM-free half, for server
|
|
3
3
|
* rendering. Importing it never touches `window` or `document`.
|
|
4
4
|
*/
|
|
5
|
-
export { renderSounds, renderSoundsElement, DEFAULT_STRINGS, escapeHtml } from './render/markup.js';
|
|
5
|
+
export { renderSounds, renderSoundsElement, DEFAULT_STRINGS, escapeHtml, RENDER_OPTION_KEYS, pickRenderOptions } from './render/markup.js';
|
|
6
6
|
export { normalizeSounds, parseManifest, encodePeaks, decodePeaks, normalizeKey, facets, formatDuration } from './data/sounds.js';
|
|
7
7
|
export type { SoundInput, Sound, SoundsManifest, WaveformSoundsOptions, WaveformSoundsStrings } from './types.js';
|
|
8
8
|
//# sourceMappingURL=render-entry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-entry.d.ts","sourceRoot":"","sources":["../src/js/render-entry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAC,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,UAAU,EAAC,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"render-entry.d.ts","sourceRoot":"","sources":["../src/js/render-entry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAC,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,UAAU,EAAE,kBAAkB,EAAE,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AACzI,OAAO,EAAC,eAAe,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChI,YAAY,EAAC,UAAU,EAAE,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,qBAAqB,EAAC,MAAM,YAAY,CAAC"}
|
package/types/shared/utils.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export declare const LOG = "[WaveformSounds]";
|
|
|
12
12
|
* @param value
|
|
13
13
|
* @param min
|
|
14
14
|
* @param max
|
|
15
|
-
* @returns
|
|
16
15
|
*/
|
|
17
16
|
export declare function clamp(value: number, min?: number, max?: number): number;
|
|
18
17
|
/**
|
|
@@ -32,11 +31,12 @@ export declare function pointerFraction(clientX: number, rect: {
|
|
|
32
31
|
* must not fire there.
|
|
33
32
|
*
|
|
34
33
|
* @param el
|
|
35
|
-
* @returns
|
|
36
34
|
*/
|
|
37
35
|
export declare function isTyping(el: Element | null | undefined): boolean;
|
|
38
36
|
/**
|
|
39
|
-
* Dispatch a bubbling `waveformsounds:<name>` CustomEvent from an
|
|
37
|
+
* Dispatch a bubbling, composed `waveformsounds:<name>` CustomEvent from an
|
|
38
|
+
* element (composed: it leaves a shadow root, like the core's lifecycle
|
|
39
|
+
* events).
|
|
40
40
|
* Every event the list emits goes through here, so they share one shape:
|
|
41
41
|
* the detail plus the instance that sent it.
|
|
42
42
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/js/shared/utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,yDAAyD;AACzD,eAAO,MAAM,GAAG,qBAAqB,CAAC;AAEtC
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/js/shared/utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,yDAAyD;AACzD,eAAO,MAAM,GAAG,qBAAqB,CAAC;AAEtC;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,GAAE,MAAU,EAAE,GAAG,GAAE,MAAU,GAAG,MAAM,CAE7E;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,GAAG,MAAM,CAE5F;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAEhE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,WAAW,CAIhG;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAI9C"}
|
package/types/types.d.ts
CHANGED
|
@@ -41,8 +41,9 @@ export interface SoundInput {
|
|
|
41
41
|
/** A loop (`true`) rather than a one-shot (the default). Loops get a
|
|
42
42
|
* loop icon beside their name, the "Loops / One-shots" filter appears
|
|
43
43
|
* once a list has both, and with any sound marked the Loop toggle
|
|
44
|
-
* repeats only loops.
|
|
45
|
-
|
|
44
|
+
* repeats only loops. As data writes it, `'true'` / `'1'` / `1` also
|
|
45
|
+
* mean a loop; anything else is a one-shot. */
|
|
46
|
+
loop?: boolean | 'true' | 'false' | '1' | '0' | 1 | 0;
|
|
46
47
|
/** Stable id for `play('id')`. Defaults to `sound-<n>`, 1-based
|
|
47
48
|
* (`sound-1` is the first sound). */
|
|
48
49
|
id?: string;
|
|
@@ -121,6 +122,9 @@ export interface WaveformSoundsStrings {
|
|
|
121
122
|
play: string;
|
|
122
123
|
pause: string;
|
|
123
124
|
seek: string;
|
|
125
|
+
/** The playing row's seek slider, read out: `{time}`, `{duration}`
|
|
126
|
+
* ("0:12 of 0:30"). Since 2.1.0. */
|
|
127
|
+
seekValue: string;
|
|
124
128
|
download: string;
|
|
125
129
|
count: string;
|
|
126
130
|
countOne: string;
|
|
@@ -129,6 +133,29 @@ export interface WaveformSoundsStrings {
|
|
|
129
133
|
empty: string;
|
|
130
134
|
clear: string;
|
|
131
135
|
nowPlaying: string;
|
|
136
|
+
/** Announced when a sound fails to load or play. Since 2.1.0. */
|
|
137
|
+
playError: string;
|
|
138
|
+
/** Shown in place of the list when it can't be built (the manifest
|
|
139
|
+
* fails to load or isn't a manifest). Since 2.1.0. */
|
|
140
|
+
loadError: string;
|
|
141
|
+
/** The empty state of a list with no sounds at all. Since 2.1.0. */
|
|
142
|
+
noSounds: string;
|
|
143
|
+
/** A row's BPM, read out: `{bpm}` ("130 BPM"). Since 2.2.0. */
|
|
144
|
+
rowBpm: string;
|
|
145
|
+
/** A row's key, read out: `{key}`, spoken ("key B minor"). Since 2.2.0. */
|
|
146
|
+
rowKey: string;
|
|
147
|
+
/** A row's length, read out: `{duration}` ("0:07"). Since 2.2.0. */
|
|
148
|
+
rowDuration: string;
|
|
149
|
+
/** A major key, spoken: `{note}` ("F sharp major"). Since 2.2.0. */
|
|
150
|
+
keyMajor: string;
|
|
151
|
+
/** A minor key, spoken: `{note}` ("B minor"). Since 2.2.0. */
|
|
152
|
+
keyMinor: string;
|
|
153
|
+
/** A sharp note, spoken: `{note}` is the letter ("F sharp"). Since 2.2.0. */
|
|
154
|
+
noteSharp: string;
|
|
155
|
+
/** A flat note, spoken: `{note}` is the letter ("B flat"). Since 2.2.0. */
|
|
156
|
+
noteFlat: string;
|
|
157
|
+
/** Between the parts of a row's read-out (", "). Since 2.2.0. */
|
|
158
|
+
listSeparator: string;
|
|
132
159
|
}
|
|
133
160
|
export interface WaveformSoundsOptions {
|
|
134
161
|
/** The sounds. Or `manifest`, or server-rendered rows in the container. */
|
|
@@ -178,6 +205,14 @@ export interface WaveformSoundsOptions {
|
|
|
178
205
|
pageSize?: number;
|
|
179
206
|
/** Columns after the title, in order. Default all four. */
|
|
180
207
|
columns?: SoundsColumn[];
|
|
208
|
+
/** Enharmonic keys are one key: A#m and Bbm (C# and Db, …) are one
|
|
209
|
+
* entry in the key menu, a filter on either finds both, and the address
|
|
210
|
+
* accepts either spelling. The entry shows the spelling the list uses
|
|
211
|
+
* most (a tie: the conventional one — Db, Eb, F#, Ab, Bb major; C#m,
|
|
212
|
+
* Ebm, F#m, G#m, Bbm minor); each row still shows its key as written.
|
|
213
|
+
* `false` keeps every spelling apart. As markup:
|
|
214
|
+
* `data-merge-enharmonic-keys="false"`. Default true. Since 2.2.0. */
|
|
215
|
+
mergeEnharmonicKeys?: boolean;
|
|
181
216
|
/** Row waveform style. Default `'mirror'`. */
|
|
182
217
|
waveformStyle?: 'mirror' | 'bars';
|
|
183
218
|
/** Row waveform colour. Default: CSS `--ws-wave-color`. */
|
|
@@ -216,7 +251,10 @@ export interface WaveformSoundsOptions {
|
|
|
216
251
|
onFilter?: ((visible: Sound[], instance: WaveformSounds) => void) | null;
|
|
217
252
|
onError?: ((error: unknown, instance: WaveformSounds) => void) | null;
|
|
218
253
|
}
|
|
219
|
-
/** `detail` of the `waveformsounds:*` DOM events
|
|
254
|
+
/** `detail` of the `waveformsounds:*` DOM events. All bubble and are
|
|
255
|
+
* composed (they leave a shadow root); merged into `HTMLElementEventMap`,
|
|
256
|
+
* `DocumentEventMap` and `WindowEventMap`, so `addEventListener` on an
|
|
257
|
+
* element, `document` or `window` is typed. */
|
|
220
258
|
export interface WaveformSoundsEventMap {
|
|
221
259
|
'waveformsounds:ready': CustomEvent<{
|
|
222
260
|
sounds: number;
|
|
@@ -251,4 +289,16 @@ export interface WaveformSoundsEventMap {
|
|
|
251
289
|
instance: WaveformSounds;
|
|
252
290
|
}>;
|
|
253
291
|
}
|
|
292
|
+
/** The plain events a {@link WaveformSounds} dispatches on itself — it is an
|
|
293
|
+
* `EventTarget`, so `list.addEventListener('play', …)` works and is typed.
|
|
294
|
+
* Each mirrors a `waveformsounds:*` container event (whose `detail`
|
|
295
|
+
* carries the data); the matching `on*` callback still runs. Since 2.1.0. */
|
|
296
|
+
export interface WaveformSoundsInstanceEventMap {
|
|
297
|
+
ready: Event;
|
|
298
|
+
play: Event;
|
|
299
|
+
pause: Event;
|
|
300
|
+
end: Event;
|
|
301
|
+
filter: Event;
|
|
302
|
+
error: Event;
|
|
303
|
+
}
|
|
254
304
|
//# sourceMappingURL=types.d.ts.map
|
package/types/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/js/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AAE7D,+DAA+D;AAC/D,MAAM,WAAW,UAAU;IACvB,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB;+DAC2D;IAC3D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IACzB;;6EAEyE;IACzE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1B;4BACwB;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC7B;;2EAEuE;IACvE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/js/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AAE7D,+DAA+D;AAC/D,MAAM,WAAW,UAAU;IACvB,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,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