diff --git a/demo-shell-ng2/app/app.component.ts b/demo-shell-ng2/app/app.component.ts
index ce4126f460..97af3cd572 100644
--- a/demo-shell-ng2/app/app.component.ts
+++ b/demo-shell-ng2/app/app.component.ts
@@ -7,6 +7,7 @@ import {AuthRouterOutlet} from "./components/AuthRouterOutlet";
import {SideMenu} from "./components/core/SideMenu";
import {AppNavBar} from "./components/core/navbar.component";
import {FormDesignToolbar} from "./components/form-design-toolbar.component";
+import {SingleComponent} from "./single.component";
import {HomeView} from "./components/home.view";
import {FormsView} from "./components/forms.view";
import {Page1View} from "./components/page1.view";
@@ -19,7 +20,7 @@ import {Page2View} from "./components/page2.view";
providers: [FormService]
})
@RouteConfig([
- {path: '/', name: 'Home', component: HomeView, useAsDefault: true},
+ {path: '/', name: 'Home', component: SingleComponent, useAsDefault: true},
{path: '/login', name: 'Login', component: Login},
{path: '/forms', name: 'Forms', component: FormsView},
{path: '/page1', name: 'Page1', component: Page1View},
diff --git a/demo-shell-ng2/app/single.component.ts b/demo-shell-ng2/app/single.component.ts
new file mode 100644
index 0000000000..1d9479e1f3
--- /dev/null
+++ b/demo-shell-ng2/app/single.component.ts
@@ -0,0 +1,14 @@
+import {Component} from 'angular2/core';
+
+@Component({
+ selector: 'my-app',
+ templateUrl: 'app/template/single.component.html'
+})
+
+export class SingleComponent {
+ target: string = 'http://192.168.99.100:8080/alfresco/service/api/upload';
+ multi: string = 'true';
+ accept: string ='image/*';
+ droppable: boolean = false;
+
+}
diff --git a/demo-shell-ng2/app/template/single.component.html b/demo-shell-ng2/app/template/single.component.html
new file mode 100644
index 0000000000..6da93bc27b
--- /dev/null
+++ b/demo-shell-ng2/app/template/single.component.html
@@ -0,0 +1,8 @@
+
diff --git a/demo-shell-ng2/bower.json b/demo-shell-ng2/bower.json
index cca0b6da82..44f9159f36 100644
--- a/demo-shell-ng2/bower.json
+++ b/demo-shell-ng2/bower.json
@@ -23,6 +23,11 @@
"webcomponentsjs": "~0.7.21",
"paper-button": "~1.0.11",
"paper-progress": "~1.0.9",
- "iron-icons": "~1.1.3"
+ "iron-icons": "~1.1.3",
+ "iron-list": "~1.2.8",
+ "paper-badge": "~1.1.1",
+ "iron-ajax": "~1.2.0",
+ "paper-icon-button": "~1.0.7",
+ "paper-toolbar": "~1.1.4"
}
}
diff --git a/demo-shell-ng2/index.html b/demo-shell-ng2/index.html
index 9ddf80ecb9..0393ab602a 100644
--- a/demo-shell-ng2/index.html
+++ b/demo-shell-ng2/index.html
@@ -3,7 +3,9 @@
Angular 2 QuickStart
-
+
+
+
@@ -23,6 +25,7 @@
+
diff --git a/demo-shell-ng2/webcomponents/alfresco-file-list/.editorconfig b/demo-shell-ng2/webcomponents/alfresco-file-list/.editorconfig
new file mode 100644
index 0000000000..407f794dee
--- /dev/null
+++ b/demo-shell-ng2/webcomponents/alfresco-file-list/.editorconfig
@@ -0,0 +1,19 @@
+# EditorConfig helps developers define and maintain consistent
+# coding styles between different editors and IDEs
+# http://editorconfig.org
+
+root = true
+
+[*]
+# Change these settings to your own preference
+indent_style = space
+indent_size = 4
+
+# We recommend you to keep these unchanged
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[*.md]
+trim_trailing_whitespace = false
diff --git a/demo-shell-ng2/webcomponents/alfresco-file-list/.gitignore b/demo-shell-ng2/webcomponents/alfresco-file-list/.gitignore
new file mode 100644
index 0000000000..c346b13427
--- /dev/null
+++ b/demo-shell-ng2/webcomponents/alfresco-file-list/.gitignore
@@ -0,0 +1,2 @@
+bower_components/
+node_modules/
diff --git a/demo-shell-ng2/webcomponents/alfresco-file-list/README.md b/demo-shell-ng2/webcomponents/alfresco-file-list/README.md
new file mode 100644
index 0000000000..01dd00e413
--- /dev/null
+++ b/demo-shell-ng2/webcomponents/alfresco-file-list/README.md
@@ -0,0 +1,105 @@
+# <alfresco-file-list>
+
+> Alfresco files and Folders viewver list
+
+## Demo
+
+[Check it live!](http://eromano.github.io/alfresco-file-list)
+
+## Install
+
+Install the component using [Bower](http://bower.io/):
+
+```sh
+$ bower install alfresco-file-list --save
+```
+
+Or [download as ZIP](https://github.com/eromano/alfresco-file-list/archive/master.zip).
+
+## Usage
+
+1. Import Web Components' polyfill:
+
+ ```html
+
+ ```
+
+2. Import Custom Element:
+
+ ```html
+
+ ```
+
+3. Start using it!
+
+ ```html
+
+ ```
+
+## Options
+
+Attribute | Options | Default | Description
+--- | --- | --- | ---
+`foo` | *string* | `bar` | Lorem ipsum dolor.
+
+## Methods
+
+Method | Parameters | Returns | Description
+--- | --- | --- | ---
+`unicorn()` | None. | Nothing. | Magic stuff appears.
+
+## Events
+
+Event | Description
+--- | ---
+`onsomething` | Triggers when something happens.
+
+## Development
+
+In order to run it locally you'll need to fetch some dependencies and a basic server setup.
+
+* Install [Bower](http://bower.io/) & [Grunt](http://gruntjs.com/):
+
+ ```sh
+ $ [sudo] npm install -g bower grunt-cli
+ ```
+
+* Install local dependencies:
+
+ ```sh
+ $ bower install && npm install
+ ```
+
+* To test your project, start the development server and open `http://localhost:8000`.
+
+ ```sh
+ $ grunt server
+ ```
+
+* To build the distribution files before releasing a new version.
+
+ ```sh
+ $ grunt build
+ ```
+
+* To provide a live demo, send everything to `gh-pages` branch.
+
+ ```sh
+ $ grunt deploy
+ ```
+
+## Contributing
+
+1. Fork it!
+2. Create your feature branch: `git checkout -b my-new-feature`
+3. Commit your changes: `git commit -m 'Add some feature'`
+4. Push to the branch: `git push origin my-new-feature`
+5. Submit a pull request :D
+
+## History
+
+For detailed changelog, check [Releases](https://github.com/eromano/alfresco-file-list/releases).
+
+## License
+
+[MIT License](http://opensource.org/licenses/MIT)
diff --git a/demo-shell-ng2/webcomponents/alfresco-file-list/bower.json b/demo-shell-ng2/webcomponents/alfresco-file-list/bower.json
new file mode 100644
index 0000000000..f1967b809d
--- /dev/null
+++ b/demo-shell-ng2/webcomponents/alfresco-file-list/bower.json
@@ -0,0 +1,32 @@
+{
+ "name": "alfresco-file-list",
+ "version": "0.0.0",
+ "description": "Alfresco files and Folders viewver list ",
+ "license": "MIT",
+ "main": "dist/alfresco-file-list.html",
+ "keywords": [
+ "polymer",
+ "web-components"
+ ],
+ "ignore": [
+ "**/.*",
+ "node_modules",
+ "bower_components"
+ ],
+ "dependencies": {
+ "polymer": "Polymer/polymer#^1.4.0",
+ "iron-list": "PolymerElements/iron-list#^1.2.8",
+ "iron-ajax": "PolymerElements/iron-ajax#^1.2.0",
+ "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.3.1",
+ "paper-styles": "PolymerElements/paper-styles#^1.1.4",
+ "paper-icon-button": "PolymerElements/paper-icon-button#^1.0.7",
+ "paper-badge": "PolymerElements/paper-badge#^1.1.1",
+ "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"
+ }
+}
diff --git a/demo-shell-ng2/webcomponents/alfresco-file-list/index.html b/demo-shell-ng2/webcomponents/alfresco-file-list/index.html
new file mode 100644
index 0000000000..0df04e8322
--- /dev/null
+++ b/demo-shell-ng2/webcomponents/alfresco-file-list/index.html
@@ -0,0 +1,19 @@
+
+
+
+
+ <alfresco-file-list>
+
+
+
+
+
+
+
+
+
+
+
diff --git a/demo-shell-ng2/webcomponents/alfresco-file-list/package.json b/demo-shell-ng2/webcomponents/alfresco-file-list/package.json
new file mode 100644
index 0000000000..205d5305de
--- /dev/null
+++ b/demo-shell-ng2/webcomponents/alfresco-file-list/package.json
@@ -0,0 +1,10 @@
+{
+ "private": true,
+ "devDependencies": {
+ "grunt": "~0.4.1",
+ "grunt-cli": "~0.1.9",
+ "grunt-contrib-connect": "~0.9.0",
+ "grunt-gh-pages": "~0.9.1",
+ "grunt-text-replace": "~0.4.0"
+ }
+}
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
new file mode 100644
index 0000000000..c4d53ccef7
--- /dev/null
+++ b/demo-shell-ng2/webcomponents/alfresco-file-list/src/alfresco-file-list.html
@@ -0,0 +1,165 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+
+ [[item.displayName]]
+
+
+ [[item.node.description]]
+
+
+ Modified [[item.modifiedOn]] by [[item.modifiedBy]]
+
+
+
+
+
+
+ Download as Zip
+ View Details
+ Edit Properties
+ Copy To...
+ Move To...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/demo-shell-ng2/webcomponents/alfresco-file-list/src/files.json b/demo-shell-ng2/webcomponents/alfresco-file-list/src/files.json
new file mode 100644
index 0000000000..d7891509e8
--- /dev/null
+++ b/demo-shell-ng2/webcomponents/alfresco-file-list/src/files.json
@@ -0,0 +1,283 @@
+{
+ "totalRecords": 4,
+ "startIndex": 0,
+ "metadata": {
+ "repositoryId": "302393f7-5fad-4c61-ab75-05e990bd86d6",
+ "container": "workspace://SpacesStore/8f2105b4-daaf-4874-9e8a-2152569d109b",
+ "parent": {
+ "nodeRef": "workspace://SpacesStore/8f2105b4-daaf-4874-9e8a-2152569d109b",
+ "permissions": {
+ "userAccess": {
+ "create": true,
+ "edit": true,
+ "delete": true,
+ "cancel-checkout": false,
+ "permissions": true
+ }
+ }
+ },
+ "onlineEditing": false,
+ "itemCounts": {
+ "folders": 4,
+ "documents": 0
+ }
+ },
+ "items": [
+ {
+ "nodeRef": "workspace://SpacesStore/8bb36efb-c26d-4d2b-9199-ab6922f53c28",
+ "nodeType": "cm:folder",
+ "type": "folder",
+ "mimetype": "",
+ "isFolder": true,
+ "isLink": false,
+ "fileName": "Agency Files",
+ "displayName": "Agency Files",
+ "status": "",
+ "title": "Agency related files",
+ "description": "This folder holds the agency related files for the project",
+ "author": "",
+ "createdOn": "2011-02-15T20:47:03.951Z",
+ "createdBy": "Mike Jackson",
+ "createdByUser": "mjackson",
+ "modifiedOn": "2011-02-15T21:00:43.616Z",
+ "modifiedBy": "Mike Jackson",
+ "modifiedByUser": "mjackson",
+ "lockedBy": "",
+ "lockedByUser": "",
+ "size": "0",
+ "version": "1.0",
+ "contentUrl": "api/node/content/workspace/SpacesStore/8bb36efb-c26d-4d2b-9199-ab6922f53c28/Agency%20Files",
+ "webdavUrl": "/webdav/Sites/swsdp/documentLibrary/Agency%20Files",
+ "actionSet": "folder",
+ "tags": [],
+ "activeWorkflows": "",
+ "likes": {
+ "isLiked": false,
+ "totalLikes": 0
+ },
+ "location": {
+ "repositoryId": "302393f7-5fad-4c61-ab75-05e990bd86d6",
+ "site": "swsdp",
+ "siteTitle": "Sample: Web Site Design Project",
+ "container": "documentLibrary",
+ "path": "/",
+ "file": "Agency Files",
+ "parent": {
+ "nodeRef": "workspace://SpacesStore/8f2105b4-daaf-4874-9e8a-2152569d109b"
+ }
+ },
+ "permissions": {
+ "inherited": true,
+ "roles": [
+ "ALLOWED;GROUP_site_swsdp_SiteCollaborator;SiteCollaborator;INHERITED",
+ "ALLOWED;GROUP_EVERYONE;SiteConsumer;INHERITED",
+ "ALLOWED;GROUP_EVERYONE;ReadPermissions;INHERITED",
+ "ALLOWED;GROUP_site_swsdp_SiteContributor;SiteContributor;INHERITED",
+ "ALLOWED;GROUP_site_swsdp_SiteConsumer;SiteConsumer;INHERITED",
+ "ALLOWED;GROUP_site_swsdp_SiteManager;SiteManager;INHERITED"
+ ],
+ "userAccess": {
+ "create": true,
+ "edit": true,
+ "delete": true,
+ "cancel-checkout": false,
+ "permissions": true
+ }
+ },
+ "custom": {},
+ "actionLabels": {}
+ },
+ {
+ "nodeRef": "workspace://SpacesStore/8ab12916-4897-47fb-94eb-1ab699822ecb",
+ "nodeType": "cm:folder",
+ "type": "folder",
+ "mimetype": "",
+ "isFolder": true,
+ "isLink": false,
+ "fileName": "Budget Files",
+ "displayName": "Budget Files",
+ "status": "",
+ "title": "Project finance files",
+ "description": "This folder holds the project budget and invoices",
+ "author": "",
+ "createdOn": "2011-02-15T20:50:25.839Z",
+ "createdBy": "Mike Jackson",
+ "createdByUser": "mjackson",
+ "modifiedOn": "2011-02-15T21:08:20.590Z",
+ "modifiedBy": "Mike Jackson",
+ "modifiedByUser": "mjackson",
+ "lockedBy": "",
+ "lockedByUser": "",
+ "size": "0",
+ "version": "1.0",
+ "contentUrl": "api/node/content/workspace/SpacesStore/8ab12916-4897-47fb-94eb-1ab699822ecb/Budget%20Files",
+ "webdavUrl": "/webdav/Sites/swsdp/documentLibrary/Budget%20Files",
+ "actionSet": "folder",
+ "tags": [],
+ "activeWorkflows": "",
+ "likes": {
+ "isLiked": false,
+ "totalLikes": 0
+ },
+ "location": {
+ "repositoryId": "302393f7-5fad-4c61-ab75-05e990bd86d6",
+ "site": "swsdp",
+ "siteTitle": "Sample: Web Site Design Project",
+ "container": "documentLibrary",
+ "path": "/",
+ "file": "Budget Files",
+ "parent": {
+ "nodeRef": "workspace://SpacesStore/8f2105b4-daaf-4874-9e8a-2152569d109b"
+ }
+ },
+ "permissions": {
+ "inherited": true,
+ "roles": [
+ "ALLOWED;GROUP_site_swsdp_SiteCollaborator;SiteCollaborator;INHERITED",
+ "ALLOWED;GROUP_EVERYONE;SiteConsumer;INHERITED",
+ "ALLOWED;GROUP_EVERYONE;ReadPermissions;INHERITED",
+ "ALLOWED;GROUP_site_swsdp_SiteContributor;SiteContributor;INHERITED",
+ "ALLOWED;GROUP_site_swsdp_SiteConsumer;SiteConsumer;INHERITED",
+ "ALLOWED;GROUP_site_swsdp_SiteManager;SiteManager;INHERITED"
+ ],
+ "userAccess": {
+ "create": true,
+ "edit": true,
+ "delete": true,
+ "cancel-checkout": false,
+ "permissions": true
+ }
+ },
+ "custom": {},
+ "actionLabels": {}
+ },
+ {
+ "nodeRef": "workspace://SpacesStore/a211774d-ba6d-4a35-b97f-dacfaac7bde3",
+ "nodeType": "cm:folder",
+ "type": "folder",
+ "mimetype": "",
+ "isFolder": true,
+ "isLink": false,
+ "fileName": "Meeting Notes",
+ "displayName": "Meeting Notes",
+ "status": "",
+ "title": "Project meeting notes",
+ "description": "This folder holds notes from the project review meetings",
+ "author": "",
+ "createdOn": "2011-02-15T21:16:26.500Z",
+ "createdBy": "Mike Jackson",
+ "createdByUser": "mjackson",
+ "modifiedOn": "2011-02-15T21:16:26.500Z",
+ "modifiedBy": "Mike Jackson",
+ "modifiedByUser": "mjackson",
+ "lockedBy": "",
+ "lockedByUser": "",
+ "size": "0",
+ "version": "1.0",
+ "contentUrl": "api/node/content/workspace/SpacesStore/a211774d-ba6d-4a35-b97f-dacfaac7bde3/Meeting%20Notes",
+ "webdavUrl": "/webdav/Sites/swsdp/documentLibrary/Meeting%20Notes",
+ "actionSet": "folder",
+ "tags": [],
+ "activeWorkflows": "",
+ "likes": {
+ "isLiked": false,
+ "totalLikes": 0
+ },
+ "location": {
+ "repositoryId": "302393f7-5fad-4c61-ab75-05e990bd86d6",
+ "site": "swsdp",
+ "siteTitle": "Sample: Web Site Design Project",
+ "container": "documentLibrary",
+ "path": "/",
+ "file": "Meeting Notes",
+ "parent": {
+ "nodeRef": "workspace://SpacesStore/8f2105b4-daaf-4874-9e8a-2152569d109b"
+ }
+ },
+ "permissions": {
+ "inherited": true,
+ "roles": [
+ "ALLOWED;GROUP_site_swsdp_SiteCollaborator;SiteCollaborator;INHERITED",
+ "ALLOWED;GROUP_EVERYONE;SiteConsumer;INHERITED",
+ "ALLOWED;GROUP_EVERYONE;ReadPermissions;INHERITED",
+ "ALLOWED;GROUP_site_swsdp_SiteContributor;SiteContributor;INHERITED",
+ "ALLOWED;GROUP_site_swsdp_SiteConsumer;SiteConsumer;INHERITED",
+ "ALLOWED;GROUP_site_swsdp_SiteManager;SiteManager;INHERITED"
+ ],
+ "userAccess": {
+ "create": true,
+ "edit": true,
+ "delete": true,
+ "cancel-checkout": false,
+ "permissions": true
+ }
+ },
+ "custom": {},
+ "actionLabels": {}
+ },
+ {
+ "nodeRef": "workspace://SpacesStore/38745585-816a-403f-8005-0a55c0aec813",
+ "nodeType": "cm:folder",
+ "type": "folder",
+ "mimetype": "",
+ "isFolder": true,
+ "isLink": false,
+ "fileName": "Presentations",
+ "displayName": "Presentations",
+ "status": "",
+ "title": "Project presentations",
+ "description": "This folder holds presentations from the project",
+ "author": "",
+ "createdOn": "2011-02-15T21:18:38.144Z",
+ "createdBy": "Mike Jackson",
+ "createdByUser": "mjackson",
+ "modifiedOn": "2011-02-15T21:18:38.144Z",
+ "modifiedBy": "Mike Jackson",
+ "modifiedByUser": "mjackson",
+ "lockedBy": "",
+ "lockedByUser": "",
+ "size": "0",
+ "version": "1.0",
+ "contentUrl": "api/node/content/workspace/SpacesStore/38745585-816a-403f-8005-0a55c0aec813/Presentations",
+ "webdavUrl": "/webdav/Sites/swsdp/documentLibrary/Presentations",
+ "actionSet": "folder",
+ "tags": [],
+ "activeWorkflows": "",
+ "likes": {
+ "isLiked": false,
+ "totalLikes": 0
+ },
+ "location": {
+ "repositoryId": "302393f7-5fad-4c61-ab75-05e990bd86d6",
+ "site": "swsdp",
+ "siteTitle": "Sample: Web Site Design Project",
+ "container": "documentLibrary",
+ "path": "/",
+ "file": "Presentations",
+ "parent": {
+ "nodeRef": "workspace://SpacesStore/8f2105b4-daaf-4874-9e8a-2152569d109b"
+ }
+ },
+ "permissions": {
+ "inherited": true,
+ "roles": [
+ "ALLOWED;GROUP_site_swsdp_SiteCollaborator;SiteCollaborator;INHERITED",
+ "ALLOWED;GROUP_EVERYONE;SiteConsumer;INHERITED",
+ "ALLOWED;GROUP_EVERYONE;ReadPermissions;INHERITED",
+ "ALLOWED;GROUP_site_swsdp_SiteContributor;SiteContributor;INHERITED",
+ "ALLOWED;GROUP_site_swsdp_SiteConsumer;SiteConsumer;INHERITED",
+ "ALLOWED;GROUP_site_swsdp_SiteManager;SiteManager;INHERITED"
+ ],
+ "userAccess": {
+ "create": true,
+ "edit": true,
+ "delete": true,
+ "cancel-checkout": false,
+ "permissions": true
+ }
+ },
+ "custom": {},
+ "actionLabels": {}
+ }
+ ]
+}
diff --git a/demo-shell-ng2/webcomponents/alfresco-file-list/src/img/folder.svg b/demo-shell-ng2/webcomponents/alfresco-file-list/src/img/folder.svg
new file mode 100644
index 0000000000..8817df8600
--- /dev/null
+++ b/demo-shell-ng2/webcomponents/alfresco-file-list/src/img/folder.svg
@@ -0,0 +1,12 @@
+
+
+