@thalassic/ui 0.19.0 → 22.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/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thalassic/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "22.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@angular/cdk": "^
|
|
7
|
-
"@angular/common": "^
|
|
8
|
-
"@angular/core": "^
|
|
6
|
+
"@angular/cdk": "^22.0.0",
|
|
7
|
+
"@angular/common": "^22.0.0",
|
|
8
|
+
"@angular/core": "^22.0.0",
|
|
9
9
|
"chart.js": "^4.0.0"
|
|
10
10
|
},
|
|
11
11
|
"peerDependenciesMeta": {
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"default": "./fesm2022/thalassic-ui-charts.mjs"
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
+
"type": "module",
|
|
39
40
|
"dependencies": {
|
|
40
41
|
"tslib": "^2.3.0"
|
|
41
42
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as node_modules_chart_js_dist_types_utils from 'node_modules/chart.js/dist/types/utils';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { InputSignalWithTransform, OnDestroy, Signal, ElementRef, InjectionToken, EnvironmentProviders } from '@angular/core';
|
|
4
1
|
import * as chart_js from 'chart.js';
|
|
5
2
|
import { ChartType, ChartDatasetCustomTypesPerDataset, ChartDataset, ChartOptions } from 'chart.js';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { InputSignalWithTransform, OnDestroy, Signal, ElementRef, InputSignal, InjectionToken, EnvironmentProviders } from '@angular/core';
|
|
6
5
|
|
|
7
6
|
declare abstract class ChartElement<T extends ChartType = ChartType> {
|
|
8
7
|
abstract readonly type: T;
|
|
@@ -18,8 +17,8 @@ declare class Chart implements OnDestroy {
|
|
|
18
17
|
protected canvasRef: Signal<ElementRef<HTMLCanvasElement> | undefined>;
|
|
19
18
|
protected chartElements: Signal<readonly ChartElement<keyof chart_js.ChartTypeRegistry>[]>;
|
|
20
19
|
private _chart;
|
|
21
|
-
labels:
|
|
22
|
-
options:
|
|
20
|
+
labels: InputSignal<unknown[]>;
|
|
21
|
+
options: InputSignal<ChartOptions | undefined>;
|
|
23
22
|
private _options;
|
|
24
23
|
private _datasets;
|
|
25
24
|
protected hostClasses: Signal<string[]>;
|
package/types/thalassic-ui.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { ModelSignal, InputSignal, WritableSignal, Signal, InputSignalWithTransform, TemplateRef, InjectionToken, ElementRef, OnInit, OutputEmitterRef, TrackByFunction, OnDestroy, EnvironmentProviders } from '@angular/core';
|
|
3
|
-
import { FormUiControl, WithOptionalFieldTree, ValidationError, FormValueControl, FormCheckboxControl,
|
|
3
|
+
import { FormUiControl, WithOptionalFieldTree, ValidationError, FormValueControl, FormCheckboxControl, ReadonlyFieldTree } from '@angular/forms/signals';
|
|
4
4
|
import { Day } from 'date-fns';
|
|
5
5
|
import { Point } from '@thalassic/core';
|
|
6
6
|
import { FlexibleConnectedPositionStrategyOrigin, ConnectedPosition } from '@angular/cdk/overlay';
|
|
@@ -12,7 +12,7 @@ import { SafeHtml } from '@angular/platform-browser';
|
|
|
12
12
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
13
13
|
import { DataSource } from '@angular/cdk/table';
|
|
14
14
|
|
|
15
|
-
declare abstract class FormControl implements FormUiControl {
|
|
15
|
+
declare abstract class FormControl<TValue = unknown> implements FormUiControl<TValue> {
|
|
16
16
|
readonly touched: ModelSignal<boolean>;
|
|
17
17
|
readonly name: InputSignal<string>;
|
|
18
18
|
/**
|
|
@@ -67,17 +67,17 @@ declare abstract class FormControl implements FormUiControl {
|
|
|
67
67
|
protected notInteractive: Signal<boolean>;
|
|
68
68
|
protected controlClasses: Signal<string[]>;
|
|
69
69
|
protected baseControlClasses(): string[];
|
|
70
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormControl
|
|
71
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControl
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormControl<any>, never>;
|
|
71
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControl<any>, never, never, { "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; "ariaDescribedby": { "alias": "ariaDescribedby"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "pending": { "alias": "pending"; "required": false; "isSignal": true; }; "dirty": { "alias": "dirty"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, { "touched": "touchedChange"; }, never, never, true, never>;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
declare abstract class ValueFormControl<T> extends FormControl implements FormValueControl<T> {
|
|
74
|
+
declare abstract class ValueFormControl<T> extends FormControl<T> implements FormValueControl<T> {
|
|
75
75
|
abstract readonly value: ModelSignal<T>;
|
|
76
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<ValueFormControl<any>, never>;
|
|
77
77
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ValueFormControl<any>, never, never, {}, {}, never, never, true, never>;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
declare abstract class CheckboxFormControl extends FormControl implements FormCheckboxControl {
|
|
80
|
+
declare abstract class CheckboxFormControl extends FormControl<boolean> implements FormCheckboxControl {
|
|
81
81
|
abstract readonly checked: ModelSignal<boolean>;
|
|
82
82
|
protected controlClasses: i0.Signal<string[]>;
|
|
83
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxFormControl, never>;
|
|
@@ -692,7 +692,7 @@ declare const DEFAULT_FORM_CONTROL_GROUP_CONFIG: FormControlGroupConfig;
|
|
|
692
692
|
|
|
693
693
|
declare const FORM_CONTROL_GROUP_CONFIG: InjectionToken<FormControlGroupConfig>;
|
|
694
694
|
|
|
695
|
-
type ErrorMessageFn = (fieldTree?:
|
|
695
|
+
type ErrorMessageFn = (fieldTree?: ReadonlyFieldTree<unknown>) => string;
|
|
696
696
|
type ErrorMessageMap = Record<string, ErrorMessageFn>;
|
|
697
697
|
|
|
698
698
|
interface FormItemConfig {
|
|
@@ -1156,11 +1156,13 @@ interface TextareaConfig {
|
|
|
1156
1156
|
fluid: boolean;
|
|
1157
1157
|
rows: number;
|
|
1158
1158
|
resize: textareaResize;
|
|
1159
|
+
autosize: boolean;
|
|
1160
|
+
maxRows: number;
|
|
1159
1161
|
}
|
|
1160
1162
|
declare const DEFAULT_TEXTAREA_CONFIG: TextareaConfig;
|
|
1161
1163
|
|
|
1162
1164
|
declare class Textarea extends ValueFormControl<string> {
|
|
1163
|
-
private _config;
|
|
1165
|
+
private readonly _config;
|
|
1164
1166
|
readonly supportsLabelFor = true;
|
|
1165
1167
|
readonly value: ModelSignal<string>;
|
|
1166
1168
|
readonly placeholder: InputSignal<string>;
|
|
@@ -1168,10 +1170,13 @@ declare class Textarea extends ValueFormControl<string> {
|
|
|
1168
1170
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
1169
1171
|
readonly rows: InputSignalWithTransform<number, unknown>;
|
|
1170
1172
|
readonly resize: InputSignal<textareaResize>;
|
|
1173
|
+
readonly autosize: InputSignalWithTransform<boolean, unknown>;
|
|
1174
|
+
readonly maxRows: InputSignalWithTransform<number, unknown>;
|
|
1171
1175
|
protected readonly classes: Signal<string[]>;
|
|
1176
|
+
protected readonly effectiveResize: Signal<textareaResize>;
|
|
1172
1177
|
protected onInput(event: Event): void;
|
|
1173
1178
|
static ɵfac: i0.ɵɵFactoryDeclaration<Textarea, never>;
|
|
1174
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Textarea, "tls-textarea", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "resize": { "alias": "resize"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
1179
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Textarea, "tls-textarea", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "resize": { "alias": "resize"; "required": false; "isSignal": true; }; "autosize": { "alias": "autosize"; "required": false; "isSignal": true; }; "maxRows": { "alias": "maxRows"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
1175
1180
|
}
|
|
1176
1181
|
|
|
1177
1182
|
declare const TEXTAREA_CONFIG: InjectionToken<TextareaConfig>;
|