smoosic 1.0.24 → 1.0.26
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 +1 -1
- package/package.json +1 -1
- package/release/smoosic.js +1 -1
- package/release/styles/ribbon.css +5 -10
- package/src/application/exports.ts +1 -0
- package/src/styles/ribbon.css +5 -10
- package/types/src/application/application.d.ts +102 -102
- package/types/src/application/common.d.ts +74 -74
- package/types/src/application/configuration.d.ts +74 -74
- package/types/src/application/dom.d.ts +8 -8
- package/types/src/application/dynamicInit.d.ts +1 -1
- package/types/src/application/eventHandler.d.ts +78 -78
- package/types/src/application/exports.d.ts +494 -493
- package/types/src/application/generateVexTests.d.ts +10 -10
- package/types/src/application/keyCommands.d.ts +90 -90
- package/types/src/common/bootstrap.bundle.d.ts +1138 -1138
- package/types/src/common/htmlHelpers.d.ts +105 -105
- package/types/src/common/jszip.d.ts +2 -2
- package/types/src/common/midi-parser.d.ts +38 -38
- package/types/src/common/promiseHelpers.d.ts +30 -30
- package/types/src/common/serializationHelpers.d.ts +29 -29
- package/types/src/common/textformatter.d.ts +140 -140
- package/types/src/common/vex.d.ts +222 -222
- package/types/src/render/audio/musicCursor.d.ts +25 -25
- package/types/src/render/audio/oscillator.d.ts +98 -98
- package/types/src/render/audio/player.d.ts +141 -141
- package/types/src/render/audio/samples.d.ts +56 -56
- package/types/src/render/sui/configuration.d.ts +12 -12
- package/types/src/render/sui/formatter.d.ts +151 -151
- package/types/src/render/sui/layoutDebug.d.ts +43 -43
- package/types/src/render/sui/mapper.d.ts +116 -116
- package/types/src/render/sui/piano.d.ts +46 -46
- package/types/src/render/sui/renderState.d.ts +88 -88
- package/types/src/render/sui/scoreRender.d.ts +93 -93
- package/types/src/render/sui/scoreView.d.ts +267 -267
- package/types/src/render/sui/scoreViewOperations.d.ts +594 -594
- package/types/src/render/sui/scroller.d.ts +34 -34
- package/types/src/render/sui/svgHelpers.d.ts +85 -85
- package/types/src/render/sui/svgPageMap.d.ts +318 -318
- package/types/src/render/sui/textEdit.d.ts +310 -310
- package/types/src/render/sui/textRender.d.ts +189 -189
- package/types/src/render/sui/tracker.d.ts +90 -90
- package/types/src/render/vex/glyphDimensions.d.ts +23 -23
- package/types/src/render/vex/smoAdapter.d.ts +46 -46
- package/types/src/render/vex/toVex.d.ts +13 -13
- package/types/src/render/vex/vxMeasure.d.ts +95 -95
- package/types/src/render/vex/vxNote.d.ts +55 -55
- package/types/src/render/vex/vxSystem.d.ts +64 -64
- package/types/src/smo/data/common.d.ts +220 -220
- package/types/src/smo/data/measure.d.ts +510 -510
- package/types/src/smo/data/measureModifiers.d.ts +506 -506
- package/types/src/smo/data/music.d.ts +438 -438
- package/types/src/smo/data/note.d.ts +485 -485
- package/types/src/smo/data/noteModifiers.d.ts +590 -590
- package/types/src/smo/data/partInfo.d.ts +162 -162
- package/types/src/smo/data/score.d.ts +395 -395
- package/types/src/smo/data/scoreModifiers.d.ts +433 -433
- package/types/src/smo/data/scoreText.d.ts +277 -277
- package/types/src/smo/data/staffModifiers.d.ts +767 -767
- package/types/src/smo/data/systemStaff.d.ts +238 -238
- package/types/src/smo/data/tuplet.d.ts +146 -146
- package/types/src/smo/midi/midiToSmo.d.ts +198 -198
- package/types/src/smo/midi/smoToMidi.d.ts +23 -23
- package/types/src/smo/mxml/smoToXml.d.ts +165 -165
- package/types/src/smo/mxml/xmlHelpers.d.ts +140 -140
- package/types/src/smo/mxml/xmlState.d.ts +257 -257
- package/types/src/smo/mxml/xmlToSmo.d.ts +92 -92
- package/types/src/smo/xform/beamers.d.ts +46 -46
- package/types/src/smo/xform/copypaste.d.ts +99 -99
- package/types/src/smo/xform/operations.d.ts +127 -127
- package/types/src/smo/xform/roadmap.d.ts +70 -70
- package/types/src/smo/xform/selections.d.ts +153 -153
- package/types/src/smo/xform/tickDuration.d.ts +155 -155
- package/types/src/smo/xform/tickMap.d.ts +34 -34
- package/types/src/smo/xform/undo.d.ts +142 -142
- package/types/src/smo/xform/updateAudio.d.ts +9 -9
- package/types/src/styles/font_metrics/Commissioner-Medium-Metrics.d.ts +871 -871
- package/types/src/styles/font_metrics/ConcertOne-Regular.d.ts +871 -871
- package/types/src/styles/font_metrics/Merriweather-Regular.d.ts +871 -871
- package/types/src/styles/font_metrics/arial_metrics.d.ts +870 -870
- package/types/src/styles/font_metrics/ssp-sans-metrics.d.ts +871 -871
- package/types/src/styles/font_metrics/ssp-serif-metrics.d.ts +871 -871
- package/types/src/styles/font_metrics/times_metrics.d.ts +870 -870
- package/types/src/ui/buttons/button.d.ts +95 -95
- package/types/src/ui/buttons/collapsable.d.ts +42 -42
- package/types/src/ui/buttons/display.d.ts +23 -23
- package/types/src/ui/buttons/ribbon.d.ts +76 -76
- package/types/src/ui/common.d.ts +45 -45
- package/types/src/ui/composable/draggable.d.ts +12 -12
- package/types/src/ui/configuration.d.ts +31 -31
- package/types/src/ui/dialogs/adapter.d.ts +107 -107
- package/types/src/ui/dialogs/addMeasure.d.ts +20 -20
- package/types/src/ui/dialogs/arpeggio.d.ts +2 -2
- package/types/src/ui/dialogs/articulation.d.ts +2 -2
- package/types/src/ui/dialogs/audioSettings.d.ts +32 -32
- package/types/src/ui/dialogs/chordChange.d.ts +35 -35
- package/types/src/ui/dialogs/clefChange.d.ts +2 -2
- 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/buttonArray.d.ts +101 -101
- package/types/src/ui/dialogs/components/checkdrop.d.ts +27 -27
- package/types/src/ui/dialogs/components/dragText.d.ts +27 -27
- package/types/src/ui/dialogs/components/dropdown.d.ts +78 -78
- package/types/src/ui/dialogs/components/fileDownload.d.ts +28 -28
- package/types/src/ui/dialogs/components/fontComponent.d.ts +32 -32
- package/types/src/ui/dialogs/components/noteText.d.ts +98 -98
- 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/staffComponents.d.ts +77 -77
- package/types/src/ui/dialogs/components/textCheck.d.ts +38 -38
- 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/tie.d.ts +41 -41
- package/types/src/ui/dialogs/components/toggle.d.ts +53 -53
- package/types/src/ui/dialogs/components/tree.d.ts +46 -46
- package/types/src/ui/dialogs/customTuplets.d.ts +25 -25
- package/types/src/ui/dialogs/dialog.d.ts +201 -201
- package/types/src/ui/dialogs/durations.d.ts +2 -2
- package/types/src/ui/dialogs/dynamics.d.ts +37 -37
- package/types/src/ui/dialogs/endings.d.ts +61 -61
- package/types/src/ui/dialogs/factory.d.ts +15 -15
- package/types/src/ui/dialogs/fileDialogs.d.ts +4 -4
- package/types/src/ui/dialogs/fonts.d.ts +2 -2
- package/types/src/ui/dialogs/globalLayout.d.ts +2 -2
- package/types/src/ui/dialogs/gracenote.d.ts +2 -2
- package/types/src/ui/dialogs/hairpin.d.ts +35 -35
- package/types/src/ui/dialogs/instrument.d.ts +3 -3
- package/types/src/ui/dialogs/keySignature.d.ts +33 -33
- package/types/src/ui/dialogs/library.d.ts +70 -70
- package/types/src/ui/dialogs/lyric.d.ts +39 -39
- package/types/src/ui/dialogs/measureFormat.d.ts +52 -52
- package/types/src/ui/dialogs/microtones.d.ts +2 -2
- package/types/src/ui/dialogs/noteHead.d.ts +2 -2
- package/types/src/ui/dialogs/ornament.d.ts +2 -2
- package/types/src/ui/dialogs/pageLayout.d.ts +2 -2
- package/types/src/ui/dialogs/partInfo.d.ts +2 -2
- package/types/src/ui/dialogs/pedalMarking.d.ts +35 -35
- package/types/src/ui/dialogs/pitch.d.ts +2 -2
- package/types/src/ui/dialogs/preferences.d.ts +2 -2
- package/types/src/ui/dialogs/scoreId.d.ts +2 -2
- package/types/src/ui/dialogs/scoreView.d.ts +2 -2
- package/types/src/ui/dialogs/slur.d.ts +57 -57
- package/types/src/ui/dialogs/staffGroup.d.ts +2 -2
- package/types/src/ui/dialogs/tabNote.d.ts +32 -32
- package/types/src/ui/dialogs/tabStave.d.ts +43 -43
- package/types/src/ui/dialogs/tempo.d.ts +50 -50
- package/types/src/ui/dialogs/textBlock.d.ts +61 -61
- package/types/src/ui/dialogs/textBracket.d.ts +35 -35
- package/types/src/ui/dialogs/tie.d.ts +41 -41
- package/types/src/ui/dialogs/timeSignature.d.ts +34 -34
- package/types/src/ui/dialogs/transposeScore.d.ts +2 -2
- package/types/src/ui/dialogs/volta.d.ts +40 -40
- package/types/src/ui/eventSource.d.ts +63 -63
- package/types/src/ui/exceptions.d.ts +12 -12
- package/types/src/ui/fileio/fileInput.d.ts +12 -12
- package/types/src/ui/fileio/library.d.ts +40 -40
- package/types/src/ui/fileio/xhrLoader.d.ts +18 -18
- package/types/src/ui/help.d.ts +22 -22
- package/types/src/ui/i18n/language.d.ts +37 -37
- package/types/src/ui/i18n/language_ar.d.ts +5 -5
- package/types/src/ui/i18n/language_de.d.ts +1 -1
- package/types/src/ui/i18n/language_en.d.ts +18 -18
- package/types/src/ui/i18n/translationEditor.d.ts +14 -14
- package/types/src/ui/keyBindings/default/editorKeys.d.ts +7 -7
- package/types/src/ui/keyBindings/default/trackerKeys.d.ts +7 -7
- package/types/src/ui/menus/beams.d.ts +13 -13
- package/types/src/ui/menus/edit.d.ts +8 -8
- package/types/src/ui/menus/file.d.ts +26 -26
- package/types/src/ui/menus/help.d.ts +8 -8
- package/types/src/ui/menus/keySignature.d.ts +13 -13
- package/types/src/ui/menus/language.d.ts +12 -12
- package/types/src/ui/menus/manager.d.ts +57 -57
- package/types/src/ui/menus/measure.d.ts +8 -8
- package/types/src/ui/menus/menu.d.ts +136 -136
- package/types/src/ui/menus/note.d.ts +8 -8
- package/types/src/ui/menus/partSelection.d.ts +19 -19
- package/types/src/ui/menus/parts.d.ts +50 -50
- package/types/src/ui/menus/score.d.ts +20 -20
- package/types/src/ui/menus/staffModifier.d.ts +21 -21
- package/types/src/ui/menus/text.d.ts +8 -8
- package/types/src/ui/menus/timeSignature.d.ts +12 -12
- package/types/src/ui/menus/tuplets.d.ts +13 -13
- package/types/src/ui/menus/voices.d.ts +8 -8
- package/types/src/ui/modalDialogs.d.ts +1 -1
- package/types/src/ui/navigation.d.ts +15 -15
- package/types/src/ui/qwerty.d.ts +41 -41
- package/types/src/ui/ribbonLayout/default/defaultRibbon.d.ts +15 -15
- package/types/src/ui/ribbonLayout/default/tabletRibbon.d.ts +22 -22
- package/types/typedoc.d.ts +158 -158
|
@@ -1,158 +1,158 @@
|
|
|
1
|
-
import { SmoModifier } from '../../../smo/data/score';
|
|
2
|
-
import { SuiScoreViewOperations } from '../../../render/sui/scoreViewOperations';
|
|
3
|
-
import { BrowserEventSource } from '../../eventSource';
|
|
4
|
-
/**
|
|
5
|
-
* Dialogs controls options, like dropdowns
|
|
6
|
-
* @category SuiDialog
|
|
7
|
-
*/
|
|
8
|
-
export interface DialogDefinitionOption {
|
|
9
|
-
css?: string;
|
|
10
|
-
label: string;
|
|
11
|
-
value: number | string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* DialogDefinition is a JSON-like structure that each dialog has
|
|
15
|
-
* to define the components. Specific components can define
|
|
16
|
-
* additional params by extending this, these are the basics.
|
|
17
|
-
* @param {smoName} - the name the dialog uses to reference it
|
|
18
|
-
* @param {control} - constructor of the control
|
|
19
|
-
* @param {label} - label of the element, can be translated
|
|
20
|
-
* @param {increment} - used by components that have increment arrows
|
|
21
|
-
* @param {defaultValue} - thinking of removing this
|
|
22
|
-
* @param {dataType} - used to narrow the type by some components
|
|
23
|
-
* @param {classes} - can be used in rendering
|
|
24
|
-
* @param {min} - used by components that have number
|
|
25
|
-
* @param {max} - used by components that have number
|
|
26
|
-
* @category SuiDialog
|
|
27
|
-
*/
|
|
28
|
-
export interface DialogDefinitionElement {
|
|
29
|
-
smoName: string;
|
|
30
|
-
control: string;
|
|
31
|
-
label: string;
|
|
32
|
-
startRow?: boolean;
|
|
33
|
-
options?: DialogDefinitionOption[];
|
|
34
|
-
increment?: number;
|
|
35
|
-
defaultValue?: number | string;
|
|
36
|
-
dataType?: string;
|
|
37
|
-
classes?: string;
|
|
38
|
-
min?: number;
|
|
39
|
-
max?: number;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* for base component constructors
|
|
43
|
-
* @param {id} - unique ID for the control DOM
|
|
44
|
-
* @param {classes} - additional classes for styling added to DOM
|
|
45
|
-
* @param {label} - default label for the component
|
|
46
|
-
* @param {smoName} - the variable in the dialog that the componenet maps to
|
|
47
|
-
* @param {control} - the constructor of the UI control
|
|
48
|
-
* @param {parentComponent} - for composite components, the top-level
|
|
49
|
-
* @category SuiDialog
|
|
50
|
-
*/
|
|
51
|
-
export interface SuiBaseComponentParams {
|
|
52
|
-
id: string;
|
|
53
|
-
classes: string;
|
|
54
|
-
label: string;
|
|
55
|
-
smoName: string;
|
|
56
|
-
control: string;
|
|
57
|
-
noProperty?: boolean;
|
|
58
|
-
parentComponent?: SuiComponentParent;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* components know about their parent dialog via the
|
|
62
|
-
* DialogNotifier interface. It allows a component to
|
|
63
|
-
* notify parent of changing contents.
|
|
64
|
-
* @category SuiDialog
|
|
65
|
-
*/
|
|
66
|
-
export declare abstract class SuiDialogNotifier {
|
|
67
|
-
/**
|
|
68
|
-
* Called by the component when the state is changed. Dialog
|
|
69
|
-
* will then query the component (getValue()) and set the
|
|
70
|
-
* correct score value.
|
|
71
|
-
*/
|
|
72
|
-
abstract changed(): void;
|
|
73
|
-
/**
|
|
74
|
-
* returns the DOM id of the dialog.
|
|
75
|
-
*/
|
|
76
|
-
abstract getId(): string;
|
|
77
|
-
/**
|
|
78
|
-
* returns the top DOM node for the dialog
|
|
79
|
-
*/
|
|
80
|
-
abstract get dgDom(): any;
|
|
81
|
-
/**
|
|
82
|
-
* gets the view from the parent
|
|
83
|
-
*/
|
|
84
|
-
abstract getView(): SuiScoreViewOperations;
|
|
85
|
-
/**
|
|
86
|
-
* gets the 'modifier' from parent dialog, used by
|
|
87
|
-
* text editors. Most components won't need this.
|
|
88
|
-
*/
|
|
89
|
-
abstract getModifier(): SmoModifier | null;
|
|
90
|
-
/**
|
|
91
|
-
* Gets the static text <string, string> for the current language.
|
|
92
|
-
* this is used by components that have different text labels for different states.
|
|
93
|
-
*/
|
|
94
|
-
abstract getStaticText(): Record<string, string>;
|
|
95
|
-
/**
|
|
96
|
-
* Used by text editing components that are also event sinks
|
|
97
|
-
*/
|
|
98
|
-
abstract getEventSource(): BrowserEventSource;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* base class for Dialog components. Notifies parent
|
|
102
|
-
* dialog of state change via `change()`
|
|
103
|
-
* @category SuiDialog
|
|
104
|
-
*/
|
|
105
|
-
export declare abstract class SuiComponentBase {
|
|
106
|
-
changeFlag: boolean;
|
|
107
|
-
css: string;
|
|
108
|
-
dialog: SuiDialogNotifier;
|
|
109
|
-
id: string;
|
|
110
|
-
noProperty: boolean;
|
|
111
|
-
label: string;
|
|
112
|
-
control: string;
|
|
113
|
-
smoName: string;
|
|
114
|
-
constructor(dialog: SuiDialogNotifier, parameters: SuiBaseComponentParams);
|
|
115
|
-
/**
|
|
116
|
-
* Called by the dialog after rendering, so the derived class can
|
|
117
|
-
* bind the html controls
|
|
118
|
-
*/
|
|
119
|
-
abstract bind(): void;
|
|
120
|
-
/**
|
|
121
|
-
* Return the html that lives in side the component DOM. Implemented by the
|
|
122
|
-
* base class.
|
|
123
|
-
*/
|
|
124
|
-
abstract get html(): any;
|
|
125
|
-
/**
|
|
126
|
-
* Called by the derived class when the value changes. The change flag is set to true, so the dialog will
|
|
127
|
-
* know which component changed.
|
|
128
|
-
*/
|
|
129
|
-
handleChanged(): void;
|
|
130
|
-
/**
|
|
131
|
-
* combine component classes with string, used for composites
|
|
132
|
-
* @param classes string ot append
|
|
133
|
-
* @returns combined strings
|
|
134
|
-
*/
|
|
135
|
-
makeClasses(classes: string): string;
|
|
136
|
-
get parameterId(): string;
|
|
137
|
-
show(): void;
|
|
138
|
-
hide(): void;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Parent components are really containers for other components
|
|
142
|
-
* For instance, FontComponent has size, family, weight, etc.
|
|
143
|
-
*
|
|
144
|
-
* @category SuiDialog
|
|
145
|
-
*/
|
|
146
|
-
export declare abstract class SuiComponentParent extends SuiComponentBase {
|
|
147
|
-
/**
|
|
148
|
-
* For parent component, their changed method is called by child, and then the
|
|
149
|
-
* parent calls the dialog changed()
|
|
150
|
-
*/
|
|
151
|
-
abstract changed(): void;
|
|
152
|
-
}
|
|
153
|
-
export declare abstract class SuiCompositeBase extends SuiComponentBase {
|
|
154
|
-
parentControl: SuiComponentParent;
|
|
155
|
-
constructor(dialog: SuiDialogNotifier, params: SuiBaseComponentParams);
|
|
156
|
-
}
|
|
157
|
-
export type dynamicComponentCtor = (arg1: SuiDialogNotifier, params: any) => any;
|
|
158
|
-
export declare const SmoDynamicComponentCtor: Record<string, dynamicComponentCtor>;
|
|
1
|
+
import { SmoModifier } from '../../../smo/data/score';
|
|
2
|
+
import { SuiScoreViewOperations } from '../../../render/sui/scoreViewOperations';
|
|
3
|
+
import { BrowserEventSource } from '../../eventSource';
|
|
4
|
+
/**
|
|
5
|
+
* Dialogs controls options, like dropdowns
|
|
6
|
+
* @category SuiDialog
|
|
7
|
+
*/
|
|
8
|
+
export interface DialogDefinitionOption {
|
|
9
|
+
css?: string;
|
|
10
|
+
label: string;
|
|
11
|
+
value: number | string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* DialogDefinition is a JSON-like structure that each dialog has
|
|
15
|
+
* to define the components. Specific components can define
|
|
16
|
+
* additional params by extending this, these are the basics.
|
|
17
|
+
* @param {smoName} - the name the dialog uses to reference it
|
|
18
|
+
* @param {control} - constructor of the control
|
|
19
|
+
* @param {label} - label of the element, can be translated
|
|
20
|
+
* @param {increment} - used by components that have increment arrows
|
|
21
|
+
* @param {defaultValue} - thinking of removing this
|
|
22
|
+
* @param {dataType} - used to narrow the type by some components
|
|
23
|
+
* @param {classes} - can be used in rendering
|
|
24
|
+
* @param {min} - used by components that have number
|
|
25
|
+
* @param {max} - used by components that have number
|
|
26
|
+
* @category SuiDialog
|
|
27
|
+
*/
|
|
28
|
+
export interface DialogDefinitionElement {
|
|
29
|
+
smoName: string;
|
|
30
|
+
control: string;
|
|
31
|
+
label: string;
|
|
32
|
+
startRow?: boolean;
|
|
33
|
+
options?: DialogDefinitionOption[];
|
|
34
|
+
increment?: number;
|
|
35
|
+
defaultValue?: number | string;
|
|
36
|
+
dataType?: string;
|
|
37
|
+
classes?: string;
|
|
38
|
+
min?: number;
|
|
39
|
+
max?: number;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* for base component constructors
|
|
43
|
+
* @param {id} - unique ID for the control DOM
|
|
44
|
+
* @param {classes} - additional classes for styling added to DOM
|
|
45
|
+
* @param {label} - default label for the component
|
|
46
|
+
* @param {smoName} - the variable in the dialog that the componenet maps to
|
|
47
|
+
* @param {control} - the constructor of the UI control
|
|
48
|
+
* @param {parentComponent} - for composite components, the top-level
|
|
49
|
+
* @category SuiDialog
|
|
50
|
+
*/
|
|
51
|
+
export interface SuiBaseComponentParams {
|
|
52
|
+
id: string;
|
|
53
|
+
classes: string;
|
|
54
|
+
label: string;
|
|
55
|
+
smoName: string;
|
|
56
|
+
control: string;
|
|
57
|
+
noProperty?: boolean;
|
|
58
|
+
parentComponent?: SuiComponentParent;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* components know about their parent dialog via the
|
|
62
|
+
* DialogNotifier interface. It allows a component to
|
|
63
|
+
* notify parent of changing contents.
|
|
64
|
+
* @category SuiDialog
|
|
65
|
+
*/
|
|
66
|
+
export declare abstract class SuiDialogNotifier {
|
|
67
|
+
/**
|
|
68
|
+
* Called by the component when the state is changed. Dialog
|
|
69
|
+
* will then query the component (getValue()) and set the
|
|
70
|
+
* correct score value.
|
|
71
|
+
*/
|
|
72
|
+
abstract changed(): void;
|
|
73
|
+
/**
|
|
74
|
+
* returns the DOM id of the dialog.
|
|
75
|
+
*/
|
|
76
|
+
abstract getId(): string;
|
|
77
|
+
/**
|
|
78
|
+
* returns the top DOM node for the dialog
|
|
79
|
+
*/
|
|
80
|
+
abstract get dgDom(): any;
|
|
81
|
+
/**
|
|
82
|
+
* gets the view from the parent
|
|
83
|
+
*/
|
|
84
|
+
abstract getView(): SuiScoreViewOperations;
|
|
85
|
+
/**
|
|
86
|
+
* gets the 'modifier' from parent dialog, used by
|
|
87
|
+
* text editors. Most components won't need this.
|
|
88
|
+
*/
|
|
89
|
+
abstract getModifier(): SmoModifier | null;
|
|
90
|
+
/**
|
|
91
|
+
* Gets the static text <string, string> for the current language.
|
|
92
|
+
* this is used by components that have different text labels for different states.
|
|
93
|
+
*/
|
|
94
|
+
abstract getStaticText(): Record<string, string>;
|
|
95
|
+
/**
|
|
96
|
+
* Used by text editing components that are also event sinks
|
|
97
|
+
*/
|
|
98
|
+
abstract getEventSource(): BrowserEventSource;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* base class for Dialog components. Notifies parent
|
|
102
|
+
* dialog of state change via `change()`
|
|
103
|
+
* @category SuiDialog
|
|
104
|
+
*/
|
|
105
|
+
export declare abstract class SuiComponentBase {
|
|
106
|
+
changeFlag: boolean;
|
|
107
|
+
css: string;
|
|
108
|
+
dialog: SuiDialogNotifier;
|
|
109
|
+
id: string;
|
|
110
|
+
noProperty: boolean;
|
|
111
|
+
label: string;
|
|
112
|
+
control: string;
|
|
113
|
+
smoName: string;
|
|
114
|
+
constructor(dialog: SuiDialogNotifier, parameters: SuiBaseComponentParams);
|
|
115
|
+
/**
|
|
116
|
+
* Called by the dialog after rendering, so the derived class can
|
|
117
|
+
* bind the html controls
|
|
118
|
+
*/
|
|
119
|
+
abstract bind(): void;
|
|
120
|
+
/**
|
|
121
|
+
* Return the html that lives in side the component DOM. Implemented by the
|
|
122
|
+
* base class.
|
|
123
|
+
*/
|
|
124
|
+
abstract get html(): any;
|
|
125
|
+
/**
|
|
126
|
+
* Called by the derived class when the value changes. The change flag is set to true, so the dialog will
|
|
127
|
+
* know which component changed.
|
|
128
|
+
*/
|
|
129
|
+
handleChanged(): void;
|
|
130
|
+
/**
|
|
131
|
+
* combine component classes with string, used for composites
|
|
132
|
+
* @param classes string ot append
|
|
133
|
+
* @returns combined strings
|
|
134
|
+
*/
|
|
135
|
+
makeClasses(classes: string): string;
|
|
136
|
+
get parameterId(): string;
|
|
137
|
+
show(): void;
|
|
138
|
+
hide(): void;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Parent components are really containers for other components
|
|
142
|
+
* For instance, FontComponent has size, family, weight, etc.
|
|
143
|
+
*
|
|
144
|
+
* @category SuiDialog
|
|
145
|
+
*/
|
|
146
|
+
export declare abstract class SuiComponentParent extends SuiComponentBase {
|
|
147
|
+
/**
|
|
148
|
+
* For parent component, their changed method is called by child, and then the
|
|
149
|
+
* parent calls the dialog changed()
|
|
150
|
+
*/
|
|
151
|
+
abstract changed(): void;
|
|
152
|
+
}
|
|
153
|
+
export declare abstract class SuiCompositeBase extends SuiComponentBase {
|
|
154
|
+
parentControl: SuiComponentParent;
|
|
155
|
+
constructor(dialog: SuiDialogNotifier, params: SuiBaseComponentParams);
|
|
156
|
+
}
|
|
157
|
+
export type dynamicComponentCtor = (arg1: SuiDialogNotifier, params: any) => any;
|
|
158
|
+
export declare const SmoDynamicComponentCtor: Record<string, dynamicComponentCtor>;
|
|
@@ -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(): 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(): void;
|
|
54
|
+
}
|
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
import { SuiComponentBase, SuiDialogNotifier, SuiComponentParent, SuiBaseComponentParams } from '../components/baseComponent';
|
|
2
|
-
import { SuiScoreViewOperations } from '../../../render/sui/scoreViewOperations';
|
|
3
|
-
import { SuiButtonComponentParams } from './button';
|
|
4
|
-
/**
|
|
5
|
-
* @category SuiDialog
|
|
6
|
-
*/
|
|
7
|
-
export interface SuiButtonComponentRowParameters {
|
|
8
|
-
label: string;
|
|
9
|
-
classes: string;
|
|
10
|
-
buttons: SuiButtonComponentParams[];
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @category SuiDialog
|
|
14
|
-
*/
|
|
15
|
-
export interface SuiButtonArrayParameters {
|
|
16
|
-
label: string;
|
|
17
|
-
rows: SuiButtonComponentRowParameters[];
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @category SuiDialog
|
|
21
|
-
*/
|
|
22
|
-
declare interface SuiButtonCompositeParams extends SuiButtonComponentParams {
|
|
23
|
-
parentControl: SuiComponentParent;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* An array of related buttons in a dialog, e.g. for articulations
|
|
27
|
-
* @category SuiDialog
|
|
28
|
-
*/
|
|
29
|
-
export declare class SuiButtonArrayButton extends SuiComponentBase {
|
|
30
|
-
icon: string;
|
|
31
|
-
classes: string;
|
|
32
|
-
position?: string;
|
|
33
|
-
text?: string;
|
|
34
|
-
iButtonState: number;
|
|
35
|
-
parentControl: SuiComponentParent;
|
|
36
|
-
static buttonStateString: string[];
|
|
37
|
-
static buttonState: Record<string, number>;
|
|
38
|
-
constructor(dialog: SuiDialogNotifier, parameters: SuiButtonCompositeParams);
|
|
39
|
-
get buttonStateString(): string;
|
|
40
|
-
get buttonState(): number;
|
|
41
|
-
set buttonState(value: number);
|
|
42
|
-
clearState(): void;
|
|
43
|
-
get iconHtml(): import("../../../common/htmlHelpers").DomBuilder;
|
|
44
|
-
get textHtml(): import("../../../common/htmlHelpers").DomBuilder;
|
|
45
|
-
get html(): import("../../../common/htmlHelpers").DomBuilder;
|
|
46
|
-
updateControls(): void;
|
|
47
|
-
bind(): void;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* @category SuiDialog
|
|
51
|
-
*/
|
|
52
|
-
export interface SuiButtonComponentRow {
|
|
53
|
-
label: string;
|
|
54
|
-
classes: string;
|
|
55
|
-
buttons: SuiButtonArrayButton[];
|
|
56
|
-
}
|
|
57
|
-
export type getButtonsFcn = () => SuiButtonArrayParameters;
|
|
58
|
-
/**
|
|
59
|
-
* @category SuiDialog
|
|
60
|
-
*/
|
|
61
|
-
export declare abstract class SuiButtonArrayBase extends SuiComponentParent {
|
|
62
|
-
view: SuiScoreViewOperations;
|
|
63
|
-
buttonRows: SuiButtonComponentRow[];
|
|
64
|
-
pressed: string;
|
|
65
|
-
shellCreated: boolean;
|
|
66
|
-
constructor(dialog: SuiDialogNotifier, parameter: SuiBaseComponentParams, buttonFactory: getButtonsFcn);
|
|
67
|
-
updateControls(): void;
|
|
68
|
-
get html(): import("../../../common/htmlHelpers").DomBuilder;
|
|
69
|
-
abstract changed(): void;
|
|
70
|
-
abstract bind(): void;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* A button array component with single-select behavior
|
|
74
|
-
* @category SuiDialog
|
|
75
|
-
*/
|
|
76
|
-
export declare class SuiButtonArrayComponent extends SuiButtonArrayBase {
|
|
77
|
-
pressed: string;
|
|
78
|
-
shellCreated: boolean;
|
|
79
|
-
initialValue: boolean;
|
|
80
|
-
constructor(dialog: SuiDialogNotifier, parameter: SuiBaseComponentParams, buttonFactory: getButtonsFcn);
|
|
81
|
-
getValue(): string;
|
|
82
|
-
updateValues(): void;
|
|
83
|
-
setValue(val: string): void;
|
|
84
|
-
changed(): void;
|
|
85
|
-
bind(): void;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* A button array with multi-select behavior.
|
|
89
|
-
* @category SuiDialog
|
|
90
|
-
*/
|
|
91
|
-
export declare class SuiButtonArrayMSComponent extends SuiButtonArrayBase {
|
|
92
|
-
pressedArray: string[];
|
|
93
|
-
initialValue: boolean;
|
|
94
|
-
constructor(dialog: SuiDialogNotifier, parameter: SuiBaseComponentParams, buttonFactory: getButtonsFcn);
|
|
95
|
-
getValue(): string[];
|
|
96
|
-
setValue(val: string[]): void;
|
|
97
|
-
updateValues(): void;
|
|
98
|
-
changed(): void;
|
|
99
|
-
bind(): void;
|
|
100
|
-
}
|
|
101
|
-
export {};
|
|
1
|
+
import { SuiComponentBase, SuiDialogNotifier, SuiComponentParent, SuiBaseComponentParams } from '../components/baseComponent';
|
|
2
|
+
import { SuiScoreViewOperations } from '../../../render/sui/scoreViewOperations';
|
|
3
|
+
import { SuiButtonComponentParams } from './button';
|
|
4
|
+
/**
|
|
5
|
+
* @category SuiDialog
|
|
6
|
+
*/
|
|
7
|
+
export interface SuiButtonComponentRowParameters {
|
|
8
|
+
label: string;
|
|
9
|
+
classes: string;
|
|
10
|
+
buttons: SuiButtonComponentParams[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @category SuiDialog
|
|
14
|
+
*/
|
|
15
|
+
export interface SuiButtonArrayParameters {
|
|
16
|
+
label: string;
|
|
17
|
+
rows: SuiButtonComponentRowParameters[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @category SuiDialog
|
|
21
|
+
*/
|
|
22
|
+
declare interface SuiButtonCompositeParams extends SuiButtonComponentParams {
|
|
23
|
+
parentControl: SuiComponentParent;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* An array of related buttons in a dialog, e.g. for articulations
|
|
27
|
+
* @category SuiDialog
|
|
28
|
+
*/
|
|
29
|
+
export declare class SuiButtonArrayButton extends SuiComponentBase {
|
|
30
|
+
icon: string;
|
|
31
|
+
classes: string;
|
|
32
|
+
position?: string;
|
|
33
|
+
text?: string;
|
|
34
|
+
iButtonState: number;
|
|
35
|
+
parentControl: SuiComponentParent;
|
|
36
|
+
static buttonStateString: string[];
|
|
37
|
+
static buttonState: Record<string, number>;
|
|
38
|
+
constructor(dialog: SuiDialogNotifier, parameters: SuiButtonCompositeParams);
|
|
39
|
+
get buttonStateString(): string;
|
|
40
|
+
get buttonState(): number;
|
|
41
|
+
set buttonState(value: number);
|
|
42
|
+
clearState(): void;
|
|
43
|
+
get iconHtml(): import("../../../common/htmlHelpers").DomBuilder;
|
|
44
|
+
get textHtml(): import("../../../common/htmlHelpers").DomBuilder;
|
|
45
|
+
get html(): import("../../../common/htmlHelpers").DomBuilder;
|
|
46
|
+
updateControls(): void;
|
|
47
|
+
bind(): void;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @category SuiDialog
|
|
51
|
+
*/
|
|
52
|
+
export interface SuiButtonComponentRow {
|
|
53
|
+
label: string;
|
|
54
|
+
classes: string;
|
|
55
|
+
buttons: SuiButtonArrayButton[];
|
|
56
|
+
}
|
|
57
|
+
export type getButtonsFcn = () => SuiButtonArrayParameters;
|
|
58
|
+
/**
|
|
59
|
+
* @category SuiDialog
|
|
60
|
+
*/
|
|
61
|
+
export declare abstract class SuiButtonArrayBase extends SuiComponentParent {
|
|
62
|
+
view: SuiScoreViewOperations;
|
|
63
|
+
buttonRows: SuiButtonComponentRow[];
|
|
64
|
+
pressed: string;
|
|
65
|
+
shellCreated: boolean;
|
|
66
|
+
constructor(dialog: SuiDialogNotifier, parameter: SuiBaseComponentParams, buttonFactory: getButtonsFcn);
|
|
67
|
+
updateControls(): void;
|
|
68
|
+
get html(): import("../../../common/htmlHelpers").DomBuilder;
|
|
69
|
+
abstract changed(): void;
|
|
70
|
+
abstract bind(): void;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* A button array component with single-select behavior
|
|
74
|
+
* @category SuiDialog
|
|
75
|
+
*/
|
|
76
|
+
export declare class SuiButtonArrayComponent extends SuiButtonArrayBase {
|
|
77
|
+
pressed: string;
|
|
78
|
+
shellCreated: boolean;
|
|
79
|
+
initialValue: boolean;
|
|
80
|
+
constructor(dialog: SuiDialogNotifier, parameter: SuiBaseComponentParams, buttonFactory: getButtonsFcn);
|
|
81
|
+
getValue(): string;
|
|
82
|
+
updateValues(): void;
|
|
83
|
+
setValue(val: string): void;
|
|
84
|
+
changed(): void;
|
|
85
|
+
bind(): void;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* A button array with multi-select behavior.
|
|
89
|
+
* @category SuiDialog
|
|
90
|
+
*/
|
|
91
|
+
export declare class SuiButtonArrayMSComponent extends SuiButtonArrayBase {
|
|
92
|
+
pressedArray: string[];
|
|
93
|
+
initialValue: boolean;
|
|
94
|
+
constructor(dialog: SuiDialogNotifier, parameter: SuiBaseComponentParams, buttonFactory: getButtonsFcn);
|
|
95
|
+
getValue(): string[];
|
|
96
|
+
setValue(val: string[]): void;
|
|
97
|
+
updateValues(): void;
|
|
98
|
+
changed(): void;
|
|
99
|
+
bind(): void;
|
|
100
|
+
}
|
|
101
|
+
export {};
|