smoosic 1.0.34 → 1.0.35

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 (71) hide show
  1. package/build/html/smoosic.html +1 -0
  2. package/build/smoosic.js +36 -14
  3. package/package.json +1 -1
  4. package/release/html/smoosic.html +4 -3
  5. package/release/smoosic.js +36 -14
  6. package/release/styles/general.css +15 -0
  7. package/src/application/common.ts +20 -0
  8. package/src/application/eventHandler.ts +44 -8
  9. package/src/render/sui/NoteEntryCaret.ts +739 -0
  10. package/src/render/sui/NoteEntryMediator.ts +58 -0
  11. package/src/render/sui/mapper.ts +22 -4
  12. package/src/render/sui/scoreRender.ts +7 -7
  13. package/src/render/sui/scoreViewOperations.ts +46 -0
  14. package/src/render/sui/tracker.ts +93 -47
  15. package/src/render/vex/vxMeasure.ts +2 -1
  16. package/src/render/vex/vxNote.ts +1 -0
  17. package/src/smo/data/music.ts +17 -0
  18. package/src/smo/data/note.ts +3 -1
  19. package/src/smo/data/noteModifiers.ts +2 -0
  20. package/src/smo/data/scoreModifiers.ts +0 -3
  21. package/src/styles/general.css +22 -0
  22. package/src/ui/components/dialogs/scorePreferences.vue +1 -11
  23. package/types/src/application/application.d.ts +102 -102
  24. package/types/src/application/configuration.d.ts +74 -74
  25. package/types/src/application/dynamicInit.d.ts +1 -1
  26. package/types/src/application/eventHandler.d.ts +78 -78
  27. package/types/src/application/exports.d.ts +494 -494
  28. package/types/src/render/audio/oscillator.d.ts +98 -98
  29. package/types/src/render/audio/player.d.ts +141 -141
  30. package/types/src/render/audio/samples.d.ts +56 -56
  31. package/types/src/render/sui/configuration.d.ts +12 -12
  32. package/types/src/render/sui/formatter.d.ts +151 -151
  33. package/types/src/render/sui/layoutDebug.d.ts +43 -43
  34. package/types/src/render/sui/mapper.d.ts +116 -116
  35. package/types/src/render/sui/renderState.d.ts +88 -88
  36. package/types/src/render/sui/scoreRender.d.ts +93 -93
  37. package/types/src/render/sui/scoreView.d.ts +267 -267
  38. package/types/src/render/sui/scoreViewOperations.d.ts +594 -594
  39. package/types/src/render/sui/scroller.d.ts +34 -34
  40. package/types/src/render/sui/svgPageMap.d.ts +318 -318
  41. package/types/src/render/sui/textEdit.d.ts +310 -310
  42. package/types/src/render/vex/vxMeasure.d.ts +95 -95
  43. package/types/src/smo/data/common.d.ts +220 -220
  44. package/types/src/smo/data/measure.d.ts +510 -510
  45. package/types/src/smo/data/measureModifiers.d.ts +506 -506
  46. package/types/src/smo/data/scoreModifiers.d.ts +433 -433
  47. package/types/src/smo/xform/selections.d.ts +153 -153
  48. package/types/src/ui/common.d.ts +45 -45
  49. package/types/src/ui/configuration.d.ts +31 -31
  50. package/types/src/ui/dialogs/chordChange.d.ts +35 -35
  51. package/types/src/ui/dialogs/components/baseComponent.d.ts +158 -158
  52. package/types/src/ui/dialogs/components/button.d.ts +54 -54
  53. package/types/src/ui/dialogs/components/dropdown.d.ts +78 -78
  54. package/types/src/ui/dialogs/components/pitch.d.ts +95 -95
  55. package/types/src/ui/dialogs/components/rocker.d.ts +66 -66
  56. package/types/src/ui/dialogs/components/textInPlace.d.ts +90 -90
  57. package/types/src/ui/dialogs/components/textInput.d.ts +58 -58
  58. package/types/src/ui/dialogs/components/toggle.d.ts +53 -53
  59. package/types/src/ui/dialogs/dialog.d.ts +201 -201
  60. package/types/src/ui/dialogs/endings.d.ts +61 -61
  61. package/types/src/ui/dialogs/lyric.d.ts +39 -39
  62. package/types/src/ui/dialogs/measureFormat.d.ts +52 -52
  63. package/types/src/ui/dialogs/textBlock.d.ts +61 -61
  64. package/types/src/ui/exceptions.d.ts +12 -12
  65. package/types/src/ui/menus/manager.d.ts +57 -57
  66. package/types/src/ui/navigation.d.ts +15 -15
  67. package/types/typedoc.d.ts +158 -158
  68. package/release/styles/styles.css +0 -0
  69. package/src/styles/fonts/Roboto-Italic-VariableFont_wdth,wght.ttf +0 -0
  70. package/src/styles/fonts/Roboto-VariableFont_wdth,wght.ttf +0 -0
  71. package/src/styles/styles.css +0 -0
