@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-components-avatar.d.ts","sources":["../../../lib/components/avatar/avatar.component.ts"],"mappings":";;;AAEM,KAAM,aAAa;AAEzB;;;;;;;;;;;;;;;;;;;;AAoBG;AACH,cAQa,kBAAkB;mBAEhB,aAAA,CAAA,WAAA,UAAA,aAAA;oBACC,aAAA,CAAA,WAAA;kBACF,aAAA,CAAA,WAAA;wBAEM,aAAA,CAAA,WAAA;qBACH,aAAA,CAAA,WAAA;wBACG,aAAA,CAAA,WAAA;mBACL,aAAA,CAAA,WAAA;sBACG,aAAA,CAAA,WAAA;uBACC,aAAA,CAAA,WAAA;kBACL,aAAA,CAAA,WAAA;0BACQ,aAAA,CAAA,WAAA;AAGpB;AAGA,6BAAyB,MAAM;AAK/B,uBAAmB,MAAM;AAOzB,wBAAoB,MAAM;2BAMH,MAAM;AAK7B,sBAAkB,MAAM;AAQxB,wBAAoB,MAAM;AAI1B;oDAtDW,kBAAkB;sDAAlB,kBAAkB;AAyD9B;;;;","names":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Signal } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
type FuiBadgeSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
type FuiBadgeVariant = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | 'custom';
|
|
6
|
+
declare const FUI_BADGE_SIZES: readonly FuiBadgeSize[];
|
|
7
|
+
declare const FUI_BADGE_VARIANTS: readonly FuiBadgeVariant[];
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @component FuiBadgeComponent
|
|
11
|
+
* @selector fui-badge
|
|
12
|
+
* @description Displays a small label badge with optional icon and color variants.
|
|
13
|
+
* Supports custom colors with automatic text contrast calculation.
|
|
14
|
+
*
|
|
15
|
+
* @input label - (required) Text content of the badge.
|
|
16
|
+
* @input icon - Optional Phosphor icon name displayed before the label.
|
|
17
|
+
* @input customColor - Optional hex color that overrides the variant palette.
|
|
18
|
+
* @input size - Badge size: 'sm' | 'md' | 'lg'. Default 'md'.
|
|
19
|
+
* @input variant - Color variant: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info'. Default 'primary'.
|
|
20
|
+
* @input ariaLabel - Accessible label override for screen readers.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* <fui-badge label="Active" variant="success" icon="check-circle"></fui-badge>
|
|
24
|
+
*/
|
|
25
|
+
declare class FuiBadgeComponent {
|
|
26
|
+
/** Pattern allowing hex, rgb/rgba, hsl/hsla, and CSS named colors */
|
|
27
|
+
private static readonly _SAFE_COLOR_PATTERN;
|
|
28
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
29
|
+
readonly icon: _angular_core.InputSignal<string | null>;
|
|
30
|
+
readonly customColor: _angular_core.InputSignal<string | null>;
|
|
31
|
+
readonly size: _angular_core.InputSignalWithTransform<FuiBadgeSize, string>;
|
|
32
|
+
readonly variant: _angular_core.InputSignalWithTransform<FuiBadgeVariant, string>;
|
|
33
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
34
|
+
/** Validated custom color - returns null for invalid values to prevent CSS injection */
|
|
35
|
+
readonly sanitizedColor: Signal<string | null>;
|
|
36
|
+
readonly computedTextColor: Signal<string | null>;
|
|
37
|
+
readonly computedStyles: Signal<Record<string, string>>;
|
|
38
|
+
readonly computedClasses: Signal<string>;
|
|
39
|
+
readonly iconSize: Signal<'sm' | 'md' | 'lg'>;
|
|
40
|
+
private getRelativeLuminance;
|
|
41
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiBadgeComponent, never>;
|
|
42
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiBadgeComponent, "fui-badge", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "customColor": { "alias": "customColor"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { FUI_BADGE_SIZES, FUI_BADGE_VARIANTS, FuiBadgeComponent };
|
|
46
|
+
export type { FuiBadgeSize, FuiBadgeVariant };
|
|
47
|
+
//# sourceMappingURL=raintonic-formaui-components-badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-badge.d.ts","sources":["../../../lib/components/badge/badge.types.ts","../../../lib/components/badge/badge.component.ts"],"mappings":";;;AAAM,KAAM,YAAY;KAEZ,eAAe;AAE3B,cAAa,eAAe,WAAW,YAAY;AAEnD,cAAa,kBAAkB,WAAW,eAAe;;ACFzD;;;;;;;;;;;;;;;AAeG;AACH,cAca,iBAAiB;;AAE5B;oBAEc,aAAA,CAAA,WAAA;mBAED,aAAA,CAAA,WAAA;0BAEO,aAAA,CAAA,WAAA;mBAEP,aAAA,CAAA,wBAAA,CAAA,YAAA;sBAIG,aAAA,CAAA,wBAAA,CAAA,eAAA;wBAIE,aAAA,CAAA,WAAA;;6BAGO,MAAM;gCAUH,MAAM;6BAOX,MAAA,CAAA,MAAA;AASvB,8BAA0B,MAAM;uBAWb,MAAM;AAMzB;oDAhEW,iBAAiB;sDAAjB,iBAAiB;AA0E7B;;;;","names":[]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
interface BigMenuItem {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
children: BigMenuChild[];
|
|
9
|
+
}
|
|
10
|
+
interface BigMenuChild {
|
|
11
|
+
id: string;
|
|
12
|
+
label: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
isActive?: boolean;
|
|
15
|
+
link?: string;
|
|
16
|
+
value?: string;
|
|
17
|
+
badge?: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @component FuiBigMenuComponent
|
|
22
|
+
* @selector fui-big-menu
|
|
23
|
+
* @description A two-level navigation mega-menu. The primary column displays icon-based
|
|
24
|
+
* main menu items; hovering over or selecting a main item reveals a secondary flyout
|
|
25
|
+
* panel listing its children. Designed for application-level navigation alongside
|
|
26
|
+
* `fui-toolbar` and `fui-sidebar`.
|
|
27
|
+
*
|
|
28
|
+
* @input menu - (required) Array of `BigMenuItem` objects defining the menu structure
|
|
29
|
+
*
|
|
30
|
+
* @output itemMenuClick - Emits `{ item: BigMenuChild; event: MouseEvent }` when a child item is clicked
|
|
31
|
+
*
|
|
32
|
+
* @cssvar --fui-big-menu-width - Width of the primary icon column (default: 90px)
|
|
33
|
+
* @cssvar --fui-big-menu-bg - Background color of both menu panels
|
|
34
|
+
* @cssvar --fui-big-menu-border-color - Border color between panels and edge
|
|
35
|
+
* @cssvar --fui-big-menu-item-size - Width and height of primary menu item icons
|
|
36
|
+
* @cssvar --fui-big-menu-item-border-radius - Border radius of primary item icons
|
|
37
|
+
* @cssvar --fui-big-menu-secondary-width - Width of the secondary flyout panel (default: 228px)
|
|
38
|
+
* @cssvar --fui-big-menu-secondary-item-height - Height of each child item row
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* <fui-big-menu [menu]="menuItems" (itemMenuClick)="onItemClick($event)"></fui-big-menu>
|
|
42
|
+
*/
|
|
43
|
+
declare class FuiBigMenuComponent implements OnInit {
|
|
44
|
+
menu: _angular_core.InputSignal<BigMenuItem[]>;
|
|
45
|
+
itemMenuClick: _angular_core.OutputEmitterRef<{
|
|
46
|
+
item: BigMenuChild;
|
|
47
|
+
event: MouseEvent;
|
|
48
|
+
}>;
|
|
49
|
+
selectedMainVoice: _angular_core.WritableSignal<BigMenuItem | null>;
|
|
50
|
+
selectedMainVoiceId: _angular_core.Signal<string | undefined>;
|
|
51
|
+
showSecondaryMenu: _angular_core.WritableSignal<boolean>;
|
|
52
|
+
ngOnInit(): void;
|
|
53
|
+
selectMainVoice(voice: BigMenuItem): void;
|
|
54
|
+
onMouseOver(): void;
|
|
55
|
+
onMouseLeave(): void;
|
|
56
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiBigMenuComponent, never>;
|
|
57
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiBigMenuComponent, "fui-big-menu", never, { "menu": { "alias": "menu"; "required": true; "isSignal": true; }; }, { "itemMenuClick": "itemMenuClick"; }, never, ["[top-content]", "[bottom-content]"], true, never>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { FuiBigMenuComponent };
|
|
61
|
+
export type { BigMenuChild, BigMenuItem };
|
|
62
|
+
//# sourceMappingURL=raintonic-formaui-components-big-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-big-menu.d.ts","sources":["../../../lib/components/big-menu/big-menu-item.interface.ts","../../../lib/components/big-menu/big-menu.component.ts"],"mappings":";;;UAAiB,WAAW;;;;cAIhB,YAAY;AACvB;UAEgB,YAAY;;;;;;;;AAQ5B;;ACVD;;;;;;;;;;;;;;;;;;;;;;AAsBG;AACH,cAMa,mBAAoB,YAAW,MAAM;AAChD,UAAI,aAAA,CAAA,WAAA,CAAA,WAAA;mBAES,aAAA,CAAA,gBAAA;cAAkB,YAAY;eAAS,UAAU;AAAM;AACpE,uBAAiB,aAAA,CAAA,cAAA,CAAA,WAAA;AACjB,yBAAmB,aAAA,CAAA,MAAA;AACnB,uBAAiB,aAAA,CAAA,cAAA;AAEjB;AAIA,2BAAuB,WAAW;AAOlC;AAKA;oDAxBW,mBAAmB;sDAAnB,mBAAmB;AA2B/B;;;;","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class FuiBreadcrumbItemComponent {
|
|
5
|
+
readonly routerLink: _angular_core.InputSignal<string | unknown[] | null>;
|
|
6
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
7
|
+
readonly isLast: _angular_core.WritableSignal<boolean>;
|
|
8
|
+
readonly _separator: _angular_core.WritableSignal<string>;
|
|
9
|
+
readonly isLink: _angular_core.Signal<boolean>;
|
|
10
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiBreadcrumbItemComponent, never>;
|
|
11
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiBreadcrumbItemComponent, "fui-breadcrumb-item", never, { "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*", "*"], true, never>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare class FuiBreadcrumbComponent {
|
|
15
|
+
readonly separator: _angular_core.InputSignal<string>;
|
|
16
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
17
|
+
readonly items: _angular_core.Signal<readonly FuiBreadcrumbItemComponent[]>;
|
|
18
|
+
constructor();
|
|
19
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiBreadcrumbComponent, never>;
|
|
20
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuiBreadcrumbComponent, "fui-breadcrumb", never, { "separator": { "alias": "separator"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; }, {}, ["items"], ["*"], true, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare const FUI_BREADCRUMB: InjectionToken<unknown>;
|
|
24
|
+
|
|
25
|
+
export { FUI_BREADCRUMB, FuiBreadcrumbComponent, FuiBreadcrumbItemComponent };
|
|
26
|
+
//# sourceMappingURL=raintonic-formaui-components-breadcrumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-breadcrumb.d.ts","sources":["../../../lib/components/breadcrumb/breadcrumb-item.component.ts","../../../lib/components/breadcrumb/breadcrumb.component.ts","../../../lib/components/breadcrumb/breadcrumb.types.ts"],"mappings":";;;AAWA,cAea,0BAA0B;yBAClB,aAAA,CAAA,WAAA;uBACF,aAAA,CAAA,wBAAA;qBAGF,aAAA,CAAA,cAAA;yBACI,aAAA,CAAA,cAAA;qBAEJ,aAAA,CAAA,MAAA;oDARJ,0BAA0B;sDAA1B,0BAA0B;AAStC;;AC/BD,cAaa,sBAAsB;wBACf,aAAA,CAAA,WAAA;wBACA,aAAA,CAAA,WAAA;oBAEJ,aAAA,CAAA,MAAA,UAAA,0BAAA;;oDAJH,sBAAsB;sDAAtB,sBAAsB;AAelC;;AC9BD,cAAa,cAAc,EAAA,cAAA;;;;","names":[]}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { AfterContentInit } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # Button Group Component
|
|
6
|
+
*
|
|
7
|
+
* A container component that groups multiple buttons together, creating a unified
|
|
8
|
+
* visual element with connected borders. Follows Carbon Design System patterns.
|
|
9
|
+
*
|
|
10
|
+
* ## Features
|
|
11
|
+
* - Groups multiple buttons into a single visual unit
|
|
12
|
+
* - Removes internal border-radius, keeping only the extremities rounded
|
|
13
|
+
* - Surface-02 background with small padding
|
|
14
|
+
* - Automatically handles button border-radius for first and last buttons
|
|
15
|
+
*
|
|
16
|
+
* ## Usage
|
|
17
|
+
*
|
|
18
|
+
* ### Basic Button Group
|
|
19
|
+
* ```html
|
|
20
|
+
* <fui-button-group>
|
|
21
|
+
* <button fuiButton variant="outline">Left</button>
|
|
22
|
+
* <button fuiButton variant="outline">Center</button>
|
|
23
|
+
* <button fuiButton variant="outline">Right</button>
|
|
24
|
+
* </fui-button-group>
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```typescript
|
|
29
|
+
* import { FuiButtonGroupComponent } from '@raintonic/formaui/components/button-group';
|
|
30
|
+
* import { FuiButtonDirective } from '@raintonic/formaui/components/button';
|
|
31
|
+
*
|
|
32
|
+
* @Component({
|
|
33
|
+
* standalone: true,
|
|
34
|
+
* imports: [FuiButtonGroupComponent, FuiButtonDirective],
|
|
35
|
+
* template: `
|
|
36
|
+
* <fui-button-group>
|
|
37
|
+
* <button fuiButton variant="outline">Option 1</button>
|
|
38
|
+
* <button fuiButton variant="outline">Option 2</button>
|
|
39
|
+
* <button fuiButton variant="outline">Option 3</button>
|
|
40
|
+
* </fui-button-group>
|
|
41
|
+
* `
|
|
42
|
+
* })
|
|
43
|
+
* export class MyComponent {}
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
declare class FuiButtonGroupComponent implements AfterContentInit {
|
|
47
|
+
/**
|
|
48
|
+
* Accessible label for the button group
|
|
49
|
+
*/
|
|
50
|
+
readonly ariaLabel: i0.InputSignal<string | undefined>;
|
|
51
|
+
private readonly _elementRef;
|
|
52
|
+
private readonly _renderer;
|
|
53
|
+
constructor();
|
|
54
|
+
ngAfterContentInit(): void;
|
|
55
|
+
private _updateButtonStyles;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FuiButtonGroupComponent, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FuiButtonGroupComponent, "fui-button-group", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { FuiButtonGroupComponent };
|
|
61
|
+
//# sourceMappingURL=raintonic-formaui-components-button-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-button-group.d.ts","sources":["../../../lib/components/button-group/button-group.component.ts"],"mappings":";;;AAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCG;AACH,cAaa,uBAAwB,YAAW,gBAAgB;AAC9D;;AAEG;wBACeA,EAAA,CAAA,WAAA;AAElB;AACA;;AASA;AAIA;yCApBW,uBAAuB;2CAAvB,uBAAuB;AA2CnC;;;;","names":["_angular_core"]}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { AfterViewInit, Signal } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Available button variants following Carbon Design System patterns
|
|
6
|
+
*/
|
|
7
|
+
type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'outline' | 'danger' | 'link' | 'icon';
|
|
8
|
+
/**
|
|
9
|
+
* Available button sizes
|
|
10
|
+
*/
|
|
11
|
+
type ButtonSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
12
|
+
declare const FUI_BUTTON_VARIANTS: readonly ["primary", "secondary", "ghost", "outline", "danger", "link", "icon"];
|
|
13
|
+
declare const FUI_BUTTON_SIZES: readonly ["sm", "md", "lg", "xl", "2xl"];
|
|
14
|
+
type ButtonType = 'button' | 'submit' | 'reset';
|
|
15
|
+
/**
|
|
16
|
+
* # Button Directive
|
|
17
|
+
*
|
|
18
|
+
* A versatile button directive that can be applied to both `<button>` and `<a>` elements.
|
|
19
|
+
* Follows Carbon Design System patterns with full accessibility support.
|
|
20
|
+
*
|
|
21
|
+
* ## Features
|
|
22
|
+
* - Multiple variants: primary, secondary,ghost, outline, danger, link
|
|
23
|
+
* - Six sizes: sm, md, lg, xl, 2xl, field
|
|
24
|
+
* - Full accessibility support (ARIA attributes, keyboard navigation)
|
|
25
|
+
* - Loading and disabled states
|
|
26
|
+
* - Icon support with proper spacing
|
|
27
|
+
* - Full-width option
|
|
28
|
+
* - Works with both button and anchor elements
|
|
29
|
+
*
|
|
30
|
+
*
|
|
31
|
+
* ### Link Button
|
|
32
|
+
* ```html
|
|
33
|
+
* <a fuiButton href="/dashboard" variant="ghost">Go to Dashboard</a>
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```typescript
|
|
38
|
+
* import { FuiButtonDirective } from '@raintonic/formaui/components/button';
|
|
39
|
+
*
|
|
40
|
+
* @Component({
|
|
41
|
+
* standalone: true,
|
|
42
|
+
* imports: [FuiButtonDirective],
|
|
43
|
+
* template: `
|
|
44
|
+
* <button fuiButton variant="primary" (click)="save()">
|
|
45
|
+
* Save Changes
|
|
46
|
+
* </button>
|
|
47
|
+
* `
|
|
48
|
+
* })
|
|
49
|
+
* export class MyComponent {
|
|
50
|
+
* save() {
|
|
51
|
+
* // Handle save action
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
declare class FuiButtonDirective implements AfterViewInit {
|
|
57
|
+
/**
|
|
58
|
+
* Button variant that determines the color scheme
|
|
59
|
+
* @default 'primary'
|
|
60
|
+
*/
|
|
61
|
+
readonly variant: _angular_core.InputSignalWithTransform<ButtonVariant, string>;
|
|
62
|
+
/**
|
|
63
|
+
* Button size
|
|
64
|
+
* @default 'md'
|
|
65
|
+
*/
|
|
66
|
+
readonly size: _angular_core.InputSignalWithTransform<ButtonSize, string>;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the button is disabled
|
|
69
|
+
* @default false
|
|
70
|
+
*/
|
|
71
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
72
|
+
/**
|
|
73
|
+
* Whether the button should take full width of its container
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
76
|
+
readonly fullWidth: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
77
|
+
/**
|
|
78
|
+
* Whether the button is in loading state
|
|
79
|
+
* @default false
|
|
80
|
+
*/
|
|
81
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
82
|
+
/**
|
|
83
|
+
* Whether the button contains only an icon (for proper padding)
|
|
84
|
+
* @default false
|
|
85
|
+
*/
|
|
86
|
+
readonly iconOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
87
|
+
/**
|
|
88
|
+
* Accessible label for icon-only buttons.
|
|
89
|
+
* Required when `iconOnly` is true so screen readers can announce the button's purpose.
|
|
90
|
+
*/
|
|
91
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
92
|
+
/**
|
|
93
|
+
* Button type for native button elements
|
|
94
|
+
* @default 'button'
|
|
95
|
+
*/
|
|
96
|
+
readonly type: _angular_core.InputSignal<ButtonType>;
|
|
97
|
+
readonly computedClasses: Signal<string>;
|
|
98
|
+
private readonly _elementRef;
|
|
99
|
+
private readonly _renderer;
|
|
100
|
+
get isButton(): boolean;
|
|
101
|
+
get isAnchor(): boolean;
|
|
102
|
+
constructor();
|
|
103
|
+
ngAfterViewInit(): void;
|
|
104
|
+
onClick(event: Event): void;
|
|
105
|
+
onKeydown(event: Event): void;
|
|
106
|
+
onKeyup(event: Event): void;
|
|
107
|
+
private _addLoadingSpinner;
|
|
108
|
+
private _removeLoadingSpinner;
|
|
109
|
+
private _syncAnchorHrefDisabledState;
|
|
110
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuiButtonDirective, never>;
|
|
111
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FuiButtonDirective, "button[fuiButton], a[fuiButton]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export { FUI_BUTTON_SIZES, FUI_BUTTON_VARIANTS, FuiButtonDirective };
|
|
115
|
+
export type { ButtonSize, ButtonType, ButtonVariant };
|
|
116
|
+
//# sourceMappingURL=raintonic-formaui-components-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-button.d.ts","sources":["../../../lib/components/button/button.directive.ts"],"mappings":";;;AAcA;;AAEG;KACS,aAAa;AAEzB;;AAEG;AACG,KAAM,UAAU;AAEtB,cAAa,mBAAmB;AAChC,cAAa,gBAAgB;AAEvB,KAAM,UAAU;AAEtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCG;AACH,cAmBa,kBAAmB,YAAW,aAAa;AACtD;;;AAGG;sBACa,aAAA,CAAA,wBAAA,CAAA,aAAA;AAIhB;;;AAGG;mBACU,aAAA,CAAA,wBAAA,CAAA,UAAA;AAIb;;;AAGG;uBACc,aAAA,CAAA,wBAAA;AAEjB;;;AAGG;wBACe,aAAA,CAAA,wBAAA;AAElB;;;AAGG;sBACa,aAAA,CAAA,wBAAA;AAEhB;;;AAGG;uBACc,aAAA,CAAA,wBAAA;AAEjB;;;AAGG;wBACe,aAAA,CAAA,WAAA;AAElB;;;AAGG;mBACU,aAAA,CAAA,WAAA,CAAA,UAAA;AAGb,8BAA0B,MAAM;AAsBhC;AACA;;;;AAsBA;AASA,mBAAe,KAAK;AASpB,qBAAiB,KAAK;AAoBtB,mBAAe,KAAK;AASpB;AAgBA;AAOA;oDAzKW,kBAAkB;sDAAlB,kBAAkB;AAwL9B;;;;","names":[]}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InputSignal, AfterContentInit, WritableSignal, Signal } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # FuiCardHeader Component
|
|
6
|
+
*
|
|
7
|
+
* Header section for cards with optional title, subtitle, and additional content.
|
|
8
|
+
*
|
|
9
|
+
* ## Usage
|
|
10
|
+
* ```html
|
|
11
|
+
* <fui-card-header title="Card Title" subtitle="Optional subtitle">
|
|
12
|
+
* <button fuiButton variant="ghost">
|
|
13
|
+
* <fui-icon name="dots-three"></fui-icon>
|
|
14
|
+
* </button>
|
|
15
|
+
* </fui-card-header>
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
declare class FuiCardHeaderComponent {
|
|
19
|
+
/**
|
|
20
|
+
* Unique id for linking with aria-labelledby from the card
|
|
21
|
+
*/
|
|
22
|
+
readonly hostId: string;
|
|
23
|
+
/**
|
|
24
|
+
* Main title text for the card header
|
|
25
|
+
*/
|
|
26
|
+
readonly title: InputSignal<string | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* Optional subtitle text for the card header
|
|
29
|
+
*/
|
|
30
|
+
readonly subtitle: InputSignal<string | undefined>;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FuiCardHeaderComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FuiCardHeaderComponent, "fui-card-header", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* # FuiCardActions Component
|
|
37
|
+
*
|
|
38
|
+
* Actions section for cards, typically containing buttons or other interactive elements.
|
|
39
|
+
*
|
|
40
|
+
* ## Usage
|
|
41
|
+
* ```html
|
|
42
|
+
* <fui-card-actions align="end">
|
|
43
|
+
* <button fuiButton variant="tertiary">Cancel</button>
|
|
44
|
+
* <button fuiButton variant="primary" color="primary">Save</button>
|
|
45
|
+
* </fui-card-actions>
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* ### Paddingless Actions
|
|
49
|
+
* ```html
|
|
50
|
+
* <fui-card-actions align="start" paddingless="true">
|
|
51
|
+
* <button fuiButton variant="ghost">
|
|
52
|
+
* <fui-icon name="heart"></fui-icon>
|
|
53
|
+
* </button>
|
|
54
|
+
* </fui-card-actions>
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
declare class FuiCardActionsComponent {
|
|
58
|
+
/**
|
|
59
|
+
* Alignment of actions within the container
|
|
60
|
+
* @default 'end'
|
|
61
|
+
*/
|
|
62
|
+
readonly align: InputSignal<'start' | 'center' | 'end'>;
|
|
63
|
+
/**
|
|
64
|
+
* Whether to remove padding from the actions container
|
|
65
|
+
* @default false
|
|
66
|
+
*/
|
|
67
|
+
readonly paddingless: InputSignal<boolean>;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FuiCardActionsComponent, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FuiCardActionsComponent, "fui-card-actions", never, { "align": { "alias": "align"; "required": false; "isSignal": true; }; "paddingless": { "alias": "paddingless"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Available card variants following Carbon Design System patterns
|
|
74
|
+
*/
|
|
75
|
+
type FuiCardVariant = 'elevated' | 'outlined' | 'flat';
|
|
76
|
+
/**
|
|
77
|
+
* Available padding options for card content
|
|
78
|
+
*/
|
|
79
|
+
type FuiCardPadding = 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
80
|
+
/**
|
|
81
|
+
* # FuiCard Component
|
|
82
|
+
*
|
|
83
|
+
* A flexible container component following Carbon Design System patterns.
|
|
84
|
+
* Provides a structured layout with optional header, content, and actions sections.
|
|
85
|
+
*
|
|
86
|
+
* ## Features
|
|
87
|
+
* - Multiple variants: elevated, outlined, flat
|
|
88
|
+
* - Configurable padding: none, sm, md, lg, xl
|
|
89
|
+
* - Structured content areas: header, content, actions
|
|
90
|
+
* - Clickable state support with hover animations
|
|
91
|
+
* - Disabled state support
|
|
92
|
+
* - Full accessibility support
|
|
93
|
+
* - Smooth motion transitions
|
|
94
|
+
*
|
|
95
|
+
* ## Usage
|
|
96
|
+
*
|
|
97
|
+
* ### Basic Card
|
|
98
|
+
* ```html
|
|
99
|
+
* <fui-card>
|
|
100
|
+
* <p>Card content goes here</p>
|
|
101
|
+
* </fui-card>
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* ### Card with Header and Actions
|
|
105
|
+
* ```html
|
|
106
|
+
* <fui-card variant="outlined">
|
|
107
|
+
* <fui-card-header title="Card Title" subtitle="Optional subtitle">
|
|
108
|
+
* <button fuiButton variant="ghost" size="sm" [iconOnly]="true">
|
|
109
|
+
* <fui-icon name="overflow-menu-vertical"></fui-icon>
|
|
110
|
+
* </button>
|
|
111
|
+
* </fui-card-header>
|
|
112
|
+
*
|
|
113
|
+
* <p>Main card content</p>
|
|
114
|
+
*
|
|
115
|
+
* <fui-card-actions align="end">
|
|
116
|
+
* <button fuiButton variant="secondary" kind="ghost">Cancel</button>
|
|
117
|
+
* <button fuiButton variant="primary">Save</button>
|
|
118
|
+
* </fui-card-actions>
|
|
119
|
+
* </fui-card>
|
|
120
|
+
* ```
|
|
121
|
+
*
|
|
122
|
+
* ### Clickable Card
|
|
123
|
+
* ```html
|
|
124
|
+
* <fui-card [clickable]="true" (click)="handleCardClick()">
|
|
125
|
+
* <p>This entire card is clickable</p>
|
|
126
|
+
* </fui-card>
|
|
127
|
+
* ```
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```typescript
|
|
131
|
+
* import { FuiCardComponent, FuiCardHeaderComponent, FuiCardActionsComponent } from '@raintonic/formaui/components/card';
|
|
132
|
+
*
|
|
133
|
+
* @Component({
|
|
134
|
+
* standalone: true,
|
|
135
|
+
* imports: [FuiCardComponent, FuiCardHeaderComponent, FuiCardActionsComponent],
|
|
136
|
+
* template: `
|
|
137
|
+
* <fui-card variant="elevated" padding="lg">
|
|
138
|
+
* <fui-card-header title="User Profile"></fui-card-header>
|
|
139
|
+
* <div class="user-info">
|
|
140
|
+
* <p>User details here...</p>
|
|
141
|
+
* </div>
|
|
142
|
+
* <fui-card-actions>
|
|
143
|
+
* <button fuiButton>Edit</button>
|
|
144
|
+
* </fui-card-actions>
|
|
145
|
+
* </fui-card>
|
|
146
|
+
* `
|
|
147
|
+
* })
|
|
148
|
+
* export class UserCardComponent {}
|
|
149
|
+
* ```
|
|
150
|
+
*/
|
|
151
|
+
declare class FuiCardComponent implements AfterContentInit {
|
|
152
|
+
/**
|
|
153
|
+
* Card variant that determines the visual style
|
|
154
|
+
* @default 'outlined'
|
|
155
|
+
*/
|
|
156
|
+
readonly variant: InputSignal<FuiCardVariant>;
|
|
157
|
+
/**
|
|
158
|
+
* Padding applied to card content
|
|
159
|
+
* @default 'lg'
|
|
160
|
+
*/
|
|
161
|
+
readonly padding: InputSignal<FuiCardPadding>;
|
|
162
|
+
/**
|
|
163
|
+
* Whether the card is clickable (adds hover effects and cursor pointer)
|
|
164
|
+
* @default false
|
|
165
|
+
*/
|
|
166
|
+
readonly clickable: InputSignal<boolean>;
|
|
167
|
+
/**
|
|
168
|
+
* Whether the card is disabled
|
|
169
|
+
* @default false
|
|
170
|
+
*/
|
|
171
|
+
readonly disabled: InputSignal<boolean>;
|
|
172
|
+
readonly hovered: WritableSignal<boolean>;
|
|
173
|
+
readonly liftState: Signal<'idle' | 'lifted'>;
|
|
174
|
+
headerCmp?: FuiCardHeaderComponent;
|
|
175
|
+
actionsCmp?: FuiCardActionsComponent;
|
|
176
|
+
headerId: string;
|
|
177
|
+
readonly computedClasses: Signal<string>;
|
|
178
|
+
onMouseEnter(): void;
|
|
179
|
+
onMouseLeave(): void;
|
|
180
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
181
|
+
onClick(event: MouseEvent): void;
|
|
182
|
+
ngAfterContentInit(): void;
|
|
183
|
+
get hasHeader(): boolean;
|
|
184
|
+
get hasActions(): boolean;
|
|
185
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FuiCardComponent, never>;
|
|
186
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FuiCardComponent, "fui-card", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, ["headerCmp", "actionsCmp"], ["fui-card-header, [rtCardHeader]", "*", "fui-card-actions, [rtCardActions]"], true, never>;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export { FuiCardActionsComponent, FuiCardComponent, FuiCardHeaderComponent };
|
|
190
|
+
export type { FuiCardPadding, FuiCardVariant };
|
|
191
|
+
//# sourceMappingURL=raintonic-formaui-components-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raintonic-formaui-components-card.d.ts","sources":["../../../lib/components/card/card-header.component.ts","../../../lib/components/card/card-actions.component.ts","../../../lib/components/card/card.component.ts"],"mappings":";;;AAEA;;;;;;;;;;;;;AAaG;AACH,cASa,sBAAsB;AACjC;;AAEG;;AAGH;;AAEG;oBACa,WAAW;AAE3B;;AAEG;uBACgB,WAAW;yCAdnB,sBAAsB;2CAAtB,sBAAsB;AAelC;;ACtCD;;;;;;;;;;;;;;;;;;;;;AAqBG;AACH,cAYa,uBAAuB;AAClC;;;AAGG;oBACa,WAAW;AAE3B;;;AAGG;AACH,0BAAsB,WAAW;yCAXtB,uBAAuB;2CAAvB,uBAAuB;AAYnC;;AC9BD;;AAEG;AACG,KAAM,cAAc;AAE1B;;AAEG;AACG,KAAM,cAAc;AAE1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEG;AACH,cAiBa,gBAAiB,YAAW,gBAAgB;AACvD;;;AAGG;AACH,sBAAkB,WAAW,CAAC,cAAc;AAE5C;;;AAGG;AACH,sBAAkB,WAAW,CAAC,cAAc;AAE5C;;;AAGG;AACH,wBAAoB,WAAW;AAE/B;;;AAGG;AACH,uBAAmB,WAAW;AAG9B,sBAAkB,cAAc;wBACZ,MAAM;gBAKwB,sBAAsB;iBACpB,uBAAuB;AAE3E;AAGA,8BAA0B,MAAM;AAmBhC;AAOA;AAKA,qBAAiB,aAAa;AAQ9B,mBAAe,UAAU;AAOzB;;;yCApFW,gBAAgB;2CAAhB,gBAAgB;AAiG5B;;;;","names":[]}
|