mn-angular-lib 2.0.33 → 2.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.
- package/fesm2022/mn-angular-lib-alert.mjs +515 -527
- package/fesm2022/mn-angular-lib-alert.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-bottom-sheet.mjs +264 -357
- package/fesm2022/mn-angular-lib-bottom-sheet.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-button.mjs +819 -382
- package/fesm2022/mn-angular-lib-button.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-calendar-core.mjs +240 -365
- package/fesm2022/mn-angular-lib-calendar-core.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-calendar.mjs +1691 -1545
- package/fesm2022/mn-angular-lib-calendar.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-collection.mjs +2367 -2796
- package/fesm2022/mn-angular-lib-collection.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-core.mjs +693 -1241
- package/fesm2022/mn-angular-lib-core.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-display.mjs +679 -712
- package/fesm2022/mn-angular-lib-display.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-forms.mjs +3671 -4647
- package/fesm2022/mn-angular-lib-forms.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-keyboard.mjs +221 -190
- package/fesm2022/mn-angular-lib-keyboard.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-modal-core.mjs +711 -896
- package/fesm2022/mn-angular-lib-modal-core.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-modal-ui.mjs +2089 -2035
- package/fesm2022/mn-angular-lib-modal-ui.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-modal.mjs +76 -121
- package/fesm2022/mn-angular-lib-modal.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-rich-text-editor.mjs +289 -277
- package/fesm2022/mn-angular-lib-rich-text-editor.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-segmented.mjs +189 -241
- package/fesm2022/mn-angular-lib-segmented.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-tab.mjs +409 -642
- package/fesm2022/mn-angular-lib-tab.mjs.map +1 -1
- package/fesm2022/mn-angular-lib.mjs +16 -29
- package/package.json +1 -1
- package/types/mn-angular-lib-alert.d.ts +239 -241
- package/types/mn-angular-lib-bottom-sheet.d.ts +190 -150
- package/types/mn-angular-lib-button.d.ts +319 -317
- package/types/mn-angular-lib-calendar-core.d.ts +199 -209
- package/types/mn-angular-lib-calendar.d.ts +656 -511
- package/types/mn-angular-lib-collection.d.ts +1649 -1585
- package/types/mn-angular-lib-core.d.ts +524 -535
- package/types/mn-angular-lib-display.d.ts +946 -886
- package/types/mn-angular-lib-forms.d.ts +3012 -3013
- package/types/mn-angular-lib-keyboard.d.ts +125 -85
- package/types/mn-angular-lib-modal-core.d.ts +978 -994
- package/types/mn-angular-lib-modal-ui.d.ts +541 -493
- package/types/mn-angular-lib-modal.d.ts +24 -27
- package/types/mn-angular-lib-rich-text-editor.d.ts +131 -98
- package/types/mn-angular-lib-segmented.d.ts +354 -341
- package/types/mn-angular-lib-tab.d.ts +345 -336
- package/types/mn-angular-lib.d.ts +16 -16
- package/fesm2022/mn-angular-lib.mjs.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import { EventEmitter } from
|
|
3
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { EventEmitter } from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* Which keys a {@link MnKeyboard} renders.
|
|
6
5
|
*
|
|
@@ -8,7 +7,7 @@ import { EventEmitter } from '@angular/core';
|
|
|
8
7
|
* a field that accepts either a membership number or a name. `numeric` is a phone-
|
|
9
8
|
* style 3x4 pad for digits only. `alpha` drops the digit row for name-only fields.
|
|
10
9
|
*/
|
|
11
|
-
type MnKeyboardLayout = 'alphanumeric' | 'numeric' | 'alpha';
|
|
10
|
+
export type MnKeyboardLayout = 'alphanumeric' | 'numeric' | 'alpha';
|
|
12
11
|
/**
|
|
13
12
|
* How a {@link MnKeyboard} presents itself.
|
|
14
13
|
*
|
|
@@ -16,7 +15,7 @@ type MnKeyboardLayout = 'alphanumeric' | 'numeric' | 'alpha';
|
|
|
16
15
|
* {@link MnBottomSheet}, so the keyboard rises from the bottom of the screen over
|
|
17
16
|
* whatever the user was looking at and can be swiped away.
|
|
18
17
|
*/
|
|
19
|
-
type MnKeyboardPresentation = 'inline' | 'sheet';
|
|
18
|
+
export type MnKeyboardPresentation = 'inline' | 'sheet';
|
|
20
19
|
/**
|
|
21
20
|
* Labels for a {@link MnKeyboard}'s named keys.
|
|
22
21
|
*
|
|
@@ -25,19 +24,18 @@ type MnKeyboardPresentation = 'inline' | 'sheet';
|
|
|
25
24
|
* bundles. The character keys need no labels — a digit and a letter read the same
|
|
26
25
|
* in every supported language.
|
|
27
26
|
*/
|
|
28
|
-
type MnKeyboardLabels = {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
27
|
+
export type MnKeyboardLabels = {
|
|
28
|
+
/** The backspace key (also its accessible name). */
|
|
29
|
+
backspace: string;
|
|
30
|
+
/** The clear-everything key. */
|
|
31
|
+
clear: string;
|
|
32
|
+
/** The space key. */
|
|
33
|
+
space: string;
|
|
34
|
+
/** The confirm/submit key. */
|
|
35
|
+
submit: string;
|
|
36
|
+
/** Accessible name for the keyboard as a whole. */
|
|
37
|
+
keyboard: string;
|
|
39
38
|
};
|
|
40
|
-
|
|
41
39
|
/**
|
|
42
40
|
* An on-screen keyboard for touch devices that have no keyboard of their own.
|
|
43
41
|
*
|
|
@@ -58,71 +56,113 @@ type MnKeyboardLabels = {
|
|
|
58
56
|
* The library ships no user-facing English, so every named key takes its caption
|
|
59
57
|
* from {@link labels}.
|
|
60
58
|
*/
|
|
61
|
-
declare class MnKeyboard {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
59
|
+
export declare class MnKeyboard {
|
|
60
|
+
/** The current text. This component never mutates it — see {@link valueChange}. */
|
|
61
|
+
value: string;
|
|
62
|
+
/** Which keys to render. */
|
|
63
|
+
layout: MnKeyboardLayout;
|
|
64
|
+
/** Whether the keys sit in the page or rise from the bottom as a sheet. */
|
|
65
|
+
presentation: MnKeyboardPresentation;
|
|
66
|
+
/**
|
|
67
|
+
* Captions and accessible names for the named keys.
|
|
68
|
+
*
|
|
69
|
+
* The defaults are language-neutral glyphs rather than words, so a consumer that
|
|
70
|
+
* forgets to translate still ships no English (or Dutch) from the library. The
|
|
71
|
+
* accessible name for the keyboard as a whole has no neutral glyph, so it
|
|
72
|
+
* defaults to empty and the attribute is simply omitted until a host supplies one.
|
|
73
|
+
*/
|
|
74
|
+
labels: MnKeyboardLabels;
|
|
75
|
+
/** Whether letters are rendered (and typed) upper-case. */
|
|
76
|
+
uppercase: boolean;
|
|
77
|
+
/** Whether to offer a space key. Off for a field that can never contain one. */
|
|
78
|
+
allowSpace: boolean;
|
|
79
|
+
/** Whether to offer a submit key. */
|
|
80
|
+
showSubmit: boolean;
|
|
81
|
+
/** Whether the submit key is currently actionable. */
|
|
82
|
+
submitDisabled: boolean;
|
|
83
|
+
/** Hard cap on the text length, or null for none. */
|
|
84
|
+
maxLength: number | null;
|
|
85
|
+
/** Cap on the sheet height as a fraction of the viewport, in vh (sheet presentation only). */
|
|
86
|
+
sheetMaxHeightVh: number;
|
|
87
|
+
/** Emits the full text after every key press, so the host can drive its own field. */
|
|
88
|
+
valueChange: EventEmitter<string>;
|
|
89
|
+
/** Emits when the submit key is pressed. */
|
|
90
|
+
submitted: EventEmitter<string>;
|
|
91
|
+
/** Emits when a sheet-presented keyboard is swiped or tapped away. */
|
|
92
|
+
dismissed: EventEmitter<void>;
|
|
93
|
+
get hostClasses(): string;
|
|
94
|
+
/** The character rows to render, driven by {@link layout}. */
|
|
95
|
+
get rows(): readonly string[][];
|
|
96
|
+
/** Whether the space key should be offered (never on a digits-only pad). */
|
|
97
|
+
get spaceVisible(): boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Appends a character, respecting {@link maxLength}.
|
|
100
|
+
* @param key The character pressed.
|
|
101
|
+
*/
|
|
102
|
+
press(key: string): void;
|
|
103
|
+
/** Appends a space. */
|
|
104
|
+
pressSpace(): void;
|
|
105
|
+
/** Removes the last character. */
|
|
106
|
+
backspace(): void;
|
|
107
|
+
/** Empties the field. */
|
|
108
|
+
clear(): void;
|
|
109
|
+
/** Reports a submit press. The host decides what submitting means. */
|
|
110
|
+
submit(): void;
|
|
111
|
+
/** Reports that a sheet-presented keyboard was dismissed. */
|
|
112
|
+
onDismiss(): void;
|
|
113
|
+
/**
|
|
114
|
+
* Emits a new value, clamped to {@link maxLength}.
|
|
115
|
+
*
|
|
116
|
+
* Clamping happens here rather than in each key handler so a paste-like burst
|
|
117
|
+
* from a scanner and a tapped key are bounded the same way.
|
|
118
|
+
* @param next The candidate text.
|
|
119
|
+
*/
|
|
120
|
+
private emit;
|
|
121
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MnKeyboard, never>;
|
|
122
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MnKeyboard, "mn-keyboard", never, {
|
|
123
|
+
"value": {
|
|
124
|
+
"alias": "value";
|
|
125
|
+
"required": false;
|
|
126
|
+
};
|
|
127
|
+
"layout": {
|
|
128
|
+
"alias": "layout";
|
|
129
|
+
"required": false;
|
|
130
|
+
};
|
|
131
|
+
"presentation": {
|
|
132
|
+
"alias": "presentation";
|
|
133
|
+
"required": false;
|
|
134
|
+
};
|
|
135
|
+
"labels": {
|
|
136
|
+
"alias": "labels";
|
|
137
|
+
"required": false;
|
|
138
|
+
};
|
|
139
|
+
"uppercase": {
|
|
140
|
+
"alias": "uppercase";
|
|
141
|
+
"required": false;
|
|
142
|
+
};
|
|
143
|
+
"allowSpace": {
|
|
144
|
+
"alias": "allowSpace";
|
|
145
|
+
"required": false;
|
|
146
|
+
};
|
|
147
|
+
"showSubmit": {
|
|
148
|
+
"alias": "showSubmit";
|
|
149
|
+
"required": false;
|
|
150
|
+
};
|
|
151
|
+
"submitDisabled": {
|
|
152
|
+
"alias": "submitDisabled";
|
|
153
|
+
"required": false;
|
|
154
|
+
};
|
|
155
|
+
"maxLength": {
|
|
156
|
+
"alias": "maxLength";
|
|
157
|
+
"required": false;
|
|
158
|
+
};
|
|
159
|
+
"sheetMaxHeightVh": {
|
|
160
|
+
"alias": "sheetMaxHeightVh";
|
|
161
|
+
"required": false;
|
|
162
|
+
};
|
|
163
|
+
}, {
|
|
164
|
+
"valueChange": "valueChange";
|
|
165
|
+
"submitted": "submitted";
|
|
166
|
+
"dismissed": "dismissed";
|
|
167
|
+
}, never, never, true, never>;
|
|
168
|
+
}
|