inviton-powerduck 0.0.93 → 0.0.94

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.
@@ -18,6 +18,7 @@ interface DropzoneFormItem {
18
18
 
19
19
  interface DropzoneGalleryArgs {
20
20
  items: DropzoneGalleryItem[];
21
+ showUploadButton?: boolean;
21
22
  changed?: (items: DropzoneGalleryItem[]) => void;
22
23
  removedFile?: (file: File) => void;
23
24
  uploadUrl: string;
@@ -15,6 +15,7 @@ import NotificationProvider from "../ui/notification";
15
15
 
16
16
  interface PhotoManagerArgs {
17
17
  photos: Photo[];
18
+ showUploadButton?: boolean;
18
19
  uploadUrl?: string;
19
20
  photosUrl?: string;
20
21
  mandatory?: boolean;
@@ -105,6 +106,7 @@ class PhotoManagerComponent extends TsxComponentExtended<PhotoManagerArgs> imple
105
106
  <FormItemWrapper label={""} wrap={false} validationState={this.validationStateOf(this.v$.photos, PowerduckState.getResourceValue('photosErrorMessage'))}>
106
107
  <DropzoneGallery
107
108
  items={this.photos as any}
109
+ showUploadButton={this.showUploadButton}
108
110
  uploadUrl={AppHttpProvider.enforceDomain + (this.uploadUrl ?? "files")}
109
111
  parseNewItemFromResponse={(resp) => this.parseServerResponse(resp)}
110
112
  defaultMessage={PowerduckState.getResourceValue('photosInitialMessage')}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inviton-powerduck",
3
- "version": "0.0.93",
3
+ "version": "0.0.94",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": " vite build && vue-tsc --declaration --emitDeclarationOnly",