@wirekyt/angular 0.0.10 → 0.0.12

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirekyt/angular",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "Angular adapter for Wirekyt",
5
5
  "files": [
6
6
  "dist"
@@ -54,6 +54,14 @@
54
54
  "types": "./types/wirekyt-angular-collection.d.ts",
55
55
  "default": "./fesm2022/wirekyt-angular-collection.mjs"
56
56
  },
57
+ "./combobox": {
58
+ "types": "./types/wirekyt-angular-combobox.d.ts",
59
+ "default": "./fesm2022/wirekyt-angular-combobox.mjs"
60
+ },
61
+ "./date-input": {
62
+ "types": "./types/wirekyt-angular-date-input.d.ts",
63
+ "default": "./fesm2022/wirekyt-angular-date-input.mjs"
64
+ },
57
65
  "./field": {
58
66
  "types": "./types/wirekyt-angular-field.d.ts",
59
67
  "default": "./fesm2022/wirekyt-angular-field.mjs"
@@ -7,7 +7,7 @@ import * as i0 from '@angular/core';
7
7
  import { Signal, InputSignal, ModelSignal, InputSignalWithTransform, OutputEmitterRef, InjectionToken } from '@angular/core';
8
8
  import { ControlValueAccessor } from '@angular/forms';
9
9
 
10
- declare const checkboxAnatomy: _wirekyt_dom_anatomy.AnatomyInstance<"root" | "label" | "control" | "indicator" | "group">;
10
+ declare const checkboxAnatomy: _wirekyt_dom_anatomy.AnatomyInstance<"root" | "indicator" | "label" | "control" | "group">;
11
11
 
12
12
  type OptionalId<T extends {
13
13
  id: string;
@@ -7,7 +7,7 @@ import { UseMachineReturn, ContextCarrier } from '@wirekyt/angular';
7
7
  import { ControlValueAccessor } from '@angular/forms';
8
8
  import { ColorStringFormat } from '@wirekyt/dom/color-utils';
9
9
 
10
- declare const colorPickerAnatomy: _wirekyt_dom_anatomy.Anatomy<"root" | "label" | "control" | "trigger" | "content" | "valueText" | "area" | "positioner" | "areaThumb" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderTrack" | "channelSliderThumb" | "channelSliderValueText" | "channelInput" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger" | "formatSelect">;
10
+ declare const colorPickerAnatomy: _wirekyt_dom_anatomy.Anatomy<"root" | "trigger" | "content" | "label" | "area" | "control" | "valueText" | "positioner" | "formatSelect" | "areaThumb" | "channelInput" | "channelSliderTrack" | "channelSliderThumb" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderValueText" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger">;
11
11
 
12
12
  declare class ColorPickerArea {
13
13
  readonly xChannel: InputSignal<colorPicker.ColorChannel | undefined>;
@@ -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" | "list" | "item" | "trigger" | "content" | "itemGroup" | "label" | "clearTrigger" | "input" | "control" | "itemIndicator" | "positioner" | "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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wirekyt-angular-combobox.d.ts","sources":["../../src/components/combobox/anatomy.ts","../../src/components/combobox/types.ts","../../src/components/combobox/use.ts","../../src/components/combobox/content.ts","../../src/components/combobox/presence.ts","../../src/components/combobox/root.ts","../../src/components/combobox/root-provider.ts","../../src/components/combobox/label.ts","../../src/components/combobox/control.ts","../../src/components/combobox/input.ts","../../src/components/combobox/trigger.ts","../../src/components/combobox/clear-trigger.ts","../../src/components/combobox/positioner.ts","../../src/components/combobox/list.ts","../../src/components/combobox/empty.ts","../../src/components/combobox/item-group.ts","../../src/components/combobox/item-group-label.ts","../../src/components/combobox/use-item-context.ts","../../src/components/combobox/item.ts","../../src/components/combobox/item-text.ts","../../src/components/combobox/item-indicator.ts","../../src/components/combobox/use-context.ts","../../src/components/combobox/context.ts","../../src/components/combobox/item-context.ts"],"mappings":";;;;;;;;;;;;;;AAEA,cAAa,eAAe,EAAA,oBAAA,CAAA,eAAA;;AC+BtB,KAAM,cAAc,WAAW,cAAc,GAAG,cAAc,IAClE,OAAO,YAAYA,SAAW;;ACbhC,KAAK,UAAU;AAAa;AAAyB,KAAI,IAAI;;;AAEvD,UAAW,gBAAgB,WAAW,cAAc,GAAG,cAAc,UAAU,UAAU,CAC7F,IAAI,CAACC,KAAoB;AACvB;AAEE,KAAM,cAAc,WAAW,cAAc,GAAG,cAAc,IAAIC,GAAW,CAAC,SAAS;AAEvF,KAAM,iBAAiB,WAAW,cAAc,GAAG,cAAc,IAAI,gBAAgB,CACzFC,OAAe,cACf,cAAc,KACdA,OAAe;UAGA,kBAAkB,WAAW,cAAc,GAAG,cAAc;AAC3E,mBAAe,gBAAgB;AAChC;AAID,iBAAgB,WAAW,WAAW,cAAc,GAAG,cAAc,WAC1D,kBAAkB,MAC1B,iBAAiB;;AC1BpB,cACa,eAAe;;yCAAf,eAAe;2CAAf,eAAe;AAkC3B;;ACvCD,cACa,gBAAgB;wBACTC,EAAA,CAAA,wBAAA;4BACIA,EAAA,CAAA,wBAAA;mCACOA,EAAA,CAAA,wBAAA;wBACXA,EAAA,CAAA,wBAAA;sBACFA,EAAA,CAAA,WAAA;2BACKA,EAAA,CAAA,gBAAA;AAErB;;;;;;;;yCARW,gBAAgB;2CAAhB,gBAAgB;AAwC5B;;ACRD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,GAAG,cAAc;AAC5E,WAAO,MAAM,CAACe,SAAiB;AAC/B,UAAM,MAAM;AACZ,kBAAc,MAAM;AACrB;AAED,cAAa,qBAAqB,EAAA,cAAA,CAAA,mBAAA;AAIlC,iBAAgB,yBAAyB,WAC7B,cAAc,GAAG,cAAc,KACtC,mBAAmB;;ACCxB,cAMa,YAAY,WACb,cAAc,GAAG,cAAc,aAC9B,mBAAmB;AAC9B,mBAAe,WAAW;2BACH,wBAAwB;AAQ/C;oBACcd,EAAA,CAAA,MAAA,CAAA,yBAAA,CAAA,iBAAA;;yCAbH,YAAY;2CAAZ,YAAY;AA2BxB;;AC9CD,cAKa,gBAAgB;;yCAAhB,gBAAgB;2CAAhB,gBAAgB;AAY5B;;ACjBD,cAKa,qBAAqB;;yCAArB,qBAAqB;2CAArB,qBAAqB;AAcjC;;ACpBD,cAAa,gBAAgB,EAAA,cAAA,CAAA,iBAAA;AAE7B,iBAAgB,qBAAqB,IAAI,iBAAiB;AAI1D,cAAa,wBAAwB,EAAA,cAAA,CAAA,cAAA,CAAA,iBAAA;AAIrC,iBAAgB,4BAA4B,IAAI,cAAc,CAAC,iBAAiB;;UCT/D,uBAAuB;AACtC,eAAW,iBAAiB;AAC5B,SAAK,iBAAiB;AACvB;AAED,cAKa,eAAe;AAC1B,8CACc,eAAe,gCAEf,uBAAuB;AAKrC;AACA;AACA;;yCAXW,eAAe;2CAAf,eAAe;AAwB3B;;UC3BgB,2BAA2B;eAC/Be,mBAAsB;UAC3BA,mBAAsB;AAC7B;AAED,cAKa,4BAA4B;AACvC,8CACc,4BAA4B,gCAE5B,2BAA2B;AAKzC;AACA;AACA;;yCAXW,4BAA4B;2CAA5B,4BAA4B;AA0BxC;;;;","names":["WireMachine","ComboboxMachineProps","ComboboxApi","ComboboxService","_angular_core","ComboboxElementIds","ComboboxInputValueChangeDetails","ComboboxPositioningOptions","ComboboxScrollToIndexDetails","__types.ComboboxNavigateDetails","ComboboxIntlTranslations","ComboboxValueChangeDetails","ComboboxHighlightChangeDetails","ComboboxOpenChangeDetails","ComboboxSelectionDetails","ComboboxFocusOutsideEvent","ComboboxPointerDownOutsideEvent","ComboboxInteractOutsideEvent","ComboboxItemState","UseComboboxItemContext"]}
@@ -0,0 +1,164 @@
1
+ import * as dateInput from '@wirekyt/dom/machines/date-input';
2
+ import { ElementIds, DateValue, SelectionMode, IntlTranslations, Segments, FormatDateDetails, FocusChangeDetails, PlaceholderChangeDetails, ValueChangeDetails, DateSegment } from '@wirekyt/dom/machines/date-input';
3
+ export { Calendar, CalendarDate, CalendarDateTime, CalendarIdentifier, DateFormatter, Api as DateInputApi, DateSegment as DateInputDateSegment, EditableSegmentType as DateInputEditableSegmentType, ElementIds as DateInputElementIds, FocusChangeDetails as DateInputFocusChangeDetails, FormatDateDetails as DateInputFormatDateDetails, HiddenInputProps as DateInputHiddenInputMachineProps, HourCycle as DateInputHourCycle, IntlTranslations as DateInputIntlTranslations, LabelProps as DateInputLabelMachineProps, Machine as DateInputMachine, Props as DateInputMachineProps, PlaceholderChangeDetails as DateInputPlaceholderChangeDetails, SegmentGroupProps as DateInputSegmentGroupMachineProps, SegmentProps as DateInputSegmentMachineProps, SegmentState as DateInputSegmentState, SegmentType as DateInputSegmentType, Segments as DateInputSegments, SegmentsProps as DateInputSegmentsMachineProps, SelectionMode as DateInputSelectionMode, Service as DateInputService, ValueChangeDetails as DateInputValueChangeDetails, DateValue, ZonedDateTime, anatomy as dateInputAnatomy } from '@wirekyt/dom/machines/date-input';
4
+ import * as i0 from '@angular/core';
5
+ import { InjectionToken, InputSignal, ModelSignal, InputSignalWithTransform, OutputEmitterRef, Signal, AfterContentInit } from '@angular/core';
6
+ import { UseMachineReturn } from '@wirekyt/angular';
7
+ import { ControlValueAccessor } from '@angular/forms';
8
+
9
+ type OptionalId<T extends {
10
+ id?: string | undefined;
11
+ }> = Omit<T, "id"> & {
12
+ id?: string;
13
+ };
14
+ interface UseDateInputProps extends OptionalId<Omit<dateInput.Props, "dir" | "getRootNode">> {
15
+ }
16
+ type UseDateInputReturn = UseMachineReturn<dateInput.Service["state"], dateInput.Api, dateInput.Service>;
17
+ interface UseDateInputOptions {
18
+ context: () => UseDateInputProps;
19
+ }
20
+ declare function useDateInput(options: UseDateInputOptions): UseDateInputReturn;
21
+
22
+ declare const DATE_INPUT_CONTEXT: InjectionToken<UseDateInputReturn>;
23
+ declare function injectDateInputContext(): UseDateInputReturn;
24
+
25
+ declare class DateInputRoot implements ControlValueAccessor, UseDateInputReturn {
26
+ readonly id: InputSignal<string | undefined>;
27
+ readonly ids: InputSignal<Partial<ElementIds> | undefined>;
28
+ readonly value: ModelSignal<DateValue[] | undefined>;
29
+ readonly defaultValue: InputSignal<DateValue[] | undefined>;
30
+ readonly placeholderValue: ModelSignal<DateValue | undefined>;
31
+ readonly defaultPlaceholderValue: InputSignal<DateValue | undefined>;
32
+ readonly min: InputSignal<DateValue | undefined>;
33
+ readonly max: InputSignal<DateValue | undefined>;
34
+ readonly selectionMode: InputSignal<SelectionMode | undefined>;
35
+ readonly granularity: InputSignal<dateInput.Props["granularity"] | undefined>;
36
+ readonly hourCycle: InputSignal<dateInput.Props["hourCycle"] | undefined>;
37
+ readonly hideTimeZone: InputSignalWithTransform<boolean, unknown>;
38
+ readonly locale: InputSignal<string | undefined>;
39
+ readonly timeZone: InputSignal<string | undefined>;
40
+ readonly translations: InputSignal<IntlTranslations | undefined>;
41
+ readonly formatter: InputSignal<dateInput.Props["formatter"] | undefined>;
42
+ readonly allSegments: InputSignal<Segments | undefined>;
43
+ readonly format: InputSignal<((date: DateValue, details: FormatDateDetails) => string) | undefined>;
44
+ readonly createCalendar: InputSignal<dateInput.Props["createCalendar"] | undefined>;
45
+ readonly isDateUnavailable: InputSignal<dateInput.Props["isDateUnavailable"] | undefined>;
46
+ readonly shouldForceLeadingZeros: InputSignalWithTransform<boolean, unknown>;
47
+ readonly disabled: InputSignalWithTransform<boolean, unknown>;
48
+ readonly readOnly: InputSignalWithTransform<boolean, unknown>;
49
+ readonly required: InputSignalWithTransform<boolean, unknown>;
50
+ readonly invalid: InputSignalWithTransform<boolean, unknown>;
51
+ readonly name: InputSignal<string | undefined>;
52
+ readonly form: InputSignal<string | undefined>;
53
+ readonly focusChange: OutputEmitterRef<FocusChangeDetails>;
54
+ readonly placeholderChange: OutputEmitterRef<PlaceholderChangeDetails>;
55
+ readonly valueDetailsChange: OutputEmitterRef<ValueChangeDetails>;
56
+ private readonly disabledFromForm;
57
+ private pendingInternalWrites;
58
+ private hasExternalBinding;
59
+ private hasReceivedFormWrite;
60
+ private readonly cva;
61
+ private readonly machine;
62
+ readonly state: Signal<dateInput.Service["state"]>;
63
+ readonly api: Signal<dateInput.Api>;
64
+ readonly service: dateInput.Service;
65
+ readonly send: dateInput.Service["send"];
66
+ constructor();
67
+ writeValue(value: DateValue[] | null): void;
68
+ registerOnChange(fn: (value: DateValue[] | undefined) => void): void;
69
+ registerOnTouched(fn: () => void): void;
70
+ setDisabledState(disabled: boolean): void;
71
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateInputRoot, never>;
72
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateInputRoot, "[dateInputRoot]", ["dateInputRoot"], { "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; }; "placeholderValue": { "alias": "placeholderValue"; "required": false; "isSignal": true; }; "defaultPlaceholderValue": { "alias": "defaultPlaceholderValue"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "granularity": { "alias": "granularity"; "required": false; "isSignal": true; }; "hourCycle": { "alias": "hourCycle"; "required": false; "isSignal": true; }; "hideTimeZone": { "alias": "hideTimeZone"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "timeZone": { "alias": "timeZone"; "required": false; "isSignal": true; }; "translations": { "alias": "translations"; "required": false; "isSignal": true; }; "formatter": { "alias": "formatter"; "required": false; "isSignal": true; }; "allSegments": { "alias": "allSegments"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "createCalendar": { "alias": "createCalendar"; "required": false; "isSignal": true; }; "isDateUnavailable": { "alias": "isDateUnavailable"; "required": false; "isSignal": true; }; "shouldForceLeadingZeros": { "alias": "shouldForceLeadingZeros"; "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; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "placeholderValue": "placeholderValueChange"; "focusChange": "focusChange"; "placeholderChange": "placeholderChange"; "valueDetailsChange": "valueDetailsChange"; }, never, never, true, never>;
73
+ }
74
+
75
+ declare class DateInputRootProvider implements UseDateInputReturn {
76
+ readonly value: InputSignal<UseDateInputReturn>;
77
+ readonly state: Signal<dateInput.Service["state"]>;
78
+ readonly api: Signal<dateInput.Api>;
79
+ readonly send: dateInput.Service["send"];
80
+ get service(): dateInput.Service;
81
+ constructor();
82
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateInputRootProvider, never>;
83
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateInputRootProvider, "[dateInputRootProvider]", ["dateInputRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
84
+ }
85
+
86
+ declare class DateInputLabel {
87
+ readonly index: InputSignal<number | undefined>;
88
+ constructor();
89
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateInputLabel, never>;
90
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateInputLabel, "[dateInputLabel]", ["dateInputLabel"], { "index": { "alias": "index"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
91
+ }
92
+
93
+ declare class DateInputControl {
94
+ constructor();
95
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateInputControl, never>;
96
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateInputControl, "[dateInputControl]", ["dateInputControl"], {}, {}, never, never, true, never>;
97
+ }
98
+
99
+ interface DateInputSegmentGroupContext {
100
+ index: InputSignal<number | undefined>;
101
+ }
102
+ declare const DATE_INPUT_SEGMENT_GROUP_CONTEXT: InjectionToken<DateInputSegmentGroupContext>;
103
+ declare function injectDateInputSegmentGroupContext(): DateInputSegmentGroupContext;
104
+ declare class DateInputSegmentGroup implements DateInputSegmentGroupContext {
105
+ /** The range index for this segment group. */
106
+ readonly index: InputSignal<number | undefined>;
107
+ constructor();
108
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateInputSegmentGroup, never>;
109
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateInputSegmentGroup, "[dateInputSegmentGroup]", ["dateInputSegmentGroup"], { "index": { "alias": "index"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
110
+ }
111
+
112
+ declare class DateInputSegment implements AfterContentInit {
113
+ readonly segment: InputSignal<DateSegment>;
114
+ private readonly ownsTextContent;
115
+ private readonly elementRef;
116
+ constructor();
117
+ ngAfterContentInit(): void;
118
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateInputSegment, never>;
119
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateInputSegment, "[dateInputSegment]", ["dateInputSegment"], { "segment": { "alias": "segment"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
120
+ }
121
+
122
+ declare class DateInputHiddenInput {
123
+ readonly index: InputSignal<number | undefined>;
124
+ readonly name: InputSignal<string | undefined>;
125
+ constructor();
126
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateInputHiddenInput, never>;
127
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateInputHiddenInput, "input[dateInputHiddenInput]", ["dateInputHiddenInput"], { "index": { "alias": "index"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
128
+ }
129
+
130
+ interface DateInputContextTemplate {
131
+ $implicit: UseDateInputReturn["api"];
132
+ api: UseDateInputReturn["api"];
133
+ }
134
+ declare class DateInputContext {
135
+ static ngTemplateContextGuard(_directive: DateInputContext, context: unknown): context is DateInputContextTemplate;
136
+ private readonly dateInput;
137
+ private readonly templateRef;
138
+ private readonly viewContainer;
139
+ constructor();
140
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateInputContext, never>;
141
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateInputContext, "[dateInputContext]", ["dateInputContext"], {}, {}, never, never, true, never>;
142
+ }
143
+
144
+ interface DateInputSegmentContextTemplate {
145
+ $implicit: DateSegment;
146
+ segment: DateSegment;
147
+ index: number;
148
+ }
149
+ declare class DateInputSegmentContext {
150
+ static ngTemplateContextGuard(_directive: DateInputSegmentContext, context: unknown): context is DateInputSegmentContextTemplate;
151
+ private readonly dateInput;
152
+ private readonly segmentGroup;
153
+ private readonly templateRef;
154
+ private readonly viewContainer;
155
+ private readonly views;
156
+ constructor();
157
+ private syncSegmentViews;
158
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateInputSegmentContext, never>;
159
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateInputSegmentContext, "[dateInputSegmentContext]", ["dateInputSegmentContext"], {}, {}, never, never, true, never>;
160
+ }
161
+
162
+ export { DATE_INPUT_CONTEXT, DATE_INPUT_SEGMENT_GROUP_CONTEXT, DateInputContext, DateInputControl, DateInputHiddenInput, DateInputLabel, DateInputRoot, DateInputRootProvider, DateInputSegment, DateInputSegmentContext, DateInputSegmentGroup, injectDateInputContext, injectDateInputSegmentGroupContext, useDateInput };
163
+ export type { DateInputContextTemplate, DateInputSegmentContextTemplate, DateInputSegmentGroupContext, UseDateInputOptions, UseDateInputProps, UseDateInputReturn };
164
+ //# sourceMappingURL=wirekyt-angular-date-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wirekyt-angular-date-input.d.ts","sources":["../../src/components/date-input/use.ts","../../src/components/date-input/use-context.ts","../../src/components/date-input/root.ts","../../src/components/date-input/root-provider.ts","../../src/components/date-input/label.ts","../../src/components/date-input/control.ts","../../src/components/date-input/segment-group.ts","../../src/components/date-input/segment.ts","../../src/components/date-input/hidden-input.ts","../../src/components/date-input/context.ts","../../src/components/date-input/segment-context.ts"],"mappings":";;;;;;;;AAYA,KAAK,UAAU;AAAa;AAAyB,KAAI,IAAI;;;AAEvD,UAAW,iBAAkB,SAAQ,UAAU,CACnD,IAAI,CAAC,SAAS,CAAC,KAAK;AAClB;AAEE,KAAM,kBAAkB,GAAG,gBAAgB,CAC/C,SAAS,CAAC,OAAO,WACjB,SAAS,CAAC,GAAG,EACb,SAAS,CAAC,OAAO;UAGF,mBAAmB;mBACnB,iBAAiB;AACjC;AAKD,iBAAgB,YAAY,UAAU,mBAAmB,GAAG,kBAAkB;;AC3B9E,cAAa,kBAAkB,EAAA,cAAA,CAAA,kBAAA;AAI/B,iBAAgB,sBAAsB,IAAI,kBAAkB;;AC+B5D,cASa,aAAc,YAAW,oBAAoB,EAAE,kBAAkB;iBAC/D,WAAW;AACxB,kBAAc,WAAW,CAAC,OAAO,CAACA,UAAmB;oBAGrC,WAAW,CAAC,SAAS;2BACd,WAAW,CAAC,SAAS;+BAGjB,WAAW,CAAC,SAAS;sCAGd,WAAW,CAAC,SAAS;kBAGzC,WAAW,CAAC,SAAS;kBACrB,WAAW,CAAC,SAAS;4BACX,WAAW,CAACC,aAAsB;AAG1D,0BAAsB,WAAW,CAAC,SAAS,CAAC,KAAK;AAGjD,wBAAoB,WAAW,CAAC,SAAS,CAAC,KAAK;2BAGxB,wBAAwB;qBAG9B,WAAW;uBACT,WAAW;2BACP,WAAW,CAACC,gBAAyB;AAG5D,wBAAoB,WAAW,CAAC,SAAS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;2CAArB,qBAAqB;AAajC;;AChCD,cAKa,gBAAiB,YAAW,gBAAgB;AACvD,sBAAkB,WAAW,CAACC,WAAoB;AAElD;AACA;;AAqBA;yCAzBW,gBAAgB;2CAAhB,gBAAgB;AA4B5B;;ACtCD,cAKa,oBAAoB;oBACf,WAAW;mBACZ,WAAW;;yCAFf,oBAAoB;2CAApB,oBAAoB;AAiBhC;;UCvBgB,wBAAwB;AACvC,eAAW,kBAAkB;AAC7B,SAAK,kBAAkB;AACxB;AAED,cAKa,gBAAgB;AAC3B,8CACc,gBAAgB,gCAEhB,wBAAwB;AAKtC;AACA;AACA;;yCAXW,gBAAgB;2CAAhB,gBAAgB;AA0B5B;;UCnCgB,+BAA+B;eACnCA,WAAoB;aACtBA,WAAoB;;AAE9B;AAED,cAKa,uBAAuB;AAClC,8CACc,uBAAuB,gCAEvB,+BAA+B;AAK7C;AACA;AACA;AACA;AACA;;AAYA;yCAzBW,uBAAuB;2CAAvB,uBAAuB;AA6DnC;;;;","names":["DateInputElementIds","DateInputSelectionMode","DateInputIntlTranslations","DateInputSegments","DateInputFormatDateDetails","DateInputFocusChangeDetails","DateInputPlaceholderChangeDetails","DateInputValueChangeDetails","DateInputDateSegment"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirekyt/angular",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "Angular adapter for Wirekyt",
5
5
  "files": [
6
6
  "dist"
@@ -54,6 +54,14 @@
54
54
  "types": "./dist/types/wirekyt-angular-collection.d.ts",
55
55
  "default": "./dist/fesm2022/wirekyt-angular-collection.mjs"
56
56
  },
57
+ "./combobox": {
58
+ "types": "./dist/types/wirekyt-angular-combobox.d.ts",
59
+ "default": "./dist/fesm2022/wirekyt-angular-combobox.mjs"
60
+ },
61
+ "./date-input": {
62
+ "types": "./dist/types/wirekyt-angular-date-input.d.ts",
63
+ "default": "./dist/fesm2022/wirekyt-angular-date-input.mjs"
64
+ },
57
65
  "./field": {
58
66
  "types": "./dist/types/wirekyt-angular-field.d.ts",
59
67
  "default": "./dist/fesm2022/wirekyt-angular-field.mjs"
@@ -71,7 +79,7 @@
71
79
  "dependencies": {
72
80
  "@internationalized/date": "^3.12.3",
73
81
  "@internationalized/number": "^3.6.7",
74
- "@wirekyt/dom": "0.0.10",
82
+ "@wirekyt/dom": "0.0.12",
75
83
  "tslib": "^2.8.1"
76
84
  },
77
85
  "peerDependencies": {