diff --git a/e2e/resources/activiti7/simpleapp.zip b/e2e/resources/activiti7/simpleapp.zip index c616372d35..01e9fd77bb 100644 Binary files a/e2e/resources/activiti7/simpleapp.zip and b/e2e/resources/activiti7/simpleapp.zip differ diff --git a/lib/core/src/lib/common/utils/date-fns-utils.spec.ts b/lib/core/src/lib/common/utils/date-fns-utils.spec.ts index c7793ec5c2..46c353e8cf 100644 --- a/lib/core/src/lib/common/utils/date-fns-utils.spec.ts +++ b/lib/core/src/lib/common/utils/date-fns-utils.spec.ts @@ -78,6 +78,7 @@ describe('DateFnsUtils', () => { it('should parse alternative ISO datetime', () => { const result = DateFnsUtils.parseDate('1982-03-13T10:00:000Z', `yyyy-MM-dd'T'HH:mm:sssXXX`); + expect(result.toISOString()).toBe('1982-03-13T10:00:00.000Z'); }); diff --git a/lib/core/src/lib/form/components/form-renderer.component.html b/lib/core/src/lib/form/components/form-renderer.component.html index fa9fdd267d..1834fcc9f4 100644 --- a/lib/core/src/lib/form/components/form-renderer.component.html +++ b/lib/core/src/lib/form/components/form-renderer.component.html @@ -3,8 +3,10 @@
- - + +
+ +
diff --git a/lib/core/src/lib/form/components/form-renderer.component.scss b/lib/core/src/lib/form/components/form-renderer.component.scss index 511849e7ed..809d701719 100644 --- a/lib/core/src/lib/form/components/form-renderer.component.scss +++ b/lib/core/src/lib/form/components/form-renderer.component.scss @@ -13,6 +13,40 @@ height: 100%; } +.alfresco-tabs-widget { + width: 100%; + position: absolute; + + .adf-form-tab-group { + width: 100%; + z-index: 9999; + } + + #{ms.$mat-tab-body} { + margin-bottom: 8em; + } + + #{ms.$mat-tab-header} { + z-index: 10; + margin: 0; + background-color: white; + position: sticky; + /* stylelint-disable-next-line value-no-vendor-prefix */ + position: -webkit-sticky; /* macOS/iOS Safari */ + /* stylelint-disable-next-line declaration-no-important */ + margin-left: 0 !important; + top: 0; + } + + #{ms.$mat-tab-body-wrapper} { + padding-top: 16px; + } +} + +.mat-mdc-card-content:first-child { + padding-top: 0; +} + .adf-container-widget { .adf-grid-list { display: grid; @@ -116,12 +150,18 @@ overflow: hidden; } + & #{ms.$mat-tab-header} { + position: fixed; + z-index: 1000; + } + & #{ms.$mat-card-header-text} { margin: 0; } & #{ms.$mat-tab-body-content} { overflow: hidden; + padding-top: 0; } & #{mat-tab-label-text} { diff --git a/lib/core/src/lib/styles/_mat-selectors.scss b/lib/core/src/lib/styles/_mat-selectors.scss index f44e0aa23e..9af08d8d54 100644 --- a/lib/core/src/lib/styles/_mat-selectors.scss +++ b/lib/core/src/lib/styles/_mat-selectors.scss @@ -6,8 +6,11 @@ $mat-tab-label-active: '.mdc-tab--active'; $mat-tab-label-container: '.mat-mdc-tab-label-container'; $mat-tab-label-text: '.mdc-tab__text-label'; $mat-tab-body: '.mat-mdc-tab-body'; +$mat-tab-header: '.mat-mdc-tab-header'; $mat-tab-body-content: '.mat-mdc-tab-body-content'; $mat-tab-ink-bar: '.mdc-tab-indicator'; +$mat-tab-body-wrapper: '.mat-mdc-tab-body-wrapper'; +$mat-tab-body-content: '.mat-mdc-card-content'; $mat-chip: '.mat-mdc-chip'; $mat-chip-list: '.mat-mdc-chip-list'; $mat-checkbox: '.mat-mdc-checkbox'; diff --git a/lib/process-services-cloud/src/lib/form/components/form-cloud.component.html b/lib/process-services-cloud/src/lib/form/components/form-cloud.component.html index c0e9959363..847de955a9 100644 --- a/lib/process-services-cloud/src/lib/form/components/form-cloud.component.html +++ b/lib/process-services-cloud/src/lib/form/components/form-cloud.component.html @@ -4,94 +4,107 @@
-
+ class="adf-cloud-form-container adf-cloud-form-{{ displayConfiguration?.options?.fullscreen ? 'fullscreen' : 'inline' }}-container" + [style]="formStyle" +> +
+ +
+ + {{ form.taskName }} + + {{ 'FORM.FORM_RENDERER.NAMELESS_TASK' | translate }} + + +
- -
- - {{form.taskName}} - - {{'FORM.FORM_RENDERER.NAMELESS_TASK' | translate}} - - -
- - - -
- - + -
-
- -
- {{form.taskName}} - - {{'FORM.FORM_RENDERER.NAMELESS_TASK' | translate}} - - - - - - - - + close + + + + +
+ + +

+
+ check_circle + + error + +
+
+ +
+
+ +
+ {{ form.taskName }} + + {{ 'FORM.FORM_RENDERER.NAMELESS_TASK' | translate }} + + +

+
+
+ + + +
- {{'ADF_CLOUD_TASK_FORM.OPEN_NEXT_TASK.LABEL' | translate}} + {{ 'ADF_CLOUD_TASK_FORM.OPEN_NEXT_TASK.LABEL' | translate }}
- -
+
+ +
diff --git a/lib/process-services-cloud/src/lib/form/components/form-cloud.component.scss b/lib/process-services-cloud/src/lib/form/components/form-cloud.component.scss index 1c5619fab7..c608f26bad 100644 --- a/lib/process-services-cloud/src/lib/form/components/form-cloud.component.scss +++ b/lib/process-services-cloud/src/lib/form/components/form-cloud.component.scss @@ -17,6 +17,7 @@ flex: 1; flex-direction: column; display: flex; + position: relative; } .adf-card-actions-spacer { @@ -72,13 +73,14 @@ &-content-card { overflow-y: auto; + position: static; &-fullscreen { padding: 0; height: 100%; width: 100%; - .adf-cloud-form-content-card-container { + &-container { display: flex; flex-direction: column; height: 100%; @@ -89,6 +91,14 @@ } } } + + &-actions { + position: fixed; + bottom: 0; + width: -webkit-fill-available; + z-index: 1; + background-color: white; + } } &-sidebars {