@wirekyt/angular 0.0.33 → 0.0.35
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-json-tree-view.mjs +0 -5
- package/dist/fesm2022/wirekyt-angular-json-tree-view.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-listbox.mjs +627 -0
- package/dist/fesm2022/wirekyt-angular-listbox.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-marquee.mjs +296 -0
- package/dist/fesm2022/wirekyt-angular-marquee.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-menu.mjs +0 -6
- package/dist/fesm2022/wirekyt-angular-menu.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-navigation-menu.mjs +777 -0
- package/dist/fesm2022/wirekyt-angular-navigation-menu.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-number-input.mjs +467 -0
- package/dist/fesm2022/wirekyt-angular-number-input.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-pagination.mjs +321 -0
- package/dist/fesm2022/wirekyt-angular-pagination.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-password-input.mjs +437 -0
- package/dist/fesm2022/wirekyt-angular-password-input.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-pin-input.mjs +485 -0
- package/dist/fesm2022/wirekyt-angular-pin-input.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-portal.mjs +98 -0
- package/dist/fesm2022/wirekyt-angular-portal.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-progress.mjs +337 -0
- package/dist/fesm2022/wirekyt-angular-progress.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-qr-code.mjs +297 -0
- package/dist/fesm2022/wirekyt-angular-qr-code.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-radio-group.mjs +461 -0
- package/dist/fesm2022/wirekyt-angular-radio-group.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-rating-group.mjs +435 -0
- package/dist/fesm2022/wirekyt-angular-rating-group.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-scroll-area.mjs +276 -0
- package/dist/fesm2022/wirekyt-angular-scroll-area.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-segment-group.mjs +506 -0
- package/dist/fesm2022/wirekyt-angular-segment-group.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-signature-pad.mjs +382 -0
- package/dist/fesm2022/wirekyt-angular-signature-pad.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-slider.mjs +574 -0
- package/dist/fesm2022/wirekyt-angular-slider.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-splitter.mjs +303 -0
- package/dist/fesm2022/wirekyt-angular-splitter.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-steps.mjs +465 -0
- package/dist/fesm2022/wirekyt-angular-steps.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-swap.mjs +192 -0
- package/dist/fesm2022/wirekyt-angular-swap.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-switch.mjs +340 -0
- package/dist/fesm2022/wirekyt-angular-switch.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-tags-input.mjs +645 -0
- package/dist/fesm2022/wirekyt-angular-tags-input.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-timer.mjs +294 -0
- package/dist/fesm2022/wirekyt-angular-timer.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-toggle-group.mjs +194 -0
- package/dist/fesm2022/wirekyt-angular-toggle-group.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-toggle.mjs +170 -0
- package/dist/fesm2022/wirekyt-angular-toggle.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-tour.mjs +806 -0
- package/dist/fesm2022/wirekyt-angular-tour.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular.mjs +12 -4
- package/dist/fesm2022/wirekyt-angular.mjs.map +1 -1
- package/dist/package.json +101 -1
- package/dist/types/wirekyt-angular-checkbox.d.ts +1 -1
- package/dist/types/wirekyt-angular-color-picker.d.ts +1 -1
- package/dist/types/wirekyt-angular-combobox.d.ts +1 -1
- package/dist/types/wirekyt-angular-date-picker.d.ts +1 -1
- package/dist/types/wirekyt-angular-json-tree-view.d.ts +0 -5
- package/dist/types/wirekyt-angular-json-tree-view.d.ts.map +1 -1
- package/dist/types/wirekyt-angular-listbox.d.ts +206 -0
- package/dist/types/wirekyt-angular-listbox.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-marquee.d.ts +111 -0
- package/dist/types/wirekyt-angular-marquee.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-menu.d.ts +0 -23
- package/dist/types/wirekyt-angular-menu.d.ts.map +1 -1
- package/dist/types/wirekyt-angular-navigation-menu.d.ts +187 -0
- package/dist/types/wirekyt-angular-navigation-menu.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-number-input.d.ts +143 -0
- package/dist/types/wirekyt-angular-number-input.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-pagination.d.ts +114 -0
- package/dist/types/wirekyt-angular-pagination.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-password-input.d.ts +124 -0
- package/dist/types/wirekyt-angular-password-input.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-pin-input.d.ts +131 -0
- package/dist/types/wirekyt-angular-pin-input.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-portal.d.ts +30 -0
- package/dist/types/wirekyt-angular-portal.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-progress.d.ts +129 -0
- package/dist/types/wirekyt-angular-progress.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-qr-code.d.ts +98 -0
- package/dist/types/wirekyt-angular-qr-code.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-radio-group.d.ts +149 -0
- package/dist/types/wirekyt-angular-radio-group.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-rating-group.d.ts +136 -0
- package/dist/types/wirekyt-angular-rating-group.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-scroll-area.d.ts +106 -0
- package/dist/types/wirekyt-angular-scroll-area.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-segment-group.d.ts +152 -0
- package/dist/types/wirekyt-angular-segment-group.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-signature-pad.d.ts +120 -0
- package/dist/types/wirekyt-angular-signature-pad.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-slider.d.ts +176 -0
- package/dist/types/wirekyt-angular-slider.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-splitter.d.ts +116 -0
- package/dist/types/wirekyt-angular-splitter.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-steps.d.ts +160 -0
- package/dist/types/wirekyt-angular-steps.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-swap.d.ts +86 -0
- package/dist/types/wirekyt-angular-swap.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-switch.d.ts +110 -0
- package/dist/types/wirekyt-angular-switch.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-tags-input.d.ts +193 -0
- package/dist/types/wirekyt-angular-tags-input.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-timer.d.ts +109 -0
- package/dist/types/wirekyt-angular-timer.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-toggle-group.d.ts +81 -0
- package/dist/types/wirekyt-angular-toggle-group.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-toggle.d.ts +69 -0
- package/dist/types/wirekyt-angular-toggle.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-tour.d.ts +209 -0
- package/dist/types/wirekyt-angular-tour.d.ts.map +1 -0
- package/dist/types/wirekyt-angular.d.ts +1 -1
- package/package.json +102 -3
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import * as signaturePad from '@wirekyt/dom/machines/signature-pad';
|
|
2
|
+
import { ElementIds, IntlTranslations, DrawingOptions, DrawDetails, DrawEndDetails } from '@wirekyt/dom/machines/signature-pad';
|
|
3
|
+
export { Api as SignaturePadApi, DataUrlOptions as SignaturePadDataUrlOptions, DataUrlType as SignaturePadDataUrlType, DrawDetails as SignaturePadDrawDetails, DrawEndDetails as SignaturePadDrawEndDetails, DrawingOptions as SignaturePadDrawingOptions, ElementIds as SignaturePadElementIds, HiddenInputProps as SignaturePadHiddenInputMachineProps, IntlTranslations as SignaturePadIntlTranslations, Machine as SignaturePadMachine, Props as SignaturePadMachineProps, Point as SignaturePadPoint, SegmentPathProps as SignaturePadSegmentPathMachineProps, Service as SignaturePadService, anatomy as signaturePadAnatomy } from '@wirekyt/dom/machines/signature-pad';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { InjectionToken, InputSignal, InputSignalWithTransform, ModelSignal, OutputEmitterRef, Signal } from '@angular/core';
|
|
6
|
+
import { UseMachineReturn } from '@wirekyt/angular';
|
|
7
|
+
|
|
8
|
+
type OptionalId<T extends {
|
|
9
|
+
id: string;
|
|
10
|
+
}> = Omit<T, "id"> & {
|
|
11
|
+
id?: string;
|
|
12
|
+
};
|
|
13
|
+
interface UseSignaturePadProps extends OptionalId<Omit<signaturePad.Props, "dir" | "getRootNode">> {
|
|
14
|
+
}
|
|
15
|
+
type UseSignaturePadReturn = UseMachineReturn<signaturePad.Service["state"], signaturePad.Api, signaturePad.Service>;
|
|
16
|
+
interface UseSignaturePadOptions {
|
|
17
|
+
context: () => UseSignaturePadProps;
|
|
18
|
+
}
|
|
19
|
+
declare function useSignaturePad(options: UseSignaturePadOptions): UseSignaturePadReturn;
|
|
20
|
+
|
|
21
|
+
declare const SIGNATURE_PAD_CONTEXT: InjectionToken<UseSignaturePadReturn>;
|
|
22
|
+
declare function injectSignaturePadContext(): UseSignaturePadReturn;
|
|
23
|
+
|
|
24
|
+
declare class SignaturePadRoot implements UseSignaturePadReturn {
|
|
25
|
+
readonly id: InputSignal<string | undefined>;
|
|
26
|
+
readonly ids: InputSignal<Partial<ElementIds> | undefined>;
|
|
27
|
+
readonly translations: InputSignal<IntlTranslations | undefined>;
|
|
28
|
+
readonly drawing: InputSignal<DrawingOptions | undefined>;
|
|
29
|
+
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
30
|
+
readonly readOnly: InputSignalWithTransform<boolean, unknown>;
|
|
31
|
+
readonly required: InputSignalWithTransform<boolean, unknown>;
|
|
32
|
+
readonly name: InputSignal<string | undefined>;
|
|
33
|
+
readonly paths: ModelSignal<string[] | undefined>;
|
|
34
|
+
readonly defaultPaths: InputSignal<string[] | undefined>;
|
|
35
|
+
readonly draw: OutputEmitterRef<DrawDetails>;
|
|
36
|
+
readonly drawEnd: OutputEmitterRef<DrawEndDetails>;
|
|
37
|
+
private readonly machine;
|
|
38
|
+
readonly state: Signal<signaturePad.Service["state"]>;
|
|
39
|
+
readonly api: Signal<signaturePad.Api>;
|
|
40
|
+
readonly service: signaturePad.Service;
|
|
41
|
+
readonly send: signaturePad.Service["send"];
|
|
42
|
+
constructor();
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SignaturePadRoot, never>;
|
|
44
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SignaturePadRoot, "[signature-pad-root]", ["signaturePadRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ids": { "alias": "ids"; "required": false; "isSignal": true; }; "translations": { "alias": "translations"; "required": false; "isSignal": true; }; "drawing": { "alias": "drawing"; "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; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "paths": { "alias": "paths"; "required": false; "isSignal": true; }; "defaultPaths": { "alias": "defaultPaths"; "required": false; "isSignal": true; }; }, { "paths": "pathsChange"; "draw": "draw"; "drawEnd": "drawEnd"; }, never, never, true, never>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare class SignaturePadRootProvider implements UseSignaturePadReturn {
|
|
48
|
+
readonly value: InputSignal<UseSignaturePadReturn>;
|
|
49
|
+
readonly state: Signal<signaturePad.Service["state"]>;
|
|
50
|
+
readonly api: Signal<signaturePad.Api>;
|
|
51
|
+
readonly send: signaturePad.Service["send"];
|
|
52
|
+
get service(): signaturePad.Service;
|
|
53
|
+
constructor();
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SignaturePadRootProvider, never>;
|
|
55
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SignaturePadRootProvider, "[signature-pad-root-provider]", ["signaturePadRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
declare class SignaturePadControl {
|
|
59
|
+
constructor();
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SignaturePadControl, never>;
|
|
61
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SignaturePadControl, "[signature-pad-control]", ["signaturePadControl"], {}, {}, never, never, true, never>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare class SignaturePadSegment {
|
|
65
|
+
private readonly elementRef;
|
|
66
|
+
private readonly renderer;
|
|
67
|
+
private readonly context;
|
|
68
|
+
private readonly managedNodes;
|
|
69
|
+
constructor();
|
|
70
|
+
private renderPaths;
|
|
71
|
+
private applyPathProp;
|
|
72
|
+
private resolveTitleText;
|
|
73
|
+
private appendManagedNode;
|
|
74
|
+
private clearManagedNodes;
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SignaturePadSegment, never>;
|
|
76
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SignaturePadSegment, "svg[signature-pad-segment]", ["signaturePadSegment"], {}, {}, never, never, true, never>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
declare class SignaturePadClearTrigger {
|
|
80
|
+
constructor();
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SignaturePadClearTrigger, never>;
|
|
82
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SignaturePadClearTrigger, "[signature-pad-clear-trigger]", ["signaturePadClearTrigger"], {}, {}, never, never, true, never>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
declare class SignaturePadGuide {
|
|
86
|
+
constructor();
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SignaturePadGuide, never>;
|
|
88
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SignaturePadGuide, "[signature-pad-guide]", ["signaturePadGuide"], {}, {}, never, never, true, never>;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare class SignaturePadHiddenInput {
|
|
92
|
+
readonly value: InputSignal<string>;
|
|
93
|
+
constructor();
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SignaturePadHiddenInput, never>;
|
|
95
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SignaturePadHiddenInput, "input[signature-pad-hidden-input]", ["signaturePadHiddenInput"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
declare class SignaturePadLabel {
|
|
99
|
+
constructor();
|
|
100
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SignaturePadLabel, never>;
|
|
101
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SignaturePadLabel, "[signature-pad-label]", ["signaturePadLabel"], {}, {}, never, never, true, never>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
interface SignaturePadContextTemplate {
|
|
105
|
+
$implicit: UseSignaturePadReturn["api"];
|
|
106
|
+
api: UseSignaturePadReturn["api"];
|
|
107
|
+
}
|
|
108
|
+
declare class SignaturePadContext {
|
|
109
|
+
static ngTemplateContextGuard(_directive: SignaturePadContext, context: unknown): context is SignaturePadContextTemplate;
|
|
110
|
+
private readonly signaturePad;
|
|
111
|
+
private readonly templateRef;
|
|
112
|
+
private readonly viewContainer;
|
|
113
|
+
constructor();
|
|
114
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SignaturePadContext, never>;
|
|
115
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SignaturePadContext, "[signature-pad-context]", ["signaturePadContext"], {}, {}, never, never, true, never>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export { SIGNATURE_PAD_CONTEXT, SignaturePadClearTrigger, SignaturePadContext, SignaturePadControl, SignaturePadGuide, SignaturePadHiddenInput, SignaturePadLabel, SignaturePadRoot, SignaturePadRootProvider, SignaturePadSegment, injectSignaturePadContext, useSignaturePad };
|
|
119
|
+
export type { SignaturePadContextTemplate, UseSignaturePadOptions, UseSignaturePadProps, UseSignaturePadReturn };
|
|
120
|
+
//# sourceMappingURL=wirekyt-angular-signature-pad.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-signature-pad.d.ts","sources":["../../src/components/signature-pad/use.ts","../../src/components/signature-pad/use-context.ts","../../src/components/signature-pad/root.ts","../../src/components/signature-pad/root-provider.ts","../../src/components/signature-pad/control.ts","../../src/components/signature-pad/segment.ts","../../src/components/signature-pad/clear-trigger.ts","../../src/components/signature-pad/guide.ts","../../src/components/signature-pad/hidden-input.ts","../../src/components/signature-pad/label.ts","../../src/components/signature-pad/context.ts"],"mappings":";;;;;;;AAYA,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,oBAAqB,SAAQ,UAAU,CACtD,IAAI,CAAC,YAAY,CAAC,KAAK;AACrB;AAEE,KAAM,qBAAqB,GAAG,gBAAgB,CAClD,YAAY,CAAC,OAAO,WACpB,YAAY,CAAC,GAAG,EAChB,YAAY,CAAC,OAAO;UAGL,sBAAsB;mBACtB,oBAAoB;AACpC;AAcD,iBAAgB,eAAe,UAAU,sBAAsB,GAAG,qBAAqB;;ACpCvF,cAAa,qBAAqB,EAAA,cAAA,CAAA,qBAAA;AAIlC,iBAAgB,yBAAyB,I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U7B;;UCPgB,2BAA2B;AAC1C,eAAW,qBAAqB;AAChC,SAAK,qBAAqB;AAC3B;AAED,cAKa,mBAAmB;AAC9B,8CACc,mBAAmB,gCAEnB,2BAA2B;AAKzC;AACA;AACA;;yCAXW,mBAAmB;2CAAnB,mBAAmB;AA0B/B;;;;","names":["SignaturePadElementIds","SignaturePadIntlTranslations","SignaturePadDrawingOptions","SignaturePadDrawDetails","SignaturePadDrawEndDetails"]}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import * as slider from '@wirekyt/dom/machines/slider';
|
|
2
|
+
import { Props, ThumbProps, ElementIds, ThumbAlignment, ThumbCollisionBehavior, ValueTextDetails, ValueChangeDetails, FocusChangeDetails } from '@wirekyt/dom/machines/slider';
|
|
3
|
+
export { Api as SliderApi, DraggingIndicatorProps as SliderDraggingIndicatorProps, ElementIds as SliderElementIds, FocusChangeDetails as SliderFocusChangeDetails, Machine as SliderMachine, Props as SliderMachineProps, MarkerProps as SliderMarkerProps, Service as SliderService, ThumbAlignment as SliderThumbAlignment, ThumbCollisionBehavior as SliderThumbCollisionBehavior, ThumbProps as SliderThumbProps, ValueChangeDetails as SliderValueChangeDetails, ValueTextDetails as SliderValueTextDetails, anatomy as sliderAnatomy } from '@wirekyt/dom/machines/slider';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { InjectionToken, Signal, InputSignal, ModelSignal, InputSignalWithTransform, OutputEmitterRef } from '@angular/core';
|
|
6
|
+
import { UseMachineReturn } from '@wirekyt/angular';
|
|
7
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
8
|
+
|
|
9
|
+
type OptionalId<T extends {
|
|
10
|
+
id: string;
|
|
11
|
+
}> = Omit<T, "id"> & {
|
|
12
|
+
id?: string;
|
|
13
|
+
};
|
|
14
|
+
interface UseSliderProps extends OptionalId<Omit<Props, "dir" | "getRootNode">> {
|
|
15
|
+
}
|
|
16
|
+
type UseSliderReturn = UseMachineReturn<slider.Service["state"], slider.Api, slider.Service>;
|
|
17
|
+
interface UseSliderOptions {
|
|
18
|
+
context: () => UseSliderProps;
|
|
19
|
+
}
|
|
20
|
+
declare function useSlider(options: UseSliderOptions): UseSliderReturn;
|
|
21
|
+
|
|
22
|
+
declare const SLIDER_CONTEXT: InjectionToken<UseSliderReturn>;
|
|
23
|
+
declare function injectSliderContext(): UseSliderReturn;
|
|
24
|
+
|
|
25
|
+
interface SliderThumbPropsContext {
|
|
26
|
+
readonly thumbProps: Signal<ThumbProps>;
|
|
27
|
+
}
|
|
28
|
+
declare const SLIDER_THUMB_PROPS_CONTEXT: InjectionToken<SliderThumbPropsContext>;
|
|
29
|
+
declare function injectSliderThumbPropsContext(): SliderThumbPropsContext;
|
|
30
|
+
|
|
31
|
+
declare class SliderRoot implements ControlValueAccessor, UseSliderReturn {
|
|
32
|
+
readonly id: InputSignal<string | undefined>;
|
|
33
|
+
readonly elementIds: InputSignal<ElementIds | undefined>;
|
|
34
|
+
readonly ariaLabel: InputSignal<string[] | undefined>;
|
|
35
|
+
readonly ariaLabelledby: InputSignal<string[] | undefined>;
|
|
36
|
+
readonly value: ModelSignal<number[] | undefined>;
|
|
37
|
+
readonly defaultValue: InputSignal<number[] | undefined>;
|
|
38
|
+
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
39
|
+
readonly readOnly: InputSignalWithTransform<boolean, unknown>;
|
|
40
|
+
readonly invalid: InputSignalWithTransform<boolean, unknown>;
|
|
41
|
+
readonly name: InputSignal<string | undefined>;
|
|
42
|
+
readonly form: InputSignal<string | undefined>;
|
|
43
|
+
readonly min: InputSignal<number | undefined>;
|
|
44
|
+
readonly max: InputSignal<number | undefined>;
|
|
45
|
+
readonly step: InputSignal<number | undefined>;
|
|
46
|
+
readonly largeStep: InputSignal<number | undefined>;
|
|
47
|
+
readonly minStepsBetweenThumbs: InputSignal<number | undefined>;
|
|
48
|
+
readonly orientation: InputSignal<"horizontal" | "vertical" | undefined>;
|
|
49
|
+
readonly origin: InputSignal<"start" | "center" | "end" | undefined>;
|
|
50
|
+
readonly thumbAlignment: InputSignal<ThumbAlignment | undefined>;
|
|
51
|
+
readonly thumbSize: InputSignal<{
|
|
52
|
+
width: number;
|
|
53
|
+
height: number;
|
|
54
|
+
} | undefined>;
|
|
55
|
+
readonly thumbCollisionBehavior: InputSignal<ThumbCollisionBehavior | undefined>;
|
|
56
|
+
readonly getAriaValueText: InputSignal<((details: ValueTextDetails) => string) | undefined>;
|
|
57
|
+
readonly valueDetailsChange: OutputEmitterRef<ValueChangeDetails>;
|
|
58
|
+
readonly valueChangeEnd: OutputEmitterRef<ValueChangeDetails>;
|
|
59
|
+
readonly focusChange: OutputEmitterRef<FocusChangeDetails>;
|
|
60
|
+
private readonly _disabledFromForm;
|
|
61
|
+
private _pendingInternalWrites;
|
|
62
|
+
private _hasExternalBinding;
|
|
63
|
+
private _hasReceivedFormWrite;
|
|
64
|
+
private readonly cva;
|
|
65
|
+
private readonly machine;
|
|
66
|
+
readonly state: Signal<slider.Service["state"]>;
|
|
67
|
+
readonly api: Signal<slider.Api>;
|
|
68
|
+
readonly service: slider.Service;
|
|
69
|
+
readonly send: slider.Service["send"];
|
|
70
|
+
constructor();
|
|
71
|
+
writeValue(value: number[] | null): void;
|
|
72
|
+
registerOnChange(fn: (value: number[] | undefined) => void): void;
|
|
73
|
+
registerOnTouched(fn: () => void): void;
|
|
74
|
+
setDisabledState(disabled: boolean): void;
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderRoot, never>;
|
|
76
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderRoot, "[slider-root]", ["sliderRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "elementIds": { "alias": "ids"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "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; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "largeStep": { "alias": "largeStep"; "required": false; "isSignal": true; }; "minStepsBetweenThumbs": { "alias": "minStepsBetweenThumbs"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "origin": { "alias": "origin"; "required": false; "isSignal": true; }; "thumbAlignment": { "alias": "thumbAlignment"; "required": false; "isSignal": true; }; "thumbSize": { "alias": "thumbSize"; "required": false; "isSignal": true; }; "thumbCollisionBehavior": { "alias": "thumbCollisionBehavior"; "required": false; "isSignal": true; }; "getAriaValueText": { "alias": "getAriaValueText"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueDetailsChange": "valueDetailsChange"; "valueChangeEnd": "valueChangeEnd"; "focusChange": "focusChange"; }, never, never, true, never>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
declare class SliderRootProvider implements UseSliderReturn {
|
|
80
|
+
readonly value: InputSignal<UseSliderReturn>;
|
|
81
|
+
get state(): Signal<slider.Service["state"]>;
|
|
82
|
+
get api(): Signal<slider.Api>;
|
|
83
|
+
get service(): slider.Service;
|
|
84
|
+
get send(): slider.Service["send"];
|
|
85
|
+
constructor();
|
|
86
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderRootProvider, never>;
|
|
87
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderRootProvider, "[slider-root-provider]", ["sliderRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare class SliderLabel {
|
|
91
|
+
constructor();
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderLabel, never>;
|
|
93
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderLabel, "[slider-label]", ["sliderLabel"], {}, {}, never, never, true, never>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
declare class SliderValueText {
|
|
97
|
+
private readonly context;
|
|
98
|
+
readonly value: Signal<number[]>;
|
|
99
|
+
readonly valueAsString: Signal<string>;
|
|
100
|
+
constructor();
|
|
101
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderValueText, never>;
|
|
102
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderValueText, "[slider-value-text]", ["sliderValueText"], {}, {}, never, never, true, never>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
declare class SliderControl {
|
|
106
|
+
constructor();
|
|
107
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderControl, never>;
|
|
108
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderControl, "[slider-control]", ["sliderControl"], {}, {}, never, never, true, never>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
declare class SliderTrack {
|
|
112
|
+
constructor();
|
|
113
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderTrack, never>;
|
|
114
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderTrack, "[slider-track]", ["sliderTrack"], {}, {}, never, never, true, never>;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
declare class SliderRange {
|
|
118
|
+
constructor();
|
|
119
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderRange, never>;
|
|
120
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderRange, "[slider-range]", ["sliderRange"], {}, {}, never, never, true, never>;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
declare class SliderThumb implements SliderThumbPropsContext {
|
|
124
|
+
readonly index: InputSignalWithTransform<number, unknown>;
|
|
125
|
+
readonly name: InputSignal<string | undefined>;
|
|
126
|
+
readonly thumbProps: Signal<ThumbProps>;
|
|
127
|
+
constructor();
|
|
128
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderThumb, never>;
|
|
129
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderThumb, "[slider-thumb]", ["sliderThumb"], { "index": { "alias": "index"; "required": true; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
declare class SliderHiddenInput {
|
|
133
|
+
constructor();
|
|
134
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderHiddenInput, never>;
|
|
135
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderHiddenInput, "[slider-hidden-input]", ["sliderHiddenInput"], {}, {}, never, never, true, never>;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
declare class SliderDraggingIndicator {
|
|
139
|
+
private readonly context;
|
|
140
|
+
private readonly thumb;
|
|
141
|
+
readonly value: Signal<number | undefined>;
|
|
142
|
+
constructor();
|
|
143
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderDraggingIndicator, never>;
|
|
144
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderDraggingIndicator, "[slider-dragging-indicator]", ["sliderDraggingIndicator"], {}, {}, never, never, true, never>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
declare class SliderMarkerGroup {
|
|
148
|
+
constructor();
|
|
149
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderMarkerGroup, never>;
|
|
150
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderMarkerGroup, "[slider-marker-group]", ["sliderMarkerGroup"], {}, {}, never, never, true, never>;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
declare class SliderMarker {
|
|
154
|
+
readonly value: InputSignalWithTransform<number, unknown>;
|
|
155
|
+
constructor();
|
|
156
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderMarker, never>;
|
|
157
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderMarker, "[slider-marker]", ["sliderMarker"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
interface SliderContextTemplate {
|
|
161
|
+
$implicit: UseSliderReturn["api"];
|
|
162
|
+
api: UseSliderReturn["api"];
|
|
163
|
+
}
|
|
164
|
+
declare class SliderContext {
|
|
165
|
+
static ngTemplateContextGuard(_directive: SliderContext, context: unknown): context is SliderContextTemplate;
|
|
166
|
+
private readonly slider;
|
|
167
|
+
private readonly templateRef;
|
|
168
|
+
private readonly viewContainer;
|
|
169
|
+
constructor();
|
|
170
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderContext, never>;
|
|
171
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderContext, "[slider-context]", ["sliderContext"], {}, {}, never, never, true, never>;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export { SLIDER_CONTEXT, SLIDER_THUMB_PROPS_CONTEXT, SliderContext, SliderControl, SliderDraggingIndicator, SliderHiddenInput, SliderLabel, SliderMarker, SliderMarkerGroup, SliderRange, SliderRoot, SliderRootProvider, SliderThumb, SliderTrack, SliderValueText, injectSliderContext, injectSliderThumbPropsContext, useSlider };
|
|
175
|
+
export type { SliderContextTemplate, SliderThumbPropsContext, UseSliderOptions, UseSliderProps, UseSliderReturn };
|
|
176
|
+
//# sourceMappingURL=wirekyt-angular-slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-slider.d.ts","sources":["../../src/components/slider/use.ts","../../src/components/slider/use-context.ts","../../src/components/slider/use-thumb-props-context.ts","../../src/components/slider/root.ts","../../src/components/slider/root-provider.ts","../../src/components/slider/label.ts","../../src/components/slider/value-text.ts","../../src/components/slider/control.ts","../../src/components/slider/track.ts","../../src/components/slider/range.ts","../../src/components/slider/thumb.ts","../../src/components/slider/hidden-input.ts","../../src/components/slider/dragging-indicator.ts","../../src/components/slider/marker-group.ts","../../src/components/slider/marker.ts","../../src/components/slider/context.ts"],"mappings":";;;;;;;;AAcA,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,cAAe,SAAQ,UAAU,CAChD,IAAI,CAACA,KAAkB;AACrB;AAEE,KAAM,eAAe,GAAG,gBAAgB,CAAC,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,OAAO;UAEjF,gBAAgB;mBAChB,cAAc;AAC9B;AAcD,iBAAgB,SAAS,UAAU,gBAAgB,GAAG,eAAe;;AClCrE,cAAa,cAAc,EAAA,cAAA,CAAA,eAAA;AAE3B,iBAAgB,mBAAmB,IAAI,eAAe;;UCFrC,uBAAuB;AACtC,yBAAqB,MAAM,CAACC,UAAgB;AAC7C;AAED,cAAa,0BAA0B,EAAA,cAAA,CAAA,uBAAA;AAIvC,iBAAgB,6BAA6B,IAAI,uBAAuB;;ACkCxE,cASa,UAAW,YAAW,oBAAoB,EAAE,eAAe;iBACzD,WAAW;yBACH,WAAW,CAACC,UAAgB;wBAK7B,WAAW;6BAGN,WAAW;oBAMpB,WAAW;2BACJ,WAAW;uBACf,wBAAwB;uBAGxB,wBAAwB;sBAGzB,wBAAwB;mBAG3B,WAAW;mBACX,WAAW;kBACZ,WAAW;kBACX,WAAW;mBACV,WAAW;wBACN,WAAW;oCACC,WAAW;0BAGrB,WAAW;AAGjC,qBAAiB,WAAW;6BAGH,WAAW,CAACC,cAAoB;AAGzD,wBAAoB,WAAW;;;;qCAGE,WAAW,CAACC,sBAA4B;AAGzE,+BAA2B,WAAW,YACzBC,gBAAsB;AAEnC,iCAA6B,gBAAgB,CAACC,kBAAwB;AAEtE,6BAAyB,gBAAgB,CAACA,kBAAwB;AAElE,0BAAsB,gBAAgB,CAACC,kBAAwB;AAG/D;;;;AAKA;AAOA;AA6CA,oBAAgB,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ED,cAKa,aAAa;AACxB,8CACc,aAAa,gCAEb,qBAAqB;AAKnC;AACA;AACA;;yCAXW,aAAa;2CAAb,aAAa;AA0BzB;;;;","names":["SliderMachineProps","SliderThumbProps","SliderElementIds","SliderThumbAlignment","SliderThumbCollisionBehavior","SliderValueTextDetails","SliderValueChangeDetails","SliderFocusChangeDetails"]}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import * as splitter from '@wirekyt/dom/machines/splitter';
|
|
2
|
+
import { ResizeTriggerId, ResizeTriggerState, ElementIds, PanelSize, PanelData, ResizeDetails, ResizeEndDetails, ExpandCollapseDetails, PanelId } from '@wirekyt/dom/machines/splitter';
|
|
3
|
+
export { Api as SplitterApi, ElementIds as SplitterElementIds, ExpandCollapseDetails as SplitterExpandCollapseDetails, HitAreaMargins as SplitterHitAreaMargins, Machine as SplitterMachine, Props as SplitterMachineProps, PanelData as SplitterPanelData, PanelId as SplitterPanelId, PanelItem as SplitterPanelItem, PanelProps as SplitterPanelProps, SplitterRegistry, SplitterRegistryOptions, ResizeDetails as SplitterResizeDetails, ResizeEndDetails as SplitterResizeEndDetails, ResizeEvent as SplitterResizeEvent, ResizeTriggerId as SplitterResizeTriggerId, ResizeTriggerItem as SplitterResizeTriggerItem, ResizeTriggerProps as SplitterResizeTriggerProps, ResizeTriggerState as SplitterResizeTriggerState, Service as SplitterService, layout as getSplitterLayout, anatomy as splitterAnatomy } from '@wirekyt/dom/machines/splitter';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { InjectionToken, Signal, InputSignal, ModelSignal, OutputEmitterRef, InputSignalWithTransform } from '@angular/core';
|
|
6
|
+
import { UseMachineReturn } from '@wirekyt/angular';
|
|
7
|
+
|
|
8
|
+
interface SplitterRegistryProps extends splitter.SplitterRegistryOptions {
|
|
9
|
+
}
|
|
10
|
+
interface SplitterRegistryReturn extends splitter.SplitterRegistry {
|
|
11
|
+
}
|
|
12
|
+
declare function createSplitterRegistry(props?: SplitterRegistryProps): SplitterRegistryReturn;
|
|
13
|
+
|
|
14
|
+
type OptionalId<T extends {
|
|
15
|
+
id: string;
|
|
16
|
+
}> = Omit<T, "id"> & {
|
|
17
|
+
id?: string;
|
|
18
|
+
};
|
|
19
|
+
interface UseSplitterProps extends OptionalId<Omit<splitter.Props, "dir" | "getRootNode">> {
|
|
20
|
+
}
|
|
21
|
+
type UseSplitterReturn = UseMachineReturn<splitter.Service["state"], splitter.Api, splitter.Service>;
|
|
22
|
+
interface UseSplitterOptions {
|
|
23
|
+
context: () => UseSplitterProps;
|
|
24
|
+
}
|
|
25
|
+
declare function useSplitter(options: UseSplitterOptions): UseSplitterReturn;
|
|
26
|
+
|
|
27
|
+
declare const SPLITTER_CONTEXT: InjectionToken<UseSplitterReturn>;
|
|
28
|
+
declare function injectSplitterContext(): UseSplitterReturn;
|
|
29
|
+
|
|
30
|
+
interface SplitterResizeTriggerContext {
|
|
31
|
+
readonly id: Signal<ResizeTriggerId>;
|
|
32
|
+
readonly disabled: Signal<boolean | undefined>;
|
|
33
|
+
readonly state: Signal<ResizeTriggerState>;
|
|
34
|
+
}
|
|
35
|
+
declare const SPLITTER_RESIZE_TRIGGER_CONTEXT: InjectionToken<SplitterResizeTriggerContext>;
|
|
36
|
+
declare function injectSplitterResizeTriggerContext(): SplitterResizeTriggerContext;
|
|
37
|
+
|
|
38
|
+
declare class SplitterRoot implements UseSplitterReturn {
|
|
39
|
+
readonly id: InputSignal<string | undefined>;
|
|
40
|
+
readonly ids: InputSignal<ElementIds | undefined>;
|
|
41
|
+
readonly orientation: InputSignal<splitter.Props["orientation"]>;
|
|
42
|
+
readonly size: ModelSignal<PanelSize[] | undefined>;
|
|
43
|
+
readonly defaultSize: InputSignal<PanelSize[] | undefined>;
|
|
44
|
+
readonly panels: InputSignal<PanelData[]>;
|
|
45
|
+
readonly keyboardResizeBy: InputSignal<number | null | undefined>;
|
|
46
|
+
readonly nonce: InputSignal<string | undefined>;
|
|
47
|
+
readonly registry: InputSignal<splitter.SplitterRegistry | undefined>;
|
|
48
|
+
readonly resize: OutputEmitterRef<ResizeDetails>;
|
|
49
|
+
readonly resizeStart: OutputEmitterRef<void>;
|
|
50
|
+
readonly resizeEnd: OutputEmitterRef<ResizeEndDetails>;
|
|
51
|
+
readonly collapse: OutputEmitterRef<ExpandCollapseDetails>;
|
|
52
|
+
readonly expand: OutputEmitterRef<ExpandCollapseDetails>;
|
|
53
|
+
private readonly fallbackPanels;
|
|
54
|
+
private readPanels;
|
|
55
|
+
private readonly machine;
|
|
56
|
+
readonly state: Signal<splitter.Service["state"]>;
|
|
57
|
+
readonly api: Signal<splitter.Api>;
|
|
58
|
+
readonly service: splitter.Service;
|
|
59
|
+
readonly send: splitter.Service["send"];
|
|
60
|
+
constructor();
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitterRoot, never>;
|
|
62
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SplitterRoot, "[splitter-root]", ["splitterRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ids": { "alias": "ids"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "defaultSize": { "alias": "defaultSize"; "required": false; "isSignal": true; }; "panels": { "alias": "panels"; "required": true; "isSignal": true; }; "keyboardResizeBy": { "alias": "keyboardResizeBy"; "required": false; "isSignal": true; }; "nonce": { "alias": "nonce"; "required": false; "isSignal": true; }; "registry": { "alias": "registry"; "required": false; "isSignal": true; }; }, { "size": "sizeChange"; "resize": "resize"; "resizeStart": "resizeStart"; "resizeEnd": "resizeEnd"; "collapse": "collapse"; "expand": "expand"; }, never, never, true, never>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
declare class SplitterRootProvider implements UseSplitterReturn {
|
|
66
|
+
readonly value: InputSignal<UseSplitterReturn>;
|
|
67
|
+
readonly state: Signal<splitter.Service["state"]>;
|
|
68
|
+
readonly api: Signal<splitter.Api>;
|
|
69
|
+
readonly send: splitter.Service["send"];
|
|
70
|
+
get service(): splitter.Service;
|
|
71
|
+
constructor();
|
|
72
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitterRootProvider, never>;
|
|
73
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SplitterRootProvider, "[splitter-root-provider]", ["splitterRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare class SplitterPanel {
|
|
77
|
+
readonly id: InputSignal<PanelId>;
|
|
78
|
+
constructor();
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitterPanel, never>;
|
|
80
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SplitterPanel, "[splitter-panel]", ["splitterPanel"], { "id": { "alias": "id"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare class SplitterResizeTrigger {
|
|
84
|
+
readonly id: InputSignal<ResizeTriggerId>;
|
|
85
|
+
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
86
|
+
private readonly root;
|
|
87
|
+
private readonly resizeTriggerContext;
|
|
88
|
+
constructor();
|
|
89
|
+
getResizeTriggerContext(): SplitterResizeTriggerContext;
|
|
90
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitterResizeTrigger, never>;
|
|
91
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SplitterResizeTrigger, "[splitter-resize-trigger]", ["splitterResizeTrigger"], { "id": { "alias": "id"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
declare class SplitterResizeTriggerIndicator {
|
|
95
|
+
constructor();
|
|
96
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitterResizeTriggerIndicator, never>;
|
|
97
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SplitterResizeTriggerIndicator, "[splitter-resize-trigger-indicator]", ["splitterResizeTriggerIndicator"], {}, {}, never, never, true, never>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
interface SplitterContextTemplate {
|
|
101
|
+
$implicit: UseSplitterReturn["api"];
|
|
102
|
+
api: UseSplitterReturn["api"];
|
|
103
|
+
}
|
|
104
|
+
declare class SplitterContext {
|
|
105
|
+
static ngTemplateContextGuard(_directive: SplitterContext, context: unknown): context is SplitterContextTemplate;
|
|
106
|
+
private readonly splitter;
|
|
107
|
+
private readonly templateRef;
|
|
108
|
+
private readonly viewContainer;
|
|
109
|
+
constructor();
|
|
110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitterContext, never>;
|
|
111
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SplitterContext, "[splitter-context]", ["splitterContext"], {}, {}, never, never, true, never>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export { SPLITTER_CONTEXT, SPLITTER_RESIZE_TRIGGER_CONTEXT, SplitterContext, SplitterPanel, SplitterResizeTrigger, SplitterResizeTriggerIndicator, SplitterRoot, SplitterRootProvider, createSplitterRegistry, injectSplitterContext, injectSplitterResizeTriggerContext, useSplitter };
|
|
115
|
+
export type { SplitterContextTemplate, SplitterRegistryProps, SplitterRegistryReturn, SplitterResizeTriggerContext, UseSplitterOptions, UseSplitterProps, UseSplitterReturn };
|
|
116
|
+
//# sourceMappingURL=wirekyt-angular-splitter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-splitter.d.ts","sources":["../../src/components/splitter/create-registry.ts","../../src/components/splitter/use.ts","../../src/components/splitter/use-context.ts","../../src/components/splitter/use-resize-trigger-context.ts","../../src/components/splitter/root.ts","../../src/components/splitter/root-provider.ts","../../src/components/splitter/panel.ts","../../src/components/splitter/resize-trigger.ts","../../src/components/splitter/resize-trigger-indicator.ts","../../src/components/splitter/context.ts"],"mappings":";;;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AAiCA,oBAAgB,MAAM,CAAC,QAAQ,CAAC,OAAO;kBACzB,MAAM,CAAC,QAAQ,CAAC,GAAG;AACjC,sBAAkB,QAAQ,CAAC,OAAO;mBACnB,QAAQ,CAAC,OAAO;;yCA/EpB,YAAY;2CAAZ,YAAY;AAyFxB;;AChHD,cAMa,oBAAqB,YAAW,iBAAiB;AAC5D,oBAAgB,WAAW,CAAC,iBAAiB;AAC7C,oBAAgB,MAAM,CAAC,QAAQ,CAAC,OAAO;kBACzB,MAAM,CAAC,QAAQ,CAAC,GAAG;mBAClB,QAAQ,CAAC,OAAO;AAE/B,mBAAe,QAAQ,CAAC,OAAO;;yCANpB,oBAAoB;2CAApB,oBAAoB;AAkBhC;;AC7BD,cAKa,aAAa;AACxB,iBAAa,WAAW,CAACC,OAAe;;yCAD7B,aAAa;2CAAb,aAAa;AAYzB;;ACTD,cAYa,qBAAqB;AAChC,iBAAa,WAAW,CAACR,eAAuB;uBAC7B,wBAAwB;AAI3C;AACA;;AAqBA,+BAA2B,4BAA4B;yCA5B5C,qBAAqB;2CAArB,qBAAqB;AA+BjC;;AC5DD,cAKa,8BAA8B;;yCAA9B,8BAA8B;2CAA9B,8BAA8B;AAe1C;;UCbgB,uBAAuB;AACtC,eAAW,iBAAiB;AAC5B,SAAK,iBAAiB;AACvB;AAED,cAKa,eAAe;AAC1B,8CACc,eAAe,gCAEf,uBAAuB;AAKrC;AACA;AACA;;yCAXW,eAAe;2CAAf,eAAe;AA0B3B;;;;","names":["SplitterResizeTriggerId","SplitterResizeTriggerState","SplitterElementIds","SplitterPanelSize","SplitterPanelData","SplitterResizeDetails","SplitterResizeEndDetails","SplitterExpandCollapseDetails","SplitterPanelId"]}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import * as steps from '@wirekyt/dom/machines/steps';
|
|
2
|
+
import { ItemState, ItemProps, ElementIds, StepChangeDetails, StepInvalidDetails } from '@wirekyt/dom/machines/steps';
|
|
3
|
+
export { Api as StepsApi, ElementIds as StepsElementIds, ItemProps as StepsItemProps, ItemState as StepsItemState, Machine as StepsMachine, Props as StepsMachineProps, Service as StepsService, StepChangeDetails as StepsStepChangeDetails, StepInvalidDetails as StepsStepInvalidDetails, anatomy as stepsAnatomy } from '@wirekyt/dom/machines/steps';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { InjectionToken, Signal, InputSignal, ModelSignal, InputSignalWithTransform, OutputEmitterRef } from '@angular/core';
|
|
6
|
+
import { UseMachineReturn } from '@wirekyt/angular';
|
|
7
|
+
|
|
8
|
+
type OptionalId<T extends {
|
|
9
|
+
id: string;
|
|
10
|
+
}> = Omit<T, "id"> & {
|
|
11
|
+
id?: string;
|
|
12
|
+
};
|
|
13
|
+
interface UseStepsProps extends OptionalId<Omit<steps.Props, "dir" | "getRootNode">> {
|
|
14
|
+
}
|
|
15
|
+
type UseStepsReturn = UseMachineReturn<steps.Service["state"], steps.Api, steps.Service>;
|
|
16
|
+
interface UseStepsOptions {
|
|
17
|
+
context: () => UseStepsProps;
|
|
18
|
+
}
|
|
19
|
+
declare function useSteps(options?: UseStepsOptions): UseStepsReturn;
|
|
20
|
+
|
|
21
|
+
declare const STEPS_CONTEXT: InjectionToken<UseStepsReturn>;
|
|
22
|
+
declare function injectStepsContext(): UseStepsReturn;
|
|
23
|
+
|
|
24
|
+
type StepsItemContext = Signal<ItemState>;
|
|
25
|
+
type StepsItemPropsContext = Signal<ItemProps>;
|
|
26
|
+
declare const STEPS_ITEM_CONTEXT: InjectionToken<StepsItemContext>;
|
|
27
|
+
declare const STEPS_ITEM_PROPS_CONTEXT: InjectionToken<StepsItemPropsContext>;
|
|
28
|
+
declare function injectStepsItemContext(): StepsItemContext;
|
|
29
|
+
declare function injectStepsItemPropsContext(): StepsItemPropsContext;
|
|
30
|
+
|
|
31
|
+
declare class StepsRoot implements UseStepsReturn {
|
|
32
|
+
readonly id: InputSignal<string | undefined>;
|
|
33
|
+
readonly ids: InputSignal<ElementIds | undefined>;
|
|
34
|
+
readonly step: ModelSignal<number | undefined>;
|
|
35
|
+
readonly defaultStep: InputSignal<number | undefined>;
|
|
36
|
+
readonly count: InputSignal<number | undefined>;
|
|
37
|
+
readonly linear: InputSignalWithTransform<boolean, unknown>;
|
|
38
|
+
readonly orientation: InputSignal<steps.Props["orientation"]>;
|
|
39
|
+
readonly isStepValid: InputSignal<steps.Props["isStepValid"] | undefined>;
|
|
40
|
+
readonly isStepSkippable: InputSignal<steps.Props["isStepSkippable"] | undefined>;
|
|
41
|
+
readonly stepDetailsChange: OutputEmitterRef<StepChangeDetails>;
|
|
42
|
+
readonly stepComplete: OutputEmitterRef<void>;
|
|
43
|
+
readonly stepInvalid: OutputEmitterRef<StepInvalidDetails>;
|
|
44
|
+
private readonly machine;
|
|
45
|
+
readonly state: Signal<steps.Service["state"]>;
|
|
46
|
+
readonly api: Signal<steps.Api>;
|
|
47
|
+
readonly service: steps.Service;
|
|
48
|
+
readonly send: steps.Service["send"];
|
|
49
|
+
constructor();
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepsRoot, never>;
|
|
51
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StepsRoot, "[steps-root]", ["stepsRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ids": { "alias": "ids"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "defaultStep": { "alias": "defaultStep"; "required": false; "isSignal": true; }; "count": { "alias": "count"; "required": false; "isSignal": true; }; "linear": { "alias": "linear"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "isStepValid": { "alias": "isStepValid"; "required": false; "isSignal": true; }; "isStepSkippable": { "alias": "isStepSkippable"; "required": false; "isSignal": true; }; }, { "step": "stepChange"; "stepDetailsChange": "stepDetailsChange"; "stepComplete": "stepComplete"; "stepInvalid": "stepInvalid"; }, never, never, true, never>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare class StepsRootProvider implements UseStepsReturn {
|
|
55
|
+
readonly value: InputSignal<UseStepsReturn>;
|
|
56
|
+
readonly state: Signal<steps.Service["state"]>;
|
|
57
|
+
readonly api: Signal<steps.Api>;
|
|
58
|
+
readonly send: steps.Service["send"];
|
|
59
|
+
get service(): steps.Service;
|
|
60
|
+
constructor();
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepsRootProvider, never>;
|
|
62
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StepsRootProvider, "[steps-root-provider]", ["stepsRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
declare class StepsList {
|
|
66
|
+
constructor();
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepsList, never>;
|
|
68
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StepsList, "[steps-list]", ["stepsList"], {}, {}, never, never, true, never>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
declare class StepsItem {
|
|
72
|
+
readonly index: InputSignal<number>;
|
|
73
|
+
private readonly steps;
|
|
74
|
+
readonly itemProps: Signal<ItemProps>;
|
|
75
|
+
readonly itemState: Signal<ItemState>;
|
|
76
|
+
constructor();
|
|
77
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepsItem, never>;
|
|
78
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StepsItem, "[steps-item]", ["stepsItem"], { "index": { "alias": "index"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare class StepsTrigger {
|
|
82
|
+
constructor();
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepsTrigger, never>;
|
|
84
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StepsTrigger, "[steps-trigger]", ["stepsTrigger"], {}, {}, never, never, true, never>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
declare class StepsIndicator {
|
|
88
|
+
constructor();
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepsIndicator, never>;
|
|
90
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StepsIndicator, "[steps-indicator]", ["stepsIndicator"], {}, {}, never, never, true, never>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare class StepsSeparator {
|
|
94
|
+
constructor();
|
|
95
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepsSeparator, never>;
|
|
96
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StepsSeparator, "[steps-separator]", ["stepsSeparator"], {}, {}, never, never, true, never>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
declare class StepsContent {
|
|
100
|
+
readonly index: InputSignal<number>;
|
|
101
|
+
constructor();
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepsContent, never>;
|
|
103
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StepsContent, "[steps-content]", ["stepsContent"], { "index": { "alias": "index"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
declare class StepsCompletedContent {
|
|
107
|
+
constructor();
|
|
108
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepsCompletedContent, never>;
|
|
109
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StepsCompletedContent, "[steps-completed-content]", ["stepsCompletedContent"], {}, {}, never, never, true, never>;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare class StepsProgress {
|
|
113
|
+
constructor();
|
|
114
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepsProgress, never>;
|
|
115
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StepsProgress, "[steps-progress]", ["stepsProgress"], {}, {}, never, never, true, never>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
declare class StepsNextTrigger {
|
|
119
|
+
constructor();
|
|
120
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepsNextTrigger, never>;
|
|
121
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StepsNextTrigger, "[steps-next-trigger]", ["stepsNextTrigger"], {}, {}, never, never, true, never>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
declare class StepsPrevTrigger {
|
|
125
|
+
constructor();
|
|
126
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepsPrevTrigger, never>;
|
|
127
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StepsPrevTrigger, "[steps-prev-trigger]", ["stepsPrevTrigger"], {}, {}, never, never, true, never>;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
interface StepsContextTemplate {
|
|
131
|
+
$implicit: UseStepsReturn["api"];
|
|
132
|
+
api: UseStepsReturn["api"];
|
|
133
|
+
}
|
|
134
|
+
declare class StepsContext {
|
|
135
|
+
static ngTemplateContextGuard(_directive: StepsContext, context: unknown): context is StepsContextTemplate;
|
|
136
|
+
private readonly steps;
|
|
137
|
+
private readonly templateRef;
|
|
138
|
+
private readonly viewContainer;
|
|
139
|
+
constructor();
|
|
140
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepsContext, never>;
|
|
141
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StepsContext, "[steps-context]", ["stepsContext"], {}, {}, never, never, true, never>;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
interface StepsItemContextTemplate {
|
|
145
|
+
$implicit: StepsItemContext;
|
|
146
|
+
item: StepsItemContext;
|
|
147
|
+
}
|
|
148
|
+
declare class StepsItemContextDirective {
|
|
149
|
+
static ngTemplateContextGuard(_directive: StepsItemContextDirective, context: unknown): context is StepsItemContextTemplate;
|
|
150
|
+
private readonly item;
|
|
151
|
+
private readonly templateRef;
|
|
152
|
+
private readonly viewContainer;
|
|
153
|
+
constructor();
|
|
154
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepsItemContextDirective, never>;
|
|
155
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StepsItemContextDirective, "[steps-item-context]", ["stepsItemContext"], {}, {}, never, never, true, never>;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export { STEPS_CONTEXT, STEPS_ITEM_CONTEXT, STEPS_ITEM_PROPS_CONTEXT, StepsCompletedContent, StepsContent, StepsContext, StepsIndicator, StepsItem, StepsItemContextDirective, StepsList, StepsNextTrigger, StepsPrevTrigger, StepsProgress, StepsRoot, StepsRootProvider, StepsSeparator, StepsTrigger, injectStepsContext, injectStepsItemContext, injectStepsItemPropsContext, useSteps };
|
|
159
|
+
export type { StepsContextTemplate, StepsItemContext, StepsItemContextTemplate, StepsItemPropsContext, UseStepsOptions, UseStepsProps, UseStepsReturn };
|
|
160
|
+
//# sourceMappingURL=wirekyt-angular-steps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-steps.d.ts","sources":["../../src/components/steps/use.ts","../../src/components/steps/use-context.ts","../../src/components/steps/use-item-context.ts","../../src/components/steps/root.ts","../../src/components/steps/root-provider.ts","../../src/components/steps/list.ts","../../src/components/steps/item.ts","../../src/components/steps/trigger.ts","../../src/components/steps/indicator.ts","../../src/components/steps/separator.ts","../../src/components/steps/content.ts","../../src/components/steps/completed-content.ts","../../src/components/steps/progress.ts","../../src/components/steps/next-trigger.ts","../../src/components/steps/prev-trigger.ts","../../src/components/steps/context.ts","../../src/components/steps/item-context.ts"],"mappings":";;;;;;;AAWA,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,aAAc,SAAQ,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK;AAA4B;AAExF,KAAM,cAAc,GAAG,gBAAgB,CAAC,KAAK,CAAC,OAAO,WAAW,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,OAAO;UAE7E,eAAe;mBACf,aAAa;AAC7B;AAKD,iBAAgB,QAAQ,WAAU,eAAyC,GAAG,cAAc;;ACpB5F,cAAa,aAAa,E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