From 5c7ccb9b834c69ec4e3981cb76d87577d07dca3b Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Thu, 14 Sep 2017 19:53:46 +0100 Subject: [PATCH] fix toolbar and page port view for size in small devices (#2338) remove old alfresco and activiti prefix fix login toggle mobile devices --- demo-shell-ng2/app/app.component.html | 37 ++++++++++++++----- demo-shell-ng2/app/app.component.scss | 31 +++++++++------- .../app/components/about/about.component.html | 2 +- .../activiti/activiti-demo.component.html | 28 +++++++------- ...ctiviti-process-attachments.component.html | 4 +- .../activiti-show-diagram.component.html | 2 +- .../activiti-task-attachments.component.html | 4 +- .../activiti/form-node-viewer.component.html | 4 +- .../activiti/form-viewer.component.html | 10 ++--- .../datatable/datatable-demo.component.css | 4 +- .../app/components/files/files.component.html | 20 +++++----- .../login/login-demo.component.html | 8 ++-- .../search/search-bar.component.html | 8 ++-- .../components/search/search.component.html | 10 ++--- .../components/search/search.component.scss | 20 ++++++++++ .../app/components/search/search.component.ts | 23 +----------- .../app/components/tag/tag.component.html | 6 +-- .../components/search-control.component.html | 2 +- .../components/search-control.component.scss | 20 +++------- 19 files changed, 127 insertions(+), 116 deletions(-) create mode 100644 demo-shell-ng2/app/components/search/search.component.scss diff --git a/demo-shell-ng2/app/app.component.html b/demo-shell-ng2/app/app.component.html index a788cb75e7..8d75ad1c28 100644 --- a/demo-shell-ng2/app/app.component.html +++ b/demo-shell-ng2/app/app.component.html @@ -1,20 +1,20 @@ - - + - ADF Demo Application + ADF Demo Application -
+
- Home - Content Services - Process Services - Login + Home + Content Services + Process Services + Login + + + home + Home + + + folder_open + Content Services + + + device_hub + Process Services + + + vpn_key + Login + extension DL: Custom Sources diff --git a/demo-shell-ng2/app/app.component.scss b/demo-shell-ng2/app/app.component.scss index 66c299f901..35a7d0c51f 100644 --- a/demo-shell-ng2/app/app.component.scss +++ b/demo-shell-ng2/app/app.component.scss @@ -1,24 +1,29 @@ -.user-profile { +@import '~@angular/material/theming'; + + +.adf-app-user-profile { margin-right: 10px; } -.app-menu--spacer { +.adf-app-menu-spacer { flex: 1 1 auto; } -.p-10 { - padding: 10px; +.adf-app-toolbar { + overflow: hidden; } -.m-10 { - margin: 10px; -} +@media ($mat-small) { -._dialog_overlay { - position: static !important; -} + .adf-app-hide-small{ + display: none !important; + } + +} +@media ($mat-xsmall) { + + .adf-app-hide-xsmall{ + display: none !important; + } -.md-simple-snackbar-action { - border: 0px; - cursor: pointer; } diff --git a/demo-shell-ng2/app/components/about/about.component.html b/demo-shell-ng2/app/components/about/about.component.html index 284fd42d37..132925dfc1 100644 --- a/demo-shell-ng2/app/components/about/about.component.html +++ b/demo-shell-ng2/app/components/about/about.component.html @@ -108,5 +108,5 @@

Packages

Current project is using the following ADF libraries: - + diff --git a/demo-shell-ng2/app/components/activiti/activiti-demo.component.html b/demo-shell-ng2/app/components/activiti/activiti-demo.component.html index 1b141dfae0..0d551a24e6 100644 --- a/demo-shell-ng2/app/components/activiti/activiti-demo.component.html +++ b/demo-shell-ng2/app/components/activiti/activiti-demo.component.html @@ -12,20 +12,20 @@ - - +
- +
- - +
{{'PS-TAB.AUDIT-LOG' | translate}} @@ -119,18 +119,18 @@ - - +
- +
- - +
{{'PS-TAB.START-PROCESS' | translate}} @@ -201,7 +201,7 @@
- - +
{{'ANALYTICS_REPORT.NO_REPORT_MESSAGE' | translate}}
diff --git a/demo-shell-ng2/app/components/activiti/activiti-process-attachments.component.html b/demo-shell-ng2/app/components/activiti/activiti-process-attachments.component.html index c4f36017e6..4b039bff2d 100644 --- a/demo-shell-ng2/app/components/activiti/activiti-process-attachments.component.html +++ b/demo-shell-ng2/app/components/activiti/activiti-process-attachments.component.html @@ -21,10 +21,10 @@
- - +
diff --git a/demo-shell-ng2/app/components/activiti/activiti-show-diagram.component.html b/demo-shell-ng2/app/components/activiti/activiti-show-diagram.component.html index fb812041e8..6bac0d752a 100644 --- a/demo-shell-ng2/app/components/activiti/activiti-show-diagram.component.html +++ b/demo-shell-ng2/app/components/activiti/activiti-show-diagram.component.html @@ -1,4 +1,4 @@
- +
diff --git a/demo-shell-ng2/app/components/activiti/activiti-task-attachments.component.html b/demo-shell-ng2/app/components/activiti/activiti-task-attachments.component.html index 72871b82b6..6cafcae6eb 100644 --- a/demo-shell-ng2/app/components/activiti/activiti-task-attachments.component.html +++ b/demo-shell-ng2/app/components/activiti/activiti-task-attachments.component.html @@ -20,10 +20,10 @@
- - +
diff --git a/demo-shell-ng2/app/components/activiti/form-node-viewer.component.html b/demo-shell-ng2/app/components/activiti/form-node-viewer.component.html index e2f166282b..c66bacf054 100644 --- a/demo-shell-ng2/app/components/activiti/form-node-viewer.component.html +++ b/demo-shell-ng2/app/components/activiti/form-node-viewer.component.html @@ -1,6 +1,6 @@
- - +
diff --git a/demo-shell-ng2/app/components/activiti/form-viewer.component.html b/demo-shell-ng2/app/components/activiti/form-viewer.component.html index 2a5c98ccdb..acda361721 100644 --- a/demo-shell-ng2/app/components/activiti/form-viewer.component.html +++ b/demo-shell-ng2/app/components/activiti/form-viewer.component.html @@ -1,11 +1,11 @@
- - + + - - + + - +
diff --git a/demo-shell-ng2/app/components/datatable/datatable-demo.component.css b/demo-shell-ng2/app/components/datatable/datatable-demo.component.css index cf1e8fe8da..a4d9493a15 100644 --- a/demo-shell-ng2/app/components/datatable/datatable-demo.component.css +++ b/demo-shell-ng2/app/components/datatable/datatable-demo.component.css @@ -1,10 +1,10 @@ -alfresco-datatable >>> .custom-row-style.alfresco-datatable__row:focus { +adf-datatable >>> .custom-row-style.alfresco-datatable__row:focus { outline-offset: -1px; outline-width: 1px; outline-color: green; outline-style: solid; } -alfresco-datatable >>> .custom-row-style.alfresco-datatable__row--selected { +adf-datatable >>> .custom-row-style.alfresco-datatable__row--selected { color: green; } diff --git a/demo-shell-ng2/app/components/files/files.component.html b/demo-shell-ng2/app/components/files/files.component.html index 4b4d00f2e2..5703dec0da 100644 --- a/demo-shell-ng2/app/components/files/files.component.html +++ b/demo-shell-ng2/app/components/files/files.component.html @@ -3,7 +3,7 @@
- - + @@ -264,7 +264,7 @@
- - +
- - +
Enable upload (demoing enabled/disabled state only if the permission are not checked dynamically) @@ -312,7 +312,7 @@
- @@ -323,15 +323,15 @@ - +
- - +
diff --git a/demo-shell-ng2/app/components/login/login-demo.component.html b/demo-shell-ng2/app/components/login/login-demo.component.html index 901dc463ec..d1c4bc48b3 100644 --- a/demo-shell-ng2/app/components/login/login-demo.component.html +++ b/demo-shell-ng2/app/components/login/login-demo.component.html @@ -60,7 +60,7 @@ Content Services @@ -69,7 +69,7 @@ Process Services @@ -78,7 +78,7 @@ CSRF @@ -87,7 +87,7 @@ Login footer diff --git a/demo-shell-ng2/app/components/search/search-bar.component.html b/demo-shell-ng2/app/components/search/search-bar.component.html index 1a7d13a90c..2fcc5b92dc 100644 --- a/demo-shell-ng2/app/components/search/search-bar.component.html +++ b/demo-shell-ng2/app/components/search/search-bar.component.html @@ -1,4 +1,4 @@ - - + - - + diff --git a/demo-shell-ng2/app/components/search/search.component.html b/demo-shell-ng2/app/components/search/search.component.html index 5f73bf6081..a606f50dcc 100644 --- a/demo-shell-ng2/app/components/search/search.component.html +++ b/demo-shell-ng2/app/components/search/search.component.html @@ -1,14 +1,14 @@
-

Search results

- Search results
+ + (nodeDbClick)="nodeDbClick($event)">
- - +
diff --git a/demo-shell-ng2/app/components/search/search.component.scss b/demo-shell-ng2/app/components/search/search.component.scss new file mode 100644 index 0000000000..a8a1a2930a --- /dev/null +++ b/demo-shell-ng2/app/components/search/search.component.scss @@ -0,0 +1,20 @@ +div.search-results-container { + padding: 0 20px 20px 20px; +} + +.adf-search-title { + font-size: 22px; + padding: 15px 0 15px 0; +} + +@media screen and (max-width: 600px) { + :host .col-display-name { + min-width: 100px; + } + :host .col-modified-at, :host .col-modified-by { + display: none; + } + :host div.search-results-container table { + width: 100%; + } +} diff --git a/demo-shell-ng2/app/components/search/search.component.ts b/demo-shell-ng2/app/components/search/search.component.ts index 7adfa19d01..35a1d22f5e 100644 --- a/demo-shell-ng2/app/components/search/search.component.ts +++ b/demo-shell-ng2/app/components/search/search.component.ts @@ -21,28 +21,7 @@ import { Router } from '@angular/router'; @Component({ selector: 'search-component', templateUrl: './search.component.html', - styles: [` - :host div.search-results-container { - padding: 0 20px 20px 20px; - } - :host h1 { - font-size: 22px; - } - :host tbody tr { - cursor: pointer; - } - @media screen and (max-width: 600px) { - :host .col-display-name { - min-width: 100px; - } - :host .col-modified-at, :host .col-modified-by { - display: none; - } - :host div.search-results-container table { - width: 100%; - } - } - `] + styleUrls: ['./search.component.scss'] }) export class SearchComponent { diff --git a/demo-shell-ng2/app/components/tag/tag.component.html b/demo-shell-ng2/app/components/tag/tag.component.html index 2f05dc8641..11d44c424a 100644 --- a/demo-shell-ng2/app/components/tag/tag.component.html +++ b/demo-shell-ng2/app/components/tag/tag.component.html @@ -2,18 +2,18 @@
- +
List Tags Content Services
- +
Tag list By Node ID
- +
diff --git a/ng2-components/ng2-alfresco-search/src/components/search-control.component.html b/ng2-components/ng2-alfresco-search/src/components/search-control.component.html index 926189cf27..24ed7be8f3 100644 --- a/ng2-components/ng2-alfresco-search/src/components/search-control.component.html +++ b/ng2-components/ng2-alfresco-search/src/components/search-control.component.html @@ -7,7 +7,7 @@ class="adf-search-button"> search -
+