@nanahoshi/mona-ui 0.24.11 → 0.25.0
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/README.md +9 -0
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +11 -10
- package/fesm2022/nanahoshi-mona-ui-avatar.mjs +37 -20
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +239 -47
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +184 -31
- package/fesm2022/nanahoshi-mona-ui-button.mjs +47 -11
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +17 -13
- package/fesm2022/nanahoshi-mona-ui-card.mjs +54 -30
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +27 -22
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +112 -31
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +131 -89
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +59 -19
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +118 -41
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +243 -212
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +155 -86
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +161 -131
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +12 -11
- package/fesm2022/nanahoshi-mona-ui-common.mjs +18 -1
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +25 -24
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +202 -33
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +31 -10
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +1 -1
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-DhKLnW06.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-2tVhD2hK.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-voGbKOiB.mjs → nanahoshi-mona-ui-grid-grid-list.component-BAN70Wcn.mjs} +4 -4
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-HQ1Kv6R9.mjs → nanahoshi-mona-ui-grid-grid-row.component-C_kCaA5b.mjs} +7 -7
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-PNLJFcuH.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-BsNfrAHz.mjs} +4 -4
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BO19AVwC.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CEfVa7eo.mjs} +27 -29
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +39 -4
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +5 -5
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +7 -7
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +183 -47
- package/fesm2022/nanahoshi-mona-ui-label.mjs +111 -15
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +14 -13
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +13 -12
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +192 -56
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +3 -1
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +60 -29
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +334 -37
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +84 -30
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +274 -108
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +127 -37
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +595 -170
- package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +3 -2
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +323 -166
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +167 -82
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +3 -3
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +273 -165
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +219 -132
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +84 -32
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +337 -116
- package/fesm2022/nanahoshi-mona-ui-text-area.mjs +10 -12
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +21 -8
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +444 -88
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +15 -14
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +17 -3
- package/fesm2022/nanahoshi-mona-ui-window.mjs +1 -1
- package/i18n/catalogs/en-US.messages.json +33 -4
- package/locales/ar-sa/ar-sa.messages.json +33 -4
- package/locales/de-de/de-de.messages.json +33 -4
- package/locales/es-es/es-es.messages.json +33 -4
- package/locales/fr-fr/fr-fr.messages.json +33 -4
- package/locales/id-id/id-id.messages.json +33 -4
- package/locales/it-it/it-it.messages.json +33 -4
- package/locales/ja-jp/ja-jp.messages.json +33 -4
- package/locales/ko-kr/ko-kr.messages.json +33 -4
- package/locales/pt-br/pt-br.messages.json +33 -4
- package/locales/ru-ru/ru-ru.messages.json +33 -4
- package/locales/tr-tr/tr-tr.messages.json +33 -4
- package/locales/zh-cn/zh-cn.messages.json +33 -4
- package/locales/zh-tw/zh-tw.messages.json +33 -4
- package/package.json +2 -1
- package/styles.css +156 -0
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +1 -0
- package/types/nanahoshi-mona-ui-avatar.d.ts +18 -11
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +62 -14
- package/types/nanahoshi-mona-ui-button-group.d.ts +86 -16
- package/types/nanahoshi-mona-ui-button.d.ts +26 -3
- package/types/nanahoshi-mona-ui-calendar.d.ts +1 -0
- package/types/nanahoshi-mona-ui-card.d.ts +22 -6
- package/types/nanahoshi-mona-ui-check-box.d.ts +54 -13
- package/types/nanahoshi-mona-ui-chip.d.ts +31 -18
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +21 -5
- package/types/nanahoshi-mona-ui-collapsible.d.ts +20 -11
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +62 -36
- package/types/nanahoshi-mona-ui-color-palette.d.ts +65 -27
- package/types/nanahoshi-mona-ui-color-picker.d.ts +64 -23
- package/types/nanahoshi-mona-ui-combo-box.d.ts +1 -0
- package/types/nanahoshi-mona-ui-common.d.ts +28 -2
- package/types/nanahoshi-mona-ui-date-picker.d.ts +1 -0
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +1 -0
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +1 -0
- package/types/nanahoshi-mona-ui-editor.d.ts +1 -0
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +51 -7
- package/types/nanahoshi-mona-ui-fieldset.d.ts +18 -4
- package/types/nanahoshi-mona-ui-grid.d.ts +0 -1
- package/types/nanahoshi-mona-ui-i18n.d.ts +38 -3
- package/types/nanahoshi-mona-ui-internal.d.ts +95 -14
- package/types/nanahoshi-mona-ui-label.d.ts +17 -2
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +29 -0
- package/types/nanahoshi-mona-ui-multi-select.d.ts +1 -0
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +1 -0
- package/types/nanahoshi-mona-ui-otp-input.d.ts +49 -12
- package/types/nanahoshi-mona-ui-placeholder.d.ts +2 -1
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +21 -9
- package/types/nanahoshi-mona-ui-radio-button.d.ts +165 -20
- package/types/nanahoshi-mona-ui-rating.d.ts +21 -6
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +59 -27
- package/types/nanahoshi-mona-ui-segmented.d.ts +52 -24
- package/types/nanahoshi-mona-ui-sidebar.d.ts +104 -41
- package/types/nanahoshi-mona-ui-skeleton.d.ts +1 -1
- package/types/nanahoshi-mona-ui-slider.d.ts +99 -35
- package/types/nanahoshi-mona-ui-spinner.d.ts +9 -5
- package/types/nanahoshi-mona-ui-splitter.d.ts +31 -10
- package/types/nanahoshi-mona-ui-stepper.d.ts +58 -12
- package/types/nanahoshi-mona-ui-switch.d.ts +32 -10
- package/types/nanahoshi-mona-ui-tabs.d.ts +75 -20
- package/types/nanahoshi-mona-ui-text-area.d.ts +7 -7
- package/types/nanahoshi-mona-ui-text-box.d.ts +2 -0
- package/types/nanahoshi-mona-ui-theme.d.ts +392 -15
- package/types/nanahoshi-mona-ui-time-picker.d.ts +1 -0
- package/types/nanahoshi-mona-ui-time-selector.d.ts +1 -0
- package/types/nanahoshi-mona-ui-tooltip.d.ts +7 -1
|
@@ -26,10 +26,12 @@ type SwitchVariantInputs = SwitchBaseVariantInput & SwitchHandleVariantInput & S
|
|
|
26
26
|
declare class SwitchComponent implements SwitchVariantInputs, FormCheckboxControl {
|
|
27
27
|
#private;
|
|
28
28
|
protected readonly classes: _angular_core.Signal<string>;
|
|
29
|
+
protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
29
30
|
protected readonly handleClasses: _angular_core.Signal<string>;
|
|
30
31
|
protected readonly handleContentTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
31
32
|
protected readonly invalidState: _angular_core.Signal<boolean>;
|
|
32
33
|
protected readonly labelClasses: _angular_core.Signal<string>;
|
|
34
|
+
protected readonly labelledBy: _angular_core.Signal<string | null>;
|
|
33
35
|
protected readonly offLabelTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
34
36
|
protected readonly onLabelTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
35
37
|
/**
|
|
@@ -52,13 +54,13 @@ declare class SwitchComponent implements SwitchVariantInputs, FormCheckboxContro
|
|
|
52
54
|
* @description Renders the component with reduced visual emphasis and removes pointer interaction.
|
|
53
55
|
* @default false
|
|
54
56
|
*/
|
|
55
|
-
readonly disabled: _angular_core.
|
|
57
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
56
58
|
/**
|
|
57
|
-
* @description Marks the switch as invalid. When bound to a signal form field via `[
|
|
58
|
-
*
|
|
59
|
+
* @description Marks the switch as invalid. When bound to a signal form field via `[formField]`, this is written by
|
|
60
|
+
* the `FormField` directive.
|
|
59
61
|
* @default false
|
|
60
62
|
*/
|
|
61
|
-
readonly invalid: _angular_core.
|
|
63
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
62
64
|
/**
|
|
63
65
|
* @description Label displayed inside the switch track when it is in the off state.
|
|
64
66
|
* @default ""
|
|
@@ -69,11 +71,17 @@ declare class SwitchComponent implements SwitchVariantInputs, FormCheckboxContro
|
|
|
69
71
|
* @default ""
|
|
70
72
|
*/
|
|
71
73
|
readonly onLabel: _angular_core.InputSignal<string>;
|
|
74
|
+
/**
|
|
75
|
+
* @description Prevents value changes while the control stays focusable and readable. When bound to a signal form
|
|
76
|
+
* field via `[formField]`, this is written by the `FormField` directive.
|
|
77
|
+
* @default false
|
|
78
|
+
*/
|
|
79
|
+
readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
72
80
|
/**
|
|
73
81
|
* @description Marks the switch as required for form validation.
|
|
74
82
|
* @default false
|
|
75
83
|
*/
|
|
76
|
-
readonly required: _angular_core.
|
|
84
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
77
85
|
/**
|
|
78
86
|
* @description Border-radius preset applied to the component.
|
|
79
87
|
* @default "full"
|
|
@@ -84,28 +92,42 @@ declare class SwitchComponent implements SwitchVariantInputs, FormCheckboxContro
|
|
|
84
92
|
* @default "medium"
|
|
85
93
|
*/
|
|
86
94
|
readonly size: _angular_core.InputSignal<"large" | "medium" | "small" | null | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* @description Tab index of the switch while it's enabled.
|
|
97
|
+
* @default 0
|
|
98
|
+
*/
|
|
99
|
+
readonly tabindex: _angular_core.InputSignalWithTransform<number, string | number>;
|
|
87
100
|
/**
|
|
88
101
|
* @description Emitted when the switch loses focus or its value changes.
|
|
89
102
|
*/
|
|
90
103
|
readonly touch: _angular_core.OutputEmitterRef<void>;
|
|
91
104
|
/**
|
|
92
|
-
* @description Marks the switch as touched. When bound to a signal form field via `[
|
|
93
|
-
*
|
|
105
|
+
* @description Marks the switch as touched. When bound to a signal form field via `[formField]`, this is written by
|
|
106
|
+
* the `FormField` directive.
|
|
94
107
|
* @default false
|
|
95
108
|
*/
|
|
96
|
-
readonly touched: _angular_core.
|
|
109
|
+
readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
97
110
|
/**
|
|
98
111
|
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
99
112
|
* @default ""
|
|
100
113
|
*/
|
|
101
114
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
102
115
|
constructor();
|
|
116
|
+
/**
|
|
117
|
+
* @description Moves focus to the switch.
|
|
118
|
+
* @param options Options passed to the native `focus()` call, such as `preventScroll`.
|
|
119
|
+
*/
|
|
120
|
+
focus(options?: FocusOptions): void;
|
|
103
121
|
protected onBlur(): void;
|
|
104
122
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SwitchComponent, never>;
|
|
105
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SwitchComponent, "mona-switch", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "offLabel": { "alias": "offLabel"; "required": false; "isSignal": true; }; "onLabel": { "alias": "onLabel"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "touch": "touch"; }, ["handleContentTemplate", "offLabelTemplate", "onLabelTemplate"], never, true, never>;
|
|
123
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SwitchComponent, "mona-switch", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "offLabel": { "alias": "offLabel"; "required": false; "isSignal": true; }; "onLabel": { "alias": "onLabel"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "touch": "touch"; }, ["handleContentTemplate", "offLabelTemplate", "onLabelTemplate"], never, true, never>;
|
|
106
124
|
}
|
|
107
125
|
|
|
126
|
+
interface SwitchHandleContentTemplateContext {
|
|
127
|
+
readonly $implicit: boolean;
|
|
128
|
+
}
|
|
108
129
|
declare class SwitchHandleContentTemplateDirective {
|
|
130
|
+
static ngTemplateContextGuard(_directive: SwitchHandleContentTemplateDirective, _context: unknown): _context is SwitchHandleContentTemplateContext;
|
|
109
131
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SwitchHandleContentTemplateDirective, never>;
|
|
110
132
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SwitchHandleContentTemplateDirective, "ng-template[monaSwitchHandleContentTemplate]", never, {}, {}, never, never, true, never>;
|
|
111
133
|
}
|
|
@@ -121,4 +143,4 @@ declare class SwitchOnLabelTemplateDirective {
|
|
|
121
143
|
}
|
|
122
144
|
|
|
123
145
|
export { SwitchComponent, SwitchHandleContentTemplateDirective, SwitchOffLabelTemplateDirective, SwitchOnLabelTemplateDirective };
|
|
124
|
-
export type { SwitchVariantProps };
|
|
146
|
+
export type { SwitchHandleContentTemplateContext, SwitchVariantProps };
|
|
@@ -85,16 +85,21 @@ type TabScrollDirection = "previous" | "next";
|
|
|
85
85
|
|
|
86
86
|
declare class TabListComponent implements TabListVariantInput {
|
|
87
87
|
#private;
|
|
88
|
-
protected readonly isRtl: _angular_core.Signal<boolean>;
|
|
89
88
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
89
|
+
protected readonly closeButtonClass: _angular_core.Signal<string>;
|
|
90
|
+
protected readonly hasClosableTabs: _angular_core.Signal<boolean>;
|
|
91
|
+
protected readonly isRtl: _angular_core.Signal<boolean>;
|
|
90
92
|
protected readonly listClass: _angular_core.Signal<string>;
|
|
91
93
|
protected readonly listWrapperClass: _angular_core.Signal<string>;
|
|
92
94
|
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaTabsMessages>;
|
|
93
95
|
protected readonly orientation: _angular_core.Signal<TabOrientation>;
|
|
94
96
|
protected readonly overflowControlsVisible: _angular_core.WritableSignal<boolean>;
|
|
95
97
|
protected readonly scrollButtonClass: _angular_core.Signal<string>;
|
|
98
|
+
protected readonly tabClass: _angular_core.Signal<string>;
|
|
99
|
+
protected readonly tabElements: _angular_core.Signal<readonly ElementRef<HTMLElement>[]>;
|
|
96
100
|
protected readonly tabListElement: _angular_core.Signal<ElementRef<HTMLUListElement>>;
|
|
97
|
-
|
|
101
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
102
|
+
readonly ariaLabelledBy: _angular_core.InputSignal<string>;
|
|
98
103
|
readonly closable: _angular_core.InputSignal<boolean>;
|
|
99
104
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
100
105
|
/**
|
|
@@ -113,27 +118,46 @@ declare class TabListComponent implements TabListVariantInput {
|
|
|
113
118
|
readonly tabSelect: _angular_core.OutputEmitterRef<TabSelectEvent>;
|
|
114
119
|
constructor();
|
|
115
120
|
focusSelectedTab(): void;
|
|
121
|
+
protected onFocusIn(event: FocusEvent): void;
|
|
122
|
+
protected onFocusOut(event: FocusEvent): void;
|
|
116
123
|
protected onKeydown(event: KeyboardEvent): void;
|
|
117
|
-
protected onTabClick(tab: TabItem,
|
|
124
|
+
protected onTabClick(tab: TabItem, event: MouseEvent): void;
|
|
118
125
|
protected onTabClose(tab: TabItem, event: MouseEvent): void;
|
|
119
126
|
protected startContinuousScroll(event: PointerEvent, element: HTMLElement, direction: TabScrollDirection): void;
|
|
120
127
|
protected startScrolling(element: HTMLElement, direction: TabScrollDirection, type: "single" | "continuous"): void;
|
|
121
128
|
protected stopScrolling(): void;
|
|
129
|
+
/**
|
|
130
|
+
* Selects the tab and moves focus to it. A vetoed selection still moves focus, so the keyboard can get past a tab it
|
|
131
|
+
* isn't allowed to select.
|
|
132
|
+
*/
|
|
122
133
|
private activateTab;
|
|
134
|
+
private adjacentEnabledTab;
|
|
123
135
|
private emitTabClose;
|
|
124
136
|
private emitTabSelect;
|
|
125
137
|
private focusTab;
|
|
126
138
|
private getNavigationDirection;
|
|
127
|
-
private handleKeyboardEvents;
|
|
128
139
|
private handleTabKey;
|
|
140
|
+
private handleTabStripKey;
|
|
141
|
+
private isTabEnabled;
|
|
129
142
|
private performScroll;
|
|
143
|
+
private restoreFocus;
|
|
144
|
+
/**
|
|
145
|
+
* Scrolls only the strip. `scrollIntoView` would also scroll the page, which a selection made by code, or the first
|
|
146
|
+
* render, has no business doing.
|
|
147
|
+
*/
|
|
148
|
+
private scrollTabIntoStrip;
|
|
130
149
|
private selectTab;
|
|
131
|
-
private setupKeyboardNavigation;
|
|
132
150
|
private setupResizeObserver;
|
|
133
151
|
private setupScrolling;
|
|
152
|
+
private tabElementOf;
|
|
153
|
+
/**
|
|
154
|
+
* The tab a key press applies to: the one focus is in, which may not be the selected one after a vetoed selection.
|
|
155
|
+
* Keys pressed anywhere else in the strip, such as on a close button, belong to no tab.
|
|
156
|
+
*/
|
|
157
|
+
private tabFromEvent;
|
|
134
158
|
private updateScrollVisibility;
|
|
135
159
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabListComponent, never>;
|
|
136
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabListComponent, "mona-tab-list", never, { "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": true; "isSignal": true; }; "selectedTabId": { "alias": "selectedTabId"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": true; "isSignal": true; }; "tabList": { "alias": "tabList"; "required": true; "isSignal": true; }; }, { "selectedTabId": "selectedTabIdChange"; "tabClose": "tabClose"; "tabSelect": "tabSelect"; }, never, never, true, never>;
|
|
160
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabListComponent, "mona-tab-list", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": true; "isSignal": true; }; "selectedTabId": { "alias": "selectedTabId"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": true; "isSignal": true; }; "tabList": { "alias": "tabList"; "required": true; "isSignal": true; }; }, { "selectedTabId": "selectedTabIdChange"; "tabClose": "tabClose"; "tabSelect": "tabSelect"; }, never, never, true, never>;
|
|
137
161
|
}
|
|
138
162
|
|
|
139
163
|
declare class TabComponent {
|
|
@@ -141,18 +165,21 @@ declare class TabComponent {
|
|
|
141
165
|
protected readonly contentTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
142
166
|
protected readonly titleTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
143
167
|
/**
|
|
144
|
-
* @description Displays a close button on this tab.
|
|
168
|
+
* @description Displays a close button on this tab. Turning it on here shows the button even when the parent
|
|
169
|
+
* `mona-tabs` has `closable` off; turning it off here doesn't hide a button the parent asked for.
|
|
145
170
|
* @default false
|
|
146
171
|
*/
|
|
147
|
-
readonly closable: _angular_core.
|
|
172
|
+
readonly closable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
148
173
|
/**
|
|
149
|
-
* @description Renders this tab with reduced visual emphasis and removes pointer and keyboard interaction.
|
|
150
|
-
*
|
|
174
|
+
* @description Renders this tab with reduced visual emphasis and removes pointer and keyboard interaction. A tab is
|
|
175
|
+
* disabled when this or the parent `mona-tabs` component's `disabled` input is on.
|
|
151
176
|
* @default false
|
|
152
177
|
*/
|
|
153
|
-
readonly disabled: _angular_core.
|
|
178
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
154
179
|
/**
|
|
155
|
-
* @description Whether the tab is selected.
|
|
180
|
+
* @description Whether the tab is selected. Setting it to `true` selects the tab unless it's disabled, and it
|
|
181
|
+
* follows the selection, so `[(selected)]` stays current. Setting it to `false` doesn't clear the selection, because
|
|
182
|
+
* a group of tabs always keeps one selected.
|
|
156
183
|
* @default false
|
|
157
184
|
*/
|
|
158
185
|
readonly selected: _angular_core.ModelSignal<boolean>;
|
|
@@ -161,12 +188,12 @@ declare class TabComponent {
|
|
|
161
188
|
* @default ""
|
|
162
189
|
*/
|
|
163
190
|
readonly title: _angular_core.InputSignal<string>;
|
|
164
|
-
get tabItem(): TabItem;
|
|
165
191
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabComponent, never>;
|
|
166
192
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabComponent, "mona-tab", never, { "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; }, ["contentTemplate", "titleTemplate"], never, true, never>;
|
|
167
193
|
}
|
|
168
194
|
|
|
169
195
|
declare class TabsComponent implements TabsVariantInput {
|
|
196
|
+
#private;
|
|
170
197
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
171
198
|
protected readonly contentClass: _angular_core.Signal<string>;
|
|
172
199
|
protected readonly selectedTabId: _angular_core.WritableSignal<string | null>;
|
|
@@ -174,36 +201,55 @@ declare class TabsComponent implements TabsVariantInput {
|
|
|
174
201
|
protected readonly tabListComponent: _angular_core.Signal<TabListComponent>;
|
|
175
202
|
protected readonly tabs: _angular_core.Signal<readonly TabComponent[]>;
|
|
176
203
|
/**
|
|
177
|
-
* @description
|
|
204
|
+
* @description Accessible name for the tab list.
|
|
205
|
+
* @default ""
|
|
206
|
+
*/
|
|
207
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
208
|
+
/**
|
|
209
|
+
* @description The id of an element that names the tab list. Takes precedence over `aria-label`.
|
|
210
|
+
* @default ""
|
|
211
|
+
*/
|
|
212
|
+
readonly ariaLabelledBy: _angular_core.InputSignal<string>;
|
|
213
|
+
/**
|
|
214
|
+
* @description Displays a close button on each tab. A tab's own `closable` can add a button, not remove this one.
|
|
178
215
|
* @default false
|
|
179
216
|
*/
|
|
180
|
-
readonly closable: _angular_core.
|
|
217
|
+
readonly closable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
181
218
|
/**
|
|
182
219
|
* @description Renders every tab with reduced visual emphasis and removes pointer and keyboard interaction.
|
|
183
220
|
* @default false
|
|
184
221
|
*/
|
|
185
|
-
readonly disabled: _angular_core.
|
|
222
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
186
223
|
/**
|
|
187
224
|
* @description Keeps a tab's content in the DOM after it is deselected instead of removing it.
|
|
188
225
|
* @default true
|
|
189
226
|
*/
|
|
190
|
-
readonly keepTabContent: _angular_core.
|
|
227
|
+
readonly keepTabContent: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
191
228
|
/**
|
|
192
229
|
* @description Placement of the tab list relative to the tab content.
|
|
193
230
|
* @default "top"
|
|
194
231
|
*/
|
|
195
232
|
readonly position: _angular_core.InputSignal<"top" | "bottom" | "left" | "right" | null | undefined>;
|
|
233
|
+
/**
|
|
234
|
+
* @description The zero-based index of the selected tab. Writing it selects that tab, unless it's disabled or out of
|
|
235
|
+
* range, in which case the value goes back to the selected tab's index. It also changes when the component moves the
|
|
236
|
+
* selection itself, such as when the selected tab is removed.
|
|
237
|
+
* @default 0
|
|
238
|
+
*/
|
|
239
|
+
readonly selectedIndex: _angular_core.ModelSignal<number>;
|
|
196
240
|
/**
|
|
197
241
|
* @description Size preset controlling the tabs' dimensions.
|
|
198
242
|
* @default "medium"
|
|
199
243
|
*/
|
|
200
244
|
readonly size: _angular_core.InputSignal<"small" | "medium" | "large" | null | undefined>;
|
|
201
245
|
/**
|
|
202
|
-
* @description Emitted with a {@link TabCloseEvent} when a
|
|
246
|
+
* @description Emitted with a {@link TabCloseEvent} when a close is requested. The component doesn't remove the tab:
|
|
247
|
+
* remove it from whatever renders the `mona-tab` elements.
|
|
203
248
|
*/
|
|
204
249
|
readonly tabClose: _angular_core.OutputEmitterRef<TabCloseEvent>;
|
|
205
250
|
/**
|
|
206
|
-
* @description Emitted with a {@link TabSelectEvent}
|
|
251
|
+
* @description Emitted with a {@link TabSelectEvent} before a click or key selects a tab. This event is preventable.
|
|
252
|
+
* It doesn't fire for selections made through `selectedIndex` or `selected`, or when the selected tab is removed.
|
|
207
253
|
*/
|
|
208
254
|
readonly tabSelect: _angular_core.OutputEmitterRef<TabSelectEvent>;
|
|
209
255
|
/**
|
|
@@ -211,9 +257,18 @@ declare class TabsComponent implements TabsVariantInput {
|
|
|
211
257
|
* @default ""
|
|
212
258
|
*/
|
|
213
259
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
260
|
+
constructor();
|
|
214
261
|
protected handlePanelKeyDown(event: KeyboardEvent): void;
|
|
262
|
+
private applyRequestedIndex;
|
|
263
|
+
private reportIndex;
|
|
264
|
+
/**
|
|
265
|
+
* Brings the three views of the selection together. A tab newly flagged `selected` from outside wins, and the first
|
|
266
|
+
* one wins when there are several. Every tab's `selected` and the index are then written to match, so a flag that was
|
|
267
|
+
* already seen, or one this method wrote, can't take the selection back.
|
|
268
|
+
*/
|
|
269
|
+
private syncSelection;
|
|
215
270
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabsComponent, never>;
|
|
216
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabsComponent, "mona-tabs", never, { "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "keepTabContent": { "alias": "keepTabContent"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "tabClose": "tabClose"; "tabSelect": "tabSelect"; }, ["tabs"], never, true, never>;
|
|
271
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabsComponent, "mona-tabs", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "keepTabContent": { "alias": "keepTabContent"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "selectedIndex": "selectedIndexChange"; "tabClose": "tabClose"; "tabSelect": "tabSelect"; }, ["tabs"], never, true, never>;
|
|
217
272
|
}
|
|
218
273
|
|
|
219
274
|
declare const TABS_DEFAULT_MESSAGES: MonaTabsMessages;
|
|
@@ -12,28 +12,28 @@ type TextAreaVariantInput = VariantInputs<TextAreaVariantProps>;
|
|
|
12
12
|
declare class TextAreaDirective implements TextAreaVariantInput {
|
|
13
13
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
14
14
|
protected readonly inputInvalid: _angular_core.Signal<boolean>;
|
|
15
|
+
/**
|
|
16
|
+
* @description Marks the textarea as invalid, triggering error border and ring styling.
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
15
20
|
/**
|
|
16
21
|
* @description Sets the border radius of the textarea.
|
|
17
22
|
* @default "medium"
|
|
18
23
|
*/
|
|
19
24
|
readonly rounded: _angular_core.InputSignal<"large" | "medium" | "none" | "small" | null | undefined>;
|
|
20
|
-
/**
|
|
21
|
-
* @description Marks the textarea as invalid, triggering error border and ring styling.
|
|
22
|
-
* @default false
|
|
23
|
-
*/
|
|
24
|
-
readonly invalid: _angular_core.InputSignal<boolean>;
|
|
25
25
|
/**
|
|
26
26
|
* @description Marks the textarea as touched. Error styling is only shown when both `invalid` and `touched` are `true`.
|
|
27
27
|
* @default false
|
|
28
28
|
*/
|
|
29
|
-
readonly touched: _angular_core.
|
|
29
|
+
readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
30
30
|
/**
|
|
31
31
|
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
32
32
|
* @default ""
|
|
33
33
|
*/
|
|
34
34
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
35
35
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextAreaDirective, never>;
|
|
36
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TextAreaDirective, "textarea[monaTextArea]", never, { "
|
|
36
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TextAreaDirective, "textarea[monaTextArea]", never, { "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export { TextAreaDirective };
|
|
@@ -24,8 +24,10 @@ type InputVariantInput = VariantInputs<InputVariantProps>;
|
|
|
24
24
|
declare class TextBoxComponent implements TextBoxVariantInput, FormValueControl<string> {
|
|
25
25
|
#private;
|
|
26
26
|
protected readonly classes: _angular_core.Signal<string>;
|
|
27
|
+
protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
27
28
|
protected readonly inputRef: _angular_core.Signal<ElementRef<HTMLInputElement>>;
|
|
28
29
|
protected readonly invalidInput: _angular_core.Signal<boolean>;
|
|
30
|
+
protected readonly labelledBy: _angular_core.Signal<string | null>;
|
|
29
31
|
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaTextBoxMessages>;
|
|
30
32
|
protected readonly prefixTemplateList: _angular_core.Signal<readonly TemplateRef<any>[]>;
|
|
31
33
|
protected readonly showClearButton: _angular_core.Signal<boolean>;
|