ud-components 0.7.2 → 0.7.5
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.
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CheckboxComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
|
5
|
+
/** Key of the control inside the parent FormGroup (alternative to ngModel/formControl) */
|
|
6
|
+
controlName?: string;
|
|
7
|
+
size: 'sm' | 'md' | 'lg';
|
|
8
|
+
label?: string;
|
|
9
|
+
labelPosition: 'left' | 'right';
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
/** Shows a dash instead of a tick, e.g. a "select all" when only some rows are selected. Cleared by a click. */
|
|
12
|
+
indeterminate: boolean;
|
|
13
|
+
/** For use without a form, e.g. bound to a SelectionModel. A form control's value wins when there is one. */
|
|
14
|
+
set checked(value: boolean);
|
|
15
|
+
set disabled(value: boolean);
|
|
16
|
+
get isSm(): boolean;
|
|
17
|
+
get isMd(): boolean;
|
|
18
|
+
get isLg(): boolean;
|
|
19
|
+
isChecked: boolean;
|
|
20
|
+
isDisabled: boolean;
|
|
21
|
+
private controlContainer;
|
|
22
|
+
private destroy$;
|
|
23
|
+
onChange: EventEmitter<boolean>;
|
|
24
|
+
private _onChange;
|
|
25
|
+
private onTouched;
|
|
26
|
+
private get formControl();
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
toggle(): void;
|
|
30
|
+
writeValue(value: boolean): void;
|
|
31
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
32
|
+
registerOnTouched(fn: () => void): void;
|
|
33
|
+
setDisabledState(isDisabled: boolean): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "ud-checkbox", never, { "controlName": { "alias": "controlName"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
|
|
36
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './lib/carousel/carousel.component';
|
|
2
|
+
export * from './lib/checkbox/checkbox.component';
|
|
2
3
|
export * from './lib/custom-input/custom-input.component';
|
|
3
4
|
export * from './lib/custom-snackbar/custom-snackbar.component';
|
|
4
5
|
export * from './lib/custom-table/custom-table.component';
|