@ardium-ui/ui 5.0.0-alpha.100 → 5.0.0-alpha.102
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/ardium-ui-ui.mjs +128 -77
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/_internal/utils/context-to-inputs.d.ts +2 -0
- package/lib/_internal/utils/date.utils.d.ts +2 -0
- package/lib/breakpoints/breakpoint.utils.d.ts +5 -5
- package/lib/checkbox/checkbox.component.d.ts +2 -0
- package/lib/checkbox/checkbox.defaults.d.ts +3 -1
- package/lib/checkbox/checkbox.types.d.ts +3 -0
- package/lib/grid/grid.component.d.ts +4 -0
- package/lib/grid/grid.utils.d.ts +12 -3
- package/lib/slider/range-slider/range-slider.component.d.ts +1 -1
- package/lib/stack/stack.component.d.ts +1 -0
- package/lib/types/utility.types.d.ts +4 -0
- package/package.json +2 -2
- package/prebuilt-themes/default/inputs/date-input.css +4 -0
- package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
- package/themes/default/inputs/date-input.scss +4 -0
|
@@ -17,3 +17,5 @@ export declare function getDateComponents(date: Date | null, UTC: boolean): {
|
|
|
17
17
|
month: number | null;
|
|
18
18
|
date: number | null;
|
|
19
19
|
};
|
|
20
|
+
export declare function startOfDay(date: Date, UTC?: boolean): Date;
|
|
21
|
+
export declare function endOfDay(date: Date, UTC?: boolean): Date;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ArdGridSize } from '../grid';
|
|
2
2
|
import { ArdBreakpointsConfig } from './breakpoints';
|
|
3
|
-
export declare function parseNumberOrBreakpointConfig(value: number | string | ArdBreakpointsConfig<number>, breakpoints: string[]): Required<ArdBreakpointsConfig<number>>;
|
|
4
|
-
export declare function parseSizeOrBreakpointConfig(value: number | ArdGridSize | string | ArdBreakpointsConfig<number | ArdGridSize>, breakpoints: string[]): Required<ArdBreakpointsConfig<number | ArdGridSize>>;
|
|
5
|
-
export declare function parseBooleanOrBreakpointConfig(value: boolean | string | ArdBreakpointsConfig<boolean>, breakpoints: string[]): Required<ArdBreakpointsConfig<boolean>>;
|
|
6
|
-
export declare function parseCSSUnitOrBreakpointConfig(value: null | number | string | ArdBreakpointsConfig<string | number>, breakpoints: string[]): Required<ArdBreakpointsConfig<string>> | null;
|
|
7
|
-
export declare function parseEnumOrBreakpointConfig<T>(value: T | string | ArdBreakpointsConfig<T>, breakpoints: string[], isEnumValue: (val: any) => val is T): Required<ArdBreakpointsConfig<T>>;
|
|
3
|
+
export declare function parseNumberOrBreakpointConfig(value: number | string | ArdBreakpointsConfig<number>, breakpoints: string[], componentId: string): Required<ArdBreakpointsConfig<number>>;
|
|
4
|
+
export declare function parseSizeOrBreakpointConfig(value: number | ArdGridSize | string | ArdBreakpointsConfig<number | ArdGridSize>, breakpoints: string[], componentId: string): Required<ArdBreakpointsConfig<number | ArdGridSize>>;
|
|
5
|
+
export declare function parseBooleanOrBreakpointConfig(value: boolean | string | ArdBreakpointsConfig<boolean>, breakpoints: string[], componentId: string): Required<ArdBreakpointsConfig<boolean>>;
|
|
6
|
+
export declare function parseCSSUnitOrBreakpointConfig(value: null | number | string | ArdBreakpointsConfig<string | number>, breakpoints: string[], componentId: string): Required<ArdBreakpointsConfig<string>> | null;
|
|
7
|
+
export declare function parseEnumOrBreakpointConfig<T>(value: T | string | ArdBreakpointsConfig<T>, breakpoints: string[], componentId: string, isEnumValue: (val: any) => val is T): Required<ArdBreakpointsConfig<T>>;
|
|
@@ -23,9 +23,11 @@ export declare class ArdiumCheckboxComponent extends _BooleanComponentBase imple
|
|
|
23
23
|
readonly Selected: "selected";
|
|
24
24
|
};
|
|
25
25
|
toggleState(): void;
|
|
26
|
+
readonly checkboxIconComponent: import("@angular/core").Type<import("./checkbox.types").ArdCheckboxIcon> | undefined;
|
|
26
27
|
readonly templateRepository: import("@angular/core").Signal<_CheckboxTemplateRepositoryDirective | undefined>;
|
|
27
28
|
readonly checkboxTemplate: import("@angular/core").Signal<ArdCheckboxTemplateDirective | undefined>;
|
|
28
29
|
readonly checkboxTemplateContext: import("@angular/core").Signal<CheckboxTemplateContext>;
|
|
30
|
+
readonly checkboxIconInputs: import("@angular/core").Signal<Partial<import("./checkbox.types").ArdCheckboxIcon>>;
|
|
29
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumCheckboxComponent, never>;
|
|
30
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumCheckboxComponent, "ard-checkbox", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "unselectedColor": { "alias": "unselectedColor"; "required": false; "isSignal": true; }; "internalState": { "alias": "state"; "required": false; "isSignal": true; }; }, { "internalState": "stateChange"; }, ["templateRepository", "checkboxTemplate"], never, false, never>;
|
|
31
33
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { InjectionToken, Provider } from '@angular/core';
|
|
1
|
+
import { InjectionToken, Provider, Type } from '@angular/core';
|
|
2
2
|
import { _BooleanComponentDefaults } from '../_internal/boolean-component';
|
|
3
3
|
import { SimpleComponentColor } from './../types/colors.types';
|
|
4
|
+
import { ArdCheckboxIcon } from './checkbox.types';
|
|
4
5
|
export interface ArdCheckboxDefaults extends _BooleanComponentDefaults {
|
|
5
6
|
color: SimpleComponentColor;
|
|
6
7
|
unselectedColor: SimpleComponentColor;
|
|
8
|
+
CheckboxIconComponent?: Type<ArdCheckboxIcon>;
|
|
7
9
|
}
|
|
8
10
|
export declare const ARD_CHECKBOX_DEFAULTS: InjectionToken<ArdCheckboxDefaults>;
|
|
9
11
|
export declare function provideCheckboxDefaults(config: Partial<ArdCheckboxDefaults>): Provider;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TemplateComponent } from '../types/utility.types';
|
|
1
2
|
export declare const CheckboxState: {
|
|
2
3
|
readonly Unselected: "unselected";
|
|
3
4
|
readonly Indeterminate: "indeterminate";
|
|
@@ -11,3 +12,5 @@ export interface CheckboxTemplateContext {
|
|
|
11
12
|
state: CheckboxState;
|
|
12
13
|
internalState: CheckboxState;
|
|
13
14
|
}
|
|
15
|
+
export interface ArdCheckboxIcon extends TemplateComponent<CheckboxTemplateContext> {
|
|
16
|
+
}
|
|
@@ -4,6 +4,7 @@ import { ArdBreakpointsConfig } from '../breakpoints/breakpoints';
|
|
|
4
4
|
import { ArdGridAlign, ArdGridJustify, ArdGridSize, ArdGridWrap } from './grid.types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ArdiumGridComponent implements AfterContentInit, OnChanges {
|
|
7
|
+
private readonly _componentId;
|
|
7
8
|
protected readonly _DEFAULTS: import("./grid.defaults").ArdGridDefaults;
|
|
8
9
|
private readonly _breakpointService;
|
|
9
10
|
constructor();
|
|
@@ -50,6 +51,9 @@ export declare class ArdiumGridComponent implements AfterContentInit, OnChanges
|
|
|
50
51
|
readonly currentColumnSpacing: import("@angular/core").Signal<string | number | undefined>;
|
|
51
52
|
readonly currentRowSpacing: import("@angular/core").Signal<string | number | undefined>;
|
|
52
53
|
readonly currentWrap: import("@angular/core").Signal<ArdGridWrap | undefined>;
|
|
54
|
+
readonly currentInheritedColumns: import("@angular/core").Signal<number | undefined>;
|
|
55
|
+
readonly currentInheritedColumnSpacing: import("@angular/core").Signal<string | number | undefined>;
|
|
56
|
+
readonly currentInheritedRowSpacing: import("@angular/core").Signal<string | number | undefined>;
|
|
53
57
|
readonly currentStyle: import("@angular/core").Signal<string>;
|
|
54
58
|
readonly children: import("@angular/core").Signal<readonly ArdiumGridComponent[]>;
|
|
55
59
|
ngOnChanges(changes: SimpleChanges): void;
|
package/lib/grid/grid.utils.d.ts
CHANGED
|
@@ -4,8 +4,17 @@ import { ArdBreakpointsConfig } from './../breakpoints/breakpoints';
|
|
|
4
4
|
*
|
|
5
5
|
* - `number`: same value is applied to all breakpoints.
|
|
6
6
|
* - `string`: either a single number or a space-separated breakpoint list
|
|
7
|
-
* like `"
|
|
7
|
+
* like `"xs:1 sm:2 md:3 lg:4 xl:5"`.
|
|
8
8
|
* - `ArdBreakpointsConfig`: missing breakpoints are filled based on smaller ones.
|
|
9
9
|
*/
|
|
10
|
-
export declare function transformResponsiveValue<T
|
|
11
|
-
|
|
10
|
+
export declare function transformResponsiveValue<T>(v: T | string | ArdBreakpointsConfig<T>, breakpoints: string[], componentId: string, parseValue: (val: string) => T | undefined): Required<ArdBreakpointsConfig<T>>;
|
|
11
|
+
/**
|
|
12
|
+
* Normalizes various responsive value representations into a full {@link ArdBreakpointsConfig}.
|
|
13
|
+
*
|
|
14
|
+
* - `number`: same value is applied to all breakpoints.
|
|
15
|
+
* - `string`: either a single number or a space-separated breakpoint list
|
|
16
|
+
* like `"xs:1 sm:2 md:3 lg:4 xl:5"`.
|
|
17
|
+
* - `ArdBreakpointsConfig`: missing breakpoints are filled based on smaller ones.
|
|
18
|
+
*/
|
|
19
|
+
export declare function transformResponsiveValue<T, R extends T>(v: T | string | ArdBreakpointsConfig<T>, breakpoints: string[], componentId: string, parseValue: (val: string) => R | undefined, parseToR: (val: T) => R): Required<ArdBreakpointsConfig<R>>;
|
|
20
|
+
export declare function fillInMissingBreakpoints<T>(config: Partial<ArdBreakpointsConfig<T>>, breakpoints: string[], componentId: string): Required<ArdBreakpointsConfig<T>>;
|
|
@@ -29,7 +29,7 @@ export declare class ArdiumRangeSliderComponent extends _AbstractSlider<SliderRa
|
|
|
29
29
|
onPointerMove(event: MouseEvent | TouchEvent): void;
|
|
30
30
|
protected _percentValueToValue(percent: number, handleId: number): SliderRange;
|
|
31
31
|
protected readonly _handlePositions: import("@angular/core").Signal<[number, number]>;
|
|
32
|
-
readonly currentHandle: import("@angular/core").WritableSignal<
|
|
32
|
+
readonly currentHandle: import("@angular/core").WritableSignal<1 | 2 | null>;
|
|
33
33
|
onHandleFocus(event: FocusEvent, handleId: 1 | 2): void;
|
|
34
34
|
onBlur(event: FocusEvent): void;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumRangeSliderComponent, never>;
|
|
@@ -2,6 +2,7 @@ import { ArdBreakpointsConfig } from '../breakpoints/breakpoints';
|
|
|
2
2
|
import { ArdGridAlign, ArdGridDirection, ArdGridJustify, ArdGridWrap } from '../grid';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ArdiumStackComponent {
|
|
5
|
+
private readonly _componentId;
|
|
5
6
|
protected readonly _DEFAULTS: import("./stack.defaults").ArdStackDefaults;
|
|
6
7
|
private readonly _breakpointService;
|
|
7
8
|
readonly direction: import("@angular/core").InputSignalWithTransform<Required<ArdBreakpointsConfig<ArdGridDirection>>, string | ArdBreakpointsConfig<ArdGridDirection>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InputSignal } from "@angular/core";
|
|
1
2
|
export declare const ClickStrategy: {
|
|
2
3
|
readonly Noop: "noop";
|
|
3
4
|
readonly Default: "default";
|
|
@@ -10,3 +11,6 @@ export type ClickStrategy = (typeof ClickStrategy)[keyof typeof ClickStrategy];
|
|
|
10
11
|
*/
|
|
11
12
|
export type NonEmptyArray<T> = [T, ...T[]];
|
|
12
13
|
export type Nullable<T> = T | undefined | null;
|
|
14
|
+
export type TemplateComponent<T> = {
|
|
15
|
+
[key in keyof T]?: InputSignal<T[key]>;
|
|
16
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ardium-ui/ui",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.102",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=18.0.0",
|
|
6
6
|
"@angular/core": ">=18.0.0",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"more-rounding": "^4.2.2",
|
|
14
14
|
"resolve-object-path": "^2.0.0",
|
|
15
15
|
"lodash": "^4.17.23",
|
|
16
|
-
"@ardium-ui/devkit": "8.
|
|
16
|
+
"@ardium-ui/devkit": "8.3.0",
|
|
17
17
|
"simple-bool": "^3.0.1",
|
|
18
18
|
"take-chance": "^4.3.2",
|
|
19
19
|
"color": "^4.2.3"
|
|
@@ -126,6 +126,10 @@
|
|
|
126
126
|
box-sizing: border-box;
|
|
127
127
|
width: 100%;
|
|
128
128
|
height: 100%;
|
|
129
|
+
padding: 0;
|
|
130
|
+
margin: 0;
|
|
131
|
+
font: inherit;
|
|
132
|
+
letter-spacing: inherit;
|
|
129
133
|
}
|
|
130
134
|
ard-date-input .ard-date-input .ard-date-input__value,
|
|
131
135
|
ard-date-range-input .ard-date-range-input .ard-date-input__value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../../../projects/ui/src/themes/default/inputs/_shared.scss","../../../../../projects/ui/src/themes/default/inputs/date-input.scss"],"names":[],"mappings":"AAEA;AAAA;AAAA;ACCA;EAGE;IAGE;IAGA;IACA;IACA;IAWA;IAGA;;EAGF;AAAA;AAAA;IDJA,QCQI;IDPJ;IACA;IACA;IACA;IACA;IACA,KCII;IDHJ;IACA;IACA,WCEI;IDDJ,aCGI;IDFJ,aCII;IDHJ,cCOI;IDNJ,eCII;IDHJ,aCEI;IDDJ,gBCGI;IDFJ,OCQI;IAKF;IACA;;EDZF;AAAA;AAAA;IACE;IACA;IACA;IACA;IACA;IACA;;EAEA;AAAA;AAAA;IACE;IACA;IACA;IACA;;EAEF;AAAA;AAAA;IACE;IACA,SCRA;IDSA,OCVA;IDWA;IACA;IACA;IACA;IACA;IACA;;EAGF;AAAA;AAAA;IACE;IACA;IACA;IACA;IACA;IACA;;EAIJ;AAAA;AAAA;IACE,QC9CE;ID+CF,WC5CE;ID6CF,aC3CE;ID4CF,cCnCE;IDoCF,eCtCE;IDuCF,aCxCE;IDyCF,gBCvCE;;ED0CJ;AAAA;AAAA;IACE,QCtCE;;EDwCF;AAAA;AAAA;IACE,QCzCA;;EAKF;AAAA;AAAA;IACE;;EAEF;AAAA;AAAA;IACE;IACA;;EAEF;AAAA;AAAA;IACE;IACA;IACA;;EAEA;AAAA;AAAA;IACE;IACA;IACA;;EAGF;AAAA;AAAA;IACE;IACA;IACA;;EAGJ;AAAA;AAAA;IACE;IACA;IACA;;EAKF;IACE;IACA;;EAGJ;IACE;IACA;IACA","file":"date-input.css"}
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../../../projects/ui/src/themes/default/inputs/_shared.scss","../../../../../projects/ui/src/themes/default/inputs/date-input.scss"],"names":[],"mappings":"AAEA;AAAA;AAAA;ACCA;EAGE;IAGE;IAGA;IACA;IACA;IAWA;IAGA;;EAGF;AAAA;AAAA;IDJA,QCQI;IDPJ;IACA;IACA;IACA;IACA;IACA,KCII;IDHJ;IACA;IACA,WCEI;IDDJ,aCGI;IDFJ,aCII;IDHJ,cCOI;IDNJ,eCII;IDHJ,aCEI;IDDJ,gBCGI;IDFJ,OCQI;IAKF;IACA;;EDZF;AAAA;AAAA;IACE;IACA;IACA;IACA;IACA;IACA;;EAEA;AAAA;AAAA;IACE;IACA;IACA;IACA;;EAEF;AAAA;AAAA;IACE;IACA,SCRA;IDSA,OCVA;IDWA;IACA;IACA;IACA;IACA;IACA;;EAGF;AAAA;AAAA;IACE;IACA;IACA;IACA;IACA;IACA;;EAIJ;AAAA;AAAA;IACE,QC9CE;ID+CF,WC5CE;ID6CF,aC3CE;ID4CF,cCnCE;IDoCF,eCtCE;IDuCF,aCxCE;IDyCF,gBCvCE;;ED0CJ;AAAA;AAAA;IACE,QCtCE;;EDwCF;AAAA;AAAA;IACE,QCzCA;;EAKF;AAAA;AAAA;IACE;;EAEF;AAAA;AAAA;IACE;IACA;;EAEF;AAAA;AAAA;IACE;IACA;IACA;;EAEA;AAAA;AAAA;IACE;IACA;IACA;;EAGF;AAAA;AAAA;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAGJ;AAAA;AAAA;IACE;IACA;IACA;;EAKF;IACE;IACA;;EAGJ;IACE;IACA;IACA","file":"date-input.css"}
|