@aeris-ui/core 22.0.0-alpha.7 → 22.0.0-alpha.9
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 +2 -2
- package/fesm2022/aeris-ui-core-accordion.mjs +646 -255
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-complete.mjs +1171 -428
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
- package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
- package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-badge.mjs +562 -115
- package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-block-ui.mjs +205 -101
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +547 -177
- package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button-group.mjs +153 -38
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button.mjs +730 -110
- package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-card.mjs +371 -101
- package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-carousel.mjs +690 -353
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +915 -423
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +455 -258
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-checkbox.mjs +432 -135
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chip.mjs +430 -117
- package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
- package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-color-picker.mjs +1313 -683
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-compare.mjs +819 -310
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1392 -551
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1447 -744
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +900 -450
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker.mjs +1656 -863
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +1066 -355
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-divider.mjs +204 -43
- package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-drawer.mjs +1002 -326
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +402 -249
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +934 -572
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +1339 -514
- package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
- package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
- package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-form-field.mjs +672 -170
- package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-galleria.mjs +1987 -797
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-glass.mjs +110 -33
- package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-icon-field.mjs +426 -103
- package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-inplace.mjs +452 -130
- package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-group.mjs +413 -112
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-mask.mjs +650 -248
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +902 -334
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-otp.mjs +667 -253
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-text.mjs +618 -152
- package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
- package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-mega-menu.mjs +601 -388
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +1032 -495
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +960 -491
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-message.mjs +477 -145
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-meter-group.mjs +587 -196
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +1550 -552
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-order-list.mjs +518 -202
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +455 -177
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +329 -127
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +596 -196
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-password.mjs +894 -247
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +1280 -659
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-popover.mjs +892 -386
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +549 -176
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +410 -133
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-radio-button.mjs +386 -119
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-rating.mjs +502 -225
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
- package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-top.mjs +204 -63
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-select.mjs +1794 -643
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
- package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-slider.mjs +868 -404
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-speed-dial.mjs +800 -329
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +918 -257
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +812 -352
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-stepper.mjs +697 -254
- package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
- package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-table.mjs +1984 -865
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +686 -324
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +846 -212
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1258 -1413
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +132 -147
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +885 -465
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
- package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toast.mjs +855 -615
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +390 -127
- package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toolbar.mjs +458 -121
- package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tooltip.mjs +623 -345
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-select.mjs +1356 -601
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +2001 -942
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +1103 -658
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +861 -842
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/runtime/theme-builder/aeris-theme.js +28 -16
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
- package/styles/_fallback-colors.scss +3 -3
- package/styles/_tokens.scss +5 -5
- package/styles/aeris.css +12 -16
- package/styles/controls.css +1 -1
- package/types/aeris-ui-core-accordion.d.ts +166 -93
- package/types/aeris-ui-core-animate-on-scroll.d.ts +71 -31
- package/types/aeris-ui-core-auto-complete.d.ts +326 -149
- package/types/aeris-ui-core-auto-focus.d.ts +24 -16
- package/types/aeris-ui-core-avatar.d.ts +112 -42
- package/types/aeris-ui-core-badge.d.ts +160 -47
- package/types/aeris-ui-core-block-ui.d.ts +47 -27
- package/types/aeris-ui-core-breadcrumb.d.ts +162 -92
- package/types/aeris-ui-core-button-group.d.ts +37 -16
- package/types/aeris-ui-core-button.d.ts +226 -64
- package/types/aeris-ui-core-card.d.ts +74 -37
- package/types/aeris-ui-core-carousel.d.ts +197 -117
- package/types/aeris-ui-core-cascade-select.d.ts +252 -131
- package/types/aeris-ui-core-chart.d.ts +134 -84
- package/types/aeris-ui-core-checkbox.d.ts +139 -55
- package/types/aeris-ui-core-chip.d.ts +116 -51
- package/types/aeris-ui-core-class-names.d.ts +22 -20
- package/types/aeris-ui-core-color-picker.d.ts +347 -150
- package/types/aeris-ui-core-compare.d.ts +224 -101
- package/types/aeris-ui-core-confirm-dialog.d.ts +441 -249
- package/types/aeris-ui-core-confirm-popup.d.ts +440 -268
- package/types/aeris-ui-core-context-menu.d.ts +262 -150
- package/types/aeris-ui-core-date-picker.d.ts +488 -226
- package/types/aeris-ui-core-dialog.d.ts +288 -121
- package/types/aeris-ui-core-divider.d.ts +58 -20
- package/types/aeris-ui-core-drawer.d.ts +273 -116
- package/types/aeris-ui-core-dynamic-dialog.d.ts +157 -140
- package/types/aeris-ui-core-editor.d.ts +243 -124
- package/types/aeris-ui-core-file-upload.d.ts +366 -197
- package/types/aeris-ui-core-filter-service.d.ts +48 -52
- package/types/aeris-ui-core-fluid.d.ts +12 -9
- package/types/aeris-ui-core-focus-trap.d.ts +39 -31
- package/types/aeris-ui-core-form-field.d.ts +158 -62
- package/types/aeris-ui-core-galleria.d.ts +589 -256
- package/types/aeris-ui-core-glass.d.ts +24 -11
- package/types/aeris-ui-core-icon-field.d.ts +94 -34
- package/types/aeris-ui-core-inplace.d.ts +123 -62
- package/types/aeris-ui-core-input-group.d.ts +84 -35
- package/types/aeris-ui-core-input-mask.d.ts +194 -71
- package/types/aeris-ui-core-input-number.d.ts +272 -90
- package/types/aeris-ui-core-input-otp.d.ts +190 -82
- package/types/aeris-ui-core-input-text.d.ts +185 -62
- package/types/aeris-ui-core-key-filter.d.ts +53 -39
- package/types/aeris-ui-core-mega-menu.d.ts +174 -123
- package/types/aeris-ui-core-menu.d.ts +275 -172
- package/types/aeris-ui-core-menubar.d.ts +272 -160
- package/types/aeris-ui-core-message.d.ts +132 -61
- package/types/aeris-ui-core-meter-group.d.ts +162 -90
- package/types/aeris-ui-core-multi-select.d.ts +435 -187
- package/types/aeris-ui-core-order-list.d.ts +143 -66
- package/types/aeris-ui-core-organization-chart.d.ts +132 -77
- package/types/aeris-ui-core-paginator.d.ts +92 -46
- package/types/aeris-ui-core-panel.d.ts +149 -78
- package/types/aeris-ui-core-password.d.ts +257 -108
- package/types/aeris-ui-core-pick-list.d.ts +373 -179
- package/types/aeris-ui-core-popover.d.ts +218 -107
- package/types/aeris-ui-core-progress-bar.d.ts +156 -73
- package/types/aeris-ui-core-progress-spinner.d.ts +110 -48
- package/types/aeris-ui-core-radio-button.d.ts +124 -51
- package/types/aeris-ui-core-rating.d.ts +149 -76
- package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
- package/types/aeris-ui-core-scroll-top.d.ts +64 -29
- package/types/aeris-ui-core-select.d.ts +474 -226
- package/types/aeris-ui-core-skeleton.d.ts +39 -17
- package/types/aeris-ui-core-slider.d.ts +270 -116
- package/types/aeris-ui-core-speed-dial.d.ts +240 -112
- package/types/aeris-ui-core-split-button.d.ts +265 -115
- package/types/aeris-ui-core-splitter.d.ts +224 -106
- package/types/aeris-ui-core-stepper.d.ts +183 -91
- package/types/aeris-ui-core-style-class.d.ts +141 -71
- package/types/aeris-ui-core-table.d.ts +595 -308
- package/types/aeris-ui-core-tabs.d.ts +163 -90
- package/types/aeris-ui-core-textarea.d.ts +261 -81
- package/types/aeris-ui-core-theme-builder.d.ts +466 -451
- package/types/aeris-ui-core-theming.d.ts +42 -49
- package/types/aeris-ui-core-tiered-menu.d.ts +249 -147
- package/types/aeris-ui-core-timeline.d.ts +108 -71
- package/types/aeris-ui-core-toast.d.ts +219 -155
- package/types/aeris-ui-core-toggle-switch.d.ts +125 -52
- package/types/aeris-ui-core-toolbar.d.ts +98 -41
- package/types/aeris-ui-core-tooltip.d.ts +157 -92
- package/types/aeris-ui-core-tree-select.d.ts +359 -179
- package/types/aeris-ui-core-tree-table.d.ts +565 -290
- package/types/aeris-ui-core-tree.d.ts +269 -165
- package/types/aeris-ui-core.d.ts +161 -125
|
@@ -1,237 +1,435 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { NG_VALUE_ACCESSOR } from
|
|
5
|
-
import { ɵaerisDisplayInvalid
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, Directive, ElementRef, TemplateRef, afterNextRender, booleanAttribute, computed, contentChild, forwardRef, inject, input, model, numberAttribute, output, signal, viewChildren } from "@angular/core";
|
|
4
|
+
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
5
|
+
import { ɵaerisDisplayInvalid } from "@aeris-ui/core";
|
|
6
|
+
var AerisInputOtpSeparatorTemplate = class AerisInputOtpSeparatorTemplate {
|
|
7
|
+
template = inject(TemplateRef);
|
|
8
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9
|
+
minVersion: "12.0.0",
|
|
10
|
+
version: "22.2.1",
|
|
11
|
+
ngImport: i0,
|
|
12
|
+
type: AerisInputOtpSeparatorTemplate,
|
|
13
|
+
deps: [],
|
|
14
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
15
|
+
});
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
17
|
+
minVersion: "14.0.0",
|
|
18
|
+
version: "22.2.1",
|
|
19
|
+
type: AerisInputOtpSeparatorTemplate,
|
|
20
|
+
isStandalone: true,
|
|
21
|
+
selector: "ng-template[aerisInputOtpSeparator]",
|
|
22
|
+
ngImport: i0
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
26
|
+
minVersion: "12.0.0",
|
|
27
|
+
version: "22.2.1",
|
|
28
|
+
ngImport: i0,
|
|
29
|
+
type: AerisInputOtpSeparatorTemplate,
|
|
30
|
+
decorators: [{
|
|
31
|
+
type: Directive,
|
|
32
|
+
args: [{ selector: "ng-template[aerisInputOtpSeparator]" }]
|
|
33
|
+
}]
|
|
34
|
+
});
|
|
16
35
|
const normalizeLength = (value) => Math.max(1, Math.floor(numberAttribute(value, 4)));
|
|
17
36
|
let inputOtpId = 0;
|
|
18
|
-
class AerisInputOtpComponent {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
37
|
+
var AerisInputOtpComponent = class AerisInputOtpComponent {
|
|
38
|
+
host = inject(ElementRef);
|
|
39
|
+
inputElements = viewChildren("otpInput", ...ngDevMode ? [{ debugName: "inputElements" }] : /* istanbul ignore next */ []);
|
|
40
|
+
generatedId = `aeris-input-otp-${++inputOtpId}`;
|
|
41
|
+
formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
|
|
42
|
+
onChange = () => void 0;
|
|
43
|
+
onTouched = () => void 0;
|
|
44
|
+
value = model("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
45
|
+
length = input(4, {
|
|
46
|
+
...ngDevMode ? { debugName: "length" } : /* istanbul ignore next */ {},
|
|
47
|
+
transform: normalizeLength
|
|
48
|
+
});
|
|
49
|
+
mode = input("numeric", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
|
|
50
|
+
inputId = input("", ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
|
|
51
|
+
name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
52
|
+
autocomplete = input("one-time-code", ...ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []);
|
|
53
|
+
ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
54
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
55
|
+
ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
56
|
+
slotAriaLabel = input("Character {0} of {1}", ...ngDevMode ? [{ debugName: "slotAriaLabel" }] : /* istanbul ignore next */ []);
|
|
57
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
58
|
+
appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
59
|
+
mask = input(false, {
|
|
60
|
+
...ngDevMode ? { debugName: "mask" } : /* istanbul ignore next */ {},
|
|
61
|
+
transform: booleanAttribute
|
|
62
|
+
});
|
|
63
|
+
autoFocus = input(false, {
|
|
64
|
+
...ngDevMode ? { debugName: "autoFocus" } : /* istanbul ignore next */ {},
|
|
65
|
+
transform: booleanAttribute
|
|
66
|
+
});
|
|
67
|
+
selectOnFocus = input(true, {
|
|
68
|
+
...ngDevMode ? { debugName: "selectOnFocus" } : /* istanbul ignore next */ {},
|
|
69
|
+
transform: booleanAttribute
|
|
70
|
+
});
|
|
71
|
+
disabled = input(false, {
|
|
72
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
73
|
+
transform: booleanAttribute
|
|
74
|
+
});
|
|
75
|
+
readonly = input(false, {
|
|
76
|
+
...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
|
|
77
|
+
transform: booleanAttribute
|
|
78
|
+
});
|
|
79
|
+
required = input(false, {
|
|
80
|
+
...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
|
|
81
|
+
transform: booleanAttribute
|
|
82
|
+
});
|
|
83
|
+
invalid = input(false, {
|
|
84
|
+
...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
|
|
85
|
+
transform: booleanAttribute
|
|
86
|
+
});
|
|
87
|
+
touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
|
|
88
|
+
displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
|
|
89
|
+
fluid = input(false, {
|
|
90
|
+
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
91
|
+
transform: booleanAttribute
|
|
92
|
+
});
|
|
93
|
+
completed = output();
|
|
94
|
+
focused = output();
|
|
95
|
+
blurred = output();
|
|
96
|
+
touch = output();
|
|
97
|
+
separatorTemplate = contentChild(AerisInputOtpSeparatorTemplate, ...ngDevMode ? [{ debugName: "separatorTemplate" }] : /* istanbul ignore next */ []);
|
|
98
|
+
effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
|
|
99
|
+
effectiveInputMode = computed(() => this.mode() === "numeric" ? "numeric" : "text", ...ngDevMode ? [{ debugName: "effectiveInputMode" }] : /* istanbul ignore next */ []);
|
|
100
|
+
slots = computed(() => {
|
|
101
|
+
const value = this.normalizedValue();
|
|
102
|
+
return Array.from({ length: this.length() }, (_, index) => ({
|
|
103
|
+
index,
|
|
104
|
+
position: index + 1,
|
|
105
|
+
id: index === 0 && this.inputId() ? this.inputId() : `${this.generatedId}-${index + 1}`,
|
|
106
|
+
value: value[index] ?? "",
|
|
107
|
+
ariaLabel: this.slotAriaLabel().replace("{0}", String(index + 1)).replace("{1}", String(this.length()))
|
|
108
|
+
}));
|
|
109
|
+
}, ...ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []);
|
|
110
|
+
normalizedValue = computed(() => this.filterCharacters(this.value()).slice(0, this.length()), ...ngDevMode ? [{ debugName: "normalizedValue" }] : /* istanbul ignore next */ []);
|
|
111
|
+
constructor() {
|
|
112
|
+
afterNextRender(() => {
|
|
113
|
+
if (this.autoFocus() && !this.effectiveDisabled()) this.focus();
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
writeValue(value) {
|
|
117
|
+
const next = typeof value === "string" || typeof value === "number" ? String(value) : "";
|
|
118
|
+
this.value.set(this.filterCharacters(next).slice(0, this.length()));
|
|
119
|
+
}
|
|
120
|
+
registerOnChange(callback) {
|
|
121
|
+
this.onChange = callback;
|
|
122
|
+
}
|
|
123
|
+
registerOnTouched(callback) {
|
|
124
|
+
this.onTouched = callback;
|
|
125
|
+
}
|
|
126
|
+
setDisabledState(disabled) {
|
|
127
|
+
this.formDisabled.set(disabled);
|
|
128
|
+
}
|
|
129
|
+
focus(index = 0, options) {
|
|
130
|
+
const targetIndex = Math.min(Math.max(index, 0), this.length() - 1);
|
|
131
|
+
this.inputElements()[targetIndex]?.nativeElement.focus(options);
|
|
132
|
+
}
|
|
133
|
+
clear() {
|
|
134
|
+
if (this.effectiveDisabled() || this.readonly()) return;
|
|
135
|
+
this.commit("", new Event("clear"));
|
|
136
|
+
queueMicrotask(() => this.focus());
|
|
137
|
+
}
|
|
138
|
+
handleBeforeInput(event, index) {
|
|
139
|
+
if (event.inputType.startsWith("delete") || !event.data) return;
|
|
140
|
+
const accepted = this.filterCharacters(event.data);
|
|
141
|
+
if (!accepted) {
|
|
142
|
+
event.preventDefault();
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
if (accepted.length > 1) {
|
|
146
|
+
event.preventDefault();
|
|
147
|
+
this.insertCharacters(accepted, index, event);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
handleInput(event, index) {
|
|
151
|
+
const inputElement = event.target;
|
|
152
|
+
const accepted = this.filterCharacters(inputElement.value);
|
|
153
|
+
if (!accepted) {
|
|
154
|
+
inputElement.value = this.normalizedValue()[index] ?? "";
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
this.insertCharacters(accepted, index, event);
|
|
158
|
+
}
|
|
159
|
+
handleKeydown(event, index) {
|
|
160
|
+
if (this.effectiveDisabled() || this.readonly()) return;
|
|
161
|
+
if (event.key === "ArrowLeft") {
|
|
162
|
+
event.preventDefault();
|
|
163
|
+
this.focus(index - 1);
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
if (event.key === "ArrowRight") {
|
|
167
|
+
event.preventDefault();
|
|
168
|
+
this.focus(index + 1);
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
if (event.key === "Home") {
|
|
172
|
+
event.preventDefault();
|
|
173
|
+
this.focus(0);
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
if (event.key === "End") {
|
|
177
|
+
event.preventDefault();
|
|
178
|
+
this.focus(this.length() - 1);
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
if (event.key === "Backspace") {
|
|
182
|
+
event.preventDefault();
|
|
183
|
+
const targetIndex = this.normalizedValue()[index] ? index : Math.max(0, index - 1);
|
|
184
|
+
this.removeAt(targetIndex, event);
|
|
185
|
+
queueMicrotask(() => this.focus(targetIndex));
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
if (event.key === "Delete") {
|
|
189
|
+
event.preventDefault();
|
|
190
|
+
this.removeAt(index, event);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
handlePaste(event, index) {
|
|
194
|
+
const pasted = this.filterCharacters(event.clipboardData?.getData("text") ?? "");
|
|
195
|
+
if (!pasted) return;
|
|
196
|
+
event.preventDefault();
|
|
197
|
+
this.insertCharacters(pasted, index, event);
|
|
198
|
+
}
|
|
199
|
+
handleFocus(event) {
|
|
200
|
+
if (this.selectOnFocus()) event.target.select();
|
|
201
|
+
this.focused.emit(event);
|
|
202
|
+
}
|
|
203
|
+
handleFocusOut(event) {
|
|
204
|
+
const nextTarget = event.relatedTarget;
|
|
205
|
+
if (nextTarget instanceof Node && this.host.nativeElement.contains(nextTarget)) return;
|
|
206
|
+
this.touch.emit();
|
|
207
|
+
this.onTouched();
|
|
208
|
+
}
|
|
209
|
+
insertCharacters(characters, index, event) {
|
|
210
|
+
const slots = Array.from({ length: this.length() }, (_, slotIndex) => this.normalizedValue()[slotIndex] ?? "");
|
|
211
|
+
let nextIndex = index;
|
|
212
|
+
for (const character of characters) {
|
|
213
|
+
if (nextIndex >= slots.length) break;
|
|
214
|
+
slots[nextIndex] = character;
|
|
215
|
+
nextIndex += 1;
|
|
216
|
+
}
|
|
217
|
+
const nextValue = slots.join("");
|
|
218
|
+
this.commit(nextValue, event);
|
|
219
|
+
queueMicrotask(() => this.focus(Math.min(nextIndex, this.length() - 1)));
|
|
220
|
+
}
|
|
221
|
+
removeAt(index, event) {
|
|
222
|
+
const slots = Array.from({ length: this.length() }, (_, slotIndex) => this.normalizedValue()[slotIndex] ?? "");
|
|
223
|
+
slots[index] = "";
|
|
224
|
+
this.commit(slots.join(""), event);
|
|
225
|
+
}
|
|
226
|
+
commit(value, event) {
|
|
227
|
+
const nextValue = this.filterCharacters(value).slice(0, this.length());
|
|
228
|
+
const wasComplete = this.normalizedValue().length === this.length();
|
|
229
|
+
if (this.value() !== nextValue) {
|
|
230
|
+
this.value.set(nextValue);
|
|
231
|
+
this.onChange(nextValue);
|
|
232
|
+
}
|
|
233
|
+
if (!wasComplete && nextValue.length === this.length()) this.completed.emit({
|
|
234
|
+
originalEvent: event,
|
|
235
|
+
value: nextValue
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
filterCharacters(value) {
|
|
239
|
+
const pattern = this.mode() === "numeric" ? /[0-9]/g : /[A-Za-z0-9]/g;
|
|
240
|
+
return value.match(pattern)?.join("") ?? "";
|
|
241
|
+
}
|
|
242
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
243
|
+
minVersion: "12.0.0",
|
|
244
|
+
version: "22.2.1",
|
|
245
|
+
ngImport: i0,
|
|
246
|
+
type: AerisInputOtpComponent,
|
|
247
|
+
deps: [],
|
|
248
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
249
|
+
});
|
|
250
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
251
|
+
minVersion: "17.0.0",
|
|
252
|
+
version: "22.2.1",
|
|
253
|
+
type: AerisInputOtpComponent,
|
|
254
|
+
isStandalone: true,
|
|
255
|
+
selector: "aeris-input-otp",
|
|
256
|
+
inputs: {
|
|
257
|
+
value: {
|
|
258
|
+
classPropertyName: "value",
|
|
259
|
+
publicName: "value",
|
|
260
|
+
isSignal: true,
|
|
261
|
+
isRequired: false,
|
|
262
|
+
transformFunction: null
|
|
263
|
+
},
|
|
264
|
+
length: {
|
|
265
|
+
classPropertyName: "length",
|
|
266
|
+
publicName: "length",
|
|
267
|
+
isSignal: true,
|
|
268
|
+
isRequired: false,
|
|
269
|
+
transformFunction: null
|
|
270
|
+
},
|
|
271
|
+
mode: {
|
|
272
|
+
classPropertyName: "mode",
|
|
273
|
+
publicName: "mode",
|
|
274
|
+
isSignal: true,
|
|
275
|
+
isRequired: false,
|
|
276
|
+
transformFunction: null
|
|
277
|
+
},
|
|
278
|
+
inputId: {
|
|
279
|
+
classPropertyName: "inputId",
|
|
280
|
+
publicName: "inputId",
|
|
281
|
+
isSignal: true,
|
|
282
|
+
isRequired: false,
|
|
283
|
+
transformFunction: null
|
|
284
|
+
},
|
|
285
|
+
name: {
|
|
286
|
+
classPropertyName: "name",
|
|
287
|
+
publicName: "name",
|
|
288
|
+
isSignal: true,
|
|
289
|
+
isRequired: false,
|
|
290
|
+
transformFunction: null
|
|
291
|
+
},
|
|
292
|
+
autocomplete: {
|
|
293
|
+
classPropertyName: "autocomplete",
|
|
294
|
+
publicName: "autocomplete",
|
|
295
|
+
isSignal: true,
|
|
296
|
+
isRequired: false,
|
|
297
|
+
transformFunction: null
|
|
298
|
+
},
|
|
299
|
+
ariaLabel: {
|
|
300
|
+
classPropertyName: "ariaLabel",
|
|
301
|
+
publicName: "ariaLabel",
|
|
302
|
+
isSignal: true,
|
|
303
|
+
isRequired: false,
|
|
304
|
+
transformFunction: null
|
|
305
|
+
},
|
|
306
|
+
ariaLabelledBy: {
|
|
307
|
+
classPropertyName: "ariaLabelledBy",
|
|
308
|
+
publicName: "ariaLabelledBy",
|
|
309
|
+
isSignal: true,
|
|
310
|
+
isRequired: false,
|
|
311
|
+
transformFunction: null
|
|
312
|
+
},
|
|
313
|
+
ariaDescribedBy: {
|
|
314
|
+
classPropertyName: "ariaDescribedBy",
|
|
315
|
+
publicName: "ariaDescribedBy",
|
|
316
|
+
isSignal: true,
|
|
317
|
+
isRequired: false,
|
|
318
|
+
transformFunction: null
|
|
319
|
+
},
|
|
320
|
+
slotAriaLabel: {
|
|
321
|
+
classPropertyName: "slotAriaLabel",
|
|
322
|
+
publicName: "slotAriaLabel",
|
|
323
|
+
isSignal: true,
|
|
324
|
+
isRequired: false,
|
|
325
|
+
transformFunction: null
|
|
326
|
+
},
|
|
327
|
+
size: {
|
|
328
|
+
classPropertyName: "size",
|
|
329
|
+
publicName: "size",
|
|
330
|
+
isSignal: true,
|
|
331
|
+
isRequired: false,
|
|
332
|
+
transformFunction: null
|
|
333
|
+
},
|
|
334
|
+
appearance: {
|
|
335
|
+
classPropertyName: "appearance",
|
|
336
|
+
publicName: "appearance",
|
|
337
|
+
isSignal: true,
|
|
338
|
+
isRequired: false,
|
|
339
|
+
transformFunction: null
|
|
340
|
+
},
|
|
341
|
+
mask: {
|
|
342
|
+
classPropertyName: "mask",
|
|
343
|
+
publicName: "mask",
|
|
344
|
+
isSignal: true,
|
|
345
|
+
isRequired: false,
|
|
346
|
+
transformFunction: null
|
|
347
|
+
},
|
|
348
|
+
autoFocus: {
|
|
349
|
+
classPropertyName: "autoFocus",
|
|
350
|
+
publicName: "autoFocus",
|
|
351
|
+
isSignal: true,
|
|
352
|
+
isRequired: false,
|
|
353
|
+
transformFunction: null
|
|
354
|
+
},
|
|
355
|
+
selectOnFocus: {
|
|
356
|
+
classPropertyName: "selectOnFocus",
|
|
357
|
+
publicName: "selectOnFocus",
|
|
358
|
+
isSignal: true,
|
|
359
|
+
isRequired: false,
|
|
360
|
+
transformFunction: null
|
|
361
|
+
},
|
|
362
|
+
disabled: {
|
|
363
|
+
classPropertyName: "disabled",
|
|
364
|
+
publicName: "disabled",
|
|
365
|
+
isSignal: true,
|
|
366
|
+
isRequired: false,
|
|
367
|
+
transformFunction: null
|
|
368
|
+
},
|
|
369
|
+
readonly: {
|
|
370
|
+
classPropertyName: "readonly",
|
|
371
|
+
publicName: "readonly",
|
|
372
|
+
isSignal: true,
|
|
373
|
+
isRequired: false,
|
|
374
|
+
transformFunction: null
|
|
375
|
+
},
|
|
376
|
+
required: {
|
|
377
|
+
classPropertyName: "required",
|
|
378
|
+
publicName: "required",
|
|
379
|
+
isSignal: true,
|
|
380
|
+
isRequired: false,
|
|
381
|
+
transformFunction: null
|
|
382
|
+
},
|
|
383
|
+
invalid: {
|
|
384
|
+
classPropertyName: "invalid",
|
|
385
|
+
publicName: "invalid",
|
|
386
|
+
isSignal: true,
|
|
387
|
+
isRequired: false,
|
|
388
|
+
transformFunction: null
|
|
389
|
+
},
|
|
390
|
+
touched: {
|
|
391
|
+
classPropertyName: "touched",
|
|
392
|
+
publicName: "touched",
|
|
393
|
+
isSignal: true,
|
|
394
|
+
isRequired: false,
|
|
395
|
+
transformFunction: null
|
|
396
|
+
},
|
|
397
|
+
fluid: {
|
|
398
|
+
classPropertyName: "fluid",
|
|
399
|
+
publicName: "fluid",
|
|
400
|
+
isSignal: true,
|
|
401
|
+
isRequired: false,
|
|
402
|
+
transformFunction: null
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
outputs: {
|
|
406
|
+
value: "valueChange",
|
|
407
|
+
completed: "completed",
|
|
408
|
+
focused: "focused",
|
|
409
|
+
blurred: "blurred",
|
|
410
|
+
touch: "touch"
|
|
411
|
+
},
|
|
412
|
+
host: { properties: { "attr.data-fluid": "fluid() || null" } },
|
|
413
|
+
providers: [{
|
|
414
|
+
provide: NG_VALUE_ACCESSOR,
|
|
415
|
+
useExisting: forwardRef(() => AerisInputOtpComponent),
|
|
416
|
+
multi: true
|
|
417
|
+
}],
|
|
418
|
+
queries: [{
|
|
419
|
+
propertyName: "separatorTemplate",
|
|
420
|
+
first: true,
|
|
421
|
+
predicate: AerisInputOtpSeparatorTemplate,
|
|
422
|
+
descendants: true,
|
|
423
|
+
isSignal: true
|
|
424
|
+
}],
|
|
425
|
+
viewQueries: [{
|
|
426
|
+
propertyName: "inputElements",
|
|
427
|
+
predicate: ["otpInput"],
|
|
428
|
+
descendants: true,
|
|
429
|
+
isSignal: true
|
|
430
|
+
}],
|
|
431
|
+
ngImport: i0,
|
|
432
|
+
template: `
|
|
235
433
|
<span
|
|
236
434
|
class="aeris-input-otp"
|
|
237
435
|
role="group"
|
|
@@ -284,11 +482,32 @@ class AerisInputOtpComponent {
|
|
|
284
482
|
}
|
|
285
483
|
}
|
|
286
484
|
</span>
|
|
287
|
-
`,
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
485
|
+
`,
|
|
486
|
+
isInline: true,
|
|
487
|
+
styles: [":host{display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-input-otp{--_slot-size: var(--aeris-control-height, 2.625rem);--_font-size: 1rem;display:flex;align-items:center;gap:.5rem;max-width:100%}.aeris-input-otp[data-fluid]{width:100%}.aeris-input-otp__slot{width:var(--_slot-size);height:var(--_slot-size);min-width:0;padding:0;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));outline:0;background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font:650 var(--_font-size)/1 inherit;text-align:center;caret-color:var(--aeris-primary, #2c694b);transition:border-color .12s ease,box-shadow .12s ease,background-color .12s ease}.aeris-input-otp[data-fluid] .aeris-input-otp__slot{flex:1 1 0;width:auto;max-width:var(--_slot-size)}.aeris-input-otp__slot:hover:not(:disabled,:read-only){border-color:var(--aeris-primary, #2c694b)}.aeris-input-otp__slot:focus-visible{border-color:var(--aeris-focus, #2c432c);box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus, #2c432c) 18%,transparent)}.aeris-input-otp[data-appearance=filled] .aeris-input-otp__slot{border-color:transparent;background:var(--aeris-surface-2, #f2f0ec)}.aeris-input-otp[data-appearance=filled] .aeris-input-otp__slot:focus-visible{border-color:var(--aeris-focus, #2c432c);background:var(--aeris-surface, #fff)}.aeris-input-otp[data-invalid] .aeris-input-otp__slot{border-color:var(--aeris-danger, #c81e2a)}.aeris-input-otp[data-invalid] .aeris-input-otp__slot:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-danger, #c81e2a) 18%,transparent)}.aeris-input-otp[data-disabled],.aeris-input-otp[data-readonly]{opacity:var(--aeris-disabled-opacity, .54)}.aeris-input-otp[data-disabled] .aeris-input-otp__slot,.aeris-input-otp[data-readonly] .aeris-input-otp__slot{background:var(--aeris-surface-2, #f2f0ec)}.aeris-input-otp[data-size=xs]{--_slot-size: 1.875rem;--_font-size: .75rem;gap:.375rem}.aeris-input-otp[data-size=sm]{--_slot-size: 2.25rem;--_font-size: .875rem;gap:.4375rem}.aeris-input-otp[data-size=lg]{--_slot-size: 3rem;--_font-size: 1.125rem;gap:.625rem}.aeris-input-otp__separator{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;color:var(--aeris-text-2, #555555)}.aeris-input-otp__separator:empty{display:none}@media(max-width:30rem){.aeris-input-otp{gap:.375rem}}@media(prefers-reduced-motion:reduce){.aeris-input-otp__slot{transition:none}}\n"],
|
|
488
|
+
dependencies: [{
|
|
489
|
+
kind: "directive",
|
|
490
|
+
type: NgTemplateOutlet,
|
|
491
|
+
selector: "[ngTemplateOutlet]",
|
|
492
|
+
inputs: [
|
|
493
|
+
"ngTemplateOutletContext",
|
|
494
|
+
"ngTemplateOutlet",
|
|
495
|
+
"ngTemplateOutletInjector"
|
|
496
|
+
]
|
|
497
|
+
}]
|
|
498
|
+
});
|
|
499
|
+
};
|
|
500
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
501
|
+
minVersion: "12.0.0",
|
|
502
|
+
version: "22.2.1",
|
|
503
|
+
ngImport: i0,
|
|
504
|
+
type: AerisInputOtpComponent,
|
|
505
|
+
decorators: [{
|
|
506
|
+
type: Component,
|
|
507
|
+
args: [{
|
|
508
|
+
selector: "aeris-input-otp",
|
|
509
|
+
imports: [NgTemplateOutlet],
|
|
510
|
+
template: `
|
|
292
511
|
<span
|
|
293
512
|
class="aeris-input-otp"
|
|
294
513
|
role="group"
|
|
@@ -341,21 +560,216 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
341
560
|
}
|
|
342
561
|
}
|
|
343
562
|
</span>
|
|
344
|
-
`,
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
563
|
+
`,
|
|
564
|
+
providers: [{
|
|
565
|
+
provide: NG_VALUE_ACCESSOR,
|
|
566
|
+
useExisting: forwardRef(() => AerisInputOtpComponent),
|
|
567
|
+
multi: true
|
|
568
|
+
}],
|
|
569
|
+
host: { "[attr.data-fluid]": "fluid() || null" },
|
|
570
|
+
styles: [":host{display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-input-otp{--_slot-size: var(--aeris-control-height, 2.625rem);--_font-size: 1rem;display:flex;align-items:center;gap:.5rem;max-width:100%}.aeris-input-otp[data-fluid]{width:100%}.aeris-input-otp__slot{width:var(--_slot-size);height:var(--_slot-size);min-width:0;padding:0;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));outline:0;background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font:650 var(--_font-size)/1 inherit;text-align:center;caret-color:var(--aeris-primary, #2c694b);transition:border-color .12s ease,box-shadow .12s ease,background-color .12s ease}.aeris-input-otp[data-fluid] .aeris-input-otp__slot{flex:1 1 0;width:auto;max-width:var(--_slot-size)}.aeris-input-otp__slot:hover:not(:disabled,:read-only){border-color:var(--aeris-primary, #2c694b)}.aeris-input-otp__slot:focus-visible{border-color:var(--aeris-focus, #2c432c);box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus, #2c432c) 18%,transparent)}.aeris-input-otp[data-appearance=filled] .aeris-input-otp__slot{border-color:transparent;background:var(--aeris-surface-2, #f2f0ec)}.aeris-input-otp[data-appearance=filled] .aeris-input-otp__slot:focus-visible{border-color:var(--aeris-focus, #2c432c);background:var(--aeris-surface, #fff)}.aeris-input-otp[data-invalid] .aeris-input-otp__slot{border-color:var(--aeris-danger, #c81e2a)}.aeris-input-otp[data-invalid] .aeris-input-otp__slot:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-danger, #c81e2a) 18%,transparent)}.aeris-input-otp[data-disabled],.aeris-input-otp[data-readonly]{opacity:var(--aeris-disabled-opacity, .54)}.aeris-input-otp[data-disabled] .aeris-input-otp__slot,.aeris-input-otp[data-readonly] .aeris-input-otp__slot{background:var(--aeris-surface-2, #f2f0ec)}.aeris-input-otp[data-size=xs]{--_slot-size: 1.875rem;--_font-size: .75rem;gap:.375rem}.aeris-input-otp[data-size=sm]{--_slot-size: 2.25rem;--_font-size: .875rem;gap:.4375rem}.aeris-input-otp[data-size=lg]{--_slot-size: 3rem;--_font-size: 1.125rem;gap:.625rem}.aeris-input-otp__separator{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;color:var(--aeris-text-2, #555555)}.aeris-input-otp__separator:empty{display:none}@media(max-width:30rem){.aeris-input-otp{gap:.375rem}}@media(prefers-reduced-motion:reduce){.aeris-input-otp__slot{transition:none}}\n"]
|
|
571
|
+
}]
|
|
572
|
+
}],
|
|
573
|
+
ctorParameters: () => [],
|
|
574
|
+
propDecorators: {
|
|
575
|
+
inputElements: [{
|
|
576
|
+
type: i0.ViewChildren,
|
|
577
|
+
args: ["otpInput", { isSignal: true }]
|
|
578
|
+
}],
|
|
579
|
+
value: [{
|
|
580
|
+
type: i0.Input,
|
|
581
|
+
args: [{
|
|
582
|
+
isSignal: true,
|
|
583
|
+
alias: "value",
|
|
584
|
+
required: false
|
|
585
|
+
}]
|
|
586
|
+
}, {
|
|
587
|
+
type: i0.Output,
|
|
588
|
+
args: ["valueChange"]
|
|
589
|
+
}],
|
|
590
|
+
length: [{
|
|
591
|
+
type: i0.Input,
|
|
592
|
+
args: [{
|
|
593
|
+
isSignal: true,
|
|
594
|
+
alias: "length",
|
|
595
|
+
required: false
|
|
596
|
+
}]
|
|
597
|
+
}],
|
|
598
|
+
mode: [{
|
|
599
|
+
type: i0.Input,
|
|
600
|
+
args: [{
|
|
601
|
+
isSignal: true,
|
|
602
|
+
alias: "mode",
|
|
603
|
+
required: false
|
|
604
|
+
}]
|
|
605
|
+
}],
|
|
606
|
+
inputId: [{
|
|
607
|
+
type: i0.Input,
|
|
608
|
+
args: [{
|
|
609
|
+
isSignal: true,
|
|
610
|
+
alias: "inputId",
|
|
611
|
+
required: false
|
|
612
|
+
}]
|
|
613
|
+
}],
|
|
614
|
+
name: [{
|
|
615
|
+
type: i0.Input,
|
|
616
|
+
args: [{
|
|
617
|
+
isSignal: true,
|
|
618
|
+
alias: "name",
|
|
619
|
+
required: false
|
|
620
|
+
}]
|
|
621
|
+
}],
|
|
622
|
+
autocomplete: [{
|
|
623
|
+
type: i0.Input,
|
|
624
|
+
args: [{
|
|
625
|
+
isSignal: true,
|
|
626
|
+
alias: "autocomplete",
|
|
627
|
+
required: false
|
|
628
|
+
}]
|
|
629
|
+
}],
|
|
630
|
+
ariaLabel: [{
|
|
631
|
+
type: i0.Input,
|
|
632
|
+
args: [{
|
|
633
|
+
isSignal: true,
|
|
634
|
+
alias: "ariaLabel",
|
|
635
|
+
required: false
|
|
636
|
+
}]
|
|
637
|
+
}],
|
|
638
|
+
ariaLabelledBy: [{
|
|
639
|
+
type: i0.Input,
|
|
640
|
+
args: [{
|
|
641
|
+
isSignal: true,
|
|
642
|
+
alias: "ariaLabelledBy",
|
|
643
|
+
required: false
|
|
644
|
+
}]
|
|
645
|
+
}],
|
|
646
|
+
ariaDescribedBy: [{
|
|
647
|
+
type: i0.Input,
|
|
648
|
+
args: [{
|
|
649
|
+
isSignal: true,
|
|
650
|
+
alias: "ariaDescribedBy",
|
|
651
|
+
required: false
|
|
652
|
+
}]
|
|
653
|
+
}],
|
|
654
|
+
slotAriaLabel: [{
|
|
655
|
+
type: i0.Input,
|
|
656
|
+
args: [{
|
|
657
|
+
isSignal: true,
|
|
658
|
+
alias: "slotAriaLabel",
|
|
659
|
+
required: false
|
|
660
|
+
}]
|
|
661
|
+
}],
|
|
662
|
+
size: [{
|
|
663
|
+
type: i0.Input,
|
|
664
|
+
args: [{
|
|
665
|
+
isSignal: true,
|
|
666
|
+
alias: "size",
|
|
667
|
+
required: false
|
|
668
|
+
}]
|
|
669
|
+
}],
|
|
670
|
+
appearance: [{
|
|
671
|
+
type: i0.Input,
|
|
672
|
+
args: [{
|
|
673
|
+
isSignal: true,
|
|
674
|
+
alias: "appearance",
|
|
675
|
+
required: false
|
|
676
|
+
}]
|
|
677
|
+
}],
|
|
678
|
+
mask: [{
|
|
679
|
+
type: i0.Input,
|
|
680
|
+
args: [{
|
|
681
|
+
isSignal: true,
|
|
682
|
+
alias: "mask",
|
|
683
|
+
required: false
|
|
684
|
+
}]
|
|
685
|
+
}],
|
|
686
|
+
autoFocus: [{
|
|
687
|
+
type: i0.Input,
|
|
688
|
+
args: [{
|
|
689
|
+
isSignal: true,
|
|
690
|
+
alias: "autoFocus",
|
|
691
|
+
required: false
|
|
692
|
+
}]
|
|
693
|
+
}],
|
|
694
|
+
selectOnFocus: [{
|
|
695
|
+
type: i0.Input,
|
|
696
|
+
args: [{
|
|
697
|
+
isSignal: true,
|
|
698
|
+
alias: "selectOnFocus",
|
|
699
|
+
required: false
|
|
700
|
+
}]
|
|
701
|
+
}],
|
|
702
|
+
disabled: [{
|
|
703
|
+
type: i0.Input,
|
|
704
|
+
args: [{
|
|
705
|
+
isSignal: true,
|
|
706
|
+
alias: "disabled",
|
|
707
|
+
required: false
|
|
708
|
+
}]
|
|
709
|
+
}],
|
|
710
|
+
readonly: [{
|
|
711
|
+
type: i0.Input,
|
|
712
|
+
args: [{
|
|
713
|
+
isSignal: true,
|
|
714
|
+
alias: "readonly",
|
|
715
|
+
required: false
|
|
716
|
+
}]
|
|
717
|
+
}],
|
|
718
|
+
required: [{
|
|
719
|
+
type: i0.Input,
|
|
720
|
+
args: [{
|
|
721
|
+
isSignal: true,
|
|
722
|
+
alias: "required",
|
|
723
|
+
required: false
|
|
724
|
+
}]
|
|
725
|
+
}],
|
|
726
|
+
invalid: [{
|
|
727
|
+
type: i0.Input,
|
|
728
|
+
args: [{
|
|
729
|
+
isSignal: true,
|
|
730
|
+
alias: "invalid",
|
|
731
|
+
required: false
|
|
732
|
+
}]
|
|
733
|
+
}],
|
|
734
|
+
touched: [{
|
|
735
|
+
type: i0.Input,
|
|
736
|
+
args: [{
|
|
737
|
+
isSignal: true,
|
|
738
|
+
alias: "touched",
|
|
739
|
+
required: false
|
|
740
|
+
}]
|
|
741
|
+
}],
|
|
742
|
+
fluid: [{
|
|
743
|
+
type: i0.Input,
|
|
744
|
+
args: [{
|
|
745
|
+
isSignal: true,
|
|
746
|
+
alias: "fluid",
|
|
747
|
+
required: false
|
|
748
|
+
}]
|
|
749
|
+
}],
|
|
750
|
+
completed: [{
|
|
751
|
+
type: i0.Output,
|
|
752
|
+
args: ["completed"]
|
|
753
|
+
}],
|
|
754
|
+
focused: [{
|
|
755
|
+
type: i0.Output,
|
|
756
|
+
args: ["focused"]
|
|
757
|
+
}],
|
|
758
|
+
blurred: [{
|
|
759
|
+
type: i0.Output,
|
|
760
|
+
args: ["blurred"]
|
|
761
|
+
}],
|
|
762
|
+
touch: [{
|
|
763
|
+
type: i0.Output,
|
|
764
|
+
args: ["touch"]
|
|
765
|
+
}],
|
|
766
|
+
separatorTemplate: [{
|
|
767
|
+
type: i0.ContentChild,
|
|
768
|
+
args: [i0.forwardRef(() => AerisInputOtpSeparatorTemplate), { isSignal: true }]
|
|
769
|
+
}]
|
|
770
|
+
}
|
|
771
|
+
});
|
|
354
772
|
const AerisInputOtp = [AerisInputOtpComponent, AerisInputOtpSeparatorTemplate];
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Generated bundle index. Do not edit.
|
|
358
|
-
*/
|
|
359
|
-
|
|
360
773
|
export { AerisInputOtp, AerisInputOtpComponent, AerisInputOtpSeparatorTemplate };
|
|
361
|
-
|
|
774
|
+
|
|
775
|
+
//# sourceMappingURL=aeris-ui-core-input-otp.mjs.map
|