diff --git a/demo-shell-ng2/bower.json b/demo-shell-ng2/bower.json index 44f9159f36..bb71d6c17f 100644 --- a/demo-shell-ng2/bower.json +++ b/demo-shell-ng2/bower.json @@ -28,6 +28,9 @@ "paper-badge": "~1.1.1", "iron-ajax": "~1.2.0", "paper-icon-button": "~1.0.7", - "paper-toolbar": "~1.1.4" + "paper-toolbar": "~1.1.4", + "iron-signals": "~1.0.3", + "paper-item": "~1.1.4", + "paper-dropdown-menu": "~1.1.3" } } diff --git a/demo-shell-ng2/webcomponents/alfresco-file-list/README.md b/demo-shell-ng2/webcomponents/alfresco-file-list/README.md index 01dd00e413..cdef03c87e 100644 --- a/demo-shell-ng2/webcomponents/alfresco-file-list/README.md +++ b/demo-shell-ng2/webcomponents/alfresco-file-list/README.md @@ -1,6 +1,6 @@ # <alfresco-file-list> -> Alfresco files and Folders viewver list +> Alfresco files and Folders viewver list ## Demo diff --git a/demo-shell-ng2/webcomponents/alfresco-file-list/bower.json b/demo-shell-ng2/webcomponents/alfresco-file-list/bower.json index f1967b809d..10dc9e7fb5 100644 --- a/demo-shell-ng2/webcomponents/alfresco-file-list/bower.json +++ b/demo-shell-ng2/webcomponents/alfresco-file-list/bower.json @@ -24,9 +24,6 @@ "iron-icons": "PolymerElements/iron-icons#^1.1.3", "app-layout": "PolymerLabs/app-layout#^0.0.14", "paper-menu": "PolymerElements/paper-menu#^1.2.2", - "paper-item": "PolymerElements/paper-item#^1.1.4", - "paper-dropdown-menu": "PolymerElements/paper-dropdown-menu#^1.1.3", - "paper-listbox": "PolymerElements/paper-listbox#^1.1.2", - "paper-tabs": "PolymerElements/paper-tabs#^1.5.0" + "paper-item": "PolymerElements/paper-item#^1.1.4" } } diff --git a/demo-shell-ng2/webcomponents/alfresco-file-list/index-demo.html b/demo-shell-ng2/webcomponents/alfresco-file-list/index-demo.html new file mode 100644 index 0000000000..0df04e8322 --- /dev/null +++ b/demo-shell-ng2/webcomponents/alfresco-file-list/index-demo.html @@ -0,0 +1,19 @@ + + + + + <alfresco-file-list> + + + + + + + + +
+ + +
+ + diff --git a/demo-shell-ng2/webcomponents/alfresco-file-list/src/alfresco-file-list.html b/demo-shell-ng2/webcomponents/alfresco-file-list/src/alfresco-file-list.html index c4d53ccef7..8523187374 100644 --- a/demo-shell-ng2/webcomponents/alfresco-file-list/src/alfresco-file-list.html +++ b/demo-shell-ng2/webcomponents/alfresco-file-list/src/alfresco-file-list.html @@ -7,6 +7,9 @@ + + + @@ -201,7 +216,7 @@ Example: */ droptext: { type: String, - value: "Drop Files Here" + value: "" }, /** @@ -327,7 +342,9 @@ Example: if (this.droppable === 'true') { this._showDropText(); this.setupDrop(); - } else { this._hideDropText(); } + } else { + this._hideDropText(); + } }, /** @@ -494,6 +511,9 @@ Example: if (xhr.status === 200) { self.fire("success", {xhr: xhr}); self.set(prefix + ".complete", true); + if(document.querySelector("#alfresco-app")) { + document.querySelector('#alfresco-app').fire('iron-signal', {name: "uploaded", data: "uploaded!"}); + } } else { self.set(prefix + ".error", true); self.set(prefix + ".complete", false); @@ -505,5 +525,4 @@ Example: xhr.send(formData); } }); -