diff --git a/demo-shell/src/app/components/card-view/card-view.component.html b/demo-shell/src/app/components/card-view/card-view.component.html index e9800ff9bd..03a2cb9566 100644 --- a/demo-shell/src/app/components/card-view/card-view.component.html +++ b/demo-shell/src/app/components/card-view/card-view.component.html @@ -1,17 +1,15 @@

CardView Component

- - - - + + -
+

Changes log:

{{ log }}

diff --git a/demo-shell/src/app/components/card-view/card-view.component.scss b/demo-shell/src/app/components/card-view/card-view.component.scss index 927bbee58e..2f736a1e94 100644 --- a/demo-shell/src/app/components/card-view/card-view.component.scss +++ b/demo-shell/src/app/components/card-view/card-view.component.scss @@ -2,7 +2,7 @@ padding: 0 15px; } -.app-card-view { +adf-card-view { width: 30%; display: inline-block; } diff --git a/demo-shell/src/app/components/card-view/card-view.component.ts b/demo-shell/src/app/components/card-view/card-view.component.ts index e89adf761e..0d21723a6c 100644 --- a/demo-shell/src/app/components/card-view/card-view.component.ts +++ b/demo-shell/src/app/components/card-view/card-view.component.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { Component, OnInit, ElementRef, ViewChild, OnDestroy } from '@angular/core'; +import { Component, OnInit, OnDestroy } from '@angular/core'; import { CardViewTextItemModel, CardViewDateItemModel, @@ -39,9 +39,6 @@ import { takeUntil } from 'rxjs/operators'; styleUrls: ['./card-view.component.scss'] }) export class CardViewComponent implements OnInit, OnDestroy { - - @ViewChild('console', { static: true }) console: ElementRef; - isEditable = true; properties: any; logs: string[]; @@ -51,8 +48,7 @@ export class CardViewComponent implements OnInit, OnDestroy { private onDestroy$ = new Subject(); - constructor(private cardViewUpdateService: CardViewUpdateService, - private decimalNumberPipe: DecimalNumberPipe) { + constructor(private cardViewUpdateService: CardViewUpdateService, private decimalNumberPipe: DecimalNumberPipe) { this.logs = []; this.createCard(); } @@ -62,9 +58,7 @@ export class CardViewComponent implements OnInit, OnDestroy { } ngOnInit() { - this.cardViewUpdateService.itemUpdated$ - .pipe(takeUntil(this.onDestroy$)) - .subscribe(this.onItemChange.bind(this)); + this.cardViewUpdateService.itemUpdated$.pipe(takeUntil(this.onDestroy$)).subscribe(this.onItemChange.bind(this)); } ngOnDestroy() { @@ -192,20 +186,29 @@ export class CardViewComponent implements OnInit, OnDestroy { }), new CardViewKeyValuePairsItemModel({ label: 'CardView Key-Value Pairs Item', - value: [{ name: 'hey', value: 'you' }, { name: 'hey', value: 'you' }], + value: [ + { name: 'hey', value: 'you' }, + { name: 'hey', value: 'you' } + ], key: 'key-value-pairs', editable: this.isEditable }), new CardViewKeyValuePairsItemModel({ label: 'CardView Key-Value Pairs Item', - value: [{ name: 'hey', value: 'you' }, { name: 'hey', value: 'you' }], + value: [ + { name: 'hey', value: 'you' }, + { name: 'hey', value: 'you' } + ], key: 'key-value-pairs', editable: false }), new CardViewSelectItemModel({ label: 'CardView Select Item', value: 'one', - options$: of([{ key: 'one', label: 'One' }, { key: 'two', label: 'Two' }]), + options$: of([ + { key: 'one', label: 'One' }, + { key: 'two', label: 'Two' } + ]), key: 'select', editable: this.isEditable }), @@ -253,7 +256,6 @@ export class CardViewComponent implements OnInit, OnDestroy { } this.logs.push(`[${notification.target.label}] - ${value}`); - this.console.nativeElement.scrollTop = this.console.nativeElement.scrollHeight; } toggleEditable() { diff --git a/demo-shell/src/app/components/cloud/shared/cloud-settings.component.html b/demo-shell/src/app/components/cloud/shared/cloud-settings.component.html index 8f353b4658..62f74a56fc 100644 --- a/demo-shell/src/app/components/cloud/shared/cloud-settings.component.html +++ b/demo-shell/src/app/components/cloud/shared/cloud-settings.component.html @@ -16,7 +16,8 @@ Display process details on process click - + + Selection Mode @@ -24,32 +25,29 @@ - - - Add Action - - -
- - - - - - - - - - Visible - Disable - -
-
- - - {{action.title}} - cancel - - -
-
-
+ +
+

Add Action

+
+ + + + + + + + + + Visible + Disable + +
+
+ + + {{action.title}} + cancel + + +
+
diff --git a/demo-shell/src/app/components/cloud/shared/cloud-settings.component.scss b/demo-shell/src/app/components/cloud/shared/cloud-settings.component.scss index 06a13066f6..b572aa69c6 100644 --- a/demo-shell/src/app/components/cloud/shared/cloud-settings.component.scss +++ b/demo-shell/src/app/components/cloud/shared/cloud-settings.component.scss @@ -4,7 +4,11 @@ app-cloud-settings { display: flex; flex: 1; - mat-form-field { + .app-cloud-actions { + background-color: white; + } + + .adf-cloud-settings-selection-mode { max-width: 200px; } @@ -13,13 +17,9 @@ app-cloud-settings { place-content: center space-around; align-items: center; - mat-form-field { + .app-cloud-settings-form-input { flex: 1 1 100%; max-width: 23%; } - - mat-form-field, mat-checkbox { - margin-right: 20px; - } } } diff --git a/demo-shell/src/app/components/file-view/file-view.component.html b/demo-shell/src/app/components/file-view/file-view.component.html index ebb5ce4369..1fab5fc9ae 100644 --- a/demo-shell/src/app/components/file-view/file-view.component.html +++ b/demo-shell/src/app/components/file-view/file-view.component.html @@ -110,14 +110,10 @@ - - - - - - + + diff --git a/demo-shell/src/app/components/settings/host-settings.component.html b/demo-shell/src/app/components/settings/host-settings.component.html index 74162f4cef..3eaa05348d 100644 --- a/demo-shell/src/app/components/settings/host-settings.component.html +++ b/demo-shell/src/app/components/settings/host-settings.component.html @@ -1,120 +1,106 @@
- -
- - - - {{ provider }} - - + + + + + {{ provider }} + + + + +
+
Authentication type:
+ + Basic Authentication + SSO + +
+ + + Content Services URL + + {{ ERR_INVALID_URL }} + {{ ERR_REQUIRED }} + + + + Process Services URL + + {{ ERR_INVALID_URL }} + {{ ERR_REQUIRED }} + + + + Identity Host + + {{ ERR_INVALID_URL }} + {{ ERR_REQUIRED }} + + +
+ + Auth Host + + {{ ERR_INVALID_URL }} + {{ ERR_REQUIRED }} -
-
Authentication type :
- - Basic Authentication - SSO - -
+ + Client ID + + {{ ERR_REQUIRED }} + - - - - Content Services URL - - {{ ERR_INVALID_URL }} - {{ ERR_REQUIRED }} - - + + Scope Id + + {{ ERR_REQUIRED }} + + + + Secret + + {{ ERR_REQUIRED }} + + + Silent Login + + + + Implicit Flow + + + + + Code Flow + + - - - - Process Services URL - - {{ ERR_INVALID_URL }} - {{ ERR_REQUIRED }} - - - + + Redirect URI + + {{ ERR_REQUIRED }} + - - - - Identity Host - - {{ ERR_INVALID_URL }} - {{ ERR_REQUIRED }} - - - + + Redirect URI Logout + + - -
- - Auth Host - - {{ ERR_INVALID_URL }} - {{ ERR_REQUIRED }} - + + Public urls silent Login + + +
- - Client ID - - {{ ERR_REQUIRED }} - - - - Scope Id - - {{ ERR_REQUIRED }} - - - - Secret - - {{ ERR_REQUIRED }} - - - Silent Login - - - - Implicit Flow - - - - - Code Flow - - - - - - Redirect URI - - {{ ERR_REQUIRED }} - - - - Redirect URI Logout - - - - - Public urls silent Login - - - -
- - - - - - -
+
+ + +
+
diff --git a/demo-shell/src/app/components/settings/host-settings.component.scss b/demo-shell/src/app/components/settings/host-settings.component.scss index 724324270a..e2715b668f 100644 --- a/demo-shell/src/app/components/settings/host-settings.component.scss +++ b/demo-shell/src/app/components/settings/host-settings.component.scss @@ -3,11 +3,26 @@ min-height: 100%; align-items: center; + .adf-host-settings-actions { + text-align: end; + } + .adf-authentication-type { margin-bottom: 20px; margin-top: 10px; } + .adf-authentication-radio-group { + display: flex; + flex-direction: column; + margin: 15px 0; + align-items: flex-start; + } + + .adf-authentication-radio-button { + margin: 5px; + } + .adf-setting-container { width: 800px; display: table;