@@ -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(): 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(): 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(): 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(): void;
66
+ }
@@ -1,90 +1,90 @@
1
- import { SmoScoreText, SmoTextGroup } from '../../../smo/data/scoreText';
2
- import { KeyEvent } from '../../../smo/data/common';
3
- import { SuiTextSession } from '../../../render/sui/textEdit';
4
- import { SuiScroller } from '../../../render/sui/scroller';
5
- import { SuiScoreViewOperations } from '../../../render/sui/scoreViewOperations';
6
- import { SuiDialogNotifier, SuiComponentBase, SuiComponentParent } from './baseComponent';
7
- import { SuiButtonComposite } from './button';
8
- import { SuiRockerComposite } from './rocker';
9
- import { SuiDropdownComposite } from './dropdown';
10
- /**
11
- * @category SuiDialog
12
- */
13
- export interface SuiTextInPlaceParams {
14
- id: string;
15
- classes: string;
16
- label: string;
17
- smoName: string;
18
- control: string;
19
- }
20
- /**
21
- * Edit the text in an SVG element, in the same scale etc. as the text in the score SVG DOM.
22
- * This component just manages the text editing component of the renderer.
23
- * @category SuiDialog
24
- */
25
- export declare class SuiTextInPlace extends SuiComponentBase {
26
- scroller: SuiScroller;
27
- editMode: boolean;
28
- value: SmoTextGroup;
29
- staticText: Record<string, string>;
30
- altLabel: string;
31
- view: SuiScoreViewOperations;
32
- session: SuiTextSession | null;
33
- constructor(dialog: SuiDialogNotifier, parameter: SuiTextInPlaceParams);
34
- show(): void;
35
- hide(): void;
36
- get html(): import("../../../common/htmlHelpers").DomBuilder;
37
- endSession(): void;
38
- get isRunning(): boolean | null;
39
- getValue(): SmoTextGroup;
40
- _getInputElement(): any;
41
- mouseMove(ev: any): void;
42
- mouseClick(ev: any): void;
43
- _renderInactiveBlocks(): void;
44
- startEditSession(): void;
45
- evKey(evdata: KeyEvent): void;
46
- bind(): void;
47
- }
48
- /**
49
- * @category SuiDialog
50
- */
51
- export interface SuiTextBlockComponentParams {
52
- id: string;
53
- classes: string;
54
- label: string;
55
- smoName: string;
56
- control: string;
57
- }
58
- /**
59
- * @category SuiDialog
60
- */
61
- export interface SuiTextBlockValue {
62
- modifier: SmoTextGroup;
63
- activeScoreText: SmoScoreText;
64
- }
65
- /**
66
- * Dialog to edit an block of text components. Each block can have
67
- * different font settings and placement.
68
- * @category SuiDialog
69
- */
70
- export declare class SuiTextBlockComponent extends SuiComponentParent {
71
- addBlockCtrl: SuiButtonComposite;
72
- toggleBlockCtrl: SuiButtonComposite;
73
- removeBlockCtrl: SuiButtonComposite;
74
- relativePositionCtrl: SuiDropdownComposite;
75
- justificationCtrl: SuiDropdownComposite;
76
- spacingCtrl: SuiRockerComposite;
77
- modifier: SmoTextGroup;
78
- activeScoreText: SmoScoreText;
79
- constructor(dialog: SuiDialogNotifier, parameter: SuiTextBlockComponentParams);
80
- changed(): void;
81
- get html(): import("../../../common/htmlHelpers").DomBuilder;
82
- _getInputElement(): any;
83
- getValue(): {
84
- activeScoreText: SmoScoreText;
85
- modifier: SmoTextGroup;
86
- };
87
- _updateMultiiFields(): void;
88
- setValue(value: SuiTextBlockValue): void;
89
- bind(): void;
90
- }
1
+ import { SmoScoreText, SmoTextGroup } from '../../../smo/data/scoreText';
2
+ import { KeyEvent } from '../../../smo/data/common';
3
+ import { SuiTextSession } from '../../../render/sui/textEdit';
4
+ import { SuiScroller } from '../../../render/sui/scroller';
5
+ import { SuiScoreViewOperations } from '../../../render/sui/scoreViewOperations';
6
+ import { SuiDialogNotifier, SuiComponentBase, SuiComponentParent } from './baseComponent';
7
+ import { SuiButtonComposite } from './button';
8
+ import { SuiRockerComposite } from './rocker';
9
+ import { SuiDropdownComposite } from './dropdown';
10
+ /**
11
+ * @category SuiDialog
12
+ */
13
+ export interface SuiTextInPlaceParams {
14
+ id: string;
15
+ classes: string;
16
+ label: string;
17
+ smoName: string;
18
+ control: string;
19
+ }
20
+ /**
21
+ * Edit the text in an SVG element, in the same scale etc. as the text in the score SVG DOM.
22
+ * This component just manages the text editing component of the renderer.
23
+ * @category SuiDialog
24
+ */
25
+ export declare class SuiTextInPlace extends SuiComponentBase {
26
+ scroller: SuiScroller;
27
+ editMode: boolean;
28
+ value: SmoTextGroup;
29
+ staticText: Record<string, string>;
30
+ altLabel: string;
31
+ view: SuiScoreViewOperations;
32
+ session: SuiTextSession | null;
33
+ constructor(dialog: SuiDialogNotifier, parameter: SuiTextInPlaceParams);
34
+ show(): void;
35
+ hide(): void;
36
+ get html(): import("../../../common/htmlHelpers").DomBuilder;
37
+ endSession(): void;
38
+ get isRunning(): boolean | null;
39
+ getValue(): SmoTextGroup;
40
+ _getInputElement(): any;
41
+ mouseMove(ev: any): void;
42
+ mouseClick(ev: any): void;
43
+ _renderInactiveBlocks(): void;
44
+ startEditSession(): void;
45
+ evKey(evdata: KeyEvent): void;
46
+ bind(): void;
47
+ }
48
+ /**
49
+ * @category SuiDialog
50
+ */
51
+ export interface SuiTextBlockComponentParams {
52
+ id: string;
53
+ classes: string;
54
+ label: string;
55
+ smoName: string;
56
+ control: string;
57
+ }
58
+ /**
59
+ * @category SuiDialog
60
+ */
61
+ export interface SuiTextBlockValue {
62
+ modifier: SmoTextGroup;
63
+ activeScoreText: SmoScoreText;
64
+ }
65
+ /**
66
+ * Dialog to edit an block of text components. Each block can have
67
+ * different font settings and placement.
68
+ * @category SuiDialog
69
+ */
70
+ export declare class SuiTextBlockComponent extends SuiComponentParent {
71
+ addBlockCtrl: SuiButtonComposite;
72
+ toggleBlockCtrl: SuiButtonComposite;
73
+ removeBlockCtrl: SuiButtonComposite;
74
+ relativePositionCtrl: SuiDropdownComposite;
75
+ justificationCtrl: SuiDropdownComposite;
76
+ spacingCtrl: SuiRockerComposite;
77
+ modifier: SmoTextGroup;
78
+ activeScoreText: SmoScoreText;
79
+ constructor(dialog: SuiDialogNotifier, parameter: SuiTextBlockComponentParams);
80
+ changed(): void;
81
+ get html(): import("../../../common/htmlHelpers").DomBuilder;
82
+ _getInputElement(): any;
83
+ getValue(): {
84
+ activeScoreText: SmoScoreText;
85
+ modifier: SmoTextGroup;
86
+ };
87
+ _updateMultiiFields(): void;
88
+ setValue(value: SuiTextBlockValue): void;
89
+ bind(): void;
90
+ }
@@ -1,58 +1,58 @@
1
- import { SuiComponentBase, SuiDialogNotifier, SuiComponentParent } from './baseComponent';
2
- /**
3
- * parameters for text input component (simple text entry, not SVG text)
4
- * @category SuiDialog
5
- */
6
- export interface SuiTextInputComponentParams {
7
- id: string;
8
- classes: string;
9
- type?: string;
10
- increment?: number;
11
- defaultValue: string;
12
- label: string;
13
- smoName: string;
14
- control: string;
15
- }
16
- /**
17
- * Simple text input, like for a filename. Not the text editing component.
18
- * @category SuiDialog
19
- */
20
- export declare class SuiTextInputComponent extends SuiComponentBase {
21
- defaultValue: string;
22
- value: string;
23
- constructor(dialog: SuiDialogNotifier, parameter: SuiTextInputComponentParams);
24
- get html(): import("../../../common/htmlHelpers").DomBuilder;
25
- getValue(): string;
26
- setValue(val: string): void;
27
- _getInputElement(): any;
28
- bind(): void;
29
- }
30
- /**
31
- * @category SuiDialog
32
- */
33
- export interface SuiTextInputCompositeParams {
34
- id: string;
35
- classes: string;
36
- type?: string;
37
- increment?: number;
38
- defaultValue: string;
39
- label: string;
40
- smoName: string;
41
- control: string;
42
- parentControl: SuiComponentParent;
43
- }
44
- /**
45
- * @category SuiDialog
46
- */
47
- export declare class SuiTextInputComposite extends SuiTextInputComponent {
48
- parentControl: SuiComponentParent;
49
- constructor(dialog: SuiDialogNotifier, parameters: SuiTextInputCompositeParams);
50
- handleChanged(): void;
51
- }
52
- /**
53
- * A static text message that appears in the dialog
54
- * @category SuiDialog
55
- */
56
- export declare class SuiReadOnlyTextComponent extends SuiTextInputComponent {
57
- constructor(dialog: SuiDialogNotifier, parameter: SuiTextInputComponentParams);
58
- }
1
+ import { SuiComponentBase, SuiDialogNotifier, SuiComponentParent } from './baseComponent';
2
+ /**
3
+ * parameters for text input component (simple text entry, not SVG text)
4
+ * @category SuiDialog
5
+ */
6
+ export interface SuiTextInputComponentParams {
7
+ id: string;
8
+ classes: string;
9
+ type?: string;
10
+ increment?: number;
11
+ defaultValue: string;
12
+ label: string;
13
+ smoName: string;
14
+ control: string;
15
+ }
16
+ /**
17
+ * Simple text input, like for a filename. Not the text editing component.
18
+ * @category SuiDialog
19
+ */
20
+ export declare class SuiTextInputComponent extends SuiComponentBase {
21
+ defaultValue: string;
22
+ value: string;
23
+ constructor(dialog: SuiDialogNotifier, parameter: SuiTextInputComponentParams);
24
+ get html(): import("../../../common/htmlHelpers").DomBuilder;
25
+ getValue(): string;
26
+ setValue(val: string): void;
27
+ _getInputElement(): any;
28
+ bind(): void;
29
+ }
30
+ /**
31
+ * @category SuiDialog
32
+ */
33
+ export interface SuiTextInputCompositeParams {
34
+ id: string;
35
+ classes: string;
36
+ type?: string;
37
+ increment?: number;
38
+ defaultValue: string;
39
+ label: string;
40
+ smoName: string;
41
+ control: string;
42
+ parentControl: SuiComponentParent;
43
+ }
44
+ /**
45
+ * @category SuiDialog
46
+ */
47
+ export declare class SuiTextInputComposite extends SuiTextInputComponent {
48
+ parentControl: SuiComponentParent;
49
+ constructor(dialog: SuiDialogNotifier, parameters: SuiTextInputCompositeParams);
50
+ handleChanged(): void;
51
+ }
52
+ /**
53
+ * A static text message that appears in the dialog
54
+ * @category SuiDialog
55
+ */
56
+ export declare class SuiReadOnlyTextComponent extends SuiTextInputComponent {
57
+ constructor(dialog: SuiDialogNotifier, parameter: SuiTextInputComponentParams);
58
+ }