ud-components 0.5.0 → 0.5.3
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,14 +1,18 @@
|
|
|
1
1
|
import { ModalInputType } from '../../enums/modal-input-type.enum';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class ModalComponent {
|
|
5
6
|
data: any;
|
|
7
|
+
private dialogRef;
|
|
6
8
|
protected form?: FormGroup;
|
|
7
9
|
protected modalInputType: typeof ModalInputType;
|
|
8
10
|
protected showClose: boolean;
|
|
9
11
|
protected pictureUrls?: string;
|
|
10
12
|
protected currentPictureIndex?: number;
|
|
11
|
-
constructor(data: any);
|
|
13
|
+
constructor(data: any, dialogRef: MatDialogRef<ModalComponent>);
|
|
14
|
+
close(): void;
|
|
15
|
+
onAction(): void;
|
|
12
16
|
previous(): void;
|
|
13
17
|
next(): void;
|
|
14
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 ToggleOptionComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
checked: boolean;
|
|
8
|
+
controlName?: string;
|
|
9
|
+
size: 'sm' | 'md' | 'lg';
|
|
10
|
+
get isSm(): boolean;
|
|
11
|
+
get isMd(): boolean;
|
|
12
|
+
get isLg(): boolean;
|
|
13
|
+
isDisabled: boolean;
|
|
14
|
+
private controlContainer;
|
|
15
|
+
private destroy$;
|
|
16
|
+
checkedChange: EventEmitter<boolean>;
|
|
17
|
+
toggle: EventEmitter<boolean>;
|
|
18
|
+
private _onChange;
|
|
19
|
+
private onTouched;
|
|
20
|
+
private get formControl();
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
onToggle(): void;
|
|
24
|
+
writeValue(value: boolean): void;
|
|
25
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
26
|
+
registerOnTouched(fn: () => void): void;
|
|
27
|
+
setDisabledState(isDisabled: boolean): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleOptionComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleOptionComponent, "ud-toggle-option", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "controlName": { "alias": "controlName"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "checkedChange": "checkedChange"; "toggle": "toggle"; }, never, never, true, never>;
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ud-components",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
+
"@angular/cdk": ">=19",
|
|
5
6
|
"@angular/common": ">=19",
|
|
6
7
|
"@angular/core": ">=19",
|
|
8
|
+
"@angular/material": ">=19",
|
|
7
9
|
"@ngrx/signals": ">=19"
|
|
8
10
|
},
|
|
9
11
|
"dependencies": {
|
|
@@ -19,6 +21,30 @@
|
|
|
19
21
|
".": {
|
|
20
22
|
"types": "./index.d.ts",
|
|
21
23
|
"default": "./fesm2022/ud-components.mjs"
|
|
24
|
+
},
|
|
25
|
+
"./enums/role.enum": {
|
|
26
|
+
"types": "./enums/role.enum.d.ts",
|
|
27
|
+
"default": "./enums/role.enum.js"
|
|
28
|
+
},
|
|
29
|
+
"./lib/kpi/kpi.enum": {
|
|
30
|
+
"types": "./lib/kpi/kpi.enum.d.ts",
|
|
31
|
+
"default": "./lib/kpi/kpi.enum.js"
|
|
32
|
+
},
|
|
33
|
+
"./lib/edit-view/edit-view-section.directive": {
|
|
34
|
+
"types": "./lib/edit-view/edit-view-section.directive.d.ts",
|
|
35
|
+
"default": "./lib/edit-view/edit-view-section.directive.js"
|
|
36
|
+
},
|
|
37
|
+
"./interfaces/page-request.interface": {
|
|
38
|
+
"types": "./interfaces/page-request.interface.d.ts",
|
|
39
|
+
"default": "./interfaces/page-request.interface.js"
|
|
40
|
+
},
|
|
41
|
+
"./interfaces/table.interface": {
|
|
42
|
+
"types": "./interfaces/table.interface.d.ts",
|
|
43
|
+
"default": "./interfaces/table.interface.js"
|
|
44
|
+
},
|
|
45
|
+
"./interfaces/table-display-column.interface": {
|
|
46
|
+
"types": "./interfaces/table-display-column.interface.d.ts",
|
|
47
|
+
"default": "./interfaces/table-display-column.interface.js"
|
|
22
48
|
}
|
|
23
49
|
}
|
|
24
|
-
}
|
|
50
|
+
}
|
package/public-api.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from './lib/button/button.component';
|
|
|
26
26
|
export * from './lib/button-toggle/button-toggle.component';
|
|
27
27
|
export * from './lib/preview-container/preview-container.component';
|
|
28
28
|
export * from './lib/toggle/toggle.component';
|
|
29
|
+
export * from './lib/toggle-option/toggle-option.component';
|
|
29
30
|
export * from './enums/feature-flag-key.enum';
|
|
30
31
|
export * from './enums/loading-status.enum';
|
|
31
32
|
export * from './enums/application-status.enum';
|