@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,111 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { DoCheck, OnDestroy, WritableSignal, Signal, ElementRef } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import { FuiFormFieldControl, ErrorStateMatcher } from '@raintonic/formaui/core';
|
|
6
|
+
|
|
7
|
+
type PasswordStrength = 'weak' | 'fair' | 'good' | 'strong';
|
|
8
|
+
interface PasswordStrengthConfig {
|
|
9
|
+
minLength?: number;
|
|
10
|
+
requireUppercase?: boolean;
|
|
11
|
+
requireLowercase?: boolean;
|
|
12
|
+
requireNumbers?: boolean;
|
|
13
|
+
requireSpecial?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const DEFAULT_STRENGTH_CONFIG: PasswordStrengthConfig;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* # FuiPasswordInputComponent
|
|
19
|
+
*
|
|
20
|
+
* A password input component with visibility toggle and optional strength meter.
|
|
21
|
+
* Integrates with fui-form-field and Angular Forms.
|
|
22
|
+
*
|
|
23
|
+
* ## Features
|
|
24
|
+
* - Password visibility toggle
|
|
25
|
+
* - Optional password strength meter
|
|
26
|
+
* - Full Reactive Forms integration (ControlValueAccessor)
|
|
27
|
+
* - FuiFormFieldControl integration for fui-form-field
|
|
28
|
+
* - Error state handling
|
|
29
|
+
* - Accessibility (ARIA)
|
|
30
|
+
*
|
|
31
|
+
* ## Usage
|
|
32
|
+
*
|
|
33
|
+
* ### Basic Password Input
|
|
34
|
+
* ```html
|
|
35
|
+
* <fui-form-field>
|
|
36
|
+
* <fui-label>Password</fui-label>
|
|
37
|
+
* <fui-password-input formControlName="password"></fui-password-input>
|
|
38
|
+
* </fui-form-field>
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* ### With Strength Meter
|
|
42
|
+
* ```html
|
|
43
|
+
* <fui-form-field>
|
|
44
|
+
* <fui-label>Password</fui-label>
|
|
45
|
+
* <fui-password-input
|
|
46
|
+
* formControlName="password"
|
|
47
|
+
* [showStrengthMeter]="true"
|
|
48
|
+
* ></fui-password-input>
|
|
49
|
+
* </fui-form-field>
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
declare class FuiPasswordInputComponent implements ControlValueAccessor, FuiFormFieldControl<string>, DoCheck, OnDestroy {
|
|
53
|
+
static nextId: number;
|
|
54
|
+
readonly controlType = "fui-password-input";
|
|
55
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
56
|
+
readonly disabledInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
57
|
+
readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
58
|
+
readonly showStrengthMeter: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
59
|
+
readonly strengthConfig: _angular_core.InputSignal<PasswordStrengthConfig>;
|
|
60
|
+
readonly errorStateMatcher: _angular_core.InputSignal<ErrorStateMatcher | null>;
|
|
61
|
+
readonly _passwordVisible: WritableSignal<boolean>;
|
|
62
|
+
readonly _value: WritableSignal<string>;
|
|
63
|
+
private readonly _focused;
|
|
64
|
+
readonly focused: Signal<boolean>;
|
|
65
|
+
private readonly _disabled;
|
|
66
|
+
private readonly _ngControlDisabled;
|
|
67
|
+
private readonly _errorState;
|
|
68
|
+
readonly errorState: Signal<boolean>;
|
|
69
|
+
private readonly _required;
|
|
70
|
+
readonly required: Signal<boolean>;
|
|
71
|
+
readonly disabled: Signal<boolean>;
|
|
72
|
+
readonly _inputType: Signal<string>;
|
|
73
|
+
readonly value: Signal<string>;
|
|
74
|
+
readonly empty: Signal<boolean>;
|
|
75
|
+
readonly _strength: Signal<PasswordStrength>;
|
|
76
|
+
readonly _strengthPercent: Signal<number>;
|
|
77
|
+
readonly stateChanges: Subject<void>;
|
|
78
|
+
private _uid;
|
|
79
|
+
readonly id: string;
|
|
80
|
+
_ariaDescribedby: string | null;
|
|
81
|
+
private _parentForm;
|
|
82
|
+
private _parentFormGroup;
|
|
83
|
+
private _defaultErrorStateMatcher;
|
|
84
|
+
private readonly _ngControlRef;
|
|
85
|
+
get ngControl(): NgControl | null;
|
|
86
|
+
readonly inputElement: Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
87
|
+
private _onChange;
|
|
88
|
+
private _onTouched;
|
|
89
|
+
constructor();
|
|
90
|
+
ngDoCheck(): void;
|
|
91
|
+
ngOnDestroy(): void;
|
|
92
|
+
writeValue(value: string | null): void;
|
|
93
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
94
|
+
registerOnTouched(fn: () => void): void;
|
|
95
|
+
setDisabledState(isDisabled: boolean): void;
|
|
96
|
+
onContainerClick(_event: MouseEvent): void;
|
|
97
|
+
setDescribedByIds(ids: string[]): void;
|
|
98
|
+
_onInput(event: Event): void;
|
|
99
|
+
_onFocus(): void;
|
|
100
|
+
_onBlur(): void;
|
|
101
|
+
toggleVisibility(): void;
|
|
102
|
+
focus(): void;
|
|
103
|
+
blur(): void;
|
|
104
|
+
_calculateStrength(password: string): PasswordStrength;
|
|
105
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiPasswordInputComponent, never>;
|
|
106
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiPasswordInputComponent, "fui-password-input", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "showStrengthMeter": { "alias": "showStrengthMeter"; "required": false; "isSignal": true; }; "strengthConfig": { "alias": "strengthConfig"; "required": false; "isSignal": true; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export { DEFAULT_STRENGTH_CONFIG, FuiPasswordInputComponent };
|
|
110
|
+
export type { PasswordStrength, PasswordStrengthConfig };
|
|
111
|
+
//# sourceMappingURL=raintonic-formaui-components-password-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-password-input.d.ts","sources":["../../../lib/components/password-input/password-input.types.ts","../../../lib/components/password-input/password-input.component.ts"],"mappings":";;;;;;AAAM,KAAM,gBAAgB;UAEX,sBAAsB;;;;;;AAMtC;AAED,cAAa,uBAAuB,EAAE,sBAMrC;;ACUD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCG;AACH,cA4Ba,yBACX,YAAW,oBAAoB,EAAE,mBAAmB,UAAU,OAAO,EAAE,SAAS;;;0BAO5D,aAAA,CAAA,WAAA;4BACE,aAAA,CAAA,wBAAA;uBAIL,aAAA,CAAA,wBAAA;gCAGS,aAAA,CAAA,wBAAA;6BAGH,aAAA,CAAA,WAAA,CAAA,sBAAA;gCACG,aAAA,CAAA,WAAA,CAAA,iBAAA;AAG1B,+BAA2B,cAAc;AACzC,qBAAiB,cAAc;AAC/B;AACA,sBAAkB,MAAM;AACxB;AACA;AACA;AACA,yBAAqB,MAAM;AAC3B;AACA,uBAAmB,MAAM;AAGzB,uBAAmB,MAAM;AAGzB,yBAAqB,MAAM;AAC3B,oBAAgB,MAAM;AACtB,oBAAgB,MAAM;AAKtB,wBAAoB,MAAM,CAAC,gBAAgB;AAI3C,+BAA2B,MAAM;2BAgBZ,OAAA;;;AAGrB;;;;AAMA;AACA,qBAAiB,SAAS;AAK1B,2BAAuB,MAAM,CAAC,UAAU,CAAC,gBAAgB;;;;AAwCzD;AAgBA;AAKA;;AAeA;AAIA;AAKA,6BAAyB,UAAU;AAMnC;AAKA,oBAAgB,KAAK;AAUrB;AAOA;AAQA;AAKA;AAIA;AAKA,0CAAsC,gBAAgB;oDAvN3C,yBAAyB;sDAAzB,yBAAyB;AA2QrC;;;;","names":[]}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Signal, OnDestroy, TemplateRef, WritableSignal } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
type PopoverTriggerMode = 'click' | 'hover' | 'focus' | 'manual';
|
|
5
|
+
type PopoverPosition = 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
6
|
+
declare const POPOVER_POSITIONS: readonly ["top", "bottom", "left", "right", "top-start", "top-end", "bottom-start", "bottom-end", "left-start", "left-end", "right-start", "right-end"];
|
|
7
|
+
declare const POPOVER_TRIGGER_MODES: readonly ["click", "hover", "focus", "manual"];
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* # FuiPopoverComponent
|
|
11
|
+
*
|
|
12
|
+
* Internal popover container component rendered inside the overlay.
|
|
13
|
+
* Provides a styled panel with optional arrow indicator.
|
|
14
|
+
*
|
|
15
|
+
* ## Usage
|
|
16
|
+
* This component is not used directly. Use the `[fuiPopoverTrigger]` directive instead.
|
|
17
|
+
*/
|
|
18
|
+
declare class FuiPopoverComponent {
|
|
19
|
+
/** Whether to show the arrow indicator */
|
|
20
|
+
readonly hasArrow: _angular_core.InputSignal<boolean>;
|
|
21
|
+
/** Position of the popover relative to the trigger element, used for arrow calculation */
|
|
22
|
+
readonly position: _angular_core.InputSignal<PopoverPosition>;
|
|
23
|
+
/** Computed CSS classes for the popover */
|
|
24
|
+
readonly computedClasses: Signal<string>;
|
|
25
|
+
/** Computed arrow classes based on position */
|
|
26
|
+
readonly arrowClasses: Signal<string>;
|
|
27
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiPopoverComponent, never>;
|
|
28
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiPopoverComponent, "fui-popover", never, { "hasArrow": { "alias": "hasArrow"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* # PopoverTrigger Directive
|
|
33
|
+
*
|
|
34
|
+
* A directive that triggers a popover overlay anchored to the host element.
|
|
35
|
+
* Supports click, hover, focus, and manual trigger modes with configurable
|
|
36
|
+
* positioning, delays, and arrow indicators.
|
|
37
|
+
*
|
|
38
|
+
* ## Usage
|
|
39
|
+
*
|
|
40
|
+
* ### Basic Click Popover
|
|
41
|
+
* ```html
|
|
42
|
+
* <ng-template #popoverContent>
|
|
43
|
+
* <p>Popover content here</p>
|
|
44
|
+
* </ng-template>
|
|
45
|
+
*
|
|
46
|
+
* <button [fuiPopoverTrigger]="popoverContent">Open Popover</button>
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* ### Hover with Position
|
|
50
|
+
* ```html
|
|
51
|
+
* <button [fuiPopoverTrigger]="popoverContent"
|
|
52
|
+
* fuiPopoverTriggerOn="hover"
|
|
53
|
+
* fuiPopoverPosition="top">
|
|
54
|
+
* Hover Me
|
|
55
|
+
* </button>
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* ### Manual Control
|
|
59
|
+
* ```html
|
|
60
|
+
* <button [fuiPopoverTrigger]="popoverContent"
|
|
61
|
+
* fuiPopoverTriggerOn="manual"
|
|
62
|
+
* [fuiPopoverOpen]="isOpen">
|
|
63
|
+
* Manual Popover
|
|
64
|
+
* </button>
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
declare class FuiPopoverTriggerDirective implements OnDestroy {
|
|
68
|
+
/** Template ref for the popover content */
|
|
69
|
+
readonly fuiPopoverTrigger: _angular_core.InputSignal<TemplateRef<unknown>>;
|
|
70
|
+
/** Position of the popover relative to the trigger element */
|
|
71
|
+
readonly fuiPopoverPosition: _angular_core.InputSignalWithTransform<PopoverPosition, string>;
|
|
72
|
+
/** Trigger mode for showing/hiding the popover */
|
|
73
|
+
readonly fuiPopoverTriggerOn: _angular_core.InputSignalWithTransform<PopoverTriggerMode, string>;
|
|
74
|
+
/** Delay before showing the popover (in milliseconds) */
|
|
75
|
+
readonly fuiPopoverShowDelay: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
76
|
+
/** Delay before hiding the popover (in milliseconds) */
|
|
77
|
+
readonly fuiPopoverHideDelay: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
78
|
+
/** Whether to show the arrow indicator */
|
|
79
|
+
readonly fuiPopoverHasArrow: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
80
|
+
/** Whether to close on outside click */
|
|
81
|
+
readonly fuiPopoverCloseOnOutsideClick: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
82
|
+
/** Whether the popover trigger is disabled */
|
|
83
|
+
readonly fuiPopoverDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
84
|
+
/** Manual control for showing/hiding the popover (only works with trigger="manual") */
|
|
85
|
+
readonly fuiPopoverOpen: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
86
|
+
/** Emits when the popover is opened */
|
|
87
|
+
readonly fuiPopoverOpened: _angular_core.OutputEmitterRef<void>;
|
|
88
|
+
/** Emits when the popover is closed */
|
|
89
|
+
readonly fuiPopoverClosed: _angular_core.OutputEmitterRef<void>;
|
|
90
|
+
readonly _isOpen: WritableSignal<boolean>;
|
|
91
|
+
private _overlayRef;
|
|
92
|
+
private _embeddedViewRef;
|
|
93
|
+
private _showTimeout;
|
|
94
|
+
private _hideTimeout;
|
|
95
|
+
private _subscriptions;
|
|
96
|
+
private readonly _elementRef;
|
|
97
|
+
private readonly _overlayService;
|
|
98
|
+
constructor();
|
|
99
|
+
ngOnDestroy(): void;
|
|
100
|
+
onHostClick(): void;
|
|
101
|
+
onMouseEnter(): void;
|
|
102
|
+
onMouseLeave(): void;
|
|
103
|
+
onFocus(): void;
|
|
104
|
+
onBlur(): void;
|
|
105
|
+
onKeydown(event: KeyboardEvent): void;
|
|
106
|
+
/** Programmatically show the popover */
|
|
107
|
+
show(): void;
|
|
108
|
+
/** Programmatically hide the popover */
|
|
109
|
+
hide(): void;
|
|
110
|
+
/** Toggle popover visibility */
|
|
111
|
+
toggle(): void;
|
|
112
|
+
private _scheduleShow;
|
|
113
|
+
private _scheduleHide;
|
|
114
|
+
private _previouslyFocusedElement;
|
|
115
|
+
private _showPopover;
|
|
116
|
+
private _hidePopover;
|
|
117
|
+
private _focusFirstInOverlay;
|
|
118
|
+
private _createPopover;
|
|
119
|
+
private _getPositions;
|
|
120
|
+
private _destroyPopover;
|
|
121
|
+
private _clearTimeouts;
|
|
122
|
+
private readonly _onDocumentClick;
|
|
123
|
+
private readonly _onOverlayMouseEnter;
|
|
124
|
+
private readonly _onOverlayMouseLeave;
|
|
125
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiPopoverTriggerDirective, never>;
|
|
126
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FuiPopoverTriggerDirective, "[fuiPopoverTrigger]", never, { "fuiPopoverTrigger": { "alias": "fuiPopoverTrigger"; "required": true; "isSignal": true; }; "fuiPopoverPosition": { "alias": "fuiPopoverPosition"; "required": false; "isSignal": true; }; "fuiPopoverTriggerOn": { "alias": "fuiPopoverTriggerOn"; "required": false; "isSignal": true; }; "fuiPopoverShowDelay": { "alias": "fuiPopoverShowDelay"; "required": false; "isSignal": true; }; "fuiPopoverHideDelay": { "alias": "fuiPopoverHideDelay"; "required": false; "isSignal": true; }; "fuiPopoverHasArrow": { "alias": "fuiPopoverHasArrow"; "required": false; "isSignal": true; }; "fuiPopoverCloseOnOutsideClick": { "alias": "fuiPopoverCloseOnOutsideClick"; "required": false; "isSignal": true; }; "fuiPopoverDisabled": { "alias": "fuiPopoverDisabled"; "required": false; "isSignal": true; }; "fuiPopoverOpen": { "alias": "fuiPopoverOpen"; "required": false; "isSignal": true; }; }, { "fuiPopoverOpened": "fuiPopoverOpened"; "fuiPopoverClosed": "fuiPopoverClosed"; }, never, never, true, never>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export { FuiPopoverComponent, FuiPopoverTriggerDirective, POPOVER_POSITIONS, POPOVER_TRIGGER_MODES };
|
|
130
|
+
export type { PopoverPosition, PopoverTriggerMode };
|
|
131
|
+
//# sourceMappingURL=raintonic-formaui-components-popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-popover.d.ts","sources":["../../../lib/components/popover/popover.types.ts","../../../lib/components/popover/popover.component.ts","../../../lib/components/popover/popover-trigger.directive.ts"],"mappings":";;;AAAM,KAAM,kBAAkB;AACxB,KAAM,eAAe;AAc3B,cAAa,iBAAiB;AAe9B,cAAa,qBAAqB;;AC3BlC;;;;;;;;AAQG;AACH,cAaa,mBAAmB;;uBAEb,aAAA,CAAA,WAAA;;uBAGA,aAAA,CAAA,WAAA,CAAA,eAAA;;AAGjB,8BAA0B,MAAM;;AAWhC,2BAAuB,MAAM;oDAnBlB,mBAAmB;sDAAnB,mBAAmB;AAmC/B;;ACxCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCG;AACH,cAQa,0BAA2B,YAAW,SAAS;;gCAEhC,aAAA,CAAA,WAAA,CAAA,WAAA;;iCAGC,aAAA,CAAA,wBAAA,CAAA,eAAA;;kCAKC,aAAA,CAAA,wBAAA,CAAA,kBAAA;;kCAKA,aAAA,CAAA,wBAAA;;kCAGA,aAAA,CAAA,wBAAA;;iCAGD,aAAA,CAAA,wBAAA;;4CAGW,aAAA,CAAA,wBAAA;;iCAGX,aAAA,CAAA,wBAAA;;6BAGJ,aAAA,CAAA,wBAAA;;+BAGE,aAAA,CAAA,gBAAA;;+BAGA,aAAA,CAAA,gBAAA;AAGzB,sBAAkB,cAAc;;;;;;AAQhC;AACA;;AAsBA;AAMA;AAWA;AAOA;AAOA;AAOA;AAOA,qBAAiB,aAAa;;AAQ9B;;AAOA;;AAKA;AAQA;AAYA;;AAcA;AAyBA;AAiBA;AAaA;AAsCA;AAwDA;AAoBA;AAWA;AAUA;AAIA;oDA3WW,0BAA0B;sDAA1B,0BAA0B;AAgXtC;;;;","names":[]}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Progress bar mode types (compatible with mat-progress-bar)
|
|
5
|
+
*/
|
|
6
|
+
type ProgressBarMode = 'determinate' | 'indeterminate' | 'buffer' | 'query';
|
|
7
|
+
/**
|
|
8
|
+
* Progress bar color variants
|
|
9
|
+
*/
|
|
10
|
+
type ProgressBarColor = 'primary' | 'accent' | 'warn' | 'success' | 'info';
|
|
11
|
+
/**
|
|
12
|
+
* # FuiProgressbar Component
|
|
13
|
+
*
|
|
14
|
+
* A progress bar component compatible with Angular Material's mat-progress-bar interface.
|
|
15
|
+
*
|
|
16
|
+
* ## Features
|
|
17
|
+
* - Multiple modes: determinate, indeterminate, buffer, query
|
|
18
|
+
* - Color variants: primary, accent, warn, success, info
|
|
19
|
+
* - Accessible with ARIA attributes
|
|
20
|
+
* - Smooth animations
|
|
21
|
+
*
|
|
22
|
+
* ## Usage
|
|
23
|
+
*
|
|
24
|
+
* ### Determinate Progress
|
|
25
|
+
* ```html
|
|
26
|
+
* <fui-progressbar [value]="50"></fui-progressbar>
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ### Indeterminate Progress
|
|
30
|
+
* ```html
|
|
31
|
+
* <fui-progressbar mode="indeterminate"></fui-progressbar>
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* ### Buffer Progress
|
|
35
|
+
* ```html
|
|
36
|
+
* <fui-progressbar mode="buffer" [value]="50" [bufferValue]="75"></fui-progressbar>
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* ### Query Progress
|
|
40
|
+
* ```html
|
|
41
|
+
* <fui-progressbar mode="query"></fui-progressbar>
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* ### Color Variants
|
|
45
|
+
* ```html
|
|
46
|
+
* <fui-progressbar [value]="50" color="success"></fui-progressbar>
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
declare class FuiProgressbarComponent {
|
|
50
|
+
/**
|
|
51
|
+
* Progress bar mode (compatible with mat-progress-bar)
|
|
52
|
+
* - determinate: Shows a specific progress value
|
|
53
|
+
* - indeterminate: Shows an animation for unknown progress
|
|
54
|
+
* - buffer: Shows progress with a buffer indicator
|
|
55
|
+
* - query: Shows a query animation (reverse indeterminate)
|
|
56
|
+
*/
|
|
57
|
+
readonly mode: _angular_core.InputSignal<ProgressBarMode>;
|
|
58
|
+
/**
|
|
59
|
+
* Progress value (0-100)
|
|
60
|
+
*/
|
|
61
|
+
readonly value: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
62
|
+
/**
|
|
63
|
+
* Buffer value for buffer mode (0-100)
|
|
64
|
+
*/
|
|
65
|
+
readonly bufferValue: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
66
|
+
/**
|
|
67
|
+
* Color variant
|
|
68
|
+
*/
|
|
69
|
+
readonly color: _angular_core.InputSignal<ProgressBarColor>;
|
|
70
|
+
/**
|
|
71
|
+
* ARIA label for accessibility.
|
|
72
|
+
* When neither aria-label nor aria-labelledby is provided, a default label
|
|
73
|
+
* is computed based on the mode (e.g. "Loading" for indeterminate/query).
|
|
74
|
+
*/
|
|
75
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
76
|
+
/**
|
|
77
|
+
* ARIA labelledby for accessibility
|
|
78
|
+
*/
|
|
79
|
+
readonly ariaLabelledby: _angular_core.InputSignal<string | null>;
|
|
80
|
+
/**
|
|
81
|
+
* Effective aria-label: uses the explicit input, or falls back to a
|
|
82
|
+
* default when no aria-labelledby is provided either.
|
|
83
|
+
*/
|
|
84
|
+
readonly effectiveAriaLabel: _angular_core.Signal<string | null>;
|
|
85
|
+
/**
|
|
86
|
+
* Clamped progress value (0-100)
|
|
87
|
+
*/
|
|
88
|
+
readonly clampedValue: _angular_core.Signal<number>;
|
|
89
|
+
/**
|
|
90
|
+
* Clamped buffer value (0-100)
|
|
91
|
+
*/
|
|
92
|
+
readonly clampedBufferValue: _angular_core.Signal<number>;
|
|
93
|
+
/**
|
|
94
|
+
* Transform for the primary progress bar
|
|
95
|
+
*/
|
|
96
|
+
readonly primaryTransform: _angular_core.Signal<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Transform for the buffer bar
|
|
99
|
+
*/
|
|
100
|
+
readonly bufferTransform: _angular_core.Signal<string>;
|
|
101
|
+
/**
|
|
102
|
+
* Clamps a value between 0 and 100
|
|
103
|
+
*/
|
|
104
|
+
private _clamp;
|
|
105
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiProgressbarComponent, never>;
|
|
106
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiProgressbarComponent, "fui-progressbar", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "bufferValue": { "alias": "bufferValue"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export { FuiProgressbarComponent };
|
|
110
|
+
export type { ProgressBarColor, ProgressBarMode };
|
|
111
|
+
//# sourceMappingURL=raintonic-formaui-components-progressbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-progressbar.d.ts","sources":["../../../lib/components/progressbar/progressbar.component.ts"],"mappings":";;AAEA;;AAEG;AACG,KAAM,eAAe;AAE3B;;AAEG;AACG,KAAM,gBAAgB;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCG;AACH,cA2Ba,uBAAuB;AAClC;;;;;;AAMG;mBACU,aAAA,CAAA,WAAA,CAAA,eAAA;AAEb;;AAEG;oBACW,aAAA,CAAA,wBAAA;AAId;;AAEG;0BACiB,aAAA,CAAA,wBAAA;AAIpB;;AAEG;oBACW,aAAA,CAAA,WAAA,CAAA,gBAAA;AAEd;;;;AAIG;wBACe,aAAA,CAAA,WAAA;AAElB;;AAEG;6BACoB,aAAA,CAAA,WAAA;AAEvB;;;AAGG;iCACwB,aAAA,CAAA,MAAA;AAW3B;;AAEG;2BACkB,aAAA,CAAA,MAAA;AAErB;;AAEG;iCACwB,aAAA,CAAA,MAAA;AAE3B;;AAEG;+BACsB,aAAA,CAAA,MAAA;AAKzB;;AAEG;8BACqB,aAAA,CAAA,MAAA;AAKxB;;AAEG;AACH;oDArFW,uBAAuB;sDAAvB,uBAAuB;AAwFnC;;;;","names":[]}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken, ElementRef, DoCheck, OnDestroy, OutputEmitterRef, Signal } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import { ErrorStateMatcher } from '@raintonic/formaui/core';
|
|
6
|
+
|
|
7
|
+
type FuiRadioOrientation = 'horizontal' | 'vertical';
|
|
8
|
+
interface FuiRadioChange<T = unknown> {
|
|
9
|
+
source: unknown;
|
|
10
|
+
value: T;
|
|
11
|
+
}
|
|
12
|
+
interface FuiRadioGroupHost {
|
|
13
|
+
disabled(): boolean;
|
|
14
|
+
selectValue(value: unknown, source: unknown): void;
|
|
15
|
+
setFocused(focused: boolean): void;
|
|
16
|
+
selectAdjacentRadio(direction: 1 | -1): void;
|
|
17
|
+
}
|
|
18
|
+
declare const FUI_RADIO_GROUP: InjectionToken<FuiRadioGroupHost>;
|
|
19
|
+
|
|
20
|
+
declare class FuiRadioButtonComponent {
|
|
21
|
+
static nextId: number;
|
|
22
|
+
readonly value: _angular_core.InputSignal<unknown>;
|
|
23
|
+
readonly disabledInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
24
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
25
|
+
readonly ariaLabelledby: _angular_core.InputSignal<string | null>;
|
|
26
|
+
readonly _checked: _angular_core.WritableSignal<boolean>;
|
|
27
|
+
readonly _disabled: _angular_core.WritableSignal<boolean>;
|
|
28
|
+
readonly _focused: _angular_core.WritableSignal<boolean>;
|
|
29
|
+
readonly _name: _angular_core.WritableSignal<string>;
|
|
30
|
+
readonly _tabIndex: _angular_core.WritableSignal<number>;
|
|
31
|
+
private _uid;
|
|
32
|
+
readonly id: string;
|
|
33
|
+
readonly inputId: string;
|
|
34
|
+
private _radioGroup;
|
|
35
|
+
readonly inputElement: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
36
|
+
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
37
|
+
onInputChange(event: Event): void;
|
|
38
|
+
onFocus(): void;
|
|
39
|
+
onBlur(): void;
|
|
40
|
+
onKeydown(event: KeyboardEvent): void;
|
|
41
|
+
focus(): void;
|
|
42
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiRadioButtonComponent, never>;
|
|
43
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiRadioButtonComponent, "fui-radio-button", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare class FuiRadioGroupComponent implements ControlValueAccessor, DoCheck, OnDestroy {
|
|
47
|
+
static nextId: number;
|
|
48
|
+
readonly controlType = "fui-radio-group";
|
|
49
|
+
readonly name: _angular_core.InputSignal<string>;
|
|
50
|
+
readonly orientation: _angular_core.InputSignal<FuiRadioOrientation>;
|
|
51
|
+
readonly disabledInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
52
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
53
|
+
readonly ariaLabelledby: _angular_core.InputSignal<string | null>;
|
|
54
|
+
readonly errorStateMatcher: _angular_core.InputSignal<ErrorStateMatcher | null>;
|
|
55
|
+
readonly change: OutputEmitterRef<FuiRadioChange>;
|
|
56
|
+
readonly radioButtons: Signal<readonly FuiRadioButtonComponent[]>;
|
|
57
|
+
private readonly _value;
|
|
58
|
+
private readonly _focused;
|
|
59
|
+
private readonly _disabled;
|
|
60
|
+
private readonly _required;
|
|
61
|
+
private readonly _ngControlDisabled;
|
|
62
|
+
private readonly _errorState;
|
|
63
|
+
readonly value: Signal<unknown>;
|
|
64
|
+
readonly focused: Signal<boolean>;
|
|
65
|
+
readonly errorState: Signal<boolean>;
|
|
66
|
+
readonly required: Signal<boolean>;
|
|
67
|
+
readonly disabled: Signal<boolean>;
|
|
68
|
+
readonly stateChanges: Subject<void>;
|
|
69
|
+
private _uid;
|
|
70
|
+
readonly id: string;
|
|
71
|
+
private _parentForm;
|
|
72
|
+
private _parentFormGroup;
|
|
73
|
+
private _defaultErrorStateMatcher;
|
|
74
|
+
private readonly _ngControlRef;
|
|
75
|
+
get ngControl(): NgControl | null;
|
|
76
|
+
private _onChange;
|
|
77
|
+
private _onTouched;
|
|
78
|
+
private _formControlInitialized;
|
|
79
|
+
constructor();
|
|
80
|
+
ngDoCheck(): void;
|
|
81
|
+
ngOnDestroy(): void;
|
|
82
|
+
writeValue(value: unknown): void;
|
|
83
|
+
registerOnChange(fn: (value: unknown) => void): void;
|
|
84
|
+
registerOnTouched(fn: () => void): void;
|
|
85
|
+
setDisabledState(isDisabled: boolean): void;
|
|
86
|
+
selectValue(value: unknown, source: FuiRadioButtonComponent): void;
|
|
87
|
+
setFocused(focused: boolean): void;
|
|
88
|
+
selectAdjacentRadio(direction: 1 | -1): void;
|
|
89
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiRadioGroupComponent, never>;
|
|
90
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiRadioGroupComponent, "fui-radio-group", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; "isSignal": true; }; }, { "change": "change"; }, ["radioButtons"], ["*"], true, never>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export { FUI_RADIO_GROUP, FuiRadioButtonComponent, FuiRadioGroupComponent };
|
|
94
|
+
export type { FuiRadioChange, FuiRadioGroupHost, FuiRadioOrientation };
|
|
95
|
+
//# sourceMappingURL=raintonic-formaui-components-radio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-radio.d.ts","sources":["../../../lib/components/radio/radio.types.ts","../../../lib/components/radio/radio-button.component.ts","../../../lib/components/radio/radio-group.component.ts"],"mappings":";;;;;;KAEY,mBAAmB;AAEzB,UAAW,cAAc;;;AAG9B;UAEgB,iBAAiB;;;AAGhC;;AAED;AAED,cAAa,eAAe,EAAA,cAAA,CAAA,iBAAA;;ACF5B,cAgBa,uBAAuB;;oBAGpB,aAAA,CAAA,WAAA;4BACQ,aAAA,CAAA,wBAAA;wBAIJ,aAAA,CAAA,WAAA;6BACK,aAAA,CAAA,WAAA;uBAKN,aAAA,CAAA,cAAA;wBACC,aAAA,CAAA,cAAA;uBACD,aAAA,CAAA,cAAA;oBACH,aAAA,CAAA,cAAA;wBACI,aAAA,CAAA,cAAA;;;;;2BAQG,aAAA,CAAA,MAAA,CAAA,UAAA,CAAA,gBAAA;yBAEF,aAAA,CAAA,MAAA;AAInB,yBAAqB,KAAK;AAQ1B;AAKA;AAKA,qBAAiB,aAAa;AAgB9B;oDAlEW,uBAAuB;sDAAvB,uBAAuB;AAqEnC;;AC1ED,cA2Ba,sBAAuB,YAAW,oBAAoB,EAAE,OAAO,EAAE,SAAS;;;mBAKxE,aAAA,CAAA,WAAA;0BACO,aAAA,CAAA,WAAA,CAAA,mBAAA;4BACE,aAAA,CAAA,wBAAA;wBAIJ,aAAA,CAAA,WAAA;6BACK,aAAA,CAAA,WAAA;gCAGG,aAAA,CAAA,WAAA,CAAA,iBAAA;AAG1B,qBAAiB,gBAAgB,CAAC,cAAc;2BAG3B,MAAA,UAAA,uBAAA;AAGrB;AACA;AACA;AACA;AACA;AACA;AAEA,oBAAgB,MAAM;AACtB,sBAAkB,MAAM;yBACL,MAAA;AACnB,uBAAmB,MAAM;AACzB,uBAAmB,MAAM;2BAIJ,OAAA;;;;;;AAQrB;AACA,qBAAiB,SAAS;;;;;AAoD1B;AAgBA;AAKA;;AAUA;AAIA;wCAMoC,uBAAuB;AAQ3D;;oDArJW,sBAAsB;sDAAtB,sBAAsB;AA+KlC;;;;","names":[]}
|