@nanahoshi/mona-ui 0.24.11 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +11 -10
- package/fesm2022/nanahoshi-mona-ui-avatar.mjs +37 -20
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +239 -47
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +184 -31
- package/fesm2022/nanahoshi-mona-ui-button.mjs +47 -11
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +17 -13
- package/fesm2022/nanahoshi-mona-ui-card.mjs +54 -30
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +27 -22
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +112 -31
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +131 -89
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +59 -19
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +118 -41
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +243 -212
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +155 -86
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +161 -131
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +12 -11
- package/fesm2022/nanahoshi-mona-ui-common.mjs +18 -1
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +25 -24
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +202 -33
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +31 -10
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +1 -1
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-DhKLnW06.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-2tVhD2hK.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-voGbKOiB.mjs → nanahoshi-mona-ui-grid-grid-list.component-BAN70Wcn.mjs} +4 -4
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-HQ1Kv6R9.mjs → nanahoshi-mona-ui-grid-grid-row.component-C_kCaA5b.mjs} +7 -7
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-PNLJFcuH.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-BsNfrAHz.mjs} +4 -4
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BO19AVwC.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CEfVa7eo.mjs} +27 -29
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +39 -4
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +5 -5
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +7 -7
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +183 -47
- package/fesm2022/nanahoshi-mona-ui-label.mjs +111 -15
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +14 -13
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +13 -12
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +192 -56
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +3 -1
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +60 -29
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +334 -37
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +84 -30
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +274 -108
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +127 -37
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +595 -170
- package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +3 -2
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +323 -166
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +167 -82
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +3 -3
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +273 -165
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +219 -132
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +84 -32
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +337 -116
- package/fesm2022/nanahoshi-mona-ui-text-area.mjs +10 -12
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +21 -8
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +444 -88
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +15 -14
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +17 -3
- package/fesm2022/nanahoshi-mona-ui-window.mjs +1 -1
- package/i18n/catalogs/en-US.messages.json +33 -4
- package/locales/ar-sa/ar-sa.messages.json +33 -4
- package/locales/de-de/de-de.messages.json +33 -4
- package/locales/es-es/es-es.messages.json +33 -4
- package/locales/fr-fr/fr-fr.messages.json +33 -4
- package/locales/id-id/id-id.messages.json +33 -4
- package/locales/it-it/it-it.messages.json +33 -4
- package/locales/ja-jp/ja-jp.messages.json +33 -4
- package/locales/ko-kr/ko-kr.messages.json +33 -4
- package/locales/pt-br/pt-br.messages.json +33 -4
- package/locales/ru-ru/ru-ru.messages.json +33 -4
- package/locales/tr-tr/tr-tr.messages.json +33 -4
- package/locales/zh-cn/zh-cn.messages.json +33 -4
- package/locales/zh-tw/zh-tw.messages.json +33 -4
- package/package.json +2 -1
- package/styles.css +156 -0
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +1 -0
- package/types/nanahoshi-mona-ui-avatar.d.ts +18 -11
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +62 -14
- package/types/nanahoshi-mona-ui-button-group.d.ts +86 -16
- package/types/nanahoshi-mona-ui-button.d.ts +26 -3
- package/types/nanahoshi-mona-ui-calendar.d.ts +1 -0
- package/types/nanahoshi-mona-ui-card.d.ts +22 -6
- package/types/nanahoshi-mona-ui-check-box.d.ts +54 -13
- package/types/nanahoshi-mona-ui-chip.d.ts +31 -18
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +21 -5
- package/types/nanahoshi-mona-ui-collapsible.d.ts +20 -11
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +62 -36
- package/types/nanahoshi-mona-ui-color-palette.d.ts +65 -27
- package/types/nanahoshi-mona-ui-color-picker.d.ts +64 -23
- package/types/nanahoshi-mona-ui-combo-box.d.ts +1 -0
- package/types/nanahoshi-mona-ui-common.d.ts +28 -2
- package/types/nanahoshi-mona-ui-date-picker.d.ts +1 -0
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +1 -0
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +1 -0
- package/types/nanahoshi-mona-ui-editor.d.ts +1 -0
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +51 -7
- package/types/nanahoshi-mona-ui-fieldset.d.ts +18 -4
- package/types/nanahoshi-mona-ui-grid.d.ts +0 -1
- package/types/nanahoshi-mona-ui-i18n.d.ts +38 -3
- package/types/nanahoshi-mona-ui-internal.d.ts +95 -14
- package/types/nanahoshi-mona-ui-label.d.ts +17 -2
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +29 -0
- package/types/nanahoshi-mona-ui-multi-select.d.ts +1 -0
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +1 -0
- package/types/nanahoshi-mona-ui-otp-input.d.ts +49 -12
- package/types/nanahoshi-mona-ui-placeholder.d.ts +2 -1
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +21 -9
- package/types/nanahoshi-mona-ui-radio-button.d.ts +165 -20
- package/types/nanahoshi-mona-ui-rating.d.ts +21 -6
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +59 -27
- package/types/nanahoshi-mona-ui-segmented.d.ts +52 -24
- package/types/nanahoshi-mona-ui-sidebar.d.ts +104 -41
- package/types/nanahoshi-mona-ui-skeleton.d.ts +1 -1
- package/types/nanahoshi-mona-ui-slider.d.ts +99 -35
- package/types/nanahoshi-mona-ui-spinner.d.ts +9 -5
- package/types/nanahoshi-mona-ui-splitter.d.ts +31 -10
- package/types/nanahoshi-mona-ui-stepper.d.ts +58 -12
- package/types/nanahoshi-mona-ui-switch.d.ts +32 -10
- package/types/nanahoshi-mona-ui-tabs.d.ts +75 -20
- package/types/nanahoshi-mona-ui-text-area.d.ts +7 -7
- package/types/nanahoshi-mona-ui-text-box.d.ts +2 -0
- package/types/nanahoshi-mona-ui-theme.d.ts +392 -15
- package/types/nanahoshi-mona-ui-time-picker.d.ts +1 -0
- package/types/nanahoshi-mona-ui-time-selector.d.ts +1 -0
- package/types/nanahoshi-mona-ui-tooltip.d.ts +7 -1
|
@@ -9,7 +9,7 @@ import { ClassInputType } from '@nanahoshi/mona-ui/common';
|
|
|
9
9
|
declare class CardContentDirective {
|
|
10
10
|
readonly templateRef: TemplateRef<any>;
|
|
11
11
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CardContentDirective, never>;
|
|
12
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CardContentDirective, "[monaCardContent]", never, {}, {}, never, never, true, never>;
|
|
12
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CardContentDirective, "ng-template[monaCardContent]", never, {}, {}, never, never, true, never>;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
declare const cardBaseThemeVariants: (props?: ({
|
|
@@ -29,6 +29,8 @@ declare class CardComponent implements CardVariantInput {
|
|
|
29
29
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
30
30
|
protected readonly contentDirective: _angular_core.Signal<CardContentDirective | undefined>;
|
|
31
31
|
protected readonly descriptionCellClass: string;
|
|
32
|
+
/** Its own id on the library's wrapper: the template's `let id` may already be on the consumer's element. */
|
|
33
|
+
protected readonly descriptionCellId: _angular_core.Signal<string | null>;
|
|
32
34
|
protected readonly descriptionId: _angular_core.Signal<string | null>;
|
|
33
35
|
protected readonly descriptionTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown> | null>;
|
|
34
36
|
protected readonly footerClass: _angular_core.Signal<string>;
|
|
@@ -37,8 +39,15 @@ declare class CardComponent implements CardVariantInput {
|
|
|
37
39
|
protected readonly headerTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown> | null>;
|
|
38
40
|
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaCardMessages>;
|
|
39
41
|
protected readonly titleCellClass: string;
|
|
42
|
+
protected readonly titleCellId: _angular_core.Signal<string | null>;
|
|
40
43
|
protected readonly titleId: _angular_core.Signal<string | null>;
|
|
41
44
|
protected readonly titleTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown> | null>;
|
|
45
|
+
/**
|
|
46
|
+
* @description The role the card takes when it has a title, which then names it. Use `article` for self-contained
|
|
47
|
+
* content or `region` for a landmark.
|
|
48
|
+
* @default "group"
|
|
49
|
+
*/
|
|
50
|
+
readonly role: _angular_core.InputSignal<"article" | "group" | "region">;
|
|
42
51
|
/**
|
|
43
52
|
* @description Controls the border radius applied to the card and its header/footer regions.
|
|
44
53
|
* @default "medium"
|
|
@@ -50,7 +59,7 @@ declare class CardComponent implements CardVariantInput {
|
|
|
50
59
|
*/
|
|
51
60
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
52
61
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CardComponent, never>;
|
|
53
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardComponent, "mona-card", never, { "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, ["contentDirective"], never, true, never>;
|
|
62
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardComponent, "mona-card", never, { "role": { "alias": "role"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, ["contentDirective"], never, true, never>;
|
|
54
63
|
}
|
|
55
64
|
|
|
56
65
|
declare class CardFooterComponent {
|
|
@@ -85,21 +94,28 @@ declare class CardHeaderComponent {
|
|
|
85
94
|
declare class CardActionDirective {
|
|
86
95
|
readonly templateRef: TemplateRef<any>;
|
|
87
96
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CardActionDirective, never>;
|
|
88
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CardActionDirective, "[monaCardAction]", never, {}, {}, never, never, true, never>;
|
|
97
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CardActionDirective, "ng-template[monaCardAction]", never, {}, {}, never, never, true, never>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
interface CardTemplateContext {
|
|
101
|
+
/** An id for the element in the template, if something needs to refer to it. The card doesn't need it for its name. */
|
|
102
|
+
readonly $implicit: string;
|
|
89
103
|
}
|
|
90
104
|
|
|
91
105
|
declare class CardDescriptionDirective {
|
|
92
106
|
readonly id: string;
|
|
93
107
|
readonly templateRef: TemplateRef<any>;
|
|
108
|
+
static ngTemplateContextGuard(_directive: CardDescriptionDirective, _context: unknown): _context is CardTemplateContext;
|
|
94
109
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CardDescriptionDirective, never>;
|
|
95
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CardDescriptionDirective, "[monaCardDescription]", never, {}, {}, never, never, true, never>;
|
|
110
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CardDescriptionDirective, "ng-template[monaCardDescription]", never, {}, {}, never, never, true, never>;
|
|
96
111
|
}
|
|
97
112
|
|
|
98
113
|
declare class CardTitleDirective {
|
|
99
114
|
readonly id: string;
|
|
100
115
|
readonly templateRef: TemplateRef<any>;
|
|
116
|
+
static ngTemplateContextGuard(_directive: CardTitleDirective, _context: unknown): _context is CardTemplateContext;
|
|
101
117
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CardTitleDirective, never>;
|
|
102
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CardTitleDirective, "[monaCardTitle]", never, {}, {}, never, never, true, never>;
|
|
118
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CardTitleDirective, "ng-template[monaCardTitle]", never, {}, {}, never, never, true, never>;
|
|
103
119
|
}
|
|
104
120
|
|
|
105
121
|
declare const CARD_DEFAULT_MESSAGES: {
|
|
@@ -107,4 +123,4 @@ declare const CARD_DEFAULT_MESSAGES: {
|
|
|
107
123
|
};
|
|
108
124
|
|
|
109
125
|
export { CARD_DEFAULT_MESSAGES, CardActionDirective, CardComponent, CardContentDirective, CardDescriptionDirective, CardFooterComponent, CardHeaderComponent, CardTitleDirective };
|
|
110
|
-
export type { CardVariantProps };
|
|
126
|
+
export type { CardTemplateContext, CardVariantProps };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
2
3
|
import { FormCheckboxControl } from '@angular/forms/signals';
|
|
3
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
5
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
@@ -21,10 +22,15 @@ type CheckboxDirectiveVariantProps = VariantProps<typeof checkboxDirectiveThemeV
|
|
|
21
22
|
type CheckboxDirectiveVariantInput = VariantInputs<CheckboxDirectiveVariantProps>;
|
|
22
23
|
|
|
23
24
|
declare class CheckBoxComponent implements CheckboxVariantInput, CheckmarkVariantInput, FormCheckboxControl {
|
|
25
|
+
#private;
|
|
24
26
|
protected readonly checkBoxClasses: _angular_core.Signal<string>;
|
|
25
27
|
protected readonly checkMarkClasses: _angular_core.Signal<string>;
|
|
26
28
|
protected readonly containerLabelClasses: _angular_core.Signal<string>;
|
|
29
|
+
protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
30
|
+
protected readonly indeterminateState: _angular_core.WritableSignal<boolean>;
|
|
31
|
+
protected readonly inputRef: _angular_core.Signal<ElementRef<HTMLInputElement>>;
|
|
27
32
|
protected readonly invalidState: _angular_core.Signal<boolean>;
|
|
33
|
+
protected readonly labelledBy: _angular_core.Signal<string | null>;
|
|
28
34
|
/**
|
|
29
35
|
* @description Id of an element that describes the check box, such as an error message.
|
|
30
36
|
* @default ""
|
|
@@ -35,6 +41,11 @@ declare class CheckBoxComponent implements CheckboxVariantInput, CheckmarkVarian
|
|
|
35
41
|
* @default ""
|
|
36
42
|
*/
|
|
37
43
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
44
|
+
/**
|
|
45
|
+
* @description Id of the element that labels the check box.
|
|
46
|
+
* @default ""
|
|
47
|
+
*/
|
|
48
|
+
readonly ariaLabelledBy: _angular_core.InputSignal<string>;
|
|
38
49
|
/**
|
|
39
50
|
* @description Whether the control is checked.
|
|
40
51
|
* @default false
|
|
@@ -44,12 +55,18 @@ declare class CheckBoxComponent implements CheckboxVariantInput, CheckmarkVarian
|
|
|
44
55
|
* @description Renders the component with reduced visual emphasis and removes pointer interaction.
|
|
45
56
|
* @default false
|
|
46
57
|
*/
|
|
47
|
-
readonly disabled: _angular_core.
|
|
58
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
48
59
|
/**
|
|
49
|
-
* @description Activates indeterminate mode, showing a dash instead of a checkmark.
|
|
60
|
+
* @description Activates indeterminate mode, showing a dash instead of a checkmark. A user change clears it, as it
|
|
61
|
+
* does on a native checkbox. Use `[(indeterminate)]` to follow that, because a one-way binding only writes again when
|
|
62
|
+
* the bound value changes.
|
|
50
63
|
* @default false
|
|
51
64
|
*/
|
|
52
|
-
readonly indeterminate: _angular_core.
|
|
65
|
+
readonly indeterminate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
66
|
+
/**
|
|
67
|
+
* @description Emitted with `false` when a user change clears the indeterminate mode.
|
|
68
|
+
*/
|
|
69
|
+
readonly indeterminateChange: _angular_core.OutputEmitterRef<boolean>;
|
|
53
70
|
/**
|
|
54
71
|
* @description Emitted when the checkbox input loses focus.
|
|
55
72
|
*/
|
|
@@ -63,11 +80,17 @@ declare class CheckBoxComponent implements CheckboxVariantInput, CheckmarkVarian
|
|
|
63
80
|
*/
|
|
64
81
|
readonly inputFocus: _angular_core.OutputEmitterRef<FocusEvent>;
|
|
65
82
|
/**
|
|
66
|
-
* @description
|
|
67
|
-
*
|
|
83
|
+
* @description Id of the native checkbox input. Point a `<label for>` at it to label the check box from outside.
|
|
84
|
+
* A unique id is generated when it isn't set.
|
|
85
|
+
* @default generated
|
|
86
|
+
*/
|
|
87
|
+
readonly inputId: _angular_core.InputSignal<string>;
|
|
88
|
+
/**
|
|
89
|
+
* @description Marks the checkbox as invalid. When bound to a signal form field via `[formField]`, this is written
|
|
90
|
+
* by the `FormField` directive.
|
|
68
91
|
* @default false
|
|
69
92
|
*/
|
|
70
|
-
readonly invalid: _angular_core.
|
|
93
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
71
94
|
/**
|
|
72
95
|
* @description Text label displayed alongside the checkbox. When provided, takes precedence over projected content.
|
|
73
96
|
* @default ""
|
|
@@ -83,11 +106,23 @@ declare class CheckBoxComponent implements CheckboxVariantInput, CheckmarkVarian
|
|
|
83
106
|
* @default "medium"
|
|
84
107
|
*/
|
|
85
108
|
readonly labelSize: _angular_core.InputSignal<"large" | "medium" | "small" | null | undefined>;
|
|
109
|
+
/**
|
|
110
|
+
* @description Name of the native checkbox input, used in native form submission. When bound to a signal form field
|
|
111
|
+
* via `[formField]`, this is written by the `FormField` directive.
|
|
112
|
+
* @default ""
|
|
113
|
+
*/
|
|
114
|
+
readonly name: _angular_core.InputSignal<string>;
|
|
115
|
+
/**
|
|
116
|
+
* @description Prevents value changes while the control stays focusable and readable. When bound to a signal form
|
|
117
|
+
* field via `[formField]`, this is written by the `FormField` directive.
|
|
118
|
+
* @default false
|
|
119
|
+
*/
|
|
120
|
+
readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
86
121
|
/**
|
|
87
122
|
* @description Marks the control as required for form validation.
|
|
88
123
|
* @default false
|
|
89
124
|
*/
|
|
90
|
-
readonly required: _angular_core.
|
|
125
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
91
126
|
/**
|
|
92
127
|
* @description Border-radius preset applied to the checkmark box.
|
|
93
128
|
* @default "medium"
|
|
@@ -103,20 +138,26 @@ declare class CheckBoxComponent implements CheckboxVariantInput, CheckmarkVarian
|
|
|
103
138
|
*/
|
|
104
139
|
readonly touch: _angular_core.OutputEmitterRef<void>;
|
|
105
140
|
/**
|
|
106
|
-
* @description Marks the checkbox as touched. When bound to a signal form field via `[
|
|
107
|
-
*
|
|
141
|
+
* @description Marks the checkbox as touched. When bound to a signal form field via `[formField]`, this is written
|
|
142
|
+
* by the `FormField` directive.
|
|
108
143
|
* @default false
|
|
109
144
|
*/
|
|
110
|
-
readonly touched: _angular_core.
|
|
145
|
+
readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
111
146
|
/**
|
|
112
147
|
* @description Additional CSS classes merged onto the label container via `tailwind-merge`.
|
|
113
148
|
* @default ""
|
|
114
149
|
*/
|
|
115
150
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
151
|
+
/**
|
|
152
|
+
* @description Moves focus to the native checkbox input.
|
|
153
|
+
* @param options Options passed to the native `focus()` call, such as `preventScroll`.
|
|
154
|
+
*/
|
|
155
|
+
focus(options?: FocusOptions): void;
|
|
116
156
|
protected onInputBlur(event: FocusEvent): void;
|
|
117
157
|
protected onInputChange(event: Event): void;
|
|
158
|
+
protected onInputClick(event: Event): void;
|
|
118
159
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CheckBoxComponent, never>;
|
|
119
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CheckBoxComponent, "mona-check-box", never, { "ariaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "labelSize": { "alias": "labelSize"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "inputBlur": "inputBlur"; "inputChange": "inputChange"; "inputFocus": "inputFocus"; "touch": "touch"; }, never, ["*"], true, never>;
|
|
160
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CheckBoxComponent, "mona-check-box", never, { "ariaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "labelSize": { "alias": "labelSize"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "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; }; "tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "indeterminateChange": "indeterminateChange"; "inputBlur": "inputBlur"; "inputChange": "inputChange"; "inputFocus": "inputFocus"; "touch": "touch"; }, never, ["*"], true, never>;
|
|
120
161
|
}
|
|
121
162
|
|
|
122
163
|
declare class CheckboxDirective implements CheckboxDirectiveVariantInput {
|
|
@@ -126,7 +167,7 @@ declare class CheckboxDirective implements CheckboxDirectiveVariantInput {
|
|
|
126
167
|
* @description Marks the checkbox as invalid, triggering error border and ring styling.
|
|
127
168
|
* @default false
|
|
128
169
|
*/
|
|
129
|
-
readonly invalid: _angular_core.
|
|
170
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
130
171
|
/**
|
|
131
172
|
* @description Border-radius preset applied to the checkbox.
|
|
132
173
|
* @default "medium"
|
|
@@ -136,7 +177,7 @@ declare class CheckboxDirective implements CheckboxDirectiveVariantInput {
|
|
|
136
177
|
* @description Marks the checkbox as touched. Error styling is only shown when both `invalid` and `touched` are `true`.
|
|
137
178
|
* @default false
|
|
138
179
|
*/
|
|
139
|
-
readonly touched: _angular_core.
|
|
180
|
+
readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
140
181
|
/**
|
|
141
182
|
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
142
183
|
* @default ""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import { ElementRef, TemplateRef } from '@angular/core';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -24,17 +24,26 @@ declare class ChipComponent implements ChipVariantInputs {
|
|
|
24
24
|
#private;
|
|
25
25
|
protected readonly ariaChecked: _angular_core.Signal<"true" | "false" | undefined>;
|
|
26
26
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
27
|
+
protected readonly bodyClasses: _angular_core.Signal<"\n inline-flex items-center gap-1.5 [border-radius:inherit]\n focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-indicator\n" | "contents">;
|
|
28
|
+
protected readonly bodyElement: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
27
29
|
protected readonly bodyInteractive: _angular_core.Signal<boolean>;
|
|
28
|
-
|
|
29
|
-
protected readonly
|
|
30
|
+
/** The role of the chip's own control, wherever it ends up. */
|
|
31
|
+
protected readonly controlRole: _angular_core.Signal<"checkbox" | "link" | null>;
|
|
32
|
+
protected readonly effectiveTabIndex: _angular_core.Signal<string | number | null>;
|
|
33
|
+
/** A name needs a role to land on, and an interactive host can't hold a remove button. */
|
|
34
|
+
protected readonly hostRole: _angular_core.Signal<"checkbox" | "link" | "group" | null>;
|
|
30
35
|
protected readonly iconSize: _angular_core.Signal<13 | 14 | 16>;
|
|
31
36
|
protected readonly isLink: _angular_core.Signal<boolean>;
|
|
32
37
|
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaChipMessages>;
|
|
33
38
|
protected readonly prefixTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
34
|
-
protected readonly role: _angular_core.Signal<"checkbox" | undefined>;
|
|
35
39
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
40
|
+
* An interactive role makes its children presentational, which would hide the remove button, so a chip with both
|
|
41
|
+
* keeps its control on an inner element.
|
|
42
|
+
*/
|
|
43
|
+
protected readonly split: _angular_core.Signal<boolean>;
|
|
44
|
+
/**
|
|
45
|
+
* @description Accessible name of the chip, for one whose text doesn't describe it, such as an icon. On a chip with no
|
|
46
|
+
* other role, it makes the chip a named group.
|
|
38
47
|
* @default ""
|
|
39
48
|
*/
|
|
40
49
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
@@ -47,7 +56,7 @@ declare class ChipComponent implements ChipVariantInputs {
|
|
|
47
56
|
* @description Renders the chip with reduced visual emphasis and removes pointer interaction.
|
|
48
57
|
* @default false
|
|
49
58
|
*/
|
|
50
|
-
readonly disabled: _angular_core.
|
|
59
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
51
60
|
/**
|
|
52
61
|
* @description Text label displayed inside the chip. When non-empty, takes precedence over projected content.
|
|
53
62
|
* @default ""
|
|
@@ -62,21 +71,22 @@ declare class ChipComponent implements ChipVariantInputs {
|
|
|
62
71
|
* @description Renders a remove button inside the chip. When activated, emits the `remove` output.
|
|
63
72
|
* @default false
|
|
64
73
|
*/
|
|
65
|
-
readonly removable: _angular_core.
|
|
74
|
+
readonly removable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
66
75
|
/**
|
|
67
|
-
* @description Emitted when the remove button is clicked
|
|
68
|
-
* Emits the originating `Event`.
|
|
76
|
+
* @description Emitted when the remove button is clicked, or Delete or Backspace is pressed on the chip. Only fires
|
|
77
|
+
* when `removable` is `true`. Emits the originating `Event`. The chip can't keep focus once its parent destroys it, so
|
|
78
|
+
* move focus to the next chip or the list here.
|
|
69
79
|
*/
|
|
70
80
|
readonly remove: _angular_core.OutputEmitterRef<Event>;
|
|
71
81
|
/**
|
|
72
82
|
* @description Accessible label for the remove button, overriding the auto-computed `"Remove, <label>"` fallback.
|
|
73
|
-
*
|
|
83
|
+
* A chip with only projected content needs this or `aria-label`, or it warns in development.
|
|
74
84
|
* @default undefined
|
|
75
85
|
*/
|
|
76
86
|
readonly removeLabel: _angular_core.InputSignal<string | undefined>;
|
|
77
87
|
/**
|
|
78
88
|
* @description Tab index for the remove button, independent of the chip host's own tabindex.
|
|
79
|
-
* Set to `-1` to exclude the remove button from tab order
|
|
89
|
+
* Set to `-1` to exclude the remove button from tab order, since Delete and Backspace on the chip also remove it.
|
|
80
90
|
* @default 0
|
|
81
91
|
*/
|
|
82
92
|
readonly removeTabIndex: _angular_core.InputSignal<string | number>;
|
|
@@ -87,7 +97,8 @@ declare class ChipComponent implements ChipVariantInputs {
|
|
|
87
97
|
readonly rounded: _angular_core.InputSignal<"full" | "large" | "medium" | "none" | "small" | null | undefined>;
|
|
88
98
|
/**
|
|
89
99
|
* @description Whether the chip is selected. When `toggleable` is `true`, each activation flips this value.
|
|
90
|
-
* Supports two-way binding via `[(selected)]`.
|
|
100
|
+
* Supports two-way binding via `[(selected)]`. Without `toggleable`, it's only a look, with no state for assistive
|
|
101
|
+
* technology.
|
|
91
102
|
* @default false
|
|
92
103
|
*/
|
|
93
104
|
readonly selected: _angular_core.ModelSignal<boolean>;
|
|
@@ -98,24 +109,26 @@ declare class ChipComponent implements ChipVariantInputs {
|
|
|
98
109
|
readonly size: _angular_core.InputSignal<"large" | "medium" | "small" | null | undefined>;
|
|
99
110
|
/**
|
|
100
111
|
* @description Tab index override for the chip host element. When not set, computed automatically:
|
|
101
|
-
* `0` when `toggleable` is `true` or functioning as a link,
|
|
112
|
+
* `0` when `toggleable` is `true` or functioning as a link, not focusable otherwise. Overridden to `-1` when `disabled`
|
|
113
|
+
* is `true`.
|
|
102
114
|
* @default undefined
|
|
103
115
|
*/
|
|
104
116
|
readonly tabindex: _angular_core.InputSignal<string | number | undefined>;
|
|
105
117
|
/**
|
|
106
118
|
* @description Enables toggle behavior. When `true`, each activation flips `selected`
|
|
107
|
-
* and the host receives `role="checkbox"` with `aria-checked`.
|
|
119
|
+
* and the host receives `role="checkbox"` with `aria-checked`. With `removable`, the host is a `group` instead, and an
|
|
120
|
+
* inner element is the checkbox, beside the remove button.
|
|
108
121
|
* @default false
|
|
109
122
|
*/
|
|
110
|
-
readonly toggleable: _angular_core.
|
|
123
|
+
readonly toggleable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
111
124
|
/**
|
|
112
125
|
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
113
126
|
* @default ""
|
|
114
127
|
*/
|
|
115
128
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
116
129
|
/**
|
|
117
|
-
* @description Arbitrary value associated with this chip.
|
|
118
|
-
*
|
|
130
|
+
* @description Arbitrary value associated with this chip. The chip doesn't use it or emit it, so to tell which chip was
|
|
131
|
+
* removed, pass the item in your `(remove)` handler.
|
|
119
132
|
* @default undefined
|
|
120
133
|
*/
|
|
121
134
|
readonly value: _angular_core.InputSignal<unknown>;
|
|
@@ -1,5 +1,7 @@
|
|
|
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';
|
|
4
|
+
import * as _nanahoshi_mona_ui_common from '@nanahoshi/mona-ui/common';
|
|
3
5
|
import { VariantInputs, Action } from '@nanahoshi/mona-ui/internal';
|
|
4
6
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
7
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -13,6 +15,7 @@ interface LabelTemplateContext {
|
|
|
13
15
|
|
|
14
16
|
declare class CircularProgressBarLabelTemplateDirective {
|
|
15
17
|
readonly templateRef: TemplateRef<LabelTemplateContext>;
|
|
18
|
+
static ngTemplateContextGuard(_dir: CircularProgressBarLabelTemplateDirective, _ctx: unknown): _ctx is LabelTemplateContext;
|
|
16
19
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CircularProgressBarLabelTemplateDirective, never>;
|
|
17
20
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CircularProgressBarLabelTemplateDirective, "ng-template[monaCircularProgressBarLabelTemplate]", never, {}, {}, never, never, true, never>;
|
|
18
21
|
}
|
|
@@ -25,13 +28,17 @@ type CircularProgressBarBaseVariantInput = VariantInputs<CircularProgressBarBase
|
|
|
25
28
|
type CircularProgressBarVariantInput = CircularProgressBarBaseVariantInput;
|
|
26
29
|
|
|
27
30
|
declare class CircularProgressBarComponent implements CircularProgressBarVariantInput {
|
|
31
|
+
#private;
|
|
32
|
+
protected readonly ariaRange: _angular_core.Signal<_nanahoshi_mona_ui_common.ProgressRange | null>;
|
|
28
33
|
protected readonly baseClasses: _angular_core.Signal<string>;
|
|
29
34
|
protected readonly center: _angular_core.Signal<{
|
|
30
35
|
x: number;
|
|
31
36
|
y: number;
|
|
32
37
|
}>;
|
|
33
38
|
protected readonly circumference: _angular_core.Signal<number>;
|
|
39
|
+
protected readonly formattedProgress: _angular_core.Signal<string>;
|
|
34
40
|
protected readonly labelTemplate: _angular_core.Signal<CircularProgressBarLabelTemplateDirective | undefined>;
|
|
41
|
+
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaProgressBarMessages>;
|
|
35
42
|
protected readonly pixelSize: _angular_core.Signal<string>;
|
|
36
43
|
protected readonly progress: _angular_core.Signal<number>;
|
|
37
44
|
protected readonly radius: _angular_core.Signal<number>;
|
|
@@ -45,7 +52,7 @@ declare class CircularProgressBarComponent implements CircularProgressBarVariant
|
|
|
45
52
|
readonly animate: _angular_core.InputSignal<boolean>;
|
|
46
53
|
/**
|
|
47
54
|
* @description Accessible name for the host element. Describe what the component represents (e.g., "Upload progress").
|
|
48
|
-
* When empty,
|
|
55
|
+
* When empty, falls back to the localized "Progress". An `aria-labelledby` on the host takes precedence over both.
|
|
49
56
|
* @default ""
|
|
50
57
|
*/
|
|
51
58
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
@@ -70,12 +77,19 @@ declare class CircularProgressBarComponent implements CircularProgressBarVariant
|
|
|
70
77
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
71
78
|
/**
|
|
72
79
|
* @description Activates indeterminate mode when the completion value is unknown.
|
|
73
|
-
* ARIA value attributes are removed
|
|
80
|
+
* ARIA value attributes are removed.
|
|
74
81
|
* @default false
|
|
75
82
|
*/
|
|
76
83
|
readonly indeterminate: _angular_core.InputSignal<boolean>;
|
|
77
84
|
/**
|
|
78
|
-
* @description
|
|
85
|
+
* @description Controls label visibility in determinate mode.
|
|
86
|
+
* Has no effect in indeterminate mode, where the label is always hidden.
|
|
87
|
+
* @default true
|
|
88
|
+
*/
|
|
89
|
+
readonly labelVisible: _angular_core.InputSignal<boolean>;
|
|
90
|
+
/**
|
|
91
|
+
* @description Upper bound of the value range. Must be greater than `min`; otherwise the bar reports no values and a
|
|
92
|
+
* warning is logged in development.
|
|
79
93
|
* @default 100
|
|
80
94
|
*/
|
|
81
95
|
readonly max: _angular_core.InputSignal<number>;
|
|
@@ -100,12 +114,14 @@ declare class CircularProgressBarComponent implements CircularProgressBarVariant
|
|
|
100
114
|
*/
|
|
101
115
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
102
116
|
/**
|
|
103
|
-
* @description Current progress value within `[min, max]`. Values outside the range are clamped
|
|
117
|
+
* @description Current progress value within `[min, max]`. Values outside the range are clamped, for the ring and
|
|
118
|
+
* for `aria-valuenow`; non-finite values count as `min`.
|
|
104
119
|
* @default 0
|
|
105
120
|
*/
|
|
106
121
|
readonly value: _angular_core.InputSignal<number>;
|
|
122
|
+
constructor();
|
|
107
123
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CircularProgressBarComponent, never>;
|
|
108
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CircularProgressBarComponent, "mona-circular-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; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "thickness": { "alias": "thickness"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, ["labelTemplate"], never, true, never>;
|
|
124
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CircularProgressBarComponent, "mona-circular-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; }; "labelVisible": { "alias": "labelVisible"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "thickness": { "alias": "thickness"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, ["labelTemplate"], never, true, never>;
|
|
109
125
|
}
|
|
110
126
|
|
|
111
127
|
export { CircularProgressBarComponent, CircularProgressBarLabelTemplateDirective };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { InjectionToken, Signal } from '@angular/core';
|
|
3
3
|
import * as _nanahoshi_mona_ui_collapsible from '@nanahoshi/mona-ui/collapsible';
|
|
4
4
|
|
|
5
|
-
declare const
|
|
5
|
+
declare const COLLAPSIBLE_CONFIG: InjectionToken<CollapsibleConfig>;
|
|
6
6
|
/**
|
|
7
7
|
* The contract a collapsible root exposes to its trigger and content parts.
|
|
8
8
|
*/
|
|
@@ -13,6 +13,8 @@ interface CollapsibleConfig {
|
|
|
13
13
|
readonly disabled: Signal<boolean>;
|
|
14
14
|
expand(): void;
|
|
15
15
|
readonly expanded: Signal<boolean>;
|
|
16
|
+
/** Takes the id the content was given, so the trigger points at it. A root without it always uses `contentId`. */
|
|
17
|
+
setContentId?(id: string | null): void;
|
|
16
18
|
toggle(): void;
|
|
17
19
|
}
|
|
18
20
|
|
|
@@ -22,28 +24,31 @@ interface CollapsibleConfig {
|
|
|
22
24
|
* (`li`, `div`, `section`) and paired with `monaCollapsibleTrigger` and `monaCollapsibleContent`.
|
|
23
25
|
*/
|
|
24
26
|
declare class CollapsibleDirective implements CollapsibleConfig {
|
|
27
|
+
#private;
|
|
25
28
|
protected readonly state: _angular_core.Signal<"open" | "closed">;
|
|
26
29
|
/**
|
|
27
30
|
* @description Enables the height transition applied to the collapsible content.
|
|
28
31
|
* @default true
|
|
29
32
|
*/
|
|
30
|
-
readonly animate: _angular_core.
|
|
31
|
-
/**
|
|
32
|
-
* @description Id assigned to the content element and referenced by the trigger through `aria-controls`.
|
|
33
|
-
*/
|
|
34
|
-
readonly contentId: string;
|
|
33
|
+
readonly animate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
35
34
|
/**
|
|
36
35
|
* @description Suppresses toggling through the trigger. `expand()` and `collapse()` still apply.
|
|
37
36
|
* @default false
|
|
38
37
|
*/
|
|
39
|
-
readonly disabled: _angular_core.
|
|
38
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
40
39
|
/**
|
|
41
40
|
* @description Sets whether the content is expanded. Supports two-way binding.
|
|
42
41
|
* @default false
|
|
43
42
|
*/
|
|
44
43
|
readonly expanded: _angular_core.ModelSignal<boolean>;
|
|
44
|
+
/**
|
|
45
|
+
* @description Id of the content element, which the trigger references through `aria-controls`. Generated, unless the
|
|
46
|
+
* content element has its own `id`.
|
|
47
|
+
*/
|
|
48
|
+
get contentId(): string;
|
|
45
49
|
collapse(): void;
|
|
46
50
|
expand(): void;
|
|
51
|
+
setContentId(id: string | null): void;
|
|
47
52
|
toggle(): void;
|
|
48
53
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CollapsibleDirective, never>;
|
|
49
54
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CollapsibleDirective, "[monaCollapsible]", ["monaCollapsible"], { "animate": { "alias": "animate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, never, true, never>;
|
|
@@ -62,9 +67,13 @@ declare class CollapsibleContentDirective {
|
|
|
62
67
|
protected readonly collapsible: _nanahoshi_mona_ui_collapsible.CollapsibleConfig;
|
|
63
68
|
protected readonly inert: _angular_core.Signal<true | null>;
|
|
64
69
|
protected readonly state: _angular_core.Signal<"open" | "closed">;
|
|
70
|
+
/**
|
|
71
|
+
* @description The content's id, for when it has to be something in particular. Generated if not given.
|
|
72
|
+
*/
|
|
73
|
+
readonly id: _angular_core.InputSignal<string | null>;
|
|
65
74
|
constructor();
|
|
66
75
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CollapsibleContentDirective, never>;
|
|
67
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CollapsibleContentDirective, "[monaCollapsibleContent]", never, {}, {}, never, never, true, never>;
|
|
76
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CollapsibleContentDirective, "[monaCollapsibleContent]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
68
77
|
}
|
|
69
78
|
|
|
70
79
|
/**
|
|
@@ -81,12 +90,12 @@ declare class CollapsibleTriggerDirective {
|
|
|
81
90
|
protected readonly state: _angular_core.Signal<"open" | "closed">;
|
|
82
91
|
protected readonly tabIndex: _angular_core.Signal<0 | -1 | null>;
|
|
83
92
|
protected readonly type: string | null;
|
|
84
|
-
protected onClick(): void;
|
|
93
|
+
protected onClick(event: Event): void;
|
|
85
94
|
protected onEnterKeydown(event: Event): void;
|
|
86
95
|
protected onSpaceKeydown(event: Event): void;
|
|
87
96
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CollapsibleTriggerDirective, never>;
|
|
88
97
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CollapsibleTriggerDirective, "[monaCollapsibleTrigger]", never, {}, {}, never, never, true, never>;
|
|
89
98
|
}
|
|
90
99
|
|
|
91
|
-
export { CollapsibleContentDirective, CollapsibleDirective,
|
|
100
|
+
export { COLLAPSIBLE_CONFIG, CollapsibleContentDirective, CollapsibleDirective, CollapsibleTriggerDirective };
|
|
92
101
|
export type { CollapsibleConfig };
|