ngx-strata 0.1.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/README.md +1 -0
- package/assets/fonts/Inter-VariableFont.ttf +0 -0
- package/assets/icons/arrow-down.svg +1 -0
- package/assets/icons/arrow-left.svg +1 -0
- package/assets/icons/arrow-right.svg +1 -0
- package/assets/icons/arrow-up.svg +1 -0
- package/assets/icons/clipboard.svg +1 -0
- package/assets/icons/close.svg +1 -0
- package/assets/icons/expand-up-down.svg +1 -0
- package/assets/icons/more.svg +1 -0
- package/assets/icons/question.svg +1 -0
- package/assets/styles/base.scss +26 -0
- package/assets/styles/breakpoints.scss +6 -0
- package/assets/styles/colors.scss +57 -0
- package/assets/styles/components/accordion.scss +75 -0
- package/assets/styles/components/action-menu.scss +66 -0
- package/assets/styles/components/avatar.scss +132 -0
- package/assets/styles/components/button.scss +174 -0
- package/assets/styles/components/card.scss +82 -0
- package/assets/styles/components/checkbox.scss +71 -0
- package/assets/styles/components/divider.scss +41 -0
- package/assets/styles/components/grid.scss +242 -0
- package/assets/styles/components/icon.scss +36 -0
- package/assets/styles/components/input-field.scss +72 -0
- package/assets/styles/components/item.scss +69 -0
- package/assets/styles/components/modal.scss +126 -0
- package/assets/styles/components/notification.scss +58 -0
- package/assets/styles/components/number-display.scss +25 -0
- package/assets/styles/components/overlay.scss +3 -0
- package/assets/styles/components/pagination.scss +28 -0
- package/assets/styles/components/progress.scss +118 -0
- package/assets/styles/components/segmented-control.scss +49 -0
- package/assets/styles/components/select.scss +127 -0
- package/assets/styles/components/slider.scss +127 -0
- package/assets/styles/components/spinner.scss +93 -0
- package/assets/styles/components/table.scss +66 -0
- package/assets/styles/components/tag.scss +60 -0
- package/assets/styles/components/text-stack.scss +29 -0
- package/assets/styles/components/toggle.scss +64 -0
- package/assets/styles/components/tooltip.scss +68 -0
- package/assets/styles/focus-outline.scss +11 -0
- package/assets/styles/public-api.scss +36 -0
- package/assets/styles/scrollbar.scss +29 -0
- package/assets/styles/shadows.scss +4 -0
- package/assets/styles/sizes.scss +12 -0
- package/assets/styles/typography.scss +66 -0
- package/dist/my-lib/strata.css +1 -0
- package/dist/strata/strata.css +1 -0
- package/fesm2022/ngx-strata.mjs +1720 -0
- package/fesm2022/ngx-strata.mjs.map +1 -0
- package/package.json +35 -0
- package/types/ngx-strata.d.ts +639 -0
|
@@ -0,0 +1,639 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy, AfterContentInit, ElementRef, Renderer2, EnvironmentProviders, InjectionToken, Provider, AfterViewInit, TemplateRef, OnChanges, SimpleChanges, PipeTransform, Type, ComponentRef, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { Placement } from '@floating-ui/dom';
|
|
4
|
+
import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { HttpClient } from '@angular/common/http';
|
|
7
|
+
import * as ngx_strata from 'ngx-strata';
|
|
8
|
+
|
|
9
|
+
declare class TooltipDirective implements OnInit, OnDestroy, AfterContentInit {
|
|
10
|
+
private document;
|
|
11
|
+
private element;
|
|
12
|
+
private renderer;
|
|
13
|
+
stSimpleTooltip: _angular_core.InputSignal<string>;
|
|
14
|
+
tooltipEnabled: boolean;
|
|
15
|
+
tooltipPlacement: TooltipPlacement;
|
|
16
|
+
tooltipAlwaysShow: boolean;
|
|
17
|
+
private tooltipContentElement;
|
|
18
|
+
private arrowElement;
|
|
19
|
+
private eventListeners;
|
|
20
|
+
private autoUpdateCleanupFunction?;
|
|
21
|
+
private config;
|
|
22
|
+
constructor(document: Document, element: ElementRef, renderer: Renderer2);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
ngAfterContentInit(): void;
|
|
25
|
+
doPosition(): void;
|
|
26
|
+
ngOnDestroy(): void;
|
|
27
|
+
private shouldRender;
|
|
28
|
+
showTimeoutCancel: any;
|
|
29
|
+
private show;
|
|
30
|
+
private hide;
|
|
31
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
32
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TooltipDirective, "[stSimpleTooltip]", never, { "stSimpleTooltip": { "alias": "stSimpleTooltip"; "required": true; "isSignal": true; }; "tooltipEnabled": { "alias": "tooltipEnabled"; "required": false; }; "tooltipPlacement": { "alias": "tooltipPlacement"; "required": false; }; "tooltipAlwaysShow": { "alias": "tooltipAlwaysShow"; "required": false; }; }, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
34
|
+
type TooltipPlacement = Exclude<Placement, 'left-start' | 'left-end' | 'right-start' | 'right-end'>;
|
|
35
|
+
|
|
36
|
+
type DarkmodeSetting = 'DARK' | 'LIGHT' | 'SYSTEM';
|
|
37
|
+
type CurrentDarkmode = 'LIGHT' | 'DARK';
|
|
38
|
+
type Size = 'xs' | 'sm' | 'md' | 'lg';
|
|
39
|
+
type Theme = 'brand' | 'default' | 'danger' | 'warning' | 'success' | 'info';
|
|
40
|
+
|
|
41
|
+
declare class DarkmodeService {
|
|
42
|
+
private readonly STORAGE_KEY;
|
|
43
|
+
private document;
|
|
44
|
+
private osPrefersDark;
|
|
45
|
+
private setting;
|
|
46
|
+
private darkmode;
|
|
47
|
+
currentMode: _angular_core.Signal<CurrentDarkmode>;
|
|
48
|
+
currentSetting: _angular_core.Signal<DarkmodeSetting>;
|
|
49
|
+
constructor();
|
|
50
|
+
setDarkmodeSetting(newSetting: DarkmodeSetting): CurrentDarkmode;
|
|
51
|
+
private getSystemDarkmodePreference;
|
|
52
|
+
private calculateDarkmode;
|
|
53
|
+
private updateDarkmodeTagOnDOM;
|
|
54
|
+
private saveSettingToStorage;
|
|
55
|
+
private getSettingFromStorage;
|
|
56
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DarkmodeService, never>;
|
|
57
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DarkmodeService>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
interface IconConfig {
|
|
61
|
+
name: string;
|
|
62
|
+
url: string;
|
|
63
|
+
}
|
|
64
|
+
type IconSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
65
|
+
|
|
66
|
+
declare const provideBaseIcons: () => EnvironmentProviders;
|
|
67
|
+
declare const provideIcons: (iconConfigs: IconConfig[]) => EnvironmentProviders;
|
|
68
|
+
|
|
69
|
+
declare function provideStrata(config?: Partial<StrataConfig>): (Provider | EnvironmentProviders)[];
|
|
70
|
+
type StrataConfig = {
|
|
71
|
+
includeBaseIcons: boolean;
|
|
72
|
+
tooltipDelayMs: number;
|
|
73
|
+
};
|
|
74
|
+
declare const STRATA_CONFIG: InjectionToken<StrataConfig>;
|
|
75
|
+
|
|
76
|
+
declare class ActionMenuItemComponent {
|
|
77
|
+
private checkbox;
|
|
78
|
+
private toggle;
|
|
79
|
+
closeMenuOnClick: _angular_core.InputSignal<boolean>;
|
|
80
|
+
onMenuItemClicked: _angular_core.OutputEmitterRef<boolean>;
|
|
81
|
+
elementRef: ElementRef<HTMLElement>;
|
|
82
|
+
onHostClick(event: MouseEvent): void;
|
|
83
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActionMenuItemComponent, never>;
|
|
84
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionMenuItemComponent, "st-action-menu-item", never, { "closeMenuOnClick": { "alias": "closeMenuOnClick"; "required": false; "isSignal": true; }; }, { "onMenuItemClicked": "onMenuItemClicked"; }, ["checkbox", "toggle"], ["[area='start']", "*", "[area='end']"], true, never>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
declare class ActionMenuComponent implements AfterViewInit {
|
|
88
|
+
projectedButton: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
89
|
+
defaultButton: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
90
|
+
actionMenuItems: _angular_core.Signal<readonly ActionMenuItemComponent[]>;
|
|
91
|
+
placement: _angular_core.InputSignal<Placement>;
|
|
92
|
+
renderer: Renderer2;
|
|
93
|
+
menuOpen: _angular_core.WritableSignal<boolean>;
|
|
94
|
+
ngAfterViewInit(): void;
|
|
95
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActionMenuComponent, never>;
|
|
96
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionMenuComponent, "st-action-menu", never, { "placement": { "alias": "placement"; "required": false; "isSignal": true; }; }, {}, ["projectedButton", "actionMenuItems"], ["button[stButton]", "st-action-menu-item"], true, never>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
declare class AccordionItemComponent {
|
|
100
|
+
title: _angular_core.InputSignal<string>;
|
|
101
|
+
open: _angular_core.ModelSignal<boolean>;
|
|
102
|
+
toggled: _angular_core.OutputEmitterRef<boolean>;
|
|
103
|
+
constructor();
|
|
104
|
+
get isOpen(): boolean;
|
|
105
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AccordionItemComponent, never>;
|
|
106
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AccordionItemComponent, "st-accordion-item", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "toggled": "toggled"; }, never, ["*"], true, never>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
declare class AccordionGroupComponent implements AfterContentInit {
|
|
110
|
+
items: _angular_core.Signal<readonly AccordionItemComponent[]>;
|
|
111
|
+
allowMultipleOpen: _angular_core.InputSignal<boolean>;
|
|
112
|
+
ngAfterContentInit(): void;
|
|
113
|
+
closeOtherItems(currentItem: AccordionItemComponent): void;
|
|
114
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AccordionGroupComponent, never>;
|
|
115
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AccordionGroupComponent, "st-accordion-group", never, { "allowMultipleOpen": { "alias": "allowMultipleOpen"; "required": false; "isSignal": true; }; }, {}, ["items"], ["*"], true, never>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
declare class AvatarStackComponent implements AfterViewInit {
|
|
119
|
+
avatarRefs: _angular_core.Signal<readonly ElementRef<any>[]>;
|
|
120
|
+
size: _angular_core.InputSignal<Size>;
|
|
121
|
+
spacing: _angular_core.InputSignal<"loose" | "mid" | "tight">;
|
|
122
|
+
firstOnFront: _angular_core.InputSignal<boolean>;
|
|
123
|
+
get xsClass(): boolean;
|
|
124
|
+
get smClass(): boolean;
|
|
125
|
+
get mdClass(): boolean;
|
|
126
|
+
get lgClass(): boolean;
|
|
127
|
+
get firstOnFrontClass(): boolean;
|
|
128
|
+
get looseClass(): boolean;
|
|
129
|
+
get midClass(): boolean;
|
|
130
|
+
get tightClass(): boolean;
|
|
131
|
+
ngAfterViewInit(): void;
|
|
132
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AvatarStackComponent, never>;
|
|
133
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AvatarStackComponent, "st-avatar-stack", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "spacing": { "alias": "spacing"; "required": false; "isSignal": true; }; "firstOnFront": { "alias": "firstOnFront"; "required": false; "isSignal": true; }; }, {}, ["avatarRefs"], ["*"], true, never>;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
declare abstract class IconRegistry {
|
|
137
|
+
abstract getIcon(name: string): Observable<SafeHtml>;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
declare class IconComponent implements OnDestroy {
|
|
141
|
+
defaultIcon: string;
|
|
142
|
+
name: _angular_core.InputSignal<string>;
|
|
143
|
+
size: _angular_core.ModelSignal<IconSize>;
|
|
144
|
+
get sizeClass(): boolean;
|
|
145
|
+
get sizeSmClass(): boolean;
|
|
146
|
+
get sizeMdClass(): boolean;
|
|
147
|
+
get sizeLgClass(): boolean;
|
|
148
|
+
svgMarkdown: any;
|
|
149
|
+
private iconSubscription;
|
|
150
|
+
iconRegistry: IconRegistry;
|
|
151
|
+
ngOnDestroy(): void;
|
|
152
|
+
ngOnChanges(): void;
|
|
153
|
+
private setIcon;
|
|
154
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
155
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<IconComponent, "st-icon", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "size": "sizeChange"; }, never, never, true, never>;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
declare class AvatarComponent implements AfterViewInit {
|
|
159
|
+
iconComponents: _angular_core.Signal<readonly IconComponent[]>;
|
|
160
|
+
text: _angular_core.InputSignal<string | null>;
|
|
161
|
+
size: _angular_core.ModelSignal<Size>;
|
|
162
|
+
get elementClasses(): Size[];
|
|
163
|
+
ngAfterViewInit(): void;
|
|
164
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AvatarComponent, never>;
|
|
165
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AvatarComponent, "st-avatar", never, { "text": { "alias": "text"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "size": "sizeChange"; }, ["iconComponents"], ["*"], true, never>;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
declare class ButtonGroupComponent {
|
|
169
|
+
renderer: Renderer2;
|
|
170
|
+
justification: _angular_core.InputSignal<ButtonGroupJustification>;
|
|
171
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonGroupComponent, never>;
|
|
172
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonGroupComponent, "st-button-group", never, { "justification": { "alias": "justification"; "required": false; "isSignal": true; }; }, {}, never, ["[stButton], st-divider"], true, never>;
|
|
173
|
+
}
|
|
174
|
+
type ButtonGroupJustification = 'start' | 'center' | 'end' | 'expand' | 'stack';
|
|
175
|
+
|
|
176
|
+
declare class ButtonDirective implements AfterContentInit {
|
|
177
|
+
host: ElementRef<any>;
|
|
178
|
+
variant: _angular_core.InputSignal<ButtonVariant>;
|
|
179
|
+
size: _angular_core.InputSignal<ButtonSize>;
|
|
180
|
+
fullWidth: _angular_core.InputSignal<boolean>;
|
|
181
|
+
private iconAtStart;
|
|
182
|
+
private iconAtEnd;
|
|
183
|
+
private iconOnly;
|
|
184
|
+
constructor();
|
|
185
|
+
get classes(): string[];
|
|
186
|
+
ngAfterContentInit(): void;
|
|
187
|
+
nodeIsStIcon(node: any): boolean;
|
|
188
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonDirective, never>;
|
|
189
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ButtonDirective, "[stButton]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
190
|
+
}
|
|
191
|
+
type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost';
|
|
192
|
+
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
193
|
+
|
|
194
|
+
declare class CardComponent {
|
|
195
|
+
elevated: _angular_core.InputSignal<boolean>;
|
|
196
|
+
selectable: _angular_core.InputSignal<boolean>;
|
|
197
|
+
padding: _angular_core.InputSignal<boolean>;
|
|
198
|
+
variant: _angular_core.InputSignal<CardVariant>;
|
|
199
|
+
get withPadding(): boolean;
|
|
200
|
+
get isSelectable(): boolean;
|
|
201
|
+
get tabIndex(): number | null;
|
|
202
|
+
get isElevated(): boolean;
|
|
203
|
+
get isFlat(): boolean;
|
|
204
|
+
get isOutline(): boolean;
|
|
205
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CardComponent, never>;
|
|
206
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardComponent, "st-card", never, { "elevated": { "alias": "elevated"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, ["[area='cover']", "*"], true, never>;
|
|
207
|
+
}
|
|
208
|
+
type CardVariant = 'elevated' | 'flat' | 'outline';
|
|
209
|
+
|
|
210
|
+
declare class CheckboxComponent {
|
|
211
|
+
value: _angular_core.ModelSignal<boolean | undefined>;
|
|
212
|
+
label: _angular_core.InputSignal<string | undefined>;
|
|
213
|
+
name: _angular_core.InputSignal<string | undefined>;
|
|
214
|
+
onClick(event: MouseEvent): void;
|
|
215
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
216
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CheckboxComponent, "st-checkbox", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
declare class DropdownComponent {
|
|
220
|
+
open: _angular_core.WritableSignal<boolean>;
|
|
221
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
222
|
+
placement: _angular_core.InputSignal<Placement>;
|
|
223
|
+
fullWidth: _angular_core.InputSignal<boolean>;
|
|
224
|
+
label: _angular_core.InputSignal<string | undefined>;
|
|
225
|
+
name: _angular_core.InputSignal<string | undefined>;
|
|
226
|
+
selected: _angular_core.ModelSignal<SelectItem | undefined>;
|
|
227
|
+
size: _angular_core.InputSignal<DropdownSize>;
|
|
228
|
+
searchable: _angular_core.InputSignal<boolean>;
|
|
229
|
+
searchQuery: _angular_core.ModelSignal<string | undefined>;
|
|
230
|
+
searchPlaceholder: _angular_core.InputSignal<string>;
|
|
231
|
+
dropdownItems: _angular_core.InputSignal<SelectItem[]>;
|
|
232
|
+
shownItems: _angular_core.Signal<SelectItem[]>;
|
|
233
|
+
onSelect: _angular_core.OutputEmitterRef<SelectItem>;
|
|
234
|
+
private inputField;
|
|
235
|
+
get classList(): DropdownSize[];
|
|
236
|
+
toggleDropdown(event?: MouseEvent): void;
|
|
237
|
+
onItemClick(item: SelectItem, mouseEvent: MouseEvent): void;
|
|
238
|
+
onItemHover(mouseEvent: MouseEvent): void;
|
|
239
|
+
private show;
|
|
240
|
+
private hide;
|
|
241
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownComponent, never>;
|
|
242
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownComponent, "st-dropdown", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; "searchQuery": { "alias": "searchQuery"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "dropdownItems": { "alias": "dropdownItems"; "required": true; "isSignal": true; }; }, { "selected": "selectedChange"; "searchQuery": "searchQueryChange"; "onSelect": "onSelect"; }, never, never, true, never>;
|
|
243
|
+
}
|
|
244
|
+
interface SelectItem {
|
|
245
|
+
text: string;
|
|
246
|
+
id: string;
|
|
247
|
+
}
|
|
248
|
+
type DropdownSize = 'sm' | 'md' | 'lg';
|
|
249
|
+
|
|
250
|
+
declare class DividerComponent {
|
|
251
|
+
label: _angular_core.InputSignal<string | undefined>;
|
|
252
|
+
margin: _angular_core.InputSignal<boolean>;
|
|
253
|
+
vertical: _angular_core.InputSignal<boolean>;
|
|
254
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DividerComponent, never>;
|
|
255
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DividerComponent, "st-divider", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "margin": { "alias": "margin"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
declare class TagComponent {
|
|
259
|
+
size: _angular_core.InputSignal<TagSize>;
|
|
260
|
+
get class(): TagSize;
|
|
261
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TagComponent, never>;
|
|
262
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TagComponent, "st-tag", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
263
|
+
}
|
|
264
|
+
type TagSize = 'sm' | 'md' | 'lg';
|
|
265
|
+
|
|
266
|
+
declare abstract class IconLoader {
|
|
267
|
+
abstract loadSvg(url: string): Observable<SafeHtml>;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
declare class HttpIconLoader implements IconLoader {
|
|
271
|
+
httpClient: HttpClient;
|
|
272
|
+
sanitizer: DomSanitizer;
|
|
273
|
+
loadSvg(url: string): Observable<SafeHtml>;
|
|
274
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HttpIconLoader, never>;
|
|
275
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<HttpIconLoader>;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
declare class IconRegistryService {
|
|
279
|
+
private iconLoader;
|
|
280
|
+
icons: Record<string, string>;
|
|
281
|
+
svgs: Record<string, SafeHtml>;
|
|
282
|
+
constructor(iconLoader: IconLoader);
|
|
283
|
+
registerIcons(iconConfigs: IconConfig[]): void;
|
|
284
|
+
registerIcon(iconConfig: IconConfig): void;
|
|
285
|
+
getIconUrl(name: string): string | null;
|
|
286
|
+
getIcon(name: string): Observable<SafeHtml>;
|
|
287
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IconRegistryService, never>;
|
|
288
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<IconRegistryService>;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
declare class ItemListComponent<T> {
|
|
292
|
+
items: _angular_core.InputSignal<T[]>;
|
|
293
|
+
dividers: _angular_core.InputSignal<boolean>;
|
|
294
|
+
template: _angular_core.InputSignal<TemplateRef<any> | undefined>;
|
|
295
|
+
get hostClasses(): string[];
|
|
296
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ItemListComponent<any>, never>;
|
|
297
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ItemListComponent<any>, "st-item-list", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "dividers": { "alias": "dividers"; "required": false; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
declare class ItemComponent {
|
|
301
|
+
interactable: _angular_core.InputSignal<boolean>;
|
|
302
|
+
get isInteractable(): boolean;
|
|
303
|
+
get tabIndex(): number | null;
|
|
304
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ItemComponent, never>;
|
|
305
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ItemComponent, "st-item", never, { "interactable": { "alias": "interactable"; "required": false; "isSignal": true; }; }, {}, never, ["[area='start']", "*", "[area='end']"], true, never>;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
declare class NativeInputRefDirective {
|
|
309
|
+
el: ElementRef<any>;
|
|
310
|
+
constructor();
|
|
311
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NativeInputRefDirective, never>;
|
|
312
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NativeInputRefDirective, "input[stInput], textarea[stInput]", never, {}, {}, never, never, true, never>;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
declare class InputFieldComponent implements AfterViewInit {
|
|
316
|
+
iconComponents: _angular_core.Signal<readonly IconComponent[]>;
|
|
317
|
+
inputField: _angular_core.Signal<NativeInputRefDirective | undefined>;
|
|
318
|
+
private pendingFocus;
|
|
319
|
+
constructor();
|
|
320
|
+
ngAfterViewInit(): void;
|
|
321
|
+
focus(): void;
|
|
322
|
+
blur(): void;
|
|
323
|
+
get nativeInput(): HTMLInputElement | undefined;
|
|
324
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InputFieldComponent, never>;
|
|
325
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InputFieldComponent, "st-input-field", never, {}, {}, ["iconComponents", "inputField"], ["label", "[prefix]", "input,textarea", "[suffix]"], true, never>;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
declare class AutoResizeDirective implements AfterViewInit, OnChanges {
|
|
329
|
+
minimumRows: _angular_core.InputSignal<number>;
|
|
330
|
+
maximumRows: _angular_core.InputSignal<number | undefined>;
|
|
331
|
+
private lineHeight;
|
|
332
|
+
private element;
|
|
333
|
+
onInput(): void;
|
|
334
|
+
onWindowResize(): void;
|
|
335
|
+
constructor();
|
|
336
|
+
ngAfterViewInit(): void;
|
|
337
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
338
|
+
private calculateLineHeight;
|
|
339
|
+
private resize;
|
|
340
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AutoResizeDirective, never>;
|
|
341
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AutoResizeDirective, "[stAutoResize]", never, { "minimumRows": { "alias": "minimumRows"; "required": false; "isSignal": true; }; "maximumRows": { "alias": "maximumRows"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
declare class OverlayDirective implements OnChanges, OnDestroy {
|
|
345
|
+
stOverlay: _angular_core.InputSignal<TemplateRef<any>>;
|
|
346
|
+
overlayOpen: _angular_core.ModelSignal<boolean>;
|
|
347
|
+
overlayPlacement: _angular_core.InputSignal<Placement>;
|
|
348
|
+
overlayOffset: _angular_core.InputSignal<number>;
|
|
349
|
+
private readonly element;
|
|
350
|
+
private readonly viewContainerRef;
|
|
351
|
+
private overlayEl?;
|
|
352
|
+
private cleanup?;
|
|
353
|
+
constructor();
|
|
354
|
+
ngOnChanges(): void;
|
|
355
|
+
private create;
|
|
356
|
+
private updatePosition;
|
|
357
|
+
private destroy;
|
|
358
|
+
ngOnDestroy(): void;
|
|
359
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<OverlayDirective, never>;
|
|
360
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<OverlayDirective, "[stOverlay]", never, { "stOverlay": { "alias": "stOverlay"; "required": true; "isSignal": true; }; "overlayOpen": { "alias": "overlayOpen"; "required": false; "isSignal": true; }; "overlayPlacement": { "alias": "overlayPlacement"; "required": false; "isSignal": true; }; "overlayOffset": { "alias": "overlayOffset"; "required": false; "isSignal": true; }; }, { "overlayOpen": "overlayOpenChange"; }, never, never, true, never>;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
declare class PaginationComponent {
|
|
364
|
+
currentPage: _angular_core.ModelSignal<number>;
|
|
365
|
+
totalPages: _angular_core.InputSignal<number>;
|
|
366
|
+
onPageSelect: _angular_core.OutputEmitterRef<number>;
|
|
367
|
+
pageButtons: _angular_core.Signal<PaginationItem[]>;
|
|
368
|
+
hideNextPreviousAtStartEnd: _angular_core.InputSignal<boolean>;
|
|
369
|
+
changePage(newPage: number): void;
|
|
370
|
+
private calculatePageButtons;
|
|
371
|
+
private showStartingPages;
|
|
372
|
+
private showEndingPages;
|
|
373
|
+
private showAllPages;
|
|
374
|
+
private spaceItem;
|
|
375
|
+
private pageItem;
|
|
376
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
377
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PaginationComponent, "st-pagination", never, { "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "totalPages": { "alias": "totalPages"; "required": true; "isSignal": true; }; "hideNextPreviousAtStartEnd": { "alias": "hideNextPreviousAtStartEnd"; "required": false; "isSignal": true; }; }, { "currentPage": "currentPageChange"; "onPageSelect": "onPageSelect"; }, never, never, true, never>;
|
|
378
|
+
}
|
|
379
|
+
type PaginationItem = {
|
|
380
|
+
page: number | undefined;
|
|
381
|
+
text: string;
|
|
382
|
+
clickable: boolean;
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
declare class CapitalizePipe implements PipeTransform {
|
|
386
|
+
static capitalize(value: string): string;
|
|
387
|
+
transform(value: string, ...args: unknown[]): unknown;
|
|
388
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CapitalizePipe, never>;
|
|
389
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<CapitalizePipe, "capitalize", true>;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
declare class ProgressComponent {
|
|
393
|
+
min: _angular_core.InputSignal<number>;
|
|
394
|
+
max: _angular_core.InputSignal<number>;
|
|
395
|
+
value: _angular_core.InputSignal<number>;
|
|
396
|
+
type: _angular_core.InputSignal<ProgressType>;
|
|
397
|
+
showLabel: _angular_core.InputSignal<boolean>;
|
|
398
|
+
labelFormat: _angular_core.InputSignal<ProgressLabelFormat>;
|
|
399
|
+
growDirection: _angular_core.InputSignal<ProgressGrowDirection>;
|
|
400
|
+
size: _angular_core.InputSignal<number>;
|
|
401
|
+
strokeWidth: _angular_core.InputSignal<number>;
|
|
402
|
+
percentage: _angular_core.Signal<number>;
|
|
403
|
+
radius: _angular_core.Signal<number>;
|
|
404
|
+
circumference: _angular_core.Signal<number>;
|
|
405
|
+
dashOffset: _angular_core.Signal<number>;
|
|
406
|
+
get cssClasses(): string[];
|
|
407
|
+
get percentageProperty(): number;
|
|
408
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgressComponent, never>;
|
|
409
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgressComponent, "st-progress", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "labelFormat": { "alias": "labelFormat"; "required": false; "isSignal": true; }; "growDirection": { "alias": "growDirection"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
410
|
+
}
|
|
411
|
+
type ProgressType = 'linear' | 'radial';
|
|
412
|
+
type ProgressLabelFormat = 'percentage' | 'value';
|
|
413
|
+
type ProgressGrowDirection = 'left' | 'right';
|
|
414
|
+
|
|
415
|
+
declare class SegmentedControlItemComponent {
|
|
416
|
+
text: _angular_core.InputSignal<string>;
|
|
417
|
+
selected: _angular_core.ModelSignal<boolean>;
|
|
418
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
419
|
+
onSelection: _angular_core.OutputEmitterRef<void>;
|
|
420
|
+
get tabIndex(): number | null;
|
|
421
|
+
get disabledAttribute(): boolean | null;
|
|
422
|
+
onClick(): void;
|
|
423
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedControlItemComponent, never>;
|
|
424
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedControlItemComponent, "st-segmented-control-item", never, { "text": { "alias": "text"; "required": true; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "onSelection": "onSelection"; }, never, never, true, never>;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
declare class SegmentedControlComponent implements AfterViewInit {
|
|
428
|
+
segmentItems: _angular_core.Signal<readonly SegmentedControlItemComponent[]>;
|
|
429
|
+
segmentItemsRefs: _angular_core.Signal<readonly ElementRef<any>[]>;
|
|
430
|
+
selectedItem: _angular_core.WritableSignal<SegmentedControlItemComponent | null>;
|
|
431
|
+
selectedIndex: _angular_core.WritableSignal<number>;
|
|
432
|
+
offset: _angular_core.Signal<number>;
|
|
433
|
+
private widths;
|
|
434
|
+
ngAfterViewInit(): void;
|
|
435
|
+
selectItem(selectedItem: SegmentedControlItemComponent): void;
|
|
436
|
+
calculateOffset(currentIndex: number): number;
|
|
437
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedControlComponent, never>;
|
|
438
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedControlComponent, "st-segmented-control", never, {}, {}, ["segmentItems", "segmentItemsRefs"], ["st-segmented-control-item"], true, never>;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
declare class SliderComponent implements AfterViewInit, OnDestroy {
|
|
442
|
+
wrapper: _angular_core.Signal<ElementRef<HTMLDivElement>>;
|
|
443
|
+
private resizeObserver;
|
|
444
|
+
value: _angular_core.ModelSignal<number | undefined>;
|
|
445
|
+
minimum: _angular_core.InputSignal<number>;
|
|
446
|
+
maximum: _angular_core.InputSignal<number>;
|
|
447
|
+
step: _angular_core.InputSignal<number | "none" | undefined>;
|
|
448
|
+
computedStep: _angular_core.Signal<number | "any">;
|
|
449
|
+
steps: _angular_core.Signal<number>;
|
|
450
|
+
isStepped: _angular_core.Signal<boolean>;
|
|
451
|
+
ngAfterViewInit(): void;
|
|
452
|
+
ngOnDestroy(): void;
|
|
453
|
+
private updateTickMath;
|
|
454
|
+
private getThumbSize;
|
|
455
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SliderComponent, never>;
|
|
456
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SliderComponent, "st-slider", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "minimum": { "alias": "minimum"; "required": true; "isSignal": true; }; "maximum": { "alias": "maximum"; "required": true; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
declare class SpinnerComponent {
|
|
460
|
+
size: _angular_core.InputSignal<SpinnerSize>;
|
|
461
|
+
get cssClasses(): string[];
|
|
462
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SpinnerComponent, never>;
|
|
463
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SpinnerComponent, "st-spinner", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
464
|
+
}
|
|
465
|
+
type SpinnerSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
466
|
+
|
|
467
|
+
declare class TextStackComponent {
|
|
468
|
+
overflow: _angular_core.InputSignal<TextStackOverflow>;
|
|
469
|
+
get cssClasses(): string[];
|
|
470
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextStackComponent, never>;
|
|
471
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextStackComponent, "st-text-stack", never, { "overflow": { "alias": "overflow"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
472
|
+
}
|
|
473
|
+
type TextStackOverflow = 'truncate' | 'wrap';
|
|
474
|
+
|
|
475
|
+
declare class ToggleComponent {
|
|
476
|
+
checked: _angular_core.ModelSignal<boolean>;
|
|
477
|
+
get isChecked(): boolean;
|
|
478
|
+
size: _angular_core.InputSignal<"sm" | "md" | "lg">;
|
|
479
|
+
get sizeClass(): "sm" | "md" | "lg";
|
|
480
|
+
onCheckChanged(): void;
|
|
481
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToggleComponent, never>;
|
|
482
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToggleComponent, "st-toggle", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, never, true, never>;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
interface ModalConfiguration {
|
|
486
|
+
title?: string;
|
|
487
|
+
component: Type<unknown>;
|
|
488
|
+
onModalClosed?: (value?: any) => void;
|
|
489
|
+
hideCloseButton?: boolean;
|
|
490
|
+
disableBackdropClosure?: boolean;
|
|
491
|
+
size?: ModalSize;
|
|
492
|
+
inputs?: Record<string, unknown>;
|
|
493
|
+
}
|
|
494
|
+
interface AlertConfiguration {
|
|
495
|
+
message: string;
|
|
496
|
+
icon?: string;
|
|
497
|
+
title?: string;
|
|
498
|
+
theme?: Theme;
|
|
499
|
+
affirmativeButton: string;
|
|
500
|
+
cancelButton?: string;
|
|
501
|
+
}
|
|
502
|
+
interface WithID {
|
|
503
|
+
id: string;
|
|
504
|
+
}
|
|
505
|
+
type ModalSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
506
|
+
|
|
507
|
+
declare class ModalService {
|
|
508
|
+
private stack;
|
|
509
|
+
private currentModals;
|
|
510
|
+
showModal(config: ModalConfiguration): void;
|
|
511
|
+
showAlert(config: AlertConfiguration, callback: (value: boolean) => void): void;
|
|
512
|
+
closeCurrentModal(value?: any): void;
|
|
513
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalService, never>;
|
|
514
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ModalService>;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
declare class AlertContentComponent {
|
|
518
|
+
private modalService;
|
|
519
|
+
title: _angular_core.InputSignal<string>;
|
|
520
|
+
message: _angular_core.InputSignal<string | undefined>;
|
|
521
|
+
icon: _angular_core.InputSignal<string | undefined>;
|
|
522
|
+
readonly computedIcon: _angular_core.Signal<string>;
|
|
523
|
+
theme: _angular_core.InputSignal<Theme>;
|
|
524
|
+
affirmativeButton: _angular_core.InputSignal<string>;
|
|
525
|
+
cancelButton: _angular_core.InputSignal<string | undefined>;
|
|
526
|
+
constructor(modalService: ModalService);
|
|
527
|
+
onAffirmation(): void;
|
|
528
|
+
onCancel(): void;
|
|
529
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AlertContentComponent, never>;
|
|
530
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AlertContentComponent, "st-alert-content", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "affirmativeButton": { "alias": "affirmativeButton"; "required": true; "isSignal": true; }; "cancelButton": { "alias": "cancelButton"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
declare class Stack<T> {
|
|
534
|
+
items: T[];
|
|
535
|
+
push(item: T): void;
|
|
536
|
+
pop(): T;
|
|
537
|
+
peek(): T;
|
|
538
|
+
empty(): boolean;
|
|
539
|
+
size(): number;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
declare class ModalContainerComponent implements OnDestroy {
|
|
543
|
+
private modalService;
|
|
544
|
+
injectedComponent: ComponentRef<any>;
|
|
545
|
+
currentModal: ModalConfiguration | null;
|
|
546
|
+
stack: Stack<ModalConfiguration & WithID>;
|
|
547
|
+
private subscription;
|
|
548
|
+
constructor(modalService: ModalService);
|
|
549
|
+
ngOnDestroy(): void;
|
|
550
|
+
onBackdropClick(event: MouseEvent): void;
|
|
551
|
+
stackTrack(index: number, item: ModalConfiguration & WithID): string;
|
|
552
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalContainerComponent, never>;
|
|
553
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalContainerComponent, "st-modal-container", never, {}, {}, never, never, true, never>;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
declare class ModalHeaderComponent {
|
|
557
|
+
modalService: ModalService;
|
|
558
|
+
title: _angular_core.InputSignal<string | null | undefined>;
|
|
559
|
+
showCloseButton: _angular_core.InputSignal<boolean>;
|
|
560
|
+
onCloseButtonClicked(event: MouseEvent): void;
|
|
561
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalHeaderComponent, never>;
|
|
562
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalHeaderComponent, "st-modal-header", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
declare class ModalComponent implements AfterViewInit {
|
|
566
|
+
modalContents: _angular_core.Signal<ViewContainerRef>;
|
|
567
|
+
configuration: _angular_core.InputSignal<ModalConfiguration>;
|
|
568
|
+
size: _angular_core.ModelSignal<ModalSize | undefined>;
|
|
569
|
+
get sizeClass(): string;
|
|
570
|
+
ngAfterViewInit(): void;
|
|
571
|
+
private setInputsOnInjectedComponent;
|
|
572
|
+
onCardClick(event: MouseEvent): void;
|
|
573
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
574
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalComponent, "st-modal", never, { "configuration": { "alias": "configuration"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "size": "sizeChange"; }, never, never, true, never>;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
interface NotificationConfiguration {
|
|
578
|
+
icon?: string;
|
|
579
|
+
message: string;
|
|
580
|
+
theme?: Theme;
|
|
581
|
+
duration?: number;
|
|
582
|
+
}
|
|
583
|
+
type NotificationsWithIds = NotificationConfiguration & {
|
|
584
|
+
id: string;
|
|
585
|
+
};
|
|
586
|
+
declare const DEFAULT_THEME: Theme;
|
|
587
|
+
declare const DEFAULT_DURATION: number;
|
|
588
|
+
|
|
589
|
+
declare class NotificationService {
|
|
590
|
+
notificationStack: _angular_core.WritableSignal<NotificationsWithIds[]>;
|
|
591
|
+
showNotification(config: NotificationConfiguration): void;
|
|
592
|
+
private hideNotification;
|
|
593
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NotificationService, never>;
|
|
594
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NotificationService>;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
declare class NotificationContainerComponent {
|
|
598
|
+
notificationService: NotificationService;
|
|
599
|
+
notifications: _angular_core.WritableSignal<ngx_strata.NotificationsWithIds[]>;
|
|
600
|
+
constructor();
|
|
601
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NotificationContainerComponent, never>;
|
|
602
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NotificationContainerComponent, "st-notification-container", never, {}, {}, never, never, true, never>;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
declare class NotificationComponent {
|
|
606
|
+
icon?: string;
|
|
607
|
+
message: string;
|
|
608
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NotificationComponent, never>;
|
|
609
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NotificationComponent, "st-notification", never, { "icon": { "alias": "icon"; "required": false; }; "message": { "alias": "message"; "required": false; }; }, {}, never, never, true, never>;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
declare class NumberDisplayComponent {
|
|
613
|
+
private readonly locale;
|
|
614
|
+
value: _angular_core.InputSignal<number>;
|
|
615
|
+
decimals: _angular_core.InputSignal<number>;
|
|
616
|
+
private digitsInfo;
|
|
617
|
+
private formattedNumber;
|
|
618
|
+
readonly separatedDigits: _angular_core.Signal<{
|
|
619
|
+
integer: string;
|
|
620
|
+
decimals?: string;
|
|
621
|
+
}>;
|
|
622
|
+
changedValue: _angular_core.InputSignal<boolean>;
|
|
623
|
+
showPlus: _angular_core.InputSignal<boolean>;
|
|
624
|
+
deemphasizeDecimals: _angular_core.InputSignal<boolean>;
|
|
625
|
+
readonly decimalPoint: _angular_core.Signal<string>;
|
|
626
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NumberDisplayComponent, never>;
|
|
627
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NumberDisplayComponent, "st-number-display", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "decimals": { "alias": "decimals"; "required": false; "isSignal": true; }; "changedValue": { "alias": "changedValue"; "required": false; "isSignal": true; }; "showPlus": { "alias": "showPlus"; "required": false; "isSignal": true; }; "deemphasizeDecimals": { "alias": "deemphasizeDecimals"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
declare class ThemeDirective {
|
|
631
|
+
element: ElementRef<any>;
|
|
632
|
+
stTheme: _angular_core.InputSignal<Theme>;
|
|
633
|
+
constructor();
|
|
634
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeDirective, never>;
|
|
635
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ThemeDirective, "[stTheme]", never, { "stTheme": { "alias": "stTheme"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
export { AccordionGroupComponent, AccordionItemComponent, ActionMenuComponent, ActionMenuItemComponent, AlertContentComponent, AutoResizeDirective, AvatarComponent, AvatarStackComponent, ButtonDirective, ButtonGroupComponent, CapitalizePipe, CardComponent, CheckboxComponent, DEFAULT_DURATION, DEFAULT_THEME, DarkmodeService, DividerComponent, DropdownComponent, HttpIconLoader, IconComponent, IconLoader, IconRegistry, IconRegistryService, InputFieldComponent, ItemComponent, ItemListComponent, ModalComponent, ModalContainerComponent, ModalHeaderComponent, ModalService, NativeInputRefDirective, NotificationComponent, NotificationContainerComponent, NotificationService, NumberDisplayComponent, OverlayDirective, PaginationComponent, ProgressComponent, STRATA_CONFIG, SegmentedControlComponent, SegmentedControlItemComponent, SliderComponent, SpinnerComponent, TagComponent, TextStackComponent, ThemeDirective, ToggleComponent, TooltipDirective, provideBaseIcons, provideIcons, provideStrata };
|
|
639
|
+
export type { AlertConfiguration, ButtonGroupJustification, ButtonSize, ButtonVariant, CardVariant, CurrentDarkmode, DarkmodeSetting, DropdownSize, IconConfig, IconSize, ModalConfiguration, ModalSize, NotificationConfiguration, NotificationsWithIds, PaginationItem, ProgressGrowDirection, ProgressLabelFormat, ProgressType, SelectItem, Size, SpinnerSize, StrataConfig, TagSize, TextStackOverflow, Theme, TooltipPlacement, WithID };
|