@educarehq/solaris-components 0.2.2 → 0.2.4
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,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@educarehq/solaris-components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/core": "^21.1.0",
|
|
6
6
|
"intl-tel-input": "^26.0.9",
|
|
7
7
|
"@angular/common": "^21.1.0",
|
|
8
8
|
"libphonenumber-js": "^1.12.36",
|
|
9
9
|
"@educarehq/solaris-tokens": "^0.1.2",
|
|
10
|
-
"@educarehq/solaris-services": "^0.1.
|
|
10
|
+
"@educarehq/solaris-services": "^0.1.6"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"tslib": "^2.3.0"
|
|
@@ -1,9 +1,85 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ElementRef, TemplateRef, AfterContentInit, OnDestroy, EventEmitter, QueryList, OnChanges, SimpleChanges, AfterViewInit, WritableSignal, InjectionToken } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor, Validator, ValidationErrors, AbstractControl, NgControl } from '@angular/forms';
|
|
4
4
|
import * as _educarehq_solaris_components from '@educarehq/solaris-components';
|
|
5
5
|
import { SolarisTranslationParams } from '@educarehq/solaris-services';
|
|
6
6
|
|
|
7
|
+
declare class SolarisDropdownContentTriggerDirective {
|
|
8
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
9
|
+
private readonly solarisRenderer;
|
|
10
|
+
ensureFocusable(): void;
|
|
11
|
+
setExpanded(isExpanded: boolean, panelId: string): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SolarisDropdownContentTriggerDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SolarisDropdownContentTriggerDirective, "[solaris-dropdown-content-trigger]", never, {}, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare class SolarisDropdownContentPanelDirective {
|
|
17
|
+
readonly templateRef: TemplateRef<unknown>;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SolarisDropdownContentPanelDirective, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SolarisDropdownContentPanelDirective, "ng-template[solaris-dropdown-content-panel]", never, {}, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface SolarisDropdownContentInterface {
|
|
23
|
+
closeFromRegistry(): void;
|
|
24
|
+
}
|
|
25
|
+
declare class SolarisDropdownContentRegistry {
|
|
26
|
+
private readonly solarisInstances;
|
|
27
|
+
register(instance: SolarisDropdownContentInterface): void;
|
|
28
|
+
unregister(instance: SolarisDropdownContentInterface): void;
|
|
29
|
+
notifyOpen(openingInstance: SolarisDropdownContentInterface): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SolarisDropdownContentRegistry, never>;
|
|
31
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SolarisDropdownContentRegistry>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
type SolarisDropdownWidthMode = 'auto' | 'match-trigger' | 'full' | 'container';
|
|
35
|
+
|
|
36
|
+
declare class SolarisDropdownContent implements AfterContentInit, OnDestroy, SolarisDropdownContentInterface {
|
|
37
|
+
private readonly solarisRegistry;
|
|
38
|
+
private readonly solarisVcr;
|
|
39
|
+
private readonly solarisDestroyRef;
|
|
40
|
+
private readonly solarisOverlay;
|
|
41
|
+
trigger?: SolarisDropdownContentTriggerDirective;
|
|
42
|
+
panel?: SolarisDropdownContentPanelDirective;
|
|
43
|
+
container?: HTMLElement | ElementRef<HTMLElement>;
|
|
44
|
+
widthMode: SolarisDropdownWidthMode;
|
|
45
|
+
maxWidth: string;
|
|
46
|
+
closeDelay: number;
|
|
47
|
+
openDelay: number;
|
|
48
|
+
private readonly solarisPanelId;
|
|
49
|
+
private solarisIsHoveringTrigger;
|
|
50
|
+
private solarisPortal?;
|
|
51
|
+
private solarisIsHoveringPanel;
|
|
52
|
+
private solarisOutsideClickSub?;
|
|
53
|
+
private solarisIsPinned;
|
|
54
|
+
private solarisOverlayRef?;
|
|
55
|
+
private solarisIsOpen;
|
|
56
|
+
private solarisCloseTimer?;
|
|
57
|
+
private solarisOpenTimer?;
|
|
58
|
+
ngAfterContentInit(): void;
|
|
59
|
+
ngOnDestroy(): void;
|
|
60
|
+
closeFromRegistry(): void;
|
|
61
|
+
private solarisOnTriggerEnter;
|
|
62
|
+
private solarisOnTriggerLeave;
|
|
63
|
+
private solarisOnPanelEnter;
|
|
64
|
+
private solarisOnPanelLeave;
|
|
65
|
+
private solarisTogglePinned;
|
|
66
|
+
private solarisScheduleOpen;
|
|
67
|
+
private solarisScheduleClose;
|
|
68
|
+
private solarisClearOpenTimer;
|
|
69
|
+
private solarisClearCloseTimer;
|
|
70
|
+
open(reason: 'hover' | 'pinned'): void;
|
|
71
|
+
close(reason: 'hover-leave' | 'toggle' | 'escape' | 'outside' | 'registry'): void;
|
|
72
|
+
private solarisResetState;
|
|
73
|
+
private solarisWirePanelEvents;
|
|
74
|
+
private solarisBindOutsideClick;
|
|
75
|
+
private solarisUnbindOutsideClick;
|
|
76
|
+
private solarisGetContainerEl;
|
|
77
|
+
private solarisComputeOffsetX;
|
|
78
|
+
private solarisApplyOverlaySize;
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SolarisDropdownContent, never>;
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SolarisDropdownContent, "solaris-dropdown-content", never, { "container": { "alias": "container"; "required": false; }; "widthMode": { "alias": "widthMode"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "closeDelay": { "alias": "closeDelay"; "required": false; }; "openDelay": { "alias": "openDelay"; "required": false; }; }, {}, ["trigger", "panel"], ["*"], true, never>;
|
|
81
|
+
}
|
|
82
|
+
|
|
7
83
|
type SolarisBreadcrumbTarget = {
|
|
8
84
|
kind: 'action';
|
|
9
85
|
id: string;
|
|
@@ -177,7 +253,7 @@ declare class SolarisImageSliderComponent {
|
|
|
177
253
|
readonly showDots: i0.InputSignalWithTransform<boolean, unknown>;
|
|
178
254
|
readonly intervalMs: i0.InputSignalWithTransform<number, unknown>;
|
|
179
255
|
readonly showArrows: i0.InputSignalWithTransform<boolean, unknown>;
|
|
180
|
-
readonly aspect: i0.InputSignal<"16/9" | "9/16" | "4/3" | "1/1"
|
|
256
|
+
readonly aspect: i0.InputSignal<"auto" | "16/9" | "9/16" | "4/3" | "1/1">;
|
|
181
257
|
readonly pauseOnHover: i0.InputSignalWithTransform<boolean, unknown>;
|
|
182
258
|
readonly overlayTpl: i0.InputSignal<TemplateRef<SolarisSliderOverlayContext> | undefined>;
|
|
183
259
|
protected readonly paused: i0.WritableSignal<boolean>;
|
|
@@ -185,7 +261,7 @@ declare class SolarisImageSliderComponent {
|
|
|
185
261
|
private readonly viewReady;
|
|
186
262
|
protected readonly count: i0.Signal<number>;
|
|
187
263
|
protected readonly canRun: i0.Signal<boolean>;
|
|
188
|
-
get dataAspect(): "16/9" | "9/16" | "4/3" | "1/1"
|
|
264
|
+
get dataAspect(): "auto" | "16/9" | "9/16" | "4/3" | "1/1";
|
|
189
265
|
get dataRadius(): "sm" | "md" | "lg";
|
|
190
266
|
constructor();
|
|
191
267
|
protected goTo: (idx: number) => void;
|
|
@@ -249,11 +325,11 @@ declare class SolarisBodyDirective {
|
|
|
249
325
|
static ɵdir: i0.ɵɵDirectiveDeclaration<SolarisBodyDirective, "[solaris-body]", never, {}, {}, never, never, true, never>;
|
|
250
326
|
}
|
|
251
327
|
|
|
252
|
-
declare class
|
|
328
|
+
declare class SolarisPage {
|
|
253
329
|
stickyHeader: boolean;
|
|
254
330
|
container: 'contained' | 'fluid';
|
|
255
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
256
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
331
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SolarisPage, never>;
|
|
332
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SolarisPage, "solaris-page", never, { "stickyHeader": { "alias": "stickyHeader"; "required": false; }; "container": { "alias": "container"; "required": false; }; }, {}, never, ["[solaris-header]", "[solaris-body]", "[solaris-footer]"], true, never>;
|
|
257
333
|
}
|
|
258
334
|
|
|
259
335
|
declare class SolarisPageHeaderDescriptionDirective {
|
|
@@ -555,5 +631,5 @@ declare class FormField {
|
|
|
555
631
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormField, "solaris-form-field", never, { "hint": { "alias": "hint"; "required": false; }; "label": { "alias": "label"; "required": false; }; "hintKey": { "alias": "hintKey"; "required": false; }; "labelKey": { "alias": "labelKey"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "showErrors": { "alias": "showErrors"; "required": false; }; }, {}, ["prefix", "suffix"], ["[solaris-prefix]", "*", "[solaris-suffix]", "[form-field-message]"], true, never>;
|
|
556
632
|
}
|
|
557
633
|
|
|
558
|
-
export { FieldErrorComponent, FormField, InputTextDirective, PasswordToggle, SOLARIS_FORM_FIELD_CONTROLLER, SOLARIS_FORM_FIELD_FEATURES, SOLARIS_INPUT, SolarisBadge, SolarisBodyDirective, SolarisBreadcrumb, SolarisButtonDirective, SolarisButtonGroupDirective, SolarisControlBridgeDirective, SolarisDivider, SolarisEmailDirective, SolarisFooterDirective, SolarisFormFieldController, SolarisHeaderDirective, SolarisImageSliderComponent, SolarisLoading, SolarisLoadingOverlay,
|
|
559
|
-
export type { BadgeColor, BadgeSize, BadgeVariant, DividerLabelAlign, DividerOrientation, DividerSpacing, DividerStrength, DividerVariant, Iso2, PhoneFormat, SolarisBreadcrumbItem, SolarisBreadcrumbTarget, SolarisButtonColor, SolarisButtonSize, SolarisButtonVariant, SolarisFormFieldControllerLike, SolarisFormFieldFeature, SolarisInputApi, SolarisLoadingColor, SolarisLoadingSize, SolarisLoadingType, SolarisSliderItem, SolarisSliderOverlayContext, TabsSize, TabsVariant };
|
|
634
|
+
export { FieldErrorComponent, FormField, InputTextDirective, PasswordToggle, SOLARIS_FORM_FIELD_CONTROLLER, SOLARIS_FORM_FIELD_FEATURES, SOLARIS_INPUT, SolarisBadge, SolarisBodyDirective, SolarisBreadcrumb, SolarisButtonDirective, SolarisButtonGroupDirective, SolarisControlBridgeDirective, SolarisDivider, SolarisDropdownContent, SolarisDropdownContentPanelDirective, SolarisDropdownContentRegistry, SolarisDropdownContentTriggerDirective, SolarisEmailDirective, SolarisFooterDirective, SolarisFormFieldController, SolarisHeaderDirective, SolarisImageSliderComponent, SolarisLoading, SolarisLoadingOverlay, SolarisPage, SolarisPageHeader, SolarisPageHeaderBreadcrumbDirective, SolarisPageHeaderDescriptionDirective, SolarisPageHeaderTitle, SolarisPageHeaderTitleDirective, SolarisPasswordDirective, SolarisPhoneInput, SolarisPrefixDirective, SolarisSectionComponent, SolarisSuffixDirective, SolarisTab, SolarisTabs };
|
|
635
|
+
export type { BadgeColor, BadgeSize, BadgeVariant, DividerLabelAlign, DividerOrientation, DividerSpacing, DividerStrength, DividerVariant, Iso2, PhoneFormat, SolarisBreadcrumbItem, SolarisBreadcrumbTarget, SolarisButtonColor, SolarisButtonSize, SolarisButtonVariant, SolarisDropdownContentInterface, SolarisDropdownWidthMode, SolarisFormFieldControllerLike, SolarisFormFieldFeature, SolarisInputApi, SolarisLoadingColor, SolarisLoadingSize, SolarisLoadingType, SolarisSliderItem, SolarisSliderOverlayContext, TabsSize, TabsVariant };
|