@nanahoshi/mona-ui 0.18.6 → 0.20.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/THIRD_PARTY_NOTICES.md +60 -0
- 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 +196 -101
- 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 +11 -3
- 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 +39 -21
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +88 -55
- 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-BuybF7tX.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-Dj-SaNzk.mjs} +2 -2
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-CYAm4l84.mjs +145 -0
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-toggle.component-hc-LeIb0.mjs → nanahoshi-mona-ui-grid-grid-toggle.component-B_Gm--X6.mjs} +46 -31
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-DYajpOb9.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-X0X487Rm.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-Pm8Fbp6M.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CyzJFQIy.mjs} +99 -42
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-i18n.mjs +4874 -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-locales.mjs +4973 -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 +66 -29
- 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 +41 -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 +47 -24
- 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/locales/package.json +4 -0
- package/package.json +9 -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 +29 -15
- 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 +7 -1
- 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 +14 -6
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +40 -12
- 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 +50 -2
- package/types/nanahoshi-mona-ui-i18n.d.ts +680 -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-locales.d.ts +4889 -0
- 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 +20 -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 +10 -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 +11 -4
- 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 { ButtonDirective } from '@nanahoshi/mona-ui/button';
|
|
3
4
|
import { SelectionMode } from '@nanahoshi/mona-ui/common';
|
|
@@ -17,6 +18,8 @@ declare class ButtonGroupComponent implements ButtonGroupVariantsInput {
|
|
|
17
18
|
#private;
|
|
18
19
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
19
20
|
protected readonly buttons: _angular_core.Signal<readonly ButtonDirective[]>;
|
|
21
|
+
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaButtonGroupMessages>;
|
|
22
|
+
protected readonly effectiveAriaLabel: _angular_core.Signal<string>;
|
|
20
23
|
/**
|
|
21
24
|
* @description When `false` and `selection` is `"single"`, at least one button must remain selected;
|
|
22
25
|
* the active button cannot be deselected. Has no effect in `"multiple"` mode.
|
|
@@ -26,9 +29,8 @@ declare class ButtonGroupComponent implements ButtonGroupVariantsInput {
|
|
|
26
29
|
/**
|
|
27
30
|
* @description Accessible name for the host element. Override when multiple button groups appear on the same page
|
|
28
31
|
* so screen reader users can distinguish them.
|
|
29
|
-
* @default "Button group"
|
|
30
32
|
*/
|
|
31
|
-
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
33
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
32
34
|
/**
|
|
33
35
|
* @description Emitted when any child button in the group is clicked.
|
|
34
36
|
* Use `[(selected)]` on child buttons to observe the resulting selection state.
|
|
@@ -72,5 +74,9 @@ declare class ButtonGroupComponent implements ButtonGroupVariantsInput {
|
|
|
72
74
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonGroupComponent, "mona-button-group", never, { "allowEmpty": { "alias": "allowEmpty"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "buttonClick": "buttonClick"; "disabled": "disabledChange"; "selection": "selectionChange"; }, ["buttons"], ["[monaButton]"], true, never>;
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
|
|
77
|
+
declare const BUTTON_GROUP_DEFAULT_MESSAGES: {
|
|
78
|
+
buttonGroup: string;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export { BUTTON_GROUP_DEFAULT_MESSAGES, ButtonGroupComponent };
|
|
76
82
|
export type { ButtonGroupVariantProps };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as _mirei_ts_collections from '@mirei/ts-collections';
|
|
2
|
+
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
3
|
+
import { MonaCalendarMessages } from '@nanahoshi/mona-ui/i18n';
|
|
2
4
|
import * as _angular_core from '@angular/core';
|
|
3
5
|
import { TemplateRef } from '@angular/core';
|
|
4
6
|
import { FormValueControl } from '@angular/forms/signals';
|
|
@@ -54,7 +56,7 @@ declare class CalendarYearCellTemplateDirective {
|
|
|
54
56
|
|
|
55
57
|
type CalendarSelection = "multiple" | "range" | "single";
|
|
56
58
|
|
|
57
|
-
type FirstDayOfWeek = "monday" | "sunday";
|
|
59
|
+
type FirstDayOfWeek = "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
|
|
58
60
|
|
|
59
61
|
declare const calendarBaseThemeVariants: (props?: ({
|
|
60
62
|
disabled?: boolean | null | undefined;
|
|
@@ -114,9 +116,13 @@ declare class CalendarComponent implements CalendarVariantInput, FormValueContro
|
|
|
114
116
|
protected readonly decadeGridClass: _angular_core.Signal<string>;
|
|
115
117
|
protected readonly decadeStart: _angular_core.Signal<number>;
|
|
116
118
|
protected readonly decadeYears: _angular_core.Signal<number[][]>;
|
|
119
|
+
protected readonly effectiveFirstDay: _angular_core.Signal<FirstDayOfWeek>;
|
|
117
120
|
protected readonly gridId: string;
|
|
118
121
|
protected readonly headerClass: _angular_core.Signal<string>;
|
|
122
|
+
protected readonly headerMonthYear: _angular_core.Signal<string>;
|
|
123
|
+
protected readonly headerYear: _angular_core.Signal<string>;
|
|
119
124
|
protected readonly invalidState: _angular_core.Signal<boolean>;
|
|
125
|
+
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaCalendarMessages>;
|
|
120
126
|
protected readonly monthBounds: _angular_core.Signal<{
|
|
121
127
|
start: Date;
|
|
122
128
|
end: Date;
|
|
@@ -127,9 +133,9 @@ declare class CalendarComponent implements CalendarVariantInput, FormValueContro
|
|
|
127
133
|
protected readonly monthGridHeaderClass: _angular_core.Signal<string>;
|
|
128
134
|
protected readonly months: _angular_core.Signal<_mirei_ts_collections.ImmutableSet<_mirei_ts_collections.ImmutableSet<readonly [number, string]>>>;
|
|
129
135
|
protected readonly navigatedDate: _angular_core.WritableSignal<Date>;
|
|
130
|
-
protected readonly nextButtonLabel: _angular_core.Signal<
|
|
131
|
-
protected readonly prevButtonLabel: _angular_core.Signal<"Previous month" | "Previous year" | "Previous decade">;
|
|
136
|
+
protected readonly nextButtonLabel: _angular_core.Signal<string>;
|
|
132
137
|
protected readonly pendingRangeStart: _angular_core.WritableSignal<Date | null>;
|
|
138
|
+
protected readonly prevButtonLabel: _angular_core.Signal<string>;
|
|
133
139
|
protected readonly rangePreviewDate: _angular_core.WritableSignal<Date | null>;
|
|
134
140
|
protected readonly rangePreviewDates: _angular_core.Signal<Date[]>;
|
|
135
141
|
protected readonly selectedDates: _angular_core.WritableSignal<Date[]>;
|
|
@@ -137,7 +143,9 @@ declare class CalendarComponent implements CalendarVariantInput, FormValueContro
|
|
|
137
143
|
protected readonly todayButtonLabel: _angular_core.Signal<string>;
|
|
138
144
|
protected readonly viewSwitchButtonLabel: _angular_core.Signal<string>;
|
|
139
145
|
protected readonly weekdays: _angular_core.Signal<{
|
|
146
|
+
display: string;
|
|
140
147
|
short: string;
|
|
148
|
+
narrow: string;
|
|
141
149
|
full: string;
|
|
142
150
|
}[]>;
|
|
143
151
|
protected readonly yearCellTemplate: _angular_core.Signal<CalendarYearCellTemplateDirective | undefined>;
|
|
@@ -152,10 +160,10 @@ declare class CalendarComponent implements CalendarVariantInput, FormValueContro
|
|
|
152
160
|
*/
|
|
153
161
|
readonly disabledDates: _angular_core.InputSignal<DateDisabledType>;
|
|
154
162
|
/**
|
|
155
|
-
* @description Sets the first day of the week.
|
|
156
|
-
* @default
|
|
163
|
+
* @description Sets the first day of the week. If not specified, derives from the active locale.
|
|
164
|
+
* @default null
|
|
157
165
|
*/
|
|
158
|
-
readonly firstDay: _angular_core.InputSignal<FirstDayOfWeek>;
|
|
166
|
+
readonly firstDay: _angular_core.InputSignal<FirstDayOfWeek | null>;
|
|
159
167
|
/**
|
|
160
168
|
* @description Marks the calendar as invalid. When bound to a signal form field via `[formField]`,
|
|
161
169
|
* this is written by the `FormField` directive.
|
|
@@ -175,6 +183,12 @@ declare class CalendarComponent implements CalendarVariantInput, FormValueContro
|
|
|
175
183
|
* @default false
|
|
176
184
|
*/
|
|
177
185
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
186
|
+
/**
|
|
187
|
+
* @description Sets whether the calendar is required. When bound to a signal form field via `[formField]`,
|
|
188
|
+
* this is written by the `FormField` directive.
|
|
189
|
+
* @default false
|
|
190
|
+
*/
|
|
191
|
+
readonly required: _angular_core.InputSignal<boolean>;
|
|
178
192
|
/**
|
|
179
193
|
* @description Sets the border radius of the calendar.
|
|
180
194
|
* @default "medium"
|
|
@@ -190,12 +204,6 @@ declare class CalendarComponent implements CalendarVariantInput, FormValueContro
|
|
|
190
204
|
* The `FormField` directive listens to this to mark the field as touched.
|
|
191
205
|
*/
|
|
192
206
|
readonly touch: _angular_core.OutputEmitterRef<void>;
|
|
193
|
-
/**
|
|
194
|
-
* @description Sets whether the calendar is required. When bound to a signal form field via `[formField]`,
|
|
195
|
-
* this is written by the `FormField` directive.
|
|
196
|
-
* @default false
|
|
197
|
-
*/
|
|
198
|
-
readonly required: _angular_core.InputSignal<boolean>;
|
|
199
207
|
/**
|
|
200
208
|
* @description Sets the touched state of the calendar. When bound to a signal form field via `[formField]`,
|
|
201
209
|
* this is written by the `FormField` directive.
|
|
@@ -217,6 +225,8 @@ declare class CalendarComponent implements CalendarVariantInput, FormValueContro
|
|
|
217
225
|
*/
|
|
218
226
|
readonly weekNumber: _angular_core.InputSignal<boolean>;
|
|
219
227
|
constructor();
|
|
228
|
+
protected formatInteger(value: number): string;
|
|
229
|
+
protected getWeekNumber(date: Date): number;
|
|
220
230
|
protected onDayClick(date: Date, event: MouseEvent): void;
|
|
221
231
|
protected onDayPointerEnter(date: Date): void;
|
|
222
232
|
protected onMonthClick(month: number): void;
|
|
@@ -225,9 +235,9 @@ declare class CalendarComponent implements CalendarVariantInput, FormValueContro
|
|
|
225
235
|
protected onTodayButtonClick(): void;
|
|
226
236
|
protected onViewChangeClick(view: CalendarView): void;
|
|
227
237
|
protected onYearClick(year: number): void;
|
|
228
|
-
private extendSelection;
|
|
229
238
|
private clearPendingRange;
|
|
230
239
|
private commitUserSelection;
|
|
240
|
+
private extendSelection;
|
|
231
241
|
private focusActiveCell;
|
|
232
242
|
private getDateArray;
|
|
233
243
|
private getDatesForMultipleSelection;
|
|
@@ -237,6 +247,8 @@ declare class CalendarComponent implements CalendarVariantInput, FormValueContro
|
|
|
237
247
|
private handleMultipleSelectionKeyboard;
|
|
238
248
|
private handleRangeSelection;
|
|
239
249
|
private handleSingleSelection;
|
|
250
|
+
private horizontalCellDelta;
|
|
251
|
+
private horizontalPeriodDirection;
|
|
240
252
|
private isDateDisabled;
|
|
241
253
|
private isEmptyValue;
|
|
242
254
|
private navigateByDaysOrCells;
|
|
@@ -254,8 +266,10 @@ declare class CalendarComponent implements CalendarVariantInput, FormValueContro
|
|
|
254
266
|
private switchToUpperView;
|
|
255
267
|
private toggleFocusedDateInSelection;
|
|
256
268
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CalendarComponent, never>;
|
|
257
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CalendarComponent, "mona-calendar", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "disabledDates": { "alias": "disabledDates"; "required": false; "isSignal": true; }; "firstDay": { "alias": "firstDay"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "
|
|
269
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CalendarComponent, "mona-calendar", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "disabledDates": { "alias": "disabledDates"; "required": false; "isSignal": true; }; "firstDay": { "alias": "firstDay"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "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; }; "weekNumber": { "alias": "weekNumber"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "touch": "touch"; "value": "valueChange"; }, ["decadeCellTemplate", "monthCellTemplate", "yearCellTemplate"], never, true, never>;
|
|
258
270
|
}
|
|
259
271
|
|
|
260
|
-
|
|
272
|
+
declare const CALENDAR_DEFAULT_MESSAGES: MonaCalendarMessages;
|
|
273
|
+
|
|
274
|
+
export { CALENDAR_DEFAULT_MESSAGES, CalendarComponent, CalendarDecadeCellTemplateDirective, CalendarMonthCellTemplateDirective, CalendarYearCellTemplateDirective };
|
|
261
275
|
export type { CalendarSelection, CalendarVariantInput, CalendarVariantProps, DecadeCellTemplateContext, FirstDayOfWeek, MonthCellTemplateContext, YearCellTemplateContext };
|
|
@@ -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 } from '@angular/core';
|
|
3
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
@@ -23,8 +24,8 @@ type CardVariantInput = Omit<CardBaseVariantInput, "hasFooter" | "hasHeader">;
|
|
|
23
24
|
|
|
24
25
|
declare class CardComponent implements CardVariantInput {
|
|
25
26
|
#private;
|
|
26
|
-
protected readonly actionsCellClass: string;
|
|
27
27
|
protected readonly actionTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown>[]>;
|
|
28
|
+
protected readonly actionsCellClass: string;
|
|
28
29
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
29
30
|
protected readonly contentDirective: _angular_core.Signal<CardContentDirective | undefined>;
|
|
30
31
|
protected readonly descriptionCellClass: string;
|
|
@@ -34,6 +35,7 @@ declare class CardComponent implements CardVariantInput {
|
|
|
34
35
|
protected readonly footerTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown> | null>;
|
|
35
36
|
protected readonly headerClass: _angular_core.Signal<string>;
|
|
36
37
|
protected readonly headerTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown> | null>;
|
|
38
|
+
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaCardMessages>;
|
|
37
39
|
protected readonly titleCellClass: string;
|
|
38
40
|
protected readonly titleId: _angular_core.Signal<string | null>;
|
|
39
41
|
protected readonly titleTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown> | null>;
|
|
@@ -100,5 +102,9 @@ declare class CardTitleDirective {
|
|
|
100
102
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CardTitleDirective, "[monaCardTitle]", never, {}, {}, never, never, true, never>;
|
|
101
103
|
}
|
|
102
104
|
|
|
103
|
-
|
|
105
|
+
declare const CARD_DEFAULT_MESSAGES: {
|
|
106
|
+
actionsLabel: string;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export { CARD_DEFAULT_MESSAGES, CardActionDirective, CardComponent, CardContentDirective, CardDescriptionDirective, CardFooterComponent, CardHeaderComponent, CardTitleDirective };
|
|
104
110
|
export type { CardVariantProps };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as _nanahoshi_mona_ui_chart from '@nanahoshi/mona-ui/chart';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
3
|
import { TemplateRef, Signal, ElementRef, AfterContentChecked, OnInit } from '@angular/core';
|
|
4
|
+
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
5
|
+
import { MonaChartMessages } from '@nanahoshi/mona-ui/i18n';
|
|
4
6
|
|
|
5
7
|
interface ChartViewportAxisRef {
|
|
6
8
|
readonly axis: "x" | "y";
|
|
@@ -4193,6 +4195,7 @@ interface ChartSeriesVisibilityEvent {
|
|
|
4193
4195
|
|
|
4194
4196
|
declare class ChartComponent implements ChartRegistrationContext, AfterContentChecked {
|
|
4195
4197
|
#private;
|
|
4198
|
+
protected readonly messages: Signal<_nanahoshi_mona_ui_i18n.MonaChartMessages>;
|
|
4196
4199
|
protected readonly activeAccessibilityText: _angular_core.WritableSignal<string>;
|
|
4197
4200
|
protected readonly animationDurationCss: Signal<string>;
|
|
4198
4201
|
protected readonly animationEasingCss: Signal<string>;
|
|
@@ -5652,6 +5655,7 @@ declare class PolarSeriesComponent implements OnInit {
|
|
|
5652
5655
|
|
|
5653
5656
|
declare class ChartLegendComponent implements OnInit {
|
|
5654
5657
|
#private;
|
|
5658
|
+
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaChartMessages>;
|
|
5655
5659
|
protected readonly containerClasses: _angular_core.Signal<string>;
|
|
5656
5660
|
protected readonly gradientCss: _angular_core.Signal<string>;
|
|
5657
5661
|
protected readonly hostClasses: _angular_core.Signal<"block w-full flex-shrink-0" | "flex flex-col justify-center flex-shrink-0">;
|
|
@@ -5697,6 +5701,7 @@ interface ChartTooltipPlacement {
|
|
|
5697
5701
|
}
|
|
5698
5702
|
declare class ChartTooltipComponent implements OnInit {
|
|
5699
5703
|
#private;
|
|
5704
|
+
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaChartMessages>;
|
|
5700
5705
|
protected readonly customTemplate: _angular_core.Signal<ChartTooltipTemplateDirective | undefined>;
|
|
5701
5706
|
protected readonly placement: _angular_core.Signal<ChartTooltipPlacement>;
|
|
5702
5707
|
protected readonly tooltipClasses: _angular_core.Signal<string>;
|
|
@@ -5720,6 +5725,8 @@ declare class ChartTooltipComponent implements OnInit {
|
|
|
5720
5725
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
5721
5726
|
constructor();
|
|
5722
5727
|
ngOnInit(): void;
|
|
5728
|
+
protected financialDirectionLabel(dir: "falling" | "rising" | "unchanged" | string | null | undefined): string;
|
|
5729
|
+
protected formatPercent(value: number): string;
|
|
5723
5730
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartTooltipComponent, never>;
|
|
5724
5731
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartTooltipComponent, "mona-chart-tooltip", never, { "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "shared": { "alias": "shared"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, ["customTemplate"], never, true, never>;
|
|
5725
5732
|
}
|
|
@@ -7825,5 +7832,7 @@ declare class ChartBrushComponent implements OnInit {
|
|
|
7825
7832
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartBrushComponent, "mona-chart-brush", never, { "activation": { "alias": "activation"; "required": false; "isSignal": true; }; "borderColor": { "alias": "borderColor"; "required": false; "isSignal": true; }; "borderWidth": { "alias": "borderWidth"; "required": false; "isSignal": true; }; "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "fillColor": { "alias": "fillColor"; "required": false; "isSignal": true; }; "fillOpacity": { "alias": "fillOpacity"; "required": false; "isSignal": true; }; "hitPolicy": { "alias": "hitPolicy"; "required": false; "isSignal": true; }; "lineStyle": { "alias": "lineStyle"; "required": false; "isSignal": true; }; "minDragDistance": { "alias": "minDragDistance"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "selectionBehavior": { "alias": "selectionBehavior"; "required": false; "isSignal": true; }; "xAxisId": { "alias": "xAxisId"; "required": false; "isSignal": true; }; "yAxisId": { "alias": "yAxisId"; "required": false; "isSignal": true; }; }, { "brushChange": "brushChange"; }, never, never, true, never>;
|
|
7826
7833
|
}
|
|
7827
7834
|
|
|
7828
|
-
|
|
7835
|
+
declare const CHART_DEFAULT_MESSAGES: MonaChartMessages;
|
|
7836
|
+
|
|
7837
|
+
export { AreaSeriesComponent, BarSeriesComponent, BubbleSeriesComponent, CHART_DEFAULT_MESSAGES, CandlestickSeriesComponent, ChartAngularAxisComponent, ChartAnnotationComponent, ChartAnnotationLabelTemplateDirective, ChartAxisLabelTemplateDirective, ChartBrushComponent, ChartCenterTemplateDirective, ChartComponent, ChartCrosshairComponent, ChartCrosshairLabelTemplateDirective, ChartDataLabelTemplateDirective, ChartExportError, ChartFunnelLabelTemplateDirective, ChartGaugeCenterTemplateDirective, ChartLegendComponent, ChartLegendItemTemplateDirective, ChartNoDataTemplateDirective, ChartRadialAxisComponent, ChartReferenceBandComponent, ChartReferenceLabelTemplateDirective, ChartReferenceLineComponent, ChartSelectionComponent, ChartSliceLabelTemplateDirective, ChartSubtitleTemplateDirective, ChartTitleTemplateDirective, ChartTooltipComponent, ChartTooltipTemplateDirective, ChartTreemapLabelTemplateDirective, ChartWaterfallLabelTemplateDirective, ChartXAxisComponent, ChartYAxisComponent, DonutSeriesComponent, FunnelSeriesComponent, GaugeSeriesComponent, HeatmapSeriesComponent, LineSeriesComponent, OhlcSeriesComponent, PieSeriesComponent, PolarSeriesComponent, RadarSeriesComponent, RadialBarSeriesComponent, RangeAreaSeriesComponent, RangeBarSeriesComponent, RoseSeriesComponent, ScatterSeriesComponent, TreemapSeriesComponent, WaterfallSeriesComponent, getChartSeriesFamily, isCartesianCoordinateFamily, isHierarchicalCoordinateFamily, isPolarCoordinateFamily };
|
|
7829
7838
|
export type { ChartAnimationEasing, ChartAnimationInput, ChartAnimationOptions, ChartAnnotationAxisValue, ChartAnnotationLabelPlacement, ChartAnnotationLabelTemplateContext, ChartAnnotationMarker, ChartAreaFillMode, ChartAxisFormatter, ChartAxisLabelRotation, ChartAxisLabelTemplateContext, ChartAxisPosition, ChartAxisTick, ChartBarOrientation, ChartBrushActivation, ChartBrushAxisRange, ChartBrushCancelReason, ChartBrushCategoryRange, ChartBrushChangeEvent, ChartBrushContinuousRange, ChartBrushHitPolicy, ChartBrushLineStyle, ChartBrushMode, ChartBrushPhase, ChartBrushSelectionBehavior, ChartCategoryViewportWindow, ChartCenterTemplateContext, ChartColorLegendScale, ChartColorLegendStop, ChartColorLegendTick, ChartContinuousViewportWindow, ChartCoordinateSystem, ChartCrosshairAxisLabelContext, ChartCrosshairLineStyle, ChartCrosshairMode, ChartCrosshairResolvedAxisValue, ChartCrosshairSnapMode, ChartCrosshairSynchronizationOptions, ChartCurve, ChartDataLabelContext, ChartDataLabelFormatter, ChartDataLabelOptions, ChartDataLabelPosition, ChartDataLabelsInput, ChartDownloadOptions, ChartDownsamplingAlgorithm, ChartDownsamplingInput, ChartDownsamplingOptions, ChartExportBackground, ChartExportBaseOptions, ChartExportErrorCode, ChartExportFormat, ChartExportOptions, ChartExportPresentationOptions, ChartExportResult, ChartField, ChartFinancialDirection, ChartFinancialFillMode, ChartFunnelLabelContent, ChartFunnelLabelTemplateContext, ChartFunnelOrientation, ChartFunnelPointMetadata, ChartFunnelStageContext, ChartFunnelStageVisibilityEvent, ChartGaugeCenterTemplateContext, ChartGaugeIndicator, ChartHeaderAlignment, ChartHeatmapCategory, ChartHeatmapCellData, ChartHeatmapColorMode, ChartHierarchicalKind, ChartHierarchyNodeContext, ChartHierarchyPointMetadata, ChartLabelMeasurement, ChartLegendItem, ChartLegendItemKind, ChartLegendItemTemplateContext, ChartLegendMode, ChartLineStyle, ChartNavigationAxisTarget, ChartNavigationInput, ChartNavigationOptions, ChartNumericScaleType, ChartOhlcPointValue, ChartOverlayLayer, ChartPadding, ChartPdfExportOptions, ChartPdfMargins, ChartPdfPageOptions, ChartPdfPageSize, ChartPdfRenderMode, ChartPngExportOptions, ChartPoint, ChartPointEvent, ChartPointFocusEvent, ChartPointValue, ChartPointValueKind, ChartPolarFillMode, ChartPolarLabelContent, ChartPolarLabelPosition, ChartPolarLabelSide, ChartRadialArcFillMode, ChartRadialCurve, ChartRadialDatumVisibilityEvent, ChartRadialFillMode, ChartRadialGridShape, ChartRangePointValue, ChartRect, ChartReferenceBandLabelContext, ChartReferenceLabelPosition, ChartReferenceLabelTemplateContext, ChartReferenceLineLabelContext, ChartReferenceLineStyle, ChartRendererMode, ChartRoseScaleMode, ChartScalarPointValue, ChartSelectedPoint, ChartSelectionChangeEvent, ChartSelectionChangeSource, ChartSelectionMode, ChartSeriesFamily, ChartSeriesStyle, ChartSeriesType, ChartSeriesVisibilityEvent, ChartSize, ChartSliceContext, ChartSliceLabelTemplateContext, ChartSliceVisibilityEvent, ChartStackMode, ChartSubtitleTemplateContext, ChartSvgExportOptions, ChartSynchronizationAxisMapping, ChartSynchronizationInput, ChartSynchronizationMode, ChartSynchronizationOptions, ChartTitleTemplateContext, ChartTooltipPointContext, ChartTooltipTemplateContext, ChartTreemapLabelTemplateContext, ChartTreemapNodeVisibilityEvent, ChartTreemapSort, ChartTreemapTile, ChartValueAccessor, ChartValueFormatter, ChartViewportAxisRef, ChartViewportChangeEvent, ChartViewportChangePhase, ChartViewportChangeSource, ChartViewportConstraint, ChartViewportLinkGroup, ChartViewportLinkMode, ChartViewportState, ChartViewportSynchronizationOptions, ChartViewportWindow, ChartWaterfallDatumKind, ChartWaterfallLabelTemplateContext, ChartWaterfallPointContext, ChartWaterfallPointValue, ChartWaterfallVisualKind, ChartXAxisPosition, ChartXAxisType, ChartYAxisPosition, ChartYAxisType, HeatmapCellClickEvent, HeatmapColorStop };
|
|
@@ -1,9 +1,14 @@
|
|
|
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 } from '@angular/core';
|
|
3
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
5
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
5
6
|
import { VariantProps } from 'class-variance-authority';
|
|
6
7
|
|
|
8
|
+
declare const CHIP_DEFAULT_MESSAGES: {
|
|
9
|
+
removeLabel: (label?: string) => string;
|
|
10
|
+
};
|
|
11
|
+
|
|
7
12
|
declare const chipThemeVariants: (props?: ({
|
|
8
13
|
disabled?: boolean | null | undefined;
|
|
9
14
|
interactive?: boolean | null | undefined;
|
|
@@ -24,6 +29,7 @@ declare class ChipComponent implements ChipVariantInputs {
|
|
|
24
29
|
protected readonly effectiveTabIndex: _angular_core.Signal<string | number>;
|
|
25
30
|
protected readonly iconSize: _angular_core.Signal<13 | 14 | 16>;
|
|
26
31
|
protected readonly isLink: _angular_core.Signal<boolean>;
|
|
32
|
+
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaChipMessages>;
|
|
27
33
|
protected readonly prefixTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
28
34
|
protected readonly role: _angular_core.Signal<"checkbox" | undefined>;
|
|
29
35
|
/**
|
|
@@ -128,5 +134,5 @@ declare class ChipPrefixTemplateDirective {
|
|
|
128
134
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChipPrefixTemplateDirective, "ng-template[monaChipPrefixTemplate]", never, {}, {}, never, never, true, never>;
|
|
129
135
|
}
|
|
130
136
|
|
|
131
|
-
export { ChipComponent, ChipPrefixTemplateDirective };
|
|
137
|
+
export { CHIP_DEFAULT_MESSAGES, ChipComponent, ChipPrefixTemplateDirective };
|
|
132
138
|
export type { ChipVariantProps };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
2
|
+
import { MonaColorGradientMessages } from '@nanahoshi/mona-ui/i18n';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { Signal, ElementRef } from '@angular/core';
|
|
3
5
|
import { FormValueControl } from '@angular/forms/signals';
|
|
@@ -74,6 +76,7 @@ declare class ColorGradientComponent implements ColorGradientVariantInputs, Form
|
|
|
74
76
|
protected readonly hueValue$: Subject<number>;
|
|
75
77
|
protected readonly invalidState: Signal<boolean>;
|
|
76
78
|
protected readonly lastSelectedColor: _angular_core.WritableSignal<string>;
|
|
79
|
+
protected readonly messages: Signal<_nanahoshi_mona_ui_i18n.MonaColorGradientMessages>;
|
|
77
80
|
protected readonly rgb: _angular_core.WritableSignal<RGB>;
|
|
78
81
|
protected readonly selectedColor: Signal<string>;
|
|
79
82
|
protected readonly sliderHandleClasses: Signal<string>;
|
|
@@ -196,5 +199,7 @@ declare class ColorGradientComponent implements ColorGradientVariantInputs, Form
|
|
|
196
199
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorGradientComponent, "mona-color-gradient", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "opacity": { "alias": "opacity"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "showButtons": { "alias": "showButtons"; "required": false; "isSignal": true; }; "showHexInput": { "alias": "showHexInput"; "required": false; "isSignal": true; }; "showColorInputs": { "alias": "showColorInputs"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "apply": "apply"; "cancel": "cancel"; "touch": "touch"; "value": "valueChange"; }, never, never, true, never>;
|
|
197
200
|
}
|
|
198
201
|
|
|
199
|
-
|
|
202
|
+
declare const COLOR_GRADIENT_DEFAULT_MESSAGES: MonaColorGradientMessages;
|
|
203
|
+
|
|
204
|
+
export { COLOR_GRADIENT_DEFAULT_MESSAGES, ColorGradientComponent };
|
|
200
205
|
export type { ColorGradientVariantProps };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
2
|
+
import { MonaColorPaletteMessages } from '@nanahoshi/mona-ui/i18n';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { Signal } from '@angular/core';
|
|
3
5
|
import { FormValueControl } from '@angular/forms/signals';
|
|
@@ -19,13 +21,20 @@ type ColorPaletteVariantInput = ColorPaletteBaseVariantInput & ColorPaletteItemV
|
|
|
19
21
|
|
|
20
22
|
declare class ColorPaletteComponent implements ColorPaletteVariantInput, FormValueControl<string | null> {
|
|
21
23
|
#private;
|
|
24
|
+
protected readonly isRtl: Signal<boolean>;
|
|
25
|
+
protected readonly activeColorIndex: Signal<number>;
|
|
22
26
|
protected readonly baseClasses: Signal<string>;
|
|
23
|
-
protected readonly colorScheme: Signal<ColorScheme>;
|
|
24
|
-
protected readonly paletteItemClasses: Signal<string>;
|
|
25
27
|
protected readonly colorRows: Signal<string[][]>;
|
|
28
|
+
protected readonly colorScheme: Signal<ColorScheme>;
|
|
26
29
|
protected readonly focusedColorIndex: _angular_core.WritableSignal<number>;
|
|
27
|
-
protected readonly activeColorIndex: Signal<number>;
|
|
28
30
|
protected readonly invalidState: Signal<boolean>;
|
|
31
|
+
protected readonly messages: Signal<_nanahoshi_mona_ui_i18n.MonaColorPaletteMessages>;
|
|
32
|
+
protected readonly paletteItemClasses: Signal<string>;
|
|
33
|
+
/**
|
|
34
|
+
* @description Accessible label for the color palette grid.
|
|
35
|
+
* @default ""
|
|
36
|
+
*/
|
|
37
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
29
38
|
/**
|
|
30
39
|
* @description The number of columns in the color palette grid.
|
|
31
40
|
* Only applicable when using a custom palette.
|
|
@@ -55,17 +64,17 @@ declare class ColorPaletteComponent implements ColorPaletteVariantInput, FormVal
|
|
|
55
64
|
* @default false
|
|
56
65
|
*/
|
|
57
66
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
58
|
-
/**
|
|
59
|
-
* @description Border-radius preset applied to the color palette items.
|
|
60
|
-
* @default "none"
|
|
61
|
-
*/
|
|
62
|
-
readonly rounded: _angular_core.InputSignal<"none" | "small" | "medium" | "large" | "full" | null | undefined>;
|
|
63
67
|
/**
|
|
64
68
|
* @description Sets whether the color palette is required. When bound to a signal form field via `[formField]`,
|
|
65
69
|
* this is written by the `FormField` directive.
|
|
66
70
|
* @default false
|
|
67
71
|
*/
|
|
68
72
|
readonly required: _angular_core.InputSignal<boolean>;
|
|
73
|
+
/**
|
|
74
|
+
* @description Border-radius preset applied to the color palette items.
|
|
75
|
+
* @default "none"
|
|
76
|
+
*/
|
|
77
|
+
readonly rounded: _angular_core.InputSignal<"none" | "small" | "medium" | "large" | "full" | null | undefined>;
|
|
69
78
|
/**
|
|
70
79
|
* @description The size of each tile in the color palette grid.
|
|
71
80
|
* @default 18
|
|
@@ -94,8 +103,10 @@ declare class ColorPaletteComponent implements ColorPaletteVariantInput, FormVal
|
|
|
94
103
|
protected onKeyDown(event: KeyboardEvent, colorIndex: number): void;
|
|
95
104
|
private getColorScheme;
|
|
96
105
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorPaletteComponent, never>;
|
|
97
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorPaletteComponent, "mona-color-palette", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "
|
|
106
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorPaletteComponent, "mona-color-palette", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "tileSize": { "alias": "tileSize"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "touch": "touch"; "value": "valueChange"; }, never, never, true, never>;
|
|
98
107
|
}
|
|
99
108
|
|
|
100
|
-
|
|
109
|
+
declare const COLOR_PALETTE_DEFAULT_MESSAGES: MonaColorPaletteMessages;
|
|
110
|
+
|
|
111
|
+
export { COLOR_PALETTE_DEFAULT_MESSAGES, ColorPaletteComponent };
|
|
101
112
|
export type { ColorPaletteVariantProps };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, Signal, TemplateRef } from '@angular/core';
|
|
3
|
+
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
4
|
+
import { MonaColorPickerMessages } from '@nanahoshi/mona-ui/i18n';
|
|
3
5
|
import { FormValueControl } from '@angular/forms/signals';
|
|
4
6
|
import { PaletteType } from '@nanahoshi/mona-ui/common';
|
|
5
7
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
@@ -29,12 +31,18 @@ declare class ColorPickerComponent implements OnInit, ColorPickerVariantInput, F
|
|
|
29
31
|
protected readonly baseClasses: Signal<string>;
|
|
30
32
|
protected readonly colorClasses: Signal<string>;
|
|
31
33
|
protected readonly expanded: Signal<boolean>;
|
|
32
|
-
protected readonly invalidState: Signal<boolean>;
|
|
33
34
|
protected readonly gradientPopupClasses = "\n [background-color:var(--mona-effect-overlay-background-color,var(--color-surface-overlay))]\n \n [background-image:var(--mona-effect-overlay-background-image,none)]\n [backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n\n border border-border shadow-(--shadow-overlay)";
|
|
35
|
+
protected readonly invalidState: Signal<boolean>;
|
|
36
|
+
protected readonly messages: Signal<_nanahoshi_mona_ui_i18n.MonaColorPickerMessages>;
|
|
34
37
|
protected readonly palettePopupClasses = "flex flex-col p-0.5 \n [background-color:var(--mona-effect-overlay-background-color,var(--color-surface-overlay))]\n \n [background-image:var(--mona-effect-overlay-background-image,none)]\n [backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n\n border border-border shadow-(--shadow-overlay) outline-none";
|
|
35
38
|
protected readonly popupId: string;
|
|
36
|
-
protected readonly popupTemplate: Signal<TemplateRef<
|
|
39
|
+
protected readonly popupTemplate: Signal<TemplateRef<void>>;
|
|
37
40
|
protected readonly valueTemplate: Signal<TemplateRef<any> | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* @description Accessible label for the color picker combobox.
|
|
43
|
+
* @default ""
|
|
44
|
+
*/
|
|
45
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
38
46
|
/**
|
|
39
47
|
* @description Whether to close the color picker when a color is selected.
|
|
40
48
|
* Only applies when the view is set to "palette".
|
|
@@ -77,6 +85,12 @@ declare class ColorPickerComponent implements OnInit, ColorPickerVariantInput, F
|
|
|
77
85
|
* @default false
|
|
78
86
|
*/
|
|
79
87
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
88
|
+
/**
|
|
89
|
+
* @description Sets whether the color picker is required. When bound to a signal form field via `[formField]`,
|
|
90
|
+
* this is written by the `FormField` directive.
|
|
91
|
+
* @default false
|
|
92
|
+
*/
|
|
93
|
+
readonly required: _angular_core.InputSignal<boolean>;
|
|
80
94
|
/**
|
|
81
95
|
* @description Border-radius preset applied to the color picker.
|
|
82
96
|
* @default "medium"
|
|
@@ -93,18 +107,6 @@ declare class ColorPickerComponent implements OnInit, ColorPickerVariantInput, F
|
|
|
93
107
|
* @default "medium"
|
|
94
108
|
*/
|
|
95
109
|
readonly size: _angular_core.InputSignal<"small" | "medium" | "large" | null | undefined>;
|
|
96
|
-
/**
|
|
97
|
-
* @description The view mode of the color picker.
|
|
98
|
-
* This can be either "palette" or "gradient".
|
|
99
|
-
* @default "gradient"
|
|
100
|
-
*/
|
|
101
|
-
readonly view: _angular_core.InputSignal<ColorPickerView>;
|
|
102
|
-
/**
|
|
103
|
-
* @description Sets whether the color picker is required. When bound to a signal form field via `[formField]`,
|
|
104
|
-
* this is written by the `FormField` directive.
|
|
105
|
-
* @default false
|
|
106
|
-
*/
|
|
107
|
-
readonly required: _angular_core.InputSignal<boolean>;
|
|
108
110
|
/**
|
|
109
111
|
* @description Emitted when the color picker is interacted with on blur or color selection.
|
|
110
112
|
* The `FormField` directive listens to this to mark the field as touched.
|
|
@@ -121,14 +123,20 @@ declare class ColorPickerComponent implements OnInit, ColorPickerVariantInput, F
|
|
|
121
123
|
* @default null
|
|
122
124
|
*/
|
|
123
125
|
readonly value: _angular_core.ModelSignal<string | null>;
|
|
126
|
+
/**
|
|
127
|
+
* @description The view mode of the color picker.
|
|
128
|
+
* This can be either "palette" or "gradient".
|
|
129
|
+
* @default "gradient"
|
|
130
|
+
*/
|
|
131
|
+
readonly view: _angular_core.InputSignal<ColorPickerView>;
|
|
124
132
|
ngOnInit(): void;
|
|
125
133
|
protected onClearClick(): void;
|
|
126
|
-
onColorGradientApply(): void;
|
|
127
|
-
onColorGradientCancel(): void;
|
|
128
|
-
protected onColorGradientValueChange(value: string | null | undefined): void;
|
|
134
|
+
protected onColorGradientApply(): void;
|
|
135
|
+
protected onColorGradientCancel(): void;
|
|
129
136
|
protected onColorGradientTouch(): void;
|
|
130
|
-
protected
|
|
137
|
+
protected onColorGradientValueChange(value: string | null | undefined): void;
|
|
131
138
|
protected onColorPaletteTouch(): void;
|
|
139
|
+
protected onColorPaletteValueChange(value: string | null): void;
|
|
132
140
|
protected onPaletteContainerKeyDown(event: KeyboardEvent): void;
|
|
133
141
|
protected open(): void;
|
|
134
142
|
private close;
|
|
@@ -138,7 +146,7 @@ declare class ColorPickerComponent implements OnInit, ColorPickerVariantInput, F
|
|
|
138
146
|
private setKeyboardEventListeners;
|
|
139
147
|
private setupPopupKeyboardHandling;
|
|
140
148
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
|
|
141
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorPickerComponent, "mona-color-picker", never, { "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "opacity": { "alias": "opacity"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "
|
|
149
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorPickerComponent, "mona-color-picker", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "opacity": { "alias": "opacity"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "showClearButton": { "alias": "showClearButton"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; }, { "touch": "touch"; "value": "valueChange"; }, ["valueTemplate"], never, true, never>;
|
|
142
150
|
}
|
|
143
151
|
|
|
144
152
|
declare class ColorPickerValueTemplateDirective {
|
|
@@ -150,5 +158,7 @@ interface ColorPickerValueTemplateContext {
|
|
|
150
158
|
$implicit: string;
|
|
151
159
|
}
|
|
152
160
|
|
|
153
|
-
|
|
161
|
+
declare const COLOR_PICKER_DEFAULT_MESSAGES: MonaColorPickerMessages;
|
|
162
|
+
|
|
163
|
+
export { COLOR_PICKER_DEFAULT_MESSAGES, ColorPickerComponent, ColorPickerValueTemplateDirective };
|
|
154
164
|
export type { ColorPickerValueTemplateContext, ColorPickerVariantProps, ColorPickerView };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
2
|
+
import { MonaComboBoxMessages } from '@nanahoshi/mona-ui/i18n';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { TemplateRef } from '@angular/core';
|
|
3
5
|
import { FormValueControl } from '@angular/forms/signals';
|
|
@@ -49,6 +51,7 @@ declare class ComboBoxComponent<TData = unknown, TValue = TData> implements Form
|
|
|
49
51
|
protected readonly itemTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
50
52
|
protected readonly listId: string;
|
|
51
53
|
protected readonly listPopupClass: _angular_core.Signal<string>;
|
|
54
|
+
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaComboBoxMessages>;
|
|
52
55
|
protected readonly noDataTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
53
56
|
protected readonly popupTemplate: _angular_core.Signal<TemplateRef<any>>;
|
|
54
57
|
protected readonly prefixTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
@@ -243,5 +246,7 @@ declare class ComboBoxComponent<TData = unknown, TValue = TData> implements Form
|
|
|
243
246
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ComboBoxComponent<any, any>, "mona-combo-box", never, { "allowCustomValue": { "alias": "allowCustomValue"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "itemDisabled": { "alias": "itemDisabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "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; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "showClearButton": { "alias": "showClearButton"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "textField": { "alias": "textField"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "valuePrimitive": { "alias": "valuePrimitive"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "close": "close"; "closed": "closed"; "disabled": "disabledChange"; "open": "open"; "opened": "opened"; "touch": "touch"; "valueAdd": "valueAdd"; "value": "valueChange"; }, ["footerTemplate", "groupHeaderTemplate", "headerTemplate", "itemTemplate", "noDataTemplate", "prefixTemplate"], never, true, [{ directive: typeof i1.DropdownDataHandlerDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.DropdownListPopupHandlerDirective; inputs: {}; outputs: {}; }]>;
|
|
244
247
|
}
|
|
245
248
|
|
|
246
|
-
|
|
249
|
+
declare const COMBO_BOX_DEFAULT_MESSAGES: MonaComboBoxMessages;
|
|
250
|
+
|
|
251
|
+
export { COMBO_BOX_DEFAULT_MESSAGES, ComboBoxComponent };
|
|
247
252
|
export type { ComboBoxVariantProps };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
2
|
+
import { MonaDatePickerMessages } from '@nanahoshi/mona-ui/i18n';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { TemplateRef } from '@angular/core';
|
|
3
5
|
import { FormValueControl } from '@angular/forms/signals';
|
|
@@ -27,9 +29,11 @@ declare class DatePickerComponent implements FormValueControl<Date | null>, Drop
|
|
|
27
29
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
28
30
|
protected readonly currentDateString: _angular_core.WritableSignal<string>;
|
|
29
31
|
protected readonly decadeCellTemplate: _angular_core.Signal<CalendarDecadeCellTemplateDirective | undefined>;
|
|
32
|
+
protected readonly effectiveFormat: _angular_core.Signal<string>;
|
|
30
33
|
protected readonly expanded: _angular_core.Signal<boolean>;
|
|
31
34
|
protected readonly inputAttributes: _angular_core.Signal<AttributeConfig>;
|
|
32
35
|
protected readonly invalidState: _angular_core.Signal<boolean>;
|
|
36
|
+
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaDatePickerMessages>;
|
|
33
37
|
protected readonly monthCellTemplate: _angular_core.Signal<CalendarMonthCellTemplateDirective | undefined>;
|
|
34
38
|
protected readonly navigatedDate: _angular_core.WritableSignal<Date>;
|
|
35
39
|
protected readonly pickerPopupClass: _angular_core.Signal<string>;
|
|
@@ -55,13 +59,15 @@ declare class DatePickerComponent implements FormValueControl<Date | null>, Drop
|
|
|
55
59
|
*/
|
|
56
60
|
readonly disabledDates: _angular_core.InputSignal<DateDisabledType>;
|
|
57
61
|
/**
|
|
58
|
-
* @description Sets the first day of the week.
|
|
62
|
+
* @description Sets the first day of the week. If not specified, derives from the active locale.
|
|
63
|
+
* @default null
|
|
59
64
|
*/
|
|
60
|
-
readonly firstDay: _angular_core.InputSignal<FirstDayOfWeek>;
|
|
65
|
+
readonly firstDay: _angular_core.InputSignal<FirstDayOfWeek | null>;
|
|
61
66
|
/**
|
|
62
|
-
* @description Sets the date format of the date picker.
|
|
67
|
+
* @description Sets the date format of the date picker. If not specified, derives from the active locale.
|
|
68
|
+
* @default null
|
|
63
69
|
*/
|
|
64
|
-
readonly format: _angular_core.InputSignal<string>;
|
|
70
|
+
readonly format: _angular_core.InputSignal<string | null>;
|
|
65
71
|
/**
|
|
66
72
|
* @description Marks the date picker as invalid. When bound to a signal form field via `[formField]`,
|
|
67
73
|
* this is written by the `FormField` directive.
|
|
@@ -153,6 +159,7 @@ declare class DatePickerComponent implements FormValueControl<Date | null>, Drop
|
|
|
153
159
|
*/
|
|
154
160
|
readonly weekNumber: _angular_core.InputSignal<boolean>;
|
|
155
161
|
constructor();
|
|
162
|
+
focus(): void;
|
|
156
163
|
protected onCalendarValueChange(date: Date | Date[] | null): void;
|
|
157
164
|
protected onDateInputBlur(): void;
|
|
158
165
|
protected onDateInputButtonClick(): void;
|
|
@@ -160,7 +167,6 @@ declare class DatePickerComponent implements FormValueControl<Date | null>, Drop
|
|
|
160
167
|
private closePopup;
|
|
161
168
|
private compareDatesEqual;
|
|
162
169
|
private dateStringEquals;
|
|
163
|
-
focus(): void;
|
|
164
170
|
private handleKeydown;
|
|
165
171
|
private isDateDisabledByInput;
|
|
166
172
|
private openPopup;
|
|
@@ -172,5 +178,7 @@ declare class DatePickerComponent implements FormValueControl<Date | null>, Drop
|
|
|
172
178
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatePickerComponent, "mona-date-picker", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "disabledDates": { "alias": "disabledDates"; "required": false; "isSignal": true; }; "firstDay": { "alias": "firstDay"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "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; }; "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; }; "showClearButton": { "alias": "showClearButton"; "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; }; "weekNumber": { "alias": "weekNumber"; "required": false; "isSignal": true; }; }, { "close": "close"; "closed": "closed"; "open": "open"; "opened": "opened"; "touch": "touch"; "value": "valueChange"; }, ["decadeCellTemplate", "monthCellTemplate", "prefixTemplate", "yearCellTemplate"], never, true, [{ directive: typeof i1.DropdownPopupHandlerDirective; inputs: {}; outputs: {}; }]>;
|
|
173
179
|
}
|
|
174
180
|
|
|
175
|
-
|
|
181
|
+
declare const DATE_PICKER_DEFAULT_MESSAGES: MonaDatePickerMessages;
|
|
182
|
+
|
|
183
|
+
export { DATE_PICKER_DEFAULT_MESSAGES, DatePickerComponent };
|
|
176
184
|
export type { DatePickerVariantInput, DatePickerVariantProps };
|