ud-components 0.3.13 → 0.3.15
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/ud-components.mjs +244 -6
- package/fesm2022/ud-components.mjs.map +1 -1
- package/lib/ionic/ion-pill-toggle/ion-pill-toggle.component.d.ts +19 -0
- package/lib/ionic/ion-select/ion-select.component.d.ts +21 -0
- package/lib/ionic/ion-text-input/ion-text-input.component.d.ts +19 -0
- package/lib/ionic/ion-textarea/ion-textarea.component.d.ts +15 -0
- package/lib/ionic/ion-toggle/ion-toggle.component.d.ts +19 -0
- package/lib/kpi/kpi.component.d.ts +7 -2
- package/lib/kpi/kpi.enum.d.ts +9 -1
- package/lib/kpi/kpi.interface.d.ts +4 -0
- package/package.json +9 -1
- package/public-api.d.ts +5 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface IonPillToggleOption {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class IonPillToggleComponent implements OnChanges {
|
|
9
|
+
controlName: string;
|
|
10
|
+
label: string;
|
|
11
|
+
options: IonPillToggleOption[];
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
private controlContainer;
|
|
14
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
15
|
+
get control(): FormControl;
|
|
16
|
+
onSegmentChange(event: CustomEvent): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonPillToggleComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IonPillToggleComponent, "ud-ion-pill-toggle", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface UdIonSelectOption {
|
|
5
|
+
value: any;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class IonSelectComponent implements OnChanges {
|
|
9
|
+
controlName: string;
|
|
10
|
+
label: string;
|
|
11
|
+
options: UdIonSelectOption[];
|
|
12
|
+
multiple: boolean;
|
|
13
|
+
placeholder: string;
|
|
14
|
+
loading: boolean;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
private controlContainer;
|
|
17
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
18
|
+
get control(): FormControl;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonSelectComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IonSelectComponent, "ud-ion-select", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class IonTextInputComponent implements OnChanges {
|
|
5
|
+
controlName: string;
|
|
6
|
+
label: string;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
type: 'text' | 'email' | 'password' | 'number';
|
|
9
|
+
loading: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
step: number;
|
|
12
|
+
private controlContainer;
|
|
13
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
+
get control(): FormControl;
|
|
15
|
+
increment(): void;
|
|
16
|
+
decrement(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonTextInputComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IonTextInputComponent, "ud-ion-text-input", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "step": { "alias": "step"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class IonTextareaComponent implements OnChanges {
|
|
5
|
+
controlName: string;
|
|
6
|
+
label: string;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
rows: number;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
private controlContainer;
|
|
11
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
+
get control(): FormControl;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonTextareaComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IonTextareaComponent, "ud-ion-textarea", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class IonToggleComponent implements OnInit, OnChanges, OnDestroy {
|
|
5
|
+
controlName: string;
|
|
6
|
+
label: string;
|
|
7
|
+
labelPosition: 'start' | 'end';
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
ionChange: EventEmitter<boolean>;
|
|
10
|
+
private controlContainer;
|
|
11
|
+
private destroy$;
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
get control(): FormControl;
|
|
16
|
+
onToggleChange(event: CustomEvent): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonToggleComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IonToggleComponent, "ud-ion-toggle", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "ionChange": "ionChange"; }, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconColor, KpiDataType, KpiProgressBarType } from './kpi.enum';
|
|
1
|
+
import { IconColor, KpiDataType, KpiProgressBarType, KpiVariant } from './kpi.enum';
|
|
2
2
|
import { KpiData, PillData, ProgressBarData, TextData } from './kpi.interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class KpiComponent {
|
|
@@ -9,12 +9,17 @@ export declare class KpiComponent {
|
|
|
9
9
|
icon: string;
|
|
10
10
|
iconColor: IconColor;
|
|
11
11
|
titleRef?: string;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
variant: KpiVariant;
|
|
12
14
|
getProgressData(): ProgressBarData;
|
|
13
15
|
getProgressBarValue(): number;
|
|
14
16
|
getPillData(): PillData;
|
|
15
17
|
getTextData(): TextData;
|
|
18
|
+
getTrendIcon(trendValue: number): string;
|
|
19
|
+
getTrendColor(trendValue: number): string;
|
|
16
20
|
protected readonly KpiDataType: typeof KpiDataType;
|
|
17
21
|
protected readonly KpiProgressBarType: typeof KpiProgressBarType;
|
|
22
|
+
protected readonly KpiVariant: typeof KpiVariant;
|
|
18
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<KpiComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KpiComponent, "ud-kpi", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "dataType": { "alias": "dataType"; "required": false; }; "data": { "alias": "data"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "titleRef": { "alias": "titleRef"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KpiComponent, "ud-kpi", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "dataType": { "alias": "dataType"; "required": false; }; "data": { "alias": "data"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "titleRef": { "alias": "titleRef"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
20
25
|
}
|
package/lib/kpi/kpi.enum.d.ts
CHANGED
|
@@ -13,10 +13,18 @@ export declare enum KpiPillType {
|
|
|
13
13
|
DANGER = "danger",
|
|
14
14
|
INFO = "info"
|
|
15
15
|
}
|
|
16
|
+
export declare enum KpiVariant {
|
|
17
|
+
ICON_BADGE = "icon-badge",// colored gradient icon badge, white card
|
|
18
|
+
TOP_BAR = "top-bar",// thin colored top border, icon badge
|
|
19
|
+
FILLED_TOP = "filled-top",// tinted header strip, white content body
|
|
20
|
+
DARK_CARD = "dark-card",// full navy card, inverted palette
|
|
21
|
+
MINIMAL = "minimal"
|
|
22
|
+
}
|
|
16
23
|
export declare enum IconColor {
|
|
17
24
|
PURPLE = "purple",
|
|
18
25
|
AMBER = "amber",
|
|
19
26
|
GREEN = "green",
|
|
20
27
|
BLUE = "blue",
|
|
21
|
-
RED = "red"
|
|
28
|
+
RED = "red",
|
|
29
|
+
NAVY = "navy"
|
|
22
30
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ud-components",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.15",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^19.2.0",
|
|
6
6
|
"@angular/core": "^19.2.0"
|
|
7
7
|
},
|
|
8
|
+
"peerDependenciesMeta": {
|
|
9
|
+
"@ionic/angular": {
|
|
10
|
+
"optional": true
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"optionalDependencies": {
|
|
14
|
+
"@ionic/angular": "^8.0.0"
|
|
15
|
+
},
|
|
8
16
|
"dependencies": {
|
|
9
17
|
"tslib": "^2.3.0"
|
|
10
18
|
},
|
package/public-api.d.ts
CHANGED
|
@@ -24,6 +24,11 @@ export * from './lib/form-fields/textarea/textarea.component';
|
|
|
24
24
|
export * from './lib/form-fields/phone-input/phone-input.component';
|
|
25
25
|
export * from './lib/button/button.component';
|
|
26
26
|
export * from './lib/toggle/toggle.component';
|
|
27
|
+
export * from './lib/ionic/ion-text-input/ion-text-input.component';
|
|
28
|
+
export * from './lib/ionic/ion-select/ion-select.component';
|
|
29
|
+
export * from './lib/ionic/ion-textarea/ion-textarea.component';
|
|
30
|
+
export * from './lib/ionic/ion-toggle/ion-toggle.component';
|
|
31
|
+
export * from './lib/ionic/ion-pill-toggle/ion-pill-toggle.component';
|
|
27
32
|
export * from './enums/application-status.enum';
|
|
28
33
|
export * from './enums/custom-table.enum';
|
|
29
34
|
export * from './enums/modal-input-type.enum';
|