@nanahoshi/mona-ui 0.18.5 → 0.19.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 +71 -13
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +11 -3
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +17 -9
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +16 -7
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +122 -48
- package/fesm2022/nanahoshi-mona-ui-card.mjs +22 -14
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +78 -18
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +199 -77
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +1 -2
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +23 -5
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +49 -28
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +42 -26
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +11 -3
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +28 -16
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +74 -51
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +57 -25
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +13 -5
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +17 -6
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +178 -59
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +137 -54
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-cell.component-WEDbZ5vy.mjs → nanahoshi-mona-ui-grid-grid-footer-cell.component-Bg7rckst.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-table-cell.directive-ibH5osCg.mjs → nanahoshi-mona-ui-grid-grid-footer-table-cell.directive-BSSpaCLL.mjs} +2 -2
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-D9AwQFDV.mjs +145 -0
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-toggle.component-hc-LeIb0.mjs → nanahoshi-mona-ui-grid-grid-toggle.component-Byb9iTes.mjs} +21 -17
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-DYajpOb9.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-CBmdtrXm.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-Pm8Fbp6M.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-DPmJmCap.mjs} +90 -42
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-i18n.mjs +1168 -0
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +12 -4
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +48 -21
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +33 -18
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +10 -10
- package/fesm2022/nanahoshi-mona-ui-list.mjs +2 -0
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +29 -16
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +12 -3
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +23 -18
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +211 -106
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +14 -6
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +46 -19
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +57 -46
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +35 -15
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +38 -17
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +25 -7
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +431 -101
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +26 -8
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +222 -28
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +91 -36
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +34 -15
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +39 -23
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +50 -25
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +32 -14
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +9 -9
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +74 -56
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +16 -8
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +33 -19
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +66 -27
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +23 -15
- package/fesm2022/nanahoshi-mona-ui-window.mjs +71 -40
- package/i18n/package.json +4 -0
- package/package.json +5 -1
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +6 -1
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +9 -3
- package/types/nanahoshi-mona-ui-button-group.d.ts +9 -3
- package/types/nanahoshi-mona-ui-calendar.d.ts +13 -3
- package/types/nanahoshi-mona-ui-card.d.ts +8 -2
- package/types/nanahoshi-mona-ui-chart.d.ts +10 -1
- package/types/nanahoshi-mona-ui-chip.d.ts +14 -5
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +6 -1
- package/types/nanahoshi-mona-ui-color-palette.d.ts +21 -10
- package/types/nanahoshi-mona-ui-color-picker.d.ts +30 -20
- package/types/nanahoshi-mona-ui-combo-box.d.ts +6 -1
- package/types/nanahoshi-mona-ui-date-picker.d.ts +7 -2
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +33 -8
- package/types/nanahoshi-mona-ui-dialog.d.ts +16 -7
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +6 -1
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +4 -1
- package/types/nanahoshi-mona-ui-editor.d.ts +6 -1
- package/types/nanahoshi-mona-ui-filter.d.ts +16 -10
- package/types/nanahoshi-mona-ui-grid.d.ts +38 -1
- package/types/nanahoshi-mona-ui-i18n.d.ts +633 -0
- package/types/nanahoshi-mona-ui-internal-list.d.ts +7 -2
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +7 -3
- package/types/nanahoshi-mona-ui-list-box.d.ts +9 -4
- package/types/nanahoshi-mona-ui-list-view.d.ts +6 -6
- package/types/nanahoshi-mona-ui-list.d.ts +1 -1
- package/types/nanahoshi-mona-ui-menubar.d.ts +59 -58
- package/types/nanahoshi-mona-ui-multi-select.d.ts +6 -1
- package/types/nanahoshi-mona-ui-notification.d.ts +11 -5
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +24 -15
- package/types/nanahoshi-mona-ui-otp-input.d.ts +9 -3
- package/types/nanahoshi-mona-ui-pager.d.ts +19 -6
- package/types/nanahoshi-mona-ui-popup.d.ts +2 -1
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +9 -7
- package/types/nanahoshi-mona-ui-rating.d.ts +19 -12
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +34 -28
- package/types/nanahoshi-mona-ui-sheet.d.ts +8 -2
- package/types/nanahoshi-mona-ui-sidebar.d.ts +3 -0
- package/types/nanahoshi-mona-ui-slider.d.ts +44 -26
- package/types/nanahoshi-mona-ui-spinner.d.ts +13 -4
- package/types/nanahoshi-mona-ui-split-button.d.ts +62 -56
- package/types/nanahoshi-mona-ui-splitter.d.ts +9 -6
- package/types/nanahoshi-mona-ui-stepper.d.ts +9 -3
- package/types/nanahoshi-mona-ui-switch.d.ts +1 -1
- package/types/nanahoshi-mona-ui-tabs.d.ts +96 -35
- package/types/nanahoshi-mona-ui-text-box.d.ts +11 -5
- package/types/nanahoshi-mona-ui-time-picker.d.ts +7 -2
- package/types/nanahoshi-mona-ui-time-selector.d.ts +16 -5
- package/types/nanahoshi-mona-ui-tree-view.d.ts +15 -10
- package/types/nanahoshi-mona-ui-window.d.ts +26 -20
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-ZM3CneJ0.mjs +0 -145
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
2
|
+
import { MonaSplitButtonMessages } from '@nanahoshi/mona-ui/i18n';
|
|
1
3
|
import * as _nanahoshi_mona_ui_popup_menu from '@nanahoshi/mona-ui/popup-menu';
|
|
2
4
|
import { PopupMenuComponent, PopupMenuItemClickEvent, PopupMenuCheckboxItemComponent, PopupMenuOrigin, PopupMenuGroupComponent, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent, PopupMenuGroupTemplateDirective, PopupMenuTemplateOrigin, PopupMenuIconTemplateDirective, PopupMenuShortcutTemplateDirective, PopupMenuTextTemplateDirective } from '@nanahoshi/mona-ui/popup-menu';
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
+
import * as _angular_core from '@angular/core';
|
|
6
|
+
import { TemplateRef, ElementRef } from '@angular/core';
|
|
5
7
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
8
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
7
9
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -17,165 +19,169 @@ type SplitButtonVariantInputs = VariantInputs<SplitButtonVariantProps>;
|
|
|
17
19
|
declare class SplitButtonComponent implements SplitButtonVariantInputs {
|
|
18
20
|
#private;
|
|
19
21
|
private readonly menuItemComponents;
|
|
20
|
-
protected readonly
|
|
21
|
-
protected readonly
|
|
22
|
-
protected readonly
|
|
23
|
-
protected readonly
|
|
24
|
-
protected readonly
|
|
25
|
-
protected readonly
|
|
26
|
-
protected readonly menuButtonTemplate:
|
|
22
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
23
|
+
protected readonly effectiveMenuButtonAriaLabel: _angular_core.Signal<string>;
|
|
24
|
+
protected readonly groupTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
25
|
+
protected readonly iconTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
26
|
+
protected readonly mainButtonTextTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
27
|
+
protected readonly menuButtonRef: _angular_core.Signal<ElementRef<HTMLButtonElement> | undefined>;
|
|
28
|
+
protected readonly menuButtonTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
27
29
|
protected readonly menuId: string;
|
|
28
|
-
protected readonly menuItems:
|
|
29
|
-
protected readonly menuOpen:
|
|
30
|
-
protected readonly
|
|
31
|
-
protected readonly
|
|
32
|
-
protected readonly
|
|
33
|
-
protected readonly
|
|
30
|
+
protected readonly menuItems: _angular_core.Signal<_nanahoshi_mona_ui_popup_menu.PopupMenuItem[]>;
|
|
31
|
+
protected readonly menuOpen: _angular_core.WritableSignal<boolean>;
|
|
32
|
+
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaSplitButtonMessages>;
|
|
33
|
+
protected readonly popupMenuRef: _angular_core.Signal<PopupMenuComponent | undefined>;
|
|
34
|
+
protected readonly popupMenuRounded: _angular_core.Signal<"large" | "medium" | "none" | "small" | null | undefined>;
|
|
35
|
+
protected readonly shortcutTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
36
|
+
protected readonly splitButtonAriaLabel: _angular_core.Signal<string>;
|
|
37
|
+
protected readonly textTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
34
38
|
/**
|
|
35
39
|
* @description Accessible name for the main action button.
|
|
36
40
|
* Falls back to `"{text} splitbutton"` when empty.
|
|
37
41
|
* @default ""
|
|
38
42
|
*/
|
|
39
|
-
readonly ariaLabel:
|
|
43
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
40
44
|
/**
|
|
41
45
|
* @description ID of an external element that provides the accessible name for the main action button.
|
|
42
46
|
* Takes precedence over `ariaLabel` when both are set.
|
|
43
47
|
* @default ""
|
|
44
48
|
*/
|
|
45
|
-
readonly ariaLabelledby:
|
|
49
|
+
readonly ariaLabelledby: _angular_core.InputSignal<string>;
|
|
46
50
|
/**
|
|
47
51
|
* @description Emitted when the main action button is clicked.
|
|
48
52
|
*/
|
|
49
|
-
readonly buttonClick:
|
|
53
|
+
readonly buttonClick: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
50
54
|
/**
|
|
51
55
|
* @description Renders the component with reduced visual emphasis
|
|
52
56
|
* and removes pointer interaction from both the main button and the menu toggle button.
|
|
53
57
|
* @default false
|
|
54
58
|
*/
|
|
55
|
-
readonly disabled:
|
|
59
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
56
60
|
/**
|
|
57
61
|
* @description Visual style preset applied to the button.
|
|
58
62
|
* @default "default"
|
|
59
63
|
*/
|
|
60
|
-
readonly look:
|
|
64
|
+
readonly look: _angular_core.InputSignal<"default" | "error" | "ghost" | "info" | "outline" | "primary" | "secondary" | "success" | "warning" | null | undefined>;
|
|
61
65
|
/**
|
|
62
66
|
* @description Accessible name for the menu toggle button.
|
|
63
|
-
*
|
|
64
|
-
* @default "
|
|
67
|
+
* If not provided, falls back to the localized default message.
|
|
68
|
+
* @default ""
|
|
65
69
|
*/
|
|
66
|
-
readonly menuButtonAriaLabel:
|
|
70
|
+
readonly menuButtonAriaLabel: _angular_core.InputSignal<string>;
|
|
67
71
|
/**
|
|
68
72
|
* @description Emitted when a menu item in the popup is clicked.
|
|
69
73
|
*/
|
|
70
|
-
readonly menuItemClick:
|
|
74
|
+
readonly menuItemClick: _angular_core.OutputEmitterRef<PopupMenuItemClickEvent>;
|
|
71
75
|
/**
|
|
72
76
|
* @description Minimum width of the popup menu in pixels.
|
|
73
77
|
* A value of `0` means no minimum width is applied.
|
|
74
78
|
* @default 0
|
|
75
79
|
*/
|
|
76
|
-
readonly popupWidth:
|
|
80
|
+
readonly popupWidth: _angular_core.InputSignal<number>;
|
|
77
81
|
/**
|
|
78
82
|
* @description Border-radius preset applied to the button.
|
|
79
83
|
* @default "medium"
|
|
80
84
|
*/
|
|
81
|
-
readonly rounded:
|
|
85
|
+
readonly rounded: _angular_core.InputSignal<"full" | "large" | "medium" | "none" | "small" | null | undefined>;
|
|
82
86
|
/**
|
|
83
87
|
* @description Size preset controlling the button's dimensions.
|
|
84
88
|
* @default "medium"
|
|
85
89
|
*/
|
|
86
|
-
readonly size:
|
|
90
|
+
readonly size: _angular_core.InputSignal<"large" | "medium" | "small" | null | undefined>;
|
|
87
91
|
/**
|
|
88
92
|
* @description Primary text content displayed in the main action button.
|
|
89
93
|
* Ignored when a `monaSplitButtonTextTemplate` is provided.
|
|
90
94
|
* @default ""
|
|
91
95
|
*/
|
|
92
|
-
readonly text:
|
|
96
|
+
readonly text: _angular_core.InputSignal<string>;
|
|
93
97
|
/**
|
|
94
98
|
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
95
99
|
* @default ""
|
|
96
100
|
*/
|
|
97
|
-
readonly userClass:
|
|
101
|
+
readonly userClass: _angular_core.InputSignal<string>;
|
|
98
102
|
constructor();
|
|
99
103
|
protected onMenuClose(): void;
|
|
100
104
|
protected onMenuItemClick(event: PopupMenuItemClickEvent): void;
|
|
101
105
|
protected onMenuOpen(): void;
|
|
102
|
-
static ɵfac:
|
|
103
|
-
static ɵcmp:
|
|
106
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitButtonComponent, never>;
|
|
107
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitButtonComponent, "mona-split-button", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "menuButtonAriaLabel": { "alias": "menuButtonAriaLabel"; "required": false; "isSignal": true; }; "popupWidth": { "alias": "popupWidth"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "buttonClick": "buttonClick"; "menuItemClick": "menuItemClick"; }, ["menuItemComponents", "groupTemplate", "iconTemplate", "mainButtonTextTemplate", "menuButtonTemplate", "shortcutTemplate", "textTemplate"], never, true, never>;
|
|
104
108
|
}
|
|
105
109
|
|
|
106
110
|
declare class SplitButtonCheckboxItemComponent extends PopupMenuCheckboxItemComponent {
|
|
107
111
|
readonly origin = PopupMenuOrigin.SplitButton;
|
|
108
112
|
constructor();
|
|
109
|
-
static ɵfac:
|
|
110
|
-
static ɵcmp:
|
|
113
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitButtonCheckboxItemComponent, never>;
|
|
114
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitButtonCheckboxItemComponent, "mona-split-button-checkbox-item", never, {}, {}, never, never, true, never>;
|
|
111
115
|
}
|
|
112
116
|
|
|
113
117
|
declare class SplitButtonGroupComponent extends PopupMenuGroupComponent {
|
|
114
118
|
readonly origin = PopupMenuOrigin.SplitButton;
|
|
115
119
|
constructor();
|
|
116
|
-
static ɵfac:
|
|
117
|
-
static ɵcmp:
|
|
120
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitButtonGroupComponent, never>;
|
|
121
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitButtonGroupComponent, "mona-split-button-group", never, {}, {}, never, never, true, never>;
|
|
118
122
|
}
|
|
119
123
|
|
|
120
124
|
declare class SplitButtonItemComponent extends PopupMenuItemComponent {
|
|
121
125
|
readonly origin = PopupMenuOrigin.SplitButton;
|
|
122
126
|
constructor();
|
|
123
|
-
static ɵfac:
|
|
124
|
-
static ɵcmp:
|
|
127
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitButtonItemComponent, never>;
|
|
128
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitButtonItemComponent, "mona-split-button-item", never, {}, {}, never, never, true, never>;
|
|
125
129
|
}
|
|
126
130
|
|
|
127
131
|
declare class SplitButtonRadioGroupComponent extends PopupMenuRadioGroupComponent {
|
|
128
132
|
readonly origin = PopupMenuOrigin.SplitButton;
|
|
129
133
|
constructor();
|
|
130
|
-
static ɵfac:
|
|
131
|
-
static ɵcmp:
|
|
134
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitButtonRadioGroupComponent, never>;
|
|
135
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitButtonRadioGroupComponent, "mona-split-button-radio-group", never, {}, {}, never, never, true, never>;
|
|
132
136
|
}
|
|
133
137
|
|
|
134
138
|
declare class SplitButtonRadioItemComponent extends PopupMenuRadioItemComponent {
|
|
135
139
|
readonly origin = PopupMenuOrigin.SplitButton;
|
|
136
140
|
constructor();
|
|
137
|
-
static ɵfac:
|
|
138
|
-
static ɵcmp:
|
|
141
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitButtonRadioItemComponent, never>;
|
|
142
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitButtonRadioItemComponent, "mona-split-button-radio-item", never, {}, {}, never, never, true, never>;
|
|
139
143
|
}
|
|
140
144
|
|
|
141
145
|
declare class SplitButtonSeparatorComponent extends PopupMenuSeparatorComponent {
|
|
142
146
|
readonly origin = PopupMenuOrigin.SplitButton;
|
|
143
|
-
static ɵfac:
|
|
144
|
-
static ɵcmp:
|
|
147
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitButtonSeparatorComponent, never>;
|
|
148
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitButtonSeparatorComponent, "mona-split-button-separator", never, {}, {}, never, never, true, never>;
|
|
145
149
|
}
|
|
146
150
|
|
|
147
151
|
declare class SplitButtonMenuButtonTemplateDirective {
|
|
148
|
-
static ɵfac:
|
|
149
|
-
static ɵdir:
|
|
152
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitButtonMenuButtonTemplateDirective, never>;
|
|
153
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SplitButtonMenuButtonTemplateDirective, "ng-template[monaSplitButtonMenuButtonTemplate]", never, {}, {}, never, never, true, never>;
|
|
150
154
|
}
|
|
151
155
|
|
|
152
156
|
declare class SplitButtonMenuGroupTemplateDirective extends PopupMenuGroupTemplateDirective {
|
|
153
157
|
readonly origin = PopupMenuTemplateOrigin.SplitButton;
|
|
154
|
-
static ɵfac:
|
|
155
|
-
static ɵdir:
|
|
158
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitButtonMenuGroupTemplateDirective, never>;
|
|
159
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SplitButtonMenuGroupTemplateDirective, "ng-template[monaSplitButtonMenuGroupTemplate]", never, {}, {}, never, never, true, never>;
|
|
156
160
|
}
|
|
157
161
|
|
|
158
162
|
declare class SplitButtonMenuItemIconTemplateDirective extends PopupMenuIconTemplateDirective {
|
|
159
163
|
readonly origin = PopupMenuTemplateOrigin.SplitButton;
|
|
160
|
-
static ɵfac:
|
|
161
|
-
static ɵdir:
|
|
164
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitButtonMenuItemIconTemplateDirective, never>;
|
|
165
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SplitButtonMenuItemIconTemplateDirective, "ng-template[monaSplitButtonMenuItemIconTemplate]", never, {}, {}, never, never, true, never>;
|
|
162
166
|
}
|
|
163
167
|
|
|
164
168
|
declare class SplitButtonMenuItemShortcutTemplateDirective extends PopupMenuShortcutTemplateDirective {
|
|
165
169
|
readonly origin = PopupMenuTemplateOrigin.SplitButton;
|
|
166
|
-
static ɵfac:
|
|
167
|
-
static ɵdir:
|
|
170
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitButtonMenuItemShortcutTemplateDirective, never>;
|
|
171
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SplitButtonMenuItemShortcutTemplateDirective, "ng-template[monaSplitButtonMenuItemShortcutTemplate]", never, {}, {}, never, never, true, never>;
|
|
168
172
|
}
|
|
169
173
|
|
|
170
174
|
declare class SplitButtonMenuItemTextTemplateDirective extends PopupMenuTextTemplateDirective {
|
|
171
175
|
readonly origin = PopupMenuTemplateOrigin.SplitButton;
|
|
172
|
-
static ɵfac:
|
|
173
|
-
static ɵdir:
|
|
176
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitButtonMenuItemTextTemplateDirective, never>;
|
|
177
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SplitButtonMenuItemTextTemplateDirective, "ng-template[monaSplitButtonMenuItemTextTemplate]", never, {}, {}, never, never, true, never>;
|
|
174
178
|
}
|
|
175
179
|
|
|
176
180
|
declare class SplitButtonTextTemplateDirective {
|
|
177
|
-
static ɵfac:
|
|
178
|
-
static ɵdir:
|
|
181
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitButtonTextTemplateDirective, never>;
|
|
182
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SplitButtonTextTemplateDirective, "ng-template[monaSplitButtonTextTemplate]", never, {}, {}, never, never, true, never>;
|
|
179
183
|
}
|
|
180
184
|
|
|
181
|
-
|
|
185
|
+
declare const SPLIT_BUTTON_DEFAULT_MESSAGES: MonaSplitButtonMessages;
|
|
186
|
+
|
|
187
|
+
export { SPLIT_BUTTON_DEFAULT_MESSAGES, SplitButtonCheckboxItemComponent, SplitButtonComponent, SplitButtonGroupComponent, SplitButtonItemComponent, SplitButtonMenuButtonTemplateDirective, SplitButtonMenuGroupTemplateDirective, SplitButtonMenuItemIconTemplateDirective, SplitButtonMenuItemShortcutTemplateDirective, SplitButtonMenuItemTextTemplateDirective, SplitButtonRadioGroupComponent, SplitButtonRadioItemComponent, SplitButtonSeparatorComponent, SplitButtonTextTemplateDirective };
|
|
@@ -3,6 +3,7 @@ import { TemplateRef } from '@angular/core';
|
|
|
3
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
6
|
+
import { MonaSplitterMessages } from '@nanahoshi/mona-ui/i18n';
|
|
6
7
|
|
|
7
8
|
declare const splitterBaseThemeVariants: (props?: ({
|
|
8
9
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
@@ -23,14 +24,14 @@ type SplitterResizerHandleVariantInput = VariantInputs<SplitterResizerHandleVari
|
|
|
23
24
|
type SplitterVariantInput = SplitterBaseVariantInput & Omit<SplitterResizerVariantInput, "resizing"> & SplitterResizerHandleVariantInput;
|
|
24
25
|
|
|
25
26
|
declare class SplitterPaneComponent {
|
|
26
|
-
/**
|
|
27
|
-
* @description Whether the pane is collapsible.
|
|
28
|
-
*/
|
|
29
|
-
readonly collapsible: _angular_core.InputSignal<boolean>;
|
|
30
27
|
/**
|
|
31
28
|
* @description Whether the pane is collapsed.
|
|
32
29
|
*/
|
|
33
30
|
readonly collapsed: _angular_core.ModelSignal<boolean>;
|
|
31
|
+
/**
|
|
32
|
+
* @description Whether the pane is collapsible.
|
|
33
|
+
*/
|
|
34
|
+
readonly collapsible: _angular_core.InputSignal<boolean>;
|
|
34
35
|
/**
|
|
35
36
|
* @description The maximum size of the pane.
|
|
36
37
|
*/
|
|
@@ -50,7 +51,7 @@ declare class SplitterPaneComponent {
|
|
|
50
51
|
readonly template: _angular_core.Signal<TemplateRef<any>>;
|
|
51
52
|
readonly uid: string;
|
|
52
53
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitterPaneComponent, never>;
|
|
53
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitterPaneComponent, "mona-splitter-pane", never, { "
|
|
54
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitterPaneComponent, "mona-splitter-pane", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; "size": "sizeChange"; }, never, ["*"], true, never>;
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
declare class SplitterComponent implements SplitterVariantInput {
|
|
@@ -65,4 +66,6 @@ declare class SplitterComponent implements SplitterVariantInput {
|
|
|
65
66
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitterComponent, "mona-splitter", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, ["paneList"], never, true, never>;
|
|
66
67
|
}
|
|
67
68
|
|
|
68
|
-
|
|
69
|
+
declare const SPLITTER_DEFAULT_MESSAGES: MonaSplitterMessages;
|
|
70
|
+
|
|
71
|
+
export { SPLITTER_DEFAULT_MESSAGES, SplitterComponent, SplitterPaneComponent };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { Signal, TemplateRef } from '@angular/core';
|
|
3
3
|
import * as _mirei_ts_collections from '@mirei/ts-collections';
|
|
4
|
+
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
5
|
+
import { MonaStepperMessages } from '@nanahoshi/mona-ui/i18n';
|
|
4
6
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
7
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
6
8
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -97,6 +99,7 @@ type StepperVariantInput = StepperBaseVariantInput & StepperStepListVariantInput
|
|
|
97
99
|
|
|
98
100
|
declare class StepperComponent implements StepperVariantInput {
|
|
99
101
|
#private;
|
|
102
|
+
protected readonly isRtl: Signal<boolean>;
|
|
100
103
|
protected readonly activeStep: Signal<StepItem<unknown> | undefined>;
|
|
101
104
|
protected readonly baseClass: Signal<string>;
|
|
102
105
|
protected readonly highlightedStep: _angular_core.WritableSignal<number>;
|
|
@@ -108,6 +111,7 @@ declare class StepperComponent implements StepperVariantInput {
|
|
|
108
111
|
protected readonly labelTemplate: Signal<TemplateRef<StepperTemplateContext> | undefined>;
|
|
109
112
|
protected readonly listClass: Signal<string>;
|
|
110
113
|
protected readonly listItemClass: Signal<string>;
|
|
114
|
+
protected readonly messages: Signal<_nanahoshi_mona_ui_i18n.MonaStepperMessages>;
|
|
111
115
|
protected readonly progressMax: Signal<number>;
|
|
112
116
|
protected readonly stepTemplate: Signal<TemplateRef<StepperTemplateContext> | undefined>;
|
|
113
117
|
protected readonly trackClass: Signal<string>;
|
|
@@ -125,7 +129,7 @@ declare class StepperComponent implements StepperVariantInput {
|
|
|
125
129
|
protected readonly viewSteps: Signal<_mirei_ts_collections.ImmutableSet<StepItem<unknown>>>;
|
|
126
130
|
/**
|
|
127
131
|
* @description Sets the accessible label for the stepper group.
|
|
128
|
-
* @default "
|
|
132
|
+
* @default ""
|
|
129
133
|
*/
|
|
130
134
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
131
135
|
/**
|
|
@@ -140,7 +144,7 @@ declare class StepperComponent implements StepperVariantInput {
|
|
|
140
144
|
readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical" | null | undefined>;
|
|
141
145
|
/**
|
|
142
146
|
* @description Sets the accessible label for the progress bar element.
|
|
143
|
-
* @default "
|
|
147
|
+
* @default ""
|
|
144
148
|
*/
|
|
145
149
|
readonly progressAriaLabel: _angular_core.InputSignal<string>;
|
|
146
150
|
/**
|
|
@@ -168,5 +172,7 @@ declare class StepperComponent implements StepperVariantInput {
|
|
|
168
172
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StepperComponent, "mona-stepper", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "linear": { "alias": "linear"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "progressAriaLabel": { "alias": "progressAriaLabel"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "steps": { "alias": "steps"; "required": false; "isSignal": true; }; }, { "step": "stepChange"; }, ["indicatorTemplate", "labelTemplate", "stepTemplate"], never, true, never>;
|
|
169
173
|
}
|
|
170
174
|
|
|
171
|
-
|
|
175
|
+
declare const STEPPER_DEFAULT_MESSAGES: MonaStepperMessages;
|
|
176
|
+
|
|
177
|
+
export { STEPPER_DEFAULT_MESSAGES, StepperComponent, StepperIndicatorTemplateDirective, StepperLabelTemplateDirective, StepperStepTemplateDirective };
|
|
172
178
|
export type { StepOptions, StepperTemplateContext };
|
|
@@ -26,9 +26,9 @@ 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 invalidState: _angular_core.Signal<boolean>;
|
|
30
29
|
protected readonly handleClasses: _angular_core.Signal<string>;
|
|
31
30
|
protected readonly handleContentTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
31
|
+
protected readonly invalidState: _angular_core.Signal<boolean>;
|
|
32
32
|
protected readonly labelClasses: _angular_core.Signal<string>;
|
|
33
33
|
protected readonly offLabelTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
34
34
|
protected readonly onLabelTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { PreventableEvent } from '@nanahoshi/mona-ui/common';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import { TemplateRef, ElementRef } from '@angular/core';
|
|
4
4
|
import { ImmutableSet } from '@mirei/ts-collections';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
8
|
+
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
9
|
+
import { MonaTabsMessages } from '@nanahoshi/mona-ui/i18n';
|
|
8
10
|
|
|
9
11
|
declare class TabCloseEvent extends PreventableEvent {
|
|
10
12
|
#private;
|
|
@@ -32,12 +34,12 @@ declare class TabTitleTemplateDirective {
|
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
interface TabItem {
|
|
35
|
-
readonly id: string;
|
|
36
|
-
readonly selected: boolean;
|
|
37
37
|
closable: boolean;
|
|
38
38
|
contentTemplate?: TemplateRef<unknown>;
|
|
39
39
|
disabled: boolean;
|
|
40
|
+
readonly id: string;
|
|
40
41
|
index: number;
|
|
42
|
+
readonly selected: boolean;
|
|
41
43
|
title: string;
|
|
42
44
|
titleTemplate?: TemplateRef<unknown>;
|
|
43
45
|
}
|
|
@@ -77,13 +79,100 @@ type TabsBaseVariantInput = VariantInputs<TabsBaseVariantProps>;
|
|
|
77
79
|
type TabListVariantInput = TabListBaseVariantInput & TabListListWrapperVariantInput & TabListListVariantInput & Omit<TabListListItemVariantInput, "active" | "disabled"> & TabListScrollButtonVariantInput;
|
|
78
80
|
type TabsVariantInput = TabsBaseVariantInput & TabListVariantInput & TabContentVariantInput;
|
|
79
81
|
|
|
82
|
+
type TabOrientation = "horizontal" | "vertical";
|
|
83
|
+
|
|
84
|
+
type TabScrollDirection = "previous" | "next";
|
|
85
|
+
|
|
86
|
+
declare class TabListComponent implements TabListVariantInput {
|
|
87
|
+
#private;
|
|
88
|
+
protected readonly isRtl: _angular_core.Signal<boolean>;
|
|
89
|
+
protected readonly baseClass: _angular_core.Signal<string>;
|
|
90
|
+
protected readonly listClass: _angular_core.Signal<string>;
|
|
91
|
+
protected readonly listWrapperClass: _angular_core.Signal<string>;
|
|
92
|
+
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaTabsMessages>;
|
|
93
|
+
protected readonly orientation: _angular_core.Signal<TabOrientation>;
|
|
94
|
+
protected readonly overflowControlsVisible: _angular_core.WritableSignal<boolean>;
|
|
95
|
+
protected readonly scrollButtonClass: _angular_core.Signal<string>;
|
|
96
|
+
protected readonly tabListElement: _angular_core.Signal<ElementRef<HTMLUListElement>>;
|
|
97
|
+
protected readonly tabListItems: _angular_core.Signal<readonly ElementRef<any>[]>;
|
|
98
|
+
readonly closable: _angular_core.InputSignal<boolean>;
|
|
99
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
100
|
+
/**
|
|
101
|
+
* @description Placement of the tab list relative to the tab content.
|
|
102
|
+
* @default "top"
|
|
103
|
+
*/
|
|
104
|
+
readonly position: _angular_core.InputSignal<"top" | "bottom" | "left" | "right" | null | undefined>;
|
|
105
|
+
readonly selectedTabId: _angular_core.ModelSignal<string | null>;
|
|
106
|
+
/**
|
|
107
|
+
* @description Size preset controlling the tabs' dimensions.
|
|
108
|
+
* @default "medium"
|
|
109
|
+
*/
|
|
110
|
+
readonly size: _angular_core.InputSignal<"small" | "medium" | "large" | null | undefined>;
|
|
111
|
+
readonly tabClose: _angular_core.OutputEmitterRef<TabCloseEvent>;
|
|
112
|
+
readonly tabList: _angular_core.InputSignal<Iterable<TabItem>>;
|
|
113
|
+
readonly tabSelect: _angular_core.OutputEmitterRef<TabSelectEvent>;
|
|
114
|
+
constructor();
|
|
115
|
+
focusSelectedTab(): void;
|
|
116
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
117
|
+
protected onTabClick(tab: TabItem, tabListElement: HTMLUListElement, event: MouseEvent): void;
|
|
118
|
+
protected onTabClose(tab: TabItem, event: MouseEvent): void;
|
|
119
|
+
protected startContinuousScroll(event: PointerEvent, element: HTMLElement, direction: TabScrollDirection): void;
|
|
120
|
+
protected startScrolling(element: HTMLElement, direction: TabScrollDirection, type: "single" | "continuous"): void;
|
|
121
|
+
protected stopScrolling(): void;
|
|
122
|
+
private activateTab;
|
|
123
|
+
private emitTabClose;
|
|
124
|
+
private emitTabSelect;
|
|
125
|
+
private focusTab;
|
|
126
|
+
private getNavigationDirection;
|
|
127
|
+
private handleKeyboardEvents;
|
|
128
|
+
private handleTabKey;
|
|
129
|
+
private performScroll;
|
|
130
|
+
private selectTab;
|
|
131
|
+
private setupKeyboardNavigation;
|
|
132
|
+
private setupResizeObserver;
|
|
133
|
+
private setupScrolling;
|
|
134
|
+
private updateScrollVisibility;
|
|
135
|
+
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>;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
declare class TabComponent {
|
|
140
|
+
#private;
|
|
141
|
+
protected readonly contentTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
142
|
+
protected readonly titleTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
143
|
+
/**
|
|
144
|
+
* @description Displays a close button on this tab. Overrides the parent `mona-tabs` component's `closable` input.
|
|
145
|
+
* @default false
|
|
146
|
+
*/
|
|
147
|
+
readonly closable: _angular_core.InputSignal<boolean>;
|
|
148
|
+
/**
|
|
149
|
+
* @description Renders this tab with reduced visual emphasis and removes pointer and keyboard interaction.
|
|
150
|
+
* Overrides the parent `mona-tabs` component's `disabled` input.
|
|
151
|
+
* @default false
|
|
152
|
+
*/
|
|
153
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
154
|
+
/**
|
|
155
|
+
* @description Whether the tab is selected.
|
|
156
|
+
* @default false
|
|
157
|
+
*/
|
|
158
|
+
readonly selected: _angular_core.ModelSignal<boolean>;
|
|
159
|
+
/**
|
|
160
|
+
* @description Title text displayed on the tab.
|
|
161
|
+
* @default ""
|
|
162
|
+
*/
|
|
163
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
164
|
+
get tabItem(): TabItem;
|
|
165
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabComponent, never>;
|
|
166
|
+
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
|
+
}
|
|
168
|
+
|
|
80
169
|
declare class TabsComponent implements TabsVariantInput {
|
|
81
|
-
private readonly tabListComponent;
|
|
82
|
-
private readonly tabs;
|
|
83
170
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
84
171
|
protected readonly contentClass: _angular_core.Signal<string>;
|
|
85
172
|
protected readonly selectedTabId: _angular_core.WritableSignal<string | null>;
|
|
86
173
|
protected readonly tabList: _angular_core.Signal<ImmutableSet<TabItem>>;
|
|
174
|
+
protected readonly tabListComponent: _angular_core.Signal<TabListComponent>;
|
|
175
|
+
protected readonly tabs: _angular_core.Signal<readonly TabComponent[]>;
|
|
87
176
|
/**
|
|
88
177
|
* @description Displays a close button on each tab, unless overridden per tab.
|
|
89
178
|
* @default false
|
|
@@ -127,35 +216,7 @@ declare class TabsComponent implements TabsVariantInput {
|
|
|
127
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>;
|
|
128
217
|
}
|
|
129
218
|
|
|
130
|
-
declare
|
|
131
|
-
#private;
|
|
132
|
-
protected readonly contentTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
133
|
-
protected readonly titleTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
134
|
-
/**
|
|
135
|
-
* @description Displays a close button on this tab. Overrides the parent `mona-tabs` component's `closable` input.
|
|
136
|
-
* @default false
|
|
137
|
-
*/
|
|
138
|
-
readonly closable: _angular_core.InputSignal<boolean>;
|
|
139
|
-
/**
|
|
140
|
-
* @description Renders this tab with reduced visual emphasis and removes pointer and keyboard interaction.
|
|
141
|
-
* Overrides the parent `mona-tabs` component's `disabled` input.
|
|
142
|
-
* @default false
|
|
143
|
-
*/
|
|
144
|
-
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
145
|
-
/**
|
|
146
|
-
* @description Whether the tab is selected.
|
|
147
|
-
* @default false
|
|
148
|
-
*/
|
|
149
|
-
readonly selected: _angular_core.ModelSignal<boolean>;
|
|
150
|
-
/**
|
|
151
|
-
* @description Title text displayed on the tab.
|
|
152
|
-
* @default ""
|
|
153
|
-
*/
|
|
154
|
-
readonly title: _angular_core.InputSignal<string>;
|
|
155
|
-
get tabItem(): TabItem;
|
|
156
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabComponent, never>;
|
|
157
|
-
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>;
|
|
158
|
-
}
|
|
219
|
+
declare const TABS_DEFAULT_MESSAGES: MonaTabsMessages;
|
|
159
220
|
|
|
160
|
-
export { TabCloseEvent, TabComponent, TabContentTemplateDirective, TabSelectEvent, TabTitleTemplateDirective, TabsComponent };
|
|
221
|
+
export { TABS_DEFAULT_MESSAGES, TabCloseEvent, TabComponent, TabContentTemplateDirective, TabSelectEvent, TabTitleTemplateDirective, TabsComponent };
|
|
161
222
|
export type { TabsPosition };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
1
2
|
import * as _angular_core from '@angular/core';
|
|
2
3
|
import { ElementRef, TemplateRef } from '@angular/core';
|
|
3
4
|
import { FormValueControl } from '@angular/forms/signals';
|
|
@@ -25,6 +26,7 @@ declare class TextBoxComponent implements TextBoxVariantInput, FormValueControl<
|
|
|
25
26
|
protected readonly classes: _angular_core.Signal<string>;
|
|
26
27
|
protected readonly inputRef: _angular_core.Signal<ElementRef<HTMLInputElement>>;
|
|
27
28
|
protected readonly invalidInput: _angular_core.Signal<boolean>;
|
|
29
|
+
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaTextBoxMessages>;
|
|
28
30
|
protected readonly prefixTemplateList: _angular_core.Signal<readonly TemplateRef<any>[]>;
|
|
29
31
|
protected readonly suffixTemplateList: _angular_core.Signal<readonly TemplateRef<any>[]>;
|
|
30
32
|
/**
|
|
@@ -46,15 +48,15 @@ declare class TextBoxComponent implements TextBoxVariantInput, FormValueControl<
|
|
|
46
48
|
* @description Emitted when the inner input loses focus.
|
|
47
49
|
*/
|
|
48
50
|
readonly inputBlur: _angular_core.OutputEmitterRef<FocusEvent>;
|
|
49
|
-
/**
|
|
50
|
-
* @description Emitted when the inner input gains focus.
|
|
51
|
-
*/
|
|
52
|
-
readonly inputFocus: _angular_core.OutputEmitterRef<FocusEvent>;
|
|
53
51
|
/**
|
|
54
52
|
* @description Additional CSS classes applied to the inner `<input>` element.
|
|
55
53
|
* @default ""
|
|
56
54
|
*/
|
|
57
55
|
readonly inputClass: _angular_core.InputSignal<string | string[]>;
|
|
56
|
+
/**
|
|
57
|
+
* @description Emitted when the inner input gains focus.
|
|
58
|
+
*/
|
|
59
|
+
readonly inputFocus: _angular_core.OutputEmitterRef<FocusEvent>;
|
|
58
60
|
/**
|
|
59
61
|
* @description Inline styles applied to the inner `<input>` element.
|
|
60
62
|
* Accepts a style string or a `CSSStyleDeclaration` partial.
|
|
@@ -169,5 +171,9 @@ declare class TextBoxSuffixTemplateDirective {
|
|
|
169
171
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TextBoxSuffixTemplateDirective, "ng-template[monaTextBoxSuffixTemplate]", never, {}, {}, never, never, true, never>;
|
|
170
172
|
}
|
|
171
173
|
|
|
172
|
-
|
|
174
|
+
declare const TEXT_BOX_DEFAULT_MESSAGES: {
|
|
175
|
+
clear: string;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
export { TEXT_BOX_DEFAULT_MESSAGES, TextBoxComponent, TextBoxDirective, TextBoxPrefixTemplateDirective, TextBoxSuffixTemplateDirective };
|
|
173
179
|
export type { InputType, TextBoxVariantProps };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
2
|
+
import { MonaTimePickerMessages } from '@nanahoshi/mona-ui/i18n';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { Signal, TemplateRef } from '@angular/core';
|
|
3
5
|
import { FormValueControl } from '@angular/forms/signals';
|
|
@@ -27,6 +29,7 @@ declare class TimePickerComponent implements FormValueControl<Date | null>, Time
|
|
|
27
29
|
protected readonly expanded: Signal<boolean>;
|
|
28
30
|
protected readonly inputAttributes: Signal<AttributeConfig>;
|
|
29
31
|
protected readonly invalidState: Signal<boolean>;
|
|
32
|
+
protected readonly messages: Signal<_nanahoshi_mona_ui_i18n.MonaTimePickerMessages>;
|
|
30
33
|
protected readonly navigatedDate: _angular_core.WritableSignal<Date>;
|
|
31
34
|
protected readonly pickerPopupClass: Signal<string>;
|
|
32
35
|
protected readonly popupId: string;
|
|
@@ -159,12 +162,12 @@ declare class TimePickerComponent implements FormValueControl<Date | null>, Time
|
|
|
159
162
|
*/
|
|
160
163
|
readonly value: _angular_core.ModelSignal<Date | null>;
|
|
161
164
|
constructor();
|
|
165
|
+
focus(): void;
|
|
162
166
|
protected onDateStringEdit(dateString: string): void;
|
|
163
167
|
protected onTimeInputBlur(): void;
|
|
164
168
|
protected onTimeInputButtonClick(): void;
|
|
165
169
|
protected onTimeSelectorValueChange(date: Date | null): void;
|
|
166
170
|
private dateStringEquals;
|
|
167
|
-
focus(): void;
|
|
168
171
|
private generateValidDateTime;
|
|
169
172
|
private handleKeydown;
|
|
170
173
|
private openPopup;
|
|
@@ -179,5 +182,7 @@ declare class TimePickerComponent implements FormValueControl<Date | null>, Time
|
|
|
179
182
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TimePickerComponent, "mona-time-picker", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "hourFormat": { "alias": "hourFormat"; "required": false; "isSignal": true; }; "hourStep": { "alias": "hourStep"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "minuteStep": { "alias": "minuteStep"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "popupClass": { "alias": "popupClass"; "required": false; "isSignal": true; }; "popupHeight": { "alias": "popupHeight"; "required": false; "isSignal": true; }; "popupWidth": { "alias": "popupWidth"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "readonlyInput": { "alias": "readonlyInput"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "secondStep": { "alias": "secondStep"; "required": false; "isSignal": true; }; "showClearButton": { "alias": "showClearButton"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "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; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "close": "close"; "closed": "closed"; "open": "open"; "opened": "opened"; "touch": "touch"; "value": "valueChange"; }, never, never, true, [{ directive: typeof i1.DropdownPopupHandlerDirective; inputs: {}; outputs: {}; }]>;
|
|
180
183
|
}
|
|
181
184
|
|
|
182
|
-
|
|
185
|
+
declare const TIME_PICKER_DEFAULT_MESSAGES: MonaTimePickerMessages;
|
|
186
|
+
|
|
187
|
+
export { TIME_PICKER_DEFAULT_MESSAGES, TimePickerComponent };
|
|
183
188
|
export type { TimePickerVariantProps };
|