ADF
diff --git a/demo-shell/src/app/components/home/home.component.scss b/demo-shell/src/app/components/home/home.component.scss
index 9aee2a5db0..51e04c0ebe 100644
--- a/demo-shell/src/app/components/home/home.component.scss
+++ b/demo-shell/src/app/components/home/home.component.scss
@@ -1,3 +1,9 @@
+:host {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
.adf-home-header-background {
overflow: hidden;
}
@@ -8,6 +14,7 @@
}
.adf-home-headline {
+
h1 {
font-size: 56px;
font-weight: 300;
diff --git a/demo-shell/src/app/components/log/log.component.css b/demo-shell/src/app/components/log/log.component.css
new file mode 100644
index 0000000000..db52602747
--- /dev/null
+++ b/demo-shell/src/app/components/log/log.component.css
@@ -0,0 +1,27 @@
+.log-list-type {
+ float: left;
+}
+
+.log-list-text {
+ float: left;
+}
+
+.log-card {
+ min-width: 200px;
+ z-index: 1;
+ height: 20%;
+ width: 40%;
+ position: fixed;
+ top: 1em;
+ right: 1em;
+ opacity: 0.9;
+ overflow: scroll;
+}
+
+.log-ERROR {
+ color: red;
+}
+
+.log-WARN {
+ color: yellow;
+}
diff --git a/demo-shell/src/app/components/log/log.component.html b/demo-shell/src/app/components/log/log.component.html
new file mode 100644
index 0000000000..4947c75e8f
--- /dev/null
+++ b/demo-shell/src/app/components/log/log.component.html
@@ -0,0 +1,12 @@
+
+
+ Log Service
+
+
+
+
+
+
+
diff --git a/demo-shell/src/app/components/log/log.component.ts b/demo-shell/src/app/components/log/log.component.ts
new file mode 100644
index 0000000000..52033f384e
--- /dev/null
+++ b/demo-shell/src/app/components/log/log.component.ts
@@ -0,0 +1,52 @@
+/*!
+ * @license
+ * Copyright 2016 Alfresco Software, Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { Component, HostListener } from '@angular/core';
+import { LogService, ObjectDataTableAdapter } from '@alfresco/adf-core';
+
+@Component({
+ selector: 'app-log',
+ templateUrl: './log.component.html',
+ styleUrls: ['./log.component.css']
+})
+export class LogComponent {
+ logs: any[] = [];
+ show = false;
+ ctrlLKey = 12;
+ logsData: ObjectDataTableAdapter;
+
+ constructor(public logService: LogService) {
+
+ logService.onMessage.subscribe((message) => {
+ this.logs.push({ type: message.type, text: JSON.stringify(message.text) });
+ this.logsData = new ObjectDataTableAdapter(this.logs, [
+ { type: 'text', key: 'type', title: 'Log level', sortable: true },
+ { type: 'text', key: 'text', title: 'Message', sortable: false }
+ ]);
+ });
+ }
+
+ @HostListener('document:keypress', ['$event'])
+ handleKeyboardEvent(event: KeyboardEvent) {
+ const key = event.keyCode;
+
+ if (key === this.ctrlLKey) {
+ this.show = !this.show;
+ }
+
+ }
+}
diff --git a/demo-shell/src/app/components/login/login.component.css b/demo-shell/src/app/components/login/login.component.css
deleted file mode 100644
index db7a097696..0000000000
--- a/demo-shell/src/app/components/login/login.component.css
+++ /dev/null
@@ -1,40 +0,0 @@
-.setting-button {
- position: absolute;
- right: 10px;
- top: 10px;
- z-index: 1;
- background-color: rgb(68,138,255);
- color: rgb(255,255,255);
-}
-
-.settings {
- border-radius: 8px;
- position: absolute;
- background-color: papayawhip;
- color: cadetblue;
- left: 10px;
- top: 10px;
- z-index: 1;
-}
-
-.toggle {
- width: 190px;
- margin: 5px;
- padding: 5px;
-}
-
-@media (min-width: 721px) {
- .mobile-settings {
- display: none;
- }
-}
-
-@media (max-width: 720px) {
- .settings {
- display: none;
- }
-}
-
-.settings ::ng-deep .mat-slide-toggle-thumb-container {
- cursor: pointer;
-}
diff --git a/demo-shell/src/app/components/login/login.component.html b/demo-shell/src/app/components/login/login.component.html
index c39dda7011..0f8e36e545 100644
--- a/demo-shell/src/app/components/login/login.component.html
+++ b/demo-shell/src/app/components/login/login.component.html
@@ -41,7 +41,7 @@
-
+
settings
@@ -92,5 +92,7 @@
{{ 'LOGIN.LOGIN_FOOTER'| translate }}
+
+
diff --git a/demo-shell/src/app/components/login/login.component.scss b/demo-shell/src/app/components/login/login.component.scss
new file mode 100644
index 0000000000..6a0b01043d
--- /dev/null
+++ b/demo-shell/src/app/components/login/login.component.scss
@@ -0,0 +1,52 @@
+@mixin adf-login-component-theme($theme) {
+ .setting-button.mat-fab.mat-accent {
+ position: absolute;
+ right: 10px;
+ top: 10px;
+ z-index: 1;
+
+ }
+
+ .settings {
+ border-radius: 8px;
+ position: absolute;
+ background-color: papayawhip;
+ color: cadetblue;
+ left: 10px;
+ top: 10px;
+ z-index: 1;
+ }
+
+ .toggle {
+ width: 190px;
+ margin: 5px;
+ padding: 5px;
+ }
+
+ .mobile-settings, .mobile-setting-button {
+ display: none;
+ }
+
+ @media screen and ($mat-small) {
+ .settings, .setting-button.mat-fab.mat-accent {
+ display: none;
+ }
+
+ .mobile-settings, .mobile-setting-button {
+ display: block;
+ }
+
+ .mobile-setting-button {
+ width: 100%;
+ }
+
+ .mobile-settings {
+ padding-bottom: 20px;
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
+ }
+ }
+
+ .settings ::ng-deep .mat-slide-toggle-thumb-container {
+ cursor: pointer;
+ }
+}
\ No newline at end of file
diff --git a/demo-shell/src/app/components/login/login.component.ts b/demo-shell/src/app/components/login/login.component.ts
index 21b80183bf..40d176b55e 100644
--- a/demo-shell/src/app/components/login/login.component.ts
+++ b/demo-shell/src/app/components/login/login.component.ts
@@ -23,7 +23,7 @@ import { LogService, StorageService } from '@alfresco/adf-core';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
- styleUrls: ['./login.component.css']
+ styleUrls: ['./login.component.scss']
})
export class LoginComponent implements OnInit {
diff --git a/demo-shell/src/app/components/permissions/demo-permissions.component.html b/demo-shell/src/app/components/permissions/demo-permissions.component.html
new file mode 100644
index 0000000000..2adeb22178
--- /dev/null
+++ b/demo-shell/src/app/components/permissions/demo-permissions.component.html
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/demo-shell/src/app/components/permissions/demo-permissions.component.scss b/demo-shell/src/app/components/permissions/demo-permissions.component.scss
new file mode 100644
index 0000000000..a6da03dab0
--- /dev/null
+++ b/demo-shell/src/app/components/permissions/demo-permissions.component.scss
@@ -0,0 +1,6 @@
+.inherit_permission_button {
+ padding-top: 20px;
+ display: flex;
+ justify-content: space-evenly;
+ padding-bottom: 20px;
+}
diff --git a/demo-shell/src/app/components/permissions/demo-permissions.component.ts b/demo-shell/src/app/components/permissions/demo-permissions.component.ts
new file mode 100644
index 0000000000..cc4ad25a3e
--- /dev/null
+++ b/demo-shell/src/app/components/permissions/demo-permissions.component.ts
@@ -0,0 +1,59 @@
+/*!
+ * @license
+ * Copyright 2016 Alfresco Software, Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { Component, Optional, OnInit, ViewChild } from '@angular/core';
+import { ActivatedRoute, Params} from '@angular/router';
+import { PermissionListComponent } from '@alfresco/adf-content-services';
+import { MinimalNodeEntryEntity } from 'alfresco-js-api';
+import { NodesApiService } from '@alfresco/adf-core';
+
+@Component({
+ selector: 'app-permissions',
+ templateUrl: './demo-permissions.component.html',
+ styleUrls: ['./demo-permissions.component.scss']
+})
+export class DemoPermissionComponent implements OnInit {
+
+ @ViewChild('permissionList')
+ displayPermissionComponent: PermissionListComponent;
+
+ nodeId: string;
+ toggleStatus = false;
+
+ constructor(@Optional() private route: ActivatedRoute,
+ private nodeService: NodesApiService) {
+ }
+
+ ngOnInit() {
+ if (this.route) {
+ this.route.params.forEach((params: Params) => {
+ if (params['id']) {
+ this.nodeId = params['id'];
+ }
+ });
+ }
+ this.nodeService.getNode(this.nodeId, {include: ['permissions'] }).subscribe( (currentNode: MinimalNodeEntryEntity) => {
+ this.toggleStatus = currentNode.permissions.isInheritanceEnabled;
+ });
+ }
+
+ onUpdatedPermissions(node: MinimalNodeEntryEntity) {
+ this.toggleStatus = node.permissions.isInheritanceEnabled;
+ this.displayPermissionComponent.reload();
+ }
+
+}
diff --git a/demo-shell/src/app/components/process-service/process-attachments.component.html b/demo-shell/src/app/components/process-service/process-attachments.component.html
index 7955be82a2..c1c8d94691 100644
--- a/demo-shell/src/app/components/process-service/process-attachments.component.html
+++ b/demo-shell/src/app/components/process-service/process-attachments.component.html
@@ -35,13 +35,4 @@
-
-
-