@4sh/ui-kit 0.17.0 → 0.18.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/README.fr.md +2 -2
- package/README.md +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +429 -259
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/mcp/data/component-api.json +146 -77
- package/mcp/data/text-search-docs.json +90 -20
- package/mcp/data/ui-config.json +174 -143
- package/mcp/package.json +1 -1
- package/package.json +1 -1
- package/styles/component-vars.scss +25 -19
- package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +195 -121
|
@@ -2998,10 +2998,10 @@
|
|
|
2998
2998
|
"import": "@4sh/ui-kit/forms/ui-file-upload",
|
|
2999
2999
|
"components": [
|
|
3000
3000
|
{
|
|
3001
|
-
"name": "
|
|
3001
|
+
"name": "UiFileUploadItem",
|
|
3002
3002
|
"kind": "component",
|
|
3003
|
-
"selector": "ui-file-upload-
|
|
3004
|
-
"description": "ui-file-upload-
|
|
3003
|
+
"selector": "ui-file-upload-item",
|
|
3004
|
+
"description": "ui-file-upload-item — a single file row, usable alone or stacked by `ui-file-upload-list`.",
|
|
3005
3005
|
"inputs": [
|
|
3006
3006
|
{
|
|
3007
3007
|
"name": "file",
|
|
@@ -3011,7 +3011,7 @@
|
|
|
3011
3011
|
},
|
|
3012
3012
|
{
|
|
3013
3013
|
"name": "size",
|
|
3014
|
-
"type": "
|
|
3014
|
+
"type": "UiFileUploadItemSize",
|
|
3015
3015
|
"required": false,
|
|
3016
3016
|
"values": [
|
|
3017
3017
|
"default",
|
|
@@ -3039,7 +3039,7 @@
|
|
|
3039
3039
|
"type": "boolean",
|
|
3040
3040
|
"required": false,
|
|
3041
3041
|
"default": "false",
|
|
3042
|
-
"description": "Makes the file name a button emitting `open
|
|
3042
|
+
"description": "Makes the file name a button emitting `open` — only once the file is sent or stored (`completed`)."
|
|
3043
3043
|
},
|
|
3044
3044
|
{
|
|
3045
3045
|
"name": "openLabel",
|
|
@@ -3086,7 +3086,120 @@
|
|
|
3086
3086
|
{
|
|
3087
3087
|
"name": "open",
|
|
3088
3088
|
"type": "UiUploadFile",
|
|
3089
|
-
"description": "Emitted when the file name is activated (`openable
|
|
3089
|
+
"description": "Emitted when the file name is activated (`openable`, completed file only)."
|
|
3090
|
+
}
|
|
3091
|
+
]
|
|
3092
|
+
},
|
|
3093
|
+
{
|
|
3094
|
+
"name": "UiFileUploadList",
|
|
3095
|
+
"kind": "component",
|
|
3096
|
+
"selector": "ui-file-upload-list",
|
|
3097
|
+
"description": "ui-file-upload-list — the list of an app's files: stored ones, uploads in progress, failures.",
|
|
3098
|
+
"inputs": [
|
|
3099
|
+
{
|
|
3100
|
+
"name": "files",
|
|
3101
|
+
"type": "readonly UiUploadFile[]",
|
|
3102
|
+
"required": false,
|
|
3103
|
+
"default": "[]",
|
|
3104
|
+
"description": "The files to list, in order (stored, uploading, failed…)."
|
|
3105
|
+
},
|
|
3106
|
+
{
|
|
3107
|
+
"name": "size",
|
|
3108
|
+
"type": "UiFileUploadListSize",
|
|
3109
|
+
"required": false,
|
|
3110
|
+
"values": [
|
|
3111
|
+
"default",
|
|
3112
|
+
"small"
|
|
3113
|
+
],
|
|
3114
|
+
"default": "'default'",
|
|
3115
|
+
"description": "Size of the rows."
|
|
3116
|
+
},
|
|
3117
|
+
{
|
|
3118
|
+
"name": "removable",
|
|
3119
|
+
"type": "boolean",
|
|
3120
|
+
"required": false,
|
|
3121
|
+
"default": "true",
|
|
3122
|
+
"description": "Whether each row shows its remove button."
|
|
3123
|
+
},
|
|
3124
|
+
{
|
|
3125
|
+
"name": "openable",
|
|
3126
|
+
"type": "boolean",
|
|
3127
|
+
"required": false,
|
|
3128
|
+
"default": "false",
|
|
3129
|
+
"description": "Makes the name of each sent or stored file (`completed`) a button emitting `open`."
|
|
3130
|
+
},
|
|
3131
|
+
{
|
|
3132
|
+
"name": "showTotal",
|
|
3133
|
+
"type": "boolean",
|
|
3134
|
+
"required": false,
|
|
3135
|
+
"default": "false",
|
|
3136
|
+
"description": "Show the file count and total size under the list, failed files left out."
|
|
3137
|
+
},
|
|
3138
|
+
{
|
|
3139
|
+
"name": "fileActionsTemplate",
|
|
3140
|
+
"type": "TemplateRef<unknown>",
|
|
3141
|
+
"required": false,
|
|
3142
|
+
"description": "Extra actions on each row, next to its remove button (context: `{ $implicit: UiUploadFile, remove, open }`)."
|
|
3143
|
+
},
|
|
3144
|
+
{
|
|
3145
|
+
"name": "ariaLabel",
|
|
3146
|
+
"type": "string",
|
|
3147
|
+
"required": false,
|
|
3148
|
+
"description": "Accessible name of the list."
|
|
3149
|
+
},
|
|
3150
|
+
{
|
|
3151
|
+
"name": "totalLabel",
|
|
3152
|
+
"type": "string",
|
|
3153
|
+
"required": false,
|
|
3154
|
+
"default": "'{0} fichiers · {1}'",
|
|
3155
|
+
"description": "Total under the list (`showTotal`) — `{0}` is the file count, `{1}` the total size."
|
|
3156
|
+
},
|
|
3157
|
+
{
|
|
3158
|
+
"name": "openLabel",
|
|
3159
|
+
"type": "string",
|
|
3160
|
+
"required": false,
|
|
3161
|
+
"default": "'Ouvrir {0}'",
|
|
3162
|
+
"description": "Accessible name of a file name button (`openable`) — `{0}` is the file name."
|
|
3163
|
+
},
|
|
3164
|
+
{
|
|
3165
|
+
"name": "removeAriaLabel",
|
|
3166
|
+
"type": "string",
|
|
3167
|
+
"required": false,
|
|
3168
|
+
"default": "'Supprimer le fichier'",
|
|
3169
|
+
"description": "Accessible name of a remove button (raw text — the file name is appended)."
|
|
3170
|
+
},
|
|
3171
|
+
{
|
|
3172
|
+
"name": "failedLabel",
|
|
3173
|
+
"type": "string",
|
|
3174
|
+
"required": false,
|
|
3175
|
+
"default": "'Échec'",
|
|
3176
|
+
"description": "Fallback error text when a failed file carries no message."
|
|
3177
|
+
},
|
|
3178
|
+
{
|
|
3179
|
+
"name": "uploadingLabel",
|
|
3180
|
+
"type": "string",
|
|
3181
|
+
"required": false,
|
|
3182
|
+
"default": "'Téléversement de {0}'",
|
|
3183
|
+
"description": "Accessible name of a row's upload spinner — `{0}` is the file name."
|
|
3184
|
+
},
|
|
3185
|
+
{
|
|
3186
|
+
"name": "progressLabel",
|
|
3187
|
+
"type": "string",
|
|
3188
|
+
"required": false,
|
|
3189
|
+
"default": "'Progression du téléversement de {0}'",
|
|
3190
|
+
"description": "Accessible name of a row's progress bar — `{0}` is the file name."
|
|
3191
|
+
}
|
|
3192
|
+
],
|
|
3193
|
+
"outputs": [
|
|
3194
|
+
{
|
|
3195
|
+
"name": "open",
|
|
3196
|
+
"type": "UiUploadFile",
|
|
3197
|
+
"description": "A file name was activated (`openable`, completed file only)."
|
|
3198
|
+
},
|
|
3199
|
+
{
|
|
3200
|
+
"name": "remove",
|
|
3201
|
+
"type": "UiUploadFile",
|
|
3202
|
+
"description": "A row's remove button was activated: the app removes the file."
|
|
3090
3203
|
}
|
|
3091
3204
|
]
|
|
3092
3205
|
},
|
|
@@ -3116,13 +3229,13 @@
|
|
|
3116
3229
|
"small"
|
|
3117
3230
|
],
|
|
3118
3231
|
"default": "'default'",
|
|
3119
|
-
"description": "Size of the control
|
|
3232
|
+
"description": "Size of the control and its buttons."
|
|
3120
3233
|
},
|
|
3121
3234
|
{
|
|
3122
3235
|
"name": "name",
|
|
3123
3236
|
"type": "string",
|
|
3124
3237
|
"required": false,
|
|
3125
|
-
"description": "Native `name`: a surrounding `<form>` submits the
|
|
3238
|
+
"description": "Native `name`: a surrounding `<form>` submits the queued files under it."
|
|
3126
3239
|
},
|
|
3127
3240
|
{
|
|
3128
3241
|
"name": "multiple",
|
|
@@ -3156,14 +3269,28 @@
|
|
|
3156
3269
|
"type": "number",
|
|
3157
3270
|
"required": false,
|
|
3158
3271
|
"default": "undefined",
|
|
3159
|
-
"description": "Max size of the
|
|
3272
|
+
"description": "Max size of all the files, in bytes: `currentTotalSize` plus the queue, failed files left out."
|
|
3160
3273
|
},
|
|
3161
3274
|
{
|
|
3162
3275
|
"name": "fileLimit",
|
|
3163
3276
|
"type": "number",
|
|
3164
3277
|
"required": false,
|
|
3165
3278
|
"default": "undefined",
|
|
3166
|
-
"description": "Max number of files
|
|
3279
|
+
"description": "Max number of files: `currentCount` plus the queue, failed files left out."
|
|
3280
|
+
},
|
|
3281
|
+
{
|
|
3282
|
+
"name": "currentCount",
|
|
3283
|
+
"type": "number",
|
|
3284
|
+
"required": false,
|
|
3285
|
+
"default": "0",
|
|
3286
|
+
"description": "Number of files the app already holds (e.g. stored server-side), counted by `fileLimit`."
|
|
3287
|
+
},
|
|
3288
|
+
{
|
|
3289
|
+
"name": "currentTotalSize",
|
|
3290
|
+
"type": "number",
|
|
3291
|
+
"required": false,
|
|
3292
|
+
"default": "0",
|
|
3293
|
+
"description": "Size of the files the app already holds, in bytes, counted by `maxTotalSize`."
|
|
3167
3294
|
},
|
|
3168
3295
|
{
|
|
3169
3296
|
"name": "disabled",
|
|
@@ -3172,13 +3299,6 @@
|
|
|
3172
3299
|
"default": "false",
|
|
3173
3300
|
"description": "Disables selection, drop and upload."
|
|
3174
3301
|
},
|
|
3175
|
-
{
|
|
3176
|
-
"name": "initialFiles",
|
|
3177
|
-
"type": "UiStoredFile[]",
|
|
3178
|
-
"required": false,
|
|
3179
|
-
"default": "[]",
|
|
3180
|
-
"description": "Files already stored server-side, listed with the new ones (status `completed`, no `File`). Setting it resets the selection to these files, without emitting `filesChange`; files picked in the browser and not uploaded yet (pending, uploading, failed) are kept."
|
|
3181
|
-
},
|
|
3182
3302
|
{
|
|
3183
3303
|
"name": "auto",
|
|
3184
3304
|
"type": "boolean",
|
|
@@ -3224,13 +3344,6 @@
|
|
|
3224
3344
|
"default": "false",
|
|
3225
3345
|
"description": "Send credentials (cookies) with the built-in upload request."
|
|
3226
3346
|
},
|
|
3227
|
-
{
|
|
3228
|
-
"name": "showFileList",
|
|
3229
|
-
"type": "boolean",
|
|
3230
|
-
"required": false,
|
|
3231
|
-
"default": "true",
|
|
3232
|
-
"description": "Show the file list under the control."
|
|
3233
|
-
},
|
|
3234
3347
|
{
|
|
3235
3348
|
"name": "showControls",
|
|
3236
3349
|
"type": "boolean",
|
|
@@ -3238,20 +3351,6 @@
|
|
|
3238
3351
|
"default": "true",
|
|
3239
3352
|
"description": "Show the Upload/Cancel toolbar buttons (drag mode)."
|
|
3240
3353
|
},
|
|
3241
|
-
{
|
|
3242
|
-
"name": "showTotal",
|
|
3243
|
-
"type": "boolean",
|
|
3244
|
-
"required": false,
|
|
3245
|
-
"default": "false",
|
|
3246
|
-
"description": "Show the file count and total size under the list."
|
|
3247
|
-
},
|
|
3248
|
-
{
|
|
3249
|
-
"name": "openable",
|
|
3250
|
-
"type": "boolean",
|
|
3251
|
-
"required": false,
|
|
3252
|
-
"default": "false",
|
|
3253
|
-
"description": "Makes each file name a button emitting `fileOpen` (e.g. to preview the file)."
|
|
3254
|
-
},
|
|
3255
3354
|
{
|
|
3256
3355
|
"name": "browseLabel",
|
|
3257
3356
|
"type": "string",
|
|
@@ -3278,7 +3377,7 @@
|
|
|
3278
3377
|
"type": "string",
|
|
3279
3378
|
"required": false,
|
|
3280
3379
|
"default": "'Effacer'",
|
|
3281
|
-
"description": "Label of the toolbar button that clears the
|
|
3380
|
+
"description": "Label of the toolbar button that clears the queue (drag mode)."
|
|
3282
3381
|
},
|
|
3283
3382
|
{
|
|
3284
3383
|
"name": "dragLinkLabel",
|
|
@@ -3328,13 +3427,6 @@
|
|
|
3328
3427
|
"default": "'Fichier trop volumineux : {0}'",
|
|
3329
3428
|
"description": "Rejection message: file too large — `{0}` is the file name."
|
|
3330
3429
|
},
|
|
3331
|
-
{
|
|
3332
|
-
"name": "totalLabel",
|
|
3333
|
-
"type": "string",
|
|
3334
|
-
"required": false,
|
|
3335
|
-
"default": "'{0} fichiers · {1}'",
|
|
3336
|
-
"description": "Total under the list (`showTotal`) — `{0}` is the file count, `{1}` the total size."
|
|
3337
|
-
},
|
|
3338
3430
|
{
|
|
3339
3431
|
"name": "totalSizeExceededMessage",
|
|
3340
3432
|
"type": "string",
|
|
@@ -3370,41 +3462,23 @@
|
|
|
3370
3462
|
"default": "'Erreur {0}'",
|
|
3371
3463
|
"description": "Error shown on a non-2xx response — `{0}` is the HTTP status."
|
|
3372
3464
|
},
|
|
3373
|
-
{
|
|
3374
|
-
"name": "fileTemplate",
|
|
3375
|
-
"type": "TemplateRef<unknown>",
|
|
3376
|
-
"required": false,
|
|
3377
|
-
"description": "Overrides a single file row (context: `{ $implicit: UiUploadFile, remove, open }`)."
|
|
3378
|
-
},
|
|
3379
|
-
{
|
|
3380
|
-
"name": "fileActionsTemplate",
|
|
3381
|
-
"type": "TemplateRef<unknown>",
|
|
3382
|
-
"required": false,
|
|
3383
|
-
"description": "Extra actions on a default file row, next to its remove button (context: `{ $implicit: UiUploadFile, remove, open }`)."
|
|
3384
|
-
},
|
|
3385
|
-
{
|
|
3386
|
-
"name": "contentTemplate",
|
|
3387
|
-
"type": "TemplateRef<unknown>",
|
|
3388
|
-
"required": false,
|
|
3389
|
-
"description": "Overrides the content section (context: `{ $implicit: UiUploadFile[], remove, clear }`)."
|
|
3390
|
-
},
|
|
3391
3465
|
{
|
|
3392
3466
|
"name": "toolbarTemplate",
|
|
3393
3467
|
"type": "TemplateRef<unknown>",
|
|
3394
3468
|
"required": false,
|
|
3395
|
-
"description": "Custom toolbar content (context: `{ $implicit:
|
|
3469
|
+
"description": "Custom toolbar content (context: `{ $implicit: UiLocalUploadFile[], choose, upload, clear }`)."
|
|
3396
3470
|
}
|
|
3397
3471
|
],
|
|
3398
3472
|
"outputs": [
|
|
3399
3473
|
{
|
|
3400
3474
|
"name": "selected",
|
|
3401
3475
|
"type": "UiLocalUploadFile[]",
|
|
3402
|
-
"description": "Files added to the
|
|
3476
|
+
"description": "Files added to the queue (validated)."
|
|
3403
3477
|
},
|
|
3404
3478
|
{
|
|
3405
3479
|
"name": "filesChange",
|
|
3406
|
-
"type": "
|
|
3407
|
-
"description": "The
|
|
3480
|
+
"type": "UiLocalUploadFile[]",
|
|
3481
|
+
"description": "The queue changed (files added, removed, cleared or handed over)."
|
|
3408
3482
|
},
|
|
3409
3483
|
{
|
|
3410
3484
|
"name": "uploadHandler",
|
|
@@ -3414,7 +3488,7 @@
|
|
|
3414
3488
|
{
|
|
3415
3489
|
"name": "uploaded",
|
|
3416
3490
|
"type": "UiUploadEvent",
|
|
3417
|
-
"description": "
|
|
3491
|
+
"description": "A file was uploaded (built-in or custom upload) and leaves the queue: the app takes it over."
|
|
3418
3492
|
},
|
|
3419
3493
|
{
|
|
3420
3494
|
"name": "uploadError",
|
|
@@ -3423,18 +3497,13 @@
|
|
|
3423
3497
|
},
|
|
3424
3498
|
{
|
|
3425
3499
|
"name": "removed",
|
|
3426
|
-
"type": "
|
|
3427
|
-
"description": "A file was removed."
|
|
3500
|
+
"type": "UiLocalUploadFile",
|
|
3501
|
+
"description": "A queued file was removed (`remove()`, or replaced in single-file mode)."
|
|
3428
3502
|
},
|
|
3429
3503
|
{
|
|
3430
3504
|
"name": "cleared",
|
|
3431
3505
|
"type": "void",
|
|
3432
|
-
"description": "The
|
|
3433
|
-
},
|
|
3434
|
-
{
|
|
3435
|
-
"name": "fileOpen",
|
|
3436
|
-
"type": "UiUploadFile",
|
|
3437
|
-
"description": "A file name was activated (`openable`)."
|
|
3506
|
+
"description": "The queue was cleared."
|
|
3438
3507
|
}
|
|
3439
3508
|
]
|
|
3440
3509
|
}
|