@raintonic/formaui 0.2.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/CHANGELOG.md +7 -0
- package/README.md +145 -0
- package/fesm2022/raintonic-formaui-cdk-drag-drop.mjs +806 -0
- package/fesm2022/raintonic-formaui-cdk-drag-drop.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-cdk-form-field.mjs +86 -0
- package/fesm2022/raintonic-formaui-cdk-form-field.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-cdk-overlay.mjs +1757 -0
- package/fesm2022/raintonic-formaui-cdk-overlay.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-cdk-virtual-scroll.mjs +287 -0
- package/fesm2022/raintonic-formaui-cdk-virtual-scroll.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-accordion.mjs +217 -0
- package/fesm2022/raintonic-formaui-components-accordion.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-alert.mjs +161 -0
- package/fesm2022/raintonic-formaui-components-alert.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-autocomplete.mjs +726 -0
- package/fesm2022/raintonic-formaui-components-autocomplete.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-avatar.mjs +92 -0
- package/fesm2022/raintonic-formaui-components-avatar.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-badge.mjs +107 -0
- package/fesm2022/raintonic-formaui-components-badge.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-big-menu.mjs +68 -0
- package/fesm2022/raintonic-formaui-components-big-menu.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-breadcrumb.mjs +55 -0
- package/fesm2022/raintonic-formaui-components-breadcrumb.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-button-group.mjs +103 -0
- package/fesm2022/raintonic-formaui-components-button-group.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-button.mjs +241 -0
- package/fesm2022/raintonic-formaui-components-button.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-card.mjs +270 -0
- package/fesm2022/raintonic-formaui-components-card.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-checkbox.mjs +295 -0
- package/fesm2022/raintonic-formaui-components-checkbox.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-data-table.mjs +631 -0
- package/fesm2022/raintonic-formaui-components-data-table.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-date-picker.mjs +1331 -0
- package/fesm2022/raintonic-formaui-components-date-picker.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-divider.mjs +41 -0
- package/fesm2022/raintonic-formaui-components-divider.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-drawer.mjs +190 -0
- package/fesm2022/raintonic-formaui-components-drawer.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-dynamic-form.mjs +266 -0
- package/fesm2022/raintonic-formaui-components-dynamic-form.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-empty-state.mjs +33 -0
- package/fesm2022/raintonic-formaui-components-empty-state.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-file-upload.mjs +246 -0
- package/fesm2022/raintonic-formaui-components-file-upload.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-form-field.mjs +482 -0
- package/fesm2022/raintonic-formaui-components-form-field.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-icon.mjs +117 -0
- package/fesm2022/raintonic-formaui-components-icon.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-input.mjs +327 -0
- package/fesm2022/raintonic-formaui-components-input.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-list.mjs +149 -0
- package/fesm2022/raintonic-formaui-components-list.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-menu.mjs +896 -0
- package/fesm2022/raintonic-formaui-components-menu.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-number-input.mjs +345 -0
- package/fesm2022/raintonic-formaui-components-number-input.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-paginator.mjs +139 -0
- package/fesm2022/raintonic-formaui-components-paginator.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-password-input.mjs +306 -0
- package/fesm2022/raintonic-formaui-components-password-input.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-popover.mjs +451 -0
- package/fesm2022/raintonic-formaui-components-popover.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-progressbar.mjs +148 -0
- package/fesm2022/raintonic-formaui-components-progressbar.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-radio.mjs +260 -0
- package/fesm2022/raintonic-formaui-components-radio.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-select.mjs +1011 -0
- package/fesm2022/raintonic-formaui-components-select.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-side-panel.mjs +150 -0
- package/fesm2022/raintonic-formaui-components-side-panel.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-sidebar.mjs +257 -0
- package/fesm2022/raintonic-formaui-components-sidebar.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-skeleton.mjs +50 -0
- package/fesm2022/raintonic-formaui-components-skeleton.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-slider.mjs +347 -0
- package/fesm2022/raintonic-formaui-components-slider.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-spinner.mjs +63 -0
- package/fesm2022/raintonic-formaui-components-spinner.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-stepper.mjs +317 -0
- package/fesm2022/raintonic-formaui-components-stepper.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tab.mjs +197 -0
- package/fesm2022/raintonic-formaui-components-tab.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tag.mjs +78 -0
- package/fesm2022/raintonic-formaui-components-tag.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-time-picker.mjs +644 -0
- package/fesm2022/raintonic-formaui-components-time-picker.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-toggle.mjs +171 -0
- package/fesm2022/raintonic-formaui-components-toggle.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-toolbar.mjs +140 -0
- package/fesm2022/raintonic-formaui-components-toolbar.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tooltip.mjs +555 -0
- package/fesm2022/raintonic-formaui-components-tooltip.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tree-select.mjs +314 -0
- package/fesm2022/raintonic-formaui-components-tree-select.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tree-table.mjs +103 -0
- package/fesm2022/raintonic-formaui-components-tree-table.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tree.mjs +430 -0
- package/fesm2022/raintonic-formaui-components-tree.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-core.mjs +62 -0
- package/fesm2022/raintonic-formaui-core.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-services-dialog.mjs +798 -0
- package/fesm2022/raintonic-formaui-services-dialog.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-services-notification.mjs +391 -0
- package/fesm2022/raintonic-formaui-services-notification.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-services-theme.mjs +248 -0
- package/fesm2022/raintonic-formaui-services-theme.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-test-utils.mjs +66 -0
- package/fesm2022/raintonic-formaui-test-utils.mjs.map +1 -0
- package/fesm2022/raintonic-formaui.mjs +15 -0
- package/fesm2022/raintonic-formaui.mjs.map +1 -0
- package/llms-full.txt +1627 -0
- package/llms.txt +60 -0
- package/package.json +251 -0
- package/styles/_fonts-entry.scss +3 -0
- package/styles/fonts/dm-mono-400-latin.woff2 +0 -0
- package/styles/fonts/inter-tight-latin-italic.woff2 +0 -0
- package/styles/fonts/inter-tight-latin.woff2 +0 -0
- package/styles/index.scss +127 -0
- package/styles/partials/_constants.scss +29 -0
- package/styles/partials/_fonts.scss +36 -0
- package/styles/partials/_grid.scss +171 -0
- package/styles/partials/_mixins.scss +145 -0
- package/styles/partials/_motion.scss +252 -0
- package/styles/partials/_theme.scss +275 -0
- package/styles/partials/_typography.scss +112 -0
- package/styles/partials/_utilities.scss +480 -0
- package/styles/partials/themes/_dark.scss +254 -0
- package/styles/partials/themes/_light.scss +254 -0
- package/types/raintonic-formaui-cdk-drag-drop.d.ts +196 -0
- package/types/raintonic-formaui-cdk-drag-drop.d.ts.map +1 -0
- package/types/raintonic-formaui-cdk-form-field.d.ts +62 -0
- package/types/raintonic-formaui-cdk-form-field.d.ts.map +1 -0
- package/types/raintonic-formaui-cdk-overlay.d.ts +843 -0
- package/types/raintonic-formaui-cdk-overlay.d.ts.map +1 -0
- package/types/raintonic-formaui-cdk-virtual-scroll.d.ts +112 -0
- package/types/raintonic-formaui-cdk-virtual-scroll.d.ts.map +1 -0
- package/types/raintonic-formaui-components-accordion.d.ts +124 -0
- package/types/raintonic-formaui-components-accordion.d.ts.map +1 -0
- package/types/raintonic-formaui-components-alert.d.ts +143 -0
- package/types/raintonic-formaui-components-alert.d.ts.map +1 -0
- package/types/raintonic-formaui-components-autocomplete.d.ts +193 -0
- package/types/raintonic-formaui-components-autocomplete.d.ts.map +1 -0
- package/types/raintonic-formaui-components-avatar.d.ts +52 -0
- package/types/raintonic-formaui-components-avatar.d.ts.map +1 -0
- package/types/raintonic-formaui-components-badge.d.ts +47 -0
- package/types/raintonic-formaui-components-badge.d.ts.map +1 -0
- package/types/raintonic-formaui-components-big-menu.d.ts +62 -0
- package/types/raintonic-formaui-components-big-menu.d.ts.map +1 -0
- package/types/raintonic-formaui-components-breadcrumb.d.ts +26 -0
- package/types/raintonic-formaui-components-breadcrumb.d.ts.map +1 -0
- package/types/raintonic-formaui-components-button-group.d.ts +61 -0
- package/types/raintonic-formaui-components-button-group.d.ts.map +1 -0
- package/types/raintonic-formaui-components-button.d.ts +116 -0
- package/types/raintonic-formaui-components-button.d.ts.map +1 -0
- package/types/raintonic-formaui-components-card.d.ts +191 -0
- package/types/raintonic-formaui-components-card.d.ts.map +1 -0
- package/types/raintonic-formaui-components-checkbox.d.ts +132 -0
- package/types/raintonic-formaui-components-checkbox.d.ts.map +1 -0
- package/types/raintonic-formaui-components-data-table.d.ts +368 -0
- package/types/raintonic-formaui-components-data-table.d.ts.map +1 -0
- package/types/raintonic-formaui-components-date-picker.d.ts +341 -0
- package/types/raintonic-formaui-components-date-picker.d.ts.map +1 -0
- package/types/raintonic-formaui-components-divider.d.ts +21 -0
- package/types/raintonic-formaui-components-divider.d.ts.map +1 -0
- package/types/raintonic-formaui-components-drawer.d.ts +48 -0
- package/types/raintonic-formaui-components-drawer.d.ts.map +1 -0
- package/types/raintonic-formaui-components-dynamic-form.d.ts +412 -0
- package/types/raintonic-formaui-components-dynamic-form.d.ts.map +1 -0
- package/types/raintonic-formaui-components-empty-state.d.ts +14 -0
- package/types/raintonic-formaui-components-empty-state.d.ts.map +1 -0
- package/types/raintonic-formaui-components-file-upload.d.ts +77 -0
- package/types/raintonic-formaui-components-file-upload.d.ts.map +1 -0
- package/types/raintonic-formaui-components-form-field.d.ts +271 -0
- package/types/raintonic-formaui-components-form-field.d.ts.map +1 -0
- package/types/raintonic-formaui-components-icon.d.ts +61 -0
- package/types/raintonic-formaui-components-icon.d.ts.map +1 -0
- package/types/raintonic-formaui-components-input.d.ts +149 -0
- package/types/raintonic-formaui-components-input.d.ts.map +1 -0
- package/types/raintonic-formaui-components-list.d.ts +48 -0
- package/types/raintonic-formaui-components-list.d.ts.map +1 -0
- package/types/raintonic-formaui-components-menu.d.ts +403 -0
- package/types/raintonic-formaui-components-menu.d.ts.map +1 -0
- package/types/raintonic-formaui-components-number-input.d.ts +127 -0
- package/types/raintonic-formaui-components-number-input.d.ts.map +1 -0
- package/types/raintonic-formaui-components-paginator.d.ts +37 -0
- package/types/raintonic-formaui-components-paginator.d.ts.map +1 -0
- package/types/raintonic-formaui-components-password-input.d.ts +111 -0
- package/types/raintonic-formaui-components-password-input.d.ts.map +1 -0
- package/types/raintonic-formaui-components-popover.d.ts +131 -0
- package/types/raintonic-formaui-components-popover.d.ts.map +1 -0
- package/types/raintonic-formaui-components-progressbar.d.ts +111 -0
- package/types/raintonic-formaui-components-progressbar.d.ts.map +1 -0
- package/types/raintonic-formaui-components-radio.d.ts +95 -0
- package/types/raintonic-formaui-components-radio.d.ts.map +1 -0
- package/types/raintonic-formaui-components-select.d.ts +307 -0
- package/types/raintonic-formaui-components-select.d.ts.map +1 -0
- package/types/raintonic-formaui-components-side-panel.d.ts +51 -0
- package/types/raintonic-formaui-components-side-panel.d.ts.map +1 -0
- package/types/raintonic-formaui-components-sidebar.d.ts +174 -0
- package/types/raintonic-formaui-components-sidebar.d.ts.map +1 -0
- package/types/raintonic-formaui-components-skeleton.d.ts +20 -0
- package/types/raintonic-formaui-components-skeleton.d.ts.map +1 -0
- package/types/raintonic-formaui-components-slider.d.ts +108 -0
- package/types/raintonic-formaui-components-slider.d.ts.map +1 -0
- package/types/raintonic-formaui-components-spinner.d.ts +42 -0
- package/types/raintonic-formaui-components-spinner.d.ts.map +1 -0
- package/types/raintonic-formaui-components-stepper.d.ts +126 -0
- package/types/raintonic-formaui-components-stepper.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tab.d.ts +96 -0
- package/types/raintonic-formaui-components-tab.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tag.d.ts +34 -0
- package/types/raintonic-formaui-components-tag.d.ts.map +1 -0
- package/types/raintonic-formaui-components-time-picker.d.ts +172 -0
- package/types/raintonic-formaui-components-time-picker.d.ts.map +1 -0
- package/types/raintonic-formaui-components-toggle.d.ts +70 -0
- package/types/raintonic-formaui-components-toggle.d.ts.map +1 -0
- package/types/raintonic-formaui-components-toolbar.d.ts +128 -0
- package/types/raintonic-formaui-components-toolbar.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tooltip.d.ts +268 -0
- package/types/raintonic-formaui-components-tooltip.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tree-select.d.ts +80 -0
- package/types/raintonic-formaui-components-tree-select.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tree-table.d.ts +90 -0
- package/types/raintonic-formaui-components-tree-table.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tree.d.ts +104 -0
- package/types/raintonic-formaui-components-tree.d.ts.map +1 -0
- package/types/raintonic-formaui-core.d.ts +115 -0
- package/types/raintonic-formaui-core.d.ts.map +1 -0
- package/types/raintonic-formaui-services-dialog.d.ts +451 -0
- package/types/raintonic-formaui-services-dialog.d.ts.map +1 -0
- package/types/raintonic-formaui-services-notification.d.ts +221 -0
- package/types/raintonic-formaui-services-notification.d.ts.map +1 -0
- package/types/raintonic-formaui-services-theme.d.ts +126 -0
- package/types/raintonic-formaui-services-theme.d.ts.map +1 -0
- package/types/raintonic-formaui-test-utils.d.ts +24 -0
- package/types/raintonic-formaui-test-utils.d.ts.map +1 -0
- package/types/raintonic-formaui.d.ts +4 -0
- package/types/raintonic-formaui.d.ts.map +1 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, inject, input, computed, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { DOCUMENT } from '@angular/common';
|
|
4
|
+
|
|
5
|
+
const FUI_ICON_DEFAULT_CONFIG = {
|
|
6
|
+
cdnBase: 'https://unpkg.com/@phosphor-icons/web@2.1.2/src',
|
|
7
|
+
};
|
|
8
|
+
const FUI_ICON_CONFIG = new InjectionToken('FUI_ICON_CONFIG', {
|
|
9
|
+
providedIn: 'root',
|
|
10
|
+
factory: () => FUI_ICON_DEFAULT_CONFIG,
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* # FuiIcon Component
|
|
15
|
+
*
|
|
16
|
+
* A wrapper component for Phosphor Icons with consistent sizing and styling.
|
|
17
|
+
* Provides easy access to the complete Phosphor Icons library with theme integration.
|
|
18
|
+
*
|
|
19
|
+
* ## Usage
|
|
20
|
+
*
|
|
21
|
+
* ### Basic Icon
|
|
22
|
+
* ```html
|
|
23
|
+
* <fui-icon name="heart"></fui-icon>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
class FuiIconComponent {
|
|
27
|
+
// Track which phosphor icon weights have been loaded
|
|
28
|
+
static _loadedWeights = new Set();
|
|
29
|
+
_config = inject(FUI_ICON_CONFIG);
|
|
30
|
+
_document = inject(DOCUMENT);
|
|
31
|
+
// Inputs using new signal-based API
|
|
32
|
+
name = input.required(...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
33
|
+
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
34
|
+
weight = input('regular', ...(ngDevMode ? [{ debugName: "weight" }] : /* istanbul ignore next */ []));
|
|
35
|
+
color = input(...(ngDevMode ? [undefined, { debugName: "color" }] : /* istanbul ignore next */ []));
|
|
36
|
+
ariaLabel = input(...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
37
|
+
spin = input(false, ...(ngDevMode ? [{ debugName: "spin" }] : /* istanbul ignore next */ []));
|
|
38
|
+
pulse = input(false, ...(ngDevMode ? [{ debugName: "pulse" }] : /* istanbul ignore next */ []));
|
|
39
|
+
// Computed properties
|
|
40
|
+
computedClasses = computed(() => {
|
|
41
|
+
const classes = ['fui-icon', `fui-icon--${this.size()}`, `fui-icon--${this.weight()}`, this.iconClass()];
|
|
42
|
+
if (this.spin()) {
|
|
43
|
+
classes.push('fui-icon--spin');
|
|
44
|
+
}
|
|
45
|
+
if (this.pulse()) {
|
|
46
|
+
classes.push('fui-icon--pulse');
|
|
47
|
+
}
|
|
48
|
+
return classes.join(' ');
|
|
49
|
+
}, ...(ngDevMode ? [{ debugName: "computedClasses" }] : /* istanbul ignore next */ []));
|
|
50
|
+
iconClass = computed(() => {
|
|
51
|
+
const weight = this.weight();
|
|
52
|
+
const weightSuffix = weight === 'regular' ? '' : `-${weight}`;
|
|
53
|
+
return `ph${weightSuffix} ph-${this.name()}`;
|
|
54
|
+
}, ...(ngDevMode ? [{ debugName: "iconClass" }] : /* istanbul ignore next */ []));
|
|
55
|
+
constructor() {
|
|
56
|
+
// Watch for weight changes and load the corresponding CSS
|
|
57
|
+
effect(() => {
|
|
58
|
+
const weight = this.weight();
|
|
59
|
+
this._loadPhosphorWeight(weight);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Dynamically loads the CSS for a specific Phosphor Icons weight from CDN
|
|
64
|
+
* @param weight The icon weight to load
|
|
65
|
+
*/
|
|
66
|
+
_loadPhosphorWeight(weight) {
|
|
67
|
+
if (this._config.disableAutoLoad) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
// Skip if already loaded
|
|
71
|
+
if (FuiIconComponent._loadedWeights.has(weight)) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
// Check if CSS link already exists in DOM
|
|
75
|
+
const linkId = `phosphor-icons-${weight}`;
|
|
76
|
+
if (this._document.getElementById(linkId)) {
|
|
77
|
+
FuiIconComponent._loadedWeights.add(weight);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
// Create and append the link element
|
|
81
|
+
const link = this._document.createElement('link');
|
|
82
|
+
link.id = linkId;
|
|
83
|
+
link.rel = 'stylesheet';
|
|
84
|
+
link.href = `${this._config.cdnBase}/${weight}/style.css`;
|
|
85
|
+
link.crossOrigin = 'anonymous';
|
|
86
|
+
const integrityHash = this._config.integrity?.[weight];
|
|
87
|
+
if (integrityHash) {
|
|
88
|
+
link.integrity = integrityHash;
|
|
89
|
+
}
|
|
90
|
+
link.onerror = () => {
|
|
91
|
+
console.warn(`[FormaUI] Failed to load Phosphor Icons weight "${weight}" from CDN.`);
|
|
92
|
+
FuiIconComponent._loadedWeights.delete(weight);
|
|
93
|
+
};
|
|
94
|
+
this._document.head.appendChild(link);
|
|
95
|
+
FuiIconComponent._loadedWeights.add(weight);
|
|
96
|
+
}
|
|
97
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: FuiIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
98
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.6", type: FuiIconComponent, isStandalone: true, selector: "fui-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, weight: { classPropertyName: "weight", publicName: "weight", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, spin: { classPropertyName: "spin", publicName: "spin", isSignal: true, isRequired: false, transformFunction: null }, pulse: { classPropertyName: "pulse", publicName: "pulse", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "img" }, properties: { "class": "computedClasses()", "style.color": "color() || null", "attr.aria-label": "ariaLabel() || null", "attr.aria-hidden": "ariaLabel() ? null : \"true\"" }, classAttribute: "fui-icon" }, ngImport: i0, template: '', isInline: true, styles: ["@keyframes fui-skeleton-pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes fui-spin{to{transform:rotate(360deg)}}@keyframes fui-shake{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-2px)}20%,40%,60%,80%{transform:translate(2px)}}.fui-motion-fade-in{transition:opacity var(--fui-duration-fast-02) var(--fui-ease-entrance) 0ms}.fui-motion-fade-out{transition:opacity var(--fui-duration-fast-01) var(--fui-ease-exit) 0ms}.fui-motion-slide-in-bottom{transition:transform var(--fui-duration-moderate-01) var(--fui-ease-entrance) 0ms;transform:translateY(0)}.fui-motion-slide-in-bottom.fui-motion-entering{transform:translateY(1rem)}.fui-motion-slide-in-top{transition:transform var(--fui-duration-moderate-01) var(--fui-ease-entrance) 0ms;transform:translateY(0)}.fui-motion-slide-in-top.fui-motion-entering{transform:translateY(-1rem)}.fui-motion-scale-in{transition:transform,opacity var(--fui-duration-moderate-01) var(--fui-ease-entrance) 0ms;transform:scale(1);opacity:1}.fui-motion-scale-in.fui-motion-entering{transform:scale(.95);opacity:0}.fui-no-motion{transition:none!important;animation:none!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@keyframes fui-pulse{0%{transform:scale(1);opacity:1}50%{transform:scale(1.05)}to{transform:scale(1);opacity:1}}@keyframes fui-slide-in{0%{transform:translate(120%)}to{transform:translate(0)}}.fui-slide-in{animation:fui-slide-in var(--fui-duration-moderate-01) var(--fui-ease-entrance)}::ng-deep .fui-icon{--fui-icon-color: currentColor;--fui-icon-default-size: 1em;contain:content;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;color:var(--fui-icon-color);transition:color var(--fui-duration-fast-02) var(--fui-ease-standard) 0ms;width:var(--fui-icon-default-size);height:var(--fui-icon-default-size)}::ng-deep .fui-icon--sm{font-size:var(--fui-icon-size-sm);width:var(--fui-icon-size-sm);height:var(--fui-icon-size-sm)}::ng-deep .fui-icon--md{font-size:var(--fui-icon-size-md);width:var(--fui-icon-size-md);height:var(--fui-icon-size-md)}::ng-deep .fui-icon--lg{font-size:var(--fui-icon-size-lg);width:var(--fui-icon-size-lg);height:var(--fui-icon-size-lg)}::ng-deep .fui-icon--xl{font-size:var(--fui-icon-size-xl);width:var(--fui-icon-size-xl);height:var(--fui-icon-size-xl)}::ng-deep .fui-icon--spin{animation:fui-spin var(--fui-icon-spin-duration, var(--fui-duration-slow-02)) var(--fui-icon-spin-timing, linear) infinite}::ng-deep .fui-icon--pulse{animation:fui-pulse var(--fui-icon-pulse-duration, var(--fui-duration-slow-01)) var(--fui-icon-pulse-timing, var(--fui-ease-expressive)) infinite}@media(prefers-reduced-motion:reduce){::ng-deep .fui-icon--spin,::ng-deep .fui-icon--pulse{animation:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
99
|
+
}
|
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: FuiIconComponent, decorators: [{
|
|
101
|
+
type: Component,
|
|
102
|
+
args: [{ selector: 'fui-icon', template: '', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
103
|
+
class: 'fui-icon',
|
|
104
|
+
'[class]': 'computedClasses()',
|
|
105
|
+
'[style.color]': 'color() || null',
|
|
106
|
+
role: 'img',
|
|
107
|
+
'[attr.aria-label]': 'ariaLabel() || null',
|
|
108
|
+
'[attr.aria-hidden]': 'ariaLabel() ? null : "true"',
|
|
109
|
+
}, styles: ["@keyframes fui-skeleton-pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes fui-spin{to{transform:rotate(360deg)}}@keyframes fui-shake{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-2px)}20%,40%,60%,80%{transform:translate(2px)}}.fui-motion-fade-in{transition:opacity var(--fui-duration-fast-02) var(--fui-ease-entrance) 0ms}.fui-motion-fade-out{transition:opacity var(--fui-duration-fast-01) var(--fui-ease-exit) 0ms}.fui-motion-slide-in-bottom{transition:transform var(--fui-duration-moderate-01) var(--fui-ease-entrance) 0ms;transform:translateY(0)}.fui-motion-slide-in-bottom.fui-motion-entering{transform:translateY(1rem)}.fui-motion-slide-in-top{transition:transform var(--fui-duration-moderate-01) var(--fui-ease-entrance) 0ms;transform:translateY(0)}.fui-motion-slide-in-top.fui-motion-entering{transform:translateY(-1rem)}.fui-motion-scale-in{transition:transform,opacity var(--fui-duration-moderate-01) var(--fui-ease-entrance) 0ms;transform:scale(1);opacity:1}.fui-motion-scale-in.fui-motion-entering{transform:scale(.95);opacity:0}.fui-no-motion{transition:none!important;animation:none!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@keyframes fui-pulse{0%{transform:scale(1);opacity:1}50%{transform:scale(1.05)}to{transform:scale(1);opacity:1}}@keyframes fui-slide-in{0%{transform:translate(120%)}to{transform:translate(0)}}.fui-slide-in{animation:fui-slide-in var(--fui-duration-moderate-01) var(--fui-ease-entrance)}::ng-deep .fui-icon{--fui-icon-color: currentColor;--fui-icon-default-size: 1em;contain:content;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;color:var(--fui-icon-color);transition:color var(--fui-duration-fast-02) var(--fui-ease-standard) 0ms;width:var(--fui-icon-default-size);height:var(--fui-icon-default-size)}::ng-deep .fui-icon--sm{font-size:var(--fui-icon-size-sm);width:var(--fui-icon-size-sm);height:var(--fui-icon-size-sm)}::ng-deep .fui-icon--md{font-size:var(--fui-icon-size-md);width:var(--fui-icon-size-md);height:var(--fui-icon-size-md)}::ng-deep .fui-icon--lg{font-size:var(--fui-icon-size-lg);width:var(--fui-icon-size-lg);height:var(--fui-icon-size-lg)}::ng-deep .fui-icon--xl{font-size:var(--fui-icon-size-xl);width:var(--fui-icon-size-xl);height:var(--fui-icon-size-xl)}::ng-deep .fui-icon--spin{animation:fui-spin var(--fui-icon-spin-duration, var(--fui-duration-slow-02)) var(--fui-icon-spin-timing, linear) infinite}::ng-deep .fui-icon--pulse{animation:fui-pulse var(--fui-icon-pulse-duration, var(--fui-duration-slow-01)) var(--fui-icon-pulse-timing, var(--fui-ease-expressive)) infinite}@media(prefers-reduced-motion:reduce){::ng-deep .fui-icon--spin,::ng-deep .fui-icon--pulse{animation:none}}\n"] }]
|
|
110
|
+
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], weight: [{ type: i0.Input, args: [{ isSignal: true, alias: "weight", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], spin: [{ type: i0.Input, args: [{ isSignal: true, alias: "spin", required: false }] }], pulse: [{ type: i0.Input, args: [{ isSignal: true, alias: "pulse", required: false }] }] } });
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Generated bundle index. Do not edit.
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
export { FUI_ICON_CONFIG, FUI_ICON_DEFAULT_CONFIG, FuiIconComponent };
|
|
117
|
+
//# sourceMappingURL=raintonic-formaui-components-icon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-icon.mjs","sources":["../../../lib/components/icon/icon-config.ts","../../../lib/components/icon/icon.component.ts","../../../lib/components/icon/raintonic-formaui-components-icon.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { FuiIconWeight } from './icon.component';\n\nexport interface FuiIconConfig {\n /** Base URL for the Phosphor Icons CDN */\n cdnBase: string;\n /** SRI hashes per weight. If provided, integrity attribute is added to link elements */\n integrity?: Partial<Record<FuiIconWeight, string>>;\n /** If true, disables automatic CDN loading. Consumer must load icon CSS manually. */\n disableAutoLoad?: boolean;\n}\n\nexport const FUI_ICON_DEFAULT_CONFIG: FuiIconConfig = {\n cdnBase: 'https://unpkg.com/@phosphor-icons/web@2.1.2/src',\n};\n\nexport const FUI_ICON_CONFIG = new InjectionToken<FuiIconConfig>('FUI_ICON_CONFIG', {\n providedIn: 'root',\n factory: () => FUI_ICON_DEFAULT_CONFIG,\n});\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n InputSignal,\n Signal,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { FUI_ICON_CONFIG, FuiIconConfig } from './icon-config';\n\n/**\n * Available icon sizes following Carbon Design System\n */\nexport type FuiIconSize = 'sm' | 'md' | 'lg' | 'xl';\n\n/**\n * Available icon weights\n */\nexport type FuiIconWeight = 'thin' | 'light' | 'regular' | 'bold' | 'fill';\n\n/**\n * # FuiIcon Component\n *\n * A wrapper component for Phosphor Icons with consistent sizing and styling.\n * Provides easy access to the complete Phosphor Icons library with theme integration.\n *\n * ## Usage\n *\n * ### Basic Icon\n * ```html\n * <fui-icon name=\"heart\"></fui-icon>\n * ```\n */\n@Component({\n selector: 'fui-icon',\n template: '',\n styleUrls: ['./icon.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'fui-icon',\n '[class]': 'computedClasses()',\n '[style.color]': 'color() || null',\n role: 'img',\n '[attr.aria-label]': 'ariaLabel() || null',\n '[attr.aria-hidden]': 'ariaLabel() ? null : \"true\"',\n },\n})\nexport class FuiIconComponent {\n // Track which phosphor icon weights have been loaded\n private static readonly _loadedWeights = new Set<FuiIconWeight>();\n\n private readonly _config = inject(FUI_ICON_CONFIG);\n private readonly _document = inject(DOCUMENT);\n\n // Inputs using new signal-based API\n name: InputSignal<string> = input.required<string>();\n size: InputSignal<FuiIconSize> = input<FuiIconSize>('md');\n weight: InputSignal<FuiIconWeight> = input<FuiIconWeight>('regular');\n color: InputSignal<string | undefined> = input<string>();\n ariaLabel: InputSignal<string | undefined> = input<string>();\n spin: InputSignal<boolean> = input(false);\n pulse: InputSignal<boolean> = input(false);\n\n // Computed properties\n readonly computedClasses: Signal<string> = computed(() => {\n const classes: string[] = ['fui-icon', `fui-icon--${this.size()}`, `fui-icon--${this.weight()}`, this.iconClass()];\n\n if (this.spin()) {\n classes.push('fui-icon--spin');\n }\n\n if (this.pulse()) {\n classes.push('fui-icon--pulse');\n }\n\n return classes.join(' ');\n });\n\n readonly iconClass: Signal<string> = computed(() => {\n const weight: FuiIconWeight = this.weight();\n const weightSuffix: string = weight === 'regular' ? '' : `-${weight}`;\n return `ph${weightSuffix} ph-${this.name()}`;\n });\n\n constructor() {\n // Watch for weight changes and load the corresponding CSS\n effect(() => {\n const weight = this.weight();\n this._loadPhosphorWeight(weight);\n });\n }\n\n /**\n * Dynamically loads the CSS for a specific Phosphor Icons weight from CDN\n * @param weight The icon weight to load\n */\n private _loadPhosphorWeight(weight: FuiIconWeight): void {\n if (this._config.disableAutoLoad) {\n return;\n }\n\n // Skip if already loaded\n if (FuiIconComponent._loadedWeights.has(weight)) {\n return;\n }\n\n // Check if CSS link already exists in DOM\n const linkId = `phosphor-icons-${weight}`;\n if (this._document.getElementById(linkId)) {\n FuiIconComponent._loadedWeights.add(weight);\n return;\n }\n\n // Create and append the link element\n const link = this._document.createElement('link');\n link.id = linkId;\n link.rel = 'stylesheet';\n link.href = `${this._config.cdnBase}/${weight}/style.css`;\n link.crossOrigin = 'anonymous';\n\n const integrityHash = this._config.integrity?.[weight];\n if (integrityHash) {\n link.integrity = integrityHash;\n }\n\n link.onerror = (): void => {\n console.warn(`[FormaUI] Failed to load Phosphor Icons weight \"${weight}\" from CDN.`);\n FuiIconComponent._loadedWeights.delete(weight);\n };\n\n this._document.head.appendChild(link);\n FuiIconComponent._loadedWeights.add(weight);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAYO,MAAM,uBAAuB,GAAkB;AACpD,IAAA,OAAO,EAAE,iDAAiD;;MAG/C,eAAe,GAAG,IAAI,cAAc,CAAgB,iBAAiB,EAAE;AAClF,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,uBAAuB;AACvC,CAAA;;ACID;;;;;;;;;;;;AAYG;MAeU,gBAAgB,CAAA;;AAEnB,IAAA,OAAgB,cAAc,GAAG,IAAI,GAAG,EAAiB;AAEhD,IAAA,OAAO,GAAG,MAAM,CAAC,eAAe,CAAC;AACjC,IAAA,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;;AAG7C,IAAA,IAAI,GAAwB,KAAK,CAAC,QAAQ,0EAAU;AACpD,IAAA,IAAI,GAA6B,KAAK,CAAc,IAAI,2EAAC;AACzD,IAAA,MAAM,GAA+B,KAAK,CAAgB,SAAS,6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CAAC,WAAW,CAAC,IAAI,CAAC;AACrC,QAAA,gBAAgB,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC;IAC7C;uGArFW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,ipCAZjB,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,syFAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAYD,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAd5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,YACV,EAAE,EAAA,eAAA,EAEK,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACJ,wBAAA,KAAK,EAAE,UAAU;AACjB,wBAAA,SAAS,EAAE,mBAAmB;AAC9B,wBAAA,eAAe,EAAE,iBAAiB;AAClC,wBAAA,IAAI,EAAE,KAAK;AACX,wBAAA,mBAAmB,EAAE,qBAAqB;AAC1C,wBAAA,oBAAoB,EAAE,6BAA6B;AACpD,qBAAA,EAAA,MAAA,EAAA,CAAA,syFAAA,CAAA,EAAA;;;AChDH;;AAEG;;;;"}
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, signal, computed, output, inject, ElementRef, effect, HostListener, Directive } from '@angular/core';
|
|
3
|
+
import { NgForm, FormGroupDirective, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import { DefaultErrorStateMatcher, FUI_FORM_FIELD_CONTROL } from '@raintonic/formaui/core';
|
|
6
|
+
import { injectNgControl, updateErrorState, syncRequiredState, syncNgControlDisabled } from '@raintonic/formaui/cdk/form-field';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* # FuiInput Directive
|
|
10
|
+
*
|
|
11
|
+
* An input directive that integrates seamlessly with fui-form-field and Angular Forms.
|
|
12
|
+
* Follows Angular Material patterns with Carbon Design System styling.
|
|
13
|
+
*
|
|
14
|
+
* ## Features
|
|
15
|
+
* - Full integration with fui-form-field
|
|
16
|
+
* - Reactive Forms and Template-driven Forms support
|
|
17
|
+
* - Multiple input types support
|
|
18
|
+
* - Error state handling with customizable error messages
|
|
19
|
+
* - Accessibility features (ARIA attributes, labels)
|
|
20
|
+
* - Smooth animations and transitions
|
|
21
|
+
* - Theme-aware styling
|
|
22
|
+
*
|
|
23
|
+
* ## Usage
|
|
24
|
+
*
|
|
25
|
+
* ### Basic Input with Form Field
|
|
26
|
+
* ```html
|
|
27
|
+
* <fui-form-field>
|
|
28
|
+
* <fui-label>Email</fui-label>
|
|
29
|
+
* <input fuiInput type="email" placeholder="Enter your email">
|
|
30
|
+
* </fui-form-field>
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ### With Reactive Forms
|
|
34
|
+
* ```html
|
|
35
|
+
* <fui-form-field>
|
|
36
|
+
* <fui-label>Username</fui-label>
|
|
37
|
+
* <input fuiInput formControlName="username">
|
|
38
|
+
* <fui-error *ngIf="form.get('username')?.hasError('required')">
|
|
39
|
+
* Username is required
|
|
40
|
+
* </fui-error>
|
|
41
|
+
* </fui-form-field>
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* ### Password Input with Toggle
|
|
45
|
+
* ```html
|
|
46
|
+
* <fui-form-field>
|
|
47
|
+
* <fui-label>Password</fui-label>
|
|
48
|
+
* <input fuiInput [type]="showPassword ? 'text' : 'password'">
|
|
49
|
+
* <button fuiSuffix fuiButton variant="ghost" (click)="togglePassword()">
|
|
50
|
+
* <fui-icon [name]="showPassword ? 'eye-slash' : 'eye'"></fui-icon>
|
|
51
|
+
* </button>
|
|
52
|
+
* </fui-form-field>
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```typescript
|
|
57
|
+
* import { FuiInputDirective } from '@raintonic/formaui/components/input';
|
|
58
|
+
* import { FuiFormFieldComponent } from '@raintonic/formaui/components/form-field';
|
|
59
|
+
*
|
|
60
|
+
* @Component({
|
|
61
|
+
* standalone: true,
|
|
62
|
+
* imports: [FuiInputDirective, FuiFormFieldComponent, ReactiveFormsModule],
|
|
63
|
+
* template: `
|
|
64
|
+
* <form [formGroup]="form">
|
|
65
|
+
* <fui-form-field>
|
|
66
|
+
* <fui-label>Email</fui-label>
|
|
67
|
+
* <input fuiInput type="email" formControlName="email">
|
|
68
|
+
* <fui-error *ngIf="emailControl?.invalid && emailControl?.touched">
|
|
69
|
+
* Please enter a valid email
|
|
70
|
+
* </fui-error>
|
|
71
|
+
* </fui-form-field>
|
|
72
|
+
* </form>
|
|
73
|
+
* `
|
|
74
|
+
* })
|
|
75
|
+
* export class MyFormComponent {
|
|
76
|
+
* form = this.fb.group({
|
|
77
|
+
* email: ['', [Validators.required, Validators.email]]
|
|
78
|
+
* });
|
|
79
|
+
*
|
|
80
|
+
* get emailControl() {
|
|
81
|
+
* return this.form.get('email');
|
|
82
|
+
* }
|
|
83
|
+
* }
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
class FuiInputDirective {
|
|
87
|
+
// Static properties
|
|
88
|
+
static nextId = 0;
|
|
89
|
+
controlType = 'fui-input';
|
|
90
|
+
// Inputs
|
|
91
|
+
type = input('text', ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
92
|
+
placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
93
|
+
readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []));
|
|
94
|
+
// Validation/constraint inputs (pass-through to native attributes)
|
|
95
|
+
maxlength = input(null, ...(ngDevMode ? [{ debugName: "maxlength" }] : /* istanbul ignore next */ []));
|
|
96
|
+
minlength = input(null, ...(ngDevMode ? [{ debugName: "minlength" }] : /* istanbul ignore next */ []));
|
|
97
|
+
pattern = input(null, ...(ngDevMode ? [{ debugName: "pattern" }] : /* istanbul ignore next */ []));
|
|
98
|
+
// Interface implementation
|
|
99
|
+
required = signal(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
100
|
+
errorStateMatcher = input(null, ...(ngDevMode ? [{ debugName: "errorStateMatcher" }] : /* istanbul ignore next */ []));
|
|
101
|
+
disabledInput = input(false, ...(ngDevMode ? [{ debugName: "disabledInput" }] : /* istanbul ignore next */ []));
|
|
102
|
+
disabled = computed(() => this._disabled() || this.disabledInput() || this._ngControlDisabled(), ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
103
|
+
// Outputs
|
|
104
|
+
valueChange = output();
|
|
105
|
+
// Internal state
|
|
106
|
+
_focused = signal(false, ...(ngDevMode ? [{ debugName: "_focused" }] : /* istanbul ignore next */ []));
|
|
107
|
+
focused = this._focused;
|
|
108
|
+
stateChanges = new Subject();
|
|
109
|
+
_value = signal('', ...(ngDevMode ? [{ debugName: "_value" }] : /* istanbul ignore next */ []));
|
|
110
|
+
value = this._value;
|
|
111
|
+
_disabled = signal(false, ...(ngDevMode ? [{ debugName: "_disabled" }] : /* istanbul ignore next */ []));
|
|
112
|
+
_ngControlDisabled = signal(false, ...(ngDevMode ? [{ debugName: "_ngControlDisabled" }] : /* istanbul ignore next */ []));
|
|
113
|
+
_uid = `fui-input-${FuiInputDirective.nextId++}`;
|
|
114
|
+
_ariaDescribedby = null;
|
|
115
|
+
// Error state
|
|
116
|
+
_errorState = signal(false, ...(ngDevMode ? [{ debugName: "_errorState" }] : /* istanbul ignore next */ []));
|
|
117
|
+
errorState = this._errorState;
|
|
118
|
+
// Form control references
|
|
119
|
+
_parentForm = inject(NgForm, { optional: true });
|
|
120
|
+
_parentFormGroup = inject(FormGroupDirective, { optional: true });
|
|
121
|
+
_defaultErrorStateMatcher = inject(DefaultErrorStateMatcher);
|
|
122
|
+
// Element reference
|
|
123
|
+
_elementRef = inject(ElementRef);
|
|
124
|
+
// Computed properties
|
|
125
|
+
empty = computed(() => {
|
|
126
|
+
const v = this._value();
|
|
127
|
+
return !v || v.length === 0;
|
|
128
|
+
}, ...(ngDevMode ? [{ debugName: "empty" }] : /* istanbul ignore next */ []));
|
|
129
|
+
id = this._uid;
|
|
130
|
+
// ControlValueAccessor callbacks
|
|
131
|
+
_onChange = () => {
|
|
132
|
+
/* noop */
|
|
133
|
+
};
|
|
134
|
+
_onTouched = () => {
|
|
135
|
+
/* noop */
|
|
136
|
+
};
|
|
137
|
+
_ngControlRef = injectNgControl();
|
|
138
|
+
get ngControl() {
|
|
139
|
+
return this._ngControlRef.ngControl;
|
|
140
|
+
}
|
|
141
|
+
constructor() {
|
|
142
|
+
// Set valueAccessor after NgControl is resolved
|
|
143
|
+
void Promise.resolve().then(() => {
|
|
144
|
+
if (this._ngControlRef.ngControl) {
|
|
145
|
+
this._ngControlRef.ngControl.valueAccessor = this;
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
// Effect to emit state changes
|
|
149
|
+
effect(() => {
|
|
150
|
+
// Track all reactive inputs and internal signals
|
|
151
|
+
this.type();
|
|
152
|
+
this.placeholder();
|
|
153
|
+
this.readonly();
|
|
154
|
+
this.maxlength();
|
|
155
|
+
this.minlength();
|
|
156
|
+
this.pattern();
|
|
157
|
+
this.disabledInput();
|
|
158
|
+
this.errorStateMatcher();
|
|
159
|
+
this._focused();
|
|
160
|
+
this._value();
|
|
161
|
+
this._disabled();
|
|
162
|
+
this._ngControlDisabled();
|
|
163
|
+
this.required();
|
|
164
|
+
this._errorState();
|
|
165
|
+
// Emit state change
|
|
166
|
+
this.stateChanges.next();
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
ngDoCheck() {
|
|
170
|
+
if (this.ngControl) {
|
|
171
|
+
updateErrorState(this.ngControl, this._errorState, this.errorStateMatcher(), this._defaultErrorStateMatcher, this._parentForm, this._parentFormGroup, this.stateChanges);
|
|
172
|
+
syncRequiredState(this.ngControl, this.required, this.stateChanges);
|
|
173
|
+
syncNgControlDisabled(this.ngControl, this._ngControlDisabled, this.stateChanges);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
ngOnDestroy() {
|
|
177
|
+
this.stateChanges.complete();
|
|
178
|
+
}
|
|
179
|
+
// ControlValueAccessor implementation
|
|
180
|
+
writeValue(value) {
|
|
181
|
+
const v = value ?? '';
|
|
182
|
+
this._value.set(v);
|
|
183
|
+
// Update the DOM element's value to reflect the new value
|
|
184
|
+
this._elementRef.nativeElement.value = v;
|
|
185
|
+
this.stateChanges.next();
|
|
186
|
+
}
|
|
187
|
+
registerOnChange(fn) {
|
|
188
|
+
this._onChange = fn;
|
|
189
|
+
}
|
|
190
|
+
registerOnTouched(fn) {
|
|
191
|
+
this._onTouched = fn;
|
|
192
|
+
}
|
|
193
|
+
setDisabledState(isDisabled) {
|
|
194
|
+
this._disabled.set(isDisabled);
|
|
195
|
+
this.stateChanges.next();
|
|
196
|
+
}
|
|
197
|
+
onContainerClick(_event) {
|
|
198
|
+
if (!this._focused()) {
|
|
199
|
+
this._elementRef.nativeElement.focus();
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
setDescribedByIds(ids) {
|
|
203
|
+
this._ariaDescribedby = ids.length ? ids.join(' ') : null;
|
|
204
|
+
}
|
|
205
|
+
// Event handlers
|
|
206
|
+
onInput(event) {
|
|
207
|
+
const target = event.target;
|
|
208
|
+
const newValue = target.value;
|
|
209
|
+
if (newValue !== this._value()) {
|
|
210
|
+
this._value.set(newValue);
|
|
211
|
+
this._onChange(newValue);
|
|
212
|
+
this.valueChange.emit(newValue);
|
|
213
|
+
this.stateChanges.next();
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
onChange(event) {
|
|
217
|
+
// Handle change event for select elements
|
|
218
|
+
if (this.isSelect()) {
|
|
219
|
+
const target = event.target;
|
|
220
|
+
const newValue = target.value;
|
|
221
|
+
if (newValue !== this._value()) {
|
|
222
|
+
this._value.set(newValue);
|
|
223
|
+
this._onChange(newValue);
|
|
224
|
+
this.valueChange.emit(newValue);
|
|
225
|
+
this.stateChanges.next();
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
onFocus() {
|
|
230
|
+
if (!this._focused()) {
|
|
231
|
+
this._focused.set(true);
|
|
232
|
+
this.stateChanges.next();
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
onBlur() {
|
|
236
|
+
if (this._focused()) {
|
|
237
|
+
this._focused.set(false);
|
|
238
|
+
this._onTouched();
|
|
239
|
+
this.stateChanges.next();
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
// Public API
|
|
243
|
+
focus() {
|
|
244
|
+
this._elementRef.nativeElement.focus();
|
|
245
|
+
}
|
|
246
|
+
blur() {
|
|
247
|
+
this._elementRef.nativeElement.blur();
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Check if the element is a select element
|
|
251
|
+
*/
|
|
252
|
+
isSelect() {
|
|
253
|
+
return this._elementRef.nativeElement.tagName.toLowerCase() === 'select';
|
|
254
|
+
}
|
|
255
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: FuiInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
256
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.6", type: FuiInputDirective, isStandalone: true, selector: "input[fuiInput], textarea[fuiInput], select[fuiInput]", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, minlength: { classPropertyName: "minlength", publicName: "minlength", isSignal: true, isRequired: false, transformFunction: null }, pattern: { classPropertyName: "pattern", publicName: "pattern", isSignal: true, isRequired: false, transformFunction: null }, errorStateMatcher: { classPropertyName: "errorStateMatcher", publicName: "errorStateMatcher", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabledInput", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { listeners: { "input": "onInput($event)", "change": "onChange($event)", "focus": "onFocus()", "blur": "onBlur()" }, properties: { "class.fui-input--select": "isSelect()", "class.fui-input--disabled": "disabled()", "class.fui-input--readonly": "readonly()", "class.fui-input--error": "errorState()", "attr.id": "id", "attr.type": "type()", "attr.placeholder": "placeholder()", "attr.disabled": "disabled() ? \"\" : null", "attr.readonly": "readonly() ? \"\" : null", "attr.required": "required() ? \"\" : null", "attr.maxlength": "maxlength()", "attr.minlength": "minlength()", "attr.pattern": "pattern()", "attr.aria-invalid": "errorState() ? \"true\" : null", "attr.aria-required": "required() ? \"true\" : null", "attr.aria-describedby": "_ariaDescribedby", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.aria-readonly": "readonly() ? \"true\" : null" }, classAttribute: "fui-input" }, providers: [
|
|
257
|
+
{
|
|
258
|
+
provide: NG_VALUE_ACCESSOR,
|
|
259
|
+
useExisting: FuiInputDirective,
|
|
260
|
+
multi: true,
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
provide: FUI_FORM_FIELD_CONTROL,
|
|
264
|
+
useExisting: FuiInputDirective,
|
|
265
|
+
},
|
|
266
|
+
], ngImport: i0 });
|
|
267
|
+
}
|
|
268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: FuiInputDirective, decorators: [{
|
|
269
|
+
type: Directive,
|
|
270
|
+
args: [{
|
|
271
|
+
selector: 'input[fuiInput], textarea[fuiInput], select[fuiInput]',
|
|
272
|
+
standalone: true,
|
|
273
|
+
host: {
|
|
274
|
+
class: 'fui-input',
|
|
275
|
+
'[class.fui-input--select]': 'isSelect()',
|
|
276
|
+
'[class.fui-input--disabled]': 'disabled()',
|
|
277
|
+
'[class.fui-input--readonly]': 'readonly()',
|
|
278
|
+
'[class.fui-input--error]': 'errorState()',
|
|
279
|
+
'[attr.id]': 'id',
|
|
280
|
+
'[attr.type]': 'type()',
|
|
281
|
+
'[attr.placeholder]': 'placeholder()',
|
|
282
|
+
'[attr.disabled]': 'disabled() ? "" : null',
|
|
283
|
+
'[attr.readonly]': 'readonly() ? "" : null',
|
|
284
|
+
'[attr.required]': 'required() ? "" : null',
|
|
285
|
+
// constraints
|
|
286
|
+
'[attr.maxlength]': 'maxlength()',
|
|
287
|
+
'[attr.minlength]': 'minlength()',
|
|
288
|
+
'[attr.pattern]': 'pattern()',
|
|
289
|
+
// ARIA
|
|
290
|
+
'[attr.aria-invalid]': 'errorState() ? "true" : null',
|
|
291
|
+
'[attr.aria-required]': 'required() ? "true" : null',
|
|
292
|
+
'[attr.aria-describedby]': '_ariaDescribedby',
|
|
293
|
+
'[attr.aria-disabled]': 'disabled() ? "true" : null',
|
|
294
|
+
'[attr.aria-readonly]': 'readonly() ? "true" : null',
|
|
295
|
+
},
|
|
296
|
+
providers: [
|
|
297
|
+
{
|
|
298
|
+
provide: NG_VALUE_ACCESSOR,
|
|
299
|
+
useExisting: FuiInputDirective,
|
|
300
|
+
multi: true,
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
provide: FUI_FORM_FIELD_CONTROL,
|
|
304
|
+
useExisting: FuiInputDirective,
|
|
305
|
+
},
|
|
306
|
+
],
|
|
307
|
+
}]
|
|
308
|
+
}], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], minlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minlength", required: false }] }], pattern: [{ type: i0.Input, args: [{ isSignal: true, alias: "pattern", required: false }] }], errorStateMatcher: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorStateMatcher", required: false }] }], disabledInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledInput", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], onInput: [{
|
|
309
|
+
type: HostListener,
|
|
310
|
+
args: ['input', ['$event']]
|
|
311
|
+
}], onChange: [{
|
|
312
|
+
type: HostListener,
|
|
313
|
+
args: ['change', ['$event']]
|
|
314
|
+
}], onFocus: [{
|
|
315
|
+
type: HostListener,
|
|
316
|
+
args: ['focus']
|
|
317
|
+
}], onBlur: [{
|
|
318
|
+
type: HostListener,
|
|
319
|
+
args: ['blur']
|
|
320
|
+
}] } });
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Generated bundle index. Do not edit.
|
|
324
|
+
*/
|
|
325
|
+
|
|
326
|
+
export { FuiInputDirective };
|
|
327
|
+
//# sourceMappingURL=raintonic-formaui-components-input.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-input.mjs","sources":["../../../lib/components/input/input.directive.ts","../../../lib/components/input/raintonic-formaui-components-input.ts"],"sourcesContent":["import {\n computed,\n Directive,\n DoCheck,\n effect,\n ElementRef,\n HostListener,\n inject,\n input,\n InputSignal,\n OnDestroy,\n output,\n OutputEmitterRef,\n signal,\n WritableSignal,\n} from '@angular/core';\n\nimport { ControlValueAccessor, FormGroupDirective, NG_VALUE_ACCESSOR, NgControl, NgForm } from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { FUI_FORM_FIELD_CONTROL, FuiFormFieldControl } from '@raintonic/formaui/core';\nimport { DefaultErrorStateMatcher, ErrorStateMatcher } from '@raintonic/formaui/core';\nimport { injectNgControl, updateErrorState, syncRequiredState, syncNgControlDisabled } from '@raintonic/formaui/cdk/form-field';\n\n/**\n * Available input types\n */\nexport type FuiInputType =\n | 'text'\n | 'email'\n | 'password'\n | 'number'\n | 'tel'\n | 'url'\n | 'search'\n | 'date'\n | 'time'\n | 'datetime-local';\n\n/**\n * # FuiInput Directive\n *\n * An input directive that integrates seamlessly with fui-form-field and Angular Forms.\n * Follows Angular Material patterns with Carbon Design System styling.\n *\n * ## Features\n * - Full integration with fui-form-field\n * - Reactive Forms and Template-driven Forms support\n * - Multiple input types support\n * - Error state handling with customizable error messages\n * - Accessibility features (ARIA attributes, labels)\n * - Smooth animations and transitions\n * - Theme-aware styling\n *\n * ## Usage\n *\n * ### Basic Input with Form Field\n * ```html\n * <fui-form-field>\n * <fui-label>Email</fui-label>\n * <input fuiInput type=\"email\" placeholder=\"Enter your email\">\n * </fui-form-field>\n * ```\n *\n * ### With Reactive Forms\n * ```html\n * <fui-form-field>\n * <fui-label>Username</fui-label>\n * <input fuiInput formControlName=\"username\">\n * <fui-error *ngIf=\"form.get('username')?.hasError('required')\">\n * Username is required\n * </fui-error>\n * </fui-form-field>\n * ```\n *\n * ### Password Input with Toggle\n * ```html\n * <fui-form-field>\n * <fui-label>Password</fui-label>\n * <input fuiInput [type]=\"showPassword ? 'text' : 'password'\">\n * <button fuiSuffix fuiButton variant=\"ghost\" (click)=\"togglePassword()\">\n * <fui-icon [name]=\"showPassword ? 'eye-slash' : 'eye'\"></fui-icon>\n * </button>\n * </fui-form-field>\n * ```\n *\n * @example\n * ```typescript\n * import { FuiInputDirective } from '@raintonic/formaui/components/input';\n * import { FuiFormFieldComponent } from '@raintonic/formaui/components/form-field';\n *\n * @Component({\n * standalone: true,\n * imports: [FuiInputDirective, FuiFormFieldComponent, ReactiveFormsModule],\n * template: `\n * <form [formGroup]=\"form\">\n * <fui-form-field>\n * <fui-label>Email</fui-label>\n * <input fuiInput type=\"email\" formControlName=\"email\">\n * <fui-error *ngIf=\"emailControl?.invalid && emailControl?.touched\">\n * Please enter a valid email\n * </fui-error>\n * </fui-form-field>\n * </form>\n * `\n * })\n * export class MyFormComponent {\n * form = this.fb.group({\n * email: ['', [Validators.required, Validators.email]]\n * });\n *\n * get emailControl() {\n * return this.form.get('email');\n * }\n * }\n * ```\n */\n@Directive({\n selector: 'input[fuiInput], textarea[fuiInput], select[fuiInput]',\n standalone: true,\n host: {\n class: 'fui-input',\n '[class.fui-input--select]': 'isSelect()',\n '[class.fui-input--disabled]': 'disabled()',\n '[class.fui-input--readonly]': 'readonly()',\n '[class.fui-input--error]': 'errorState()',\n '[attr.id]': 'id',\n '[attr.type]': 'type()',\n '[attr.placeholder]': 'placeholder()',\n '[attr.disabled]': 'disabled() ? \"\" : null',\n '[attr.readonly]': 'readonly() ? \"\" : null',\n '[attr.required]': 'required() ? \"\" : null',\n // constraints\n '[attr.maxlength]': 'maxlength()',\n '[attr.minlength]': 'minlength()',\n '[attr.pattern]': 'pattern()',\n // ARIA\n '[attr.aria-invalid]': 'errorState() ? \"true\" : null',\n '[attr.aria-required]': 'required() ? \"true\" : null',\n '[attr.aria-describedby]': '_ariaDescribedby',\n '[attr.aria-disabled]': 'disabled() ? \"true\" : null',\n '[attr.aria-readonly]': 'readonly() ? \"true\" : null',\n },\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: FuiInputDirective,\n multi: true,\n },\n {\n provide: FUI_FORM_FIELD_CONTROL,\n useExisting: FuiInputDirective,\n },\n ],\n})\nexport class FuiInputDirective implements ControlValueAccessor, FuiFormFieldControl<string>, DoCheck, OnDestroy {\n // Static properties\n static nextId = 0;\n readonly controlType = 'fui-input';\n\n // Inputs\n type: InputSignal<FuiInputType> = input<FuiInputType>('text');\n placeholder: InputSignal<string> = input('');\n\n readonly: InputSignal<boolean> = input(false);\n\n // Validation/constraint inputs (pass-through to native attributes)\n maxlength: InputSignal<number | null> = input<number | null>(null);\n minlength: InputSignal<number | null> = input<number | null>(null);\n pattern: InputSignal<string | null> = input<string | null>(null);\n\n // Interface implementation\n required: WritableSignal<boolean> = signal(false);\n\n errorStateMatcher: InputSignal<ErrorStateMatcher | null> = input<ErrorStateMatcher | null>(null);\n readonly disabledInput: InputSignal<boolean> = input(false);\n readonly disabled = computed(() => this._disabled() || this.disabledInput() || this._ngControlDisabled());\n\n // Outputs\n readonly valueChange: OutputEmitterRef<string> = output<string>();\n\n // Internal state\n private readonly _focused: WritableSignal<boolean> = signal(false);\n readonly focused = this._focused;\n readonly stateChanges = new Subject<void>();\n\n private readonly _value: WritableSignal<string> = signal('');\n readonly value = this._value;\n private readonly _disabled: WritableSignal<boolean> = signal(false);\n private readonly _ngControlDisabled: WritableSignal<boolean> = signal(false);\n private _uid = `fui-input-${FuiInputDirective.nextId++}`;\n _ariaDescribedby: string | null = null;\n\n // Error state\n private readonly _errorState: WritableSignal<boolean> = signal(false);\n readonly errorState = this._errorState;\n\n // Form control references\n private _parentForm = inject(NgForm, { optional: true });\n private _parentFormGroup = inject(FormGroupDirective, { optional: true });\n private _defaultErrorStateMatcher = inject(DefaultErrorStateMatcher);\n\n // Element reference\n private readonly _elementRef: ElementRef<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement> =\n inject(ElementRef);\n\n // Computed properties\n readonly empty = computed(() => {\n const v = this._value();\n return !v || v.length === 0;\n });\n readonly id = this._uid;\n\n // ControlValueAccessor callbacks\n private _onChange: (value: string) => void = () => {\n /* noop */\n };\n private _onTouched: () => void = () => {\n /* noop */\n };\n\n private readonly _ngControlRef = injectNgControl();\n\n get ngControl(): NgControl | null {\n return this._ngControlRef.ngControl;\n }\n\n constructor() {\n // Set valueAccessor after NgControl is resolved\n void Promise.resolve().then(() => {\n if (this._ngControlRef.ngControl) {\n this._ngControlRef.ngControl.valueAccessor = this;\n }\n });\n\n // Effect to emit state changes\n effect(() => {\n // Track all reactive inputs and internal signals\n this.type();\n this.placeholder();\n this.readonly();\n this.maxlength();\n this.minlength();\n this.pattern();\n this.disabledInput();\n this.errorStateMatcher();\n this._focused();\n this._value();\n this._disabled();\n this._ngControlDisabled();\n this.required();\n this._errorState();\n\n // Emit state change\n this.stateChanges.next();\n });\n }\n\n ngDoCheck(): void {\n if (this.ngControl) {\n updateErrorState(\n this.ngControl,\n this._errorState,\n this.errorStateMatcher(),\n this._defaultErrorStateMatcher,\n this._parentForm,\n this._parentFormGroup,\n this.stateChanges,\n );\n syncRequiredState(this.ngControl, this.required, this.stateChanges);\n syncNgControlDisabled(this.ngControl, this._ngControlDisabled, this.stateChanges);\n }\n }\n\n ngOnDestroy(): void {\n this.stateChanges.complete();\n }\n\n // ControlValueAccessor implementation\n writeValue(value: string | null): void {\n const v = value ?? '';\n this._value.set(v);\n // Update the DOM element's value to reflect the new value\n this._elementRef.nativeElement.value = v;\n this.stateChanges.next();\n }\n\n registerOnChange(fn: (value: string) => void): void {\n this._onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this._onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this._disabled.set(isDisabled);\n this.stateChanges.next();\n }\n\n onContainerClick(_event: MouseEvent): void {\n if (!this._focused()) {\n this._elementRef.nativeElement.focus();\n }\n }\n\n setDescribedByIds(ids: string[]): void {\n this._ariaDescribedby = ids.length ? ids.join(' ') : null;\n }\n\n // Event handlers\n @HostListener('input', ['$event'])\n onInput(event: Event): void {\n const target = event.target as HTMLInputElement;\n const newValue = target.value;\n if (newValue !== this._value()) {\n this._value.set(newValue);\n this._onChange(newValue);\n this.valueChange.emit(newValue);\n this.stateChanges.next();\n }\n }\n\n @HostListener('change', ['$event'])\n onChange(event: Event): void {\n // Handle change event for select elements\n if (this.isSelect()) {\n const target = event.target as HTMLSelectElement;\n const newValue = target.value;\n if (newValue !== this._value()) {\n this._value.set(newValue);\n this._onChange(newValue);\n this.valueChange.emit(newValue);\n this.stateChanges.next();\n }\n }\n }\n\n @HostListener('focus')\n onFocus(): void {\n if (!this._focused()) {\n this._focused.set(true);\n this.stateChanges.next();\n }\n }\n\n @HostListener('blur')\n onBlur(): void {\n if (this._focused()) {\n this._focused.set(false);\n this._onTouched();\n this.stateChanges.next();\n }\n }\n\n // Public API\n focus(): void {\n this._elementRef.nativeElement.focus();\n }\n\n blur(): void {\n this._elementRef.nativeElement.blur();\n }\n\n /**\n * Check if the element is a select element\n */\n isSelect(): boolean {\n return this._elementRef.nativeElement.tagName.toLowerCase() === 'select';\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAsCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EG;MAuCU,iBAAiB,CAAA;;AAE5B,IAAA,OAAO,MAAM,GAAG,CAAC;IACR,WAAW,GAAG,WAAW;;AAGlC,IAAA,IAAI,GAA8B,KAAK,CAAe,MAAM,2EAAC;AAC7D,IAAA,WAAW,GAAwB,KAAK,CAAC,EAAE,kFAAC;AAE5C,IAAA,QAAQ,GAAyB,KAAK,CAAC,KAAK,+EAAC;;AAG7C,IAAA,SAAS,GAA+B,KAAK,CAAgB,IAAI,gFAAC;AAClE,IAAA,SAAS,GAA+B,KAAK,CAAgB,IAAI,gFAAC;AAClE,IAAA,OAAO,GAA+B,KAAK,CAAgB,IAAI,8EAAC;;AAGhE,IAAA,QAAQ,GAA4B,MAAM,CAAC,KAAK,+EAAC;AAEjD,IAAA,iBAAiB,GAA0C,KAAK,CAA2B,IAAI,wFAAC;AACvF,IAAA,aAAa,GAAyB,KAAK,CAAC,KAAK,oFAAC;IAClD,QAAQ,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,IAAI,IAAI,CAAC,aAAa,EAAE,IAAI,IAAI,CAAC,kBAAkB,EAAE,EAAA,IAAA,SAAA,GAA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