@uni-design-system/uni-angular 10.4.0 → 11.1.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": "10.4.0",
3
+ "version": "11.1.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,11 +18,11 @@
18
18
  "save": "dependencies"
19
19
  },
20
20
  "peerDependencies": {
21
- "@angular/common": "^21.2.0",
22
- "@angular/core": "^21.2.0",
23
- "@angular/forms": "^21.2.0",
21
+ "@angular/common": "^22.0.0",
22
+ "@angular/core": "^22.0.0",
23
+ "@angular/forms": "^22.0.0",
24
24
  "@emotion/css": "^11.0.0",
25
- "@uni-design-system/uni-core": "^10.4.0"
25
+ "@uni-design-system/uni-core": "^11.1.0"
26
26
  },
27
27
  "module": "fesm2022/uni-design-system-uni-angular.mjs",
28
28
  "typings": "types/uni-design-system-uni-angular.d.ts",
@@ -39,5 +39,6 @@
39
39
  "type": "module",
40
40
  "dependencies": {
41
41
  "tslib": "^2.3.0"
42
- }
42
+ },
43
+ "scripts": {}
43
44
  }
@@ -589,6 +589,10 @@ var BaseIcons = {
589
589
  chevronRight: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='m517.85-480-184-184L376-706.15 602.15-480 376-253.85 333.85-296l184-184Z'/%3e%3c/svg%3e",
590
590
  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",
591
591
  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",
592
+ arrowUp: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M450-180v-485.08L222.15-437.23 180-480l300-300 300 300-42.15 42.77L510-665.08V-180h-60Z'/%3e%3c/svg%3e",
593
+ arrowDown: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M450-780v485.08L222.15-522.77 180-480l300 300 300-300-42.15-42.77L510-294.92V-780h-60Z'/%3e%3c/svg%3e",
594
+ chevronsLeft: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M445-253.85 218.85-480 445-706.15 487.15-664 303.77-480l183.38 184L445-253.85Zm254 0L472.85-480 699-706.15 741.15-664 557.77-480l183.38 184L699-253.85Z'/%3e%3c/svg%3e",
595
+ chevronsRight: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M402.23-480 218.85-664 261-706.15 487.15-480 261-253.85 218.85-296l183.38-184Zm254 0L472.85-664 515-706.15 741.15-480 515-253.85 472.85-296l183.38-184Z'/%3e%3c/svg%3e",
592
596
  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",
593
597
  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",
594
598
  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",
@@ -809,7 +813,7 @@ var BaseTypography = {
809
813
  fontFamily: "Red Hat Display",
810
814
  fontSize: 15,
811
815
  lineHeight: 20,
812
- fontWeight: 600
816
+ fontWeight: 500
813
817
  },
814
818
  input: {
815
819
  fontFamily: "Red Hat Display",
@@ -873,6 +877,10 @@ var BaseMotion = {
873
877
  control: {
874
878
  duration: 300,
875
879
  easing: "ease"
880
+ },
881
+ snap: {
882
+ duration: 120,
883
+ easing: "ease"
876
884
  }
877
885
  };
878
886
  /**
@@ -938,14 +946,26 @@ var SELECTION_ACCENTS = {
938
946
  var tagVariant = (c, role) => ({ [role]: {
939
947
  backgroundColor: c[`${role}-container`],
940
948
  color: c[`on-${role}-container`],
941
- "&.tone-solid": {
949
+ "&.tag-selected": {
942
950
  backgroundColor: c[role],
943
951
  color: c[`on-${role}`]
944
952
  },
953
+ "&.tag-interactive:hover": { filter: "brightness(0.95)" },
954
+ "&.tone-solid": {
955
+ backgroundColor: c[role],
956
+ color: c[`on-${role}`],
957
+ "&.tag-selected": { filter: "brightness(0.9)" },
958
+ "&.tag-selected.tag-interactive:hover": { filter: "brightness(0.85)" }
959
+ },
945
960
  "&.tone-outline": {
946
961
  backgroundColor: "transparent",
947
962
  color: c[role],
948
- borderColor: c[`on-${role}-container-border`] ?? c[role]
963
+ borderColor: c[`on-${role}-container-border`] ?? c[role],
964
+ "&.tag-selected": {
965
+ backgroundColor: c[role],
966
+ color: c[`on-${role}`],
967
+ borderColor: c[role]
968
+ }
949
969
  }
950
970
  } });
951
971
  var buildComponents = (c) => ({
@@ -959,7 +979,7 @@ var buildComponents = (c) => ({
959
979
  typeface: "label",
960
980
  color: "on-background-variant",
961
981
  currentColor: "on-background",
962
- separatorSymbol: "chevron_right",
982
+ separatorIcon: "chevronRight",
963
983
  gap: "xs"
964
984
  } },
965
985
  appBar: { options: {
@@ -1007,7 +1027,7 @@ var buildComponents = (c) => ({
1007
1027
  options: {
1008
1028
  borderRadius: "max",
1009
1029
  typeface: "subtitle-2",
1010
- fallbackSymbol: "person"
1030
+ fallbackIcon: "profile"
1011
1031
  },
1012
1032
  variants: {
1013
1033
  primary: {
@@ -1064,8 +1084,8 @@ var buildComponents = (c) => ({
1064
1084
  ringWidth: 2
1065
1085
  } },
1066
1086
  searchInput: { options: {
1067
- searchSymbol: "search",
1068
- clearSymbol: "close",
1087
+ searchIcon: "search",
1088
+ clearIcon: "close",
1069
1089
  listColor: "primary-surface",
1070
1090
  listShadow: "menu",
1071
1091
  listBorderRadius: "xs",
@@ -1074,6 +1094,7 @@ var buildComponents = (c) => ({
1074
1094
  } },
1075
1095
  checkbox: {
1076
1096
  options: {
1097
+ motion: "control",
1077
1098
  size: 20,
1078
1099
  boxColor: "surface",
1079
1100
  borderRadius: 2,
@@ -1123,6 +1144,22 @@ var buildComponents = (c) => ({
1123
1144
  closeButtonIcon: "close",
1124
1145
  closeButtonSize: "md"
1125
1146
  } },
1147
+ select: { options: {
1148
+ toggleIcon: "chevronDown",
1149
+ toggleColor: "on-background-variant",
1150
+ toggleSize: 20
1151
+ } },
1152
+ buttonGroup: { options: {
1153
+ border: "quaternary",
1154
+ borderRadius: 4
1155
+ } },
1156
+ progressBar: { options: {
1157
+ trackColor: "primary-surface",
1158
+ fillColor: "secondary-surface",
1159
+ completeColor: "secondary",
1160
+ borderColor: "on-background-variant",
1161
+ strokeWidth: 1
1162
+ } },
1126
1163
  dropdown: { options: {
1127
1164
  border: "none",
1128
1165
  borderRadius: "xxs",
@@ -1150,7 +1187,7 @@ var buildComponents = (c) => ({
1150
1187
  typeface: "label",
1151
1188
  textColor: void 0,
1152
1189
  hoverColor: "primary-container",
1153
- activeSymbol: "check",
1190
+ activeIcon: "check",
1154
1191
  motion: "control"
1155
1192
  },
1156
1193
  variants: {
@@ -1174,7 +1211,7 @@ var buildComponents = (c) => ({
1174
1211
  maxWidth: "38ch",
1175
1212
  offset: 7,
1176
1213
  arrowSize: 8,
1177
- closeSymbol: "close",
1214
+ closeIcon: "close",
1178
1215
  headerTypeface: "title-small",
1179
1216
  tooltipPadding: "4px 8px",
1180
1217
  tooltipOpenDelay: 500,
@@ -1182,12 +1219,6 @@ var buildComponents = (c) => ({
1182
1219
  motion: "panel"
1183
1220
  } },
1184
1221
  expand: { options: { motion: "reveal" } },
1185
- footer: { options: {
1186
- height: 52,
1187
- color: "primary",
1188
- logoHeight: 18.6,
1189
- logoPadding: "md"
1190
- } },
1191
1222
  input: { options: {
1192
1223
  typeface: "input",
1193
1224
  color: "primary-surface",
@@ -1246,6 +1277,7 @@ var buildComponents = (c) => ({
1246
1277
  }
1247
1278
  },
1248
1279
  tabs: { options: {
1280
+ motion: "snap",
1249
1281
  typeface: "title-small",
1250
1282
  textColor: "on-surface-variant",
1251
1283
  activeTextColor: "primary",
@@ -1273,14 +1305,15 @@ var buildComponents = (c) => ({
1273
1305
  typeface: "tag",
1274
1306
  gap: "xs",
1275
1307
  removeIcon: "close",
1276
- selectedIcon: "check"
1308
+ selectedIcon: "check",
1309
+ motion: "control",
1310
+ endInset: "auto"
1277
1311
  },
1278
1312
  fixed: {
1279
1313
  display: "inline-flex",
1280
1314
  alignItems: "center",
1281
1315
  maxWidth: "100%",
1282
- border: "1px solid transparent",
1283
- transition: "background-color .2s ease, color .2s ease"
1316
+ border: "1px solid transparent"
1284
1317
  },
1285
1318
  variants: {
1286
1319
  ...tagVariant(c, "primary"),
@@ -1291,13 +1324,25 @@ var buildComponents = (c) => ({
1291
1324
  ghost: {
1292
1325
  backgroundColor: "transparent",
1293
1326
  color: c["on-background"],
1294
- "&.tone-solid": {
1327
+ "&.tag-selected": {
1295
1328
  backgroundColor: c["surface-variant"],
1296
1329
  color: c["on-surface-variant"]
1297
1330
  },
1331
+ "&.tag-interactive:hover": { filter: "brightness(0.95)" },
1332
+ "&.tone-solid": {
1333
+ backgroundColor: c["surface-variant"],
1334
+ color: c["on-surface-variant"],
1335
+ "&.tag-selected": { filter: "brightness(0.9)" },
1336
+ "&.tag-selected.tag-interactive:hover": { filter: "brightness(0.85)" }
1337
+ },
1298
1338
  "&.tone-outline": {
1299
1339
  backgroundColor: "transparent",
1300
- borderColor: c.outline
1340
+ borderColor: c.outline,
1341
+ "&.tag-selected": {
1342
+ backgroundColor: c["surface-variant"],
1343
+ color: c["on-surface-variant"],
1344
+ borderColor: c.outline
1345
+ }
1301
1346
  }
1302
1347
  },
1303
1348
  disabled: {
@@ -1317,20 +1362,31 @@ var buildComponents = (c) => ({
1317
1362
  sm: {
1318
1363
  height: 20,
1319
1364
  fontSize: 12,
1320
- padding: "0 8px"
1365
+ paddingInline: 8
1321
1366
  },
1322
1367
  md: {
1323
1368
  height: 24,
1324
1369
  fontSize: 13,
1325
- padding: "0 10px"
1370
+ paddingInline: 10
1326
1371
  },
1327
1372
  lg: {
1328
1373
  height: 32,
1329
1374
  fontSize: 15,
1330
- padding: "0 12px"
1375
+ paddingInline: 12
1331
1376
  }
1332
1377
  }
1333
1378
  },
1379
+ tagGroup: {
1380
+ options: {
1381
+ gap: "xs",
1382
+ rowGap: "xs"
1383
+ },
1384
+ fixed: {
1385
+ display: "flex",
1386
+ flexWrap: "wrap",
1387
+ alignItems: "center"
1388
+ }
1389
+ },
1334
1390
  tagInput: { options: {
1335
1391
  chipGap: "xs",
1336
1392
  chipSize: "md",
@@ -1346,8 +1402,8 @@ var buildComponents = (c) => ({
1346
1402
  dayBorderRadius: "max",
1347
1403
  typeface: "label",
1348
1404
  gap: "xxs",
1349
- navPrevSymbol: "chevron_left",
1350
- navNextSymbol: "chevron_right",
1405
+ navPrevIcon: "chevronLeft",
1406
+ navNextIcon: "chevronRight",
1351
1407
  weekdayFormat: "short",
1352
1408
  showOutsideDays: false,
1353
1409
  todayStyle: "outline"
@@ -1386,13 +1442,13 @@ var buildComponents = (c) => ({
1386
1442
  descriptionColor: "on-primary-surface-variant"
1387
1443
  } },
1388
1444
  dateInput: { options: {
1389
- toggleSymbol: "calendar_month",
1445
+ toggleIcon: "calendar",
1390
1446
  popupShadow: "menu",
1391
1447
  popupBorderRadius: "xs",
1392
1448
  popupColor: "primary-surface"
1393
1449
  } },
1394
1450
  timeInput: { options: {
1395
- toggleSymbol: "schedule",
1451
+ toggleIcon: "clock",
1396
1452
  listColor: "primary-surface",
1397
1453
  listShadow: "menu",
1398
1454
  listBorderRadius: "xs",
@@ -1406,15 +1462,15 @@ var buildComponents = (c) => ({
1406
1462
  button: {
1407
1463
  options: {
1408
1464
  borderRadius: "max",
1409
- typeface: "button"
1465
+ typeface: "button",
1466
+ motion: "control"
1410
1467
  },
1411
1468
  fixed: {
1412
1469
  position: "relative",
1413
1470
  overflow: "hidden",
1414
1471
  outline: "0",
1415
1472
  border: "0",
1416
- cursor: "pointer",
1417
- transition: "all 0.28s ease"
1473
+ cursor: "pointer"
1418
1474
  },
1419
1475
  variantOptions: {
1420
1476
  primary: { focusColor: "primary" },
@@ -1495,7 +1551,10 @@ var buildComponents = (c) => ({
1495
1551
  }
1496
1552
  },
1497
1553
  iconButton: {
1498
- options: { borderRadius: "max" },
1554
+ options: {
1555
+ borderRadius: "max",
1556
+ motion: "control"
1557
+ },
1499
1558
  variantOptions: {
1500
1559
  primary: { focusColor: "primary" },
1501
1560
  secondary: { focusColor: "secondary" },
@@ -1572,6 +1631,13 @@ var buildComponents = (c) => ({
1572
1631
  }
1573
1632
  }
1574
1633
  },
1634
+ inlineButton: { options: {
1635
+ linkColor: "primary",
1636
+ underline: false,
1637
+ underlineOnHover: true,
1638
+ underlineOffset: "0.15em",
1639
+ gap: "xxs"
1640
+ } },
1575
1641
  progressGauge: {
1576
1642
  fixed: { textFill: c["on-background"] },
1577
1643
  variants: {
@@ -1607,7 +1673,8 @@ var buildComponents = (c) => ({
1607
1673
  options: { borderRadius: "xs" },
1608
1674
  fixed: {
1609
1675
  overflow: "hidden",
1610
- backgroundColor: c.background
1676
+ backgroundColor: c.background,
1677
+ color: c["on-background"]
1611
1678
  }
1612
1679
  },
1613
1680
  cardHeader: {
@@ -1643,6 +1710,7 @@ var buildComponents = (c) => ({
1643
1710
  placeholderColor: "disabled"
1644
1711
  } },
1645
1712
  dataTable: { options: {
1713
+ motion: "control",
1646
1714
  color: "primary-surface",
1647
1715
  border: "light",
1648
1716
  borderRadius: "sm",
@@ -1706,7 +1774,7 @@ var buildComponents = (c) => ({
1706
1774
  tooltipTextColor: "on-inverse-surface",
1707
1775
  tooltipShadow: "menu",
1708
1776
  tooltipBorderRadius: "xs",
1709
- transitionMs: 120
1777
+ motion: "snap"
1710
1778
  } },
1711
1779
  skeleton: { options: {
1712
1780
  color: "surface-variant",
@@ -1755,6 +1823,7 @@ var buildComponents = (c) => ({
1755
1823
  }
1756
1824
  },
1757
1825
  tooltip: { options: {
1826
+ motion: "notification",
1758
1827
  border: void 0,
1759
1828
  borderRadius: "xs",
1760
1829
  shadow: "raised",
@@ -1769,7 +1838,7 @@ var buildComponents = (c) => ({
1769
1838
  padding: "16px",
1770
1839
  headerTypeface: "title-small",
1771
1840
  typeface: "label",
1772
- closeSymbol: "close",
1841
+ closeIcon: "close",
1773
1842
  arrowSize: 8,
1774
1843
  offset: 12,
1775
1844
  scrimColor: "rgba(0, 0, 0, 0.45)",
@@ -2200,7 +2269,7 @@ var UniThemes = {
2200
2269
  Object.keys(UniThemes)[0];
2201
2270
  //#endregion
2202
2271
  //#region package.json
2203
- var version = "10.4.0";
2272
+ var version = "11.1.0";
2204
2273
  //#endregion
2205
2274
  //#region schematics-src/ng-add/transforms.ts
2206
2275
  var addDependencies = (packageJsonText, deps) => {
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}