@raintonic/formaui 0.4.0 → 0.9.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 +80 -35
- package/README.md +22 -26
- package/fesm2022/raintonic-formaui-cdk-drag-drop.mjs +39 -41
- package/fesm2022/raintonic-formaui-cdk-drag-drop.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-cdk-form-field.mjs +207 -3
- package/fesm2022/raintonic-formaui-cdk-form-field.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-cdk-overlay.mjs +19 -1
- package/fesm2022/raintonic-formaui-cdk-overlay.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-cdk-virtual-scroll.mjs +5 -12
- package/fesm2022/raintonic-formaui-cdk-virtual-scroll.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-accordion.mjs +8 -5
- package/fesm2022/raintonic-formaui-components-accordion.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-alert.mjs +16 -2
- package/fesm2022/raintonic-formaui-components-alert.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-autocomplete.mjs +255 -462
- package/fesm2022/raintonic-formaui-components-autocomplete.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-avatar.mjs +34 -59
- package/fesm2022/raintonic-formaui-components-avatar.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-badge.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-badge.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-breadcrumb.mjs +4 -4
- package/fesm2022/raintonic-formaui-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-button-group.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-button-group.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-button.mjs +15 -20
- package/fesm2022/raintonic-formaui-components-button.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-card.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-card.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-checkbox.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-checkbox.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-chip.mjs +97 -0
- package/fesm2022/raintonic-formaui-components-chip.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-data-table.mjs +69 -29
- package/fesm2022/raintonic-formaui-components-data-table.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-date-picker.mjs +223 -144
- package/fesm2022/raintonic-formaui-components-date-picker.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-divider.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-divider.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-drawer.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-drawer.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-dropdown-menu.mjs +888 -0
- package/fesm2022/raintonic-formaui-components-dropdown-menu.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-dual-tier-navigation.mjs +774 -0
- package/fesm2022/raintonic-formaui-components-dual-tier-navigation.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-empty-state.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-empty-state.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-file-upload.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-file-upload.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-form-field.mjs +81 -50
- package/fesm2022/raintonic-formaui-components-form-field.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-icon.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-icon.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-input.mjs +47 -12
- package/fesm2022/raintonic-formaui-components-input.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-list.mjs +4 -4
- package/fesm2022/raintonic-formaui-components-list.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-number-input.mjs +20 -12
- package/fesm2022/raintonic-formaui-components-number-input.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-paginator.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-paginator.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-password-input.mjs +35 -110
- package/fesm2022/raintonic-formaui-components-password-input.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-popover.mjs +3 -2
- package/fesm2022/raintonic-formaui-components-popover.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-progressbar.mjs +3 -2
- package/fesm2022/raintonic-formaui-components-progressbar.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-radio.mjs +5 -6
- package/fesm2022/raintonic-formaui-components-radio.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-select.mjs +257 -412
- package/fesm2022/raintonic-formaui-components-select.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-side-panel.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-side-panel.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-sidebar-nav-menu.mjs +525 -0
- package/fesm2022/raintonic-formaui-components-sidebar-nav-menu.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-skeleton.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-skeleton.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-slider.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-slider.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-spinner.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-spinner.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-stepper.mjs +50 -45
- package/fesm2022/raintonic-formaui-components-stepper.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-strength-meter.mjs +149 -0
- package/fesm2022/raintonic-formaui-components-strength-meter.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tab.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-tab.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-time-picker.mjs +194 -154
- package/fesm2022/raintonic-formaui-components-time-picker.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-toggle-group.mjs +302 -0
- package/fesm2022/raintonic-formaui-components-toggle-group.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-toggle.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-toggle.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-toolbar.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-toolbar.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-tooltip.mjs +10 -4
- package/fesm2022/raintonic-formaui-components-tooltip.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-topbar.mjs +60 -0
- package/fesm2022/raintonic-formaui-components-topbar.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tree-select.mjs +59 -69
- package/fesm2022/raintonic-formaui-components-tree-select.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-tree-table.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-tree-table.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-tree.mjs +31 -5
- package/fesm2022/raintonic-formaui-components-tree.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-core.mjs +279 -1
- package/fesm2022/raintonic-formaui-core.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-services-breakpoint.mjs +93 -0
- package/fesm2022/raintonic-formaui-services-breakpoint.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-services-dialog.mjs +314 -16
- package/fesm2022/raintonic-formaui-services-dialog.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-services-notification.mjs +93 -29
- package/fesm2022/raintonic-formaui-services-notification.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-services-theme.mjs +46 -196
- package/fesm2022/raintonic-formaui-services-theme.mjs.map +1 -1
- package/fesm2022/raintonic-formaui.mjs +1 -1
- package/fesm2022/raintonic-formaui.mjs.map +1 -1
- package/llms-full.txt +2329 -450
- package/llms.txt +36 -33
- package/package.json +42 -19
- package/styles/fonts/Geist-Bold.woff2 +0 -0
- package/styles/fonts/Geist-Italic.woff2 +0 -0
- package/styles/fonts/Geist-Light.woff2 +0 -0
- package/styles/fonts/Geist-Medium.woff2 +0 -0
- package/styles/fonts/Geist-Regular.woff2 +0 -0
- package/styles/fonts/Geist-SemiBold.woff2 +0 -0
- package/styles/fonts/GeistMono-Regular.woff2 +0 -0
- package/styles/generated/_tokens.scss +906 -0
- package/styles/index.scss +11 -10
- package/styles/partials/_brand.scss +46 -0
- package/styles/partials/_constants.scss +22 -20
- package/styles/partials/_fonts.scss +54 -10
- package/styles/partials/_grid.scss +29 -18
- package/styles/partials/_mixins.scss +69 -27
- package/styles/partials/_motion.scss +28 -33
- package/styles/partials/_theme.scss +28 -255
- package/styles/partials/_type.scss +117 -0
- package/styles/partials/_typography.scss +45 -45
- package/styles/partials/_utilities.scss +198 -98
- package/styles/partials/components/_button.scss +144 -75
- package/styles/partials/components/_dialog.scss +181 -180
- package/styles/partials/components/_overlay.scss +87 -87
- package/styles/partials/themes/_dark.scss +3 -268
- package/styles/partials/themes/_light.scss +4 -268
- package/styles/styles.css +7744 -0
- package/styles/styles.entry.scss +3 -0
- package/styles/utilities.css +4802 -0
- package/styles/utilities.entry.scss +3 -0
- package/types/raintonic-formaui-cdk-drag-drop.d.ts +0 -1
- package/types/raintonic-formaui-cdk-drag-drop.d.ts.map +1 -1
- package/types/raintonic-formaui-cdk-form-field.d.ts +118 -2
- package/types/raintonic-formaui-cdk-form-field.d.ts.map +1 -1
- package/types/raintonic-formaui-cdk-overlay.d.ts +2 -0
- package/types/raintonic-formaui-cdk-overlay.d.ts.map +1 -1
- package/types/raintonic-formaui-cdk-virtual-scroll.d.ts +0 -1
- package/types/raintonic-formaui-cdk-virtual-scroll.d.ts.map +1 -1
- package/types/raintonic-formaui-components-accordion.d.ts +1 -1
- package/types/raintonic-formaui-components-accordion.d.ts.map +1 -1
- package/types/raintonic-formaui-components-alert.d.ts +6 -1
- package/types/raintonic-formaui-components-alert.d.ts.map +1 -1
- package/types/raintonic-formaui-components-autocomplete.d.ts +73 -116
- package/types/raintonic-formaui-components-autocomplete.d.ts.map +1 -1
- package/types/raintonic-formaui-components-avatar.d.ts +13 -31
- package/types/raintonic-formaui-components-avatar.d.ts.map +1 -1
- package/types/raintonic-formaui-components-button.d.ts +4 -10
- package/types/raintonic-formaui-components-button.d.ts.map +1 -1
- package/types/raintonic-formaui-components-chip.d.ts +43 -0
- package/types/raintonic-formaui-components-chip.d.ts.map +1 -0
- package/types/raintonic-formaui-components-data-table.d.ts +48 -11
- package/types/raintonic-formaui-components-data-table.d.ts.map +1 -1
- package/types/raintonic-formaui-components-date-picker.d.ts +59 -23
- package/types/raintonic-formaui-components-date-picker.d.ts.map +1 -1
- package/types/raintonic-formaui-components-dropdown-menu.d.ts +394 -0
- package/types/raintonic-formaui-components-dropdown-menu.d.ts.map +1 -0
- package/types/raintonic-formaui-components-dual-tier-navigation.d.ts +87 -0
- package/types/raintonic-formaui-components-dual-tier-navigation.d.ts.map +1 -0
- package/types/raintonic-formaui-components-form-field.d.ts +51 -21
- package/types/raintonic-formaui-components-form-field.d.ts.map +1 -1
- package/types/raintonic-formaui-components-input.d.ts +20 -11
- package/types/raintonic-formaui-components-input.d.ts.map +1 -1
- package/types/raintonic-formaui-components-number-input.d.ts +5 -3
- package/types/raintonic-formaui-components-number-input.d.ts.map +1 -1
- package/types/raintonic-formaui-components-password-input.d.ts +18 -32
- package/types/raintonic-formaui-components-password-input.d.ts.map +1 -1
- package/types/raintonic-formaui-components-popover.d.ts.map +1 -1
- package/types/raintonic-formaui-components-progressbar.d.ts +1 -1
- package/types/raintonic-formaui-components-progressbar.d.ts.map +1 -1
- package/types/raintonic-formaui-components-radio.d.ts +1 -2
- package/types/raintonic-formaui-components-radio.d.ts.map +1 -1
- package/types/raintonic-formaui-components-select.d.ts +107 -76
- package/types/raintonic-formaui-components-select.d.ts.map +1 -1
- package/types/raintonic-formaui-components-sidebar-nav-menu.d.ts +223 -0
- package/types/raintonic-formaui-components-sidebar-nav-menu.d.ts.map +1 -0
- package/types/raintonic-formaui-components-stepper.d.ts +4 -2
- package/types/raintonic-formaui-components-stepper.d.ts.map +1 -1
- package/types/raintonic-formaui-components-strength-meter.d.ts +78 -0
- package/types/raintonic-formaui-components-strength-meter.d.ts.map +1 -0
- package/types/raintonic-formaui-components-time-picker.d.ts +44 -24
- package/types/raintonic-formaui-components-time-picker.d.ts.map +1 -1
- package/types/raintonic-formaui-components-toggle-group.d.ts +100 -0
- package/types/raintonic-formaui-components-toggle-group.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tooltip.d.ts +2 -1
- package/types/raintonic-formaui-components-tooltip.d.ts.map +1 -1
- package/types/raintonic-formaui-components-topbar.d.ts +48 -0
- package/types/raintonic-formaui-components-topbar.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tree-select.d.ts +25 -9
- package/types/raintonic-formaui-components-tree-select.d.ts.map +1 -1
- package/types/raintonic-formaui-components-tree.d.ts +12 -1
- package/types/raintonic-formaui-components-tree.d.ts.map +1 -1
- package/types/raintonic-formaui-core.d.ts +243 -5
- package/types/raintonic-formaui-core.d.ts.map +1 -1
- package/types/raintonic-formaui-services-breakpoint.d.ts +44 -0
- package/types/raintonic-formaui-services-breakpoint.d.ts.map +1 -0
- package/types/raintonic-formaui-services-dialog.d.ts +141 -2
- package/types/raintonic-formaui-services-dialog.d.ts.map +1 -1
- package/types/raintonic-formaui-services-notification.d.ts +24 -2
- package/types/raintonic-formaui-services-notification.d.ts.map +1 -1
- package/types/raintonic-formaui-services-theme.d.ts +13 -103
- package/types/raintonic-formaui-services-theme.d.ts.map +1 -1
- package/types/raintonic-formaui.d.ts +1 -1
- package/fesm2022/raintonic-formaui-components-big-menu.mjs +0 -86
- package/fesm2022/raintonic-formaui-components-big-menu.mjs.map +0 -1
- package/fesm2022/raintonic-formaui-components-menu.mjs +0 -896
- package/fesm2022/raintonic-formaui-components-menu.mjs.map +0 -1
- package/fesm2022/raintonic-formaui-components-sidebar.mjs +0 -275
- package/fesm2022/raintonic-formaui-components-sidebar.mjs.map +0 -1
- package/fesm2022/raintonic-formaui-components-tag.mjs +0 -95
- package/fesm2022/raintonic-formaui-components-tag.mjs.map +0 -1
- package/styles/_fonts-entry.scss +0 -3
- package/styles/fonts/inter-tight-latin-italic.woff2 +0 -0
- package/styles/fonts/inter-tight-latin.woff2 +0 -0
- package/types/raintonic-formaui-components-big-menu.d.ts +0 -73
- package/types/raintonic-formaui-components-big-menu.d.ts.map +0 -1
- package/types/raintonic-formaui-components-menu.d.ts +0 -403
- package/types/raintonic-formaui-components-menu.d.ts.map +0 -1
- package/types/raintonic-formaui-components-sidebar.d.ts +0 -185
- package/types/raintonic-formaui-components-sidebar.d.ts.map +0 -1
- package/types/raintonic-formaui-components-tag.d.ts +0 -43
- package/types/raintonic-formaui-components-tag.d.ts.map +0 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as _raintonic_formaui_components_strength_meter from '@raintonic/formaui/components/strength-meter';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Signal } from '@angular/core';
|
|
4
|
+
import { FuiIntlBase } from '@raintonic/formaui/core';
|
|
5
|
+
|
|
6
|
+
type PasswordStrength = 'weak' | 'fair' | 'good' | 'strong';
|
|
7
|
+
interface PasswordStrengthConfig {
|
|
8
|
+
minLength?: number;
|
|
9
|
+
requireUppercase?: boolean;
|
|
10
|
+
requireLowercase?: boolean;
|
|
11
|
+
requireNumbers?: boolean;
|
|
12
|
+
requireSpecial?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const DEFAULT_STRENGTH_CONFIG: PasswordStrengthConfig;
|
|
15
|
+
|
|
16
|
+
declare class FuiStrengthMeterIntl extends FuiIntlBase {
|
|
17
|
+
strengthAriaLabel(level: string): string;
|
|
18
|
+
ruleMinLength(min: number): string;
|
|
19
|
+
ruleUppercase: string;
|
|
20
|
+
ruleLowercase: string;
|
|
21
|
+
ruleNumbers: string;
|
|
22
|
+
ruleSpecial: string;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FuiStrengthMeterIntl, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FuiStrengthMeterIntl>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* # FuiStrengthMeterComponent
|
|
29
|
+
*
|
|
30
|
+
* A password strength meter that displays per-rule satisfaction bars
|
|
31
|
+
* and a rule checklist. Computes strength from a `value` input (the
|
|
32
|
+
* password string) and a `config` input controlling which rules apply.
|
|
33
|
+
*
|
|
34
|
+
* ## Features
|
|
35
|
+
* - Per-rule bar segments that light up when satisfied
|
|
36
|
+
* - Rule checklist with check/x icons
|
|
37
|
+
* - Configurable rules (min length, uppercase, lowercase, numbers, special)
|
|
38
|
+
* - Intl support via DI
|
|
39
|
+
* - Can be used standalone or inside a password-input template
|
|
40
|
+
*
|
|
41
|
+
* ## Usage
|
|
42
|
+
*
|
|
43
|
+
* ### Standalone
|
|
44
|
+
* ```html
|
|
45
|
+
* <fui-strength-meter [value]="password" [config]="{ minLength: 10 }"></fui-strength-meter>
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* ### Used with password-input
|
|
49
|
+
* Wire the strength meter alongside a password-input control to show real-time
|
|
50
|
+
* password strength feedback.
|
|
51
|
+
*/
|
|
52
|
+
declare class FuiStrengthMeterComponent {
|
|
53
|
+
readonly intl: FuiStrengthMeterIntl;
|
|
54
|
+
private readonly _cdr;
|
|
55
|
+
/** The password value to evaluate. */
|
|
56
|
+
readonly value: i0.InputSignal<string>;
|
|
57
|
+
/** Configuration controlling which rules are active. */
|
|
58
|
+
readonly config: i0.InputSignal<_raintonic_formaui_components_strength_meter.PasswordStrengthConfig>;
|
|
59
|
+
/** Computed overall strength level. */
|
|
60
|
+
readonly strength: Signal<PasswordStrength>;
|
|
61
|
+
/**
|
|
62
|
+
* Per-rule satisfaction state. Each entry drives one bar segment and one
|
|
63
|
+
* checklist row.
|
|
64
|
+
*/
|
|
65
|
+
readonly rules: Signal<{
|
|
66
|
+
key: string;
|
|
67
|
+
label: string;
|
|
68
|
+
satisfied: boolean;
|
|
69
|
+
}[]>;
|
|
70
|
+
constructor();
|
|
71
|
+
private _calculateStrength;
|
|
72
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FuiStrengthMeterComponent, never>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FuiStrengthMeterComponent, "fui-strength-meter", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { DEFAULT_STRENGTH_CONFIG, FuiStrengthMeterComponent, FuiStrengthMeterIntl };
|
|
77
|
+
export type { PasswordStrength, PasswordStrengthConfig };
|
|
78
|
+
//# sourceMappingURL=raintonic-formaui-components-strength-meter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-strength-meter.d.ts","sources":["../../../lib/components/strength-meter/strength-meter.types.ts","../../../lib/components/strength-meter/strength-meter.intl.ts","../../../lib/components/strength-meter/strength-meter.component.ts"],"mappings":";;;;;AAAM,KAAM,gBAAgB;UAEX,sBAAsB;;;;;;AAMtC;AAED,cAAa,uBAAuB,EAAE,sBAMrC;;ACbD,cACa,oBAAqB,SAAQ,WAAW;AACnD;AAGA;AAGA;AACA;AACA;AACA;yCAVW,oBAAoB;6CAApB,oBAAoB;AAWhC;;ACPD;;;;;;;;;;;;;;;;;;;;;;;;AAwBG;AACH,cAaa,yBAAyB;mBACvB,oBAAA;AACb;;oBAGcA,EAAA,CAAA,WAAA;;qBAGCA,EAAA,CAAA,WAAA,CAAA,4CAAA,CAAA,sBAAA;;AAGf,uBAAmB,MAAM,CAAC,gBAAgB;AAI1C;;;AAGG;AACH,oBAAgB,MAAM;;;;AAAmD;;AAgCzE;yCAnDW,yBAAyB;2CAAzB,yBAAyB;AA+ErC;;;;","names":["_angular_core"]}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
2
|
+
import { AfterViewInit, OnDestroy, InputSignal, InputSignalWithTransform, OutputEmitterRef, WritableSignal, ElementRef } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor, Validator, NgControl, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import { FuiIntlBase, FuiFormFieldControl, ErrorStateMatcher } from '@raintonic/formaui/core';
|
|
6
|
+
import { FuiInputDirective } from '@raintonic/formaui/components/input';
|
|
7
|
+
import * as i1 from '@raintonic/formaui/cdk/form-field';
|
|
6
8
|
|
|
7
9
|
declare class FuiTimePickerIntl extends FuiIntlBase {
|
|
8
10
|
toggleAriaLabel: string;
|
|
@@ -24,9 +26,14 @@ interface TimeOption {
|
|
|
24
26
|
disabled: boolean;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
declare class FuiTimePickerComponent implements ControlValueAccessor, FuiFormFieldControl<string>,
|
|
29
|
+
declare class FuiTimePickerComponent implements ControlValueAccessor, Validator, FuiFormFieldControl<string>, AfterViewInit, OnDestroy {
|
|
28
30
|
static nextId: number;
|
|
29
31
|
readonly controlType = "fui-time-picker";
|
|
32
|
+
readonly intl: FuiTimePickerIntl;
|
|
33
|
+
private readonly _cdr;
|
|
34
|
+
private readonly _popup;
|
|
35
|
+
private readonly _formSync;
|
|
36
|
+
private readonly _elementRef;
|
|
30
37
|
readonly formatInput: InputSignal<TimeFormat>;
|
|
31
38
|
readonly showSeconds: InputSignalWithTransform<boolean, unknown>;
|
|
32
39
|
readonly minuteStep: InputSignal<number>;
|
|
@@ -34,7 +41,7 @@ declare class FuiTimePickerComponent implements ControlValueAccessor, FuiFormFie
|
|
|
34
41
|
readonly max: InputSignal<string>;
|
|
35
42
|
readonly placeholderInput: InputSignal<string>;
|
|
36
43
|
readonly disabledInput: InputSignalWithTransform<boolean, unknown>;
|
|
37
|
-
readonly
|
|
44
|
+
readonly readonlyInput: InputSignalWithTransform<boolean, unknown>;
|
|
38
45
|
readonly errorStateMatcher: InputSignal<ErrorStateMatcher | null>;
|
|
39
46
|
readonly timeChange: OutputEmitterRef<string>;
|
|
40
47
|
/** @internal */ readonly _value: WritableSignal<TimeValue | null>;
|
|
@@ -43,8 +50,8 @@ declare class FuiTimePickerComponent implements ControlValueAccessor, FuiFormFie
|
|
|
43
50
|
private readonly _ngControlDisabled;
|
|
44
51
|
private readonly _required;
|
|
45
52
|
private readonly _errorState;
|
|
46
|
-
|
|
47
|
-
readonly
|
|
53
|
+
/** Whether the panel is open — projected from FuiPopupOverlayDirective. */
|
|
54
|
+
readonly panelOpen: _angular_core.Signal<boolean>;
|
|
48
55
|
readonly stateChanges: Subject<void>;
|
|
49
56
|
private _uid;
|
|
50
57
|
_ariaDescribedby: string | null;
|
|
@@ -58,6 +65,7 @@ declare class FuiTimePickerComponent implements ControlValueAccessor, FuiFormFie
|
|
|
58
65
|
readonly value: _angular_core.Signal<string | null>;
|
|
59
66
|
readonly focused: WritableSignal<boolean>;
|
|
60
67
|
readonly disabled: _angular_core.Signal<boolean>;
|
|
68
|
+
readonly readonly: _angular_core.Signal<boolean>;
|
|
61
69
|
readonly errorState: WritableSignal<boolean>;
|
|
62
70
|
readonly id: string;
|
|
63
71
|
readonly empty: _angular_core.Signal<boolean>;
|
|
@@ -66,28 +74,32 @@ declare class FuiTimePickerComponent implements ControlValueAccessor, FuiFormFie
|
|
|
66
74
|
readonly _timeOptions: _angular_core.Signal<TimeOption[]>;
|
|
67
75
|
inputElement?: ElementRef<HTMLInputElement>;
|
|
68
76
|
timeListPanel?: ElementRef<HTMLDivElement>;
|
|
69
|
-
|
|
70
|
-
private _overlaySubscriptions;
|
|
71
|
-
private readonly _overlayService;
|
|
72
|
-
private readonly _elementRef;
|
|
73
|
-
private readonly _document;
|
|
74
|
-
private readonly _ngZone;
|
|
75
|
-
readonly intl: FuiTimePickerIntl;
|
|
76
|
-
private readonly _cdr;
|
|
77
|
-
private _outsideClickSub?;
|
|
77
|
+
_fuiInput?: FuiInputDirective;
|
|
78
78
|
private _onChange;
|
|
79
79
|
private _onTouched;
|
|
80
|
+
private _validatorChange;
|
|
80
81
|
constructor();
|
|
81
|
-
|
|
82
|
+
ngAfterViewInit(): void;
|
|
82
83
|
ngOnDestroy(): void;
|
|
84
|
+
/** Sets the time value from the form model; accepts an ISO time string or null. */
|
|
83
85
|
writeValue(value: string | null): void;
|
|
86
|
+
/** Registers the callback Angular calls when the value should propagate to the model. */
|
|
84
87
|
registerOnChange(fn: (value: string | null) => void): void;
|
|
88
|
+
/** Registers the callback Angular calls when the control should be marked as touched. */
|
|
85
89
|
registerOnTouched(fn: () => void): void;
|
|
90
|
+
/** Enables or disables the control programmatically; mirrors the `disabled` form-control state. */
|
|
86
91
|
setDisabledState(isDisabled: boolean): void;
|
|
92
|
+
/** Stores the callback Angular calls when validator inputs (min/max) change so the form re-validates. */
|
|
93
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
94
|
+
/** Validates the current time value against min and max constraints. Returns null when valid. */
|
|
95
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
96
|
+
/** Focuses the time input and opens the time panel when the form-field container is clicked, unless disabled. */
|
|
87
97
|
onContainerClick(_event: MouseEvent): void;
|
|
98
|
+
/** Stores the space-separated list of IDs for the aria-describedby attribute. */
|
|
88
99
|
setDescribedByIds(ids: string[]): void;
|
|
89
|
-
|
|
100
|
+
/** Opens the time list panel. No-op if disabled, readonly, or already open. */
|
|
90
101
|
open(): void;
|
|
102
|
+
/** Closes the time list panel. Focus is restored to the input by the constructor effect. No-op if already closed. */
|
|
91
103
|
close(): void;
|
|
92
104
|
_togglePanel(): void;
|
|
93
105
|
_onManualInput(_event: Event): void;
|
|
@@ -96,21 +108,23 @@ declare class FuiTimePickerComponent implements ControlValueAccessor, FuiFormFie
|
|
|
96
108
|
_onBlur(): void;
|
|
97
109
|
/** Called when user selects an option from the time list dropdown. */
|
|
98
110
|
_onOptionSelected(value: TimeValue): void;
|
|
99
|
-
private _listenForOutsideClicks;
|
|
100
111
|
private _setValue;
|
|
101
|
-
private _createOverlay;
|
|
102
|
-
private _disposeOverlay;
|
|
103
112
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiTimePickerComponent, never>;
|
|
104
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiTimePickerComponent, "fui-time-picker", never, { "formatInput": { "alias": "format"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "minuteStep": { "alias": "minuteStep"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "placeholderInput": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "
|
|
113
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiTimePickerComponent, "fui-time-picker", never, { "formatInput": { "alias": "format"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "minuteStep": { "alias": "minuteStep"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "placeholderInput": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonlyInput": { "alias": "readonly"; "required": false; "isSignal": true; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; "isSignal": true; }; }, { "timeChange": "timeChange"; }, never, never, true, [{ directive: typeof i1.FuiPopupOverlayDirective; inputs: { "positions": "positions"; "panelClass": "panelClass"; "backdropClass": "backdropClass"; "scrollStrategy": "scrollStrategy"; "minWidthFromTrigger": "minWidthFromTrigger"; }; outputs: { "openedChange": "openedChange"; "escapeKey": "escapeKey"; }; }, { directive: typeof i1.FuiFormControlSyncDirective; inputs: {}; outputs: {}; }]>;
|
|
105
114
|
}
|
|
106
115
|
|
|
107
116
|
/**
|
|
108
|
-
*
|
|
117
|
+
* @deprecated Use `timeToSeconds()` for integer-precise comparison. Will be removed in v0.6.0.
|
|
109
118
|
*/
|
|
110
119
|
declare function timeToMinutes(time: TimeValue): number;
|
|
120
|
+
/**
|
|
121
|
+
* Converts a `TimeValue` to total seconds since 00:00:00.
|
|
122
|
+
* Integer-precise; safe for comparison without floating-point error.
|
|
123
|
+
*/
|
|
124
|
+
declare function timeToSeconds(t: TimeValue): number;
|
|
111
125
|
/**
|
|
112
126
|
* Compare two TimeValue objects.
|
|
113
|
-
* Returns
|
|
127
|
+
* Returns a negative number if a < b, 0 if equal, positive if a > b.
|
|
114
128
|
*/
|
|
115
129
|
declare function compareTime(a: TimeValue, b: TimeValue): number;
|
|
116
130
|
/**
|
|
@@ -154,6 +168,12 @@ declare class FuiTimeListComponent implements AfterViewInit {
|
|
|
154
168
|
readonly optionSelected: _angular_core.OutputEmitterRef<TimeValue>;
|
|
155
169
|
/** Index of the currently focused option for keyboard navigation. */
|
|
156
170
|
readonly _focusedIndex: _angular_core.WritableSignal<number>;
|
|
171
|
+
/**
|
|
172
|
+
* Label of the currently active option for the aria-live announcement region.
|
|
173
|
+
* Resolves to the focused option during keyboard navigation, falling back to
|
|
174
|
+
* the selected option's label when no keyboard focus is active.
|
|
175
|
+
*/
|
|
176
|
+
readonly activeOptionLabel: _angular_core.Signal<string>;
|
|
157
177
|
listContainer?: ElementRef<HTMLDivElement>;
|
|
158
178
|
readonly intl: FuiTimePickerIntl;
|
|
159
179
|
private readonly _cdr;
|
|
@@ -179,6 +199,6 @@ declare class FuiTimeListComponent implements AfterViewInit {
|
|
|
179
199
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiTimeListComponent, "fui-time-list", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "selectedValue": { "alias": "selectedValue"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
180
200
|
}
|
|
181
201
|
|
|
182
|
-
export { FuiTimeListComponent, FuiTimePickerComponent, FuiTimePickerIntl, compareTime, formatTime, generateTimeOptions, isTimeInRange, parseISOTimeString, parseTimeString, timeToMinutes, timeValueToString };
|
|
202
|
+
export { FuiTimeListComponent, FuiTimePickerComponent, FuiTimePickerIntl, compareTime, formatTime, generateTimeOptions, isTimeInRange, parseISOTimeString, parseTimeString, timeToMinutes, timeToSeconds, timeValueToString };
|
|
183
203
|
export type { TimeFormat, TimeOption, TimeValue };
|
|
184
204
|
//# sourceMappingURL=raintonic-formaui-components-time-picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raintonic-formaui-components-time-picker.d.ts","sources":["../../../lib/components/time-picker/time-picker.intl.ts","../../../lib/components/time-picker/time-picker.types.ts","../../../lib/components/time-picker/time-picker.component.ts","../../../lib/components/time-picker/time-picker.utils.ts","../../../lib/components/time-picker/time-list.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-time-picker.d.ts","sources":["../../../lib/components/time-picker/time-picker.intl.ts","../../../lib/components/time-picker/time-picker.types.ts","../../../lib/components/time-picker/time-picker.component.ts","../../../lib/components/time-picker/time-picker.utils.ts","../../../lib/components/time-picker/time-list.component.ts"],"mappings":";;;;;;;;AAGA,cACa,iBAAkB,SAAQ,WAAW;AAChD;AACA;AACA;oDAHW,iBAAiB;wDAAjB,iBAAiB;AAI7B;;KCRW,UAAU;UAEL,SAAS;;;;AAIzB;UAEgB,UAAU;;WAElB,SAAS;;AAEjB;;AC2CD,cA0Ca,sBACX,YAAW,oBAAoB,EAAE,SAAS,EAAE,mBAAmB,UAAU,aAAa,EAAE,SAAS;;;mBAMpF,iBAAA;AACb;AACA;AACA;AACA;AAGA,0BAAsB,WAAW,CAAC,UAAU;0BACtB,wBAAwB;AAG9C,yBAAqB,WAAW;AAChC,kBAAc,WAAW;AACzB,kBAAc,WAAW;AACzB,+BAA2B,WAAW;4BACd,wBAAwB;4BAIxB,wBAAwB;gCAIpB,WAAW,CAAC,iBAAiB;AAGzD,yBAAqB,gBAAgB;sCAGH,cAAc,CAAC,SAAS;AAC1D;AACA;AACA;AACA;AACA;;wBAGkB,aAAA,CAAA,MAAA;2BAGG,OAAA;;AAErB;;;;AAMA;AACA,qBAAiB,SAAS;0BAKN,aAAA,CAAA,MAAA;uBACH,cAAA;oBACH,aAAA,CAAA,MAAA;sBAIE,cAAA;uBACC,aAAA,CAAA,MAAA;uBACA,aAAA,CAAA,MAAA;yBACE,cAAA;;oBAGL,aAAA,CAAA,MAAA;4BAKQ,aAAA,CAAA,MAAA;2BAKD,aAAA,CAAA,MAAA;2BAGA,aAAA,CAAA,MAAA,CAAA,UAAA;AAayB,mBAAe,UAAU,CAAC,gBAAgB;AAC1C,oBAAgB,UAAU,CAAC,cAAc;gBAG1B,iBAAiB;;;;;AAyE9E;AAgBA;;AAOA;;AAWA;;AAKA;;AAKA;;AAQA;;AAKA,sBAAkB,eAAe,GAAG,gBAAgB;;AA6BpD,6BAAyB,UAAU;;AAUnC;;AAQA;;AAOA;AAQA;AAWA,2BAAuB,KAAK;AAI5B,sBAAkB,aAAa;AAc/B;AAIA;;AAwBA,6BAAyB,SAAS;AAOlC;oDAvWW,sBAAsB;sDAAtB,sBAAsB,4yBAAA,EAAA,CAAA,wBAAA,wRAAA,EAAA,CAAA,2BAAA;AA8WlC;;ACtcD;;AAEG;AACH,iBAAgB,aAAa,OAAO,SAAS;AAI7C;;;AAGG;AACH,iBAAgB,aAAa,IAAI,SAAS;AAI1C;;;AAGG;AACH,iBAAgB,WAAW,IAAI,SAAS,KAAK,SAAS;AAItD;;AAEG;AACH,iBAAgB,aAAa,OAAO,SAAS,QAAQ,SAAS,QAAQ,SAAS;AAM/E;;;;AAIG;AACH,iBAAgB,UAAU,QAAQ,SAAS,iBAAiB,UAAU;AAuBtE;;;;AAIG;AACH,iBAAgB,eAAe,sBAAsB,UAAU,GAAG,SAAS;AAsC3E;;AAEG;AACH,iBAAgB,mBAAmB,SACzB,UAAU,kDAGZ,SAAS,QACT,SAAS,GACd,UAAU;AAgBb;;AAEG;AACH,iBAAgB,iBAAiB,QAAQ,SAAS;AAOlD;;;AAGG;AACH,iBAAgB,kBAAkB,eAAe,SAAS;;ACnI1D,cAWa,oBAAqB,YAAW,aAAa;;sBAExC,aAAA,CAAA,WAAA,CAAA,UAAA;;4BAGM,aAAA,CAAA,WAAA,CAAA,SAAA;;qBAGP,aAAA,CAAA,WAAA,CAAA,UAAA;;6BAGQ,aAAA,CAAA,gBAAA,CAAA,SAAA;;4BAGD,aAAA,CAAA,cAAA;AAEtB;;;;AAIG;gCACuB,aAAA,CAAA,MAAA;AAYqB,oBAAgB,UAAU,CAAC,cAAc;mBAE3E,iBAAA;AACb;;AAgBA;;AAKA,wBAAoB,UAAU;;AAO9B,0BAAsB,UAAU;;AAMhC,qBAAiB,aAAa;;AA6B9B;;AAmBA;;AAMA;;AASA;;AAqBA;oDA1JW,oBAAoB;sDAApB,oBAAoB;AAwKhC;;;;","names":[]}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef, InjectionToken, 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
|
+
declare class FuiToggleItemComponent {
|
|
8
|
+
static nextId: number;
|
|
9
|
+
readonly value: _angular_core.InputSignal<unknown>;
|
|
10
|
+
/** @docs-private — size is controlled by the parent fui-toggle-group. Only effective when used standalone outside a group. */
|
|
11
|
+
readonly size: _angular_core.InputSignal<string>;
|
|
12
|
+
readonly disabledInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
13
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
14
|
+
readonly ariaLabelledby: _angular_core.InputSignal<string | null>;
|
|
15
|
+
readonly _checked: _angular_core.WritableSignal<boolean>;
|
|
16
|
+
readonly _disabled: _angular_core.WritableSignal<boolean>;
|
|
17
|
+
readonly _focused: _angular_core.WritableSignal<boolean>;
|
|
18
|
+
readonly _name: _angular_core.WritableSignal<string>;
|
|
19
|
+
readonly _tabIndex: _angular_core.WritableSignal<number>;
|
|
20
|
+
readonly _groupSize: _angular_core.WritableSignal<string>;
|
|
21
|
+
readonly computedClasses: _angular_core.Signal<string>;
|
|
22
|
+
private _uid;
|
|
23
|
+
readonly id: string;
|
|
24
|
+
private _toggleGroup;
|
|
25
|
+
readonly buttonElement: _angular_core.Signal<ElementRef<HTMLButtonElement> | undefined>;
|
|
26
|
+
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
27
|
+
onClick(): void;
|
|
28
|
+
onFocus(): void;
|
|
29
|
+
onBlur(): void;
|
|
30
|
+
onKeydown(event: KeyboardEvent): void;
|
|
31
|
+
focus(): void;
|
|
32
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiToggleItemComponent, never>;
|
|
33
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiToggleItemComponent, "fui-toggle-item", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "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; }; }, {}, never, ["*"], true, never>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface FuiToggleGroupChange<T = unknown> {
|
|
37
|
+
source: FuiToggleItemComponent;
|
|
38
|
+
value: T;
|
|
39
|
+
}
|
|
40
|
+
interface FuiToggleGroupHost {
|
|
41
|
+
disabled(): boolean;
|
|
42
|
+
selectValue(value: unknown, source: FuiToggleItemComponent): void;
|
|
43
|
+
setFocused(focused: boolean): void;
|
|
44
|
+
selectAdjacentButton(direction: 1 | -1): void;
|
|
45
|
+
selectFirstButton(): void;
|
|
46
|
+
selectLastButton(): void;
|
|
47
|
+
}
|
|
48
|
+
declare const FUI_TOGGLE_GROUP: InjectionToken<FuiToggleGroupHost>;
|
|
49
|
+
type FuiToggleGroupSize = 'sm' | 'md' | 'lg';
|
|
50
|
+
|
|
51
|
+
declare class FuiToggleGroupComponent implements ControlValueAccessor, DoCheck, OnDestroy {
|
|
52
|
+
private static _counter;
|
|
53
|
+
readonly controlType = "fui-toggle-group";
|
|
54
|
+
readonly name: _angular_core.InputSignal<string>;
|
|
55
|
+
readonly disabledInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
56
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
57
|
+
readonly ariaLabelledby: _angular_core.InputSignal<string | null>;
|
|
58
|
+
readonly errorStateMatcher: _angular_core.InputSignal<ErrorStateMatcher | null>;
|
|
59
|
+
readonly size: _angular_core.InputSignal<FuiToggleGroupSize>;
|
|
60
|
+
readonly change: OutputEmitterRef<FuiToggleGroupChange>;
|
|
61
|
+
readonly toggleItems: Signal<readonly FuiToggleItemComponent[]>;
|
|
62
|
+
private readonly _value;
|
|
63
|
+
private readonly _focused;
|
|
64
|
+
private readonly _disabled;
|
|
65
|
+
private readonly _required;
|
|
66
|
+
private readonly _ngControlDisabled;
|
|
67
|
+
private readonly _errorState;
|
|
68
|
+
readonly value: Signal<unknown>;
|
|
69
|
+
readonly focused: Signal<boolean>;
|
|
70
|
+
readonly errorState: Signal<boolean>;
|
|
71
|
+
readonly required: Signal<boolean>;
|
|
72
|
+
readonly disabled: Signal<boolean>;
|
|
73
|
+
readonly stateChanges: Subject<void>;
|
|
74
|
+
readonly id: string;
|
|
75
|
+
private _parentForm;
|
|
76
|
+
private _parentFormGroup;
|
|
77
|
+
private _defaultErrorStateMatcher;
|
|
78
|
+
private readonly _ngControlRef;
|
|
79
|
+
get ngControl(): NgControl | null;
|
|
80
|
+
private _onChange;
|
|
81
|
+
private _onTouched;
|
|
82
|
+
constructor();
|
|
83
|
+
ngDoCheck(): void;
|
|
84
|
+
ngOnDestroy(): void;
|
|
85
|
+
writeValue(value: unknown): void;
|
|
86
|
+
registerOnChange(fn: (value: unknown) => void): void;
|
|
87
|
+
registerOnTouched(fn: () => void): void;
|
|
88
|
+
setDisabledState(isDisabled: boolean): void;
|
|
89
|
+
selectValue(value: unknown, source: FuiToggleItemComponent): void;
|
|
90
|
+
setFocused(focused: boolean): void;
|
|
91
|
+
selectAdjacentButton(direction: 1 | -1): void;
|
|
92
|
+
selectFirstButton(): void;
|
|
93
|
+
selectLastButton(): void;
|
|
94
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiToggleGroupComponent, never>;
|
|
95
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiToggleGroupComponent, "fui-toggle-group", never, { "name": { "alias": "name"; "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; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "change": "change"; }, ["toggleItems"], ["*"], true, never>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export { FUI_TOGGLE_GROUP, FuiToggleGroupComponent, FuiToggleItemComponent };
|
|
99
|
+
export type { FuiToggleGroupChange, FuiToggleGroupHost, FuiToggleGroupSize };
|
|
100
|
+
//# sourceMappingURL=raintonic-formaui-components-toggle-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-toggle-group.d.ts","sources":["../../../lib/components/toggle-group/toggle-item/toggle-item.component.ts","../../../lib/components/toggle-group/toggle-group.types.ts","../../../lib/components/toggle-group/toggle-group/toggle-group.component.ts"],"mappings":";;;;;;AAcA,cAaa,sBAAsB;;oBAGnB,aAAA,CAAA,WAAA;;mBAED,aAAA,CAAA,WAAA;4BACS,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;yBACC,aAAA,CAAA,cAAA;8BAEK,aAAA,CAAA,MAAA;;;;4BAeF,aAAA,CAAA,MAAA,CAAA,UAAA,CAAA,iBAAA;yBAEH,aAAA,CAAA,MAAA;AAInB;AAOA;AAKA;AAKA,qBAAiB,aAAa;AA6B9B;oDA1FW,sBAAsB;sDAAtB,sBAAsB;AA6FlC;;ACrHK,UAAW,oBAAoB;YAC3B,sBAAsB;;AAE/B;UAEgB,kBAAkB;;wCAEG,sBAAsB;AAC1D;;;;AAID;AAED,cAAa,gBAAgB,EAAA,cAAA,CAAA,kBAAA;AAEvB,KAAM,kBAAkB;;ACY9B,cAyBa,uBAAwB,YAAW,oBAAoB,EAAE,OAAO,EAAE,SAAS;AACtF;;mBAIa,aAAA,CAAA,WAAA;4BACS,aAAA,CAAA,wBAAA;wBAIJ,aAAA,CAAA,WAAA;6BACK,aAAA,CAAA,WAAA;gCAGG,aAAA,CAAA,WAAA,CAAA,iBAAA;mBACb,aAAA,CAAA,WAAA,CAAA,kBAAA;AAGb,qBAAiB,gBAAgB,CAAC,oBAAoB;0BAGlC,MAAA,UAAA,sBAAA;AAGpB;AACA;AACA;AACA;AACA;AACA;AAEA,oBAAgB,MAAM;AACtB,sBAAkB,MAAM;yBACL,MAAA;AACnB,uBAAmB,MAAM;AACzB,uBAAmB,MAAM;2BAIJ,OAAA;;;;;AAOrB;AACA,qBAAiB,SAAS;;;;AAqD1B;AAgBA;AAKA;;AASA;AAIA;wCAMoC,sBAAsB;AAU1D;;AA2BA;AAYA;oDA7LW,uBAAuB;sDAAvB,uBAAuB;AAwMnC;;;;","names":[]}
|
|
@@ -168,6 +168,7 @@ declare class FuiTooltipDirective implements OnDestroy {
|
|
|
168
168
|
private _tooltipComponent;
|
|
169
169
|
private _showTimeout;
|
|
170
170
|
private _hideTimeout;
|
|
171
|
+
private _destroyed;
|
|
171
172
|
private _isHoveringTooltip;
|
|
172
173
|
readonly isVisible: Signal<boolean>;
|
|
173
174
|
readonly tooltipId: Signal<string>;
|
|
@@ -204,7 +205,7 @@ declare class FuiTooltipDirective implements OnDestroy {
|
|
|
204
205
|
private _clearTimeouts;
|
|
205
206
|
private readonly _onDocumentClick;
|
|
206
207
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiTooltipDirective, never>;
|
|
207
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FuiTooltipDirective, "[fuiTooltip]",
|
|
208
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FuiTooltipDirective, "[fuiTooltip]", ["fuiTooltip"], { "fuiTooltip": { "alias": "fuiTooltip"; "required": true; "isSignal": true; }; "fuiTooltipPosition": { "alias": "fuiTooltipPosition"; "required": false; "isSignal": true; }; "fuiTooltipSize": { "alias": "fuiTooltipSize"; "required": false; "isSignal": true; }; "fuiTooltipTrigger": { "alias": "fuiTooltipTrigger"; "required": false; "isSignal": true; }; "fuiTooltipShowDelay": { "alias": "fuiTooltipShowDelay"; "required": false; "isSignal": true; }; "fuiTooltipHideDelay": { "alias": "fuiTooltipHideDelay"; "required": false; "isSignal": true; }; "fuiTooltipDisabled": { "alias": "fuiTooltipDisabled"; "required": false; "isSignal": true; }; "fuiTooltipMaxWidth": { "alias": "fuiTooltipMaxWidth"; "required": false; "isSignal": true; }; "fuiTooltipOffset": { "alias": "fuiTooltipOffset"; "required": false; "isSignal": true; }; "fuiTooltipArrow": { "alias": "fuiTooltipArrow"; "required": false; "isSignal": true; }; "fuiTooltipShow": { "alias": "fuiTooltipShow"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
208
209
|
}
|
|
209
210
|
|
|
210
211
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raintonic-formaui-components-tooltip.d.ts","sources":["../../../lib/components/tooltip/tooltip.types.ts","../../../lib/components/tooltip/tooltip.directive.ts","../../../lib/components/tooltip/tooltip.component.ts"],"mappings":";;;AAAA;;AAEG;AACG,KAAM,eAAe;AAc3B;;AAEG;AACG,KAAM,WAAW;AAEvB;;AAEG;AACG,KAAM,cAAc;AAE1B;;AAEG;AACH,cAAa,iBAAiB;AAe9B,cAAa,aAAa;AAC1B,cAAa,gBAAgB;AAE7B;;AAEG;UACc,aAAa;eACjB,eAAe;WACnB,WAAW;cACR,cAAc;;;;;;;AAOzB;;AChCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEG;AACH,
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-tooltip.d.ts","sources":["../../../lib/components/tooltip/tooltip.types.ts","../../../lib/components/tooltip/tooltip.directive.ts","../../../lib/components/tooltip/tooltip.component.ts"],"mappings":";;;AAAA;;AAEG;AACG,KAAM,eAAe;AAc3B;;AAEG;AACG,KAAM,WAAW;AAEvB;;AAEG;AACG,KAAM,cAAc;AAE1B;;AAEG;AACH,cAAa,iBAAiB;AAe9B,cAAa,aAAa;AAC1B,cAAa,gBAAgB;AAE7B;;AAEG;UACc,aAAa;eACjB,eAAe;WACnB,WAAW;cACR,cAAc;;;;;;;AAOzB;;AChCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEG;AACH,cAQa,mBAAoB,YAAW,SAAS;AACnD;AACA;;AAEG;yBACgB,aAAA,CAAA,WAAA;AAEnB;;;AAGG;iCACwB,aAAA,CAAA,wBAAA,CAAA,eAAA;AAI3B;;;AAGG;6BACoB,aAAA,CAAA,wBAAA,CAAA,WAAA;AAIvB;;;AAGG;gCACuB,aAAA,CAAA,wBAAA,CAAA,cAAA;AAI1B;;;AAGG;kCACyB,aAAA,CAAA,wBAAA;AAE5B;;;AAGG;kCACyB,aAAA,CAAA,wBAAA;AAE5B;;;AAGG;iCACwB,aAAA,CAAA,wBAAA;AAE3B;;;AAGG;iCACwB,aAAA,CAAA,WAAA;AAE3B;;;AAGG;+BACsB,aAAA,CAAA,wBAAA;AAEzB;;;AAGG;8BACqB,aAAA,CAAA,wBAAA;AAExB;;;AAGG;6BACoB,aAAA,CAAA,wBAAA;AAGvB;AACA;;;;;;;AASA,wBAAoB,MAAM;AAC1B,wBAAoB,MAAM;AAG1B;AACA;AACA;;AAyBA;AAOA;AAOA;AAOA;AAOA;AAOA;AAWA,qBAAiB,aAAa;AAO9B;;AAEG;AACH;AAMA;;AAEG;AACH;AAIA;;AAEG;AACH;AAQA;AAeA;AAgBA;AAgBA;AAUA;AAuDA;AAwDA;AAYA;AAWA;oDAlYW,mBAAmB;sDAAnB,mBAAmB;AA2Y/B;;ACpfD;;;;;;;;;;;;;;;;;;AAkBG;AACH,cAgBa,mBAAmB;AAC9B;;AAEG;sBACa,aAAA,CAAA,WAAA;AAEhB;;AAEG;uBACc,aAAA,CAAA,WAAA,CAAA,eAAA;AAEjB;;AAEG;mBACU,aAAA,CAAA,WAAA,CAAA,WAAA;AAEb;;AAEG;uBACc,aAAA,CAAA,WAAA;AAEjB;;AAEG;oBACW,aAAA,CAAA,WAAA;AAEd;;AAEG;wBACe,aAAA,CAAA,WAAA;AAElB;;AAEG;AACH,8BAA0B,MAAM;AAUhC;;AAEG;AACH,2BAAuB,MAAM;oDA/ClB,mBAAmB;sDAAnB,mBAAmB;AA+D/B;;;;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { MenuItem } from '@raintonic/formaui/core';
|
|
3
|
+
export { MenuItem } from '@raintonic/formaui/core';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* # FuiTopbarComponent
|
|
7
|
+
*
|
|
8
|
+
* A responsive topbar navigation component with a two-row layout:
|
|
9
|
+
* the top row contains brand/actions and menu items; the bottom row
|
|
10
|
+
* is a content projection slot (`[fuiTopbarBottomRow]`) for tabs,
|
|
11
|
+
* search bars, or other secondary content.
|
|
12
|
+
*
|
|
13
|
+
* ## Features
|
|
14
|
+
* - CSS Grid layout (two rows by default)
|
|
15
|
+
* - Content projection slots: start, bottom-row, expand, end
|
|
16
|
+
* - `ariaLabel` for accessible navigation region
|
|
17
|
+
* - `itemClick` output emits the clicked `MenuItem`
|
|
18
|
+
*
|
|
19
|
+
* ## Usage
|
|
20
|
+
*
|
|
21
|
+
* ```html
|
|
22
|
+
* <fui-topbar
|
|
23
|
+
* [items]="menuItems"
|
|
24
|
+
* ariaLabel="Main navigation"
|
|
25
|
+
* (itemClick)="onItemClick($event)"
|
|
26
|
+
* >
|
|
27
|
+
* <div fuiTopbarStart>My App</div>
|
|
28
|
+
* <app-tabs fuiTopbarBottomRow [tabs]="tabItems" />
|
|
29
|
+
* <button fuiTopbarExpand>☰</button>
|
|
30
|
+
* <div fuiTopbarEnd>
|
|
31
|
+
* <fui-avatar />
|
|
32
|
+
* </div>
|
|
33
|
+
* </fui-topbar>
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
declare class FuiTopbarComponent {
|
|
37
|
+
/** Array of menu items to render in the top row. */
|
|
38
|
+
readonly items: _angular_core.InputSignal<MenuItem[]>;
|
|
39
|
+
/** Emitted when any clickable menu item is activated. */
|
|
40
|
+
readonly itemClick: _angular_core.OutputEmitterRef<MenuItem>;
|
|
41
|
+
/** @internal Whether the items array is empty (used for host class). */
|
|
42
|
+
readonly _isEmpty: _angular_core.Signal<boolean>;
|
|
43
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiTopbarComponent, never>;
|
|
44
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiTopbarComponent, "fui-topbar", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; }, never, ["[fuiTopbarStart]", "[fuiTopbarExpand]", "[fuiTopbarEnd]", "[fuiTopbarBottomRow]"], true, never>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { FuiTopbarComponent };
|
|
48
|
+
//# sourceMappingURL=raintonic-formaui-components-topbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-topbar.d.ts","sources":["../../../lib/components/topbar/topbar.component.ts"],"mappings":";;;;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BG;AACH,cAca,kBAAkB;;oBAEf,aAAA,CAAA,WAAA,CAAA,QAAA;;wBAGI,aAAA,CAAA,gBAAA,CAAA,QAAA;;uBAGD,aAAA,CAAA,MAAA;oDARN,kBAAkB;sDAAlB,kBAAkB;AAS9B;;;;","names":[]}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnDestroy,
|
|
2
|
+
import { OnDestroy, AfterViewInit, TemplateRef, Signal, ElementRef } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
4
4
|
import { Observable, Subject } from 'rxjs';
|
|
5
5
|
import { FuiFormFieldControl } from '@raintonic/formaui/core';
|
|
6
6
|
import { FuiTreeNode, FuiTreeNodeEvent, FuiTreeSelectionMode } from '@raintonic/formaui/components/tree';
|
|
7
|
+
import * as i1 from '@raintonic/formaui/cdk/form-field';
|
|
7
8
|
|
|
8
9
|
interface FuiTreeSelectChange<T = any> {
|
|
9
10
|
value: FuiTreeNode<T> | FuiTreeNode<T>[] | null;
|
|
10
11
|
source: any;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
declare class FuiTreeSelectComponent<T = any> implements ControlValueAccessor, FuiFormFieldControl<T | T[]>, OnDestroy,
|
|
14
|
+
declare class FuiTreeSelectComponent<T = any> implements ControlValueAccessor, FuiFormFieldControl<T | T[]>, OnDestroy, AfterViewInit {
|
|
14
15
|
readonly nodes: _angular_core.InputSignal<FuiTreeNode<T>[]>;
|
|
15
16
|
readonly selectionMode: _angular_core.InputSignal<"multi" | "single" | "checkbox">;
|
|
16
17
|
readonly placeholderInput: _angular_core.InputSignal<string>;
|
|
@@ -19,6 +20,7 @@ declare class FuiTreeSelectComponent<T = any> implements ControlValueAccessor, F
|
|
|
19
20
|
readonly nodeTemplate: _angular_core.InputSignal<TemplateRef<any> | null>;
|
|
20
21
|
readonly displayField: _angular_core.InputSignal<string | ((node: FuiTreeNode<T>) => string) | null>;
|
|
21
22
|
readonly disabledInput: _angular_core.InputSignal<boolean>;
|
|
23
|
+
readonly readonlyInput: _angular_core.InputSignal<boolean>;
|
|
22
24
|
readonly selectionChange: _angular_core.OutputEmitterRef<FuiTreeSelectChange<T>>;
|
|
23
25
|
readonly stateChanges: Subject<void>;
|
|
24
26
|
private readonly _value;
|
|
@@ -29,16 +31,21 @@ declare class FuiTreeSelectComponent<T = any> implements ControlValueAccessor, F
|
|
|
29
31
|
readonly required: _angular_core.WritableSignal<boolean>;
|
|
30
32
|
private readonly _disabled;
|
|
31
33
|
readonly disabled: Signal<boolean>;
|
|
34
|
+
readonly readonly: Signal<boolean>;
|
|
32
35
|
readonly errorState: _angular_core.WritableSignal<boolean>;
|
|
33
36
|
readonly controlType = "fui-tree-select";
|
|
34
37
|
readonly id: string;
|
|
35
|
-
|
|
38
|
+
/** Whether the panel is open — projected from FuiPopupOverlayDirective. */
|
|
39
|
+
readonly _panelOpen: Signal<boolean>;
|
|
36
40
|
readonly _treeId: string;
|
|
37
41
|
readonly _searchFilter: _angular_core.WritableSignal<string>;
|
|
38
|
-
private
|
|
42
|
+
private readonly _activeNodeId;
|
|
43
|
+
/** ID of the tree-node currently highlighted via keyboard nav. Bound to aria-activedescendant. */
|
|
44
|
+
readonly activeDescendant: Signal<string | null>;
|
|
39
45
|
private readonly _ngControlRef;
|
|
40
46
|
get ngControl(): NgControl | null;
|
|
41
|
-
private readonly
|
|
47
|
+
private readonly _popup;
|
|
48
|
+
private readonly _formSync;
|
|
42
49
|
private readonly _elementRef;
|
|
43
50
|
readonly _selectedNodes: _angular_core.WritableSignal<FuiTreeNode<T>[]>;
|
|
44
51
|
trigger?: ElementRef<HTMLDivElement>;
|
|
@@ -46,33 +53,42 @@ declare class FuiTreeSelectComponent<T = any> implements ControlValueAccessor, F
|
|
|
46
53
|
private _onChange;
|
|
47
54
|
private _onTouched;
|
|
48
55
|
constructor();
|
|
56
|
+
ngAfterViewInit(): void;
|
|
57
|
+
/** Toggles the tree-select panel. No-op if disabled. */
|
|
49
58
|
toggle(): void;
|
|
59
|
+
/** Opens the tree-select panel. No-op if disabled or already open. */
|
|
50
60
|
open(): void;
|
|
61
|
+
/** Closes the tree-select panel, resets the search filter, and marks the control as touched. */
|
|
51
62
|
close(): void;
|
|
63
|
+
/** Opens the panel when the form-field container is clicked. */
|
|
52
64
|
onContainerClick(_event: MouseEvent): void;
|
|
65
|
+
/** Stores the space-separated list of IDs for the aria-describedby attribute. */
|
|
53
66
|
setDescribedByIds(_ids: string[]): void;
|
|
54
67
|
_onTreeSelect(event: FuiTreeNodeEvent<T>): void;
|
|
55
68
|
_onTreeUnselect(event: FuiTreeNodeEvent<T>): void;
|
|
56
69
|
_getDisplayValue(): string;
|
|
57
70
|
_getSelectedDisplayValues(): string[];
|
|
58
71
|
_onSearchInput(event: Event): void;
|
|
72
|
+
/** Called when the embedded tree reports a keyboard focus change. Updates aria-activedescendant. */
|
|
73
|
+
_onTreeFocusChange(nodeId: string | null): void;
|
|
59
74
|
_onKeydown(event: KeyboardEvent): void;
|
|
60
75
|
readonly _treeSelectionMode: Signal<FuiTreeSelectionMode>;
|
|
76
|
+
/** Sets the tree-select value from the form model and syncs node selection state. */
|
|
61
77
|
writeValue(value: any): void;
|
|
78
|
+
/** Registers the callback Angular calls when the value should propagate to the model. */
|
|
62
79
|
registerOnChange(fn: any): void;
|
|
80
|
+
/** Registers the callback Angular calls when the control should be marked as touched. */
|
|
63
81
|
registerOnTouched(fn: any): void;
|
|
82
|
+
/** Enables or disables the control programmatically; mirrors the `disabled` form-control state. */
|
|
64
83
|
setDisabledState(disabled: boolean): void;
|
|
65
84
|
ngOnDestroy(): void;
|
|
66
|
-
ngDoCheck(): void;
|
|
67
85
|
private _getNodeLabel;
|
|
68
86
|
private _deselectAll;
|
|
69
87
|
private _updateMultiSelection;
|
|
70
88
|
private _collectSelected;
|
|
71
89
|
private _syncSelectedFromValue;
|
|
72
|
-
private _createOverlay;
|
|
73
|
-
private _disposeOverlay;
|
|
74
90
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiTreeSelectComponent<any>, never>;
|
|
75
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiTreeSelectComponent<any>, "fui-tree-select", never, { "nodes": { "alias": "nodes"; "required": true; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "placeholderInput": { "alias": "placeholder"; "required": false; "isSignal": true; }; "showSearch": { "alias": "showSearch"; "required": false; "isSignal": true; }; "loadChildren": { "alias": "loadChildren"; "required": false; "isSignal": true; }; "nodeTemplate": { "alias": "nodeTemplate"; "required": false; "isSignal": true; }; "displayField": { "alias": "displayField"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; }, never, never, true,
|
|
91
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiTreeSelectComponent<any>, "fui-tree-select", never, { "nodes": { "alias": "nodes"; "required": true; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "placeholderInput": { "alias": "placeholder"; "required": false; "isSignal": true; }; "showSearch": { "alias": "showSearch"; "required": false; "isSignal": true; }; "loadChildren": { "alias": "loadChildren"; "required": false; "isSignal": true; }; "nodeTemplate": { "alias": "nodeTemplate"; "required": false; "isSignal": true; }; "displayField": { "alias": "displayField"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonlyInput": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; }, never, never, true, [{ directive: typeof i1.FuiPopupOverlayDirective; inputs: { "positions": "positions"; "panelClass": "panelClass"; "backdropClass": "backdropClass"; "scrollStrategy": "scrollStrategy"; "minWidthFromTrigger": "minWidthFromTrigger"; }; outputs: { "openedChange": "openedChange"; "escapeKey": "escapeKey"; }; }, { directive: typeof i1.FuiFormControlSyncDirective; inputs: {}; outputs: {}; }]>;
|
|
76
92
|
}
|
|
77
93
|
|
|
78
94
|
export { FuiTreeSelectComponent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raintonic-formaui-components-tree-select.d.ts","sources":["../../../lib/components/tree-select/tree-select.types.ts","../../../lib/components/tree-select/fui-tree-select.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-tree-select.d.ts","sources":["../../../lib/components/tree-select/tree-select.types.ts","../../../lib/components/tree-select/fui-tree-select.component.ts"],"mappings":";;;;;;;;AAEM,UAAW,mBAAmB;AAClC,WAAO,WAAW,MAAM,WAAW;;AAEpC;;ACgCD,cAsCa,sBAAsB,qBACtB,oBAAoB,EAAE,mBAAmB,WAAW,SAAS,EAAE,aAAa;oBAGzE,aAAA,CAAA,WAAA,CAAA,WAAA;4BACQ,aAAA,CAAA,WAAA;+BACG,aAAA,CAAA,WAAA;yBACN,aAAA,CAAA,WAAA;AACnB,2BAAqB,aAAA,CAAA,WAAA,SAAiB,WAAW,QAAQ,UAAU,CAAC,WAAW;2BAC1D,aAAA,CAAA,WAAA,CAAA,WAAA;2BACA,aAAA,CAAA,WAAA,kBAA0B,WAAW;4BACpC,aAAA,CAAA,WAAA;4BACA,aAAA,CAAA,WAAA;8BAEE,aAAA,CAAA,gBAAA,CAAA,mBAAA;2BAGH,OAAA;AACrB;AACA,oBAAgB,MAAM;0BACF,MAAA;sBACJ,aAAA,CAAA,cAAA;oBACF,MAAA;uBAIG,aAAA,CAAA,cAAA;AACjB;uBACiB,MAAA;uBACA,MAAA;yBACE,aAAA,CAAA,cAAA;;;;yBAMA,MAAA;;4BAEG,aAAA,CAAA,cAAA;AAEtB;;+BAEyB,MAAA;AACzB;AACA,qBAAiB,SAAS;AAK1B;AACA;AAEA;6BAGuB,aAAA,CAAA,cAAA,CAAA,WAAA;AAEkB,cAAU,UAAU,CAAC,cAAc;AACrC,YAAQ,UAAU,CAAC,cAAc;;;;AAkBxE;;AAeA;;AASA;;AAQA;;AAUA,6BAAyB,UAAU;;AAKnC;yBAKqB,gBAAgB;2BAkBd,gBAAgB;AAYvC;;AAUA,0BAAsB,KAAK;;AAM3B;AAIA,sBAAkB,aAAa;iCAeJ,MAAA,CAAA,oBAAA;;AAM3B;;AAOA;;AAKA;;AAKA;AAKA;AAKA;AASA;AAOA;AAUA;AASA;oDArQW,sBAAsB;sDAAtB,sBAAsB,i1BAAA,EAAA,CAAA,wBAAA,wRAAA,EAAA,CAAA,2BAAA;AA6QlC;;;;","names":[]}
|
|
@@ -49,12 +49,21 @@ declare class FuiTreeComponent<T = any> implements OnDestroy {
|
|
|
49
49
|
readonly virtualScroll: _angular_core.InputSignal<boolean>;
|
|
50
50
|
readonly virtualItemSize: _angular_core.InputSignal<number>;
|
|
51
51
|
readonly filter: _angular_core.InputSignal<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Optional prefix used to build stable DOM ids for each rendered tree-node element.
|
|
54
|
+
* When provided, each node element receives `id="${nodeIdPrefix}-${flatIndex}"`.
|
|
55
|
+
* Used by parent combobox components (e.g. tree-select) to resolve `aria-activedescendant`.
|
|
56
|
+
*/
|
|
57
|
+
readonly nodeIdPrefix: _angular_core.InputSignal<string | null>;
|
|
52
58
|
readonly nodeSelect: _angular_core.OutputEmitterRef<FuiTreeNodeEvent<T>>;
|
|
53
59
|
readonly nodeUnselect: _angular_core.OutputEmitterRef<FuiTreeNodeEvent<T>>;
|
|
54
60
|
readonly nodeExpand: _angular_core.OutputEmitterRef<FuiTreeNodeEvent<T>>;
|
|
55
61
|
readonly nodeCollapse: _angular_core.OutputEmitterRef<FuiTreeNodeEvent<T>>;
|
|
56
62
|
readonly nodeDrop: _angular_core.OutputEmitterRef<FuiTreeDragDropEvent<T>>;
|
|
57
63
|
readonly filterChange: _angular_core.OutputEmitterRef<string>;
|
|
64
|
+
/** Emits the DOM id of the tree-node element that gains keyboard focus. Used by parent
|
|
65
|
+
* combobox components to update `aria-activedescendant`. */
|
|
66
|
+
readonly focusChange: _angular_core.OutputEmitterRef<string | null>;
|
|
58
67
|
private readonly _flattener;
|
|
59
68
|
private readonly _subscriptions;
|
|
60
69
|
/** Refresh counter to trigger re-flatten after mutations */
|
|
@@ -62,6 +71,8 @@ declare class FuiTreeComponent<T = any> implements OnDestroy {
|
|
|
62
71
|
readonly flatNodes: _angular_core.Signal<FuiFlatTreeNode<T>[]>;
|
|
63
72
|
readonly checkboxStates: _angular_core.Signal<Map<FuiTreeNode<T>, "checked" | "unchecked" | "indeterminate">>;
|
|
64
73
|
readonly focusedIndex: _angular_core.WritableSignal<number>;
|
|
74
|
+
/** Builds the DOM element id for a flat-node at the given index. Returns null when no prefix is set. */
|
|
75
|
+
nodeElementId(flatIndex: number): string | null;
|
|
65
76
|
ngOnDestroy(): void;
|
|
66
77
|
expandAll(): void;
|
|
67
78
|
collapseAll(): void;
|
|
@@ -78,7 +89,7 @@ declare class FuiTreeComponent<T = any> implements OnDestroy {
|
|
|
78
89
|
private _setSelectedRecursive;
|
|
79
90
|
private _collectSelectedRecursive;
|
|
80
91
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiTreeComponent<any>, never>;
|
|
81
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiTreeComponent<any>, "fui-tree", never, { "nodes": { "alias": "nodes"; "required": true; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "loadChildren": { "alias": "loadChildren"; "required": false; "isSignal": true; }; "nodeTemplate": { "alias": "nodeTemplate"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualItemSize": { "alias": "virtualItemSize"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; }, { "nodeSelect": "nodeSelect"; "nodeUnselect": "nodeUnselect"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; "nodeDrop": "nodeDrop"; "filterChange": "filterChange"; }, never, never, true, never>;
|
|
92
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiTreeComponent<any>, "fui-tree", never, { "nodes": { "alias": "nodes"; "required": true; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "loadChildren": { "alias": "loadChildren"; "required": false; "isSignal": true; }; "nodeTemplate": { "alias": "nodeTemplate"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualItemSize": { "alias": "virtualItemSize"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "nodeIdPrefix": { "alias": "nodeIdPrefix"; "required": false; "isSignal": true; }; }, { "nodeSelect": "nodeSelect"; "nodeUnselect": "nodeUnselect"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; "nodeDrop": "nodeDrop"; "filterChange": "filterChange"; "focusChange": "focusChange"; }, never, never, true, never>;
|
|
82
93
|
}
|
|
83
94
|
|
|
84
95
|
declare class FuiTreeIntl extends FuiIntlBase {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raintonic-formaui-components-tree.d.ts","sources":["../../../lib/components/tree/tree.types.ts","../../../lib/components/tree/fui-tree.component.ts","../../../lib/components/tree/tree.intl.ts","../../../lib/components/tree/fui-tree-node.component.ts","../../../lib/components/tree/tree-flattener.ts"],"mappings":";;;;;AAAA;AACM,UAAW,WAAW;;AAE1B,eAAW,WAAW;;;;;AAKvB;AAED;AACM,UAAW,eAAe;AAC9B,YAAQ,WAAW;;;;;;;;;AASpB;AAED;AACM,KAAM,oBAAoB;AAEhC;AACM,UAAW,gBAAgB;AAC/B,UAAM,WAAW;AACjB,cAAU,eAAe;AAC1B;AAED;AACM,UAAW,oBAAoB;AACnC,cAAU,WAAW;AACrB,cAAU,WAAW;AACrB;;;AAGD;;AChBD,cAea,gBAAgB,qBAAqB,SAAS;oBAC3C,aAAA,CAAA,WAAA,CAAA,WAAA;4BACQ,aAAA,CAAA,WAAA,CAAA,oBAAA;AACtB,2BAAqB,aAAA,CAAA,WAAA,SAAiB,WAAW,QAAQ,UAAU,CAAC,WAAW;2BAC1D,aAAA,CAAA,WAAA,CAAA,WAAA;wBACH,aAAA,CAAA,WAAA;4BACI,aAAA,CAAA,WAAA;8BACE,aAAA,CAAA,WAAA;qBACT,aAAA,CAAA,WAAA;
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-tree.d.ts","sources":["../../../lib/components/tree/tree.types.ts","../../../lib/components/tree/fui-tree.component.ts","../../../lib/components/tree/tree.intl.ts","../../../lib/components/tree/fui-tree-node.component.ts","../../../lib/components/tree/tree-flattener.ts"],"mappings":";;;;;AAAA;AACM,UAAW,WAAW;;AAE1B,eAAW,WAAW;;;;;AAKvB;AAED;AACM,UAAW,eAAe;AAC9B,YAAQ,WAAW;;;;;;;;;AASpB;AAED;AACM,KAAM,oBAAoB;AAEhC;AACM,UAAW,gBAAgB;AAC/B,UAAM,WAAW;AACjB,cAAU,eAAe;AAC1B;AAED;AACM,UAAW,oBAAoB;AACnC,cAAU,WAAW;AACrB,cAAU,WAAW;AACrB;;;AAGD;;AChBD,cAea,gBAAgB,qBAAqB,SAAS;oBAC3C,aAAA,CAAA,WAAA,CAAA,WAAA;4BACQ,aAAA,CAAA,WAAA,CAAA,oBAAA;AACtB,2BAAqB,aAAA,CAAA,WAAA,SAAiB,WAAW,QAAQ,UAAU,CAAC,WAAW;2BAC1D,aAAA,CAAA,WAAA,CAAA,WAAA;wBACH,aAAA,CAAA,WAAA;4BACI,aAAA,CAAA,WAAA;8BACE,aAAA,CAAA,WAAA;qBACT,aAAA,CAAA,WAAA;AACf;;;;AAIG;2BACkB,aAAA,CAAA,WAAA;yBAEF,aAAA,CAAA,gBAAA,CAAA,gBAAA;2BACE,aAAA,CAAA,gBAAA,CAAA,gBAAA;yBACF,aAAA,CAAA,gBAAA,CAAA,gBAAA;2BACE,aAAA,CAAA,gBAAA,CAAA,gBAAA;uBACJ,aAAA,CAAA,gBAAA,CAAA,oBAAA;2BACI,aAAA,CAAA,gBAAA;AACrB;AAC6D;0BACzC,aAAA,CAAA,gBAAA;AAEpB;AACA;;AAGA;wBAEkB,aAAA,CAAA,MAAA,CAAA,eAAA;6BAWK,aAAA,CAAA,MAAA,CAAA,GAAA,CAAA,WAAA;2BAQF,aAAA,CAAA,cAAA;;AAGrB;AAKA;AAQA;AAKA;qBAKiB,WAAW;AAa5B,wBAAoB,WAAW;2BAQR,eAAe;2BAmCf,eAAe;+BA2BX,eAAe;AAsB1C,sBAAkB,aAAa;AAsH/B;AAqBA;AAgBA;AASA;AASA;AASA;oDA5WW,gBAAgB;sDAAhB,gBAAgB;AAsX5B;;ACzZD,cACa,WAAY,SAAQ,WAAW;AAC1C;AACA;oDAFW,WAAW;wDAAX,WAAW;AAGvB;;ACUD,cAoBa,oBAAoB;mBAClB,WAAA;AACb;;uBAMiB,aAAA,CAAA,WAAA,CAAA,eAAA;4BACK,aAAA,CAAA,WAAA,CAAA,oBAAA;2BACD,aAAA,CAAA,WAAA,CAAA,WAAA;4BACC,aAAA,CAAA,WAAA;sBACN,aAAA,CAAA,WAAA;qBAED,aAAA,CAAA,gBAAA;qBACA,aAAA,CAAA,gBAAA;6BACQ,aAAA,CAAA,gBAAA;;oDAhBZ,oBAAoB;sDAApB,oBAAoB;AAmBhC;;ACtDD,cAAa,gBAAgB;AAC3B,mBAAe,WAAW,mCAAiC,eAAe;mCAgC3C,WAAW,QAAQ,GAAG,CAAC,WAAW;AAiClE;;;;","names":[]}
|