@wirekyt/angular 0.0.9 → 0.0.11

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.
@@ -0,0 +1,313 @@
1
+ import * as _wirekyt_dom_anatomy from '@wirekyt/dom/anatomy';
2
+ import * as colorPicker from '@wirekyt/dom/machines/color-picker';
3
+ export { parse as parseColor } from '@wirekyt/dom/machines/color-picker';
4
+ import * as i0 from '@angular/core';
5
+ import { InputSignal, Signal, AfterContentInit, ModelSignal, InputSignalWithTransform, OutputEmitterRef, InjectionToken } from '@angular/core';
6
+ import { UseMachineReturn, ContextCarrier } from '@wirekyt/angular';
7
+ import { ControlValueAccessor } from '@angular/forms';
8
+ import { ColorStringFormat } from '@wirekyt/dom/color-utils';
9
+
10
+ declare const colorPickerAnatomy: _wirekyt_dom_anatomy.Anatomy<"root" | "label" | "control" | "valueText" | "trigger" | "content" | "area" | "positioner" | "areaThumb" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderTrack" | "channelSliderThumb" | "channelSliderValueText" | "channelInput" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger" | "formatSelect">;
11
+
12
+ declare class ColorPickerArea {
13
+ readonly xChannel: InputSignal<colorPicker.ColorChannel | undefined>;
14
+ readonly yChannel: InputSignal<colorPicker.ColorChannel | undefined>;
15
+ readonly areaProps: Signal<colorPicker.AreaProps>;
16
+ constructor();
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerArea, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerArea, "[colorPickerArea]", ["colorPickerArea"], { "xChannel": { "alias": "xChannel"; "required": false; "isSignal": true; }; "yChannel": { "alias": "yChannel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
19
+ }
20
+
21
+ declare class ColorPickerAreaBackground {
22
+ constructor();
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerAreaBackground, never>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerAreaBackground, "[colorPickerAreaBackground]", ["colorPickerAreaBackground"], {}, {}, never, never, true, never>;
25
+ }
26
+
27
+ declare class ColorPickerAreaThumb {
28
+ constructor();
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerAreaThumb, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerAreaThumb, "[colorPickerAreaThumb]", ["colorPickerAreaThumb"], {}, {}, never, never, true, never>;
31
+ }
32
+
33
+ declare class ColorPickerChannelInput {
34
+ readonly channel: InputSignal<colorPicker.ExtendedColorChannel>;
35
+ readonly orientation: InputSignal<colorPicker.ChannelInputProps["orientation"]>;
36
+ constructor();
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerChannelInput, never>;
38
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerChannelInput, "input[colorPickerChannelInput]", ["colorPickerChannelInput"], { "channel": { "alias": "channel"; "required": true; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
39
+ }
40
+
41
+ declare class ColorPickerChannelSlider {
42
+ readonly channel: InputSignal<colorPicker.ColorChannel>;
43
+ readonly orientation: InputSignal<colorPicker.ChannelProps["orientation"]>;
44
+ private readonly formatProps;
45
+ readonly channelProps: Signal<colorPicker.ChannelProps>;
46
+ private readonly sliderProps;
47
+ constructor();
48
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerChannelSlider, never>;
49
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerChannelSlider, "[colorPickerChannelSlider]", ["colorPickerChannelSlider"], { "channel": { "alias": "channel"; "required": true; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
50
+ }
51
+
52
+ declare class ColorPickerChannelSliderLabel implements AfterContentInit {
53
+ private readonly ownsTextContent;
54
+ private readonly elementRef;
55
+ constructor();
56
+ ngAfterContentInit(): void;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerChannelSliderLabel, never>;
58
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerChannelSliderLabel, "[colorPickerChannelSliderLabel]", ["colorPickerChannelSliderLabel"], {}, {}, never, never, true, never>;
59
+ }
60
+
61
+ declare class ColorPickerChannelSliderThumb {
62
+ constructor();
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerChannelSliderThumb, never>;
64
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerChannelSliderThumb, "[colorPickerChannelSliderThumb]", ["colorPickerChannelSliderThumb"], {}, {}, never, never, true, never>;
65
+ }
66
+
67
+ declare class ColorPickerChannelSliderTrack {
68
+ constructor();
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerChannelSliderTrack, never>;
70
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerChannelSliderTrack, "[colorPickerChannelSliderTrack]", ["colorPickerChannelSliderTrack"], {}, {}, never, never, true, never>;
71
+ }
72
+
73
+ declare class ColorPickerChannelSliderValueText implements AfterContentInit {
74
+ private readonly ownsTextContent;
75
+ private readonly elementRef;
76
+ constructor();
77
+ ngAfterContentInit(): void;
78
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerChannelSliderValueText, never>;
79
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerChannelSliderValueText, "[colorPickerChannelSliderValueText]", ["colorPickerChannelSliderValueText"], {}, {}, never, never, true, never>;
80
+ }
81
+
82
+ declare class ColorPickerContent {
83
+ constructor();
84
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerContent, never>;
85
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerContent, "[colorPickerContent]", ["colorPickerContent"], {}, {}, never, never, true, never>;
86
+ }
87
+
88
+ type OptionalId<T extends {
89
+ id: string;
90
+ }> = Omit<T, "id"> & {
91
+ id?: string;
92
+ };
93
+ interface UseColorPickerProps extends OptionalId<Omit<colorPicker.Props, "dir" | "getRootNode">> {
94
+ }
95
+ type UseColorPickerReturn = UseMachineReturn<colorPicker.Service["state"], colorPicker.Api, colorPicker.Service>;
96
+ interface UseColorPickerOptions {
97
+ context: () => UseColorPickerProps;
98
+ }
99
+ declare function useColorPicker(options: UseColorPickerOptions): UseColorPickerReturn;
100
+
101
+ interface ColorPickerContextTemplate {
102
+ $implicit: UseColorPickerReturn["api"];
103
+ api: UseColorPickerReturn["api"];
104
+ }
105
+ declare class ColorPickerContext {
106
+ static ngTemplateContextGuard(_directive: ColorPickerContext, context: unknown): context is ColorPickerContextTemplate;
107
+ private readonly colorPicker;
108
+ private readonly templateRef;
109
+ private readonly viewContainer;
110
+ constructor();
111
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerContext, never>;
112
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerContext, "[colorPickerContext]", ["colorPickerContext"], {}, {}, never, never, true, never>;
113
+ }
114
+
115
+ declare class ColorPickerControl {
116
+ constructor();
117
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerControl, never>;
118
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerControl, "[colorPickerControl]", ["colorPickerControl"], {}, {}, never, never, true, never>;
119
+ }
120
+
121
+ declare class ColorPickerEyeDropperTrigger {
122
+ constructor();
123
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerEyeDropperTrigger, never>;
124
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerEyeDropperTrigger, "button[colorPickerEyeDropperTrigger]", ["colorPickerEyeDropperTrigger"], {}, {}, never, never, true, never>;
125
+ }
126
+
127
+ declare class ColorPickerFormatSelect {
128
+ constructor();
129
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerFormatSelect, never>;
130
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerFormatSelect, "select[colorPickerFormatSelect]", ["colorPickerFormatSelect"], {}, {}, never, never, true, never>;
131
+ }
132
+
133
+ declare class ColorPickerFormatTrigger {
134
+ constructor();
135
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerFormatTrigger, never>;
136
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerFormatTrigger, "button[colorPickerFormatTrigger]", ["colorPickerFormatTrigger"], {}, {}, never, never, true, never>;
137
+ }
138
+
139
+ declare class ColorPickerHiddenInput {
140
+ constructor();
141
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerHiddenInput, never>;
142
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerHiddenInput, "input[colorPickerHiddenInput]", ["colorPickerHiddenInput"], {}, {}, never, never, true, never>;
143
+ }
144
+
145
+ declare class ColorPickerLabel {
146
+ constructor();
147
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerLabel, never>;
148
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerLabel, "[colorPickerLabel]", ["colorPickerLabel"], {}, {}, never, never, true, never>;
149
+ }
150
+
151
+ declare class ColorPickerPositioner {
152
+ constructor();
153
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerPositioner, never>;
154
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerPositioner, "[colorPickerPositioner]", ["colorPickerPositioner"], {}, {}, never, never, true, never>;
155
+ }
156
+
157
+ type ColorPickerAreaProps = colorPicker.AreaProps;
158
+ type ColorPickerChannelInputProps = colorPicker.ChannelInputProps;
159
+ type ColorPickerChannelProps = colorPicker.ChannelProps;
160
+ type ColorPickerChannelSliderProps = colorPicker.ChannelSliderProps;
161
+ type ColorPickerElementIds = colorPicker.ElementIds;
162
+ type ColorPickerFocusOutsideEvent = colorPicker.FocusOutsideEvent;
163
+ type ColorPickerFormat = colorPicker.ColorFormat;
164
+ type ColorPickerFormatChangeDetails = colorPicker.FormatChangeDetails;
165
+ type ColorPickerInteractOutsideEvent = colorPicker.InteractOutsideEvent;
166
+ type ColorPickerOpenChangeDetails = colorPicker.OpenChangeDetails;
167
+ type ColorPickerPointerDownOutsideEvent = colorPicker.PointerDownOutsideEvent;
168
+ type ColorPickerPositioningOptions = colorPicker.PositioningOptions;
169
+ type ColorPickerSwatchProps = colorPicker.SwatchProps;
170
+ type ColorPickerSwatchTriggerProps = colorPicker.SwatchTriggerProps;
171
+ type ColorPickerSwatchTriggerState = colorPicker.SwatchTriggerState;
172
+ type ColorPickerTransparencyGridProps = colorPicker.TransparencyGridProps;
173
+ type ColorPickerValue = colorPicker.Color;
174
+ type ColorPickerValueChangeDetails = colorPicker.ValueChangeDetails;
175
+ type ColorPickerValueTextFormat = ColorStringFormat;
176
+
177
+ declare class ColorPickerRoot implements UseColorPickerReturn, ControlValueAccessor {
178
+ readonly id: InputSignal<string | undefined>;
179
+ readonly ids: InputSignal<Partial<ColorPickerElementIds> | undefined>;
180
+ readonly value: ModelSignal<ColorPickerValue | undefined>;
181
+ readonly defaultValue: InputSignal<ColorPickerValue | undefined>;
182
+ readonly format: ModelSignal<ColorPickerFormat | undefined>;
183
+ readonly defaultFormat: InputSignal<ColorPickerFormat | undefined>;
184
+ readonly open: ModelSignal<boolean | undefined>;
185
+ readonly defaultOpen: InputSignalWithTransform<boolean, unknown>;
186
+ readonly disabled: InputSignalWithTransform<boolean, unknown>;
187
+ readonly readOnly: InputSignalWithTransform<boolean, unknown>;
188
+ readonly required: InputSignalWithTransform<boolean, unknown>;
189
+ readonly invalid: InputSignalWithTransform<boolean, unknown>;
190
+ readonly inline: InputSignalWithTransform<boolean, unknown>;
191
+ readonly closeOnSelect: InputSignalWithTransform<boolean, unknown>;
192
+ readonly openAutoFocus: InputSignalWithTransform<boolean, unknown>;
193
+ readonly name: InputSignal<string | undefined>;
194
+ readonly positioning: InputSignal<ColorPickerPositioningOptions | undefined>;
195
+ readonly initialFocusEl: InputSignal<(() => HTMLElement | null) | undefined>;
196
+ readonly valueChangeEnd: OutputEmitterRef<ColorPickerValueChangeDetails>;
197
+ readonly focusOutside: OutputEmitterRef<ColorPickerFocusOutsideEvent>;
198
+ readonly pointerDownOutside: OutputEmitterRef<ColorPickerPointerDownOutsideEvent>;
199
+ readonly interactOutside: OutputEmitterRef<ColorPickerInteractOutsideEvent>;
200
+ private readonly formDisabled;
201
+ private pendingInternalWrites;
202
+ private hasExternalBinding;
203
+ private hasReceivedFormWrite;
204
+ private readonly cva;
205
+ private readonly machine;
206
+ readonly state: Signal<colorPicker.Service["state"]>;
207
+ readonly api: Signal<colorPicker.Api>;
208
+ readonly service: colorPicker.Service;
209
+ readonly send: colorPicker.Service["send"];
210
+ protected readonly contextCarrier: ContextCarrier<ColorPickerRoot>;
211
+ constructor();
212
+ writeValue(value: ColorPickerValue | null): void;
213
+ registerOnChange(fn: (value: ColorPickerValue | undefined) => void): void;
214
+ registerOnTouched(fn: () => void): void;
215
+ setDisabledState(disabled: boolean): void;
216
+ getContextCarrier(): ContextCarrier<ColorPickerRoot>;
217
+ private syncValue;
218
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerRoot, never>;
219
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerRoot, "[colorPickerRoot]", ["colorPickerRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ids": { "alias": "ids"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "defaultFormat": { "alias": "defaultFormat"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "openAutoFocus": { "alias": "openAutoFocus"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "positioning": { "alias": "positioning"; "required": false; "isSignal": true; }; "initialFocusEl": { "alias": "initialFocusEl"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "format": "formatChange"; "open": "openChange"; "valueChangeEnd": "valueChangeEnd"; "focusOutside": "focusOutside"; "pointerDownOutside": "pointerDownOutside"; "interactOutside": "interactOutside"; }, never, never, true, never>;
220
+ }
221
+
222
+ declare class ColorPickerRootProvider implements UseColorPickerReturn {
223
+ readonly value: InputSignal<UseColorPickerReturn>;
224
+ readonly state: Signal<colorPicker.Service["state"]>;
225
+ readonly api: Signal<colorPicker.Api>;
226
+ readonly send: colorPicker.Service["send"];
227
+ get service(): colorPicker.Service;
228
+ protected readonly contextCarrier: ContextCarrier<ColorPickerRootProvider>;
229
+ constructor();
230
+ getContextCarrier(): ContextCarrier<ColorPickerRootProvider>;
231
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerRootProvider, never>;
232
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerRootProvider, "[colorPickerRootProvider]", ["colorPickerRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
233
+ }
234
+
235
+ declare class ColorPickerSwatch {
236
+ readonly value: InputSignal<string | colorPicker.Color>;
237
+ readonly respectAlpha: InputSignalWithTransform<boolean, unknown>;
238
+ readonly swatchProps: Signal<colorPicker.SwatchProps>;
239
+ constructor();
240
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerSwatch, never>;
241
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerSwatch, "[colorPickerSwatch]", ["colorPickerSwatch"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "respectAlpha": { "alias": "respectAlpha"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
242
+ }
243
+
244
+ declare class ColorPickerSwatchGroup {
245
+ constructor();
246
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerSwatchGroup, never>;
247
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerSwatchGroup, "[colorPickerSwatchGroup]", ["colorPickerSwatchGroup"], {}, {}, never, never, true, never>;
248
+ }
249
+
250
+ declare class ColorPickerSwatchIndicator {
251
+ constructor();
252
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerSwatchIndicator, never>;
253
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerSwatchIndicator, "[colorPickerSwatchIndicator]", ["colorPickerSwatchIndicator"], {}, {}, never, never, true, never>;
254
+ }
255
+
256
+ declare class ColorPickerSwatchTrigger {
257
+ readonly value: InputSignal<string | colorPicker.Color>;
258
+ readonly disabled: InputSignalWithTransform<boolean, unknown>;
259
+ constructor();
260
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerSwatchTrigger, never>;
261
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerSwatchTrigger, "button[colorPickerSwatchTrigger]", ["colorPickerSwatchTrigger"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
262
+ }
263
+
264
+ declare class ColorPickerTransparencyGrid {
265
+ readonly size: InputSignal<string | undefined>;
266
+ constructor();
267
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerTransparencyGrid, never>;
268
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerTransparencyGrid, "[colorPickerTransparencyGrid]", ["colorPickerTransparencyGrid"], { "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
269
+ }
270
+
271
+ declare class ColorPickerTrigger {
272
+ constructor();
273
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerTrigger, never>;
274
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerTrigger, "button[colorPickerTrigger]", ["colorPickerTrigger"], {}, {}, never, never, true, never>;
275
+ }
276
+
277
+ declare class ColorPickerValueSwatch {
278
+ readonly respectAlpha: InputSignalWithTransform<boolean, unknown>;
279
+ private readonly context;
280
+ readonly swatchProps: Signal<colorPicker.SwatchProps>;
281
+ constructor();
282
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerValueSwatch, never>;
283
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerValueSwatch, "[colorPickerValueSwatch]", ["colorPickerValueSwatch"], { "respectAlpha": { "alias": "respectAlpha"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
284
+ }
285
+
286
+ declare class ColorPickerValueText implements AfterContentInit {
287
+ readonly format: InputSignal<ColorPickerValueTextFormat | undefined>;
288
+ private readonly ownsTextContent;
289
+ private readonly elementRef;
290
+ constructor();
291
+ ngAfterContentInit(): void;
292
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerValueText, never>;
293
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerValueText, "[colorPickerValueText]", ["colorPickerValueText"], { "format": { "alias": "format"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
294
+ }
295
+
296
+ declare class ColorPickerView {
297
+ readonly format: InputSignal<colorPicker.ColorFormat>;
298
+ readonly formatProps: Signal<{
299
+ format: colorPicker.ColorFormat;
300
+ }>;
301
+ constructor();
302
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerView, never>;
303
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerView, "[colorPickerView]", ["colorPickerView"], { "format": { "alias": "format"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
304
+ }
305
+
306
+ declare const COLOR_PICKER_CONTEXT: InjectionToken<UseColorPickerReturn>;
307
+ declare function injectColorPickerContext(): UseColorPickerReturn;
308
+ declare const COLOR_PICKER_CONTEXT_CARRIER: InjectionToken<ContextCarrier<UseColorPickerReturn>>;
309
+ declare function injectColorPickerContextCarrier(): ContextCarrier<UseColorPickerReturn>;
310
+
311
+ export { COLOR_PICKER_CONTEXT, COLOR_PICKER_CONTEXT_CARRIER, ColorPickerArea, ColorPickerAreaBackground, ColorPickerAreaThumb, ColorPickerChannelInput, ColorPickerChannelSlider, ColorPickerChannelSliderLabel, ColorPickerChannelSliderThumb, ColorPickerChannelSliderTrack, ColorPickerChannelSliderValueText, ColorPickerContent, ColorPickerContext, ColorPickerControl, ColorPickerEyeDropperTrigger, ColorPickerFormatSelect, ColorPickerFormatTrigger, ColorPickerHiddenInput, ColorPickerLabel, ColorPickerPositioner, ColorPickerRoot, ColorPickerRootProvider, ColorPickerSwatch, ColorPickerSwatchGroup, ColorPickerSwatchIndicator, ColorPickerSwatchTrigger, ColorPickerTransparencyGrid, ColorPickerTrigger, ColorPickerValueSwatch, ColorPickerValueText, ColorPickerView, colorPickerAnatomy, injectColorPickerContext, injectColorPickerContextCarrier, useColorPicker };
312
+ export type { ColorPickerAreaProps, ColorPickerChannelInputProps, ColorPickerChannelProps, ColorPickerChannelSliderProps, ColorPickerContextTemplate, ColorPickerElementIds, ColorPickerFocusOutsideEvent, ColorPickerFormat, ColorPickerFormatChangeDetails, ColorPickerInteractOutsideEvent, ColorPickerOpenChangeDetails, ColorPickerPointerDownOutsideEvent, ColorPickerPositioningOptions, ColorPickerSwatchProps, ColorPickerSwatchTriggerProps, ColorPickerSwatchTriggerState, ColorPickerTransparencyGridProps, ColorPickerValue, ColorPickerValueChangeDetails, ColorPickerValueTextFormat, UseColorPickerProps, UseColorPickerReturn };
313
+ //# sourceMappingURL=wirekyt-angular-color-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wirekyt-angular-color-picker.d.ts","sources":["../../src/components/color-picker/anatomy.ts","../../src/components/color-picker/area.ts","../../src/components/color-picker/area-background.ts","../../src/components/color-picker/area-thumb.ts","../../src/components/color-picker/channel-input.ts","../../src/components/color-picker/channel-slider.ts","../../src/components/color-picker/channel-slider-label.ts","../../src/components/color-picker/channel-slider-thumb.ts","../../src/components/color-picker/channel-slider-track.ts","../../src/components/color-picker/channel-slider-value-text.ts","../../src/components/color-picker/content.ts","../../src/components/color-picker/use.ts","../../src/components/color-picker/context.ts","../../src/components/color-picker/control.ts","../../src/components/color-picker/eye-dropper-trigger.ts","../../src/components/color-picker/format-select.ts","../../src/components/color-picker/format-trigger.ts","../../src/components/color-picker/hidden-input.ts","../../src/components/color-picker/label.ts","../../src/components/color-picker/positioner.ts","../../src/components/color-picker/types.ts","../../src/components/color-picker/root.ts","../../src/components/color-picker/root-provider.ts","../../src/components/color-picker/swatch.ts","../../src/components/color-picker/swatch-group.ts","../../src/components/color-picker/swatch-indicator.ts","../../src/components/color-picker/swatch-trigger.ts","../../src/components/color-picker/transparency-grid.ts","../../src/components/color-picker/trigger.ts","../../src/components/color-picker/value-swatch.ts","../../src/components/color-picker/value-text.ts","../../src/components/color-picker/view.ts","../../src/components/color-picker/use-context.ts"],"mappings":";;;;;;;;;AAEA,cAAa,kBAAkB,EAAA,oBAAA,CAAA,OAAA;;ACiB/B,cAYa,eAAe;uBACP,WAAW,CAAC,WAAW,CAAC,YAAY;uBAGpC,WAAW,CAAC,WAAW,CAAC,YAAY;wBAInC,MAAM,CAAC,WAAW,CAAC,SAAS;;yCARrC,eAAe;2CAAf,eAAe;AAsB3B;;AC/CD,cAKa,yBAAyB;;yCAAzB,yBAAyB;2CAAzB,yBAAyB;AAWrC;;AChBD,cAKa,oBAAoB;;yCAApB,oBAAoB;2CAApB,oBAAoB;AAWhC;;ACPD,cAKa,uBAAuB;sBAChB,WAAW,CAAC,WAAW,CAAC,oBAAoB;AAE9D,0BAAsB,WAAW,CAAC,WAAW,CAAC,iBAAiB;;yCAHpD,uBAAuB;2CAAvB,uBAAuB;AAkBnC;;ACnBD,cAYa,wBAAwB;sBACjB,WAAW,CAAC,WAAW,CAAC,YAAY;AAEtD,0BAAsB,WAAW,CAAC,WAAW,CAAC,YAAY;AAG1D;2BACuB,MAAM,CAAC,WAAW,CAAC,YAAY;AAItD;;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wB;oBACnB,WAAW,UAAU,WAAW,CAAC,KAAK;uBAGnC,wBAAwB;;yCAJhC,wBAAwB;2CAAxB,wBAAwB;AAkBpC;;AC3BD,cAKa,2BAA2B;mBACvB,WAAW;;yCADf,2BAA2B;2CAA3B,2BAA2B;AAYvC;;ACzBD,cAKa,kBAAkB;;yCAAlB,kBAAkB;2CAAlB,kBAAkB;AAU9B;;ACAD,cAYa,sBAAsB;2BACV,wBAAwB;AAI/C;0BACsB,MAAM,CAAC,WAAW,CAAC,WAAW;;yCANzC,sBAAsB;2CAAtB,sBAAsB;AAmBlC;;ACjCD,cAKa,oBAAqB,YAAW,gBAAgB;qBAC1C,WAAW,CAAC,0BAA0B;AAIvD;AACA;;AAmBA;yCAzBW,oBAAoB;2CAApB,oBAAoB;AA4BhC;;AChCD,cAYa,eAAe;qBACT,WAAW,CAAC,WAAW,CAAC,WAAW;AAEpD,0BAAsB,MAAM;AAAG,gBAAQ,WAAW,CAAC,WAAW;AAAE;;yCAHrD,eAAe;2CAAf,eAAe;AAqB3B;;AC/CD,cAAa,oBAAoB,EAAA,cAAA,CAAA,oBAAA;AAIjC,iBAAgB,wBAAwB,IAAI,oBAAoB;AAIhE,cAAa,4BAA4B,EAAA,cAAA,CAAA,cAAA,CAAA,oBAAA;AAIzC,iBAAgB,+BAA+B,IAAI,cAAc,CAAC,oBAAoB;;;;","names":[]}
@@ -0,0 +1,289 @@
1
+ import * as _wirekyt_dom_anatomy from '@wirekyt/dom/anatomy';
2
+ import { Machine as Machine$1 } from '@wirekyt/dom';
3
+ import { CollectionItem, ListCollection } from '@wirekyt/dom/collection';
4
+ export { CollectionItem } from '@wirekyt/dom/collection';
5
+ import { Machine, Service, Api, Props, ElementIds, InputValueChangeDetails, PositioningOptions, ScrollToIndexDetails, NavigateDetails, IntlTranslations, ValueChangeDetails, HighlightChangeDetails, OpenChangeDetails, SelectionDetails, FocusOutsideEvent, PointerDownOutsideEvent, InteractOutsideEvent, ItemState } from '@wirekyt/dom/machines/combobox';
6
+ export { Api as ComboboxApi, ElementIds as ComboboxElementIds, FocusOutsideEvent as ComboboxFocusOutsideEvent, HighlightChangeDetails as ComboboxHighlightChangeDetails, InputValueChangeDetails as ComboboxInputValueChangeDetails, InputValueChangeReason as ComboboxInputValueChangeReason, InteractOutsideEvent as ComboboxInteractOutsideEvent, IntlTranslations as ComboboxIntlTranslations, ItemGroupLabelProps as ComboboxItemGroupLabelProps, ItemGroupProps as ComboboxItemGroupProps, ItemProps as ComboboxItemProps, ItemState as ComboboxItemState, Machine as ComboboxMachine, Props as ComboboxMachineProps, NavigateDetails as ComboboxNavigateDetails, OpenChangeDetails as ComboboxOpenChangeDetails, OpenChangeReason as ComboboxOpenChangeReason, PointerDownOutsideEvent as ComboboxPointerDownOutsideEvent, PositioningOptions as ComboboxPositioningOptions, ScrollToIndexDetails as ComboboxScrollToIndexDetails, SelectionDetails as ComboboxSelectionDetails, Service as ComboboxService, TriggerProps as ComboboxTriggerProps, ValueChangeDetails as ComboboxValueChangeDetails } from '@wirekyt/dom/machines/combobox';
7
+ import { UseMachineReturn, ContextCarrier } from '@wirekyt/angular';
8
+ import { PropTypes } from '@wirekyt/dom/types';
9
+ import * as i0 from '@angular/core';
10
+ import { InputSignal, ModelSignal, InputSignalWithTransform, OutputEmitterRef, Signal, InjectionToken } from '@angular/core';
11
+ import * as _wirekyt_dom_machines_presence from '@wirekyt/dom/machines/presence';
12
+ import { ControlValueAccessor } from '@angular/forms';
13
+ import * as _wirekyt_angular_combobox from '@wirekyt/angular/combobox';
14
+
15
+ declare const comboboxAnatomy: _wirekyt_dom_anatomy.AnatomyInstance<"root" | "input" | "label" | "control" | "item" | "list" | "trigger" | "content" | "itemIndicator" | "itemGroup" | "positioner" | "clearTrigger" | "itemText" | "itemGroupLabel" | "empty">;
16
+
17
+ type ComboboxSchema<T extends CollectionItem = CollectionItem> = Machine<T> extends Machine$1<infer S> ? S : never;
18
+
19
+ type OptionalId<T extends {
20
+ id?: string | undefined;
21
+ }> = Omit<T, "id"> & {
22
+ id?: string;
23
+ };
24
+ interface UseComboboxProps<T extends CollectionItem = CollectionItem> extends OptionalId<Omit<Props<T>, "dir" | "getRootNode">> {
25
+ }
26
+ type UseComboboxApi<T extends CollectionItem = CollectionItem> = Api<PropTypes, T>;
27
+ type UseComboboxReturn<T extends CollectionItem = CollectionItem> = UseMachineReturn<Service<T>["state"], UseComboboxApi<T>, Service<T>>;
28
+ interface UseComboboxOptions<T extends CollectionItem = CollectionItem> {
29
+ context: () => UseComboboxProps<T>;
30
+ }
31
+ declare function useCombobox<T extends CollectionItem = CollectionItem>(options: UseComboboxOptions<T>): UseComboboxReturn<T>;
32
+
33
+ declare class ComboboxContent {
34
+ constructor();
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxContent, never>;
36
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxContent, "[comboboxContent]", ["comboboxContent"], {}, {}, never, never, true, never>;
37
+ }
38
+
39
+ declare class ComboboxPresence {
40
+ readonly lazyMount: i0.InputSignalWithTransform<boolean, unknown>;
41
+ readonly unmountOnExit: i0.InputSignalWithTransform<boolean, unknown>;
42
+ readonly skipAnimationOnMount: i0.InputSignalWithTransform<boolean, unknown>;
43
+ readonly immediate: i0.InputSignalWithTransform<boolean, unknown>;
44
+ readonly present: i0.InputSignal<boolean | undefined>;
45
+ readonly exitComplete: i0.OutputEmitterRef<void>;
46
+ createPresence(open: () => boolean): {
47
+ api: i0.Signal<_wirekyt_dom_machines_presence.Api>;
48
+ isUnmounted: i0.Signal<boolean>;
49
+ props: () => {
50
+ hidden: boolean;
51
+ "data-state": string | undefined;
52
+ };
53
+ };
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxPresence, never>;
55
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxPresence, never, never, { "lazyMount": { "alias": "lazyMount"; "required": false; "isSignal": true; }; "unmountOnExit": { "alias": "unmountOnExit"; "required": false; "isSignal": true; }; "skipAnimationOnMount": { "alias": "skipAnimationOnMount"; "required": false; "isSignal": true; }; "immediate": { "alias": "immediate"; "required": false; "isSignal": true; }; "present": { "alias": "present"; "required": false; "isSignal": true; }; }, { "exitComplete": "exitComplete"; }, never, never, true, never>;
56
+ }
57
+
58
+ declare class ComboboxRoot<T extends CollectionItem = CollectionItem> extends ComboboxPresence implements ControlValueAccessor, UseComboboxReturn<T> {
59
+ readonly id: InputSignal<string | undefined>;
60
+ readonly elementIds: InputSignal<ElementIds | undefined>;
61
+ readonly collection: InputSignal<ListCollection<T>>;
62
+ readonly value: ModelSignal<string[] | undefined>;
63
+ readonly defaultValue: InputSignal<string[] | undefined>;
64
+ readonly inputValue: ModelSignal<string | undefined>;
65
+ readonly defaultInputValue: InputSignal<string | undefined>;
66
+ readonly open: ModelSignal<boolean | undefined>;
67
+ readonly defaultOpen: InputSignalWithTransform<boolean, unknown>;
68
+ readonly highlightedValue: ModelSignal<string | null | undefined>;
69
+ readonly defaultHighlightedValue: InputSignal<string | null | undefined>;
70
+ readonly disabled: InputSignalWithTransform<boolean, unknown>;
71
+ readonly invalid: InputSignalWithTransform<boolean, unknown>;
72
+ readonly readOnly: InputSignalWithTransform<boolean, unknown>;
73
+ readonly required: InputSignalWithTransform<boolean, unknown>;
74
+ readonly multiple: InputSignalWithTransform<boolean, unknown>;
75
+ readonly allowCustomValue: InputSignalWithTransform<boolean, unknown>;
76
+ readonly autoFocus: InputSignalWithTransform<boolean, unknown>;
77
+ readonly openOnClick: InputSignalWithTransform<boolean, unknown>;
78
+ readonly openOnKeyPress: InputSignalWithTransform<boolean | undefined, unknown>;
79
+ readonly alwaysSubmitOnEnter: InputSignalWithTransform<boolean, unknown>;
80
+ readonly closeOnSelect: InputSignalWithTransform<boolean | undefined, unknown>;
81
+ readonly loopFocus: InputSignalWithTransform<boolean | undefined, unknown>;
82
+ readonly composite: InputSignalWithTransform<boolean | undefined, unknown>;
83
+ readonly disableLayer: InputSignalWithTransform<boolean | undefined, unknown>;
84
+ readonly inputBehavior: InputSignal<"autohighlight" | "autocomplete" | "none" | undefined>;
85
+ readonly selectionBehavior: InputSignal<"clear" | "replace" | "preserve" | undefined>;
86
+ readonly openOnChange: InputSignal<boolean | ((details: InputValueChangeDetails) => boolean) | undefined>;
87
+ readonly placeholder: InputSignal<string | undefined>;
88
+ readonly name: InputSignal<string | undefined>;
89
+ readonly form: InputSignal<string | undefined>;
90
+ readonly positioning: InputSignal<PositioningOptions | undefined>;
91
+ readonly scrollToIndexFn: InputSignal<((details: ScrollToIndexDetails) => void) | undefined>;
92
+ readonly navigate: InputSignal<((details: NavigateDetails) => void) | null | undefined>;
93
+ readonly translations: InputSignal<IntlTranslations | undefined>;
94
+ readonly valueChangeDetails: OutputEmitterRef<ValueChangeDetails<T>>;
95
+ readonly inputValueChangeDetails: OutputEmitterRef<InputValueChangeDetails>;
96
+ readonly highlightChange: OutputEmitterRef<HighlightChangeDetails<T>>;
97
+ readonly openChangeDetails: OutputEmitterRef<OpenChangeDetails>;
98
+ readonly select: OutputEmitterRef<SelectionDetails>;
99
+ readonly focusOutside: OutputEmitterRef<FocusOutsideEvent>;
100
+ readonly pointerDownOutside: OutputEmitterRef<PointerDownOutsideEvent>;
101
+ readonly interactOutside: OutputEmitterRef<InteractOutsideEvent>;
102
+ private readonly _disabledFromForm;
103
+ private readonly _fallbackCollection;
104
+ private _pendingInternalWrites;
105
+ private _hasExternalBinding;
106
+ private _hasReceivedFormWrite;
107
+ private readCollection;
108
+ private readonly cva;
109
+ private readonly machine;
110
+ readonly state: Signal<Service<T>["state"]>;
111
+ readonly api: Signal<UseComboboxApi<T>>;
112
+ readonly service: Service<T>;
113
+ readonly send: Service<T>["send"];
114
+ protected readonly contextCarrier: ContextCarrier<ComboboxRoot<T>>;
115
+ getContextCarrier(): ContextCarrier<ComboboxRoot<T>>;
116
+ readonly presence: {
117
+ api: Signal<_wirekyt_dom_machines_presence.Api>;
118
+ isUnmounted: Signal<boolean>;
119
+ props: () => {
120
+ hidden: boolean;
121
+ "data-state": string | undefined;
122
+ };
123
+ };
124
+ constructor();
125
+ writeValue(value: string[] | null): void;
126
+ registerOnChange(fn: (value: string[] | undefined) => void): void;
127
+ registerOnTouched(fn: () => void): void;
128
+ setDisabledState(disabled: boolean): void;
129
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxRoot<any>, never>;
130
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxRoot<any>, "[comboboxRoot]", ["comboboxRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "elementIds": { "alias": "ids"; "required": false; "isSignal": true; }; "collection": { "alias": "collection"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "inputValue": { "alias": "inputValue"; "required": false; "isSignal": true; }; "defaultInputValue": { "alias": "defaultInputValue"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "highlightedValue": { "alias": "highlightedValue"; "required": false; "isSignal": true; }; "defaultHighlightedValue": { "alias": "defaultHighlightedValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "allowCustomValue": { "alias": "allowCustomValue"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; "openOnClick": { "alias": "openOnClick"; "required": false; "isSignal": true; }; "openOnKeyPress": { "alias": "openOnKeyPress"; "required": false; "isSignal": true; }; "alwaysSubmitOnEnter": { "alias": "alwaysSubmitOnEnter"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "loopFocus": { "alias": "loopFocus"; "required": false; "isSignal": true; }; "composite": { "alias": "composite"; "required": false; "isSignal": true; }; "disableLayer": { "alias": "disableLayer"; "required": false; "isSignal": true; }; "inputBehavior": { "alias": "inputBehavior"; "required": false; "isSignal": true; }; "selectionBehavior": { "alias": "selectionBehavior"; "required": false; "isSignal": true; }; "openOnChange": { "alias": "openOnChange"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "positioning": { "alias": "positioning"; "required": false; "isSignal": true; }; "scrollToIndexFn": { "alias": "scrollToIndexFn"; "required": false; "isSignal": true; }; "navigate": { "alias": "navigate"; "required": false; "isSignal": true; }; "translations": { "alias": "translations"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "inputValue": "inputValueChange"; "open": "openChange"; "highlightedValue": "highlightedValueChange"; "valueChangeDetails": "valueChangeDetails"; "inputValueChangeDetails": "inputValueChangeDetails"; "highlightChange": "highlightChange"; "openChangeDetails": "openChangeDetails"; "select": "select"; "focusOutside": "focusOutside"; "pointerDownOutside": "pointerDownOutside"; "interactOutside": "interactOutside"; }, never, never, true, never>;
131
+ }
132
+
133
+ declare class ComboboxRootProvider<T extends CollectionItem = CollectionItem> extends ComboboxPresence implements UseComboboxReturn<T> {
134
+ readonly value: InputSignal<UseComboboxReturn<T>>;
135
+ get state(): Signal<Service<T>["state"]>;
136
+ get api(): Signal<UseComboboxApi<T>>;
137
+ get service(): Service<T>;
138
+ get send(): Service<T>["send"];
139
+ resolveValue(): UseComboboxReturn<T>;
140
+ protected readonly contextCarrier: ContextCarrier<ComboboxRootProvider<T>>;
141
+ getContextCarrier(): ContextCarrier<ComboboxRootProvider<T>>;
142
+ readonly presence: {
143
+ api: Signal<_wirekyt_dom_machines_presence.Api>;
144
+ isUnmounted: Signal<boolean>;
145
+ props: () => {
146
+ hidden: boolean;
147
+ "data-state": string | undefined;
148
+ };
149
+ };
150
+ constructor();
151
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxRootProvider<any>, never>;
152
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxRootProvider<any>, "[comboboxRootProvider]", ["comboboxRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
153
+ }
154
+
155
+ declare class ComboboxLabel {
156
+ constructor();
157
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxLabel, never>;
158
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxLabel, "[comboboxLabel]", ["comboboxLabel"], {}, {}, never, never, true, never>;
159
+ }
160
+
161
+ declare class ComboboxControl {
162
+ constructor();
163
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxControl, never>;
164
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxControl, "[comboboxControl]", ["comboboxControl"], {}, {}, never, never, true, never>;
165
+ }
166
+
167
+ declare class ComboboxInput {
168
+ constructor();
169
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxInput, never>;
170
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxInput, "[comboboxInput]", ["comboboxInput"], {}, {}, never, never, true, never>;
171
+ }
172
+
173
+ declare class ComboboxTrigger {
174
+ readonly focusable: InputSignalWithTransform<boolean | undefined, unknown>;
175
+ constructor();
176
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxTrigger, never>;
177
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxTrigger, "[comboboxTrigger]", ["comboboxTrigger"], { "focusable": { "alias": "focusable"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
178
+ }
179
+
180
+ declare class ComboboxClearTrigger {
181
+ constructor();
182
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxClearTrigger, never>;
183
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxClearTrigger, "[comboboxClearTrigger]", ["comboboxClearTrigger"], {}, {}, never, never, true, never>;
184
+ }
185
+
186
+ declare class ComboboxPositioner {
187
+ constructor();
188
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxPositioner, never>;
189
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxPositioner, "[comboboxPositioner]", ["comboboxPositioner"], {}, {}, never, never, true, never>;
190
+ }
191
+
192
+ declare class ComboboxList {
193
+ constructor();
194
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxList, never>;
195
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxList, "[comboboxList]", ["comboboxList"], {}, {}, never, never, true, never>;
196
+ }
197
+
198
+ declare class ComboboxEmpty {
199
+ constructor();
200
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxEmpty, never>;
201
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxEmpty, "[comboboxEmpty]", ["comboboxEmpty"], {}, {}, never, never, true, never>;
202
+ }
203
+
204
+ interface ComboboxItemGroupContext {
205
+ id: Signal<string>;
206
+ }
207
+ declare const COMBOBOX_ITEM_GROUP_CONTEXT: InjectionToken<ComboboxItemGroupContext>;
208
+ declare function injectComboboxItemGroupContext(): ComboboxItemGroupContext;
209
+ declare class ComboboxItemGroup implements ComboboxItemGroupContext {
210
+ readonly groupId: InputSignal<string | undefined>;
211
+ private readonly fallbackId;
212
+ readonly id: Signal<string>;
213
+ constructor();
214
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxItemGroup, never>;
215
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxItemGroup, "[comboboxItemGroup]", ["comboboxItemGroup"], { "groupId": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
216
+ }
217
+
218
+ declare class ComboboxItemGroupLabel {
219
+ constructor();
220
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxItemGroupLabel, never>;
221
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxItemGroupLabel, "[comboboxItemGroupLabel]", ["comboboxItemGroupLabel"], {}, {}, never, never, true, never>;
222
+ }
223
+
224
+ interface ComboboxItemContext<T extends CollectionItem = CollectionItem> {
225
+ state: Signal<ItemState>;
226
+ item: Signal<T>;
227
+ persistFocus: Signal<boolean | undefined>;
228
+ }
229
+ declare const COMBOBOX_ITEM_CONTEXT: InjectionToken<ComboboxItemContext<any>>;
230
+ declare function injectComboboxItemContext<T extends CollectionItem = CollectionItem>(): ComboboxItemContext<T>;
231
+
232
+ declare class ComboboxItem<T extends CollectionItem = CollectionItem> implements ComboboxItemContext<T> {
233
+ readonly item: InputSignal<T>;
234
+ readonly persistFocus: InputSignalWithTransform<boolean | undefined, unknown>;
235
+ private readonly context;
236
+ readonly state: i0.Signal<_wirekyt_angular_combobox.ComboboxItemState>;
237
+ constructor();
238
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxItem<any>, never>;
239
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxItem<any>, "[comboboxItem]", ["comboboxItem"], { "item": { "alias": "item"; "required": true; "isSignal": true; }; "persistFocus": { "alias": "persistFocus"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
240
+ }
241
+
242
+ declare class ComboboxItemText {
243
+ constructor();
244
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxItemText, never>;
245
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxItemText, "[comboboxItemText]", ["comboboxItemText"], {}, {}, never, never, true, never>;
246
+ }
247
+
248
+ declare class ComboboxItemIndicator {
249
+ constructor();
250
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxItemIndicator, never>;
251
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxItemIndicator, "[comboboxItemIndicator]", ["comboboxItemIndicator"], {}, {}, never, never, true, never>;
252
+ }
253
+
254
+ declare const COMBOBOX_CONTEXT: InjectionToken<UseComboboxReturn>;
255
+ declare function injectComboboxContext(): UseComboboxReturn;
256
+ declare const COMBOBOX_CONTEXT_CARRIER: InjectionToken<ContextCarrier<UseComboboxReturn>>;
257
+ declare function injectComboboxContextCarrier(): ContextCarrier<UseComboboxReturn>;
258
+
259
+ interface ComboboxContextTemplate {
260
+ $implicit: UseComboboxReturn["api"];
261
+ api: UseComboboxReturn["api"];
262
+ }
263
+ declare class ComboboxContext {
264
+ static ngTemplateContextGuard(_directive: ComboboxContext, context: unknown): context is ComboboxContextTemplate;
265
+ private readonly combobox;
266
+ private readonly templateRef;
267
+ private readonly viewContainer;
268
+ constructor();
269
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxContext, never>;
270
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxContext, "[comboboxContext]", ["comboboxContext"], {}, {}, never, never, true, never>;
271
+ }
272
+
273
+ interface ComboboxItemContextTemplate {
274
+ $implicit: ComboboxItemContext;
275
+ item: ComboboxItemContext;
276
+ }
277
+ declare class ComboboxItemContextDirective {
278
+ static ngTemplateContextGuard(_directive: ComboboxItemContextDirective, context: unknown): context is ComboboxItemContextTemplate;
279
+ private readonly item;
280
+ private readonly templateRef;
281
+ private readonly viewContainer;
282
+ constructor();
283
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxItemContextDirective, never>;
284
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxItemContextDirective, "[comboboxItemContext]", ["comboboxItemContext"], {}, {}, never, never, true, never>;
285
+ }
286
+
287
+ export { COMBOBOX_CONTEXT, COMBOBOX_CONTEXT_CARRIER, COMBOBOX_ITEM_CONTEXT, COMBOBOX_ITEM_GROUP_CONTEXT, ComboboxClearTrigger, ComboboxContent, ComboboxContext, ComboboxControl, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxItemContextDirective, ComboboxItemGroup, ComboboxItemGroupLabel, ComboboxItemIndicator, ComboboxItemText, ComboboxLabel, ComboboxList, ComboboxPositioner, ComboboxRoot, ComboboxRootProvider, ComboboxTrigger, comboboxAnatomy, injectComboboxContext, injectComboboxContextCarrier, injectComboboxItemContext, injectComboboxItemGroupContext, useCombobox };
288
+ export type { ComboboxContextTemplate, ComboboxItemContext, ComboboxItemContextTemplate, ComboboxItemGroupContext, ComboboxSchema, UseComboboxApi, UseComboboxOptions, UseComboboxProps, UseComboboxReturn };
289
+ //# sourceMappingURL=wirekyt-angular-combobox.d.ts.map