@wirekyt/angular 0.0.34 → 1.0.0
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-menu.mjs +0 -6
- package/dist/fesm2022/wirekyt-angular-menu.mjs.map +1 -1
- 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-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-progress.mjs +337 -0
- package/dist/fesm2022/wirekyt-angular-progress.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-qr-code.mjs +0 -11
- package/dist/fesm2022/wirekyt-angular-qr-code.mjs.map +1 -1
- 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/package.json +81 -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-menu.d.ts +0 -23
- package/dist/types/wirekyt-angular-menu.d.ts.map +1 -1
- 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-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-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 +0 -11
- package/dist/types/wirekyt-angular-qr-code.d.ts.map +1 -1
- 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/package.json +82 -3
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
import * as pinInput from '@wirekyt/dom/machines/pin-input';
|
|
2
|
+
export { anatomy as pinInputAnatomy } from '@wirekyt/dom/machines/pin-input';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { InjectionToken, inject, TemplateRef, ViewContainerRef, effect, DestroyRef, Directive, Renderer2, ElementRef, input, numberAttribute, forwardRef, model, booleanAttribute, output, signal } from '@angular/core';
|
|
5
|
+
import { bindProps, injectLocale, injectEnvironment, createId, useMachine, createCvaController } from '@wirekyt/angular';
|
|
6
|
+
import { injectFieldContextOptional } from '@wirekyt/angular/field';
|
|
7
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
8
|
+
|
|
9
|
+
const PIN_INPUT_CONTEXT = new InjectionToken("WIREKYT.PIN_INPUT_CONTEXT");
|
|
10
|
+
const PIN_INPUT_COUNT_REGISTRAR = new InjectionToken("WIREKYT.PIN_INPUT_COUNT_REGISTRAR");
|
|
11
|
+
function injectPinInputContext() {
|
|
12
|
+
return inject(PIN_INPUT_CONTEXT);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class PinInputContext {
|
|
16
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
17
|
+
void context;
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
pinInput = injectPinInputContext();
|
|
21
|
+
templateRef = inject(TemplateRef);
|
|
22
|
+
viewContainer = inject(ViewContainerRef);
|
|
23
|
+
constructor() {
|
|
24
|
+
const view = this.viewContainer.createEmbeddedView(this.templateRef, {
|
|
25
|
+
$implicit: this.pinInput.api,
|
|
26
|
+
api: this.pinInput.api,
|
|
27
|
+
});
|
|
28
|
+
effect(() => {
|
|
29
|
+
this.pinInput.api();
|
|
30
|
+
view.detectChanges();
|
|
31
|
+
});
|
|
32
|
+
inject(DestroyRef).onDestroy(() => view.destroy());
|
|
33
|
+
}
|
|
34
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PinInputContext, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
35
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: PinInputContext, isStandalone: true, selector: "[pin-input-context]", exportAs: ["pinInputContext"], ngImport: i0 });
|
|
36
|
+
}
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PinInputContext, decorators: [{
|
|
38
|
+
type: Directive,
|
|
39
|
+
args: [{
|
|
40
|
+
selector: "[pin-input-context]",
|
|
41
|
+
standalone: true,
|
|
42
|
+
exportAs: "pinInputContext",
|
|
43
|
+
}]
|
|
44
|
+
}], ctorParameters: () => [] });
|
|
45
|
+
|
|
46
|
+
class PinInputControl {
|
|
47
|
+
constructor() {
|
|
48
|
+
const context = injectPinInputContext();
|
|
49
|
+
bindProps({
|
|
50
|
+
elementRef: inject(ElementRef),
|
|
51
|
+
renderer: inject(Renderer2),
|
|
52
|
+
destroyRef: inject(DestroyRef),
|
|
53
|
+
props: () => context.api().getControlProps(),
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PinInputControl, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
57
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: PinInputControl, isStandalone: true, selector: "[pin-input-control]", exportAs: ["pinInputControl"], ngImport: i0 });
|
|
58
|
+
}
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PinInputControl, decorators: [{
|
|
60
|
+
type: Directive,
|
|
61
|
+
args: [{
|
|
62
|
+
selector: "[pin-input-control]",
|
|
63
|
+
standalone: true,
|
|
64
|
+
exportAs: "pinInputControl",
|
|
65
|
+
}]
|
|
66
|
+
}], ctorParameters: () => [] });
|
|
67
|
+
|
|
68
|
+
class PinInputHiddenInput {
|
|
69
|
+
constructor() {
|
|
70
|
+
const context = injectPinInputContext();
|
|
71
|
+
const field = injectFieldContextOptional();
|
|
72
|
+
const elementRef = inject(ElementRef);
|
|
73
|
+
const renderer = inject(Renderer2);
|
|
74
|
+
const destroyRef = inject(DestroyRef);
|
|
75
|
+
bindProps({
|
|
76
|
+
elementRef,
|
|
77
|
+
renderer,
|
|
78
|
+
destroyRef,
|
|
79
|
+
props: () => {
|
|
80
|
+
const props = context.api().getHiddenInputProps();
|
|
81
|
+
const { defaultValue: _defaultValue, ...rest } = props;
|
|
82
|
+
return {
|
|
83
|
+
"aria-describedby": field?.ariaDescribedby(),
|
|
84
|
+
...rest,
|
|
85
|
+
};
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
effect(() => {
|
|
89
|
+
const el = elementRef.nativeElement;
|
|
90
|
+
if (!el)
|
|
91
|
+
return;
|
|
92
|
+
const next = context.api().valueAsString;
|
|
93
|
+
if (el.value !== next)
|
|
94
|
+
el.value = next;
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PinInputHiddenInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
98
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: PinInputHiddenInput, isStandalone: true, selector: "[pin-input-hidden-input]", exportAs: ["pinInputHiddenInput"], ngImport: i0 });
|
|
99
|
+
}
|
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PinInputHiddenInput, decorators: [{
|
|
101
|
+
type: Directive,
|
|
102
|
+
args: [{
|
|
103
|
+
selector: "[pin-input-hidden-input]",
|
|
104
|
+
standalone: true,
|
|
105
|
+
exportAs: "pinInputHiddenInput",
|
|
106
|
+
}]
|
|
107
|
+
}], ctorParameters: () => [] });
|
|
108
|
+
|
|
109
|
+
class PinInputInput {
|
|
110
|
+
index = input.required({ ...(ngDevMode ? { debugName: "index" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
111
|
+
constructor() {
|
|
112
|
+
const context = injectPinInputContext();
|
|
113
|
+
const registrar = inject(PIN_INPUT_COUNT_REGISTRAR, { optional: true });
|
|
114
|
+
const elementRef = inject(ElementRef);
|
|
115
|
+
const renderer = inject(Renderer2);
|
|
116
|
+
const destroyRef = inject(DestroyRef);
|
|
117
|
+
if (registrar) {
|
|
118
|
+
let lastIndex = null;
|
|
119
|
+
let dispose = null;
|
|
120
|
+
effect(() => {
|
|
121
|
+
const i = this.index();
|
|
122
|
+
if (i === lastIndex)
|
|
123
|
+
return;
|
|
124
|
+
if (dispose)
|
|
125
|
+
dispose();
|
|
126
|
+
lastIndex = i;
|
|
127
|
+
dispose = registrar.register(i);
|
|
128
|
+
});
|
|
129
|
+
destroyRef.onDestroy(() => {
|
|
130
|
+
if (dispose)
|
|
131
|
+
dispose();
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
bindProps({
|
|
135
|
+
elementRef,
|
|
136
|
+
renderer,
|
|
137
|
+
destroyRef,
|
|
138
|
+
props: () => {
|
|
139
|
+
const props = context.api().getInputProps({ index: this.index() });
|
|
140
|
+
const { autoComplete, defaultValue: _defaultValue, ...rest } = props;
|
|
141
|
+
if (autoComplete !== undefined) {
|
|
142
|
+
const nextProps = rest;
|
|
143
|
+
nextProps.autocomplete = autoComplete;
|
|
144
|
+
}
|
|
145
|
+
return rest;
|
|
146
|
+
},
|
|
147
|
+
});
|
|
148
|
+
effect(() => {
|
|
149
|
+
const el = elementRef.nativeElement;
|
|
150
|
+
if (!el)
|
|
151
|
+
return;
|
|
152
|
+
const next = context.api().value[this.index()] ?? "";
|
|
153
|
+
if (el.value !== next)
|
|
154
|
+
el.value = next;
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PinInputInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
158
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: PinInputInput, isStandalone: true, selector: "[pin-input-input]", inputs: { index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: true, transformFunction: null } }, exportAs: ["pinInputInput"], ngImport: i0 });
|
|
159
|
+
}
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PinInputInput, decorators: [{
|
|
161
|
+
type: Directive,
|
|
162
|
+
args: [{
|
|
163
|
+
selector: "[pin-input-input]",
|
|
164
|
+
standalone: true,
|
|
165
|
+
exportAs: "pinInputInput",
|
|
166
|
+
}]
|
|
167
|
+
}], ctorParameters: () => [], propDecorators: { index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: true }] }] } });
|
|
168
|
+
|
|
169
|
+
class PinInputLabel {
|
|
170
|
+
constructor() {
|
|
171
|
+
const context = injectPinInputContext();
|
|
172
|
+
bindProps({
|
|
173
|
+
elementRef: inject(ElementRef),
|
|
174
|
+
renderer: inject(Renderer2),
|
|
175
|
+
destroyRef: inject(DestroyRef),
|
|
176
|
+
props: () => context.api().getLabelProps(),
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PinInputLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
180
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: PinInputLabel, isStandalone: true, selector: "[pin-input-label]", exportAs: ["pinInputLabel"], ngImport: i0 });
|
|
181
|
+
}
|
|
182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PinInputLabel, decorators: [{
|
|
183
|
+
type: Directive,
|
|
184
|
+
args: [{
|
|
185
|
+
selector: "[pin-input-label]",
|
|
186
|
+
standalone: true,
|
|
187
|
+
exportAs: "pinInputLabel",
|
|
188
|
+
}]
|
|
189
|
+
}], ctorParameters: () => [] });
|
|
190
|
+
|
|
191
|
+
class PinInputRootProvider {
|
|
192
|
+
value = input.required(/* @ts-ignore */
|
|
193
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
194
|
+
_registeredIndices = new Set();
|
|
195
|
+
get state() {
|
|
196
|
+
return this.value().state;
|
|
197
|
+
}
|
|
198
|
+
get api() {
|
|
199
|
+
return this.value().api;
|
|
200
|
+
}
|
|
201
|
+
get service() {
|
|
202
|
+
return this.value().service;
|
|
203
|
+
}
|
|
204
|
+
get send() {
|
|
205
|
+
return this.value().send;
|
|
206
|
+
}
|
|
207
|
+
constructor() {
|
|
208
|
+
bindProps({
|
|
209
|
+
elementRef: inject(ElementRef),
|
|
210
|
+
renderer: inject(Renderer2),
|
|
211
|
+
destroyRef: inject(DestroyRef),
|
|
212
|
+
props: () => this.value().api().getRootProps(),
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
register(index) {
|
|
216
|
+
this._registeredIndices.add(index);
|
|
217
|
+
this._syncCount();
|
|
218
|
+
return () => {
|
|
219
|
+
this._registeredIndices.delete(index);
|
|
220
|
+
this._syncCount();
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
_syncCount() {
|
|
224
|
+
const next = this._registeredIndices.size;
|
|
225
|
+
if (next === 0)
|
|
226
|
+
return;
|
|
227
|
+
const ctx = this.service.context;
|
|
228
|
+
if (ctx.get("count") !== next) {
|
|
229
|
+
ctx.set("count", next);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PinInputRootProvider, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
233
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: PinInputRootProvider, isStandalone: true, selector: "[pin-input-root-provider]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, providers: [
|
|
234
|
+
{ provide: PIN_INPUT_CONTEXT, useExisting: forwardRef(() => PinInputRootProvider) },
|
|
235
|
+
{ provide: PIN_INPUT_COUNT_REGISTRAR, useExisting: forwardRef(() => PinInputRootProvider) },
|
|
236
|
+
], exportAs: ["pinInputRootProvider"], ngImport: i0 });
|
|
237
|
+
}
|
|
238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PinInputRootProvider, decorators: [{
|
|
239
|
+
type: Directive,
|
|
240
|
+
args: [{
|
|
241
|
+
selector: "[pin-input-root-provider]",
|
|
242
|
+
standalone: true,
|
|
243
|
+
exportAs: "pinInputRootProvider",
|
|
244
|
+
providers: [
|
|
245
|
+
{ provide: PIN_INPUT_CONTEXT, useExisting: forwardRef(() => PinInputRootProvider) },
|
|
246
|
+
{ provide: PIN_INPUT_COUNT_REGISTRAR, useExisting: forwardRef(() => PinInputRootProvider) },
|
|
247
|
+
],
|
|
248
|
+
}]
|
|
249
|
+
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }] } });
|
|
250
|
+
|
|
251
|
+
function usePinInput(options = { context: () => ({}) }) {
|
|
252
|
+
const locale = injectLocale();
|
|
253
|
+
const environment = injectEnvironment();
|
|
254
|
+
const field = injectFieldContextOptional();
|
|
255
|
+
const fallbackId = createId();
|
|
256
|
+
return useMachine({
|
|
257
|
+
machine: pinInput.machine,
|
|
258
|
+
context: () => {
|
|
259
|
+
const props = options.context();
|
|
260
|
+
const id = props.id ?? fallbackId;
|
|
261
|
+
const safeRootId = `wirekyt-pin-input-${String(id).replace(/[^a-zA-Z0-9_-]/g, "-")}`;
|
|
262
|
+
const baseIds = (props.ids ?? {});
|
|
263
|
+
const merged = {
|
|
264
|
+
dir: locale.dir,
|
|
265
|
+
locale: locale.locale,
|
|
266
|
+
getRootNode: environment.getRootNode,
|
|
267
|
+
...props,
|
|
268
|
+
id,
|
|
269
|
+
ids: {
|
|
270
|
+
...baseIds,
|
|
271
|
+
root: baseIds.root ?? safeRootId,
|
|
272
|
+
},
|
|
273
|
+
};
|
|
274
|
+
if (field) {
|
|
275
|
+
const fieldIds = field.ids;
|
|
276
|
+
merged.ids = {
|
|
277
|
+
label: fieldIds.label,
|
|
278
|
+
hiddenInput: fieldIds.control,
|
|
279
|
+
...merged.ids,
|
|
280
|
+
};
|
|
281
|
+
const disabled = Boolean(props.disabled) || field.disabled();
|
|
282
|
+
const invalid = Boolean(props.invalid) || field.invalid();
|
|
283
|
+
const readOnly = Boolean(props.readOnly) || field.readOnly();
|
|
284
|
+
const required = Boolean(props.required) || field.required();
|
|
285
|
+
merged.disabled = disabled || undefined;
|
|
286
|
+
merged.invalid = invalid || undefined;
|
|
287
|
+
merged.readOnly = readOnly || undefined;
|
|
288
|
+
merged.required = required || undefined;
|
|
289
|
+
}
|
|
290
|
+
return merged;
|
|
291
|
+
},
|
|
292
|
+
connect: (service, normalize) => pinInput.connect(service, normalize),
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
class PinInputRoot {
|
|
297
|
+
id = input(undefined, /* @ts-ignore */
|
|
298
|
+
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
299
|
+
elementIds = input(undefined, { ...(ngDevMode ? { debugName: "elementIds" } : /* istanbul ignore next */ {}), alias: "ids" });
|
|
300
|
+
value = model(undefined, /* @ts-ignore */
|
|
301
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
302
|
+
defaultValue = input(undefined, /* @ts-ignore */
|
|
303
|
+
...(ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []));
|
|
304
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
305
|
+
readOnly = input(false, { ...(ngDevMode ? { debugName: "readOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
306
|
+
invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
307
|
+
required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
308
|
+
name = input(undefined, /* @ts-ignore */
|
|
309
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
310
|
+
form = input(undefined, /* @ts-ignore */
|
|
311
|
+
...(ngDevMode ? [{ debugName: "form" }] : /* istanbul ignore next */ []));
|
|
312
|
+
pattern = input(undefined, /* @ts-ignore */
|
|
313
|
+
...(ngDevMode ? [{ debugName: "pattern" }] : /* istanbul ignore next */ []));
|
|
314
|
+
placeholder = input(undefined, /* @ts-ignore */
|
|
315
|
+
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
316
|
+
autoFocus = input(false, { ...(ngDevMode ? { debugName: "autoFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
317
|
+
otp = input(false, { ...(ngDevMode ? { debugName: "otp" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
318
|
+
mask = input(false, { ...(ngDevMode ? { debugName: "mask" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
319
|
+
autoSubmit = input(false, { ...(ngDevMode ? { debugName: "autoSubmit" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
320
|
+
blurOnComplete = input(false, { ...(ngDevMode ? { debugName: "blurOnComplete" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
321
|
+
selectOnFocus = input(false, { ...(ngDevMode ? { debugName: "selectOnFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
322
|
+
type = input(undefined, /* @ts-ignore */
|
|
323
|
+
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
324
|
+
sanitizeValue = input(undefined, /* @ts-ignore */
|
|
325
|
+
...(ngDevMode ? [{ debugName: "sanitizeValue" }] : /* istanbul ignore next */ []));
|
|
326
|
+
count = input(undefined, /* @ts-ignore */
|
|
327
|
+
...(ngDevMode ? [{ debugName: "count" }] : /* istanbul ignore next */ []));
|
|
328
|
+
translations = input(undefined, /* @ts-ignore */
|
|
329
|
+
...(ngDevMode ? [{ debugName: "translations" }] : /* istanbul ignore next */ []));
|
|
330
|
+
valueComplete = output();
|
|
331
|
+
valueDetailsChange = output();
|
|
332
|
+
valueInvalid = output();
|
|
333
|
+
_disabledFromForm = signal(false, /* @ts-ignore */
|
|
334
|
+
...(ngDevMode ? [{ debugName: "_disabledFromForm" }] : /* istanbul ignore next */ []));
|
|
335
|
+
_pendingInternalWrites = 0;
|
|
336
|
+
_hasExternalBinding = false;
|
|
337
|
+
_hasReceivedFormWrite = false;
|
|
338
|
+
_registeredIndices = new Set();
|
|
339
|
+
cva = createCvaController({
|
|
340
|
+
value: this.value,
|
|
341
|
+
setDisabled: (disabled) => this._disabledFromForm.set(disabled),
|
|
342
|
+
componentName: "PinInputRoot",
|
|
343
|
+
hasExternalModelBinding: () => this._hasExternalBinding,
|
|
344
|
+
});
|
|
345
|
+
machine = usePinInput({
|
|
346
|
+
context: () => ({
|
|
347
|
+
id: this.id(),
|
|
348
|
+
ids: this.elementIds(),
|
|
349
|
+
value: this.value(),
|
|
350
|
+
defaultValue: this.defaultValue(),
|
|
351
|
+
disabled: this.disabled() || this._disabledFromForm() || undefined,
|
|
352
|
+
readOnly: this.readOnly() || undefined,
|
|
353
|
+
invalid: this.invalid() || undefined,
|
|
354
|
+
required: this.required() || undefined,
|
|
355
|
+
name: this.name(),
|
|
356
|
+
form: this.form(),
|
|
357
|
+
pattern: this.pattern(),
|
|
358
|
+
placeholder: this.placeholder(),
|
|
359
|
+
autoFocus: this.autoFocus() || undefined,
|
|
360
|
+
otp: this.otp() || undefined,
|
|
361
|
+
mask: this.mask() || undefined,
|
|
362
|
+
autoSubmit: this.autoSubmit() || undefined,
|
|
363
|
+
blurOnComplete: this.blurOnComplete() || undefined,
|
|
364
|
+
selectOnFocus: this.selectOnFocus() || undefined,
|
|
365
|
+
type: this.type(),
|
|
366
|
+
sanitizeValue: this.sanitizeValue(),
|
|
367
|
+
count: this.count(),
|
|
368
|
+
translations: this.translations(),
|
|
369
|
+
onValueChange: (details) => {
|
|
370
|
+
if (this.value() !== details.value) {
|
|
371
|
+
this._pendingInternalWrites++;
|
|
372
|
+
this.value.set(details.value);
|
|
373
|
+
}
|
|
374
|
+
this.cva.notifyValueChange(details.value);
|
|
375
|
+
this.valueDetailsChange.emit(details);
|
|
376
|
+
},
|
|
377
|
+
onValueComplete: (details) => {
|
|
378
|
+
this.valueComplete.emit(details);
|
|
379
|
+
this.cva.markTouched();
|
|
380
|
+
},
|
|
381
|
+
onValueInvalid: (details) => {
|
|
382
|
+
this.valueInvalid.emit(details);
|
|
383
|
+
},
|
|
384
|
+
}),
|
|
385
|
+
});
|
|
386
|
+
state = this.machine.state;
|
|
387
|
+
api = this.machine.api;
|
|
388
|
+
service = this.machine.service;
|
|
389
|
+
send = this.machine.send;
|
|
390
|
+
constructor() {
|
|
391
|
+
let firstRun = true;
|
|
392
|
+
effect(() => {
|
|
393
|
+
void this.value();
|
|
394
|
+
if (firstRun) {
|
|
395
|
+
firstRun = false;
|
|
396
|
+
this._pendingInternalWrites = 0;
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
if (this._pendingInternalWrites > 0) {
|
|
400
|
+
this._pendingInternalWrites--;
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
this._hasExternalBinding = true;
|
|
404
|
+
});
|
|
405
|
+
bindProps({
|
|
406
|
+
elementRef: inject(ElementRef),
|
|
407
|
+
renderer: inject(Renderer2),
|
|
408
|
+
destroyRef: inject(DestroyRef),
|
|
409
|
+
props: () => this.api().getRootProps(),
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
writeValue(value) {
|
|
413
|
+
const next = value === null ? undefined : value;
|
|
414
|
+
const current = this.value();
|
|
415
|
+
if (!this._hasReceivedFormWrite && current !== undefined) {
|
|
416
|
+
this._hasExternalBinding = true;
|
|
417
|
+
}
|
|
418
|
+
this._hasReceivedFormWrite = true;
|
|
419
|
+
if (!arraysShallowEqual(current, next)) {
|
|
420
|
+
this._pendingInternalWrites++;
|
|
421
|
+
}
|
|
422
|
+
this.cva.writeValue(value);
|
|
423
|
+
}
|
|
424
|
+
registerOnChange(fn) {
|
|
425
|
+
this.cva.registerOnChange(fn);
|
|
426
|
+
}
|
|
427
|
+
registerOnTouched(fn) {
|
|
428
|
+
this.cva.registerOnTouched(fn);
|
|
429
|
+
}
|
|
430
|
+
setDisabledState(disabled) {
|
|
431
|
+
this.cva.setDisabledState(disabled);
|
|
432
|
+
}
|
|
433
|
+
register(index) {
|
|
434
|
+
this._registeredIndices.add(index);
|
|
435
|
+
this._syncCount();
|
|
436
|
+
return () => {
|
|
437
|
+
this._registeredIndices.delete(index);
|
|
438
|
+
this._syncCount();
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
_syncCount() {
|
|
442
|
+
const next = this._registeredIndices.size;
|
|
443
|
+
if (next === 0)
|
|
444
|
+
return;
|
|
445
|
+
const ctx = this.service.context;
|
|
446
|
+
if (ctx.get("count") !== next) {
|
|
447
|
+
ctx.set("count", next);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PinInputRoot, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
451
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: PinInputRoot, isStandalone: true, selector: "[pin-input-root]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, elementIds: { classPropertyName: "elementIds", publicName: "ids", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, defaultValue: { classPropertyName: "defaultValue", publicName: "defaultValue", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, pattern: { classPropertyName: "pattern", publicName: "pattern", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, autoFocus: { classPropertyName: "autoFocus", publicName: "autoFocus", isSignal: true, isRequired: false, transformFunction: null }, otp: { classPropertyName: "otp", publicName: "otp", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, autoSubmit: { classPropertyName: "autoSubmit", publicName: "autoSubmit", isSignal: true, isRequired: false, transformFunction: null }, blurOnComplete: { classPropertyName: "blurOnComplete", publicName: "blurOnComplete", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, sanitizeValue: { classPropertyName: "sanitizeValue", publicName: "sanitizeValue", isSignal: true, isRequired: false, transformFunction: null }, count: { classPropertyName: "count", publicName: "count", isSignal: true, isRequired: false, transformFunction: null }, translations: { classPropertyName: "translations", publicName: "translations", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueComplete: "valueComplete", valueDetailsChange: "valueDetailsChange", valueInvalid: "valueInvalid" }, providers: [
|
|
452
|
+
{ provide: PIN_INPUT_CONTEXT, useExisting: forwardRef(() => PinInputRoot) },
|
|
453
|
+
{ provide: PIN_INPUT_COUNT_REGISTRAR, useExisting: forwardRef(() => PinInputRoot) },
|
|
454
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => PinInputRoot), multi: true },
|
|
455
|
+
], exportAs: ["pinInputRoot"], ngImport: i0 });
|
|
456
|
+
}
|
|
457
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PinInputRoot, decorators: [{
|
|
458
|
+
type: Directive,
|
|
459
|
+
args: [{
|
|
460
|
+
selector: "[pin-input-root]",
|
|
461
|
+
standalone: true,
|
|
462
|
+
exportAs: "pinInputRoot",
|
|
463
|
+
providers: [
|
|
464
|
+
{ provide: PIN_INPUT_CONTEXT, useExisting: forwardRef(() => PinInputRoot) },
|
|
465
|
+
{ provide: PIN_INPUT_COUNT_REGISTRAR, useExisting: forwardRef(() => PinInputRoot) },
|
|
466
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => PinInputRoot), multi: true },
|
|
467
|
+
],
|
|
468
|
+
}]
|
|
469
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], elementIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "ids", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], defaultValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultValue", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], pattern: [{ type: i0.Input, args: [{ isSignal: true, alias: "pattern", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], autoFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFocus", required: false }] }], otp: [{ type: i0.Input, args: [{ isSignal: true, alias: "otp", required: false }] }], mask: [{ type: i0.Input, args: [{ isSignal: true, alias: "mask", required: false }] }], autoSubmit: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoSubmit", required: false }] }], blurOnComplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "blurOnComplete", required: false }] }], selectOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnFocus", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], sanitizeValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "sanitizeValue", required: false }] }], count: [{ type: i0.Input, args: [{ isSignal: true, alias: "count", required: false }] }], translations: [{ type: i0.Input, args: [{ isSignal: true, alias: "translations", required: false }] }], valueComplete: [{ type: i0.Output, args: ["valueComplete"] }], valueDetailsChange: [{ type: i0.Output, args: ["valueDetailsChange"] }], valueInvalid: [{ type: i0.Output, args: ["valueInvalid"] }] } });
|
|
470
|
+
function arraysShallowEqual(a, b) {
|
|
471
|
+
if (a === b)
|
|
472
|
+
return true;
|
|
473
|
+
if (!a || !b)
|
|
474
|
+
return false;
|
|
475
|
+
if (a.length !== b.length)
|
|
476
|
+
return false;
|
|
477
|
+
return a.every((item, index) => item === b[index]);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Generated bundle index. Do not edit.
|
|
482
|
+
*/
|
|
483
|
+
|
|
484
|
+
export { PIN_INPUT_CONTEXT, PinInputContext, PinInputControl, PinInputHiddenInput, PinInputInput, PinInputLabel, PinInputRoot, PinInputRootProvider, injectPinInputContext, usePinInput };
|
|
485
|
+
//# sourceMappingURL=wirekyt-angular-pin-input.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-pin-input.mjs","sources":["../../src/components/pin-input/use-context.ts","../../src/components/pin-input/context.ts","../../src/components/pin-input/control.ts","../../src/components/pin-input/hidden-input.ts","../../src/components/pin-input/input.ts","../../src/components/pin-input/label.ts","../../src/components/pin-input/root-provider.ts","../../src/components/pin-input/use.ts","../../src/components/pin-input/root.ts","../../src/components/pin-input/wirekyt-angular-pin-input.ts"],"sourcesContent":["import { InjectionToken, inject } from \"@angular/core\";\n\nimport type { UsePinInputReturn } from \"./use\";\n\nexport const PIN_INPUT_CONTEXT = new InjectionToken<UsePinInputReturn>(\"WIREKYT.PIN_INPUT_CONTEXT\");\n\nexport interface PinInputCountRegistrar {\n register(index: number): () => void;\n}\n\nexport const PIN_INPUT_COUNT_REGISTRAR = new InjectionToken<PinInputCountRegistrar>(\n \"WIREKYT.PIN_INPUT_COUNT_REGISTRAR\",\n);\n\nexport function injectPinInputContext(): UsePinInputReturn {\n return inject(PIN_INPUT_CONTEXT);\n}\n","import {\n DestroyRef,\n Directive,\n TemplateRef,\n ViewContainerRef,\n effect,\n inject,\n} from \"@angular/core\";\n\nimport type { UsePinInputReturn } from \"./use\";\n\nimport { injectPinInputContext } from \"./use-context\";\n\nexport interface PinInputContextTemplate {\n $implicit: UsePinInputReturn[\"api\"];\n api: UsePinInputReturn[\"api\"];\n}\n\n@Directive({\n selector: \"[pin-input-context]\",\n standalone: true,\n exportAs: \"pinInputContext\",\n})\nexport class PinInputContext {\n static ngTemplateContextGuard(\n _directive: PinInputContext,\n context: unknown,\n ): context is PinInputContextTemplate {\n void context;\n return true;\n }\n\n private readonly pinInput = injectPinInputContext();\n private readonly templateRef = inject<TemplateRef<PinInputContextTemplate>>(TemplateRef);\n private readonly viewContainer = inject(ViewContainerRef);\n\n constructor() {\n const view = this.viewContainer.createEmbeddedView(this.templateRef, {\n $implicit: this.pinInput.api,\n api: this.pinInput.api,\n });\n\n effect(() => {\n this.pinInput.api();\n view.detectChanges();\n });\n\n inject(DestroyRef).onDestroy(() => view.destroy());\n }\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectPinInputContext } from \"./use-context\";\n\n@Directive({\n selector: \"[pin-input-control]\",\n standalone: true,\n exportAs: \"pinInputControl\",\n})\nexport class PinInputControl {\n constructor() {\n const context = injectPinInputContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.api().getControlProps(),\n });\n }\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, effect, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\nimport { injectFieldContextOptional } from \"@wirekyt/angular/field\";\n\nimport { injectPinInputContext } from \"./use-context\";\n\n@Directive({\n selector: \"[pin-input-hidden-input]\",\n standalone: true,\n exportAs: \"pinInputHiddenInput\",\n})\nexport class PinInputHiddenInput {\n constructor() {\n const context = injectPinInputContext();\n const field = injectFieldContextOptional();\n const elementRef = inject(ElementRef);\n const renderer = inject(Renderer2);\n const destroyRef = inject(DestroyRef);\n\n bindProps({\n elementRef,\n renderer,\n destroyRef,\n props: () => {\n const props = context.api().getHiddenInputProps() as Record<string, unknown>;\n const { defaultValue: _defaultValue, ...rest } = props;\n return {\n \"aria-describedby\": field?.ariaDescribedby(),\n ...rest,\n };\n },\n });\n\n effect(() => {\n const el = elementRef.nativeElement as HTMLInputElement | null;\n if (!el) return;\n const next = context.api().valueAsString;\n if (el.value !== next) el.value = next;\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n effect,\n inject,\n input,\n numberAttribute,\n type InputSignalWithTransform,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { PIN_INPUT_COUNT_REGISTRAR, injectPinInputContext } from \"./use-context\";\n\n@Directive({\n selector: \"[pin-input-input]\",\n standalone: true,\n exportAs: \"pinInputInput\",\n})\nexport class PinInputInput {\n readonly index: InputSignalWithTransform<number, unknown> = input.required<number, unknown>({\n transform: numberAttribute,\n });\n\n constructor() {\n const context = injectPinInputContext();\n const registrar = inject(PIN_INPUT_COUNT_REGISTRAR, { optional: true });\n const elementRef = inject(ElementRef);\n const renderer = inject(Renderer2);\n const destroyRef = inject(DestroyRef);\n\n if (registrar) {\n let lastIndex: number | null = null;\n let dispose: (() => void) | null = null;\n effect(() => {\n const i = this.index();\n if (i === lastIndex) return;\n if (dispose) dispose();\n lastIndex = i;\n dispose = registrar.register(i);\n });\n destroyRef.onDestroy(() => {\n if (dispose) dispose();\n });\n }\n\n bindProps({\n elementRef,\n renderer,\n destroyRef,\n props: () => {\n const props = context.api().getInputProps({ index: this.index() }) as Record<\n string,\n unknown\n >;\n const { autoComplete, defaultValue: _defaultValue, ...rest } = props;\n if (autoComplete !== undefined) {\n const nextProps = rest as Record<string, unknown> & { autocomplete?: unknown };\n nextProps.autocomplete = autoComplete;\n }\n return rest;\n },\n });\n\n effect(() => {\n const el = elementRef.nativeElement as HTMLInputElement | null;\n if (!el) return;\n const next = context.api().value[this.index()] ?? \"\";\n if (el.value !== next) el.value = next;\n });\n }\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectPinInputContext } from \"./use-context\";\n\n@Directive({\n selector: \"[pin-input-label]\",\n standalone: true,\n exportAs: \"pinInputLabel\",\n})\nexport class PinInputLabel {\n constructor() {\n const context = injectPinInputContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.api().getLabelProps(),\n });\n }\n}\n","import type * as pinInput from \"@wirekyt/dom/machines/pin-input\";\n\nimport {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n forwardRef,\n inject,\n input,\n type InputSignal,\n type Signal,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport type { UsePinInputReturn } from \"./use\";\n\nimport {\n PIN_INPUT_CONTEXT,\n PIN_INPUT_COUNT_REGISTRAR,\n type PinInputCountRegistrar,\n} from \"./use-context\";\n\n@Directive({\n selector: \"[pin-input-root-provider]\",\n standalone: true,\n exportAs: \"pinInputRootProvider\",\n providers: [\n { provide: PIN_INPUT_CONTEXT, useExisting: forwardRef(() => PinInputRootProvider) },\n { provide: PIN_INPUT_COUNT_REGISTRAR, useExisting: forwardRef(() => PinInputRootProvider) },\n ],\n})\nexport class PinInputRootProvider implements UsePinInputReturn, PinInputCountRegistrar {\n readonly value: InputSignal<UsePinInputReturn> = input.required<UsePinInputReturn>();\n\n private readonly _registeredIndices = new Set<number>();\n\n get state(): Signal<pinInput.Service[\"state\"]> {\n return this.value().state;\n }\n get api(): Signal<pinInput.Api> {\n return this.value().api;\n }\n get service(): pinInput.Service {\n return this.value().service;\n }\n get send(): pinInput.Service[\"send\"] {\n return this.value().send;\n }\n\n constructor() {\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => this.value().api().getRootProps(),\n });\n }\n\n register(index: number): () => void {\n this._registeredIndices.add(index);\n this._syncCount();\n return () => {\n this._registeredIndices.delete(index);\n this._syncCount();\n };\n }\n\n private _syncCount(): void {\n const next = this._registeredIndices.size;\n if (next === 0) return;\n const ctx = this.service.context as {\n get: (k: string) => unknown;\n set: (k: string, v: unknown) => void;\n };\n if (ctx.get(\"count\") !== next) {\n ctx.set(\"count\", next);\n }\n }\n}\n","import type { Machine } from \"@wirekyt/dom\";\n\nimport {\n createId,\n injectEnvironment,\n injectLocale,\n useMachine,\n type UseMachineReturn,\n} from \"@wirekyt/angular\";\nimport { injectFieldContextOptional } from \"@wirekyt/angular/field\";\nimport * as pinInput from \"@wirekyt/dom/machines/pin-input\";\n\nimport type { PinInputMachineProps } from \"./types\";\n\ntype OptionalId<T extends { id: string }> = Omit<T, \"id\"> & { id?: string };\n\nexport interface UsePinInputProps extends OptionalId<\n Omit<PinInputMachineProps, \"dir\" | \"getRootNode\">\n> {}\n\nexport type UsePinInputReturn = UseMachineReturn<\n pinInput.Service[\"state\"],\n pinInput.Api,\n pinInput.Service\n>;\n\nexport interface UsePinInputOptions {\n context: () => UsePinInputProps;\n}\n\ntype PinInputContext = Record<string, unknown>;\ntype PinInputSchema = pinInput.Machine extends Machine<infer TSchema> ? TSchema : never;\n\ntype MergedContext = {\n dir: \"ltr\" | \"rtl\";\n locale: string;\n getRootNode: () => ShadowRoot | Document | Node | undefined;\n id: string;\n ids?: PinInputMachineProps[\"ids\"];\n disabled?: boolean;\n invalid?: boolean;\n readOnly?: boolean;\n required?: boolean;\n} & Omit<UsePinInputProps, \"id\" | \"ids\" | \"disabled\" | \"invalid\" | \"readOnly\" | \"required\">;\n\nexport function usePinInput(\n options: UsePinInputOptions = { context: () => ({}) },\n): UsePinInputReturn {\n const locale = injectLocale();\n const environment = injectEnvironment();\n const field = injectFieldContextOptional();\n const fallbackId = createId();\n\n return useMachine<PinInputSchema, pinInput.Api>({\n machine: pinInput.machine,\n context: () => {\n const props = options.context();\n const id = props.id ?? fallbackId;\n const safeRootId = `wirekyt-pin-input-${String(id).replace(/[^a-zA-Z0-9_-]/g, \"-\")}`;\n const baseIds = (props.ids ?? {}) as NonNullable<PinInputMachineProps[\"ids\"]>;\n const merged: MergedContext = {\n dir: locale.dir,\n locale: locale.locale,\n getRootNode: environment.getRootNode,\n ...props,\n id,\n ids: {\n ...baseIds,\n root: baseIds.root ?? safeRootId,\n },\n };\n if (field) {\n const fieldIds = field.ids;\n merged.ids = {\n label: fieldIds.label,\n hiddenInput: fieldIds.control,\n ...merged.ids,\n };\n const disabled = Boolean(props.disabled) || field.disabled();\n const invalid = Boolean(props.invalid) || field.invalid();\n const readOnly = Boolean(props.readOnly) || field.readOnly();\n const required = Boolean(props.required) || field.required();\n merged.disabled = disabled || undefined;\n merged.invalid = invalid || undefined;\n merged.readOnly = readOnly || undefined;\n merged.required = required || undefined;\n }\n return merged as unknown as PinInputContext;\n },\n connect: (service, normalize) => pinInput.connect(service, normalize),\n });\n}\n","import type * as pinInput from \"@wirekyt/dom/machines/pin-input\";\n\nimport {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n booleanAttribute,\n effect,\n forwardRef,\n inject,\n input,\n model,\n output,\n signal,\n type InputSignal,\n type InputSignalWithTransform,\n type ModelSignal,\n type OutputEmitterRef,\n type Signal,\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR, type ControlValueAccessor } from \"@angular/forms\";\nimport { bindProps, createCvaController } from \"@wirekyt/angular\";\n\nimport type {\n PinInputElementIds,\n PinInputIntlTranslations,\n PinInputValueChangeDetails,\n PinInputValueInvalidDetails,\n} from \"./types\";\n\nimport { usePinInput, type UsePinInputReturn } from \"./use\";\nimport {\n PIN_INPUT_CONTEXT,\n PIN_INPUT_COUNT_REGISTRAR,\n type PinInputCountRegistrar,\n} from \"./use-context\";\n\n@Directive({\n selector: \"[pin-input-root]\",\n standalone: true,\n exportAs: \"pinInputRoot\",\n providers: [\n { provide: PIN_INPUT_CONTEXT, useExisting: forwardRef(() => PinInputRoot) },\n { provide: PIN_INPUT_COUNT_REGISTRAR, useExisting: forwardRef(() => PinInputRoot) },\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => PinInputRoot), multi: true },\n ],\n})\nexport class PinInputRoot\n implements ControlValueAccessor, UsePinInputReturn, PinInputCountRegistrar\n{\n readonly id: InputSignal<string | undefined> = input<string | undefined>(undefined);\n readonly elementIds: InputSignal<PinInputElementIds | undefined> = input<\n PinInputElementIds | undefined\n >(undefined, {\n alias: \"ids\",\n });\n readonly value: ModelSignal<string[] | undefined> = model<string[] | undefined>(undefined);\n readonly defaultValue: InputSignal<string[] | undefined> = input<string[] | undefined>(undefined);\n readonly disabled: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly readOnly: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly invalid: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly required: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly name: InputSignal<string | undefined> = input<string | undefined>(undefined);\n readonly form: InputSignal<string | undefined> = input<string | undefined>(undefined);\n readonly pattern: InputSignal<string | undefined> = input<string | undefined>(undefined);\n readonly placeholder: InputSignal<string | undefined> = input<string | undefined>(undefined);\n readonly autoFocus: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly otp: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly mask: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly autoSubmit: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly blurOnComplete: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly selectOnFocus: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly type: InputSignal<\"alphanumeric\" | \"numeric\" | \"alphabetic\" | undefined> = input<\n \"alphanumeric\" | \"numeric\" | \"alphabetic\" | undefined\n >(undefined);\n readonly sanitizeValue: InputSignal<((value: string) => string) | undefined> = input<\n ((value: string) => string) | undefined\n >(undefined);\n readonly count: InputSignal<number | undefined> = input<number | undefined>(undefined);\n readonly translations: InputSignal<PinInputIntlTranslations | undefined> = input<\n PinInputIntlTranslations | undefined\n >(undefined);\n readonly valueComplete: OutputEmitterRef<PinInputValueChangeDetails> =\n output<PinInputValueChangeDetails>();\n readonly valueDetailsChange: OutputEmitterRef<PinInputValueChangeDetails> =\n output<PinInputValueChangeDetails>();\n readonly valueInvalid: OutputEmitterRef<PinInputValueInvalidDetails> =\n output<PinInputValueInvalidDetails>();\n\n private readonly _disabledFromForm = signal(false);\n private _pendingInternalWrites = 0;\n private _hasExternalBinding = false;\n private _hasReceivedFormWrite = false;\n private readonly _registeredIndices = new Set<number>();\n\n private readonly cva = createCvaController<string[]>({\n value: this.value,\n setDisabled: (disabled) => this._disabledFromForm.set(disabled),\n componentName: \"PinInputRoot\",\n hasExternalModelBinding: () => this._hasExternalBinding,\n });\n\n private readonly machine = usePinInput({\n context: () => ({\n id: this.id(),\n ids: this.elementIds(),\n value: this.value(),\n defaultValue: this.defaultValue(),\n disabled: this.disabled() || this._disabledFromForm() || undefined,\n readOnly: this.readOnly() || undefined,\n invalid: this.invalid() || undefined,\n required: this.required() || undefined,\n name: this.name(),\n form: this.form(),\n pattern: this.pattern(),\n placeholder: this.placeholder(),\n autoFocus: this.autoFocus() || undefined,\n otp: this.otp() || undefined,\n mask: this.mask() || undefined,\n autoSubmit: this.autoSubmit() || undefined,\n blurOnComplete: this.blurOnComplete() || undefined,\n selectOnFocus: this.selectOnFocus() || undefined,\n type: this.type(),\n sanitizeValue: this.sanitizeValue(),\n count: this.count(),\n translations: this.translations(),\n onValueChange: (details: PinInputValueChangeDetails) => {\n if (this.value() !== details.value) {\n this._pendingInternalWrites++;\n this.value.set(details.value);\n }\n this.cva.notifyValueChange(details.value);\n this.valueDetailsChange.emit(details);\n },\n onValueComplete: (details: PinInputValueChangeDetails) => {\n this.valueComplete.emit(details);\n this.cva.markTouched();\n },\n onValueInvalid: (details: PinInputValueInvalidDetails) => {\n this.valueInvalid.emit(details);\n },\n }),\n });\n\n readonly state: Signal<pinInput.Service[\"state\"]> = this.machine.state;\n readonly api: Signal<pinInput.Api> = this.machine.api;\n readonly service: pinInput.Service = this.machine.service;\n readonly send: pinInput.Service[\"send\"] = this.machine.send;\n\n constructor() {\n let firstRun = true;\n effect(() => {\n void this.value();\n if (firstRun) {\n firstRun = false;\n this._pendingInternalWrites = 0;\n return;\n }\n if (this._pendingInternalWrites > 0) {\n this._pendingInternalWrites--;\n return;\n }\n this._hasExternalBinding = true;\n });\n\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => this.api().getRootProps(),\n });\n }\n\n writeValue(value: string[] | null): void {\n const next = value === null ? undefined : value;\n const current = this.value();\n if (!this._hasReceivedFormWrite && current !== undefined) {\n this._hasExternalBinding = true;\n }\n this._hasReceivedFormWrite = true;\n if (!arraysShallowEqual(current, next)) {\n this._pendingInternalWrites++;\n }\n this.cva.writeValue(value);\n }\n\n registerOnChange(fn: (value: string[] | undefined) => void): void {\n this.cva.registerOnChange(fn);\n }\n\n registerOnTouched(fn: () => void): void {\n this.cva.registerOnTouched(fn);\n }\n\n setDisabledState(disabled: boolean): void {\n this.cva.setDisabledState(disabled);\n }\n\n register(index: number): () => void {\n this._registeredIndices.add(index);\n this._syncCount();\n return () => {\n this._registeredIndices.delete(index);\n this._syncCount();\n };\n }\n\n private _syncCount(): void {\n const next = this._registeredIndices.size;\n if (next === 0) return;\n const ctx = this.service.context as {\n get: (k: string) => unknown;\n set: (k: string, v: unknown) => void;\n };\n if (ctx.get(\"count\") !== next) {\n ctx.set(\"count\", next);\n }\n }\n}\n\nfunction arraysShallowEqual(a: string[] | undefined, b: string[] | undefined): boolean {\n if (a === b) return true;\n if (!a || !b) return false;\n if (a.length !== b.length) return false;\n return a.every((item, index) => item === b[index]);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAIa,iBAAiB,GAAG,IAAI,cAAc,CAAoB,2BAA2B;AAM3F,MAAM,yBAAyB,GAAG,IAAI,cAAc,CACzD,mCAAmC,CACpC;SAEe,qBAAqB,GAAA;AACnC,IAAA,OAAO,MAAM,CAAC,iBAAiB,CAAC;AAClC;;MCOa,eAAe,CAAA;AAC1B,IAAA,OAAO,sBAAsB,CAC3B,UAA2B,EAC3B,OAAgB,EAAA;AAEhB,QAAA,KAAK,OAAO;AACZ,QAAA,OAAO,IAAI;IACb;IAEiB,QAAQ,GAAG,qBAAqB,EAAE;AAClC,IAAA,WAAW,GAAG,MAAM,CAAuC,WAAW,CAAC;AACvE,IAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAEzD,IAAA,WAAA,GAAA;QACE,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,IAAI,CAAC,WAAW,EAAE;AACnE,YAAA,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG;AAC5B,YAAA,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG;AACvB,SAAA,CAAC;QAEF,MAAM,CAAC,MAAK;AACV,YAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE;YACnB,IAAI,CAAC,aAAa,EAAE;AACtB,QAAA,CAAC,CAAC;AAEF,QAAA,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;IACpD;uGAzBW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,Q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