smoosic 1.0.40 → 1.0.41
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/build/smoosic.js +3 -3
- package/package.json +1 -1
- package/release/smoosic.js +3 -3
- package/src/smo/data/scoreModifiers.ts +2 -2
- package/src/ui/components/dialogs/timeSignature.vue +25 -4
- package/types/src/application/application.d.ts +103 -102
- package/types/src/application/common.d.ts +6 -0
- package/types/src/application/configuration.d.ts +75 -75
- package/types/src/application/dynamicInit.d.ts +6 -6
- package/types/src/application/eventHandler.d.ts +87 -81
- package/types/src/application/exports.d.ts +482 -485
- package/types/src/render/audio/oscillator.d.ts +99 -99
- package/types/src/render/audio/player.d.ts +143 -143
- package/types/src/render/audio/samples.d.ts +56 -56
- package/types/src/render/sui/NoteEntryCaret.d.ts +107 -0
- package/types/src/render/sui/NoteEntryMediator.d.ts +24 -0
- package/types/src/render/sui/configuration.d.ts +53 -49
- package/types/src/render/sui/formatter.d.ts +163 -161
- package/types/src/render/sui/layoutDebug.d.ts +46 -46
- package/types/src/render/sui/mapper.d.ts +138 -135
- package/types/src/render/sui/renderState.d.ts +92 -90
- package/types/src/render/sui/scoreRender.d.ts +97 -96
- package/types/src/render/sui/scoreView.d.ts +280 -279
- package/types/src/render/sui/scoreViewOperations.d.ts +604 -594
- package/types/src/render/sui/scroller.d.ts +41 -41
- package/types/src/render/sui/svgPageMap.d.ts +344 -344
- package/types/src/render/sui/textEdit.d.ts +316 -316
- package/types/src/render/sui/tracker.d.ts +10 -4
- package/types/src/render/vex/vxMeasure.d.ts +97 -97
- package/types/src/smo/data/common.d.ts +220 -220
- package/types/src/smo/data/measure.d.ts +511 -511
- package/types/src/smo/data/measureModifiers.d.ts +509 -508
- package/types/src/smo/data/music.d.ts +2 -1
- package/types/src/smo/data/note.d.ts +2 -0
- package/types/src/smo/data/noteModifiers.d.ts +2 -0
- package/types/src/smo/data/score.d.ts +7 -5
- package/types/src/smo/data/scoreModifiers.d.ts +441 -440
- package/types/src/smo/data/systemStaff.d.ts +2 -2
- package/types/src/smo/data/tuplet.d.ts +7 -0
- package/types/src/smo/midi/midiToSmo.d.ts +12 -12
- package/types/src/smo/midi/smoToMidi.d.ts +3 -3
- package/types/src/smo/mxml/smoToXml.d.ts +4 -4
- package/types/src/smo/mxml/xmlState.d.ts +3 -3
- package/types/src/smo/mxml/xmlToSmo.d.ts +2 -2
- package/types/src/smo/xform/operations.d.ts +3 -3
- package/types/src/smo/xform/selections.d.ts +154 -154
- package/types/src/ui/buttons/display.d.ts +1 -0
- package/types/src/ui/common.d.ts +69 -67
- package/types/src/ui/composable/draggable.d.ts +1 -1
- package/types/src/ui/configuration.d.ts +30 -30
- package/types/src/ui/dialogs/chordChange.d.ts +35 -35
- package/types/src/ui/dialogs/components/baseComponent.d.ts +158 -158
- package/types/src/ui/dialogs/components/button.d.ts +54 -54
- package/types/src/ui/dialogs/components/dropdown.d.ts +78 -78
- package/types/src/ui/dialogs/components/pitch.d.ts +95 -95
- package/types/src/ui/dialogs/components/rocker.d.ts +66 -66
- package/types/src/ui/dialogs/components/textInPlace.d.ts +90 -90
- package/types/src/ui/dialogs/components/textInput.d.ts +58 -58
- package/types/src/ui/dialogs/components/toggle.d.ts +53 -53
- package/types/src/ui/dialogs/dialog.d.ts +203 -203
- package/types/src/ui/dialogs/endings.d.ts +2 -2
- package/types/src/ui/dialogs/lyric.d.ts +39 -39
- package/types/src/ui/dialogs/measureFormat.d.ts +2 -2
- package/types/src/ui/dialogs/tempo.d.ts +3 -3
- package/types/src/ui/dialogs/textBlock.d.ts +55 -61
- package/types/src/ui/dialogs/timeSignature.d.ts +2 -34
- package/types/src/ui/exceptions.d.ts +15 -15
- package/types/src/ui/help.d.ts +6 -1
- package/types/src/ui/menus/manager.d.ts +59 -59
- package/types/src/ui/navigation.d.ts +44 -37
- package/types/typedoc.d.ts +157 -157
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { SuiComponentBase, SuiDialogNotifier, SuiComponentParent } from './baseComponent';
|
|
2
|
-
/**
|
|
3
|
-
* Simple buttons in dialogs
|
|
4
|
-
* @category SuiDialog
|
|
5
|
-
*/
|
|
6
|
-
export interface SuiButtonComponentParams {
|
|
7
|
-
id: string;
|
|
8
|
-
classes: string;
|
|
9
|
-
type?: string;
|
|
10
|
-
increment?: number;
|
|
11
|
-
text?: string;
|
|
12
|
-
label: string;
|
|
13
|
-
smoName: string;
|
|
14
|
-
control: string;
|
|
15
|
-
icon: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Simple click behavior. No value just used to notifiy parent dialog
|
|
19
|
-
* @category SuiDialog
|
|
20
|
-
*/
|
|
21
|
-
export declare class SuiButtonComponent extends SuiComponentBase {
|
|
22
|
-
icon: string;
|
|
23
|
-
text?: string;
|
|
24
|
-
constructor(dialog: SuiDialogNotifier, parameter: SuiButtonComponentParams);
|
|
25
|
-
get html(): import("../../../common/htmlHelpers").DomBuilder;
|
|
26
|
-
_getInputElement(): any;
|
|
27
|
-
setValue(): void;
|
|
28
|
-
getValue(): null;
|
|
29
|
-
bind(): void;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* @category SuiDialog
|
|
33
|
-
*/
|
|
34
|
-
export interface SuiButtonCompositeParams {
|
|
35
|
-
id: string;
|
|
36
|
-
classes: string;
|
|
37
|
-
type?: string;
|
|
38
|
-
increment?: number;
|
|
39
|
-
label: string;
|
|
40
|
-
smoName: string;
|
|
41
|
-
text?: string;
|
|
42
|
-
control: string;
|
|
43
|
-
icon: string;
|
|
44
|
-
parentControl: SuiComponentParent;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Buttons that are part of a composite control
|
|
48
|
-
* @category SuiDialog
|
|
49
|
-
*/
|
|
50
|
-
export declare class SuiButtonComposite extends SuiButtonComponent {
|
|
51
|
-
parentControl: SuiComponentParent;
|
|
52
|
-
constructor(dialog: SuiDialogNotifier, parameters: SuiButtonCompositeParams);
|
|
53
|
-
handleChanged(): Promise<void>;
|
|
54
|
-
}
|
|
1
|
+
import { SuiComponentBase, SuiDialogNotifier, SuiComponentParent } from './baseComponent';
|
|
2
|
+
/**
|
|
3
|
+
* Simple buttons in dialogs
|
|
4
|
+
* @category SuiDialog
|
|
5
|
+
*/
|
|
6
|
+
export interface SuiButtonComponentParams {
|
|
7
|
+
id: string;
|
|
8
|
+
classes: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
increment?: number;
|
|
11
|
+
text?: string;
|
|
12
|
+
label: string;
|
|
13
|
+
smoName: string;
|
|
14
|
+
control: string;
|
|
15
|
+
icon: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Simple click behavior. No value just used to notifiy parent dialog
|
|
19
|
+
* @category SuiDialog
|
|
20
|
+
*/
|
|
21
|
+
export declare class SuiButtonComponent extends SuiComponentBase {
|
|
22
|
+
icon: string;
|
|
23
|
+
text?: string;
|
|
24
|
+
constructor(dialog: SuiDialogNotifier, parameter: SuiButtonComponentParams);
|
|
25
|
+
get html(): import("../../../common/htmlHelpers").DomBuilder;
|
|
26
|
+
_getInputElement(): any;
|
|
27
|
+
setValue(): void;
|
|
28
|
+
getValue(): null;
|
|
29
|
+
bind(): void;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @category SuiDialog
|
|
33
|
+
*/
|
|
34
|
+
export interface SuiButtonCompositeParams {
|
|
35
|
+
id: string;
|
|
36
|
+
classes: string;
|
|
37
|
+
type?: string;
|
|
38
|
+
increment?: number;
|
|
39
|
+
label: string;
|
|
40
|
+
smoName: string;
|
|
41
|
+
text?: string;
|
|
42
|
+
control: string;
|
|
43
|
+
icon: string;
|
|
44
|
+
parentControl: SuiComponentParent;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Buttons that are part of a composite control
|
|
48
|
+
* @category SuiDialog
|
|
49
|
+
*/
|
|
50
|
+
export declare class SuiButtonComposite extends SuiButtonComponent {
|
|
51
|
+
parentControl: SuiComponentParent;
|
|
52
|
+
constructor(dialog: SuiDialogNotifier, parameters: SuiButtonCompositeParams);
|
|
53
|
+
handleChanged(): Promise<void>;
|
|
54
|
+
}
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import { SuiComponentBase, SuiDialogNotifier, SuiComponentParent, DialogDefinitionOption } from './baseComponent';
|
|
2
|
-
/**
|
|
3
|
-
* constructor params for {@link SuiDropdownComponent}
|
|
4
|
-
* @param id id in DOM
|
|
5
|
-
* @param classes
|
|
6
|
-
* @param type indicates the data type of the value
|
|
7
|
-
* @param increment not used
|
|
8
|
-
* @param label
|
|
9
|
-
* @param smoName variable name in dialog/adapter
|
|
10
|
-
* @param control name of constructor
|
|
11
|
-
* @param disabledOption
|
|
12
|
-
* @category SuiDialog
|
|
13
|
-
*/
|
|
14
|
-
export interface SuiDropdownComponentParams {
|
|
15
|
-
id: string;
|
|
16
|
-
classes: string;
|
|
17
|
-
increment?: number;
|
|
18
|
-
label: string;
|
|
19
|
-
smoName: string;
|
|
20
|
-
control: string;
|
|
21
|
-
disabledOption?: string;
|
|
22
|
-
dataType?: string;
|
|
23
|
-
options?: DialogDefinitionOption[];
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* single-select dropdown list
|
|
27
|
-
* @category SuiDialog
|
|
28
|
-
*/
|
|
29
|
-
export declare class SuiDropdownComponent extends SuiComponentBase {
|
|
30
|
-
options: DialogDefinitionOption[];
|
|
31
|
-
disabledOption: string;
|
|
32
|
-
dataType: string;
|
|
33
|
-
value: string;
|
|
34
|
-
optionIds: string[];
|
|
35
|
-
constructor(dialog: SuiDialogNotifier, parameter: SuiDropdownComponentParams);
|
|
36
|
-
checkDefault(s: any, b: any): void;
|
|
37
|
-
get html(): import("../../../common/htmlHelpers").DomBuilder;
|
|
38
|
-
updateControls(): void;
|
|
39
|
-
unselect(): void;
|
|
40
|
-
_getInputElement(): any;
|
|
41
|
-
getValue(): string | number;
|
|
42
|
-
getValueLabel(): string;
|
|
43
|
-
setValue(value: string | number): void;
|
|
44
|
-
bind(): void;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* constructor params for {@link SuiDropdownComposite}
|
|
48
|
-
* element, often a checkbox
|
|
49
|
-
* @param {id} - unique ID for the control DOM
|
|
50
|
-
* @param {classes} - additional classes for styling added to DOM
|
|
51
|
-
* @param {label} - default label for the component
|
|
52
|
-
* @param {smoName} - the variable in the dialog that the componenet maps to
|
|
53
|
-
* @param {control} - the constructor of the UI control
|
|
54
|
-
* @param {parentComponent} - for composite components, the top-level
|
|
55
|
-
* @category SuiDialog
|
|
56
|
-
* */
|
|
57
|
-
export interface SuiDropdownCompositeParams {
|
|
58
|
-
id: string;
|
|
59
|
-
classes: string;
|
|
60
|
-
type?: string;
|
|
61
|
-
increment?: number;
|
|
62
|
-
label: string;
|
|
63
|
-
smoName: string;
|
|
64
|
-
control: string;
|
|
65
|
-
disabledOption?: string;
|
|
66
|
-
dataType?: string;
|
|
67
|
-
options?: DialogDefinitionOption[];
|
|
68
|
-
parentControl: SuiComponentParent;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* A dropdown composite mixes a dropdown with some other
|
|
72
|
-
* @category SuiDialog
|
|
73
|
-
*/
|
|
74
|
-
export declare class SuiDropdownComposite extends SuiDropdownComponent {
|
|
75
|
-
parentControl: SuiComponentParent;
|
|
76
|
-
constructor(dialog: SuiDialogNotifier, parameters: SuiDropdownCompositeParams);
|
|
77
|
-
handleChanged(): Promise<void>;
|
|
78
|
-
}
|
|
1
|
+
import { SuiComponentBase, SuiDialogNotifier, SuiComponentParent, DialogDefinitionOption } from './baseComponent';
|
|
2
|
+
/**
|
|
3
|
+
* constructor params for {@link SuiDropdownComponent}
|
|
4
|
+
* @param id id in DOM
|
|
5
|
+
* @param classes
|
|
6
|
+
* @param type indicates the data type of the value
|
|
7
|
+
* @param increment not used
|
|
8
|
+
* @param label
|
|
9
|
+
* @param smoName variable name in dialog/adapter
|
|
10
|
+
* @param control name of constructor
|
|
11
|
+
* @param disabledOption
|
|
12
|
+
* @category SuiDialog
|
|
13
|
+
*/
|
|
14
|
+
export interface SuiDropdownComponentParams {
|
|
15
|
+
id: string;
|
|
16
|
+
classes: string;
|
|
17
|
+
increment?: number;
|
|
18
|
+
label: string;
|
|
19
|
+
smoName: string;
|
|
20
|
+
control: string;
|
|
21
|
+
disabledOption?: string;
|
|
22
|
+
dataType?: string;
|
|
23
|
+
options?: DialogDefinitionOption[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* single-select dropdown list
|
|
27
|
+
* @category SuiDialog
|
|
28
|
+
*/
|
|
29
|
+
export declare class SuiDropdownComponent extends SuiComponentBase {
|
|
30
|
+
options: DialogDefinitionOption[];
|
|
31
|
+
disabledOption: string;
|
|
32
|
+
dataType: string;
|
|
33
|
+
value: string;
|
|
34
|
+
optionIds: string[];
|
|
35
|
+
constructor(dialog: SuiDialogNotifier, parameter: SuiDropdownComponentParams);
|
|
36
|
+
checkDefault(s: any, b: any): void;
|
|
37
|
+
get html(): import("../../../common/htmlHelpers").DomBuilder;
|
|
38
|
+
updateControls(): void;
|
|
39
|
+
unselect(): void;
|
|
40
|
+
_getInputElement(): any;
|
|
41
|
+
getValue(): string | number;
|
|
42
|
+
getValueLabel(): string;
|
|
43
|
+
setValue(value: string | number): void;
|
|
44
|
+
bind(): void;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* constructor params for {@link SuiDropdownComposite}
|
|
48
|
+
* element, often a checkbox
|
|
49
|
+
* @param {id} - unique ID for the control DOM
|
|
50
|
+
* @param {classes} - additional classes for styling added to DOM
|
|
51
|
+
* @param {label} - default label for the component
|
|
52
|
+
* @param {smoName} - the variable in the dialog that the componenet maps to
|
|
53
|
+
* @param {control} - the constructor of the UI control
|
|
54
|
+
* @param {parentComponent} - for composite components, the top-level
|
|
55
|
+
* @category SuiDialog
|
|
56
|
+
* */
|
|
57
|
+
export interface SuiDropdownCompositeParams {
|
|
58
|
+
id: string;
|
|
59
|
+
classes: string;
|
|
60
|
+
type?: string;
|
|
61
|
+
increment?: number;
|
|
62
|
+
label: string;
|
|
63
|
+
smoName: string;
|
|
64
|
+
control: string;
|
|
65
|
+
disabledOption?: string;
|
|
66
|
+
dataType?: string;
|
|
67
|
+
options?: DialogDefinitionOption[];
|
|
68
|
+
parentControl: SuiComponentParent;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* A dropdown composite mixes a dropdown with some other
|
|
72
|
+
* @category SuiDialog
|
|
73
|
+
*/
|
|
74
|
+
export declare class SuiDropdownComposite extends SuiDropdownComponent {
|
|
75
|
+
parentControl: SuiComponentParent;
|
|
76
|
+
constructor(dialog: SuiDialogNotifier, parameters: SuiDropdownCompositeParams);
|
|
77
|
+
handleChanged(): Promise<void>;
|
|
78
|
+
}
|
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
import { SuiComponentBase, SuiDialogNotifier, SuiComponentParent, SuiBaseComponentParams } from '../components/baseComponent';
|
|
2
|
-
import { Pitch } from '../../../smo/data/common';
|
|
3
|
-
import { DomBuilder } from '../../../common/htmlHelpers';
|
|
4
|
-
import { SuiScoreViewOperations } from '../../../render/sui/scoreViewOperations';
|
|
5
|
-
import { SuiDropdownComposite } from './dropdown';
|
|
6
|
-
import { SuiRockerComposite } from './rocker';
|
|
7
|
-
import { SuiButtonComposite } from './button';
|
|
8
|
-
/**
|
|
9
|
-
* @category SuiDialog
|
|
10
|
-
*/
|
|
11
|
-
export interface SuiPitchComponentParams {
|
|
12
|
-
id: string;
|
|
13
|
-
classes: string;
|
|
14
|
-
label: string;
|
|
15
|
-
smoName: string;
|
|
16
|
-
control: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Allows users to pick a letter pitch, used in tab stave dialogs
|
|
20
|
-
* @category SuiDialog
|
|
21
|
-
*/
|
|
22
|
-
export declare class SuiPitchComponent extends SuiComponentBase {
|
|
23
|
-
view: SuiScoreViewOperations;
|
|
24
|
-
staticText: Record<string, string>;
|
|
25
|
-
letterCtrl: SuiDropdownComposite;
|
|
26
|
-
accidentalCtrl: SuiDropdownComposite;
|
|
27
|
-
octaveCtrl: SuiRockerComposite;
|
|
28
|
-
defaultValue: Pitch;
|
|
29
|
-
constructor(dialog: SuiDialogNotifier, parameter: SuiBaseComponentParams);
|
|
30
|
-
get html(): DomBuilder;
|
|
31
|
-
getInputElement(): any;
|
|
32
|
-
getValue(): Pitch;
|
|
33
|
-
setValue(val: Pitch): void;
|
|
34
|
-
changed(): void;
|
|
35
|
-
bind(): void;
|
|
36
|
-
}
|
|
37
|
-
export interface SuiPitchCompositeParams extends SuiPitchComponentParams {
|
|
38
|
-
parentControl: SuiComponentParent;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* @category SuiDialog
|
|
42
|
-
*/
|
|
43
|
-
export declare class SuiPitchComposite extends SuiPitchComponent {
|
|
44
|
-
parentControl: SuiComponentParent;
|
|
45
|
-
constructor(dialog: SuiDialogNotifier, parameters: SuiPitchCompositeParams);
|
|
46
|
-
handleChanged(): Promise<void>;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* @category SuiDialog
|
|
50
|
-
*/
|
|
51
|
-
export interface SuiPitchArrayItem {
|
|
52
|
-
buttonCtrl: SuiButtonComposite;
|
|
53
|
-
pitchCtrl: SuiPitchComposite;
|
|
54
|
-
pitch: Pitch;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* @category SuiDialog
|
|
58
|
-
*/
|
|
59
|
-
export interface SuiPitchArrayParams {
|
|
60
|
-
id: string;
|
|
61
|
-
classes: string;
|
|
62
|
-
label: string;
|
|
63
|
-
smoName: string;
|
|
64
|
-
control: string;
|
|
65
|
-
pitches?: Pitch[];
|
|
66
|
-
}
|
|
67
|
-
export type getDefaultPitchesFcn = () => Pitch[];
|
|
68
|
-
export declare const getTabNotePitchesFcn: getDefaultPitchesFcn;
|
|
69
|
-
/**
|
|
70
|
-
* @category SuiDialog
|
|
71
|
-
*/
|
|
72
|
-
export declare class SuiPitchArrayComponent extends SuiComponentParent {
|
|
73
|
-
getButtonControlName(index: number): string;
|
|
74
|
-
getPitchControlName(index: number): string;
|
|
75
|
-
resetButton: SuiButtonComposite;
|
|
76
|
-
pitchControls: SuiPitchArrayItem[];
|
|
77
|
-
pitches: Pitch[];
|
|
78
|
-
createdShell: boolean;
|
|
79
|
-
defaultPitchFinder: getDefaultPitchesFcn;
|
|
80
|
-
constructor(dialog: SuiDialogNotifier, parameters: SuiBaseComponentParams, def: getDefaultPitchesFcn);
|
|
81
|
-
setPitchControls(): void;
|
|
82
|
-
bind(): void;
|
|
83
|
-
get html(): DomBuilder;
|
|
84
|
-
getInputElement(): any;
|
|
85
|
-
setValue(pitches: Pitch[]): void;
|
|
86
|
-
getValue(): Pitch[];
|
|
87
|
-
updateControls(): void;
|
|
88
|
-
changed(): void;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* @category SuiDialog
|
|
92
|
-
*/
|
|
93
|
-
export declare class SuiPitchArrayComponentTab extends SuiPitchArrayComponent {
|
|
94
|
-
constructor(dialog: SuiDialogNotifier, parameters: SuiBaseComponentParams);
|
|
95
|
-
}
|
|
1
|
+
import { SuiComponentBase, SuiDialogNotifier, SuiComponentParent, SuiBaseComponentParams } from '../components/baseComponent';
|
|
2
|
+
import { Pitch } from '../../../smo/data/common';
|
|
3
|
+
import { DomBuilder } from '../../../common/htmlHelpers';
|
|
4
|
+
import { SuiScoreViewOperations } from '../../../render/sui/scoreViewOperations';
|
|
5
|
+
import { SuiDropdownComposite } from './dropdown';
|
|
6
|
+
import { SuiRockerComposite } from './rocker';
|
|
7
|
+
import { SuiButtonComposite } from './button';
|
|
8
|
+
/**
|
|
9
|
+
* @category SuiDialog
|
|
10
|
+
*/
|
|
11
|
+
export interface SuiPitchComponentParams {
|
|
12
|
+
id: string;
|
|
13
|
+
classes: string;
|
|
14
|
+
label: string;
|
|
15
|
+
smoName: string;
|
|
16
|
+
control: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Allows users to pick a letter pitch, used in tab stave dialogs
|
|
20
|
+
* @category SuiDialog
|
|
21
|
+
*/
|
|
22
|
+
export declare class SuiPitchComponent extends SuiComponentBase {
|
|
23
|
+
view: SuiScoreViewOperations;
|
|
24
|
+
staticText: Record<string, string>;
|
|
25
|
+
letterCtrl: SuiDropdownComposite;
|
|
26
|
+
accidentalCtrl: SuiDropdownComposite;
|
|
27
|
+
octaveCtrl: SuiRockerComposite;
|
|
28
|
+
defaultValue: Pitch;
|
|
29
|
+
constructor(dialog: SuiDialogNotifier, parameter: SuiBaseComponentParams);
|
|
30
|
+
get html(): DomBuilder;
|
|
31
|
+
getInputElement(): any;
|
|
32
|
+
getValue(): Pitch;
|
|
33
|
+
setValue(val: Pitch): void;
|
|
34
|
+
changed(): void;
|
|
35
|
+
bind(): void;
|
|
36
|
+
}
|
|
37
|
+
export interface SuiPitchCompositeParams extends SuiPitchComponentParams {
|
|
38
|
+
parentControl: SuiComponentParent;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @category SuiDialog
|
|
42
|
+
*/
|
|
43
|
+
export declare class SuiPitchComposite extends SuiPitchComponent {
|
|
44
|
+
parentControl: SuiComponentParent;
|
|
45
|
+
constructor(dialog: SuiDialogNotifier, parameters: SuiPitchCompositeParams);
|
|
46
|
+
handleChanged(): Promise<void>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @category SuiDialog
|
|
50
|
+
*/
|
|
51
|
+
export interface SuiPitchArrayItem {
|
|
52
|
+
buttonCtrl: SuiButtonComposite;
|
|
53
|
+
pitchCtrl: SuiPitchComposite;
|
|
54
|
+
pitch: Pitch;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @category SuiDialog
|
|
58
|
+
*/
|
|
59
|
+
export interface SuiPitchArrayParams {
|
|
60
|
+
id: string;
|
|
61
|
+
classes: string;
|
|
62
|
+
label: string;
|
|
63
|
+
smoName: string;
|
|
64
|
+
control: string;
|
|
65
|
+
pitches?: Pitch[];
|
|
66
|
+
}
|
|
67
|
+
export type getDefaultPitchesFcn = () => Pitch[];
|
|
68
|
+
export declare const getTabNotePitchesFcn: getDefaultPitchesFcn;
|
|
69
|
+
/**
|
|
70
|
+
* @category SuiDialog
|
|
71
|
+
*/
|
|
72
|
+
export declare class SuiPitchArrayComponent extends SuiComponentParent {
|
|
73
|
+
getButtonControlName(index: number): string;
|
|
74
|
+
getPitchControlName(index: number): string;
|
|
75
|
+
resetButton: SuiButtonComposite;
|
|
76
|
+
pitchControls: SuiPitchArrayItem[];
|
|
77
|
+
pitches: Pitch[];
|
|
78
|
+
createdShell: boolean;
|
|
79
|
+
defaultPitchFinder: getDefaultPitchesFcn;
|
|
80
|
+
constructor(dialog: SuiDialogNotifier, parameters: SuiBaseComponentParams, def: getDefaultPitchesFcn);
|
|
81
|
+
setPitchControls(): void;
|
|
82
|
+
bind(): void;
|
|
83
|
+
get html(): DomBuilder;
|
|
84
|
+
getInputElement(): any;
|
|
85
|
+
setValue(pitches: Pitch[]): void;
|
|
86
|
+
getValue(): Pitch[];
|
|
87
|
+
updateControls(): void;
|
|
88
|
+
changed(): void;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @category SuiDialog
|
|
92
|
+
*/
|
|
93
|
+
export declare class SuiPitchArrayComponentTab extends SuiPitchArrayComponent {
|
|
94
|
+
constructor(dialog: SuiDialogNotifier, parameters: SuiBaseComponentParams);
|
|
95
|
+
}
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { SuiComponentBase, SuiDialogNotifier, SuiComponentParent } from './baseComponent';
|
|
2
|
-
/**
|
|
3
|
-
* Basic dialog component info.
|
|
4
|
-
* @category SuiDialog
|
|
5
|
-
*/
|
|
6
|
-
export interface SuiRockerComponentParams {
|
|
7
|
-
id: string;
|
|
8
|
-
classes: string;
|
|
9
|
-
dataType?: string;
|
|
10
|
-
increment?: number;
|
|
11
|
-
label: string;
|
|
12
|
-
smoName: string;
|
|
13
|
-
control: string;
|
|
14
|
-
min?: number;
|
|
15
|
-
max?: number;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* A numeric input box with +- buttons. Adjustable type and scale
|
|
19
|
-
* @category SuiDialog
|
|
20
|
-
* */
|
|
21
|
-
export declare class SuiRockerComponent extends SuiComponentBase {
|
|
22
|
-
static get dataTypes(): string[];
|
|
23
|
-
static get increments(): Record<string, number>;
|
|
24
|
-
static get parsers(): Record<string, string>;
|
|
25
|
-
initialValue: number;
|
|
26
|
-
dataType: string;
|
|
27
|
-
increment: number;
|
|
28
|
-
parser: string;
|
|
29
|
-
min: number | undefined;
|
|
30
|
-
max: number | undefined;
|
|
31
|
-
constructor(dialog: SuiDialogNotifier, params: SuiRockerComponentParams);
|
|
32
|
-
get html(): import("../../../common/htmlHelpers").DomBuilder;
|
|
33
|
-
get parameterId(): string;
|
|
34
|
-
handleChange(): void;
|
|
35
|
-
bind(): void;
|
|
36
|
-
_getInputElement(): any;
|
|
37
|
-
_getIntValue(): number;
|
|
38
|
-
_getFloatValue(): number;
|
|
39
|
-
_getPercentValue(): number;
|
|
40
|
-
_setIntValue(val: string | number): void;
|
|
41
|
-
setValue(value: number): void;
|
|
42
|
-
getValue(): any;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Create rocker composite
|
|
46
|
-
* @category SuiDialog
|
|
47
|
-
*/
|
|
48
|
-
export interface SuiRockerCompositeParams {
|
|
49
|
-
id: string;
|
|
50
|
-
classes: string;
|
|
51
|
-
dataType?: string;
|
|
52
|
-
increment?: number;
|
|
53
|
-
defaultValue: number;
|
|
54
|
-
label: string;
|
|
55
|
-
smoName: string;
|
|
56
|
-
control: string;
|
|
57
|
-
parentControl: SuiComponentParent;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* @category SuiDialog
|
|
61
|
-
*/
|
|
62
|
-
export declare class SuiRockerComposite extends SuiRockerComponent {
|
|
63
|
-
parentControl: SuiComponentParent;
|
|
64
|
-
constructor(dialog: SuiDialogNotifier, parameters: SuiRockerCompositeParams);
|
|
65
|
-
handleChanged(): Promise<void>;
|
|
66
|
-
}
|
|
1
|
+
import { SuiComponentBase, SuiDialogNotifier, SuiComponentParent } from './baseComponent';
|
|
2
|
+
/**
|
|
3
|
+
* Basic dialog component info.
|
|
4
|
+
* @category SuiDialog
|
|
5
|
+
*/
|
|
6
|
+
export interface SuiRockerComponentParams {
|
|
7
|
+
id: string;
|
|
8
|
+
classes: string;
|
|
9
|
+
dataType?: string;
|
|
10
|
+
increment?: number;
|
|
11
|
+
label: string;
|
|
12
|
+
smoName: string;
|
|
13
|
+
control: string;
|
|
14
|
+
min?: number;
|
|
15
|
+
max?: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A numeric input box with +- buttons. Adjustable type and scale
|
|
19
|
+
* @category SuiDialog
|
|
20
|
+
* */
|
|
21
|
+
export declare class SuiRockerComponent extends SuiComponentBase {
|
|
22
|
+
static get dataTypes(): string[];
|
|
23
|
+
static get increments(): Record<string, number>;
|
|
24
|
+
static get parsers(): Record<string, string>;
|
|
25
|
+
initialValue: number;
|
|
26
|
+
dataType: string;
|
|
27
|
+
increment: number;
|
|
28
|
+
parser: string;
|
|
29
|
+
min: number | undefined;
|
|
30
|
+
max: number | undefined;
|
|
31
|
+
constructor(dialog: SuiDialogNotifier, params: SuiRockerComponentParams);
|
|
32
|
+
get html(): import("../../../common/htmlHelpers").DomBuilder;
|
|
33
|
+
get parameterId(): string;
|
|
34
|
+
handleChange(): void;
|
|
35
|
+
bind(): void;
|
|
36
|
+
_getInputElement(): any;
|
|
37
|
+
_getIntValue(): number;
|
|
38
|
+
_getFloatValue(): number;
|
|
39
|
+
_getPercentValue(): number;
|
|
40
|
+
_setIntValue(val: string | number): void;
|
|
41
|
+
setValue(value: number): void;
|
|
42
|
+
getValue(): any;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Create rocker composite
|
|
46
|
+
* @category SuiDialog
|
|
47
|
+
*/
|
|
48
|
+
export interface SuiRockerCompositeParams {
|
|
49
|
+
id: string;
|
|
50
|
+
classes: string;
|
|
51
|
+
dataType?: string;
|
|
52
|
+
increment?: number;
|
|
53
|
+
defaultValue: number;
|
|
54
|
+
label: string;
|
|
55
|
+
smoName: string;
|
|
56
|
+
control: string;
|
|
57
|
+
parentControl: SuiComponentParent;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @category SuiDialog
|
|
61
|
+
*/
|
|
62
|
+
export declare class SuiRockerComposite extends SuiRockerComponent {
|
|
63
|
+
parentControl: SuiComponentParent;
|
|
64
|
+
constructor(dialog: SuiDialogNotifier, parameters: SuiRockerCompositeParams);
|
|
65
|
+
handleChanged(): Promise<void>;
|
|
66
|
+
}
|