@uni-design-system/uni-angular 10.4.0 → 11.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@uni-design-system/uni-angular",
3
- "version": "10.4.0",
3
+ "version": "11.0.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.0.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",
@@ -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
  /**
@@ -959,7 +967,7 @@ var buildComponents = (c) => ({
959
967
  typeface: "label",
960
968
  color: "on-background-variant",
961
969
  currentColor: "on-background",
962
- separatorSymbol: "chevron_right",
970
+ separatorIcon: "chevronRight",
963
971
  gap: "xs"
964
972
  } },
965
973
  appBar: { options: {
@@ -1007,7 +1015,7 @@ var buildComponents = (c) => ({
1007
1015
  options: {
1008
1016
  borderRadius: "max",
1009
1017
  typeface: "subtitle-2",
1010
- fallbackSymbol: "person"
1018
+ fallbackIcon: "profile"
1011
1019
  },
1012
1020
  variants: {
1013
1021
  primary: {
@@ -1064,8 +1072,8 @@ var buildComponents = (c) => ({
1064
1072
  ringWidth: 2
1065
1073
  } },
1066
1074
  searchInput: { options: {
1067
- searchSymbol: "search",
1068
- clearSymbol: "close",
1075
+ searchIcon: "search",
1076
+ clearIcon: "close",
1069
1077
  listColor: "primary-surface",
1070
1078
  listShadow: "menu",
1071
1079
  listBorderRadius: "xs",
@@ -1074,6 +1082,7 @@ var buildComponents = (c) => ({
1074
1082
  } },
1075
1083
  checkbox: {
1076
1084
  options: {
1085
+ motion: "control",
1077
1086
  size: 20,
1078
1087
  boxColor: "surface",
1079
1088
  borderRadius: 2,
@@ -1123,6 +1132,22 @@ var buildComponents = (c) => ({
1123
1132
  closeButtonIcon: "close",
1124
1133
  closeButtonSize: "md"
1125
1134
  } },
1135
+ select: { options: {
1136
+ toggleIcon: "chevronDown",
1137
+ toggleColor: "on-background-variant",
1138
+ toggleSize: 20
1139
+ } },
1140
+ buttonGroup: { options: {
1141
+ border: "quaternary",
1142
+ borderRadius: 4
1143
+ } },
1144
+ progressBar: { options: {
1145
+ trackColor: "primary-surface",
1146
+ fillColor: "secondary-surface",
1147
+ completeColor: "secondary",
1148
+ borderColor: "on-background-variant",
1149
+ strokeWidth: 1
1150
+ } },
1126
1151
  dropdown: { options: {
1127
1152
  border: "none",
1128
1153
  borderRadius: "xxs",
@@ -1150,7 +1175,7 @@ var buildComponents = (c) => ({
1150
1175
  typeface: "label",
1151
1176
  textColor: void 0,
1152
1177
  hoverColor: "primary-container",
1153
- activeSymbol: "check",
1178
+ activeIcon: "check",
1154
1179
  motion: "control"
1155
1180
  },
1156
1181
  variants: {
@@ -1174,7 +1199,7 @@ var buildComponents = (c) => ({
1174
1199
  maxWidth: "38ch",
1175
1200
  offset: 7,
1176
1201
  arrowSize: 8,
1177
- closeSymbol: "close",
1202
+ closeIcon: "close",
1178
1203
  headerTypeface: "title-small",
1179
1204
  tooltipPadding: "4px 8px",
1180
1205
  tooltipOpenDelay: 500,
@@ -1182,12 +1207,6 @@ var buildComponents = (c) => ({
1182
1207
  motion: "panel"
1183
1208
  } },
1184
1209
  expand: { options: { motion: "reveal" } },
1185
- footer: { options: {
1186
- height: 52,
1187
- color: "primary",
1188
- logoHeight: 18.6,
1189
- logoPadding: "md"
1190
- } },
1191
1210
  input: { options: {
1192
1211
  typeface: "input",
1193
1212
  color: "primary-surface",
@@ -1246,6 +1265,7 @@ var buildComponents = (c) => ({
1246
1265
  }
1247
1266
  },
1248
1267
  tabs: { options: {
1268
+ motion: "snap",
1249
1269
  typeface: "title-small",
1250
1270
  textColor: "on-surface-variant",
1251
1271
  activeTextColor: "primary",
@@ -1273,14 +1293,14 @@ var buildComponents = (c) => ({
1273
1293
  typeface: "tag",
1274
1294
  gap: "xs",
1275
1295
  removeIcon: "close",
1276
- selectedIcon: "check"
1296
+ selectedIcon: "check",
1297
+ motion: "control"
1277
1298
  },
1278
1299
  fixed: {
1279
1300
  display: "inline-flex",
1280
1301
  alignItems: "center",
1281
1302
  maxWidth: "100%",
1282
- border: "1px solid transparent",
1283
- transition: "background-color .2s ease, color .2s ease"
1303
+ border: "1px solid transparent"
1284
1304
  },
1285
1305
  variants: {
1286
1306
  ...tagVariant(c, "primary"),
@@ -1346,8 +1366,8 @@ var buildComponents = (c) => ({
1346
1366
  dayBorderRadius: "max",
1347
1367
  typeface: "label",
1348
1368
  gap: "xxs",
1349
- navPrevSymbol: "chevron_left",
1350
- navNextSymbol: "chevron_right",
1369
+ navPrevIcon: "chevronLeft",
1370
+ navNextIcon: "chevronRight",
1351
1371
  weekdayFormat: "short",
1352
1372
  showOutsideDays: false,
1353
1373
  todayStyle: "outline"
@@ -1386,13 +1406,13 @@ var buildComponents = (c) => ({
1386
1406
  descriptionColor: "on-primary-surface-variant"
1387
1407
  } },
1388
1408
  dateInput: { options: {
1389
- toggleSymbol: "calendar_month",
1409
+ toggleIcon: "calendar",
1390
1410
  popupShadow: "menu",
1391
1411
  popupBorderRadius: "xs",
1392
1412
  popupColor: "primary-surface"
1393
1413
  } },
1394
1414
  timeInput: { options: {
1395
- toggleSymbol: "schedule",
1415
+ toggleIcon: "clock",
1396
1416
  listColor: "primary-surface",
1397
1417
  listShadow: "menu",
1398
1418
  listBorderRadius: "xs",
@@ -1406,15 +1426,15 @@ var buildComponents = (c) => ({
1406
1426
  button: {
1407
1427
  options: {
1408
1428
  borderRadius: "max",
1409
- typeface: "button"
1429
+ typeface: "button",
1430
+ motion: "control"
1410
1431
  },
1411
1432
  fixed: {
1412
1433
  position: "relative",
1413
1434
  overflow: "hidden",
1414
1435
  outline: "0",
1415
1436
  border: "0",
1416
- cursor: "pointer",
1417
- transition: "all 0.28s ease"
1437
+ cursor: "pointer"
1418
1438
  },
1419
1439
  variantOptions: {
1420
1440
  primary: { focusColor: "primary" },
@@ -1495,7 +1515,10 @@ var buildComponents = (c) => ({
1495
1515
  }
1496
1516
  },
1497
1517
  iconButton: {
1498
- options: { borderRadius: "max" },
1518
+ options: {
1519
+ borderRadius: "max",
1520
+ motion: "control"
1521
+ },
1499
1522
  variantOptions: {
1500
1523
  primary: { focusColor: "primary" },
1501
1524
  secondary: { focusColor: "secondary" },
@@ -1572,6 +1595,13 @@ var buildComponents = (c) => ({
1572
1595
  }
1573
1596
  }
1574
1597
  },
1598
+ inlineButton: { options: {
1599
+ linkColor: "primary",
1600
+ underline: false,
1601
+ underlineOnHover: true,
1602
+ underlineOffset: "0.15em",
1603
+ gap: "xxs"
1604
+ } },
1575
1605
  progressGauge: {
1576
1606
  fixed: { textFill: c["on-background"] },
1577
1607
  variants: {
@@ -1607,7 +1637,8 @@ var buildComponents = (c) => ({
1607
1637
  options: { borderRadius: "xs" },
1608
1638
  fixed: {
1609
1639
  overflow: "hidden",
1610
- backgroundColor: c.background
1640
+ backgroundColor: c.background,
1641
+ color: c["on-background"]
1611
1642
  }
1612
1643
  },
1613
1644
  cardHeader: {
@@ -1643,6 +1674,7 @@ var buildComponents = (c) => ({
1643
1674
  placeholderColor: "disabled"
1644
1675
  } },
1645
1676
  dataTable: { options: {
1677
+ motion: "control",
1646
1678
  color: "primary-surface",
1647
1679
  border: "light",
1648
1680
  borderRadius: "sm",
@@ -1706,7 +1738,7 @@ var buildComponents = (c) => ({
1706
1738
  tooltipTextColor: "on-inverse-surface",
1707
1739
  tooltipShadow: "menu",
1708
1740
  tooltipBorderRadius: "xs",
1709
- transitionMs: 120
1741
+ motion: "snap"
1710
1742
  } },
1711
1743
  skeleton: { options: {
1712
1744
  color: "surface-variant",
@@ -1755,6 +1787,7 @@ var buildComponents = (c) => ({
1755
1787
  }
1756
1788
  },
1757
1789
  tooltip: { options: {
1790
+ motion: "notification",
1758
1791
  border: void 0,
1759
1792
  borderRadius: "xs",
1760
1793
  shadow: "raised",
@@ -1769,7 +1802,7 @@ var buildComponents = (c) => ({
1769
1802
  padding: "16px",
1770
1803
  headerTypeface: "title-small",
1771
1804
  typeface: "label",
1772
- closeSymbol: "close",
1805
+ closeIcon: "close",
1773
1806
  arrowSize: 8,
1774
1807
  offset: 12,
1775
1808
  scrimColor: "rgba(0, 0, 0, 0.45)",
@@ -2200,7 +2233,7 @@ var UniThemes = {
2200
2233
  Object.keys(UniThemes)[0];
2201
2234
  //#endregion
2202
2235
  //#region package.json
2203
- var version = "10.4.0";
2236
+ var version = "11.0.0";
2204
2237
  //#endregion
2205
2238
  //#region schematics-src/ng-add/transforms.ts
2206
2239
  var addDependencies = (packageJsonText, deps) => {
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}