@arsedizioni/ars-utils 19.5.10 → 19.5.11

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.
@@ -1256,8 +1256,11 @@ class ApplicationDialogService {
1256
1256
  * @param okCaption : ok button caption
1257
1257
  * @param options : checkable option list
1258
1258
  * @param width: the preferred width
1259
+ * @param maxSize: the maximum file size accepted
1260
+ * @param maxPictureWidth: the maximum picture width accepted
1261
+ * @param maxPictureHeight: the maximum picture height accepted
1259
1262
  */
1260
- selectPicture(title = 'Seleziona immagine', descritpion, okCaption = 'Ok', options, width = 600) {
1263
+ selectPicture(title = 'Seleziona immagine', descritpion, okCaption = 'Ok', options, width = 600, maxSize, maxPictureWidth, maxPictureHeight) {
1261
1264
  return this.dialogService.open(SelectPictureDialogComponent, {
1262
1265
  ariaLabel: 'seleziona immagine',
1263
1266
  autoFocus: true,
@@ -1267,7 +1270,10 @@ class ApplicationDialogService {
1267
1270
  description: descritpion,
1268
1271
  okCaption: okCaption,
1269
1272
  options: options,
1270
- appearance: 'fill'
1273
+ appearance: 'fill',
1274
+ maxSize: maxSize,
1275
+ maxWidth: maxPictureWidth,
1276
+ maxHeight: maxPictureHeight
1271
1277
  },
1272
1278
  closeOnNavigation: false,
1273
1279
  disableClose: true,
@@ -1285,8 +1291,9 @@ class ApplicationDialogService {
1285
1291
  * @param helpCaption : help link caption
1286
1292
  * @param options : checkable option list
1287
1293
  * @param width: the preferred width
1294
+ * @param maxSize: the maximum file size accepted
1288
1295
  */
1289
- selectFile(title = 'Seleziona file', descritpion, okCaption = 'Ok', helpLink, helpCaption, options, width = 600) {
1296
+ selectFile(title = 'Seleziona file', descritpion, okCaption = 'Ok', helpLink, helpCaption, options, width = 600, maxSize) {
1290
1297
  return this.dialogService.open(SelectFileDialogComponent, {
1291
1298
  ariaLabel: 'seleziona file',
1292
1299
  autoFocus: true,
@@ -1298,7 +1305,8 @@ class ApplicationDialogService {
1298
1305
  helpLink: helpLink,
1299
1306
  helpCaption: helpCaption,
1300
1307
  options: options,
1301
- appearance: 'fill'
1308
+ appearance: 'fill',
1309
+ maxSize: maxSize
1302
1310
  },
1303
1311
  closeOnNavigation: false,
1304
1312
  disableClose: true,