@educarehq/solaris-ui 0.2.0 → 0.3.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/esm2022/index.js +40 -1
- package/esm2022/index.js.map +1 -1
- package/esm2022/lib/components/actions/button/index.js +3 -0
- package/esm2022/lib/components/actions/button/index.js.map +1 -0
- package/esm2022/lib/components/data-display/badge/index.js +3 -0
- package/esm2022/lib/components/data-display/badge/index.js.map +1 -0
- package/esm2022/lib/components/data-display/divider/component/divider.component.js +46 -0
- package/esm2022/lib/components/data-display/divider/component/divider.component.js.map +1 -0
- package/esm2022/lib/components/data-display/divider/index.js +2 -0
- package/esm2022/lib/components/data-display/divider/index.js.map +1 -0
- package/esm2022/lib/components/data-display/divider/model/divider.types.js +1 -0
- package/esm2022/lib/components/data-display/divider/model/divider.types.js.map +1 -0
- package/esm2022/lib/components/feedback/toast/component/toast.component.js +268 -0
- package/esm2022/lib/components/feedback/toast/component/toast.component.js.map +1 -0
- package/esm2022/lib/components/feedback/toast/container/toast-container.component.js +24 -0
- package/esm2022/lib/components/feedback/toast/container/toast-container.component.js.map +1 -0
- package/esm2022/lib/components/feedback/toast/model/toast.types.js +1 -0
- package/esm2022/lib/components/feedback/toast/model/toast.types.js.map +1 -0
- package/esm2022/lib/components/feedback/toast/provider/provide-solaris-toast.js +17 -0
- package/esm2022/lib/components/feedback/toast/provider/provide-solaris-toast.js.map +1 -0
- package/esm2022/lib/components/feedback/toast/service/toast.service.js +219 -0
- package/esm2022/lib/components/feedback/toast/service/toast.service.js.map +1 -0
- package/esm2022/lib/components/feedback/toast/token/toast.tokens.js +13 -0
- package/esm2022/lib/components/feedback/toast/token/toast.tokens.js.map +1 -0
- package/esm2022/lib/components/forms/email-field/component/email-field.component.js +5 -4
- package/esm2022/lib/components/forms/email-field/component/email-field.component.js.map +1 -1
- package/esm2022/lib/components/forms/form-field/component/form-field.component.js +50 -2
- package/esm2022/lib/components/forms/form-field/component/form-field.component.js.map +1 -1
- package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js.map +1 -1
- package/esm2022/lib/components/forms/form-field/index.js.map +1 -1
- package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js +11 -28
- package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js.map +1 -1
- package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js.map +1 -1
- package/esm2022/lib/components/forms/option/component/option.component.js +2 -2
- package/esm2022/lib/components/forms/option/component/option.component.js.map +1 -1
- package/esm2022/lib/components/forms/password-field/component/password-field.component.js +2 -2
- package/esm2022/lib/components/forms/password-field/component/password-field.component.js.map +1 -1
- package/esm2022/lib/components/forms/radio/component/radio.component.js +2 -2
- package/esm2022/lib/components/forms/select/component/select.component.js +4 -8
- package/esm2022/lib/components/forms/select/component/select.component.js.map +1 -1
- package/esm2022/lib/components/icon/component/solaris-icon.component.js +2 -2
- package/esm2022/lib/components/icon/component/solaris-icon.component.js.map +1 -1
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.js +27 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.js +96 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.js +22 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.js +105 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.js +95 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.js +631 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.js +365 -0
- package/esm2022/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/index.js +8 -0
- package/esm2022/lib/components/interaction/dropdown-menu/index.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.js +3 -0
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.js +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.js +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.js.map +1 -0
- package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js +2 -2
- package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js.map +1 -1
- package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js +28 -20
- package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js.map +1 -1
- package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js.map +1 -1
- package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js.map +1 -1
- package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js.map +1 -1
- package/esm2022/lib/components/navigation/editable-tabs/component/editable-tabs.component.js +323 -0
- package/esm2022/lib/components/navigation/editable-tabs/component/editable-tabs.component.js.map +1 -0
- package/esm2022/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.js +34 -0
- package/esm2022/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.js.map +1 -0
- package/esm2022/lib/components/navigation/editable-tabs/model/editable-tabs.types.js +1 -0
- package/esm2022/lib/components/navigation/editable-tabs/model/editable-tabs.types.js.map +1 -0
- package/esm2022/lib/components/navigation/segmented-control/component/segmented-control.component.js +242 -0
- package/esm2022/lib/components/navigation/segmented-control/component/segmented-control.component.js.map +1 -0
- package/esm2022/lib/components/navigation/segmented-control/item/segmented-item.component.js +197 -0
- package/esm2022/lib/components/navigation/segmented-control/item/segmented-item.component.js.map +1 -0
- package/esm2022/lib/components/navigation/segmented-control/model/segmented-control.types.js +1 -0
- package/esm2022/lib/components/navigation/segmented-control/model/segmented-control.types.js.map +1 -0
- package/esm2022/lib/components/navigation/segmented-control/token/segmented-control.tokens.js +3 -0
- package/esm2022/lib/components/navigation/segmented-control/token/segmented-control.tokens.js.map +1 -0
- package/esm2022/lib/components/navigation/stepper/actions/stepper-actions.component.js +15 -0
- package/esm2022/lib/components/navigation/stepper/actions/stepper-actions.component.js.map +1 -0
- package/esm2022/lib/components/navigation/stepper/component/stepper.component.js +99 -0
- package/esm2022/lib/components/navigation/stepper/component/stepper.component.js.map +1 -0
- package/esm2022/lib/components/navigation/stepper/content/stepper-content.component.js +13 -0
- package/esm2022/lib/components/navigation/stepper/content/stepper-content.component.js.map +1 -0
- package/esm2022/lib/components/navigation/stepper/model/stepper.types.js +1 -0
- package/esm2022/lib/components/navigation/stepper/model/stepper.types.js.map +1 -0
- package/esm2022/lib/components/navigation/stepper/step/step.component.js +91 -0
- package/esm2022/lib/components/navigation/stepper/step/step.component.js.map +1 -0
- package/esm2022/lib/components/navigation/stepper/token/stepper.tokens.js +3 -0
- package/esm2022/lib/components/navigation/stepper/token/stepper.tokens.js.map +1 -0
- package/esm2022/lib/components/navigation/tabs/component/tabs.component.js +169 -0
- package/esm2022/lib/components/navigation/tabs/component/tabs.component.js.map +1 -0
- package/esm2022/lib/components/navigation/tabs/index.js +5 -0
- package/esm2022/lib/components/navigation/tabs/index.js.map +1 -0
- package/esm2022/lib/components/navigation/tabs/model/tabs.types.js +1 -0
- package/esm2022/lib/components/navigation/tabs/model/tabs.types.js.map +1 -0
- package/esm2022/lib/components/navigation/tabs/tab/tab.component.js +195 -0
- package/esm2022/lib/components/navigation/tabs/tab/tab.component.js.map +1 -0
- package/esm2022/lib/components/navigation/tabs/tab-panel/tab-panel.component.js +55 -0
- package/esm2022/lib/components/navigation/tabs/tab-panel/tab-panel.component.js.map +1 -0
- package/esm2022/lib/components/navigation/tabs/token/tabs.tokens.js +3 -0
- package/esm2022/lib/components/navigation/tabs/token/tabs.tokens.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/component/dialog.component.js +49 -0
- package/esm2022/lib/components/overlay/dialog/component/dialog.component.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/components/dialog-actions.component.js +37 -0
- package/esm2022/lib/components/overlay/dialog/components/dialog-actions.component.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/components/dialog-content.component.js +13 -0
- package/esm2022/lib/components/overlay/dialog/components/dialog-content.component.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/components/dialog-header.component.js +32 -0
- package/esm2022/lib/components/overlay/dialog/components/dialog-header.component.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/container/dialog-container.component.js +142 -0
- package/esm2022/lib/components/overlay/dialog/container/dialog-container.component.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/flow/dialog-flow.component.js +56 -0
- package/esm2022/lib/components/overlay/dialog/flow/dialog-flow.component.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/flow/dialog-step.component.js +20 -0
- package/esm2022/lib/components/overlay/dialog/flow/dialog-step.component.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/model/dialog.types.js +1 -0
- package/esm2022/lib/components/overlay/dialog/model/dialog.types.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/provider/provide-solaris-dialog.js +13 -0
- package/esm2022/lib/components/overlay/dialog/provider/provide-solaris-dialog.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/service/dialog-ref.js +23 -0
- package/esm2022/lib/components/overlay/dialog/service/dialog-ref.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/service/dialog.service.js +111 -0
- package/esm2022/lib/components/overlay/dialog/service/dialog.service.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/token/dialog-data.token.js +4 -0
- package/esm2022/lib/components/overlay/dialog/token/dialog-data.token.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/token/dialog.tokens.js +15 -0
- package/esm2022/lib/components/overlay/dialog/token/dialog.tokens.js.map +1 -0
- package/esm2022/lib/services/icon/icons/groups/actions.js +242 -0
- package/esm2022/lib/services/icon/icons/groups/actions.js.map +1 -0
- package/esm2022/lib/services/icon/icons/groups/data.js +129 -0
- package/esm2022/lib/services/icon/icons/groups/data.js.map +1 -0
- package/esm2022/lib/services/icon/icons/groups/layout.js +50 -0
- package/esm2022/lib/services/icon/icons/groups/layout.js.map +1 -0
- package/esm2022/lib/services/icon/icons/groups/navigation.js +354 -0
- package/esm2022/lib/services/icon/icons/groups/navigation.js.map +1 -0
- package/esm2022/lib/services/icon/icons/groups/status.js +70 -0
- package/esm2022/lib/services/icon/icons/groups/status.js.map +1 -0
- package/esm2022/lib/services/icon/icons/groups/theme.js +49 -0
- package/esm2022/lib/services/icon/icons/groups/theme.js.map +1 -0
- package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js +12 -204
- package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js.map +1 -1
- package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js.map +1 -1
- package/esm2022/lib/services/icon/model/solaris-icon.types.js.map +1 -1
- package/esm2022/lib/services/translation/model/solaris-translate-defaults.js +56 -0
- package/esm2022/lib/services/translation/model/solaris-translate-defaults.js.map +1 -1
- package/index.d.ts +92 -1
- package/lib/components/actions/button/index.d.ts +3 -0
- package/lib/components/data-display/badge/index.d.ts +3 -0
- package/lib/components/data-display/divider/component/divider.component.d.ts +17 -0
- package/lib/components/data-display/divider/index.d.ts +2 -0
- package/lib/components/data-display/divider/model/divider.types.d.ts +5 -0
- package/lib/components/feedback/toast/component/toast.component.d.ts +62 -0
- package/lib/components/feedback/toast/container/toast-container.component.d.ts +10 -0
- package/lib/components/feedback/toast/model/toast.types.d.ts +106 -0
- package/lib/components/feedback/toast/provider/provide-solaris-toast.d.ts +3 -0
- package/lib/components/feedback/toast/service/toast.service.d.ts +36 -0
- package/lib/components/feedback/toast/token/toast.tokens.d.ts +5 -0
- package/lib/components/forms/email-field/component/email-field.component.d.ts +2 -1
- package/lib/components/forms/form-field/component/form-field.component.d.ts +6 -0
- package/lib/components/forms/multi-select/component/multi-select.component.d.ts +4 -7
- package/lib/components/forms/select/component/select.component.d.ts +2 -2
- package/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.d.ts +10 -0
- package/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.d.ts +28 -0
- package/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.d.ts +7 -0
- package/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.d.ts +21 -0
- package/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.d.ts +21 -0
- package/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.d.ts +68 -0
- package/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.d.ts +61 -0
- package/lib/components/interaction/dropdown-menu/index.d.ts +9 -0
- package/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.d.ts +8 -0
- package/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.d.ts +11 -0
- package/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.d.ts +2 -0
- package/lib/components/navigation/editable-tabs/component/editable-tabs.component.d.ts +69 -0
- package/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.d.ts +20 -0
- package/lib/components/navigation/editable-tabs/model/editable-tabs.types.d.ts +60 -0
- package/lib/components/navigation/segmented-control/component/segmented-control.component.d.ts +64 -0
- package/lib/components/navigation/segmented-control/item/segmented-item.component.d.ts +35 -0
- package/lib/components/navigation/segmented-control/model/segmented-control.types.d.ts +12 -0
- package/lib/components/navigation/segmented-control/token/segmented-control.tokens.d.ts +22 -0
- package/lib/components/navigation/stepper/actions/stepper-actions.component.d.ts +7 -0
- package/lib/components/navigation/stepper/component/stepper.component.d.ts +36 -0
- package/lib/components/navigation/stepper/content/stepper-content.component.d.ts +5 -0
- package/lib/components/navigation/stepper/model/stepper.types.d.ts +15 -0
- package/lib/components/navigation/stepper/step/step.component.d.ts +27 -0
- package/lib/components/navigation/stepper/token/stepper.tokens.d.ts +13 -0
- package/lib/components/navigation/tabs/component/tabs.component.d.ts +47 -0
- package/lib/components/navigation/tabs/index.d.ts +6 -0
- package/lib/components/navigation/tabs/model/tabs.types.d.ts +17 -0
- package/lib/components/navigation/tabs/tab/tab.component.d.ts +38 -0
- package/lib/components/navigation/tabs/tab-panel/tab-panel.component.d.ts +15 -0
- package/lib/components/navigation/tabs/token/tabs.tokens.d.ts +19 -0
- package/lib/components/overlay/dialog/component/dialog.component.d.ts +29 -0
- package/lib/components/overlay/dialog/components/dialog-actions.component.d.ts +12 -0
- package/lib/components/overlay/dialog/components/dialog-content.component.d.ts +5 -0
- package/lib/components/overlay/dialog/components/dialog-header.component.d.ts +19 -0
- package/lib/components/overlay/dialog/container/dialog-container.component.d.ts +32 -0
- package/lib/components/overlay/dialog/flow/dialog-flow.component.d.ts +19 -0
- package/lib/components/overlay/dialog/flow/dialog-step.component.d.ts +7 -0
- package/lib/components/overlay/dialog/model/dialog.types.d.ts +87 -0
- package/lib/components/overlay/dialog/provider/provide-solaris-dialog.d.ts +3 -0
- package/lib/components/overlay/dialog/service/dialog-ref.d.ts +11 -0
- package/lib/components/overlay/dialog/service/dialog.service.d.ts +20 -0
- package/lib/components/overlay/dialog/token/dialog-data.token.d.ts +4 -0
- package/lib/components/overlay/dialog/token/dialog.tokens.d.ts +4 -0
- package/lib/services/icon/icons/groups/actions.d.ts +2 -0
- package/lib/services/icon/icons/groups/data.d.ts +2 -0
- package/lib/services/icon/icons/groups/layout.d.ts +2 -0
- package/lib/services/icon/icons/groups/navigation.d.ts +2 -0
- package/lib/services/icon/icons/groups/status.d.ts +2 -0
- package/lib/services/icon/icons/groups/theme.d.ts +2 -0
- package/lib/services/icon/model/solaris-icon-definition.interface.d.ts +10 -1
- package/lib/services/icon/model/solaris-icon.types.d.ts +1 -1
- package/package.json +1 -1
- package/styles/_dropdown-menu.scss +72 -0
- package/styles/_popover.scss +24 -19
- package/styles/_toast.scss +9 -0
- package/styles/_tooltip.scss +3 -3
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ViewContainerRef, type Type } from '@angular/core';
|
|
2
|
+
import type { SolarisDialogOptions, SolarisDialogComponentConfig } from '../model/dialog.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SolarisDialogContainerComponent {
|
|
5
|
+
private readonly dialogRef;
|
|
6
|
+
private readonly injector;
|
|
7
|
+
readonly externalComponent: import("@angular/core").InputSignal<Type<unknown> | null>;
|
|
8
|
+
readonly simpleOptions: import("@angular/core").InputSignal<SolarisDialogOptions<unknown> | null>;
|
|
9
|
+
readonly externalComponentConfig: import("@angular/core").InputSignal<SolarisDialogComponentConfig<unknown> | null>;
|
|
10
|
+
set componentHostRef(vcr: ViewContainerRef | undefined);
|
|
11
|
+
private readonly _componentHost;
|
|
12
|
+
private componentRef;
|
|
13
|
+
protected get hostAppearance(): string;
|
|
14
|
+
protected get hostSize(): string;
|
|
15
|
+
protected get hostVariant(): string | undefined | null;
|
|
16
|
+
protected get panelWidth(): string;
|
|
17
|
+
protected get panelHeight(): string;
|
|
18
|
+
protected get panelMinWidth(): string;
|
|
19
|
+
protected get panelMaxWidth(): string;
|
|
20
|
+
protected get panelMinHeight(): string;
|
|
21
|
+
protected get panelMaxHeight(): string;
|
|
22
|
+
protected get isSimpleMode(): boolean;
|
|
23
|
+
protected get closeOnBackdrop(): boolean;
|
|
24
|
+
protected get closeOnEscapeEnabled(): boolean;
|
|
25
|
+
protected get dialogRole(): string;
|
|
26
|
+
constructor();
|
|
27
|
+
private createComponentInHost;
|
|
28
|
+
protected onEscapePress(): void;
|
|
29
|
+
protected onBackdropClick(event: Event): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SolarisDialogContainerComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SolarisDialogContainerComponent, "solaris-dialog-container", never, { "externalComponent": { "alias": "externalComponent"; "required": false; "isSignal": true; }; "simpleOptions": { "alias": "simpleOptions"; "required": false; "isSignal": true; }; "externalComponentConfig": { "alias": "externalComponentConfig"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { QueryList, AfterContentInit } from '@angular/core';
|
|
2
|
+
import { SolarisDialogStepComponent } from './dialog-step.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SolarisDialogFlowComponent implements AfterContentInit {
|
|
5
|
+
readonly activeIndex: import("@angular/core").ModelSignal<number>;
|
|
6
|
+
readonly transition: import("@angular/core").InputSignal<"none" | "slide" | "fade">;
|
|
7
|
+
steps?: QueryList<SolarisDialogStepComponent>;
|
|
8
|
+
protected readonly stepTemplates: import("@angular/core").WritableSignal<{
|
|
9
|
+
template: import("@angular/core").TemplateRef<unknown>;
|
|
10
|
+
index: number;
|
|
11
|
+
}[]>;
|
|
12
|
+
protected readonly animationDirection: import("@angular/core").WritableSignal<"forward" | "backward" | null>;
|
|
13
|
+
private previousIndex;
|
|
14
|
+
private hasNavigated;
|
|
15
|
+
constructor();
|
|
16
|
+
ngAfterContentInit(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SolarisDialogFlowComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SolarisDialogFlowComponent, "solaris-dialog-flow", never, { "activeIndex": { "alias": "activeIndex"; "required": false; "isSignal": true; }; "transition": { "alias": "transition"; "required": false; "isSignal": true; }; }, { "activeIndex": "activeIndexChange"; }, ["steps"], ["[solaris-dialog-flow-footer]"], true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SolarisDialogStepComponent {
|
|
4
|
+
templateRef: TemplateRef<unknown>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SolarisDialogStepComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SolarisDialogStepComponent, "solaris-dialog-step", never, {}, {}, never, ["*"], true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export type SolarisDialogAppearance = 'surface' | 'outline';
|
|
2
|
+
export type SolarisDialogVariant = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
3
|
+
export type SolarisDialogSize = 'sm' | 'md' | 'lg' | 'xl' | 'fullscreen';
|
|
4
|
+
export type SolarisDialogActionsAlign = 'start' | 'center' | 'end' | 'space-between';
|
|
5
|
+
export type SolarisDialogActionsStack = 'auto' | 'horizontal' | 'vertical';
|
|
6
|
+
export type SolarisDialogAutoFocus = 'first-tabbable' | 'panel' | false;
|
|
7
|
+
export type SolarisDialogRole = 'dialog' | 'alertdialog';
|
|
8
|
+
export type SolarisDialogButtonAppearance = 'solid' | 'outline' | 'ghost' | 'tonal' | 'surface';
|
|
9
|
+
export type SolarisDialogButtonColor = 'neutral' | 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'custom';
|
|
10
|
+
export interface SolarisDialogAction<TResult = unknown> {
|
|
11
|
+
label: string;
|
|
12
|
+
labelKey?: string;
|
|
13
|
+
appearance?: SolarisDialogButtonAppearance;
|
|
14
|
+
color?: SolarisDialogButtonColor;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
close?: boolean;
|
|
17
|
+
result?: TResult;
|
|
18
|
+
action?: (dialogRef: SolarisDialogRefInterface<TResult>) => void | Promise<void>;
|
|
19
|
+
autoFocus?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface SolarisDialogOptions<TResult = unknown> {
|
|
22
|
+
title?: string;
|
|
23
|
+
titleKey?: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
descriptionKey?: string;
|
|
26
|
+
icon?: string;
|
|
27
|
+
iconDecorative?: boolean;
|
|
28
|
+
variant?: SolarisDialogVariant;
|
|
29
|
+
appearance?: SolarisDialogAppearance;
|
|
30
|
+
size?: SolarisDialogSize;
|
|
31
|
+
width?: string;
|
|
32
|
+
height?: string;
|
|
33
|
+
minWidth?: string;
|
|
34
|
+
maxWidth?: string;
|
|
35
|
+
minHeight?: string;
|
|
36
|
+
maxHeight?: string;
|
|
37
|
+
closeable?: boolean;
|
|
38
|
+
closeLabel?: string;
|
|
39
|
+
closeLabelKey?: string;
|
|
40
|
+
closeOnEscape?: boolean;
|
|
41
|
+
closeOnBackdropClick?: boolean;
|
|
42
|
+
autoFocus?: SolarisDialogAutoFocus;
|
|
43
|
+
restoreFocus?: boolean;
|
|
44
|
+
role?: SolarisDialogRole;
|
|
45
|
+
ariaLabel?: string;
|
|
46
|
+
ariaLabelKey?: string;
|
|
47
|
+
ariaLabelledBy?: string;
|
|
48
|
+
ariaDescribedBy?: string;
|
|
49
|
+
actions?: SolarisDialogAction<TResult>[];
|
|
50
|
+
actionsAlign?: SolarisDialogActionsAlign;
|
|
51
|
+
actionsStack?: SolarisDialogActionsStack;
|
|
52
|
+
data?: unknown;
|
|
53
|
+
}
|
|
54
|
+
export interface SolarisDialogComponentConfig<TData = unknown> {
|
|
55
|
+
width?: string;
|
|
56
|
+
height?: string;
|
|
57
|
+
minWidth?: string;
|
|
58
|
+
maxWidth?: string;
|
|
59
|
+
minHeight?: string;
|
|
60
|
+
maxHeight?: string;
|
|
61
|
+
data?: TData;
|
|
62
|
+
closeable?: boolean;
|
|
63
|
+
closeOnEscape?: boolean;
|
|
64
|
+
closeOnBackdropClick?: boolean;
|
|
65
|
+
autoFocus?: SolarisDialogAutoFocus;
|
|
66
|
+
restoreFocus?: boolean;
|
|
67
|
+
role?: SolarisDialogRole;
|
|
68
|
+
appearance?: SolarisDialogAppearance;
|
|
69
|
+
size?: SolarisDialogSize;
|
|
70
|
+
}
|
|
71
|
+
export interface SolarisDialogConfig {
|
|
72
|
+
appearance?: SolarisDialogAppearance;
|
|
73
|
+
size?: SolarisDialogSize;
|
|
74
|
+
closeable?: boolean;
|
|
75
|
+
closeOnEscape?: boolean;
|
|
76
|
+
closeOnBackdropClick?: boolean;
|
|
77
|
+
autoFocus?: SolarisDialogAutoFocus;
|
|
78
|
+
restoreFocus?: boolean;
|
|
79
|
+
role?: SolarisDialogRole;
|
|
80
|
+
actionsAlign?: SolarisDialogActionsAlign;
|
|
81
|
+
actionsStack?: SolarisDialogActionsStack;
|
|
82
|
+
}
|
|
83
|
+
export interface SolarisDialogRefInterface<TResult = unknown> {
|
|
84
|
+
id: string;
|
|
85
|
+
close(result?: TResult): void;
|
|
86
|
+
afterClosed(): import('rxjs').Observable<TResult | undefined>;
|
|
87
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare class SolarisDialogRef<TResult = unknown> {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
private readonly afterClosedSubject;
|
|
5
|
+
private _componentInstance;
|
|
6
|
+
constructor(id: string);
|
|
7
|
+
get componentInstance(): unknown;
|
|
8
|
+
set componentInstance(value: unknown);
|
|
9
|
+
close(result?: TResult): void;
|
|
10
|
+
afterClosed(): Observable<TResult | undefined>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { SolarisDialogRef } from './dialog-ref';
|
|
3
|
+
import type { SolarisDialogOptions, SolarisDialogComponentConfig } from '../model/dialog.types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SolarisDialogService {
|
|
6
|
+
private readonly injector;
|
|
7
|
+
private readonly overlay;
|
|
8
|
+
private readonly config;
|
|
9
|
+
private readonly openDialogs;
|
|
10
|
+
constructor();
|
|
11
|
+
open<TResult = unknown>(options: SolarisDialogOptions<TResult>): SolarisDialogRef<TResult>;
|
|
12
|
+
openComponent<TComponent, TResult = unknown, TData = unknown>(component: Type<TComponent>, config?: SolarisDialogComponentConfig<TData>): SolarisDialogRef<TResult>;
|
|
13
|
+
private createOverlay;
|
|
14
|
+
private createInjector;
|
|
15
|
+
private trackDialog;
|
|
16
|
+
private resolveOptions;
|
|
17
|
+
closeAll(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SolarisDialogService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SolarisDialogService>;
|
|
20
|
+
}
|
|
@@ -23,7 +23,16 @@ export interface SvgCircleElement {
|
|
|
23
23
|
cy: number;
|
|
24
24
|
r: number;
|
|
25
25
|
}
|
|
26
|
-
export
|
|
26
|
+
export interface SvgRectElement {
|
|
27
|
+
type: 'rect';
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
rx?: number;
|
|
33
|
+
ry?: number;
|
|
34
|
+
}
|
|
35
|
+
export type SvgElement = SvgPathElement | SvgLineElement | SvgPolylineElement | SvgPolygonElement | SvgCircleElement | SvgRectElement;
|
|
27
36
|
export interface SolarisIconDefinition {
|
|
28
37
|
name: string;
|
|
29
38
|
viewBox: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type SolarisBuiltInIcon = 'check' | 'x' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'chevron-forward' | 'chevron-backward' | 'chevron-first' | 'chevron-last' | 'info' | 'warning' | 'danger' | 'caution' | 'success' | 'shield-check' | 'sun' | 'moon' | 'globe';
|
|
1
|
+
export type SolarisBuiltInIcon = 'check' | 'x' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'chevron-forward' | 'chevron-backward' | 'chevron-first' | 'chevron-last' | 'info' | 'warning' | 'danger' | 'caution' | 'success' | 'shield-check' | 'sun' | 'moon' | 'monitor' | 'globe' | 'ellipses' | 'edit' | 'trash' | 'move' | 'gear' | 'settings' | 'wrench' | 'unlink' | 'unlock' | 'lock';
|
|
2
2
|
export type SolarisIconName = string & {
|
|
3
3
|
__brand?: never;
|
|
4
4
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
.solaris-dropdown-menu-overlay {
|
|
2
|
+
--solaris-dropdown-menu-min-width: calc(
|
|
3
|
+
var(--solaris-spacing-24) + var(--solaris-spacing-10) +
|
|
4
|
+
var(--solaris-spacing-1)
|
|
5
|
+
);
|
|
6
|
+
--solaris-dropdown-menu-max-width: calc(
|
|
7
|
+
var(--solaris-spacing-24) * 2 + var(--solaris-spacing-10) +
|
|
8
|
+
var(--solaris-spacing-2)
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
.solaris-popover-panel__container {
|
|
12
|
+
padding: 0;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.solaris-dropdown-menu__wrapper {
|
|
18
|
+
--solaris-dropdown-menu-gap: var(--solaris-spacing-2);
|
|
19
|
+
--solaris-dropdown-menu-padding: var(--solaris-spacing-2);
|
|
20
|
+
|
|
21
|
+
display: flex;
|
|
22
|
+
outline: none;
|
|
23
|
+
user-select: none;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
gap: var(--solaris-dropdown-menu-gap);
|
|
27
|
+
padding: var(--solaris-dropdown-menu-padding);
|
|
28
|
+
min-width: var(--solaris-dropdown-menu-min-width);
|
|
29
|
+
max-width: var(--solaris-dropdown-menu-max-width);
|
|
30
|
+
|
|
31
|
+
solaris-divider {
|
|
32
|
+
margin-inline: calc(-1 * var(--solaris-dropdown-menu-padding));
|
|
33
|
+
width: calc(100% + 2 * var(--solaris-dropdown-menu-padding));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
solaris-dropdown-menu-group {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
padding-block: var(--solaris-spacing-1);
|
|
41
|
+
|
|
42
|
+
&:first-child {
|
|
43
|
+
padding-block-start: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:last-child {
|
|
47
|
+
padding-block-end: 0;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
solaris-dropdown-menu-label {
|
|
52
|
+
display: flex;
|
|
53
|
+
cursor: default;
|
|
54
|
+
user-select: none;
|
|
55
|
+
align-items: center;
|
|
56
|
+
letter-spacing: 0.05em;
|
|
57
|
+
text-transform: uppercase;
|
|
58
|
+
color: var(--solaris-text-muted);
|
|
59
|
+
font-weight: var(--solaris-font-weight-semibold);
|
|
60
|
+
font-size: var(--solaris-font-size-xs);
|
|
61
|
+
line-height: var(--solaris-line-height-xs);
|
|
62
|
+
padding: var(--solaris-spacing-2) var(--solaris-spacing-3);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
solaris-dropdown-submenu {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
solaris-dropdown-submenu-trigger {
|
|
71
|
+
display: flex;
|
|
72
|
+
}
|
package/styles/_popover.scss
CHANGED
|
@@ -1,34 +1,39 @@
|
|
|
1
1
|
.solaris-popover-panel-overlay {
|
|
2
|
-
z-index: var(--solaris-z-index-popover
|
|
2
|
+
z-index: var(--solaris-z-index-popover);
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.solaris-popover-panel {
|
|
6
|
-
|
|
6
|
+
--solaris-popover-border-width: 0;
|
|
7
|
+
--solaris-popover-min-width: auto;
|
|
8
|
+
--solaris-popover-max-width: none;
|
|
9
|
+
--solaris-popover-border-color: transparent;
|
|
10
|
+
--solaris-popover-radius: var(--solaris-radius-md);
|
|
11
|
+
--solaris-popover-shadow: var(--solaris-shadow-lg);
|
|
12
|
+
--solaris-popover-padding: var(--solaris-spacing-3);
|
|
13
|
+
--solaris-popover-color: var(--solaris-text-default);
|
|
14
|
+
--solaris-popover-background: var(--solaris-surface-raised);
|
|
15
|
+
|
|
7
16
|
outline: none;
|
|
17
|
+
display: block;
|
|
8
18
|
}
|
|
9
19
|
|
|
10
20
|
.solaris-popover-panel__container {
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
background: var(--solaris-popover-background, var(--solaris-surface-raised));
|
|
13
|
-
color: var(--solaris-popover-color, var(--solaris-text-default));
|
|
14
|
-
border: var(--solaris-popover-border-width, 0) solid
|
|
15
|
-
var(--solaris-popover-border-color, transparent);
|
|
16
|
-
border-radius: var(--solaris-popover-radius, var(--solaris-radius-md));
|
|
17
|
-
box-shadow: var(--solaris-popover-shadow, var(--solaris-shadow-lg));
|
|
18
|
-
padding: var(--solaris-popover-padding, var(--solaris-spacing-3));
|
|
19
|
-
min-width: var(--solaris-popover-min-width, auto);
|
|
20
|
-
max-width: var(--solaris-popover-max-width, none);
|
|
21
21
|
outline: none;
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
color: var(--solaris-popover-color);
|
|
24
|
+
padding: var(--solaris-popover-padding);
|
|
25
|
+
box-shadow: var(--solaris-popover-shadow);
|
|
26
|
+
min-width: var(--solaris-popover-min-width);
|
|
27
|
+
max-width: var(--solaris-popover-max-width);
|
|
28
|
+
border-radius: var(--solaris-popover-radius);
|
|
29
|
+
background: var(--solaris-popover-background);
|
|
30
|
+
border: var(--solaris-popover-border-width) solid
|
|
31
|
+
var(--solaris-popover-border-color);
|
|
22
32
|
}
|
|
23
33
|
|
|
24
34
|
.solaris-popover-panel__container[data-appearance='outline'] {
|
|
25
|
-
background: var(--solaris-
|
|
26
|
-
border: var(--solaris-
|
|
27
|
-
solid
|
|
28
|
-
var(
|
|
29
|
-
--solaris-popover-border-color,
|
|
30
|
-
var(--solaris-popover-outline-border-color, var(--solaris-border-default))
|
|
31
|
-
);
|
|
35
|
+
background: var(--solaris-surface-base);
|
|
36
|
+
border: var(--solaris-border-width-sm) solid var(--solaris-border-subtle);
|
|
32
37
|
}
|
|
33
38
|
|
|
34
39
|
.solaris-popover-panel__container[data-padding='none'] {
|
package/styles/_tooltip.scss
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.solaris-tooltip-panel-overlay {
|
|
2
|
-
z-index: var(--solaris-tooltip-z-index, var(--solaris-z-index-tooltip));
|
|
3
|
-
}
|
|
1
|
+
.solaris-tooltip-panel-overlay {
|
|
2
|
+
z-index: var(--solaris-tooltip-z-index, var(--solaris-z-index-tooltip));
|
|
3
|
+
}
|