@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 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-cdk-overlay.d.ts","sources":["../../../lib/cdk/overlay/overlay.types.ts","../../../lib/cdk/overlay/position/global-position-strategy.ts","../../../lib/cdk/overlay/position/connected-position-strategy.ts","../../../lib/cdk/overlay/scroll/scroll-strategies.ts","../../../lib/cdk/overlay/overlay.service.ts","../../../lib/cdk/overlay/overlay-ref.ts","../../../lib/cdk/overlay/overlay-container.component.ts","../../../lib/cdk/overlay/portal.service.ts"],"mappings":";;;;AAGA;;AAEG;AACH,cAAa,qBAAqB,EAAA,cAAA,CAAA,WAAA;AAElC;;AAEG;AACH,cAAa,2BAA2B,EAAA,cAAA,OAA4B,iBAAiB;AAErF;;AAEG;UACc,oBAAoB;;AAEnC;;AAEA;;AAEA;;AAEA;;;;;;;AAOD;AAED;;AAEG;UACc,iBAAiB;;AAEhC;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACD;AAED;;AAEG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,WAAW;yCAvF5B,aAAa;6CAAb,aAAa;AA4FzB;;;;","names":[]}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy, AfterViewInit, ElementRef, DoCheck, TrackByFunction } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/** Range of items currently rendered in the DOM */
|
|
5
|
+
interface FuiListRange {
|
|
6
|
+
start: number;
|
|
7
|
+
end: number;
|
|
8
|
+
}
|
|
9
|
+
/** Virtual scroll item context passed to templates */
|
|
10
|
+
interface FuiVirtualForContext<T> {
|
|
11
|
+
$implicit: T;
|
|
12
|
+
index: number;
|
|
13
|
+
count: number;
|
|
14
|
+
first: boolean;
|
|
15
|
+
last: boolean;
|
|
16
|
+
even: boolean;
|
|
17
|
+
odd: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** Scroll event info emitted by the viewport */
|
|
20
|
+
interface FuiVirtualScrollEvent {
|
|
21
|
+
firstVisibleIndex: number;
|
|
22
|
+
lastVisibleIndex: number;
|
|
23
|
+
scrollOffset: number;
|
|
24
|
+
}
|
|
25
|
+
/** Orientation of the virtual scroll */
|
|
26
|
+
type FuiVirtualScrollOrientation = 'vertical' | 'horizontal';
|
|
27
|
+
|
|
28
|
+
declare class FuiVirtualScrollViewportComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
29
|
+
/** Fixed size of each item in pixels */
|
|
30
|
+
readonly itemSize: _angular_core.InputSignal<number>;
|
|
31
|
+
/** Minimum buffer in pixels to render before the visible area */
|
|
32
|
+
readonly minBufferPx: _angular_core.InputSignal<number>;
|
|
33
|
+
/** Maximum buffer in pixels to render after the visible area */
|
|
34
|
+
readonly maxBufferPx: _angular_core.InputSignal<number>;
|
|
35
|
+
/** Scroll orientation */
|
|
36
|
+
readonly orientation: _angular_core.InputSignal<FuiVirtualScrollOrientation>;
|
|
37
|
+
/** Emits the first visible index on scroll */
|
|
38
|
+
readonly scrolledIndexChange: _angular_core.OutputEmitterRef<number>;
|
|
39
|
+
/** Emits the rendered range when it changes */
|
|
40
|
+
readonly renderedRangeChange: _angular_core.OutputEmitterRef<FuiListRange>;
|
|
41
|
+
/** Current rendered range (shared with fuiVirtualFor directive) */
|
|
42
|
+
readonly _renderedRange: _angular_core.WritableSignal<{
|
|
43
|
+
start: number;
|
|
44
|
+
end: number;
|
|
45
|
+
}>;
|
|
46
|
+
/** Total number of items in the data source */
|
|
47
|
+
readonly _totalItems: _angular_core.WritableSignal<number>;
|
|
48
|
+
/** Total content size in pixels */
|
|
49
|
+
readonly _totalContentSize: _angular_core.Signal<number>;
|
|
50
|
+
_contentWrapper: ElementRef<HTMLElement>;
|
|
51
|
+
private readonly _elementRef;
|
|
52
|
+
private readonly _ngZone;
|
|
53
|
+
private _rafId;
|
|
54
|
+
private _lastScrollOffset;
|
|
55
|
+
ngOnInit(): void;
|
|
56
|
+
ngAfterViewInit(): void;
|
|
57
|
+
ngOnDestroy(): void;
|
|
58
|
+
/** Scroll event handler - throttled via requestAnimationFrame */
|
|
59
|
+
_onScroll(): void;
|
|
60
|
+
/** Scrolls the viewport to bring the given index into view */
|
|
61
|
+
scrollToIndex(index: number, behavior?: ScrollBehavior): void;
|
|
62
|
+
/** Scrolls the viewport to a specific pixel offset */
|
|
63
|
+
scrollToOffset(offset: number, behavior?: ScrollBehavior): void;
|
|
64
|
+
/** Returns the current rendered range */
|
|
65
|
+
getRenderedRange(): FuiListRange;
|
|
66
|
+
/** Measures and returns the viewport size (height or width depending on orientation) */
|
|
67
|
+
measureViewportSize(): number;
|
|
68
|
+
/** Called by fuiVirtualFor to set the total item count */
|
|
69
|
+
_setTotalItems(count: number): void;
|
|
70
|
+
/** Recalculates which items should be rendered based on current scroll position */
|
|
71
|
+
private _updateRenderedRange;
|
|
72
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiVirtualScrollViewportComponent, never>;
|
|
73
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiVirtualScrollViewportComponent, "fui-virtual-scroll-viewport", never, { "itemSize": { "alias": "itemSize"; "required": true; "isSignal": true; }; "minBufferPx": { "alias": "minBufferPx"; "required": false; "isSignal": true; }; "maxBufferPx": { "alias": "maxBufferPx"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, { "scrolledIndexChange": "scrolledIndexChange"; "renderedRangeChange": "renderedRangeChange"; }, never, ["*"], true, never>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare class FuiVirtualForDirective<T> implements OnDestroy, DoCheck {
|
|
77
|
+
/** The data array to iterate over */
|
|
78
|
+
readonly fuiVirtualForOf: _angular_core.InputSignal<T[]>;
|
|
79
|
+
/** Optional trackBy function for identity tracking */
|
|
80
|
+
readonly fuiVirtualForTrackBy: _angular_core.InputSignal<TrackByFunction<T> | undefined>;
|
|
81
|
+
private readonly _viewport;
|
|
82
|
+
private readonly _viewContainerRef;
|
|
83
|
+
private readonly _templateRef;
|
|
84
|
+
/** Pool of detached views available for reuse */
|
|
85
|
+
private _viewCache;
|
|
86
|
+
/** Currently attached views in the container */
|
|
87
|
+
private _renderedViews;
|
|
88
|
+
/** Previous data reference for change detection */
|
|
89
|
+
private _previousData;
|
|
90
|
+
constructor();
|
|
91
|
+
ngDoCheck(): void;
|
|
92
|
+
ngOnDestroy(): void;
|
|
93
|
+
/**
|
|
94
|
+
* Renders items within the given range [start, end).
|
|
95
|
+
* Recycles views from the cache when possible.
|
|
96
|
+
*/
|
|
97
|
+
private _renderRange;
|
|
98
|
+
/** Updates the context of an existing embedded view */
|
|
99
|
+
private _updateContext;
|
|
100
|
+
/** Detaches all rendered views and moves them to the cache */
|
|
101
|
+
private _detachAllViews;
|
|
102
|
+
/** Destroys all cached views */
|
|
103
|
+
private _destroyCache;
|
|
104
|
+
/** Static method for Angular's type inference in templates */
|
|
105
|
+
static ngTemplateContextGuard<T>(_dir: FuiVirtualForDirective<T>, _ctx: unknown): _ctx is FuiVirtualForContext<T>;
|
|
106
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiVirtualForDirective<any>, never>;
|
|
107
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FuiVirtualForDirective<any>, "[fuiVirtualFor][fuiVirtualForOf]", never, { "fuiVirtualForOf": { "alias": "fuiVirtualForOf"; "required": true; "isSignal": true; }; "fuiVirtualForTrackBy": { "alias": "fuiVirtualForTrackBy"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export { FuiVirtualForDirective, FuiVirtualScrollViewportComponent };
|
|
111
|
+
export type { FuiListRange, FuiVirtualForContext, FuiVirtualScrollEvent, FuiVirtualScrollOrientation };
|
|
112
|
+
//# sourceMappingURL=raintonic-formaui-cdk-virtual-scroll.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-cdk-virtual-scroll.d.ts","sources":["../../../lib/cdk/virtual-scroll/virtual-scroll.types.ts","../../../lib/cdk/virtual-scroll/fui-virtual-scroll-viewport.component.ts","../../../lib/cdk/virtual-scroll/fui-virtual-for.directive.ts"],"mappings":";;;AAAA;UACiB,YAAY;;;AAG5B;AAED;AACM,UAAW,oBAAoB;;;;;;;;AAQpC;AAED;UACiB,qBAAqB;;;;AAIrC;AAED;KACY,2BAA2B;;ACNvC,cAca,iCAAkC,YAAW,MAAM,EAAE,SAAS,EAAE,aAAa;;uBAEvE,aAAA,CAAA,WAAA;;0BAGG,aAAA,CAAA,WAAA;;0BAGA,aAAA,CAAA,WAAA;;0BAGA,aAAA,CAAA,WAAA,CAAA,2BAAA;;kCAGQ,aAAA,CAAA,gBAAA;;kCAGA,aAAA,CAAA,gBAAA,CAAA,YAAA;;AAG5B,6BAAuB,aAAA,CAAA,cAAA;;;AAAgC;;0BAGnC,aAAA,CAAA,cAAA;;gCAGM,aAAA,CAAA,MAAA;AAEqB,qBAAkB,UAAU,CAAC,WAAW;AAEvF;AACA;;;AAKA;AAMA;AAIA;;AAQA;;4CAWuC,cAAuB;;8CAMrB,cAAuB;;AAYhE,wBAAoB,YAAY;;AAKhC;;AAMA;;AAMA;oDApGW,iCAAiC;sDAAjC,iCAAiC;AA4I7C;;AC3JD,cAIa,sBAAsB,eAAe,SAAS,EAAE,OAAO;;8BAE1C,aAAA,CAAA,WAAA;;mCAGK,aAAA,CAAA,WAAA,CAAA,eAAA;AAE7B;AACA;AACA;;;;;;;;AAyBA;AASA;AAKA;;;AAGG;AACH;;AAkDA;;AAYA;;AAWA;;2CAQuC,sBAAsB,6BAA6B,oBAAoB;oDArInG,sBAAsB;sDAAtB,sBAAsB;AAwIlC;;;;","names":[]}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { WritableSignal, InjectionToken } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # ExpansionPanel Component
|
|
6
|
+
*
|
|
7
|
+
* A collapsible panel that can be used standalone or within an `fui-accordion`.
|
|
8
|
+
* Supports lazy rendering of content (only rendered after first open).
|
|
9
|
+
*
|
|
10
|
+
* ## Usage
|
|
11
|
+
*
|
|
12
|
+
* ### Standalone
|
|
13
|
+
* ```html
|
|
14
|
+
* <fui-expansion-panel>
|
|
15
|
+
* <span panelTitle>Panel Title</span>
|
|
16
|
+
* <p>Panel content here</p>
|
|
17
|
+
* </fui-expansion-panel>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ### Inside Accordion
|
|
21
|
+
* ```html
|
|
22
|
+
* <fui-accordion>
|
|
23
|
+
* <fui-expansion-panel>
|
|
24
|
+
* <span panelTitle>First</span>
|
|
25
|
+
* Content 1
|
|
26
|
+
* </fui-expansion-panel>
|
|
27
|
+
* <fui-expansion-panel>
|
|
28
|
+
* <span panelTitle>Second</span>
|
|
29
|
+
* Content 2
|
|
30
|
+
* </fui-expansion-panel>
|
|
31
|
+
* </fui-accordion>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
declare class FuiExpansionPanelComponent {
|
|
35
|
+
readonly expanded: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
36
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
37
|
+
readonly hideToggle: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
38
|
+
readonly opened: _angular_core.OutputEmitterRef<void>;
|
|
39
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
40
|
+
readonly expandedChange: _angular_core.OutputEmitterRef<boolean>;
|
|
41
|
+
readonly afterExpand: _angular_core.OutputEmitterRef<void>;
|
|
42
|
+
readonly afterCollapse: _angular_core.OutputEmitterRef<void>;
|
|
43
|
+
readonly _expanded: WritableSignal<boolean>;
|
|
44
|
+
readonly _animating: WritableSignal<boolean>;
|
|
45
|
+
readonly _hasBeenOpened: WritableSignal<boolean>;
|
|
46
|
+
private readonly _panelId;
|
|
47
|
+
readonly _headerId: string;
|
|
48
|
+
readonly _contentId: string;
|
|
49
|
+
private readonly _accordion;
|
|
50
|
+
private readonly _elementRef;
|
|
51
|
+
constructor();
|
|
52
|
+
/** Toggles the expanded state of the panel. */
|
|
53
|
+
toggle(): void;
|
|
54
|
+
/** Opens the panel. */
|
|
55
|
+
open(): void;
|
|
56
|
+
/** Closes the panel. */
|
|
57
|
+
close(): void;
|
|
58
|
+
/** Called when the body transition ends. */
|
|
59
|
+
_onBodyTransitionEnd(event: TransitionEvent): void;
|
|
60
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiExpansionPanelComponent, never>;
|
|
61
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiExpansionPanelComponent, "fui-expansion-panel", never, { "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "hideToggle": { "alias": "hideToggle"; "required": false; "isSignal": true; }; }, { "opened": "opened"; "closed": "closed"; "expandedChange": "expandedChange"; "afterExpand": "afterExpand"; "afterCollapse": "afterCollapse"; }, never, ["[panelTitle]", "[panelDescription]", "*"], true, never>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
type AccordionDisplayMode = 'default' | 'flat';
|
|
65
|
+
interface AccordionExpandedChange {
|
|
66
|
+
source: unknown;
|
|
67
|
+
expanded: boolean;
|
|
68
|
+
}
|
|
69
|
+
declare const FUI_ACCORDION: InjectionToken<unknown>;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* # Accordion Component
|
|
73
|
+
*
|
|
74
|
+
* Groups multiple `fui-expansion-panel` components.
|
|
75
|
+
* In single mode (default), only one panel can be expanded at a time.
|
|
76
|
+
* In multi mode, multiple panels can be expanded simultaneously.
|
|
77
|
+
*
|
|
78
|
+
* ## Usage
|
|
79
|
+
*
|
|
80
|
+
* ### Single mode (default)
|
|
81
|
+
* ```html
|
|
82
|
+
* <fui-accordion>
|
|
83
|
+
* <fui-expansion-panel>
|
|
84
|
+
* <span panelTitle>Panel 1</span>
|
|
85
|
+
* Content 1
|
|
86
|
+
* </fui-expansion-panel>
|
|
87
|
+
* <fui-expansion-panel>
|
|
88
|
+
* <span panelTitle>Panel 2</span>
|
|
89
|
+
* Content 2
|
|
90
|
+
* </fui-expansion-panel>
|
|
91
|
+
* </fui-accordion>
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* ### Multi mode
|
|
95
|
+
* ```html
|
|
96
|
+
* <fui-accordion [multi]="true">
|
|
97
|
+
* ...
|
|
98
|
+
* </fui-accordion>
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* ### Flat display mode
|
|
102
|
+
* ```html
|
|
103
|
+
* <fui-accordion displayMode="flat">
|
|
104
|
+
* ...
|
|
105
|
+
* </fui-accordion>
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
declare class FuiAccordionComponent {
|
|
109
|
+
readonly multi: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
110
|
+
readonly displayMode: _angular_core.InputSignal<AccordionDisplayMode>;
|
|
111
|
+
readonly panels: _angular_core.Signal<readonly FuiExpansionPanelComponent[]>;
|
|
112
|
+
/** Opens all panels. Only effective in multi mode. */
|
|
113
|
+
openAll(): void;
|
|
114
|
+
/** Closes all panels. */
|
|
115
|
+
closeAll(): void;
|
|
116
|
+
/** Closes all panels except the specified one. Used internally by panels. */
|
|
117
|
+
_closeOtherPanels(openedPanel: FuiExpansionPanelComponent): void;
|
|
118
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiAccordionComponent, never>;
|
|
119
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiAccordionComponent, "fui-accordion", never, { "multi": { "alias": "multi"; "required": false; "isSignal": true; }; "displayMode": { "alias": "displayMode"; "required": false; "isSignal": true; }; }, {}, ["panels"], ["*"], true, never>;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export { FUI_ACCORDION, FuiAccordionComponent, FuiExpansionPanelComponent };
|
|
123
|
+
export type { AccordionDisplayMode, AccordionExpandedChange };
|
|
124
|
+
//# sourceMappingURL=raintonic-formaui-components-accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-accordion.d.ts","sources":["../../../lib/components/accordion/expansion-panel.component.ts","../../../lib/components/accordion/accordion.types.ts","../../../lib/components/accordion/accordion.component.ts"],"mappings":";;;AAkBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BG;AACH,cAea,0BAA0B;uBAEpB,aAAA,CAAA,wBAAA;uBACA,aAAA,CAAA,wBAAA;yBACE,aAAA,CAAA,wBAAA;qBAGJ,aAAA,CAAA,gBAAA;qBACA,aAAA,CAAA,gBAAA;6BACQ,aAAA,CAAA,gBAAA;0BACH,aAAA,CAAA,gBAAA;4BACE,aAAA,CAAA,gBAAA;AAGtB,wBAAoB,cAAc;AAClC,yBAAqB,cAAc;AACnC,6BAAyB,cAAc;AAGvC;;;AAKA;AAMA;;;AAcA;;AAYA;;AAkBA;;AAYA,gCAA4B,eAAe;oDAtFhC,0BAA0B;sDAA1B,0BAA0B;AAgGtC;;KC7JW,oBAAoB;UAEf,uBAAuB;;;AAGvC;AAED,cAAa,aAAa,EAAA,cAAA;;ACE1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCG;AACH,cAaa,qBAAqB;oBAElB,aAAA,CAAA,wBAAA;0BACM,aAAA,CAAA,WAAA,CAAA,oBAAA;qBAGL,aAAA,CAAA,MAAA,UAAA,0BAAA;;AAGf;;AAUA;;AAOA,mCAA+B,0BAA0B;oDA1B9C,qBAAqB;sDAArB,qBAAqB;AAoCjC;;;;","names":[]}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Signal } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
type FuiAlertVariant = 'primary' | 'success' | 'info' | 'warning' | 'error' | 'generic';
|
|
5
|
+
declare const FUI_ALERT_VARIANTS: readonly FuiAlertVariant[];
|
|
6
|
+
/**
|
|
7
|
+
* Configuration for notification display
|
|
8
|
+
*/
|
|
9
|
+
interface FuiNotificationConfig {
|
|
10
|
+
/**
|
|
11
|
+
* Notification variant (determines color scheme and icon)
|
|
12
|
+
*/
|
|
13
|
+
variant: FuiAlertVariant;
|
|
14
|
+
/**
|
|
15
|
+
* Title of the notification
|
|
16
|
+
*/
|
|
17
|
+
title: string;
|
|
18
|
+
/**
|
|
19
|
+
* Description/message of the notification
|
|
20
|
+
*/
|
|
21
|
+
description?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Duration in milliseconds before auto-dismiss (default: 5000)
|
|
24
|
+
* Set to 0 to disable auto-dismiss
|
|
25
|
+
*/
|
|
26
|
+
duration?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to show the close button (default: true)
|
|
29
|
+
*/
|
|
30
|
+
closeable?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Custom icon name (overrides default variant icon)
|
|
33
|
+
*/
|
|
34
|
+
icon?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Position for notification display
|
|
38
|
+
*/
|
|
39
|
+
type FuiNotificationPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
40
|
+
declare const FUI_NOTIFICATION_POSITIONS: readonly FuiNotificationPosition[];
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* # FuiAlertComponent
|
|
44
|
+
*
|
|
45
|
+
* A flexible alert component for displaying informational messages, warnings, errors, and success notifications.
|
|
46
|
+
* Can be used inline in pages or as part of the notification system.
|
|
47
|
+
*
|
|
48
|
+
* ## Features
|
|
49
|
+
* - Multiple variants: primary, success, info, warning, error, generic
|
|
50
|
+
* - Title and description support
|
|
51
|
+
* - Optional close button
|
|
52
|
+
* - Custom or default icons per variant
|
|
53
|
+
* - Accessible with ARIA attributes
|
|
54
|
+
*
|
|
55
|
+
* ## Usage
|
|
56
|
+
*
|
|
57
|
+
* ### Basic Alert
|
|
58
|
+
* ```html
|
|
59
|
+
* <fui-alert
|
|
60
|
+
* variant="success"
|
|
61
|
+
* title="Success!"
|
|
62
|
+
* description="Your changes have been saved."
|
|
63
|
+
* ></fui-alert>
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* ### Closeable Alert
|
|
67
|
+
* ```html
|
|
68
|
+
* <fui-alert
|
|
69
|
+
* variant="warning"
|
|
70
|
+
* title="Warning"
|
|
71
|
+
* description="Please review before continuing."
|
|
72
|
+
* [closeable]="true"
|
|
73
|
+
* (closed)="onAlertClosed()"
|
|
74
|
+
* ></fui-alert>
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* ### Custom Icon
|
|
78
|
+
* ```html
|
|
79
|
+
* <fui-alert
|
|
80
|
+
* variant="info"
|
|
81
|
+
* title="Custom Icon"
|
|
82
|
+
* icon="custom-icon-name"
|
|
83
|
+
* ></fui-alert>
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
declare class FuiAlertComponent {
|
|
87
|
+
/**
|
|
88
|
+
* Alert variant (determines color scheme and default icon)
|
|
89
|
+
*/
|
|
90
|
+
readonly variant: _angular_core.InputSignalWithTransform<FuiAlertVariant, string>;
|
|
91
|
+
/**
|
|
92
|
+
* Alert title (required)
|
|
93
|
+
*/
|
|
94
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Progress (optional)
|
|
97
|
+
* 0 = turned off
|
|
98
|
+
* -1 = indeterminate
|
|
99
|
+
*/
|
|
100
|
+
readonly progress: _angular_core.InputSignal<number>;
|
|
101
|
+
/**
|
|
102
|
+
* Alert description (optional)
|
|
103
|
+
*/
|
|
104
|
+
readonly description: _angular_core.InputSignal<string | null>;
|
|
105
|
+
/**
|
|
106
|
+
* Whether to show the close button
|
|
107
|
+
*/
|
|
108
|
+
readonly closeable: _angular_core.InputSignal<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* Custom icon name (overrides default variant icon)
|
|
111
|
+
*/
|
|
112
|
+
readonly icon: _angular_core.InputSignal<string | null>;
|
|
113
|
+
/**
|
|
114
|
+
* Emits when the close button is clicked
|
|
115
|
+
*/
|
|
116
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
117
|
+
/**
|
|
118
|
+
* Computed CSS classes for the alert
|
|
119
|
+
*/
|
|
120
|
+
readonly computedClasses: Signal<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Computed ARIA role: "alert" for error/warning, "status" for info/success/primary/generic
|
|
123
|
+
*/
|
|
124
|
+
readonly computedRole: Signal<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Computed aria-live: "assertive" for errors, "polite" for everything else
|
|
127
|
+
*/
|
|
128
|
+
readonly computedAriaLive: Signal<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Computed icon name based on variant or custom icon
|
|
131
|
+
*/
|
|
132
|
+
readonly computedIcon: Signal<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Handle close button click
|
|
135
|
+
*/
|
|
136
|
+
onClose(): void;
|
|
137
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiAlertComponent, never>;
|
|
138
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiAlertComponent, "fui-alert", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "progress": { "alias": "progress"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "closeable": { "alias": "closeable"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, never, true, never>;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export { FUI_ALERT_VARIANTS, FUI_NOTIFICATION_POSITIONS, FuiAlertComponent };
|
|
142
|
+
export type { FuiAlertVariant, FuiNotificationConfig, FuiNotificationPosition };
|
|
143
|
+
//# sourceMappingURL=raintonic-formaui-components-alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-alert.d.ts","sources":["../../../lib/components/alert/alert.types.ts","../../../lib/components/alert/alert.component.ts"],"mappings":";;;AAAM,KAAM,eAAe;AAE3B,cAAa,kBAAkB,WAAW,eAAe;AASzD;;AAEG;UACc,qBAAqB;AACpC;;AAEG;aACM,eAAe;AAExB;;AAEG;;AAGH;;AAEG;;AAGH;;;AAGG;;AAGH;;AAEG;;AAGH;;AAEG;;AAEJ;AAED;;AAEG;AACG,KAAM,uBAAuB;AAQnC,cAAa,0BAA0B,WAAW,uBAAuB;;ACrDzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CG;AACH,cAca,iBAAiB;AAC5B;;AAEG;sBACa,aAAA,CAAA,wBAAA,CAAA,eAAA;AAIhB;;AAEG;oBACW,aAAA,CAAA,WAAA;AAEd;;;;AAIG;uBACc,aAAA,CAAA,WAAA;AAEjB;;AAEG;0BACiB,aAAA,CAAA,WAAA;AAEpB;;AAEG;wBACe,aAAA,CAAA,WAAA;AAElB;;AAEG;mBACU,aAAA,CAAA,WAAA;AAEb;;AAEG;qBACY,aAAA,CAAA,gBAAA;AAEf;;AAEG;AACH,8BAA0B,MAAM;AAMhC;;AAEG;AACH,2BAAuB,MAAM;AAK7B;;AAEG;AACH,+BAA2B,MAAM;AAIjC;;AAEG;AACH,2BAAuB,MAAM;AAmB7B;;AAEG;AACH;oDAzFW,iBAAiB;sDAAjB,iBAAiB;AA4F7B;;;;","names":[]}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, DoCheck, OnDestroy, InputSignal, OutputEmitterRef, 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
|
+
import { FuiOptionComponent } from '@raintonic/formaui/components/select';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Injection token used to provide the parent autocomplete to options
|
|
10
|
+
*/
|
|
11
|
+
declare const FUI_AUTOCOMPLETE: InjectionToken<FuiAutocompleteComponent>;
|
|
12
|
+
/**
|
|
13
|
+
* Selection change event object emitted when the autocomplete's selection changes
|
|
14
|
+
*/
|
|
15
|
+
interface FuiAutocompleteChange {
|
|
16
|
+
source: FuiAutocompleteComponent;
|
|
17
|
+
value: unknown;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* # fui-autocomplete Component
|
|
21
|
+
*
|
|
22
|
+
* An autocomplete component designed to work seamlessly with fui-form-field.
|
|
23
|
+
* Similar to Angular Material's mat-autocomplete integration with mat-form-field.
|
|
24
|
+
* Provides full Reactive Forms support with validation, filtering, and optional
|
|
25
|
+
* add/refresh actions.
|
|
26
|
+
*
|
|
27
|
+
* ## Features
|
|
28
|
+
* - Works inside fui-form-field like mat-autocomplete
|
|
29
|
+
* - Full Reactive Forms integration (ControlValueAccessor)
|
|
30
|
+
* - Options via projected content (fui-option)
|
|
31
|
+
* - Built-in search/filter input in the panel
|
|
32
|
+
* - Optional "Add New" and "Refresh" action buttons
|
|
33
|
+
* - Disabled and readonly states
|
|
34
|
+
* - Full accessibility support
|
|
35
|
+
* - Full keyboard navigation (Arrow keys, Enter, Escape, Home, End, PageUp, PageDown)
|
|
36
|
+
* - Uses overlay service for proper positioning
|
|
37
|
+
*
|
|
38
|
+
* ## Usage
|
|
39
|
+
*
|
|
40
|
+
* ### Basic Autocomplete with Form Field
|
|
41
|
+
* ```html
|
|
42
|
+
* <fui-form-field>
|
|
43
|
+
* <label>Country</label>
|
|
44
|
+
* <fui-autocomplete placeholder="Search countries...">
|
|
45
|
+
* <fui-option value="us">United States</fui-option>
|
|
46
|
+
* <fui-option value="ca">Canada</fui-option>
|
|
47
|
+
* <fui-option value="mx">Mexico</fui-option>
|
|
48
|
+
* </fui-autocomplete>
|
|
49
|
+
* </fui-form-field>
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* ### With Reactive Forms and Validation
|
|
53
|
+
* ```html
|
|
54
|
+
* <form [formGroup]="form">
|
|
55
|
+
* <fui-form-field>
|
|
56
|
+
* <label>Country</label>
|
|
57
|
+
* <fui-autocomplete formControlName="country" placeholder="Select a country">
|
|
58
|
+
* <fui-option value="us">United States</fui-option>
|
|
59
|
+
* <fui-option value="ca">Canada</fui-option>
|
|
60
|
+
* </fui-autocomplete>
|
|
61
|
+
* <fui-error *ngIf="form.get('country')?.hasError('required')">
|
|
62
|
+
* Country is required
|
|
63
|
+
* </fui-error>
|
|
64
|
+
* </fui-form-field>
|
|
65
|
+
* </form>
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* ### With Add/Refresh Buttons
|
|
69
|
+
* ```html
|
|
70
|
+
* <fui-form-field>
|
|
71
|
+
* <label>Category</label>
|
|
72
|
+
* <fui-autocomplete
|
|
73
|
+
* placeholder="Search categories..."
|
|
74
|
+
* [showAddButton]="true"
|
|
75
|
+
* [showRefreshButton]="true"
|
|
76
|
+
* (addNew)="openAddCategoryDialog()"
|
|
77
|
+
* (refresh)="refreshCategories()">
|
|
78
|
+
* @for (category of categories; track category.id) {
|
|
79
|
+
* <fui-option [value]="category.id">{{ category.name }}</fui-option>
|
|
80
|
+
* }
|
|
81
|
+
* </fui-autocomplete>
|
|
82
|
+
* </fui-form-field>
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
declare class FuiAutocompleteComponent implements ControlValueAccessor, FuiFormFieldControl, DoCheck, OnDestroy {
|
|
86
|
+
static nextId: number;
|
|
87
|
+
readonly controlType = "fui-autocomplete";
|
|
88
|
+
readonly placeholderInput: InputSignal<string>;
|
|
89
|
+
readonly disabledInput: InputSignal<boolean>;
|
|
90
|
+
readonly readonly: InputSignal<boolean>;
|
|
91
|
+
readonly showAddButton: InputSignal<boolean>;
|
|
92
|
+
readonly showRefreshButton: InputSignal<boolean>;
|
|
93
|
+
readonly addButtonLabel: InputSignal<string>;
|
|
94
|
+
readonly refreshButtonLabel: InputSignal<string>;
|
|
95
|
+
readonly noOptionsText: InputSignal<string>;
|
|
96
|
+
readonly searchPlaceholder: InputSignal<string>;
|
|
97
|
+
readonly errorStateMatcher: InputSignal<ErrorStateMatcher | null>;
|
|
98
|
+
/**
|
|
99
|
+
* Whether to compare option values using object identity or deep equality
|
|
100
|
+
*/
|
|
101
|
+
readonly compareWith: InputSignal<(o1: unknown, o2: unknown) => boolean>;
|
|
102
|
+
readonly valueChange: OutputEmitterRef<unknown>;
|
|
103
|
+
readonly selectionChange: OutputEmitterRef<FuiAutocompleteChange>;
|
|
104
|
+
readonly openedChange: OutputEmitterRef<boolean>;
|
|
105
|
+
readonly addNew: OutputEmitterRef<void>;
|
|
106
|
+
readonly refresh: OutputEmitterRef<void>;
|
|
107
|
+
readonly searchChange: OutputEmitterRef<string>;
|
|
108
|
+
private readonly _value;
|
|
109
|
+
private readonly _focused;
|
|
110
|
+
private readonly _disabled;
|
|
111
|
+
readonly _readOnly: WritableSignal<boolean>;
|
|
112
|
+
readonly stateChanges: Subject<void>;
|
|
113
|
+
private _uid;
|
|
114
|
+
_ariaDescribedby: string | null;
|
|
115
|
+
private readonly _errorState;
|
|
116
|
+
readonly errorState: WritableSignal<boolean>;
|
|
117
|
+
private _parentForm;
|
|
118
|
+
private _parentFormGroup;
|
|
119
|
+
private _defaultErrorStateMatcher;
|
|
120
|
+
private readonly _ngControlRef;
|
|
121
|
+
get ngControl(): NgControl | null;
|
|
122
|
+
readonly placeholder: Signal<string>;
|
|
123
|
+
private readonly _required;
|
|
124
|
+
readonly required: WritableSignal<boolean>;
|
|
125
|
+
readonly value: WritableSignal<unknown>;
|
|
126
|
+
readonly focused: WritableSignal<boolean>;
|
|
127
|
+
private readonly _ngControlDisabled;
|
|
128
|
+
readonly disabled: Signal<boolean>;
|
|
129
|
+
readonly empty: Signal<boolean>;
|
|
130
|
+
readonly id: string;
|
|
131
|
+
trigger?: ElementRef<HTMLDivElement>;
|
|
132
|
+
panel?: ElementRef<HTMLDivElement>;
|
|
133
|
+
searchInput?: ElementRef<HTMLInputElement>;
|
|
134
|
+
readonly options: Signal<readonly FuiOptionComponent[]>;
|
|
135
|
+
readonly panelOpen: WritableSignal<boolean>;
|
|
136
|
+
readonly searchTerm: WritableSignal<string>;
|
|
137
|
+
readonly activeOptionIndex: WritableSignal<number>;
|
|
138
|
+
readonly _liveAnnouncement: WritableSignal<string>;
|
|
139
|
+
_announce(message: string): void;
|
|
140
|
+
private _overlayRef;
|
|
141
|
+
private _overlaySubscriptions;
|
|
142
|
+
private readonly _overlayService;
|
|
143
|
+
private readonly _elementRef;
|
|
144
|
+
private readonly _document;
|
|
145
|
+
private readonly _ngZone;
|
|
146
|
+
private _outsideClickSub?;
|
|
147
|
+
private _onChange;
|
|
148
|
+
private _onTouched;
|
|
149
|
+
readonly displayValue: Signal<string>;
|
|
150
|
+
readonly filteredOptions: Signal<FuiOptionComponent[]>;
|
|
151
|
+
readonly hasFilteredOptions: Signal<boolean>;
|
|
152
|
+
constructor();
|
|
153
|
+
ngDoCheck(): void;
|
|
154
|
+
ngOnDestroy(): void;
|
|
155
|
+
writeValue(value: unknown): void;
|
|
156
|
+
registerOnChange(fn: (value: unknown) => void): void;
|
|
157
|
+
registerOnTouched(fn: () => void): void;
|
|
158
|
+
setDisabledState(isDisabled: boolean): void;
|
|
159
|
+
onContainerClick(_event: MouseEvent): void;
|
|
160
|
+
setDescribedByIds(ids: string[]): void;
|
|
161
|
+
setReadOnly(readOnly: boolean): void;
|
|
162
|
+
clear(event: Event): void;
|
|
163
|
+
focus(): void;
|
|
164
|
+
blur(): void;
|
|
165
|
+
toggle(): void;
|
|
166
|
+
open(): void;
|
|
167
|
+
close(): void;
|
|
168
|
+
_onOptionSelected(option: FuiOptionComponent): void;
|
|
169
|
+
onSearchInput(event: Event): void;
|
|
170
|
+
onAddNew(): void;
|
|
171
|
+
onRefresh(): void;
|
|
172
|
+
_getDisplayValue(): string;
|
|
173
|
+
_handleKeydown(event: KeyboardEvent): void;
|
|
174
|
+
private _handleClosedKeydown;
|
|
175
|
+
_handlePanelKeydown(event: KeyboardEvent): void;
|
|
176
|
+
private _handleOpenKeydown;
|
|
177
|
+
private _setNextActiveOption;
|
|
178
|
+
private _setActiveOptionIndex;
|
|
179
|
+
private _setInitialActiveOption;
|
|
180
|
+
private _scrollToActiveOption;
|
|
181
|
+
private _listenForOutsideClicks;
|
|
182
|
+
private _createOverlay;
|
|
183
|
+
private _disposeOverlay;
|
|
184
|
+
_getActiveDescendant(): string | null;
|
|
185
|
+
setActiveOption(index: number, option: FuiOptionComponent): void;
|
|
186
|
+
get selected(): unknown;
|
|
187
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FuiAutocompleteComponent, never>;
|
|
188
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FuiAutocompleteComponent, "fui-autocomplete", never, { "placeholderInput": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "showAddButton": { "alias": "showAddButton"; "required": false; "isSignal": true; }; "showRefreshButton": { "alias": "showRefreshButton"; "required": false; "isSignal": true; }; "addButtonLabel": { "alias": "addButtonLabel"; "required": false; "isSignal": true; }; "refreshButtonLabel": { "alias": "refreshButtonLabel"; "required": false; "isSignal": true; }; "noOptionsText": { "alias": "noOptionsText"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "selectionChange": "selectionChange"; "openedChange": "openedChange"; "addNew": "addNew"; "refresh": "refresh"; "searchChange": "searchChange"; }, ["options"], ["*"], true, never>;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export { FUI_AUTOCOMPLETE, FuiAutocompleteComponent };
|
|
192
|
+
export type { FuiAutocompleteChange };
|
|
193
|
+
//# sourceMappingURL=raintonic-formaui-components-autocomplete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-autocomplete.d.ts","sources":["../../../lib/components/autocomplete/autocomplete.component.ts"],"mappings":";;;;;;;AA0CA;;AAEG;AACH,cAAa,gBAAgB,EAAA,cAAA,CAAA,wBAAA;AAE7B;;AAEG;UACc,qBAAqB;YAC5B,wBAAwB;;AAEjC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEG;AACH,cAiCa,wBAAyB,YAAW,oBAAoB,EAAE,mBAAmB,EAAE,OAAO,EAAE,SAAS;;;AAM5G,+BAA2B,WA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4rBpC;;;;","names":[]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Signal } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
type FuiAvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
/**
|
|
6
|
+
* @component FuiAvatarComponent
|
|
7
|
+
* @selector fui-avatar
|
|
8
|
+
* @description Displays a user avatar with image, initials fallback, and configurable shape/size.
|
|
9
|
+
* Automatically computes initials from name fields and generates a background color from an identity key.
|
|
10
|
+
*
|
|
11
|
+
* @input size - Avatar size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' or a numeric pixel value. Default 'md'.
|
|
12
|
+
* @input shape - Avatar shape: 'circle' | 'rounded' | 'square'. Default 'circle'.
|
|
13
|
+
* @input src - Image URL or data URI for the avatar.
|
|
14
|
+
* @input avatarUrl - Backward-compatible alias for src.
|
|
15
|
+
* @input srcSet - HTML srcset attribute for responsive images.
|
|
16
|
+
* @input sizesAttr - HTML sizes attribute for responsive images.
|
|
17
|
+
* @input name - First name used to compute initials.
|
|
18
|
+
* @input surname - Last name used to compute initials.
|
|
19
|
+
* @input fullName - Full name (overrides name + surname for initials).
|
|
20
|
+
* @input alt - Alt text for the image element.
|
|
21
|
+
* @input identityKey - Key (e.g. email) used to deterministically pick a background color.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* <fui-avatar [src]="user.photoUrl" [fullName]="user.displayName" size="lg"></fui-avatar>
|
|
25
|
+
*/
|
|
26
|
+
declare class FuiAvatarComponent {
|
|
27
|
+
readonly size: _angular_core.InputSignal<number | FuiAvatarSize>;
|
|
28
|
+
readonly shape: _angular_core.InputSignal<"circle" | "rounded" | "square">;
|
|
29
|
+
readonly src: _angular_core.InputSignal<string | null>;
|
|
30
|
+
readonly avatarUrl: _angular_core.InputSignal<string | null>;
|
|
31
|
+
readonly srcSet: _angular_core.InputSignal<string | null>;
|
|
32
|
+
readonly sizesAttr: _angular_core.InputSignal<string | null>;
|
|
33
|
+
readonly name: _angular_core.InputSignal<string | null>;
|
|
34
|
+
readonly surname: _angular_core.InputSignal<string | null>;
|
|
35
|
+
readonly fullName: _angular_core.InputSignal<string | null>;
|
|
36
|
+
readonly alt: _angular_core.InputSignal<string | null>;
|
|
37
|
+
readonly identityKey: _angular_core.InputSignal<string | null>;
|
|
38
|
+
private readonly imageFailed;
|
|
39
|
+
readonly normalizedName: Signal<string>;
|
|
40
|
+
readonly initials: Signal<string>;
|
|
41
|
+
readonly pixelSize: Signal<number>;
|
|
42
|
+
readonly displayImage: Signal<string | null>;
|
|
43
|
+
readonly bgColor: Signal<string>;
|
|
44
|
+
readonly ariaLabel: Signal<string>;
|
|
45
|
+
onImgError(): void;
|
|
46
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiAvatarComponent, never>;
|
|
47
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiAvatarComponent, "fui-avatar", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "src": { "alias": "src"; "required": false; "isSignal": true; }; "avatarUrl": { "alias": "avatarUrl"; "required": false; "isSignal": true; }; "srcSet": { "alias": "srcSet"; "required": false; "isSignal": true; }; "sizesAttr": { "alias": "sizesAttr"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "surname": { "alias": "surname"; "required": false; "isSignal": true; }; "fullName": { "alias": "fullName"; "required": false; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; "identityKey": { "alias": "identityKey"; "required": false; "isSignal": true; }; }, {}, never, ["[avatar-badge]"], true, never>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export { FuiAvatarComponent };
|
|
51
|
+
export type { FuiAvatarSize };
|
|
52
|
+
//# sourceMappingURL=raintonic-formaui-components-avatar.d.ts.map
|