@rangertechnologies/fusion-ui 0.2.5 → 0.2.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rangertechnologies/fusion-ui",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "author": "Mohamed Riyaz Y",
5
5
  "license": "ISC",
6
6
  "description": "Shared component library for Fusion platform and micro-frontends",
@@ -4,7 +4,7 @@ import { Observable, Subject, Subscription } from "rxjs";
4
4
  import { HttpClient, HttpErrorResponse, HttpHeaders, HttpParams, HttpResponse } from "@angular/common/http";
5
5
  import { Overlay, ScrollStrategy } from "@angular/cdk/overlay";
6
6
  import { Modal } from "bootstrap";
7
- import { FormBuilder, FormControl, FormGroup } from "@angular/forms";
7
+ import { AbstractControl, ControlValueAccessor, FormBuilder, FormControl, FormGroup, ValidationErrors, Validator } from "@angular/forms";
8
8
  import { DatePipe } from "@angular/common";
9
9
  import { MatTableDataSource } from "@angular/material/table";
10
10
  import { MatSort } from "@angular/material/sort";
@@ -243,6 +243,7 @@ export declare class GlobalValuesService {
243
243
  getValue(element: any, column: string): any;
244
244
  formatKey(value: any): string;
245
245
  getSettingsAPI(): Promise<any>;
246
+ invalidateSettings(): Promise<any>;
246
247
  getPayslipTemplateAPI(): Promise<any>;
247
248
  invalidatePayslipTemplate(): void;
248
249
  filterObjectKeys(arrayOfObjects: any[], keys: string[]): any[];
@@ -2041,6 +2042,205 @@ export declare class UserChipComponent implements OnChanges {
2041
2042
  };
2042
2043
  }, {}, never, never, true, never>;
2043
2044
  }
