smoosic 1.0.40 → 1.0.42

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.
Files changed (72) hide show
  1. package/build/smoosic.js +4 -4
  2. package/package.json +1 -1
  3. package/release/smoosic.js +4 -4
  4. package/src/smo/data/score.ts +3 -0
  5. package/src/smo/data/scoreModifiers.ts +2 -2
  6. package/src/ui/components/dialogs/timeSignature.vue +25 -4
  7. package/types/src/application/application.d.ts +103 -102
  8. package/types/src/application/common.d.ts +6 -0
  9. package/types/src/application/configuration.d.ts +75 -75
  10. package/types/src/application/dynamicInit.d.ts +6 -6
  11. package/types/src/application/eventHandler.d.ts +87 -81
  12. package/types/src/application/exports.d.ts +482 -485
  13. package/types/src/render/audio/oscillator.d.ts +99 -99
  14. package/types/src/render/audio/player.d.ts +143 -143
  15. package/types/src/render/audio/samples.d.ts +56 -56
  16. package/types/src/render/sui/NoteEntryCaret.d.ts +107 -0
  17. package/types/src/render/sui/NoteEntryMediator.d.ts +24 -0
  18. package/types/src/render/sui/configuration.d.ts +53 -49
  19. package/types/src/render/sui/formatter.d.ts +163 -161
  20. package/types/src/render/sui/layoutDebug.d.ts +46 -46
  21. package/types/src/render/sui/mapper.d.ts +138 -135
  22. package/types/src/render/sui/renderState.d.ts +92 -90
  23. package/types/src/render/sui/scoreRender.d.ts +97 -96
  24. package/types/src/render/sui/scoreView.d.ts +280 -279
  25. package/types/src/render/sui/scoreViewOperations.d.ts +604 -594
  26. package/types/src/render/sui/scroller.d.ts +41 -41
  27. package/types/src/render/sui/svgPageMap.d.ts +344 -344
  28. package/types/src/render/sui/textEdit.d.ts +316 -316
  29. package/types/src/render/sui/tracker.d.ts +10 -4
  30. package/types/src/render/vex/vxMeasure.d.ts +97 -97
  31. package/types/src/smo/data/common.d.ts +220 -220
  32. package/types/src/smo/data/measure.d.ts +511 -511
  33. package/types/src/smo/data/measureModifiers.d.ts +509 -508
  34. package/types/src/smo/data/music.d.ts +2 -1
  35. package/types/src/smo/data/note.d.ts +2 -0
  36. package/types/src/smo/data/noteModifiers.d.ts +2 -0
  37. package/types/src/smo/data/score.d.ts +7 -5
  38. package/types/src/smo/data/scoreModifiers.d.ts +441 -440
  39. package/types/src/smo/data/systemStaff.d.ts +2 -2
  40. package/types/src/smo/data/tuplet.d.ts +7 -0
  41. package/types/src/smo/midi/midiToSmo.d.ts +12 -12
  42. package/types/src/smo/midi/smoToMidi.d.ts +3 -3
  43. package/types/src/smo/mxml/smoToXml.d.ts +4 -4
  44. package/types/src/smo/mxml/xmlState.d.ts +3 -3
  45. package/types/src/smo/mxml/xmlToSmo.d.ts +2 -2
  46. package/types/src/smo/xform/operations.d.ts +3 -3
  47. package/types/src/smo/xform/selections.d.ts +154 -154
  48. package/types/src/ui/buttons/display.d.ts +1 -0
  49. package/types/src/ui/common.d.ts +69 -67
  50. package/types/src/ui/composable/draggable.d.ts +1 -1
  51. package/types/src/ui/configuration.d.ts +30 -30
  52. package/types/src/ui/dialogs/chordChange.d.ts +35 -35
  53. package/types/src/ui/dialogs/components/baseComponent.d.ts +158 -158
  54. package/types/src/ui/dialogs/components/button.d.ts +54 -54
  55. package/types/src/ui/dialogs/components/dropdown.d.ts +78 -78
  56. package/types/src/ui/dialogs/components/pitch.d.ts +95 -95
  57. package/types/src/ui/dialogs/components/rocker.d.ts +66 -66
  58. package/types/src/ui/dialogs/components/textInPlace.d.ts +90 -90
  59. package/types/src/ui/dialogs/components/textInput.d.ts +58 -58
  60. package/types/src/ui/dialogs/components/toggle.d.ts +53 -53
  61. package/types/src/ui/dialogs/dialog.d.ts +203 -203
  62. package/types/src/ui/dialogs/endings.d.ts +2 -2
  63. package/types/src/ui/dialogs/lyric.d.ts +39 -39
  64. package/types/src/ui/dialogs/measureFormat.d.ts +2 -2
  65. package/types/src/ui/dialogs/tempo.d.ts +3 -3
  66. package/types/src/ui/dialogs/textBlock.d.ts +55 -61
  67. package/types/src/ui/dialogs/timeSignature.d.ts +2 -34
  68. package/types/src/ui/exceptions.d.ts +15 -15
  69. package/types/src/ui/help.d.ts +6 -1
  70. package/types/src/ui/menus/manager.d.ts +59 -59
  71. package/types/src/ui/navigation.d.ts +44 -37
  72. package/types/typedoc.d.ts +157 -157
