mn-angular-lib 2.0.34 → 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.
Files changed (52) hide show
  1. package/fesm2022/mn-angular-lib-alert.mjs +515 -527
  2. package/fesm2022/mn-angular-lib-alert.mjs.map +1 -1
  3. package/fesm2022/mn-angular-lib-bottom-sheet.mjs +264 -357
  4. package/fesm2022/mn-angular-lib-bottom-sheet.mjs.map +1 -1
  5. package/fesm2022/mn-angular-lib-button.mjs +819 -382
  6. package/fesm2022/mn-angular-lib-button.mjs.map +1 -1
  7. package/fesm2022/mn-angular-lib-calendar-core.mjs +240 -365
  8. package/fesm2022/mn-angular-lib-calendar-core.mjs.map +1 -1
  9. package/fesm2022/mn-angular-lib-calendar.mjs +1691 -1545
  10. package/fesm2022/mn-angular-lib-calendar.mjs.map +1 -1
  11. package/fesm2022/mn-angular-lib-collection.mjs +2367 -2796
  12. package/fesm2022/mn-angular-lib-collection.mjs.map +1 -1
  13. package/fesm2022/mn-angular-lib-core.mjs +693 -1241
  14. package/fesm2022/mn-angular-lib-core.mjs.map +1 -1
  15. package/fesm2022/mn-angular-lib-display.mjs +679 -712
  16. package/fesm2022/mn-angular-lib-display.mjs.map +1 -1
  17. package/fesm2022/mn-angular-lib-forms.mjs +3671 -4647
  18. package/fesm2022/mn-angular-lib-forms.mjs.map +1 -1
  19. package/fesm2022/mn-angular-lib-keyboard.mjs +221 -190
  20. package/fesm2022/mn-angular-lib-keyboard.mjs.map +1 -1
  21. package/fesm2022/mn-angular-lib-modal-core.mjs +711 -896
  22. package/fesm2022/mn-angular-lib-modal-core.mjs.map +1 -1
  23. package/fesm2022/mn-angular-lib-modal-ui.mjs +2089 -2035
  24. package/fesm2022/mn-angular-lib-modal-ui.mjs.map +1 -1
  25. package/fesm2022/mn-angular-lib-modal.mjs +76 -121
  26. package/fesm2022/mn-angular-lib-modal.mjs.map +1 -1
  27. package/fesm2022/mn-angular-lib-rich-text-editor.mjs +289 -277
  28. package/fesm2022/mn-angular-lib-rich-text-editor.mjs.map +1 -1
  29. package/fesm2022/mn-angular-lib-segmented.mjs +189 -241
  30. package/fesm2022/mn-angular-lib-segmented.mjs.map +1 -1
  31. package/fesm2022/mn-angular-lib-tab.mjs +409 -642
  32. package/fesm2022/mn-angular-lib-tab.mjs.map +1 -1
  33. package/fesm2022/mn-angular-lib.mjs +16 -29
  34. package/package.json +1 -1
  35. package/types/mn-angular-lib-alert.d.ts +239 -241
  36. package/types/mn-angular-lib-bottom-sheet.d.ts +190 -150
  37. package/types/mn-angular-lib-button.d.ts +319 -317
  38. package/types/mn-angular-lib-calendar-core.d.ts +199 -209
  39. package/types/mn-angular-lib-calendar.d.ts +656 -511
  40. package/types/mn-angular-lib-collection.d.ts +1649 -1585
  41. package/types/mn-angular-lib-core.d.ts +524 -535
  42. package/types/mn-angular-lib-display.d.ts +946 -886
  43. package/types/mn-angular-lib-forms.d.ts +3012 -3013
  44. package/types/mn-angular-lib-keyboard.d.ts +125 -85
  45. package/types/mn-angular-lib-modal-core.d.ts +978 -994
  46. package/types/mn-angular-lib-modal-ui.d.ts +541 -493
  47. package/types/mn-angular-lib-modal.d.ts +24 -27
  48. package/types/mn-angular-lib-rich-text-editor.d.ts +131 -98
  49. package/types/mn-angular-lib-segmented.d.ts +354 -341
  50. package/types/mn-angular-lib-tab.d.ts +345 -336
  51. package/types/mn-angular-lib.d.ts +16 -16
  52. package/fesm2022/mn-angular-lib.mjs.map +0 -1
