ngx-strata 0.5.0 → 0.5.2
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/assets/styles/components/_breadcrumb.scss +4 -0
- package/assets/styles/components/_number-stepper.scss +260 -0
- package/assets/styles/components/_skeleton.scss +115 -0
- package/assets/styles/components/action-menu.scss +20 -2
- package/assets/styles/components/input-field.scss +19 -2
- package/assets/styles/components/item.scss +15 -2
- package/assets/styles/components/modal.scss +237 -22
- package/assets/styles/components/notification.scss +287 -41
- package/assets/styles/components/segmented-control.scss +20 -0
- package/assets/styles/components/select.scss +18 -0
- package/assets/styles/components/sidemenu.scss +8 -1
- package/assets/styles/components/tabs.scss +7 -0
- package/assets/styles/public-api.scss +2 -0
- package/assets/styles/semantics/color-semantic.scss +8 -0
- package/dist/strata/strata.css +1 -1
- package/fesm2022/ngx-strata.mjs +695 -51
- package/fesm2022/ngx-strata.mjs.map +1 -1
- package/package.json +1 -1
- package/skills/ngx-strata/SKILL.md +5 -1
- package/skills/ngx-strata/components/badge.md +24 -0
- package/skills/ngx-strata/components/breadcrumb.md +4 -1
- package/skills/ngx-strata/components/item.md +21 -9
- package/skills/ngx-strata/components/modal.md +36 -5
- package/skills/ngx-strata/components/notification.md +51 -5
- package/skills/ngx-strata/components/number-stepper.md +84 -0
- package/skills/ngx-strata/components/segmented-control.md +3 -0
- package/skills/ngx-strata/components/skeleton.md +59 -0
- package/skills/ngx-strata/components/tabs.md +6 -1
- package/types/ngx-strata.d.ts +200 -17
package/types/ngx-strata.d.ts
CHANGED
|
@@ -47,6 +47,29 @@ declare class StrataTooltipDirective implements OnInit, OnDestroy, AfterContentI
|
|
|
47
47
|
}
|
|
48
48
|
type TooltipPlacement = Exclude<Placement, 'left-start' | 'left-end' | 'right-start' | 'right-end'>;
|
|
49
49
|
|
|
50
|
+
type StrataBreakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
51
|
+
declare class BreakpointService {
|
|
52
|
+
private readonly platformId;
|
|
53
|
+
private readonly destroyRef;
|
|
54
|
+
private readonly isBrowser;
|
|
55
|
+
private readonly _width;
|
|
56
|
+
private readonly _current;
|
|
57
|
+
readonly width: _angular_core.Signal<number>;
|
|
58
|
+
readonly current: _angular_core.Signal<StrataBreakpoint>;
|
|
59
|
+
readonly isMobile: _angular_core.Signal<boolean>;
|
|
60
|
+
readonly isTablet: _angular_core.Signal<boolean>;
|
|
61
|
+
readonly isDesktop: _angular_core.Signal<boolean>;
|
|
62
|
+
constructor();
|
|
63
|
+
is(breakpoint: StrataBreakpoint): boolean;
|
|
64
|
+
isSmallerThan(breakpoint: StrataBreakpoint): boolean;
|
|
65
|
+
isLargerThan(breakpoint: StrataBreakpoint): boolean;
|
|
66
|
+
isAtLeast(breakpoint: StrataBreakpoint): boolean;
|
|
67
|
+
isAtMost(breakpoint: StrataBreakpoint): boolean;
|
|
68
|
+
private updateBreakpoint;
|
|
69
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BreakpointService, never>;
|
|
70
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<BreakpointService>;
|
|
71
|
+
}
|
|
72
|
+
|
|
50
73
|
declare class DarkmodeService {
|
|
51
74
|
private readonly STORAGE_KEY;
|
|
52
75
|
private document;
|
|
@@ -68,6 +91,28 @@ declare class DarkmodeService {
|
|
|
68
91
|
type DarkmodeSetting = 'DARK' | 'LIGHT' | 'SYSTEM';
|
|
69
92
|
type CurrentDarkmode = 'LIGHT' | 'DARK';
|
|
70
93
|
|
|
94
|
+
type StrataOS = 'ios' | 'android' | 'macos' | 'windows' | 'linux' | 'unknown';
|
|
95
|
+
declare class DeviceService {
|
|
96
|
+
private readonly platformId;
|
|
97
|
+
private readonly destroyRef;
|
|
98
|
+
private readonly isBrowser;
|
|
99
|
+
private readonly _isTouch;
|
|
100
|
+
private readonly _hasHover;
|
|
101
|
+
private readonly _os;
|
|
102
|
+
readonly isTouch: _angular_core.Signal<boolean>;
|
|
103
|
+
readonly hasHover: _angular_core.Signal<boolean>;
|
|
104
|
+
readonly os: _angular_core.Signal<StrataOS>;
|
|
105
|
+
readonly isApple: _angular_core.Signal<boolean>;
|
|
106
|
+
readonly isAndroid: _angular_core.Signal<boolean>;
|
|
107
|
+
readonly isWindows: _angular_core.Signal<boolean>;
|
|
108
|
+
readonly isLinux: _angular_core.Signal<boolean>;
|
|
109
|
+
constructor();
|
|
110
|
+
private detectOS;
|
|
111
|
+
private updatePointerCapabilities;
|
|
112
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DeviceService, never>;
|
|
113
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DeviceService>;
|
|
114
|
+
}
|
|
115
|
+
|
|
71
116
|
interface HotkeyOptions {
|
|
72
117
|
/** If true, the hotkey fires even when focus is inside an input, textarea, or contenteditable. Defaults to false. */
|
|
73
118
|
allowInInput?: boolean;
|
|
@@ -126,6 +171,7 @@ interface StrataConfig {
|
|
|
126
171
|
includeBaseIcons: boolean;
|
|
127
172
|
tooltipDelayMs: number;
|
|
128
173
|
crossPlatformHotkeys: boolean;
|
|
174
|
+
maxNotifications?: number;
|
|
129
175
|
shortcutLabels?: {
|
|
130
176
|
meta?: string;
|
|
131
177
|
ctrl?: string;
|
|
@@ -304,12 +350,15 @@ declare class StrataBadgeComponent {
|
|
|
304
350
|
declare class StrataBreadcrumbItemComponent {
|
|
305
351
|
text: _angular_core.InputSignal<string>;
|
|
306
352
|
icon: _angular_core.InputSignal<string | undefined>;
|
|
353
|
+
badge: _angular_core.InputSignal<string | number | undefined>;
|
|
354
|
+
badgeVariant: _angular_core.InputSignal<BadgeVariant>;
|
|
355
|
+
badgeSize: _angular_core.InputSignal<BadgeSize>;
|
|
307
356
|
interactable: _angular_core.InputSignal<boolean>;
|
|
308
357
|
disabled: _angular_core.InputSignal<boolean>;
|
|
309
358
|
activated: _angular_core.OutputEmitterRef<Event>;
|
|
310
359
|
separatorIcon: _angular_core.WritableSignal<string | undefined>;
|
|
311
360
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrataBreadcrumbItemComponent, never>;
|
|
312
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataBreadcrumbItemComponent, "st-breadcrumb-item", never, { "text": { "alias": "text"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "interactable": { "alias": "interactable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "activated": "activated"; }, never,
|
|
361
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataBreadcrumbItemComponent, "st-breadcrumb-item", never, { "text": { "alias": "text"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "badgeVariant": { "alias": "badgeVariant"; "required": false; "isSignal": true; }; "badgeSize": { "alias": "badgeSize"; "required": false; "isSignal": true; }; "interactable": { "alias": "interactable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "activated": "activated"; }, never, ["st-badge"], true, never>;
|
|
313
362
|
}
|
|
314
363
|
|
|
315
364
|
declare class StrataBreadcrumbComponent {
|
|
@@ -694,6 +743,11 @@ declare class StrataAlertContentComponent {
|
|
|
694
743
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataAlertContentComponent, "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>;
|
|
695
744
|
}
|
|
696
745
|
|
|
746
|
+
declare class StrataModalBodyComponent {
|
|
747
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrataModalBodyComponent, never>;
|
|
748
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataModalBodyComponent, "st-modal-body", never, {}, {}, never, ["*"], true, never>;
|
|
749
|
+
}
|
|
750
|
+
|
|
697
751
|
interface ModalConfiguration {
|
|
698
752
|
title?: string;
|
|
699
753
|
component: Type<unknown>;
|
|
@@ -702,6 +756,7 @@ interface ModalConfiguration {
|
|
|
702
756
|
disableBackdropClosure?: boolean;
|
|
703
757
|
size?: ModalSize;
|
|
704
758
|
variant?: ModalVariant;
|
|
759
|
+
placement?: ModalPlacement;
|
|
705
760
|
inputs?: Record<string, unknown>;
|
|
706
761
|
}
|
|
707
762
|
interface AlertConfiguration {
|
|
@@ -714,6 +769,7 @@ interface AlertConfiguration {
|
|
|
714
769
|
}
|
|
715
770
|
type ModalSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
716
771
|
type ModalVariant = 'default' | 'raised';
|
|
772
|
+
type ModalPlacement = 'center' | 'right' | 'left' | 'bottom';
|
|
717
773
|
declare abstract class StrataModalRef {
|
|
718
774
|
abstract close(value?: unknown): void;
|
|
719
775
|
}
|
|
@@ -765,8 +821,10 @@ declare class StrataModalComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
765
821
|
configuration: _angular_core.InputSignal<ModalConfiguration>;
|
|
766
822
|
size: _angular_core.ModelSignal<ModalSize | undefined>;
|
|
767
823
|
variant: _angular_core.InputSignal<ModalVariant | undefined>;
|
|
824
|
+
placement: _angular_core.ModelSignal<ModalPlacement | undefined>;
|
|
768
825
|
readonly currentSize: _angular_core.Signal<ModalSize>;
|
|
769
826
|
readonly currentVariant: _angular_core.Signal<ModalVariant>;
|
|
827
|
+
readonly currentPlacement: _angular_core.Signal<ModalPlacement>;
|
|
770
828
|
readonly role = "dialog";
|
|
771
829
|
readonly ariaModal = "true";
|
|
772
830
|
readonly tabIndex = -1;
|
|
@@ -780,33 +838,47 @@ declare class StrataModalComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
780
838
|
onKeydown(event: KeyboardEvent): void;
|
|
781
839
|
private getFocusableElements;
|
|
782
840
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrataModalComponent, never>;
|
|
783
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataModalComponent, "st-modal", never, { "configuration": { "alias": "configuration"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "size": "sizeChange"; }, never, never, true, never>;
|
|
841
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataModalComponent, "st-modal", never, { "configuration": { "alias": "configuration"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; }, { "size": "sizeChange"; "placement": "placementChange"; }, never, never, true, never>;
|
|
784
842
|
}
|
|
785
843
|
|
|
786
844
|
interface StrataNotificationRef {
|
|
787
845
|
readonly id: string;
|
|
788
846
|
dismiss(): void;
|
|
789
847
|
}
|
|
848
|
+
interface NotificationAction {
|
|
849
|
+
label: string;
|
|
850
|
+
onClick?: (ref: StrataNotificationRef) => void;
|
|
851
|
+
variant?: ButtonVariant;
|
|
852
|
+
}
|
|
790
853
|
interface NotificationConfiguration {
|
|
791
854
|
id?: string;
|
|
792
|
-
|
|
855
|
+
title?: string;
|
|
793
856
|
message: string;
|
|
857
|
+
icon?: string;
|
|
794
858
|
theme?: Theme;
|
|
795
859
|
duration?: number;
|
|
796
860
|
dismissible?: boolean;
|
|
861
|
+
showProgress?: boolean;
|
|
862
|
+
pauseOnHover?: boolean;
|
|
863
|
+
actions?: NotificationAction[];
|
|
797
864
|
}
|
|
798
865
|
type NotificationsWithIds = NotificationConfiguration & {
|
|
799
866
|
id: string;
|
|
800
867
|
dismissible: boolean;
|
|
868
|
+
showProgress: boolean;
|
|
869
|
+
pauseOnHover: boolean;
|
|
870
|
+
actions: NotificationAction[];
|
|
801
871
|
};
|
|
802
872
|
declare const DEFAULT_THEME: Theme;
|
|
803
873
|
declare const DEFAULT_DURATION = 3000;
|
|
804
874
|
|
|
805
875
|
declare class NotificationService {
|
|
876
|
+
private strataConfig;
|
|
877
|
+
maxNotifications: _angular_core.WritableSignal<number>;
|
|
806
878
|
notificationStack: _angular_core.WritableSignal<NotificationsWithIds[]>;
|
|
807
879
|
dismiss(notificationId: string): void;
|
|
880
|
+
dismissAll(): void;
|
|
808
881
|
showNotification(config: NotificationConfiguration): StrataNotificationRef;
|
|
809
|
-
private hideNotification;
|
|
810
882
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NotificationService, never>;
|
|
811
883
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NotificationService>;
|
|
812
884
|
}
|
|
@@ -814,19 +886,44 @@ declare class NotificationService {
|
|
|
814
886
|
declare class StrataNotificationContainerComponent {
|
|
815
887
|
notificationService: NotificationService;
|
|
816
888
|
notifications: _angular_core.WritableSignal<ngx_strata.NotificationsWithIds[]>;
|
|
889
|
+
maxNotifications: _angular_core.WritableSignal<number>;
|
|
890
|
+
visibleNotifications: _angular_core.Signal<ngx_strata.NotificationsWithIds[]>;
|
|
891
|
+
overflowCount: _angular_core.Signal<number>;
|
|
817
892
|
dismiss(id: string): void;
|
|
893
|
+
dismissAll(): void;
|
|
818
894
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrataNotificationContainerComponent, never>;
|
|
819
895
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataNotificationContainerComponent, "st-notification-container", never, {}, {}, never, never, true, never>;
|
|
820
896
|
}
|
|
821
897
|
|
|
822
|
-
declare class StrataNotificationComponent {
|
|
898
|
+
declare class StrataNotificationComponent implements OnInit, OnDestroy {
|
|
899
|
+
id: _angular_core.InputSignal<string | undefined>;
|
|
900
|
+
title: _angular_core.InputSignal<string | undefined>;
|
|
823
901
|
icon: _angular_core.InputSignal<string | undefined>;
|
|
824
902
|
message: _angular_core.InputSignal<string>;
|
|
903
|
+
duration: _angular_core.InputSignal<number>;
|
|
825
904
|
dismissible: _angular_core.InputSignal<boolean>;
|
|
905
|
+
showProgress: _angular_core.InputSignal<boolean>;
|
|
906
|
+
pauseOnHover: _angular_core.InputSignal<boolean>;
|
|
907
|
+
actions: _angular_core.InputSignal<NotificationAction[]>;
|
|
826
908
|
dismiss: _angular_core.OutputEmitterRef<void>;
|
|
909
|
+
actionClick: _angular_core.OutputEmitterRef<{
|
|
910
|
+
action: NotificationAction;
|
|
911
|
+
ref: StrataNotificationRef;
|
|
912
|
+
}>;
|
|
913
|
+
isPaused: _angular_core.WritableSignal<boolean>;
|
|
914
|
+
private remainingTime;
|
|
915
|
+
private startTime;
|
|
916
|
+
private timeoutId;
|
|
917
|
+
ngOnInit(): void;
|
|
918
|
+
ngOnDestroy(): void;
|
|
827
919
|
onDismiss(): void;
|
|
920
|
+
onActionClick(action: NotificationAction): void;
|
|
921
|
+
pauseTimer(): void;
|
|
922
|
+
resumeTimer(): void;
|
|
923
|
+
private startTimer;
|
|
924
|
+
private clearTimer;
|
|
828
925
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrataNotificationComponent, never>;
|
|
829
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataNotificationComponent, "st-notification", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": true; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; }, { "dismiss": "dismiss"; }, never, never, true, never>;
|
|
926
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataNotificationComponent, "st-notification", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": true; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "showProgress": { "alias": "showProgress"; "required": false; "isSignal": true; }; "pauseOnHover": { "alias": "pauseOnHover"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; }, { "dismiss": "dismiss"; "actionClick": "actionClick"; }, never, never, true, never>;
|
|
830
927
|
}
|
|
831
928
|
|
|
832
929
|
declare class StrataNumberDisplayComponent {
|
|
@@ -847,6 +944,58 @@ declare class StrataNumberDisplayComponent {
|
|
|
847
944
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataNumberDisplayComponent, "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>;
|
|
848
945
|
}
|
|
849
946
|
|
|
947
|
+
type NumberStepperSize = 'sm' | 'md' | 'lg';
|
|
948
|
+
type NumberStepperLayout = 'split' | 'stacked';
|
|
949
|
+
declare class StrataNumberStepperComponent implements ControlValueAccessor {
|
|
950
|
+
private readonly defaultId;
|
|
951
|
+
private readonly inputRef;
|
|
952
|
+
value: _angular_core.ModelSignal<number | null | undefined>;
|
|
953
|
+
min: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
|
|
954
|
+
max: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
|
|
955
|
+
step: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
956
|
+
precision: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
|
|
957
|
+
size: _angular_core.InputSignal<NumberStepperSize>;
|
|
958
|
+
stepperLayout: _angular_core.InputSignal<NumberStepperLayout>;
|
|
959
|
+
label: _angular_core.InputSignal<string | undefined>;
|
|
960
|
+
placeholder: _angular_core.InputSignal<string | undefined>;
|
|
961
|
+
id: _angular_core.InputSignal<string | undefined>;
|
|
962
|
+
name: _angular_core.InputSignal<string | undefined>;
|
|
963
|
+
state: _angular_core.InputSignal<InputControlState | undefined>;
|
|
964
|
+
error: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
965
|
+
message: _angular_core.InputSignal<string | undefined>;
|
|
966
|
+
colorMessage: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
967
|
+
disabled: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
968
|
+
readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
969
|
+
private readonly cvaDisabled;
|
|
970
|
+
readonly effectiveId: _angular_core.Signal<string>;
|
|
971
|
+
readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
972
|
+
readonly effectiveState: _angular_core.Signal<InputControlState>;
|
|
973
|
+
readonly isMessageError: _angular_core.Signal<boolean>;
|
|
974
|
+
readonly isMessageSuccess: _angular_core.Signal<boolean>;
|
|
975
|
+
readonly isMessageWarning: _angular_core.Signal<boolean>;
|
|
976
|
+
readonly canIncrement: _angular_core.Signal<boolean>;
|
|
977
|
+
readonly canDecrement: _angular_core.Signal<boolean>;
|
|
978
|
+
readonly formattedValue: _angular_core.Signal<string>;
|
|
979
|
+
private onChange;
|
|
980
|
+
private onTouched;
|
|
981
|
+
stepUp(): void;
|
|
982
|
+
stepDown(): void;
|
|
983
|
+
onNativeInput(event: Event): void;
|
|
984
|
+
onNativeBlur(): void;
|
|
985
|
+
onNativeKeyDown(event: KeyboardEvent): void;
|
|
986
|
+
focus(): void;
|
|
987
|
+
blur(): void;
|
|
988
|
+
writeValue(val: number | null | undefined): void;
|
|
989
|
+
registerOnChange(fn: (val: number | null | undefined) => void): void;
|
|
990
|
+
registerOnTouched(fn: () => void): void;
|
|
991
|
+
setDisabledState(isDisabled: boolean): void;
|
|
992
|
+
private updateValue;
|
|
993
|
+
private roundToPrecision;
|
|
994
|
+
private getDecimalCount;
|
|
995
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrataNumberStepperComponent, never>;
|
|
996
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataNumberStepperComponent, "st-number-stepper", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "precision": { "alias": "precision"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "stepperLayout": { "alias": "stepperLayout"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "colorMessage": { "alias": "colorMessage"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
997
|
+
}
|
|
998
|
+
|
|
850
999
|
type OtpType = 'number' | 'alphanumeric' | 'password';
|
|
851
1000
|
type OtpSize = 'sm' | 'md' | 'lg';
|
|
852
1001
|
type OtpState = 'idle' | 'loading' | 'success' | 'error';
|
|
@@ -1015,6 +1164,9 @@ declare class StrataRadioGroupComponent implements ControlValueAccessor {
|
|
|
1015
1164
|
declare class StrataSegmentedControlItemComponent {
|
|
1016
1165
|
text: _angular_core.InputSignal<string>;
|
|
1017
1166
|
value: _angular_core.InputSignal<string | undefined>;
|
|
1167
|
+
badge: _angular_core.InputSignal<string | number | undefined>;
|
|
1168
|
+
badgeVariant: _angular_core.InputSignal<BadgeVariant>;
|
|
1169
|
+
badgeSize: _angular_core.InputSignal<BadgeSize>;
|
|
1018
1170
|
effectiveValue: _angular_core.Signal<string>;
|
|
1019
1171
|
selected: _angular_core.ModelSignal<boolean>;
|
|
1020
1172
|
disabled: _angular_core.InputSignal<boolean>;
|
|
@@ -1026,7 +1178,7 @@ declare class StrataSegmentedControlItemComponent {
|
|
|
1026
1178
|
onClick(): void;
|
|
1027
1179
|
onKeydown(event: Event): void;
|
|
1028
1180
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrataSegmentedControlItemComponent, never>;
|
|
1029
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataSegmentedControlItemComponent, "st-segmented-control-item", never, { "text": { "alias": "text"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "selectionChanged": "selectionChanged"; }, never,
|
|
1181
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataSegmentedControlItemComponent, "st-segmented-control-item", never, { "text": { "alias": "text"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "badgeVariant": { "alias": "badgeVariant"; "required": false; "isSignal": true; }; "badgeSize": { "alias": "badgeSize"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "selectionChanged": "selectionChanged"; }, never, ["st-badge"], true, never>;
|
|
1030
1182
|
}
|
|
1031
1183
|
|
|
1032
1184
|
type SegmentedControlSize = 'sm' | 'md' | 'lg';
|
|
@@ -1191,6 +1343,41 @@ declare class StrataSelectTriggerDirective {
|
|
|
1191
1343
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StrataSelectTriggerDirective, "[stSelectTrigger]", never, {}, {}, never, never, true, never>;
|
|
1192
1344
|
}
|
|
1193
1345
|
|
|
1346
|
+
type SkeletonVariant = 'text' | 'circular' | 'circle' | 'rectangular' | 'rect' | 'rounded' | 'pill';
|
|
1347
|
+
type SkeletonAnimation = 'shimmer' | 'pulse' | 'none';
|
|
1348
|
+
type SkeletonSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
1349
|
+
|
|
1350
|
+
declare class StrataSkeletonComponent {
|
|
1351
|
+
variant: _angular_core.InputSignal<SkeletonVariant>;
|
|
1352
|
+
size: _angular_core.InputSignal<SkeletonSize | undefined>;
|
|
1353
|
+
animation: _angular_core.InputSignal<SkeletonAnimation>;
|
|
1354
|
+
width: _angular_core.InputSignal<string | number | undefined>;
|
|
1355
|
+
height: _angular_core.InputSignal<string | number | undefined>;
|
|
1356
|
+
radius: _angular_core.InputSignal<string | number | undefined>;
|
|
1357
|
+
count: _angular_core.InputSignal<number>;
|
|
1358
|
+
lastLineWidth: _angular_core.InputSignal<string | number>;
|
|
1359
|
+
gap: _angular_core.InputSignal<string | number | undefined>;
|
|
1360
|
+
loading: _angular_core.InputSignal<boolean>;
|
|
1361
|
+
ariaLabel: _angular_core.InputSignal<string>;
|
|
1362
|
+
normalizedVariant: _angular_core.Signal<"text" | "rounded" | "circular" | "rectangular">;
|
|
1363
|
+
normalizedWidth: _angular_core.Signal<string | undefined>;
|
|
1364
|
+
normalizedHeight: _angular_core.Signal<string | undefined>;
|
|
1365
|
+
normalizedRadius: _angular_core.Signal<string | undefined>;
|
|
1366
|
+
normalizedGap: _angular_core.Signal<string | undefined>;
|
|
1367
|
+
normalizedLastLineWidth: _angular_core.Signal<string | undefined>;
|
|
1368
|
+
isMultiLine: _angular_core.Signal<boolean>;
|
|
1369
|
+
lineIndices: _angular_core.Signal<number[]>;
|
|
1370
|
+
get hostRole(): string | null;
|
|
1371
|
+
get hostAriaBusy(): string | null;
|
|
1372
|
+
get hostAriaLive(): string | null;
|
|
1373
|
+
get hostAriaLabel(): string | null;
|
|
1374
|
+
get hostClasses(): string;
|
|
1375
|
+
getLineWidth(index: number, isLast: boolean): string | undefined;
|
|
1376
|
+
private formatDimension;
|
|
1377
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrataSkeletonComponent, never>;
|
|
1378
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataSkeletonComponent, "st-skeleton", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "animation": { "alias": "animation"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "radius": { "alias": "radius"; "required": false; "isSignal": true; }; "count": { "alias": "count"; "required": false; "isSignal": true; }; "lastLineWidth": { "alias": "lastLineWidth"; "required": false; "isSignal": true; }; "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1194
1381
|
declare class StrataSliderComponent implements ControlValueAccessor, AfterViewInit, OnDestroy {
|
|
1195
1382
|
wrapper: _angular_core.Signal<ElementRef<HTMLDivElement>>;
|
|
1196
1383
|
private resizeObserver;
|
|
@@ -1280,14 +1467,10 @@ declare class StrataStepperComponent {
|
|
|
1280
1467
|
}
|
|
1281
1468
|
|
|
1282
1469
|
declare class StrataTabItemComponent {
|
|
1283
|
-
/**
|
|
1284
|
-
* The text label for the tab.
|
|
1285
|
-
* Can also be provided via content projection.
|
|
1286
|
-
*/
|
|
1287
1470
|
text: _angular_core.InputSignal<string | undefined>;
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1471
|
+
badge: _angular_core.InputSignal<string | number | undefined>;
|
|
1472
|
+
badgeVariant: _angular_core.InputSignal<BadgeVariant>;
|
|
1473
|
+
badgeSize: _angular_core.InputSignal<BadgeSize>;
|
|
1291
1474
|
selected: _angular_core.ModelSignal<boolean>;
|
|
1292
1475
|
/**
|
|
1293
1476
|
* Whether the tab is disabled.
|
|
@@ -1304,7 +1487,7 @@ declare class StrataTabItemComponent {
|
|
|
1304
1487
|
get disabledClass(): boolean;
|
|
1305
1488
|
onClick(): void;
|
|
1306
1489
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrataTabItemComponent, never>;
|
|
1307
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataTabItemComponent, "st-tab-item", never, { "text": { "alias": "text"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "selectionChanged": "selectionChanged"; }, never, ["*"], true, never>;
|
|
1490
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataTabItemComponent, "st-tab-item", never, { "text": { "alias": "text"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "badgeVariant": { "alias": "badgeVariant"; "required": false; "isSignal": true; }; "badgeSize": { "alias": "badgeSize"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "selectionChanged": "selectionChanged"; }, never, ["st-badge", "*"], true, never>;
|
|
1308
1491
|
}
|
|
1309
1492
|
|
|
1310
1493
|
declare class StrataTabsComponent implements AfterViewInit {
|
|
@@ -1365,5 +1548,5 @@ declare class StrataToggleComponent implements ControlValueAccessor {
|
|
|
1365
1548
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataToggleComponent, "st-toggle", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "colorMessage": { "alias": "colorMessage"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, ["*"], true, [{ directive: typeof StrataActivatableDirective; inputs: { "disabled": "disabled"; }; outputs: { "activated": "activated"; }; }]>;
|
|
1366
1549
|
}
|
|
1367
1550
|
|
|
1368
|
-
export { CapitalizePipe, DEFAULT_DURATION, DEFAULT_THEME, DarkmodeService, HotkeyService, HttpIconLoader, IconLoader, IconRegistry, IconRegistryService, ModalService, NotificationService, STRATA_CONFIG, StrataAccordionGroupComponent, StrataAccordionItemComponent, StrataActionMenuComponent, StrataActionMenuItemComponent, StrataActivatableDirective, StrataAlertComponent, StrataAlertContentComponent, StrataAutoResizeDirective, StrataAvatarComponent, StrataAvatarStackComponent, StrataBadgeComponent, StrataBreadcrumbComponent, StrataBreadcrumbItemComponent, StrataButtonDirective, StrataButtonGroupComponent, StrataCardComponent, StrataCheckboxComponent, StrataDividerComponent, StrataFileUploadComponent, StrataIconComponent, StrataImageCropperComponent, StrataInputFieldComponent, StrataItemComponent, StrataItemListComponent, StrataKbdComponent, StrataMessageStateComponent, StrataModalComponent, StrataModalContainerComponent, StrataModalFooterComponent, StrataModalHeaderComponent, StrataModalRef, StrataNativeInputRefDirective, StrataNotificationComponent, StrataNotificationContainerComponent, StrataNumberDisplayComponent, StrataOtpComponent, StrataOverlayDirective, StrataPaginationComponent, StrataProgressLinearComponent, StrataProgressRadialComponent, StrataRadioComponent, StrataRadioGroupComponent, StrataSegmentedControlComponent, StrataSegmentedControlItemComponent, StrataSelectItemComponent, StrataSelectTriggerDirective, StrataShellComponent, StrataSidemenuComponent, StrataSidemenuItemDirective, StrataSidemenuItemGroupComponent, StrataSidemenuSectionComponent, StrataSingleSelectComponent, StrataSliderComponent, StrataSpinnerComponent, StrataStepComponent, StrataStepperComponent, StrataTabItemComponent, StrataTabsComponent, StrataTagComponent, StrataTextStackComponent, StrataThemeDirective, StrataToggleComponent, StrataTooltipDirective, getDefaultShortcutLabels, isApplePlatform, provideBaseIcons, provideIcons, provideStrata, resolveIsApple };
|
|
1369
|
-
export type { AccordionVariant, AlertConfiguration, AvatarSize, AvatarStackSpacing, AvatarVariant, BadgePlacement, BadgeSize, BadgeVariant, ButtonGroupJustification, ButtonSize, ButtonVariant, CardVariant, CropPosition, CropResult, CropShape, CurrentDarkmode, DarkmodeSetting, HotkeyOptions, IconConfig, IconSize, InputControlState, InputFieldSize, ModalConfiguration, ModalFooterJustification, ModalSize, ModalVariant, NotificationConfiguration, NotificationsWithIds, OtpSize, OtpState, OtpType, PaginationItem, ProgressLinearGrowDirection, ProgressLinearLabelFormat, ProgressRadialLabelFormat, SegmentedControlSize, SingleSelectSize, SpinnerSize, StepState, StepperOrientation, StepperSize, StepperTheme, StrataConfig, StrataNotificationRef, StrataPlatform, TagSize, TextStackOverflow, Theme, TooltipPlacement };
|
|
1551
|
+
export { BreakpointService, CapitalizePipe, DEFAULT_DURATION, DEFAULT_THEME, DarkmodeService, DeviceService, HotkeyService, HttpIconLoader, IconLoader, IconRegistry, IconRegistryService, ModalService, NotificationService, STRATA_CONFIG, StrataAccordionGroupComponent, StrataAccordionItemComponent, StrataActionMenuComponent, StrataActionMenuItemComponent, StrataActivatableDirective, StrataAlertComponent, StrataAlertContentComponent, StrataAutoResizeDirective, StrataAvatarComponent, StrataAvatarStackComponent, StrataBadgeComponent, StrataBreadcrumbComponent, StrataBreadcrumbItemComponent, StrataButtonDirective, StrataButtonGroupComponent, StrataCardComponent, StrataCheckboxComponent, StrataDividerComponent, StrataFileUploadComponent, StrataIconComponent, StrataImageCropperComponent, StrataInputFieldComponent, StrataItemComponent, StrataItemListComponent, StrataKbdComponent, StrataMessageStateComponent, StrataModalBodyComponent, StrataModalComponent, StrataModalContainerComponent, StrataModalFooterComponent, StrataModalHeaderComponent, StrataModalRef, StrataNativeInputRefDirective, StrataNotificationComponent, StrataNotificationContainerComponent, StrataNumberDisplayComponent, StrataNumberStepperComponent, StrataOtpComponent, StrataOverlayDirective, StrataPaginationComponent, StrataProgressLinearComponent, StrataProgressRadialComponent, StrataRadioComponent, StrataRadioGroupComponent, StrataSegmentedControlComponent, StrataSegmentedControlItemComponent, StrataSelectItemComponent, StrataSelectTriggerDirective, StrataShellComponent, StrataSidemenuComponent, StrataSidemenuItemDirective, StrataSidemenuItemGroupComponent, StrataSidemenuSectionComponent, StrataSingleSelectComponent, StrataSkeletonComponent, StrataSliderComponent, StrataSpinnerComponent, StrataStepComponent, StrataStepperComponent, StrataTabItemComponent, StrataTabsComponent, StrataTagComponent, StrataTextStackComponent, StrataThemeDirective, StrataToggleComponent, StrataTooltipDirective, getDefaultShortcutLabels, isApplePlatform, provideBaseIcons, provideIcons, provideStrata, resolveIsApple };
|
|
1552
|
+
export type { AccordionVariant, AlertConfiguration, AvatarSize, AvatarStackSpacing, AvatarVariant, BadgePlacement, BadgeSize, BadgeVariant, ButtonGroupJustification, ButtonSize, ButtonVariant, CardVariant, CropPosition, CropResult, CropShape, CurrentDarkmode, DarkmodeSetting, HotkeyOptions, IconConfig, IconSize, InputControlState, InputFieldSize, ModalConfiguration, ModalFooterJustification, ModalPlacement, ModalSize, ModalVariant, NotificationAction, NotificationConfiguration, NotificationsWithIds, NumberStepperLayout, NumberStepperSize, OtpSize, OtpState, OtpType, PaginationItem, ProgressLinearGrowDirection, ProgressLinearLabelFormat, ProgressRadialLabelFormat, SegmentedControlSize, SingleSelectSize, SkeletonAnimation, SkeletonSize, SkeletonVariant, SpinnerSize, StepState, StepperOrientation, StepperSize, StepperTheme, StrataBreakpoint, StrataConfig, StrataNotificationRef, StrataOS, StrataPlatform, TagSize, TextStackOverflow, Theme, TooltipPlacement };
|