@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,305 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef, DestroyRef, NgZone, TemplateRef, Signal } from '@angular/core';
|
|
3
|
+
import { FormValueControl } from '@angular/forms/signals';
|
|
4
|
+
import { Orientation } from '@nanahoshi/mona-ui/common';
|
|
5
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
+
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
7
|
+
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
8
|
+
import { VariantProps } from 'class-variance-authority';
|
|
9
|
+
|
|
10
|
+
declare class SliderTickDirective {
|
|
11
|
+
readonly host: ElementRef<HTMLSpanElement>;
|
|
12
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SliderTickDirective, never>;
|
|
13
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SliderTickDirective, "span[monaSliderTick]", never, {}, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface LabelStyleArgs {
|
|
17
|
+
labelPosition: "before" | "after";
|
|
18
|
+
max: number;
|
|
19
|
+
min: number;
|
|
20
|
+
orientation: Orientation;
|
|
21
|
+
tickCount: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type SliderLabelPosition = "before" | "after";
|
|
25
|
+
|
|
26
|
+
interface SliderTick {
|
|
27
|
+
index: number;
|
|
28
|
+
value: number;
|
|
29
|
+
width?: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface TickStyleArgs {
|
|
33
|
+
largeTickStep: number | null;
|
|
34
|
+
max: number;
|
|
35
|
+
min: number;
|
|
36
|
+
orientation: Orientation;
|
|
37
|
+
smallTickStep: number;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare const sliderBaseThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
41
|
+
declare const sliderTrackThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
42
|
+
declare const sliderSelectionThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
43
|
+
declare const sliderTickListThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
44
|
+
declare const sliderTickThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
45
|
+
declare const sliderTickLabelListThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
46
|
+
declare const sliderTickLabelThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
47
|
+
declare const sliderHandleThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
48
|
+
rounded?: "full" | "large" | "medium" | "none" | "small" | null | undefined;
|
|
49
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
50
|
+
type SliderBaseVariantProps = VariantProps<ReturnType<typeof sliderBaseThemeVariants>>;
|
|
51
|
+
type SliderBaseVariantInputs = VariantInputs<SliderBaseVariantProps>;
|
|
52
|
+
type SliderTrackVariantProps = VariantProps<ReturnType<typeof sliderTrackThemeVariants>>;
|
|
53
|
+
type SliderTrackVariantInputs = VariantInputs<SliderTrackVariantProps>;
|
|
54
|
+
type SliderSelectionVariantProps = VariantProps<ReturnType<typeof sliderSelectionThemeVariants>>;
|
|
55
|
+
type SliderSelectionVariantInputs = VariantInputs<SliderSelectionVariantProps>;
|
|
56
|
+
type SliderTickListVariantProps = VariantProps<ReturnType<typeof sliderTickListThemeVariants>>;
|
|
57
|
+
type SliderTickListVariantInputs = VariantInputs<SliderTickListVariantProps>;
|
|
58
|
+
type SliderTickVariantProps = VariantProps<ReturnType<typeof sliderTickThemeVariants>>;
|
|
59
|
+
type SliderTickVariantInputs = VariantInputs<SliderTickVariantProps>;
|
|
60
|
+
type SliderTickLabelListVariantProps = VariantProps<ReturnType<typeof sliderTickLabelListThemeVariants>>;
|
|
61
|
+
type SliderTickLabelListVariantInputs = VariantInputs<SliderTickLabelListVariantProps>;
|
|
62
|
+
type SliderTickLabelVariantProps = VariantProps<ReturnType<typeof sliderTickLabelThemeVariants>>;
|
|
63
|
+
type SliderTickLabelVariantInputs = VariantInputs<SliderTickLabelVariantProps>;
|
|
64
|
+
type SliderHandleVariantProps = VariantProps<ReturnType<typeof sliderHandleThemeVariants>>;
|
|
65
|
+
type SliderHandleVariantInputs = VariantInputs<SliderHandleVariantProps>;
|
|
66
|
+
type SliderVariantProps = SliderBaseVariantProps & SliderTrackVariantProps & SliderSelectionVariantProps & SliderTickListVariantProps & SliderTickVariantProps & SliderTickLabelListVariantProps & SliderTickLabelVariantProps & SliderHandleVariantProps;
|
|
67
|
+
type SliderVariantInputs = SliderBaseVariantInputs & SliderTrackVariantInputs & SliderSelectionVariantInputs & SliderTickListVariantInputs & SliderTickVariantInputs & SliderTickLabelListVariantInputs & SliderTickLabelVariantInputs & SliderHandleVariantInputs;
|
|
68
|
+
|
|
69
|
+
declare abstract class SliderBaseComponent implements SliderVariantInputs {
|
|
70
|
+
#private;
|
|
71
|
+
protected readonly destroyRef: DestroyRef;
|
|
72
|
+
protected readonly dragging: _angular_core.WritableSignal<boolean>;
|
|
73
|
+
protected readonly hostElementRef: ElementRef<HTMLDivElement>;
|
|
74
|
+
protected readonly tickElements: _angular_core.Signal<readonly SliderTickDirective[]>;
|
|
75
|
+
protected readonly zone: NgZone;
|
|
76
|
+
protected readonly baseClasses: _angular_core.Signal<string>;
|
|
77
|
+
protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
78
|
+
protected readonly handleTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
79
|
+
protected readonly handleTemplateStyles: _angular_core.Signal<Partial<CSSStyleDeclaration>>;
|
|
80
|
+
protected readonly labelStyleArgs: _angular_core.Signal<LabelStyleArgs>;
|
|
81
|
+
protected readonly labelTicks: _angular_core.Signal<SliderTick[]>;
|
|
82
|
+
protected readonly renderTicks: _angular_core.Signal<SliderTick[]>;
|
|
83
|
+
protected readonly selectionBackgroundStyle: _angular_core.Signal<Partial<CSSStyleDeclaration>>;
|
|
84
|
+
protected readonly selectionClasses: _angular_core.Signal<string>;
|
|
85
|
+
protected readonly sliderHandleClasses: _angular_core.Signal<string>;
|
|
86
|
+
protected readonly sliderTrackSize: _angular_core.Signal<string | null>;
|
|
87
|
+
protected readonly tickClasses: _angular_core.Signal<string>;
|
|
88
|
+
protected readonly tickLabelClasses: _angular_core.Signal<string>;
|
|
89
|
+
protected readonly tickLabelListClasses: _angular_core.Signal<string>;
|
|
90
|
+
protected readonly tickListClasses: _angular_core.Signal<string>;
|
|
91
|
+
protected readonly tickStyleArgs: _angular_core.Signal<TickStyleArgs>;
|
|
92
|
+
protected readonly tickValueTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
93
|
+
protected readonly ticks: _angular_core.Signal<SliderTick[]>;
|
|
94
|
+
protected readonly trackBackgroundStyle: _angular_core.Signal<Partial<CSSStyleDeclaration>>;
|
|
95
|
+
protected readonly trackClasses: _angular_core.Signal<string>;
|
|
96
|
+
/**
|
|
97
|
+
* @description Human-readable override for the `aria-valuenow` announcement. Pass a function that receives the current value and returns the string to announce.
|
|
98
|
+
* @default null
|
|
99
|
+
*/
|
|
100
|
+
readonly ariaValueText: _angular_core.InputSignal<((value: number) => string) | null>;
|
|
101
|
+
/**
|
|
102
|
+
* @description Renders the component with reduced visual emphasis and removes pointer interaction.
|
|
103
|
+
* @default false
|
|
104
|
+
*/
|
|
105
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* @description Additional CSS classes to apply to the slider handle.
|
|
108
|
+
* @default []
|
|
109
|
+
*/
|
|
110
|
+
readonly handleClasses: _angular_core.InputSignal<string | string[]>;
|
|
111
|
+
/**
|
|
112
|
+
* @description Additional inline styles to apply to the slider handle.
|
|
113
|
+
* @default {}
|
|
114
|
+
*/
|
|
115
|
+
readonly handleStyles: _angular_core.InputSignal<Partial<CSSStyleDeclaration>>;
|
|
116
|
+
/**
|
|
117
|
+
* @description Marks the control as invalid for form validation purposes, reflecting `aria-invalid` on the handle element.
|
|
118
|
+
* @default false
|
|
119
|
+
*/
|
|
120
|
+
readonly invalid: _angular_core.InputSignal<boolean>;
|
|
121
|
+
/**
|
|
122
|
+
* @description Position of the label relative to the component.
|
|
123
|
+
* @default "after"
|
|
124
|
+
*/
|
|
125
|
+
readonly labelPosition: _angular_core.InputSignal<SliderLabelPosition>;
|
|
126
|
+
/**
|
|
127
|
+
* @description Controls which tick labels are shown — only every n<sup>th</sup> label is rendered.
|
|
128
|
+
* @default 1
|
|
129
|
+
*/
|
|
130
|
+
readonly labelStep: _angular_core.InputSignal<number>;
|
|
131
|
+
/**
|
|
132
|
+
* @description Controls which ticks render at large size — only every n<sup>th</sup> tick is enlarged. Pass `null` to disable large ticks.
|
|
133
|
+
* @default null
|
|
134
|
+
*/
|
|
135
|
+
readonly largeTickStep: _angular_core.InputSignal<number | null>;
|
|
136
|
+
/**
|
|
137
|
+
* @description Upper bound of the value range. Must be greater than `minValue`.
|
|
138
|
+
* @default 10
|
|
139
|
+
*/
|
|
140
|
+
readonly maxValue: _angular_core.InputSignal<number>;
|
|
141
|
+
/**
|
|
142
|
+
* @description Lower bound of the value range.
|
|
143
|
+
* @default 0
|
|
144
|
+
*/
|
|
145
|
+
readonly minValue: _angular_core.InputSignal<number>;
|
|
146
|
+
/**
|
|
147
|
+
* @description Layout orientation of the component.
|
|
148
|
+
* @default "horizontal"
|
|
149
|
+
*/
|
|
150
|
+
readonly orientation: _angular_core.InputSignal<Orientation>;
|
|
151
|
+
/**
|
|
152
|
+
* @description Border-radius preset applied to the slider handle.
|
|
153
|
+
* @default "full"
|
|
154
|
+
*/
|
|
155
|
+
readonly rounded: _angular_core.InputSignal<"full" | "large" | "medium" | "none" | "small" | null | undefined>;
|
|
156
|
+
/**
|
|
157
|
+
* @description Background color of the filled selection area between the minimum and the current value. Accepts a CSS color string or a `CSSStyleDeclaration` partial.
|
|
158
|
+
* @default null
|
|
159
|
+
*/
|
|
160
|
+
readonly selectionBackground: _angular_core.InputSignal<string | Partial<CSSStyleDeclaration> | null>;
|
|
161
|
+
/**
|
|
162
|
+
* @description Multiplier applied to the step when the user holds Shift while pressing an arrow key.
|
|
163
|
+
* @default 10
|
|
164
|
+
*/
|
|
165
|
+
readonly shiftMultiplier: _angular_core.InputSignal<number>;
|
|
166
|
+
/**
|
|
167
|
+
* @description Displays value labels alongside tick marks. Only takes effect when `showTicks` is `true`.
|
|
168
|
+
* @default false
|
|
169
|
+
*/
|
|
170
|
+
readonly showLabels: _angular_core.InputSignal<boolean>;
|
|
171
|
+
/**
|
|
172
|
+
* @description Displays tick marks at each step position along the track.
|
|
173
|
+
* @default false
|
|
174
|
+
*/
|
|
175
|
+
readonly showTicks: _angular_core.InputSignal<boolean>;
|
|
176
|
+
/**
|
|
177
|
+
* @description Controls how many ticks are visible — only every n<sup>th</sup> tick is rendered.
|
|
178
|
+
* @default 1
|
|
179
|
+
*/
|
|
180
|
+
readonly smallTickStep: _angular_core.InputSignalWithTransform<number, number>;
|
|
181
|
+
/**
|
|
182
|
+
* @description Increment applied when the value changes via keyboard navigation.
|
|
183
|
+
* @default 1
|
|
184
|
+
*/
|
|
185
|
+
readonly step: _angular_core.InputSignalWithTransform<number, number>;
|
|
186
|
+
/**
|
|
187
|
+
* @description Emitted when the slider loses focus or its value changes via keyboard navigation.
|
|
188
|
+
*/
|
|
189
|
+
readonly touch: _angular_core.OutputEmitterRef<void>;
|
|
190
|
+
/**
|
|
191
|
+
* @description Background color of the unfilled track portion. Accepts a CSS color string or a `CSSStyleDeclaration` partial.
|
|
192
|
+
* @default null
|
|
193
|
+
*/
|
|
194
|
+
readonly trackBackground: _angular_core.InputSignal<string | Partial<CSSStyleDeclaration> | null>;
|
|
195
|
+
/**
|
|
196
|
+
* @description Width (vertical orientation) or height (horizontal orientation) of the track. Accepts a pixel number or any CSS length string.
|
|
197
|
+
* @default undefined
|
|
198
|
+
*/
|
|
199
|
+
readonly trackSize: _angular_core.InputSignal<string | number | undefined>;
|
|
200
|
+
constructor();
|
|
201
|
+
protected calculateNewValue(currentValue: number, event: KeyboardEvent): number;
|
|
202
|
+
protected clampValue(value: number): number;
|
|
203
|
+
protected findClosestTickElement(event: PointerEvent): HTMLSpanElement;
|
|
204
|
+
protected getValueFromPointerEvent(event: PointerEvent): number;
|
|
205
|
+
protected getValueFromPosition(position: number): number;
|
|
206
|
+
protected isNavigationKey(event: KeyboardEvent): boolean;
|
|
207
|
+
protected positionFromValue(value: number): number;
|
|
208
|
+
protected snapValue(value: number): number;
|
|
209
|
+
protected abstract setSubscriptions(): void;
|
|
210
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SliderBaseComponent, never>;
|
|
211
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SliderBaseComponent, never, never, { "ariaValueText": { "alias": "ariaValueText"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "handleClasses": { "alias": "handleClasses"; "required": false; "isSignal": true; }; "handleStyles": { "alias": "handleStyles"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "labelStep": { "alias": "labelStep"; "required": false; "isSignal": true; }; "largeTickStep": { "alias": "largeTickStep"; "required": false; "isSignal": true; }; "maxValue": { "alias": "maxValue"; "required": false; "isSignal": true; }; "minValue": { "alias": "minValue"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "selectionBackground": { "alias": "selectionBackground"; "required": false; "isSignal": true; }; "shiftMultiplier": { "alias": "shiftMultiplier"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "showTicks": { "alias": "showTicks"; "required": false; "isSignal": true; }; "smallTickStep": { "alias": "smallTickStep"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "trackBackground": { "alias": "trackBackground"; "required": false; "isSignal": true; }; "trackSize": { "alias": "trackSize"; "required": false; "isSignal": true; }; }, { "touch": "touch"; }, ["handleTemplate", "tickValueTemplate"], never, true, never>;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
declare class SliderComponent extends SliderBaseComponent implements FormValueControl<number> {
|
|
215
|
+
protected readonly handleFocused: _angular_core.WritableSignal<boolean>;
|
|
216
|
+
protected readonly handlePosition: Signal<number>;
|
|
217
|
+
protected readonly handleStyle: Signal<Partial<CSSStyleDeclaration>>;
|
|
218
|
+
protected readonly normalizedValue: Signal<number>;
|
|
219
|
+
protected readonly selectionLeft: Signal<number>;
|
|
220
|
+
protected readonly selectionRight: Signal<number>;
|
|
221
|
+
protected readonly sliderHandle: Signal<ElementRef<HTMLDivElement>>;
|
|
222
|
+
/**
|
|
223
|
+
* @description Accessible name for the host element. Describe what the component represents.
|
|
224
|
+
* When empty, assistive technology announces the role without a label.
|
|
225
|
+
* @default "Slider value"
|
|
226
|
+
*/
|
|
227
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
228
|
+
/**
|
|
229
|
+
* @description ID of an external element that provides the accessible name for the host element.
|
|
230
|
+
* @default null
|
|
231
|
+
*/
|
|
232
|
+
readonly ariaLabelledBy: _angular_core.InputSignal<string | null>;
|
|
233
|
+
/**
|
|
234
|
+
* @description Current value. Values outside `[minValue, maxValue]` are clamped before rendering.
|
|
235
|
+
* @default 0
|
|
236
|
+
*/
|
|
237
|
+
readonly value: _angular_core.ModelSignal<number>;
|
|
238
|
+
focus(options?: FocusOptions): void;
|
|
239
|
+
protected handleHandleMove(event: PointerEvent): void;
|
|
240
|
+
protected setSubscriptions(): void;
|
|
241
|
+
private setClickSubscription;
|
|
242
|
+
private setFocusSubscription;
|
|
243
|
+
private setKeydownSubscription;
|
|
244
|
+
private setPointerMoveSubscription;
|
|
245
|
+
private updateValue;
|
|
246
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SliderComponent, never>;
|
|
247
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SliderComponent, "mona-slider", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
declare class RangeSliderComponent extends SliderBaseComponent implements FormValueControl<[number, number]> {
|
|
251
|
+
protected readonly handlePositions: Signal<[number, number]>;
|
|
252
|
+
protected readonly handlesOverlap: Signal<boolean>;
|
|
253
|
+
protected readonly normalizedValue: Signal<[number, number]>;
|
|
254
|
+
protected readonly primaryHandleFocused: _angular_core.WritableSignal<boolean>;
|
|
255
|
+
protected readonly primaryHandlePosition: Signal<number>;
|
|
256
|
+
protected readonly primaryHandleStyle: Signal<Partial<CSSStyleDeclaration>>;
|
|
257
|
+
protected readonly secondaryHandleFocused: _angular_core.WritableSignal<boolean>;
|
|
258
|
+
protected readonly secondaryHandleOnTop: _angular_core.WritableSignal<boolean>;
|
|
259
|
+
protected readonly secondaryHandlePosition: Signal<number>;
|
|
260
|
+
protected readonly secondaryHandleStyle: Signal<Partial<CSSStyleDeclaration>>;
|
|
261
|
+
protected readonly secondarySliderHandle: Signal<ElementRef<HTMLDivElement>>;
|
|
262
|
+
protected readonly selectionLeft: Signal<number>;
|
|
263
|
+
protected readonly selectionRight: Signal<number>;
|
|
264
|
+
protected readonly sliderHandle: Signal<ElementRef<HTMLDivElement>>;
|
|
265
|
+
/**
|
|
266
|
+
* @description Accessible name for the upper-value (secondary) handle.
|
|
267
|
+
* @default "Maximum value"
|
|
268
|
+
*/
|
|
269
|
+
readonly ariaLabelEnd: _angular_core.InputSignal<string | null>;
|
|
270
|
+
/**
|
|
271
|
+
* @description Accessible name for the lower-value (primary) handle.
|
|
272
|
+
* @default "Minimum value"
|
|
273
|
+
*/
|
|
274
|
+
readonly ariaLabelStart: _angular_core.InputSignal<string | null>;
|
|
275
|
+
/**
|
|
276
|
+
* @description Selected range as `[minimum, maximum]`.
|
|
277
|
+
* Values outside `[minValue, maxValue]` are clamped; the tuple is always sorted, so index 0 ≤ index 1.
|
|
278
|
+
* @default [0, 10]
|
|
279
|
+
*/
|
|
280
|
+
readonly value: _angular_core.ModelSignal<[number, number]>;
|
|
281
|
+
focus(options?: FocusOptions): void;
|
|
282
|
+
protected handleHandleMove(event: PointerEvent, isSecondary?: boolean): void;
|
|
283
|
+
protected setSubscriptions(): void;
|
|
284
|
+
private getClosestHandle;
|
|
285
|
+
private setClickSubscription;
|
|
286
|
+
private setFocusSubscription;
|
|
287
|
+
private setKeydownSubscription;
|
|
288
|
+
private setPointerMoveSubscription;
|
|
289
|
+
private updateRangedValue;
|
|
290
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RangeSliderComponent, never>;
|
|
291
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RangeSliderComponent, "mona-range-slider", never, { "ariaLabelEnd": { "alias": "aria-label-end"; "required": false; "isSignal": true; }; "ariaLabelStart": { "alias": "aria-label-start"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
declare class SliderHandleTemplateDirective {
|
|
295
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SliderHandleTemplateDirective, never>;
|
|
296
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SliderHandleTemplateDirective, "ng-template[monaSliderHandleTemplate]", never, {}, {}, never, never, true, never>;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
declare class SliderTickValueTemplateDirective {
|
|
300
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SliderTickValueTemplateDirective, never>;
|
|
301
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SliderTickValueTemplateDirective, "ng-template[monaSliderTickValueTemplate]", never, {}, {}, never, never, true, never>;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export { RangeSliderComponent, SliderComponent, SliderHandleTemplateDirective, SliderTickValueTemplateDirective };
|
|
305
|
+
export type { SliderVariantProps };
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import * as _nanahoshi_mona_ui_popup_menu from '@nanahoshi/mona-ui/popup-menu';
|
|
2
|
+
import { PopupMenuComponent, PopupMenuItemClickEvent, PopupMenuCheckboxItemComponent, PopupMenuOrigin, PopupMenuGroupComponent, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent, PopupMenuGroupTemplateDirective, PopupMenuTemplateOrigin, PopupMenuIconTemplateDirective, PopupMenuShortcutTemplateDirective, PopupMenuTextTemplateDirective } from '@nanahoshi/mona-ui/popup-menu';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { ElementRef, TemplateRef } from '@angular/core';
|
|
5
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
+
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
7
|
+
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
8
|
+
import { VariantProps } from 'class-variance-authority';
|
|
9
|
+
|
|
10
|
+
declare const splitButtonThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
11
|
+
look?: "default" | "error" | "ghost" | "info" | "outline" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
12
|
+
rounded?: "full" | "large" | "medium" | "none" | "small" | null | undefined;
|
|
13
|
+
size?: "large" | "medium" | "small" | null | undefined;
|
|
14
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
|
+
type SplitButtonVariantProps = VariantProps<ReturnType<typeof splitButtonThemeVariants>>;
|
|
16
|
+
type SplitButtonVariantInputs = VariantInputs<SplitButtonVariantProps>;
|
|
17
|
+
|
|
18
|
+
declare class SplitButtonComponent implements SplitButtonVariantInputs {
|
|
19
|
+
#private;
|
|
20
|
+
private readonly menuItemComponents;
|
|
21
|
+
protected readonly menuButtonRef: i0.Signal<ElementRef<HTMLButtonElement> | undefined>;
|
|
22
|
+
protected readonly popupMenuRef: i0.Signal<PopupMenuComponent | undefined>;
|
|
23
|
+
protected readonly classes: i0.Signal<string>;
|
|
24
|
+
protected readonly groupTemplate: i0.Signal<TemplateRef<any> | undefined>;
|
|
25
|
+
protected readonly iconTemplate: i0.Signal<TemplateRef<any> | undefined>;
|
|
26
|
+
protected readonly mainButtonTextTemplate: i0.Signal<TemplateRef<any> | undefined>;
|
|
27
|
+
protected readonly menuButtonTemplate: i0.Signal<TemplateRef<any> | undefined>;
|
|
28
|
+
protected readonly menuId: string;
|
|
29
|
+
protected readonly menuItems: i0.Signal<_nanahoshi_mona_ui_popup_menu.PopupMenuItem[]>;
|
|
30
|
+
protected readonly menuOpen: i0.WritableSignal<boolean>;
|
|
31
|
+
protected readonly popupMenuRounded: i0.Signal<"large" | "medium" | "none" | "small" | null | undefined>;
|
|
32
|
+
protected readonly shortcutTemplate: i0.Signal<TemplateRef<any> | undefined>;
|
|
33
|
+
protected readonly splitButtonAriaLabel: i0.Signal<string>;
|
|
34
|
+
protected readonly textTemplate: i0.Signal<TemplateRef<any> | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* @description Accessible name for the main action button.
|
|
37
|
+
* Falls back to `"{text} splitbutton"` when empty.
|
|
38
|
+
* @default ""
|
|
39
|
+
*/
|
|
40
|
+
readonly ariaLabel: i0.InputSignal<string>;
|
|
41
|
+
/**
|
|
42
|
+
* @description ID of an external element that provides the accessible name for the main action button.
|
|
43
|
+
* Takes precedence over `ariaLabel` when both are set.
|
|
44
|
+
* @default ""
|
|
45
|
+
*/
|
|
46
|
+
readonly ariaLabelledby: i0.InputSignal<string>;
|
|
47
|
+
/**
|
|
48
|
+
* @description Emitted when the main action button is clicked.
|
|
49
|
+
*/
|
|
50
|
+
readonly buttonClick: i0.OutputEmitterRef<MouseEvent>;
|
|
51
|
+
/**
|
|
52
|
+
* @description Renders the component with reduced visual emphasis
|
|
53
|
+
* and removes pointer interaction from both the main button and the menu toggle button.
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
56
|
+
readonly disabled: i0.InputSignal<boolean>;
|
|
57
|
+
/**
|
|
58
|
+
* @description Visual style preset applied to the button.
|
|
59
|
+
* @default "default"
|
|
60
|
+
*/
|
|
61
|
+
readonly look: i0.InputSignal<"default" | "error" | "ghost" | "info" | "outline" | "primary" | "secondary" | "success" | "warning" | null | undefined>;
|
|
62
|
+
/**
|
|
63
|
+
* @description Accessible name for the menu toggle button.
|
|
64
|
+
* Override to provide a localized label for non-English applications.
|
|
65
|
+
* @default "Show menu options"
|
|
66
|
+
*/
|
|
67
|
+
readonly menuButtonAriaLabel: i0.InputSignal<string>;
|
|
68
|
+
/**
|
|
69
|
+
* @description Emitted when a menu item in the popup is clicked.
|
|
70
|
+
*/
|
|
71
|
+
readonly menuItemClick: i0.OutputEmitterRef<PopupMenuItemClickEvent>;
|
|
72
|
+
/**
|
|
73
|
+
* @description Minimum width of the popup menu in pixels.
|
|
74
|
+
* A value of `0` means no minimum width is applied.
|
|
75
|
+
* @default 0
|
|
76
|
+
*/
|
|
77
|
+
readonly popupWidth: i0.InputSignal<number>;
|
|
78
|
+
/**
|
|
79
|
+
* @description Border-radius preset applied to the button.
|
|
80
|
+
* @default "medium"
|
|
81
|
+
*/
|
|
82
|
+
readonly rounded: i0.InputSignal<"full" | "large" | "medium" | "none" | "small" | null | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* @description Size preset controlling the button's dimensions.
|
|
85
|
+
* @default "medium"
|
|
86
|
+
*/
|
|
87
|
+
readonly size: i0.InputSignal<"large" | "medium" | "small" | null | undefined>;
|
|
88
|
+
/**
|
|
89
|
+
* @description Primary text content displayed in the main action button.
|
|
90
|
+
* Ignored when a `monaSplitButtonTextTemplate` is provided.
|
|
91
|
+
* @default ""
|
|
92
|
+
*/
|
|
93
|
+
readonly text: i0.InputSignal<string>;
|
|
94
|
+
/**
|
|
95
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
96
|
+
* @default ""
|
|
97
|
+
*/
|
|
98
|
+
readonly userClass: i0.InputSignal<string>;
|
|
99
|
+
constructor();
|
|
100
|
+
protected onMenuClose(): void;
|
|
101
|
+
protected onMenuItemClick(event: PopupMenuItemClickEvent): void;
|
|
102
|
+
protected onMenuOpen(): void;
|
|
103
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitButtonComponent, never>;
|
|
104
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SplitButtonComponent, "mona-split-button", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "menuButtonAriaLabel": { "alias": "menuButtonAriaLabel"; "required": false; "isSignal": true; }; "popupWidth": { "alias": "popupWidth"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "buttonClick": "buttonClick"; "menuItemClick": "menuItemClick"; }, ["menuItemComponents", "groupTemplate", "iconTemplate", "mainButtonTextTemplate", "menuButtonTemplate", "shortcutTemplate", "textTemplate"], never, true, never>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare class SplitButtonCheckboxItemComponent extends PopupMenuCheckboxItemComponent {
|
|
108
|
+
readonly origin = PopupMenuOrigin.SplitButton;
|
|
109
|
+
constructor();
|
|
110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitButtonCheckboxItemComponent, never>;
|
|
111
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SplitButtonCheckboxItemComponent, "mona-split-button-checkbox-item", never, {}, {}, never, never, true, never>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare class SplitButtonGroupComponent extends PopupMenuGroupComponent {
|
|
115
|
+
readonly origin = PopupMenuOrigin.SplitButton;
|
|
116
|
+
constructor();
|
|
117
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitButtonGroupComponent, never>;
|
|
118
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SplitButtonGroupComponent, "mona-split-button-group", never, {}, {}, never, never, true, never>;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
declare class SplitButtonItemComponent extends PopupMenuItemComponent {
|
|
122
|
+
readonly origin = PopupMenuOrigin.SplitButton;
|
|
123
|
+
constructor();
|
|
124
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitButtonItemComponent, never>;
|
|
125
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SplitButtonItemComponent, "mona-split-button-item", never, {}, {}, never, never, true, never>;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
declare class SplitButtonRadioGroupComponent extends PopupMenuRadioGroupComponent {
|
|
129
|
+
readonly origin = PopupMenuOrigin.SplitButton;
|
|
130
|
+
constructor();
|
|
131
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitButtonRadioGroupComponent, never>;
|
|
132
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SplitButtonRadioGroupComponent, "mona-split-button-radio-group", never, {}, {}, never, never, true, never>;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
declare class SplitButtonRadioItemComponent extends PopupMenuRadioItemComponent {
|
|
136
|
+
readonly origin = PopupMenuOrigin.SplitButton;
|
|
137
|
+
constructor();
|
|
138
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitButtonRadioItemComponent, never>;
|
|
139
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SplitButtonRadioItemComponent, "mona-split-button-radio-item", never, {}, {}, never, never, true, never>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
declare class SplitButtonSeparatorComponent extends PopupMenuSeparatorComponent {
|
|
143
|
+
readonly origin = PopupMenuOrigin.SplitButton;
|
|
144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitButtonSeparatorComponent, never>;
|
|
145
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SplitButtonSeparatorComponent, "mona-split-button-separator", never, {}, {}, never, never, true, never>;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
declare class SplitButtonMenuButtonTemplateDirective {
|
|
149
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitButtonMenuButtonTemplateDirective, never>;
|
|
150
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SplitButtonMenuButtonTemplateDirective, "ng-template[monaSplitButtonMenuButtonTemplate]", never, {}, {}, never, never, true, never>;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
declare class SplitButtonMenuGroupTemplateDirective extends PopupMenuGroupTemplateDirective {
|
|
154
|
+
readonly origin = PopupMenuTemplateOrigin.SplitButton;
|
|
155
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitButtonMenuGroupTemplateDirective, never>;
|
|
156
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SplitButtonMenuGroupTemplateDirective, "ng-template[monaSplitButtonMenuGroupTemplate]", never, {}, {}, never, never, true, never>;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
declare class SplitButtonMenuItemIconTemplateDirective extends PopupMenuIconTemplateDirective {
|
|
160
|
+
readonly origin = PopupMenuTemplateOrigin.SplitButton;
|
|
161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitButtonMenuItemIconTemplateDirective, never>;
|
|
162
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SplitButtonMenuItemIconTemplateDirective, "ng-template[monaSplitButtonMenuItemIconTemplate]", never, {}, {}, never, never, true, never>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
declare class SplitButtonMenuItemShortcutTemplateDirective extends PopupMenuShortcutTemplateDirective {
|
|
166
|
+
readonly origin = PopupMenuTemplateOrigin.SplitButton;
|
|
167
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitButtonMenuItemShortcutTemplateDirective, never>;
|
|
168
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SplitButtonMenuItemShortcutTemplateDirective, "ng-template[monaSplitButtonMenuItemShortcutTemplate]", never, {}, {}, never, never, true, never>;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
declare class SplitButtonMenuItemTextTemplateDirective extends PopupMenuTextTemplateDirective {
|
|
172
|
+
readonly origin = PopupMenuTemplateOrigin.SplitButton;
|
|
173
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitButtonMenuItemTextTemplateDirective, never>;
|
|
174
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SplitButtonMenuItemTextTemplateDirective, "ng-template[monaSplitButtonMenuItemTextTemplate]", never, {}, {}, never, never, true, never>;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
declare class SplitButtonTextTemplateDirective {
|
|
178
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitButtonTextTemplateDirective, never>;
|
|
179
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SplitButtonTextTemplateDirective, "ng-template[monaSplitButtonTextTemplate]", never, {}, {}, never, never, true, never>;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export { SplitButtonCheckboxItemComponent, SplitButtonComponent, SplitButtonGroupComponent, SplitButtonItemComponent, SplitButtonMenuButtonTemplateDirective, SplitButtonMenuGroupTemplateDirective, SplitButtonMenuItemIconTemplateDirective, SplitButtonMenuItemShortcutTemplateDirective, SplitButtonMenuItemTextTemplateDirective, SplitButtonRadioGroupComponent, SplitButtonRadioItemComponent, SplitButtonSeparatorComponent, SplitButtonTextTemplateDirective };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
6
|
+
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
7
|
+
|
|
8
|
+
declare const splitterBaseThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
9
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
+
declare const splitterResizerThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
12
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
13
|
+
resizing?: boolean | null | undefined;
|
|
14
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
|
+
declare const splitterResizerHandleThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
16
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
17
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
18
|
+
type SplitterBaseVariantProps = VariantProps<ReturnType<typeof splitterBaseThemeVariants>>;
|
|
19
|
+
type SplitterBaseVariantInput = VariantInputs<SplitterBaseVariantProps>;
|
|
20
|
+
type SplitterResizerVariantProps = VariantProps<ReturnType<typeof splitterResizerThemeVariants>>;
|
|
21
|
+
type SplitterResizerVariantInput = VariantInputs<SplitterResizerVariantProps>;
|
|
22
|
+
type SplitterResizerHandleVariantProps = VariantProps<ReturnType<typeof splitterResizerHandleThemeVariants>>;
|
|
23
|
+
type SplitterResizerHandleVariantInput = VariantInputs<SplitterResizerHandleVariantProps>;
|
|
24
|
+
type SplitterVariantInput = SplitterBaseVariantInput & Omit<SplitterResizerVariantInput, "resizing"> & SplitterResizerHandleVariantInput;
|
|
25
|
+
|
|
26
|
+
declare class SplitterPaneComponent {
|
|
27
|
+
/**
|
|
28
|
+
* @description Whether the pane is collapsible.
|
|
29
|
+
*/
|
|
30
|
+
readonly collapsible: _angular_core.InputSignal<boolean>;
|
|
31
|
+
/**
|
|
32
|
+
* @description Whether the pane is collapsed.
|
|
33
|
+
*/
|
|
34
|
+
readonly collapsed: _angular_core.ModelSignal<boolean>;
|
|
35
|
+
/**
|
|
36
|
+
* @description The maximum size of the pane.
|
|
37
|
+
*/
|
|
38
|
+
readonly max: _angular_core.InputSignal<string | number | null>;
|
|
39
|
+
/**
|
|
40
|
+
* @description The minimum size of the pane.
|
|
41
|
+
*/
|
|
42
|
+
readonly min: _angular_core.InputSignal<string | number | null>;
|
|
43
|
+
/**
|
|
44
|
+
* @description Whether the pane is resizable.
|
|
45
|
+
*/
|
|
46
|
+
readonly resizable: _angular_core.InputSignal<boolean>;
|
|
47
|
+
/**
|
|
48
|
+
* @description The size of the pane.
|
|
49
|
+
*/
|
|
50
|
+
readonly size: _angular_core.ModelSignal<string | number>;
|
|
51
|
+
readonly template: _angular_core.Signal<TemplateRef<any>>;
|
|
52
|
+
readonly uid: string;
|
|
53
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitterPaneComponent, never>;
|
|
54
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitterPaneComponent, "mona-splitter-pane", never, { "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; "size": "sizeChange"; }, never, ["*"], true, never>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare class SplitterComponent implements SplitterVariantInput {
|
|
58
|
+
#private;
|
|
59
|
+
protected readonly baseClass: _angular_core.Signal<string>;
|
|
60
|
+
protected readonly paneList: _angular_core.Signal<readonly SplitterPaneComponent[]>;
|
|
61
|
+
/**
|
|
62
|
+
* @description The layout direction of the splitter panes.
|
|
63
|
+
* @default "horizontal"
|
|
64
|
+
*/
|
|
65
|
+
readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical" | null | undefined>;
|
|
66
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitterComponent, never>;
|
|
67
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitterComponent, "mona-splitter", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, ["paneList"], never, true, never>;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export { SplitterComponent, SplitterPaneComponent };
|