@@ -1,6 +1,5 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter } from '@angular/core';
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
- /** The backspace key (also its accessible name). */
30
- backspace: string;
31
- /** The clear-everything key. */
32
- clear: string;
33
- /** The space key. */
34
- space: string;
35
- /** The confirm/submit key. */
36
- submit: string;
37
- /** Accessible name for the keyboard as a whole. */
38
- keyboard: string;
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
- /** The current text. This component never mutates it — see {@link valueChange}. */
63
- value: string;
64
- /** Which keys to render. */
65
- layout: MnKeyboardLayout;
66
- /** Whether the keys sit in the page or rise from the bottom as a sheet. */
67
- presentation: MnKeyboardPresentation;
68
- /**
69
- * Captions and accessible names for the named keys.
70
- *
71
- * The defaults are language-neutral glyphs rather than words, so a consumer that
72
- * forgets to translate still ships no English (or Dutch) from the library. The
73
- * accessible name for the keyboard as a whole has no neutral glyph, so it
74
- * defaults to empty and the attribute is simply omitted until a host supplies one.
75
- */
76
- labels: MnKeyboardLabels;
77
- /** Whether letters are rendered (and typed) upper-case. */
78
- uppercase: boolean;
79
- /** Whether to offer a space key. Off for a field that can never contain one. */
80
- allowSpace: boolean;
81
- /** Whether to offer a submit key. */
82
- showSubmit: boolean;
83
- /** Whether the submit key is currently actionable. */
84
- submitDisabled: boolean;
85
- /** Hard cap on the text length, or null for none. */
86
- maxLength: number | null;
87
- /** Cap on the sheet height as a fraction of the viewport, in vh (sheet presentation only). */
88
- sheetMaxHeightVh: number;
89
- /** Emits the full text after every key press, so the host can drive its own field. */
90
- valueChange: EventEmitter<string>;
91
- /** Emits when the submit key is pressed. */
92
- submitted: EventEmitter<string>;
93
- /** Emits when a sheet-presented keyboard is swiped or tapped away. */
94
- dismissed: EventEmitter<void>;
95
- get hostClasses(): string;
96
- /** The character rows to render, driven by {@link layout}. */
97
- get rows(): readonly string[][];
98
- /** Whether the space key should be offered (never on a digits-only pad). */
99
- get spaceVisible(): boolean;
100
- /**
101
- * Appends a character, respecting {@link maxLength}.
102
- * @param key The character pressed.
103
- */
104
- press(key: string): void;
105
- /** Appends a space. */
106
- pressSpace(): void;
107
- /** Removes the last character. */
108
- backspace(): void;
109
- /** Empties the field. */
110
- clear(): void;
111
- /** Reports a submit press. The host decides what submitting means. */
112
- submit(): void;
113
- /** Reports that a sheet-presented keyboard was dismissed. */
114
- onDismiss(): void;
115
- /**
116
- * Emits a new value, clamped to {@link maxLength}.
117
- *
118
- * Clamping happens here rather than in each key handler so a paste-like burst
119
- * from a scanner and a tapped key are bounded the same way.
120
- * @param next The candidate text.
121
- */
122
- private emit;
123
- static ɵfac: i0.ɵɵFactoryDeclaration<MnKeyboard, never>;
124
- static ɵcmp: i0.ɵɵComponentDeclaration<MnKeyboard, "mn-keyboard", never, { "value": { "alias": "value"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "uppercase": { "alias": "uppercase"; "required": false; }; "allowSpace": { "alias": "allowSpace"; "required": false; }; "showSubmit": { "alias": "showSubmit"; "required": false; }; "submitDisabled": { "alias": "submitDisabled"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "sheetMaxHeightVh": { "alias": "sheetMaxHeightVh"; "required": false; }; }, { "valueChange": "valueChange"; "submitted": "submitted"; "dismissed": "dismissed"; }, never, never, true, never>;
125
- }
126
-
127
- export { MnKeyboard };
128
- export type { MnKeyboardLabels, MnKeyboardLayout, MnKeyboardPresentation };
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
+ }