From e30ecebceace4c8c052933be78cdf0adbaf86475 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Thu, 9 May 2024 17:46:36 +0300 Subject: [PATCH] FileUpload basic doc updates --- doc/common/apidoc/index.json | 163 +++++++++++++++++++++- doc/configuration/locale/LocaleApiDoc.vue | 8 ++ doc/fileupload/BasicDoc.vue | 29 +++- 3 files changed, 192 insertions(+), 8 deletions(-) diff --git a/doc/common/apidoc/index.json b/doc/common/apidoc/index.json index 9742de91a..61ca5f60e 100644 --- a/doc/common/apidoc/index.json +++ b/doc/common/apidoc/index.json @@ -18612,6 +18612,20 @@ "type": "string", "default": "" }, + { + "name": "fileChosenMessage", + "optional": true, + "readonly": false, + "type": "string", + "default": "" + }, + { + "name": "emptyFileChosenMessage", + "optional": true, + "readonly": false, + "type": "string", + "default": "" + }, { "name": "aria", "optional": true, @@ -29109,6 +29123,12 @@ ], "returnType": "VNode[]", "description": "Custom container slot." + }, + { + "name": "footer", + "parameters": [], + "returnType": "VNode[]", + "description": "Custom footer template." } ], "extendedBy": "SidebarSlots" @@ -31896,7 +31916,14 @@ "description": "FileUpload is an advanced uploader with dragdrop support, multi file uploads, auto uploading, progress tracking and validations.", "methods": { "description": "Defines methods that can be accessed by the component's reference.", - "values": [] + "values": [ + { + "name": "basicUpload", + "parameters": [], + "returnType": "void", + "description": "Upload file." + } + ] } } }, @@ -32704,6 +32731,19 @@ ], "returnType": "VNode[]", "description": "Custom remove icon template for each file." + }, + { + "name": "filelabel", + "parameters": [ + { + "name": "scope", + "optional": false, + "type": "{\n \t files: File, // File to upload.\n }", + "description": "filelabel slot's params." + } + ], + "returnType": "VNode[]", + "description": "Custom file label template." } ] }, @@ -40890,6 +40930,22 @@ "default": "", "description": "Used to pass attributes to the option's DOM element." }, + { + "name": "optionCheckIcon", + "optional": true, + "readonly": false, + "type": "ListboxPassThroughOptionType", + "default": "", + "description": "Used to pass attributes to the option check icon's DOM element." + }, + { + "name": "optionBlankIcon", + "optional": true, + "readonly": false, + "type": "ListboxPassThroughOptionType", + "default": "", + "description": "Used to pass attributes to the option blank icon's DOM element." + }, { "name": "emptyMessage", "optional": true, @@ -41212,6 +41268,22 @@ "default": "true", "description": "When enabled, the focus is placed on the hovered option." }, + { + "name": "highlightOnSelect", + "optional": true, + "readonly": false, + "type": "boolean", + "default": "true", + "description": "Whether the selected option will be add highlight class." + }, + { + "name": "checkmark", + "optional": true, + "readonly": false, + "type": "boolean", + "default": "false", + "description": "Whether the selected option will be shown with a check mark." + }, { "name": "filterMessage", "optional": true, @@ -41639,6 +41711,18 @@ "readonly": false, "value": "\"p-listbox-option\"" }, + { + "name": "optionCheckIcon", + "optional": false, + "readonly": false, + "value": "\"p-listbox-option-check-icon\"" + }, + { + "name": "optionBlankIcon", + "optional": false, + "readonly": false, + "value": "\"p-listbox-option-blank-icon\"" + }, { "name": "emptyMessage", "optional": false, @@ -58166,6 +58250,12 @@ ], "returnType": "VNode[]", "description": "Custom container slot." + }, + { + "name": "footer", + "parameters": [], + "returnType": "VNode[]", + "description": "Custom footer template." } ], "extendedTypes": "DrawerSlots" @@ -65647,6 +65737,73 @@ } } }, + "themes/actions": { + "functions": { + "description": "Defines the custom functions used by the module.", + "values": { + "definePreset": { + "name": "definePreset", + "parameters": [ + { + "name": "arg", + "type": "any[]" + } + ], + "returnType": "any" + }, + "updatePreset": { + "name": "updatePreset", + "parameters": [ + { + "name": "arg", + "type": "any[]" + } + ], + "returnType": "any" + }, + "updatePrimaryPalette": { + "name": "updatePrimaryPalette", + "parameters": [ + { + "name": "palette", + "type": "any" + } + ], + "returnType": "any" + }, + "updateSurfacePalette": { + "name": "updateSurfacePalette", + "parameters": [ + { + "name": "palette", + "type": "any" + } + ], + "returnType": "string" + }, + "usePreset": { + "name": "usePreset", + "parameters": [ + { + "name": "arg", + "type": "any[]" + } + ], + "returnType": "any" + }, + "useTheme": { + "name": "useTheme", + "parameters": [ + { + "name": "theme", + "type": "any" + } + ], + "returnType": "any" + } + } + } + }, "themes/aura/accordion": {}, "themes/aura/autocomplete": {}, "themes/aura/avatar": {}, @@ -65733,6 +65890,8 @@ "themes/aura/tree": {}, "themes/aura/treeselect": {}, "themes/aura/treetable": {}, + "themes/config": {}, + "themes/helpers": {}, "themes": {}, "themes/lara/accordion": {}, "themes/lara/autocomplete": {}, @@ -65820,6 +65979,8 @@ "themes/lara/tree": {}, "themes/lara/treeselect": {}, "themes/lara/treetable": {}, + "themes/service": {}, + "themes/utils": {}, "tieredmenu": { "description": "TieredMenu displays submenus in nested overlays.\n\n[Live Demo](https://www.primevue.org/menu/)", "components": { diff --git a/doc/configuration/locale/LocaleApiDoc.vue b/doc/configuration/locale/LocaleApiDoc.vue index 7469c5296..dba651223 100644 --- a/doc/configuration/locale/LocaleApiDoc.vue +++ b/doc/configuration/locale/LocaleApiDoc.vue @@ -272,6 +272,14 @@ emptySearchMessage No results found + + fileChosenMessage + {0} files + + + emptyFileChosenMessage + No file chosen + emptyMessage No available options diff --git a/doc/fileupload/BasicDoc.vue b/doc/fileupload/BasicDoc.vue index cc323b20f..c0290963c 100644 --- a/doc/fileupload/BasicDoc.vue +++ b/doc/fileupload/BasicDoc.vue @@ -2,8 +2,9 @@

FileUpload basic mode provides a simpler UI as an alternative to default advanced mode.

-
- +
+ +
@@ -14,19 +15,24 @@ export default { return { code: { basic: ` - + +