@wirekyt/angular 0.0.11 → 0.0.13
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/fesm2022/wirekyt-angular-accordion.mjs +58 -22
- package/dist/fesm2022/wirekyt-angular-accordion.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-color-picker.mjs +92 -9
- package/dist/fesm2022/wirekyt-angular-color-picker.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-combobox.mjs +44 -74
- package/dist/fesm2022/wirekyt-angular-combobox.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-date-input.mjs +532 -0
- package/dist/fesm2022/wirekyt-angular-date-input.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-date-picker.mjs +1315 -0
- package/dist/fesm2022/wirekyt-angular-date-picker.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-presence.mjs +176 -0
- package/dist/fesm2022/wirekyt-angular-presence.mjs.map +1 -0
- package/dist/package.json +17 -5
- package/dist/types/wirekyt-angular-accordion.d.ts +5 -1
- package/dist/types/wirekyt-angular-accordion.d.ts.map +1 -1
- package/dist/types/wirekyt-angular-color-picker.d.ts +7 -3
- package/dist/types/wirekyt-angular-color-picker.d.ts.map +1 -1
- package/dist/types/wirekyt-angular-combobox.d.ts +7 -39
- package/dist/types/wirekyt-angular-combobox.d.ts.map +1 -1
- package/dist/types/wirekyt-angular-date-input.d.ts +164 -0
- package/dist/types/wirekyt-angular-date-input.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-date-picker.d.ts +340 -0
- package/dist/types/wirekyt-angular-date-picker.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-presence.d.ts +64 -0
- package/dist/types/wirekyt-angular-presence.d.ts.map +1 -0
- package/package.json +19 -7
|
@@ -1 +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":"
|
|
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;;yCAXW,wBAAwB;2CAAxB,wBAAwB;AAyBpC;;ACzCD,cAKa,6BAA8B,YAAW,gBAAgB;AACpE;AACA;;AAkBA;yCApBW,6BAA6B;2CAA7B,6BAA6B;AAuBzC;;ACrCD,cAKa,6BAA6B;;yCAA7B,6BAA6B;2CAA7B,6BAA6B;AAWzC;;AChBD,cAKa,6BAA6B;;yCAA7B,6BAA6B;2CAA7B,6BAA6B;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;;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":[]}
|
|
@@ -8,11 +8,12 @@ import { UseMachineReturn, ContextCarrier } from '@wirekyt/angular';
|
|
|
8
8
|
import { PropTypes } from '@wirekyt/dom/types';
|
|
9
9
|
import * as i0 from '@angular/core';
|
|
10
10
|
import { InputSignal, ModelSignal, InputSignalWithTransform, OutputEmitterRef, Signal, InjectionToken } from '@angular/core';
|
|
11
|
-
import * as
|
|
11
|
+
import * as _wirekyt_angular_presence from '@wirekyt/angular/presence';
|
|
12
|
+
import { PresenceBase } from '@wirekyt/angular/presence';
|
|
12
13
|
import { ControlValueAccessor } from '@angular/forms';
|
|
13
14
|
import * as _wirekyt_angular_combobox from '@wirekyt/angular/combobox';
|
|
14
15
|
|
|
15
|
-
declare const comboboxAnatomy: _wirekyt_dom_anatomy.AnatomyInstance<"root" | "
|
|
16
|
+
declare const comboboxAnatomy: _wirekyt_dom_anatomy.AnatomyInstance<"root" | "trigger" | "label" | "item" | "input" | "itemGroup" | "clearTrigger" | "content" | "control" | "list" | "itemIndicator" | "positioner" | "itemText" | "itemGroupLabel" | "empty">;
|
|
16
17
|
|
|
17
18
|
type ComboboxSchema<T extends CollectionItem = CollectionItem> = Machine<T> extends Machine$1<infer S> ? S : never;
|
|
18
19
|
|
|
@@ -36,26 +37,7 @@ declare class ComboboxContent {
|
|
|
36
37
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxContent, "[comboboxContent]", ["comboboxContent"], {}, {}, never, never, true, never>;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
declare class
|
|
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> {
|
|
40
|
+
declare class ComboboxRoot<T extends CollectionItem = CollectionItem> extends PresenceBase implements ControlValueAccessor, UseComboboxReturn<T> {
|
|
59
41
|
readonly id: InputSignal<string | undefined>;
|
|
60
42
|
readonly elementIds: InputSignal<ElementIds | undefined>;
|
|
61
43
|
readonly collection: InputSignal<ListCollection<T>>;
|
|
@@ -111,16 +93,9 @@ declare class ComboboxRoot<T extends CollectionItem = CollectionItem> extends Co
|
|
|
111
93
|
readonly api: Signal<UseComboboxApi<T>>;
|
|
112
94
|
readonly service: Service<T>;
|
|
113
95
|
readonly send: Service<T>["send"];
|
|
96
|
+
readonly presence: _wirekyt_angular_presence.UsePresenceReturn;
|
|
114
97
|
protected readonly contextCarrier: ContextCarrier<ComboboxRoot<T>>;
|
|
115
98
|
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
99
|
constructor();
|
|
125
100
|
writeValue(value: string[] | null): void;
|
|
126
101
|
registerOnChange(fn: (value: string[] | undefined) => void): void;
|
|
@@ -130,23 +105,16 @@ declare class ComboboxRoot<T extends CollectionItem = CollectionItem> extends Co
|
|
|
130
105
|
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
106
|
}
|
|
132
107
|
|
|
133
|
-
declare class ComboboxRootProvider<T extends CollectionItem = CollectionItem> extends
|
|
108
|
+
declare class ComboboxRootProvider<T extends CollectionItem = CollectionItem> extends PresenceBase implements UseComboboxReturn<T> {
|
|
134
109
|
readonly value: InputSignal<UseComboboxReturn<T>>;
|
|
135
110
|
get state(): Signal<Service<T>["state"]>;
|
|
136
111
|
get api(): Signal<UseComboboxApi<T>>;
|
|
137
112
|
get service(): Service<T>;
|
|
138
113
|
get send(): Service<T>["send"];
|
|
139
114
|
resolveValue(): UseComboboxReturn<T>;
|
|
115
|
+
readonly presence: _wirekyt_angular_presence.UsePresenceReturn;
|
|
140
116
|
protected readonly contextCarrier: ContextCarrier<ComboboxRootProvider<T>>;
|
|
141
117
|
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
118
|
constructor();
|
|
151
119
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxRootProvider<any>, never>;
|
|
152
120
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxRootProvider<any>, "[comboboxRootProvider]", ["comboboxRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -1 +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/
|
|
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/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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ComboboxElementIds","ComboboxInputValueChangeDetails","ComboboxPositioningOptions","ComboboxScrollToIndexDetails","__types.ComboboxNavigateDetails","ComboboxIntlTranslations","ComboboxValueChangeDetails","ComboboxHighlightChangeDetails","ComboboxOpenChangeDetails","ComboboxSelectionDetails","ComboboxFocusOutsideEvent","ComboboxPointerDownOutsideEvent","ComboboxInteractOutsideEvent","ComboboxItemState","_angular_core","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;2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C,iBAAgB,kCAAkC,IAAI,4BAA4B;AAIlF,cAWa,qBAAsB,YAAW,4BAA4B;;oBAExD,WAAW;;yCAFhB,qBAAqB;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"]}
|