mn-angular-lib 2.0.50 → 2.0.52
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/fesm2022/mn-angular-lib-calendar.mjs +6 -6
- package/fesm2022/mn-angular-lib-calendar.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-keyboard.mjs +55 -3
- package/fesm2022/mn-angular-lib-keyboard.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-modal-ui.mjs +8 -6
- package/fesm2022/mn-angular-lib-modal-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/mn-angular-lib-keyboard.d.ts +19 -0
package/package.json
CHANGED
|
@@ -35,6 +35,10 @@ export type MnKeyboardLabels = {
|
|
|
35
35
|
submit: string;
|
|
36
36
|
/** Accessible name for the keyboard as a whole. */
|
|
37
37
|
keyboard: string;
|
|
38
|
+
/** The shift (upper/lower case) key. Defaults to a glyph. */
|
|
39
|
+
shift?: string;
|
|
40
|
+
/** The key that opens the accented-letter page. Defaults to a glyph. */
|
|
41
|
+
accents?: string;
|
|
38
42
|
};
|
|
39
43
|
/**
|
|
40
44
|
* An on-screen keyboard for touch devices that have no keyboard of their own.
|
|
@@ -74,6 +78,8 @@ export declare class MnKeyboard {
|
|
|
74
78
|
labels: MnKeyboardLabels;
|
|
75
79
|
/** Whether letters are rendered (and typed) upper-case. */
|
|
76
80
|
uppercase: boolean;
|
|
81
|
+
/** Emits the new case when the shift key flips {@link uppercase}. */
|
|
82
|
+
uppercaseChange: EventEmitter<boolean>;
|
|
77
83
|
/** Whether to offer a space key. Off for a field that can never contain one. */
|
|
78
84
|
allowSpace: boolean;
|
|
79
85
|
/** Whether to offer a submit key. */
|
|
@@ -93,6 +99,14 @@ export declare class MnKeyboard {
|
|
|
93
99
|
get hostClasses(): string;
|
|
94
100
|
/** The character rows to render, driven by {@link layout}. */
|
|
95
101
|
get rows(): readonly string[][];
|
|
102
|
+
/** Whether the accent page is open. */
|
|
103
|
+
accentsOpen: boolean;
|
|
104
|
+
/** Whether the layout takes text (letters, accents, apostrophe, hyphen). */
|
|
105
|
+
get textual(): boolean;
|
|
106
|
+
/** The accent rows, cased like the letters. */
|
|
107
|
+
get accentRows(): readonly string[][];
|
|
108
|
+
/** The apostrophe and hyphen keys. */
|
|
109
|
+
get symbolKeys(): readonly string[];
|
|
96
110
|
/** Whether the space key should be offered (never on a digits-only pad). */
|
|
97
111
|
get spaceVisible(): boolean;
|
|
98
112
|
/**
|
|
@@ -100,6 +114,10 @@ export declare class MnKeyboard {
|
|
|
100
114
|
* @param key The character pressed.
|
|
101
115
|
*/
|
|
102
116
|
press(key: string): void;
|
|
117
|
+
/** Flips between lower and upper case, as the shift key does. */
|
|
118
|
+
toggleShift(): void;
|
|
119
|
+
/** Opens or closes the accent page. */
|
|
120
|
+
toggleAccents(): void;
|
|
103
121
|
/** Appends a space. */
|
|
104
122
|
pressSpace(): void;
|
|
105
123
|
/** Removes the last character. */
|
|
@@ -161,6 +179,7 @@ export declare class MnKeyboard {
|
|
|
161
179
|
"required": false;
|
|
162
180
|
};
|
|
163
181
|
}, {
|
|
182
|
+
"uppercaseChange": "uppercaseChange";
|
|
164
183
|
"valueChange": "valueChange";
|
|
165
184
|
"submitted": "submitted";
|
|
166
185
|
"dismissed": "dismissed";
|