shirkasoft-ui-components 1.13.18 → 2.0.0
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/README.md +415 -42
- package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs +189 -100
- package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-button.mjs +367 -73
- package/fesm2022/shirkasoft-ui-components-button.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-chart.mjs +206 -142
- package/fesm2022/shirkasoft-ui-components-chart.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-config.mjs +976 -0
- package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs +307 -142
- package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-date-picker.mjs +1624 -1400
- package/fesm2022/shirkasoft-ui-components-date-picker.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-fieldset.mjs +347 -92
- package/fesm2022/shirkasoft-ui-components-fieldset.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-file-upload.mjs +484 -293
- package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-icons.mjs +1141 -0
- package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-knob.mjs +395 -180
- package/fesm2022/shirkasoft-ui-components-knob.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-loading.mjs +505 -128
- package/fesm2022/shirkasoft-ui-components-loading.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-modal.mjs +311 -303
- package/fesm2022/shirkasoft-ui-components-modal.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-notification.mjs +188 -142
- package/fesm2022/shirkasoft-ui-components-notification.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-price-input.mjs +517 -277
- package/fesm2022/shirkasoft-ui-components-price-input.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs +669 -289
- package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-select.mjs +1014 -814
- package/fesm2022/shirkasoft-ui-components-select.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-sidebar.mjs +508 -184
- package/fesm2022/shirkasoft-ui-components-sidebar.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-skeleton.mjs +197 -57
- package/fesm2022/shirkasoft-ui-components-skeleton.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-table.mjs +1918 -1676
- package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tabs.mjs +419 -177
- package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tag.mjs +177 -51
- package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-text-field.mjs +687 -369
- package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +466 -0
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-theme.mjs +147 -0
- package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-timeline.mjs +791 -215
- package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-toggle.mjs +205 -128
- package/fesm2022/shirkasoft-ui-components-toggle.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tooltip.mjs +244 -180
- package/fesm2022/shirkasoft-ui-components-tooltip.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-utils.mjs +97 -125
- package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-wizard.mjs +673 -166
- package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components.mjs +0 -9
- package/package.json +37 -7
- package/src/baseline.css +2472 -0
- package/src/theme.css +15 -543
- package/src/themes/ocean.css +56 -0
- package/src/themes/sunset.css +55 -0
- package/src/themes/violet.css +25 -0
- package/src/tokens.css +612 -0
- package/types/shirkasoft-ui-components-breadcrumb.d.ts +59 -44
- package/types/shirkasoft-ui-components-button.d.ts +142 -49
- package/types/shirkasoft-ui-components-chart.d.ts +59 -44
- package/types/shirkasoft-ui-components-config.d.ts +357 -0
- package/types/shirkasoft-ui-components-confirm-dialog.d.ts +107 -65
- package/types/shirkasoft-ui-components-date-picker.d.ts +527 -373
- package/types/shirkasoft-ui-components-fieldset.d.ts +135 -59
- package/types/shirkasoft-ui-components-file-upload.d.ts +176 -106
- package/types/shirkasoft-ui-components-icons.d.ts +1430 -0
- package/types/shirkasoft-ui-components-knob.d.ts +151 -64
- package/types/shirkasoft-ui-components-loading.d.ts +155 -64
- package/types/shirkasoft-ui-components-modal.d.ts +134 -132
- package/types/shirkasoft-ui-components-notification.d.ts +63 -58
- package/types/shirkasoft-ui-components-price-input.d.ts +198 -85
- package/types/shirkasoft-ui-components-rail-sidebar.d.ts +262 -142
- package/types/shirkasoft-ui-components-select.d.ts +301 -192
- package/types/shirkasoft-ui-components-sidebar.d.ts +198 -92
- package/types/shirkasoft-ui-components-skeleton.d.ts +68 -27
- package/types/shirkasoft-ui-components-table.d.ts +849 -649
- package/types/shirkasoft-ui-components-tabs.d.ts +102 -61
- package/types/shirkasoft-ui-components-tag.d.ts +54 -23
- package/types/shirkasoft-ui-components-text-field.d.ts +231 -111
- package/types/shirkasoft-ui-components-theme-picker.d.ts +117 -0
- package/types/shirkasoft-ui-components-theme.d.ts +80 -0
- package/types/shirkasoft-ui-components-timeline.d.ts +326 -150
- package/types/shirkasoft-ui-components-toggle.d.ts +76 -45
- package/types/shirkasoft-ui-components-tooltip.d.ts +64 -43
- package/types/shirkasoft-ui-components-utils.d.ts +26 -17
- package/types/shirkasoft-ui-components-wizard.d.ts +236 -86
- package/types/shirkasoft-ui-components.d.ts +1 -2
- package/fesm2022/shirkasoft-ui-components.mjs.map +0 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { OnDestroy, OnInit } from "@angular/core";
|
|
6
|
+
import { Observable } from "rxjs";
|
|
5
7
|
/**
|
|
6
8
|
* Shirkasoft UI Components.
|
|
7
9
|
* Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
|
|
@@ -9,28 +11,27 @@ import { Observable } from 'rxjs';
|
|
|
9
11
|
*/
|
|
10
12
|
/** A single breadcrumb entry with an optional navigation route. */
|
|
11
13
|
interface BreadcrumbItem {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
label: string;
|
|
15
|
+
route?: string;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* Global breadcrumb state. Components and pages write the current trail via
|
|
17
19
|
* `set()` and observatories read it through `breadcrumbs$`.
|
|
18
20
|
*/
|
|
19
|
-
declare class BreadcrumbService {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
export declare class BreadcrumbService {
|
|
22
|
+
/** Internal buffer holding the current breadcrumb trail. */
|
|
23
|
+
private breadcrumbsSubject;
|
|
24
|
+
/** Observable emitted with the latest breadcrumb trail. */
|
|
25
|
+
breadcrumbs$: Observable<BreadcrumbItem[]>;
|
|
26
|
+
/** Replaces the whole breadcrumb trail. */
|
|
27
|
+
set(items: BreadcrumbItem[]): void;
|
|
28
|
+
/** Empties the breadcrumb trail. */
|
|
29
|
+
clear(): void;
|
|
30
|
+
/** Returns the breadcrumb trail currently held (snapshot). */
|
|
31
|
+
getCurrent(): BreadcrumbItem[];
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbService, never>;
|
|
33
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
32
34
|
}
|
|
33
|
-
|
|
34
35
|
type BreadcrumbSeparator = 'chevron' | 'slash' | 'arrow';
|
|
35
36
|
/**
|
|
36
37
|
* Shirkasoft UI Components.
|
|
@@ -41,28 +42,42 @@ type BreadcrumbSeparator = 'chevron' | 'slash' | 'arrow';
|
|
|
41
42
|
* Navigation breadcrumb showing the current page hierarchy. Can be fed with
|
|
42
43
|
* static items or driven by the shared BreadcrumbService.
|
|
43
44
|
*/
|
|
44
|
-
declare class BreadcrumbComponent implements OnInit, OnDestroy {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
45
|
+
export declare class BreadcrumbComponent implements OnInit, OnDestroy {
|
|
46
|
+
private readonly breadcrumbService;
|
|
47
|
+
/** Static list of breadcrumb items. Takes precedence over the service items. */
|
|
48
|
+
items: import("@angular/core").InputSignal<BreadcrumbItem[]>;
|
|
49
|
+
/** Visual separator between items: 'chevron', 'slash' or 'arrow'. */
|
|
50
|
+
separator: import("@angular/core").InputSignal<BreadcrumbSeparator>;
|
|
51
|
+
/** When true, subscribes to the BreadcrumbService to resolve items. */
|
|
52
|
+
useService: import("@angular/core").InputSignal<boolean>;
|
|
53
|
+
/** Items received from the BreadcrumbService. */
|
|
54
|
+
protected serviceItems: import("@angular/core").WritableSignal<BreadcrumbItem[]>;
|
|
55
|
+
/** Final items: static `items` if provided, otherwise the service items. */
|
|
56
|
+
protected resolvedItems: import("@angular/core").Signal<BreadcrumbItem[]>;
|
|
57
|
+
/** Active subscription to the breadcrumb stream. */
|
|
58
|
+
private serviceSub;
|
|
59
|
+
constructor();
|
|
60
|
+
/** Subscribes to the BreadcrumbService when `useService` is enabled. */
|
|
61
|
+
ngOnInit(): void;
|
|
62
|
+
/** Unsubscribes from the breadcrumb stream to avoid leaks. */
|
|
63
|
+
ngOnDestroy(): void;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "shk-breadcrumb", never, {
|
|
66
|
+
"items": {
|
|
67
|
+
"alias": "items";
|
|
68
|
+
"required": false;
|
|
69
|
+
"isSignal": true;
|
|
70
|
+
};
|
|
71
|
+
"separator": {
|
|
72
|
+
"alias": "separator";
|
|
73
|
+
"required": false;
|
|
74
|
+
"isSignal": true;
|
|
75
|
+
};
|
|
76
|
+
"useService": {
|
|
77
|
+
"alias": "useService";
|
|
78
|
+
"required": false;
|
|
79
|
+
"isSignal": true;
|
|
80
|
+
};
|
|
81
|
+
}, {}, never, never, true, never>;
|
|
65
82
|
}
|
|
66
|
-
|
|
67
|
-
export { BreadcrumbComponent, BreadcrumbService };
|
|
68
|
-
export type { BreadcrumbItem, BreadcrumbSeparator };
|
|
83
|
+
export type { BreadcrumbItem, BreadcrumbSeparator };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import { getIcon } from "shirkasoft-ui-components/utils";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
4
6
|
type ButtonSeverity = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'help' | 'contrast';
|
|
5
7
|
type ButtonSize = 'small' | 'large';
|
|
6
8
|
type ButtonIconPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
@@ -10,50 +12,141 @@ type ButtonIconPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
|
10
12
|
* Belongs to Shirkasoft.
|
|
11
13
|
*/
|
|
12
14
|
/** Generic button with icon, severity variants, loading state and sizes. */
|
|
13
|
-
declare class ButtonComponent {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
15
|
+
export declare class ButtonComponent {
|
|
16
|
+
/** Text shown inside the button. */
|
|
17
|
+
label: import("@angular/core").InputSignal<string>;
|
|
18
|
+
/** Optional leading icon: registered name (e.g. `'plus'`) or `IconNode` data. */
|
|
19
|
+
icon: import("@angular/core").InputSignal<any>;
|
|
20
|
+
/** Position of the icon relative to the label. */
|
|
21
|
+
iconPos: import("@angular/core").InputSignal<ButtonIconPosition>;
|
|
22
|
+
/** Color variant. Defaults to 'primary'. */
|
|
23
|
+
severity: import("@angular/core").InputSignal<ButtonSeverity>;
|
|
24
|
+
/** Transparent background with a colored border. */
|
|
25
|
+
outlined: import("@angular/core").InputSignal<boolean>;
|
|
26
|
+
/** Borderless button with a colored label. */
|
|
27
|
+
text: import("@angular/core").InputSignal<boolean>;
|
|
28
|
+
/** Adds a soft shadow. */
|
|
29
|
+
raised: import("@angular/core").InputSignal<boolean>;
|
|
30
|
+
/** Fully rounded corners (pill). */
|
|
31
|
+
rounded: import("@angular/core").InputSignal<boolean>;
|
|
32
|
+
/** Size variant. */
|
|
33
|
+
size: import("@angular/core").InputSignal<ButtonSize | undefined>;
|
|
34
|
+
/** Disables the button. */
|
|
35
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
36
|
+
/** Shows a spinner and disables the button. */
|
|
37
|
+
loading: import("@angular/core").InputSignal<boolean>;
|
|
38
|
+
/** Icon shown while loading. Defaults to 'refresh'. */
|
|
39
|
+
loadingIcon: import("@angular/core").InputSignal<string>;
|
|
40
|
+
/** Optional text shown instead of the label while loading. */
|
|
41
|
+
loadingText: import("@angular/core").InputSignal<string>;
|
|
42
|
+
/** Native button type. */
|
|
43
|
+
type: import("@angular/core").InputSignal<"button" | "submit" | "reset">;
|
|
44
|
+
/** Accessible label when the button is icon-only. */
|
|
45
|
+
ariaLabel: import("@angular/core").InputSignal<string>;
|
|
46
|
+
/** Native title tooltip. */
|
|
47
|
+
title: import("@angular/core").InputSignal<string>;
|
|
48
|
+
/** Inline styles applied to the button. */
|
|
49
|
+
style: import("@angular/core").InputSignal<Record<string, string | number>>;
|
|
50
|
+
/** Extra CSS classes. */
|
|
51
|
+
styleClass: import("@angular/core").InputSignal<string>;
|
|
52
|
+
/** Emitted on click with the original MouseEvent. */
|
|
53
|
+
onClick: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
54
|
+
protected getIcon: typeof getIcon;
|
|
55
|
+
protected iconOnly: import("@angular/core").Signal<boolean>;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "shk-button", never, {
|
|
58
|
+
"label": {
|
|
59
|
+
"alias": "label";
|
|
60
|
+
"required": false;
|
|
61
|
+
"isSignal": true;
|
|
62
|
+
};
|
|
63
|
+
"icon": {
|
|
64
|
+
"alias": "icon";
|
|
65
|
+
"required": false;
|
|
66
|
+
"isSignal": true;
|
|
67
|
+
};
|
|
68
|
+
"iconPos": {
|
|
69
|
+
"alias": "iconPos";
|
|
70
|
+
"required": false;
|
|
71
|
+
"isSignal": true;
|
|
72
|
+
};
|
|
73
|
+
"severity": {
|
|
74
|
+
"alias": "severity";
|
|
75
|
+
"required": false;
|
|
76
|
+
"isSignal": true;
|
|
77
|
+
};
|
|
78
|
+
"outlined": {
|
|
79
|
+
"alias": "outlined";
|
|
80
|
+
"required": false;
|
|
81
|
+
"isSignal": true;
|
|
82
|
+
};
|
|
83
|
+
"text": {
|
|
84
|
+
"alias": "text";
|
|
85
|
+
"required": false;
|
|
86
|
+
"isSignal": true;
|
|
87
|
+
};
|
|
88
|
+
"raised": {
|
|
89
|
+
"alias": "raised";
|
|
90
|
+
"required": false;
|
|
91
|
+
"isSignal": true;
|
|
92
|
+
};
|
|
93
|
+
"rounded": {
|
|
94
|
+
"alias": "rounded";
|
|
95
|
+
"required": false;
|
|
96
|
+
"isSignal": true;
|
|
97
|
+
};
|
|
98
|
+
"size": {
|
|
99
|
+
"alias": "size";
|
|
100
|
+
"required": false;
|
|
101
|
+
"isSignal": true;
|
|
102
|
+
};
|
|
103
|
+
"disabled": {
|
|
104
|
+
"alias": "disabled";
|
|
105
|
+
"required": false;
|
|
106
|
+
"isSignal": true;
|
|
107
|
+
};
|
|
108
|
+
"loading": {
|
|
109
|
+
"alias": "loading";
|
|
110
|
+
"required": false;
|
|
111
|
+
"isSignal": true;
|
|
112
|
+
};
|
|
113
|
+
"loadingIcon": {
|
|
114
|
+
"alias": "loadingIcon";
|
|
115
|
+
"required": false;
|
|
116
|
+
"isSignal": true;
|
|
117
|
+
};
|
|
118
|
+
"loadingText": {
|
|
119
|
+
"alias": "loadingText";
|
|
120
|
+
"required": false;
|
|
121
|
+
"isSignal": true;
|
|
122
|
+
};
|
|
123
|
+
"type": {
|
|
124
|
+
"alias": "type";
|
|
125
|
+
"required": false;
|
|
126
|
+
"isSignal": true;
|
|
127
|
+
};
|
|
128
|
+
"ariaLabel": {
|
|
129
|
+
"alias": "ariaLabel";
|
|
130
|
+
"required": false;
|
|
131
|
+
"isSignal": true;
|
|
132
|
+
};
|
|
133
|
+
"title": {
|
|
134
|
+
"alias": "title";
|
|
135
|
+
"required": false;
|
|
136
|
+
"isSignal": true;
|
|
137
|
+
};
|
|
138
|
+
"style": {
|
|
139
|
+
"alias": "style";
|
|
140
|
+
"required": false;
|
|
141
|
+
"isSignal": true;
|
|
142
|
+
};
|
|
143
|
+
"styleClass": {
|
|
144
|
+
"alias": "styleClass";
|
|
145
|
+
"required": false;
|
|
146
|
+
"isSignal": true;
|
|
147
|
+
};
|
|
148
|
+
}, {
|
|
149
|
+
"onClick": "onClick";
|
|
150
|
+
}, never, ["*"], true, never>;
|
|
56
151
|
}
|
|
57
|
-
|
|
58
|
-
export { ButtonComponent };
|
|
59
|
-
export type { ButtonIconPosition, ButtonSeverity, ButtonSize };
|
|
152
|
+
export type { ButtonIconPosition, ButtonSeverity, ButtonSize };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { AfterViewInit, OnDestroy } from "@angular/core";
|
|
4
6
|
/**
|
|
5
7
|
* Shirkasoft UI Components.
|
|
6
8
|
* Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
|
|
@@ -10,56 +12,69 @@ import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
|
10
12
|
* Chart.js wrapper that renders line, bar, pie, doughnut or polarArea charts
|
|
11
13
|
* and updates them reactively as the inputs change.
|
|
12
14
|
*/
|
|
13
|
-
declare class ChartComponent implements AfterViewInit, OnDestroy {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
15
|
+
export declare class ChartComponent implements AfterViewInit, OnDestroy {
|
|
16
|
+
/** Guarantees Chart.js plugins are only registered once. */
|
|
17
|
+
private static registered;
|
|
18
|
+
/** Type of chart to render. */
|
|
19
|
+
type: import("@angular/core").InputSignal<"line" | "bar" | "pie" | "doughnut" | "polarArea">;
|
|
20
|
+
/** Chart.js datasets payload. */
|
|
21
|
+
data: import("@angular/core").InputSignal<any>;
|
|
22
|
+
/** Chart.js options object. */
|
|
23
|
+
options: import("@angular/core").InputSignal<any>;
|
|
24
|
+
/** Reference to the inner canvas element. */
|
|
25
|
+
private canvasRef;
|
|
26
|
+
/** Live Chart.js instance. */
|
|
27
|
+
private chartInstance;
|
|
28
|
+
/** Whether the view has been initialized yet. */
|
|
29
|
+
private initialized;
|
|
30
|
+
constructor();
|
|
31
|
+
/** Creates the initial chart once the canvas is available. */
|
|
32
|
+
ngAfterViewInit(): void;
|
|
33
|
+
/** Destroys the Chart.js instance. */
|
|
34
|
+
ngOnDestroy(): void;
|
|
35
|
+
/** Clears the canvas by reassigning its width. */
|
|
36
|
+
private resetCanvas;
|
|
37
|
+
/** Creates a new Chart.js instance on the canvas. */
|
|
38
|
+
private initChart;
|
|
39
|
+
/** Deep clones a value to detach it from Angular's reactive objects. */
|
|
40
|
+
private deepClone;
|
|
41
|
+
/** Applies the new data/options, rebuilding the chart when the type changes. */
|
|
42
|
+
private updateChart;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "shk-chart", never, {
|
|
45
|
+
"type": {
|
|
46
|
+
"alias": "type";
|
|
47
|
+
"required": false;
|
|
48
|
+
"isSignal": true;
|
|
49
|
+
};
|
|
50
|
+
"data": {
|
|
51
|
+
"alias": "data";
|
|
52
|
+
"required": false;
|
|
53
|
+
"isSignal": true;
|
|
54
|
+
};
|
|
55
|
+
"options": {
|
|
56
|
+
"alias": "options";
|
|
57
|
+
"required": false;
|
|
58
|
+
"isSignal": true;
|
|
59
|
+
};
|
|
60
|
+
}, {}, never, never, true, never>;
|
|
43
61
|
}
|
|
44
|
-
|
|
45
62
|
/**
|
|
46
63
|
* Shirkasoft UI Components.
|
|
47
64
|
* Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
|
|
48
65
|
* Belongs to Shirkasoft.
|
|
49
66
|
*/
|
|
50
67
|
/** Default dataset colors used by the ChartComponent when no palette is provided. */
|
|
51
|
-
declare const COLOR_PALETTE: {
|
|
52
|
-
|
|
53
|
-
|
|
68
|
+
export declare const COLOR_PALETTE: {
|
|
69
|
+
bg: string;
|
|
70
|
+
border: string;
|
|
54
71
|
}[];
|
|
55
72
|
/**
|
|
56
73
|
* Reads the current `--shk-*` CSS variables from the document and returns
|
|
57
74
|
* the text, muted and border colors used by charts to follow the active theme.
|
|
58
75
|
*/
|
|
59
|
-
declare function readThemeColors(): {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
export { COLOR_PALETTE, ChartComponent, readThemeColors };
|
|
76
|
+
export declare function readThemeColors(): {
|
|
77
|
+
text: string;
|
|
78
|
+
muted: string;
|
|
79
|
+
border: string;
|
|
80
|
+
};
|