@@ -1,67 +1,69 @@
1
- import { ButtonDefinition } from '../ui/buttons/button';
2
- import { KeyEvent } from '../smo/data/common';
3
- import { SuiNavigation } from '../render/sui/configuration';
4
- import { SuiScoreView } from '../render/sui/scoreView';
5
- import { Ref } from 'vue';
6
- /**
7
- * Define the base class for a modal component that resolves a promise when it is dismissed
8
- * @category SuiButton
9
- */
10
- export declare abstract class ModalComponent {
11
- abstract closeModalPromise: Promise<void>;
12
- }
13
- export type keyEventCallback = (ke: KeyEvent) => void;
14
- /**
15
- * Define an interface that gives up event handling when a modal is active
16
- * @category SuiButton
17
- */
18
- export declare abstract class CompleteNotifier {
19
- abstract unbindKeyboardForModal(component: ModalComponent): void;
20
- }
21
- /**
22
- * @category SuiButton
23
- */
24
- export interface RibbonLayout {
25
- left: string[];
26
- top: string[];
27
- }
28
- /**
29
- * @category SuiButton
30
- */
31
- export interface RibbonDefinition {
32
- ribbon: RibbonLayout;
33
- ribbonButtons: ButtonDefinition[];
34
- }
35
- export interface SelectOption {
36
- label: string;
37
- value: string;
38
- classes?: string;
39
- icon?: string;
40
- active?: boolean;
41
- }
42
- export interface DomDebugFlag {
43
- category: string;
44
- htmlString: string;
45
- }
46
- export interface CrashDialog {
47
- url: string;
48
- bodyText: Ref<string>;
49
- show: Ref<boolean>;
50
- }
51
- export interface DomDialogNotifiers {
52
- showSplash: Ref<boolean>;
53
- splashTimer: Ref<number>;
54
- debugFlags: DomDebugFlag[];
55
- crashDialog: CrashDialog;
56
- }
57
- export interface ExceptionParameters {
58
- view: SuiScoreView;
59
- navigation: SuiNavigation;
60
- }
61
- export declare const modalContainerId = "#vue-modal-container";
62
- /**
63
- * Remove and replace an element, so we can reattach Vue to it
64
- * @param element the ID or element we are replacing
65
- * @returns the new element id
66
- */
67
- export declare const replaceVueRoot: (element: string | HTMLElement) => string;
1
+ import { ButtonDefinition } from '../ui/buttons/button';
2
+ import { KeyEvent } from '../smo/data/common';
3
+ import { SuiNavigation } from '../render/sui/configuration';
4
+ import { SuiScoreView } from '../render/sui/scoreView';
5
+ import { Ref } from 'vue';
6
+ /**
7
+ * Define the base class for a modal component that resolves a promise when it is dismissed
8
+ * @category SuiButton
9
+ */
10
+ export declare abstract class ModalComponent {
11
+ abstract closeModalPromise: Promise<void>;
12
+ }
13
+ export type keyEventCallback = (ke: KeyEvent) => void;
14
+ /**
15
+ * Define an interface that gives up event handling when a modal is active
16
+ * @category SuiButton
17
+ */
18
+ export declare abstract class CompleteNotifier {
19
+ abstract unbindKeyboardForModal(component: ModalComponent): void;
20
+ }
21
+ /**
22
+ * @category SuiButton
23
+ */
24
+ export interface RibbonLayout {
25
+ left: string[];
26
+ top: string[];
27
+ }
28
+ /**
29
+ * @category SuiButton
30
+ */
31
+ export interface RibbonDefinition {
32
+ ribbon: RibbonLayout;
33
+ ribbonButtons: ButtonDefinition[];
34
+ }
35
+ export interface SelectOption {
36
+ label: string;
37
+ value: string;
38
+ classes?: string;
39
+ icon?: string;
40
+ active?: boolean;
41
+ }
42
+ export interface DomDebugFlag {
43
+ category: string;
44
+ htmlString: string;
45
+ }
46
+ export interface CrashDialog {
47
+ url: string;
48
+ bodyText: Ref<string>;
49
+ show: Ref<boolean>;
50
+ }
51
+ export interface DomDialogNotifiers {
52
+ showSplash: Ref<boolean>;
53
+ showHelpDialog: Ref<boolean>;
54
+ splashTimer: Ref<number>;
55
+ debugFlags: DomDebugFlag[];
56
+ crashDialog: CrashDialog;
57
+ showAttributeDialog: Ref<boolean>;
58
+ }
59
+ export interface ExceptionParameters {
60
+ view: SuiScoreView;
61
+ navigation: SuiNavigation;
62
+ }
63
+ export declare const modalContainerId = ".vue-modal-container";
64
+ /**
65
+ * Remove and replace an element, so we can reattach Vue to it
66
+ * @param element the ID or element we are replacing
67
+ * @returns the new element id
68
+ */
69
+ export declare const replaceVueRoot: (element: string | HTMLElement) => string;
@@ -9,4 +9,4 @@ export interface DraggableSession {
9
9
  };
10
10
  getLocString: () => string;
11
11
  }
12
- export declare const draggableSession: (domId: string) => DraggableSession;
12
+ export declare const draggableSession: (domId: string, cssClass?: string) => DraggableSession;
@@ -1,30 +1,30 @@
1
- import { ButtonDefinition } from './buttons/button';
2
- import { RibbonLayout } from './common';
3
- import { KeyBinding } from '../application/common';
4
- /**
5
- * @internal
6
- */
7
- export interface KeyBindingConfiguration {
8
- editorKeys: KeyBinding[];
9
- trackerKeys: KeyBinding[];
10
- }
11
- /**
12
- * @internal
13
- */
14
- export interface RibbonConfiguration {
15
- layout: RibbonLayout;
16
- buttons: ButtonDefinition[];
17
- }
18
- /**
19
- * Configurable elements for the UI
20
- * @category SuiUiBase
21
- */
22
- export interface SmoUiConfiguration {
23
- keys?: KeyBindingConfiguration;
24
- libraryUrl?: string;
25
- language: string;
26
- demonPollTime: number;
27
- idleRedrawTime: number;
28
- leftControls?: HTMLElement | string;
29
- topControls?: HTMLElement | string;
30
- }
1
+ import { ButtonDefinition } from './buttons/button';
2
+ import { RibbonLayout } from './common';
3
+ import { KeyBinding } from '../application/common';
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface KeyBindingConfiguration {
8
+ editorKeys: KeyBinding[];
9
+ trackerKeys: KeyBinding[];
10
+ }
11
+ /**
12
+ * @internal
13
+ */
14
+ export interface RibbonConfiguration {
15
+ layout: RibbonLayout;
16
+ buttons: ButtonDefinition[];
17
+ }
18
+ /**
19
+ * Configurable elements for the UI
20
+ * @category SuiUiBase
21
+ */
22
+ export interface SmoUiConfiguration {
23
+ keys?: KeyBindingConfiguration;
24
+ libraryUrl?: string;
25
+ language: string;
26
+ demonPollTime: number;
27
+ idleRedrawTime: number;
28
+ leftControls?: HTMLElement | string;
29
+ topControls?: HTMLElement | string;
30
+ }
@@ -1,35 +1,35 @@
1
- import { DialogDefinition, SuiDialogBase, SuiDialogParams } from './dialog';
2
- import { SuiChordComponent } from './components/noteText';
3
- import { SuiDropdownComponent } from './components/dropdown';
4
- import { SuiToggleComponent } from './components/toggle';
5
- import { SuiRockerComponent } from './components/rocker';
6
- import { SmoLyric } from '../../smo/data/noteModifiers';
7
- import { SmoSelector } from '../../smo/xform/selections';
8
- import { SuiFontComponent } from './components/fontComponent';
9
- import { EventHandler } from '../eventSource';
10
- /**
11
- * Complex dialog for running a chord change editing session.
12
- * @category SuiDialog
13
- */
14
- export declare class SuiChordChangeDialog extends SuiDialogBase {
15
- static dialogElements: DialogDefinition;
16
- lyric: SmoLyric | null;
17
- selector: SmoSelector | null;
18
- mouseMoveHandler: EventHandler | null;
19
- mouseClickHandler: EventHandler | null;
20
- constructor(parameters: SuiDialogParams);
21
- get chordEditorCtrl(): SuiChordComponent;
22
- get chordSymbolCtrl(): SuiDropdownComponent;
23
- get translateYCtrl(): SuiRockerComponent;
24
- get textPositionCtrl(): SuiRockerComponent;
25
- get adjustWidthCtrl(): SuiToggleComponent;
26
- get fontCtrl(): SuiFontComponent;
27
- changed(): Promise<void>;
28
- setLyric(selector: SmoSelector, lyric: SmoLyric): void;
29
- display(): void;
30
- bindElements(): void;
31
- evKey(evdata: any): Promise<void>;
32
- _complete(): void;
33
- mouseMove(ev: any): void;
34
- mouseClick(ev: any): void;
35
- }
1
+ import { DialogDefinition, SuiDialogBase, SuiDialogParams } from './dialog';
2
+ import { SuiChordComponent } from './components/noteText';
3
+ import { SuiDropdownComponent } from './components/dropdown';
4
+ import { SuiToggleComponent } from './components/toggle';
5
+ import { SuiRockerComponent } from './components/rocker';
6
+ import { SmoLyric } from '../../smo/data/noteModifiers';
7
+ import { SmoSelector } from '../../smo/xform/selections';
8
+ import { SuiFontComponent } from './components/fontComponent';
9
+ import { EventHandler } from '../eventSource';
10
+ /**
11
+ * Complex dialog for running a chord change editing session.
12
+ * @category SuiDialog
13
+ */
14
+ export declare class SuiChordChangeDialog extends SuiDialogBase {
15
+ static dialogElements: DialogDefinition;
16
+ lyric: SmoLyric | null;
17
+ selector: SmoSelector | null;
18
+ mouseMoveHandler: EventHandler | null;
19
+ mouseClickHandler: EventHandler | null;
20
+ constructor(parameters: SuiDialogParams);
21
+ get chordEditorCtrl(): SuiChordComponent;
22
+ get chordSymbolCtrl(): SuiDropdownComponent;
23
+ get translateYCtrl(): SuiRockerComponent;
24
+ get textPositionCtrl(): SuiRockerComponent;
25
+ get adjustWidthCtrl(): SuiToggleComponent;
26
+ get fontCtrl(): SuiFontComponent;
27
+ changed(): Promise<void>;
28
+ setLyric(selector: SmoSelector, lyric: SmoLyric): void;
29
+ display(): void;
30
+ bindElements(): void;
31
+ evKey(evdata: any): Promise<void>;
32
+ _complete(): void;
33
+ mouseMove(ev: any): void;
34
+ mouseClick(ev: any): void;
35
+ }
@@ -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(): Promise<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(): Promise<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(): Promise<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(): Promise<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>;