@solercia/ui 0.7.2 → 0.8.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/CHANGELOG.md +41 -0
- package/README.md +50 -30
- package/fesm2022/solercia-ui-login-appearance.mjs +3 -3
- package/fesm2022/solercia-ui-login-appearance.mjs.map +1 -1
- package/fesm2022/solercia-ui-theme-studio.mjs +3 -3
- package/fesm2022/solercia-ui-theme-studio.mjs.map +1 -1
- package/fesm2022/solercia-ui.mjs +1134 -286
- package/fesm2022/solercia-ui.mjs.map +1 -1
- package/i18n/en.json +284 -0
- package/i18n/es-CO.json +284 -0
- package/llms.txt +3 -2
- package/package.json +1 -1
- package/types/solercia-ui.d.ts +133 -39
package/fesm2022/solercia-ui.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, output, computed, ChangeDetectionStrategy, Component, signal, forwardRef, inject, ElementRef, effect, Directive, linkedSignal, viewChild, Injector, afterNextRender, HostListener,
|
|
2
|
+
import { input, output, computed, ChangeDetectionStrategy, Component, signal, forwardRef, inject, ElementRef, effect, Directive, InjectionToken, linkedSignal, viewChild, Injector, afterNextRender, HostListener, numberAttribute, TemplateRef, model, contentChildren, contentChild, untracked, Injectable, provideAppInitializer, DestroyRef, viewChildren, CSP_NONCE } from '@angular/core';
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
4
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
5
5
|
import { NgTemplateOutlet, DOCUMENT } from '@angular/common';
|
|
@@ -1000,6 +1000,693 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
1000
1000
|
}]
|
|
1001
1001
|
}], ctorParameters: () => [], propDecorators: { trigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "solFloatingPanel", required: true }] }], gap: [{ type: i0.Input, args: [{ isSignal: true, alias: "gap", required: false }] }], flipThreshold: [{ type: i0.Input, args: [{ isSignal: true, alias: "flipThreshold", required: false }] }], matchTriggerWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "matchTriggerWidth", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], dropUpChange: [{ type: i0.Output, args: ["dropUpChange"] }] } });
|
|
1002
1002
|
|
|
1003
|
+
/**
|
|
1004
|
+
* English catalog. Mirror of `projects/solercia/ui/i18n/en.json` (the file shipped as a
|
|
1005
|
+
* package asset); `sol-i18n.spec.ts` fails when both drift apart.
|
|
1006
|
+
*/
|
|
1007
|
+
const CATALOG_EN = {
|
|
1008
|
+
"shared": {
|
|
1009
|
+
"spinner": {
|
|
1010
|
+
"loading": "Loading"
|
|
1011
|
+
},
|
|
1012
|
+
"map": {
|
|
1013
|
+
"loading": "Loading the map…",
|
|
1014
|
+
"unavailable": "We could not show the map in this browser. The list has the same information.",
|
|
1015
|
+
"zoomIn": "Zoom in",
|
|
1016
|
+
"zoomOut": "Zoom out",
|
|
1017
|
+
"attribution": {
|
|
1018
|
+
"openFreeMap": "OpenFreeMap",
|
|
1019
|
+
"openMapTiles": "© OpenMapTiles",
|
|
1020
|
+
"openStreetMap": "© OpenStreetMap contributors"
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
1023
|
+
"scopeSwitcher": {
|
|
1024
|
+
"loading": "Loading your scopes",
|
|
1025
|
+
"empty": "You have no scopes available",
|
|
1026
|
+
"error": "We could not complete the change. Check your connection and try again.",
|
|
1027
|
+
"trigger": "Select the active scope",
|
|
1028
|
+
"panel": "Available scopes",
|
|
1029
|
+
"activeOption": "Active scope"
|
|
1030
|
+
},
|
|
1031
|
+
"nav": {
|
|
1032
|
+
"more": "More"
|
|
1033
|
+
},
|
|
1034
|
+
"starRating": {
|
|
1035
|
+
"label": "{{rating}} of {{max}}"
|
|
1036
|
+
},
|
|
1037
|
+
"ratingInput": {
|
|
1038
|
+
"groupLabel": "Rating from 1 to 5 stars",
|
|
1039
|
+
"option": "{{value}} of {{max}}",
|
|
1040
|
+
"clear": "Clear the rating"
|
|
1041
|
+
},
|
|
1042
|
+
"table": {
|
|
1043
|
+
"toggleDetails": "Show or hide the row details",
|
|
1044
|
+
"searchPlaceholder": "Search...",
|
|
1045
|
+
"empty": "No data available",
|
|
1046
|
+
"actions": "Actions",
|
|
1047
|
+
"filterAll": "All"
|
|
1048
|
+
},
|
|
1049
|
+
"stepper": {
|
|
1050
|
+
"aria": "Wizard progress",
|
|
1051
|
+
"state": {
|
|
1052
|
+
"completed": "Step completed",
|
|
1053
|
+
"current": "Current step",
|
|
1054
|
+
"pending": "Pending step",
|
|
1055
|
+
"error": "Step with errors"
|
|
1056
|
+
}
|
|
1057
|
+
},
|
|
1058
|
+
"chip": {
|
|
1059
|
+
"remove": "Remove"
|
|
1060
|
+
},
|
|
1061
|
+
"numberInput": {
|
|
1062
|
+
"decrement": "Decrease",
|
|
1063
|
+
"increment": "Increase"
|
|
1064
|
+
},
|
|
1065
|
+
"drawer": {
|
|
1066
|
+
"close": "Close"
|
|
1067
|
+
},
|
|
1068
|
+
"crud": {
|
|
1069
|
+
"exportCsv": "Export CSV",
|
|
1070
|
+
"created": "Record created",
|
|
1071
|
+
"updated": "Record updated",
|
|
1072
|
+
"deleted": "Record deleted"
|
|
1073
|
+
},
|
|
1074
|
+
"form": {
|
|
1075
|
+
"save": "Save changes",
|
|
1076
|
+
"create": "Create",
|
|
1077
|
+
"cancel": "Cancel",
|
|
1078
|
+
"yes": "Yes",
|
|
1079
|
+
"no": "No",
|
|
1080
|
+
"delete": "Delete"
|
|
1081
|
+
},
|
|
1082
|
+
"fixtures": {
|
|
1083
|
+
"sample": "Sample data"
|
|
1084
|
+
},
|
|
1085
|
+
"virtualScroll": {
|
|
1086
|
+
"newMessages": "new messages"
|
|
1087
|
+
},
|
|
1088
|
+
"richEditor": {
|
|
1089
|
+
"toolbar": "Formatting tools",
|
|
1090
|
+
"bold": "Bold",
|
|
1091
|
+
"italic": "Italic",
|
|
1092
|
+
"underline": "Underline",
|
|
1093
|
+
"strike": "Strikethrough",
|
|
1094
|
+
"heading": "Heading style",
|
|
1095
|
+
"paragraph": "Paragraph",
|
|
1096
|
+
"heading1": "Heading 1",
|
|
1097
|
+
"heading2": "Heading 2",
|
|
1098
|
+
"heading3": "Heading 3",
|
|
1099
|
+
"bulletList": "Bulleted list",
|
|
1100
|
+
"numberedList": "Numbered list",
|
|
1101
|
+
"alignLeft": "Align left",
|
|
1102
|
+
"alignCenter": "Center",
|
|
1103
|
+
"alignRight": "Align right",
|
|
1104
|
+
"insertImage": "Insert image",
|
|
1105
|
+
"insertTable": "Insert table",
|
|
1106
|
+
"insertLink": "Insert link",
|
|
1107
|
+
"removeLink": "Remove link",
|
|
1108
|
+
"removeFormat": "Clear formatting",
|
|
1109
|
+
"tablePicker": "Select rows and columns",
|
|
1110
|
+
"linkPlaceholder": "Paste or type the link",
|
|
1111
|
+
"linkConfirm": "Apply",
|
|
1112
|
+
"editorAria": "Rich text editor",
|
|
1113
|
+
"imageTooLarge": "The image exceeds the maximum allowed size",
|
|
1114
|
+
"mentionList": "Mention user",
|
|
1115
|
+
"taskList": "Link task"
|
|
1116
|
+
},
|
|
1117
|
+
"datePicker": {
|
|
1118
|
+
"placeholder": "mm/dd/yyyy",
|
|
1119
|
+
"trigger": "Open the calendar to pick a date",
|
|
1120
|
+
"dialog": "Calendar to pick a date",
|
|
1121
|
+
"prev": "Previous",
|
|
1122
|
+
"next": "Next",
|
|
1123
|
+
"chooseView": "Switch between days, months and years"
|
|
1124
|
+
},
|
|
1125
|
+
"messageStatus": {
|
|
1126
|
+
"pending": "Pending",
|
|
1127
|
+
"sent": "Sent",
|
|
1128
|
+
"delivered": "Delivered",
|
|
1129
|
+
"read": "Read",
|
|
1130
|
+
"failed": "Could not be delivered"
|
|
1131
|
+
},
|
|
1132
|
+
"scoreBadge": {
|
|
1133
|
+
"pending": "Calculating…",
|
|
1134
|
+
"empty": "No data"
|
|
1135
|
+
},
|
|
1136
|
+
"trend": {
|
|
1137
|
+
"noData": "No comparison available",
|
|
1138
|
+
"up": "Increasing",
|
|
1139
|
+
"down": "Decreasing",
|
|
1140
|
+
"flat": "No change"
|
|
1141
|
+
},
|
|
1142
|
+
"notificationPanel": {
|
|
1143
|
+
"dialogAria": "Notification center",
|
|
1144
|
+
"title": "Notifications",
|
|
1145
|
+
"unreadCount": "{{count}} unread",
|
|
1146
|
+
"markAllRead": "Mark all as read",
|
|
1147
|
+
"markRead": "Mark as read",
|
|
1148
|
+
"unreadDot": "Unread",
|
|
1149
|
+
"close": "Close the notification panel",
|
|
1150
|
+
"emptyTitle": "You have no notifications",
|
|
1151
|
+
"emptyDescription": "When something you need to know happens, you will see it here.",
|
|
1152
|
+
"errorTitle": "We could not load your notifications",
|
|
1153
|
+
"errorDescription": "Check your connection and try again.",
|
|
1154
|
+
"retry": "Retry",
|
|
1155
|
+
"relativeTime": {
|
|
1156
|
+
"now": "Just now",
|
|
1157
|
+
"minutes": "{{count}} min ago",
|
|
1158
|
+
"hours": "{{count}} h ago",
|
|
1159
|
+
"days": "{{count}} d ago"
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
"tree": {
|
|
1163
|
+
"ariaLabel": "Hierarchical tree",
|
|
1164
|
+
"expandAria": "Expand {{label}}",
|
|
1165
|
+
"collapseAria": "Collapse {{label}}"
|
|
1166
|
+
},
|
|
1167
|
+
"timeline": {
|
|
1168
|
+
"emptyState": "There are no items to show",
|
|
1169
|
+
"undatedTitle": "Undated",
|
|
1170
|
+
"expandNode": "Expand",
|
|
1171
|
+
"collapseNode": "Collapse",
|
|
1172
|
+
"months": {
|
|
1173
|
+
"0": "Jan",
|
|
1174
|
+
"1": "Feb",
|
|
1175
|
+
"2": "Mar",
|
|
1176
|
+
"3": "Apr",
|
|
1177
|
+
"4": "May",
|
|
1178
|
+
"5": "Jun",
|
|
1179
|
+
"6": "Jul",
|
|
1180
|
+
"7": "Aug",
|
|
1181
|
+
"8": "Sep",
|
|
1182
|
+
"9": "Oct",
|
|
1183
|
+
"10": "Nov",
|
|
1184
|
+
"11": "Dec"
|
|
1185
|
+
}
|
|
1186
|
+
},
|
|
1187
|
+
"flowCanvas": {
|
|
1188
|
+
"regionLabel": "Flow canvas",
|
|
1189
|
+
"nodeAriaLabel": "Node {{label}}",
|
|
1190
|
+
"connectFromLabel": "Connect from {{label}}",
|
|
1191
|
+
"removeConnectionLabel": "Remove connection",
|
|
1192
|
+
"movedAnnouncement": "{{label}} was moved.",
|
|
1193
|
+
"moveCancelledAnnouncement": "The node move was cancelled.",
|
|
1194
|
+
"connectArmedAnnouncement": "Connect mode active from {{label}} — select the target node. {{count}} valid targets available.",
|
|
1195
|
+
"connectionCreatedAnnouncement": "Connection created from {{source}} to {{target}}.",
|
|
1196
|
+
"connectionRemovedAnnouncement": "Connection removed.",
|
|
1197
|
+
"autoLayoutButton": "Arrange",
|
|
1198
|
+
"autoLayoutButtonAriaLabel": "Automatically arrange the canvas nodes"
|
|
1199
|
+
},
|
|
1200
|
+
"kanban": {
|
|
1201
|
+
"columnAria": "Column {{title}}",
|
|
1202
|
+
"itemCountAriaSingular": "1 card",
|
|
1203
|
+
"itemCountAriaPlural": "{{count}} cards",
|
|
1204
|
+
"emptyColumn": "No cards",
|
|
1205
|
+
"addColumn": "Add",
|
|
1206
|
+
"moveAriaLabel": "Move card",
|
|
1207
|
+
"movePlaceholder": "Move to...",
|
|
1208
|
+
"moveUp": "Move up",
|
|
1209
|
+
"moveDown": "Move down",
|
|
1210
|
+
"moveToColumn": "Move to {{column}}",
|
|
1211
|
+
"movedWithinColumn": "Card reordered within the column",
|
|
1212
|
+
"movedToColumn": "Card moved to the {{column}} column"
|
|
1213
|
+
},
|
|
1214
|
+
"calendar": {
|
|
1215
|
+
"today": "Today",
|
|
1216
|
+
"previous": "Previous",
|
|
1217
|
+
"next": "Next",
|
|
1218
|
+
"viewWeek": "Week",
|
|
1219
|
+
"viewDay": "Day",
|
|
1220
|
+
"weekdayShort": {
|
|
1221
|
+
"0": "Sun",
|
|
1222
|
+
"1": "Mon",
|
|
1223
|
+
"2": "Tue",
|
|
1224
|
+
"3": "Wed",
|
|
1225
|
+
"4": "Thu",
|
|
1226
|
+
"5": "Fri",
|
|
1227
|
+
"6": "Sat"
|
|
1228
|
+
},
|
|
1229
|
+
"months": {
|
|
1230
|
+
"0": "Jan",
|
|
1231
|
+
"1": "Feb",
|
|
1232
|
+
"2": "Mar",
|
|
1233
|
+
"3": "Apr",
|
|
1234
|
+
"4": "May",
|
|
1235
|
+
"5": "Jun",
|
|
1236
|
+
"6": "Jul",
|
|
1237
|
+
"7": "Aug",
|
|
1238
|
+
"8": "Sep",
|
|
1239
|
+
"9": "Oct",
|
|
1240
|
+
"10": "Nov",
|
|
1241
|
+
"11": "Dec"
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
"modal": {
|
|
1245
|
+
"close": "Close"
|
|
1246
|
+
},
|
|
1247
|
+
"confirmDialog": {
|
|
1248
|
+
"title": "Are you sure?",
|
|
1249
|
+
"confirm": "Confirm",
|
|
1250
|
+
"cancel": "Cancel"
|
|
1251
|
+
},
|
|
1252
|
+
"searchInput": {
|
|
1253
|
+
"placeholder": "Search...",
|
|
1254
|
+
"clear": "Clear search"
|
|
1255
|
+
},
|
|
1256
|
+
"select": {
|
|
1257
|
+
"placeholder": "Select...",
|
|
1258
|
+
"all": "All",
|
|
1259
|
+
"searchPlaceholder": "Search...",
|
|
1260
|
+
"empty": "No results",
|
|
1261
|
+
"selectAll": "All",
|
|
1262
|
+
"selectNone": "None"
|
|
1263
|
+
},
|
|
1264
|
+
"fileUpload": {
|
|
1265
|
+
"label": "Drag or click to upload",
|
|
1266
|
+
"hint": "JPG, PNG, WEBP or GIF · max. 5 MB",
|
|
1267
|
+
"preview": "Preview",
|
|
1268
|
+
"remove": "Remove image",
|
|
1269
|
+
"change": "Change image",
|
|
1270
|
+
"invalidType": "Invalid format. Allowed: {{types}}",
|
|
1271
|
+
"tooLarge": "The image is {{size}} MB and exceeds the {{max}} MB limit"
|
|
1272
|
+
},
|
|
1273
|
+
"wizard": {
|
|
1274
|
+
"previous": "Previous",
|
|
1275
|
+
"next": "Next",
|
|
1276
|
+
"finish": "Finish"
|
|
1277
|
+
},
|
|
1278
|
+
"progressBar": {
|
|
1279
|
+
"stepOf": "Step {{current}} of {{total}}",
|
|
1280
|
+
"aria": "Progress"
|
|
1281
|
+
},
|
|
1282
|
+
"pagination": {
|
|
1283
|
+
"show": "Show",
|
|
1284
|
+
"rows": "rows",
|
|
1285
|
+
"range": "{{start}}–{{end}} of {{total}}",
|
|
1286
|
+
"previous": "Previous page",
|
|
1287
|
+
"next": "Next page"
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
};
|
|
1291
|
+
|
|
1292
|
+
/**
|
|
1293
|
+
* Colombian Spanish catalog. Mirror of `projects/solercia/ui/i18n/es-CO.json` (the file shipped as a
|
|
1294
|
+
* package asset); `sol-i18n.spec.ts` fails when both drift apart.
|
|
1295
|
+
*/
|
|
1296
|
+
const CATALOG_ES_CO = {
|
|
1297
|
+
"shared": {
|
|
1298
|
+
"spinner": {
|
|
1299
|
+
"loading": "Cargando"
|
|
1300
|
+
},
|
|
1301
|
+
"map": {
|
|
1302
|
+
"loading": "Cargando el mapa…",
|
|
1303
|
+
"unavailable": "No pudimos mostrar el mapa en este navegador. La lista tiene la misma información.",
|
|
1304
|
+
"zoomIn": "Acercar",
|
|
1305
|
+
"zoomOut": "Alejar",
|
|
1306
|
+
"attribution": {
|
|
1307
|
+
"openFreeMap": "OpenFreeMap",
|
|
1308
|
+
"openMapTiles": "© OpenMapTiles",
|
|
1309
|
+
"openStreetMap": "© colaboradores de OpenStreetMap"
|
|
1310
|
+
}
|
|
1311
|
+
},
|
|
1312
|
+
"scopeSwitcher": {
|
|
1313
|
+
"loading": "Cargando tus ámbitos",
|
|
1314
|
+
"empty": "No tienes ámbitos disponibles",
|
|
1315
|
+
"error": "No pudimos completar el cambio. Verifica tu conexión e inténtalo de nuevo.",
|
|
1316
|
+
"trigger": "Selecciona el ámbito activo",
|
|
1317
|
+
"panel": "Ámbitos disponibles",
|
|
1318
|
+
"activeOption": "Ámbito activo"
|
|
1319
|
+
},
|
|
1320
|
+
"nav": {
|
|
1321
|
+
"more": "Más"
|
|
1322
|
+
},
|
|
1323
|
+
"starRating": {
|
|
1324
|
+
"label": "{{rating}} de {{max}}"
|
|
1325
|
+
},
|
|
1326
|
+
"ratingInput": {
|
|
1327
|
+
"groupLabel": "Calificación de 1 a 5 estrellas",
|
|
1328
|
+
"option": "{{value}} de {{max}}",
|
|
1329
|
+
"clear": "Quitar la calificación"
|
|
1330
|
+
},
|
|
1331
|
+
"table": {
|
|
1332
|
+
"toggleDetails": "Mostrar u ocultar el detalle de la fila",
|
|
1333
|
+
"searchPlaceholder": "Buscar...",
|
|
1334
|
+
"empty": "No hay datos disponibles",
|
|
1335
|
+
"actions": "Acciones",
|
|
1336
|
+
"filterAll": "Todas"
|
|
1337
|
+
},
|
|
1338
|
+
"stepper": {
|
|
1339
|
+
"aria": "Progreso del asistente",
|
|
1340
|
+
"state": {
|
|
1341
|
+
"completed": "Paso completado",
|
|
1342
|
+
"current": "Paso actual",
|
|
1343
|
+
"pending": "Paso pendiente",
|
|
1344
|
+
"error": "Paso con errores"
|
|
1345
|
+
}
|
|
1346
|
+
},
|
|
1347
|
+
"chip": {
|
|
1348
|
+
"remove": "Quitar"
|
|
1349
|
+
},
|
|
1350
|
+
"numberInput": {
|
|
1351
|
+
"decrement": "Disminuir",
|
|
1352
|
+
"increment": "Aumentar"
|
|
1353
|
+
},
|
|
1354
|
+
"drawer": {
|
|
1355
|
+
"close": "Cerrar"
|
|
1356
|
+
},
|
|
1357
|
+
"crud": {
|
|
1358
|
+
"exportCsv": "Exportar CSV",
|
|
1359
|
+
"created": "Registro creado correctamente",
|
|
1360
|
+
"updated": "Registro actualizado correctamente",
|
|
1361
|
+
"deleted": "Registro eliminado correctamente"
|
|
1362
|
+
},
|
|
1363
|
+
"form": {
|
|
1364
|
+
"save": "Guardar cambios",
|
|
1365
|
+
"create": "Crear",
|
|
1366
|
+
"cancel": "Cancelar",
|
|
1367
|
+
"yes": "Sí",
|
|
1368
|
+
"no": "No",
|
|
1369
|
+
"delete": "Eliminar"
|
|
1370
|
+
},
|
|
1371
|
+
"fixtures": {
|
|
1372
|
+
"sample": "Datos de ejemplo"
|
|
1373
|
+
},
|
|
1374
|
+
"virtualScroll": {
|
|
1375
|
+
"newMessages": "mensajes nuevos"
|
|
1376
|
+
},
|
|
1377
|
+
"richEditor": {
|
|
1378
|
+
"toolbar": "Herramientas de formato",
|
|
1379
|
+
"bold": "Negrita",
|
|
1380
|
+
"italic": "Cursiva",
|
|
1381
|
+
"underline": "Subrayado",
|
|
1382
|
+
"strike": "Tachado",
|
|
1383
|
+
"heading": "Estilo de título",
|
|
1384
|
+
"paragraph": "Párrafo",
|
|
1385
|
+
"heading1": "Título 1",
|
|
1386
|
+
"heading2": "Título 2",
|
|
1387
|
+
"heading3": "Título 3",
|
|
1388
|
+
"bulletList": "Lista con viñetas",
|
|
1389
|
+
"numberedList": "Lista numerada",
|
|
1390
|
+
"alignLeft": "Alinear a la izquierda",
|
|
1391
|
+
"alignCenter": "Centrar",
|
|
1392
|
+
"alignRight": "Alinear a la derecha",
|
|
1393
|
+
"insertImage": "Insertar imagen",
|
|
1394
|
+
"insertTable": "Insertar tabla",
|
|
1395
|
+
"insertLink": "Insertar enlace",
|
|
1396
|
+
"removeLink": "Quitar enlace",
|
|
1397
|
+
"removeFormat": "Quitar formato",
|
|
1398
|
+
"tablePicker": "Selecciona filas y columnas",
|
|
1399
|
+
"linkPlaceholder": "Pega o escribe el enlace",
|
|
1400
|
+
"linkConfirm": "Aplicar",
|
|
1401
|
+
"editorAria": "Editor de texto enriquecido",
|
|
1402
|
+
"imageTooLarge": "La imagen supera el tamaño máximo permitido",
|
|
1403
|
+
"mentionList": "Mencionar usuario",
|
|
1404
|
+
"taskList": "Enlazar tarea"
|
|
1405
|
+
},
|
|
1406
|
+
"datePicker": {
|
|
1407
|
+
"placeholder": "dd/mm/aaaa",
|
|
1408
|
+
"trigger": "Abrir el calendario para elegir una fecha",
|
|
1409
|
+
"dialog": "Calendario para elegir una fecha",
|
|
1410
|
+
"prev": "Anterior",
|
|
1411
|
+
"next": "Siguiente",
|
|
1412
|
+
"chooseView": "Cambiar entre días, meses y años"
|
|
1413
|
+
},
|
|
1414
|
+
"messageStatus": {
|
|
1415
|
+
"pending": "Pendiente de envío",
|
|
1416
|
+
"sent": "Enviado",
|
|
1417
|
+
"delivered": "Entregado",
|
|
1418
|
+
"read": "Leído",
|
|
1419
|
+
"failed": "No se pudo entregar"
|
|
1420
|
+
},
|
|
1421
|
+
"scoreBadge": {
|
|
1422
|
+
"pending": "Calculando…",
|
|
1423
|
+
"empty": "Sin dato"
|
|
1424
|
+
},
|
|
1425
|
+
"trend": {
|
|
1426
|
+
"noData": "Sin comparación disponible",
|
|
1427
|
+
"up": "En aumento",
|
|
1428
|
+
"down": "En descenso",
|
|
1429
|
+
"flat": "Sin cambios"
|
|
1430
|
+
},
|
|
1431
|
+
"notificationPanel": {
|
|
1432
|
+
"dialogAria": "Centro de notificaciones",
|
|
1433
|
+
"title": "Notificaciones",
|
|
1434
|
+
"unreadCount": "{{count}} sin leer",
|
|
1435
|
+
"markAllRead": "Marcar todas como leídas",
|
|
1436
|
+
"markRead": "Marcar como leída",
|
|
1437
|
+
"unreadDot": "Sin leer",
|
|
1438
|
+
"close": "Cerrar el panel de notificaciones",
|
|
1439
|
+
"emptyTitle": "No tienes notificaciones",
|
|
1440
|
+
"emptyDescription": "Cuando ocurra algo que necesites saber, lo verás aquí.",
|
|
1441
|
+
"errorTitle": "No pudimos cargar tus notificaciones",
|
|
1442
|
+
"errorDescription": "Revisa tu conexión e inténtalo de nuevo.",
|
|
1443
|
+
"retry": "Reintentar",
|
|
1444
|
+
"relativeTime": {
|
|
1445
|
+
"now": "Justo ahora",
|
|
1446
|
+
"minutes": "hace {{count}} min",
|
|
1447
|
+
"hours": "hace {{count}} h",
|
|
1448
|
+
"days": "hace {{count}} d"
|
|
1449
|
+
}
|
|
1450
|
+
},
|
|
1451
|
+
"tree": {
|
|
1452
|
+
"ariaLabel": "Árbol jerárquico",
|
|
1453
|
+
"expandAria": "Expandir {{label}}",
|
|
1454
|
+
"collapseAria": "Contraer {{label}}"
|
|
1455
|
+
},
|
|
1456
|
+
"timeline": {
|
|
1457
|
+
"emptyState": "No hay elementos para mostrar",
|
|
1458
|
+
"undatedTitle": "Sin fechas",
|
|
1459
|
+
"expandNode": "Expandir",
|
|
1460
|
+
"collapseNode": "Contraer",
|
|
1461
|
+
"months": {
|
|
1462
|
+
"0": "ene",
|
|
1463
|
+
"1": "feb",
|
|
1464
|
+
"2": "mar",
|
|
1465
|
+
"3": "abr",
|
|
1466
|
+
"4": "may",
|
|
1467
|
+
"5": "jun",
|
|
1468
|
+
"6": "jul",
|
|
1469
|
+
"7": "ago",
|
|
1470
|
+
"8": "sep",
|
|
1471
|
+
"9": "oct",
|
|
1472
|
+
"10": "nov",
|
|
1473
|
+
"11": "dic"
|
|
1474
|
+
}
|
|
1475
|
+
},
|
|
1476
|
+
"flowCanvas": {
|
|
1477
|
+
"regionLabel": "Lienzo de flujo",
|
|
1478
|
+
"nodeAriaLabel": "Nodo {{label}}",
|
|
1479
|
+
"connectFromLabel": "Conectar desde {{label}}",
|
|
1480
|
+
"removeConnectionLabel": "Quitar conexión",
|
|
1481
|
+
"movedAnnouncement": "{{label}} se movió.",
|
|
1482
|
+
"moveCancelledAnnouncement": "Se canceló el movimiento del nodo.",
|
|
1483
|
+
"connectArmedAnnouncement": "Modo conectar activo desde {{label}} — selecciona el nodo destino. {{count}} destinos válidos disponibles.",
|
|
1484
|
+
"connectionCreatedAnnouncement": "Conexión creada de {{source}} a {{target}}.",
|
|
1485
|
+
"connectionRemovedAnnouncement": "Conexión eliminada.",
|
|
1486
|
+
"autoLayoutButton": "Organizar",
|
|
1487
|
+
"autoLayoutButtonAriaLabel": "Organizar automáticamente los nodos del lienzo"
|
|
1488
|
+
},
|
|
1489
|
+
"kanban": {
|
|
1490
|
+
"columnAria": "Columna {{title}}",
|
|
1491
|
+
"itemCountAriaSingular": "1 tarjeta",
|
|
1492
|
+
"itemCountAriaPlural": "{{count}} tarjetas",
|
|
1493
|
+
"emptyColumn": "Sin tarjetas",
|
|
1494
|
+
"addColumn": "Agregar",
|
|
1495
|
+
"moveAriaLabel": "Mover tarjeta",
|
|
1496
|
+
"movePlaceholder": "Mover a...",
|
|
1497
|
+
"moveUp": "Subir",
|
|
1498
|
+
"moveDown": "Bajar",
|
|
1499
|
+
"moveToColumn": "Mover a {{column}}",
|
|
1500
|
+
"movedWithinColumn": "Tarjeta reordenada dentro de la columna",
|
|
1501
|
+
"movedToColumn": "Tarjeta movida a la columna {{column}}"
|
|
1502
|
+
},
|
|
1503
|
+
"calendar": {
|
|
1504
|
+
"today": "Hoy",
|
|
1505
|
+
"previous": "Anterior",
|
|
1506
|
+
"next": "Siguiente",
|
|
1507
|
+
"viewWeek": "Semana",
|
|
1508
|
+
"viewDay": "Día",
|
|
1509
|
+
"weekdayShort": {
|
|
1510
|
+
"0": "Dom",
|
|
1511
|
+
"1": "Lun",
|
|
1512
|
+
"2": "Mar",
|
|
1513
|
+
"3": "Mié",
|
|
1514
|
+
"4": "Jue",
|
|
1515
|
+
"5": "Vie",
|
|
1516
|
+
"6": "Sáb"
|
|
1517
|
+
},
|
|
1518
|
+
"months": {
|
|
1519
|
+
"0": "ene",
|
|
1520
|
+
"1": "feb",
|
|
1521
|
+
"2": "mar",
|
|
1522
|
+
"3": "abr",
|
|
1523
|
+
"4": "may",
|
|
1524
|
+
"5": "jun",
|
|
1525
|
+
"6": "jul",
|
|
1526
|
+
"7": "ago",
|
|
1527
|
+
"8": "sep",
|
|
1528
|
+
"9": "oct",
|
|
1529
|
+
"10": "nov",
|
|
1530
|
+
"11": "dic"
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1533
|
+
"modal": {
|
|
1534
|
+
"close": "Cerrar"
|
|
1535
|
+
},
|
|
1536
|
+
"confirmDialog": {
|
|
1537
|
+
"title": "¿Estás seguro?",
|
|
1538
|
+
"confirm": "Confirmar",
|
|
1539
|
+
"cancel": "Cancelar"
|
|
1540
|
+
},
|
|
1541
|
+
"searchInput": {
|
|
1542
|
+
"placeholder": "Buscar...",
|
|
1543
|
+
"clear": "Limpiar búsqueda"
|
|
1544
|
+
},
|
|
1545
|
+
"select": {
|
|
1546
|
+
"placeholder": "Selecciona...",
|
|
1547
|
+
"all": "Todos",
|
|
1548
|
+
"searchPlaceholder": "Buscar...",
|
|
1549
|
+
"empty": "Sin resultados",
|
|
1550
|
+
"selectAll": "Todos",
|
|
1551
|
+
"selectNone": "Ninguno"
|
|
1552
|
+
},
|
|
1553
|
+
"fileUpload": {
|
|
1554
|
+
"label": "Arrastra o haz clic para subir",
|
|
1555
|
+
"hint": "JPG, PNG, WEBP o GIF · máx. 5 MB",
|
|
1556
|
+
"preview": "Vista previa",
|
|
1557
|
+
"remove": "Quitar imagen",
|
|
1558
|
+
"change": "Cambiar imagen",
|
|
1559
|
+
"invalidType": "Formato no válido. Solo se permiten: {{types}}",
|
|
1560
|
+
"tooLarge": "La imagen pesa {{size}} MB y supera el máximo de {{max}} MB"
|
|
1561
|
+
},
|
|
1562
|
+
"wizard": {
|
|
1563
|
+
"previous": "Anterior",
|
|
1564
|
+
"next": "Siguiente",
|
|
1565
|
+
"finish": "Finalizar"
|
|
1566
|
+
},
|
|
1567
|
+
"progressBar": {
|
|
1568
|
+
"stepOf": "Paso {{current}} de {{total}}",
|
|
1569
|
+
"aria": "Progreso"
|
|
1570
|
+
},
|
|
1571
|
+
"pagination": {
|
|
1572
|
+
"show": "Mostrar",
|
|
1573
|
+
"rows": "filas",
|
|
1574
|
+
"range": "{{start}}–{{end}} de {{total}}",
|
|
1575
|
+
"previous": "Página anterior",
|
|
1576
|
+
"next": "Página siguiente"
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
};
|
|
1580
|
+
|
|
1581
|
+
const BUNDLED_EN = CATALOG_EN;
|
|
1582
|
+
const BUNDLED_ES_CO = CATALOG_ES_CO;
|
|
1583
|
+
/** Looks up a dotted key (`shared.modal.close`) in a nested catalog. */
|
|
1584
|
+
function lookupCatalog(catalog, key) {
|
|
1585
|
+
let node = catalog;
|
|
1586
|
+
for (const segment of key.split('.')) {
|
|
1587
|
+
if (node === undefined || typeof node === 'string')
|
|
1588
|
+
return undefined;
|
|
1589
|
+
node = node[segment];
|
|
1590
|
+
}
|
|
1591
|
+
return typeof node === 'string' ? node : undefined;
|
|
1592
|
+
}
|
|
1593
|
+
function interpolate(text, params) {
|
|
1594
|
+
if (!params)
|
|
1595
|
+
return text;
|
|
1596
|
+
return text.replace(/\{\{\s*(\w+)\s*\}\}/g, (match, name) => name in params ? String(params[name]) : match);
|
|
1597
|
+
}
|
|
1598
|
+
/**
|
|
1599
|
+
* Resolves a key against the bundled catalogs: `es*` languages read Colombian Spanish,
|
|
1600
|
+
* any other language reads English; a key missing there falls back to English.
|
|
1601
|
+
*/
|
|
1602
|
+
function bundledText(lang, key, params) {
|
|
1603
|
+
const own = (lang ?? '').toLowerCase().startsWith('es') ? BUNDLED_ES_CO : BUNDLED_EN;
|
|
1604
|
+
const text = lookupCatalog(own, key) ?? lookupCatalog(BUNDLED_EN, key);
|
|
1605
|
+
return text === undefined ? undefined : interpolate(text, params);
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
/** Bundled English catalog of every `shared.*` key (also shipped as `@solercia/ui/i18n/en.json`). */
|
|
1609
|
+
const SOL_I18N_EN = BUNDLED_EN;
|
|
1610
|
+
/** Bundled Colombian Spanish catalog (also shipped as `@solercia/ui/i18n/es-CO.json`). */
|
|
1611
|
+
const SOL_I18N_ES_CO = BUNDLED_ES_CO;
|
|
1612
|
+
/**
|
|
1613
|
+
* Ready-to-use `SolI18n` engine backed by catalogs (by default the bundled English
|
|
1614
|
+
* and Colombian Spanish ones). The language is matched exactly, then by its base
|
|
1615
|
+
* (`es` ↔ `es-CO`); a key missing there falls back to the `en` catalog, then to the key.
|
|
1616
|
+
*
|
|
1617
|
+
* ```ts
|
|
1618
|
+
* { provide: SOL_I18N, useFactory: () => createSolI18n({ lang: 'es-CO' }) }
|
|
1619
|
+
* ```
|
|
1620
|
+
*/
|
|
1621
|
+
function createSolI18n(options = {}) {
|
|
1622
|
+
const catalogs = options.catalogs ?? { en: SOL_I18N_EN, 'es-CO': SOL_I18N_ES_CO };
|
|
1623
|
+
const lang = signal(options.lang ?? 'en', /* @ts-ignore */
|
|
1624
|
+
...(ngDevMode ? [{ debugName: "lang" }] : /* istanbul ignore next */ []));
|
|
1625
|
+
const base = (code) => code.toLowerCase().split('-')[0];
|
|
1626
|
+
const catalogFor = (active) => catalogs[active] ?? Object.entries(catalogs).find(([code]) => base(code) === base(active))?.[1];
|
|
1627
|
+
const translate = (key, params) => {
|
|
1628
|
+
const own = catalogFor(lang());
|
|
1629
|
+
const english = catalogs['en'];
|
|
1630
|
+
const text = (own && lookupCatalog(own, key)) ?? (english && lookupCatalog(english, key));
|
|
1631
|
+
return text === undefined ? key : interpolate(text, params);
|
|
1632
|
+
};
|
|
1633
|
+
return {
|
|
1634
|
+
activeLang: lang.asReadonly(),
|
|
1635
|
+
setLang: (next) => lang.set(next),
|
|
1636
|
+
translate,
|
|
1637
|
+
t: (key, params) => computed(() => translate(key, params)),
|
|
1638
|
+
tMany: (keys) => computed(() => keys.map((key) => translate(key))),
|
|
1639
|
+
};
|
|
1640
|
+
}
|
|
1641
|
+
/**
|
|
1642
|
+
* Identity engine: returns keys unchanged. The components still render English
|
|
1643
|
+
* texts with it, because every `shared.*` key falls back to the bundled catalogs.
|
|
1644
|
+
*/
|
|
1645
|
+
function createIdentitySolI18n() {
|
|
1646
|
+
return {
|
|
1647
|
+
activeLang: signal('en'),
|
|
1648
|
+
translate: (key) => key,
|
|
1649
|
+
t: (key) => signal(key),
|
|
1650
|
+
tMany: (keys) => signal(keys),
|
|
1651
|
+
};
|
|
1652
|
+
}
|
|
1653
|
+
/**
|
|
1654
|
+
* Injection token for the i18n contract. Defaults to an English engine backed by
|
|
1655
|
+
* the bundled catalogs, so the library works out of the box; the host overrides it
|
|
1656
|
+
* with its own engine, or with `createSolI18n({ lang: 'es-CO' })` for Spanish.
|
|
1657
|
+
*/
|
|
1658
|
+
const SOL_I18N = new InjectionToken('SOL_I18N', {
|
|
1659
|
+
providedIn: 'root',
|
|
1660
|
+
factory: () => createSolI18n(),
|
|
1661
|
+
});
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* Internal (not exported): wraps the host `SolI18n` so a key the host does not
|
|
1665
|
+
* translate (the engine returns the key unchanged) falls back to the bundled
|
|
1666
|
+
* catalog of the active language — `es*` → Colombian Spanish, otherwise English.
|
|
1667
|
+
* Keys outside the bundled catalogs (host keys such as `step.labelKey`) are
|
|
1668
|
+
* returned exactly as the host engine returned them.
|
|
1669
|
+
*/
|
|
1670
|
+
function withBundledFallback(host) {
|
|
1671
|
+
const resolve = (key, translated, params) => translated && translated !== key ? translated : (bundledText(host.activeLang(), key, params) ?? translated);
|
|
1672
|
+
return {
|
|
1673
|
+
activeLang: host.activeLang,
|
|
1674
|
+
translate: (key, params) => resolve(key, host.translate(key, params), params),
|
|
1675
|
+
t: (key, params) => {
|
|
1676
|
+
const source = host.t(key, params);
|
|
1677
|
+
return computed(() => resolve(key, source(), params));
|
|
1678
|
+
},
|
|
1679
|
+
tMany: (keys) => {
|
|
1680
|
+
const source = host.tMany(keys);
|
|
1681
|
+
return computed(() => source().map((value, index) => resolve(keys[index], value)));
|
|
1682
|
+
},
|
|
1683
|
+
};
|
|
1684
|
+
}
|
|
1685
|
+
/** Injects `SOL_I18N` with the bundled-catalog fallback (call in an injection context). */
|
|
1686
|
+
function injectSolI18n() {
|
|
1687
|
+
return withBundledFallback(inject(SOL_I18N));
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1003
1690
|
/** Minúsculas y sin tildes: «bogota» encuentra «Bogotá». */
|
|
1004
1691
|
function foldText(text) {
|
|
1005
1692
|
return text.normalize('NFD').replace(/\p{M}/gu, '').toLowerCase();
|
|
@@ -1024,7 +1711,7 @@ function foldText(text) {
|
|
|
1024
1711
|
class SolSelectComponent {
|
|
1025
1712
|
hostEl;
|
|
1026
1713
|
/** Placeholder text when nothing is selected. */
|
|
1027
|
-
placeholder = input(
|
|
1714
|
+
placeholder = input(undefined, /* @ts-ignore */
|
|
1028
1715
|
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
1029
1716
|
/** Label displayed above the select. */
|
|
1030
1717
|
label = input('', /* @ts-ignore */
|
|
@@ -1044,20 +1731,20 @@ class SolSelectComponent {
|
|
|
1044
1731
|
/** Options array — use this instead of ng-content for searchable/multi. */
|
|
1045
1732
|
options = input([], /* @ts-ignore */
|
|
1046
1733
|
...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
1047
|
-
/** Show
|
|
1734
|
+
/** Show an "All" / clear option in single mode. */
|
|
1048
1735
|
showAllOption = input(false, /* @ts-ignore */
|
|
1049
1736
|
...(ngDevMode ? [{ debugName: "showAllOption" }] : /* istanbul ignore next */ []));
|
|
1050
|
-
/** Label for the "all" option in single mode. */
|
|
1051
|
-
allOptionLabel = input(
|
|
1737
|
+
/** Label for the "all" option in single mode (default `shared.select.all`). */
|
|
1738
|
+
allOptionLabel = input(undefined, /* @ts-ignore */
|
|
1052
1739
|
...(ngDevMode ? [{ debugName: "allOptionLabel" }] : /* istanbul ignore next */ []));
|
|
1053
1740
|
/** Accessible name of the trigger when no `label` or wrapping `<label>` gives one. */
|
|
1054
1741
|
ariaLabel = input('', /* @ts-ignore */
|
|
1055
1742
|
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
1056
1743
|
/** Placeholder (and accessible name) of the search input. */
|
|
1057
|
-
searchPlaceholder = input(
|
|
1744
|
+
searchPlaceholder = input(undefined, /* @ts-ignore */
|
|
1058
1745
|
...(ngDevMode ? [{ debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []));
|
|
1059
|
-
/** Message when the search matches nothing. */
|
|
1060
|
-
emptyLabel = input(
|
|
1746
|
+
/** Message when the search matches nothing (default `shared.select.empty`). */
|
|
1747
|
+
emptyLabel = input(undefined, /* @ts-ignore */
|
|
1061
1748
|
...(ngDevMode ? [{ debugName: "emptyLabel" }] : /* istanbul ignore next */ []));
|
|
1062
1749
|
/** Controlled value in single mode: use it with `(valueChange)` instead of a form binding. */
|
|
1063
1750
|
value = input(undefined, /* @ts-ignore */
|
|
@@ -1109,6 +1796,24 @@ class SolSelectComponent {
|
|
|
1109
1796
|
panelId = `sol-select-panel-${this.uid}`;
|
|
1110
1797
|
triggerId = `sol-select-trigger-${this.uid}`;
|
|
1111
1798
|
injector = inject(Injector);
|
|
1799
|
+
i18n = injectSolI18n();
|
|
1800
|
+
// Visible texts: an explicit input always wins (even ''); otherwise the shared.select.* key.
|
|
1801
|
+
placeholderText = computed(() => this.text(this.placeholder(), 'shared.select.placeholder'), /* @ts-ignore */
|
|
1802
|
+
...(ngDevMode ? [{ debugName: "placeholderText" }] : /* istanbul ignore next */ []));
|
|
1803
|
+
searchPlaceholderText = computed(() => this.text(this.searchPlaceholder(), 'shared.select.searchPlaceholder'), /* @ts-ignore */
|
|
1804
|
+
...(ngDevMode ? [{ debugName: "searchPlaceholderText" }] : /* istanbul ignore next */ []));
|
|
1805
|
+
emptyText = computed(() => this.text(this.emptyLabel(), 'shared.select.empty'), /* @ts-ignore */
|
|
1806
|
+
...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
|
|
1807
|
+
allOptionText = computed(() => this.text(this.allOptionLabel(), 'shared.select.all'), /* @ts-ignore */
|
|
1808
|
+
...(ngDevMode ? [{ debugName: "allOptionText" }] : /* istanbul ignore next */ []));
|
|
1809
|
+
selectAllText = computed(() => this.text(undefined, 'shared.select.selectAll'), /* @ts-ignore */
|
|
1810
|
+
...(ngDevMode ? [{ debugName: "selectAllText" }] : /* istanbul ignore next */ []));
|
|
1811
|
+
selectNoneText = computed(() => this.text(undefined, 'shared.select.selectNone'), /* @ts-ignore */
|
|
1812
|
+
...(ngDevMode ? [{ debugName: "selectNoneText" }] : /* istanbul ignore next */ []));
|
|
1813
|
+
text(override, key) {
|
|
1814
|
+
this.i18n.activeLang();
|
|
1815
|
+
return override ?? this.i18n.translate(key);
|
|
1816
|
+
}
|
|
1112
1817
|
filteredOptions = computed(() => {
|
|
1113
1818
|
const term = foldText(this.searchTerm());
|
|
1114
1819
|
const opts = this.options();
|
|
@@ -1121,7 +1826,7 @@ class SolSelectComponent {
|
|
|
1121
1826
|
navItems = computed(() => {
|
|
1122
1827
|
const filtered = this.filteredOptions();
|
|
1123
1828
|
return !this.multiple() && this.showAllOption()
|
|
1124
|
-
? [{ value: '', label: this.
|
|
1829
|
+
? [{ value: '', label: this.allOptionText() }, ...filtered]
|
|
1125
1830
|
: filtered;
|
|
1126
1831
|
}, /* @ts-ignore */
|
|
1127
1832
|
...(ngDevMode ? [{ debugName: "navItems" }] : /* istanbul ignore next */ []));
|
|
@@ -1145,7 +1850,7 @@ class SolSelectComponent {
|
|
|
1145
1850
|
if (selected.size === 0)
|
|
1146
1851
|
return '';
|
|
1147
1852
|
if (selected.size === this.options().length)
|
|
1148
|
-
return
|
|
1853
|
+
return this.allOptionText();
|
|
1149
1854
|
const labels = this.options()
|
|
1150
1855
|
.filter(o => selected.has(o.value))
|
|
1151
1856
|
.map(o => o.label);
|
|
@@ -1378,7 +2083,7 @@ class SolSelectComponent {
|
|
|
1378
2083
|
(blur)="onBlur()"
|
|
1379
2084
|
>
|
|
1380
2085
|
<span class="sol-select__display" [class.sol-select__display--placeholder]="!displayText()">
|
|
1381
|
-
{{ displayText() ||
|
|
2086
|
+
{{ displayText() || placeholderText() }}
|
|
1382
2087
|
</span>
|
|
1383
2088
|
<sol-icon name="chevron-down" variant="fill" class="sol-select__arrow" [class.sol-select__arrow--open]="isOpen()" />
|
|
1384
2089
|
</button>
|
|
@@ -1410,8 +2115,8 @@ class SolSelectComponent {
|
|
|
1410
2115
|
aria-expanded="true"
|
|
1411
2116
|
[attr.aria-controls]="panelId"
|
|
1412
2117
|
[attr.aria-activedescendant]="activeOptionId()"
|
|
1413
|
-
[attr.aria-label]="
|
|
1414
|
-
[placeholder]="
|
|
2118
|
+
[attr.aria-label]="searchPlaceholderText()"
|
|
2119
|
+
[placeholder]="searchPlaceholderText()"
|
|
1415
2120
|
[value]="searchTerm()"
|
|
1416
2121
|
(input)="onSearchInput($event)"
|
|
1417
2122
|
/>
|
|
@@ -1421,8 +2126,8 @@ class SolSelectComponent {
|
|
|
1421
2126
|
<!-- Select all / none for multi -->
|
|
1422
2127
|
@if (multiple()) {
|
|
1423
2128
|
<div class="sol-select__bulk-actions">
|
|
1424
|
-
<button type="button" class="sol-select__bulk-btn" (click)="selectAll()">
|
|
1425
|
-
<button type="button" class="sol-select__bulk-btn" (click)="selectNone()">
|
|
2129
|
+
<button type="button" class="sol-select__bulk-btn" (click)="selectAll()">{{ selectAllText() }}</button>
|
|
2130
|
+
<button type="button" class="sol-select__bulk-btn" (click)="selectNone()">{{ selectNoneText() }}</button>
|
|
1426
2131
|
</div>
|
|
1427
2132
|
}
|
|
1428
2133
|
|
|
@@ -1458,7 +2163,7 @@ class SolSelectComponent {
|
|
|
1458
2163
|
}
|
|
1459
2164
|
</div>
|
|
1460
2165
|
@if (filteredOptions().length === 0) {
|
|
1461
|
-
<div class="sol-select__empty" role="status">{{
|
|
2166
|
+
<div class="sol-select__empty" role="status">{{ emptyText() }}</div>
|
|
1462
2167
|
}
|
|
1463
2168
|
</div>
|
|
1464
2169
|
}
|
|
@@ -1501,7 +2206,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
1501
2206
|
(blur)="onBlur()"
|
|
1502
2207
|
>
|
|
1503
2208
|
<span class="sol-select__display" [class.sol-select__display--placeholder]="!displayText()">
|
|
1504
|
-
{{ displayText() ||
|
|
2209
|
+
{{ displayText() || placeholderText() }}
|
|
1505
2210
|
</span>
|
|
1506
2211
|
<sol-icon name="chevron-down" variant="fill" class="sol-select__arrow" [class.sol-select__arrow--open]="isOpen()" />
|
|
1507
2212
|
</button>
|
|
@@ -1533,8 +2238,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
1533
2238
|
aria-expanded="true"
|
|
1534
2239
|
[attr.aria-controls]="panelId"
|
|
1535
2240
|
[attr.aria-activedescendant]="activeOptionId()"
|
|
1536
|
-
[attr.aria-label]="
|
|
1537
|
-
[placeholder]="
|
|
2241
|
+
[attr.aria-label]="searchPlaceholderText()"
|
|
2242
|
+
[placeholder]="searchPlaceholderText()"
|
|
1538
2243
|
[value]="searchTerm()"
|
|
1539
2244
|
(input)="onSearchInput($event)"
|
|
1540
2245
|
/>
|
|
@@ -1544,8 +2249,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
1544
2249
|
<!-- Select all / none for multi -->
|
|
1545
2250
|
@if (multiple()) {
|
|
1546
2251
|
<div class="sol-select__bulk-actions">
|
|
1547
|
-
<button type="button" class="sol-select__bulk-btn" (click)="selectAll()">
|
|
1548
|
-
<button type="button" class="sol-select__bulk-btn" (click)="selectNone()">
|
|
2252
|
+
<button type="button" class="sol-select__bulk-btn" (click)="selectAll()">{{ selectAllText() }}</button>
|
|
2253
|
+
<button type="button" class="sol-select__bulk-btn" (click)="selectNone()">{{ selectNoneText() }}</button>
|
|
1549
2254
|
</div>
|
|
1550
2255
|
}
|
|
1551
2256
|
|
|
@@ -1581,7 +2286,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
1581
2286
|
}
|
|
1582
2287
|
</div>
|
|
1583
2288
|
@if (filteredOptions().length === 0) {
|
|
1584
|
-
<div class="sol-select__empty" role="status">{{
|
|
2289
|
+
<div class="sol-select__empty" role="status">{{ emptyText() }}</div>
|
|
1585
2290
|
}
|
|
1586
2291
|
</div>
|
|
1587
2292
|
}
|
|
@@ -1852,6 +2557,99 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
1852
2557
|
`, styles: [":host{display:inline-block;--sol-toggle-track-off: var(--sol-color-text-muted, #cbd5e1);--sol-toggle-track-on: var(--sol-color-primary, #6366f1);--sol-toggle-thumb: var(--sol-bg-surface, #ffffff);--sol-toggle-label-color: var(--sol-color-text-primary, #1e293b);--sol-toggle-state-color: var(--sol-color-text-secondary, #475569);--sol-toggle-disabled-opacity: var(--sol-disabled-opacity, .55);--sol-toggle-focus-ring: var(--sol-focus-ring, 0 0 0 3px color-mix(in srgb, var(--sol-color-primary, #6366f1) 40%, transparent));--sol-toggle-transition: var(--sol-transition-fast, .15s ease);--sol-toggle-shadow: var(--sol-shadow-sm, 0 1px 2px rgba(0,0,0,.1));--sol-toggle-md-width: 2.75rem;--sol-toggle-md-height: 1.5rem;--sol-toggle-md-thumb: 1.25rem;--sol-toggle-md-offset: .125rem;--sol-toggle-md-label-font: var(--sol-font-size-base, .875rem);--sol-toggle-sm-width: 2rem;--sol-toggle-sm-height: 1.125rem;--sol-toggle-sm-thumb: .875rem;--sol-toggle-sm-offset: .125rem;--sol-toggle-sm-label-font: var(--sol-font-size-sm, .75rem)}.sol-toggle{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer}.sol-toggle--disabled{cursor:not-allowed;opacity:var(--sol-toggle-disabled-opacity)}.sol-toggle__track{position:relative;display:inline-flex;align-items:center;flex-shrink:0;border:none;padding:0;cursor:pointer;border-radius:9999px;background-color:var(--sol-toggle-track-off);transition:background-color var(--sol-toggle-transition)}.sol-toggle__track:focus-visible{outline:none;box-shadow:var(--sol-toggle-focus-ring)}.sol-toggle__track:disabled{cursor:not-allowed}.sol-toggle__track--on{background-color:var(--sol-toggle-track-on)}.sol-toggle__track--md{width:var(--sol-toggle-md-width);height:var(--sol-toggle-md-height)}.sol-toggle__track--sm{width:var(--sol-toggle-sm-width);height:var(--sol-toggle-sm-height)}.sol-toggle__thumb{display:block;border-radius:9999px;background-color:var(--sol-toggle-thumb);box-shadow:var(--sol-toggle-shadow);transition:transform var(--sol-toggle-transition)}.sol-toggle__thumb--md{width:var(--sol-toggle-md-thumb);height:var(--sol-toggle-md-thumb);transform:translate(var(--sol-toggle-md-offset))}.sol-toggle__thumb--md-on{transform:translate(calc(var(--sol-toggle-md-width) - var(--sol-toggle-md-thumb) - var(--sol-toggle-md-offset)))}.sol-toggle__thumb--sm{width:var(--sol-toggle-sm-thumb);height:var(--sol-toggle-sm-thumb);transform:translate(var(--sol-toggle-sm-offset))}.sol-toggle__thumb--sm-on{transform:translate(calc(var(--sol-toggle-sm-width) - var(--sol-toggle-sm-thumb) - var(--sol-toggle-sm-offset)))}.sol-toggle__state{min-width:1.75rem;font-weight:var(--sol-font-weight-bold, 600);text-transform:uppercase;letter-spacing:.04em;color:var(--sol-toggle-state-color);-webkit-user-select:none;user-select:none}.sol-toggle--sm .sol-toggle__state,.sol-toggle--md .sol-toggle__state{font-size:var(--sol-font-size-sm, .75rem)}.sol-toggle__label{color:var(--sol-toggle-label-color);-webkit-user-select:none;user-select:none}.sol-toggle--sm .sol-toggle__label{font-size:var(--sol-toggle-sm-label-font)}.sol-toggle--md .sol-toggle__label{font-size:var(--sol-toggle-md-label-font)}\n"] }]
|
|
1853
2558
|
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], onText: [{ type: i0.Input, args: [{ isSignal: true, alias: "onText", required: false }] }], offText: [{ type: i0.Input, args: [{ isSignal: true, alias: "offText", required: false }] }] } });
|
|
1854
2559
|
|
|
2560
|
+
/**
|
|
2561
|
+
* El objetivo (por defecto `document.body`) se resuelve al bloquear, no al
|
|
2562
|
+
* importar el módulo: así la librería se puede importar en un prerender
|
|
2563
|
+
* (Node, sin `document`) y el candado no hace nada fuera del navegador.
|
|
2564
|
+
*/
|
|
2565
|
+
function createBodyScrollLock(target) {
|
|
2566
|
+
let count = 0;
|
|
2567
|
+
let previousOverflow = '';
|
|
2568
|
+
const element = () => target ?? (typeof document === 'undefined' ? null : document.body);
|
|
2569
|
+
return {
|
|
2570
|
+
lock() {
|
|
2571
|
+
const el = element();
|
|
2572
|
+
if (!el)
|
|
2573
|
+
return;
|
|
2574
|
+
if (count === 0) {
|
|
2575
|
+
previousOverflow = el.style.overflow;
|
|
2576
|
+
el.style.overflow = 'hidden';
|
|
2577
|
+
}
|
|
2578
|
+
count++;
|
|
2579
|
+
},
|
|
2580
|
+
unlock() {
|
|
2581
|
+
const el = element();
|
|
2582
|
+
if (!el || count === 0)
|
|
2583
|
+
return;
|
|
2584
|
+
count--;
|
|
2585
|
+
if (count === 0) {
|
|
2586
|
+
el.style.overflow = previousOverflow;
|
|
2587
|
+
}
|
|
2588
|
+
},
|
|
2589
|
+
};
|
|
2590
|
+
}
|
|
2591
|
+
/** Instancia compartida sobre `document.body` — un único contador para toda la app. */
|
|
2592
|
+
const bodyScrollLock = createBodyScrollLock();
|
|
2593
|
+
|
|
2594
|
+
/**
|
|
2595
|
+
* Focus trap propio, sin `@angular/cdk/a11y` ni `@angular/cdk/overlay`
|
|
2596
|
+
* (filosofía in-house del proyecto — el CDK solo está permitido en el
|
|
2597
|
+
* drag-drop de `sol-kanban`, gateado por ESLint). Cicla el `Tab` dentro del
|
|
2598
|
+
* contenedor del overlay y devuelve el foco al disparador al desactivarse
|
|
2599
|
+
* (11-h-sol-drawer, T01/T03).
|
|
2600
|
+
*/
|
|
2601
|
+
const FOCUSABLE_SELECTOR = [
|
|
2602
|
+
'a[href]',
|
|
2603
|
+
'button:not([disabled])',
|
|
2604
|
+
'textarea:not([disabled])',
|
|
2605
|
+
'input:not([disabled])',
|
|
2606
|
+
'select:not([disabled])',
|
|
2607
|
+
'[tabindex]:not([tabindex="-1"])',
|
|
2608
|
+
].join(',');
|
|
2609
|
+
function createFocusTrap(container) {
|
|
2610
|
+
let triggerEl = null;
|
|
2611
|
+
function focusableElements() {
|
|
2612
|
+
return Array.from(container.querySelectorAll(FOCUSABLE_SELECTOR));
|
|
2613
|
+
}
|
|
2614
|
+
function onKeydown(event) {
|
|
2615
|
+
if (event.key !== 'Tab')
|
|
2616
|
+
return;
|
|
2617
|
+
const elements = focusableElements();
|
|
2618
|
+
if (elements.length === 0) {
|
|
2619
|
+
// Sin controles focuseables: el propio contenedor absorbe el foco.
|
|
2620
|
+
event.preventDefault();
|
|
2621
|
+
container.focus();
|
|
2622
|
+
return;
|
|
2623
|
+
}
|
|
2624
|
+
const first = elements[0];
|
|
2625
|
+
const last = elements[elements.length - 1];
|
|
2626
|
+
const active = document.activeElement;
|
|
2627
|
+
if (event.shiftKey) {
|
|
2628
|
+
if (active === first || !container.contains(active)) {
|
|
2629
|
+
event.preventDefault();
|
|
2630
|
+
last.focus();
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
else if (active === last || !container.contains(active)) {
|
|
2634
|
+
event.preventDefault();
|
|
2635
|
+
first.focus();
|
|
2636
|
+
}
|
|
2637
|
+
}
|
|
2638
|
+
return {
|
|
2639
|
+
activate(returnFocusTo = document.activeElement) {
|
|
2640
|
+
triggerEl = returnFocusTo;
|
|
2641
|
+
document.addEventListener('keydown', onKeydown);
|
|
2642
|
+
const [first] = focusableElements();
|
|
2643
|
+
(first ?? container).focus();
|
|
2644
|
+
},
|
|
2645
|
+
deactivate() {
|
|
2646
|
+
document.removeEventListener('keydown', onKeydown);
|
|
2647
|
+
triggerEl?.focus?.();
|
|
2648
|
+
triggerEl = null;
|
|
2649
|
+
},
|
|
2650
|
+
};
|
|
2651
|
+
}
|
|
2652
|
+
|
|
1855
2653
|
/**
|
|
1856
2654
|
* Predicados puros compartidos por los overlays de la casa (`sol-modal`,
|
|
1857
2655
|
* `sol-drawer`): deciden si un evento de interacción debe cerrar el overlay,
|
|
@@ -1871,6 +2669,8 @@ function shouldCloseOnBackdrop(closeable, closeOnBackdrop) {
|
|
|
1871
2669
|
}
|
|
1872
2670
|
|
|
1873
2671
|
class SolModalComponent {
|
|
2672
|
+
static nextId = 0;
|
|
2673
|
+
i18n = injectSolI18n();
|
|
1874
2674
|
/** Whether the modal is open. */
|
|
1875
2675
|
open = input(false, /* @ts-ignore */
|
|
1876
2676
|
...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
@@ -1886,13 +2686,43 @@ class SolModalComponent {
|
|
|
1886
2686
|
/** Whether clicking the backdrop closes the modal. */
|
|
1887
2687
|
closeOnBackdrop = input(false, /* @ts-ignore */
|
|
1888
2688
|
...(ngDevMode ? [{ debugName: "closeOnBackdrop" }] : /* istanbul ignore next */ []));
|
|
2689
|
+
/** Accessible name of the dialog when there is no `title` (ignored when a title is set). */
|
|
2690
|
+
ariaLabel = input('', /* @ts-ignore */
|
|
2691
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
1889
2692
|
/** Emitted when the modal requests to be closed. */
|
|
1890
2693
|
closed = output();
|
|
1891
2694
|
/** Computed CSS class for the panel size. */
|
|
1892
2695
|
panelClasses = computed(() => `sol-modal-content sol-modal-${this.size()}`, /* @ts-ignore */
|
|
1893
2696
|
...(ngDevMode ? [{ debugName: "panelClasses" }] : /* istanbul ignore next */ []));
|
|
1894
|
-
|
|
1895
|
-
|
|
2697
|
+
/** Unique id consumed by `aria-labelledby`. */
|
|
2698
|
+
titleId = `sol-modal-title-${SolModalComponent.nextId++}`;
|
|
2699
|
+
/** Accessible label of the close button (`shared.modal.close`). */
|
|
2700
|
+
closeLabel = computed(() => {
|
|
2701
|
+
this.i18n.activeLang();
|
|
2702
|
+
return this.i18n.translate('shared.modal.close');
|
|
2703
|
+
}, /* @ts-ignore */
|
|
2704
|
+
...(ngDevMode ? [{ debugName: "closeLabel" }] : /* istanbul ignore next */ []));
|
|
2705
|
+
panelEl = viewChild('panel', /* @ts-ignore */
|
|
2706
|
+
...(ngDevMode ? [{ debugName: "panelEl" }] : /* istanbul ignore next */ []));
|
|
2707
|
+
constructor() {
|
|
2708
|
+
// Same lifecycle as sol-drawer: while the panel is mounted, the background scroll is
|
|
2709
|
+
// locked and focus is trapped inside; on close (or destroy) both are released and
|
|
2710
|
+
// focus returns to the element that was focused before opening.
|
|
2711
|
+
effect(onCleanup => {
|
|
2712
|
+
const panel = this.panelEl()?.nativeElement ?? null;
|
|
2713
|
+
if (!panel)
|
|
2714
|
+
return;
|
|
2715
|
+
const trigger = document.activeElement;
|
|
2716
|
+
bodyScrollLock.lock();
|
|
2717
|
+
const trap = createFocusTrap(panel);
|
|
2718
|
+
trap.activate(trigger);
|
|
2719
|
+
onCleanup(() => {
|
|
2720
|
+
trap.deactivate();
|
|
2721
|
+
bodyScrollLock.unlock();
|
|
2722
|
+
});
|
|
2723
|
+
});
|
|
2724
|
+
}
|
|
2725
|
+
// Escape and backdrop share the gating helpers of sol-drawer.
|
|
1896
2726
|
onEscapeKey() {
|
|
1897
2727
|
if (shouldCloseOnEscape(this.open(), this.closeable())) {
|
|
1898
2728
|
this.close();
|
|
@@ -1907,24 +2737,32 @@ class SolModalComponent {
|
|
|
1907
2737
|
this.closed.emit();
|
|
1908
2738
|
}
|
|
1909
2739
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SolModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1910
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: SolModalComponent, isStandalone: true, selector: "sol-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, closeable: { classPropertyName: "closeable", publicName: "closeable", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { listeners: { "document:keydown.escape": "onEscapeKey()" } }, ngImport: i0, template: `
|
|
2740
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: SolModalComponent, isStandalone: true, selector: "sol-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, closeable: { classPropertyName: "closeable", publicName: "closeable", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { listeners: { "document:keydown.escape": "onEscapeKey()" } }, viewQueries: [{ propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1911
2741
|
@if (open()) {
|
|
1912
2742
|
<div
|
|
1913
2743
|
class="sol-modal-overlay"
|
|
1914
2744
|
(click)="onBackdropClick()"
|
|
1915
2745
|
>
|
|
1916
2746
|
<div
|
|
2747
|
+
#panel
|
|
1917
2748
|
class="sol-modal-content"
|
|
1918
2749
|
[class]="panelClasses()"
|
|
2750
|
+
role="dialog"
|
|
2751
|
+
aria-modal="true"
|
|
2752
|
+
[attr.aria-labelledby]="title() ? titleId : null"
|
|
2753
|
+
[attr.aria-label]="title() ? null : ariaLabel() || null"
|
|
2754
|
+
tabindex="-1"
|
|
1919
2755
|
(click)="$event.stopPropagation()"
|
|
1920
2756
|
>
|
|
1921
2757
|
<header class="sol-modal-header">
|
|
1922
|
-
|
|
2758
|
+
@if (title()) {
|
|
2759
|
+
<h2 [id]="titleId" class="sol-modal-title">{{ title() }}</h2>
|
|
2760
|
+
}
|
|
1923
2761
|
@if (closeable()) {
|
|
1924
2762
|
<button
|
|
1925
2763
|
type="button"
|
|
1926
2764
|
class="sol-modal-close"
|
|
1927
|
-
aria-label="
|
|
2765
|
+
[attr.aria-label]="closeLabel()"
|
|
1928
2766
|
(click)="close()"
|
|
1929
2767
|
>
|
|
1930
2768
|
<sol-icon name="x" size="md" />
|
|
@@ -1938,7 +2776,7 @@ class SolModalComponent {
|
|
|
1938
2776
|
</div>
|
|
1939
2777
|
</div>
|
|
1940
2778
|
}
|
|
1941
|
-
`, isInline: true, styles: [".sol-modal-overlay{position:fixed;inset:0;z-index:var(--sol-z-modal, 1000);display:flex;align-items:center;justify-content:center;background:var(--sol-bg-overlay, rgba(0, 0, 0, .5));backdrop-filter:var(--sol-overlay-blur, blur(3px));-webkit-backdrop-filter:var(--sol-overlay-blur, blur(3px));animation:sol-modal-fade-in .15s ease-out}.sol-modal-content{position:relative;display:flex;flex-direction:column;background:var(--sol-bg-surface, #fff);border-radius:var(--sol-border-radius-lg, 12px);box-shadow:var(--sol-shadow-lg, 0 20px 60px rgba(0, 0, 0, .3));max-height:90vh;overflow:visible;animation:sol-modal-scale-in .2s ease-out}.sol-modal-sm{width:min(24rem,95vw)}.sol-modal-md{width:min(32rem,95vw)}.sol-modal-lg{width:min(48rem,95vw)}.sol-modal-xl{width:min(64rem,95vw)}.sol-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;border-bottom:1px solid var(--sol-border-color-default, #e5e7eb)}.sol-modal-title{margin:0;font-size:1.125rem;font-weight:600;color:var(--sol-color-text-primary, #111827)}.sol-modal-close{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:none;border-radius:var(--sol-border-radius-lg, 8px);background:transparent;color:var(--sol-color-text-secondary, #6b7280);cursor:pointer;transition:background .15s ease,color .15s ease}.sol-modal-close:hover{background:var(--sol-color-bg-hover, rgba(0, 0, 0, .06));color:var(--sol-color-text-primary, #111827)}.sol-modal-body{padding:1.5rem;overflow-y:auto;max-height:calc(90vh - 4rem)}@media(max-width:767px){.sol-modal-sm,.sol-modal-md,.sol-modal-lg,.sol-modal-xl{width:min(430px,calc(100vw - 32px))}.sol-modal-content{max-height:calc(100dvh - 32px)}.sol-modal-body{max-height:calc(100dvh - 32px - 4rem)}}@keyframes sol-modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes sol-modal-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}\n"], dependencies: [{ kind: "component", type: SolIconComponent, selector: "sol-icon", inputs: ["name", "size", "variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2779
|
+
`, isInline: true, styles: [".sol-modal-overlay{position:fixed;inset:0;z-index:var(--sol-z-modal, 1000);display:flex;align-items:center;justify-content:center;background:var(--sol-bg-overlay, rgba(0, 0, 0, .5));backdrop-filter:var(--sol-overlay-blur, blur(3px));-webkit-backdrop-filter:var(--sol-overlay-blur, blur(3px));animation:sol-modal-fade-in .15s ease-out}.sol-modal-content{position:relative;display:flex;flex-direction:column;background:var(--sol-bg-surface, #fff);border-radius:var(--sol-border-radius-lg, 12px);box-shadow:var(--sol-shadow-lg, 0 20px 60px rgba(0, 0, 0, .3));max-height:90vh;overflow:visible;animation:sol-modal-scale-in .2s ease-out}.sol-modal-sm{width:min(24rem,95vw)}.sol-modal-md{width:min(32rem,95vw)}.sol-modal-lg{width:min(48rem,95vw)}.sol-modal-xl{width:min(64rem,95vw)}.sol-modal-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.5rem;border-bottom:1px solid var(--sol-border-color-default, #e5e7eb)}.sol-modal-title{margin:0;font-size:1.125rem;font-weight:600;color:var(--sol-color-text-primary, #111827)}.sol-modal-content:focus{outline:none}.sol-modal-close{margin-inline-start:auto;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:none;border-radius:var(--sol-border-radius-lg, 8px);background:transparent;color:var(--sol-color-text-secondary, #6b7280);cursor:pointer;transition:background .15s ease,color .15s ease}.sol-modal-close:hover{background:var(--sol-color-bg-hover, rgba(0, 0, 0, .06));color:var(--sol-color-text-primary, #111827)}.sol-modal-body{padding:1.5rem;overflow-y:auto;max-height:calc(90vh - 4rem)}@media(max-width:767px){.sol-modal-sm,.sol-modal-md,.sol-modal-lg,.sol-modal-xl{width:min(430px,calc(100vw - 32px))}.sol-modal-content{max-height:calc(100dvh - 32px)}.sol-modal-body{max-height:calc(100dvh - 32px - 4rem)}}@keyframes sol-modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes sol-modal-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}\n"], dependencies: [{ kind: "component", type: SolIconComponent, selector: "sol-icon", inputs: ["name", "size", "variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1942
2780
|
}
|
|
1943
2781
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SolModalComponent, decorators: [{
|
|
1944
2782
|
type: Component,
|
|
@@ -1949,17 +2787,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
1949
2787
|
(click)="onBackdropClick()"
|
|
1950
2788
|
>
|
|
1951
2789
|
<div
|
|
2790
|
+
#panel
|
|
1952
2791
|
class="sol-modal-content"
|
|
1953
2792
|
[class]="panelClasses()"
|
|
2793
|
+
role="dialog"
|
|
2794
|
+
aria-modal="true"
|
|
2795
|
+
[attr.aria-labelledby]="title() ? titleId : null"
|
|
2796
|
+
[attr.aria-label]="title() ? null : ariaLabel() || null"
|
|
2797
|
+
tabindex="-1"
|
|
1954
2798
|
(click)="$event.stopPropagation()"
|
|
1955
2799
|
>
|
|
1956
2800
|
<header class="sol-modal-header">
|
|
1957
|
-
|
|
2801
|
+
@if (title()) {
|
|
2802
|
+
<h2 [id]="titleId" class="sol-modal-title">{{ title() }}</h2>
|
|
2803
|
+
}
|
|
1958
2804
|
@if (closeable()) {
|
|
1959
2805
|
<button
|
|
1960
2806
|
type="button"
|
|
1961
2807
|
class="sol-modal-close"
|
|
1962
|
-
aria-label="
|
|
2808
|
+
[attr.aria-label]="closeLabel()"
|
|
1963
2809
|
(click)="close()"
|
|
1964
2810
|
>
|
|
1965
2811
|
<sol-icon name="x" size="md" />
|
|
@@ -1973,126 +2819,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
1973
2819
|
</div>
|
|
1974
2820
|
</div>
|
|
1975
2821
|
}
|
|
1976
|
-
`, styles: [".sol-modal-overlay{position:fixed;inset:0;z-index:var(--sol-z-modal, 1000);display:flex;align-items:center;justify-content:center;background:var(--sol-bg-overlay, rgba(0, 0, 0, .5));backdrop-filter:var(--sol-overlay-blur, blur(3px));-webkit-backdrop-filter:var(--sol-overlay-blur, blur(3px));animation:sol-modal-fade-in .15s ease-out}.sol-modal-content{position:relative;display:flex;flex-direction:column;background:var(--sol-bg-surface, #fff);border-radius:var(--sol-border-radius-lg, 12px);box-shadow:var(--sol-shadow-lg, 0 20px 60px rgba(0, 0, 0, .3));max-height:90vh;overflow:visible;animation:sol-modal-scale-in .2s ease-out}.sol-modal-sm{width:min(24rem,95vw)}.sol-modal-md{width:min(32rem,95vw)}.sol-modal-lg{width:min(48rem,95vw)}.sol-modal-xl{width:min(64rem,95vw)}.sol-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;border-bottom:1px solid var(--sol-border-color-default, #e5e7eb)}.sol-modal-title{margin:0;font-size:1.125rem;font-weight:600;color:var(--sol-color-text-primary, #111827)}.sol-modal-close{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:none;border-radius:var(--sol-border-radius-lg, 8px);background:transparent;color:var(--sol-color-text-secondary, #6b7280);cursor:pointer;transition:background .15s ease,color .15s ease}.sol-modal-close:hover{background:var(--sol-color-bg-hover, rgba(0, 0, 0, .06));color:var(--sol-color-text-primary, #111827)}.sol-modal-body{padding:1.5rem;overflow-y:auto;max-height:calc(90vh - 4rem)}@media(max-width:767px){.sol-modal-sm,.sol-modal-md,.sol-modal-lg,.sol-modal-xl{width:min(430px,calc(100vw - 32px))}.sol-modal-content{max-height:calc(100dvh - 32px)}.sol-modal-body{max-height:calc(100dvh - 32px - 4rem)}}@keyframes sol-modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes sol-modal-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}\n"] }]
|
|
1977
|
-
}], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], closeable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeable", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], onEscapeKey: [{
|
|
2822
|
+
`, styles: [".sol-modal-overlay{position:fixed;inset:0;z-index:var(--sol-z-modal, 1000);display:flex;align-items:center;justify-content:center;background:var(--sol-bg-overlay, rgba(0, 0, 0, .5));backdrop-filter:var(--sol-overlay-blur, blur(3px));-webkit-backdrop-filter:var(--sol-overlay-blur, blur(3px));animation:sol-modal-fade-in .15s ease-out}.sol-modal-content{position:relative;display:flex;flex-direction:column;background:var(--sol-bg-surface, #fff);border-radius:var(--sol-border-radius-lg, 12px);box-shadow:var(--sol-shadow-lg, 0 20px 60px rgba(0, 0, 0, .3));max-height:90vh;overflow:visible;animation:sol-modal-scale-in .2s ease-out}.sol-modal-sm{width:min(24rem,95vw)}.sol-modal-md{width:min(32rem,95vw)}.sol-modal-lg{width:min(48rem,95vw)}.sol-modal-xl{width:min(64rem,95vw)}.sol-modal-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.5rem;border-bottom:1px solid var(--sol-border-color-default, #e5e7eb)}.sol-modal-title{margin:0;font-size:1.125rem;font-weight:600;color:var(--sol-color-text-primary, #111827)}.sol-modal-content:focus{outline:none}.sol-modal-close{margin-inline-start:auto;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:none;border-radius:var(--sol-border-radius-lg, 8px);background:transparent;color:var(--sol-color-text-secondary, #6b7280);cursor:pointer;transition:background .15s ease,color .15s ease}.sol-modal-close:hover{background:var(--sol-color-bg-hover, rgba(0, 0, 0, .06));color:var(--sol-color-text-primary, #111827)}.sol-modal-body{padding:1.5rem;overflow-y:auto;max-height:calc(90vh - 4rem)}@media(max-width:767px){.sol-modal-sm,.sol-modal-md,.sol-modal-lg,.sol-modal-xl{width:min(430px,calc(100vw - 32px))}.sol-modal-content{max-height:calc(100dvh - 32px)}.sol-modal-body{max-height:calc(100dvh - 32px - 4rem)}}@keyframes sol-modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes sol-modal-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}\n"] }]
|
|
2823
|
+
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], closeable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeable", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], panelEl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], onEscapeKey: [{
|
|
1978
2824
|
type: HostListener,
|
|
1979
2825
|
args: ['document:keydown.escape']
|
|
1980
2826
|
}] } });
|
|
1981
2827
|
|
|
1982
|
-
/**
|
|
1983
|
-
* Identity fallback used when the host does not provide an implementation.
|
|
1984
|
-
* Returns keys unchanged so components fall back to their built-in defaults.
|
|
1985
|
-
*/
|
|
1986
|
-
function createIdentitySolI18n() {
|
|
1987
|
-
return {
|
|
1988
|
-
activeLang: signal('es-CO'),
|
|
1989
|
-
translate: (key) => key,
|
|
1990
|
-
t: (key) => signal(key),
|
|
1991
|
-
tMany: (keys) => signal(keys),
|
|
1992
|
-
};
|
|
1993
|
-
}
|
|
1994
|
-
/**
|
|
1995
|
-
* Injection token for the i18n contract. Defaults to the identity fallback so
|
|
1996
|
-
* the library works out of the box; the host overrides it with a real engine.
|
|
1997
|
-
*/
|
|
1998
|
-
const SOL_I18N = new InjectionToken('SOL_I18N', {
|
|
1999
|
-
providedIn: 'root',
|
|
2000
|
-
factory: createIdentitySolI18n,
|
|
2001
|
-
});
|
|
2002
|
-
|
|
2003
|
-
/**
|
|
2004
|
-
* El objetivo (por defecto `document.body`) se resuelve al bloquear, no al
|
|
2005
|
-
* importar el módulo: así la librería se puede importar en un prerender
|
|
2006
|
-
* (Node, sin `document`) y el candado no hace nada fuera del navegador.
|
|
2007
|
-
*/
|
|
2008
|
-
function createBodyScrollLock(target) {
|
|
2009
|
-
let count = 0;
|
|
2010
|
-
let previousOverflow = '';
|
|
2011
|
-
const element = () => target ?? (typeof document === 'undefined' ? null : document.body);
|
|
2012
|
-
return {
|
|
2013
|
-
lock() {
|
|
2014
|
-
const el = element();
|
|
2015
|
-
if (!el)
|
|
2016
|
-
return;
|
|
2017
|
-
if (count === 0) {
|
|
2018
|
-
previousOverflow = el.style.overflow;
|
|
2019
|
-
el.style.overflow = 'hidden';
|
|
2020
|
-
}
|
|
2021
|
-
count++;
|
|
2022
|
-
},
|
|
2023
|
-
unlock() {
|
|
2024
|
-
const el = element();
|
|
2025
|
-
if (!el || count === 0)
|
|
2026
|
-
return;
|
|
2027
|
-
count--;
|
|
2028
|
-
if (count === 0) {
|
|
2029
|
-
el.style.overflow = previousOverflow;
|
|
2030
|
-
}
|
|
2031
|
-
},
|
|
2032
|
-
};
|
|
2033
|
-
}
|
|
2034
|
-
/** Instancia compartida sobre `document.body` — un único contador para toda la app. */
|
|
2035
|
-
const bodyScrollLock = createBodyScrollLock();
|
|
2036
|
-
|
|
2037
|
-
/**
|
|
2038
|
-
* Focus trap propio, sin `@angular/cdk/a11y` ni `@angular/cdk/overlay`
|
|
2039
|
-
* (filosofía in-house del proyecto — el CDK solo está permitido en el
|
|
2040
|
-
* drag-drop de `sol-kanban`, gateado por ESLint). Cicla el `Tab` dentro del
|
|
2041
|
-
* contenedor del overlay y devuelve el foco al disparador al desactivarse
|
|
2042
|
-
* (11-h-sol-drawer, T01/T03).
|
|
2043
|
-
*/
|
|
2044
|
-
const FOCUSABLE_SELECTOR = [
|
|
2045
|
-
'a[href]',
|
|
2046
|
-
'button:not([disabled])',
|
|
2047
|
-
'textarea:not([disabled])',
|
|
2048
|
-
'input:not([disabled])',
|
|
2049
|
-
'select:not([disabled])',
|
|
2050
|
-
'[tabindex]:not([tabindex="-1"])',
|
|
2051
|
-
].join(',');
|
|
2052
|
-
function createFocusTrap(container) {
|
|
2053
|
-
let triggerEl = null;
|
|
2054
|
-
function focusableElements() {
|
|
2055
|
-
return Array.from(container.querySelectorAll(FOCUSABLE_SELECTOR));
|
|
2056
|
-
}
|
|
2057
|
-
function onKeydown(event) {
|
|
2058
|
-
if (event.key !== 'Tab')
|
|
2059
|
-
return;
|
|
2060
|
-
const elements = focusableElements();
|
|
2061
|
-
if (elements.length === 0) {
|
|
2062
|
-
// Sin controles focuseables: el propio contenedor absorbe el foco.
|
|
2063
|
-
event.preventDefault();
|
|
2064
|
-
container.focus();
|
|
2065
|
-
return;
|
|
2066
|
-
}
|
|
2067
|
-
const first = elements[0];
|
|
2068
|
-
const last = elements[elements.length - 1];
|
|
2069
|
-
const active = document.activeElement;
|
|
2070
|
-
if (event.shiftKey) {
|
|
2071
|
-
if (active === first || !container.contains(active)) {
|
|
2072
|
-
event.preventDefault();
|
|
2073
|
-
last.focus();
|
|
2074
|
-
}
|
|
2075
|
-
}
|
|
2076
|
-
else if (active === last || !container.contains(active)) {
|
|
2077
|
-
event.preventDefault();
|
|
2078
|
-
first.focus();
|
|
2079
|
-
}
|
|
2080
|
-
}
|
|
2081
|
-
return {
|
|
2082
|
-
activate(returnFocusTo = document.activeElement) {
|
|
2083
|
-
triggerEl = returnFocusTo;
|
|
2084
|
-
document.addEventListener('keydown', onKeydown);
|
|
2085
|
-
const [first] = focusableElements();
|
|
2086
|
-
(first ?? container).focus();
|
|
2087
|
-
},
|
|
2088
|
-
deactivate() {
|
|
2089
|
-
document.removeEventListener('keydown', onKeydown);
|
|
2090
|
-
triggerEl?.focus?.();
|
|
2091
|
-
triggerEl = null;
|
|
2092
|
-
},
|
|
2093
|
-
};
|
|
2094
|
-
}
|
|
2095
|
-
|
|
2096
2828
|
/**
|
|
2097
2829
|
* Panel lateral (drawer / side sheet) a alto completo, hermano de `sol-modal`
|
|
2098
2830
|
* para formularios largos con contenido desplegable (11-h-sol-drawer). Reusa
|
|
@@ -2103,7 +2835,7 @@ function createFocusTrap(container) {
|
|
|
2103
2835
|
*/
|
|
2104
2836
|
class SolDrawerComponent {
|
|
2105
2837
|
static nextId = 0;
|
|
2106
|
-
i18n =
|
|
2838
|
+
i18n = injectSolI18n();
|
|
2107
2839
|
/** Whether the drawer is open. */
|
|
2108
2840
|
open = input(false, /* @ts-ignore */
|
|
2109
2841
|
...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
@@ -2130,6 +2862,9 @@ class SolDrawerComponent {
|
|
|
2130
2862
|
*/
|
|
2131
2863
|
closeOnBackdrop = input(true, /* @ts-ignore */
|
|
2132
2864
|
...(ngDevMode ? [{ debugName: "closeOnBackdrop" }] : /* istanbul ignore next */ []));
|
|
2865
|
+
/** Accessible name of the dialog when there is no `title` (ignored when a title is set). */
|
|
2866
|
+
ariaLabel = input('', /* @ts-ignore */
|
|
2867
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
2133
2868
|
/** Emitted when the drawer requests to be closed. */
|
|
2134
2869
|
closed = output();
|
|
2135
2870
|
panelEl = viewChild('panel', /* @ts-ignore */
|
|
@@ -2180,7 +2915,7 @@ class SolDrawerComponent {
|
|
|
2180
2915
|
this.closed.emit();
|
|
2181
2916
|
}
|
|
2182
2917
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SolDrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2183
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: SolDrawerComponent, isStandalone: true, selector: "sol-drawer", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, closeable: { classPropertyName: "closeable", publicName: "closeable", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { listeners: { "document:keydown.escape": "onEscapeKey()" } }, viewQueries: [{ propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
2918
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: SolDrawerComponent, isStandalone: true, selector: "sol-drawer", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, closeable: { classPropertyName: "closeable", publicName: "closeable", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { listeners: { "document:keydown.escape": "onEscapeKey()" } }, viewQueries: [{ propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
2184
2919
|
@if (open()) {
|
|
2185
2920
|
<div
|
|
2186
2921
|
[class]="overlayClasses()"
|
|
@@ -2191,12 +2926,15 @@ class SolDrawerComponent {
|
|
|
2191
2926
|
[class]="panelClasses()"
|
|
2192
2927
|
role="dialog"
|
|
2193
2928
|
aria-modal="true"
|
|
2194
|
-
[attr.aria-labelledby]="titleId"
|
|
2929
|
+
[attr.aria-labelledby]="title() ? titleId : null"
|
|
2930
|
+
[attr.aria-label]="title() ? null : ariaLabel() || null"
|
|
2195
2931
|
tabindex="-1"
|
|
2196
2932
|
(click)="$event.stopPropagation()"
|
|
2197
2933
|
>
|
|
2198
2934
|
<header class="sol-drawer-header">
|
|
2199
|
-
|
|
2935
|
+
@if (title()) {
|
|
2936
|
+
<h2 [id]="titleId" class="sol-drawer-title">{{ title() }}</h2>
|
|
2937
|
+
}
|
|
2200
2938
|
@if (closeable()) {
|
|
2201
2939
|
<button
|
|
2202
2940
|
type="button"
|
|
@@ -2217,7 +2955,7 @@ class SolDrawerComponent {
|
|
|
2217
2955
|
</div>
|
|
2218
2956
|
</div>
|
|
2219
2957
|
}
|
|
2220
|
-
`, isInline: true, styles: [".sol-drawer-overlay{position:fixed;inset:0;z-index:var(--sol-z-modal, 1000);display:flex;background:var(--sol-bg-overlay, rgba(0, 0, 0, .5));backdrop-filter:var(--sol-overlay-blur, blur(3px));-webkit-backdrop-filter:var(--sol-overlay-blur, blur(3px));animation:sol-drawer-fade-in var(--sol-dur-base, .24s) var(--sol-ease-entrance, cubic-bezier(.2, 0, 0, 1))}.sol-drawer-overlay--start{justify-content:flex-start}.sol-drawer-overlay--end{justify-content:flex-end}.sol-drawer-panel{position:relative;display:flex;flex-direction:column;height:100dvh;background:var(--sol-bg-surface, #fff);box-shadow:var(--sol-shadow-lg, 0 20px 60px rgba(0, 0, 0, .3));outline:none;animation:sol-drawer-slide-in var(--sol-dur-base, .24s) var(--sol-ease-entrance, cubic-bezier(.2, 0, 0, 1))}.sol-drawer-panel--start{--sol-drawer-slide-from: -100%;border-right:1px solid var(--sol-border-color-default, #e5e7eb);border-top-right-radius:var(--sol-border-radius-lg, 12px);border-bottom-right-radius:var(--sol-border-radius-lg, 12px)}.sol-drawer-panel--end{--sol-drawer-slide-from: 100%;border-left:1px solid var(--sol-border-color-default, #e5e7eb);border-top-left-radius:var(--sol-border-radius-lg, 12px);border-bottom-left-radius:var(--sol-border-radius-lg, 12px)}.sol-drawer-sm{width:min(20rem,100vw)}.sol-drawer-md{width:min(28rem,100vw)}.sol-drawer-lg{width:min(40rem,100vw)}.sol-drawer-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;border-bottom:1px solid var(--sol-border-color-default, #e5e7eb);flex:none}.sol-drawer-title{margin:0;font-size:1.125rem;font-weight:600;color:var(--sol-color-text-primary, #111827)}.sol-drawer-close{display:inline-flex;align-items:center;justify-content:center;min-width:2.75rem;min-height:2.75rem;border:none;border-radius:var(--sol-border-radius-lg, 8px);background:transparent;color:var(--sol-color-text-secondary, #6b7280);cursor:pointer;transition:background var(--sol-dur-fast, .12s) ease,color var(--sol-dur-fast, .12s) ease}.sol-drawer-close:hover{background:var(--sol-color-bg-hover, rgba(0, 0, 0, .06));color:var(--sol-color-text-primary, #111827)}.sol-drawer-body{flex:1 1 auto;overflow-y:auto;padding:1.5rem}@media(max-width:640px){.sol-drawer-sm,.sol-drawer-md,.sol-drawer-lg{width:100vw}.sol-drawer-panel--start,.sol-drawer-panel--end{border-left:none;border-right:none;border-radius:0}}@media(max-width:767px){.sol-drawer-overlay--sheet{align-items:flex-end}.sol-drawer-panel--sheet{width:100vw;height:min(92dvh,100dvh);max-height:92dvh;border-left:1px solid var(--sol-border-color-default, #e5e7eb);border-right:1px solid var(--sol-border-color-default, #e5e7eb);border-top-left-radius:var(--sol-border-radius-lg, 12px);border-top-right-radius:var(--sol-border-radius-lg, 12px);border-bottom-left-radius:0;border-bottom-right-radius:0;animation:sol-drawer-sheet-slide-up var(--sol-dur-base, .24s) var(--sol-ease-entrance, cubic-bezier(.2, 0, 0, 1))}}@keyframes sol-drawer-fade-in{0%{opacity:0}to{opacity:1}}@keyframes sol-drawer-slide-in{0%{transform:translate(var(--sol-drawer-slide-from, 100%))}to{transform:translate(0)}}@keyframes sol-drawer-sheet-slide-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.sol-drawer-overlay,.sol-drawer-panel{animation:none}}\n"], dependencies: [{ kind: "component", type: SolIconComponent, selector: "sol-icon", inputs: ["name", "size", "variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2958
|
+
`, isInline: true, styles: [".sol-drawer-overlay{position:fixed;inset:0;z-index:var(--sol-z-modal, 1000);display:flex;background:var(--sol-bg-overlay, rgba(0, 0, 0, .5));backdrop-filter:var(--sol-overlay-blur, blur(3px));-webkit-backdrop-filter:var(--sol-overlay-blur, blur(3px));animation:sol-drawer-fade-in var(--sol-dur-base, .24s) var(--sol-ease-entrance, cubic-bezier(.2, 0, 0, 1))}.sol-drawer-overlay--start{justify-content:flex-start}.sol-drawer-overlay--end{justify-content:flex-end}.sol-drawer-panel{position:relative;display:flex;flex-direction:column;height:100dvh;background:var(--sol-bg-surface, #fff);box-shadow:var(--sol-shadow-lg, 0 20px 60px rgba(0, 0, 0, .3));outline:none;animation:sol-drawer-slide-in var(--sol-dur-base, .24s) var(--sol-ease-entrance, cubic-bezier(.2, 0, 0, 1))}.sol-drawer-panel--start{--sol-drawer-slide-from: -100%;border-right:1px solid var(--sol-border-color-default, #e5e7eb);border-top-right-radius:var(--sol-border-radius-lg, 12px);border-bottom-right-radius:var(--sol-border-radius-lg, 12px)}.sol-drawer-panel--end{--sol-drawer-slide-from: 100%;border-left:1px solid var(--sol-border-color-default, #e5e7eb);border-top-left-radius:var(--sol-border-radius-lg, 12px);border-bottom-left-radius:var(--sol-border-radius-lg, 12px)}.sol-drawer-sm{width:min(20rem,100vw)}.sol-drawer-md{width:min(28rem,100vw)}.sol-drawer-lg{width:min(40rem,100vw)}.sol-drawer-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;border-bottom:1px solid var(--sol-border-color-default, #e5e7eb);flex:none}.sol-drawer-title{margin:0;font-size:1.125rem;font-weight:600;color:var(--sol-color-text-primary, #111827)}.sol-drawer-close{display:inline-flex;align-items:center;justify-content:center;min-width:2.75rem;min-height:2.75rem;margin-inline-start:auto;border:none;border-radius:var(--sol-border-radius-lg, 8px);background:transparent;color:var(--sol-color-text-secondary, #6b7280);cursor:pointer;transition:background var(--sol-dur-fast, .12s) ease,color var(--sol-dur-fast, .12s) ease}.sol-drawer-close:hover{background:var(--sol-color-bg-hover, rgba(0, 0, 0, .06));color:var(--sol-color-text-primary, #111827)}.sol-drawer-body{flex:1 1 auto;overflow-y:auto;padding:1.5rem}@media(max-width:640px){.sol-drawer-sm,.sol-drawer-md,.sol-drawer-lg{width:100vw}.sol-drawer-panel--start,.sol-drawer-panel--end{border-left:none;border-right:none;border-radius:0}}@media(max-width:767px){.sol-drawer-overlay--sheet{align-items:flex-end}.sol-drawer-panel--sheet{width:100vw;height:min(92dvh,100dvh);max-height:92dvh;border-left:1px solid var(--sol-border-color-default, #e5e7eb);border-right:1px solid var(--sol-border-color-default, #e5e7eb);border-top-left-radius:var(--sol-border-radius-lg, 12px);border-top-right-radius:var(--sol-border-radius-lg, 12px);border-bottom-left-radius:0;border-bottom-right-radius:0;animation:sol-drawer-sheet-slide-up var(--sol-dur-base, .24s) var(--sol-ease-entrance, cubic-bezier(.2, 0, 0, 1))}}@keyframes sol-drawer-fade-in{0%{opacity:0}to{opacity:1}}@keyframes sol-drawer-slide-in{0%{transform:translate(var(--sol-drawer-slide-from, 100%))}to{transform:translate(0)}}@keyframes sol-drawer-sheet-slide-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.sol-drawer-overlay,.sol-drawer-panel{animation:none}}\n"], dependencies: [{ kind: "component", type: SolIconComponent, selector: "sol-icon", inputs: ["name", "size", "variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2221
2959
|
}
|
|
2222
2960
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SolDrawerComponent, decorators: [{
|
|
2223
2961
|
type: Component,
|
|
@@ -2232,12 +2970,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
2232
2970
|
[class]="panelClasses()"
|
|
2233
2971
|
role="dialog"
|
|
2234
2972
|
aria-modal="true"
|
|
2235
|
-
[attr.aria-labelledby]="titleId"
|
|
2973
|
+
[attr.aria-labelledby]="title() ? titleId : null"
|
|
2974
|
+
[attr.aria-label]="title() ? null : ariaLabel() || null"
|
|
2236
2975
|
tabindex="-1"
|
|
2237
2976
|
(click)="$event.stopPropagation()"
|
|
2238
2977
|
>
|
|
2239
2978
|
<header class="sol-drawer-header">
|
|
2240
|
-
|
|
2979
|
+
@if (title()) {
|
|
2980
|
+
<h2 [id]="titleId" class="sol-drawer-title">{{ title() }}</h2>
|
|
2981
|
+
}
|
|
2241
2982
|
@if (closeable()) {
|
|
2242
2983
|
<button
|
|
2243
2984
|
type="button"
|
|
@@ -2258,8 +2999,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
2258
2999
|
</div>
|
|
2259
3000
|
</div>
|
|
2260
3001
|
}
|
|
2261
|
-
`, styles: [".sol-drawer-overlay{position:fixed;inset:0;z-index:var(--sol-z-modal, 1000);display:flex;background:var(--sol-bg-overlay, rgba(0, 0, 0, .5));backdrop-filter:var(--sol-overlay-blur, blur(3px));-webkit-backdrop-filter:var(--sol-overlay-blur, blur(3px));animation:sol-drawer-fade-in var(--sol-dur-base, .24s) var(--sol-ease-entrance, cubic-bezier(.2, 0, 0, 1))}.sol-drawer-overlay--start{justify-content:flex-start}.sol-drawer-overlay--end{justify-content:flex-end}.sol-drawer-panel{position:relative;display:flex;flex-direction:column;height:100dvh;background:var(--sol-bg-surface, #fff);box-shadow:var(--sol-shadow-lg, 0 20px 60px rgba(0, 0, 0, .3));outline:none;animation:sol-drawer-slide-in var(--sol-dur-base, .24s) var(--sol-ease-entrance, cubic-bezier(.2, 0, 0, 1))}.sol-drawer-panel--start{--sol-drawer-slide-from: -100%;border-right:1px solid var(--sol-border-color-default, #e5e7eb);border-top-right-radius:var(--sol-border-radius-lg, 12px);border-bottom-right-radius:var(--sol-border-radius-lg, 12px)}.sol-drawer-panel--end{--sol-drawer-slide-from: 100%;border-left:1px solid var(--sol-border-color-default, #e5e7eb);border-top-left-radius:var(--sol-border-radius-lg, 12px);border-bottom-left-radius:var(--sol-border-radius-lg, 12px)}.sol-drawer-sm{width:min(20rem,100vw)}.sol-drawer-md{width:min(28rem,100vw)}.sol-drawer-lg{width:min(40rem,100vw)}.sol-drawer-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;border-bottom:1px solid var(--sol-border-color-default, #e5e7eb);flex:none}.sol-drawer-title{margin:0;font-size:1.125rem;font-weight:600;color:var(--sol-color-text-primary, #111827)}.sol-drawer-close{display:inline-flex;align-items:center;justify-content:center;min-width:2.75rem;min-height:2.75rem;border:none;border-radius:var(--sol-border-radius-lg, 8px);background:transparent;color:var(--sol-color-text-secondary, #6b7280);cursor:pointer;transition:background var(--sol-dur-fast, .12s) ease,color var(--sol-dur-fast, .12s) ease}.sol-drawer-close:hover{background:var(--sol-color-bg-hover, rgba(0, 0, 0, .06));color:var(--sol-color-text-primary, #111827)}.sol-drawer-body{flex:1 1 auto;overflow-y:auto;padding:1.5rem}@media(max-width:640px){.sol-drawer-sm,.sol-drawer-md,.sol-drawer-lg{width:100vw}.sol-drawer-panel--start,.sol-drawer-panel--end{border-left:none;border-right:none;border-radius:0}}@media(max-width:767px){.sol-drawer-overlay--sheet{align-items:flex-end}.sol-drawer-panel--sheet{width:100vw;height:min(92dvh,100dvh);max-height:92dvh;border-left:1px solid var(--sol-border-color-default, #e5e7eb);border-right:1px solid var(--sol-border-color-default, #e5e7eb);border-top-left-radius:var(--sol-border-radius-lg, 12px);border-top-right-radius:var(--sol-border-radius-lg, 12px);border-bottom-left-radius:0;border-bottom-right-radius:0;animation:sol-drawer-sheet-slide-up var(--sol-dur-base, .24s) var(--sol-ease-entrance, cubic-bezier(.2, 0, 0, 1))}}@keyframes sol-drawer-fade-in{0%{opacity:0}to{opacity:1}}@keyframes sol-drawer-slide-in{0%{transform:translate(var(--sol-drawer-slide-from, 100%))}to{transform:translate(0)}}@keyframes sol-drawer-sheet-slide-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.sol-drawer-overlay,.sol-drawer-panel{animation:none}}\n"] }]
|
|
2262
|
-
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], closeable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeable", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], panelEl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], onEscapeKey: [{
|
|
3002
|
+
`, styles: [".sol-drawer-overlay{position:fixed;inset:0;z-index:var(--sol-z-modal, 1000);display:flex;background:var(--sol-bg-overlay, rgba(0, 0, 0, .5));backdrop-filter:var(--sol-overlay-blur, blur(3px));-webkit-backdrop-filter:var(--sol-overlay-blur, blur(3px));animation:sol-drawer-fade-in var(--sol-dur-base, .24s) var(--sol-ease-entrance, cubic-bezier(.2, 0, 0, 1))}.sol-drawer-overlay--start{justify-content:flex-start}.sol-drawer-overlay--end{justify-content:flex-end}.sol-drawer-panel{position:relative;display:flex;flex-direction:column;height:100dvh;background:var(--sol-bg-surface, #fff);box-shadow:var(--sol-shadow-lg, 0 20px 60px rgba(0, 0, 0, .3));outline:none;animation:sol-drawer-slide-in var(--sol-dur-base, .24s) var(--sol-ease-entrance, cubic-bezier(.2, 0, 0, 1))}.sol-drawer-panel--start{--sol-drawer-slide-from: -100%;border-right:1px solid var(--sol-border-color-default, #e5e7eb);border-top-right-radius:var(--sol-border-radius-lg, 12px);border-bottom-right-radius:var(--sol-border-radius-lg, 12px)}.sol-drawer-panel--end{--sol-drawer-slide-from: 100%;border-left:1px solid var(--sol-border-color-default, #e5e7eb);border-top-left-radius:var(--sol-border-radius-lg, 12px);border-bottom-left-radius:var(--sol-border-radius-lg, 12px)}.sol-drawer-sm{width:min(20rem,100vw)}.sol-drawer-md{width:min(28rem,100vw)}.sol-drawer-lg{width:min(40rem,100vw)}.sol-drawer-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;border-bottom:1px solid var(--sol-border-color-default, #e5e7eb);flex:none}.sol-drawer-title{margin:0;font-size:1.125rem;font-weight:600;color:var(--sol-color-text-primary, #111827)}.sol-drawer-close{display:inline-flex;align-items:center;justify-content:center;min-width:2.75rem;min-height:2.75rem;margin-inline-start:auto;border:none;border-radius:var(--sol-border-radius-lg, 8px);background:transparent;color:var(--sol-color-text-secondary, #6b7280);cursor:pointer;transition:background var(--sol-dur-fast, .12s) ease,color var(--sol-dur-fast, .12s) ease}.sol-drawer-close:hover{background:var(--sol-color-bg-hover, rgba(0, 0, 0, .06));color:var(--sol-color-text-primary, #111827)}.sol-drawer-body{flex:1 1 auto;overflow-y:auto;padding:1.5rem}@media(max-width:640px){.sol-drawer-sm,.sol-drawer-md,.sol-drawer-lg{width:100vw}.sol-drawer-panel--start,.sol-drawer-panel--end{border-left:none;border-right:none;border-radius:0}}@media(max-width:767px){.sol-drawer-overlay--sheet{align-items:flex-end}.sol-drawer-panel--sheet{width:100vw;height:min(92dvh,100dvh);max-height:92dvh;border-left:1px solid var(--sol-border-color-default, #e5e7eb);border-right:1px solid var(--sol-border-color-default, #e5e7eb);border-top-left-radius:var(--sol-border-radius-lg, 12px);border-top-right-radius:var(--sol-border-radius-lg, 12px);border-bottom-left-radius:0;border-bottom-right-radius:0;animation:sol-drawer-sheet-slide-up var(--sol-dur-base, .24s) var(--sol-ease-entrance, cubic-bezier(.2, 0, 0, 1))}}@keyframes sol-drawer-fade-in{0%{opacity:0}to{opacity:1}}@keyframes sol-drawer-slide-in{0%{transform:translate(var(--sol-drawer-slide-from, 100%))}to{transform:translate(0)}}@keyframes sol-drawer-sheet-slide-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.sol-drawer-overlay,.sol-drawer-panel{animation:none}}\n"] }]
|
|
3003
|
+
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], closeable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeable", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], panelEl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], onEscapeKey: [{
|
|
2263
3004
|
type: HostListener,
|
|
2264
3005
|
args: ['document:keydown.escape']
|
|
2265
3006
|
}] } });
|
|
@@ -2340,7 +3081,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
2340
3081
|
}], propDecorators: { padding: [{ type: i0.Input, args: [{ isSignal: true, alias: "padding", required: false }] }], hoverable: [{ type: i0.Input, args: [{ isSignal: true, alias: "hoverable", required: false }] }] } });
|
|
2341
3082
|
|
|
2342
3083
|
class SolSpinnerComponent {
|
|
2343
|
-
i18n =
|
|
3084
|
+
i18n = injectSolI18n();
|
|
2344
3085
|
/** Size preset for the spinner. */
|
|
2345
3086
|
size = input('md', /* @ts-ignore */
|
|
2346
3087
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
@@ -2510,6 +3251,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
2510
3251
|
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }] } });
|
|
2511
3252
|
|
|
2512
3253
|
class SolPaginationComponent {
|
|
3254
|
+
static nextId = 0;
|
|
3255
|
+
i18n = injectSolI18n();
|
|
3256
|
+
/** Id that ties the page-size label to its select. */
|
|
3257
|
+
sizeSelectId = `sol-pagination-size-${SolPaginationComponent.nextId++}`;
|
|
2513
3258
|
totalItems = input(0, /* @ts-ignore */
|
|
2514
3259
|
...(ngDevMode ? [{ debugName: "totalItems" }] : /* istanbul ignore next */ []));
|
|
2515
3260
|
pageSize = input(10, /* @ts-ignore */
|
|
@@ -2526,6 +3271,13 @@ class SolPaginationComponent {
|
|
|
2526
3271
|
...(ngDevMode ? [{ debugName: "startItem" }] : /* istanbul ignore next */ []));
|
|
2527
3272
|
endItem = computed(() => Math.min(this.currentPage() * this.pageSize(), this.totalItems()), /* @ts-ignore */
|
|
2528
3273
|
...(ngDevMode ? [{ debugName: "endItem" }] : /* istanbul ignore next */ []));
|
|
3274
|
+
rangeText = computed(() => this.t('range', { start: this.startItem(), end: this.endItem(), total: this.totalItems() }), /* @ts-ignore */
|
|
3275
|
+
...(ngDevMode ? [{ debugName: "rangeText" }] : /* istanbul ignore next */ []));
|
|
3276
|
+
/** Resolves `shared.pagination.<key>` (reacts to language changes). */
|
|
3277
|
+
t(key, params) {
|
|
3278
|
+
this.i18n.activeLang();
|
|
3279
|
+
return this.i18n.translate(`shared.pagination.${key}`, params);
|
|
3280
|
+
}
|
|
2529
3281
|
pages = computed(() => {
|
|
2530
3282
|
const total = this.totalPages();
|
|
2531
3283
|
const current = this.currentPage();
|
|
@@ -2553,8 +3305,9 @@ class SolPaginationComponent {
|
|
|
2553
3305
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: SolPaginationComponent, isStandalone: true, selector: "sol-pagination", inputs: { totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, currentPage: { classPropertyName: "currentPage", publicName: "currentPage", isSignal: true, isRequired: false, transformFunction: null }, pageSizeOptions: { classPropertyName: "pageSizeOptions", publicName: "pageSizeOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChanged: "pageChanged", pageSizeChanged: "pageSizeChanged" }, ngImport: i0, template: `
|
|
2554
3306
|
<div class="sol-pagination">
|
|
2555
3307
|
<div class="sol-pagination__size">
|
|
2556
|
-
<label class="sol-pagination__size-label">
|
|
3308
|
+
<label class="sol-pagination__size-label" [attr.for]="sizeSelectId">{{ t('show') }}</label>
|
|
2557
3309
|
<select
|
|
3310
|
+
[id]="sizeSelectId"
|
|
2558
3311
|
class="sol-pagination__size-select"
|
|
2559
3312
|
[value]="pageSize()"
|
|
2560
3313
|
(change)="onPageSizeChange($event)"
|
|
@@ -2563,17 +3316,18 @@ class SolPaginationComponent {
|
|
|
2563
3316
|
<option [value]="size">{{ size }}</option>
|
|
2564
3317
|
}
|
|
2565
3318
|
</select>
|
|
2566
|
-
<span class="sol-pagination__size-label">
|
|
3319
|
+
<span class="sol-pagination__size-label">{{ t('rows') }}</span>
|
|
2567
3320
|
</div>
|
|
2568
3321
|
|
|
2569
3322
|
<div class="sol-pagination__nav">
|
|
2570
3323
|
<span class="sol-pagination__info">
|
|
2571
|
-
{{
|
|
3324
|
+
{{ rangeText() }}
|
|
2572
3325
|
</span>
|
|
2573
3326
|
<button
|
|
2574
3327
|
type="button"
|
|
2575
3328
|
class="sol-pagination__btn"
|
|
2576
3329
|
[disabled]="currentPage() <= 1"
|
|
3330
|
+
[attr.aria-label]="t('previous')"
|
|
2577
3331
|
(click)="onPageChange(currentPage() - 1)"
|
|
2578
3332
|
>
|
|
2579
3333
|
<sol-icon name="chevron-left" size="sm" />
|
|
@@ -2592,6 +3346,7 @@ class SolPaginationComponent {
|
|
|
2592
3346
|
type="button"
|
|
2593
3347
|
class="sol-pagination__btn"
|
|
2594
3348
|
[disabled]="currentPage() >= totalPages()"
|
|
3349
|
+
[attr.aria-label]="t('next')"
|
|
2595
3350
|
(click)="onPageChange(currentPage() + 1)"
|
|
2596
3351
|
>
|
|
2597
3352
|
<sol-icon name="chevron-right" size="sm" />
|
|
@@ -2605,8 +3360,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
2605
3360
|
args: [{ selector: 'sol-pagination', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [SolIconComponent], template: `
|
|
2606
3361
|
<div class="sol-pagination">
|
|
2607
3362
|
<div class="sol-pagination__size">
|
|
2608
|
-
<label class="sol-pagination__size-label">
|
|
3363
|
+
<label class="sol-pagination__size-label" [attr.for]="sizeSelectId">{{ t('show') }}</label>
|
|
2609
3364
|
<select
|
|
3365
|
+
[id]="sizeSelectId"
|
|
2610
3366
|
class="sol-pagination__size-select"
|
|
2611
3367
|
[value]="pageSize()"
|
|
2612
3368
|
(change)="onPageSizeChange($event)"
|
|
@@ -2615,17 +3371,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
2615
3371
|
<option [value]="size">{{ size }}</option>
|
|
2616
3372
|
}
|
|
2617
3373
|
</select>
|
|
2618
|
-
<span class="sol-pagination__size-label">
|
|
3374
|
+
<span class="sol-pagination__size-label">{{ t('rows') }}</span>
|
|
2619
3375
|
</div>
|
|
2620
3376
|
|
|
2621
3377
|
<div class="sol-pagination__nav">
|
|
2622
3378
|
<span class="sol-pagination__info">
|
|
2623
|
-
{{
|
|
3379
|
+
{{ rangeText() }}
|
|
2624
3380
|
</span>
|
|
2625
3381
|
<button
|
|
2626
3382
|
type="button"
|
|
2627
3383
|
class="sol-pagination__btn"
|
|
2628
3384
|
[disabled]="currentPage() <= 1"
|
|
3385
|
+
[attr.aria-label]="t('previous')"
|
|
2629
3386
|
(click)="onPageChange(currentPage() - 1)"
|
|
2630
3387
|
>
|
|
2631
3388
|
<sol-icon name="chevron-left" size="sm" />
|
|
@@ -2644,6 +3401,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
2644
3401
|
type="button"
|
|
2645
3402
|
class="sol-pagination__btn"
|
|
2646
3403
|
[disabled]="currentPage() >= totalPages()"
|
|
3404
|
+
[attr.aria-label]="t('next')"
|
|
2647
3405
|
(click)="onPageChange(currentPage() + 1)"
|
|
2648
3406
|
>
|
|
2649
3407
|
<sol-icon name="chevron-right" size="sm" />
|
|
@@ -2654,11 +3412,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
2654
3412
|
}], propDecorators: { totalItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalItems", required: false }] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }], currentPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPage", required: false }] }], pageSizeOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSizeOptions", required: false }] }], pageChanged: [{ type: i0.Output, args: ["pageChanged"] }], pageSizeChanged: [{ type: i0.Output, args: ["pageSizeChanged"] }] } });
|
|
2655
3413
|
|
|
2656
3414
|
class SolSearchInputComponent {
|
|
2657
|
-
|
|
3415
|
+
i18n = injectSolI18n();
|
|
3416
|
+
/** Placeholder of the field. Without a value it uses `shared.searchInput.placeholder`. */
|
|
3417
|
+
placeholder = input(undefined, /* @ts-ignore */
|
|
2658
3418
|
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
2659
3419
|
searchChange = output();
|
|
2660
3420
|
value = signal('', /* @ts-ignore */
|
|
2661
3421
|
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
3422
|
+
placeholderText = computed(() => {
|
|
3423
|
+
this.i18n.activeLang();
|
|
3424
|
+
return this.placeholder() ?? this.i18n.translate('shared.searchInput.placeholder');
|
|
3425
|
+
}, /* @ts-ignore */
|
|
3426
|
+
...(ngDevMode ? [{ debugName: "placeholderText" }] : /* istanbul ignore next */ []));
|
|
3427
|
+
clearLabel = computed(() => {
|
|
3428
|
+
this.i18n.activeLang();
|
|
3429
|
+
return this.i18n.translate('shared.searchInput.clear');
|
|
3430
|
+
}, /* @ts-ignore */
|
|
3431
|
+
...(ngDevMode ? [{ debugName: "clearLabel" }] : /* istanbul ignore next */ []));
|
|
2662
3432
|
onInput(event) {
|
|
2663
3433
|
const val = event.target.value;
|
|
2664
3434
|
this.value.set(val);
|
|
@@ -2675,7 +3445,7 @@ class SolSearchInputComponent {
|
|
|
2675
3445
|
<input
|
|
2676
3446
|
class="sol-search-input__field"
|
|
2677
3447
|
type="text"
|
|
2678
|
-
[placeholder]="
|
|
3448
|
+
[placeholder]="placeholderText()"
|
|
2679
3449
|
[value]="value()"
|
|
2680
3450
|
(input)="onInput($event)"
|
|
2681
3451
|
/>
|
|
@@ -2684,7 +3454,7 @@ class SolSearchInputComponent {
|
|
|
2684
3454
|
type="button"
|
|
2685
3455
|
class="sol-search-input__clear"
|
|
2686
3456
|
(click)="onClear()"
|
|
2687
|
-
aria-label="
|
|
3457
|
+
[attr.aria-label]="clearLabel()"
|
|
2688
3458
|
>
|
|
2689
3459
|
<sol-icon name="x" size="sm" />
|
|
2690
3460
|
</button>
|
|
@@ -2700,7 +3470,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
2700
3470
|
<input
|
|
2701
3471
|
class="sol-search-input__field"
|
|
2702
3472
|
type="text"
|
|
2703
|
-
[placeholder]="
|
|
3473
|
+
[placeholder]="placeholderText()"
|
|
2704
3474
|
[value]="value()"
|
|
2705
3475
|
(input)="onInput($event)"
|
|
2706
3476
|
/>
|
|
@@ -2709,7 +3479,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
2709
3479
|
type="button"
|
|
2710
3480
|
class="sol-search-input__clear"
|
|
2711
3481
|
(click)="onClear()"
|
|
2712
|
-
aria-label="
|
|
3482
|
+
[attr.aria-label]="clearLabel()"
|
|
2713
3483
|
>
|
|
2714
3484
|
<sol-icon name="x" size="sm" />
|
|
2715
3485
|
</button>
|
|
@@ -3046,9 +3816,12 @@ class SolFileUploadComponent {
|
|
|
3046
3816
|
...(ngDevMode ? [{ debugName: "accept" }] : /* istanbul ignore next */ []));
|
|
3047
3817
|
maxSizeBytes = input(DEFAULT_MAX_SIZE, /* @ts-ignore */
|
|
3048
3818
|
...(ngDevMode ? [{ debugName: "maxSizeBytes" }] : /* istanbul ignore next */ []));
|
|
3049
|
-
|
|
3819
|
+
i18n = injectSolI18n();
|
|
3820
|
+
/** Main text of the drop zone. Without a value it uses `shared.fileUpload.label`. */
|
|
3821
|
+
label = input(undefined, /* @ts-ignore */
|
|
3050
3822
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
3051
|
-
|
|
3823
|
+
/** Secondary text of the drop zone. Without a value it uses `shared.fileUpload.hint`. */
|
|
3824
|
+
hint = input(undefined, /* @ts-ignore */
|
|
3052
3825
|
...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
|
|
3053
3826
|
fileSelected = output();
|
|
3054
3827
|
previewReady = output();
|
|
@@ -3064,6 +3837,15 @@ class SolFileUploadComponent {
|
|
|
3064
3837
|
...(ngDevMode ? [{ debugName: "fileName" }] : /* istanbul ignore next */ []));
|
|
3065
3838
|
errorMessage = signal(null, /* @ts-ignore */
|
|
3066
3839
|
...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
|
|
3840
|
+
labelText = computed(() => this.label() ?? this.t('label'), /* @ts-ignore */
|
|
3841
|
+
...(ngDevMode ? [{ debugName: "labelText" }] : /* istanbul ignore next */ []));
|
|
3842
|
+
hintText = computed(() => this.hint() ?? this.t('hint'), /* @ts-ignore */
|
|
3843
|
+
...(ngDevMode ? [{ debugName: "hintText" }] : /* istanbul ignore next */ []));
|
|
3844
|
+
/** Resolves `shared.fileUpload.<key>` (reacts to language changes). */
|
|
3845
|
+
t(key, params) {
|
|
3846
|
+
this.i18n.activeLang();
|
|
3847
|
+
return this.i18n.translate(`shared.fileUpload.${key}`, params);
|
|
3848
|
+
}
|
|
3067
3849
|
onDragOver(event) {
|
|
3068
3850
|
event.preventDefault();
|
|
3069
3851
|
event.stopPropagation();
|
|
@@ -3109,7 +3891,7 @@ class SolFileUploadComponent {
|
|
|
3109
3891
|
this.errorMessage.set(null);
|
|
3110
3892
|
if (!this.isAcceptedType(file.type)) {
|
|
3111
3893
|
const types = this.getReadableTypes();
|
|
3112
|
-
const msg =
|
|
3894
|
+
const msg = this.t('invalidType', { types });
|
|
3113
3895
|
this.errorMessage.set(msg);
|
|
3114
3896
|
this.fileError.emit(msg);
|
|
3115
3897
|
return;
|
|
@@ -3118,7 +3900,7 @@ class SolFileUploadComponent {
|
|
|
3118
3900
|
if (maxSize > 0 && file.size > maxSize) {
|
|
3119
3901
|
const maxMB = (maxSize / (1024 * 1024)).toFixed(0);
|
|
3120
3902
|
const fileMB = (file.size / (1024 * 1024)).toFixed(1);
|
|
3121
|
-
const msg =
|
|
3903
|
+
const msg = this.t('tooLarge', { size: fileMB, max: maxMB });
|
|
3122
3904
|
this.errorMessage.set(msg);
|
|
3123
3905
|
this.fileError.emit(msg);
|
|
3124
3906
|
return;
|
|
@@ -3172,19 +3954,19 @@ class SolFileUploadComponent {
|
|
|
3172
3954
|
/>
|
|
3173
3955
|
|
|
3174
3956
|
@if (previewUrl()) {
|
|
3175
|
-
<img [src]="previewUrl()!" [alt]="fileName() || '
|
|
3957
|
+
<img [src]="previewUrl()!" [alt]="fileName() || t('preview')" class="sol-file-upload__preview" />
|
|
3176
3958
|
<div class="sol-file-upload__overlay">
|
|
3177
|
-
<button type="button" class="sol-file-upload__remove" (click)="removeImage($event)" title="
|
|
3959
|
+
<button type="button" class="sol-file-upload__remove" (click)="removeImage($event)" [attr.title]="t('remove')" [attr.aria-label]="t('remove')">
|
|
3178
3960
|
<sol-icon name="x" size="sm" />
|
|
3179
3961
|
</button>
|
|
3180
3962
|
<sol-icon name="photo" size="md" class="sol-file-upload__overlay-icon" />
|
|
3181
|
-
<span class="sol-file-upload__overlay-text">
|
|
3963
|
+
<span class="sol-file-upload__overlay-text">{{ t('change') }}</span>
|
|
3182
3964
|
</div>
|
|
3183
3965
|
} @else {
|
|
3184
3966
|
<div class="sol-file-upload__placeholder">
|
|
3185
3967
|
<sol-icon name="cloud-arrow-up" size="lg" class="sol-file-upload__icon" />
|
|
3186
|
-
<span class="sol-file-upload__hint-primary">{{
|
|
3187
|
-
<span class="sol-file-upload__hint-secondary">{{
|
|
3968
|
+
<span class="sol-file-upload__hint-primary">{{ labelText() }}</span>
|
|
3969
|
+
<span class="sol-file-upload__hint-secondary">{{ hintText() }}</span>
|
|
3188
3970
|
</div>
|
|
3189
3971
|
}
|
|
3190
3972
|
</label>
|
|
@@ -3217,19 +3999,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
3217
3999
|
/>
|
|
3218
4000
|
|
|
3219
4001
|
@if (previewUrl()) {
|
|
3220
|
-
<img [src]="previewUrl()!" [alt]="fileName() || '
|
|
4002
|
+
<img [src]="previewUrl()!" [alt]="fileName() || t('preview')" class="sol-file-upload__preview" />
|
|
3221
4003
|
<div class="sol-file-upload__overlay">
|
|
3222
|
-
<button type="button" class="sol-file-upload__remove" (click)="removeImage($event)" title="
|
|
4004
|
+
<button type="button" class="sol-file-upload__remove" (click)="removeImage($event)" [attr.title]="t('remove')" [attr.aria-label]="t('remove')">
|
|
3223
4005
|
<sol-icon name="x" size="sm" />
|
|
3224
4006
|
</button>
|
|
3225
4007
|
<sol-icon name="photo" size="md" class="sol-file-upload__overlay-icon" />
|
|
3226
|
-
<span class="sol-file-upload__overlay-text">
|
|
4008
|
+
<span class="sol-file-upload__overlay-text">{{ t('change') }}</span>
|
|
3227
4009
|
</div>
|
|
3228
4010
|
} @else {
|
|
3229
4011
|
<div class="sol-file-upload__placeholder">
|
|
3230
4012
|
<sol-icon name="cloud-arrow-up" size="lg" class="sol-file-upload__icon" />
|
|
3231
|
-
<span class="sol-file-upload__hint-primary">{{
|
|
3232
|
-
<span class="sol-file-upload__hint-secondary">{{
|
|
4013
|
+
<span class="sol-file-upload__hint-primary">{{ labelText() }}</span>
|
|
4014
|
+
<span class="sol-file-upload__hint-secondary">{{ hintText() }}</span>
|
|
3233
4015
|
</div>
|
|
3234
4016
|
}
|
|
3235
4017
|
</label>
|
|
@@ -3375,7 +4157,7 @@ const POPOVER_WIDTH$1 = 300;
|
|
|
3375
4157
|
* del flujo de reserva). Ambos conviven en el design system.
|
|
3376
4158
|
*/
|
|
3377
4159
|
class SolDatePickerComponent {
|
|
3378
|
-
i18n =
|
|
4160
|
+
i18n = injectSolI18n();
|
|
3379
4161
|
hostEl = inject(ElementRef);
|
|
3380
4162
|
// ── API pública ──
|
|
3381
4163
|
/** Valor seleccionado. Acepta `Date`, `yyyy-MM-dd`/ISO o `null`. */
|
|
@@ -3458,8 +4240,8 @@ class SolDatePickerComponent {
|
|
|
3458
4240
|
});
|
|
3459
4241
|
}
|
|
3460
4242
|
// ── Derivados ──
|
|
3461
|
-
/** Locale efectivo (reactivo al idioma activo);
|
|
3462
|
-
locale = computed(() => this.i18n.activeLang() || '
|
|
4243
|
+
/** Locale efectivo (reactivo al idioma activo); inglés por defecto. */
|
|
4244
|
+
locale = computed(() => this.i18n.activeLang() || 'en', /* @ts-ignore */
|
|
3463
4245
|
...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
|
|
3464
4246
|
isDisabled = computed(() => this.disabled() || this.formDisabled(), /* @ts-ignore */
|
|
3465
4247
|
...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
@@ -4210,7 +4992,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
4210
4992
|
* ```
|
|
4211
4993
|
*/
|
|
4212
4994
|
class SolEmptyStateComponent {
|
|
4213
|
-
i18n =
|
|
4995
|
+
i18n = injectSolI18n();
|
|
4214
4996
|
/** Ícono del registry a mostrar. */
|
|
4215
4997
|
icon = input('list', /* @ts-ignore */
|
|
4216
4998
|
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
@@ -4291,7 +5073,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
4291
5073
|
* - Light/dark vía tokens `--sol-*` con fallbacks, como todo átomo.
|
|
4292
5074
|
*/
|
|
4293
5075
|
class SolStepperComponent {
|
|
4294
|
-
i18n =
|
|
5076
|
+
i18n = injectSolI18n();
|
|
4295
5077
|
host = inject((ElementRef));
|
|
4296
5078
|
/** Pasos a renderizar, en orden. */
|
|
4297
5079
|
steps = input.required(/* @ts-ignore */
|
|
@@ -4555,7 +5337,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
4555
5337
|
* (`showLabel`) esté oculta.
|
|
4556
5338
|
*/
|
|
4557
5339
|
class SolProgressBarComponent {
|
|
4558
|
-
i18n =
|
|
5340
|
+
i18n = injectSolI18n();
|
|
4559
5341
|
/** `continuous` (value/max) o `segmented` (steps/current). */
|
|
4560
5342
|
mode = input('continuous', /* @ts-ignore */
|
|
4561
5343
|
...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
@@ -4626,7 +5408,7 @@ class SolProgressBarComponent {
|
|
|
4626
5408
|
const params = { current: this.current() + 1, total: this.steps() };
|
|
4627
5409
|
const key = 'shared.progressBar.stepOf';
|
|
4628
5410
|
const t = this.i18n.translate(key, params);
|
|
4629
|
-
return t && t !== key ? t : `
|
|
5411
|
+
return t && t !== key ? t : `Step ${params.current} of ${params.total}`;
|
|
4630
5412
|
}
|
|
4631
5413
|
return `${Math.round(this.percent())} %`;
|
|
4632
5414
|
}, /* @ts-ignore */
|
|
@@ -4639,7 +5421,7 @@ class SolProgressBarComponent {
|
|
|
4639
5421
|
return override;
|
|
4640
5422
|
const key = 'shared.progressBar.aria';
|
|
4641
5423
|
const t = this.i18n.translate(key);
|
|
4642
|
-
return t && t !== key ? t : '
|
|
5424
|
+
return t && t !== key ? t : 'Progress';
|
|
4643
5425
|
}, /* @ts-ignore */
|
|
4644
5426
|
...(ngDevMode ? [{ debugName: "ariaLabelText" }] : /* istanbul ignore next */ []));
|
|
4645
5427
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SolProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -4769,7 +5551,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
4769
5551
|
* deshabilita el avance. Texto por i18n `es-CO` con override por input.
|
|
4770
5552
|
*/
|
|
4771
5553
|
class SolWizardComponent {
|
|
4772
|
-
i18n =
|
|
5554
|
+
i18n = injectSolI18n();
|
|
4773
5555
|
/** Pasos a renderizar, en orden. */
|
|
4774
5556
|
steps = input.required(/* @ts-ignore */
|
|
4775
5557
|
...(ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []));
|
|
@@ -4843,13 +5625,13 @@ class SolWizardComponent {
|
|
|
4843
5625
|
return '';
|
|
4844
5626
|
}, /* @ts-ignore */
|
|
4845
5627
|
...(ngDevMode ? [{ debugName: "activeLabel" }] : /* istanbul ignore next */ []));
|
|
4846
|
-
previousText = computed(() => this.text(this.previousLabel(), 'shared.wizard.previous', '
|
|
5628
|
+
previousText = computed(() => this.text(this.previousLabel(), 'shared.wizard.previous', 'Previous'), /* @ts-ignore */
|
|
4847
5629
|
...(ngDevMode ? [{ debugName: "previousText" }] : /* istanbul ignore next */ []));
|
|
4848
|
-
nextText = computed(() => this.text(this.nextLabel(), 'shared.wizard.next', '
|
|
5630
|
+
nextText = computed(() => this.text(this.nextLabel(), 'shared.wizard.next', 'Next'), /* @ts-ignore */
|
|
4849
5631
|
...(ngDevMode ? [{ debugName: "nextText" }] : /* istanbul ignore next */ []));
|
|
4850
|
-
finishText = computed(() => this.text(this.finishLabel(), 'shared.wizard.finish', '
|
|
5632
|
+
finishText = computed(() => this.text(this.finishLabel(), 'shared.wizard.finish', 'Finish'), /* @ts-ignore */
|
|
4851
5633
|
...(ngDevMode ? [{ debugName: "finishText" }] : /* istanbul ignore next */ []));
|
|
4852
|
-
/** Resuelve texto: override → clave i18n (
|
|
5634
|
+
/** Resuelve texto: override → clave i18n (catálogo del host o el incluido) → respaldo en inglés. */
|
|
4853
5635
|
text(override, key, fallback) {
|
|
4854
5636
|
this.i18n.activeLang();
|
|
4855
5637
|
const value = override.trim();
|
|
@@ -5200,7 +5982,7 @@ function classifyItemsChange(prev, next) {
|
|
|
5200
5982
|
* El host debe darle altura (ocupa el 100% de su contenedor).
|
|
5201
5983
|
*/
|
|
5202
5984
|
class SolVirtualScrollComponent {
|
|
5203
|
-
i18n =
|
|
5985
|
+
i18n = injectSolI18n();
|
|
5204
5986
|
/** Lista completa de ítems (el componente solo renderiza la ventana). */
|
|
5205
5987
|
items = input.required(/* @ts-ignore */
|
|
5206
5988
|
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
@@ -6911,7 +7693,7 @@ const SOL_CHART_ENGINE = new InjectionToken('SOL_CHART_ENGINE', {
|
|
|
6911
7693
|
*/
|
|
6912
7694
|
class SolChartComponent {
|
|
6913
7695
|
themeService = inject(ThemeService);
|
|
6914
|
-
i18n =
|
|
7696
|
+
i18n = injectSolI18n();
|
|
6915
7697
|
engineFactory = inject(SOL_CHART_ENGINE);
|
|
6916
7698
|
destroyRef = inject(DestroyRef);
|
|
6917
7699
|
canvasRef = viewChild('canvas', /* @ts-ignore */
|
|
@@ -7538,7 +8320,7 @@ const POPOVER_WIDTH = 208;
|
|
|
7538
8320
|
* soporta light/dark como todo átomo del sistema.
|
|
7539
8321
|
*/
|
|
7540
8322
|
class SolRichEditorComponent {
|
|
7541
|
-
i18n =
|
|
8323
|
+
i18n = injectSolI18n();
|
|
7542
8324
|
destroyRef = inject(DestroyRef);
|
|
7543
8325
|
// ── Inputs ──────────────────────────────────────────────────────────
|
|
7544
8326
|
/** Texto guía cuando el editor está vacío. */
|
|
@@ -9047,6 +9829,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
9047
9829
|
class SolDataTableComponent {
|
|
9048
9830
|
themeService = inject(ThemeService);
|
|
9049
9831
|
host = inject(ElementRef);
|
|
9832
|
+
i18n = injectSolI18n();
|
|
9050
9833
|
data = input([], /* @ts-ignore */
|
|
9051
9834
|
...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
9052
9835
|
columns = input([], /* @ts-ignore */
|
|
@@ -9057,9 +9840,11 @@ class SolDataTableComponent {
|
|
|
9057
9840
|
*/
|
|
9058
9841
|
loading = input(false, /* @ts-ignore */
|
|
9059
9842
|
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
9060
|
-
|
|
9843
|
+
/** Search placeholder. Without a value it uses `shared.table.searchPlaceholder`. */
|
|
9844
|
+
searchPlaceholder = input(undefined, /* @ts-ignore */
|
|
9061
9845
|
...(ngDevMode ? [{ debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []));
|
|
9062
|
-
|
|
9846
|
+
/** Empty-state message. Without a value it uses `shared.table.empty`. */
|
|
9847
|
+
emptyMessage = input(undefined, /* @ts-ignore */
|
|
9063
9848
|
...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
|
|
9064
9849
|
paginated = input(true, /* @ts-ignore */
|
|
9065
9850
|
...(ngDevMode ? [{ debugName: "paginated" }] : /* istanbul ignore next */ []));
|
|
@@ -9075,8 +9860,8 @@ class SolDataTableComponent {
|
|
|
9075
9860
|
...(ngDevMode ? [{ debugName: "showDeleteAction" }] : /* istanbul ignore next */ []));
|
|
9076
9861
|
trackByKey = input('id', /* @ts-ignore */
|
|
9077
9862
|
...(ngDevMode ? [{ debugName: "trackByKey" }] : /* istanbul ignore next */ []));
|
|
9078
|
-
/** Encabezado de la columna de acciones. */
|
|
9079
|
-
actionsLabel = input(
|
|
9863
|
+
/** Encabezado de la columna de acciones. Sin valor usa `shared.table.actions`. */
|
|
9864
|
+
actionsLabel = input(undefined, /* @ts-ignore */
|
|
9080
9865
|
...(ngDevMode ? [{ debugName: "actionsLabel" }] : /* istanbul ignore next */ []));
|
|
9081
9866
|
/**
|
|
9082
9867
|
* Posición de la columna de acciones (0.6.0). `'end'` (default) preserva
|
|
@@ -9089,13 +9874,10 @@ class SolDataTableComponent {
|
|
|
9089
9874
|
actionsPosition = input('end', /* @ts-ignore */
|
|
9090
9875
|
...(ngDevMode ? [{ debugName: "actionsPosition" }] : /* istanbul ignore next */ []));
|
|
9091
9876
|
/**
|
|
9092
|
-
* aria-label del botón ▶ de expansión de fila en el modo móvil.
|
|
9093
|
-
*
|
|
9094
|
-
* para que cualquier consumidor que no lo sobreescriba (vía
|
|
9095
|
-
* `[toggleDetailsLabel]`) obtenga el texto correcto sin necesidad de
|
|
9096
|
-
* traducción explícita.
|
|
9877
|
+
* aria-label del botón ▶ de expansión de fila en el modo móvil. Sin valor
|
|
9878
|
+
* usa la clave i18n `shared.table.toggleDetails`.
|
|
9097
9879
|
*/
|
|
9098
|
-
toggleDetailsLabel = input(
|
|
9880
|
+
toggleDetailsLabel = input(undefined, /* @ts-ignore */
|
|
9099
9881
|
...(ngDevMode ? [{ debugName: "toggleDetailsLabel" }] : /* istanbul ignore next */ []));
|
|
9100
9882
|
/**
|
|
9101
9883
|
* Activa la animación de entrada (`solRowReveal`, ver directiva interna
|
|
@@ -9156,6 +9938,21 @@ class SolDataTableComponent {
|
|
|
9156
9938
|
/** Valor de filtro por columna (0.6.0), indexado por `DataTableColumn.key`. */
|
|
9157
9939
|
columnFilters = signal({}, /* @ts-ignore */
|
|
9158
9940
|
...(ngDevMode ? [{ debugName: "columnFilters" }] : /* istanbul ignore next */ []));
|
|
9941
|
+
// Visible texts: an explicit input always wins (even ''); otherwise the shared.table.* key.
|
|
9942
|
+
searchPlaceholderText = computed(() => this.text(this.searchPlaceholder(), 'shared.table.searchPlaceholder'), /* @ts-ignore */
|
|
9943
|
+
...(ngDevMode ? [{ debugName: "searchPlaceholderText" }] : /* istanbul ignore next */ []));
|
|
9944
|
+
emptyText = computed(() => this.text(this.emptyMessage(), 'shared.table.empty'), /* @ts-ignore */
|
|
9945
|
+
...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
|
|
9946
|
+
actionsText = computed(() => this.text(this.actionsLabel(), 'shared.table.actions'), /* @ts-ignore */
|
|
9947
|
+
...(ngDevMode ? [{ debugName: "actionsText" }] : /* istanbul ignore next */ []));
|
|
9948
|
+
toggleDetailsText = computed(() => this.text(this.toggleDetailsLabel(), 'shared.table.toggleDetails'), /* @ts-ignore */
|
|
9949
|
+
...(ngDevMode ? [{ debugName: "toggleDetailsText" }] : /* istanbul ignore next */ []));
|
|
9950
|
+
filterAllText = computed(() => this.text(undefined, 'shared.table.filterAll'), /* @ts-ignore */
|
|
9951
|
+
...(ngDevMode ? [{ debugName: "filterAllText" }] : /* istanbul ignore next */ []));
|
|
9952
|
+
text(override, key) {
|
|
9953
|
+
this.i18n.activeLang();
|
|
9954
|
+
return override ?? this.i18n.translate(key);
|
|
9955
|
+
}
|
|
9159
9956
|
/**
|
|
9160
9957
|
* Clave de replay de `solRowReveal`: cambia con cualquier búsqueda, orden
|
|
9161
9958
|
* o paginación — reinicia la animación de entrada de las filas visibles
|
|
@@ -9354,7 +10151,7 @@ class SolDataTableComponent {
|
|
|
9354
10151
|
</div>
|
|
9355
10152
|
<div class="sol-data-table__toolbar-right">
|
|
9356
10153
|
<sol-search-input
|
|
9357
|
-
[placeholder]="
|
|
10154
|
+
[placeholder]="searchPlaceholderText()"
|
|
9358
10155
|
(searchChange)="onSearch($event)"
|
|
9359
10156
|
/>
|
|
9360
10157
|
</div>
|
|
@@ -9385,7 +10182,7 @@ class SolDataTableComponent {
|
|
|
9385
10182
|
posiciones ('start'/'end', ver input actionsPosition) para no
|
|
9386
10183
|
duplicar el mismo th/td dos veces en el template. -->
|
|
9387
10184
|
<ng-template #actionsHeaderCell>
|
|
9388
|
-
<th class="sol-data-table__th sol-data-table__th--actions">{{
|
|
10185
|
+
<th class="sol-data-table__th sol-data-table__th--actions">{{ actionsText() }}</th>
|
|
9389
10186
|
</ng-template>
|
|
9390
10187
|
|
|
9391
10188
|
<ng-template #actionsFilterCell>
|
|
@@ -9423,7 +10220,7 @@ class SolDataTableComponent {
|
|
|
9423
10220
|
type="button"
|
|
9424
10221
|
class="sol-data-table__card-head"
|
|
9425
10222
|
[attr.aria-expanded]="isRowExpanded(trackId($index, row))"
|
|
9426
|
-
[attr.aria-label]="
|
|
10223
|
+
[attr.aria-label]="toggleDetailsText()"
|
|
9427
10224
|
(click)="toggleRow(trackId($index, row))"
|
|
9428
10225
|
data-testid="fila-colapsada"
|
|
9429
10226
|
>
|
|
@@ -9489,7 +10286,7 @@ class SolDataTableComponent {
|
|
|
9489
10286
|
}
|
|
9490
10287
|
</li>
|
|
9491
10288
|
} @empty {
|
|
9492
|
-
<li class="sol-data-table__empty">{{
|
|
10289
|
+
<li class="sol-data-table__empty">{{ emptyText() }}</li>
|
|
9493
10290
|
}
|
|
9494
10291
|
</ul>
|
|
9495
10292
|
}
|
|
@@ -9548,7 +10345,7 @@ class SolDataTableComponent {
|
|
|
9548
10345
|
[value]="columnFilters()[col.key] ?? ''"
|
|
9549
10346
|
(change)="onColumnFilterChange(col.key, $event)"
|
|
9550
10347
|
>
|
|
9551
|
-
<option value="">
|
|
10348
|
+
<option value="">{{ filterAllText() }}</option>
|
|
9552
10349
|
@for (opt of columnFilterOptions(col); track opt) {
|
|
9553
10350
|
<option [value]="opt">{{ opt }}</option>
|
|
9554
10351
|
}
|
|
@@ -9598,7 +10395,7 @@ class SolDataTableComponent {
|
|
|
9598
10395
|
} @empty {
|
|
9599
10396
|
<tr>
|
|
9600
10397
|
<td class="sol-data-table__empty" [attr.colspan]="columns().length + (showActions() ? 1 : 0)">
|
|
9601
|
-
{{
|
|
10398
|
+
{{ emptyText() }}
|
|
9602
10399
|
</td>
|
|
9603
10400
|
</tr>
|
|
9604
10401
|
}
|
|
@@ -9653,7 +10450,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
9653
10450
|
</div>
|
|
9654
10451
|
<div class="sol-data-table__toolbar-right">
|
|
9655
10452
|
<sol-search-input
|
|
9656
|
-
[placeholder]="
|
|
10453
|
+
[placeholder]="searchPlaceholderText()"
|
|
9657
10454
|
(searchChange)="onSearch($event)"
|
|
9658
10455
|
/>
|
|
9659
10456
|
</div>
|
|
@@ -9684,7 +10481,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
9684
10481
|
posiciones ('start'/'end', ver input actionsPosition) para no
|
|
9685
10482
|
duplicar el mismo th/td dos veces en el template. -->
|
|
9686
10483
|
<ng-template #actionsHeaderCell>
|
|
9687
|
-
<th class="sol-data-table__th sol-data-table__th--actions">{{
|
|
10484
|
+
<th class="sol-data-table__th sol-data-table__th--actions">{{ actionsText() }}</th>
|
|
9688
10485
|
</ng-template>
|
|
9689
10486
|
|
|
9690
10487
|
<ng-template #actionsFilterCell>
|
|
@@ -9722,7 +10519,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
9722
10519
|
type="button"
|
|
9723
10520
|
class="sol-data-table__card-head"
|
|
9724
10521
|
[attr.aria-expanded]="isRowExpanded(trackId($index, row))"
|
|
9725
|
-
[attr.aria-label]="
|
|
10522
|
+
[attr.aria-label]="toggleDetailsText()"
|
|
9726
10523
|
(click)="toggleRow(trackId($index, row))"
|
|
9727
10524
|
data-testid="fila-colapsada"
|
|
9728
10525
|
>
|
|
@@ -9788,7 +10585,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
9788
10585
|
}
|
|
9789
10586
|
</li>
|
|
9790
10587
|
} @empty {
|
|
9791
|
-
<li class="sol-data-table__empty">{{
|
|
10588
|
+
<li class="sol-data-table__empty">{{ emptyText() }}</li>
|
|
9792
10589
|
}
|
|
9793
10590
|
</ul>
|
|
9794
10591
|
}
|
|
@@ -9847,7 +10644,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
9847
10644
|
[value]="columnFilters()[col.key] ?? ''"
|
|
9848
10645
|
(change)="onColumnFilterChange(col.key, $event)"
|
|
9849
10646
|
>
|
|
9850
|
-
<option value="">
|
|
10647
|
+
<option value="">{{ filterAllText() }}</option>
|
|
9851
10648
|
@for (opt of columnFilterOptions(col); track opt) {
|
|
9852
10649
|
<option [value]="opt">{{ opt }}</option>
|
|
9853
10650
|
}
|
|
@@ -9897,7 +10694,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
9897
10694
|
} @empty {
|
|
9898
10695
|
<tr>
|
|
9899
10696
|
<td class="sol-data-table__empty" [attr.colspan]="columns().length + (showActions() ? 1 : 0)">
|
|
9900
|
-
{{
|
|
10697
|
+
{{ emptyText() }}
|
|
9901
10698
|
</td>
|
|
9902
10699
|
</tr>
|
|
9903
10700
|
}
|
|
@@ -10126,7 +10923,7 @@ const MAX_STARS$1 = 5;
|
|
|
10126
10923
|
* de pantalla anuncia "4,3 de 5" en vez de leer cinco íconos sueltos.
|
|
10127
10924
|
*/
|
|
10128
10925
|
class SolStarRatingComponent {
|
|
10129
|
-
i18n =
|
|
10926
|
+
i18n = injectSolI18n();
|
|
10130
10927
|
/** Calificación de 0 a 5. `null` = sin dato: se pintan 5 estrellas vacías. */
|
|
10131
10928
|
value = input(null, /* @ts-ignore */
|
|
10132
10929
|
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
@@ -10148,8 +10945,16 @@ class SolStarRatingComponent {
|
|
|
10148
10945
|
...(ngDevMode ? [{ debugName: "safeValue" }] : /* istanbul ignore next */ []));
|
|
10149
10946
|
filledPercent = computed(() => (this.safeValue() / MAX_STARS$1) * 100, /* @ts-ignore */
|
|
10150
10947
|
...(ngDevMode ? [{ debugName: "filledPercent" }] : /* istanbul ignore next */ []));
|
|
10151
|
-
/** Un decimal
|
|
10152
|
-
formattedValue = computed(() =>
|
|
10948
|
+
/** Un decimal con el separador del idioma activo (`4.5` en inglés, `4,5` en español). */
|
|
10949
|
+
formattedValue = computed(() => {
|
|
10950
|
+
const lang = this.i18n.activeLang() || 'en';
|
|
10951
|
+
try {
|
|
10952
|
+
return new Intl.NumberFormat(lang, { minimumFractionDigits: 1, maximumFractionDigits: 1 }).format(this.safeValue());
|
|
10953
|
+
}
|
|
10954
|
+
catch {
|
|
10955
|
+
return this.safeValue().toFixed(1);
|
|
10956
|
+
}
|
|
10957
|
+
}, /* @ts-ignore */
|
|
10153
10958
|
...(ngDevMode ? [{ debugName: "formattedValue" }] : /* istanbul ignore next */ []));
|
|
10154
10959
|
ariaLabel = computed(() => {
|
|
10155
10960
|
const rating = this.formattedValue();
|
|
@@ -10161,7 +10966,7 @@ class SolStarRatingComponent {
|
|
|
10161
10966
|
// ese caso se detecta y se cae a un texto propio en vez de anunciarle la
|
|
10162
10967
|
// clave cruda a un lector de pantalla.
|
|
10163
10968
|
return translated === 'shared.starRating.label'
|
|
10164
|
-
? `${rating}
|
|
10969
|
+
? `${rating} of ${MAX_STARS$1}`
|
|
10165
10970
|
: translated;
|
|
10166
10971
|
}, /* @ts-ignore */
|
|
10167
10972
|
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
@@ -10290,7 +11095,7 @@ const MAX_STARS = 5;
|
|
|
10290
11095
|
* ```
|
|
10291
11096
|
*/
|
|
10292
11097
|
class SolRatingInputComponent {
|
|
10293
|
-
i18n =
|
|
11098
|
+
i18n = injectSolI18n();
|
|
10294
11099
|
/** Botones de estrella renderizados, en el mismo orden que `stars`. */
|
|
10295
11100
|
starRefs = viewChildren('starRef', /* @ts-ignore */
|
|
10296
11101
|
...(ngDevMode ? [{ debugName: "starRefs" }] : /* istanbul ignore next */ []));
|
|
@@ -10373,9 +11178,9 @@ class SolRatingInputComponent {
|
|
|
10373
11178
|
return current !== null ? current - 1 : 0;
|
|
10374
11179
|
}, /* @ts-ignore */
|
|
10375
11180
|
...(ngDevMode ? [{ debugName: "rovingIndex" }] : /* istanbul ignore next */ []));
|
|
10376
|
-
groupLabel = computed(() => this.text(this.ariaLabelKey(), '
|
|
11181
|
+
groupLabel = computed(() => this.text(this.ariaLabelKey(), 'Rating from 1 to 5 stars'), /* @ts-ignore */
|
|
10377
11182
|
...(ngDevMode ? [{ debugName: "groupLabel" }] : /* istanbul ignore next */ []));
|
|
10378
|
-
clearLabel = computed(() => this.text(this.clearLabelKey(), '
|
|
11183
|
+
clearLabel = computed(() => this.text(this.clearLabelKey(), 'Clear the rating'), /* @ts-ignore */
|
|
10379
11184
|
...(ngDevMode ? [{ debugName: "clearLabel" }] : /* istanbul ignore next */ []));
|
|
10380
11185
|
onChange = () => { };
|
|
10381
11186
|
onTouched = () => { };
|
|
@@ -10392,7 +11197,7 @@ class SolRatingInputComponent {
|
|
|
10392
11197
|
return star - 1 === this.rovingIndex() ? 0 : -1;
|
|
10393
11198
|
}
|
|
10394
11199
|
optionLabel(star) {
|
|
10395
|
-
return this.text(this.optionLabelKey(), `${star}
|
|
11200
|
+
return this.text(this.optionLabelKey(), `${star} of ${MAX_STARS}`, {
|
|
10396
11201
|
value: star,
|
|
10397
11202
|
max: MAX_STARS,
|
|
10398
11203
|
});
|
|
@@ -10490,7 +11295,7 @@ class SolRatingInputComponent {
|
|
|
10490
11295
|
this.starRefs()[index]?.nativeElement.focus();
|
|
10491
11296
|
}
|
|
10492
11297
|
/**
|
|
10493
|
-
* Resuelve un texto por i18n con respaldo
|
|
11298
|
+
* Resuelve un texto por i18n con respaldo propio en inglés.
|
|
10494
11299
|
*
|
|
10495
11300
|
* El contrato `SolI18n` devuelve la CLAVE cuando falta la traducción, así que
|
|
10496
11301
|
* ese caso se detecta y se cae al texto de la casa en vez de anunciarle la
|
|
@@ -10697,7 +11502,7 @@ function resolveScoreTone(score, thresholds) {
|
|
|
10697
11502
|
* Ambos usan el tono neutral y un texto por clave i18n en vez del número.
|
|
10698
11503
|
*/
|
|
10699
11504
|
class SolScoreBadgeComponent {
|
|
10700
|
-
i18n =
|
|
11505
|
+
i18n = injectSolI18n();
|
|
10701
11506
|
/** Puntaje a mostrar; `null` = sin dato todavía. */
|
|
10702
11507
|
value = input(null, /* @ts-ignore */
|
|
10703
11508
|
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
@@ -10795,7 +11600,7 @@ function invertTone(tone) {
|
|
|
10795
11600
|
* mide un score, ingresos o cualquier otra métrica.
|
|
10796
11601
|
*/
|
|
10797
11602
|
class SolTrendComponent {
|
|
10798
|
-
i18n =
|
|
11603
|
+
i18n = injectSolI18n();
|
|
10799
11604
|
/** Valor actual de la métrica. */
|
|
10800
11605
|
current = input.required(/* @ts-ignore */
|
|
10801
11606
|
...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
|
|
@@ -10895,7 +11700,7 @@ const STATUS_COLOR = {
|
|
|
10895
11700
|
* igual que WhatsApp distingue el doble-check gris del azul.
|
|
10896
11701
|
*/
|
|
10897
11702
|
class SolMessageStatusComponent {
|
|
10898
|
-
i18n =
|
|
11703
|
+
i18n = injectSolI18n();
|
|
10899
11704
|
status = input.required(/* @ts-ignore */
|
|
10900
11705
|
...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
10901
11706
|
iconName = computed(() => STATUS_ICON[this.status()], /* @ts-ignore */
|
|
@@ -11165,7 +11970,7 @@ const MONTH_KEYS = Array.from({ length: 12 }, (_, i) => `shared.timeline.months.
|
|
|
11165
11970
|
* `timeline-position.ts`.
|
|
11166
11971
|
*/
|
|
11167
11972
|
class SolTimelineComponent {
|
|
11168
|
-
i18n =
|
|
11973
|
+
i18n = injectSolI18n();
|
|
11169
11974
|
/**
|
|
11170
11975
|
* Nodos raíz del timeline. Tipado `TimelineNode[] | null | undefined` a
|
|
11171
11976
|
* propósito: `input.required()` exige que el BINDING exista, no que su
|
|
@@ -11653,7 +12458,7 @@ function resolveColumnTitle(column, translate) {
|
|
|
11653
12458
|
* este modelo (columnas → items planos) — no aplica guarda de ciclo.
|
|
11654
12459
|
*/
|
|
11655
12460
|
class SolKanbanColumnComponent {
|
|
11656
|
-
i18n =
|
|
12461
|
+
i18n = injectSolI18n();
|
|
11657
12462
|
/** Tolera `null`/`undefined` (lección PR3/PR4): `input.required()` no garantiza no-nulo en runtime. */
|
|
11658
12463
|
column = input.required(/* @ts-ignore */
|
|
11659
12464
|
...(ngDevMode ? [{ debugName: "column" }] : /* istanbul ignore next */ []));
|
|
@@ -12185,7 +12990,7 @@ class SolKanbanBoardComponent {
|
|
|
12185
12990
|
*/
|
|
12186
12991
|
externalItemDropped = output();
|
|
12187
12992
|
reorderService = inject(KanbanReorderService);
|
|
12188
|
-
i18n =
|
|
12993
|
+
i18n = injectSolI18n();
|
|
12189
12994
|
/** `protected` (no `private`): el template de este mismo componente necesita leerlo, y Angular exige acceso no-privado para bindings de plantilla. */
|
|
12190
12995
|
mirroredColumns = signal([], /* @ts-ignore */
|
|
12191
12996
|
...(ngDevMode ? [{ debugName: "mirroredColumns" }] : /* istanbul ignore next */ []));
|
|
@@ -12482,7 +13287,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
12482
13287
|
* hay ningún campo de texto que dispare el zoom.
|
|
12483
13288
|
*/
|
|
12484
13289
|
class SolChipComponent {
|
|
12485
|
-
i18n =
|
|
13290
|
+
i18n = injectSolI18n();
|
|
12486
13291
|
chipRoot = viewChild.required('chipRoot', /* @ts-ignore */
|
|
12487
13292
|
...(ngDevMode ? [{ debugName: "chipRoot" }] : /* istanbul ignore next */ []));
|
|
12488
13293
|
/** Stable identifier emitted by `toggled`/`removed`. */
|
|
@@ -12692,7 +13497,7 @@ const MULTIPLE_SELECT_STRATEGY = {
|
|
|
12692
13497
|
* del rol ARIA del contenedor.
|
|
12693
13498
|
*/
|
|
12694
13499
|
class SolChipGroupComponent {
|
|
12695
|
-
i18n =
|
|
13500
|
+
i18n = injectSolI18n();
|
|
12696
13501
|
/** Instancias renderizadas de `sol-chip`, en el mismo orden que `options()` — usadas por `focusChipAt` para enfocar sin depender de clases CSS internas. */
|
|
12697
13502
|
chipViews = viewChildren(SolChipComponent, /* @ts-ignore */
|
|
12698
13503
|
...(ngDevMode ? [{ debugName: "chipViews" }] : /* istanbul ignore next */ []));
|
|
@@ -12956,7 +13761,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
12956
13761
|
* de `@media (max-width:640px)`, encapsulado en los `styles` del componente.
|
|
12957
13762
|
*/
|
|
12958
13763
|
class SolNumberInputComponent {
|
|
12959
|
-
i18n =
|
|
13764
|
+
i18n = injectSolI18n();
|
|
12960
13765
|
min = input(0, /* @ts-ignore */
|
|
12961
13766
|
...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
|
|
12962
13767
|
max = input(Number.MAX_SAFE_INTEGER, /* @ts-ignore */
|
|
@@ -13448,7 +14253,7 @@ function observeMobileViewport() {
|
|
|
13448
14253
|
class SolCalendarGridComponent {
|
|
13449
14254
|
colorResolver = inject(SOL_CALENDAR_COLOR);
|
|
13450
14255
|
themeService = inject(ThemeService);
|
|
13451
|
-
i18n =
|
|
14256
|
+
i18n = injectSolI18n();
|
|
13452
14257
|
destroyRef = inject(DestroyRef);
|
|
13453
14258
|
/** Tolera `null`/`undefined` (lección PR3/PR4/PR5): `input.required()` no garantiza un dato válido en runtime. */
|
|
13454
14259
|
events = input.required(/* @ts-ignore */
|
|
@@ -13708,7 +14513,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
13708
14513
|
* vacía y asumen `'week'` respectivamente.
|
|
13709
14514
|
*/
|
|
13710
14515
|
class SolCalendarHeaderComponent {
|
|
13711
|
-
i18n =
|
|
14516
|
+
i18n = injectSolI18n();
|
|
13712
14517
|
/** Tolera `null`/`undefined`/fecha inválida (lección PR3/PR4/PR5): `input.required()` no garantiza un dato válido en runtime. */
|
|
13713
14518
|
currentDate = input.required(/* @ts-ignore */
|
|
13714
14519
|
...(ngDevMode ? [{ debugName: "currentDate" }] : /* istanbul ignore next */ []));
|
|
@@ -13902,7 +14707,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
13902
14707
|
* arreglo vacío / `'week'` / fecha actual del sistema, respectivamente).
|
|
13903
14708
|
*/
|
|
13904
14709
|
class SolCalendarComponent {
|
|
13905
|
-
i18n =
|
|
14710
|
+
i18n = injectSolI18n();
|
|
13906
14711
|
/** Tolera `null`/`undefined` (lección PR3/PR4/PR5): `input.required()` no garantiza un dato válido en runtime. */
|
|
13907
14712
|
events = input.required(/* @ts-ignore */
|
|
13908
14713
|
...(ngDevMode ? [{ debugName: "events" }] : /* istanbul ignore next */ []));
|
|
@@ -14704,7 +15509,7 @@ function clampPosition(position) {
|
|
|
14704
15509
|
* persista.
|
|
14705
15510
|
*/
|
|
14706
15511
|
class SolFlowCanvasComponent {
|
|
14707
|
-
i18n =
|
|
15512
|
+
i18n = injectSolI18n();
|
|
14708
15513
|
/** Tolera `null`/`undefined` (lección PR3/PR4 del resto de la lib): un input no garantiza un valor no-nulo en runtime. */
|
|
14709
15514
|
nodes = input([], /* @ts-ignore */
|
|
14710
15515
|
...(ngDevMode ? [{ debugName: "nodes" }] : /* istanbul ignore next */ []));
|
|
@@ -15564,7 +16369,7 @@ class SolTreeNodeComponent {
|
|
|
15564
16369
|
...(ngDevMode ? [{ debugName: "depth" }] : /* istanbul ignore next */ []));
|
|
15565
16370
|
el = inject(ElementRef);
|
|
15566
16371
|
state = inject(SolTreeState);
|
|
15567
|
-
i18n =
|
|
16372
|
+
i18n = injectSolI18n();
|
|
15568
16373
|
children = computed(() => this.node().children ?? [], /* @ts-ignore */
|
|
15569
16374
|
...(ngDevMode ? [{ debugName: "children" }] : /* istanbul ignore next */ []));
|
|
15570
16375
|
hasChildren = computed(() => this.children().length > 0, /* @ts-ignore */
|
|
@@ -15596,8 +16401,8 @@ class SolTreeNodeComponent {
|
|
|
15596
16401
|
this.i18n.activeLang();
|
|
15597
16402
|
const label = this.node().label;
|
|
15598
16403
|
return this.expanded()
|
|
15599
|
-
? this.text('shared.tree.collapseAria', `
|
|
15600
|
-
: this.text('shared.tree.expandAria', `
|
|
16404
|
+
? this.text('shared.tree.collapseAria', `Collapse ${label}`, label)
|
|
16405
|
+
: this.text('shared.tree.expandAria', `Expand ${label}`, label);
|
|
15601
16406
|
}, /* @ts-ignore */
|
|
15602
16407
|
...(ngDevMode ? [{ debugName: "toggleAriaLabel" }] : /* istanbul ignore next */ []));
|
|
15603
16408
|
onToggleClick(event) {
|
|
@@ -15672,7 +16477,7 @@ class SolTreeNodeComponent {
|
|
|
15672
16477
|
const index = items.indexOf(this.el.nativeElement);
|
|
15673
16478
|
items[index + delta]?.focus();
|
|
15674
16479
|
}
|
|
15675
|
-
/** Resuelve texto: clave i18n (
|
|
16480
|
+
/** Resuelve texto: clave i18n (catálogo del host o el incluido) → respaldo en inglés. */
|
|
15676
16481
|
text(key, fallback, label) {
|
|
15677
16482
|
const translated = this.i18n.translate(key, { label });
|
|
15678
16483
|
return translated && translated !== key ? translated : fallback;
|
|
@@ -15790,7 +16595,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
15790
16595
|
* @typeParam T Tipo de la carga libre `data` de cada nodo.
|
|
15791
16596
|
*/
|
|
15792
16597
|
class SolTreeComponent {
|
|
15793
|
-
i18n =
|
|
16598
|
+
i18n = injectSolI18n();
|
|
15794
16599
|
state = inject(SolTreeState);
|
|
15795
16600
|
/** Raíces del bosque. Un árbol de una sola raíz es un arreglo de un elemento. */
|
|
15796
16601
|
nodes = input.required(/* @ts-ignore */
|
|
@@ -15858,7 +16663,7 @@ class SolTreeComponent {
|
|
|
15858
16663
|
const translated = this.i18n.translate('shared.tree.ariaLabel');
|
|
15859
16664
|
return translated && translated !== 'shared.tree.ariaLabel'
|
|
15860
16665
|
? translated
|
|
15861
|
-
: '
|
|
16666
|
+
: 'Hierarchical tree';
|
|
15862
16667
|
}, /* @ts-ignore */
|
|
15863
16668
|
...(ngDevMode ? [{ debugName: "treeAriaLabel" }] : /* istanbul ignore next */ []));
|
|
15864
16669
|
constructor() {
|
|
@@ -16002,7 +16807,7 @@ const MINUTE_MS = 60_000;
|
|
|
16002
16807
|
* ```
|
|
16003
16808
|
*/
|
|
16004
16809
|
class SolNotificationPanelComponent {
|
|
16005
|
-
i18n =
|
|
16810
|
+
i18n = injectSolI18n();
|
|
16006
16811
|
/**
|
|
16007
16812
|
* Notificaciones a mostrar. El panel NO las va a buscar: el consumidor es
|
|
16008
16813
|
* la fuente de verdad. Tipado con `null | undefined` a propósito, para el
|
|
@@ -16436,7 +17241,7 @@ const I18N_PREFIX = 'shared.scopeSwitcher';
|
|
|
16436
17241
|
* ```
|
|
16437
17242
|
*/
|
|
16438
17243
|
class SolScopeSwitcherComponent {
|
|
16439
|
-
i18n =
|
|
17244
|
+
i18n = injectSolI18n();
|
|
16440
17245
|
hostEl = inject(ElementRef);
|
|
16441
17246
|
// ── Entradas ────────────────────────────────────────────────────────────────
|
|
16442
17247
|
/**
|
|
@@ -16992,20 +17797,22 @@ const CONFIRM_ICON_NAMES = {
|
|
|
16992
17797
|
* `confirm` y `cancel`.
|
|
16993
17798
|
*/
|
|
16994
17799
|
class SolConfirmDialogComponent {
|
|
17800
|
+
static nextId = 0;
|
|
17801
|
+
i18n = injectSolI18n();
|
|
16995
17802
|
/** Abre o cierra el diálogo. */
|
|
16996
17803
|
open = input(false, /* @ts-ignore */
|
|
16997
17804
|
...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
16998
|
-
/** Título del diálogo. */
|
|
16999
|
-
title = input(
|
|
17805
|
+
/** Título del diálogo. Sin valor usa `shared.confirmDialog.title` («Are you sure?»). */
|
|
17806
|
+
title = input(undefined, /* @ts-ignore */
|
|
17000
17807
|
...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
17001
17808
|
/** Mensaje bajo el título (opcional). */
|
|
17002
17809
|
message = input('', /* @ts-ignore */
|
|
17003
17810
|
...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
|
|
17004
|
-
/** Texto del botón de confirmación. */
|
|
17005
|
-
confirmLabel = input(
|
|
17811
|
+
/** Texto del botón de confirmación. Sin valor usa `shared.confirmDialog.confirm`. */
|
|
17812
|
+
confirmLabel = input(undefined, /* @ts-ignore */
|
|
17006
17813
|
...(ngDevMode ? [{ debugName: "confirmLabel" }] : /* istanbul ignore next */ []));
|
|
17007
|
-
/** Texto del botón de cancelación. */
|
|
17008
|
-
cancelLabel = input(
|
|
17814
|
+
/** Texto del botón de cancelación. Sin valor usa `shared.confirmDialog.cancel`. */
|
|
17815
|
+
cancelLabel = input(undefined, /* @ts-ignore */
|
|
17009
17816
|
...(ngDevMode ? [{ debugName: "cancelLabel" }] : /* istanbul ignore next */ []));
|
|
17010
17817
|
/** Variante visual: ícono y color del botón de confirmación. */
|
|
17011
17818
|
variant = input('danger', /* @ts-ignore */
|
|
@@ -17020,6 +17827,41 @@ class SolConfirmDialogComponent {
|
|
|
17020
17827
|
...(ngDevMode ? [{ debugName: "confirmBtnClasses" }] : /* istanbul ignore next */ []));
|
|
17021
17828
|
iconName = computed(() => CONFIRM_ICON_NAMES[this.variant()], /* @ts-ignore */
|
|
17022
17829
|
...(ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []));
|
|
17830
|
+
titleId = `sol-confirm-title-${SolConfirmDialogComponent.nextId}`;
|
|
17831
|
+
messageId = `sol-confirm-message-${SolConfirmDialogComponent.nextId++}`;
|
|
17832
|
+
titleText = computed(() => this.text(this.title(), 'shared.confirmDialog.title'), /* @ts-ignore */
|
|
17833
|
+
...(ngDevMode ? [{ debugName: "titleText" }] : /* istanbul ignore next */ []));
|
|
17834
|
+
confirmText = computed(() => this.text(this.confirmLabel(), 'shared.confirmDialog.confirm'), /* @ts-ignore */
|
|
17835
|
+
...(ngDevMode ? [{ debugName: "confirmText" }] : /* istanbul ignore next */ []));
|
|
17836
|
+
cancelText = computed(() => this.text(this.cancelLabel(), 'shared.confirmDialog.cancel'), /* @ts-ignore */
|
|
17837
|
+
...(ngDevMode ? [{ debugName: "cancelText" }] : /* istanbul ignore next */ []));
|
|
17838
|
+
panelEl = viewChild('panel', /* @ts-ignore */
|
|
17839
|
+
...(ngDevMode ? [{ debugName: "panelEl" }] : /* istanbul ignore next */ []));
|
|
17840
|
+
cancelButton = viewChild('cancelButton', /* @ts-ignore */
|
|
17841
|
+
...(ngDevMode ? [{ debugName: "cancelButton" }] : /* istanbul ignore next */ []));
|
|
17842
|
+
constructor() {
|
|
17843
|
+
// Same lifecycle as sol-modal and sol-drawer (scroll lock + focus trap + focus restore).
|
|
17844
|
+
// Initial focus goes to Cancel, the least destructive action (WAI-ARIA alertdialog).
|
|
17845
|
+
effect(onCleanup => {
|
|
17846
|
+
const panel = this.panelEl()?.nativeElement ?? null;
|
|
17847
|
+
if (!panel)
|
|
17848
|
+
return;
|
|
17849
|
+
const trigger = document.activeElement;
|
|
17850
|
+
bodyScrollLock.lock();
|
|
17851
|
+
const trap = createFocusTrap(panel);
|
|
17852
|
+
trap.activate(trigger);
|
|
17853
|
+
this.cancelButton()?.nativeElement.focus();
|
|
17854
|
+
onCleanup(() => {
|
|
17855
|
+
trap.deactivate();
|
|
17856
|
+
bodyScrollLock.unlock();
|
|
17857
|
+
});
|
|
17858
|
+
});
|
|
17859
|
+
}
|
|
17860
|
+
/** An explicit input always wins (even `''`); otherwise the i18n key. */
|
|
17861
|
+
text(override, key) {
|
|
17862
|
+
this.i18n.activeLang();
|
|
17863
|
+
return override ?? this.i18n.translate(key);
|
|
17864
|
+
}
|
|
17023
17865
|
onEscapeKey() {
|
|
17024
17866
|
if (this.open())
|
|
17025
17867
|
this.onCancel();
|
|
@@ -17034,84 +17876,90 @@ class SolConfirmDialogComponent {
|
|
|
17034
17876
|
this.cancel.emit();
|
|
17035
17877
|
}
|
|
17036
17878
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SolConfirmDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17037
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: SolConfirmDialogComponent, isStandalone: true, selector: "sol-confirm-dialog", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, confirmLabel: { classPropertyName: "confirmLabel", publicName: "confirmLabel", isSignal: true, isRequired: false, transformFunction: null }, cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { confirm: "confirm", cancel: "cancel" }, host: { listeners: { "document:keydown.escape": "onEscapeKey()" } }, ngImport: i0, template: `
|
|
17879
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: SolConfirmDialogComponent, isStandalone: true, selector: "sol-confirm-dialog", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, confirmLabel: { classPropertyName: "confirmLabel", publicName: "confirmLabel", isSignal: true, isRequired: false, transformFunction: null }, cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { confirm: "confirm", cancel: "cancel" }, host: { listeners: { "document:keydown.escape": "onEscapeKey()" } }, viewQueries: [{ propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "cancelButton", first: true, predicate: ["cancelButton"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
17038
17880
|
@if (open()) {
|
|
17039
|
-
<div
|
|
17040
|
-
|
|
17041
|
-
|
|
17042
|
-
|
|
17043
|
-
|
|
17044
|
-
|
|
17045
|
-
|
|
17046
|
-
|
|
17047
|
-
|
|
17881
|
+
<div class="sol-confirm-overlay" data-testid="sol-confirm-dialog" (click)="onBackdropClick()">
|
|
17882
|
+
<div
|
|
17883
|
+
#panel
|
|
17884
|
+
class="sol-confirm-panel"
|
|
17885
|
+
role="alertdialog"
|
|
17886
|
+
aria-modal="true"
|
|
17887
|
+
[attr.aria-labelledby]="titleId"
|
|
17888
|
+
[attr.aria-describedby]="message() ? messageId : null"
|
|
17889
|
+
tabindex="-1"
|
|
17890
|
+
(click)="$event.stopPropagation()"
|
|
17891
|
+
>
|
|
17048
17892
|
<div class="sol-confirm-header">
|
|
17049
17893
|
<sol-icon class="sol-confirm-icon" [class]="iconClasses()" [name]="iconName()" />
|
|
17050
|
-
<h2 class="sol-confirm-title">{{
|
|
17894
|
+
<h2 [id]="titleId" class="sol-confirm-title">{{ titleText() }}</h2>
|
|
17051
17895
|
</div>
|
|
17052
17896
|
|
|
17053
17897
|
@if (message()) {
|
|
17054
|
-
<p class="sol-confirm-message">{{ message() }}</p>
|
|
17898
|
+
<p [id]="messageId" class="sol-confirm-message">{{ message() }}</p>
|
|
17055
17899
|
}
|
|
17056
17900
|
|
|
17057
17901
|
<div class="sol-confirm-actions">
|
|
17058
17902
|
<button type="button" data-testid="sol-confirm-accept" [class]="confirmBtnClasses()" (click)="onConfirm()">
|
|
17059
|
-
{{
|
|
17903
|
+
{{ confirmText() }}
|
|
17060
17904
|
</button>
|
|
17061
17905
|
<button
|
|
17906
|
+
#cancelButton
|
|
17062
17907
|
type="button"
|
|
17063
17908
|
data-testid="sol-confirm-cancel"
|
|
17064
17909
|
class="sol-confirm-btn sol-confirm-btn--cancel"
|
|
17065
17910
|
(click)="onCancel()"
|
|
17066
17911
|
>
|
|
17067
|
-
{{
|
|
17912
|
+
{{ cancelText() }}
|
|
17068
17913
|
</button>
|
|
17069
17914
|
</div>
|
|
17070
17915
|
</div>
|
|
17071
17916
|
</div>
|
|
17072
17917
|
}
|
|
17073
|
-
`, isInline: true, styles: [".sol-confirm-overlay{position:fixed;inset:0;z-index:var(--sol-z-modal, 1000);display:flex;align-items:center;justify-content:center;background:var(--sol-bg-overlay, rgba(0, 0, 0, .5));backdrop-filter:var(--sol-overlay-blur, blur(3px));-webkit-backdrop-filter:var(--sol-overlay-blur, blur(3px));animation:sol-confirm-fade-in .15s ease-out}.sol-confirm-panel{width:min(28rem,92vw);background:var(--sol-bg-surface, #ffffff);border-radius:var(--sol-border-radius-lg, 12px);box-shadow:var(--sol-shadow-lg, 0 20px 60px rgba(0, 0, 0, .3));padding:var(--sol-space-lg, 1.5rem);animation:sol-confirm-scale-in .2s ease-out}.sol-confirm-header{display:flex;align-items:center;gap:var(--sol-space-sm, .75rem);margin-bottom:var(--sol-space-sm, .5rem)}.sol-confirm-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:var(--sol-border-radius-full, 9999px);flex-shrink:0}.sol-confirm-icon--danger{background:color-mix(in srgb,var(--sol-color-danger, #ef4444) 12%,transparent);color:var(--sol-color-danger, #ef4444)}.sol-confirm-icon--warning{background:color-mix(in srgb,var(--sol-color-warning, #f59e0b) 12%,transparent);color:var(--sol-color-warning, #f59e0b)}.sol-confirm-icon--info{background:color-mix(in srgb,var(--sol-color-info, #3b82f6) 12%,transparent);color:var(--sol-color-info, #3b82f6)}.sol-confirm-title{margin:0;font-size:var(--sol-font-size-lg, 1.125rem);font-weight:600;color:var(--sol-color-text-primary, #111827)}.sol-confirm-message{margin:var(--sol-space-sm, .5rem) 0 0 0;padding-left:calc(40px + var(--sol-space-sm, .75rem));font-size:var(--sol-font-size-sm, .875rem);color:var(--sol-color-text-secondary, #6b7280);line-height:1.5}.sol-confirm-actions{display:flex;justify-content:flex-end;gap:var(--sol-space-sm, .5rem);margin-top:var(--sol-space-lg, 1.5rem)}.sol-confirm-btn{display:inline-flex;align-items:center;justify-content:center;padding:var(--sol-space-sm, .5rem) var(--sol-space-md, 1rem);border:none;border-radius:var(--sol-border-radius-md, 8px);font-size:var(--sol-font-size-sm, .875rem);font-weight:500;font-family:inherit;cursor:pointer;transition:background-color .15s ease,opacity .15s ease;line-height:1;min-height:36px}.sol-confirm-btn--cancel{background:transparent;color:var(--sol-color-primary, #6366f1)}.sol-confirm-btn--cancel:hover{background:color-mix(in srgb,var(--sol-color-primary, #6366f1) 10%,transparent)}.sol-confirm-btn--danger{background:var(--sol-color-danger, #ef4444);color:var(--sol-confirm-on-color, #ffffff)}.sol-confirm-btn--danger:hover{background:color-mix(in srgb,var(--sol-color-danger, #ef4444) 85%,var(--sol-confirm-hover-shade, #000000))}.sol-confirm-btn--warning{background:var(--sol-color-warning, #f59e0b);color:var(--sol-confirm-on-color, #ffffff)}.sol-confirm-btn--warning:hover{background:color-mix(in srgb,var(--sol-color-warning, #f59e0b) 85%,var(--sol-confirm-hover-shade, #000000))}.sol-confirm-btn--info{background:var(--sol-color-info, #3b82f6);color:var(--sol-confirm-on-color, #ffffff)}.sol-confirm-btn--info:hover{background:color-mix(in srgb,var(--sol-color-info, #3b82f6) 85%,var(--sol-confirm-hover-shade, #000000))}.sol-confirm-btn:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--sol-color-primary, #6366f1) 40%,transparent)}@keyframes sol-confirm-fade-in{0%{opacity:0}to{opacity:1}}@keyframes sol-confirm-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}\n"], dependencies: [{ kind: "component", type: SolIconComponent, selector: "sol-icon", inputs: ["name", "size", "variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
17918
|
+
`, isInline: true, styles: [".sol-confirm-overlay{position:fixed;inset:0;z-index:var(--sol-z-modal, 1000);display:flex;align-items:center;justify-content:center;background:var(--sol-bg-overlay, rgba(0, 0, 0, .5));backdrop-filter:var(--sol-overlay-blur, blur(3px));-webkit-backdrop-filter:var(--sol-overlay-blur, blur(3px));animation:sol-confirm-fade-in .15s ease-out}.sol-confirm-panel:focus{outline:none}.sol-confirm-panel{width:min(28rem,92vw);background:var(--sol-bg-surface, #ffffff);border-radius:var(--sol-border-radius-lg, 12px);box-shadow:var(--sol-shadow-lg, 0 20px 60px rgba(0, 0, 0, .3));padding:var(--sol-space-lg, 1.5rem);animation:sol-confirm-scale-in .2s ease-out}.sol-confirm-header{display:flex;align-items:center;gap:var(--sol-space-sm, .75rem);margin-bottom:var(--sol-space-sm, .5rem)}.sol-confirm-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:var(--sol-border-radius-full, 9999px);flex-shrink:0}.sol-confirm-icon--danger{background:color-mix(in srgb,var(--sol-color-danger, #ef4444) 12%,transparent);color:var(--sol-color-danger, #ef4444)}.sol-confirm-icon--warning{background:color-mix(in srgb,var(--sol-color-warning, #f59e0b) 12%,transparent);color:var(--sol-color-warning, #f59e0b)}.sol-confirm-icon--info{background:color-mix(in srgb,var(--sol-color-info, #3b82f6) 12%,transparent);color:var(--sol-color-info, #3b82f6)}.sol-confirm-title{margin:0;font-size:var(--sol-font-size-lg, 1.125rem);font-weight:600;color:var(--sol-color-text-primary, #111827)}.sol-confirm-message{margin:var(--sol-space-sm, .5rem) 0 0 0;padding-left:calc(40px + var(--sol-space-sm, .75rem));font-size:var(--sol-font-size-sm, .875rem);color:var(--sol-color-text-secondary, #6b7280);line-height:1.5}.sol-confirm-actions{display:flex;justify-content:flex-end;gap:var(--sol-space-sm, .5rem);margin-top:var(--sol-space-lg, 1.5rem)}.sol-confirm-btn{display:inline-flex;align-items:center;justify-content:center;padding:var(--sol-space-sm, .5rem) var(--sol-space-md, 1rem);border:none;border-radius:var(--sol-border-radius-md, 8px);font-size:var(--sol-font-size-sm, .875rem);font-weight:500;font-family:inherit;cursor:pointer;transition:background-color .15s ease,opacity .15s ease;line-height:1;min-height:36px}.sol-confirm-btn--cancel{background:transparent;color:var(--sol-color-primary, #6366f1)}.sol-confirm-btn--cancel:hover{background:color-mix(in srgb,var(--sol-color-primary, #6366f1) 10%,transparent)}.sol-confirm-btn--danger{background:var(--sol-color-danger, #ef4444);color:var(--sol-confirm-on-color, #ffffff)}.sol-confirm-btn--danger:hover{background:color-mix(in srgb,var(--sol-color-danger, #ef4444) 85%,var(--sol-confirm-hover-shade, #000000))}.sol-confirm-btn--warning{background:var(--sol-color-warning, #f59e0b);color:var(--sol-confirm-on-color, #ffffff)}.sol-confirm-btn--warning:hover{background:color-mix(in srgb,var(--sol-color-warning, #f59e0b) 85%,var(--sol-confirm-hover-shade, #000000))}.sol-confirm-btn--info{background:var(--sol-color-info, #3b82f6);color:var(--sol-confirm-on-color, #ffffff)}.sol-confirm-btn--info:hover{background:color-mix(in srgb,var(--sol-color-info, #3b82f6) 85%,var(--sol-confirm-hover-shade, #000000))}.sol-confirm-btn:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--sol-color-primary, #6366f1) 40%,transparent)}@keyframes sol-confirm-fade-in{0%{opacity:0}to{opacity:1}}@keyframes sol-confirm-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}\n"], dependencies: [{ kind: "component", type: SolIconComponent, selector: "sol-icon", inputs: ["name", "size", "variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
17074
17919
|
}
|
|
17075
17920
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SolConfirmDialogComponent, decorators: [{
|
|
17076
17921
|
type: Component,
|
|
17077
17922
|
args: [{ selector: 'sol-confirm-dialog', standalone: true, imports: [SolIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
17078
17923
|
@if (open()) {
|
|
17079
|
-
<div
|
|
17080
|
-
|
|
17081
|
-
|
|
17082
|
-
|
|
17083
|
-
|
|
17084
|
-
|
|
17085
|
-
|
|
17086
|
-
|
|
17087
|
-
|
|
17924
|
+
<div class="sol-confirm-overlay" data-testid="sol-confirm-dialog" (click)="onBackdropClick()">
|
|
17925
|
+
<div
|
|
17926
|
+
#panel
|
|
17927
|
+
class="sol-confirm-panel"
|
|
17928
|
+
role="alertdialog"
|
|
17929
|
+
aria-modal="true"
|
|
17930
|
+
[attr.aria-labelledby]="titleId"
|
|
17931
|
+
[attr.aria-describedby]="message() ? messageId : null"
|
|
17932
|
+
tabindex="-1"
|
|
17933
|
+
(click)="$event.stopPropagation()"
|
|
17934
|
+
>
|
|
17088
17935
|
<div class="sol-confirm-header">
|
|
17089
17936
|
<sol-icon class="sol-confirm-icon" [class]="iconClasses()" [name]="iconName()" />
|
|
17090
|
-
<h2 class="sol-confirm-title">{{
|
|
17937
|
+
<h2 [id]="titleId" class="sol-confirm-title">{{ titleText() }}</h2>
|
|
17091
17938
|
</div>
|
|
17092
17939
|
|
|
17093
17940
|
@if (message()) {
|
|
17094
|
-
<p class="sol-confirm-message">{{ message() }}</p>
|
|
17941
|
+
<p [id]="messageId" class="sol-confirm-message">{{ message() }}</p>
|
|
17095
17942
|
}
|
|
17096
17943
|
|
|
17097
17944
|
<div class="sol-confirm-actions">
|
|
17098
17945
|
<button type="button" data-testid="sol-confirm-accept" [class]="confirmBtnClasses()" (click)="onConfirm()">
|
|
17099
|
-
{{
|
|
17946
|
+
{{ confirmText() }}
|
|
17100
17947
|
</button>
|
|
17101
17948
|
<button
|
|
17949
|
+
#cancelButton
|
|
17102
17950
|
type="button"
|
|
17103
17951
|
data-testid="sol-confirm-cancel"
|
|
17104
17952
|
class="sol-confirm-btn sol-confirm-btn--cancel"
|
|
17105
17953
|
(click)="onCancel()"
|
|
17106
17954
|
>
|
|
17107
|
-
{{
|
|
17955
|
+
{{ cancelText() }}
|
|
17108
17956
|
</button>
|
|
17109
17957
|
</div>
|
|
17110
17958
|
</div>
|
|
17111
17959
|
</div>
|
|
17112
17960
|
}
|
|
17113
|
-
`, styles: [".sol-confirm-overlay{position:fixed;inset:0;z-index:var(--sol-z-modal, 1000);display:flex;align-items:center;justify-content:center;background:var(--sol-bg-overlay, rgba(0, 0, 0, .5));backdrop-filter:var(--sol-overlay-blur, blur(3px));-webkit-backdrop-filter:var(--sol-overlay-blur, blur(3px));animation:sol-confirm-fade-in .15s ease-out}.sol-confirm-panel{width:min(28rem,92vw);background:var(--sol-bg-surface, #ffffff);border-radius:var(--sol-border-radius-lg, 12px);box-shadow:var(--sol-shadow-lg, 0 20px 60px rgba(0, 0, 0, .3));padding:var(--sol-space-lg, 1.5rem);animation:sol-confirm-scale-in .2s ease-out}.sol-confirm-header{display:flex;align-items:center;gap:var(--sol-space-sm, .75rem);margin-bottom:var(--sol-space-sm, .5rem)}.sol-confirm-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:var(--sol-border-radius-full, 9999px);flex-shrink:0}.sol-confirm-icon--danger{background:color-mix(in srgb,var(--sol-color-danger, #ef4444) 12%,transparent);color:var(--sol-color-danger, #ef4444)}.sol-confirm-icon--warning{background:color-mix(in srgb,var(--sol-color-warning, #f59e0b) 12%,transparent);color:var(--sol-color-warning, #f59e0b)}.sol-confirm-icon--info{background:color-mix(in srgb,var(--sol-color-info, #3b82f6) 12%,transparent);color:var(--sol-color-info, #3b82f6)}.sol-confirm-title{margin:0;font-size:var(--sol-font-size-lg, 1.125rem);font-weight:600;color:var(--sol-color-text-primary, #111827)}.sol-confirm-message{margin:var(--sol-space-sm, .5rem) 0 0 0;padding-left:calc(40px + var(--sol-space-sm, .75rem));font-size:var(--sol-font-size-sm, .875rem);color:var(--sol-color-text-secondary, #6b7280);line-height:1.5}.sol-confirm-actions{display:flex;justify-content:flex-end;gap:var(--sol-space-sm, .5rem);margin-top:var(--sol-space-lg, 1.5rem)}.sol-confirm-btn{display:inline-flex;align-items:center;justify-content:center;padding:var(--sol-space-sm, .5rem) var(--sol-space-md, 1rem);border:none;border-radius:var(--sol-border-radius-md, 8px);font-size:var(--sol-font-size-sm, .875rem);font-weight:500;font-family:inherit;cursor:pointer;transition:background-color .15s ease,opacity .15s ease;line-height:1;min-height:36px}.sol-confirm-btn--cancel{background:transparent;color:var(--sol-color-primary, #6366f1)}.sol-confirm-btn--cancel:hover{background:color-mix(in srgb,var(--sol-color-primary, #6366f1) 10%,transparent)}.sol-confirm-btn--danger{background:var(--sol-color-danger, #ef4444);color:var(--sol-confirm-on-color, #ffffff)}.sol-confirm-btn--danger:hover{background:color-mix(in srgb,var(--sol-color-danger, #ef4444) 85%,var(--sol-confirm-hover-shade, #000000))}.sol-confirm-btn--warning{background:var(--sol-color-warning, #f59e0b);color:var(--sol-confirm-on-color, #ffffff)}.sol-confirm-btn--warning:hover{background:color-mix(in srgb,var(--sol-color-warning, #f59e0b) 85%,var(--sol-confirm-hover-shade, #000000))}.sol-confirm-btn--info{background:var(--sol-color-info, #3b82f6);color:var(--sol-confirm-on-color, #ffffff)}.sol-confirm-btn--info:hover{background:color-mix(in srgb,var(--sol-color-info, #3b82f6) 85%,var(--sol-confirm-hover-shade, #000000))}.sol-confirm-btn:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--sol-color-primary, #6366f1) 40%,transparent)}@keyframes sol-confirm-fade-in{0%{opacity:0}to{opacity:1}}@keyframes sol-confirm-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}\n"] }]
|
|
17114
|
-
}], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], confirmLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "confirmLabel", required: false }] }], cancelLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelLabel", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], confirm: [{ type: i0.Output, args: ["confirm"] }], cancel: [{ type: i0.Output, args: ["cancel"] }], onEscapeKey: [{
|
|
17961
|
+
`, styles: [".sol-confirm-overlay{position:fixed;inset:0;z-index:var(--sol-z-modal, 1000);display:flex;align-items:center;justify-content:center;background:var(--sol-bg-overlay, rgba(0, 0, 0, .5));backdrop-filter:var(--sol-overlay-blur, blur(3px));-webkit-backdrop-filter:var(--sol-overlay-blur, blur(3px));animation:sol-confirm-fade-in .15s ease-out}.sol-confirm-panel:focus{outline:none}.sol-confirm-panel{width:min(28rem,92vw);background:var(--sol-bg-surface, #ffffff);border-radius:var(--sol-border-radius-lg, 12px);box-shadow:var(--sol-shadow-lg, 0 20px 60px rgba(0, 0, 0, .3));padding:var(--sol-space-lg, 1.5rem);animation:sol-confirm-scale-in .2s ease-out}.sol-confirm-header{display:flex;align-items:center;gap:var(--sol-space-sm, .75rem);margin-bottom:var(--sol-space-sm, .5rem)}.sol-confirm-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:var(--sol-border-radius-full, 9999px);flex-shrink:0}.sol-confirm-icon--danger{background:color-mix(in srgb,var(--sol-color-danger, #ef4444) 12%,transparent);color:var(--sol-color-danger, #ef4444)}.sol-confirm-icon--warning{background:color-mix(in srgb,var(--sol-color-warning, #f59e0b) 12%,transparent);color:var(--sol-color-warning, #f59e0b)}.sol-confirm-icon--info{background:color-mix(in srgb,var(--sol-color-info, #3b82f6) 12%,transparent);color:var(--sol-color-info, #3b82f6)}.sol-confirm-title{margin:0;font-size:var(--sol-font-size-lg, 1.125rem);font-weight:600;color:var(--sol-color-text-primary, #111827)}.sol-confirm-message{margin:var(--sol-space-sm, .5rem) 0 0 0;padding-left:calc(40px + var(--sol-space-sm, .75rem));font-size:var(--sol-font-size-sm, .875rem);color:var(--sol-color-text-secondary, #6b7280);line-height:1.5}.sol-confirm-actions{display:flex;justify-content:flex-end;gap:var(--sol-space-sm, .5rem);margin-top:var(--sol-space-lg, 1.5rem)}.sol-confirm-btn{display:inline-flex;align-items:center;justify-content:center;padding:var(--sol-space-sm, .5rem) var(--sol-space-md, 1rem);border:none;border-radius:var(--sol-border-radius-md, 8px);font-size:var(--sol-font-size-sm, .875rem);font-weight:500;font-family:inherit;cursor:pointer;transition:background-color .15s ease,opacity .15s ease;line-height:1;min-height:36px}.sol-confirm-btn--cancel{background:transparent;color:var(--sol-color-primary, #6366f1)}.sol-confirm-btn--cancel:hover{background:color-mix(in srgb,var(--sol-color-primary, #6366f1) 10%,transparent)}.sol-confirm-btn--danger{background:var(--sol-color-danger, #ef4444);color:var(--sol-confirm-on-color, #ffffff)}.sol-confirm-btn--danger:hover{background:color-mix(in srgb,var(--sol-color-danger, #ef4444) 85%,var(--sol-confirm-hover-shade, #000000))}.sol-confirm-btn--warning{background:var(--sol-color-warning, #f59e0b);color:var(--sol-confirm-on-color, #ffffff)}.sol-confirm-btn--warning:hover{background:color-mix(in srgb,var(--sol-color-warning, #f59e0b) 85%,var(--sol-confirm-hover-shade, #000000))}.sol-confirm-btn--info{background:var(--sol-color-info, #3b82f6);color:var(--sol-confirm-on-color, #ffffff)}.sol-confirm-btn--info:hover{background:color-mix(in srgb,var(--sol-color-info, #3b82f6) 85%,var(--sol-confirm-hover-shade, #000000))}.sol-confirm-btn:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--sol-color-primary, #6366f1) 40%,transparent)}@keyframes sol-confirm-fade-in{0%{opacity:0}to{opacity:1}}@keyframes sol-confirm-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}\n"] }]
|
|
17962
|
+
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], confirmLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "confirmLabel", required: false }] }], cancelLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelLabel", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], confirm: [{ type: i0.Output, args: ["confirm"] }], cancel: [{ type: i0.Output, args: ["cancel"] }], panelEl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], cancelButton: [{ type: i0.ViewChild, args: ['cancelButton', { isSignal: true }] }], onEscapeKey: [{
|
|
17115
17963
|
type: HostListener,
|
|
17116
17964
|
args: ['document:keydown.escape']
|
|
17117
17965
|
}] } });
|
|
@@ -17265,5 +18113,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
17265
18113
|
* Generated bundle index. Do not edit.
|
|
17266
18114
|
*/
|
|
17267
18115
|
|
|
17268
|
-
export { DEFAULT_SCORE_THRESHOLDS, EMIT_TABLE, KANBAN_ADD_ACTION, KanbanReorderService, NEUTRAL_CALENDAR_COLOR, SOL_BUNDLED_DEFAULT_THEME, SOL_CALENDAR_COLOR, SOL_CHART_ENGINE, SOL_DEFAULT_THEME, SOL_I18N, SOL_TABLE_VARIANTS, SOL_TENANT_RESOLVER, SOL_TREE_MAX_DEPTH, SolAvatarComponent, SolBadgeComponent, SolButtonComponent, SolCalendarComponent, SolCalendarGridComponent, SolCalendarHeaderComponent, SolCardComponent, SolChartComponent, SolCheckboxComponent, SolChipComponent, SolChipGroupComponent, SolConfirmDialogComponent, SolDataTableComponent, SolDatePickerComponent, SolDayPickerComponent, SolDrawerComponent, SolEmptyStateComponent, SolFileUploadComponent, SolFlowCanvasComponent, SolFormFieldComponent, SolIconButtonComponent, SolIconComponent, SolInputComponent, SolKanbanBoardComponent, SolKanbanCardComponent, SolKanbanColumnComponent, SolKanbanDragSourceComponent, SolMessageStatusComponent, SolModalComponent, SolNotificationPanelComponent, SolNumberInputComponent, SolPageHeaderComponent, SolPaginationComponent, SolProgressBarComponent, SolRatingInputComponent, SolRevealDirective, SolRichEditorComponent, SolScopeSwitcherComponent, SolScoreBadgeComponent, SolSearchInputComponent, SolSelectComponent, SolSkeletonComponent, SolSpinnerComponent, SolStarRatingComponent, SolStepperComponent, SolTabsComponent, SolTextareaComponent, SolTimelineComponent, SolToggleComponent, SolTooltipComponent, SolTreeComponent, SolTreeNodeDefDirective, SolTrendComponent, SolViewToggleComponent, SolVirtualScrollComponent, SolWizardComponent, SolWizardStepDirective, TCPDF_ALLOWED_STYLE_PROPERTIES, TCPDF_ALLOWED_TAGS, THEME_SOURCE, ThemeService, buildDayColumns, buildGoogleFontsUrl, collectUndatedNodes, computeAutoLayoutPositions, computeEventHeight, computeEventTop, computeGlobalRange, computeInitials, computeMonthAxisTicks, computeNowTop, createIdentitySolI18n, dayKey, defaultStatusToken, defaultTrendFormat, getWeekStart, hashToPaletteIndex, isRenderableTheme, isSafeBackgroundImage, isSafeCssColor, normalizeRating, parseEventDate, positionRows, provideTheme, resolveCssVars, resolveScoreTone, resolveTrendDirection, sanitizeAssetUrl, sanitizeHtmlToTcpdf, serializeElementToTcpdfHtml };
|
|
18116
|
+
export { DEFAULT_SCORE_THRESHOLDS, EMIT_TABLE, KANBAN_ADD_ACTION, KanbanReorderService, NEUTRAL_CALENDAR_COLOR, SOL_BUNDLED_DEFAULT_THEME, SOL_CALENDAR_COLOR, SOL_CHART_ENGINE, SOL_DEFAULT_THEME, SOL_I18N, SOL_I18N_EN, SOL_I18N_ES_CO, SOL_TABLE_VARIANTS, SOL_TENANT_RESOLVER, SOL_TREE_MAX_DEPTH, SolAvatarComponent, SolBadgeComponent, SolButtonComponent, SolCalendarComponent, SolCalendarGridComponent, SolCalendarHeaderComponent, SolCardComponent, SolChartComponent, SolCheckboxComponent, SolChipComponent, SolChipGroupComponent, SolConfirmDialogComponent, SolDataTableComponent, SolDatePickerComponent, SolDayPickerComponent, SolDrawerComponent, SolEmptyStateComponent, SolFileUploadComponent, SolFlowCanvasComponent, SolFormFieldComponent, SolIconButtonComponent, SolIconComponent, SolInputComponent, SolKanbanBoardComponent, SolKanbanCardComponent, SolKanbanColumnComponent, SolKanbanDragSourceComponent, SolMessageStatusComponent, SolModalComponent, SolNotificationPanelComponent, SolNumberInputComponent, SolPageHeaderComponent, SolPaginationComponent, SolProgressBarComponent, SolRatingInputComponent, SolRevealDirective, SolRichEditorComponent, SolScopeSwitcherComponent, SolScoreBadgeComponent, SolSearchInputComponent, SolSelectComponent, SolSkeletonComponent, SolSpinnerComponent, SolStarRatingComponent, SolStepperComponent, SolTabsComponent, SolTextareaComponent, SolTimelineComponent, SolToggleComponent, SolTooltipComponent, SolTreeComponent, SolTreeNodeDefDirective, SolTrendComponent, SolViewToggleComponent, SolVirtualScrollComponent, SolWizardComponent, SolWizardStepDirective, TCPDF_ALLOWED_STYLE_PROPERTIES, TCPDF_ALLOWED_TAGS, THEME_SOURCE, ThemeService, buildDayColumns, buildGoogleFontsUrl, collectUndatedNodes, computeAutoLayoutPositions, computeEventHeight, computeEventTop, computeGlobalRange, computeInitials, computeMonthAxisTicks, computeNowTop, createIdentitySolI18n, createSolI18n, dayKey, defaultStatusToken, defaultTrendFormat, getWeekStart, hashToPaletteIndex, isRenderableTheme, isSafeBackgroundImage, isSafeCssColor, normalizeRating, parseEventDate, positionRows, provideTheme, resolveCssVars, resolveScoreTone, resolveTrendDirection, sanitizeAssetUrl, sanitizeHtmlToTcpdf, serializeElementToTcpdfHtml };
|
|
17269
18117
|
//# sourceMappingURL=solercia-ui.mjs.map
|