-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #SB-24073 fix: User does not have option to Provide name,langua…
…ge,creator name and tag while uploading image
- Loading branch information
1 parent
1babbfe
commit c8cea39
Showing
3 changed files
with
124 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 76 additions & 4 deletions
80
...tion-editor-library/src/lib/components/asset-browser/asset-browser.component.spec.data.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,78 @@ | ||
export const mockData = { | ||
assetBrowserEvent : { | ||
type: 'image', | ||
url: 'apple.png' | ||
} | ||
assetBrowserEvent: { | ||
type: 'image', | ||
url: 'apple.png' | ||
}, | ||
event: { | ||
target: { | ||
files: [{ | ||
lastModified: 1602826982711, | ||
lastModifiedDate: 'Fri Oct 16 2020 11:13:02 GMT+0530 (India Standard Time)', | ||
name: "logo.png", | ||
size: 63344, | ||
type: "image/png", | ||
webkitRelativePath: "" | ||
}] | ||
} | ||
}, | ||
formData: { | ||
channel: "01307938306521497658", | ||
createdBy: "5a587cc1-e018-4859-a0a8-e842650b9d64", | ||
creator: "Vaibahv Bhuva", | ||
mediaType: "image", | ||
mimeType: "image/png", | ||
keywords: undefined, | ||
name: "logo" | ||
}, | ||
uploadIconFormConfig: | ||
[{ | ||
'code': 'name', | ||
'dataType': 'text', | ||
'editable': true, | ||
'inputType': 'text', | ||
'label': 'Asset Caption', | ||
'name': 'Asset Caption', | ||
'placeholder': 'Enter asset caption', | ||
'renderingHints': { | ||
'class': 'sb-g-col-lg-2 required' | ||
}, | ||
'required': true, | ||
'visible': true, | ||
'validations': [ | ||
{ | ||
'type': 'required', | ||
'message': 'Please enter asset caption' | ||
} | ||
] | ||
}, | ||
{ | ||
'code': 'keywords', | ||
'visible': true, | ||
'editable': true, | ||
'dataType': 'list', | ||
'name': 'Tags', | ||
'placeholder': 'Add tag', | ||
'renderingHints': { | ||
'class': 'sb-g-col-lg-2' | ||
}, | ||
'description': '', | ||
'inputType': 'keywords', | ||
'label': 'Tags', | ||
'required': true, | ||
'validations': [] | ||
}, | ||
{ | ||
'code': 'creator', | ||
'dataType': 'text', | ||
'editable': true, | ||
'inputType': 'text', | ||
'label': 'Creator', | ||
'name': 'Creator', | ||
'placeholder': 'Enter name', | ||
'renderingHints': { | ||
'class': 'sb-g-col-lg-2' | ||
}, | ||
'required': true, | ||
'visible': true | ||
}] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters