@uni-design-system/uni-angular 7.1.0 → 7.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": "7.
|
|
3
|
+
"version": "7.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": "^7.
|
|
25
|
+
"@uni-design-system/uni-core": "^7.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",
|
|
@@ -577,6 +577,7 @@ var BaseIcons = {
|
|
|
577
577
|
arrowLeft: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='m294.92-450 227.85 227.85L480-180 180-480l300-300 42.77 42.15L294.92-510H780v60H294.92Z'/%3e%3c/svg%3e",
|
|
578
578
|
arrowRight: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M665.08-450H180v-60h485.08L437.23-737.85 480-780l300 300-300 300-42.77-42.15L665.08-450Z'/%3e%3c/svg%3e",
|
|
579
579
|
home: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M240-200h133.85v-237.69h212.3V-200H720v-360L480-740.77 240-560v360Zm-60 60v-450l300-225.77L780-590v450H526.15v-237.69h-92.3V-140H180Zm300-330.38Z'/%3e%3c/svg%3e",
|
|
580
|
+
building: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M130-136.92v-540h160v-160h380v320h160v380H530v-160H430v160H130Zm60-60h100v-100H190v100Zm0-160h100v-100H190v100Zm0-160h100v-100H190v100Zm160 160h100v-100H350v100Zm0-160h100v-100H350v100Zm0-160h100v-100H350v100Zm160 320h100v-100H510v100Zm0-160h100v-100H510v100Zm0-160h100v-100H510v100Zm160 480h100v-100H670v100Zm0-160h100v-100H670v100Z'/%3e%3c/svg%3e",
|
|
580
581
|
externalLink: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M212.31-140Q182-140 161-161q-21-21-21-51.31v-535.38Q140-778 161-799q21-21 51.31-21h252.3v60h-252.3q-4.62 0-8.46 3.85-3.85 3.84-3.85 8.46v535.38q0 4.62 3.85 8.46 3.84 3.85 8.46 3.85h535.38q4.62 0 8.46-3.85 3.85-3.84 3.85-8.46v-252.3h60v252.3Q820-182 799-161q-21 21-51.31 21H212.31Zm176.46-206.62-42.15-42.15L717.85-760H560v-60h260v260h-60v-157.85L388.77-346.62Z'/%3e%3c/svg%3e",
|
|
581
582
|
link: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M432.31-298.46H281.54q-75.34 0-128.44-53.1Q100-404.65 100-479.98q0-75.33 53.1-128.44 53.1-53.12 128.44-53.12h150.77v60H281.54q-50.39 0-85.96 35.58Q160-530.38 160-480q0 50.38 35.58 85.96 35.57 35.58 85.96 35.58h150.77v60ZM330-450v-60h300v60H330Zm197.69 151.54v-60h150.77q50.39 0 85.96-35.58Q800-429.62 800-480q0-50.38-35.58-85.96-35.57-35.58-85.96-35.58H527.69v-60h150.77q75.34 0 128.44 53.1Q860-555.35 860-480.02q0 75.33-53.1 128.44-53.1 53.12-128.44 53.12H527.69Z'/%3e%3c/svg%3e",
|
|
582
583
|
expand: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M140-140v-300h60v198.23L718.23-760H520v-60h300v300h-60v-198.23L241.77-200H440v60H140Z'/%3e%3c/svg%3e",
|
|
@@ -596,6 +597,7 @@ var BaseIcons = {
|
|
|
596
597
|
share: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M672.22-100q-44.91 0-76.26-31.41-31.34-31.41-31.34-76.28 0-6 4.15-29.16L284.31-404.31q-14.46 15-34.36 23.5t-42.64 8.5q-44.71 0-76.01-31.54Q100-435.39 100-480q0-44.61 31.3-76.15 31.3-31.54 76.01-31.54 22.74 0 42.64 8.5 19.9 8.5 34.36 23.5l284.46-167.08q-2.38-7.38-3.27-14.46-.88-7.08-.88-15.08 0-44.87 31.43-76.28Q627.49-860 672.4-860t76.25 31.44Q780-797.13 780-752.22q0 44.91-31.41 76.26-31.41 31.34-76.28 31.34-22.85 0-42.5-8.69Q610.15-662 595.69-677L311.23-509.54q2.38 7.39 3.27 14.46.88 7.08.88 15.08t-.88 15.08q-.89 7.07-3.27 14.46L595.69-283q14.46-15 34.12-23.69 19.65-8.69 42.5-8.69 44.87 0 76.28 31.43Q780-252.51 780-207.6t-31.44 76.25Q717.13-100 672.22-100Zm.09-60q20.27 0 33.98-13.71Q720-187.42 720-207.69q0-20.27-13.71-33.98-13.71-13.72-33.98-13.72-20.27 0-33.98 13.72-13.72 13.71-13.72 33.98 0 20.27 13.72 33.98Q652.04-160 672.31-160Zm-465-272.31q20.43 0 34.25-13.8 13.83-13.81 13.83-33.89t-13.83-33.89q-13.82-13.8-34.25-13.8-20.11 0-33.71 13.8Q160-500.08 160-480t13.6 33.89q13.6 13.8 33.71 13.8Zm498.88-286.02Q720-732.04 720-752.31q0-20.27-13.71-33.98Q692.58-800 672.31-800q-20.27 0-33.98 13.71-13.72 13.71-13.72 33.98 0 20.27 13.81 33.98 13.81 13.72 33.89 13.72 20.07 0 33.88-13.72Zm-33.88 510.64ZM207.69-480Zm464.62-272.31Z'/%3e%3c/svg%3e",
|
|
597
598
|
send: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M140-190v-580l688.46 290L140-190Zm60-90 474-200-474-200v147.69L416.92-480 200-427.69V-280Zm0 0v-400 400Z'/%3e%3c/svg%3e",
|
|
598
599
|
filter: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M411.15-260v-60h137.31v60H411.15ZM256.16-450v-60h447.3v60h-447.3ZM140-640v-60h680v60H140Z'/%3e%3c/svg%3e",
|
|
600
|
+
funnel: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M455.39-180q-15.08 0-25.23-10.16Q420-200.31 420-215.39v-231.53L196.08-731.38q-11.54-15.39-3.35-32 8.2-16.62 27.66-16.62h519.22q19.46 0 27.66 16.62 8.19 16.61-3.35 32L540-446.92v231.53q0 15.08-10.16 25.23Q519.69-180 504.61-180h-49.22ZM480-468l198-252H282l198 252Zm0 0Z'/%3e%3c/svg%3e",
|
|
599
601
|
refresh: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M481.54-180q-125.63 0-212.81-87.17-87.19-87.17-87.19-212.77 0-125.6 87.19-212.83Q355.91-780 481.54-780q70.15 0 132.77 31.19 62.61 31.2 104.15 88.04V-780h60v244.61H533.85v-59.99h158q-31.62-57.93-87.7-91.27Q548.08-720 481.54-720q-100 0-170 70t-70 170q0 100 70 170t170 70q77 0 139-44t87-116h63.23q-27.23 97.92-107.27 158.96Q583.46-180 481.54-180Z'/%3e%3c/svg%3e",
|
|
600
602
|
dragHandle: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M360-175.39q-26.65 0-45.63-18.98-18.98-18.98-18.98-45.63 0-26.65 18.98-45.63 18.98-18.98 45.63-18.98 26.65 0 45.63 18.98 18.98 18.98 18.98 45.63 0 26.65-18.98 45.63-18.98 18.98-45.63 18.98Zm240 0q-26.65 0-45.63-18.98-18.98-18.98-18.98-45.63 0-26.65 18.98-45.63 18.98-18.98 45.63-18.98 26.65 0 45.63 18.98 18.98 18.98 18.98 45.63 0 26.65-18.98 45.63-18.98 18.98-45.63 18.98Zm-240-240q-26.65 0-45.63-18.98-18.98-18.98-18.98-45.63 0-26.65 18.98-45.63 18.98-18.98 45.63-18.98 26.65 0 45.63 18.98 18.98 18.98 18.98 45.63 0 26.65-18.98 45.63-18.98 18.98-45.63 18.98Zm240 0q-26.65 0-45.63-18.98-18.98-18.98-18.98-45.63 0-26.65 18.98-45.63 18.98-18.98 45.63-18.98 26.65 0 45.63 18.98 18.98 18.98 18.98 45.63 0 26.65-18.98 45.63-18.98 18.98-45.63 18.98Zm-240-240q-26.65 0-45.63-18.98-18.98-18.98-18.98-45.63 0-26.65 18.98-45.63 18.98-18.98 45.63-18.98 26.65 0 45.63 18.98 18.98 18.98 18.98 45.63 0 26.65-18.98 45.63-18.98 18.98-45.63 18.98Zm240 0q-26.65 0-45.63-18.98-18.98-18.98-18.98-45.63 0-26.65 18.98-45.63 18.98-18.98 45.63-18.98 26.65 0 45.63 18.98 18.98 18.98 18.98 45.63 0 26.65-18.98 45.63-18.98 18.98-45.63 18.98Z'/%3e%3c/svg%3e",
|
|
601
603
|
qrCode: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M140-520v-300h300v300H140Zm60-60h180v-180H200v180Zm-60 440v-300h300v300H140Zm60-60h180v-180H200v180Zm320-320v-300h300v300H520Zm60-60h180v-180H580v180Zm165 440v-75h75v75h-75ZM520-365v-75h75v75h-75Zm75 75v-75h75v75h-75Zm-75 75v-75h75v75h-75Zm75 75v-75h75v75h-75Zm75-75v-75h75v75h-75Zm0-150v-75h75v75h-75Zm75 75v-75h75v75h-75Z'/%3e%3c/svg%3e",
|
|
@@ -1576,7 +1578,7 @@ var emitThemeFile = (input) => {
|
|
|
1576
1578
|
"const components = (colors: Colors): ComponentThemes => ({});",
|
|
1577
1579
|
"",
|
|
1578
1580
|
"/**",
|
|
1579
|
-
" * Icon primitives, merged over the built-in
|
|
1581
|
+
" * Icon primitives, merged over the built-in 61-icon set per name: reuse a",
|
|
1580
1582
|
" * built-in name to reskin it, or add any new name. Define an icon ONCE here",
|
|
1581
1583
|
" * and render it anywhere via `<uni-icon name='…'/>` — never inline SVG in",
|
|
1582
1584
|
" * components.",
|
|
@@ -1707,7 +1709,7 @@ var UniThemes = {
|
|
|
1707
1709
|
Object.keys(UniThemes)[0];
|
|
1708
1710
|
//#endregion
|
|
1709
1711
|
//#region package.json
|
|
1710
|
-
var version = "7.
|
|
1712
|
+
var version = "7.2.0";
|
|
1711
1713
|
//#endregion
|
|
1712
1714
|
//#region schematics-src/ng-add/transforms.ts
|
|
1713
1715
|
var addDependencies = (packageJsonText, deps) => {
|
|
@@ -1012,24 +1012,69 @@ declare class UniExpandComponent {
|
|
|
1012
1012
|
protected readonly ready: _angular_core.WritableSignal<boolean>;
|
|
1013
1013
|
constructor();
|
|
1014
1014
|
toggle(): void;
|
|
1015
|
+
/**
|
|
1016
|
+
* A custom element is `display: inline` by default, which would lay the
|
|
1017
|
+
* animated grid out as a block-in-inline box and distort the revealed
|
|
1018
|
+
* content's spacing. Every consumer would otherwise have to write
|
|
1019
|
+
* `uni-expand { display: block }` themselves.
|
|
1020
|
+
*/
|
|
1021
|
+
protected readonly hostClassName: string;
|
|
1015
1022
|
expandClassName: string;
|
|
1016
1023
|
contentClassName: string;
|
|
1017
1024
|
private expand;
|
|
1018
1025
|
private collapse;
|
|
1026
|
+
/**
|
|
1027
|
+
* Reveal is motion-safe (WCAG 2.3.3): under `prefers-reduced-motion` these
|
|
1028
|
+
* classes are empty, so the region appears and disappears instantly.
|
|
1029
|
+
* `overflow: hidden` rides inside the guard deliberately — it exists to clip
|
|
1030
|
+
* the growing box mid-animation, and leaving it applied at rest would crop
|
|
1031
|
+
* decorations that legitimately paint outside the region (focus rings,
|
|
1032
|
+
* offset outlines). Angular removes a leaving node on the next frame when it
|
|
1033
|
+
* detects no animation, so nothing hangs when the guard strips them.
|
|
1034
|
+
*/
|
|
1019
1035
|
expandAnimation: string;
|
|
1020
1036
|
collapseAnimation: string;
|
|
1021
1037
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UniExpandComponent, never>;
|
|
1022
1038
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniExpandComponent, "uni-expand", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; }, never, ["*"], true, never>;
|
|
1023
1039
|
}
|
|
1024
1040
|
|
|
1041
|
+
/**
|
|
1042
|
+
* Trigger for a {@link UniExpandComponent} region.
|
|
1043
|
+
*
|
|
1044
|
+
* Two shapes, chosen by whether `label` is set:
|
|
1045
|
+
* - **Icon only** (default) — the bare chevron, sized for a Card Header.
|
|
1046
|
+
* - **Labelled** — chevron plus a label and optional muted sublabel, as a
|
|
1047
|
+
* single full-width button. Most real disclosures need a name for the
|
|
1048
|
+
* section, and building that row by hand is the thing this saves; it also
|
|
1049
|
+
* makes the label the button's accessible name rather than adjacent text.
|
|
1050
|
+
*/
|
|
1025
1051
|
declare class UniExpandToggleComponent {
|
|
1026
1052
|
collapsed: _angular_core.ModelSignal<boolean>;
|
|
1027
1053
|
/** Id of the Expand region this toggle controls (see UniExpandComponent.regionId). */
|
|
1028
1054
|
ariaControls: _angular_core.InputSignal<string>;
|
|
1055
|
+
/** Names the region. Setting it switches the toggle to its labelled shape. */
|
|
1056
|
+
label: _angular_core.InputSignal<string>;
|
|
1057
|
+
/** Muted qualifier beside the label ("for POs & custom orders"). Needs `label`. */
|
|
1058
|
+
sublabel: _angular_core.InputSignal<string>;
|
|
1059
|
+
/**
|
|
1060
|
+
* The glyph rotates, never the host.
|
|
1061
|
+
*
|
|
1062
|
+
* The host is the tooltip's positioning box — `uni-tooltip` puts its
|
|
1063
|
+
* `anchor-name` on its own element, nested inside ours — so rotating the
|
|
1064
|
+
* host swings the anchor through the turn and the bubble visibly bobs. The
|
|
1065
|
+
* host is also taller than the glyph (an inline-level box reserves baseline
|
|
1066
|
+
* descender space), so spinning it about its own centre walks the glyph
|
|
1067
|
+
* off-centre. `uni-icon` is a centred square sized to the glyph, which makes
|
|
1068
|
+
* it the only box here that rotates symmetrically. It also keeps a label
|
|
1069
|
+
* from turning upside down with the chevron.
|
|
1070
|
+
*/
|
|
1071
|
+
private readonly glyphStyles;
|
|
1029
1072
|
protected readonly className: _angular_core.Signal<string>;
|
|
1073
|
+
protected readonly triggerClassName: string;
|
|
1074
|
+
protected readonly labelClassName: string;
|
|
1030
1075
|
toggle(): void;
|
|
1031
1076
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UniExpandToggleComponent, never>;
|
|
1032
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniExpandToggleComponent, "uni-expand-toggle", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "ariaControls": { "alias": "ariaControls"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; }, never, never, true, never>;
|
|
1077
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniExpandToggleComponent, "uni-expand-toggle", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "ariaControls": { "alias": "ariaControls"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "sublabel": { "alias": "sublabel"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; }, never, never, true, never>;
|
|
1033
1078
|
}
|
|
1034
1079
|
|
|
1035
1080
|
declare class UniExpandAreaComponent {
|
|
@@ -1156,6 +1201,15 @@ declare class UniIconButtonComponent {
|
|
|
1156
1201
|
loading: _angular_core.InputSignal<boolean>;
|
|
1157
1202
|
opticalSize: _angular_core.InputSignal<number>;
|
|
1158
1203
|
protected readonly srOnlyClass: string;
|
|
1204
|
+
/**
|
|
1205
|
+
* Sizes `iconName` from the size token's `fontSize`, the same value that sizes
|
|
1206
|
+
* a `symbolName` ligature — so the two paths render the same glyph size and
|
|
1207
|
+
* `symbolName` → `iconName` is a like-for-like swap. Without it a masked icon
|
|
1208
|
+
* fills the whole button box, since the base size tokens carry no padding.
|
|
1209
|
+
* Themes that do use padding (Carbon) set a matching `fontSize`, so they land
|
|
1210
|
+
* on the same glyph either way.
|
|
1211
|
+
*/
|
|
1212
|
+
protected readonly glyphSize: _angular_core.Signal<string | number>;
|
|
1159
1213
|
protected readonly className: _angular_core.Signal<string>;
|
|
1160
1214
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UniIconButtonComponent, never>;
|
|
1161
1215
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniIconButtonComponent, "button[uni-icon-button], button[icon-button]", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "iconName": { "alias": "iconName"; "required": false; "isSignal": true; }; "symbolName": { "alias": "symbolName"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disable": { "alias": "disable"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "opticalSize": { "alias": "opticalSize"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof RippleDirective; inputs: {}; outputs: {}; }]>;
|