@vsn-ux/ngx-gaia 0.2.0 → 0.2.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/fesm2022/vsn-ux-ngx-gaia.mjs +723 -111
- package/fesm2022/vsn-ux-ngx-gaia.mjs.map +1 -1
- package/lib/input/input.directive.d.ts +1 -1
- package/lib/select/index.d.ts +10 -0
- package/lib/select/opt-group.component.d.ts +6 -0
- package/lib/select/option.component.d.ts +20 -0
- package/lib/select/select-content-loading.component.d.ts +5 -0
- package/lib/select/select-content.component.d.ts +7 -0
- package/lib/select/select-required.validator.d.ts +8 -0
- package/lib/select/select-value.component.d.ts +7 -0
- package/lib/select/select.component.d.ts +55 -0
- package/lib/select/select.module.d.ts +15 -0
- package/lib/select/triggers/select-custom-trigger.component.d.ts +5 -0
- package/lib/select/triggers/select-searchable-trigger.component.d.ts +22 -0
- package/lib/select/triggers/select-trigger-di.d.ts +2 -0
- package/lib/select/triggers/select-trigger.component.d.ts +15 -0
- package/lib/tooltip/tooltip.component.d.ts +3 -4
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -16,5 +16,5 @@ export declare class GaInputDirective implements DoCheck, GaFormControl {
|
|
|
16
16
|
readonly errors: import("@angular/core").Signal<ValidationErrors | null>;
|
|
17
17
|
ngDoCheck(): void;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<GaInputDirective, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GaInputDirective, "[gaInput]", never, { "invalidInput": { "alias": "
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GaInputDirective, "[gaInput]", never, { "invalidInput": { "alias": "invalid"; "required": false; "isSignal": true; }; "idInput": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
20
20
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './select.component';
|
|
2
|
+
export * from './option.component';
|
|
3
|
+
export * from './opt-group.component';
|
|
4
|
+
export * from './select-content.component';
|
|
5
|
+
export * from './triggers/select-custom-trigger.component';
|
|
6
|
+
export * from './triggers/select-trigger.component';
|
|
7
|
+
export * from './triggers/select-searchable-trigger.component';
|
|
8
|
+
export * from './select-content-loading.component';
|
|
9
|
+
export * from './select-required.validator';
|
|
10
|
+
export * from './select.module';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GaOptgroupComponent {
|
|
3
|
+
readonly label: import("@angular/core").InputSignal<string | undefined>;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GaOptgroupComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GaOptgroupComponent, "ga-optgroup", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CdkOption } from '@angular/cdk/listbox';
|
|
2
|
+
import { DoCheck } from '@angular/core';
|
|
3
|
+
import { GaSelectComponent } from './select.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/cdk/listbox";
|
|
6
|
+
export declare class GaOptionComponent<InputType = any> implements DoCheck {
|
|
7
|
+
private readonly _isSelected;
|
|
8
|
+
private readonly _isActive;
|
|
9
|
+
protected readonly selectComponent: GaSelectComponent;
|
|
10
|
+
readonly cdkOption: CdkOption<any>;
|
|
11
|
+
readonly value: import("@angular/core").InputSignal<InputType | null>;
|
|
12
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
13
|
+
readonly withInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
14
|
+
readonly selected: import("@angular/core").Signal<boolean>;
|
|
15
|
+
readonly active: import("@angular/core").Signal<boolean>;
|
|
16
|
+
ngDoCheck(): void;
|
|
17
|
+
onClick(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GaOptionComponent<any>, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GaOptionComponent<any>, "ga-option", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "withInput": { "alias": "withInput"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.CdkOption; inputs: { "cdkOption": "value"; "cdkOptionDisabled": "disabled"; "cdkOptionTypeaheadLabel": "typeaheadLabel"; }; outputs: {}; }]>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GaSelectContentLoadingComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GaSelectContentLoadingComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GaSelectContentLoadingComponent, "ga-select-content-loading", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/cdk/listbox";
|
|
3
|
+
export declare class GaSelectContentComponent {
|
|
4
|
+
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GaSelectContentComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GaSelectContentComponent, "ga-select-content", never, { "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.CdkListbox; inputs: {}; outputs: {}; }]>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Provider } from '@angular/core';
|
|
2
|
+
import { RequiredValidator } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare const GA_SELECT_REQUIRED_VALIDATOR: Provider;
|
|
5
|
+
export declare class GaSelectRequiredValidator extends RequiredValidator {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GaSelectRequiredValidator, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GaSelectRequiredValidator, "ga-select[required][formControlName], ga-select[required][formControl], ga-select[required][ngModel]", never, {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GaSelectValueComponent {
|
|
3
|
+
private readonly selectComponent;
|
|
4
|
+
readonly optionViewValue: import("@angular/core").Signal<string | null>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GaSelectValueComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GaSelectValueComponent, "ga-select-value", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
2
|
+
import { GaIconData } from '../icon';
|
|
3
|
+
import { GaOptionComponent } from './option.component';
|
|
4
|
+
import { CdkListbox } from '@angular/cdk/listbox';
|
|
5
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class GaSelectComponent implements ControlValueAccessor {
|
|
8
|
+
private focusedTriggerElement;
|
|
9
|
+
private _onTouched?;
|
|
10
|
+
private _onModelChanged?;
|
|
11
|
+
protected readonly positions: ConnectedPosition[];
|
|
12
|
+
private readonly injector;
|
|
13
|
+
private readonly implicitInvalid;
|
|
14
|
+
private readonly _isOpen;
|
|
15
|
+
readonly value: import("@angular/core").ModelSignal<unknown>;
|
|
16
|
+
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
17
|
+
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
18
|
+
readonly invalidInput: import("@angular/core").InputSignalWithTransform<boolean | null, unknown>;
|
|
19
|
+
readonly multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
readonly compareWith: import("@angular/core").InputSignal<((o1: any, o2: any) => boolean) | undefined>;
|
|
21
|
+
readonly withoutAutoFocus: import("@angular/core").WritableSignal<boolean>;
|
|
22
|
+
readonly opened: import("@angular/core").OutputEmitterRef<void>;
|
|
23
|
+
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
24
|
+
readonly gaOptions: import("@angular/core").Signal<readonly GaOptionComponent<any>[]>;
|
|
25
|
+
protected readonly cdkListbox: import("@angular/core").Signal<CdkListbox<any>>;
|
|
26
|
+
protected readonly explicitTrigger: import("@angular/core").Signal<unknown>;
|
|
27
|
+
readonly isOpen: import("@angular/core").Signal<boolean>;
|
|
28
|
+
readonly disabled: import("@angular/core").WritableSignal<boolean>;
|
|
29
|
+
protected readonly icon: import("@angular/core").Signal<GaIconData>;
|
|
30
|
+
readonly selectedOptions: import("@angular/core").Signal<GaOptionComponent<any>[]>;
|
|
31
|
+
readonly activeDescendantId: import("@angular/core").Signal<string | undefined>;
|
|
32
|
+
readonly hasValue: import("@angular/core").Signal<boolean>;
|
|
33
|
+
readonly invalid: import("@angular/core").Signal<boolean>;
|
|
34
|
+
readonly listboxId: import("@angular/core").Signal<string>;
|
|
35
|
+
constructor();
|
|
36
|
+
ngAfterContentInit(): void;
|
|
37
|
+
ngDoCheck(): void;
|
|
38
|
+
writeValue(value: any): void;
|
|
39
|
+
registerOnChange(fn: any): void;
|
|
40
|
+
registerOnTouched(fn: any): void;
|
|
41
|
+
setDisabledState(disabled: boolean): void;
|
|
42
|
+
toggle(): void;
|
|
43
|
+
open(): Promise<void>;
|
|
44
|
+
close(): Promise<void>;
|
|
45
|
+
autoClose(): void;
|
|
46
|
+
focusListbox(): void;
|
|
47
|
+
setPreviousItemActive(): void;
|
|
48
|
+
setNextItemActive(): void;
|
|
49
|
+
setActiveItemAsSelected(): void;
|
|
50
|
+
protected onOverlayAttach(): void;
|
|
51
|
+
protected onOverlayDetach(): void;
|
|
52
|
+
private setItemActive;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GaSelectComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GaSelectComponent, "ga-select", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalidInput": { "alias": "invalid"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "opened": "opened"; "closed": "closed"; }, ["gaOptions", "cdkListbox", "explicitTrigger"], ["ga-select-custom-trigger, ga-select-trigger, ga-select-searchable-trigger", "ga-select-content"], true, never>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./select.component";
|
|
3
|
+
import * as i2 from "./option.component";
|
|
4
|
+
import * as i3 from "./opt-group.component";
|
|
5
|
+
import * as i4 from "./select-content.component";
|
|
6
|
+
import * as i5 from "./triggers/select-custom-trigger.component";
|
|
7
|
+
import * as i6 from "./triggers/select-trigger.component";
|
|
8
|
+
import * as i7 from "./triggers/select-searchable-trigger.component";
|
|
9
|
+
import * as i8 from "./select-content-loading.component";
|
|
10
|
+
import * as i9 from "./select-required.validator";
|
|
11
|
+
export declare class GaSelectModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GaSelectModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GaSelectModule, never, [typeof i1.GaSelectComponent, typeof i2.GaOptionComponent, typeof i3.GaOptgroupComponent, typeof i4.GaSelectContentComponent, typeof i5.GaSelectCustomTriggerComponent, typeof i6.GaSelectTriggerComponent, typeof i7.GaSelectComboboxTriggerComponent, typeof i8.GaSelectContentLoadingComponent, typeof i9.GaSelectRequiredValidator], [typeof i1.GaSelectComponent, typeof i2.GaOptionComponent, typeof i3.GaOptgroupComponent, typeof i4.GaSelectContentComponent, typeof i5.GaSelectCustomTriggerComponent, typeof i7.GaSelectComboboxTriggerComponent, typeof i6.GaSelectTriggerComponent, typeof i8.GaSelectContentLoadingComponent, typeof i9.GaSelectRequiredValidator]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GaSelectModule>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GaSelectCustomTriggerComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GaSelectCustomTriggerComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GaSelectCustomTriggerComponent, "ga-select-custom-trigger", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { GaIconData } from '../../icon';
|
|
3
|
+
import { GaSelectComponent } from '../select.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GaSelectComboboxTriggerComponent {
|
|
6
|
+
private readonly injector;
|
|
7
|
+
protected readonly selectComponent: GaSelectComponent;
|
|
8
|
+
protected readonly content: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
9
|
+
protected readonly inputSearch: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
10
|
+
protected readonly hasCustomLabel: import("@angular/core").WritableSignal<boolean>;
|
|
11
|
+
protected readonly menuStatusIcon: import("@angular/core").Signal<GaIconData>;
|
|
12
|
+
protected readonly textValue: import("@angular/core").ModelSignal<string>;
|
|
13
|
+
protected readonly leftIcon: import("@angular/core").InputSignal<GaIconData | undefined>;
|
|
14
|
+
constructor();
|
|
15
|
+
ngAfterViewInit(): void;
|
|
16
|
+
checkIfHasCustomLabel(): void;
|
|
17
|
+
toggle(): void;
|
|
18
|
+
open(): void;
|
|
19
|
+
onInputKeyDown(event: KeyboardEvent): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GaSelectComboboxTriggerComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GaSelectComboboxTriggerComponent, "ga-select-searchable-trigger", never, { "textValue": { "alias": "textValue"; "required": false; "isSignal": true; }; "leftIcon": { "alias": "leftIcon"; "required": false; "isSignal": true; }; }, { "textValue": "textValueChange"; }, never, ["*"], true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { GaIconData } from '../../icon';
|
|
3
|
+
import { GaSelectComponent } from '../select.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GaSelectTriggerComponent {
|
|
6
|
+
protected readonly selectComponent: GaSelectComponent;
|
|
7
|
+
protected readonly content: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
8
|
+
protected readonly hasCustomLabel: import("@angular/core").WritableSignal<boolean>;
|
|
9
|
+
protected readonly menuStatusIcon: import("@angular/core").Signal<GaIconData>;
|
|
10
|
+
protected readonly leftIcon: import("@angular/core").InputSignal<GaIconData | undefined>;
|
|
11
|
+
ngAfterViewInit(): void;
|
|
12
|
+
checkIfHasCustomLabel(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GaSelectTriggerComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GaSelectTriggerComponent, "ga-select-trigger", never, { "leftIcon": { "alias": "leftIcon"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
15
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
type
|
|
4
|
-
type
|
|
5
|
-
export type GaTooltipPlacement = `${
|
|
3
|
+
export type GaTooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
4
|
+
export type GaTooltipDirection = 'start' | 'end' | 'center';
|
|
5
|
+
export type GaTooltipPlacement = `${GaTooltipPosition}-${GaTooltipDirection}`;
|
|
6
6
|
export type GaTooltipControlMode = 'hover' | 'click' | 'none';
|
|
7
7
|
export declare class GaTooltipComponent {
|
|
8
8
|
private mouseLeaveSubject;
|
|
@@ -22,4 +22,3 @@ export declare class GaTooltipComponent {
|
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<GaTooltipComponent, never>;
|
|
23
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<GaTooltipComponent, "ga-tooltip", never, { "content": { "alias": "content"; "required": true; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; }, { "hideTriggered": "hideTriggered"; }, never, never, true, never>;
|
|
24
24
|
}
|
|
25
|
-
export {};
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -9,5 +9,6 @@ export * from './lib/input/index';
|
|
|
9
9
|
export * from './lib/form-field/index';
|
|
10
10
|
export * from './lib/menu/index';
|
|
11
11
|
export * from './lib/tooltip/index';
|
|
12
|
+
export * from './lib/select/index';
|
|
12
13
|
export * from './lib/spinner/index';
|
|
13
14
|
export * from './lib/radio/index';
|