@epam/uui 5.13.2-rc.0 → 5.13.3-beta.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/components/datePickers/CalendarPresets.d.ts.map +1 -1
- package/components/filters/FilterPanelItemToggler.d.ts +1 -1
- package/components/filters/FilterPanelItemToggler.d.ts.map +1 -1
- package/components/inputs/MultiSwitch.d.ts +12 -13
- package/components/inputs/MultiSwitch.d.ts.map +1 -1
- package/components/inputs/timePicker/types.d.ts +1 -0
- package/components/inputs/timePicker/types.d.ts.map +1 -1
- package/components/layout/FlexItems/FlexRow.d.ts +16 -7
- package/components/layout/FlexItems/FlexRow.d.ts.map +1 -1
- package/components/layout/LabeledInput.d.ts +1 -0
- package/components/layout/LabeledInput.d.ts.map +1 -1
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/overlays/Modals.d.ts +15 -8
- package/components/overlays/Modals.d.ts.map +1 -1
- package/components/pickers/DataPickerCell.d.ts.map +1 -1
- package/components/pickers/DataPickerHeader.d.ts.map +1 -1
- package/components/pickers/PickerBodyMobileView.d.ts +24 -3
- package/components/pickers/PickerBodyMobileView.d.ts.map +1 -1
- package/components/pickers/PickerInput.d.ts +4 -1
- package/components/pickers/PickerInput.d.ts.map +1 -1
- package/components/pickers/PickerItem.d.ts.map +1 -1
- package/components/pickers/PickerModal.d.ts.map +1 -1
- package/components/pickers/PickerToggler.d.ts +5 -1
- package/components/pickers/PickerToggler.d.ts.map +1 -1
- package/components/tables/DataTable.d.ts +5 -1
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/DataTableHeaderCell.d.ts +3 -3
- package/components/tables/DataTableHeaderCell.d.ts.map +1 -1
- package/components/tables/DataTableHeaderGroupCell.d.ts +2 -4
- package/components/tables/DataTableHeaderGroupCell.d.ts.map +1 -1
- package/components/tables/types.d.ts +3 -3
- package/components/tables/types.d.ts.map +1 -1
- package/components/types.d.ts +1 -0
- package/components/types.d.ts.map +1 -1
- package/index.esm.js +295 -391
- package/index.esm.js.map +1 -1
- package/index.js +292 -389
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/settings.d.ts +20 -93
- package/settings.d.ts.map +1 -1
- package/stats.html +19 -1
- package/styles.css +1145 -1043
- package/styles.css.map +1 -1
package/index.js
CHANGED
|
@@ -182,7 +182,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
182
182
|
xmlns: "http://www.w3.org/2000/svg",
|
|
183
183
|
ref: ref
|
|
184
184
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
185
|
-
clipPath: "url(#
|
|
185
|
+
clipPath: "url(#7iyl3cwgzxp868o8h_a)"
|
|
186
186
|
}, _path$J || (_path$J = /*#__PURE__*/React__namespace.createElement("path", {
|
|
187
187
|
d: "M150.585 1.535C49.483-11.495 27.481 61.805 45.725 97.481c10.581 20.69-39.64 70.792 17.744 81.468 27.538 5.123 36-13.341 62.433-10.655 35.4 3.6 148.167-4.73 88.349-78.915-31.713-39.335 1.026-79.506-63.666-87.844Z",
|
|
188
188
|
fill: "#F5F6FA"
|
|
@@ -203,7 +203,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
203
203
|
d: "M86.786 22.982c-2.55 0-4.965 2.07-4.965 4.552V120.6c0 2.484 2.4 4.572 4.965 4.572h88.101c2.582 0 4.986-2.089 4.986-4.572V27.534c0-2.464-2.418-4.552-4.986-4.552h-88.1Zm-5.793 4.552c0-3.022 2.874-5.38 5.793-5.38h88.101c2.935 0 5.814 2.374 5.814 5.38V120.6c0 3.021-2.86 5.4-5.814 5.4h-88.1c-2.94 0-5.794-2.381-5.794-5.4V27.534Z",
|
|
204
204
|
fill: "#1D1E26"
|
|
205
205
|
})), /*#__PURE__*/React__namespace.createElement("mask", {
|
|
206
|
-
id: "
|
|
206
|
+
id: "7iyl3cyil2nzap39m_b",
|
|
207
207
|
style: {
|
|
208
208
|
maskType: "alpha"
|
|
209
209
|
},
|
|
@@ -216,7 +216,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
216
216
|
d: "M174.887 125.586h-88.1c-2.752 0-5.38-2.234-5.38-4.986V27.534c0-2.752 2.644-4.966 5.38-4.966h88.1c2.752 0 5.4 2.23 5.4 4.966V120.6c0 2.752-2.632 4.986-5.4 4.986Z",
|
|
217
217
|
fill: "#9BDEFF"
|
|
218
218
|
}))), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
219
|
-
mask: "url(#
|
|
219
|
+
mask: "url(#7iyl3cyil2nzap39m_b)",
|
|
220
220
|
fillRule: "evenodd",
|
|
221
221
|
clipRule: "evenodd"
|
|
222
222
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -302,7 +302,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
302
302
|
d: "M24.73 96.184a.414.414 0 0 1 .581.06l48.646 59.751a.413.413 0 1 1-.642.523L24.67 96.766a.414.414 0 0 1 .06-.582Z",
|
|
303
303
|
fill: "#fff"
|
|
304
304
|
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
305
|
-
id: "
|
|
305
|
+
id: "7iyl3cwgzxp868o8h_a"
|
|
306
306
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
307
307
|
fill: "#fff",
|
|
308
308
|
transform: "translate(.552)",
|
|
@@ -859,32 +859,12 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
859
859
|
};
|
|
860
860
|
var ForwardRef$b = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
861
861
|
|
|
862
|
-
const fileIcons = {
|
|
863
|
-
docIcon: ForwardRef$l,
|
|
864
|
-
exelIcon: ForwardRef$k,
|
|
865
|
-
pdfIcon: ForwardRef$j,
|
|
866
|
-
imgIcon: ForwardRef$i,
|
|
867
|
-
videoIcon: ForwardRef$h,
|
|
868
|
-
tableIcon: ForwardRef$g,
|
|
869
|
-
textIcon: ForwardRef$f,
|
|
870
|
-
mailIcon: ForwardRef$e,
|
|
871
|
-
fileIcon: ForwardRef$d,
|
|
872
|
-
closeIcon: ForwardRef$R,
|
|
873
|
-
errorIcon: ForwardRef$m,
|
|
874
|
-
};
|
|
875
862
|
const accordionSettings = {
|
|
876
863
|
icons: {
|
|
877
864
|
dropdownIcon: ForwardRef$Q,
|
|
878
865
|
},
|
|
879
866
|
};
|
|
880
867
|
const alertSettings = {
|
|
881
|
-
sizes: {
|
|
882
|
-
default: '48',
|
|
883
|
-
actionMap: {
|
|
884
|
-
36: '24',
|
|
885
|
-
48: '30',
|
|
886
|
-
},
|
|
887
|
-
},
|
|
888
868
|
icons: {
|
|
889
869
|
closeIcon: ForwardRef$R,
|
|
890
870
|
infoIcon: ForwardRef$K,
|
|
@@ -892,6 +872,13 @@ const alertSettings = {
|
|
|
892
872
|
warningIcon: ForwardRef$n,
|
|
893
873
|
errorIcon: ForwardRef$m,
|
|
894
874
|
},
|
|
875
|
+
sizes: {
|
|
876
|
+
default: '48',
|
|
877
|
+
actionMap: {
|
|
878
|
+
36: '24',
|
|
879
|
+
48: '30',
|
|
880
|
+
},
|
|
881
|
+
},
|
|
895
882
|
};
|
|
896
883
|
const badgeSettings = {
|
|
897
884
|
icons: {
|
|
@@ -946,6 +933,9 @@ const dataTableSettings = {
|
|
|
946
933
|
foldIcon: ForwardRef$x,
|
|
947
934
|
unfoldIcon: ForwardRef$w,
|
|
948
935
|
},
|
|
936
|
+
body: {
|
|
937
|
+
foldingIcon: ForwardRef$Q,
|
|
938
|
+
},
|
|
949
939
|
columnsConfigurationModal: {
|
|
950
940
|
dragIndicator: ForwardRef$G,
|
|
951
941
|
lockIcon: ForwardRef$D,
|
|
@@ -959,54 +949,53 @@ const dataTableSettings = {
|
|
|
959
949
|
},
|
|
960
950
|
sizes: {
|
|
961
951
|
header: {
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
defaultResizeMarker: '12',
|
|
965
|
-
defaultCellPadding: '12',
|
|
966
|
-
defaultCellPaddingEdge: '24',
|
|
967
|
-
defaultGroupCell: '36',
|
|
968
|
-
defaultGroupCellPadding: '12',
|
|
969
|
-
defaultGroupCellPaddingEdge: '24',
|
|
970
|
-
cellCheckboxMap: {
|
|
952
|
+
row: '36',
|
|
953
|
+
iconMap: {
|
|
971
954
|
36: '18',
|
|
972
955
|
48: '18',
|
|
973
956
|
60: '18',
|
|
974
957
|
},
|
|
975
|
-
|
|
958
|
+
},
|
|
959
|
+
body: {
|
|
960
|
+
row: '36',
|
|
961
|
+
checkboxMap: {
|
|
962
|
+
24: '12',
|
|
963
|
+
30: '18',
|
|
976
964
|
36: '18',
|
|
965
|
+
42: '18',
|
|
977
966
|
48: '18',
|
|
978
967
|
60: '18',
|
|
979
968
|
},
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
969
|
+
iconMap: {
|
|
970
|
+
24: '12',
|
|
971
|
+
30: '18',
|
|
972
|
+
36: '18',
|
|
973
|
+
42: '24',
|
|
974
|
+
48: '24',
|
|
975
|
+
60: '24',
|
|
976
|
+
},
|
|
977
|
+
indentUnitMap: {
|
|
978
|
+
24: 6,
|
|
979
|
+
30: 12,
|
|
980
|
+
36: 12,
|
|
981
|
+
42: 24,
|
|
982
|
+
48: 24,
|
|
983
|
+
60: 24,
|
|
984
|
+
},
|
|
985
|
+
indentWidthMap: {
|
|
986
|
+
24: 12,
|
|
987
|
+
30: 18,
|
|
988
|
+
36: 18,
|
|
989
|
+
42: 24,
|
|
990
|
+
48: 24,
|
|
991
|
+
60: 24,
|
|
1001
992
|
},
|
|
1002
993
|
},
|
|
1003
994
|
columnsConfigurationModal: {
|
|
1004
995
|
columnRow: '30',
|
|
1005
996
|
countIndicator: '18',
|
|
1006
|
-
subgroupIcon: '18',
|
|
1007
997
|
menuButton: '30',
|
|
1008
998
|
searchInput: '30',
|
|
1009
|
-
width: 560,
|
|
1010
999
|
},
|
|
1011
1000
|
},
|
|
1012
1001
|
};
|
|
@@ -1027,7 +1016,8 @@ const datePickerSettings = {
|
|
|
1027
1016
|
},
|
|
1028
1017
|
},
|
|
1029
1018
|
sizes: {
|
|
1030
|
-
|
|
1019
|
+
body: '36',
|
|
1020
|
+
input: '36',
|
|
1031
1021
|
},
|
|
1032
1022
|
};
|
|
1033
1023
|
const fileCardSettings = {
|
|
@@ -1057,14 +1047,6 @@ const filtersPanelSettings = {
|
|
|
1057
1047
|
},
|
|
1058
1048
|
sizes: {
|
|
1059
1049
|
default: '36',
|
|
1060
|
-
pickerInput: {
|
|
1061
|
-
body: {
|
|
1062
|
-
searchInput: '36',
|
|
1063
|
-
row: '36',
|
|
1064
|
-
rowItem: '36',
|
|
1065
|
-
footer: '36',
|
|
1066
|
-
},
|
|
1067
|
-
},
|
|
1068
1050
|
},
|
|
1069
1051
|
};
|
|
1070
1052
|
const iconButtonSettings = {
|
|
@@ -1087,22 +1069,13 @@ const linkButtonSettings = {
|
|
|
1087
1069
|
},
|
|
1088
1070
|
sizes: {
|
|
1089
1071
|
default: '36',
|
|
1090
|
-
defaultWeight: 'semibold',
|
|
1091
1072
|
},
|
|
1073
|
+
weight: 'semibold',
|
|
1092
1074
|
};
|
|
1093
1075
|
const modalSettings = {
|
|
1094
1076
|
icons: {
|
|
1095
1077
|
closeIcon: ForwardRef$R,
|
|
1096
1078
|
},
|
|
1097
|
-
sizes: {
|
|
1098
|
-
defaultWidth: 420,
|
|
1099
|
-
defaultMaxHeight: '80dvh',
|
|
1100
|
-
defaultMobileMaxHeight: '100dvh',
|
|
1101
|
-
defaultHeaderPadding: '24',
|
|
1102
|
-
defaultFooterColumnGap: '12',
|
|
1103
|
-
defaultFooterPadding: '24',
|
|
1104
|
-
defaultFooterVPadding: '24',
|
|
1105
|
-
},
|
|
1106
1079
|
};
|
|
1107
1080
|
const notificationCardSettings = {
|
|
1108
1081
|
icons: {
|
|
@@ -1140,8 +1113,7 @@ const pickerInputSettings = {
|
|
|
1140
1113
|
dropdownIcon: ForwardRef$Q,
|
|
1141
1114
|
},
|
|
1142
1115
|
body: {
|
|
1143
|
-
selectIcon: ForwardRef$P,
|
|
1144
|
-
boldSelectIcon: ForwardRef$r,
|
|
1116
|
+
selectIcon: (size) => size < '30' ? ForwardRef$r : ForwardRef$P,
|
|
1145
1117
|
pickerBodyMobileHeaderCloseIcon: ForwardRef$R,
|
|
1146
1118
|
modalNotFoundSearchIcon: ForwardRef$b,
|
|
1147
1119
|
},
|
|
@@ -1149,7 +1121,7 @@ const pickerInputSettings = {
|
|
|
1149
1121
|
sizes: {
|
|
1150
1122
|
toggler: {
|
|
1151
1123
|
default: '36',
|
|
1152
|
-
|
|
1124
|
+
tag: '36',
|
|
1153
1125
|
tagMap: {
|
|
1154
1126
|
24: '18',
|
|
1155
1127
|
30: '18',
|
|
@@ -1162,8 +1134,7 @@ const pickerInputSettings = {
|
|
|
1162
1134
|
maxHeight: 300,
|
|
1163
1135
|
minWidth: 360,
|
|
1164
1136
|
padding: '12',
|
|
1165
|
-
|
|
1166
|
-
defaultItem: '36',
|
|
1137
|
+
row: '36',
|
|
1167
1138
|
itemAvatarMap: {
|
|
1168
1139
|
24: '18',
|
|
1169
1140
|
30: '24',
|
|
@@ -1185,25 +1156,13 @@ const pickerInputSettings = {
|
|
|
1185
1156
|
42: '6',
|
|
1186
1157
|
48: '9',
|
|
1187
1158
|
},
|
|
1188
|
-
|
|
1189
|
-
24: true,
|
|
1190
|
-
},
|
|
1191
|
-
cellTextMap: {
|
|
1192
|
-
24: '24',
|
|
1193
|
-
30: '30',
|
|
1194
|
-
36: '36',
|
|
1195
|
-
42: '42',
|
|
1196
|
-
48: '48',
|
|
1197
|
-
},
|
|
1198
|
-
cellIconMap: {
|
|
1159
|
+
selectIconMap: {
|
|
1199
1160
|
24: '12',
|
|
1200
1161
|
30: '18',
|
|
1201
1162
|
36: '18',
|
|
1202
1163
|
42: '24',
|
|
1203
1164
|
48: '24',
|
|
1204
1165
|
},
|
|
1205
|
-
cellPadding: '24',
|
|
1206
|
-
defaultFooter: '36',
|
|
1207
1166
|
footerSwitchMap: {
|
|
1208
1167
|
24: '12',
|
|
1209
1168
|
30: '18',
|
|
@@ -1211,12 +1170,9 @@ const pickerInputSettings = {
|
|
|
1211
1170
|
42: '24',
|
|
1212
1171
|
48: '24',
|
|
1213
1172
|
},
|
|
1214
|
-
mobileHeaderTitleSize: '48',
|
|
1215
1173
|
mobileFooterLinkButton: '48',
|
|
1216
1174
|
mobileRow: '48',
|
|
1217
1175
|
mobileSearchInput: '48',
|
|
1218
|
-
modalRow: '36',
|
|
1219
|
-
modalPadding: '24',
|
|
1220
1176
|
},
|
|
1221
1177
|
},
|
|
1222
1178
|
};
|
|
@@ -1236,6 +1192,7 @@ const rangeDatePickerSettings = {
|
|
|
1236
1192
|
},
|
|
1237
1193
|
sizes: {
|
|
1238
1194
|
default: '36',
|
|
1195
|
+
preset: '24',
|
|
1239
1196
|
},
|
|
1240
1197
|
};
|
|
1241
1198
|
const ratingSettings = {
|
|
@@ -1252,48 +1209,6 @@ const richTextViewSettings = {
|
|
|
1252
1209
|
default: '14',
|
|
1253
1210
|
},
|
|
1254
1211
|
};
|
|
1255
|
-
const rowAddonsSettings = {
|
|
1256
|
-
icons: {
|
|
1257
|
-
foldingIcon: ForwardRef$Q,
|
|
1258
|
-
},
|
|
1259
|
-
sizes: {
|
|
1260
|
-
defaultIcon: '18',
|
|
1261
|
-
defaultIndentUnit: 24,
|
|
1262
|
-
defaultIndentWidth: 18,
|
|
1263
|
-
checkboxMap: {
|
|
1264
|
-
24: '12',
|
|
1265
|
-
30: '18',
|
|
1266
|
-
36: '18',
|
|
1267
|
-
42: '18',
|
|
1268
|
-
48: '18',
|
|
1269
|
-
60: '18',
|
|
1270
|
-
},
|
|
1271
|
-
iconMap: {
|
|
1272
|
-
24: '12',
|
|
1273
|
-
30: '18',
|
|
1274
|
-
36: '18',
|
|
1275
|
-
42: '24',
|
|
1276
|
-
48: '24',
|
|
1277
|
-
60: '24',
|
|
1278
|
-
},
|
|
1279
|
-
indentUnitMap: {
|
|
1280
|
-
24: 6,
|
|
1281
|
-
30: 12,
|
|
1282
|
-
36: 12,
|
|
1283
|
-
42: 24,
|
|
1284
|
-
48: 24,
|
|
1285
|
-
60: 24,
|
|
1286
|
-
},
|
|
1287
|
-
indentWidthMap: {
|
|
1288
|
-
24: 12,
|
|
1289
|
-
30: 18,
|
|
1290
|
-
36: 18,
|
|
1291
|
-
42: 24,
|
|
1292
|
-
48: 24,
|
|
1293
|
-
60: 24,
|
|
1294
|
-
},
|
|
1295
|
-
},
|
|
1296
|
-
};
|
|
1297
1212
|
const statusIndicatorSettings = {
|
|
1298
1213
|
sizes: {
|
|
1299
1214
|
default: '24',
|
|
@@ -1381,7 +1296,6 @@ const settings = {
|
|
|
1381
1296
|
rangeDatePicker: rangeDatePickerSettings,
|
|
1382
1297
|
rating: ratingSettings,
|
|
1383
1298
|
richTextView: richTextViewSettings,
|
|
1384
|
-
rowAddons: rowAddonsSettings,
|
|
1385
1299
|
statusIndicator: statusIndicatorSettings,
|
|
1386
1300
|
switch: switchSettings,
|
|
1387
1301
|
tabButton: tabButtonSettings,
|
|
@@ -1391,7 +1305,7 @@ const settings = {
|
|
|
1391
1305
|
textInput: textInputSettings,
|
|
1392
1306
|
};
|
|
1393
1307
|
|
|
1394
|
-
var css$1y = {"root":"
|
|
1308
|
+
var css$1y = {"root":"RXQhYs"};
|
|
1395
1309
|
|
|
1396
1310
|
function applyButtonMods(mods) {
|
|
1397
1311
|
return [
|
|
@@ -1409,7 +1323,7 @@ const Button = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Button,
|
|
|
1409
1323
|
};
|
|
1410
1324
|
});
|
|
1411
1325
|
|
|
1412
|
-
var css$1x = {"root":"
|
|
1326
|
+
var css$1x = {"root":"woHPv3"};
|
|
1413
1327
|
|
|
1414
1328
|
function applyIconButtonMods(props) {
|
|
1415
1329
|
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1x.root];
|
|
@@ -1446,7 +1360,7 @@ function getIconClass(props) {
|
|
|
1446
1360
|
return [classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon', classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon'];
|
|
1447
1361
|
}
|
|
1448
1362
|
|
|
1449
|
-
var css$1w = {"root":"
|
|
1363
|
+
var css$1w = {"root":"ZTC43J"};
|
|
1450
1364
|
|
|
1451
1365
|
const DEFAULT_COLOR = 'primary';
|
|
1452
1366
|
const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
@@ -1467,7 +1381,7 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1467
1381
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
1468
1382
|
props.cx,
|
|
1469
1383
|
];
|
|
1470
|
-
const captionStyles = cx__default.default(uuiCore.uuiElement.caption, props.underline && `uui-underline-${props.underline}`, `uui-link-button-weight-${props.weight || settings.linkButton.
|
|
1384
|
+
const captionStyles = cx__default.default(uuiCore.uuiElement.caption, props.underline && `uui-underline-${props.underline}`, `uui-link-button-weight-${props.weight || settings.linkButton.weight}`);
|
|
1471
1385
|
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.linkButton.icons.dropdownIcon;
|
|
1472
1386
|
return (React__namespace.createElement(uuiComponents.Clickable, { ...props, type: "button", cx: rootStyles, ref: ref },
|
|
1473
1387
|
props.icon && props.iconPosition !== 'right' && (React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
@@ -1476,7 +1390,7 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1476
1390
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1477
1391
|
});
|
|
1478
1392
|
|
|
1479
|
-
var css$1v = {"root":"
|
|
1393
|
+
var css$1v = {"root":"_1frMjM"};
|
|
1480
1394
|
|
|
1481
1395
|
const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1482
1396
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
@@ -1488,7 +1402,7 @@ const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1488
1402
|
]) }, props.caption));
|
|
1489
1403
|
});
|
|
1490
1404
|
|
|
1491
|
-
var css$1u = {"root":"
|
|
1405
|
+
var css$1u = {"root":"_1VahVv","withNotify":"_8kfEZv"};
|
|
1492
1406
|
|
|
1493
1407
|
const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1494
1408
|
const styles = [
|
|
@@ -1516,14 +1430,14 @@ const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref
|
|
|
1516
1430
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1517
1431
|
});
|
|
1518
1432
|
|
|
1519
|
-
var css$1t = {"root":"
|
|
1433
|
+
var css$1t = {"root":"IUef9N"};
|
|
1520
1434
|
|
|
1521
1435
|
function applyVerticalTabButtonMods() {
|
|
1522
1436
|
return [css$1t.root, 'uui-vertical-tab-button'];
|
|
1523
1437
|
}
|
|
1524
1438
|
const VerticalTabButton = /* @__PURE__ */uuiCore.withMods(TabButton, applyVerticalTabButtonMods);
|
|
1525
1439
|
|
|
1526
|
-
var css$1s = {"root":"
|
|
1440
|
+
var css$1s = {"root":"Bp2UHf","mode-cell":"_1Uqtfw","modeCell":"_1Uqtfw"};
|
|
1527
1441
|
|
|
1528
1442
|
function applyCheckboxMods(mods) {
|
|
1529
1443
|
return [
|
|
@@ -1541,7 +1455,7 @@ const applyUUICheckboxProps = (props) => {
|
|
|
1541
1455
|
};
|
|
1542
1456
|
const Checkbox = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1543
1457
|
|
|
1544
|
-
var css$1r = {"root":"
|
|
1458
|
+
var css$1r = {"root":"_-5DmoE"};
|
|
1545
1459
|
|
|
1546
1460
|
function applyRadioInputMods(mods) {
|
|
1547
1461
|
return [
|
|
@@ -1553,7 +1467,7 @@ function applyRadioInputMods(mods) {
|
|
|
1553
1467
|
}
|
|
1554
1468
|
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : settings.radioInput.icons.dotIcon }));
|
|
1555
1469
|
|
|
1556
|
-
var css$1q = {"root":"
|
|
1470
|
+
var css$1q = {"root":"AjuVtG"};
|
|
1557
1471
|
|
|
1558
1472
|
function applySwitchMods(mods) {
|
|
1559
1473
|
return [
|
|
@@ -1577,7 +1491,7 @@ var EditMode;
|
|
|
1577
1491
|
EditMode["INLINE"] = "inline";
|
|
1578
1492
|
})(EditMode || (EditMode = {}));
|
|
1579
1493
|
|
|
1580
|
-
var textInputCss = {"root":"
|
|
1494
|
+
var textInputCss = {"root":"TTfjgk","mode-form":"Qk2o3L","modeForm":"Qk2o3L","mode-inline":"dm1GgI","modeInline":"dm1GgI","mode-cell":"Fl6bK4","modeCell":"Fl6bK4"};
|
|
1581
1495
|
|
|
1582
1496
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1583
1497
|
function applyTextInputMods(mods) {
|
|
@@ -1602,7 +1516,7 @@ const SearchInput = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
1602
1516
|
} }));
|
|
1603
1517
|
});
|
|
1604
1518
|
|
|
1605
|
-
var css$1p = {"root":"
|
|
1519
|
+
var css$1p = {"root":"ZwTYx-"};
|
|
1606
1520
|
|
|
1607
1521
|
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1p.root, 'uui-control-group']);
|
|
1608
1522
|
|
|
@@ -1618,7 +1532,7 @@ function MultiSwitchComponent(props, ref) {
|
|
|
1618
1532
|
}
|
|
1619
1533
|
const MultiSwitch = /* @__PURE__ */React__namespace.forwardRef(MultiSwitchComponent);
|
|
1620
1534
|
|
|
1621
|
-
var css$1o = {"root":"
|
|
1535
|
+
var css$1o = {"root":"xoKFNg","mode-form":"_1cPmVG","modeForm":"_1cPmVG","mode-cell":"w5ilFU","modeCell":"w5ilFU"};
|
|
1622
1536
|
|
|
1623
1537
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1624
1538
|
function applyNumericInputMods(mods) {
|
|
@@ -1638,7 +1552,7 @@ const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput,
|
|
|
1638
1552
|
};
|
|
1639
1553
|
});
|
|
1640
1554
|
|
|
1641
|
-
var css$1n = {"root":"
|
|
1555
|
+
var css$1n = {"root":"jPjqE0","mode-form":"LIym9b","modeForm":"LIym9b","mode-cell":"P-JaPM","modeCell":"P-JaPM","mode-inline":"a2Oscb","modeInline":"a2Oscb"};
|
|
1642
1556
|
|
|
1643
1557
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1644
1558
|
function applyTextAreaMods(mods) {
|
|
@@ -1679,7 +1593,7 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
1679
1593
|
};
|
|
1680
1594
|
}
|
|
1681
1595
|
|
|
1682
|
-
var css$1m = {"root":"
|
|
1596
|
+
var css$1m = {"root":"ECudEW","main-path":"DlNW0B","mainPath":"DlNW0B","content-wrapper":"FPYnTZ","contentWrapper":"FPYnTZ","content":"kobPhA","action-wrapper":"hcEtUS","actionWrapper":"hcEtUS","icon-wrapper":"U11IQC","iconWrapper":"U11IQC","icon":"_40URZK","close-icon":"QuRrST","closeIcon":"QuRrST"};
|
|
1683
1597
|
|
|
1684
1598
|
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", { role: "alert", ref: ref, className: cx__default.default('uui-alert', css$1m.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.alert.sizes.default}`), ...props.rawProps },
|
|
1685
1599
|
React__namespace.createElement("div", { className: css$1m.mainPath },
|
|
@@ -1697,7 +1611,7 @@ const ErrorAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => Re
|
|
|
1697
1611
|
|
|
1698
1612
|
const Dropdown = /* @__PURE__ */uuiCore.withMods(uuiComponents.Dropdown);
|
|
1699
1613
|
|
|
1700
|
-
var css$1l = {"root":"
|
|
1614
|
+
var css$1l = {"root":"CZcvSG"};
|
|
1701
1615
|
|
|
1702
1616
|
function applyDropdownContainerMods(mods) {
|
|
1703
1617
|
return [
|
|
@@ -1708,7 +1622,7 @@ function applyDropdownContainerMods(mods) {
|
|
|
1708
1622
|
}
|
|
1709
1623
|
const DropdownContainer = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.DropdownContainer, applyDropdownContainerMods);
|
|
1710
1624
|
|
|
1711
|
-
var css$1k = {"submenu-root-item-rtl":"
|
|
1625
|
+
var css$1k = {"submenu-root-item-rtl":"ui-EyN","submenuRootItemRtl":"ui-EyN","icon-after":"udGQs2","iconAfter":"udGQs2","submenu-root-item":"hjiEZ1","submenuRootItem":"hjiEZ1","icon-check":"UjWDqA","iconCheck":"UjWDqA","splitter-root":"XQTxvz","splitterRoot":"XQTxvz","splitter":"TOPnX4","header-root":"LkLeGU","headerRoot":"LkLeGU","item-root":"THqDab","itemRoot":"THqDab","icon":"ya3pbi","link":"SwUT5A","indent":"cKzxGp","selected-mark":"_3XpN6G","selectedMark":"_3XpN6G"};
|
|
1712
1626
|
|
|
1713
1627
|
exports.IDropdownControlKeys = void 0;
|
|
1714
1628
|
(function (IDropdownControlKeys) {
|
|
@@ -1755,7 +1669,7 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
1755
1669
|
const handleClick = (event) => {
|
|
1756
1670
|
if (isDisabled || !onClick)
|
|
1757
1671
|
return;
|
|
1758
|
-
onClick(event);
|
|
1672
|
+
!uuiCore.isEventTargetInsideClickable(event) && onClick(event);
|
|
1759
1673
|
context.uuiAnalytics.sendEvent(props.clickAnalyticsEvent);
|
|
1760
1674
|
};
|
|
1761
1675
|
const handleOpenDropdown = (event) => {
|
|
@@ -1782,12 +1696,8 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
1782
1696
|
iconElement))));
|
|
1783
1697
|
};
|
|
1784
1698
|
const isAnchor = Boolean(link || href);
|
|
1785
|
-
const itemClassNames = uuiCore.cx(props.cx, css$1k.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened);
|
|
1786
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$1k.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isLinkActive: isActive, isDisabled: isDisabled, target: target }, getMenuButtonContent())) : (React__namespace.default.createElement(
|
|
1787
|
-
tabIndex: isDisabled ? -1 : 0,
|
|
1788
|
-
role: 'menuitem',
|
|
1789
|
-
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
1790
|
-
}, cx: itemClassNames, onClick: handleClick, ref: ref },
|
|
1699
|
+
const itemClassNames = uuiCore.cx(props.cx, css$1k.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened, (!isDisabled && onClick) && uuiCore.uuiMarkers.clickable);
|
|
1700
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$1k.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isLinkActive: isActive, isDisabled: isDisabled, target: target }, getMenuButtonContent())) : (React__namespace.default.createElement("div", { tabIndex: isDisabled ? -1 : 0, role: "menuitem", onKeyDown: isDisabled ? null : handleOpenDropdown, className: itemClassNames, onClick: handleClick, ref: ref },
|
|
1791
1701
|
getMenuButtonContent(),
|
|
1792
1702
|
isSelected && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1793
1703
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
@@ -1835,14 +1745,14 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1835
1745
|
onHandleValueChange(!isSelected);
|
|
1836
1746
|
}
|
|
1837
1747
|
};
|
|
1838
|
-
return (React__namespace.default.createElement(
|
|
1748
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$1k.itemRoot, isDisabled && uuiCore.uuiMod.disabled, (!isDisabled || onValueChange) && uuiCore.uuiMarkers.clickable), onClick: () => onHandleValueChange(!isSelected), role: "menuitem", onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 },
|
|
1839
1749
|
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$1k.iconBefore }),
|
|
1840
1750
|
React__namespace.default.createElement(uuiComponents.Text, null, caption),
|
|
1841
1751
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1842
1752
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1843
1753
|
}
|
|
1844
1754
|
|
|
1845
|
-
var css$1j = {"root":"
|
|
1755
|
+
var css$1j = {"root":"_3131M7","mode-block":"Ywu26i","modeBlock":"Ywu26i","mode-inline":"_9JcrPO","modeInline":"_9JcrPO","padding-0":"_9hrhzr","padding0":"_9hrhzr","padding-6":"lfXkkY","padding6":"lfXkkY","padding-12":"Dv6x4U","padding12":"Dv6x4U","padding-18":"ZH9YIu","padding18":"ZH9YIu"};
|
|
1846
1756
|
|
|
1847
1757
|
function applyAccordionMods(mods) {
|
|
1848
1758
|
return [
|
|
@@ -1855,31 +1765,52 @@ const Accordion = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Accor
|
|
|
1855
1765
|
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
1856
1766
|
}));
|
|
1857
1767
|
|
|
1858
|
-
var css$1i = {"root":"
|
|
1768
|
+
var css$1i = {"root":"ffZ20N","align-items":"bCkRwS","alignItems":"bCkRwS","justify-content":"Hq1Sgc","justifyContent":"Hq1Sgc","border-top":"RM3135","borderTop":"RM3135","border-bottom":"U6UsgT","borderBottom":"U6UsgT","top-shadow":"kOa8dh","topShadow":"kOa8dh","padding":"G1JmsP","margin":"l7a1LW","vPadding":"zhL16N","column-gap":"OwjWXm","columnGap":"OwjWXm","row-gap":"LHmp2K","rowGap":"LHmp2K","spacing-6":"UQtxZt","spacing6":"UQtxZt","spacing-12":"Ok5Ksq","spacing12":"Ok5Ksq","spacing-18":"_2QT6CJ","spacing18":"_2QT6CJ","uui-surface-main":"xKVdX7","uuiSurfaceMain":"xKVdX7"};
|
|
1859
1769
|
|
|
1860
1770
|
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$1i.flexCell]);
|
|
1861
1771
|
|
|
1862
|
-
const FlexRow = /* @__PURE__ */
|
|
1772
|
+
const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1863
1773
|
if (process.env.NODE_ENV !== "production") {
|
|
1864
1774
|
if (props.spacing) {
|
|
1865
1775
|
uuiCore.devLogger.warn('[FlexRow]: The `spacing` property is deprecated and will be removed in future versions. Please use `columnGap` instead.');
|
|
1866
1776
|
}
|
|
1867
1777
|
}
|
|
1868
|
-
|
|
1778
|
+
const classNames = uuiCore.cx([
|
|
1869
1779
|
css$1i.root,
|
|
1780
|
+
'uui-flex-row',
|
|
1781
|
+
props.onClick && uuiCore.uuiMarkers.clickable,
|
|
1782
|
+
props.cx,
|
|
1870
1783
|
props.size !== null && 'uui-size-' + (props.size || settings.flexRow.sizes.default),
|
|
1871
|
-
props.
|
|
1872
|
-
props.
|
|
1873
|
-
props.
|
|
1784
|
+
props.alignItems && css$1i.alignItems,
|
|
1785
|
+
props.justifyContent && css$1i.justifyContent,
|
|
1786
|
+
props.padding && css$1i.padding,
|
|
1787
|
+
props.vPadding && css$1i.vPadding,
|
|
1788
|
+
props.margin && css$1i.margin,
|
|
1874
1789
|
props.topShadow && css$1i.topShadow,
|
|
1875
1790
|
props.borderBottom && css$1i.borderBottom,
|
|
1876
1791
|
props.borderTop && css$1i.borderTop,
|
|
1792
|
+
props.columnGap && css$1i.columnGap,
|
|
1793
|
+
props.rowGap && css$1i.rowGap,
|
|
1877
1794
|
props.spacing && css$1i['spacing-' + props.spacing],
|
|
1878
1795
|
props.background && css$1i[`uui-${props.background}`],
|
|
1879
|
-
];
|
|
1796
|
+
]);
|
|
1797
|
+
const style = {
|
|
1798
|
+
...(props.alignItems && { '--uui-flex-row-align-items': props.alignItems }),
|
|
1799
|
+
...(props.justifyContent && { '--uui-flex-row-justify-content': props.justifyContent }),
|
|
1800
|
+
...(props.columnGap && { '--uui-flex-row-column-gap': `${props.columnGap}px` }),
|
|
1801
|
+
...(props.rowGap && { '--uui-flex-row-row-gap': `${props.rowGap}px` }),
|
|
1802
|
+
...(props.padding && { '--uui-flex-row-padding': `${props.padding}px` }),
|
|
1803
|
+
...(props.vPadding && { '--uui-flex-row-v-padding': `${props.vPadding}px` }),
|
|
1804
|
+
...(props.margin && { '--uui-flex-row-margin': `${props.margin}px` }),
|
|
1805
|
+
...(props.spacing && { '--uui-flex-row-spacing': `${props.spacing}px` }),
|
|
1806
|
+
};
|
|
1807
|
+
return (React__namespace.default.createElement("div", { ref: ref, onClick: props.onClick ? (e) => !uuiCore.isEventTargetInsideClickable(e) && props.onClick(e) : undefined, className: classNames, ...props.rawProps, style: {
|
|
1808
|
+
...style,
|
|
1809
|
+
...props.rawProps?.style,
|
|
1810
|
+
} }, props.children));
|
|
1880
1811
|
});
|
|
1881
1812
|
|
|
1882
|
-
var css$1h = {"root":"
|
|
1813
|
+
var css$1h = {"root":"iQNfWC","margin-24":"Qxkdz-","margin24":"Qxkdz-","padding-12":"Jb6NWH","padding12":"Jb6NWH","padding-24":"x9Bc-Q","padding24":"x9Bc-Q","shadow":"SV6nO9","uui-surface-main":"zKARob","uuiSurfaceMain":"zKARob"};
|
|
1883
1814
|
|
|
1884
1815
|
const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
1885
1816
|
'uui-panel',
|
|
@@ -1889,7 +1820,7 @@ const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
|
1889
1820
|
props.background && css$1h[`uui-${props.background}`],
|
|
1890
1821
|
]);
|
|
1891
1822
|
|
|
1892
|
-
var css$1g = {"root":"
|
|
1823
|
+
var css$1g = {"root":"H2dbpX"};
|
|
1893
1824
|
|
|
1894
1825
|
function applyTooltipMods(mods) {
|
|
1895
1826
|
return [
|
|
@@ -1899,7 +1830,7 @@ function applyTooltipMods(mods) {
|
|
|
1899
1830
|
}
|
|
1900
1831
|
const Tooltip = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Tooltip, applyTooltipMods);
|
|
1901
1832
|
|
|
1902
|
-
var css$1f = {"root":"
|
|
1833
|
+
var css$1f = {"root":"k-D3Zk"};
|
|
1903
1834
|
|
|
1904
1835
|
function applyLabeledInputMods(mods) {
|
|
1905
1836
|
return [
|
|
@@ -1916,7 +1847,7 @@ function applyLabeledInputProps(props) {
|
|
|
1916
1847
|
}
|
|
1917
1848
|
const LabeledInput = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
1918
1849
|
|
|
1919
|
-
var css$1e = {"root":"
|
|
1850
|
+
var css$1e = {"root":"Mx3kFA"};
|
|
1920
1851
|
|
|
1921
1852
|
function RadioGroup(props) {
|
|
1922
1853
|
const direction = props.direction || 'vertical';
|
|
@@ -1931,7 +1862,7 @@ function RadioGroup(props) {
|
|
|
1931
1862
|
})));
|
|
1932
1863
|
}
|
|
1933
1864
|
|
|
1934
|
-
var css$1d = {"root":"
|
|
1865
|
+
var css$1d = {"root":"W9MadD"};
|
|
1935
1866
|
|
|
1936
1867
|
function applyScrollBarsMods() {
|
|
1937
1868
|
return [
|
|
@@ -1940,13 +1871,13 @@ function applyScrollBarsMods() {
|
|
|
1940
1871
|
}
|
|
1941
1872
|
const ScrollBars = /* @__PURE__ */uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMods);
|
|
1942
1873
|
|
|
1943
|
-
var css$1c = {"scroll-container":"
|
|
1874
|
+
var css$1c = {"scroll-container":"r5ymgV","scrollContainer":"r5ymgV","list-container":"vL7G2y","listContainer":"vL7G2y"};
|
|
1944
1875
|
|
|
1945
|
-
var css$1b = {"root":"
|
|
1876
|
+
var css$1b = {"root":"eaMei5"};
|
|
1946
1877
|
|
|
1947
1878
|
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$1b.root]);
|
|
1948
1879
|
|
|
1949
|
-
var css$1a = {"root":"
|
|
1880
|
+
var css$1a = {"root":"QXWo5S"};
|
|
1950
1881
|
|
|
1951
1882
|
const DEFAULT_FILL = 'solid';
|
|
1952
1883
|
function applyBadgeMods(mods) {
|
|
@@ -1974,7 +1905,7 @@ const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) =>
|
|
|
1974
1905
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1975
1906
|
});
|
|
1976
1907
|
|
|
1977
|
-
var css$19 = {"root":"
|
|
1908
|
+
var css$19 = {"root":"_4g5FnY"};
|
|
1978
1909
|
|
|
1979
1910
|
function applyTagMods(props) {
|
|
1980
1911
|
return [
|
|
@@ -2002,14 +1933,14 @@ const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
|
2002
1933
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
2003
1934
|
});
|
|
2004
1935
|
|
|
2005
|
-
var css$18 = {"root":"
|
|
1936
|
+
var css$18 = {"root":"m3Q71r","uui-spinner":"YQGQbP","uuiSpinner":"YQGQbP"};
|
|
2006
1937
|
|
|
2007
1938
|
function applySpinnerMods() {
|
|
2008
1939
|
return [css$18.root, 'uui-spinner'];
|
|
2009
1940
|
}
|
|
2010
1941
|
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
2011
1942
|
|
|
2012
|
-
var css$17 = {"root":"
|
|
1943
|
+
var css$17 = {"root":"QHjscC","page":"i166cN","spacer":"u4UqQ0","mode-ghost":"-Anqsg","modeGhost":"-Anqsg"};
|
|
2013
1944
|
|
|
2014
1945
|
function Paginator(props) {
|
|
2015
1946
|
const renderPaginator = (params) => (React__namespace.default.createElement("nav", { role: "navigation", className: cx__default.default(css$17.root, 'uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
@@ -2026,14 +1957,14 @@ function Paginator(props) {
|
|
|
2026
1957
|
return React__namespace.default.createElement(uuiComponents.Paginator, { ...props, render: renderPaginator });
|
|
2027
1958
|
}
|
|
2028
1959
|
|
|
2029
|
-
var css$16 = {"root":"
|
|
1960
|
+
var css$16 = {"root":"BDU2eY","progress-bar":"hOToff","progressBar":"hOToff","progressBar-indeterminate":"sPfRR7","progressBarIndeterminate":"sPfRR7","size-12":"t7OHC3","size12":"t7OHC3","size-18":"bvnal8","size18":"bvnal8","size-24":"TrVxth","size24":"TrVxth"};
|
|
2030
1961
|
|
|
2031
1962
|
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
2032
1963
|
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$16.root, css$16[`size-${props.size || 12}`]) },
|
|
2033
1964
|
React__namespace.createElement("div", { className: cx__default.default(css$16.progressBar) })));
|
|
2034
1965
|
});
|
|
2035
1966
|
|
|
2036
|
-
var css$15 = {"root":"
|
|
1967
|
+
var css$15 = {"root":"dqdMXf","striped":"yGqFBD","animate-stripes":"VxZzCk","animateStripes":"VxZzCk","size-12":"lyDISV","size12":"lyDISV","size-18":"RAYBZS","size18":"RAYBZS","size-24":"isJe0O","size24":"isJe0O"};
|
|
2037
1968
|
|
|
2038
1969
|
const DEFAULT_SIZE = '12';
|
|
2039
1970
|
function applyProgressBarMods(mods) {
|
|
@@ -2048,14 +1979,14 @@ const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Pro
|
|
|
2048
1979
|
hideLabel: props.hideLabel || props.striped,
|
|
2049
1980
|
}));
|
|
2050
1981
|
|
|
2051
|
-
var css$14 = {"root":"
|
|
1982
|
+
var css$14 = {"root":"_9QHUEc"};
|
|
2052
1983
|
|
|
2053
1984
|
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
2054
1985
|
const { progress } = props;
|
|
2055
1986
|
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$14.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$14.root, props.cx) }));
|
|
2056
1987
|
});
|
|
2057
1988
|
|
|
2058
|
-
var css$13 = {"root":"
|
|
1989
|
+
var css$13 = {"root":"RhPrcv"};
|
|
2059
1990
|
|
|
2060
1991
|
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
2061
1992
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
@@ -2070,28 +2001,28 @@ const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2070
2001
|
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
2071
2002
|
});
|
|
2072
2003
|
|
|
2073
|
-
var css$12 = {"drag-handle":"
|
|
2004
|
+
var css$12 = {"drag-handle":"wXEeDT","dragHandle":"wXEeDT","icon-container":"W-9nPm","iconContainer":"W-9nPm"};
|
|
2074
2005
|
|
|
2075
2006
|
function DataRowAddons(props) {
|
|
2076
2007
|
const row = props.rowProps;
|
|
2077
2008
|
const getIndent = () => {
|
|
2078
|
-
return (row.indent - 1) *
|
|
2009
|
+
return (row.indent - 1) * settings.dataTable.sizes.body.indentUnitMap[props.size || settings.dataTable.sizes.body.row];
|
|
2079
2010
|
};
|
|
2080
2011
|
const getWidth = () => {
|
|
2081
|
-
return settings.
|
|
2012
|
+
return settings.dataTable.sizes.body.indentWidthMap[props.size || settings.dataTable.sizes.body.row];
|
|
2082
2013
|
};
|
|
2083
2014
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2084
2015
|
row.dnd?.srcData && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$12.dragHandle, rawProps: { ...props.eventHandlers } }),
|
|
2085
|
-
row?.checkbox?.isVisible && (React__namespace.default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size: settings.
|
|
2016
|
+
row?.checkbox?.isVisible && (React__namespace.default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size: settings.dataTable.sizes.body.checkboxMap[props.size], value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => row.onCheck?.(row), isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
|
|
2086
2017
|
row.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: cx__default.default('uui-dr_addons-indent', `uui-size-${props.size}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__namespace.default.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
2087
2018
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
2088
2019
|
role: 'button',
|
|
2089
|
-
}, key: "icon", icon: settings.
|
|
2020
|
+
}, key: "icon", icon: settings.dataTable.icons.body.foldingIcon, cx: [
|
|
2090
2021
|
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$12.iconContainer,
|
|
2091
|
-
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.
|
|
2022
|
+
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] }))))));
|
|
2092
2023
|
}
|
|
2093
2024
|
|
|
2094
|
-
var css$11 = {"root":"
|
|
2025
|
+
var css$11 = {"root":"Mms63k"};
|
|
2095
2026
|
|
|
2096
2027
|
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$11.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__namespace.default.createElement(Spinner, null)) }));
|
|
2097
2028
|
|
|
@@ -2137,7 +2068,7 @@ const VirtualListView = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
2137
2068
|
React__namespace.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
2138
2069
|
});
|
|
2139
2070
|
|
|
2140
|
-
var css$10 = {"root":"
|
|
2071
|
+
var css$10 = {"root":"W1mzAl"};
|
|
2141
2072
|
|
|
2142
2073
|
function CheckboxGroup(props) {
|
|
2143
2074
|
const currentValue = props.value || [];
|
|
@@ -2159,13 +2090,13 @@ function CheckboxGroup(props) {
|
|
|
2159
2090
|
})));
|
|
2160
2091
|
}
|
|
2161
2092
|
|
|
2162
|
-
var css$$ = {"root":"
|
|
2093
|
+
var css$$ = {"root":"GRkPdT","modal-blocker":"Dn6N0O","modalBlocker":"Dn6N0O","animateModalBlocker":"b-0qN-","modal":"OOTMbW","modal-footer":"Ar97Yc","modalFooter":"Ar97Yc","border-top":"EH-yIV","borderTop":"EH-yIV","modal-header":"EmrRnf","modalHeader":"EmrRnf","border-bottom":"vib-sC","borderBottom":"vib-sC"};
|
|
2163
2094
|
|
|
2164
2095
|
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$$.modalBlocker]);
|
|
2165
2096
|
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$$.root, css$$.modal], (props) => {
|
|
2166
|
-
const width = props.width
|
|
2097
|
+
const width = props.width;
|
|
2167
2098
|
const height = props.height || 'auto';
|
|
2168
|
-
const maxHeight = uuiCore.isMobile() ?
|
|
2099
|
+
const maxHeight = uuiCore.isMobile() ? 'var(--uui-modals-mobile-max-height)' : (props.maxHeight || 'var(--uui-modals-max-height)');
|
|
2169
2100
|
return {
|
|
2170
2101
|
style: {
|
|
2171
2102
|
...props.style,
|
|
@@ -2175,24 +2106,20 @@ const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, (
|
|
|
2175
2106
|
},
|
|
2176
2107
|
};
|
|
2177
2108
|
});
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2109
|
+
function ModalHeader(props) {
|
|
2110
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$$.root, css$$.modalHeader, 'uui-modal-header', props.borderBottom && css$$.borderBottom, props.cx), ...props.rawProps, style: {
|
|
2111
|
+
...props.rawProps?.style,
|
|
2112
|
+
} },
|
|
2113
|
+
props.title && (React__namespace.default.createElement("div", { className: cx__default.default('uui-modal-title', 'uui-typography') }, props.title)),
|
|
2114
|
+
props.children,
|
|
2115
|
+
props.onClose && React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2116
|
+
props.onClose && (React__namespace.default.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
2117
|
+
React__namespace.default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: settings.modal.icons.closeIcon, onClick: props.onClose })))));
|
|
2187
2118
|
}
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
css$$.modalFooter,
|
|
2193
|
-
this.props.cx,
|
|
2194
|
-
], borderTop: this.props.borderTop, padding: this.props.padding || settings.modal.sizes.defaultFooterPadding, vPadding: this.props.vPadding || settings.modal.sizes.defaultFooterVPadding, rawProps: this.props.rawProps }, this.props.children));
|
|
2195
|
-
}
|
|
2119
|
+
function ModalFooter(props) {
|
|
2120
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$$.root, css$$.modalFooter, 'uui-modal-footer', props.borderTop && css$$.borderTop, props.cx), ...props.rawProps, style: {
|
|
2121
|
+
...props.rawProps?.style,
|
|
2122
|
+
} }, props.children));
|
|
2196
2123
|
}
|
|
2197
2124
|
|
|
2198
2125
|
const TREE_SHAKEABLE_INIT = () => ({
|
|
@@ -2353,7 +2280,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2353
2280
|
});
|
|
2354
2281
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
2355
2282
|
|
|
2356
|
-
var css$_ = {"root":"
|
|
2283
|
+
var css$_ = {"root":"_7N5KwP","icon-wrapper":"yCygaA","iconWrapper":"yCygaA","action-wrapper":"_2lQY38","actionWrapper":"_2lQY38","action-link":"_5NAquj","actionLink":"_5NAquj","close-icon":"wxwEAy","closeIcon":"wxwEAy","main-path":"fR2Tsm","mainPath":"fR2Tsm","content":"yAkzZT","close-wrapper":"_7HeorE","closeWrapper":"_7HeorE","notification-wrapper":"Ikr3nk","notificationWrapper":"Ikr3nk","clear-button":"A39vAF","clearButton":"A39vAF"};
|
|
2357
2284
|
|
|
2358
2285
|
const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
2359
2286
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -2386,7 +2313,7 @@ function ClearNotification() {
|
|
|
2386
2313
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
2387
2314
|
}
|
|
2388
2315
|
|
|
2389
|
-
var css$Z = {"footer":"
|
|
2316
|
+
var css$Z = {"footer":"UKxrTp"};
|
|
2390
2317
|
|
|
2391
2318
|
class ConfirmationModal extends React__namespace.Component {
|
|
2392
2319
|
render() {
|
|
@@ -2428,7 +2355,7 @@ function useReliableForceUpdate() {
|
|
|
2428
2355
|
return red[1];
|
|
2429
2356
|
}
|
|
2430
2357
|
|
|
2431
|
-
var css$Y = {"root":"
|
|
2358
|
+
var css$Y = {"root":"_8qbP70","timepicker-input":"_8iI9Xz","timepickerInput":"_8iI9Xz","ltr-always":"GoqxMW","ltrAlways":"GoqxMW"};
|
|
2432
2359
|
|
|
2433
2360
|
const uuiTimePicker = {
|
|
2434
2361
|
container: 'uui-timepicker-container',
|
|
@@ -2611,7 +2538,7 @@ function TimePicker(props) {
|
|
|
2611
2538
|
state.value && state.inputValue && saveTime(state.value);
|
|
2612
2539
|
};
|
|
2613
2540
|
const renderInput = (inputProps) => {
|
|
2614
|
-
return (React__namespace.default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size
|
|
2541
|
+
return (React__namespace.default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$Y.root, css$Y.timepickerInput, props.inputCx], value: state.inputValue, onValueChange: handleInputChange, onCancel: !props.disableClear && onClear, onFocus: handleFocus, onBlur: handleBlur, isDropdown: false, placeholder: props.placeholder ? props.placeholder : getFormat(), mode: props.mode || DEFAULT_MODE, rawProps: props.rawProps?.input }));
|
|
2615
2542
|
};
|
|
2616
2543
|
const renderBody = (bodyProps) => {
|
|
2617
2544
|
const { forwardedRef, onValueChange, ...timePickerBodyProps } = props;
|
|
@@ -2621,7 +2548,7 @@ function TimePicker(props) {
|
|
|
2621
2548
|
return (React__namespace.default.createElement(Dropdown, { renderTarget: (targetProps) => (props.renderTarget ? props.renderTarget(targetProps) : renderInput(targetProps)), renderBody: (bodyProps) => !props.isDisabled && !props.isReadonly && renderBody(bodyProps), onValueChange: !props.isDisabled && !props.isReadonly ? onToggle : null, value: state.isOpen, modifiers: [{ name: 'offset', options: { offset: [0, 6] } }], forwardedRef: props.forwardedRef }));
|
|
2622
2549
|
}
|
|
2623
2550
|
|
|
2624
|
-
var css$X = {"root":"
|
|
2551
|
+
var css$X = {"root":"_0EvB8b"};
|
|
2625
2552
|
|
|
2626
2553
|
function applyInputAddonMods() {
|
|
2627
2554
|
return [
|
|
@@ -2630,14 +2557,14 @@ function applyInputAddonMods() {
|
|
|
2630
2557
|
}
|
|
2631
2558
|
const InputAddon = /* @__PURE__ */uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
2632
2559
|
|
|
2633
|
-
var css$W = {"root":"
|
|
2560
|
+
var css$W = {"root":"_1p7ere"};
|
|
2634
2561
|
|
|
2635
2562
|
function applySliderMods() {
|
|
2636
2563
|
return [css$W.root, 'uui-color-neutral'];
|
|
2637
2564
|
}
|
|
2638
2565
|
const Slider = /* @__PURE__ */uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
2639
2566
|
|
|
2640
|
-
var css$V = {"root":"
|
|
2567
|
+
var css$V = {"root":"nRNd81","tooltip":"_8FGpYj"};
|
|
2641
2568
|
|
|
2642
2569
|
function applyRatingMods(mods) {
|
|
2643
2570
|
return [
|
|
@@ -2651,7 +2578,7 @@ const Rating = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Rating,
|
|
|
2651
2578
|
Tooltip,
|
|
2652
2579
|
}));
|
|
2653
2580
|
|
|
2654
|
-
var css$U = {"root":"
|
|
2581
|
+
var css$U = {"root":"-VD0hh","container":"_34S4zn"};
|
|
2655
2582
|
|
|
2656
2583
|
const defaultFormat = 'MMM D, YYYY';
|
|
2657
2584
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -2862,14 +2789,14 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2862
2789
|
React__namespace.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2863
2790
|
}
|
|
2864
2791
|
|
|
2865
|
-
var css$T = {"root":"
|
|
2792
|
+
var css$T = {"root":"z6vmNs"};
|
|
2866
2793
|
|
|
2867
2794
|
function applyDateSelectionMods() {
|
|
2868
|
-
return [css$T.root, `uui-size-${settings.datePicker.sizes.
|
|
2795
|
+
return [css$T.root, `uui-size-${settings.datePicker.sizes.body}`];
|
|
2869
2796
|
}
|
|
2870
2797
|
const Calendar = /* @__PURE__ */uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
2871
2798
|
|
|
2872
|
-
var css$S = {"root":"
|
|
2799
|
+
var css$S = {"root":"PPpSD-"};
|
|
2873
2800
|
|
|
2874
2801
|
const uuiDatePickerBody = {
|
|
2875
2802
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2912,7 +2839,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2912
2839
|
return (React__namespace.default.createElement(Calendar, { value: selectedDate, month: month, onValueChange: onDayClick, filter: filter, renderDay: renderDay, isHoliday: isHoliday, isDisabled: isDisabled }));
|
|
2913
2840
|
}
|
|
2914
2841
|
};
|
|
2915
|
-
return (React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(uuiDatePickerBodyBase.container, `uui-size-${settings.datePicker.sizes.
|
|
2842
|
+
return (React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(uuiDatePickerBodyBase.container, `uui-size-${settings.datePicker.sizes.body}`, classes), ...rawProps },
|
|
2916
2843
|
React__namespace.default.createElement("div", { className: uuiCore.cx(css$S.root, uuiDatePickerBody.wrapper) },
|
|
2917
2844
|
React__namespace.default.createElement(DatePickerHeader, { value: {
|
|
2918
2845
|
view,
|
|
@@ -2930,7 +2857,7 @@ const modifiers$1 = [{
|
|
|
2930
2857
|
options: { offset: [0, 6] },
|
|
2931
2858
|
}];
|
|
2932
2859
|
function DatePickerComponent(props, ref) {
|
|
2933
|
-
const { format = defaultFormat, value, size = settings.datePicker.sizes.
|
|
2860
|
+
const { format = defaultFormat, value, size = settings.datePicker.sizes.input } = props;
|
|
2934
2861
|
const context = uuiCore.useUuiContext();
|
|
2935
2862
|
const [inputValue, setInputValue] = React.useState(toCustomDateFormat(value, format));
|
|
2936
2863
|
const [isBodyOpen, setBodyIsOpen] = React.useState(false);
|
|
@@ -2995,7 +2922,7 @@ function DatePickerComponent(props, ref) {
|
|
|
2995
2922
|
}
|
|
2996
2923
|
const DatePicker = /* @__PURE__ */React__namespace.default.forwardRef(DatePickerComponent);
|
|
2997
2924
|
|
|
2998
|
-
var css$R = {"date-input":"
|
|
2925
|
+
var css$R = {"date-input":"KWy5Nx","dateInput":"KWy5Nx","root":"fVggm-","separator":"_-4EA4L","mode-form":"-HscNy","modeForm":"-HscNy","mode-cell":"_97hdBQ","modeCell":"_97hdBQ"};
|
|
2999
2926
|
|
|
3000
2927
|
const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, id, cx: classes, }, ref) => {
|
|
3001
2928
|
const [inputValue, setInputValue] = React.useState(toCustomDateRangeFormat(value, format));
|
|
@@ -3046,7 +2973,7 @@ const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isIn
|
|
|
3046
2973
|
} : undefined, onValueChange: (v) => onInputChange(v || '', 'to'), onFocus: (e) => handleFocus(e, 'to'), onBlur: (e) => handleBlur(e, 'to'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps?.to, onClick: onClick, onKeyDown: onInputKeyDown })));
|
|
3047
2974
|
});
|
|
3048
2975
|
|
|
3049
|
-
var css$Q = {"root":"
|
|
2976
|
+
var css$Q = {"root":"bP7mL2"};
|
|
3050
2977
|
|
|
3051
2978
|
const uuiPresets = {
|
|
3052
2979
|
container: 'uui-presets-container',
|
|
@@ -3063,10 +2990,10 @@ const getPresets = (presets) => {
|
|
|
3063
2990
|
function CalendarPresets(props) {
|
|
3064
2991
|
return (React__namespace.createElement("div", { ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$Q.root, props.cx), ...props.rawProps },
|
|
3065
2992
|
React__namespace.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
3066
|
-
getPresets(props.presets).map((item) => (React__namespace.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size:
|
|
2993
|
+
getPresets(props.presets).map((item) => (React__namespace.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: settings.rangeDatePicker.sizes.preset })))));
|
|
3067
2994
|
}
|
|
3068
2995
|
|
|
3069
|
-
var css$P = {"root":"
|
|
2996
|
+
var css$P = {"root":"jGbeTV","container":"ss46Jz","day-selection":"tUz2eZ","daySelection":"tUz2eZ","from-picker":"odWWTO","fromPicker":"odWWTO","to-picker":"ntFt-0","toPicker":"ntFt-0","bodes-wrapper":"cJUS8X","bodesWrapper":"cJUS8X","blocker":"OQEZcA"};
|
|
3070
2997
|
|
|
3071
2998
|
const uuiRangeDatePickerBody = {
|
|
3072
2999
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3241,7 +3168,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
3241
3168
|
return [uuiCore.cx(inRange && uuiRangeDatePickerBody.inRange, isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper, !inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper, isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper, !inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper, (dayValue === fromValue || dayValue === toValue) && uuiComponents.uuiDaySelection.selectedDay)];
|
|
3242
3169
|
};
|
|
3243
3170
|
|
|
3244
|
-
var css$O = {"dropdown-container":"
|
|
3171
|
+
var css$O = {"dropdown-container":"fse70v","dropdownContainer":"fse70v"};
|
|
3245
3172
|
|
|
3246
3173
|
const modifiers = [{
|
|
3247
3174
|
name: 'offset',
|
|
@@ -3309,7 +3236,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3309
3236
|
}
|
|
3310
3237
|
const RangeDatePicker = /* @__PURE__ */React__namespace.default.forwardRef(RangeDatePickerComponent);
|
|
3311
3238
|
|
|
3312
|
-
var css$N = {"root":"
|
|
3239
|
+
var css$N = {"root":"fcgGKr","blocker":"LYayiw","marker":"G9kt3a","top":"e9ZTvp","bottom":"yFKRaN","left":"_767gzT","right":"tahKuC","inside":"_1SbJ5P"};
|
|
3313
3240
|
|
|
3314
3241
|
function DropMarker(props) {
|
|
3315
3242
|
return props.isDndInProgress
|
|
@@ -3324,7 +3251,7 @@ function DropMarker(props) {
|
|
|
3324
3251
|
: null;
|
|
3325
3252
|
}
|
|
3326
3253
|
|
|
3327
|
-
var css$M = {"root":"
|
|
3254
|
+
var css$M = {"root":"bVIUSn","line-height":"PiBSoi","lineHeight":"PiBSoi","font-size":"TJ-U2T","fontSize":"TJ-U2T"};
|
|
3328
3255
|
|
|
3329
3256
|
function applyTextMods(mods) {
|
|
3330
3257
|
return [
|
|
@@ -3351,7 +3278,7 @@ const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, appl
|
|
|
3351
3278
|
};
|
|
3352
3279
|
});
|
|
3353
3280
|
|
|
3354
|
-
var css$L = {"root":"
|
|
3281
|
+
var css$L = {"root":"WQ5Q7s","loading-word":"q5IqY3","loadingWord":"q5IqY3","animated-loading":"_0EMt40","animatedLoading":"_0EMt40","skeleton_loading":"kjLWZu","skeletonLoading":"kjLWZu"};
|
|
3355
3282
|
|
|
3356
3283
|
const TextPlaceholder = (props) => {
|
|
3357
3284
|
const pattern = ' ';
|
|
@@ -3370,7 +3297,7 @@ const TextPlaceholder = (props) => {
|
|
|
3370
3297
|
|
|
3371
3298
|
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || settings.richTextView.sizes.default}`]);
|
|
3372
3299
|
|
|
3373
|
-
var css$K = {"modal":"
|
|
3300
|
+
var css$K = {"modal":"arlA04","search-wrapper":"xgAUF4","searchWrapper":"xgAUF4","no-data":"-bZWnM","noData":"-bZWnM","type-search-to-load-size-24":"F4k1w2","typeSearchToLoadSize24":"F4k1w2"};
|
|
3374
3301
|
|
|
3375
3302
|
class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
3376
3303
|
constructor() {
|
|
@@ -3411,7 +3338,7 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
3411
3338
|
render() {
|
|
3412
3339
|
const searchSize = this.getSearchSize();
|
|
3413
3340
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3414
|
-
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$K.searchWrapper },
|
|
3341
|
+
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: uuiCore.cx(css$K.searchWrapper, 'uui-picker_input-body-search') },
|
|
3415
3342
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
3416
3343
|
React__namespace.default.createElement(SearchInput, { ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder, ...this.searchLens.toProps(), onKeyDown: this.searchKeyDown, size: searchSize, debounceDelay: this.props.searchDebounceDelay, rawProps: { dir: 'auto' } })))),
|
|
3417
3344
|
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx('uui-picker_input-body', css$K[this.props.editMode], css$K[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight, maxWidth: this.props.maxWidth } } }, this.props.rows.length === 0 && this.props.value.topIndex === 0
|
|
@@ -3421,7 +3348,7 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
3421
3348
|
}
|
|
3422
3349
|
}
|
|
3423
3350
|
|
|
3424
|
-
var css$J = {"footer":"
|
|
3351
|
+
var css$J = {"footer":"wPqX4O"};
|
|
3425
3352
|
|
|
3426
3353
|
function DataPickerFooterImpl(props) {
|
|
3427
3354
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
@@ -3447,17 +3374,17 @@ function DataPickerFooterImpl(props) {
|
|
|
3447
3374
|
}
|
|
3448
3375
|
const DataPickerFooter = /* @__PURE__ */React__namespace.default.memo(DataPickerFooterImpl);
|
|
3449
3376
|
|
|
3450
|
-
var css$I = {"header":"
|
|
3377
|
+
var css$I = {"header":"tB-Mcy","title":"KQr7OH","close":"Q3MCTf"};
|
|
3451
3378
|
|
|
3452
3379
|
const DataPickerHeaderImpl = (props) => {
|
|
3453
3380
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
3454
|
-
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$I.header },
|
|
3455
|
-
React__namespace.default.createElement(
|
|
3381
|
+
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: [css$I.header, 'uui-picker_input-body-header'] },
|
|
3382
|
+
React__namespace.default.createElement("div", { className: css$I.title }, title),
|
|
3456
3383
|
React__namespace.default.createElement(IconButton, { icon: settings.pickerInput.icons.body.pickerBodyMobileHeaderCloseIcon, onClick: () => props.close?.(), cx: css$I.close })));
|
|
3457
3384
|
};
|
|
3458
3385
|
const DataPickerHeader = /* @__PURE__ */React__namespace.default.memo(DataPickerHeaderImpl);
|
|
3459
3386
|
|
|
3460
|
-
var css$H = {"root":"
|
|
3387
|
+
var css$H = {"root":"HhcgUX","align-widgets-top":"hK-9oZ","alignWidgetsTop":"hK-9oZ","align-widgets-center":"JXYBxf","alignWidgetsCenter":"JXYBxf","icon-container":"qOnYvL","iconContainer":"qOnYvL","loading-cell":"ib9OA2","loadingCell":"ib9OA2","content-wrapper":"xpyHIX","contentWrapper":"xpyHIX","render-item":"UYZW4D","renderItem":"UYZW4D","icon-wrapper":"_5K3S-K","iconWrapper":"_5K3S-K","icon-default":"_5itHyi","iconDefault":"_5itHyi","selected-mark":"uMkwgi","selectedMark":"uMkwgi"};
|
|
3461
3388
|
|
|
3462
3389
|
function DataPickerCell(props) {
|
|
3463
3390
|
const ref = React__namespace.useRef();
|
|
@@ -3465,21 +3392,21 @@ function DataPickerCell(props) {
|
|
|
3465
3392
|
if (props.rowProps.isLoading) {
|
|
3466
3393
|
content = (
|
|
3467
3394
|
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
3468
|
-
React__namespace.createElement(Text, { key: "t", size:
|
|
3395
|
+
React__namespace.createElement(Text, { key: "t", size: props.size, cx: css$H.loadingCell },
|
|
3469
3396
|
React__namespace.createElement(TextPlaceholder, null)));
|
|
3470
3397
|
}
|
|
3471
3398
|
else if (props.rowProps.isUnknown) {
|
|
3472
|
-
content = (React__namespace.createElement(Text, { key: "t", size:
|
|
3399
|
+
content = (React__namespace.createElement(Text, { key: "t", size: props.size }, "Unknown"));
|
|
3473
3400
|
}
|
|
3474
3401
|
else {
|
|
3475
|
-
const SelectIcon = settings.pickerInput.
|
|
3476
|
-
? settings.pickerInput.icons.body.
|
|
3477
|
-
: settings.pickerInput.icons.body.selectIcon;
|
|
3402
|
+
const SelectIcon = (typeof settings.pickerInput.icons.body.selectIcon === 'function'
|
|
3403
|
+
? settings.pickerInput.icons.body.selectIcon(props.size)
|
|
3404
|
+
: settings.pickerInput.icons.body.selectIcon);
|
|
3478
3405
|
content = (React__namespace.createElement("div", { key: `${props.rowProps.id}`, className: css$H.renderItem },
|
|
3479
3406
|
props.renderItem(props.rowProps.value, props.rowProps),
|
|
3480
3407
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
3481
|
-
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React__namespace.createElement("div", { className: uuiCore.cx(css$H.iconWrapper, uuiCore.uuiMod.selected) },
|
|
3482
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: settings.pickerInput.sizes.body.
|
|
3408
|
+
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React__namespace.createElement("div", { className: uuiCore.cx(css$H.iconWrapper, 'uui-picker_input-cell-select_icon', uuiCore.uuiMod.selected) },
|
|
3409
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: settings.pickerInput.sizes.body.selectIconMap[props.size], icon: SelectIcon, cx: props.rowProps.isChildrenSelected ? css$H.iconDefault : css$H.selectedMark, rawProps: { 'aria-label': props.rowProps.isChildrenSelected
|
|
3483
3410
|
? 'Child is selected'
|
|
3484
3411
|
: 'Selected' } })))));
|
|
3485
3412
|
}
|
|
@@ -3487,31 +3414,32 @@ function DataPickerCell(props) {
|
|
|
3487
3414
|
return (React__namespace.createElement(FlexCell, { ref: ref, grow: 1, width: 0, minWidth: 0, rawProps: { role: 'cell' }, cx: [
|
|
3488
3415
|
css$H.root,
|
|
3489
3416
|
props.cx,
|
|
3417
|
+
'uui-picker_input-cell',
|
|
3490
3418
|
'data-picker-cell',
|
|
3491
3419
|
props.size && `uui-size-${props.size}`,
|
|
3492
3420
|
css$H[`align-widgets-${props.alignActions || 'top'}`],
|
|
3493
3421
|
], style: props.padding && {
|
|
3494
|
-
'--uui-
|
|
3422
|
+
'--uui-data_picker-horizontal-padding': `${props.padding}px`,
|
|
3495
3423
|
} },
|
|
3496
3424
|
React__namespace.createElement(DataRowAddons, { size: props.size, ...props, tabIndex: -1 }),
|
|
3497
3425
|
getWrappedContent()));
|
|
3498
3426
|
}
|
|
3499
3427
|
|
|
3500
|
-
var css$G = {"picker-row":"
|
|
3428
|
+
var css$G = {"picker-row":"xRksz9","pickerRow":"xRksz9"};
|
|
3501
3429
|
|
|
3502
3430
|
class DataPickerRow extends React__namespace.Component {
|
|
3503
3431
|
constructor() {
|
|
3504
3432
|
super(...arguments);
|
|
3505
3433
|
this.renderContent = () => {
|
|
3506
|
-
return (React__namespace.createElement(DataPickerCell, { key: "name", size: this.props.size || settings.pickerInput.sizes.body.
|
|
3434
|
+
return (React__namespace.createElement(DataPickerCell, { key: "name", size: this.props.size || settings.pickerInput.sizes.body.row, padding: this.props.padding, rowProps: this.props, alignActions: this.props.alignActions || 'top', renderItem: this.props.renderItem }));
|
|
3507
3435
|
};
|
|
3508
3436
|
}
|
|
3509
3437
|
render() {
|
|
3510
|
-
return (React__namespace.createElement(uuiComponents.DataPickerRow, { ...this.props, cx: [css$G.pickerRow, this.props.cx], renderContent: this.renderContent }));
|
|
3438
|
+
return (React__namespace.createElement(uuiComponents.DataPickerRow, { ...this.props, cx: [css$G.pickerRow, 'uui-picker_input-row', this.props.cx], renderContent: this.renderContent }));
|
|
3511
3439
|
}
|
|
3512
3440
|
}
|
|
3513
3441
|
|
|
3514
|
-
var css$F = {"done":"
|
|
3442
|
+
var css$F = {"done":"Hp6d9O","container":"W4n9iR"};
|
|
3515
3443
|
|
|
3516
3444
|
const PickerBodyMobileView = (props) => {
|
|
3517
3445
|
const isMobileView = uuiCore.isMobile();
|
|
@@ -3588,28 +3516,28 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3588
3516
|
return getDecoratedText(str, ranges);
|
|
3589
3517
|
};
|
|
3590
3518
|
|
|
3591
|
-
var css$E = {"root":"
|
|
3519
|
+
var css$E = {"root":"rCIvMT","column-gap":"ILldhK","columnGap":"ILldhK","title":"magf6q","subtitle":"_17ltOR","disabled":"AofeyH","multiline":"U314R-"};
|
|
3592
3520
|
|
|
3593
3521
|
function PickerItem(props) {
|
|
3594
|
-
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon,
|
|
3595
|
-
const itemSize = size || settings.pickerInput.sizes.body.
|
|
3522
|
+
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
3523
|
+
const itemSize = size || settings.pickerInput.sizes.body.row;
|
|
3596
3524
|
const isMultiline = !!(props.title && props.subtitle);
|
|
3597
3525
|
const { search } = props.dataSourceState ?? {};
|
|
3598
3526
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(props.title, search) : props.title;
|
|
3599
3527
|
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(props.subtitle, search) : props.subtitle;
|
|
3600
|
-
return (React__namespace.createElement(FlexCell, { width: "auto", cx: [css$E.root, 'uui-typography', cx] },
|
|
3528
|
+
return (React__namespace.createElement(FlexCell, { width: "auto", cx: [css$E.root, 'uui-picker_input-item', 'uui-typography', props.cx] },
|
|
3601
3529
|
React__namespace.createElement(FlexRow, { size: itemSize, cx: [isMultiline && css$E.multiline, css$E.columnGap], rawProps: { style: { '--uui-picker_item-vertical-padding': `${settings.pickerInput.sizes.body.itemVerticalPaddingMap[itemSize]}px` } } },
|
|
3602
3530
|
avatarUrl && (React__namespace.createElement(uuiComponents.Avatar, { isLoading: isLoading, img: avatarUrl, size: getAvatarSize(itemSize, isMultiline) })),
|
|
3603
3531
|
icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: icon }),
|
|
3604
3532
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
3605
|
-
title && (React__namespace.createElement(
|
|
3606
|
-
subtitle && (React__namespace.createElement(
|
|
3533
|
+
title && (React__namespace.createElement("div", { className: cx__default.default(css$E.title, isDisabled && css$E.disabled, `uui-size-${itemSize}`) }, title)),
|
|
3534
|
+
subtitle && (React__namespace.createElement("div", { className: cx__default.default(css$E.subtitle, isDisabled && css$E.disabled, `uui-size-${itemSize}`) }, subtitle))))));
|
|
3607
3535
|
}
|
|
3608
3536
|
function getAvatarSize(size, isMultiline) {
|
|
3609
3537
|
return settings.pickerInput.sizes.body[isMultiline ? 'itemAvatarMultilineMap' : 'itemAvatarMap'][size];
|
|
3610
3538
|
}
|
|
3611
3539
|
|
|
3612
|
-
var css$D = {"sub-header-wrapper":"
|
|
3540
|
+
var css$D = {"sub-header-wrapper":"P3mvgh","subHeaderWrapper":"P3mvgh","switch":"Qqybbp","no-found-modal-container":"e14vwO","noFoundModalContainer":"e14vwO","no-found-modal-container-icon":"Fvl7ZH","noFoundModalContainerIcon":"Fvl7ZH","no-found-modal-container-text":"NrgMHA","noFoundModalContainerText":"NrgMHA"};
|
|
3613
3541
|
|
|
3614
3542
|
function PickerModal(props) {
|
|
3615
3543
|
const { view, selection, dataSourceStateLens, dataSourceState, getDataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = uuiComponents.usePickerModal(props);
|
|
@@ -3623,10 +3551,10 @@ function PickerModal(props) {
|
|
|
3623
3551
|
};
|
|
3624
3552
|
const renderItem = (item, rowProps, dsState) => {
|
|
3625
3553
|
const { flattenSearchResults } = view.getConfig();
|
|
3626
|
-
return (React__namespace.default.createElement(PickerItem, { title: getName(item),
|
|
3554
|
+
return (React__namespace.default.createElement(PickerItem, { title: getName(item), dataSourceState: dsState, ...(flattenSearchResults ? { subtitle: getSubtitle(rowProps, dataSourceState) } : {}), ...rowProps }));
|
|
3627
3555
|
};
|
|
3628
3556
|
const renderRow = (rowProps) => {
|
|
3629
|
-
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React__namespace.default.createElement(DataPickerRow, { ...rowProps, key: rowProps.rowKey, padding: "24",
|
|
3557
|
+
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React__namespace.default.createElement(DataPickerRow, { ...rowProps, key: rowProps.rowKey, padding: "24", renderItem: (item, itemProps) => renderItem(item, itemProps, dataSourceState) }));
|
|
3630
3558
|
};
|
|
3631
3559
|
const renderFooter = () => {
|
|
3632
3560
|
const hasSelection = view.getSelectedRowsCount() > 0;
|
|
@@ -3641,8 +3569,8 @@ function PickerModal(props) {
|
|
|
3641
3569
|
const renderNotFound = () => {
|
|
3642
3570
|
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__namespace.default.createElement("div", { className: css$D.noFoundModalContainer },
|
|
3643
3571
|
React__namespace.default.createElement(uuiComponents.IconContainer, { cx: css$D.noFoundModalContainerIcon, icon: settings.pickerInput.icons.body.modalNotFoundSearchIcon }),
|
|
3644
|
-
React__namespace.default.createElement(Text, { cx: css$D.noFoundModalContainerText, fontWeight: "600", fontSize: "16", lineHeight: "24", color: "primary"
|
|
3645
|
-
React__namespace.default.createElement(Text, { cx: css$D.noFoundModalContainerText, fontSize: "12", lineHeight: "18", color: "primary"
|
|
3572
|
+
React__namespace.default.createElement(Text, { cx: css$D.noFoundModalContainerText, fontWeight: "600", fontSize: "16", lineHeight: "24", color: "primary" }, i18n.dataPickerBody.noRecordsMessage),
|
|
3573
|
+
React__namespace.default.createElement(Text, { cx: css$D.noFoundModalContainerText, fontSize: "12", lineHeight: "18", color: "primary" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
3646
3574
|
};
|
|
3647
3575
|
const dataRows = getRows();
|
|
3648
3576
|
const rows = dataRows.map((row) => renderRow(row));
|
|
@@ -3658,13 +3586,13 @@ function PickerModal(props) {
|
|
|
3658
3586
|
rows: dataRows,
|
|
3659
3587
|
searchPosition: 'body',
|
|
3660
3588
|
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder, rawProps: { dir: 'auto' } })),
|
|
3661
|
-
!isSingleSelect() && (React__namespace.default.createElement(Switch, { cx: css$D.switch, size:
|
|
3589
|
+
!isSingleSelect() && (React__namespace.default.createElement(Switch, { cx: css$D.switch, size: settings.pickerInput.sizes.body.footerSwitchMap[settings.pickerInput.sizes.body.row], ...getFooterProps().showSelected, isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" })),
|
|
3662
3590
|
props.renderFilter && React__namespace.default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
3663
3591
|
React__namespace.default.createElement(DataPickerBody, { ...getListProps(), value: getDataSourceState(), onValueChange: handleDataSourceValueChange, search: dataSourceStateLens.prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: renderNotFound, editMode: "modal" }),
|
|
3664
|
-
React__namespace.default.createElement(ModalFooter,
|
|
3592
|
+
React__namespace.default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3665
3593
|
}
|
|
3666
3594
|
|
|
3667
|
-
var css$C = {"tooltip":"
|
|
3595
|
+
var css$C = {"tooltip":"W13Z6-"};
|
|
3668
3596
|
|
|
3669
3597
|
const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3670
3598
|
const tagProps = {
|
|
@@ -3683,7 +3611,7 @@ const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
3683
3611
|
}
|
|
3684
3612
|
});
|
|
3685
3613
|
|
|
3686
|
-
var css$B = {"root":"
|
|
3614
|
+
var css$B = {"root":"rCoQlF","mode-form":"K6TUt-","modeForm":"K6TUt-","mode-cell":"NUa-OE","modeCell":"NUa-OE","mode-inline":"_2x-uYn","modeInline":"_2x-uYn"};
|
|
3687
3615
|
|
|
3688
3616
|
const defaultMode = EditMode.FORM;
|
|
3689
3617
|
function applyPickerTogglerMods(mods) {
|
|
@@ -3696,7 +3624,7 @@ function applyPickerTogglerMods(mods) {
|
|
|
3696
3624
|
}
|
|
3697
3625
|
function PickerTogglerComponent(props, ref) {
|
|
3698
3626
|
const renderItem = (itemProps) => {
|
|
3699
|
-
const itemPropsWithSize = { ...itemProps, size: props.size || settings.pickerInput.sizes.toggler.
|
|
3627
|
+
const itemPropsWithSize = { ...itemProps, size: props.size || settings.pickerInput.sizes.toggler.tag };
|
|
3700
3628
|
if (!!props.renderItem) {
|
|
3701
3629
|
return props.renderItem(itemPropsWithSize);
|
|
3702
3630
|
}
|
|
@@ -3744,15 +3672,13 @@ function PickerInputComponent({ highlightSearchMatches = true, ...props }, ref)
|
|
|
3744
3672
|
const footerProps = getFooterProps();
|
|
3745
3673
|
return props.renderFooter
|
|
3746
3674
|
? props.renderFooter(footerProps)
|
|
3747
|
-
: React__namespace.default.createElement(DataPickerFooter, { ...footerProps, size: props.size || settings.pickerInput.sizes.body.
|
|
3675
|
+
: React__namespace.default.createElement(DataPickerFooter, { ...footerProps, size: props.size || settings.pickerInput.sizes.body.row });
|
|
3748
3676
|
};
|
|
3749
3677
|
const getRowSize = () => {
|
|
3750
3678
|
if (uuiCore.isMobile()) {
|
|
3751
3679
|
return settings.pickerInput.sizes.body.mobileRow;
|
|
3752
3680
|
}
|
|
3753
|
-
return props.
|
|
3754
|
-
? settings.pickerInput.sizes.body.modalRow
|
|
3755
|
-
: (props.size || settings.pickerInput.sizes.body.defaultRow);
|
|
3681
|
+
return props.size || settings.pickerInput.sizes.body.row;
|
|
3756
3682
|
};
|
|
3757
3683
|
const getSubtitle = ({ path }, { search }) => {
|
|
3758
3684
|
if (!search)
|
|
@@ -3767,13 +3693,13 @@ function PickerInputComponent({ highlightSearchMatches = true, ...props }, ref)
|
|
|
3767
3693
|
return (React__namespace.default.createElement(PickerItem, { title: getName(item), size: getRowSize(), dataSourceState: dsState, highlightSearchMatches: highlightSearchMatches, ...(flattenSearchResults ? { subtitle: getSubtitle(rowProps, dataSourceState) } : {}), ...rowProps }));
|
|
3768
3694
|
};
|
|
3769
3695
|
const renderRow = (rowProps, dsState) => {
|
|
3770
|
-
return props.renderRow ? (props.renderRow(rowProps, dsState)) : (React__namespace.default.createElement(DataPickerRow, { ...rowProps, key: rowProps.rowKey, size: getRowSize(), padding: props.editMode === '
|
|
3696
|
+
return props.renderRow ? (props.renderRow(rowProps, dsState)) : (React__namespace.default.createElement(DataPickerRow, { ...rowProps, key: rowProps.rowKey, size: getRowSize(), padding: props.editMode === 'dropdown' ? settings.pickerInput.sizes.body.padding : undefined, renderItem: (item, itemProps) => renderRowItem(item, itemProps, dsState) }));
|
|
3771
3697
|
};
|
|
3772
3698
|
const renderBody = (bodyProps, rows) => {
|
|
3773
3699
|
const renderedDataRows = rows.map((row) => renderRow(row, dataSourceState));
|
|
3774
3700
|
const bodyHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : props.dropdownHeight || settings.pickerInput.sizes.body.maxHeight;
|
|
3775
3701
|
const minBodyWidth = props.minBodyWidth || settings.pickerInput.sizes.body.minWidth;
|
|
3776
|
-
return (React__namespace.default.createElement(PickerBodyMobileView, { title: props.entityName, onClose: () => toggleBodyOpening(false), cx: [props.bodyCx], onKeyDown: bodyProps.onKeyDown, width: bodyProps.togglerWidth > minBodyWidth ? bodyProps.togglerWidth : minBodyWidth, focusLock: getSearchPosition() === 'body' },
|
|
3702
|
+
return (React__namespace.default.createElement(PickerBodyMobileView, { title: props.entityName, onClose: () => toggleBodyOpening(false), cx: [props.bodyCx, 'uui-picker_input-body-wrapper'], onKeyDown: bodyProps.onKeyDown, width: bodyProps.togglerWidth > minBodyWidth ? bodyProps.togglerWidth : minBodyWidth, focusLock: getSearchPosition() === 'body' },
|
|
3777
3703
|
React__namespace.default.createElement(DataPickerBody, { ...bodyProps, rows: renderedDataRows, maxHeight: bodyHeight, searchSize: props.size, editMode: "dropdown", selectionMode: props.selectionMode }),
|
|
3778
3704
|
renderFooter()));
|
|
3779
3705
|
};
|
|
@@ -3786,7 +3712,7 @@ function PickerInputComponent({ highlightSearchMatches = true, ...props }, ref)
|
|
|
3786
3712
|
}
|
|
3787
3713
|
const PickerInput = /* @__PURE__ */React__namespace.default.forwardRef(PickerInputComponent);
|
|
3788
3714
|
|
|
3789
|
-
var css$A = {"row":"
|
|
3715
|
+
var css$A = {"row":"mDnKOK"};
|
|
3790
3716
|
|
|
3791
3717
|
function PickerListItem(props) {
|
|
3792
3718
|
let label;
|
|
@@ -3806,7 +3732,7 @@ function PickerListItem(props) {
|
|
|
3806
3732
|
return (React__namespace.default.createElement("div", { role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1, ...(props.checkbox?.isVisible && { 'aria-checked': props.isChecked }), className: css$A.row }, component));
|
|
3807
3733
|
}
|
|
3808
3734
|
|
|
3809
|
-
var css$z = {"root":"
|
|
3735
|
+
var css$z = {"root":"A7Wa-A"};
|
|
3810
3736
|
|
|
3811
3737
|
function PickerList(props) {
|
|
3812
3738
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
@@ -3841,7 +3767,7 @@ function PickerList(props) {
|
|
|
3841
3767
|
}, selectedRows)));
|
|
3842
3768
|
}
|
|
3843
3769
|
|
|
3844
|
-
var css$y = {"root":"
|
|
3770
|
+
var css$y = {"root":"_1XdjbN","wrapper":"qzABZz","align-widgets-top":"_1Dc-ud","alignWidgetsTop":"_1Dc-ud","align-widgets-center":"ARkF0y","alignWidgetsCenter":"ARkF0y"};
|
|
3845
3771
|
|
|
3846
3772
|
function DataTableCell(initialProps) {
|
|
3847
3773
|
const props = { ...initialProps };
|
|
@@ -3849,48 +3775,48 @@ function DataTableCell(initialProps) {
|
|
|
3849
3775
|
props.addons = React__namespace.createElement(DataRowAddons, { size: props.size, ...props });
|
|
3850
3776
|
}
|
|
3851
3777
|
props.renderPlaceholder = props.renderPlaceholder
|
|
3852
|
-
|| (() => (React__namespace.createElement(Text, { key: "t", size:
|
|
3778
|
+
|| (() => (React__namespace.createElement(Text, { key: "t", size: props.size },
|
|
3853
3779
|
React__namespace.createElement(TextPlaceholder, { isNotAnimated: true }))));
|
|
3854
3780
|
props.renderUnknown = props.renderUnknown
|
|
3855
|
-
|| (() => (React__namespace.createElement(Text, { key: "t", size:
|
|
3781
|
+
|| (() => (React__namespace.createElement(Text, { key: "t", size: props.size }, "Unknown")));
|
|
3856
3782
|
props.renderTooltip = (tooltipProps) => React__namespace.createElement(Tooltip, { color: "critical", ...tooltipProps });
|
|
3857
3783
|
const isEditable = !!props.onValueChange;
|
|
3858
3784
|
const getLeftPadding = () => {
|
|
3859
3785
|
const { rowProps: { isLoading }, columnsGap, isFirstColumn } = props;
|
|
3860
3786
|
if (isFirstColumn && isEditable && !isLoading)
|
|
3861
|
-
return
|
|
3787
|
+
return 'var(--uui-dt-cell-padding)';
|
|
3862
3788
|
if (isEditable && !isLoading)
|
|
3863
|
-
return '
|
|
3789
|
+
return '0px';
|
|
3864
3790
|
if (columnsGap)
|
|
3865
|
-
return isFirstColumn ? columnsGap : +columnsGap / 2
|
|
3866
|
-
return isFirstColumn ?
|
|
3791
|
+
return isFirstColumn ? `${columnsGap}px` : `${+columnsGap / 2}px`;
|
|
3792
|
+
return `var(--uui-dt-cell-padding${isFirstColumn ? '-edge' : ''})`;
|
|
3867
3793
|
};
|
|
3868
3794
|
const getRightPadding = () => {
|
|
3869
3795
|
const { rowProps: { isLoading }, columnsGap, isLastColumn } = props;
|
|
3870
3796
|
if (isEditable && !isLoading)
|
|
3871
|
-
return '
|
|
3797
|
+
return '0px';
|
|
3872
3798
|
if (columnsGap)
|
|
3873
|
-
return isLastColumn ? columnsGap : +columnsGap / 2
|
|
3874
|
-
return isLastColumn ?
|
|
3799
|
+
return isLastColumn ? `${columnsGap}px` : `${+columnsGap / 2}px`;
|
|
3800
|
+
return `var(--uui-dt-cell-padding${isLastColumn ? '-edge' : ''})`;
|
|
3875
3801
|
};
|
|
3876
3802
|
props.cx = [
|
|
3877
3803
|
'data-table-cell',
|
|
3878
3804
|
css$y.root,
|
|
3879
3805
|
props.cx,
|
|
3880
|
-
'uui-size-' + (props.size || settings.dataTable.sizes.body.
|
|
3806
|
+
'uui-size-' + (props.size || settings.dataTable.sizes.body.row),
|
|
3881
3807
|
props.isFirstColumn && 'uui-dt-first-column',
|
|
3882
3808
|
props.isLastColumn && 'uui-dt-last-column',
|
|
3883
3809
|
css$y[`align-widgets-${props.alignActions || 'top'}`],
|
|
3884
3810
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
3885
3811
|
];
|
|
3886
3812
|
props.style = {
|
|
3887
|
-
'--uui-dt-cell-padding-start':
|
|
3888
|
-
'--uui-dt-cell-padding-end':
|
|
3813
|
+
'--uui-dt-cell-padding-start': getLeftPadding(),
|
|
3814
|
+
'--uui-dt-cell-padding-end': getRightPadding(),
|
|
3889
3815
|
};
|
|
3890
3816
|
return React__namespace.createElement(uuiComponents.DataTableCell, { ...props });
|
|
3891
3817
|
}
|
|
3892
3818
|
|
|
3893
|
-
var css$x = {"root":"
|
|
3819
|
+
var css$x = {"root":"u8eQGK"};
|
|
3894
3820
|
|
|
3895
3821
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3896
3822
|
// As we need our mods to style the cell properly, we extract them from DataTableCellProps.rowProps, which is a hack, but it's reliable enough.
|
|
@@ -3902,11 +3828,11 @@ const renderDropMarkers = ({ ref, ...props }) => React__namespace.createElement(
|
|
|
3902
3828
|
const propsMods = { renderCell, renderDropMarkers };
|
|
3903
3829
|
const DataTableRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableRow, ({ borderBottom = true, size }) => {
|
|
3904
3830
|
return [
|
|
3905
|
-
css$x.root, 'uui-dt-vars', borderBottom && 'uui-dt-row-border', `uui-size-${size || settings.dataTable.sizes.body.
|
|
3831
|
+
css$x.root, 'uui-dt-vars', borderBottom && 'uui-dt-row-border', `uui-size-${size || settings.dataTable.sizes.body.row}`,
|
|
3906
3832
|
];
|
|
3907
3833
|
}, () => propsMods);
|
|
3908
3834
|
|
|
3909
|
-
var css$w = {"sorting-panel-container":"
|
|
3835
|
+
var css$w = {"sorting-panel-container":"C87L3Z","sortingPanelContainer":"C87L3Z"};
|
|
3910
3836
|
|
|
3911
3837
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3912
3838
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
@@ -3931,7 +3857,7 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
3931
3857
|
};
|
|
3932
3858
|
const ColumnHeaderDropdown = /* @__PURE__ */React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
3933
3859
|
|
|
3934
|
-
var css$v = {"root":"
|
|
3860
|
+
var css$v = {"root":"nNFVjv","caption-wrapper":"npggj0","captionWrapper":"npggj0","sort-icon":"GUsQeW","sortIcon":"GUsQeW","dropdown-icon":"DJqWZt","dropdownIcon":"DJqWZt","infoIcon":"_2lxre3","resizable":"D0sOqj","align-right":"T69CmV","alignRight":"T69CmV","align-center":"_2wpxL-","alignCenter":"_2wpxL-","caption":"_53eWUr","truncate":"fOr1cr","upper-case":"-f1SyF","upperCase":"-f1SyF","checkbox":"kjRHKF","icon":"xFUjYH","fold-all-icon":"Kv11HJ","foldAllIcon":"Kv11HJ","cell-tooltip":"_6J-M-f","cellTooltip":"_6J-M-f","resizing-marker":"SlqAyw","resizingMarker":"SlqAyw","pinned-right":"pVdQnj","pinnedRight":"pVdQnj","draggable":"Uu4dPC","ghost":"A9Vqiq","is-dragged-out":"SbCP43","isDraggedOut":"SbCP43","dnd-marker-left":"_2Kato0","dndMarkerLeft":"_2Kato0","dnd-marker-right":"mpFa3g","dndMarkerRight":"mpFa3g","cell-tooltip-wrapper":"R17D1Q","cellTooltipWrapper":"R17D1Q","cell-tooltip-text":"_4Rswgk","cellTooltipText":"_4Rswgk","tooltip-caption":"_3Atr3M","tooltipCaption":"_3Atr3M","tooltip-info":"ZLOO7Q","tooltipInfo":"ZLOO7Q"};
|
|
3935
3861
|
|
|
3936
3862
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
3937
3863
|
constructor() {
|
|
@@ -3944,22 +3870,23 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3944
3870
|
column.info && (React__namespace.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipInfo] }, column.info))));
|
|
3945
3871
|
this.getColumnCaption = () => {
|
|
3946
3872
|
const renderTooltip = this.props.column.renderTooltip || this.getTooltipContent;
|
|
3947
|
-
const captionCx = [
|
|
3873
|
+
const captionCx = uuiCore.cx([
|
|
3948
3874
|
css$v.caption,
|
|
3949
3875
|
this.props.textCase === 'upper' && css$v.upperCase,
|
|
3950
3876
|
uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaption,
|
|
3877
|
+
'uui-typography-inline',
|
|
3951
3878
|
this.props.size >= '48' && css$v.truncate,
|
|
3952
|
-
];
|
|
3879
|
+
]);
|
|
3953
3880
|
return (React__namespace.createElement("div", { className: uuiCore.cx(css$v.captionWrapper, css$v['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
3954
3881
|
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: css$v.cellTooltip, openDelay: 600 },
|
|
3955
|
-
React__namespace.createElement(
|
|
3882
|
+
React__namespace.createElement("div", { key: "text", className: captionCx }, this.props.column.caption)),
|
|
3956
3883
|
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$v.icon, css$v.sortIcon, this.props.sortDirection && css$v.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'neutral' : 'secondary', icon: settings.dataTable.icons.header[this.props.sortDirection === 'desc' ? 'descSortIcon' : this.props.sortDirection === 'asc' ? 'ascSortIcon' : 'defaultSortIcon'] })),
|
|
3957
3884
|
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$v.icon, !this.props.sortDirection && css$v.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "neutral", icon: settings.dataTable.icons.header.filterIcon })),
|
|
3958
3885
|
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$v.icon, css$v.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: settings.dataTable.icons.header[this.state.isDropdownOpen ? 'openedDropdownIcon' : 'dropdownIcon'] }))));
|
|
3959
3886
|
};
|
|
3960
3887
|
this.renderHeaderCheckbox = () => {
|
|
3961
3888
|
if (this.props.selectAll && this.props.isFirstColumn) {
|
|
3962
|
-
return (React__namespace.createElement(Checkbox, { size: settings.dataTable.sizes.
|
|
3889
|
+
return (React__namespace.createElement(Checkbox, { size: settings.dataTable.sizes.body.checkboxMap[this.props.size], ...this.props.selectAll, cx: uuiCore.cx(css$v.checkbox, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCheckbox) }));
|
|
3963
3890
|
}
|
|
3964
3891
|
};
|
|
3965
3892
|
this.renderFoldAllIcon = () => {
|
|
@@ -3979,32 +3906,32 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3979
3906
|
this.getLeftPadding = () => {
|
|
3980
3907
|
const { columnsGap, isFirstColumn } = this.props;
|
|
3981
3908
|
if (columnsGap)
|
|
3982
|
-
return isFirstColumn ? columnsGap : +columnsGap / 2
|
|
3983
|
-
return isFirstColumn ?
|
|
3909
|
+
return isFirstColumn ? `${columnsGap}px` : `${+columnsGap / 2}px`;
|
|
3910
|
+
return `var(--uui-dt-header-cell-padding${isFirstColumn ? '-edge' : ''})`;
|
|
3984
3911
|
};
|
|
3985
3912
|
this.getRightPadding = () => {
|
|
3986
3913
|
const { columnsGap, isLastColumn } = this.props;
|
|
3987
3914
|
if (columnsGap)
|
|
3988
|
-
return isLastColumn ? columnsGap : +columnsGap / 2
|
|
3989
|
-
return isLastColumn ?
|
|
3915
|
+
return isLastColumn ? `${columnsGap}px` : `${+columnsGap / 2}px`;
|
|
3916
|
+
return `var(--uui-dt-header-cell-padding${isLastColumn ? '-edge' : ''})`;
|
|
3990
3917
|
};
|
|
3991
3918
|
this.getResizingMarkerWidth = () => {
|
|
3992
3919
|
const { columnsGap } = this.props;
|
|
3993
|
-
return columnsGap ? +columnsGap / 2 :
|
|
3920
|
+
return columnsGap ? `${+columnsGap / 2}px` : 'var(--uui-resize-marker-width)';
|
|
3994
3921
|
};
|
|
3995
3922
|
this.renderCellContent = (props, dropdownProps) => {
|
|
3996
3923
|
const isResizable = this.props.column.allowResizing ?? this.props.allowColumnsResizing;
|
|
3997
3924
|
const onClickEvent = !props.isResizing && (!this.props.column.renderFilter ? props.toggleSort : dropdownProps?.onClick);
|
|
3998
3925
|
const computeStyles = {
|
|
3999
|
-
'--uui-dt-header-cell-icon-size': `${settings.dataTable.sizes.header.
|
|
4000
|
-
'--uui-dt-header-cell-padding-start':
|
|
4001
|
-
'--uui-dt-header-cell-padding-end':
|
|
4002
|
-
'--uui-dt-header-cell-resizing-marker-width':
|
|
3926
|
+
'--uui-dt-header-cell-icon-size': `${settings.dataTable.sizes.header.iconMap[this.props.size || settings.dataTable.sizes.header.row]}px`,
|
|
3927
|
+
'--uui-dt-header-cell-padding-start': this.getLeftPadding(),
|
|
3928
|
+
'--uui-dt-header-cell-padding-end': this.getRightPadding(),
|
|
3929
|
+
'--uui-dt-header-cell-resizing-marker-width': this.getResizingMarkerWidth(),
|
|
4003
3930
|
};
|
|
4004
3931
|
return (React__namespace.createElement(uuiComponents.DataTableCellContainer, { column: this.props.column, ref: (ref) => {
|
|
4005
3932
|
props.ref(ref);
|
|
4006
3933
|
dropdownProps?.ref?.(ref);
|
|
4007
|
-
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$v.root, `uui-size-${this.props.size || settings.dataTable.sizes.header.
|
|
3934
|
+
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$v.root, `uui-size-${this.props.size || settings.dataTable.sizes.header.row}`, this.props.isFirstColumn && 'uui-dt-header-first-column', this.props.isLastColumn && 'uui-dt-header-last-column', this.props.column.fix && css$v['pinned-' + this.props.column.fix], isResizable && css$v.resizable, props.isDraggable && css$v.draggable, props.isDragGhost && css$v.ghost, props.isDraggedOut && css$v.isDraggedOut, props.isDndInProgress && css$v['dnd-marker-' + props.position]), onClick: onClickEvent, rawProps: {
|
|
4008
3935
|
role: 'columnheader',
|
|
4009
3936
|
'aria-sort': this.props.sortDirection === 'asc' ? 'ascending' : this.props.sortDirection ? 'descending' : 'none',
|
|
4010
3937
|
...props.eventHandlers,
|
|
@@ -4024,7 +3951,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
4024
3951
|
}
|
|
4025
3952
|
}
|
|
4026
3953
|
|
|
4027
|
-
var css$u = {"root":"
|
|
3954
|
+
var css$u = {"root":"nnmUsE","caption-wrapper":"NWIalo","captionWrapper":"NWIalo","align-center":"UH7NoV","alignCenter":"UH7NoV","caption":"yYFm7f","truncate":"Q2DOnW","upper-case":"X2Dsm3","upperCase":"X2Dsm3","group-cell-tooltip":"v66jw-","groupCellTooltip":"v66jw-","group-cell-tooltip-wrapper":"_9vdvGJ","groupCellTooltipWrapper":"_9vdvGJ","group-cell-tooltip-text":"jFcg5i","groupCellTooltipText":"jFcg5i","tooltip-caption":"Xp-SPL","tooltipCaption":"Xp-SPL","tooltip-info":"_8B8Zji","tooltipInfo":"_8B8Zji"};
|
|
4028
3955
|
|
|
4029
3956
|
class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
4030
3957
|
constructor() {
|
|
@@ -4034,39 +3961,22 @@ class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
|
4034
3961
|
column.info && (React__namespace.createElement(Text, { cx: [css$u.groupCellTooltipText, css$u.tooltipInfo] }, column.info))));
|
|
4035
3962
|
this.getColumnCaption = () => {
|
|
4036
3963
|
const renderTooltip = this.props.group.renderTooltip || this.getTooltipContent;
|
|
4037
|
-
const captionCx =
|
|
4038
|
-
css$u.caption,
|
|
4039
|
-
this.props.textCase === 'upper' && css$u.upperCase,
|
|
4040
|
-
uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaption,
|
|
4041
|
-
this.props.size >= '48' && css$u.truncate,
|
|
4042
|
-
];
|
|
3964
|
+
const captionCx = uuiCore.cx(css$u.caption, this.props.textCase === 'upper' && css$u.upperCase, uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaption, 'uui-typography-inline', this.props.size >= '48' && css$u.truncate);
|
|
4043
3965
|
return (React__namespace.createElement("div", { className: uuiCore.cx(css$u.captionWrapper, css$u['align-' + this.props.group.textAlign], uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaptionWrapper) },
|
|
4044
3966
|
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.group), cx: css$u.groupCellTooltip, openDelay: 600 },
|
|
4045
|
-
React__namespace.createElement(
|
|
3967
|
+
React__namespace.createElement("div", { key: "text", className: captionCx }, this.props.group.caption))));
|
|
4046
3968
|
};
|
|
4047
3969
|
this.getLeftPadding = () => {
|
|
4048
3970
|
const { columnsGap, isFirstCell } = this.props;
|
|
4049
3971
|
if (columnsGap)
|
|
4050
|
-
return isFirstCell ? columnsGap : +columnsGap / 2
|
|
4051
|
-
return isFirstCell ?
|
|
3972
|
+
return isFirstCell ? `${columnsGap}px` : `${+columnsGap / 2}px`;
|
|
3973
|
+
return `var(--uui-dt-header-group-cell-padding${isFirstCell ? '-edge' : ''})`;
|
|
4052
3974
|
};
|
|
4053
3975
|
this.getRightPadding = () => {
|
|
4054
3976
|
const { columnsGap, isLastCell } = this.props;
|
|
4055
3977
|
if (columnsGap)
|
|
4056
|
-
return isLastCell ? columnsGap : +columnsGap / 2
|
|
4057
|
-
return isLastCell ?
|
|
4058
|
-
};
|
|
4059
|
-
this.renderCellContent = (props) => {
|
|
4060
|
-
const computeStyles = {
|
|
4061
|
-
'--uui-dt-header-group-cell-padding-start': `${this.getLeftPadding()}px`,
|
|
4062
|
-
'--uui-dt-header-group-cell-padding-end': `${this.getRightPadding()}px`,
|
|
4063
|
-
};
|
|
4064
|
-
return (React__namespace.createElement(uuiComponents.DataTableCellContainer, { column: this.props.group, ref: (ref) => {
|
|
4065
|
-
props.ref(ref);
|
|
4066
|
-
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCell, css$u.root, `uui-size-${this.props.size || settings.dataTable.sizes.header.defaultGroupCell}`, this.props.isFirstCell && 'uui-dt-header-first-column', this.props.isLastCell && 'uui-dt-header-last-column'), rawProps: {
|
|
4067
|
-
role: 'columnheader',
|
|
4068
|
-
...props.eventHandlers,
|
|
4069
|
-
}, style: computeStyles }, this.getColumnCaption()));
|
|
3978
|
+
return isLastCell ? `${columnsGap}px` : `${+columnsGap / 2}px`;
|
|
3979
|
+
return `var(--uui-dt-header-group-cell-padding${isLastCell ? '-edge' : ''})`;
|
|
4070
3980
|
};
|
|
4071
3981
|
}
|
|
4072
3982
|
render() {
|
|
@@ -4074,19 +3984,19 @@ class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
|
4074
3984
|
return this.props.group.renderHeaderCell(this.props);
|
|
4075
3985
|
}
|
|
4076
3986
|
const computeStyles = {
|
|
4077
|
-
'--uui-dt-header-group-cell-padding-start':
|
|
4078
|
-
'--uui-dt-header-group-cell-padding-end':
|
|
3987
|
+
'--uui-dt-header-group-cell-padding-start': this.getLeftPadding(),
|
|
3988
|
+
'--uui-dt-header-group-cell-padding-end': this.getRightPadding(),
|
|
4079
3989
|
};
|
|
4080
|
-
return (React__namespace.createElement(uuiComponents.DataTableCellContainer, { column: this.props.group, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCell, css$u.root, `uui-size-${this.props.size || settings.dataTable.sizes.header.
|
|
3990
|
+
return (React__namespace.createElement(uuiComponents.DataTableCellContainer, { column: this.props.group, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCell, css$u.root, `uui-size-${this.props.size || settings.dataTable.sizes.header.row}`, this.props.isFirstCell && 'uui-dt-header-first-column', this.props.isLastCell && 'uui-dt-header-last-column'), rawProps: { role: 'columnheader' }, style: computeStyles }, this.getColumnCaption()));
|
|
4081
3991
|
}
|
|
4082
3992
|
}
|
|
4083
3993
|
|
|
4084
|
-
var css$t = {"root":"
|
|
3994
|
+
var css$t = {"root":"C98oWG"};
|
|
4085
3995
|
|
|
4086
3996
|
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$t.root, 'uui-dt-vars'], (mods) => ({
|
|
4087
3997
|
renderCell: (props) => (React__namespace.createElement(DataTableHeaderCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
|
|
4088
3998
|
renderGroupCell: (props) => (React__namespace.createElement(DataTableHeaderGroupCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.key, columnsGap: mods.columnsGap })),
|
|
4089
|
-
renderConfigButton: () => (React__namespace.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: ['config-icon', `uui-size-${settings.dataTable.sizes.header.
|
|
3999
|
+
renderConfigButton: () => (React__namespace.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: ['config-icon', `uui-size-${settings.dataTable.sizes.header.iconMap[mods.size || settings.dataTable.sizes.header.row]}`], color: "neutral", icon: settings.dataTable.icons.header.configIcon })),
|
|
4090
4000
|
}));
|
|
4091
4001
|
|
|
4092
4002
|
const UUI_FILTERS_PANEL_ADD_BUTTON = 'uui-filters-panel-add-button';
|
|
@@ -4094,15 +4004,14 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
4094
4004
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
4095
4005
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
4096
4006
|
|
|
4097
|
-
var css$s = {"root":"
|
|
4007
|
+
var css$s = {"root":"NYRimP","title-wrapper":"ySAYFb","titleWrapper":"ySAYFb","title":"cZP9sj","text-wrapper":"_5PBzw7","textWrapper":"_5PBzw7","selection":"_7LpIPy","postfix":"_9hXPWM","selected":"_-2c0e0"};
|
|
4098
4008
|
|
|
4099
|
-
const defaultSize = '36';
|
|
4100
4009
|
const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4101
4010
|
const togglerPickerOpened = (e) => {
|
|
4102
4011
|
if (props.isDisabled)
|
|
4103
4012
|
return;
|
|
4104
4013
|
e.preventDefault();
|
|
4105
|
-
props.onClick?.();
|
|
4014
|
+
!uuiCore.isEventTargetInsideClickable(e) && props.onClick?.();
|
|
4106
4015
|
};
|
|
4107
4016
|
const onKeyDownHandler = (e) => {
|
|
4108
4017
|
if (props.isDisabled)
|
|
@@ -4120,13 +4029,8 @@ const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props
|
|
|
4120
4029
|
const getSelectionText = () => props.selection.map((i, index) => (React__namespace.createElement(React__namespace.Fragment, { key: `${i}${index}` },
|
|
4121
4030
|
React__namespace.createElement(Text, { color: "primary", size: props.size, cx: css$s.selection }, i),
|
|
4122
4031
|
(props.postfix || index !== props.selection.length - 1) && React__namespace.createElement("span", null, ",\u00A0"))));
|
|
4123
|
-
return (React__namespace.createElement(
|
|
4124
|
-
|
|
4125
|
-
role: 'button',
|
|
4126
|
-
tabIndex: props.isDisabled ? -1 : 0,
|
|
4127
|
-
onKeyDown: onKeyDownHandler,
|
|
4128
|
-
}, cx: cx__default.default(UUI_FILTERS_PANEL_ITEM_TOGGLER, css$s.root, uuiCore.uuiElement.inputBox, uuiCore.uuiMarkers.clickable, props.isOpen && uuiCore.uuiMod.opened, `uui-size-${props.size || defaultSize}`, props.cx), onClick: togglerPickerOpened, ref: ref },
|
|
4129
|
-
React__namespace.createElement(uuiComponents.FlexRow, { cx: css$s.titleWrapper },
|
|
4032
|
+
return (React__namespace.createElement("div", { style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` }, role: "button", tabIndex: props.isDisabled ? -1 : 0, onKeyDown: onKeyDownHandler, className: cx__default.default(UUI_FILTERS_PANEL_ITEM_TOGGLER, css$s.root, uuiCore.uuiElement.inputBox, uuiCore.uuiMarkers.clickable, props.isOpen && uuiCore.uuiMod.opened, `uui-size-${props.size || settings.pickerInput.sizes.toggler.default}`, props.cx), onClick: togglerPickerOpened, ref: ref },
|
|
4033
|
+
React__namespace.createElement("div", { className: css$s.titleWrapper },
|
|
4130
4034
|
React__namespace.createElement(Text, { size: props.size, cx: css$s.title }, getTitle),
|
|
4131
4035
|
props.selection && (React__namespace.createElement("div", { className: css$s.textWrapper },
|
|
4132
4036
|
getSelectionText(),
|
|
@@ -4158,7 +4062,7 @@ function FilterPickerBody({ highlightSearchMatches = true, ...restProps }) {
|
|
|
4158
4062
|
};
|
|
4159
4063
|
const renderItem = (item, rowProps, dsState) => {
|
|
4160
4064
|
const { flattenSearchResults } = view.getConfig();
|
|
4161
|
-
return (React__namespace.createElement(PickerItem, { title: getName(item), highlightSearchMatches: highlightSearchMatches, ...(flattenSearchResults ? { subtitle: getSubtitle(rowProps, dsState) } : {}), dataSourceState: dsState, size: settings.
|
|
4065
|
+
return (React__namespace.createElement(PickerItem, { title: getName(item), highlightSearchMatches: highlightSearchMatches, ...(flattenSearchResults ? { subtitle: getSubtitle(rowProps, dsState) } : {}), dataSourceState: dsState, size: settings.pickerInput.sizes.body.row, ...rowProps }));
|
|
4162
4066
|
};
|
|
4163
4067
|
const onSelect = (row) => {
|
|
4164
4068
|
handleDataSourceValueChange((currentDataSourceState) => ({ ...currentDataSourceState, search: '', selectedId: row.id }));
|
|
@@ -4167,20 +4071,20 @@ function FilterPickerBody({ highlightSearchMatches = true, ...restProps }) {
|
|
|
4167
4071
|
if (rowProps.isSelectable && isSingleSelect() && props.editMode !== 'modal') {
|
|
4168
4072
|
rowProps.onSelect = onSelect;
|
|
4169
4073
|
}
|
|
4170
|
-
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React__namespace.createElement(DataPickerRow, { ...rowProps, key: rowProps.rowKey, size: settings.
|
|
4074
|
+
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React__namespace.createElement(DataPickerRow, { ...rowProps, key: rowProps.rowKey, size: settings.pickerInput.sizes.body.row, padding: "12", renderItem: (item, itemProps) => renderItem(item, itemProps, dsState) }));
|
|
4171
4075
|
};
|
|
4172
4076
|
const renderFooter = () => {
|
|
4173
4077
|
const footerProps = getFooterProps();
|
|
4174
4078
|
return props.renderFooter
|
|
4175
4079
|
? props.renderFooter(footerProps)
|
|
4176
|
-
: React__namespace.createElement(DataPickerFooter, { ...footerProps, size: settings.
|
|
4080
|
+
: React__namespace.createElement(DataPickerFooter, { ...footerProps, size: settings.pickerInput.sizes.body.row });
|
|
4177
4081
|
};
|
|
4178
4082
|
const renderBody = (bodyProps, rows) => {
|
|
4179
4083
|
const renderedDataRows = rows.map((props) => renderRow(props, dataSourceState));
|
|
4180
4084
|
const maxHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : props.maxBodyHeight || pickerHeight;
|
|
4181
4085
|
const maxWidth = uuiCore.isMobile() ? undefined : 360;
|
|
4182
4086
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4183
|
-
React__namespace.createElement(DataPickerBody, { ...bodyProps, selectionMode: props.selectionMode, rows: renderedDataRows, maxHeight: maxHeight, maxWidth: maxWidth, searchSize: settings.
|
|
4087
|
+
React__namespace.createElement(DataPickerBody, { ...bodyProps, selectionMode: props.selectionMode, rows: renderedDataRows, maxHeight: maxHeight, maxWidth: maxWidth, searchSize: settings.pickerInput.sizes.body.row, editMode: "dropdown" }),
|
|
4184
4088
|
renderFooter()));
|
|
4185
4089
|
};
|
|
4186
4090
|
const rows = getRows();
|
|
@@ -4268,7 +4172,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
4268
4172
|
React__namespace.default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
4269
4173
|
}
|
|
4270
4174
|
|
|
4271
|
-
var css$r = {"container":"
|
|
4175
|
+
var css$r = {"container":"LYED6-"};
|
|
4272
4176
|
|
|
4273
4177
|
function FilterNumericBody(props) {
|
|
4274
4178
|
const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
|
|
@@ -4364,7 +4268,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
4364
4268
|
};
|
|
4365
4269
|
var ForwardRef$a = /*#__PURE__*/React.forwardRef(SvgActionDeleteOutline);
|
|
4366
4270
|
|
|
4367
|
-
var css$q = {"header":"
|
|
4271
|
+
var css$q = {"header":"_8mXhHb","removeButton":"fZWPWN","with-search":"lNmlG0","withSearch":"lNmlG0"};
|
|
4368
4272
|
|
|
4369
4273
|
function useView(props, value) {
|
|
4370
4274
|
const forceUpdate = uuiCore.useForceUpdate();
|
|
@@ -4670,7 +4574,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4670
4574
|
}
|
|
4671
4575
|
const FiltersPanel = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarImpl);
|
|
4672
4576
|
|
|
4673
|
-
var css$p = {"divider":"
|
|
4577
|
+
var css$p = {"divider":"lBbzQ8","dropdownDeleteIcon":"E5oIkk","presetsWrapper":"V6NsQW","addPresetContainer":"_503g45","dropContainer":"BV2WsR"};
|
|
4674
4578
|
|
|
4675
4579
|
var _path$9;
|
|
4676
4580
|
function _extends$9() { return _extends$9 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$9.apply(null, arguments); }
|
|
@@ -4751,7 +4655,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4751
4655
|
};
|
|
4752
4656
|
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgContentLinkOutline);
|
|
4753
4657
|
|
|
4754
|
-
var css$o = {"delete-button":"
|
|
4658
|
+
var css$o = {"delete-button":"xZYW9E","deleteButton":"xZYW9E","tab-button":"hVsgXZ","tabButton":"hVsgXZ","targetOpen":"q1eNVX"};
|
|
4755
4659
|
|
|
4756
4660
|
function PresetActionsDropdown(props) {
|
|
4757
4661
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -4818,7 +4722,7 @@ function PresetActionsDropdown(props) {
|
|
|
4818
4722
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4819
4723
|
}
|
|
4820
4724
|
|
|
4821
|
-
var css$n = {"preset-input-cell":"
|
|
4725
|
+
var css$n = {"preset-input-cell":"w-ePv9","presetInputCell":"w-ePv9","preset-input":"AeWdDT","presetInput":"AeWdDT"};
|
|
4822
4726
|
|
|
4823
4727
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4824
4728
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4850,7 +4754,7 @@ function PresetInput(props) {
|
|
|
4850
4754
|
React__namespace.default.createElement(TextInput, { cx: css$n.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
4851
4755
|
}
|
|
4852
4756
|
|
|
4853
|
-
var css$m = {"preset":"
|
|
4757
|
+
var css$m = {"preset":"G6Iay0","activePreset":"gJKgZt"};
|
|
4854
4758
|
|
|
4855
4759
|
function Preset(props) {
|
|
4856
4760
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -4976,7 +4880,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4976
4880
|
return columns;
|
|
4977
4881
|
};
|
|
4978
4882
|
|
|
4979
|
-
var css$l = {"unpin-icon":"
|
|
4883
|
+
var css$l = {"unpin-icon":"IrmUQG","unpinIcon":"IrmUQG","pin-toggler-icon":"nmshk7","pinTogglerIcon":"nmshk7"};
|
|
4980
4884
|
|
|
4981
4885
|
function PinIconButton(props) {
|
|
4982
4886
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -5018,7 +4922,7 @@ function getUnpinIcon(params) {
|
|
|
5018
4922
|
}
|
|
5019
4923
|
}
|
|
5020
4924
|
|
|
5021
|
-
var css$k = {"row-wrapper":"
|
|
4925
|
+
var css$k = {"row-wrapper":"_1rj5tZ","rowWrapper":"_1rj5tZ","pin-icon-button":"YodOs9","pinIconButton":"YodOs9","not-pinned":"RqM0Rf","notPinned":"RqM0Rf","checkbox":"z6YCxf","drag-handle":"W8UDFx","dragHandle":"W8UDFx","dnd-disabled":"ikrVB6","dndDisabled":"ikrVB6"};
|
|
5022
4926
|
|
|
5023
4927
|
const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props) {
|
|
5024
4928
|
const { column } = props;
|
|
@@ -5041,7 +4945,7 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
5041
4945
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
5042
4946
|
});
|
|
5043
4947
|
|
|
5044
|
-
var css$j = {"root":"
|
|
4948
|
+
var css$j = {"root":"kVvcH5","main-panel":"qLv3jz","mainPanel":"qLv3jz","group":"yErj-z","group-title":"bW8MDX","groupTitle":"bW8MDX","group-items":"IS-Re2","groupItems":"IS-Re2","no-data":"_2-IT-t","noData":"_2-IT-t","no-data-title":"vjzuPi","noDataTitle":"vjzuPi","no-data-sub-title":"sRjdAU","noDataSubTitle":"sRjdAU","h-divider":"_3INRzj","hDivider":"_3INRzj","search-area":"vDbecE","searchArea":"vDbecE","subgroup-accordion":"l38dBE","subgroupAccordion":"l38dBE","subgroup":"cA6uH-","subgroup-title":"wksQ0I","subgroupTitle":"wksQ0I"};
|
|
5045
4949
|
|
|
5046
4950
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { cx: css$j.group },
|
|
5047
4951
|
React__namespace.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -5090,7 +4994,7 @@ function ColumnsConfigurationModal(props) {
|
|
|
5090
4994
|
};
|
|
5091
4995
|
const applyButton = React__namespace.createElement(Button, { caption: i18n$1.applyButton, isDisabled: !hasAnySelectedColumns, color: "primary", onClick: apply });
|
|
5092
4996
|
return (React__namespace.createElement(ModalBlocker, { ...modalProps },
|
|
5093
|
-
React__namespace.createElement(ModalWindow, { cx: css$j.root, height: "95dvh", maxHeight: "95dvh"
|
|
4997
|
+
React__namespace.createElement(ModalWindow, { cx: [css$j.root, 'uui-columns-config-modal'], height: "95dvh", maxHeight: "95dvh" },
|
|
5094
4998
|
React__namespace.createElement(ModalHeader, { title: i18n$1.configureColumnsTitle, onClose: close }),
|
|
5095
4999
|
React__namespace.createElement(FlexRow, { borderBottom: true, cx: css$j.searchArea },
|
|
5096
5000
|
React__namespace.createElement(SearchInput, { size: settings.dataTable.sizes.columnsConfigurationModal.searchInput, value: searchValue, onValueChange: setSearchValue, placeholder: i18n$1.searchPlaceholder }),
|
|
@@ -5120,7 +5024,7 @@ function SubGroup(props) {
|
|
|
5120
5024
|
const renderTitle = (isOpened) => {
|
|
5121
5025
|
const toggleIcon = settings.dataTable.icons.columnsConfigurationModal[isOpened ? 'expandedIcon' : 'collapsedIcon'];
|
|
5122
5026
|
return (React__namespace.createElement(FlexRow, { cx: uuiCore.cx(css$j.subgroup) },
|
|
5123
|
-
React__namespace.createElement(uuiComponents.IconContainer, {
|
|
5027
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: toggleIcon }),
|
|
5124
5028
|
React__namespace.createElement(Text, { size: "none", color: "tertiary", cx: css$j.subgroupTitle }, title)));
|
|
5125
5029
|
};
|
|
5126
5030
|
return (React__namespace.createElement(uuiComponents.Accordion, { value: isExpanded, onValueChange: setIsExpanded, renderTitle: renderTitle, cx: css$j.subgroupAccordion }, content));
|
|
@@ -5143,7 +5047,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
5143
5047
|
return [children, rest];
|
|
5144
5048
|
};
|
|
5145
5049
|
|
|
5146
|
-
var css$i = {"listContainer":"
|
|
5050
|
+
var css$i = {"listContainer":"KJP3gv","header":"VfM8gG","group":"zTB6i5","stickyHeader":"a61iPD"};
|
|
5147
5051
|
|
|
5148
5052
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
5149
5053
|
const rowRef = React.useRef();
|
|
@@ -5183,7 +5087,7 @@ function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, r
|
|
|
5183
5087
|
React__namespace.default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
5184
5088
|
}
|
|
5185
5089
|
|
|
5186
|
-
var css$h = {"root":"
|
|
5090
|
+
var css$h = {"root":"_6E9HFf","sticky-header":"_9ubGQc","stickyHeader":"_9ubGQc","no-results":"grgolE","noResults":"grgolE","icon":"_2uZhhK","title":"NV1qei"};
|
|
5187
5091
|
|
|
5188
5092
|
function DataTable(props) {
|
|
5189
5093
|
const { uuiModals } = uuiCore.useUuiContext();
|
|
@@ -5191,7 +5095,7 @@ function DataTable(props) {
|
|
|
5191
5095
|
const columnsWithFilters = useColumnsWithFilters(props.columns, props.filters);
|
|
5192
5096
|
const { columns, config, defaultConfig } = uuiCore.useColumnsConfig(columnsWithFilters, props.value?.columnsConfig);
|
|
5193
5097
|
const defaultRenderRow = React__namespace.useCallback((rowProps) => {
|
|
5194
|
-
return (React__namespace.createElement(DataTableRow, { size: props.size || settings.dataTable.sizes.body.
|
|
5098
|
+
return (React__namespace.createElement(DataTableRow, { size: props.size || settings.dataTable.sizes.body.row, columnsGap: props.columnsGap, borderBottom: props.border, ...rowProps, key: rowProps.rowKey, cx: css$h.cell }));
|
|
5195
5099
|
}, []);
|
|
5196
5100
|
const renderRow = (row) => (props.renderRow ?? defaultRenderRow)({ ...row, columns });
|
|
5197
5101
|
const rows = props.getRows?.() ?? props.rows ?? [];
|
|
@@ -5216,7 +5120,7 @@ function DataTable(props) {
|
|
|
5216
5120
|
]);
|
|
5217
5121
|
const renderRowsContainer = React__namespace.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5218
5122
|
React__namespace.createElement("div", { className: css$h.stickyHeader, ref: headerRef },
|
|
5219
|
-
React__namespace.createElement(DataTableHeaderRow, { columns: columns, columnGroups: props.columnGroups, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.headerSize || settings.dataTable.sizes.header.
|
|
5123
|
+
React__namespace.createElement(DataTableHeaderRow, { columns: columns, columnGroups: props.columnGroups, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.headerSize || settings.dataTable.sizes.header.row, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, showFoldAll: props.showFoldAll, value: { ...props.value, columnsConfig: config }, onValueChange: props.onValueChange, columnsGap: props.columnsGap }),
|
|
5220
5124
|
React__namespace.createElement("div", { className: uuiCore.cx(uuiCore.uuiScrollShadows.top, {
|
|
5221
5125
|
[uuiCore.uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
5222
5126
|
}) })),
|
|
@@ -5232,9 +5136,9 @@ function DataTable(props) {
|
|
|
5232
5136
|
} }))));
|
|
5233
5137
|
}
|
|
5234
5138
|
|
|
5235
|
-
var css$g = {"root":"
|
|
5139
|
+
var css$g = {"root":"eyuIWs"};
|
|
5236
5140
|
|
|
5237
|
-
var css$f = {"root":"
|
|
5141
|
+
var css$f = {"root":"_5s9s3y","burger-content":"rhUFAS","burgerContent":"rhUFAS"};
|
|
5238
5142
|
|
|
5239
5143
|
var _path$3;
|
|
5240
5144
|
function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
|
|
@@ -5277,7 +5181,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5277
5181
|
};
|
|
5278
5182
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNavigationArrowDownOutline);
|
|
5279
5183
|
|
|
5280
|
-
var css$e = {"root":"
|
|
5184
|
+
var css$e = {"root":"X58g1v","button-primary":"d-6JeT","buttonPrimary":"d-6JeT","button-secondary":"-oJcZ6","buttonSecondary":"-oJcZ6","hasIcon":"i66-xf","dropdown":"tjmIEw"};
|
|
5281
5185
|
|
|
5282
5186
|
const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
5283
5187
|
css$e.root,
|
|
@@ -5288,13 +5192,13 @@ const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (prop
|
|
|
5288
5192
|
props.icon && css$e.hasIcon,
|
|
5289
5193
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
5290
5194
|
|
|
5291
|
-
var css$d = {"search-input":"
|
|
5195
|
+
var css$d = {"search-input":"GOtX43","searchInput":"GOtX43"};
|
|
5292
5196
|
|
|
5293
5197
|
function BurgerSearch(props) {
|
|
5294
5198
|
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$N, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$R }));
|
|
5295
5199
|
}
|
|
5296
5200
|
|
|
5297
|
-
var css$c = {"root":"
|
|
5201
|
+
var css$c = {"root":"_04H4yf","group-header":"UVFmhV","groupHeader":"UVFmhV","group-name":"Y--4xz","groupName":"Y--4xz","line":"Q89LRX"};
|
|
5298
5202
|
|
|
5299
5203
|
function BurgerGroupHeader(props) {
|
|
5300
5204
|
return (React__namespace.createElement("div", { className: cx__default.default(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5302,7 +5206,7 @@ function BurgerGroupHeader(props) {
|
|
|
5302
5206
|
React__namespace.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5303
5207
|
}
|
|
5304
5208
|
|
|
5305
|
-
var css$b = {"root":"
|
|
5209
|
+
var css$b = {"root":"_3Pd-XE","type-primary":"_6tR5d9","typePrimary":"_6tR5d9","type-secondary":"LG9fZp","typeSecondary":"LG9fZp"};
|
|
5306
5210
|
|
|
5307
5211
|
const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5308
5212
|
const { type, ...clickableProps } = props;
|
|
@@ -5324,7 +5228,7 @@ const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5324
5228
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$Q, flipY: props.isOpen }))));
|
|
5325
5229
|
});
|
|
5326
5230
|
|
|
5327
|
-
var css$a = {"dropdown-body":"
|
|
5231
|
+
var css$a = {"dropdown-body":"WcWjiR","dropdownBody":"WcWjiR"};
|
|
5328
5232
|
|
|
5329
5233
|
class MainMenuDropdown extends React__namespace.Component {
|
|
5330
5234
|
render() {
|
|
@@ -5382,12 +5286,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5382
5286
|
};
|
|
5383
5287
|
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5384
5288
|
|
|
5385
|
-
var css$9 = {"global-menu-btn":"
|
|
5289
|
+
var css$9 = {"global-menu-btn":"lLYBJD","globalMenuBtn":"lLYBJD","global-menu-icon":"Ldpuo0","globalMenuIcon":"Ldpuo0"};
|
|
5386
5290
|
|
|
5387
5291
|
const GlobalMenu = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, id: "global_menu_toggle", className: cx__default.default(css$9.globalMenuBtn, props.cx), ...props.rawProps },
|
|
5388
5292
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5389
5293
|
|
|
5390
|
-
var css$8 = {"container":"
|
|
5294
|
+
var css$8 = {"container":"zabDar","open":"Wz1fKA","folding-arrow":"qsOfLC","foldingArrow":"qsOfLC"};
|
|
5391
5295
|
|
|
5392
5296
|
const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, className: cx__default.default(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiCore.uuiMarkers.clickable, props.cx), onClick: props.onClick, ...props.rawProps },
|
|
5393
5297
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5395,15 +5299,15 @@ const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5395
5299
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
5396
5300
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5397
5301
|
|
|
5398
|
-
var css$7 = {"search-input":"
|
|
5302
|
+
var css$7 = {"search-input":"JoH-wf","searchInput":"JoH-wf"};
|
|
5399
5303
|
|
|
5400
5304
|
const MainMenuSearch = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, { ...props, render: (iEditable) => (React__namespace.createElement(uuiComponents.TextInput, { iconPosition: "left", icon: ForwardRef$N, cancelIcon: props.value?.length > 0 && ForwardRef$R, ...props, ...iEditable, ref: ref, cx: uuiCore.cx(css$7.searchInput, props.cx), ...props.rawProps })) })));
|
|
5401
5305
|
|
|
5402
|
-
var css$6 = {"container":"
|
|
5306
|
+
var css$6 = {"container":"_6zb1UE"};
|
|
5403
5307
|
|
|
5404
5308
|
const MainMenuIcon = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(IconButton, { ref: ref, icon: props.icon, cx: uuiCore.cx(props.cx, css$6.container), ...props })));
|
|
5405
5309
|
|
|
5406
|
-
var css$5 = {"root":"
|
|
5310
|
+
var css$5 = {"root":"BW6Dfu"};
|
|
5407
5311
|
|
|
5408
5312
|
const Anchor = /* @__PURE__ */uuiCore.withMods(uuiComponents.Anchor, () => [css$5.root]);
|
|
5409
5313
|
|
|
@@ -5461,7 +5365,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5461
5365
|
};
|
|
5462
5366
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgFileCloudUploadFill);
|
|
5463
5367
|
|
|
5464
|
-
var css$4 = {"root":"
|
|
5368
|
+
var css$4 = {"root":"rceAX-","drop-start":"LUqc6A","dropStart":"LUqc6A","drop-over":"OQGg54","dropOver":"OQGg54","link":"_5IhcO0","drop-area":"GqhtNH","dropArea":"GqhtNH","drop-caption":"NWLsrW","dropCaption":"NWLsrW","icon-blue":"kZsHiK","iconBlue":"kZsHiK"};
|
|
5465
5369
|
|
|
5466
5370
|
function DropSpot(props) {
|
|
5467
5371
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5479,7 +5383,7 @@ function DropSpot(props) {
|
|
|
5479
5383
|
return React__namespace.createElement(uuiComponents.DropSpot, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5480
5384
|
}
|
|
5481
5385
|
|
|
5482
|
-
var css$3 = {"root":"
|
|
5386
|
+
var css$3 = {"root":"FsGteO"};
|
|
5483
5387
|
|
|
5484
5388
|
const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5485
5389
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5490,7 +5394,7 @@ const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref
|
|
|
5490
5394
|
React__namespace.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
5491
5395
|
});
|
|
5492
5396
|
|
|
5493
|
-
var css$2 = {"root":"
|
|
5397
|
+
var css$2 = {"root":"e9aoDJ","file-name":"wwWw79","fileName":"wwWw79","default-color":"pqs8p3","defaultColor":"pqs8p3","doc-color":"zULxOB","docColor":"zULxOB","xls-color":"fCe9BZ","xlsColor":"fCe9BZ","pdf-color":"HU72eK","pdfColor":"HU72eK","movie-color":"vjy2z5","movieColor":"vjy2z5","img-color":"va3grO","imgColor":"va3grO","mov-color":"_1XyXJY","movColor":"_1XyXJY","error-block":"lFDyRF","errorBlock":"lFDyRF","icons-block":"DG9-Pt","iconsBlock":"DG9-Pt"};
|
|
5494
5398
|
|
|
5495
5399
|
const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5496
5400
|
const [isLoadingShow, setIsLoadingShow] = React__namespace.useState(true);
|
|
@@ -5548,7 +5452,7 @@ const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
5548
5452
|
React__namespace.createElement("div", { className: css$2.errorBlock },
|
|
5549
5453
|
React__namespace.createElement(uuiComponents.IconContainer, { icon: settings.fileCard.icons.errorIcon, size: 12 }),
|
|
5550
5454
|
i18n.fileCard.failedUploadErrorMessage)));
|
|
5551
|
-
const renderSuccessfulContent = () => (React__namespace.createElement(Text, { size: "
|
|
5455
|
+
const renderSuccessfulContent = () => (React__namespace.createElement(Text, { size: "none", fontSize: "14", lineHeight: "18", color: "tertiary" },
|
|
5552
5456
|
fileExtension && `${fileExtension.toUpperCase()}, `,
|
|
5553
5457
|
isLoading && uuiCore.formatBytes((size / 100) * progress, 2, false) + i18n.fileCard.fileSizeProgress,
|
|
5554
5458
|
uuiCore.formatBytes(size)));
|
|
@@ -5560,7 +5464,7 @@ const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
5560
5464
|
React__namespace.createElement(FlexRow, { alignItems: "top", columnGap: "6" },
|
|
5561
5465
|
fileExtension && getIcon(fileExtension),
|
|
5562
5466
|
React__namespace.createElement(FlexCell, { width: "100%" },
|
|
5563
|
-
React__namespace.createElement(Text, { size: "
|
|
5467
|
+
React__namespace.createElement(Text, { size: "none", fontSize: "14", lineHeight: "18", color: (progress < 100 || error?.isError) ? 'tertiary' : 'primary', cx: css$2.fileName }, fileName),
|
|
5564
5468
|
error?.isError ? renderErrorContent() : renderSuccessfulContent()),
|
|
5565
5469
|
React__namespace.createElement("div", { className: uuiCore.cx(css$2.iconsBlock), onMouseEnter: mouseEnterHandler, onMouseLeave: mouseLeaveHandler },
|
|
5566
5470
|
isLoadingShow && isLoading && React__namespace.createElement(SvgCircleProgress, { progress: progress, size: 18 }),
|
|
@@ -5609,7 +5513,7 @@ const getErrorPageConfig = () => ({
|
|
|
5609
5513
|
},
|
|
5610
5514
|
});
|
|
5611
5515
|
|
|
5612
|
-
var css$1 = {"container":"
|
|
5516
|
+
var css$1 = {"container":"xLxjz3"};
|
|
5613
5517
|
|
|
5614
5518
|
const ErrorPage = (props) => {
|
|
5615
5519
|
const isMobileScreen = uuiCore.isMobile();
|
|
@@ -5621,7 +5525,7 @@ const ErrorPage = (props) => {
|
|
|
5621
5525
|
props?.supportLink && React__namespace.default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
5622
5526
|
};
|
|
5623
5527
|
|
|
5624
|
-
var css = {"recovery-spinner":"
|
|
5528
|
+
var css = {"recovery-spinner":"Bw4cMJ","recoverySpinner":"Bw4cMJ","recovery-message":"YL7Wdk","recoveryMessage":"YL7Wdk","modal-blocker":"_4F3Xr-","modalBlocker":"_4F3Xr-","modalFadeIn":"rbUe28"};
|
|
5625
5529
|
|
|
5626
5530
|
function ErrorHandler(props) {
|
|
5627
5531
|
const { uuiNotifications, uuiModals, uuiApi } = uuiCore.useUuiContext();
|
|
@@ -5810,7 +5714,6 @@ exports.WarningAlert = WarningAlert;
|
|
|
5810
5714
|
exports.WarningNotification = WarningNotification;
|
|
5811
5715
|
exports.applyDateSelectionMods = applyDateSelectionMods;
|
|
5812
5716
|
exports.defaultPredicates = defaultPredicates;
|
|
5813
|
-
exports.fileIcons = fileIcons;
|
|
5814
5717
|
exports.getErrorPageConfig = getErrorPageConfig;
|
|
5815
5718
|
exports.getHighlightRanges = getHighlightRanges;
|
|
5816
5719
|
exports.getHighlightedSearchMatches = getHighlightedSearchMatches;
|