2045
+ export type FusionBadgeTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
2046
+ export type FusionBadgeSize = 'sm' | 'md';
2047
+ /**
2048
+ * Business-agnostic status pill rendered with semantic theme tokens.
2049
+ * Callers map domain statuses (e.g. Draft, Active, Superseded) to a tone.
2050
+ */
2051
+ export declare class FusionStatusBadgeComponent {
2052
+ label: string;
2053
+ tone: FusionBadgeTone;
2054
+ size: FusionBadgeSize;
2055
+ showDot: boolean;
2056
+ ariaLabel?: string;
2057
+ get resolvedTone(): FusionBadgeTone;
2058
+ get resolvedSize(): FusionBadgeSize;
2059
+ static ɵfac: i0.ɵɵFactoryDeclaration<FusionStatusBadgeComponent, never>;
2060
+ static ɵcmp: i0.ɵɵComponentDeclaration<FusionStatusBadgeComponent, "fusion-status-badge", never, {
2061
+ "label": {
2062
+ "alias": "label";
2063
+ "required": false;
2064
+ };
2065
+ "tone": {
2066
+ "alias": "tone";
2067
+ "required": false;
2068
+ };
2069
+ "size": {
2070
+ "alias": "size";
2071
+ "required": false;
2072
+ };
2073
+ "showDot": {
2074
+ "alias": "showDot";
2075
+ "required": false;
2076
+ };
2077
+ "ariaLabel": {
2078
+ "alias": "ariaLabel";
2079
+ "required": false;
2080
+ };
2081
+ }, {}, never, never, true, never>;
2082
+ }
2083
+ /**
2084
+ * Generic content card container supporting optional title/subtitle,
2085
+ * header extras, header actions, body content projection, and footer slot.
2086
+ */
2087
+ export declare class FusionSectionCardComponent {
2088
+ title?: string;
2089
+ subtitle?: string;
2090
+ padded: boolean;
2091
+ elevated: boolean;
2092
+ readonly headingId: string;
2093
+ static ɵfac: i0.ɵɵFactoryDeclaration<FusionSectionCardComponent, never>;
2094
+ static ɵcmp: i0.ɵɵComponentDeclaration<FusionSectionCardComponent, "fusion-section-card", never, {
2095
+ "title": {
2096
+ "alias": "title";
2097
+ "required": false;
2098
+ };
2099
+ "subtitle": {
2100
+ "alias": "subtitle";
2101
+ "required": false;
2102
+ };
2103
+ "padded": {
2104
+ "alias": "padded";
2105
+ "required": false;
2106
+ };
2107
+ "elevated": {
2108
+ "alias": "elevated";
2109
+ "required": false;
2110
+ };
2111
+ }, {}, never, ["[card-header-extra]", "[card-actions]", "*", "[card-footer]"], true, never>;
2112
+ }
2113
+ export interface FusionTabItem {
2114
+ id: string;
2115
+ label: string;
2116
+ disabled?: boolean;
2117
+ panelId?: string;
2118
+ badge?: string;
2119
+ badgeTone?: FusionBadgeTone;
2120
+ }
2121
+ export type FusionTabStripVariant = 'sub-nav' | 'tabs';
2122
+ /**
2123
+ * Horizontal underline tab strip matching Fusion's tabs.css visual standard,
2124
+ * with roving tabindex, Arrow/Home/End keyboard navigation, and optional aria-controls.
2125
+ */
2126
+ export declare class FusionTabStripComponent {
2127
+ tabs: ReadonlyArray<FusionTabItem>;
2128
+ activeTabId: string;
2129
+ variant: FusionTabStripVariant;
2130
+ ariaLabel: string;
2131
+ activeTabIdChange: EventEmitter<string>;
2132
+ tabChange: EventEmitter<FusionTabItem>;
2133
+ tabButtons?: QueryList<ElementRef<HTMLButtonElement>>;
2134
+ get effectiveTabId(): string;
2135
+ getTabIndex(tab: FusionTabItem): number;
2136
+ selectTab(tab: FusionTabItem): void;
2137
+ onKeyDown(event: KeyboardEvent, currentIndex: number): void;
2138
+ trackByTabId(_index: number, tab: FusionTabItem): string;
2139
+ private focusTabAt;
2140
+ static ɵfac: i0.ɵɵFactoryDeclaration<FusionTabStripComponent, never>;
2141
+ static ɵcmp: i0.ɵɵComponentDeclaration<FusionTabStripComponent, "fusion-tab-strip", never, {
2142
+ "tabs": {
2143
+ "alias": "tabs";
2144
+ "required": false;
2145
+ };
2146
+ "activeTabId": {
2147
+ "alias": "activeTabId";
2148
+ "required": false;
2149
+ };
2150
+ "variant": {
2151
+ "alias": "variant";
2152
+ "required": false;
2153
+ };
2154
+ "ariaLabel": {
2155
+ "alias": "ariaLabel";
2156
+ "required": false;
2157
+ };
2158
+ }, {
2159
+ "activeTabIdChange": "activeTabIdChange";
2160
+ "tabChange": "tabChange";
2161
+ }, never, never, true, never>;
2162
+ }
2163
+ export declare function isValidIsoDate(value: string): boolean;
2164
+ export declare function toIsoDateString(val: string | Date | null | undefined): string | null;
2165
+ /**
2166
+ * Native day-level date picker wrapper styled with theme tokens and compatible
2167
+ * with Angular Reactive Forms (ControlValueAccessor + Validator).
2168
+ */
2169
+ export declare class FusionDatePickerComponent implements ControlValueAccessor, Validator {
2170
+ private readonly cdr;
2171
+ set value(val: string | Date | null | undefined);
2172
+ get value(): string;
2173
+ set min(val: string | Date | null | undefined);
2174
+ get min(): string | null;
2175
+ set max(val: string | Date | null | undefined);
2176
+ get max(): string | null;
2177
+ disabled: boolean;
2178
+ readonly: boolean;
2179
+ required: boolean;
2180
+ label?: string;
2181
+ inputId?: string;
2182
+ ariaLabel?: string;
2183
+ valueChange: EventEmitter<string | null>;
2184
+ normalizedValue: string;
2185
+ normalizedMin: string | null;
2186
+ normalizedMax: string | null;
2187
+ hasInvalidInput: boolean;
2188
+ private readonly defaultId;
2189
+ private onChange;
2190
+ private onTouched;
2191
+ private onValidatorChange;
2192
+ constructor(cdr: ChangeDetectorRef);
2193
+ get resolvedId(): string;
2194
+ writeValue(val: string | Date | null | undefined): void;
2195
+ registerOnChange(fn: (val: string | null) => void): void;
2196
+ registerOnTouched(fn: () => void): void;
2197
+ setDisabledState(isDisabled: boolean): void;
2198
+ registerOnValidatorChange(fn: () => void): void;
2199
+ validate(_control: AbstractControl): ValidationErrors | null;
2200
+ onNativeInput(event: Event): void;
2201
+ onNativeBlur(): void;
2202
+ static ɵfac: i0.ɵɵFactoryDeclaration<FusionDatePickerComponent, never>;
2203
+ static ɵcmp: i0.ɵɵComponentDeclaration<FusionDatePickerComponent, "fusion-date-picker", never, {
2204
+ "value": {
2205
+ "alias": "value";
2206
+ "required": false;
2207
+ };
2208
+ "min": {
2209
+ "alias": "min";
2210
+ "required": false;
2211
+ };
2212
+ "max": {
2213
+ "alias": "max";
2214
+ "required": false;
2215
+ };
2216
+ "disabled": {
2217
+ "alias": "disabled";
2218
+ "required": false;
2219
+ };
2220
+ "readonly": {
2221
+ "alias": "readonly";
2222
+ "required": false;
2223
+ };
2224
+ "required": {
2225
+ "alias": "required";
2226
+ "required": false;
2227
+ };
2228
+ "label": {
2229
+ "alias": "label";
2230
+ "required": false;
2231
+ };
2232
+ "inputId": {
2233
+ "alias": "inputId";
2234
+ "required": false;
2235
+ };
2236
+ "ariaLabel": {
2237
+ "alias": "ariaLabel";
2238
+ "required": false;
2239
+ };
2240
+ }, {
2241
+ "valueChange": "valueChange";
2242
+ }, never, never, true, never>;
2243
+ }
2044
2244
  export declare class FusionCardComponent implements OnInit {
2045
2245
  private sanitizer;
2046
2246
  private renderer;