@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,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 { TemplateRef, Signal } from '@angular/core';
|
|
3
4
|
import { DropdownListComponent } from '@nanahoshi/mona-ui/dropdown-list';
|
|
@@ -85,7 +86,6 @@ declare class PagerComponent implements PagerVariantInputs {
|
|
|
85
86
|
#private;
|
|
86
87
|
private readonly navigationButtonsTemplateList;
|
|
87
88
|
protected readonly baseClasses: Signal<string>;
|
|
88
|
-
protected readonly firstPageLabel = "First page";
|
|
89
89
|
protected readonly firstPageNavigationTemplate: Signal<PagerNavigationButtonsTemplateDirective | undefined>;
|
|
90
90
|
protected readonly iconSize: Signal<18 | 20 | 22>;
|
|
91
91
|
protected readonly infoClasses: Signal<string>;
|
|
@@ -94,11 +94,10 @@ declare class PagerComponent implements PagerVariantInputs {
|
|
|
94
94
|
protected readonly inputValue: _angular_core.WritableSignal<number>;
|
|
95
95
|
protected readonly jumpNextLabel: Signal<string>;
|
|
96
96
|
protected readonly jumpPreviousLabel: Signal<string>;
|
|
97
|
-
protected readonly lastPageLabel = "Last page";
|
|
98
97
|
protected readonly lastPageNavigationTemplate: Signal<PagerNavigationButtonsTemplateDirective | undefined>;
|
|
99
98
|
protected readonly listClasses: Signal<string>;
|
|
99
|
+
protected readonly messages: Signal<_nanahoshi_mona_ui_i18n.MonaPagerMessages>;
|
|
100
100
|
protected readonly nextJumperVisible: Signal<boolean>;
|
|
101
|
-
protected readonly nextPageLabel = "Next page";
|
|
102
101
|
protected readonly nextPageNavigationTemplate: Signal<PagerNavigationButtonsTemplateDirective | undefined>;
|
|
103
102
|
protected readonly numericButtonsTemplate: Signal<PagerNumericButtonsTemplateDirective | undefined>;
|
|
104
103
|
protected readonly page: Signal<number>;
|
|
@@ -106,8 +105,8 @@ declare class PagerComponent implements PagerVariantInputs {
|
|
|
106
105
|
protected readonly pageInputVisible: _angular_core.WritableSignal<boolean>;
|
|
107
106
|
protected readonly pageList: Signal<number[]>;
|
|
108
107
|
protected readonly pageListVisible: _angular_core.WritableSignal<boolean>;
|
|
109
|
-
protected readonly pageSizeDropdownList: Signal<DropdownListComponent<number> | undefined>;
|
|
110
108
|
protected readonly pageSizeDropdownData: Signal<number[]>;
|
|
109
|
+
protected readonly pageSizeDropdownList: Signal<DropdownListComponent<number> | undefined>;
|
|
111
110
|
protected readonly pageSizeTemplate: Signal<TemplateRef<any> | undefined>;
|
|
112
111
|
protected readonly pagerInfo: Signal<string>;
|
|
113
112
|
protected readonly pagerInfoTemplate: Signal<PagerInfoTemplateDirective | undefined>;
|
|
@@ -115,7 +114,6 @@ declare class PagerComponent implements PagerVariantInputs {
|
|
|
115
114
|
protected readonly pagerPageSize: _angular_core.WritableSignal<number>;
|
|
116
115
|
protected readonly pages: Signal<Page[]>;
|
|
117
116
|
protected readonly previousJumperVisible: Signal<boolean>;
|
|
118
|
-
protected readonly previousPageLabel = "Previous page";
|
|
119
117
|
protected readonly previousPageNavigationTemplate: Signal<PagerNavigationButtonsTemplateDirective | undefined>;
|
|
120
118
|
/**
|
|
121
119
|
* @description Shows the first and last page navigation buttons.
|
|
@@ -233,5 +231,20 @@ declare class PagerPageSizeTemplateDirective {
|
|
|
233
231
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PagerPageSizeTemplateDirective, "ng-template[monaPagerPageSizeTemplate]", never, {}, {}, never, never, true, never>;
|
|
234
232
|
}
|
|
235
233
|
|
|
236
|
-
|
|
234
|
+
declare const PAGER_DEFAULT_MESSAGES: {
|
|
235
|
+
firstPageLabel: string;
|
|
236
|
+
jumpBackwardLabel: (pages: number) => string;
|
|
237
|
+
jumpForwardLabel: (pages: number) => string;
|
|
238
|
+
lastPageLabel: string;
|
|
239
|
+
nextPageLabel: string;
|
|
240
|
+
ofText: string;
|
|
241
|
+
pageLabel: (page: number) => string;
|
|
242
|
+
pageSizeLabel: (pageSize: number) => string;
|
|
243
|
+
pageStatus: (page: number, totalPages: number) => string;
|
|
244
|
+
pageText: string;
|
|
245
|
+
previousPageLabel: string;
|
|
246
|
+
rangeStatus: (start: number, end: number, total: number) => string;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
export { PAGER_DEFAULT_MESSAGES, PageSizeChangeEvent, PagerComponent, PagerInfoTemplateDirective, PagerNavigationButtonsTemplateDirective, PagerNumericButtonsTemplateDirective, PagerPageSizeTemplateDirective };
|
|
237
250
|
export type { PageChangeEvent };
|
|
@@ -454,9 +454,9 @@ declare class PopupService {
|
|
|
454
454
|
private getPosition;
|
|
455
455
|
private getScrollableAncestorElements;
|
|
456
456
|
private getScrollableContainers;
|
|
457
|
+
private handleFocusRestoration;
|
|
457
458
|
private isScrollableElement;
|
|
458
459
|
private isScrollableOverflow;
|
|
459
|
-
private handleFocusRestoration;
|
|
460
460
|
/**
|
|
461
461
|
* Resolves a PopupAnchor to a FlexibleConnectedPositionStrategyOrigin.
|
|
462
462
|
* This method should only receive actual elements or ElementRefs, not CSS selector strings.
|
|
@@ -479,6 +479,7 @@ declare class PopupService {
|
|
|
479
479
|
private setupMouseLeaveSubscription;
|
|
480
480
|
private setupOutsideClickSubscription;
|
|
481
481
|
private setupPositionChangeTracking;
|
|
482
|
+
private setupDirectionTracking;
|
|
482
483
|
private setupScrollClosing;
|
|
483
484
|
private setupScrollTracking;
|
|
484
485
|
private shouldIgnoreOutsideClick;
|
|
@@ -39,6 +39,8 @@ type ProgressBarVariantInput = ProgressBarBaseVariantInput & ProgressBarIndeterm
|
|
|
39
39
|
|
|
40
40
|
declare class ProgressBarComponent implements ProgressBarVariantInput {
|
|
41
41
|
#private;
|
|
42
|
+
protected readonly isRtl: _angular_core.Signal<boolean>;
|
|
43
|
+
protected readonly formattedProgress: _angular_core.Signal<string>;
|
|
42
44
|
protected readonly baseClasses: _angular_core.Signal<string>;
|
|
43
45
|
protected readonly indeterminateClasses: _angular_core.Signal<string>;
|
|
44
46
|
protected readonly labelClasses: _angular_core.Signal<string>;
|
|
@@ -48,6 +50,12 @@ declare class ProgressBarComponent implements ProgressBarVariantInput {
|
|
|
48
50
|
protected readonly progress: _angular_core.Signal<number>;
|
|
49
51
|
protected readonly trackClasses: _angular_core.Signal<string>;
|
|
50
52
|
protected readonly trackColor: _angular_core.Signal<string>;
|
|
53
|
+
/**
|
|
54
|
+
* @description Enables CSS transitions on fill and color changes.
|
|
55
|
+
* Set to `false` when updating `value` at high frequency (e.g., a real-time byte counter).
|
|
56
|
+
* @default true
|
|
57
|
+
*/
|
|
58
|
+
readonly animate: _angular_core.InputSignal<boolean>;
|
|
51
59
|
/**
|
|
52
60
|
* @description Accessible label for the progress bar host element.
|
|
53
61
|
* Use to describe what is being measured (e.g., "Upload progress").
|
|
@@ -63,12 +71,6 @@ declare class ProgressBarComponent implements ProgressBarVariantInput {
|
|
|
63
71
|
* @default ""
|
|
64
72
|
*/
|
|
65
73
|
readonly ariaValueText: _angular_core.InputSignal<string>;
|
|
66
|
-
/**
|
|
67
|
-
* @description Enables CSS transitions on fill and color changes.
|
|
68
|
-
* Set to `false` when updating `value` at high frequency (e.g., a real-time byte counter).
|
|
69
|
-
* @default true
|
|
70
|
-
*/
|
|
71
|
-
readonly animate: _angular_core.InputSignal<boolean>;
|
|
72
74
|
/**
|
|
73
75
|
* @description Fill color of the progress track.
|
|
74
76
|
* Pass a CSS color string, or a function that receives the current percentage (0–100) and returns a color string.
|
|
@@ -131,7 +133,7 @@ declare class ProgressBarComponent implements ProgressBarVariantInput {
|
|
|
131
133
|
*/
|
|
132
134
|
readonly value: _angular_core.InputSignal<number>;
|
|
133
135
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
134
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgressBarComponent, "mona-progress-bar", never, { "
|
|
136
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgressBarComponent, "mona-progress-bar", never, { "animate": { "alias": "animate"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaValueText": { "alias": "aria-valuetext"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "labelStyles": { "alias": "labelStyles"; "required": false; "isSignal": true; }; "labelVisible": { "alias": "labelVisible"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, ["labelTemplate"], never, true, never>;
|
|
135
137
|
}
|
|
136
138
|
|
|
137
139
|
export { ProgressBarComponent, ProgressBarLabelTemplateDirective };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
2
|
+
import { MonaRatingMessages } from '@nanahoshi/mona-ui/i18n';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { ElementRef, TemplateRef } from '@angular/core';
|
|
3
5
|
import { FormValueControl } from '@angular/forms/signals';
|
|
@@ -14,6 +16,14 @@ interface RatingItemTemplateContext {
|
|
|
14
16
|
* Zero-based item index.
|
|
15
17
|
*/
|
|
16
18
|
readonly $implicit: number;
|
|
19
|
+
/**
|
|
20
|
+
* Visible fill amount between 0 and 1.
|
|
21
|
+
*/
|
|
22
|
+
readonly fill: number;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the visible state comes from pointer preview.
|
|
25
|
+
*/
|
|
26
|
+
readonly hovered: boolean;
|
|
17
27
|
/**
|
|
18
28
|
* Zero-based item index.
|
|
19
29
|
*/
|
|
@@ -22,18 +32,10 @@ interface RatingItemTemplateContext {
|
|
|
22
32
|
* One-based value represented by this item.
|
|
23
33
|
*/
|
|
24
34
|
readonly itemValue: number;
|
|
25
|
-
/**
|
|
26
|
-
* Visible fill amount between 0 and 1.
|
|
27
|
-
*/
|
|
28
|
-
readonly fill: number;
|
|
29
35
|
/**
|
|
30
36
|
* Whether the visible state comes from the committed value.
|
|
31
37
|
*/
|
|
32
38
|
readonly selected: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Whether the visible state comes from pointer preview.
|
|
35
|
-
*/
|
|
36
|
-
readonly hovered: boolean;
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
/**
|
|
@@ -100,6 +102,7 @@ interface RatingItemDescriptor {
|
|
|
100
102
|
readonly itemValue: number;
|
|
101
103
|
}
|
|
102
104
|
declare class RatingComponent implements RatingVariantInput, FormValueControl<number> {
|
|
105
|
+
#private;
|
|
103
106
|
protected readonly activeState: _angular_core.Signal<"hovered" | "selected">;
|
|
104
107
|
protected readonly containerClasses: _angular_core.Signal<string>;
|
|
105
108
|
protected readonly controlClasses: _angular_core.Signal<string>;
|
|
@@ -114,11 +117,13 @@ declare class RatingComponent implements RatingVariantInput, FormValueControl<nu
|
|
|
114
117
|
protected readonly interactionDisabled: _angular_core.Signal<boolean>;
|
|
115
118
|
protected readonly interactionStep: _angular_core.Signal<number>;
|
|
116
119
|
protected readonly invalidState: _angular_core.Signal<boolean>;
|
|
120
|
+
protected readonly isRtl: _angular_core.Signal<boolean>;
|
|
117
121
|
protected readonly itemClasses: _angular_core.Signal<string>;
|
|
118
122
|
protected readonly itemTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
119
123
|
protected readonly items: _angular_core.Signal<readonly RatingItemDescriptor[]>;
|
|
120
124
|
protected readonly labelClasses: _angular_core.Signal<string>;
|
|
121
125
|
protected readonly labelId: string;
|
|
126
|
+
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaRatingMessages>;
|
|
122
127
|
protected readonly normalizedValue: _angular_core.Signal<number>;
|
|
123
128
|
protected readonly overlayClipClasses: _angular_core.Signal<string>;
|
|
124
129
|
protected readonly overlayColor: _angular_core.Signal<string>;
|
|
@@ -264,7 +269,7 @@ declare class RatingComponent implements RatingVariantInput, FormValueControl<nu
|
|
|
264
269
|
*/
|
|
265
270
|
declare class RatingHoveredItemTemplateDirective {
|
|
266
271
|
readonly templateRef: TemplateRef<RatingItemTemplateContext>;
|
|
267
|
-
static ngTemplateContextGuard(_directive: RatingHoveredItemTemplateDirective,
|
|
272
|
+
static ngTemplateContextGuard(_directive: RatingHoveredItemTemplateDirective, _context: unknown): _context is RatingItemTemplateContext;
|
|
268
273
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RatingHoveredItemTemplateDirective, never>;
|
|
269
274
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RatingHoveredItemTemplateDirective, "ng-template[monaRatingHoveredItemTemplate]", never, {}, {}, never, never, true, never>;
|
|
270
275
|
}
|
|
@@ -275,7 +280,7 @@ declare class RatingHoveredItemTemplateDirective {
|
|
|
275
280
|
*/
|
|
276
281
|
declare class RatingItemTemplateDirective {
|
|
277
282
|
readonly templateRef: TemplateRef<RatingItemTemplateContext>;
|
|
278
|
-
static ngTemplateContextGuard(_directive: RatingItemTemplateDirective,
|
|
283
|
+
static ngTemplateContextGuard(_directive: RatingItemTemplateDirective, _context: unknown): _context is RatingItemTemplateContext;
|
|
279
284
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RatingItemTemplateDirective, never>;
|
|
280
285
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RatingItemTemplateDirective, "ng-template[monaRatingItemTemplate]", never, {}, {}, never, never, true, never>;
|
|
281
286
|
}
|
|
@@ -286,10 +291,12 @@ declare class RatingItemTemplateDirective {
|
|
|
286
291
|
*/
|
|
287
292
|
declare class RatingSelectedItemTemplateDirective {
|
|
288
293
|
readonly templateRef: TemplateRef<RatingItemTemplateContext>;
|
|
289
|
-
static ngTemplateContextGuard(_directive: RatingSelectedItemTemplateDirective,
|
|
294
|
+
static ngTemplateContextGuard(_directive: RatingSelectedItemTemplateDirective, _context: unknown): _context is RatingItemTemplateContext;
|
|
290
295
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RatingSelectedItemTemplateDirective, never>;
|
|
291
296
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RatingSelectedItemTemplateDirective, "ng-template[monaRatingSelectedItemTemplate]", never, {}, {}, never, never, true, never>;
|
|
292
297
|
}
|
|
293
298
|
|
|
294
|
-
|
|
299
|
+
declare const RATING_DEFAULT_MESSAGES: MonaRatingMessages;
|
|
300
|
+
|
|
301
|
+
export { RATING_DEFAULT_MESSAGES, RatingComponent, RatingHoveredItemTemplateDirective, RatingItemTemplateDirective, RatingSelectedItemTemplateDirective };
|
|
295
302
|
export type { RatingIconName, RatingItemTemplateContext, RatingLabelPosition, RatingPrecision, RatingSelectionMode, RatingVariantProps };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as _mirei_ts_collections from '@mirei/ts-collections';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { TemplateRef, ElementRef } from '@angular/core';
|
|
3
|
+
import { Signal, TemplateRef, ElementRef } from '@angular/core';
|
|
4
|
+
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
5
|
+
import { MonaScrollViewMessages } from '@nanahoshi/mona-ui/i18n';
|
|
4
6
|
import { ScrollDirection } from '@nanahoshi/mona-ui/common';
|
|
5
7
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
8
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -19,8 +21,7 @@ declare const scrollViewContentThemeVariants: (props?: class_variance_authority_
|
|
|
19
21
|
declare const scrollViewListThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
20
22
|
declare const scrollViewArrowThemeVariants: (props?: ({
|
|
21
23
|
hidden?: boolean | null | undefined;
|
|
22
|
-
|
|
23
|
-
right?: boolean | null | undefined;
|
|
24
|
+
side?: "left" | "right" | null | undefined;
|
|
24
25
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
25
26
|
declare const scrollViewPagerThemeVariants: (props?: ({
|
|
26
27
|
pagerOverlay?: "none" | "dark" | "light" | null | undefined;
|
|
@@ -50,31 +51,35 @@ type ScrollViewArrowVariantProps = VariantProps<typeof scrollViewArrowThemeVaria
|
|
|
50
51
|
type ScrollViewArrowVariantInput = VariantInputs<ScrollViewArrowVariantProps>;
|
|
51
52
|
type ScrollViewPagerArrowVariantProps = VariantProps<typeof scrollViewPagerArrowThemeVariants>;
|
|
52
53
|
type ScrollViewPagerArrowVariantInput = VariantInputs<ScrollViewPagerArrowVariantProps>;
|
|
53
|
-
type ScrollViewVariantInput = ScrollViewBaseVariantInput & ScrollViewContentVariantInput & ScrollViewListVariantInput & Omit<ScrollViewArrowVariantInput, "hidden" | "
|
|
54
|
+
type ScrollViewVariantInput = ScrollViewBaseVariantInput & ScrollViewContentVariantInput & ScrollViewListVariantInput & Omit<ScrollViewArrowVariantInput, "hidden" | "side"> & ScrollViewPagerVariantInput & ScrollViewPagerListContainerVariantInput & ScrollViewPagerListVariantInput & Omit<ScrollViewPagerListItemVariantInput, "active"> & ScrollViewPagerArrowVariantInput;
|
|
54
55
|
|
|
55
56
|
declare class ScrollViewComponent implements ScrollViewVariantInput {
|
|
56
57
|
#private;
|
|
57
|
-
protected readonly animationDuration:
|
|
58
|
-
protected readonly
|
|
59
|
-
protected readonly
|
|
60
|
-
protected readonly
|
|
61
|
-
protected readonly
|
|
62
|
-
protected readonly
|
|
63
|
-
protected readonly
|
|
64
|
-
protected readonly
|
|
65
|
-
protected readonly
|
|
66
|
-
protected readonly
|
|
58
|
+
protected readonly animationDuration: Signal<number>;
|
|
59
|
+
protected readonly ariaLabel: Signal<string | undefined>;
|
|
60
|
+
protected readonly baseClass: Signal<string>;
|
|
61
|
+
protected readonly contentClass: Signal<string>;
|
|
62
|
+
protected readonly contentTemplate: Signal<TemplateRef<any> | undefined>;
|
|
63
|
+
protected readonly enterAnimation: Signal<"slide-in-from-right" | "slide-in-from-left">;
|
|
64
|
+
protected readonly isRtl: Signal<boolean>;
|
|
65
|
+
protected readonly itemCount: Signal<number>;
|
|
66
|
+
protected readonly leaveAnimation: Signal<"slide-out-to-left" | "slide-out-to-right">;
|
|
67
|
+
protected readonly leftArrowClass: Signal<string>;
|
|
68
|
+
protected readonly listClass: Signal<string>;
|
|
69
|
+
protected readonly messages: Signal<_nanahoshi_mona_ui_i18n.MonaScrollViewMessages>;
|
|
70
|
+
protected readonly pagerArrowClass: Signal<string>;
|
|
67
71
|
protected readonly pagerArrowVisible: _angular_core.WritableSignal<boolean>;
|
|
68
|
-
protected readonly pagerClass:
|
|
69
|
-
protected readonly
|
|
70
|
-
protected readonly
|
|
71
|
-
protected readonly
|
|
72
|
-
protected readonly
|
|
73
|
-
protected readonly
|
|
74
|
-
protected readonly
|
|
75
|
-
protected readonly
|
|
76
|
-
protected readonly
|
|
77
|
-
protected readonly
|
|
72
|
+
protected readonly pagerClass: Signal<string>;
|
|
73
|
+
protected readonly pagerElementRef: Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
74
|
+
protected readonly pagerListClass: Signal<string>;
|
|
75
|
+
protected readonly pagerListContainerClass: Signal<string>;
|
|
76
|
+
protected readonly pagerListElementRef: Signal<ElementRef<HTMLUListElement> | undefined>;
|
|
77
|
+
protected readonly rightArrowClass: Signal<string>;
|
|
78
|
+
protected readonly scrollBehavior: Signal<ScrollBehavior>;
|
|
79
|
+
protected readonly scrollViewHeight: Signal<string>;
|
|
80
|
+
protected readonly scrollViewWidth: Signal<string>;
|
|
81
|
+
protected readonly viewData: Signal<_mirei_ts_collections.ImmutableSet<ScrollViewListItem>>;
|
|
82
|
+
protected readonly viewIndex: Signal<number>;
|
|
78
83
|
/**
|
|
79
84
|
* @description Sets whether page transitions are animated.
|
|
80
85
|
* Pass a boolean for default duration (500ms) or a number for custom duration in milliseconds.
|
|
@@ -140,13 +145,12 @@ declare class ScrollViewComponent implements ScrollViewVariantInput {
|
|
|
140
145
|
constructor();
|
|
141
146
|
protected onArrowClick(direction: ScrollDirection): void;
|
|
142
147
|
protected onPageClick(index: number, element: HTMLButtonElement): void;
|
|
143
|
-
protected
|
|
144
|
-
protected
|
|
148
|
+
protected onPagerClick(event: MouseEvent | PointerEvent, element: HTMLUListElement, direction: ScrollDirection): void;
|
|
149
|
+
protected onPagerPointerDown(event: PointerEvent, element: HTMLUListElement, direction: ScrollDirection): void;
|
|
145
150
|
private navigate;
|
|
146
151
|
private navigateLeft;
|
|
147
152
|
private navigateRight;
|
|
148
153
|
private scrollActivePageIntoView;
|
|
149
|
-
private setPagerListResizeObserver;
|
|
150
154
|
private setSubscriptions;
|
|
151
155
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScrollViewComponent, never>;
|
|
152
156
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ScrollViewComponent, "mona-scroll-view", never, { "animate": { "alias": "animate"; "required": false; "isSignal": true; }; "arrows": { "alias": "arrows"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": true; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; "infinite": { "alias": "infinite"; "required": false; "isSignal": true; }; "pageable": { "alias": "pageable"; "required": false; "isSignal": true; }; "pagerBlur": { "alias": "pagerBlur"; "required": false; "isSignal": true; }; "pagerOverlay": { "alias": "pagerOverlay"; "required": false; "isSignal": true; }; "pagerRounded": { "alias": "pagerRounded"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": true; "isSignal": true; }; }, { "index": "indexChange"; }, ["contentTemplate"], never, true, never>;
|
|
@@ -160,5 +164,7 @@ declare class ScrollViewActivePageDirective {
|
|
|
160
164
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ScrollViewActivePageDirective, "button[monaScrollViewActivePage]", never, { "active": { "alias": "active"; "required": true; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
161
165
|
}
|
|
162
166
|
|
|
163
|
-
|
|
167
|
+
declare const SCROLL_VIEW_DEFAULT_MESSAGES: MonaScrollViewMessages;
|
|
168
|
+
|
|
169
|
+
export { SCROLL_VIEW_DEFAULT_MESSAGES, ScrollViewActivePageDirective, ScrollViewComponent };
|
|
164
170
|
export type { PagerOverlay };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { ClassInputType } from '@nanahoshi/mona-ui/common';
|
|
3
|
+
import { MonaSheetMessages } from '@nanahoshi/mona-ui/i18n';
|
|
3
4
|
import { PopupCloseEvent } from '@nanahoshi/mona-ui/popup';
|
|
4
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
6
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
@@ -27,6 +28,7 @@ declare class SheetComponent implements SheetVariantInput {
|
|
|
27
28
|
protected readonly descriptionClass: _angular_core.Signal<string>;
|
|
28
29
|
protected readonly descriptionId: string;
|
|
29
30
|
protected readonly headerClass: _angular_core.Signal<string>;
|
|
31
|
+
protected readonly resolvedMessages: _angular_core.Signal<MonaSheetMessages>;
|
|
30
32
|
protected readonly titleClass: _angular_core.Signal<string>;
|
|
31
33
|
protected readonly titleId: string;
|
|
32
34
|
/** @description Accessible name used when no visible title is provided. */
|
|
@@ -45,6 +47,8 @@ declare class SheetComponent implements SheetVariantInput {
|
|
|
45
47
|
readonly description: _angular_core.InputSignal<string | undefined>;
|
|
46
48
|
/** @description Explicit sheet height. Numbers are interpreted as pixels. */
|
|
47
49
|
readonly height: _angular_core.InputSignal<string | number | undefined>;
|
|
50
|
+
/** @description Internationalization message overrides for accessible labels. */
|
|
51
|
+
readonly messages: _angular_core.InputSignal<Partial<MonaSheetMessages> | undefined>;
|
|
48
52
|
/** @description Edge of the viewport from which the sheet opens. @default "right" */
|
|
49
53
|
readonly side: _angular_core.InputSignal<SheetSide>;
|
|
50
54
|
/** @description Title displayed in the sheet header and used as its accessible name. */
|
|
@@ -55,8 +59,10 @@ declare class SheetComponent implements SheetVariantInput {
|
|
|
55
59
|
constructor();
|
|
56
60
|
protected closeSheet(): void;
|
|
57
61
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SheetComponent, never>;
|
|
58
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SheetComponent, "mona-sheet", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "close": "close"; "closed": "closed"; }, never, ["*"], true, never>;
|
|
62
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SheetComponent, "mona-sheet", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "close": "close"; "closed": "closed"; }, never, ["*"], true, never>;
|
|
59
63
|
}
|
|
60
64
|
|
|
61
|
-
|
|
65
|
+
declare const SHEET_DEFAULT_MESSAGES: MonaSheetMessages;
|
|
66
|
+
|
|
67
|
+
export { SHEET_DEFAULT_MESSAGES, SheetComponent };
|
|
62
68
|
export type { SheetSide };
|
|
@@ -51,6 +51,8 @@ type SidebarVariant = "sidebar" | "floating" | "inset";
|
|
|
51
51
|
*/
|
|
52
52
|
declare class SidebarComponent {
|
|
53
53
|
#private;
|
|
54
|
+
protected readonly physicalSide: _angular_core.Signal<"left" | "right">;
|
|
55
|
+
protected readonly drawerPhysicalSide: _angular_core.Signal<"left" | "right">;
|
|
54
56
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
55
57
|
/** The compact presentation: an overlay pinned to one edge rather than a column in the flow. */
|
|
56
58
|
protected readonly drawer: _angular_core.Signal<boolean>;
|
|
@@ -518,6 +520,7 @@ declare class SidebarMenuSubDirective {
|
|
|
518
520
|
*/
|
|
519
521
|
declare class SidebarRailDirective {
|
|
520
522
|
#private;
|
|
523
|
+
protected readonly physicalSide: _angular_core.Signal<"left" | "right">;
|
|
521
524
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
522
525
|
protected readonly expanded: _angular_core.Signal<boolean>;
|
|
523
526
|
protected readonly sidebarId: _angular_core.Signal<string>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
2
|
+
import { MonaI18nService, MonaSliderMessages } from '@nanahoshi/mona-ui/i18n';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ElementRef,
|
|
4
|
+
import { ElementRef, Signal, DestroyRef, TemplateRef, NgZone } from '@angular/core';
|
|
3
5
|
import { FormValueControl } from '@angular/forms/signals';
|
|
4
6
|
import { Orientation } from '@nanahoshi/mona-ui/common';
|
|
5
7
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
@@ -13,6 +15,7 @@ declare class SliderTickDirective {
|
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
interface LabelStyleArgs {
|
|
18
|
+
direction: "ltr" | "rtl";
|
|
16
19
|
labelPosition: "before" | "after";
|
|
17
20
|
max: number;
|
|
18
21
|
min: number;
|
|
@@ -29,6 +32,7 @@ interface SliderTick {
|
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
interface TickStyleArgs {
|
|
35
|
+
direction: "ltr" | "rtl";
|
|
32
36
|
largeTickStep: number | null;
|
|
33
37
|
max: number;
|
|
34
38
|
min: number;
|
|
@@ -68,31 +72,38 @@ type SliderVariantProps = SliderBaseVariantProps & SliderTrackVariantProps & Sli
|
|
|
68
72
|
type SliderVariantInputs = SliderBaseVariantInputs & SliderTrackVariantInputs & SliderSelectionVariantInputs & SliderTickListVariantInputs & SliderTickVariantInputs & SliderTickLabelListVariantInputs & SliderTickLabelVariantInputs & SliderHandleVariantInputs;
|
|
69
73
|
|
|
70
74
|
declare abstract class SliderBaseComponent implements SliderVariantInputs {
|
|
75
|
+
protected readonly baseClasses: Signal<string>;
|
|
71
76
|
protected readonly destroyRef: DestroyRef;
|
|
72
77
|
protected readonly dragging: _angular_core.WritableSignal<boolean>;
|
|
78
|
+
protected readonly effectiveDisabled: Signal<boolean>;
|
|
79
|
+
protected readonly handleTemplate: Signal<TemplateRef<any> | undefined>;
|
|
80
|
+
protected readonly handleTemplateStyles: Signal<Partial<CSSStyleDeclaration>>;
|
|
81
|
+
protected readonly direction: Signal<_nanahoshi_mona_ui_i18n.MonaTextDirection>;
|
|
73
82
|
protected readonly hostElementRef: ElementRef<HTMLDivElement>;
|
|
74
|
-
protected readonly
|
|
83
|
+
protected readonly i18n: MonaI18nService;
|
|
84
|
+
protected readonly isRtl: Signal<boolean>;
|
|
85
|
+
protected readonly labelStyleArgs: Signal<LabelStyleArgs>;
|
|
86
|
+
protected readonly labelTicks: Signal<SliderTick[]>;
|
|
87
|
+
protected readonly renderTicks: Signal<SliderTick[]>;
|
|
88
|
+
protected readonly selectionBackgroundStyle: Signal<Partial<CSSStyleDeclaration>>;
|
|
89
|
+
protected abstract readonly selectionLeft: Signal<number>;
|
|
90
|
+
protected abstract readonly selectionRight: Signal<number>;
|
|
91
|
+
protected readonly horizontalSelectionLeft: Signal<number | undefined>;
|
|
92
|
+
protected readonly horizontalSelectionRight: Signal<number | undefined>;
|
|
93
|
+
protected readonly selectionClasses: Signal<string>;
|
|
94
|
+
protected readonly sliderHandleClasses: Signal<string>;
|
|
95
|
+
protected readonly sliderTrackSize: Signal<string | null>;
|
|
96
|
+
protected readonly tickClasses: Signal<string>;
|
|
97
|
+
protected readonly tickElements: Signal<readonly SliderTickDirective[]>;
|
|
98
|
+
protected readonly tickLabelClasses: Signal<string>;
|
|
99
|
+
protected readonly tickLabelListClasses: Signal<string>;
|
|
100
|
+
protected readonly tickListClasses: Signal<string>;
|
|
101
|
+
protected readonly tickStyleArgs: Signal<TickStyleArgs>;
|
|
102
|
+
protected readonly tickValueTemplate: Signal<TemplateRef<any> | undefined>;
|
|
103
|
+
protected readonly ticks: Signal<SliderTick[]>;
|
|
104
|
+
protected readonly trackBackgroundStyle: Signal<Partial<CSSStyleDeclaration>>;
|
|
105
|
+
protected readonly trackClasses: Signal<string>;
|
|
75
106
|
protected readonly zone: NgZone;
|
|
76
|
-
protected readonly baseClasses: _angular_core.Signal<string>;
|
|
77
|
-
protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
78
|
-
protected readonly handleTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
79
|
-
protected readonly handleTemplateStyles: _angular_core.Signal<Partial<CSSStyleDeclaration>>;
|
|
80
|
-
protected readonly labelStyleArgs: _angular_core.Signal<LabelStyleArgs>;
|
|
81
|
-
protected readonly labelTicks: _angular_core.Signal<SliderTick[]>;
|
|
82
|
-
protected readonly renderTicks: _angular_core.Signal<SliderTick[]>;
|
|
83
|
-
protected readonly selectionBackgroundStyle: _angular_core.Signal<Partial<CSSStyleDeclaration>>;
|
|
84
|
-
protected readonly selectionClasses: _angular_core.Signal<string>;
|
|
85
|
-
protected readonly sliderHandleClasses: _angular_core.Signal<string>;
|
|
86
|
-
protected readonly sliderTrackSize: _angular_core.Signal<string | null>;
|
|
87
|
-
protected readonly tickClasses: _angular_core.Signal<string>;
|
|
88
|
-
protected readonly tickLabelClasses: _angular_core.Signal<string>;
|
|
89
|
-
protected readonly tickLabelListClasses: _angular_core.Signal<string>;
|
|
90
|
-
protected readonly tickListClasses: _angular_core.Signal<string>;
|
|
91
|
-
protected readonly tickStyleArgs: _angular_core.Signal<TickStyleArgs>;
|
|
92
|
-
protected readonly tickValueTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
93
|
-
protected readonly ticks: _angular_core.Signal<SliderTick[]>;
|
|
94
|
-
protected readonly trackBackgroundStyle: _angular_core.Signal<Partial<CSSStyleDeclaration>>;
|
|
95
|
-
protected readonly trackClasses: _angular_core.Signal<string>;
|
|
96
107
|
/**
|
|
97
108
|
* @description Human-readable override for the `aria-valuenow` announcement. Pass a function that receives the current value and returns the string to announce.
|
|
98
109
|
* @default null
|
|
@@ -212,9 +223,11 @@ declare abstract class SliderBaseComponent implements SliderVariantInputs {
|
|
|
212
223
|
}
|
|
213
224
|
|
|
214
225
|
declare class SliderComponent extends SliderBaseComponent implements FormValueControl<number> {
|
|
226
|
+
protected readonly computedAriaLabel: Signal<string>;
|
|
215
227
|
protected readonly handleFocused: _angular_core.WritableSignal<boolean>;
|
|
216
228
|
protected readonly handlePosition: Signal<number>;
|
|
217
229
|
protected readonly handleStyle: Signal<Partial<CSSStyleDeclaration>>;
|
|
230
|
+
protected readonly messages: Signal<_nanahoshi_mona_ui_i18n.MonaSliderMessages>;
|
|
218
231
|
protected readonly normalizedValue: Signal<number>;
|
|
219
232
|
protected readonly selectionLeft: Signal<number>;
|
|
220
233
|
protected readonly selectionRight: Signal<number>;
|
|
@@ -222,7 +235,7 @@ declare class SliderComponent extends SliderBaseComponent implements FormValueCo
|
|
|
222
235
|
/**
|
|
223
236
|
* @description Accessible name for the host element. Describe what the component represents.
|
|
224
237
|
* When empty, assistive technology announces the role without a label.
|
|
225
|
-
* @default
|
|
238
|
+
* @default null
|
|
226
239
|
*/
|
|
227
240
|
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
228
241
|
/**
|
|
@@ -248,8 +261,11 @@ declare class SliderComponent extends SliderBaseComponent implements FormValueCo
|
|
|
248
261
|
}
|
|
249
262
|
|
|
250
263
|
declare class RangeSliderComponent extends SliderBaseComponent implements FormValueControl<[number, number]> {
|
|
264
|
+
protected readonly computedAriaLabelEnd: Signal<string>;
|
|
265
|
+
protected readonly computedAriaLabelStart: Signal<string>;
|
|
251
266
|
protected readonly handlePositions: Signal<[number, number]>;
|
|
252
267
|
protected readonly handlesOverlap: Signal<boolean>;
|
|
268
|
+
protected readonly messages: Signal<_nanahoshi_mona_ui_i18n.MonaSliderMessages>;
|
|
253
269
|
protected readonly normalizedValue: Signal<[number, number]>;
|
|
254
270
|
protected readonly primaryHandleFocused: _angular_core.WritableSignal<boolean>;
|
|
255
271
|
protected readonly primaryHandlePosition: Signal<number>;
|
|
@@ -264,12 +280,12 @@ declare class RangeSliderComponent extends SliderBaseComponent implements FormVa
|
|
|
264
280
|
protected readonly sliderHandle: Signal<ElementRef<HTMLDivElement>>;
|
|
265
281
|
/**
|
|
266
282
|
* @description Accessible name for the upper-value (secondary) handle.
|
|
267
|
-
* @default
|
|
283
|
+
* @default null
|
|
268
284
|
*/
|
|
269
285
|
readonly ariaLabelEnd: _angular_core.InputSignal<string | null>;
|
|
270
286
|
/**
|
|
271
287
|
* @description Accessible name for the lower-value (primary) handle.
|
|
272
|
-
* @default
|
|
288
|
+
* @default null
|
|
273
289
|
*/
|
|
274
290
|
readonly ariaLabelStart: _angular_core.InputSignal<string | null>;
|
|
275
291
|
/**
|
|
@@ -301,5 +317,7 @@ declare class SliderTickValueTemplateDirective {
|
|
|
301
317
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SliderTickValueTemplateDirective, "ng-template[monaSliderTickValueTemplate]", never, {}, {}, never, never, true, never>;
|
|
302
318
|
}
|
|
303
319
|
|
|
304
|
-
|
|
320
|
+
declare const SLIDER_DEFAULT_MESSAGES: MonaSliderMessages;
|
|
321
|
+
|
|
322
|
+
export { RangeSliderComponent, SLIDER_DEFAULT_MESSAGES, SliderComponent, SliderHandleTemplateDirective, SliderTickValueTemplateDirective };
|
|
305
323
|
export type { SliderVariantProps };
|
|
@@ -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, OnDestroy } from '@angular/core';
|
|
3
4
|
import { LucideLoader } from '@lucide/angular';
|
|
@@ -7,6 +8,11 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
7
8
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
8
9
|
import { Observable } from 'rxjs';
|
|
9
10
|
|
|
11
|
+
declare const SPINNER_DEFAULT_MESSAGES: {
|
|
12
|
+
cancel: string;
|
|
13
|
+
loading: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
10
16
|
type SpinnerAppearance = "default" | "pulsing" | "pulsing-triad" | "pulsing-ring" | "converging-spinner";
|
|
11
17
|
|
|
12
18
|
type SpinnerSize = "small" | "medium" | "large";
|
|
@@ -23,8 +29,10 @@ type SpinnerVariantInput = VariantInputs<SpinnerVariantProps>;
|
|
|
23
29
|
* Supports multiple appearances, standard sizes, and accessible status announcements.
|
|
24
30
|
*/
|
|
25
31
|
declare class SpinnerComponent implements SpinnerVariantInput {
|
|
32
|
+
#private;
|
|
26
33
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
27
34
|
protected readonly loaderIcon: typeof LucideLoader;
|
|
35
|
+
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaSpinnerMessages>;
|
|
28
36
|
protected readonly pixelSize: _angular_core.Signal<12 | 24 | 16>;
|
|
29
37
|
/**
|
|
30
38
|
* @description Visual appearance of the spinner animation.
|
|
@@ -33,9 +41,10 @@ declare class SpinnerComponent implements SpinnerVariantInput {
|
|
|
33
41
|
readonly appearance: _angular_core.InputSignal<SpinnerAppearance>;
|
|
34
42
|
/**
|
|
35
43
|
* @description Accessible text announced by assistive technology when the spinner is not decorative.
|
|
36
|
-
*
|
|
44
|
+
* When not set, falls back to the localized loading text.
|
|
45
|
+
* @default undefined
|
|
37
46
|
*/
|
|
38
|
-
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
47
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
39
48
|
/**
|
|
40
49
|
* @description When `true`, removes the `status` role and hides the spinner from assistive technology with `aria-hidden="true"`.
|
|
41
50
|
* Useful when a parent element already manages loading semantics (such as `aria-busy="true"` on a button).
|
|
@@ -80,8 +89,8 @@ interface SpinnerUpdate {
|
|
|
80
89
|
|
|
81
90
|
interface SpinnerRef {
|
|
82
91
|
readonly cancelled$: Observable<void>;
|
|
83
|
-
readonly id: string;
|
|
84
92
|
close(): void;
|
|
93
|
+
readonly id: string;
|
|
85
94
|
update(update: SpinnerUpdate): void;
|
|
86
95
|
}
|
|
87
96
|
|
|
@@ -110,5 +119,5 @@ declare class SpinnerService implements OnDestroy {
|
|
|
110
119
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SpinnerService>;
|
|
111
120
|
}
|
|
112
121
|
|
|
113
|
-
export { SpinnerComponent, SpinnerService };
|
|
122
|
+
export { SPINNER_DEFAULT_MESSAGES, SpinnerComponent, SpinnerService };
|
|
114
123
|
export type { SpinnerAppearance, SpinnerCancelOptions, SpinnerOptions, SpinnerRef, SpinnerSize, SpinnerUpdate, SpinnerVariantProps };
|