codexly-ui 0.1.24 → 0.2.1
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/codexly-ui-charts.mjs +190 -0
- package/fesm2022/codexly-ui-charts.mjs.map +1 -0
- package/fesm2022/codexly-ui.mjs +12034 -12212
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +27 -2
- package/types/codexly-ui-charts.d.ts +36 -0
- package/types/codexly-ui.d.ts +1885 -1916
package/package.json
CHANGED
|
@@ -1,13 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codexly-ui",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Standalone, signal-based Angular UI component library for Codexly, styled with Tailwind CSS.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"angular",
|
|
7
|
+
"angular-library",
|
|
8
|
+
"ui-components",
|
|
9
|
+
"component-library",
|
|
10
|
+
"tailwindcss",
|
|
11
|
+
"standalone-components",
|
|
12
|
+
"signals"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://gitlab.com/codexly/codexly-library.git"
|
|
17
|
+
},
|
|
18
|
+
"license": "UNLICENSED",
|
|
4
19
|
"peerDependencies": {
|
|
5
20
|
"@angular/common": "^21.0.0",
|
|
6
21
|
"@angular/core": "^21.0.0",
|
|
7
22
|
"@angular/router": "^21.0.0",
|
|
8
23
|
"@angular/forms": "^21.0.0",
|
|
9
24
|
"@angular/cdk": "^21.0.0",
|
|
10
|
-
"rxjs": "^7.0.0"
|
|
25
|
+
"rxjs": "^7.0.0",
|
|
26
|
+
"chart.js": "^4.5.1"
|
|
27
|
+
},
|
|
28
|
+
"peerDependenciesMeta": {
|
|
29
|
+
"chart.js": {
|
|
30
|
+
"optional": true
|
|
31
|
+
}
|
|
11
32
|
},
|
|
12
33
|
"dependencies": {
|
|
13
34
|
"tslib": "^2.3.0"
|
|
@@ -23,6 +44,10 @@
|
|
|
23
44
|
".": {
|
|
24
45
|
"types": "./types/codexly-ui.d.ts",
|
|
25
46
|
"default": "./fesm2022/codexly-ui.mjs"
|
|
47
|
+
},
|
|
48
|
+
"./charts": {
|
|
49
|
+
"types": "./types/codexly-ui-charts.d.ts",
|
|
50
|
+
"default": "./fesm2022/codexly-ui-charts.mjs"
|
|
26
51
|
}
|
|
27
52
|
},
|
|
28
53
|
"module": "fesm2022/codexly-ui.mjs",
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as node_modules_chart_js_dist_types_utils from 'node_modules/chart.js/dist/types/utils';
|
|
2
|
+
import * as chart_js from 'chart.js';
|
|
3
|
+
import { ChartType, ChartData, ChartOptions } from 'chart.js';
|
|
4
|
+
import * as _angular_core from '@angular/core';
|
|
5
|
+
import { AfterViewInit, OnDestroy, ElementRef } from '@angular/core';
|
|
6
|
+
|
|
7
|
+
type ClxChartType = Extract<ChartType, 'line' | 'bar' | 'pie' | 'doughnut' | 'radar' | 'polarArea'>;
|
|
8
|
+
interface ClxChartOptions {
|
|
9
|
+
type: ClxChartType;
|
|
10
|
+
data: ChartData;
|
|
11
|
+
options?: ChartOptions;
|
|
12
|
+
height?: number | string;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class ClxChartComponent implements AfterViewInit, OnDestroy {
|
|
18
|
+
canvasRef: ElementRef<HTMLCanvasElement>;
|
|
19
|
+
type: _angular_core.InputSignal<ClxChartType>;
|
|
20
|
+
data: _angular_core.InputSignal<ChartData<keyof chart_js.ChartTypeRegistry, (number | [number, number] | chart_js.Point | chart_js.BubbleDataPoint | null)[], unknown>>;
|
|
21
|
+
options: _angular_core.InputSignal<node_modules_chart_js_dist_types_utils._DeepPartialObject<chart_js.CoreChartOptions<keyof chart_js.ChartTypeRegistry> & chart_js.ElementChartOptions<keyof chart_js.ChartTypeRegistry> & chart_js.PluginChartOptions<keyof chart_js.ChartTypeRegistry> & chart_js.DatasetChartOptions<keyof chart_js.ChartTypeRegistry> & chart_js.ScaleChartOptions<keyof chart_js.ChartTypeRegistry>>>;
|
|
22
|
+
height: _angular_core.InputSignal<string | number>;
|
|
23
|
+
ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
24
|
+
loading: _angular_core.InputSignal<boolean>;
|
|
25
|
+
private _chart?;
|
|
26
|
+
private _injector;
|
|
27
|
+
_hostHeight: _angular_core.Signal<string | number>;
|
|
28
|
+
ngAfterViewInit(): void;
|
|
29
|
+
private _createChart;
|
|
30
|
+
ngOnDestroy(): void;
|
|
31
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClxChartComponent, never>;
|
|
32
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxChartComponent, "clx-chart", never, { "type": { "alias": "type"; "required": true; "isSignal": true; }; "data": { "alias": "data"; "required": true; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { ClxChartComponent };
|
|
36
|
+
export type { ClxChartOptions, ClxChartType };
|