@wirekyt/angular 0.0.16 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/README.md +3 -3
- package/dist/fesm2022/wirekyt-angular-accordion.mjs +16 -16
- package/dist/fesm2022/wirekyt-angular-accordion.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-angle-slider.mjs +20 -20
- package/dist/fesm2022/wirekyt-angular-angle-slider.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-avatar.mjs +10 -10
- package/dist/fesm2022/wirekyt-angular-avatar.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-carousel.mjs +26 -26
- package/dist/fesm2022/wirekyt-angular-carousel.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-checkbox.mjs +18 -18
- package/dist/fesm2022/wirekyt-angular-checkbox.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-clipboard.mjs +18 -18
- package/dist/fesm2022/wirekyt-angular-clipboard.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-collapsible.mjs +10 -10
- package/dist/fesm2022/wirekyt-angular-collapsible.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-color-picker.mjs +58 -58
- package/dist/fesm2022/wirekyt-angular-color-picker.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-combobox.mjs +36 -36
- package/dist/fesm2022/wirekyt-angular-combobox.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-date-input.mjs +18 -18
- package/dist/fesm2022/wirekyt-angular-date-input.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-date-picker.mjs +58 -58
- package/dist/fesm2022/wirekyt-angular-date-picker.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-dialog.mjs +20 -20
- package/dist/fesm2022/wirekyt-angular-dialog.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-download-trigger.mjs +2 -2
- package/dist/fesm2022/wirekyt-angular-download-trigger.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-drawer.mjs +706 -0
- package/dist/fesm2022/wirekyt-angular-drawer.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-field.mjs +20 -20
- package/dist/fesm2022/wirekyt-angular-field.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-fieldset.mjs +10 -10
- package/dist/fesm2022/wirekyt-angular-fieldset.mjs.map +1 -1
- package/dist/package.json +6 -2
- package/dist/types/wirekyt-angular-accordion.d.ts +8 -8
- package/dist/types/wirekyt-angular-angle-slider.d.ts +10 -10
- package/dist/types/wirekyt-angular-avatar.d.ts +5 -5
- package/dist/types/wirekyt-angular-carousel.d.ts +13 -13
- package/dist/types/wirekyt-angular-checkbox.d.ts +10 -10
- package/dist/types/wirekyt-angular-clipboard.d.ts +9 -9
- package/dist/types/wirekyt-angular-collapsible.d.ts +5 -5
- package/dist/types/wirekyt-angular-color-picker.d.ts +30 -30
- package/dist/types/wirekyt-angular-combobox.d.ts +19 -19
- package/dist/types/wirekyt-angular-date-input.d.ts +9 -9
- package/dist/types/wirekyt-angular-date-picker.d.ts +30 -30
- package/dist/types/wirekyt-angular-dialog.d.ts +10 -10
- package/dist/types/wirekyt-angular-download-trigger.d.ts +1 -1
- package/dist/types/wirekyt-angular-drawer.d.ts +203 -0
- package/dist/types/wirekyt-angular-drawer.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-field.d.ts +10 -10
- package/dist/types/wirekyt-angular-fieldset.d.ts +5 -5
- package/package.json +7 -3
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import * as drawer from '@wirekyt/dom/machines/drawer';
|
|
2
|
+
import { DrawerStackApi, DrawerStack as DrawerStack$1, ElementIds, SnapPoint, SwipeDirection, FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent, OpenChangeDetails, TriggerValueChangeDetails, SnapPointChangeDetails } from '@wirekyt/dom/machines/drawer';
|
|
3
|
+
export { Api as DrawerApi, ContentProps as DrawerContentProps, ElementIds as DrawerElementIds, FocusOutsideEvent as DrawerFocusOutsideEvent, InteractOutsideEvent as DrawerInteractOutsideEvent, Machine as DrawerMachine, Props as DrawerMachineProps, OpenChangeDetails as DrawerOpenChangeDetails, PointerDownOutsideEvent as DrawerPointerDownOutsideEvent, ResolvedSnapPoint as DrawerResolvedSnapPoint, Service as DrawerService, SnapPoint as DrawerSnapPoint, SnapPointChangeDetails as DrawerSnapPointChangeDetails, DrawerStackApi, DrawerStackSnapshot, DrawerStack as DrawerStackStore, SwipeAreaProps as DrawerSwipeAreaProps, SwipeDirection as DrawerSwipeDirection, TriggerProps as DrawerTriggerProps, TriggerValueChangeDetails as DrawerTriggerValueChangeDetails, anatomy as drawerAnatomy } from '@wirekyt/dom/machines/drawer';
|
|
4
|
+
import { UseMachineReturn, ContextCarrier } from '@wirekyt/angular';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { InjectionToken, Signal, InputSignal, ModelSignal, InputSignalWithTransform, OutputEmitterRef } from '@angular/core';
|
|
7
|
+
import * as _wirekyt_angular_presence from '@wirekyt/angular/presence';
|
|
8
|
+
import { PresenceBase } from '@wirekyt/angular/presence';
|
|
9
|
+
|
|
10
|
+
type OptionalId<T extends {
|
|
11
|
+
id: string;
|
|
12
|
+
}> = Omit<T, "id"> & {
|
|
13
|
+
id?: string;
|
|
14
|
+
};
|
|
15
|
+
interface UseDrawerProps extends OptionalId<Omit<drawer.Props, "dir" | "getRootNode">> {
|
|
16
|
+
}
|
|
17
|
+
type UseDrawerReturn = UseMachineReturn<drawer.Service["state"], drawer.Api, drawer.Service>;
|
|
18
|
+
interface UseDrawerOptions {
|
|
19
|
+
context: () => UseDrawerProps;
|
|
20
|
+
}
|
|
21
|
+
declare function useDrawer(options: UseDrawerOptions): UseDrawerReturn;
|
|
22
|
+
|
|
23
|
+
declare const DRAWER_CONTEXT: InjectionToken<UseDrawerReturn>;
|
|
24
|
+
declare function injectDrawerContext(): UseDrawerReturn;
|
|
25
|
+
declare const DRAWER_CONTEXT_CARRIER: InjectionToken<ContextCarrier<UseDrawerReturn>>;
|
|
26
|
+
declare function injectDrawerContextCarrier(): ContextCarrier<UseDrawerReturn>;
|
|
27
|
+
interface DrawerRenderStrategyContext {
|
|
28
|
+
readonly lazyMount: Signal<boolean>;
|
|
29
|
+
readonly unmountOnExit: Signal<boolean>;
|
|
30
|
+
}
|
|
31
|
+
declare const DRAWER_RENDER_STRATEGY_CONTEXT: InjectionToken<DrawerRenderStrategyContext>;
|
|
32
|
+
declare function injectDrawerRenderStrategyContext(): DrawerRenderStrategyContext;
|
|
33
|
+
|
|
34
|
+
interface UseDrawerStackContext {
|
|
35
|
+
readonly api: Signal<DrawerStackApi>;
|
|
36
|
+
readonly stack: DrawerStack$1;
|
|
37
|
+
}
|
|
38
|
+
declare const DRAWER_STACK_CONTEXT: InjectionToken<UseDrawerStackContext>;
|
|
39
|
+
declare function injectDrawerStackContext(): UseDrawerStackContext;
|
|
40
|
+
|
|
41
|
+
declare class DrawerRoot extends PresenceBase implements UseDrawerReturn {
|
|
42
|
+
readonly id: InputSignal<string | undefined>;
|
|
43
|
+
readonly ids: InputSignal<Partial<ElementIds> | undefined>;
|
|
44
|
+
readonly open: ModelSignal<boolean | undefined>;
|
|
45
|
+
readonly defaultOpen: InputSignalWithTransform<boolean, unknown>;
|
|
46
|
+
readonly modal: InputSignalWithTransform<boolean, unknown>;
|
|
47
|
+
readonly closeOnInteractOutside: InputSignalWithTransform<boolean, unknown>;
|
|
48
|
+
readonly closeOnEscape: InputSignalWithTransform<boolean, unknown>;
|
|
49
|
+
readonly preventScroll: InputSignalWithTransform<boolean, unknown>;
|
|
50
|
+
readonly trapFocus: InputSignalWithTransform<boolean, unknown>;
|
|
51
|
+
readonly restoreFocus: InputSignalWithTransform<boolean, unknown>;
|
|
52
|
+
readonly initialFocusEl: InputSignal<(() => HTMLElement | null) | undefined>;
|
|
53
|
+
readonly finalFocusEl: InputSignal<(() => HTMLElement | null) | undefined>;
|
|
54
|
+
readonly role: InputSignal<"dialog" | "alertdialog" | undefined>;
|
|
55
|
+
readonly triggerValue: ModelSignal<string | null | undefined>;
|
|
56
|
+
readonly defaultTriggerValue: InputSignal<string | null | undefined>;
|
|
57
|
+
readonly snapPoints: InputSignal<SnapPoint[] | undefined>;
|
|
58
|
+
readonly swipeDirection: InputSignal<SwipeDirection | undefined>;
|
|
59
|
+
readonly snapToSequentialPoints: InputSignalWithTransform<boolean, unknown>;
|
|
60
|
+
readonly swipeVelocityThreshold: InputSignal<number | undefined>;
|
|
61
|
+
readonly closeThreshold: InputSignal<number | undefined>;
|
|
62
|
+
readonly preventDragOnScroll: InputSignalWithTransform<boolean, unknown>;
|
|
63
|
+
readonly snapPoint: ModelSignal<SnapPoint | null | undefined>;
|
|
64
|
+
readonly defaultSnapPoint: InputSignal<SnapPoint | null | undefined>;
|
|
65
|
+
readonly stack: InputSignal<DrawerStack$1 | undefined>;
|
|
66
|
+
readonly escapeKeyDown: OutputEmitterRef<KeyboardEvent>;
|
|
67
|
+
readonly focusOutside: OutputEmitterRef<FocusOutsideEvent>;
|
|
68
|
+
readonly interactOutside: OutputEmitterRef<InteractOutsideEvent>;
|
|
69
|
+
readonly pointerDownOutside: OutputEmitterRef<PointerDownOutsideEvent>;
|
|
70
|
+
readonly requestDismiss: OutputEmitterRef<Parameters<NonNullable<drawer.Props["onRequestDismiss"]>>[0]>;
|
|
71
|
+
readonly openChangeDetails: OutputEmitterRef<OpenChangeDetails>;
|
|
72
|
+
readonly triggerValueChangeDetails: OutputEmitterRef<TriggerValueChangeDetails>;
|
|
73
|
+
readonly snapPointChangeDetails: OutputEmitterRef<SnapPointChangeDetails>;
|
|
74
|
+
private readonly machine;
|
|
75
|
+
readonly state: Signal<drawer.Service["state"]>;
|
|
76
|
+
readonly api: Signal<drawer.Api>;
|
|
77
|
+
readonly service: drawer.Service;
|
|
78
|
+
readonly send: drawer.Service["send"];
|
|
79
|
+
readonly presence: _wirekyt_angular_presence.UsePresenceReturn;
|
|
80
|
+
protected readonly contextCarrier: ContextCarrier<DrawerRoot>;
|
|
81
|
+
getContextCarrier(): ContextCarrier<DrawerRoot>;
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerRoot, never>;
|
|
83
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerRoot, "[drawer-root]", ["drawerRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ids": { "alias": "ids"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "modal": { "alias": "modal"; "required": false; "isSignal": true; }; "closeOnInteractOutside": { "alias": "closeOnInteractOutside"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "preventScroll": { "alias": "preventScroll"; "required": false; "isSignal": true; }; "trapFocus": { "alias": "trapFocus"; "required": false; "isSignal": true; }; "restoreFocus": { "alias": "restoreFocus"; "required": false; "isSignal": true; }; "initialFocusEl": { "alias": "initialFocusEl"; "required": false; "isSignal": true; }; "finalFocusEl": { "alias": "finalFocusEl"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "triggerValue": { "alias": "triggerValue"; "required": false; "isSignal": true; }; "defaultTriggerValue": { "alias": "defaultTriggerValue"; "required": false; "isSignal": true; }; "snapPoints": { "alias": "snapPoints"; "required": false; "isSignal": true; }; "swipeDirection": { "alias": "swipeDirection"; "required": false; "isSignal": true; }; "snapToSequentialPoints": { "alias": "snapToSequentialPoints"; "required": false; "isSignal": true; }; "swipeVelocityThreshold": { "alias": "swipeVelocityThreshold"; "required": false; "isSignal": true; }; "closeThreshold": { "alias": "closeThreshold"; "required": false; "isSignal": true; }; "preventDragOnScroll": { "alias": "preventDragOnScroll"; "required": false; "isSignal": true; }; "snapPoint": { "alias": "snapPoint"; "required": false; "isSignal": true; }; "defaultSnapPoint": { "alias": "defaultSnapPoint"; "required": false; "isSignal": true; }; "stack": { "alias": "stack"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "triggerValue": "triggerValueChange"; "snapPoint": "snapPointChange"; "escapeKeyDown": "escapeKeyDown"; "focusOutside": "focusOutside"; "interactOutside": "interactOutside"; "pointerDownOutside": "pointerDownOutside"; "requestDismiss": "requestDismiss"; "openChangeDetails": "openChangeDetails"; "triggerValueChangeDetails": "triggerValueChangeDetails"; "snapPointChangeDetails": "snapPointChangeDetails"; }, never, never, true, never>;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
declare class DrawerRootProvider extends PresenceBase implements UseDrawerReturn {
|
|
87
|
+
readonly value: InputSignal<UseDrawerReturn>;
|
|
88
|
+
readonly state: Signal<drawer.Service["state"]>;
|
|
89
|
+
readonly api: Signal<drawer.Api>;
|
|
90
|
+
readonly send: drawer.Service["send"];
|
|
91
|
+
get service(): drawer.Service;
|
|
92
|
+
readonly presence: _wirekyt_angular_presence.UsePresenceReturn;
|
|
93
|
+
protected readonly contextCarrier: ContextCarrier<DrawerRootProvider>;
|
|
94
|
+
getContextCarrier(): ContextCarrier<DrawerRootProvider>;
|
|
95
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerRootProvider, never>;
|
|
96
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerRootProvider, "[drawer-root-provider]", ["drawerRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
declare class DrawerTrigger {
|
|
100
|
+
readonly value: InputSignal<string | undefined>;
|
|
101
|
+
constructor();
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerTrigger, never>;
|
|
103
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerTrigger, "[drawer-trigger]", ["drawerTrigger"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
declare class DrawerBackdrop {
|
|
107
|
+
constructor();
|
|
108
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerBackdrop, never>;
|
|
109
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerBackdrop, "[drawer-backdrop]", ["drawerBackdrop"], {}, {}, never, never, true, never>;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare class DrawerPositioner {
|
|
113
|
+
constructor();
|
|
114
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerPositioner, never>;
|
|
115
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerPositioner, "[drawer-positioner]", ["drawerPositioner"], {}, {}, never, never, true, never>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
declare class DrawerContent {
|
|
119
|
+
readonly draggable: InputSignalWithTransform<boolean, unknown>;
|
|
120
|
+
constructor();
|
|
121
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerContent, never>;
|
|
122
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerContent, "[drawer-content]", ["drawerContent"], { "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
declare class DrawerTitle {
|
|
126
|
+
constructor();
|
|
127
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerTitle, never>;
|
|
128
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerTitle, "[drawer-title]", ["drawerTitle"], {}, {}, never, never, true, never>;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
declare class DrawerDescription {
|
|
132
|
+
constructor();
|
|
133
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerDescription, never>;
|
|
134
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerDescription, "[drawer-description]", ["drawerDescription"], {}, {}, never, never, true, never>;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
declare class DrawerCloseTrigger {
|
|
138
|
+
constructor();
|
|
139
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerCloseTrigger, never>;
|
|
140
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerCloseTrigger, "[drawer-close-trigger]", ["drawerCloseTrigger"], {}, {}, never, never, true, never>;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
declare class DrawerGrabber {
|
|
144
|
+
constructor();
|
|
145
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerGrabber, never>;
|
|
146
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerGrabber, "[drawer-grabber]", ["drawerGrabber"], {}, {}, never, never, true, never>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
declare class DrawerGrabberIndicator {
|
|
150
|
+
constructor();
|
|
151
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerGrabberIndicator, never>;
|
|
152
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerGrabberIndicator, "[drawer-grabber-indicator]", ["drawerGrabberIndicator"], {}, {}, never, never, true, never>;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
declare class DrawerSwipeArea {
|
|
156
|
+
/** Whether the swipe area is disabled. */
|
|
157
|
+
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
158
|
+
/** The swipe direction that opens the drawer. */
|
|
159
|
+
readonly swipeDirection: InputSignal<SwipeDirection | undefined>;
|
|
160
|
+
constructor();
|
|
161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerSwipeArea, never>;
|
|
162
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerSwipeArea, "[drawer-swipe-area]", ["drawerSwipeArea"], { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "swipeDirection": { "alias": "swipeDirection"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
declare class DrawerIndent {
|
|
166
|
+
constructor();
|
|
167
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerIndent, never>;
|
|
168
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerIndent, "[drawer-indent]", ["drawerIndent"], {}, {}, never, never, true, never>;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
declare class DrawerIndentBackground {
|
|
172
|
+
constructor();
|
|
173
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerIndentBackground, never>;
|
|
174
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerIndentBackground, "[drawer-indent-background]", ["drawerIndentBackground"], {}, {}, never, never, true, never>;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
declare class DrawerStack {
|
|
178
|
+
private readonly stack;
|
|
179
|
+
private readonly snapshot;
|
|
180
|
+
private readonly unsubscribe;
|
|
181
|
+
readonly context: UseDrawerStackContext;
|
|
182
|
+
constructor();
|
|
183
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerStack, never>;
|
|
184
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerStack, "[drawer-stack]", ["drawerStack"], {}, {}, never, never, true, never>;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
interface DrawerContextTemplate {
|
|
188
|
+
$implicit: UseDrawerReturn["api"];
|
|
189
|
+
api: UseDrawerReturn["api"];
|
|
190
|
+
}
|
|
191
|
+
declare class DrawerContext {
|
|
192
|
+
static ngTemplateContextGuard(_directive: DrawerContext, context: unknown): context is DrawerContextTemplate;
|
|
193
|
+
private readonly drawer;
|
|
194
|
+
private readonly templateRef;
|
|
195
|
+
private readonly viewContainer;
|
|
196
|
+
constructor();
|
|
197
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerContext, never>;
|
|
198
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerContext, "[drawer-context]", ["drawerContext"], {}, {}, never, never, true, never>;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export { DRAWER_CONTEXT, DRAWER_CONTEXT_CARRIER, DRAWER_RENDER_STRATEGY_CONTEXT, DRAWER_STACK_CONTEXT, DrawerBackdrop, DrawerCloseTrigger, DrawerContent, DrawerContext, DrawerDescription, DrawerGrabber, DrawerGrabberIndicator, DrawerIndent, DrawerIndentBackground, DrawerPositioner, DrawerRoot, DrawerRootProvider, DrawerStack, DrawerSwipeArea, DrawerTitle, DrawerTrigger, injectDrawerContext, injectDrawerContextCarrier, injectDrawerRenderStrategyContext, injectDrawerStackContext, useDrawer };
|
|
202
|
+
export type { DrawerContextTemplate, UseDrawerOptions, UseDrawerProps, UseDrawerReturn, UseDrawerStackContext };
|
|
203
|
+
//# sourceMappingURL=wirekyt-angular-drawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-drawer.d.ts","sources":["../../src/components/drawer/use.ts","../../src/components/drawer/use-context.ts","../../src/components/drawer/use-stack-context.ts","../../src/components/drawer/root.ts","../../src/components/drawer/root-provider.ts","../../src/components/drawer/trigger.ts","../../src/components/drawer/backdrop.ts","../../src/components/drawer/positioner.ts","../../src/components/drawer/content.ts","../../src/components/drawer/title.ts","../../src/components/drawer/description.ts","../../src/components/drawer/close-trigger.ts","../../src/components/drawer/grabber.ts","../../src/components/drawer/grabber-indicator.ts","../../src/components/drawer/swipe-area.ts","../../src/components/drawer/indent.ts","../../src/components/drawer/indent-background.ts","../../src/components/drawer/stack.ts","../../src/components/drawer/context.ts"],"mappings":";;;;;;;;;AAaA,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,cAAe,SAAQ,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK;AAA4B;AAE1F,KAAM,eAAe,GAAG,gBAAgB,CAAC,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,OAAO;UAEjF,gBAAgB;mBAChB,cAAc;AAC9B;AAKD,iBAAgB,SAAS,UAAU,gBAAg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D,cAKa,aAAa;;yCAAb,aAAa;2CAAb,aAAa;AAUzB;;ACfD,cAKa,sBAAsB;;yCAAtB,sBAAsB;2CAAtB,sBAAsB;AAUlC;;ACHD,cAKa,eAAe;;uBAEP,wBAAwB;;6BAIlB,WAAW,CAACN,cAAoB;;yCAN9C,eAAe;2CAAf,eAAe;AAsB3B;;ACvCD,cAKa,YAAY;;yCAAZ,YAAY;2CAAZ,YAAY;AAUxB;;ACfD,cAKa,sBAAsB;;yCAAtB,sBAAsB;2CAAtB,sBAAsB;AAUlC;;ACdD,cAMa,WAAW;AACtB;AACA;AACA;AAIA,sBAAkB,qBAAqB;;yCAP5B,WAAW;2CAAX,WAAW;AAevB;;UCdgB,qBAAqB;AACpC,eAAW,eAAe;AAC1B,SAAK,eAAe;AACrB;AAED,cAKa,aAAa;AACxB,8CACc,aAAa,gCAEb,qBAAqB;AAKnC;AACA;AACA;;yCAXW,aAAa;2CAAb,aAAa;AA0BzB;;;;","names":["DrawerStack","DrawerElementIds","DrawerSnapPoint","DrawerSwipeDirection","DrawerFocusOutsideEvent","DrawerInteractOutsideEvent","DrawerPointerDownOutsideEvent","DrawerOpenChangeDetails","DrawerTriggerValueChangeDetails","DrawerSnapPointChangeDetails"]}
|
|
@@ -92,7 +92,7 @@ declare class FieldRoot implements UseFieldReturn {
|
|
|
92
92
|
getItemLabelId(value: string): string;
|
|
93
93
|
constructor();
|
|
94
94
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldRoot, never>;
|
|
95
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldRoot, "[
|
|
95
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldRoot, "[field-root]", ["fieldRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "elementIds": { "alias": "ids"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "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; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
declare class FieldRootProvider implements UseFieldReturn {
|
|
@@ -122,50 +122,50 @@ declare class FieldRootProvider implements UseFieldReturn {
|
|
|
122
122
|
getItemLabelId(value: string): string;
|
|
123
123
|
constructor();
|
|
124
124
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldRootProvider, never>;
|
|
125
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldRootProvider, "[
|
|
125
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldRootProvider, "[field-root-provider]", ["fieldRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
declare class FieldLabel {
|
|
129
129
|
constructor();
|
|
130
130
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldLabel, never>;
|
|
131
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldLabel, "[
|
|
131
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldLabel, "[field-label]", ["fieldLabel"], {}, {}, never, never, true, never>;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
declare class FieldInput {
|
|
135
135
|
constructor();
|
|
136
136
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldInput, never>;
|
|
137
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldInput, "[
|
|
137
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldInput, "[field-input]", ["fieldInput"], {}, {}, never, never, true, never>;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
declare class FieldTextarea {
|
|
141
141
|
readonly autoresize: InputSignalWithTransform<boolean, unknown>;
|
|
142
142
|
constructor();
|
|
143
143
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldTextarea, never>;
|
|
144
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldTextarea, "[
|
|
144
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldTextarea, "[field-textarea]", ["fieldTextarea"], { "autoresize": { "alias": "autoresize"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
declare class FieldSelect {
|
|
148
148
|
constructor();
|
|
149
149
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldSelect, never>;
|
|
150
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldSelect, "[
|
|
150
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldSelect, "[field-select]", ["fieldSelect"], {}, {}, never, never, true, never>;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
declare class FieldHelperText {
|
|
154
154
|
constructor();
|
|
155
155
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldHelperText, never>;
|
|
156
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldHelperText, "[
|
|
156
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldHelperText, "[field-helper-text]", ["fieldHelperText"], {}, {}, never, never, true, never>;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
declare class FieldErrorText {
|
|
160
160
|
constructor();
|
|
161
161
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldErrorText, never>;
|
|
162
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldErrorText, "[
|
|
162
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldErrorText, "[field-error-text]", ["fieldErrorText"], {}, {}, never, never, true, never>;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
declare class FieldRequiredIndicator {
|
|
166
166
|
constructor();
|
|
167
167
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldRequiredIndicator, never>;
|
|
168
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldRequiredIndicator, "[
|
|
168
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldRequiredIndicator, "[field-required-indicator]", ["fieldRequiredIndicator"], {}, {}, never, never, true, never>;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
declare class FieldItem implements UseFieldReturn {
|
|
@@ -197,7 +197,7 @@ declare class FieldItem implements UseFieldReturn {
|
|
|
197
197
|
getItemControlId(value: string): string;
|
|
198
198
|
getItemLabelId(value: string): string;
|
|
199
199
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldItem, never>;
|
|
200
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldItem, "[
|
|
200
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldItem, "[field-item]", ["fieldItem"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
export { FIELD_CONTEXT, FieldErrorText, FieldHelperText, FieldInput, FieldItem, FieldLabel, FieldRequiredIndicator, FieldRoot, FieldRootProvider, FieldSelect, FieldTextarea, fieldAnatomy, injectFieldContext, injectFieldContextOptional, useField };
|
|
@@ -59,7 +59,7 @@ declare class FieldsetRoot implements UseFieldsetReturn {
|
|
|
59
59
|
getErrorTextProps(): Record<string, unknown>;
|
|
60
60
|
constructor();
|
|
61
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldsetRoot, never>;
|
|
62
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldsetRoot, "[
|
|
62
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldsetRoot, "[fieldset-root]", ["fieldsetRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
declare class FieldsetRootProvider implements UseFieldsetReturn {
|
|
@@ -80,25 +80,25 @@ declare class FieldsetRootProvider implements UseFieldsetReturn {
|
|
|
80
80
|
getErrorTextProps(): Record<string, unknown>;
|
|
81
81
|
constructor();
|
|
82
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldsetRootProvider, never>;
|
|
83
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldsetRootProvider, "[
|
|
83
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldsetRootProvider, "[fieldset-root-provider]", ["fieldsetRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
declare class FieldsetLegend {
|
|
87
87
|
constructor();
|
|
88
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldsetLegend, never>;
|
|
89
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldsetLegend, "[
|
|
89
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldsetLegend, "[fieldset-legend]", ["fieldsetLegend"], {}, {}, never, never, true, never>;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
declare class FieldsetHelperText {
|
|
93
93
|
constructor();
|
|
94
94
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldsetHelperText, never>;
|
|
95
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldsetHelperText, "[
|
|
95
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldsetHelperText, "[fieldset-helper-text]", ["fieldsetHelperText"], {}, {}, never, never, true, never>;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
declare class FieldsetErrorText {
|
|
99
99
|
constructor();
|
|
100
100
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldsetErrorText, never>;
|
|
101
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldsetErrorText, "[
|
|
101
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldsetErrorText, "[fieldset-error-text]", ["fieldsetErrorText"], {}, {}, never, never, true, never>;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
export { FIELDSET_CONTEXT, FieldsetErrorText, FieldsetHelperText, FieldsetLegend, FieldsetRoot, FieldsetRootProvider, fieldsetAnatomy, injectFieldsetContext, injectFieldsetContextOptional, useFieldset };
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirekyt/angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"description": "Angular adapter for Wirekyt",
|
|
5
|
-
"readme": "README.md",
|
|
6
5
|
"files": [
|
|
7
6
|
"dist",
|
|
8
7
|
"README.md"
|
|
@@ -76,6 +75,10 @@
|
|
|
76
75
|
"types": "./dist/types/wirekyt-angular-download-trigger.d.ts",
|
|
77
76
|
"default": "./dist/fesm2022/wirekyt-angular-download-trigger.mjs"
|
|
78
77
|
},
|
|
78
|
+
"./drawer": {
|
|
79
|
+
"types": "./dist/types/wirekyt-angular-drawer.d.ts",
|
|
80
|
+
"default": "./dist/fesm2022/wirekyt-angular-drawer.mjs"
|
|
81
|
+
},
|
|
79
82
|
"./field": {
|
|
80
83
|
"types": "./dist/types/wirekyt-angular-field.d.ts",
|
|
81
84
|
"default": "./dist/fesm2022/wirekyt-angular-field.mjs"
|
|
@@ -97,7 +100,7 @@
|
|
|
97
100
|
"dependencies": {
|
|
98
101
|
"@internationalized/date": "^3.12.3",
|
|
99
102
|
"@internationalized/number": "^3.6.7",
|
|
100
|
-
"@wirekyt/dom": "0.0.
|
|
103
|
+
"@wirekyt/dom": "0.0.18",
|
|
101
104
|
"tslib": "^2.8.1"
|
|
102
105
|
},
|
|
103
106
|
"peerDependencies": {
|
|
@@ -105,6 +108,7 @@
|
|
|
105
108
|
"@angular/core": ">=22.0.0",
|
|
106
109
|
"@angular/forms": ">=22.0.0"
|
|
107
110
|
},
|
|
111
|
+
"readme": "README.md",
|
|
108
112
|
"scripts": {
|
|
109
113
|
"build": "ng build @wirekyt/angular",
|
|
110
114
|
"test": "vitest",
|