@frame-ui-ng/components 0.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +9 -0
- package/README.md +31 -0
- package/accordion/src/styles/_vars.css +25 -0
- package/accordion/src/styles/accordion.css +87 -0
- package/alert/src/styles/_vars.css +28 -0
- package/alert/src/styles/alert.css +77 -0
- package/avatar/src/styles/_vars.css +34 -0
- package/avatar/src/styles/avatar.css +209 -0
- package/badge/src/styles/_vars.css +16 -0
- package/badge/src/styles/badge.css +125 -0
- package/breadcrumb/src/styles/_vars.css +16 -0
- package/breadcrumb/src/styles/breadcrumb.css +98 -0
- package/button/src/styles/_vars.css +20 -0
- package/button/src/styles/button-icon.css +18 -0
- package/button/src/styles/button-label.css +3 -0
- package/button/src/styles/button.css +243 -0
- package/button-group/src/styles/button-group.css +69 -0
- package/calendar/src/styles/_vars.css +29 -0
- package/calendar/src/styles/calendar.css +226 -0
- package/card/src/styles/_vars.css +17 -0
- package/card/src/styles/card.css +142 -0
- package/carousel/src/styles/_vars.css +7 -0
- package/carousel/src/styles/carousel.css +89 -0
- package/checkbox/src/styles/_vars.css +22 -0
- package/checkbox/src/styles/checkbox.css +95 -0
- package/collapsible/src/styles/_vars.css +13 -0
- package/collapsible/src/styles/collapsible.css +42 -0
- package/combobox/src/styles/_vars.css +60 -0
- package/combobox/src/styles/combobox.css +285 -0
- package/command/src/styles/_vars.css +37 -0
- package/command/src/styles/command.css +171 -0
- package/context-menu/src/styles/context-menu.css +5 -0
- package/date-picker/src/styles/_vars.css +29 -0
- package/date-picker/src/styles/date-picker.css +177 -0
- package/dropdown-menu/src/styles/_vars.css +34 -0
- package/dropdown-menu/src/styles/dropdown-menu-item.css +87 -0
- package/dropdown-menu/src/styles/dropdown-menu-motion.css +42 -0
- package/dropdown-menu/src/styles/dropdown-menu-panel.css +26 -0
- package/dropdown-menu/src/styles/dropdown-menu.css +4 -0
- package/empty/src/styles/_vars.css +23 -0
- package/empty/src/styles/empty.css +108 -0
- package/fesm2022/frame-ui-ng-components-accordion.mjs +268 -0
- package/fesm2022/frame-ui-ng-components-accordion.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-alert.mjs +102 -0
- package/fesm2022/frame-ui-ng-components-alert.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-avatar.mjs +197 -0
- package/fesm2022/frame-ui-ng-components-avatar.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-badge.mjs +120 -0
- package/fesm2022/frame-ui-ng-components-badge.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-breadcrumb.mjs +156 -0
- package/fesm2022/frame-ui-ng-components-breadcrumb.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-button-group.mjs +44 -0
- package/fesm2022/frame-ui-ng-components-button-group.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-button.mjs +150 -0
- package/fesm2022/frame-ui-ng-components-button.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-calendar.mjs +559 -0
- package/fesm2022/frame-ui-ng-components-calendar.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-card.mjs +169 -0
- package/fesm2022/frame-ui-ng-components-card.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-carousel.mjs +454 -0
- package/fesm2022/frame-ui-ng-components-carousel.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-checkbox.mjs +83 -0
- package/fesm2022/frame-ui-ng-components-checkbox.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-collapsible.mjs +191 -0
- package/fesm2022/frame-ui-ng-components-collapsible.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-combobox.mjs +859 -0
- package/fesm2022/frame-ui-ng-components-combobox.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-command.mjs +658 -0
- package/fesm2022/frame-ui-ng-components-command.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-context-menu.mjs +579 -0
- package/fesm2022/frame-ui-ng-components-context-menu.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-date-picker.mjs +512 -0
- package/fesm2022/frame-ui-ng-components-date-picker.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-dropdown-menu.mjs +647 -0
- package/fesm2022/frame-ui-ng-components-dropdown-menu.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-empty.mjs +134 -0
- package/fesm2022/frame-ui-ng-components-empty.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-field.mjs +210 -0
- package/fesm2022/frame-ui-ng-components-field.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-forms.mjs +89 -0
- package/fesm2022/frame-ui-ng-components-forms.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-hover-card.mjs +412 -0
- package/fesm2022/frame-ui-ng-components-hover-card.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-input-otp.mjs +327 -0
- package/fesm2022/frame-ui-ng-components-input-otp.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-input.mjs +250 -0
- package/fesm2022/frame-ui-ng-components-input.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-item.mjs +207 -0
- package/fesm2022/frame-ui-ng-components-item.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-menubar.mjs +371 -0
- package/fesm2022/frame-ui-ng-components-menubar.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-modal.mjs +525 -0
- package/fesm2022/frame-ui-ng-components-modal.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-navigation-menu.mjs +322 -0
- package/fesm2022/frame-ui-ng-components-navigation-menu.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-pagination.mjs +327 -0
- package/fesm2022/frame-ui-ng-components-pagination.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-popover.mjs +454 -0
- package/fesm2022/frame-ui-ng-components-popover.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-progress.mjs +96 -0
- package/fesm2022/frame-ui-ng-components-progress.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-radio-group.mjs +124 -0
- package/fesm2022/frame-ui-ng-components-radio-group.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-resizable.mjs +325 -0
- package/fesm2022/frame-ui-ng-components-resizable.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-select.mjs +434 -0
- package/fesm2022/frame-ui-ng-components-select.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-separator.mjs +51 -0
- package/fesm2022/frame-ui-ng-components-separator.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-sheet.mjs +514 -0
- package/fesm2022/frame-ui-ng-components-sheet.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-sidebar.mjs +628 -0
- package/fesm2022/frame-ui-ng-components-sidebar.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-skeleton.mjs +46 -0
- package/fesm2022/frame-ui-ng-components-skeleton.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-slider.mjs +279 -0
- package/fesm2022/frame-ui-ng-components-slider.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-spinner.mjs +51 -0
- package/fesm2022/frame-ui-ng-components-spinner.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-switch.mjs +130 -0
- package/fesm2022/frame-ui-ng-components-switch.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-table.mjs +594 -0
- package/fesm2022/frame-ui-ng-components-table.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-tabs.mjs +208 -0
- package/fesm2022/frame-ui-ng-components-tabs.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-textarea.mjs +40 -0
- package/fesm2022/frame-ui-ng-components-textarea.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-toast.mjs +346 -0
- package/fesm2022/frame-ui-ng-components-toast.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-toggle.mjs +127 -0
- package/fesm2022/frame-ui-ng-components-toggle.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-tooltip.mjs +425 -0
- package/fesm2022/frame-ui-ng-components-tooltip.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-virtual-scroll.mjs +321 -0
- package/fesm2022/frame-ui-ng-components-virtual-scroll.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components.mjs +10278 -0
- package/fesm2022/frame-ui-ng-components.mjs.map +1 -0
- package/field/src/styles/_vars.css +20 -0
- package/field/src/styles/field.css +165 -0
- package/hover-card/src/styles/_vars.css +21 -0
- package/hover-card/src/styles/hover-card.css +76 -0
- package/input/src/styles/_vars.css +65 -0
- package/input/src/styles/input-group.css +112 -0
- package/input/src/styles/input.css +163 -0
- package/input-otp/src/styles/_vars.css +21 -0
- package/input-otp/src/styles/input-otp.css +116 -0
- package/item/src/styles/_vars.css +34 -0
- package/item/src/styles/item.css +187 -0
- package/menubar/src/styles/_vars.css +22 -0
- package/menubar/src/styles/menubar.css +70 -0
- package/modal/src/styles/_vars.css +18 -0
- package/modal/src/styles/modal.css +179 -0
- package/navigation-menu/src/styles/_vars.css +45 -0
- package/navigation-menu/src/styles/navigation-menu.css +245 -0
- package/package.json +243 -0
- package/pagination/src/styles/_vars.css +22 -0
- package/pagination/src/styles/pagination.css +138 -0
- package/popover/src/styles/_vars.css +24 -0
- package/popover/src/styles/popover.css +101 -0
- package/progress/src/styles/_vars.css +15 -0
- package/progress/src/styles/progress.css +64 -0
- package/radio-group/src/styles/_vars.css +29 -0
- package/radio-group/src/styles/radio-group.css +137 -0
- package/resizable/src/styles/_vars.css +20 -0
- package/resizable/src/styles/resizable.css +130 -0
- package/select/src/styles/_vars.css +28 -0
- package/select/src/styles/select-content.css +19 -0
- package/select/src/styles/select-feedback.css +6 -0
- package/select/src/styles/select-item.css +69 -0
- package/select/src/styles/select-trigger.css +95 -0
- package/select/src/styles/select.css +5 -0
- package/separator/src/styles/_vars.css +9 -0
- package/separator/src/styles/separator.css +25 -0
- package/sheet/src/styles/_vars.css +18 -0
- package/sheet/src/styles/sheet.css +215 -0
- package/sidebar/src/styles/_vars.css +24 -0
- package/sidebar/src/styles/sidebar.css +531 -0
- package/skeleton/src/styles/_vars.css +8 -0
- package/skeleton/src/styles/skeleton.css +40 -0
- package/slider/src/styles/_vars.css +17 -0
- package/slider/src/styles/slider.css +147 -0
- package/spinner/src/styles/_vars.css +9 -0
- package/spinner/src/styles/spinner.css +62 -0
- package/src/styles/components.css +47 -0
- package/styles/components.css +47 -0
- package/styles.css +49 -0
- package/switch/src/styles/_vars.css +34 -0
- package/switch/src/styles/switch.css +131 -0
- package/table/src/styles/_vars.css +25 -0
- package/table/src/styles/table.css +245 -0
- package/tabs/src/styles/_vars.css +23 -0
- package/tabs/src/styles/tabs.css +164 -0
- package/textarea/src/styles/_vars.css +20 -0
- package/textarea/src/styles/textarea.css +60 -0
- package/toast/src/styles/_vars.css +47 -0
- package/toast/src/styles/toast.css +314 -0
- package/toggle/src/styles/_vars.css +24 -0
- package/toggle/src/styles/toggle.css +110 -0
- package/tooltip/src/styles/_vars.css +21 -0
- package/tooltip/src/styles/tooltip.css +103 -0
- package/types/frame-ui-ng-components-accordion.d.ts +75 -0
- package/types/frame-ui-ng-components-alert.d.ts +30 -0
- package/types/frame-ui-ng-components-avatar.d.ts +65 -0
- package/types/frame-ui-ng-components-badge.d.ts +35 -0
- package/types/frame-ui-ng-components-breadcrumb.d.ts +40 -0
- package/types/frame-ui-ng-components-button-group.d.ts +18 -0
- package/types/frame-ui-ng-components-button.d.ts +50 -0
- package/types/frame-ui-ng-components-calendar.d.ts +101 -0
- package/types/frame-ui-ng-components-card.d.ts +51 -0
- package/types/frame-ui-ng-components-carousel.d.ts +117 -0
- package/types/frame-ui-ng-components-checkbox.d.ts +25 -0
- package/types/frame-ui-ng-components-collapsible.d.ts +55 -0
- package/types/frame-ui-ng-components-combobox.d.ts +201 -0
- package/types/frame-ui-ng-components-command.d.ts +198 -0
- package/types/frame-ui-ng-components-context-menu.d.ts +149 -0
- package/types/frame-ui-ng-components-date-picker.d.ts +95 -0
- package/types/frame-ui-ng-components-dropdown-menu.d.ts +182 -0
- package/types/frame-ui-ng-components-empty.d.ts +44 -0
- package/types/frame-ui-ng-components-field.d.ts +60 -0
- package/types/frame-ui-ng-components-forms.d.ts +39 -0
- package/types/frame-ui-ng-components-hover-card.d.ts +94 -0
- package/types/frame-ui-ng-components-input-otp.d.ts +70 -0
- package/types/frame-ui-ng-components-input.d.ts +67 -0
- package/types/frame-ui-ng-components-item.d.ts +62 -0
- package/types/frame-ui-ng-components-menubar.d.ts +76 -0
- package/types/frame-ui-ng-components-modal.d.ts +148 -0
- package/types/frame-ui-ng-components-navigation-menu.d.ts +74 -0
- package/types/frame-ui-ng-components-pagination.d.ts +79 -0
- package/types/frame-ui-ng-components-popover.d.ts +95 -0
- package/types/frame-ui-ng-components-progress.d.ts +24 -0
- package/types/frame-ui-ng-components-radio-group.d.ts +40 -0
- package/types/frame-ui-ng-components-resizable.d.ts +61 -0
- package/types/frame-ui-ng-components-select.d.ts +114 -0
- package/types/frame-ui-ng-components-separator.d.ts +19 -0
- package/types/frame-ui-ng-components-sheet.d.ts +146 -0
- package/types/frame-ui-ng-components-sidebar.d.ts +163 -0
- package/types/frame-ui-ng-components-skeleton.d.ts +18 -0
- package/types/frame-ui-ng-components-slider.d.ts +56 -0
- package/types/frame-ui-ng-components-spinner.d.ts +23 -0
- package/types/frame-ui-ng-components-switch.d.ts +38 -0
- package/types/frame-ui-ng-components-table.d.ts +125 -0
- package/types/frame-ui-ng-components-tabs.d.ts +62 -0
- package/types/frame-ui-ng-components-textarea.d.ts +14 -0
- package/types/frame-ui-ng-components-toast.d.ts +74 -0
- package/types/frame-ui-ng-components-toggle.d.ts +45 -0
- package/types/frame-ui-ng-components-tooltip.d.ts +99 -0
- package/types/frame-ui-ng-components-virtual-scroll.d.ts +106 -0
- package/types/frame-ui-ng-components.d.ts +2746 -0
- package/virtual-scroll/src/styles/virtual-scroll.css +54 -0
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import { NgClass } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { InjectionToken, input, numberAttribute, booleanAttribute, output, signal, computed, ViewChild, ChangeDetectionStrategy, Component, Directive, inject, NgModule } from '@angular/core';
|
|
4
|
+
import { FrControlValueAccessor, provideDsValueAccessor } from '@frame-ui-ng/components/forms';
|
|
5
|
+
import { FrInput } from '@frame-ui-ng/components/input';
|
|
6
|
+
|
|
7
|
+
const FR_INPUT_OTP_PATTERN_DIGITS = /^[0-9]$/;
|
|
8
|
+
const FR_INPUT_OTP_PATTERN_DIGITS_AND_CHARS = /^[a-zA-Z0-9]$/;
|
|
9
|
+
const FR_INPUT_OTP_CONTROLLER = new InjectionToken('FrInputOtpController');
|
|
10
|
+
class FrInputOtp extends FrControlValueAccessor {
|
|
11
|
+
nativeInput;
|
|
12
|
+
maxLength = input(6, { ...(ngDevMode ? { debugName: "maxLength" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
13
|
+
pattern = input(FR_INPUT_OTP_PATTERN_DIGITS, ...(ngDevMode ? [{ debugName: "pattern" }] : /* istanbul ignore next */ []));
|
|
14
|
+
disabledInput = input(false, { ...(ngDevMode ? { debugName: "disabledInput" } : /* istanbul ignore next */ {}), alias: 'disabled', transform: booleanAttribute });
|
|
15
|
+
invalidInput = input(false, { ...(ngDevMode ? { debugName: "invalidInput" } : /* istanbul ignore next */ {}), alias: 'invalid', transform: booleanAttribute });
|
|
16
|
+
ariaLabel = input('One-time password', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
17
|
+
valueChange = output();
|
|
18
|
+
complete = output();
|
|
19
|
+
value = signal('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
20
|
+
activeIndex = signal(0, ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
|
|
21
|
+
disabled = computed(() => this.disabledInput() || this.formDisabled(), ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
22
|
+
invalid = computed(() => this.invalidInput() || this.formInvalid(), ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
|
|
23
|
+
isComplete = computed(() => this.value().length >= this.maxLength(), ...(ngDevMode ? [{ debugName: "isComplete" }] : /* istanbul ignore next */ []));
|
|
24
|
+
focus(index = this.activeIndex()) {
|
|
25
|
+
if (this.disabled()) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const inputElement = this.nativeInput?.nativeElement;
|
|
29
|
+
if (!inputElement) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const nextIndex = clamp(index, 0, this.maxLength());
|
|
33
|
+
inputElement.focus();
|
|
34
|
+
inputElement.setSelectionRange(nextIndex, nextIndex);
|
|
35
|
+
this.activeIndex.set(nextIndex);
|
|
36
|
+
}
|
|
37
|
+
charAt(index) {
|
|
38
|
+
return this.value().at(index) ?? '';
|
|
39
|
+
}
|
|
40
|
+
handleNativeInput(rawValue) {
|
|
41
|
+
this.commitValue(this.sanitize(rawValue));
|
|
42
|
+
this.syncActiveIndex();
|
|
43
|
+
}
|
|
44
|
+
handleKeydown(event) {
|
|
45
|
+
if (this.disabled()) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (event.key === 'ArrowLeft') {
|
|
49
|
+
event.preventDefault();
|
|
50
|
+
this.focus(this.activeIndex() - 1);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (event.key === 'ArrowRight') {
|
|
54
|
+
event.preventDefault();
|
|
55
|
+
this.focus(this.activeIndex() + 1);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if (event.key === 'Backspace') {
|
|
59
|
+
event.preventDefault();
|
|
60
|
+
this.removeAt(this.activeIndex());
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey) {
|
|
64
|
+
event.preventDefault();
|
|
65
|
+
this.insertAt(event.key, this.activeIndex());
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
handlePaste(event) {
|
|
69
|
+
const text = event.clipboardData?.getData('text') ?? '';
|
|
70
|
+
if (!text) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
event.preventDefault();
|
|
74
|
+
const next = this.replaceFrom(this.activeIndex(), this.sanitize(text));
|
|
75
|
+
this.commitValue(next);
|
|
76
|
+
this.focus(Math.min(next.length, this.maxLength()));
|
|
77
|
+
}
|
|
78
|
+
syncActiveIndex() {
|
|
79
|
+
const inputElement = this.nativeInput?.nativeElement;
|
|
80
|
+
const index = inputElement?.selectionStart ?? this.value().length;
|
|
81
|
+
this.activeIndex.set(clamp(index, 0, this.maxLength()));
|
|
82
|
+
}
|
|
83
|
+
markTouched() {
|
|
84
|
+
this.markAsTouched();
|
|
85
|
+
}
|
|
86
|
+
setViewValue(value) {
|
|
87
|
+
this.value.set(this.sanitize(value ?? ''));
|
|
88
|
+
this.activeIndex.set(Math.min(this.value().length, this.maxLength()));
|
|
89
|
+
}
|
|
90
|
+
insertAt(character, index) {
|
|
91
|
+
const sanitized = this.sanitize(character);
|
|
92
|
+
if (!sanitized) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
const next = this.replaceFrom(index, sanitized.at(0) ?? '');
|
|
96
|
+
this.commitValue(next);
|
|
97
|
+
this.focus(Math.min(index + 1, this.maxLength()));
|
|
98
|
+
}
|
|
99
|
+
removeAt(index) {
|
|
100
|
+
const value = this.value();
|
|
101
|
+
const targetIndex = value.at(index) ? index : index - 1;
|
|
102
|
+
if (targetIndex < 0) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
const next = `${value.slice(0, targetIndex)}${value.slice(targetIndex + 1)}`;
|
|
106
|
+
this.commitValue(next);
|
|
107
|
+
this.focus(targetIndex);
|
|
108
|
+
}
|
|
109
|
+
replaceFrom(index, text) {
|
|
110
|
+
const value = this.value();
|
|
111
|
+
const start = clamp(index, 0, this.maxLength());
|
|
112
|
+
const next = `${value.slice(0, start)}${text}${value.slice(start + text.length)}`;
|
|
113
|
+
return this.sanitize(next);
|
|
114
|
+
}
|
|
115
|
+
commitValue(value) {
|
|
116
|
+
const next = this.sanitize(value);
|
|
117
|
+
this.value.set(next);
|
|
118
|
+
this.notifyValueChange(next);
|
|
119
|
+
this.valueChange.emit(next);
|
|
120
|
+
if (next.length >= this.maxLength()) {
|
|
121
|
+
this.complete.emit(next);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
sanitize(value) {
|
|
125
|
+
const matcher = toMatcher(this.pattern());
|
|
126
|
+
const characters = Array.from(value).filter((character) => matcher(character));
|
|
127
|
+
return characters.slice(0, this.maxLength()).join('');
|
|
128
|
+
}
|
|
129
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputOtp, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
130
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.16", type: FrInputOtp, isStandalone: true, selector: "frame-input-otp", inputs: { maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, pattern: { classPropertyName: "pattern", publicName: "pattern", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalidInput: { classPropertyName: "invalidInput", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", complete: "complete" }, host: { attributes: { "role": "group" }, listeners: { "click": "focus(activeIndex())" }, properties: { "attr.data-disabled": "disabled() ? \"\" : null", "attr.data-invalid": "invalid() ? \"\" : null", "attr.data-complete": "isComplete() ? \"\" : null" }, classAttribute: "frame-input-otp" }, providers: [
|
|
131
|
+
provideDsValueAccessor(FrInputOtp),
|
|
132
|
+
{
|
|
133
|
+
provide: FR_INPUT_OTP_CONTROLLER,
|
|
134
|
+
useExisting: FrInputOtp,
|
|
135
|
+
},
|
|
136
|
+
], viewQueries: [{ propertyName: "nativeInput", first: true, predicate: ["nativeInput"], descendants: true }], exportAs: ["frInputOtp"], usesInheritance: true, ngImport: i0, template: `
|
|
137
|
+
<input
|
|
138
|
+
#nativeInput
|
|
139
|
+
frInput
|
|
140
|
+
class="frame-input-otp__native"
|
|
141
|
+
type="text"
|
|
142
|
+
inputmode="numeric"
|
|
143
|
+
autocomplete="one-time-code"
|
|
144
|
+
[attr.aria-invalid]="invalid() ? 'true' : null"
|
|
145
|
+
[attr.aria-label]="ariaLabel()"
|
|
146
|
+
[disabled]="disabled()"
|
|
147
|
+
[maxLength]="maxLength()"
|
|
148
|
+
[value]="value()"
|
|
149
|
+
(blur)="markTouched()"
|
|
150
|
+
(focus)="syncActiveIndex()"
|
|
151
|
+
(input)="handleNativeInput($any($event.target).value)"
|
|
152
|
+
(keydown)="handleKeydown($event)"
|
|
153
|
+
(paste)="handlePaste($event)"
|
|
154
|
+
(select)="syncActiveIndex()"
|
|
155
|
+
(click)="syncActiveIndex()"
|
|
156
|
+
/>
|
|
157
|
+
|
|
158
|
+
<ng-content />
|
|
159
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: FrInput, selector: "input[frInput]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
160
|
+
}
|
|
161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputOtp, decorators: [{
|
|
162
|
+
type: Component,
|
|
163
|
+
args: [{
|
|
164
|
+
selector: 'frame-input-otp',
|
|
165
|
+
exportAs: 'frInputOtp',
|
|
166
|
+
imports: [FrInput],
|
|
167
|
+
providers: [
|
|
168
|
+
provideDsValueAccessor(FrInputOtp),
|
|
169
|
+
{
|
|
170
|
+
provide: FR_INPUT_OTP_CONTROLLER,
|
|
171
|
+
useExisting: FrInputOtp,
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
175
|
+
host: {
|
|
176
|
+
class: 'frame-input-otp',
|
|
177
|
+
role: 'group',
|
|
178
|
+
'[attr.data-disabled]': 'disabled() ? "" : null',
|
|
179
|
+
'[attr.data-invalid]': 'invalid() ? "" : null',
|
|
180
|
+
'[attr.data-complete]': 'isComplete() ? "" : null',
|
|
181
|
+
'(click)': 'focus(activeIndex())',
|
|
182
|
+
},
|
|
183
|
+
template: `
|
|
184
|
+
<input
|
|
185
|
+
#nativeInput
|
|
186
|
+
frInput
|
|
187
|
+
class="frame-input-otp__native"
|
|
188
|
+
type="text"
|
|
189
|
+
inputmode="numeric"
|
|
190
|
+
autocomplete="one-time-code"
|
|
191
|
+
[attr.aria-invalid]="invalid() ? 'true' : null"
|
|
192
|
+
[attr.aria-label]="ariaLabel()"
|
|
193
|
+
[disabled]="disabled()"
|
|
194
|
+
[maxLength]="maxLength()"
|
|
195
|
+
[value]="value()"
|
|
196
|
+
(blur)="markTouched()"
|
|
197
|
+
(focus)="syncActiveIndex()"
|
|
198
|
+
(input)="handleNativeInput($any($event.target).value)"
|
|
199
|
+
(keydown)="handleKeydown($event)"
|
|
200
|
+
(paste)="handlePaste($event)"
|
|
201
|
+
(select)="syncActiveIndex()"
|
|
202
|
+
(click)="syncActiveIndex()"
|
|
203
|
+
/>
|
|
204
|
+
|
|
205
|
+
<ng-content />
|
|
206
|
+
`,
|
|
207
|
+
}]
|
|
208
|
+
}], propDecorators: { nativeInput: [{
|
|
209
|
+
type: ViewChild,
|
|
210
|
+
args: ['nativeInput']
|
|
211
|
+
}], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], pattern: [{ type: i0.Input, args: [{ isSignal: true, alias: "pattern", required: false }] }], disabledInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalidInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], complete: [{ type: i0.Output, args: ["complete"] }] } });
|
|
212
|
+
class FrInputOtpGroup {
|
|
213
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputOtpGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
214
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrInputOtpGroup, isStandalone: true, selector: "[frInputOtpGroup], frame-input-otp-group", host: { classAttribute: "frame-input-otp__group" }, ngImport: i0 });
|
|
215
|
+
}
|
|
216
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputOtpGroup, decorators: [{
|
|
217
|
+
type: Directive,
|
|
218
|
+
args: [{
|
|
219
|
+
selector: '[frInputOtpGroup], frame-input-otp-group',
|
|
220
|
+
host: {
|
|
221
|
+
class: 'frame-input-otp__group',
|
|
222
|
+
},
|
|
223
|
+
}]
|
|
224
|
+
}] });
|
|
225
|
+
class FrInputOtpSlot {
|
|
226
|
+
root = inject(FR_INPUT_OTP_CONTROLLER);
|
|
227
|
+
index = input.required(...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
|
|
228
|
+
placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
229
|
+
char = computed(() => this.root.charAt(this.index()), ...(ngDevMode ? [{ debugName: "char" }] : /* istanbul ignore next */ []));
|
|
230
|
+
filled = computed(() => !!this.char(), ...(ngDevMode ? [{ debugName: "filled" }] : /* istanbul ignore next */ []));
|
|
231
|
+
active = computed(() => this.root.activeIndex() === this.index(), ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
|
|
232
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputOtpSlot, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
233
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.16", type: FrInputOtpSlot, isStandalone: true, selector: "[frInputOtpSlot], frame-input-otp-slot", inputs: { index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: true, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "presentation" }, listeners: { "click": "root.focus(index())" }, properties: { "attr.data-active": "active() ? \"\" : null", "attr.data-filled": "filled() ? \"\" : null", "attr.data-invalid": "root.invalid() ? \"\" : null", "attr.data-disabled": "root.disabled() ? \"\" : null" }, classAttribute: "frame-input-otp__slot" }, ngImport: i0, template: `
|
|
234
|
+
<span class="frame-input-otp__slot-char" [ngClass]="{ 'frame-input-otp__slot-char--empty': !filled() }">
|
|
235
|
+
{{ char() || placeholder() }}
|
|
236
|
+
</span>
|
|
237
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
238
|
+
}
|
|
239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputOtpSlot, decorators: [{
|
|
240
|
+
type: Component,
|
|
241
|
+
args: [{
|
|
242
|
+
selector: '[frInputOtpSlot], frame-input-otp-slot',
|
|
243
|
+
imports: [NgClass],
|
|
244
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
245
|
+
host: {
|
|
246
|
+
class: 'frame-input-otp__slot',
|
|
247
|
+
role: 'presentation',
|
|
248
|
+
'[attr.data-active]': 'active() ? "" : null',
|
|
249
|
+
'[attr.data-filled]': 'filled() ? "" : null',
|
|
250
|
+
'[attr.data-invalid]': 'root.invalid() ? "" : null',
|
|
251
|
+
'[attr.data-disabled]': 'root.disabled() ? "" : null',
|
|
252
|
+
'(click)': 'root.focus(index())',
|
|
253
|
+
},
|
|
254
|
+
template: `
|
|
255
|
+
<span class="frame-input-otp__slot-char" [ngClass]="{ 'frame-input-otp__slot-char--empty': !filled() }">
|
|
256
|
+
{{ char() || placeholder() }}
|
|
257
|
+
</span>
|
|
258
|
+
`,
|
|
259
|
+
}]
|
|
260
|
+
}], propDecorators: { index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: true }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }] } });
|
|
261
|
+
class FrInputOtpSeparator {
|
|
262
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputOtpSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
263
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrInputOtpSeparator, isStandalone: true, selector: "[frInputOtpSeparator], frame-input-otp-separator", host: { attributes: { "role": "separator", "aria-hidden": "true" }, classAttribute: "frame-input-otp__separator" }, ngImport: i0 });
|
|
264
|
+
}
|
|
265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputOtpSeparator, decorators: [{
|
|
266
|
+
type: Directive,
|
|
267
|
+
args: [{
|
|
268
|
+
selector: '[frInputOtpSeparator], frame-input-otp-separator',
|
|
269
|
+
host: {
|
|
270
|
+
class: 'frame-input-otp__separator',
|
|
271
|
+
role: 'separator',
|
|
272
|
+
'aria-hidden': 'true',
|
|
273
|
+
},
|
|
274
|
+
}]
|
|
275
|
+
}] });
|
|
276
|
+
function toMatcher(pattern) {
|
|
277
|
+
if (!pattern) {
|
|
278
|
+
return () => true;
|
|
279
|
+
}
|
|
280
|
+
if (pattern instanceof RegExp) {
|
|
281
|
+
return (character) => {
|
|
282
|
+
pattern.lastIndex = 0;
|
|
283
|
+
return pattern.test(character);
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
const regex = new RegExp(pattern);
|
|
287
|
+
return (character) => regex.test(character);
|
|
288
|
+
}
|
|
289
|
+
function clamp(value, min, max) {
|
|
290
|
+
return Math.max(min, Math.min(max, value));
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
class FrInputOtpModule {
|
|
294
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputOtpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
295
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.16", ngImport: i0, type: FrInputOtpModule, imports: [FrInputOtp,
|
|
296
|
+
FrInputOtpGroup,
|
|
297
|
+
FrInputOtpSeparator,
|
|
298
|
+
FrInputOtpSlot], exports: [FrInputOtp,
|
|
299
|
+
FrInputOtpGroup,
|
|
300
|
+
FrInputOtpSeparator,
|
|
301
|
+
FrInputOtpSlot] });
|
|
302
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputOtpModule });
|
|
303
|
+
}
|
|
304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputOtpModule, decorators: [{
|
|
305
|
+
type: NgModule,
|
|
306
|
+
args: [{
|
|
307
|
+
imports: [
|
|
308
|
+
FrInputOtp,
|
|
309
|
+
FrInputOtpGroup,
|
|
310
|
+
FrInputOtpSeparator,
|
|
311
|
+
FrInputOtpSlot,
|
|
312
|
+
],
|
|
313
|
+
exports: [
|
|
314
|
+
FrInputOtp,
|
|
315
|
+
FrInputOtpGroup,
|
|
316
|
+
FrInputOtpSeparator,
|
|
317
|
+
FrInputOtpSlot,
|
|
318
|
+
],
|
|
319
|
+
}]
|
|
320
|
+
}] });
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Generated bundle index. Do not edit.
|
|
324
|
+
*/
|
|
325
|
+
|
|
326
|
+
export { FR_INPUT_OTP_PATTERN_DIGITS, FR_INPUT_OTP_PATTERN_DIGITS_AND_CHARS, FrInputOtp, FrInputOtpGroup, FrInputOtpModule, FrInputOtpSeparator, FrInputOtpSlot };
|
|
327
|
+
//# sourceMappingURL=frame-ui-ng-components-input-otp.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame-ui-ng-components-input-otp.mjs","sources":["../../../projects/components/input-otp/src/input-otp.ts","../../../projects/components/input-otp/input-otp.module.ts","../../../projects/components/input-otp/frame-ui-ng-components-input-otp.ts"],"sourcesContent":["import { NgClass } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ElementRef,\n InjectionToken,\n ViewChild,\n booleanAttribute,\n computed,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n} from '@angular/core';\n\nimport { FrControlValueAccessor, provideDsValueAccessor } from '@frame-ui-ng/components/forms';\nimport { FrInput } from '@frame-ui-ng/components/input';\n\nexport const FR_INPUT_OTP_PATTERN_DIGITS = /^[0-9]$/;\nexport const FR_INPUT_OTP_PATTERN_DIGITS_AND_CHARS = /^[a-zA-Z0-9]$/;\n\nexport type FrInputOtpPattern = RegExp | string | null;\n\ntype FrInputOtpController = {\n activeIndex: () => number;\n charAt: (index: number) => string;\n disabled: () => boolean;\n focus: (index?: number) => void;\n invalid: () => boolean;\n};\n\nconst FR_INPUT_OTP_CONTROLLER = new InjectionToken<FrInputOtpController>('FrInputOtpController');\n\n@Component({\n selector: 'frame-input-otp',\n exportAs: 'frInputOtp',\n imports: [FrInput],\n providers: [\n provideDsValueAccessor(FrInputOtp),\n {\n provide: FR_INPUT_OTP_CONTROLLER,\n useExisting: FrInputOtp,\n },\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'frame-input-otp',\n role: 'group',\n '[attr.data-disabled]': 'disabled() ? \"\" : null',\n '[attr.data-invalid]': 'invalid() ? \"\" : null',\n '[attr.data-complete]': 'isComplete() ? \"\" : null',\n '(click)': 'focus(activeIndex())',\n },\n template: `\n <input\n #nativeInput\n frInput\n class=\"frame-input-otp__native\"\n type=\"text\"\n inputmode=\"numeric\"\n autocomplete=\"one-time-code\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [disabled]=\"disabled()\"\n [maxLength]=\"maxLength()\"\n [value]=\"value()\"\n (blur)=\"markTouched()\"\n (focus)=\"syncActiveIndex()\"\n (input)=\"handleNativeInput($any($event.target).value)\"\n (keydown)=\"handleKeydown($event)\"\n (paste)=\"handlePaste($event)\"\n (select)=\"syncActiveIndex()\"\n (click)=\"syncActiveIndex()\"\n />\n\n <ng-content />\n `,\n})\nexport class FrInputOtp extends FrControlValueAccessor<string> {\n @ViewChild('nativeInput') private readonly nativeInput?: ElementRef<HTMLInputElement>;\n\n readonly maxLength = input(6, { transform: numberAttribute });\n readonly pattern = input<FrInputOtpPattern>(FR_INPUT_OTP_PATTERN_DIGITS);\n readonly disabledInput = input(false, { alias: 'disabled', transform: booleanAttribute });\n readonly invalidInput = input(false, { alias: 'invalid', transform: booleanAttribute });\n readonly ariaLabel = input('One-time password');\n\n readonly valueChange = output<string>();\n readonly complete = output<string>();\n\n protected readonly value = signal('');\n readonly activeIndex = signal(0);\n readonly disabled = computed(() => this.disabledInput() || this.formDisabled());\n readonly invalid = computed(() => this.invalidInput() || this.formInvalid());\n readonly isComplete = computed(() => this.value().length >= this.maxLength());\n\n focus(index = this.activeIndex()): void {\n if (this.disabled()) {\n return;\n }\n\n const inputElement = this.nativeInput?.nativeElement;\n\n if (!inputElement) {\n return;\n }\n\n const nextIndex = clamp(index, 0, this.maxLength());\n inputElement.focus();\n inputElement.setSelectionRange(nextIndex, nextIndex);\n this.activeIndex.set(nextIndex);\n }\n\n charAt(index: number): string {\n return this.value().at(index) ?? '';\n }\n\n handleNativeInput(rawValue: string): void {\n this.commitValue(this.sanitize(rawValue));\n this.syncActiveIndex();\n }\n\n handleKeydown(event: KeyboardEvent): void {\n if (this.disabled()) {\n return;\n }\n\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n this.focus(this.activeIndex() - 1);\n return;\n }\n\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n this.focus(this.activeIndex() + 1);\n return;\n }\n\n if (event.key === 'Backspace') {\n event.preventDefault();\n this.removeAt(this.activeIndex());\n return;\n }\n\n if (event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey) {\n event.preventDefault();\n this.insertAt(event.key, this.activeIndex());\n }\n }\n\n handlePaste(event: ClipboardEvent): void {\n const text = event.clipboardData?.getData('text') ?? '';\n\n if (!text) {\n return;\n }\n\n event.preventDefault();\n const next = this.replaceFrom(this.activeIndex(), this.sanitize(text));\n this.commitValue(next);\n this.focus(Math.min(next.length, this.maxLength()));\n }\n\n syncActiveIndex(): void {\n const inputElement = this.nativeInput?.nativeElement;\n const index = inputElement?.selectionStart ?? this.value().length;\n this.activeIndex.set(clamp(index, 0, this.maxLength()));\n }\n\n markTouched(): void {\n this.markAsTouched();\n }\n\n protected setViewValue(value: string | null): void {\n this.value.set(this.sanitize(value ?? ''));\n this.activeIndex.set(Math.min(this.value().length, this.maxLength()));\n }\n\n private insertAt(character: string, index: number): void {\n const sanitized = this.sanitize(character);\n\n if (!sanitized) {\n return;\n }\n\n const next = this.replaceFrom(index, sanitized.at(0) ?? '');\n this.commitValue(next);\n this.focus(Math.min(index + 1, this.maxLength()));\n }\n\n private removeAt(index: number): void {\n const value = this.value();\n const targetIndex = value.at(index) ? index : index - 1;\n\n if (targetIndex < 0) {\n return;\n }\n\n const next = `${value.slice(0, targetIndex)}${value.slice(targetIndex + 1)}`;\n this.commitValue(next);\n this.focus(targetIndex);\n }\n\n private replaceFrom(index: number, text: string): string {\n const value = this.value();\n const start = clamp(index, 0, this.maxLength());\n const next = `${value.slice(0, start)}${text}${value.slice(start + text.length)}`;\n\n return this.sanitize(next);\n }\n\n private commitValue(value: string): void {\n const next = this.sanitize(value);\n this.value.set(next);\n this.notifyValueChange(next);\n this.valueChange.emit(next);\n\n if (next.length >= this.maxLength()) {\n this.complete.emit(next);\n }\n }\n\n private sanitize(value: string): string {\n const matcher = toMatcher(this.pattern());\n const characters = Array.from(value).filter((character) => matcher(character));\n\n return characters.slice(0, this.maxLength()).join('');\n }\n}\n\n@Directive({\n selector: '[frInputOtpGroup], frame-input-otp-group',\n host: {\n class: 'frame-input-otp__group',\n },\n})\nexport class FrInputOtpGroup {}\n\n@Component({\n selector: '[frInputOtpSlot], frame-input-otp-slot',\n imports: [NgClass],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'frame-input-otp__slot',\n role: 'presentation',\n '[attr.data-active]': 'active() ? \"\" : null',\n '[attr.data-filled]': 'filled() ? \"\" : null',\n '[attr.data-invalid]': 'root.invalid() ? \"\" : null',\n '[attr.data-disabled]': 'root.disabled() ? \"\" : null',\n '(click)': 'root.focus(index())',\n },\n template: `\n <span class=\"frame-input-otp__slot-char\" [ngClass]=\"{ 'frame-input-otp__slot-char--empty': !filled() }\">\n {{ char() || placeholder() }}\n </span>\n `,\n})\nexport class FrInputOtpSlot {\n protected readonly root = inject(FR_INPUT_OTP_CONTROLLER);\n\n readonly index = input.required<number>();\n readonly placeholder = input('');\n\n readonly char = computed(() => this.root.charAt(this.index()));\n readonly filled = computed(() => !!this.char());\n readonly active = computed(() => this.root.activeIndex() === this.index());\n}\n\n@Directive({\n selector: '[frInputOtpSeparator], frame-input-otp-separator',\n host: {\n class: 'frame-input-otp__separator',\n role: 'separator',\n 'aria-hidden': 'true',\n },\n})\nexport class FrInputOtpSeparator {}\n\nfunction toMatcher(pattern: FrInputOtpPattern): (character: string) => boolean {\n if (!pattern) {\n return () => true;\n }\n\n if (pattern instanceof RegExp) {\n return (character) => {\n pattern.lastIndex = 0;\n return pattern.test(character);\n };\n }\n\n const regex = new RegExp(pattern);\n return (character) => regex.test(character);\n}\n\nfunction clamp(value: number, min: number, max: number): number {\n return Math.max(min, Math.min(max, value));\n}\n\r\n","import { NgModule } from '@angular/core';\nimport {\n FrInputOtp,\n FrInputOtpGroup,\n FrInputOtpSeparator,\n FrInputOtpSlot,\n} from './src/input-otp';\n\n@NgModule({\n imports: [\n FrInputOtp,\n FrInputOtpGroup,\n FrInputOtpSeparator,\n FrInputOtpSlot,\n ],\n exports: [\n FrInputOtp,\n FrInputOtpGroup,\n FrInputOtpSeparator,\n FrInputOtpSlot,\n ],\n})\nexport class FrInputOtpModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAoBO,MAAM,2BAA2B,GAAG;AACpC,MAAM,qCAAqC,GAAG;AAYrD,MAAM,uBAAuB,GAAG,IAAI,cAAc,CAAuB,sBAAsB,CAAC;AA+C1F,MAAO,UAAW,SAAQ,sBAA8B,CAAA;AACjB,IAAA,WAAW;IAE7C,SAAS,GAAG,KAAK,CAAC,CAAC,iFAAI,SAAS,EAAE,eAAe,EAAA,CAAG;AACpD,IAAA,OAAO,GAAG,KAAK,CAAoB,2BAA2B,8EAAC;AAC/D,IAAA,aAAa,GAAG,KAAK,CAAC,KAAK,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,eAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,gBAAgB,GAAG;AAChF,IAAA,YAAY,GAAG,KAAK,CAAC,KAAK,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,cAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB,GAAG;AAC9E,IAAA,SAAS,GAAG,KAAK,CAAC,mBAAmB,gFAAC;IAEtC,WAAW,GAAG,MA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AAA,gBAAgB,YAZzB,UAAU;YACV,eAAe;YACf,mBAAmB;AACnB,YAAA,cAAc,aAGd,UAAU;YACV,eAAe;YACf,mBAAmB;YACnB,cAAc,CAAA,EAAA,CAAA;yGAGL,gBAAgB,EAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAd5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,UAAU;wBACV,eAAe;wBACf,mBAAmB;wBACnB,cAAc;AACf,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,UAAU;wBACV,eAAe;wBACf,mBAAmB;wBACnB,cAAc;AACf,qBAAA;AACF,iBAAA;;;ACrBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, input, NgModule } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
class FrInput {
|
|
5
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrInput, isStandalone: true, selector: "input[frInput]", host: { classAttribute: "frame-input" }, ngImport: i0 });
|
|
7
|
+
}
|
|
8
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInput, decorators: [{
|
|
9
|
+
type: Directive,
|
|
10
|
+
args: [{
|
|
11
|
+
selector: 'input[frInput]',
|
|
12
|
+
host: {
|
|
13
|
+
class: 'frame-input',
|
|
14
|
+
},
|
|
15
|
+
}]
|
|
16
|
+
}] });
|
|
17
|
+
class FrInputField {
|
|
18
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputField, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
19
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrInputField, isStandalone: true, selector: "[frInputField], frame-input-field", host: { classAttribute: "frame-input-field" }, ngImport: i0 });
|
|
20
|
+
}
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputField, decorators: [{
|
|
22
|
+
type: Directive,
|
|
23
|
+
args: [{
|
|
24
|
+
selector: '[frInputField], frame-input-field',
|
|
25
|
+
host: {
|
|
26
|
+
class: 'frame-input-field',
|
|
27
|
+
},
|
|
28
|
+
}]
|
|
29
|
+
}] });
|
|
30
|
+
class FrInputHeader {
|
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
32
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrInputHeader, isStandalone: true, selector: "[frInputHeader], frame-input-header", host: { classAttribute: "frame-input-header" }, ngImport: i0 });
|
|
33
|
+
}
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputHeader, decorators: [{
|
|
35
|
+
type: Directive,
|
|
36
|
+
args: [{
|
|
37
|
+
selector: '[frInputHeader], frame-input-header',
|
|
38
|
+
host: {
|
|
39
|
+
class: 'frame-input-header',
|
|
40
|
+
},
|
|
41
|
+
}]
|
|
42
|
+
}] });
|
|
43
|
+
class FrInputControl {
|
|
44
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputControl, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
45
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrInputControl, isStandalone: true, selector: "[frInputControl], frame-input-control", host: { classAttribute: "frame-input-control" }, ngImport: i0 });
|
|
46
|
+
}
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputControl, decorators: [{
|
|
48
|
+
type: Directive,
|
|
49
|
+
args: [{
|
|
50
|
+
selector: '[frInputControl], frame-input-control',
|
|
51
|
+
host: {
|
|
52
|
+
class: 'frame-input-control',
|
|
53
|
+
},
|
|
54
|
+
}]
|
|
55
|
+
}] });
|
|
56
|
+
class FrInputFieldGroup {
|
|
57
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputFieldGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
58
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrInputFieldGroup, isStandalone: true, selector: "[frInputFieldGroup], frame-input-field-group", host: { classAttribute: "frame-input-field-group" }, ngImport: i0 });
|
|
59
|
+
}
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputFieldGroup, decorators: [{
|
|
61
|
+
type: Directive,
|
|
62
|
+
args: [{
|
|
63
|
+
selector: '[frInputFieldGroup], frame-input-field-group',
|
|
64
|
+
host: {
|
|
65
|
+
class: 'frame-input-field-group',
|
|
66
|
+
},
|
|
67
|
+
}]
|
|
68
|
+
}] });
|
|
69
|
+
class FrInputLabel {
|
|
70
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
71
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrInputLabel, isStandalone: true, selector: "[frInputLabel], frame-input-label", host: { classAttribute: "frame-input-label" }, ngImport: i0 });
|
|
72
|
+
}
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputLabel, decorators: [{
|
|
74
|
+
type: Directive,
|
|
75
|
+
args: [{
|
|
76
|
+
selector: '[frInputLabel], frame-input-label',
|
|
77
|
+
host: {
|
|
78
|
+
class: 'frame-input-label',
|
|
79
|
+
},
|
|
80
|
+
}]
|
|
81
|
+
}] });
|
|
82
|
+
class FrInputDescription {
|
|
83
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
84
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrInputDescription, isStandalone: true, selector: "[frInputDescription], frame-input-description", host: { classAttribute: "frame-input-description" }, ngImport: i0 });
|
|
85
|
+
}
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputDescription, decorators: [{
|
|
87
|
+
type: Directive,
|
|
88
|
+
args: [{
|
|
89
|
+
selector: '[frInputDescription], frame-input-description',
|
|
90
|
+
host: {
|
|
91
|
+
class: 'frame-input-description',
|
|
92
|
+
},
|
|
93
|
+
}]
|
|
94
|
+
}] });
|
|
95
|
+
class FrInputError {
|
|
96
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputError, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
97
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrInputError, isStandalone: true, selector: "[frInputError], frame-input-error", host: { attributes: { "aria-live": "polite" }, classAttribute: "frame-input-error" }, ngImport: i0 });
|
|
98
|
+
}
|
|
99
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputError, decorators: [{
|
|
100
|
+
type: Directive,
|
|
101
|
+
args: [{
|
|
102
|
+
selector: '[frInputError], frame-input-error',
|
|
103
|
+
host: {
|
|
104
|
+
class: 'frame-input-error',
|
|
105
|
+
'aria-live': 'polite',
|
|
106
|
+
},
|
|
107
|
+
}]
|
|
108
|
+
}] });
|
|
109
|
+
class FrInputBadge {
|
|
110
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputBadge, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
111
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrInputBadge, isStandalone: true, selector: "[frInputBadge], frame-input-badge", host: { classAttribute: "frame-input-badge" }, ngImport: i0 });
|
|
112
|
+
}
|
|
113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputBadge, decorators: [{
|
|
114
|
+
type: Directive,
|
|
115
|
+
args: [{
|
|
116
|
+
selector: '[frInputBadge], frame-input-badge',
|
|
117
|
+
host: {
|
|
118
|
+
class: 'frame-input-badge',
|
|
119
|
+
},
|
|
120
|
+
}]
|
|
121
|
+
}] });
|
|
122
|
+
|
|
123
|
+
const FR_INPUT_GROUP_ADDON_ALIGNS = ['inline-start', 'inline-end'];
|
|
124
|
+
class FrInputGroup {
|
|
125
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
126
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrInputGroup, isStandalone: true, selector: "[frInputGroup], frame-input-group", host: { classAttribute: "frame-input-group" }, ngImport: i0 });
|
|
127
|
+
}
|
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputGroup, decorators: [{
|
|
129
|
+
type: Directive,
|
|
130
|
+
args: [{
|
|
131
|
+
selector: '[frInputGroup], frame-input-group',
|
|
132
|
+
host: {
|
|
133
|
+
class: 'frame-input-group',
|
|
134
|
+
},
|
|
135
|
+
}]
|
|
136
|
+
}] });
|
|
137
|
+
class FrInputGroupAddon {
|
|
138
|
+
align = input('inline-start', ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
139
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputGroupAddon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
140
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.16", type: FrInputGroupAddon, isStandalone: true, selector: "[frInputGroupAddon], frame-input-group-addon", inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-align": "align()" }, classAttribute: "frame-input-group__addon" }, ngImport: i0 });
|
|
141
|
+
}
|
|
142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputGroupAddon, decorators: [{
|
|
143
|
+
type: Directive,
|
|
144
|
+
args: [{
|
|
145
|
+
selector: '[frInputGroupAddon], frame-input-group-addon',
|
|
146
|
+
host: {
|
|
147
|
+
class: 'frame-input-group__addon',
|
|
148
|
+
'[attr.data-align]': 'align()',
|
|
149
|
+
},
|
|
150
|
+
}]
|
|
151
|
+
}], propDecorators: { align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }] } });
|
|
152
|
+
class FrInputGroupText {
|
|
153
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputGroupText, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
154
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrInputGroupText, isStandalone: true, selector: "[frInputGroupText], frame-input-group-text", host: { classAttribute: "frame-input-group__text" }, ngImport: i0 });
|
|
155
|
+
}
|
|
156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputGroupText, decorators: [{
|
|
157
|
+
type: Directive,
|
|
158
|
+
args: [{
|
|
159
|
+
selector: '[frInputGroupText], frame-input-group-text',
|
|
160
|
+
host: {
|
|
161
|
+
class: 'frame-input-group__text',
|
|
162
|
+
},
|
|
163
|
+
}]
|
|
164
|
+
}] });
|
|
165
|
+
class FrInputGroupInput {
|
|
166
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputGroupInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
167
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrInputGroupInput, isStandalone: true, selector: "input[frInputGroupInput]", host: { classAttribute: "frame-input-group__input" }, hostDirectives: [{ directive: FrInput }], ngImport: i0 });
|
|
168
|
+
}
|
|
169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputGroupInput, decorators: [{
|
|
170
|
+
type: Directive,
|
|
171
|
+
args: [{
|
|
172
|
+
selector: 'input[frInputGroupInput]',
|
|
173
|
+
hostDirectives: [FrInput],
|
|
174
|
+
host: {
|
|
175
|
+
class: 'frame-input-group__input',
|
|
176
|
+
},
|
|
177
|
+
}]
|
|
178
|
+
}] });
|
|
179
|
+
|
|
180
|
+
class FrInputModule {
|
|
181
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
182
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.16", ngImport: i0, type: FrInputModule, imports: [FrInput,
|
|
183
|
+
FrInputBadge,
|
|
184
|
+
FrInputControl,
|
|
185
|
+
FrInputDescription,
|
|
186
|
+
FrInputError,
|
|
187
|
+
FrInputField,
|
|
188
|
+
FrInputFieldGroup,
|
|
189
|
+
FrInputGroup,
|
|
190
|
+
FrInputGroupAddon,
|
|
191
|
+
FrInputGroupInput,
|
|
192
|
+
FrInputGroupText,
|
|
193
|
+
FrInputHeader,
|
|
194
|
+
FrInputLabel], exports: [FrInput,
|
|
195
|
+
FrInputBadge,
|
|
196
|
+
FrInputControl,
|
|
197
|
+
FrInputDescription,
|
|
198
|
+
FrInputError,
|
|
199
|
+
FrInputField,
|
|
200
|
+
FrInputFieldGroup,
|
|
201
|
+
FrInputGroup,
|
|
202
|
+
FrInputGroupAddon,
|
|
203
|
+
FrInputGroupInput,
|
|
204
|
+
FrInputGroupText,
|
|
205
|
+
FrInputHeader,
|
|
206
|
+
FrInputLabel] });
|
|
207
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputModule });
|
|
208
|
+
}
|
|
209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrInputModule, decorators: [{
|
|
210
|
+
type: NgModule,
|
|
211
|
+
args: [{
|
|
212
|
+
imports: [
|
|
213
|
+
FrInput,
|
|
214
|
+
FrInputBadge,
|
|
215
|
+
FrInputControl,
|
|
216
|
+
FrInputDescription,
|
|
217
|
+
FrInputError,
|
|
218
|
+
FrInputField,
|
|
219
|
+
FrInputFieldGroup,
|
|
220
|
+
FrInputGroup,
|
|
221
|
+
FrInputGroupAddon,
|
|
222
|
+
FrInputGroupInput,
|
|
223
|
+
FrInputGroupText,
|
|
224
|
+
FrInputHeader,
|
|
225
|
+
FrInputLabel,
|
|
226
|
+
],
|
|
227
|
+
exports: [
|
|
228
|
+
FrInput,
|
|
229
|
+
FrInputBadge,
|
|
230
|
+
FrInputControl,
|
|
231
|
+
FrInputDescription,
|
|
232
|
+
FrInputError,
|
|
233
|
+
FrInputField,
|
|
234
|
+
FrInputFieldGroup,
|
|
235
|
+
FrInputGroup,
|
|
236
|
+
FrInputGroupAddon,
|
|
237
|
+
FrInputGroupInput,
|
|
238
|
+
FrInputGroupText,
|
|
239
|
+
FrInputHeader,
|
|
240
|
+
FrInputLabel,
|
|
241
|
+
],
|
|
242
|
+
}]
|
|
243
|
+
}] });
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Generated bundle index. Do not edit.
|
|
247
|
+
*/
|
|
248
|
+
|
|
249
|
+
export { FR_INPUT_GROUP_ADDON_ALIGNS, FrInput, FrInputBadge, FrInputControl, FrInputDescription, FrInputError, FrInputField, FrInputFieldGroup, FrInputGroup, FrInputGroupAddon, FrInputGroupInput, FrInputGroupText, FrInputHeader, FrInputLabel, FrInputModule };
|
|
250
|
+
//# sourceMappingURL=frame-ui-ng-components-input.mjs.map
|