@aeris-ui/core 22.0.0-alpha.11 → 22.0.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/fesm2022/aeris-ui-core-accordion.mjs +14 -14
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +3 -3
- package/fesm2022/aeris-ui-core-auto-complete.mjs +21 -20
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-focus.mjs +3 -3
- package/fesm2022/aeris-ui-core-avatar.mjs +6 -6
- package/fesm2022/aeris-ui-core-badge.mjs +6 -6
- package/fesm2022/aeris-ui-core-block-ui.mjs +3 -3
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +12 -12
- package/fesm2022/aeris-ui-core-button-forms.mjs +3 -3
- package/fesm2022/aeris-ui-core-button-group.mjs +6 -6
- package/fesm2022/aeris-ui-core-button.mjs +9 -9
- package/fesm2022/aeris-ui-core-card.mjs +18 -18
- package/fesm2022/aeris-ui-core-carousel.mjs +12 -12
- package/fesm2022/aeris-ui-core-cascade-select.mjs +17 -14
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +3 -3
- package/fesm2022/aeris-ui-core-checkbox.mjs +3 -3
- package/fesm2022/aeris-ui-core-chip.mjs +12 -12
- package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
- package/fesm2022/aeris-ui-core-code-block.mjs +3 -3
- package/fesm2022/aeris-ui-core-color-picker.mjs +6 -4
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-command-palette.mjs +18 -18
- package/fesm2022/aeris-ui-core-compare.mjs +12 -12
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +53 -26
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +54 -27
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +7 -7
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/{aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs → aeris-ui-core-date-picker-aeris-date-picker-input-66V2U8rC.mjs} +4 -4
- package/fesm2022/{aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs.map → aeris-ui-core-date-picker-aeris-date-picker-input-66V2U8rC.mjs.map} +1 -1
- package/fesm2022/aeris-ui-core-date-picker.mjs +528 -151
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +16 -16
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-divider.mjs +3 -3
- package/fesm2022/aeris-ui-core-drawer.mjs +16 -16
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +27 -14
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +5 -5
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +24 -24
- package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-fluid.mjs +3 -3
- package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
- package/fesm2022/aeris-ui-core-form-field.mjs +15 -15
- package/fesm2022/aeris-ui-core-galleria.mjs +35 -35
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-glass.mjs +3 -3
- package/fesm2022/aeris-ui-core-icon-field.mjs +12 -12
- package/fesm2022/aeris-ui-core-inplace.mjs +9 -9
- package/fesm2022/aeris-ui-core-input-group.mjs +15 -15
- package/fesm2022/aeris-ui-core-input-mask.mjs +3 -3
- package/fesm2022/aeris-ui-core-input-number.mjs +3 -3
- package/fesm2022/aeris-ui-core-input-otp.mjs +19 -8
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-text.mjs +6 -6
- package/fesm2022/aeris-ui-core-kbd.mjs +9 -9
- package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
- package/fesm2022/aeris-ui-core-listbox.mjs +15 -15
- package/fesm2022/aeris-ui-core-mega-menu.mjs +6 -6
- package/fesm2022/aeris-ui-core-menu.mjs +16 -16
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +12 -12
- package/fesm2022/aeris-ui-core-message.mjs +9 -9
- package/fesm2022/aeris-ui-core-meter-group.mjs +15 -15
- package/fesm2022/aeris-ui-core-multi-select.mjs +36 -24
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-navbar.mjs +25 -25
- package/fesm2022/aeris-ui-core-navbar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-order-list.mjs +9 -9
- package/fesm2022/aeris-ui-core-organization-chart.mjs +117 -50
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +7 -5
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +15 -15
- package/fesm2022/aeris-ui-core-password.mjs +13 -13
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +9 -9
- package/fesm2022/aeris-ui-core-popover.mjs +16 -16
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +9 -9
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +6 -6
- package/fesm2022/aeris-ui-core-radio-button.mjs +3 -3
- package/fesm2022/aeris-ui-core-rating.mjs +15 -5
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +3 -3
- package/fesm2022/aeris-ui-core-scroll-top.mjs +3 -3
- package/fesm2022/aeris-ui-core-select-native.mjs +3 -3
- package/fesm2022/aeris-ui-core-select.mjs +41 -39
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-sidebar.mjs +24 -24
- package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
- package/fesm2022/aeris-ui-core-slider.mjs +23 -12
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-speed-dial.mjs +3 -3
- package/fesm2022/aeris-ui-core-split-button.mjs +7 -7
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +6 -6
- package/fesm2022/aeris-ui-core-stepper.mjs +12 -12
- package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
- package/fesm2022/aeris-ui-core-table.mjs +21 -21
- package/fesm2022/aeris-ui-core-tabs.mjs +12 -12
- package/fesm2022/aeris-ui-core-textarea.mjs +6 -6
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +3 -3
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +7 -7
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-timeline.mjs +15 -15
- package/fesm2022/aeris-ui-core-toast.mjs +69 -46
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +3 -3
- package/fesm2022/aeris-ui-core-toolbar.mjs +30 -30
- package/fesm2022/aeris-ui-core-tooltip.mjs +6 -6
- package/fesm2022/aeris-ui-core-tree-select.mjs +37 -26
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +18 -18
- package/fesm2022/aeris-ui-core-tree.mjs +12 -12
- package/fesm2022/aeris-ui-core.mjs +40 -17
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +2 -2
- package/types/aeris-ui-core-code-block.d.ts +0 -4
- package/types/aeris-ui-core-confirm-dialog.d.ts +2 -0
- package/types/aeris-ui-core-confirm-popup.d.ts +2 -0
- package/types/aeris-ui-core-date-picker.d.ts +5 -44
- package/types/aeris-ui-core-drawer.d.ts +0 -6
- package/types/aeris-ui-core-dynamic-dialog.d.ts +1 -0
- package/types/aeris-ui-core-organization-chart.d.ts +6 -2
- package/types/aeris-ui-core-toast.d.ts +4 -2
- package/types/aeris-ui-core-tree-select.d.ts +1 -0
- package/types/aeris-ui-core.d.ts +4 -3
|
@@ -8,7 +8,7 @@ var AerisIconDirective = class AerisIconDirective {
|
|
|
8
8
|
});
|
|
9
9
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
10
10
|
minVersion: "12.0.0",
|
|
11
|
-
version: "22.2.
|
|
11
|
+
version: "22.2.4",
|
|
12
12
|
ngImport: i0,
|
|
13
13
|
type: AerisIconDirective,
|
|
14
14
|
deps: [],
|
|
@@ -16,7 +16,7 @@ var AerisIconDirective = class AerisIconDirective {
|
|
|
16
16
|
});
|
|
17
17
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
18
18
|
minVersion: "17.1.0",
|
|
19
|
-
version: "22.2.
|
|
19
|
+
version: "22.2.4",
|
|
20
20
|
type: AerisIconDirective,
|
|
21
21
|
isStandalone: true,
|
|
22
22
|
selector: "[aerisIcon]",
|
|
@@ -37,7 +37,7 @@ var AerisIconDirective = class AerisIconDirective {
|
|
|
37
37
|
};
|
|
38
38
|
i0.ɵɵngDeclareClassMetadata({
|
|
39
39
|
minVersion: "12.0.0",
|
|
40
|
-
version: "22.2.
|
|
40
|
+
version: "22.2.4",
|
|
41
41
|
ngImport: i0,
|
|
42
42
|
type: AerisIconDirective,
|
|
43
43
|
decorators: [{
|
|
@@ -67,7 +67,7 @@ var AerisIconStartDirective = class AerisIconStartDirective {
|
|
|
67
67
|
});
|
|
68
68
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
69
69
|
minVersion: "12.0.0",
|
|
70
|
-
version: "22.2.
|
|
70
|
+
version: "22.2.4",
|
|
71
71
|
ngImport: i0,
|
|
72
72
|
type: AerisIconStartDirective,
|
|
73
73
|
deps: [],
|
|
@@ -75,7 +75,7 @@ var AerisIconStartDirective = class AerisIconStartDirective {
|
|
|
75
75
|
});
|
|
76
76
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
77
77
|
minVersion: "17.1.0",
|
|
78
|
-
version: "22.2.
|
|
78
|
+
version: "22.2.4",
|
|
79
79
|
type: AerisIconStartDirective,
|
|
80
80
|
isStandalone: true,
|
|
81
81
|
selector: "[aerisIconStart]",
|
|
@@ -96,7 +96,7 @@ var AerisIconStartDirective = class AerisIconStartDirective {
|
|
|
96
96
|
};
|
|
97
97
|
i0.ɵɵngDeclareClassMetadata({
|
|
98
98
|
minVersion: "12.0.0",
|
|
99
|
-
version: "22.2.
|
|
99
|
+
version: "22.2.4",
|
|
100
100
|
ngImport: i0,
|
|
101
101
|
type: AerisIconStartDirective,
|
|
102
102
|
decorators: [{
|
|
@@ -126,7 +126,7 @@ var AerisIconEndDirective = class AerisIconEndDirective {
|
|
|
126
126
|
});
|
|
127
127
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
128
128
|
minVersion: "12.0.0",
|
|
129
|
-
version: "22.2.
|
|
129
|
+
version: "22.2.4",
|
|
130
130
|
ngImport: i0,
|
|
131
131
|
type: AerisIconEndDirective,
|
|
132
132
|
deps: [],
|
|
@@ -134,7 +134,7 @@ var AerisIconEndDirective = class AerisIconEndDirective {
|
|
|
134
134
|
});
|
|
135
135
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
136
136
|
minVersion: "17.1.0",
|
|
137
|
-
version: "22.2.
|
|
137
|
+
version: "22.2.4",
|
|
138
138
|
type: AerisIconEndDirective,
|
|
139
139
|
isStandalone: true,
|
|
140
140
|
selector: "[aerisIconEnd]",
|
|
@@ -155,7 +155,7 @@ var AerisIconEndDirective = class AerisIconEndDirective {
|
|
|
155
155
|
};
|
|
156
156
|
i0.ɵɵngDeclareClassMetadata({
|
|
157
157
|
minVersion: "12.0.0",
|
|
158
|
-
version: "22.2.
|
|
158
|
+
version: "22.2.4",
|
|
159
159
|
ngImport: i0,
|
|
160
160
|
type: AerisIconEndDirective,
|
|
161
161
|
decorators: [{
|
|
@@ -203,7 +203,7 @@ var AerisIconFieldComponent = class AerisIconFieldComponent {
|
|
|
203
203
|
displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
|
|
204
204
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
205
205
|
minVersion: "12.0.0",
|
|
206
|
-
version: "22.2.
|
|
206
|
+
version: "22.2.4",
|
|
207
207
|
ngImport: i0,
|
|
208
208
|
type: AerisIconFieldComponent,
|
|
209
209
|
deps: [],
|
|
@@ -211,7 +211,7 @@ var AerisIconFieldComponent = class AerisIconFieldComponent {
|
|
|
211
211
|
});
|
|
212
212
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
213
213
|
minVersion: "17.1.0",
|
|
214
|
-
version: "22.2.
|
|
214
|
+
version: "22.2.4",
|
|
215
215
|
type: AerisIconFieldComponent,
|
|
216
216
|
isStandalone: true,
|
|
217
217
|
selector: "aeris-icon-field",
|
|
@@ -317,7 +317,7 @@ var AerisIconFieldComponent = class AerisIconFieldComponent {
|
|
|
317
317
|
};
|
|
318
318
|
i0.ɵɵngDeclareClassMetadata({
|
|
319
319
|
minVersion: "12.0.0",
|
|
320
|
-
version: "22.2.
|
|
320
|
+
version: "22.2.4",
|
|
321
321
|
ngImport: i0,
|
|
322
322
|
type: AerisIconFieldComponent,
|
|
323
323
|
decorators: [{
|
|
@@ -6,7 +6,7 @@ var AerisInplaceDisplayTemplate = class AerisInplaceDisplayTemplate {
|
|
|
6
6
|
template = inject(TemplateRef);
|
|
7
7
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
8
8
|
minVersion: "12.0.0",
|
|
9
|
-
version: "22.2.
|
|
9
|
+
version: "22.2.4",
|
|
10
10
|
ngImport: i0,
|
|
11
11
|
type: AerisInplaceDisplayTemplate,
|
|
12
12
|
deps: [],
|
|
@@ -14,7 +14,7 @@ var AerisInplaceDisplayTemplate = class AerisInplaceDisplayTemplate {
|
|
|
14
14
|
});
|
|
15
15
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
16
16
|
minVersion: "14.0.0",
|
|
17
|
-
version: "22.2.
|
|
17
|
+
version: "22.2.4",
|
|
18
18
|
type: AerisInplaceDisplayTemplate,
|
|
19
19
|
isStandalone: true,
|
|
20
20
|
selector: "ng-template[aerisInplaceDisplay]",
|
|
@@ -23,7 +23,7 @@ var AerisInplaceDisplayTemplate = class AerisInplaceDisplayTemplate {
|
|
|
23
23
|
};
|
|
24
24
|
i0.ɵɵngDeclareClassMetadata({
|
|
25
25
|
minVersion: "12.0.0",
|
|
26
|
-
version: "22.2.
|
|
26
|
+
version: "22.2.4",
|
|
27
27
|
ngImport: i0,
|
|
28
28
|
type: AerisInplaceDisplayTemplate,
|
|
29
29
|
decorators: [{
|
|
@@ -35,7 +35,7 @@ var AerisInplaceContentTemplate = class AerisInplaceContentTemplate {
|
|
|
35
35
|
template = inject(TemplateRef);
|
|
36
36
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
37
37
|
minVersion: "12.0.0",
|
|
38
|
-
version: "22.2.
|
|
38
|
+
version: "22.2.4",
|
|
39
39
|
ngImport: i0,
|
|
40
40
|
type: AerisInplaceContentTemplate,
|
|
41
41
|
deps: [],
|
|
@@ -43,7 +43,7 @@ var AerisInplaceContentTemplate = class AerisInplaceContentTemplate {
|
|
|
43
43
|
});
|
|
44
44
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
45
45
|
minVersion: "14.0.0",
|
|
46
|
-
version: "22.2.
|
|
46
|
+
version: "22.2.4",
|
|
47
47
|
type: AerisInplaceContentTemplate,
|
|
48
48
|
isStandalone: true,
|
|
49
49
|
selector: "ng-template[aerisInplaceContent]",
|
|
@@ -52,7 +52,7 @@ var AerisInplaceContentTemplate = class AerisInplaceContentTemplate {
|
|
|
52
52
|
};
|
|
53
53
|
i0.ɵɵngDeclareClassMetadata({
|
|
54
54
|
minVersion: "12.0.0",
|
|
55
|
-
version: "22.2.
|
|
55
|
+
version: "22.2.4",
|
|
56
56
|
ngImport: i0,
|
|
57
57
|
type: AerisInplaceContentTemplate,
|
|
58
58
|
decorators: [{
|
|
@@ -146,7 +146,7 @@ var AerisInplace = class AerisInplace {
|
|
|
146
146
|
}
|
|
147
147
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
148
148
|
minVersion: "12.0.0",
|
|
149
|
-
version: "22.2.
|
|
149
|
+
version: "22.2.4",
|
|
150
150
|
ngImport: i0,
|
|
151
151
|
type: AerisInplace,
|
|
152
152
|
deps: [],
|
|
@@ -154,7 +154,7 @@ var AerisInplace = class AerisInplace {
|
|
|
154
154
|
});
|
|
155
155
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
156
156
|
minVersion: "17.0.0",
|
|
157
|
-
version: "22.2.
|
|
157
|
+
version: "22.2.4",
|
|
158
158
|
type: AerisInplace,
|
|
159
159
|
isStandalone: true,
|
|
160
160
|
selector: "aeris-inplace",
|
|
@@ -379,7 +379,7 @@ var AerisInplace = class AerisInplace {
|
|
|
379
379
|
};
|
|
380
380
|
i0.ɵɵngDeclareClassMetadata({
|
|
381
381
|
minVersion: "12.0.0",
|
|
382
|
-
version: "22.2.
|
|
382
|
+
version: "22.2.4",
|
|
383
383
|
ngImport: i0,
|
|
384
384
|
type: AerisInplace,
|
|
385
385
|
decorators: [{
|
|
@@ -8,7 +8,7 @@ var AerisInputGroupAddonDirective = class AerisInputGroupAddonDirective {
|
|
|
8
8
|
});
|
|
9
9
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
10
10
|
minVersion: "12.0.0",
|
|
11
|
-
version: "22.2.
|
|
11
|
+
version: "22.2.4",
|
|
12
12
|
ngImport: i0,
|
|
13
13
|
type: AerisInputGroupAddonDirective,
|
|
14
14
|
deps: [],
|
|
@@ -16,7 +16,7 @@ var AerisInputGroupAddonDirective = class AerisInputGroupAddonDirective {
|
|
|
16
16
|
});
|
|
17
17
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
18
18
|
minVersion: "17.1.0",
|
|
19
|
-
version: "22.2.
|
|
19
|
+
version: "22.2.4",
|
|
20
20
|
type: AerisInputGroupAddonDirective,
|
|
21
21
|
isStandalone: true,
|
|
22
22
|
selector: "[aerisInputGroupAddon]",
|
|
@@ -37,7 +37,7 @@ var AerisInputGroupAddonDirective = class AerisInputGroupAddonDirective {
|
|
|
37
37
|
};
|
|
38
38
|
i0.ɵɵngDeclareClassMetadata({
|
|
39
39
|
minVersion: "12.0.0",
|
|
40
|
-
version: "22.2.
|
|
40
|
+
version: "22.2.4",
|
|
41
41
|
ngImport: i0,
|
|
42
42
|
type: AerisInputGroupAddonDirective,
|
|
43
43
|
decorators: [{
|
|
@@ -67,7 +67,7 @@ var AerisInputGroupAddonComponent = class AerisInputGroupAddonComponent {
|
|
|
67
67
|
});
|
|
68
68
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
69
69
|
minVersion: "12.0.0",
|
|
70
|
-
version: "22.2.
|
|
70
|
+
version: "22.2.4",
|
|
71
71
|
ngImport: i0,
|
|
72
72
|
type: AerisInputGroupAddonComponent,
|
|
73
73
|
deps: [],
|
|
@@ -75,7 +75,7 @@ var AerisInputGroupAddonComponent = class AerisInputGroupAddonComponent {
|
|
|
75
75
|
});
|
|
76
76
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
77
77
|
minVersion: "17.1.0",
|
|
78
|
-
version: "22.2.
|
|
78
|
+
version: "22.2.4",
|
|
79
79
|
type: AerisInputGroupAddonComponent,
|
|
80
80
|
isStandalone: true,
|
|
81
81
|
selector: "aeris-input-group-addon",
|
|
@@ -98,7 +98,7 @@ var AerisInputGroupAddonComponent = class AerisInputGroupAddonComponent {
|
|
|
98
98
|
};
|
|
99
99
|
i0.ɵɵngDeclareClassMetadata({
|
|
100
100
|
minVersion: "12.0.0",
|
|
101
|
-
version: "22.2.
|
|
101
|
+
version: "22.2.4",
|
|
102
102
|
ngImport: i0,
|
|
103
103
|
type: AerisInputGroupAddonComponent,
|
|
104
104
|
decorators: [{
|
|
@@ -125,7 +125,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
125
125
|
var AerisInputGroupAddonStackDirective = class AerisInputGroupAddonStackDirective {
|
|
126
126
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
127
127
|
minVersion: "12.0.0",
|
|
128
|
-
version: "22.2.
|
|
128
|
+
version: "22.2.4",
|
|
129
129
|
ngImport: i0,
|
|
130
130
|
type: AerisInputGroupAddonStackDirective,
|
|
131
131
|
deps: [],
|
|
@@ -133,7 +133,7 @@ var AerisInputGroupAddonStackDirective = class AerisInputGroupAddonStackDirectiv
|
|
|
133
133
|
});
|
|
134
134
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
135
135
|
minVersion: "14.0.0",
|
|
136
|
-
version: "22.2.
|
|
136
|
+
version: "22.2.4",
|
|
137
137
|
type: AerisInputGroupAddonStackDirective,
|
|
138
138
|
isStandalone: true,
|
|
139
139
|
selector: "[aerisInputGroupAddonStack]",
|
|
@@ -143,7 +143,7 @@ var AerisInputGroupAddonStackDirective = class AerisInputGroupAddonStackDirectiv
|
|
|
143
143
|
};
|
|
144
144
|
i0.ɵɵngDeclareClassMetadata({
|
|
145
145
|
minVersion: "12.0.0",
|
|
146
|
-
version: "22.2.
|
|
146
|
+
version: "22.2.4",
|
|
147
147
|
ngImport: i0,
|
|
148
148
|
type: AerisInputGroupAddonStackDirective,
|
|
149
149
|
decorators: [{
|
|
@@ -157,7 +157,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
157
157
|
var AerisInputGroupAddonStackComponent = class AerisInputGroupAddonStackComponent {
|
|
158
158
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
159
159
|
minVersion: "12.0.0",
|
|
160
|
-
version: "22.2.
|
|
160
|
+
version: "22.2.4",
|
|
161
161
|
ngImport: i0,
|
|
162
162
|
type: AerisInputGroupAddonStackComponent,
|
|
163
163
|
deps: [],
|
|
@@ -165,7 +165,7 @@ var AerisInputGroupAddonStackComponent = class AerisInputGroupAddonStackComponen
|
|
|
165
165
|
});
|
|
166
166
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
167
167
|
minVersion: "14.0.0",
|
|
168
|
-
version: "22.2.
|
|
168
|
+
version: "22.2.4",
|
|
169
169
|
type: AerisInputGroupAddonStackComponent,
|
|
170
170
|
isStandalone: true,
|
|
171
171
|
selector: "aeris-input-group-addon-stack",
|
|
@@ -177,7 +177,7 @@ var AerisInputGroupAddonStackComponent = class AerisInputGroupAddonStackComponen
|
|
|
177
177
|
};
|
|
178
178
|
i0.ɵɵngDeclareClassMetadata({
|
|
179
179
|
minVersion: "12.0.0",
|
|
180
|
-
version: "22.2.
|
|
180
|
+
version: "22.2.4",
|
|
181
181
|
ngImport: i0,
|
|
182
182
|
type: AerisInputGroupAddonStackComponent,
|
|
183
183
|
decorators: [{
|
|
@@ -210,7 +210,7 @@ var AerisInputGroupComponent = class AerisInputGroupComponent {
|
|
|
210
210
|
displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
|
|
211
211
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
212
212
|
minVersion: "12.0.0",
|
|
213
|
-
version: "22.2.
|
|
213
|
+
version: "22.2.4",
|
|
214
214
|
ngImport: i0,
|
|
215
215
|
type: AerisInputGroupComponent,
|
|
216
216
|
deps: [],
|
|
@@ -218,7 +218,7 @@ var AerisInputGroupComponent = class AerisInputGroupComponent {
|
|
|
218
218
|
});
|
|
219
219
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
220
220
|
minVersion: "17.1.0",
|
|
221
|
-
version: "22.2.
|
|
221
|
+
version: "22.2.4",
|
|
222
222
|
type: AerisInputGroupComponent,
|
|
223
223
|
isStandalone: true,
|
|
224
224
|
selector: "aeris-input-group",
|
|
@@ -308,7 +308,7 @@ var AerisInputGroupComponent = class AerisInputGroupComponent {
|
|
|
308
308
|
};
|
|
309
309
|
i0.ɵɵngDeclareClassMetadata({
|
|
310
310
|
minVersion: "12.0.0",
|
|
311
|
-
version: "22.2.
|
|
311
|
+
version: "22.2.4",
|
|
312
312
|
ngImport: i0,
|
|
313
313
|
type: AerisInputGroupComponent,
|
|
314
314
|
decorators: [{
|
|
@@ -129,7 +129,7 @@ var AerisInputMask = class AerisInputMask {
|
|
|
129
129
|
}
|
|
130
130
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
131
131
|
minVersion: "12.0.0",
|
|
132
|
-
version: "22.2.
|
|
132
|
+
version: "22.2.4",
|
|
133
133
|
ngImport: i0,
|
|
134
134
|
type: AerisInputMask,
|
|
135
135
|
deps: [],
|
|
@@ -137,7 +137,7 @@ var AerisInputMask = class AerisInputMask {
|
|
|
137
137
|
});
|
|
138
138
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
139
139
|
minVersion: "17.0.0",
|
|
140
|
-
version: "22.2.
|
|
140
|
+
version: "22.2.4",
|
|
141
141
|
type: AerisInputMask,
|
|
142
142
|
isStandalone: true,
|
|
143
143
|
selector: "aeris-input-mask",
|
|
@@ -413,7 +413,7 @@ var AerisInputMask = class AerisInputMask {
|
|
|
413
413
|
};
|
|
414
414
|
i0.ɵɵngDeclareClassMetadata({
|
|
415
415
|
minVersion: "12.0.0",
|
|
416
|
-
version: "22.2.
|
|
416
|
+
version: "22.2.4",
|
|
417
417
|
ngImport: i0,
|
|
418
418
|
type: AerisInputMask,
|
|
419
419
|
decorators: [{
|
|
@@ -275,7 +275,7 @@ var AerisInputNumber = class AerisInputNumber {
|
|
|
275
275
|
}
|
|
276
276
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
277
277
|
minVersion: "12.0.0",
|
|
278
|
-
version: "22.2.
|
|
278
|
+
version: "22.2.4",
|
|
279
279
|
ngImport: i0,
|
|
280
280
|
type: AerisInputNumber,
|
|
281
281
|
deps: [],
|
|
@@ -283,7 +283,7 @@ var AerisInputNumber = class AerisInputNumber {
|
|
|
283
283
|
});
|
|
284
284
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
285
285
|
minVersion: "17.0.0",
|
|
286
|
-
version: "22.2.
|
|
286
|
+
version: "22.2.4",
|
|
287
287
|
type: AerisInputNumber,
|
|
288
288
|
isStandalone: true,
|
|
289
289
|
selector: "aeris-input-number",
|
|
@@ -765,7 +765,7 @@ var AerisInputNumber = class AerisInputNumber {
|
|
|
765
765
|
};
|
|
766
766
|
i0.ɵɵngDeclareClassMetadata({
|
|
767
767
|
minVersion: "12.0.0",
|
|
768
|
-
version: "22.2.
|
|
768
|
+
version: "22.2.4",
|
|
769
769
|
ngImport: i0,
|
|
770
770
|
type: AerisInputNumber,
|
|
771
771
|
decorators: [{
|
|
@@ -7,7 +7,7 @@ var AerisInputOtpSeparatorTemplate = class AerisInputOtpSeparatorTemplate {
|
|
|
7
7
|
template = inject(TemplateRef);
|
|
8
8
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9
9
|
minVersion: "12.0.0",
|
|
10
|
-
version: "22.2.
|
|
10
|
+
version: "22.2.4",
|
|
11
11
|
ngImport: i0,
|
|
12
12
|
type: AerisInputOtpSeparatorTemplate,
|
|
13
13
|
deps: [],
|
|
@@ -15,7 +15,7 @@ var AerisInputOtpSeparatorTemplate = class AerisInputOtpSeparatorTemplate {
|
|
|
15
15
|
});
|
|
16
16
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
17
17
|
minVersion: "14.0.0",
|
|
18
|
-
version: "22.2.
|
|
18
|
+
version: "22.2.4",
|
|
19
19
|
type: AerisInputOtpSeparatorTemplate,
|
|
20
20
|
isStandalone: true,
|
|
21
21
|
selector: "ng-template[aerisInputOtpSeparator]",
|
|
@@ -24,7 +24,7 @@ var AerisInputOtpSeparatorTemplate = class AerisInputOtpSeparatorTemplate {
|
|
|
24
24
|
};
|
|
25
25
|
i0.ɵɵngDeclareClassMetadata({
|
|
26
26
|
minVersion: "12.0.0",
|
|
27
|
-
version: "22.2.
|
|
27
|
+
version: "22.2.4",
|
|
28
28
|
ngImport: i0,
|
|
29
29
|
type: AerisInputOtpSeparatorTemplate,
|
|
30
30
|
decorators: [{
|
|
@@ -191,6 +191,7 @@ var AerisInputOtpComponent = class AerisInputOtpComponent {
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
handlePaste(event, index) {
|
|
194
|
+
if (this.effectiveDisabled() || this.readonly()) return;
|
|
194
195
|
const pasted = this.filterCharacters(event.clipboardData?.getData("text") ?? "");
|
|
195
196
|
if (!pasted) return;
|
|
196
197
|
event.preventDefault();
|
|
@@ -241,7 +242,7 @@ var AerisInputOtpComponent = class AerisInputOtpComponent {
|
|
|
241
242
|
}
|
|
242
243
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
243
244
|
minVersion: "12.0.0",
|
|
244
|
-
version: "22.2.
|
|
245
|
+
version: "22.2.4",
|
|
245
246
|
ngImport: i0,
|
|
246
247
|
type: AerisInputOtpComponent,
|
|
247
248
|
deps: [],
|
|
@@ -249,7 +250,7 @@ var AerisInputOtpComponent = class AerisInputOtpComponent {
|
|
|
249
250
|
});
|
|
250
251
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
251
252
|
minVersion: "17.0.0",
|
|
252
|
-
version: "22.2.
|
|
253
|
+
version: "22.2.4",
|
|
253
254
|
type: AerisInputOtpComponent,
|
|
254
255
|
isStandalone: true,
|
|
255
256
|
selector: "aeris-input-otp",
|
|
@@ -447,7 +448,12 @@ var AerisInputOtpComponent = class AerisInputOtpComponent {
|
|
|
447
448
|
(focusout)="handleFocusOut($event)"
|
|
448
449
|
>
|
|
449
450
|
@if (name()) {
|
|
450
|
-
<input
|
|
451
|
+
<input
|
|
452
|
+
type="hidden"
|
|
453
|
+
[name]="name()"
|
|
454
|
+
[value]="normalizedValue()"
|
|
455
|
+
[disabled]="effectiveDisabled()"
|
|
456
|
+
/>
|
|
451
457
|
}
|
|
452
458
|
|
|
453
459
|
@for (slot of slots(); track slot.index) {
|
|
@@ -499,7 +505,7 @@ var AerisInputOtpComponent = class AerisInputOtpComponent {
|
|
|
499
505
|
};
|
|
500
506
|
i0.ɵɵngDeclareClassMetadata({
|
|
501
507
|
minVersion: "12.0.0",
|
|
502
|
-
version: "22.2.
|
|
508
|
+
version: "22.2.4",
|
|
503
509
|
ngImport: i0,
|
|
504
510
|
type: AerisInputOtpComponent,
|
|
505
511
|
decorators: [{
|
|
@@ -525,7 +531,12 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
525
531
|
(focusout)="handleFocusOut($event)"
|
|
526
532
|
>
|
|
527
533
|
@if (name()) {
|
|
528
|
-
<input
|
|
534
|
+
<input
|
|
535
|
+
type="hidden"
|
|
536
|
+
[name]="name()"
|
|
537
|
+
[value]="normalizedValue()"
|
|
538
|
+
[disabled]="effectiveDisabled()"
|
|
539
|
+
/>
|
|
529
540
|
}
|
|
530
541
|
|
|
531
542
|
@for (slot of slots(); track slot.index) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aeris-ui-core-input-otp.mjs","names":[],"sources":["../../../projects/aeris-ui/input-otp/aeris-input-otp.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n ElementRef,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n forwardRef,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChildren,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ɵaerisDisplayInvalid } from '@aeris-ui/core';\n\nexport type AerisInputOtpSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type AerisInputOtpAppearance = 'outline' | 'filled';\nexport type AerisInputOtpMode = 'numeric' | 'alphanumeric';\n\nexport interface AerisInputOtpCompleteEvent {\n readonly originalEvent: Event;\n readonly value: string;\n}\n\ninterface InputOtpSeparatorContext {\n readonly $implicit: number;\n readonly index: number;\n}\n\ninterface InputOtpSlot {\n readonly index: number;\n readonly position: number;\n readonly id: string;\n readonly value: string;\n readonly ariaLabel: string;\n}\n\n@Directive({ selector: 'ng-template[aerisInputOtpSeparator]' })\nexport class AerisInputOtpSeparatorTemplate {\n readonly template = inject<TemplateRef<InputOtpSeparatorContext>>(TemplateRef);\n}\n\nconst normalizeLength = (value: unknown): number =>\n Math.max(1, Math.floor(numberAttribute(value, 4)));\n\nlet inputOtpId = 0;\n\n@Component({\n selector: 'aeris-input-otp',\n imports: [NgTemplateOutlet],\n template: `\n <span\n class=\"aeris-input-otp\"\n role=\"group\"\n [attr.data-size]=\"size()\"\n [attr.data-appearance]=\"appearance()\"\n [attr.data-invalid]=\"displayInvalid() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-readonly]=\"readonly() || null\"\n [attr.data-fluid]=\"fluid() || null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n [attr.aria-required]=\"required() || null\"\n (focusout)=\"handleFocusOut($event)\"\n >\n @if (name()) {\n <input type=\"hidden\" [name]=\"name()\" [value]=\"normalizedValue()\" />\n }\n\n @for (slot of slots(); track slot.index) {\n <input\n #otpInput\n class=\"aeris-input-otp__slot\"\n [id]=\"slot.id\"\n [type]=\"mask() ? 'password' : 'text'\"\n [value]=\"slot.value\"\n [inputMode]=\"effectiveInputMode()\"\n [autocomplete]=\"slot.index === 0 ? autocomplete() : 'off'\"\n maxlength=\"1\"\n [disabled]=\"effectiveDisabled()\"\n [readOnly]=\"readonly()\"\n [attr.aria-label]=\"slot.ariaLabel\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n (beforeinput)=\"handleBeforeInput($event, slot.index)\"\n (input)=\"handleInput($event, slot.index)\"\n (keydown)=\"handleKeydown($event, slot.index)\"\n (paste)=\"handlePaste($event, slot.index)\"\n (focus)=\"handleFocus($event)\"\n (blur)=\"blurred.emit($event)\"\n />\n\n @if (slot.index < length() - 1 && separatorTemplate(); as separator) {\n <span class=\"aeris-input-otp__separator\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"separator.template\"\n [ngTemplateOutletContext]=\"{ $implicit: slot.index, index: slot.index }\"\n />\n </span>\n }\n }\n </span>\n `,\n styleUrl: './aeris-input-otp.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisInputOtpComponent),\n multi: true,\n },\n ],\n host: {\n '[attr.data-fluid]': 'fluid() || null',\n },\n})\nexport class AerisInputOtpComponent implements ControlValueAccessor {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly inputElements = viewChildren<ElementRef<HTMLInputElement>>('otpInput');\n private readonly generatedId = `aeris-input-otp-${++inputOtpId}`;\n private readonly formDisabled = signal(false);\n private onChange: (value: string) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n readonly value = model('');\n readonly length = input(4, { transform: normalizeLength });\n readonly mode = input<AerisInputOtpMode>('numeric');\n readonly inputId = input('');\n readonly name = input('');\n readonly autocomplete = input('one-time-code');\n readonly ariaLabel = input('');\n readonly ariaLabelledBy = input('');\n readonly ariaDescribedBy = input('');\n readonly slotAriaLabel = input('Character {0} of {1}');\n readonly size = input<AerisInputOtpSize>('md');\n readonly appearance = input<AerisInputOtpAppearance>('outline');\n readonly mask = input(false, { transform: booleanAttribute });\n readonly autoFocus = input(false, { transform: booleanAttribute });\n readonly selectOnFocus = input(true, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly readonly = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly touched = input<boolean | null>(null);\n protected readonly displayInvalid = computed(() =>\n ɵaerisDisplayInvalid(this.invalid(), this.touched()),\n );\n readonly fluid = input(false, { transform: booleanAttribute });\n\n readonly completed = output<AerisInputOtpCompleteEvent>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n\n protected readonly separatorTemplate = contentChild(AerisInputOtpSeparatorTemplate);\n protected readonly effectiveDisabled = computed(() => this.disabled() || this.formDisabled());\n protected readonly effectiveInputMode = computed(() =>\n this.mode() === 'numeric' ? 'numeric' : 'text',\n );\n protected readonly slots = computed<readonly InputOtpSlot[]>(() => {\n const value = this.normalizedValue();\n return Array.from({ length: this.length() }, (_, index) => ({\n index,\n position: index + 1,\n id: index === 0 && this.inputId() ? this.inputId() : `${this.generatedId}-${index + 1}`,\n value: value[index] ?? '',\n ariaLabel: this.slotAriaLabel()\n .replace('{0}', String(index + 1))\n .replace('{1}', String(this.length())),\n }));\n });\n protected readonly normalizedValue = computed(() =>\n this.filterCharacters(this.value()).slice(0, this.length()),\n );\n\n constructor() {\n afterNextRender(() => {\n if (this.autoFocus() && !this.effectiveDisabled()) this.focus();\n });\n }\n\n writeValue(value: unknown): void {\n const next = typeof value === 'string' || typeof value === 'number' ? String(value) : '';\n this.value.set(this.filterCharacters(next).slice(0, this.length()));\n }\n\n registerOnChange(callback: (value: string) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = callback;\n }\n\n setDisabledState(disabled: boolean): void {\n this.formDisabled.set(disabled);\n }\n\n focus(index = 0, options?: FocusOptions): void {\n const targetIndex = Math.min(Math.max(index, 0), this.length() - 1);\n this.inputElements()[targetIndex]?.nativeElement.focus(options);\n }\n\n clear(): void {\n if (this.effectiveDisabled() || this.readonly()) return;\n this.commit('', new Event('clear'));\n queueMicrotask(() => this.focus());\n }\n\n protected handleBeforeInput(event: InputEvent, index: number): void {\n if (event.inputType.startsWith('delete') || !event.data) return;\n const accepted = this.filterCharacters(event.data);\n if (!accepted) {\n event.preventDefault();\n return;\n }\n if (accepted.length > 1) {\n event.preventDefault();\n this.insertCharacters(accepted, index, event);\n }\n }\n\n protected handleInput(event: Event, index: number): void {\n const inputElement = event.target as HTMLInputElement;\n const accepted = this.filterCharacters(inputElement.value);\n if (!accepted) {\n inputElement.value = this.normalizedValue()[index] ?? '';\n return;\n }\n this.insertCharacters(accepted, index, event);\n }\n\n protected handleKeydown(event: KeyboardEvent, index: number): void {\n if (this.effectiveDisabled() || this.readonly()) return;\n\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n this.focus(index - 1);\n return;\n }\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n this.focus(index + 1);\n return;\n }\n if (event.key === 'Home') {\n event.preventDefault();\n this.focus(0);\n return;\n }\n if (event.key === 'End') {\n event.preventDefault();\n this.focus(this.length() - 1);\n return;\n }\n if (event.key === 'Backspace') {\n event.preventDefault();\n const currentValue = this.normalizedValue();\n const targetIndex = currentValue[index] ? index : Math.max(0, index - 1);\n this.removeAt(targetIndex, event);\n queueMicrotask(() => this.focus(targetIndex));\n return;\n }\n if (event.key === 'Delete') {\n event.preventDefault();\n this.removeAt(index, event);\n }\n }\n\n protected handlePaste(event: ClipboardEvent, index: number): void {\n const pasted = this.filterCharacters(event.clipboardData?.getData('text') ?? '');\n if (!pasted) return;\n event.preventDefault();\n this.insertCharacters(pasted, index, event);\n }\n\n protected handleFocus(event: FocusEvent): void {\n if (this.selectOnFocus()) {\n (event.target as HTMLInputElement).select();\n }\n this.focused.emit(event);\n }\n\n protected handleFocusOut(event: FocusEvent): void {\n const nextTarget = event.relatedTarget;\n if (nextTarget instanceof Node && this.host.nativeElement.contains(nextTarget)) return;\n this.touch.emit();\n this.onTouched();\n }\n\n private insertCharacters(characters: string, index: number, event: Event): void {\n const slots = Array.from(\n { length: this.length() },\n (_, slotIndex) => this.normalizedValue()[slotIndex] ?? '',\n );\n let nextIndex = index;\n for (const character of characters) {\n if (nextIndex >= slots.length) break;\n slots[nextIndex] = character;\n nextIndex += 1;\n }\n const nextValue = slots.join('');\n this.commit(nextValue, event);\n queueMicrotask(() => this.focus(Math.min(nextIndex, this.length() - 1)));\n }\n\n private removeAt(index: number, event: Event): void {\n const slots = Array.from(\n { length: this.length() },\n (_, slotIndex) => this.normalizedValue()[slotIndex] ?? '',\n );\n slots[index] = '';\n this.commit(slots.join(''), event);\n }\n\n private commit(value: string, event: Event): void {\n const nextValue = this.filterCharacters(value).slice(0, this.length());\n const wasComplete = this.normalizedValue().length === this.length();\n if (this.value() !== nextValue) {\n this.value.set(nextValue);\n this.onChange(nextValue);\n }\n if (!wasComplete && nextValue.length === this.length()) {\n this.completed.emit({ originalEvent: event, value: nextValue });\n }\n }\n\n private filterCharacters(value: string): string {\n const pattern = this.mode() === 'numeric' ? /[0-9]/g : /[A-Za-z0-9]/g;\n return value.match(pattern)?.join('') ?? '';\n }\n}\n\nexport const AerisInputOtp = [AerisInputOtpComponent, AerisInputOtpSeparatorTemplate] as const;\n"],"mappings":";;;;;AA6CA,IAAa,iCAAb,MAAa,+BAA8B;CAChC,WAAW,OAA8C,WAAW;CADlE,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAA8B,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAA9B,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAA8B,cAAA;EAAA,U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IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,WAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,OAAA;EAAA,CAAA;EAAA,mBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAoClC,8BAA8B,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA;AAmLpF,MAAa,gBAAgB,CAAC,wBAAwB,8BAA8B"}
|
|
1
|
+
{"version":3,"file":"aeris-ui-core-input-otp.mjs","names":[],"sources":["../../../projects/aeris-ui/input-otp/aeris-input-otp.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n ElementRef,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n forwardRef,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChildren,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ɵaerisDisplayInvalid } from '@aeris-ui/core';\n\nexport type AerisInputOtpSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type AerisInputOtpAppearance = 'outline' | 'filled';\nexport type AerisInputOtpMode = 'numeric' | 'alphanumeric';\n\nexport interface AerisInputOtpCompleteEvent {\n readonly originalEvent: Event;\n readonly value: string;\n}\n\ninterface InputOtpSeparatorContext {\n readonly $implicit: number;\n readonly index: number;\n}\n\ninterface InputOtpSlot {\n readonly index: number;\n readonly position: number;\n readonly id: string;\n readonly value: string;\n readonly ariaLabel: string;\n}\n\n@Directive({ selector: 'ng-template[aerisInputOtpSeparator]' })\nexport class AerisInputOtpSeparatorTemplate {\n readonly template = inject<TemplateRef<InputOtpSeparatorContext>>(TemplateRef);\n}\n\nconst normalizeLength = (value: unknown): number =>\n Math.max(1, Math.floor(numberAttribute(value, 4)));\n\nlet inputOtpId = 0;\n\n@Component({\n selector: 'aeris-input-otp',\n imports: [NgTemplateOutlet],\n template: `\n <span\n class=\"aeris-input-otp\"\n role=\"group\"\n [attr.data-size]=\"size()\"\n [attr.data-appearance]=\"appearance()\"\n [attr.data-invalid]=\"displayInvalid() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-readonly]=\"readonly() || null\"\n [attr.data-fluid]=\"fluid() || null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n [attr.aria-required]=\"required() || null\"\n (focusout)=\"handleFocusOut($event)\"\n >\n @if (name()) {\n <input\n type=\"hidden\"\n [name]=\"name()\"\n [value]=\"normalizedValue()\"\n [disabled]=\"effectiveDisabled()\"\n />\n }\n\n @for (slot of slots(); track slot.index) {\n <input\n #otpInput\n class=\"aeris-input-otp__slot\"\n [id]=\"slot.id\"\n [type]=\"mask() ? 'password' : 'text'\"\n [value]=\"slot.value\"\n [inputMode]=\"effectiveInputMode()\"\n [autocomplete]=\"slot.index === 0 ? autocomplete() : 'off'\"\n maxlength=\"1\"\n [disabled]=\"effectiveDisabled()\"\n [readOnly]=\"readonly()\"\n [attr.aria-label]=\"slot.ariaLabel\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n (beforeinput)=\"handleBeforeInput($event, slot.index)\"\n (input)=\"handleInput($event, slot.index)\"\n (keydown)=\"handleKeydown($event, slot.index)\"\n (paste)=\"handlePaste($event, slot.index)\"\n (focus)=\"handleFocus($event)\"\n (blur)=\"blurred.emit($event)\"\n />\n\n @if (slot.index < length() - 1 && separatorTemplate(); as separator) {\n <span class=\"aeris-input-otp__separator\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"separator.template\"\n [ngTemplateOutletContext]=\"{ $implicit: slot.index, index: slot.index }\"\n />\n </span>\n }\n }\n </span>\n `,\n styleUrl: './aeris-input-otp.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisInputOtpComponent),\n multi: true,\n },\n ],\n host: {\n '[attr.data-fluid]': 'fluid() || null',\n },\n})\nexport class AerisInputOtpComponent implements ControlValueAccessor {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly inputElements = viewChildren<ElementRef<HTMLInputElement>>('otpInput');\n private readonly generatedId = `aeris-input-otp-${++inputOtpId}`;\n private readonly formDisabled = signal(false);\n private onChange: (value: string) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n readonly value = model('');\n readonly length = input(4, { transform: normalizeLength });\n readonly mode = input<AerisInputOtpMode>('numeric');\n readonly inputId = input('');\n readonly name = input('');\n readonly autocomplete = input('one-time-code');\n readonly ariaLabel = input('');\n readonly ariaLabelledBy = input('');\n readonly ariaDescribedBy = input('');\n readonly slotAriaLabel = input('Character {0} of {1}');\n readonly size = input<AerisInputOtpSize>('md');\n readonly appearance = input<AerisInputOtpAppearance>('outline');\n readonly mask = input(false, { transform: booleanAttribute });\n readonly autoFocus = input(false, { transform: booleanAttribute });\n readonly selectOnFocus = input(true, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly readonly = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly touched = input<boolean | null>(null);\n protected readonly displayInvalid = computed(() =>\n ɵaerisDisplayInvalid(this.invalid(), this.touched()),\n );\n readonly fluid = input(false, { transform: booleanAttribute });\n\n readonly completed = output<AerisInputOtpCompleteEvent>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n\n protected readonly separatorTemplate = contentChild(AerisInputOtpSeparatorTemplate);\n protected readonly effectiveDisabled = computed(() => this.disabled() || this.formDisabled());\n protected readonly effectiveInputMode = computed(() =>\n this.mode() === 'numeric' ? 'numeric' : 'text',\n );\n protected readonly slots = computed<readonly InputOtpSlot[]>(() => {\n const value = this.normalizedValue();\n return Array.from({ length: this.length() }, (_, index) => ({\n index,\n position: index + 1,\n id: index === 0 && this.inputId() ? this.inputId() : `${this.generatedId}-${index + 1}`,\n value: value[index] ?? '',\n ariaLabel: this.slotAriaLabel()\n .replace('{0}', String(index + 1))\n .replace('{1}', String(this.length())),\n }));\n });\n protected readonly normalizedValue = computed(() =>\n this.filterCharacters(this.value()).slice(0, this.length()),\n );\n\n constructor() {\n afterNextRender(() => {\n if (this.autoFocus() && !this.effectiveDisabled()) this.focus();\n });\n }\n\n writeValue(value: unknown): void {\n const next = typeof value === 'string' || typeof value === 'number' ? String(value) : '';\n this.value.set(this.filterCharacters(next).slice(0, this.length()));\n }\n\n registerOnChange(callback: (value: string) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = callback;\n }\n\n setDisabledState(disabled: boolean): void {\n this.formDisabled.set(disabled);\n }\n\n focus(index = 0, options?: FocusOptions): void {\n const targetIndex = Math.min(Math.max(index, 0), this.length() - 1);\n this.inputElements()[targetIndex]?.nativeElement.focus(options);\n }\n\n clear(): void {\n if (this.effectiveDisabled() || this.readonly()) return;\n this.commit('', new Event('clear'));\n queueMicrotask(() => this.focus());\n }\n\n protected handleBeforeInput(event: InputEvent, index: number): void {\n if (event.inputType.startsWith('delete') || !event.data) return;\n const accepted = this.filterCharacters(event.data);\n if (!accepted) {\n event.preventDefault();\n return;\n }\n if (accepted.length > 1) {\n event.preventDefault();\n this.insertCharacters(accepted, index, event);\n }\n }\n\n protected handleInput(event: Event, index: number): void {\n const inputElement = event.target as HTMLInputElement;\n const accepted = this.filterCharacters(inputElement.value);\n if (!accepted) {\n inputElement.value = this.normalizedValue()[index] ?? '';\n return;\n }\n this.insertCharacters(accepted, index, event);\n }\n\n protected handleKeydown(event: KeyboardEvent, index: number): void {\n if (this.effectiveDisabled() || this.readonly()) return;\n\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n this.focus(index - 1);\n return;\n }\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n this.focus(index + 1);\n return;\n }\n if (event.key === 'Home') {\n event.preventDefault();\n this.focus(0);\n return;\n }\n if (event.key === 'End') {\n event.preventDefault();\n this.focus(this.length() - 1);\n return;\n }\n if (event.key === 'Backspace') {\n event.preventDefault();\n const currentValue = this.normalizedValue();\n const targetIndex = currentValue[index] ? index : Math.max(0, index - 1);\n this.removeAt(targetIndex, event);\n queueMicrotask(() => this.focus(targetIndex));\n return;\n }\n if (event.key === 'Delete') {\n event.preventDefault();\n this.removeAt(index, event);\n }\n }\n\n protected handlePaste(event: ClipboardEvent, index: number): void {\n if (this.effectiveDisabled() || this.readonly()) return;\n const pasted = this.filterCharacters(event.clipboardData?.getData('text') ?? '');\n if (!pasted) return;\n event.preventDefault();\n this.insertCharacters(pasted, index, event);\n }\n\n protected handleFocus(event: FocusEvent): void {\n if (this.selectOnFocus()) {\n (event.target as HTMLInputElement).select();\n }\n this.focused.emit(event);\n }\n\n protected handleFocusOut(event: FocusEvent): void {\n const nextTarget = event.relatedTarget;\n if (nextTarget instanceof Node && this.host.nativeElement.contains(nextTarget)) return;\n this.touch.emit();\n this.onTouched();\n }\n\n private insertCharacters(characters: string, index: number, event: Event): void {\n const slots = Array.from(\n { length: this.length() },\n (_, slotIndex) => this.normalizedValue()[slotIndex] ?? '',\n );\n let nextIndex = index;\n for (const character of characters) {\n if (nextIndex >= slots.length) break;\n slots[nextIndex] = character;\n nextIndex += 1;\n }\n const nextValue = slots.join('');\n this.commit(nextValue, event);\n queueMicrotask(() => this.focus(Math.min(nextIndex, this.length() - 1)));\n }\n\n private removeAt(index: number, event: Event): void {\n const slots = Array.from(\n { length: this.length() },\n (_, slotIndex) => this.normalizedValue()[slotIndex] ?? '',\n );\n slots[index] = '';\n this.commit(slots.join(''), event);\n }\n\n private commit(value: string, event: Event): void {\n const nextValue = this.filterCharacters(value).slice(0, this.length());\n const wasComplete = this.normalizedValue().length === this.length();\n if (this.value() !== nextValue) {\n this.value.set(nextValue);\n this.onChange(nextValue);\n }\n if (!wasComplete && nextValue.length === this.length()) {\n this.completed.emit({ originalEvent: event, value: nextValue });\n }\n }\n\n private filterCharacters(value: string): string {\n const pattern = this.mode() === 'numeric' ? /[0-9]/g : /[A-Za-z0-9]/g;\n return value.match(pattern)?.join('') ?? '';\n }\n}\n\nexport const AerisInputOtp = [AerisInputOtpComponent, AerisInputOtpSeparatorTemplate] as const;\n"],"mappings":";;;;;AA6CA,IAAa,iCAAb,MAAa,+BAA8B;CAChC,WAAW,OAA8C,WAAW;CADlE,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAA8B,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAA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AA8B"}
|
|
@@ -18,7 +18,7 @@ var AerisInputTextDirective = class AerisInputTextDirective {
|
|
|
18
18
|
displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
|
|
19
19
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
20
20
|
minVersion: "12.0.0",
|
|
21
|
-
version: "22.2.
|
|
21
|
+
version: "22.2.4",
|
|
22
22
|
ngImport: i0,
|
|
23
23
|
type: AerisInputTextDirective,
|
|
24
24
|
deps: [],
|
|
@@ -26,7 +26,7 @@ var AerisInputTextDirective = class AerisInputTextDirective {
|
|
|
26
26
|
});
|
|
27
27
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
28
28
|
minVersion: "17.1.0",
|
|
29
|
-
version: "22.2.
|
|
29
|
+
version: "22.2.4",
|
|
30
30
|
type: AerisInputTextDirective,
|
|
31
31
|
isStandalone: true,
|
|
32
32
|
selector: "input[aerisInputText]",
|
|
@@ -85,7 +85,7 @@ var AerisInputTextDirective = class AerisInputTextDirective {
|
|
|
85
85
|
};
|
|
86
86
|
i0.ɵɵngDeclareClassMetadata({
|
|
87
87
|
minVersion: "12.0.0",
|
|
88
|
-
version: "22.2.
|
|
88
|
+
version: "22.2.4",
|
|
89
89
|
ngImport: i0,
|
|
90
90
|
type: AerisInputTextDirective,
|
|
91
91
|
decorators: [{
|
|
@@ -244,7 +244,7 @@ var AerisInputTextComponent = class AerisInputTextComponent {
|
|
|
244
244
|
}
|
|
245
245
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
246
246
|
minVersion: "12.0.0",
|
|
247
|
-
version: "22.2.
|
|
247
|
+
version: "22.2.4",
|
|
248
248
|
ngImport: i0,
|
|
249
249
|
type: AerisInputTextComponent,
|
|
250
250
|
deps: [],
|
|
@@ -252,7 +252,7 @@ var AerisInputTextComponent = class AerisInputTextComponent {
|
|
|
252
252
|
});
|
|
253
253
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
254
254
|
minVersion: "17.0.0",
|
|
255
|
-
version: "22.2.
|
|
255
|
+
version: "22.2.4",
|
|
256
256
|
type: AerisInputTextComponent,
|
|
257
257
|
isStandalone: true,
|
|
258
258
|
selector: "aeris-input-text",
|
|
@@ -507,7 +507,7 @@ var AerisInputTextComponent = class AerisInputTextComponent {
|
|
|
507
507
|
};
|
|
508
508
|
i0.ɵɵngDeclareClassMetadata({
|
|
509
509
|
minVersion: "12.0.0",
|
|
510
|
-
version: "22.2.
|
|
510
|
+
version: "22.2.4",
|
|
511
511
|
ngImport: i0,
|
|
512
512
|
type: AerisInputTextComponent,
|
|
513
513
|
decorators: [{
|