@vsn-ux/ngx-gaia 0.9.17 → 0.10.1
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/DOCS.md +110 -0
- package/fesm2022/vsn-ux-ngx-gaia.mjs +240 -87
- package/fesm2022/vsn-ux-ngx-gaia.mjs.map +1 -1
- package/index.d.ts +74 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -753,6 +753,7 @@ declare class GaMenuModule {
|
|
|
753
753
|
type GaModalRole = 'dialog' | 'alertdialog';
|
|
754
754
|
type GaModalSize = 'sm' | 'md' | 'lg';
|
|
755
755
|
type GaModalType = 'none' | 'info' | 'danger' | 'warning' | 'success';
|
|
756
|
+
type GaModalVerticalPosition = 'top' | 'center';
|
|
756
757
|
declare class GaModalOptions {
|
|
757
758
|
/**
|
|
758
759
|
* Defines the predefined size of the modal.
|
|
@@ -775,6 +776,14 @@ declare class GaModalOptions {
|
|
|
775
776
|
* @default `dialog`
|
|
776
777
|
*/
|
|
777
778
|
role?: GaModalRole;
|
|
779
|
+
/**
|
|
780
|
+
* Defines the vertical position of the modal.
|
|
781
|
+
* - `center` centers the modal vertically in the viewport (default).
|
|
782
|
+
* - `top` positions the modal at the top with a calculated offset.
|
|
783
|
+
*
|
|
784
|
+
* @default `center`
|
|
785
|
+
*/
|
|
786
|
+
verticalPosition?: GaModalVerticalPosition;
|
|
778
787
|
/**
|
|
779
788
|
* Defines if the modal should be closed when the escape key is pressed.
|
|
780
789
|
*
|
|
@@ -803,7 +812,7 @@ declare abstract class GaModalComponent<I = void, O = void> {
|
|
|
803
812
|
private readonly destroyRef;
|
|
804
813
|
private readonly router;
|
|
805
814
|
private readonly globalOptions;
|
|
806
|
-
|
|
815
|
+
readonly options: GaModalOptions & {
|
|
807
816
|
labelledBy?: string;
|
|
808
817
|
describedBy?: string;
|
|
809
818
|
};
|
|
@@ -830,6 +839,7 @@ declare abstract class GaModalComponent<I = void, O = void> {
|
|
|
830
839
|
size: _vsn_ux_ngx_gaia.GaModalSize;
|
|
831
840
|
type: _vsn_ux_ngx_gaia.GaModalType;
|
|
832
841
|
role: _vsn_ux_ngx_gaia.GaModalRole;
|
|
842
|
+
verticalPosition: _vsn_ux_ngx_gaia.GaModalVerticalPosition;
|
|
833
843
|
closeOnEscape: boolean;
|
|
834
844
|
closeOnOutsideClick: boolean;
|
|
835
845
|
closeOnNavigation: boolean;
|
|
@@ -855,6 +865,8 @@ declare class GaModalService {
|
|
|
855
865
|
private parentModalService;
|
|
856
866
|
/** @ignore */
|
|
857
867
|
private openModalsAtThisLevel;
|
|
868
|
+
/** @ignore */
|
|
869
|
+
private positionStrategy?;
|
|
858
870
|
get activeModals(): WritableSignal<GaModalComponent<any, any>[]>;
|
|
859
871
|
open<C extends GaModalComponent<any, any>>(component: ComponentType<C>, ...args: ExtractInput<C> extends void ? [(undefined | null)?] : [ExtractInput<C>]): C;
|
|
860
872
|
closeAll(): void;
|
|
@@ -1638,6 +1650,65 @@ declare class GaLinkModule {
|
|
|
1638
1650
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<GaLinkModule>;
|
|
1639
1651
|
}
|
|
1640
1652
|
|
|
1653
|
+
declare class GaTabContentDirective {
|
|
1654
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaTabContentDirective, never>;
|
|
1655
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GaTabContentDirective, "ng-template[gaTabContent]", never, {}, {}, never, never, true, never>;
|
|
1656
|
+
}
|
|
1657
|
+
declare class GaTabComponent {
|
|
1658
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
1659
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1660
|
+
readonly rightIcon: _angular_core.InputSignal<lucide_angular.LucideIconData | undefined>;
|
|
1661
|
+
readonly rightIconColor: _angular_core.InputSignal<string | undefined>;
|
|
1662
|
+
/** @ignore */
|
|
1663
|
+
readonly explicitContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
1664
|
+
/** @ignore */
|
|
1665
|
+
readonly implicitContent: _angular_core.Signal<TemplateRef<any>>;
|
|
1666
|
+
/** @ignore */
|
|
1667
|
+
readonly contentTpl: _angular_core.Signal<TemplateRef<any>>;
|
|
1668
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaTabComponent, never>;
|
|
1669
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GaTabComponent, "ga-tab", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "rightIcon": { "alias": "rightIcon"; "required": false; "isSignal": true; }; "rightIconColor": { "alias": "rightIconColor"; "required": false; "isSignal": true; }; }, {}, ["explicitContent"], ["*"], true, never>;
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
interface GaTabChangeEvent {
|
|
1673
|
+
index: number;
|
|
1674
|
+
tab: GaTabComponent;
|
|
1675
|
+
}
|
|
1676
|
+
type GaTabsOrientation = 'horizontal' | 'vertical';
|
|
1677
|
+
interface GaBeforeTabChangeEvent {
|
|
1678
|
+
newIndex: number;
|
|
1679
|
+
oldIndex: number;
|
|
1680
|
+
preventChange: () => void;
|
|
1681
|
+
}
|
|
1682
|
+
declare class GaTabsComponent {
|
|
1683
|
+
/** @ignore */
|
|
1684
|
+
readonly uniqueId: string;
|
|
1685
|
+
/** @ignore */
|
|
1686
|
+
readonly selectedTab: _angular_core.WritableSignal<GaTabComponent | null>;
|
|
1687
|
+
/** @ignore */
|
|
1688
|
+
readonly tabs: _angular_core.Signal<readonly GaTabComponent[]>;
|
|
1689
|
+
readonly withKeyline: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1690
|
+
readonly orientation: _angular_core.InputSignal<GaTabsOrientation>;
|
|
1691
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
1692
|
+
readonly ariaLabelledby: _angular_core.InputSignal<string | undefined>;
|
|
1693
|
+
readonly selectedIndexInput: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
1694
|
+
readonly selectedIndex: _angular_core.WritableSignal<number>;
|
|
1695
|
+
readonly beforeTabChange: _angular_core.OutputEmitterRef<GaBeforeTabChangeEvent>;
|
|
1696
|
+
readonly selectedIndexChange: _angular_core.OutputEmitterRef<number>;
|
|
1697
|
+
readonly selectedTabChange: _angular_core.OutputEmitterRef<GaTabChangeEvent>;
|
|
1698
|
+
constructor();
|
|
1699
|
+
/** @ignore */
|
|
1700
|
+
onTabClick(index: number): void;
|
|
1701
|
+
protected selectTab(index: number, broadcastEvent: boolean): void;
|
|
1702
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaTabsComponent, never>;
|
|
1703
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GaTabsComponent, "ga-tabs", never, { "withKeyline": { "alias": "withKeyline"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "selectedIndexInput": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; }, { "beforeTabChange": "beforeTabChange"; "selectedIndexChange": "selectedIndexChange"; "selectedTabChange": "selectedTabChange"; }, ["tabs"], never, true, never>;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
declare class GaTabsModule {
|
|
1707
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaTabsModule, never>;
|
|
1708
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<GaTabsModule, never, [typeof GaTabsComponent, typeof GaTabComponent, typeof GaTabContentDirective], [typeof GaTabsComponent, typeof GaTabComponent, typeof GaTabContentDirective]>;
|
|
1709
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<GaTabsModule>;
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1641
1712
|
declare class GaTextAreaDirective {
|
|
1642
1713
|
private readonly implicitNgControlState;
|
|
1643
1714
|
private readonly formFieldConnector;
|
|
@@ -1692,5 +1763,5 @@ declare class GaChipModule {
|
|
|
1692
1763
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<GaChipModule>;
|
|
1693
1764
|
}
|
|
1694
1765
|
|
|
1695
|
-
export { CHECKBOX_CONTROL_VALUE_ACCESSOR, DEFAULT_MODAL_OPTIONS, GA_ALERT_I18N_FACTORY, GA_BASE_FONT_SIZE, GA_BUTTON_I18N_FACTORY, GA_CHECKBOX_REQUIRED_VALIDATOR, GA_DATA_SELECT_I18N_FACTORY, GA_DATA_SELECT_REQUIRED_VALIDATOR, GA_DATEPICKER_I18N_FACTORY, GA_DATEPICKER_PARSER_FORMATTER_FACTORY, GA_DATEPICKER_VALUE_ADAPTER_FACTORY, GA_DATE_PARSER_FORMATTER_CONFIG, GA_DEFAULT_DATEPICKER_FORMATS, GA_FORM_CONTROL_ADAPTER, GA_FORM_ERRORS, GA_ICON_DEFAULT_SIZE, GA_MODAL_DATA, GA_MODAL_I18N_FACTORY, GA_SELECT_I18N_FACTORY, GA_SELECT_REQUIRED_VALIDATOR, GA_TOOLTIP_DEFAULT_OFFSET, GaAlertComponent, GaAlertI18n, GaAlertI18nDefault, GaAlertModule, GaAlertTitleActionsComponent, GaAlertTitleComponent, GaBadgeComponent, GaBadgeModule, GaButtonDirective, GaButtonI18n, GaButtonI18nDefault, GaButtonModule, GaCardComponent, GaCardModule, GaCheckboxComponent, GaCheckboxModule, GaCheckboxRequiredValidator, GaChipComponent, GaChipListboxComponent, GaChipModule, GaDataSelectComponent, GaDataSelectI18n, GaDataSelectI18nDefault, GaDataSelectModule, GaDataSelectOptgroupLabelDirective, GaDataSelectOptionLabelDirective, GaDataSelectRequiredValidator, GaDataSelectValueDirective, GaDatepickerComponent, GaDatepickerI18n, GaDatepickerI18nDefault, GaDatepickerInputDirective, GaDatepickerModule, GaDatepickerNativeUtcIsoValueAdapter, GaDatepickerNativeUtcValueAdapter, GaDatepickerParserFormatter, GaDatepickerParserFormatterDefault, GaDatepickerStructValueAdapter, GaDatepickerToggleComponent, GaDatepickerValueAdapter, GaFieldErrorDirective, GaFieldInfoComponent, GaFieldLabelComponent, GaFormControlDirective, GaFormControlErrorsDirective, GaFormFieldComponent, GaFormFieldConnector, GaFormFieldModule, GaIconButtonDirective, GaIconComponent, GaIconModule, GaInputComponent, GaInputDirective, GaInputModule, GaLabelledByFormFieldDirective, GaLinkDirective, GaLinkModule, GaMenuComponent, GaMenuItemComponent, GaMenuModule, GaMenuSeparatorComponent, GaMenuTitleComponent, GaMenuTriggerDirective, GaMenuTriggerIconComponent, GaModalActionsComponent, GaModalCloseDirective, GaModalComponent, GaModalContentComponent, GaModalDescriptionComponent, GaModalDescriptionDirective, GaModalHeaderComponent, GaModalI18n, GaModalI18nDefault, GaModalLabelDirective, GaModalModule, GaModalOptions, GaModalRef, GaModalService, GaModalTitleDirective, GaOptgroupComponent, GaOptionComponent, GaRadioButtonComponent, GaRadioGroupComponent, GaRadioModule, GaSegmentedControlButtonDirective, GaSegmentedControlComponent, GaSegmentedControlIconButtonComponent, GaSegmentedControlModule, GaSegmentedControlTextButtonComponent, GaSelectComponent, GaSelectDropdownComponent, GaSelectDropdownSpinnerComponent, GaSelectI18n, GaSelectI18nDefault, GaSelectModule, GaSelectRequiredValidator, GaSelectValueComponent, GaSpinnerComponent, GaSpinnerModule, GaSwitchComponent, GaSwitchModule, GaTextAreaDirective, GaTextAreaModule, GaTooltipComponent, GaTooltipDirective, GaTooltipModule, RADIO_CONTROL_VALUE_ACCESSOR, SWITCH_CONTROL_VALUE_ACCESSOR, compareStructs, extendGaDateParserFormatter, injectNgControlState, provideGaAlertI18n, provideGaBaseFontSize, provideGaButtonI18n, provideGaDataSelectI18n, provideGaDatepickerI18n, provideGaDatepickerParserFormatter, provideGaDatepickerValueAdapter, provideGaFormErrors, provideGaModalI18n, provideGaModalOptions, provideGaSelectI18n };
|
|
1696
|
-
export type { GaAlertVariant, GaBadgeType, GaBadgeVariant, GaButtonType, GaChipVariant, GaDatepickerFormats, GaDatepickerStruct, GaFormControlAdapter, GaFormErrorMessage, GaFormErrorsConfig, GaFormErrorsMap, GaIconButtonVariant, GaIconData, GaLinkSize, GaLinkVariant, GaModalRole, GaModalSize, GaModalType, GaTooltipControlMode, GaTooltipDirection, GaTooltipPlacement, GaTooltipPosition, IGaDatepickerI18n, IGaSelectOption };
|
|
1766
|
+
export { CHECKBOX_CONTROL_VALUE_ACCESSOR, DEFAULT_MODAL_OPTIONS, GA_ALERT_I18N_FACTORY, GA_BASE_FONT_SIZE, GA_BUTTON_I18N_FACTORY, GA_CHECKBOX_REQUIRED_VALIDATOR, GA_DATA_SELECT_I18N_FACTORY, GA_DATA_SELECT_REQUIRED_VALIDATOR, GA_DATEPICKER_I18N_FACTORY, GA_DATEPICKER_PARSER_FORMATTER_FACTORY, GA_DATEPICKER_VALUE_ADAPTER_FACTORY, GA_DATE_PARSER_FORMATTER_CONFIG, GA_DEFAULT_DATEPICKER_FORMATS, GA_FORM_CONTROL_ADAPTER, GA_FORM_ERRORS, GA_ICON_DEFAULT_SIZE, GA_MODAL_DATA, GA_MODAL_I18N_FACTORY, GA_SELECT_I18N_FACTORY, GA_SELECT_REQUIRED_VALIDATOR, GA_TOOLTIP_DEFAULT_OFFSET, GaAlertComponent, GaAlertI18n, GaAlertI18nDefault, GaAlertModule, GaAlertTitleActionsComponent, GaAlertTitleComponent, GaBadgeComponent, GaBadgeModule, GaButtonDirective, GaButtonI18n, GaButtonI18nDefault, GaButtonModule, GaCardComponent, GaCardModule, GaCheckboxComponent, GaCheckboxModule, GaCheckboxRequiredValidator, GaChipComponent, GaChipListboxComponent, GaChipModule, GaDataSelectComponent, GaDataSelectI18n, GaDataSelectI18nDefault, GaDataSelectModule, GaDataSelectOptgroupLabelDirective, GaDataSelectOptionLabelDirective, GaDataSelectRequiredValidator, GaDataSelectValueDirective, GaDatepickerComponent, GaDatepickerI18n, GaDatepickerI18nDefault, GaDatepickerInputDirective, GaDatepickerModule, GaDatepickerNativeUtcIsoValueAdapter, GaDatepickerNativeUtcValueAdapter, GaDatepickerParserFormatter, GaDatepickerParserFormatterDefault, GaDatepickerStructValueAdapter, GaDatepickerToggleComponent, GaDatepickerValueAdapter, GaFieldErrorDirective, GaFieldInfoComponent, GaFieldLabelComponent, GaFormControlDirective, GaFormControlErrorsDirective, GaFormFieldComponent, GaFormFieldConnector, GaFormFieldModule, GaIconButtonDirective, GaIconComponent, GaIconModule, GaInputComponent, GaInputDirective, GaInputModule, GaLabelledByFormFieldDirective, GaLinkDirective, GaLinkModule, GaMenuComponent, GaMenuItemComponent, GaMenuModule, GaMenuSeparatorComponent, GaMenuTitleComponent, GaMenuTriggerDirective, GaMenuTriggerIconComponent, GaModalActionsComponent, GaModalCloseDirective, GaModalComponent, GaModalContentComponent, GaModalDescriptionComponent, GaModalDescriptionDirective, GaModalHeaderComponent, GaModalI18n, GaModalI18nDefault, GaModalLabelDirective, GaModalModule, GaModalOptions, GaModalRef, GaModalService, GaModalTitleDirective, GaOptgroupComponent, GaOptionComponent, GaRadioButtonComponent, GaRadioGroupComponent, GaRadioModule, GaSegmentedControlButtonDirective, GaSegmentedControlComponent, GaSegmentedControlIconButtonComponent, GaSegmentedControlModule, GaSegmentedControlTextButtonComponent, GaSelectComponent, GaSelectDropdownComponent, GaSelectDropdownSpinnerComponent, GaSelectI18n, GaSelectI18nDefault, GaSelectModule, GaSelectRequiredValidator, GaSelectValueComponent, GaSpinnerComponent, GaSpinnerModule, GaSwitchComponent, GaSwitchModule, GaTabComponent, GaTabContentDirective, GaTabsComponent, GaTabsModule, GaTextAreaDirective, GaTextAreaModule, GaTooltipComponent, GaTooltipDirective, GaTooltipModule, RADIO_CONTROL_VALUE_ACCESSOR, SWITCH_CONTROL_VALUE_ACCESSOR, compareStructs, extendGaDateParserFormatter, injectNgControlState, provideGaAlertI18n, provideGaBaseFontSize, provideGaButtonI18n, provideGaDataSelectI18n, provideGaDatepickerI18n, provideGaDatepickerParserFormatter, provideGaDatepickerValueAdapter, provideGaFormErrors, provideGaModalI18n, provideGaModalOptions, provideGaSelectI18n };
|
|
1767
|
+
export type { GaAlertVariant, GaBadgeType, GaBadgeVariant, GaBeforeTabChangeEvent, GaButtonType, GaChipVariant, GaDatepickerFormats, GaDatepickerStruct, GaFormControlAdapter, GaFormErrorMessage, GaFormErrorsConfig, GaFormErrorsMap, GaIconButtonVariant, GaIconData, GaLinkSize, GaLinkVariant, GaModalRole, GaModalSize, GaModalType, GaModalVerticalPosition, GaTabChangeEvent, GaTabsOrientation, GaTooltipControlMode, GaTooltipDirection, GaTooltipPlacement, GaTooltipPosition, IGaDatepickerI18n, IGaSelectOption };
|