ps-helix 4.0.5 → 4.0.7
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 +3 -3
- package/fesm2022/ps-helix.mjs +355 -109
- package/fesm2022/ps-helix.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/styles/base/global.css +4 -0
- package/types/ps-helix.d.ts +84 -2
package/package.json
CHANGED
package/types/ps-helix.d.ts
CHANGED
|
@@ -1770,6 +1770,88 @@ declare class PshStepperComponent {
|
|
|
1770
1770
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PshStepperComponent, "psh-stepper", never, { "activeStep": { "alias": "activeStep"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "linear": { "alias": "linear"; "required": false; "isSignal": true; }; "ariaLabels": { "alias": "ariaLabels"; "required": false; "isSignal": true; }; "beforeStepChange": { "alias": "beforeStepChange"; "required": false; "isSignal": true; }; }, { "activeStep": "activeStepChange"; "stepChange": "stepChange"; "completed": "completed"; "navigationError": "navigationError"; }, ["stepComponents"], ["*"], true, never>;
|
|
1771
1771
|
}
|
|
1772
1772
|
|
|
1773
|
+
type StateFlowIndicatorSize = 'small' | 'medium' | 'large';
|
|
1774
|
+
interface StateFlowIndicatorAriaLabels {
|
|
1775
|
+
step: string;
|
|
1776
|
+
completed: string;
|
|
1777
|
+
active: string;
|
|
1778
|
+
incomplete: string;
|
|
1779
|
+
disabled: string;
|
|
1780
|
+
warning: string;
|
|
1781
|
+
error: string;
|
|
1782
|
+
}
|
|
1783
|
+
interface StateFlowIndicatorConfig {
|
|
1784
|
+
linear: boolean;
|
|
1785
|
+
ariaLabels?: StateFlowIndicatorAriaLabels;
|
|
1786
|
+
}
|
|
1787
|
+
interface FlowStepConfig {
|
|
1788
|
+
title: string;
|
|
1789
|
+
disabled: boolean;
|
|
1790
|
+
completed: boolean;
|
|
1791
|
+
loading: boolean;
|
|
1792
|
+
error?: string;
|
|
1793
|
+
warning?: string;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
declare class PshFlowStepComponent {
|
|
1797
|
+
title: _angular_core.InputSignal<string>;
|
|
1798
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
1799
|
+
completed: _angular_core.InputSignal<boolean>;
|
|
1800
|
+
loading: _angular_core.InputSignal<boolean>;
|
|
1801
|
+
error: _angular_core.InputSignal<string | undefined>;
|
|
1802
|
+
warning: _angular_core.InputSignal<string | undefined>;
|
|
1803
|
+
private _index;
|
|
1804
|
+
private _isActive;
|
|
1805
|
+
readonly index: _angular_core.Signal<number>;
|
|
1806
|
+
readonly isActive: _angular_core.Signal<boolean>;
|
|
1807
|
+
setIndex(value: number): void;
|
|
1808
|
+
setActive(value: boolean): void;
|
|
1809
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PshFlowStepComponent, never>;
|
|
1810
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PshFlowStepComponent, "psh-flow-step", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "completed": { "alias": "completed"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "warning": { "alias": "warning"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
declare const STATE_FLOW_INDICATOR_CONFIG: InjectionToken<Partial<StateFlowIndicatorConfig>>;
|
|
1814
|
+
declare class PshStateFlowIndicatorComponent {
|
|
1815
|
+
private config;
|
|
1816
|
+
activeStep: _angular_core.ModelSignal<number>;
|
|
1817
|
+
linear: _angular_core.InputSignal<boolean>;
|
|
1818
|
+
size: _angular_core.InputSignal<StateFlowIndicatorSize>;
|
|
1819
|
+
ariaLabels: _angular_core.InputSignal<StateFlowIndicatorAriaLabels | undefined>;
|
|
1820
|
+
beforeStepChange: _angular_core.InputSignal<((from: number, to: number) => Promise<boolean> | boolean) | undefined>;
|
|
1821
|
+
stepChange: _angular_core.OutputEmitterRef<number>;
|
|
1822
|
+
completed: _angular_core.OutputEmitterRef<void>;
|
|
1823
|
+
navigationError: _angular_core.OutputEmitterRef<string>;
|
|
1824
|
+
stepComponents: _angular_core.Signal<readonly PshFlowStepComponent[]>;
|
|
1825
|
+
steps: _angular_core.Signal<{
|
|
1826
|
+
title: string;
|
|
1827
|
+
disabled: boolean;
|
|
1828
|
+
completed: boolean;
|
|
1829
|
+
loading: boolean;
|
|
1830
|
+
error: string | undefined;
|
|
1831
|
+
warning: string | undefined;
|
|
1832
|
+
}[]>;
|
|
1833
|
+
effectiveAriaLabels: _angular_core.Signal<StateFlowIndicatorAriaLabels>;
|
|
1834
|
+
isFirstStep: _angular_core.Signal<boolean>;
|
|
1835
|
+
isLastStep: _angular_core.Signal<boolean>;
|
|
1836
|
+
progress: _angular_core.Signal<number>;
|
|
1837
|
+
completedSteps: _angular_core.Signal<number>;
|
|
1838
|
+
constructor();
|
|
1839
|
+
private syncStepStates;
|
|
1840
|
+
next(): Promise<void>;
|
|
1841
|
+
previous(): Promise<void>;
|
|
1842
|
+
goToStep(index: number): Promise<void>;
|
|
1843
|
+
canGoNext(): boolean;
|
|
1844
|
+
canGoPrevious(): boolean;
|
|
1845
|
+
canActivateStep(index: number): boolean;
|
|
1846
|
+
isStepValid(index: number): boolean;
|
|
1847
|
+
getStepAriaLabel(step: FlowStepConfig, index: number): string;
|
|
1848
|
+
reset(): void;
|
|
1849
|
+
handleStepClick(index: number): void;
|
|
1850
|
+
handleKeydown(event: KeyboardEvent, index: number): void;
|
|
1851
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PshStateFlowIndicatorComponent, never>;
|
|
1852
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PshStateFlowIndicatorComponent, "psh-state-flow-indicator", never, { "activeStep": { "alias": "activeStep"; "required": false; "isSignal": true; }; "linear": { "alias": "linear"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ariaLabels": { "alias": "ariaLabels"; "required": false; "isSignal": true; }; "beforeStepChange": { "alias": "beforeStepChange"; "required": false; "isSignal": true; }; }, { "activeStep": "activeStepChange"; "stepChange": "stepChange"; "completed": "completed"; "navigationError": "navigationError"; }, ["stepComponents"], never, true, never>;
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1773
1855
|
/**
|
|
1774
1856
|
* Tailles disponibles pour le switch
|
|
1775
1857
|
*/
|
|
@@ -2367,5 +2449,5 @@ declare class ScrollService {
|
|
|
2367
2449
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ScrollService>;
|
|
2368
2450
|
}
|
|
2369
2451
|
|
|
2370
|
-
export { CHECKBOX_CONFIG, INPUT_LABELS, INSURER_CONTEXT_SERVICE, MODAL_CONFIG, ModalService, NgxTranslateProvider, PAGINATION_CONFIG, PROGRESSBAR_CONFIG, PshAlertComponent, PshAvatarComponent, PshBadgeComponent, PshButtonComponent, PshCardComponent, PshCheckboxComponent, PshCollapseComponent, PshDropdownComponent, PshHorizontalCardComponent, PshInfoCardComponent, PshInputComponent, PshMenuComponent, PshModalComponent, PshPaginationComponent, PshProgressbarComponent, PshRadioComponent, PshSelectComponent, PshSidebarComponent, PshSpinLoaderComponent, PshStatCardComponent, PshStepComponent, PshStepperComponent, PshSwitchComponent, PshTabBarComponent, PshTabComponent, PshTableComponent, PshTabsComponent, PshTagComponent, PshToastComponent, PshToastService, PshTooltipComponent, RADIO_CONFIG, RADIO_STYLES, SIDEBAR_CONFIG, SPINLOADER_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, ScrollService, TABLE_CONFIG, TABS_CONFIG, TAB_BAR_CONFIG, TAG_CONFIG, TOAST_CONFIG, TOOLTIP_CONFIG, TRANSLATION_PROVIDER, ThemeService, ToastComponent, ToastService, provideTranslation };
|
|
2371
|
-
export type { AlertConfig, AlertLabels, AlertRole, AlertSize, AlertType, AutocompleteConfig, AvatarConfig, AvatarShape, AvatarSize, AvatarStatus, BadgeDisplayType, BadgePosition, BadgeSize, BadgeVariant, ButtonAppearance, ButtonIconPosition, ButtonSize, ButtonVariant, CardActionsAlignment, CardColorVariant, CardDensity, CardVariant, CheckboxConfig, CheckboxLabelPosition, CheckboxSize, CollapseSize, CollapseVariant, DropdownConfig, DropdownItem, DropdownPlacement, DropdownSize, IconPosition, InfoCardData, InfoCardOptions, InfoCardVariant, InputConfig, InputSize, InputType, InputVariant, InsurerContextService, MenuItem, MenuMode, MenuVariant, ModalConfig, ModalSize, PaginationConfig, PaginationSize, PaginationVariant, ProgressbarConfig, ProgressbarLabelPosition, ProgressbarMode, ProgressbarSize, ProgressbarVariant, RadioConfig, RadioSize, SearchConfig, SelectOption, SelectOptionGroup, SelectSize, SidebarConfig, SidebarMode, SidebarPosition, SpinLoaderColor, SpinLoaderConfig, SpinLoaderSize, SpinLoaderVariant, StatCardLayout, StatCardVariant, StatTagVariant, StepConfig, StepperAriaLabels, StepperConfig, StepperVariant, SuggestionResult, SwitchConfig, SwitchSize, Tab, TabBarChangeEvent, TabBarConfig, TabBarItem, TabChangeEvent, TableCellContext, TableColumn, TableConfig, TableRow, TableRowClickEvent, TableSort, TabsConfig, TabsSize, TabsVariant, TagConfig, TagSize, TagVariant, Theme, ThemeConfig, Toast, ToastConfig, ToastPosition, ToastType, TooltipConfig, TooltipPosition, TooltipVariant, TranslationConfig, TranslationEntry, TranslationProvider };
|
|
2452
|
+
export { CHECKBOX_CONFIG, INPUT_LABELS, INSURER_CONTEXT_SERVICE, MODAL_CONFIG, ModalService, NgxTranslateProvider, PAGINATION_CONFIG, PROGRESSBAR_CONFIG, PshAlertComponent, PshAvatarComponent, PshBadgeComponent, PshButtonComponent, PshCardComponent, PshCheckboxComponent, PshCollapseComponent, PshDropdownComponent, PshFlowStepComponent, PshHorizontalCardComponent, PshInfoCardComponent, PshInputComponent, PshMenuComponent, PshModalComponent, PshPaginationComponent, PshProgressbarComponent, PshRadioComponent, PshSelectComponent, PshSidebarComponent, PshSpinLoaderComponent, PshStatCardComponent, PshStateFlowIndicatorComponent, PshStepComponent, PshStepperComponent, PshSwitchComponent, PshTabBarComponent, PshTabComponent, PshTableComponent, PshTabsComponent, PshTagComponent, PshToastComponent, PshToastService, PshTooltipComponent, RADIO_CONFIG, RADIO_STYLES, SIDEBAR_CONFIG, SPINLOADER_CONFIG, STATE_FLOW_INDICATOR_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, ScrollService, TABLE_CONFIG, TABS_CONFIG, TAB_BAR_CONFIG, TAG_CONFIG, TOAST_CONFIG, TOOLTIP_CONFIG, TRANSLATION_PROVIDER, ThemeService, ToastComponent, ToastService, provideTranslation };
|
|
2453
|
+
export type { AlertConfig, AlertLabels, AlertRole, AlertSize, AlertType, AutocompleteConfig, AvatarConfig, AvatarShape, AvatarSize, AvatarStatus, BadgeDisplayType, BadgePosition, BadgeSize, BadgeVariant, ButtonAppearance, ButtonIconPosition, ButtonSize, ButtonVariant, CardActionsAlignment, CardColorVariant, CardDensity, CardVariant, CheckboxConfig, CheckboxLabelPosition, CheckboxSize, CollapseSize, CollapseVariant, DropdownConfig, DropdownItem, DropdownPlacement, DropdownSize, FlowStepConfig, IconPosition, InfoCardData, InfoCardOptions, InfoCardVariant, InputConfig, InputSize, InputType, InputVariant, InsurerContextService, MenuItem, MenuMode, MenuVariant, ModalConfig, ModalSize, PaginationConfig, PaginationSize, PaginationVariant, ProgressbarConfig, ProgressbarLabelPosition, ProgressbarMode, ProgressbarSize, ProgressbarVariant, RadioConfig, RadioSize, SearchConfig, SelectOption, SelectOptionGroup, SelectSize, SidebarConfig, SidebarMode, SidebarPosition, SpinLoaderColor, SpinLoaderConfig, SpinLoaderSize, SpinLoaderVariant, StatCardLayout, StatCardVariant, StatTagVariant, StateFlowIndicatorAriaLabels, StateFlowIndicatorConfig, StateFlowIndicatorSize, StepConfig, StepperAriaLabels, StepperConfig, StepperVariant, SuggestionResult, SwitchConfig, SwitchSize, Tab, TabBarChangeEvent, TabBarConfig, TabBarItem, TabChangeEvent, TableCellContext, TableColumn, TableConfig, TableRow, TableRowClickEvent, TableSort, TabsConfig, TabsSize, TabsVariant, TagConfig, TagSize, TagVariant, Theme, ThemeConfig, Toast, ToastConfig, ToastPosition, ToastType, TooltipConfig, TooltipPosition, TooltipVariant, TranslationConfig, TranslationEntry, TranslationProvider };
|