@crowdfarming/oliva-ds 1.12.0 → 1.13.0-rc.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.
|
@@ -1,29 +1,39 @@
|
|
|
1
1
|
import { ControlValueAccessor } from '@angular/forms';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
export type CheckboxState = 'checked' | 'unchecked' | 'undetermined';
|
|
3
4
|
export declare class CheckboxComponent implements ControlValueAccessor {
|
|
4
5
|
label: import("@angular/core").InputSignal<string>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
disabled: import("@angular/core").InputSignal<boolean>;
|
|
8
|
-
error: import("@angular/core").InputSignal<boolean>;
|
|
6
|
+
state: import("@angular/core").InputSignal<CheckboxState>;
|
|
7
|
+
errorActive: import("@angular/core").InputSignal<boolean>;
|
|
9
8
|
skeletonActive: import("@angular/core").InputSignal<boolean>;
|
|
10
|
-
|
|
9
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
name: import("@angular/core").InputSignal<string>;
|
|
11
|
+
value: import("@angular/core").InputSignal<string>;
|
|
11
12
|
innerHTML: import("@angular/core").InputSignal<string>;
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
ariaLabel: import("@angular/core").InputSignal<string>;
|
|
14
|
+
changed: import("@angular/core").OutputEmitterRef<{
|
|
15
|
+
checked: boolean;
|
|
16
|
+
value: string;
|
|
17
|
+
}>;
|
|
14
18
|
private _internalChecked;
|
|
19
|
+
private _internalIndeterminate;
|
|
15
20
|
private onChangeFn;
|
|
16
21
|
private onTouchedFn;
|
|
17
22
|
isChecked: import("@angular/core").Signal<boolean>;
|
|
23
|
+
isIndeterminate: import("@angular/core").Signal<boolean>;
|
|
24
|
+
isDisabled: import("@angular/core").Signal<boolean>;
|
|
25
|
+
isSkeleton: import("@angular/core").Signal<boolean>;
|
|
26
|
+
isError: import("@angular/core").Signal<boolean>;
|
|
18
27
|
constructor();
|
|
19
|
-
|
|
20
|
-
registerOnChange(fn: any): void;
|
|
21
|
-
registerOnTouched(fn: any): void;
|
|
22
|
-
handleChange(event: Event): void;
|
|
23
|
-
onBlur(): void;
|
|
28
|
+
computedAriaLabel: import("@angular/core").Signal<string>;
|
|
24
29
|
ariaChecked: import("@angular/core").Signal<string>;
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
handleChange(event: Event): void;
|
|
31
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
32
|
+
writeValue(value: any): void;
|
|
33
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
34
|
+
registerOnTouched(fn: () => void): void;
|
|
35
|
+
classes: import("@angular/core").Signal<string>;
|
|
36
|
+
inputClasses: import("@angular/core").Signal<string>;
|
|
27
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "lib-checkbox", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "lib-checkbox", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "errorActive": { "alias": "errorActive"; "required": false; "isSignal": true; }; "skeletonActive": { "alias": "skeletonActive"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "innerHTML": { "alias": "innerHTML"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "changed": "changed"; }, never, never, true, never>;
|
|
29
39
|
}
|
|
@@ -1,26 +1,32 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export interface CheckboxOption {
|
|
4
3
|
label: string;
|
|
5
4
|
value: string;
|
|
6
5
|
disabled?: boolean;
|
|
7
6
|
checked?: boolean;
|
|
8
|
-
required?: boolean;
|
|
9
7
|
}
|
|
10
8
|
export declare class CheckboxGroupComponent {
|
|
11
|
-
legend: string
|
|
12
|
-
parentLabel: string
|
|
13
|
-
name: string
|
|
14
|
-
helperText: string
|
|
15
|
-
options: CheckboxOption[]
|
|
16
|
-
skeletonActive: boolean
|
|
9
|
+
legend: import("@angular/core").InputSignal<string>;
|
|
10
|
+
parentLabel: import("@angular/core").InputSignal<string>;
|
|
11
|
+
name: import("@angular/core").InputSignal<string>;
|
|
12
|
+
helperText: import("@angular/core").InputSignal<string>;
|
|
13
|
+
options: import("@angular/core").InputSignal<CheckboxOption[]>;
|
|
14
|
+
skeletonActive: import("@angular/core").InputSignal<boolean>;
|
|
15
|
+
required: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
selectedChange: import("@angular/core").OutputEmitterRef<string[]>;
|
|
17
|
+
private optionsSignal;
|
|
18
|
+
constructor();
|
|
17
19
|
get selected(): string[];
|
|
18
|
-
selectedChange: EventEmitter<string[]>;
|
|
19
20
|
get parentChecked(): boolean;
|
|
20
21
|
get parentIndeterminate(): boolean;
|
|
22
|
+
get parentState(): 'checked' | 'unchecked' | 'undetermined';
|
|
21
23
|
onParentClick(): void;
|
|
22
|
-
onChildChange(value: string,
|
|
24
|
+
onChildChange(value: string, event: {
|
|
25
|
+
checked: boolean;
|
|
26
|
+
value: string;
|
|
27
|
+
}): void;
|
|
23
28
|
trackByValue(_idx: number, opt: CheckboxOption): string;
|
|
29
|
+
getOptions(): CheckboxOption[];
|
|
24
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxGroupComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxGroupComponent, "lib-checkbox-group", never, { "legend": { "alias": "legend"; "required": false; }; "parentLabel": { "alias": "parentLabel"; "required": false; }; "name": { "alias": "name"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "options": { "alias": "options"; "required": false; }; "skeletonActive": { "alias": "skeletonActive"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxGroupComponent, "lib-checkbox-group", never, { "legend": { "alias": "legend"; "required": false; "isSignal": true; }; "parentLabel": { "alias": "parentLabel"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "skeletonActive": { "alias": "skeletonActive"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
26
32
|
}
|