@litigiovirtual/ius-design-components 1.0.73 → 1.0.75
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/esm2022/lib/button-dynamic/button-dynamic.component.mjs +1 -1
- package/esm2022/lib/charts-bar-grouped/charts-bar-grouped.component.mjs +234 -0
- package/esm2022/lib/charts-bar-grouped/index.mjs +2 -0
- package/esm2022/lib/charts-donut/charts-donut.component.mjs +3 -3
- package/esm2022/lib/input-select/input-select.component.mjs +11 -3
- package/esm2022/lib/input-textfield/input-textfield.component.mjs +11 -3
- package/esm2022/lib/search-bar/search-bar.component.mjs +11 -3
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/litigiovirtual-ius-design-components.mjs +264 -10
- package/fesm2022/litigiovirtual-ius-design-components.mjs.map +1 -1
- package/lib/button-dynamic/button-dynamic.component.d.ts +1 -1
- package/lib/charts-bar-grouped/charts-bar-grouped.component.d.ts +94 -0
- package/lib/charts-bar-grouped/index.d.ts +1 -0
- package/lib/input-select/input-select.component.d.ts +2 -0
- package/lib/input-textfield/input-textfield.component.d.ts +2 -0
- package/lib/search-bar/search-bar.component.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
type ButtonResult = 'success' | 'error' | undefined;
|
|
3
|
+
export type ButtonResult = 'success' | 'error' | undefined;
|
|
4
4
|
type ButtonState = 'default' | 'loading' | 'success' | 'error' | 'disabled';
|
|
5
5
|
export declare class ButtonDynamicComponent implements OnChanges, OnDestroy {
|
|
6
6
|
labelDefault: string;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, ElementRef, AfterViewInit, OnDestroy, NgZone } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type BarSeriesItem = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
};
|
|
8
|
+
export type BarGroup = {
|
|
9
|
+
label: string;
|
|
10
|
+
items: BarSeriesItem[];
|
|
11
|
+
};
|
|
12
|
+
type SeriesColorMap = Record<string, string>;
|
|
13
|
+
type BarRect = {
|
|
14
|
+
groupLabel: string;
|
|
15
|
+
seriesLabel: string;
|
|
16
|
+
value: number;
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
color: string;
|
|
22
|
+
};
|
|
23
|
+
type BarStripe = {
|
|
24
|
+
x: number;
|
|
25
|
+
width: number;
|
|
26
|
+
};
|
|
27
|
+
export declare class IusChartsBarGroupedComponent implements OnChanges, AfterViewInit, OnDestroy {
|
|
28
|
+
private zone;
|
|
29
|
+
data: BarGroup[];
|
|
30
|
+
legendPosition: 'right' | 'bottom';
|
|
31
|
+
seriesOrder?: string[];
|
|
32
|
+
margin: {
|
|
33
|
+
top: number;
|
|
34
|
+
right: number;
|
|
35
|
+
bottom: number;
|
|
36
|
+
left: number;
|
|
37
|
+
};
|
|
38
|
+
barWidth: number;
|
|
39
|
+
barGap: number;
|
|
40
|
+
groupGap: number;
|
|
41
|
+
outerGap: number;
|
|
42
|
+
barRadius: number;
|
|
43
|
+
yMax?: number;
|
|
44
|
+
ticks: number;
|
|
45
|
+
width: number;
|
|
46
|
+
size: number;
|
|
47
|
+
maxLabelChars: number;
|
|
48
|
+
barClick: EventEmitter<{
|
|
49
|
+
group: string;
|
|
50
|
+
series: string;
|
|
51
|
+
value: number;
|
|
52
|
+
}>;
|
|
53
|
+
panesRef: ElementRef<HTMLElement>;
|
|
54
|
+
plotCtn: ElementRef<HTMLElement>;
|
|
55
|
+
private ro?;
|
|
56
|
+
private _bars;
|
|
57
|
+
private _groups;
|
|
58
|
+
private _series;
|
|
59
|
+
private _colors;
|
|
60
|
+
private _yMax;
|
|
61
|
+
private _paneH;
|
|
62
|
+
private _plotW;
|
|
63
|
+
private _plotWidth;
|
|
64
|
+
private _groupCenters;
|
|
65
|
+
private _barStripes;
|
|
66
|
+
readonly bars: import("@angular/core").Signal<BarRect[]>;
|
|
67
|
+
readonly groups: import("@angular/core").Signal<string[]>;
|
|
68
|
+
readonly series: import("@angular/core").Signal<string[]>;
|
|
69
|
+
readonly colors: import("@angular/core").Signal<SeriesColorMap>;
|
|
70
|
+
readonly yScaleMax: import("@angular/core").Signal<number>;
|
|
71
|
+
readonly chartHeight: import("@angular/core").Signal<number>;
|
|
72
|
+
readonly plotWidth: import("@angular/core").Signal<number>;
|
|
73
|
+
readonly groupCenters: import("@angular/core").Signal<number[]>;
|
|
74
|
+
readonly barStripes: import("@angular/core").Signal<BarStripe[]>;
|
|
75
|
+
readonly innerHeight: import("@angular/core").Signal<number>;
|
|
76
|
+
readonly axisViewBox: import("@angular/core").Signal<string>;
|
|
77
|
+
readonly plotViewBox: import("@angular/core").Signal<string>;
|
|
78
|
+
readonly Math: Math;
|
|
79
|
+
constructor(zone: NgZone);
|
|
80
|
+
ngAfterViewInit(): void;
|
|
81
|
+
ngOnDestroy(): void;
|
|
82
|
+
ngOnChanges(): void;
|
|
83
|
+
private measureNow;
|
|
84
|
+
private recalc;
|
|
85
|
+
private niceMax;
|
|
86
|
+
getY(value: number): number;
|
|
87
|
+
get yTicksArr(): number[];
|
|
88
|
+
shortLabel(lbl: string): string;
|
|
89
|
+
formatTooltip(b: BarRect): string;
|
|
90
|
+
onBarClick(b: BarRect): void;
|
|
91
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IusChartsBarGroupedComponent, never>;
|
|
92
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IusChartsBarGroupedComponent, "ius-charts-bar-grouped", never, { "data": { "alias": "data"; "required": false; }; "legendPosition": { "alias": "legendPosition"; "required": false; }; "seriesOrder": { "alias": "seriesOrder"; "required": false; }; "maxLabelChars": { "alias": "maxLabelChars"; "required": false; }; }, { "barClick": "barClick"; }, never, never, true, never>;
|
|
93
|
+
}
|
|
94
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './charts-bar-grouped.component';
|
|
@@ -25,6 +25,8 @@ export declare class InputSelectComponent {
|
|
|
25
25
|
onKeyPress(event: KeyboardEvent): void;
|
|
26
26
|
addText(): void;
|
|
27
27
|
onSelectOption(): void;
|
|
28
|
+
onDropBlock(event: DragEvent): void;
|
|
29
|
+
onDragOverBlock(event: DragEvent): void;
|
|
28
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectComponent, never>;
|
|
29
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputSelectComponent, "ius-input-select", never, { "componentId": { "alias": "componentId"; "required": true; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showHelpText": { "alias": "showHelpText"; "required": false; }; "labelSuperior": { "alias": "labelSuperior"; "required": false; }; "labelInferior": { "alias": "labelInferior"; "required": false; }; "labelInput": { "alias": "labelInput"; "required": false; }; "iconInput": { "alias": "iconInput"; "required": false; }; "textInput": { "alias": "textInput"; "required": false; }; }, { "onChangesValueEvent": "onChangesValueEvent"; "onAddText": "onAddText"; }, never, ["*"], true, never>;
|
|
30
32
|
}
|
|
@@ -23,6 +23,8 @@ export declare class InputTextfieldComponent {
|
|
|
23
23
|
onBlur(): void;
|
|
24
24
|
onKeyPress(event: KeyboardEvent): void;
|
|
25
25
|
addText(): void;
|
|
26
|
+
onDropBlock(event: DragEvent): void;
|
|
27
|
+
onDragOverBlock(event: DragEvent): void;
|
|
26
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputTextfieldComponent, never>;
|
|
27
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputTextfieldComponent, "ius-input-textfield", never, { "textInput": { "alias": "textInput"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "isEnableClearText": { "alias": "isEnableClearText"; "required": false; }; "showHelpText": { "alias": "showHelpText"; "required": false; }; "labelSuperior": { "alias": "labelSuperior"; "required": false; }; "labelInferior": { "alias": "labelInferior"; "required": false; }; "labelInput": { "alias": "labelInput"; "required": false; }; "iconInput": { "alias": "iconInput"; "required": false; }; "inputType": { "alias": "inputType"; "required": false; }; "initialText": { "alias": "initialText"; "required": false; }; }, { "onChangesValueEvent": "onChangesValueEvent"; "onAddText": "onAddText"; }, never, never, true, never>;
|
|
28
30
|
}
|
|
@@ -15,6 +15,8 @@ export declare class SearchBarComponent {
|
|
|
15
15
|
performSearch(event: any): void;
|
|
16
16
|
onInput(): void;
|
|
17
17
|
clearSearch(): void;
|
|
18
|
+
onDropBlock(event: DragEvent): void;
|
|
19
|
+
onDragOverBlock(event: DragEvent): void;
|
|
18
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<SearchBarComponent, never>;
|
|
19
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<SearchBarComponent, "ius-search-bar", never, { "labelInput": { "alias": "labelInput"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "initialText": { "alias": "initialText"; "required": false; }; "showSearchIcon": { "alias": "showSearchIcon"; "required": false; }; }, { "onChangesValueEvent": "onChangesValueEvent"; "enterSearchEvent": "enterSearchEvent"; }, never, never, true, never>;
|
|
20
22
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED