@nanahoshi/mona-ui 0.1.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 +25 -0
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +590 -0
- package/fesm2022/nanahoshi-mona-ui-avatar.mjs +168 -0
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +220 -0
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +225 -0
- package/fesm2022/nanahoshi-mona-ui-button.mjs +497 -0
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +1569 -0
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +339 -0
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +453 -0
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +200 -0
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +853 -0
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +923 -0
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +495 -0
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +686 -0
- package/fesm2022/nanahoshi-mona-ui-common.mjs +642 -0
- package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +485 -0
- package/fesm2022/nanahoshi-mona-ui-date-input.mjs +132 -0
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +460 -0
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +659 -0
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +828 -0
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +523 -0
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +615 -0
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +701 -0
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +1400 -0
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +245 -0
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +170 -0
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +680 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-cell.component-B9SQH5N-.mjs +105 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-table-cell.directive-DlLwcCFT.mjs +42 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-Dgea-O0X.mjs +130 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-toggle.component-DIUutx9s.mjs +773 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-DRHycGIh.mjs +240 -0
- package/fesm2022/nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-C3eZIaJK.mjs +5374 -0
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +2 -0
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +87 -0
- package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +154 -0
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +1356 -0
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +2263 -0
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +379 -0
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +630 -0
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +527 -0
- package/fesm2022/nanahoshi-mona-ui-list.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +966 -0
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +641 -0
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +536 -0
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +597 -0
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +790 -0
- package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +83 -0
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +325 -0
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +1559 -0
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +1321 -0
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +294 -0
- package/fesm2022/nanahoshi-mona-ui-query.mjs +175 -0
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +339 -0
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +565 -0
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +1049 -0
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +636 -0
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +843 -0
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +537 -0
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +308 -0
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +664 -0
- package/fesm2022/nanahoshi-mona-ui-text-area.mjs +111 -0
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +369 -0
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +314 -0
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +450 -0
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +723 -0
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +716 -0
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +733 -0
- package/fesm2022/nanahoshi-mona-ui-window.mjs +1329 -0
- package/fesm2022/nanahoshi-mona-ui.mjs +9 -0
- package/package.json +289 -0
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +223 -0
- package/types/nanahoshi-mona-ui-avatar.d.ts +642 -0
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +70 -0
- package/types/nanahoshi-mona-ui-button-group.d.ts +77 -0
- package/types/nanahoshi-mona-ui-button.d.ts +111 -0
- package/types/nanahoshi-mona-ui-calendar.d.ts +262 -0
- package/types/nanahoshi-mona-ui-check-box.d.ts +133 -0
- package/types/nanahoshi-mona-ui-chip.d.ts +130 -0
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +113 -0
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +201 -0
- package/types/nanahoshi-mona-ui-color-palette.d.ts +102 -0
- package/types/nanahoshi-mona-ui-color-picker.d.ts +156 -0
- package/types/nanahoshi-mona-ui-combo-box.d.ts +232 -0
- package/types/nanahoshi-mona-ui-common.d.ts +386 -0
- package/types/nanahoshi-mona-ui-contextmenu.d.ts +129 -0
- package/types/nanahoshi-mona-ui-date-input.d.ts +60 -0
- package/types/nanahoshi-mona-ui-date-picker.d.ts +177 -0
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +199 -0
- package/types/nanahoshi-mona-ui-dialog.d.ts +261 -0
- package/types/nanahoshi-mona-ui-dropdown-button.d.ts +159 -0
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +219 -0
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +176 -0
- package/types/nanahoshi-mona-ui-editor.d.ts +113 -0
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +87 -0
- package/types/nanahoshi-mona-ui-fieldset.d.ts +68 -0
- package/types/nanahoshi-mona-ui-filter.d.ts +115 -0
- package/types/nanahoshi-mona-ui-grid.d.ts +1114 -0
- package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +25 -0
- package/types/nanahoshi-mona-ui-internal-indicator-icon.d.ts +28 -0
- package/types/nanahoshi-mona-ui-internal-list.d.ts +269 -0
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +391 -0
- package/types/nanahoshi-mona-ui-internal.d.ts +136 -0
- package/types/nanahoshi-mona-ui-list-box.d.ts +225 -0
- package/types/nanahoshi-mona-ui-list-view.d.ts +188 -0
- package/types/nanahoshi-mona-ui-list.d.ts +1 -0
- package/types/nanahoshi-mona-ui-menubar.d.ts +198 -0
- package/types/nanahoshi-mona-ui-multi-select.d.ts +247 -0
- package/types/nanahoshi-mona-ui-notification.d.ts +106 -0
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +161 -0
- package/types/nanahoshi-mona-ui-pager.d.ts +238 -0
- package/types/nanahoshi-mona-ui-placeholder.d.ts +35 -0
- package/types/nanahoshi-mona-ui-popover.d.ts +130 -0
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +412 -0
- package/types/nanahoshi-mona-ui-popup.d.ts +485 -0
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +139 -0
- package/types/nanahoshi-mona-ui-query.d.ts +89 -0
- package/types/nanahoshi-mona-ui-radio-button.d.ts +128 -0
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +166 -0
- package/types/nanahoshi-mona-ui-slider.d.ts +305 -0
- package/types/nanahoshi-mona-ui-split-button.d.ts +182 -0
- package/types/nanahoshi-mona-ui-splitter.d.ts +70 -0
- package/types/nanahoshi-mona-ui-stepper.d.ts +173 -0
- package/types/nanahoshi-mona-ui-switch.d.ts +125 -0
- package/types/nanahoshi-mona-ui-tabs.d.ts +158 -0
- package/types/nanahoshi-mona-ui-text-area.d.ts +42 -0
- package/types/nanahoshi-mona-ui-text-box.d.ts +164 -0
- package/types/nanahoshi-mona-ui-theme.d.ts +23 -0
- package/types/nanahoshi-mona-ui-time-picker.d.ts +184 -0
- package/types/nanahoshi-mona-ui-time-selector.d.ts +143 -0
- package/types/nanahoshi-mona-ui-tooltip.d.ts +130 -0
- package/types/nanahoshi-mona-ui-tree-view.d.ts +274 -0
- package/types/nanahoshi-mona-ui-window.d.ts +295 -0
- package/types/nanahoshi-mona-ui.d.ts +2 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Signal, TemplateRef } from '@angular/core';
|
|
3
|
+
import * as _mirei_ts_collections from '@mirei/ts-collections';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
7
|
+
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
8
|
+
|
|
9
|
+
interface StepOptions<T = unknown> {
|
|
10
|
+
/** @description Optional arbitrary data attached to this step. */
|
|
11
|
+
data?: T;
|
|
12
|
+
/** @description When true, the step cannot be activated by click or keyboard regardless of linear mode. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** @description Display label shown beneath the step indicator. */
|
|
15
|
+
label: string;
|
|
16
|
+
}
|
|
17
|
+
interface StepItem<T = unknown> {
|
|
18
|
+
/** @description Zero-based position of the step in the list. */
|
|
19
|
+
readonly index: number;
|
|
20
|
+
/** @description The original options object for this step. */
|
|
21
|
+
readonly options: StepOptions<T>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface StepperTemplateContext<T = unknown> {
|
|
25
|
+
/** @description The step's options object (also available as the implicit binding). */
|
|
26
|
+
$implicit: StepOptions<T>;
|
|
27
|
+
/** @description True when this step's index is less than or equal to the current active step index. */
|
|
28
|
+
active: boolean;
|
|
29
|
+
/** @description Zero-based index of the currently active step. */
|
|
30
|
+
currentIndex: number;
|
|
31
|
+
/** @description Whether this step is disabled and cannot be activated. */
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
/** @description Zero-based index of this step. */
|
|
34
|
+
index: number;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Marks an ng-template as the custom indicator template for mona-stepper.
|
|
39
|
+
* The template context provides the step options, index, active state, and current step index.
|
|
40
|
+
*/
|
|
41
|
+
declare class StepperIndicatorTemplateDirective {
|
|
42
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StepperIndicatorTemplateDirective, never>;
|
|
43
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StepperIndicatorTemplateDirective, "ng-template[monaStepperIndicatorTemplate]", never, {}, {}, never, never, true, never>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Marks an ng-template as the custom label template for mona-stepper.
|
|
48
|
+
* The template context provides the step options, index, active state, and current step index.
|
|
49
|
+
*/
|
|
50
|
+
declare class StepperLabelTemplateDirective {
|
|
51
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StepperLabelTemplateDirective, never>;
|
|
52
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StepperLabelTemplateDirective, "ng-template[monaStepperLabelTemplate]", never, {}, {}, never, never, true, never>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Marks an ng-template as the custom step template for mona-stepper.
|
|
57
|
+
* When provided, this template replaces the entire default step indicator and label for each step.
|
|
58
|
+
* The template context provides the step options, index, active state, and current step index.
|
|
59
|
+
*/
|
|
60
|
+
declare class StepperStepTemplateDirective {
|
|
61
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StepperStepTemplateDirective, never>;
|
|
62
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StepperStepTemplateDirective, "ng-template[monaStepperStepTemplate]", never, {}, {}, never, never, true, never>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
declare const stepperBaseThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
66
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
67
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
68
|
+
declare const stepperStepListThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
69
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
70
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
71
|
+
declare const stepperStepListItemThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
72
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
73
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
74
|
+
declare const stepperStepIndicatorThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
75
|
+
active?: boolean | null | undefined;
|
|
76
|
+
focused?: boolean | null | undefined;
|
|
77
|
+
rounded?: "small" | "medium" | "large" | "full" | "none" | null | undefined;
|
|
78
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
79
|
+
declare const stepperTrackThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
80
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
81
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
82
|
+
declare const stepperTrackLineThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
83
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
84
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
85
|
+
type StepperBaseVariantProps = VariantProps<ReturnType<typeof stepperBaseThemeVariants>>;
|
|
86
|
+
type StepperBaseVariantInput = VariantInputs<StepperBaseVariantProps>;
|
|
87
|
+
type StepperStepListVariantProps = VariantProps<ReturnType<typeof stepperStepListThemeVariants>>;
|
|
88
|
+
type StepperStepListVariantInput = VariantInputs<StepperStepListVariantProps>;
|
|
89
|
+
type StepperStepListItemVariantProps = VariantProps<ReturnType<typeof stepperStepListItemThemeVariants>>;
|
|
90
|
+
type StepperStepListItemVariantInput = VariantInputs<StepperStepListItemVariantProps>;
|
|
91
|
+
type StepperStepIndicatorVariantProps = VariantProps<ReturnType<typeof stepperStepIndicatorThemeVariants>>;
|
|
92
|
+
type StepperStepIndicatorVariantInput = VariantInputs<StepperStepIndicatorVariantProps>;
|
|
93
|
+
type StepperTrackVariantProps = VariantProps<ReturnType<typeof stepperTrackThemeVariants>>;
|
|
94
|
+
type StepperTrackVariantInput = VariantInputs<StepperTrackVariantProps>;
|
|
95
|
+
type StepperTrackLineVariantProps = VariantProps<ReturnType<typeof stepperTrackLineThemeVariants>>;
|
|
96
|
+
type StepperTrackLineVariantInput = VariantInputs<StepperTrackLineVariantProps>;
|
|
97
|
+
type StepperVariantInput = StepperBaseVariantInput & StepperStepListVariantInput & StepperStepListItemVariantInput & Omit<StepperStepIndicatorVariantInput, "active" | "focused"> & StepperTrackVariantInput & StepperTrackLineVariantInput;
|
|
98
|
+
|
|
99
|
+
declare class StepperComponent implements StepperVariantInput {
|
|
100
|
+
#private;
|
|
101
|
+
protected readonly activeStep: Signal<StepItem<unknown> | undefined>;
|
|
102
|
+
protected readonly baseClass: Signal<string>;
|
|
103
|
+
protected readonly highlightedStep: _angular_core.WritableSignal<number>;
|
|
104
|
+
protected readonly hostStyles: Signal<{
|
|
105
|
+
gridTemplateColumns: string | undefined;
|
|
106
|
+
gridTemplateRows: string | undefined;
|
|
107
|
+
}>;
|
|
108
|
+
protected readonly indicatorTemplate: Signal<TemplateRef<StepperTemplateContext> | undefined>;
|
|
109
|
+
protected readonly labelTemplate: Signal<TemplateRef<StepperTemplateContext> | undefined>;
|
|
110
|
+
protected readonly listClass: Signal<string>;
|
|
111
|
+
protected readonly listItemClass: Signal<string>;
|
|
112
|
+
protected readonly progressMax: Signal<number>;
|
|
113
|
+
protected readonly stepTemplate: Signal<TemplateRef<StepperTemplateContext> | undefined>;
|
|
114
|
+
protected readonly trackClass: Signal<string>;
|
|
115
|
+
protected readonly trackInnerStyles: Signal<{
|
|
116
|
+
[x: string]: string;
|
|
117
|
+
}>;
|
|
118
|
+
protected readonly trackItemStyles: Signal<{
|
|
119
|
+
[x: string]: string;
|
|
120
|
+
}>;
|
|
121
|
+
protected readonly trackLineClass: Signal<string>;
|
|
122
|
+
protected readonly trackStyles: Signal<{
|
|
123
|
+
gridColumn: string | undefined;
|
|
124
|
+
gridRow: string | undefined;
|
|
125
|
+
}>;
|
|
126
|
+
protected readonly viewSteps: Signal<_mirei_ts_collections.ImmutableSet<StepItem<unknown>>>;
|
|
127
|
+
/**
|
|
128
|
+
* @description Sets the accessible label for the stepper group.
|
|
129
|
+
* @default "Progress"
|
|
130
|
+
*/
|
|
131
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
132
|
+
/**
|
|
133
|
+
* @description Sets the flow of the stepper.
|
|
134
|
+
* If set to true, the user will only be able to navigate to the previous or the next step.
|
|
135
|
+
* @default true
|
|
136
|
+
*/
|
|
137
|
+
readonly linear: _angular_core.InputSignal<boolean>;
|
|
138
|
+
/**
|
|
139
|
+
* @description Sets the orientation of the stepper.
|
|
140
|
+
*/
|
|
141
|
+
readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical" | null | undefined>;
|
|
142
|
+
/**
|
|
143
|
+
* @description Sets the accessible label for the progress bar element.
|
|
144
|
+
* @default "Step progress"
|
|
145
|
+
*/
|
|
146
|
+
readonly progressAriaLabel: _angular_core.InputSignal<string>;
|
|
147
|
+
/**
|
|
148
|
+
* @description Sets the roundness of the stepper steps.
|
|
149
|
+
*/
|
|
150
|
+
readonly rounded: _angular_core.InputSignal<"small" | "medium" | "large" | "full" | "none" | null | undefined>;
|
|
151
|
+
/**
|
|
152
|
+
* @description Sets the active step of the stepper.
|
|
153
|
+
*/
|
|
154
|
+
readonly step: _angular_core.ModelSignal<number>;
|
|
155
|
+
/**
|
|
156
|
+
* @description Sets the steps of the stepper.
|
|
157
|
+
*/
|
|
158
|
+
readonly steps: _angular_core.InputSignal<Iterable<StepOptions<unknown>>>;
|
|
159
|
+
constructor();
|
|
160
|
+
protected isStepActive(step: StepItem): boolean;
|
|
161
|
+
protected isStepLocked(step: StepItem): boolean;
|
|
162
|
+
protected onIndicatorFocus(step: StepItem): void;
|
|
163
|
+
protected onStepClick(step: StepItem): void;
|
|
164
|
+
private moveHighlight;
|
|
165
|
+
private setActiveStep;
|
|
166
|
+
private setHighlightedStep;
|
|
167
|
+
private setKeyboardEvents;
|
|
168
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StepperComponent, never>;
|
|
169
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StepperComponent, "mona-stepper", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "linear": { "alias": "linear"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "progressAriaLabel": { "alias": "progressAriaLabel"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "steps": { "alias": "steps"; "required": false; "isSignal": true; }; }, { "step": "stepChange"; }, ["indicatorTemplate", "labelTemplate", "stepTemplate"], never, true, never>;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export { StepperComponent, StepperIndicatorTemplateDirective, StepperLabelTemplateDirective, StepperStepTemplateDirective };
|
|
173
|
+
export type { StepOptions, StepperTemplateContext };
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import { FormCheckboxControl } from '@angular/forms/signals';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
6
|
+
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
7
|
+
import { VariantProps } from 'class-variance-authority';
|
|
8
|
+
|
|
9
|
+
declare const switchThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
10
|
+
rounded?: "full" | "large" | "medium" | "none" | "small" | null | undefined;
|
|
11
|
+
size?: "large" | "medium" | "small" | null | undefined;
|
|
12
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
13
|
+
declare const switchHandleThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
14
|
+
rounded?: "full" | "large" | "medium" | "none" | "small" | null | undefined;
|
|
15
|
+
size?: "large" | "medium" | "small" | null | undefined;
|
|
16
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
17
|
+
declare const switchLabelThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
18
|
+
type SwitchBaseVariantProps = VariantProps<ReturnType<typeof switchThemeVariants>>;
|
|
19
|
+
type SwitchBaseVariantInput = VariantInputs<SwitchBaseVariantProps>;
|
|
20
|
+
type SwitchHandleVariantProps = VariantProps<ReturnType<typeof switchHandleThemeVariants>>;
|
|
21
|
+
type SwitchHandleVariantInput = VariantInputs<SwitchHandleVariantProps>;
|
|
22
|
+
type SwitchLabelVariantProps = VariantProps<ReturnType<typeof switchLabelThemeVariants>>;
|
|
23
|
+
type SwitchLabelVariantInput = VariantInputs<SwitchLabelVariantProps>;
|
|
24
|
+
type SwitchVariantProps = SwitchBaseVariantProps & SwitchHandleVariantProps & SwitchLabelVariantProps;
|
|
25
|
+
type SwitchVariantInputs = SwitchBaseVariantInput & SwitchHandleVariantInput & SwitchLabelVariantInput;
|
|
26
|
+
|
|
27
|
+
declare class SwitchComponent implements SwitchVariantInputs, FormCheckboxControl {
|
|
28
|
+
#private;
|
|
29
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
30
|
+
protected readonly invalidState: _angular_core.Signal<boolean>;
|
|
31
|
+
protected readonly handleClasses: _angular_core.Signal<string>;
|
|
32
|
+
protected readonly handleContentTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
33
|
+
protected readonly labelClasses: _angular_core.Signal<string>;
|
|
34
|
+
protected readonly offLabelTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
35
|
+
protected readonly onLabelTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* @description Accessible name for the host element. Describe what the component represents.
|
|
38
|
+
* When empty, assistive technology announces the role without a label.
|
|
39
|
+
* @default null
|
|
40
|
+
*/
|
|
41
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
42
|
+
/**
|
|
43
|
+
* @description ID of an external element that provides the accessible name for the host element.
|
|
44
|
+
* @default null
|
|
45
|
+
*/
|
|
46
|
+
readonly ariaLabelledBy: _angular_core.InputSignal<string | null>;
|
|
47
|
+
/**
|
|
48
|
+
* @description Whether the control is checked.
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
readonly checked: _angular_core.ModelSignal<boolean>;
|
|
52
|
+
/**
|
|
53
|
+
* @description Renders the component with reduced visual emphasis and removes pointer interaction.
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
56
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
57
|
+
/**
|
|
58
|
+
* @description Marks the switch as invalid. When bound to a signal form field via `[field]`,
|
|
59
|
+
* this is written by the signal forms `Field` directive.
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
readonly invalid: _angular_core.InputSignal<boolean>;
|
|
63
|
+
/**
|
|
64
|
+
* @description Label displayed inside the switch track when it is in the off state.
|
|
65
|
+
* @default ""
|
|
66
|
+
*/
|
|
67
|
+
readonly offLabel: _angular_core.InputSignal<string>;
|
|
68
|
+
/**
|
|
69
|
+
* @description Label displayed inside the switch track when it is in the on state.
|
|
70
|
+
* @default ""
|
|
71
|
+
*/
|
|
72
|
+
readonly onLabel: _angular_core.InputSignal<string>;
|
|
73
|
+
/**
|
|
74
|
+
* @description Marks the switch as required for form validation.
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
readonly required: _angular_core.InputSignal<boolean>;
|
|
78
|
+
/**
|
|
79
|
+
* @description Border-radius preset applied to the component.
|
|
80
|
+
* @default "full"
|
|
81
|
+
*/
|
|
82
|
+
readonly rounded: _angular_core.InputSignal<"full" | "large" | "medium" | "none" | "small" | null | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* @description Size preset controlling the component's dimensions.
|
|
85
|
+
* @default "medium"
|
|
86
|
+
*/
|
|
87
|
+
readonly size: _angular_core.InputSignal<"large" | "medium" | "small" | null | undefined>;
|
|
88
|
+
/**
|
|
89
|
+
* @description Emitted when the switch loses focus or its value changes.
|
|
90
|
+
*/
|
|
91
|
+
readonly touch: _angular_core.OutputEmitterRef<void>;
|
|
92
|
+
/**
|
|
93
|
+
* @description Marks the switch as touched. When bound to a signal form field via `[field]`,
|
|
94
|
+
* this is written by the signal forms `Field` directive.
|
|
95
|
+
* @default false
|
|
96
|
+
*/
|
|
97
|
+
readonly touched: _angular_core.InputSignal<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
100
|
+
* @default ""
|
|
101
|
+
*/
|
|
102
|
+
readonly userClass: _angular_core.InputSignal<string>;
|
|
103
|
+
constructor();
|
|
104
|
+
protected onBlur(): void;
|
|
105
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SwitchComponent, never>;
|
|
106
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SwitchComponent, "mona-switch", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "offLabel": { "alias": "offLabel"; "required": false; "isSignal": true; }; "onLabel": { "alias": "onLabel"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "touch": "touch"; }, ["handleContentTemplate", "offLabelTemplate", "onLabelTemplate"], never, true, never>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
declare class SwitchHandleContentTemplateDirective {
|
|
110
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SwitchHandleContentTemplateDirective, never>;
|
|
111
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SwitchHandleContentTemplateDirective, "ng-template[monaSwitchHandleContentTemplate]", never, {}, {}, never, never, true, never>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare class SwitchOffLabelTemplateDirective {
|
|
115
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SwitchOffLabelTemplateDirective, never>;
|
|
116
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SwitchOffLabelTemplateDirective, "ng-template[monaSwitchOffLabelTemplate]", never, {}, {}, never, never, true, never>;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
declare class SwitchOnLabelTemplateDirective {
|
|
120
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SwitchOnLabelTemplateDirective, never>;
|
|
121
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SwitchOnLabelTemplateDirective, "ng-template[monaSwitchOnLabelTemplate]", never, {}, {}, never, never, true, never>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export { SwitchComponent, SwitchHandleContentTemplateDirective, SwitchOffLabelTemplateDirective, SwitchOnLabelTemplateDirective };
|
|
125
|
+
export type { SwitchVariantProps };
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { PreventableEvent } from '@nanahoshi/mona-ui/common';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { TemplateRef } from '@angular/core';
|
|
4
|
+
import { ImmutableSet } from '@mirei/ts-collections';
|
|
5
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
+
import { VariantProps } from 'class-variance-authority';
|
|
7
|
+
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
8
|
+
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
9
|
+
|
|
10
|
+
declare class TabCloseEvent extends PreventableEvent {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(index: number, selected: boolean, originalEvent?: Event);
|
|
13
|
+
get index(): number;
|
|
14
|
+
get selected(): boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class TabSelectEvent extends PreventableEvent {
|
|
18
|
+
#private;
|
|
19
|
+
constructor(index: number, originalEvent?: Event);
|
|
20
|
+
get index(): number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class TabContentTemplateDirective {
|
|
24
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabContentTemplateDirective, never>;
|
|
25
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TabContentTemplateDirective, "ng-template[monaTabContentTemplate]", never, {}, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare class TabTitleTemplateDirective {
|
|
29
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabTitleTemplateDirective, never>;
|
|
30
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TabTitleTemplateDirective, "ng-template[monaTabTitleTemplate]", never, {}, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface TabItem {
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly selected: boolean;
|
|
36
|
+
closable: boolean;
|
|
37
|
+
contentTemplate?: TemplateRef<unknown>;
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
index: number;
|
|
40
|
+
title: string;
|
|
41
|
+
titleTemplate?: TemplateRef<unknown>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare const tabListBaseThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
45
|
+
rounded?: "small" | "medium" | "large" | "full" | "none" | null | undefined;
|
|
46
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
47
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
48
|
+
declare const tabListListWrapperThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
49
|
+
declare const tabListListThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
50
|
+
declare const tabListListItemThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
51
|
+
active?: boolean | null | undefined;
|
|
52
|
+
disabled?: boolean | null | undefined;
|
|
53
|
+
rounded?: "small" | "medium" | "large" | "full" | "none" | null | undefined;
|
|
54
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
55
|
+
declare const tabListScrollButtonThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
56
|
+
declare const tabContentThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
57
|
+
rounded?: "small" | "medium" | "large" | "full" | "none" | null | undefined;
|
|
58
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
59
|
+
declare const tabsBaseThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
60
|
+
type TabListBaseVariantProps = VariantProps<ReturnType<typeof tabListBaseThemeVariants>>;
|
|
61
|
+
type TabListBaseVariantInput = VariantInputs<TabListBaseVariantProps>;
|
|
62
|
+
type TabListListWrapperVariantProps = VariantProps<ReturnType<typeof tabListListWrapperThemeVariants>>;
|
|
63
|
+
type TabListListWrapperVariantInput = VariantInputs<TabListListWrapperVariantProps>;
|
|
64
|
+
type TabListListVariantProps = VariantProps<ReturnType<typeof tabListListThemeVariants>>;
|
|
65
|
+
type TabListListVariantInput = VariantInputs<TabListListVariantProps>;
|
|
66
|
+
type TabListListItemVariantProps = VariantProps<ReturnType<typeof tabListListItemThemeVariants>>;
|
|
67
|
+
type TabListListItemVariantInput = VariantInputs<TabListListItemVariantProps>;
|
|
68
|
+
type TabListScrollButtonVariantProps = VariantProps<ReturnType<typeof tabListScrollButtonThemeVariants>>;
|
|
69
|
+
type TabListScrollButtonVariantInput = VariantInputs<TabListScrollButtonVariantProps>;
|
|
70
|
+
type TabContentVariantProps = VariantProps<ReturnType<typeof tabContentThemeVariants>>;
|
|
71
|
+
type TabContentVariantInput = VariantInputs<TabContentVariantProps>;
|
|
72
|
+
type TabsBaseVariantProps = VariantProps<ReturnType<typeof tabsBaseThemeVariants>>;
|
|
73
|
+
type TabsBaseVariantInput = VariantInputs<TabsBaseVariantProps>;
|
|
74
|
+
type TabListVariantInput = TabListBaseVariantInput & TabListListWrapperVariantInput & TabListListVariantInput & Omit<TabListListItemVariantInput, "active" | "disabled"> & TabListScrollButtonVariantInput;
|
|
75
|
+
type TabsVariantInput = TabsBaseVariantInput & TabListVariantInput & TabContentVariantInput;
|
|
76
|
+
|
|
77
|
+
declare class TabsComponent implements TabsVariantInput {
|
|
78
|
+
#private;
|
|
79
|
+
private readonly tabListComponent;
|
|
80
|
+
private readonly tabs;
|
|
81
|
+
protected readonly baseClass: _angular_core.Signal<string>;
|
|
82
|
+
protected readonly contentClass: _angular_core.Signal<string>;
|
|
83
|
+
protected readonly selectedTabId: _angular_core.WritableSignal<string | null>;
|
|
84
|
+
protected readonly tabList: _angular_core.Signal<ImmutableSet<TabItem>>;
|
|
85
|
+
/**
|
|
86
|
+
* @description Displays a close button on each tab, unless overridden per tab.
|
|
87
|
+
* @default false
|
|
88
|
+
*/
|
|
89
|
+
readonly closable: _angular_core.InputSignal<boolean>;
|
|
90
|
+
/**
|
|
91
|
+
* @description Renders every tab with reduced visual emphasis and removes pointer and keyboard interaction.
|
|
92
|
+
* @default false
|
|
93
|
+
*/
|
|
94
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
95
|
+
/**
|
|
96
|
+
* @description Keeps a tab's content in the DOM after it is deselected instead of removing it.
|
|
97
|
+
* @default true
|
|
98
|
+
*/
|
|
99
|
+
readonly keepTabContent: _angular_core.InputSignal<boolean>;
|
|
100
|
+
/**
|
|
101
|
+
* @description Border-radius preset applied to the tabs and the tab content area.
|
|
102
|
+
* @default "medium"
|
|
103
|
+
*/
|
|
104
|
+
readonly rounded: _angular_core.InputSignal<"small" | "medium" | "large" | "full" | "none" | null | undefined>;
|
|
105
|
+
/**
|
|
106
|
+
* @description Size preset controlling the tabs' dimensions.
|
|
107
|
+
* @default "medium"
|
|
108
|
+
*/
|
|
109
|
+
readonly size: _angular_core.InputSignal<"small" | "medium" | "large" | null | undefined>;
|
|
110
|
+
/**
|
|
111
|
+
* @description Emitted with a {@link TabCloseEvent} when a tab is closed.
|
|
112
|
+
*/
|
|
113
|
+
readonly tabClose: _angular_core.OutputEmitterRef<TabCloseEvent>;
|
|
114
|
+
/**
|
|
115
|
+
* @description Emitted with a {@link TabSelectEvent} when a tab is selected. This event is preventable.
|
|
116
|
+
*/
|
|
117
|
+
readonly tabSelect: _angular_core.OutputEmitterRef<TabSelectEvent>;
|
|
118
|
+
/**
|
|
119
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
120
|
+
* @default ""
|
|
121
|
+
*/
|
|
122
|
+
readonly userClass: _angular_core.InputSignal<string>;
|
|
123
|
+
protected handlePanelKeyDown(event: KeyboardEvent): void;
|
|
124
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabsComponent, never>;
|
|
125
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabsComponent, "mona-tabs", never, { "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "keepTabContent": { "alias": "keepTabContent"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "tabClose": "tabClose"; "tabSelect": "tabSelect"; }, ["tabs"], never, true, never>;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
declare class TabComponent {
|
|
129
|
+
#private;
|
|
130
|
+
protected readonly contentTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
131
|
+
protected readonly titleTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
132
|
+
/**
|
|
133
|
+
* @description Displays a close button on this tab. Overrides the parent `mona-tabs` component's `closable` input.
|
|
134
|
+
* @default false
|
|
135
|
+
*/
|
|
136
|
+
readonly closable: _angular_core.InputSignal<boolean>;
|
|
137
|
+
/**
|
|
138
|
+
* @description Renders this tab with reduced visual emphasis and removes pointer and keyboard interaction.
|
|
139
|
+
* Overrides the parent `mona-tabs` component's `disabled` input.
|
|
140
|
+
* @default false
|
|
141
|
+
*/
|
|
142
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
143
|
+
/**
|
|
144
|
+
* @description Whether the tab is selected.
|
|
145
|
+
* @default false
|
|
146
|
+
*/
|
|
147
|
+
readonly selected: _angular_core.ModelSignal<boolean>;
|
|
148
|
+
/**
|
|
149
|
+
* @description Title text displayed on the tab.
|
|
150
|
+
* @default ""
|
|
151
|
+
*/
|
|
152
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
153
|
+
get tabItem(): TabItem;
|
|
154
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabComponent, never>;
|
|
155
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabComponent, "mona-tab", never, { "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; }, ["contentTemplate", "titleTemplate"], never, true, never>;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export { TabCloseEvent, TabComponent, TabContentTemplateDirective, TabSelectEvent, TabTitleTemplateDirective, TabsComponent };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
4
|
+
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
|
|
7
|
+
declare const textAreaThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
8
|
+
rounded?: "large" | "medium" | "none" | "small" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
+
type TextAreaVariantProps = VariantProps<ReturnType<typeof textAreaThemeVariants>>;
|
|
11
|
+
type TextAreaVariantInput = VariantInputs<TextAreaVariantProps>;
|
|
12
|
+
|
|
13
|
+
declare class TextAreaDirective implements TextAreaVariantInput {
|
|
14
|
+
#private;
|
|
15
|
+
protected readonly baseClass: _angular_core.Signal<string>;
|
|
16
|
+
protected readonly inputInvalid: _angular_core.Signal<boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* @description Sets the border radius of the textarea.
|
|
19
|
+
* @default "medium"
|
|
20
|
+
*/
|
|
21
|
+
readonly rounded: _angular_core.InputSignal<"large" | "medium" | "none" | "small" | null | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* @description Marks the textarea as invalid, triggering error border and ring styling.
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
readonly invalid: _angular_core.InputSignal<boolean>;
|
|
27
|
+
/**
|
|
28
|
+
* @description Marks the textarea as touched. Error styling is only shown when both `invalid` and `touched` are `true`.
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
readonly touched: _angular_core.InputSignal<boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
34
|
+
* @default ""
|
|
35
|
+
*/
|
|
36
|
+
readonly userClass: _angular_core.InputSignal<string>;
|
|
37
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextAreaDirective, never>;
|
|
38
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TextAreaDirective, "textarea[monaTextArea]", never, { "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { TextAreaDirective };
|
|
42
|
+
export type { TextAreaVariantProps };
|