@uni-design-system/uni-angular 8.1.0 → 8.2.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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uni-design-system/uni-angular",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@angular/core": "^21.2.0",
|
|
23
23
|
"@angular/forms": "^21.2.0",
|
|
24
24
|
"@emotion/css": "^11.0.0",
|
|
25
|
-
"@uni-design-system/uni-core": "^8.
|
|
25
|
+
"@uni-design-system/uni-core": "^8.2.0"
|
|
26
26
|
},
|
|
27
27
|
"module": "fesm2022/uni-design-system-uni-angular.mjs",
|
|
28
28
|
"typings": "types/uni-design-system-uni-angular.d.ts",
|
|
@@ -1063,7 +1063,7 @@ var buildComponents = (c) => ({
|
|
|
1063
1063
|
logoPadding: "md"
|
|
1064
1064
|
} },
|
|
1065
1065
|
input: { options: {
|
|
1066
|
-
|
|
1066
|
+
typeface: "input",
|
|
1067
1067
|
color: "primary-surface",
|
|
1068
1068
|
textColor: "on-primary-surface",
|
|
1069
1069
|
disabledColor: "disabled-surface",
|
|
@@ -1536,11 +1536,11 @@ var deepMerge = (base, override) => {
|
|
|
1536
1536
|
for (const [key, value] of Object.entries(override)) out[key] = isRecord$1(value) && isRecord$1(out[key]) ? deepMerge(out[key], value) : value;
|
|
1537
1537
|
return out;
|
|
1538
1538
|
};
|
|
1539
|
-
var createTheme = ({ id, name, colors, icons = {}, radii = BaseRadii, shadows = BaseShadows, borders, thicknesses, components }) => ({
|
|
1539
|
+
var createTheme = ({ id, name, colors, icons = {}, radii = BaseRadii, shadows = BaseShadows, typography, borders, thicknesses, components }) => ({
|
|
1540
1540
|
id,
|
|
1541
1541
|
name,
|
|
1542
1542
|
colors,
|
|
1543
|
-
typography: BaseTypography,
|
|
1543
|
+
typography: deepMerge(BaseTypography, typography),
|
|
1544
1544
|
borders: deepMerge(buildBorders(colors), borders),
|
|
1545
1545
|
radii,
|
|
1546
1546
|
shadows,
|
|
@@ -1924,7 +1924,7 @@ var UniThemes = {
|
|
|
1924
1924
|
Object.keys(UniThemes)[0];
|
|
1925
1925
|
//#endregion
|
|
1926
1926
|
//#region package.json
|
|
1927
|
-
var version = "8.
|
|
1927
|
+
var version = "8.2.0";
|
|
1928
1928
|
//#endregion
|
|
1929
1929
|
//#region schematics-src/ng-add/transforms.ts
|
|
1930
1930
|
var addDependencies = (packageJsonText, deps) => {
|
|
@@ -914,7 +914,12 @@ declare class UniCalendarComponent extends BaseComponent<UniCalendarOptions> imp
|
|
|
914
914
|
protected readonly announcement: _angular_core.WritableSignal<string>;
|
|
915
915
|
protected readonly resolvedLocale: _angular_core.Signal<string>;
|
|
916
916
|
protected readonly resolvedWeekStart: _angular_core.Signal<number>;
|
|
917
|
-
/**
|
|
917
|
+
/**
|
|
918
|
+
* The month on screen: the `month` model, else the value's month, else
|
|
919
|
+
* today's. Falsy guards on purpose: `''` — the only typeable empty for a
|
|
920
|
+
* string-typed model — counts as unset, or it would reach the month math
|
|
921
|
+
* and blow up the grid and heading.
|
|
922
|
+
*/
|
|
918
923
|
protected readonly viewMonth: _angular_core.Signal<string>;
|
|
919
924
|
private readonly anchorDate;
|
|
920
925
|
/**
|
|
@@ -1879,7 +1884,9 @@ interface UniInputBoxOptions {
|
|
|
1879
1884
|
errorShadow?: Shadow;
|
|
1880
1885
|
height?: string | number;
|
|
1881
1886
|
paddingLeft: OptionalSize;
|
|
1882
|
-
|
|
1887
|
+
typeface?: Typeface;
|
|
1888
|
+
/** @deprecated Use `typeface` (matching tooltip/button/tabs casing). */
|
|
1889
|
+
typeFace?: Typeface;
|
|
1883
1890
|
textColor: ColorKey;
|
|
1884
1891
|
disabledTextColor: ColorKey;
|
|
1885
1892
|
focusOutline: string;
|
|
@@ -2605,6 +2612,14 @@ declare class UniSelectComponent<T> implements FormValueControl<T | null> {
|
|
|
2605
2612
|
readonly ariaDescribedBy: _angular_core.InputSignal<string>;
|
|
2606
2613
|
readonly options: _angular_core.InputSignal<Options<T>>;
|
|
2607
2614
|
readonly placeholder: _angular_core.InputSignal<string>;
|
|
2615
|
+
/**
|
|
2616
|
+
* Equality used to match `value` against option values, called as
|
|
2617
|
+
* `compareWith(optionValue, value)`. Defaults to reference equality, which
|
|
2618
|
+
* never matches an object value rebuilt from elsewhere (e.g. a saved record
|
|
2619
|
+
* against options from a fresh fetch) — pass a key comparison like
|
|
2620
|
+
* `(a, b) => a?.id === b?.id` for object values.
|
|
2621
|
+
*/
|
|
2622
|
+
readonly compareWith: _angular_core.InputSignal<(optionValue: T, value: T) => boolean>;
|
|
2608
2623
|
/** Accessible name for the select; a placeholder is not a label. */
|
|
2609
2624
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
2610
2625
|
protected readonly UNSELECTED = -1;
|
|
@@ -2618,7 +2633,7 @@ declare class UniSelectComponent<T> implements FormValueControl<T | null> {
|
|
|
2618
2633
|
selectClass: string;
|
|
2619
2634
|
arrowClass: string;
|
|
2620
2635
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UniSelectComponent<any>, never>;
|
|
2621
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniSelectComponent<any>, "uni-select", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "dirty": { "alias": "dirty"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "touched": "touchedChange"; }, never, never, true, never>;
|
|
2636
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniSelectComponent<any>, "uni-select", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "dirty": { "alias": "dirty"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "touched": "touchedChange"; }, never, never, true, never>;
|
|
2622
2637
|
}
|
|
2623
2638
|
|
|
2624
2639
|
/** Placeholder geometry: a text line block, a rectangle, or a circle. */
|