From ee9d54245c7651a41c0563847f28012e5815b938 Mon Sep 17 00:00:00 2001 From: Davide Negretti Date: Thu, 30 Sep 2021 13:19:52 +0200 Subject: [PATCH 01/10] [CST-4659] Deque accessibility issues - 469979 --- .../number-picker.component.html | 4 ++-- .../number-picker.component.scss | 21 +++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/app/shared/number-picker/number-picker.component.html b/src/app/shared/number-picker/number-picker.component.html index 1f6c08d92e..84fb47f0c8 100644 --- a/src/app/shared/number-picker/number-picker.component.html +++ b/src/app/shared/number-picker/number-picker.component.html @@ -1,6 +1,6 @@
- -

{{'form.loading' | translate}}

@@ -40,5 +50,3 @@
- - From 8173d7d80598bf2251f242166789d95003113ef9 Mon Sep 17 00:00:00 2001 From: Davide Negretti Date: Tue, 5 Oct 2021 17:51:31 +0200 Subject: [PATCH 08/10] [CST-4659] Deque accessibility issues - 470010 --- ...amic-form-control-container.component.html | 141 +++++++++--------- 1 file changed, 71 insertions(+), 70 deletions(-) diff --git a/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html b/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html index 2fa3ea1723..3cf06e4121 100644 --- a/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html +++ b/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html @@ -1,79 +1,80 @@
- - - -
+ + +
-
- - - -
+
+ +
+ + +
-
- {{ message | translate: model.validators }} -
+
+ {{ message | translate: model.validators }} +
-
-
- -
-
- -
- - - - - - - -
-
- +
+ +
+
+ +
+
+ + + + + + + +
+
+
- - From eaa3d96bc7e596a65f2f3d4713060a4c4404c85d Mon Sep 17 00:00:00 2001 From: Davide Negretti Date: Wed, 6 Oct 2021 15:25:37 +0200 Subject: [PATCH 09/10] [CST-4659] Deque accessibility issues - 470010 and tests --- .../ds-dynamic-form-control-container.component.html | 2 +- .../models/date-picker/date-picker.component.spec.ts | 1 + src/app/shared/testing/dynamic-form-mock-services.ts | 3 ++- .../upload/file/edit/section-upload-file-edit.model.ts | 4 ++-- src/assets/i18n/en.json5 | 4 ++++ 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html b/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html index 3cf06e4121..fc115e043a 100644 --- a/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html +++ b/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html @@ -11,7 +11,7 @@
-
+
{ [bindId]='bindId' [group]='group' [model]='model' + [legend]='legend' (blur)='onBlur($event)' (change)='onValueChange($event)' (focus)='onFocus($event)'>`; diff --git a/src/app/shared/testing/dynamic-form-mock-services.ts b/src/app/shared/testing/dynamic-form-mock-services.ts index 2cf705ff90..1cbd470e23 100644 --- a/src/app/shared/testing/dynamic-form-mock-services.ts +++ b/src/app/shared/testing/dynamic-form-mock-services.ts @@ -1,5 +1,6 @@ export const mockDynamicFormLayoutService = jasmine.createSpyObj('DynamicFormLayoutService', { - getElementId: jasmine.createSpy('getElementId') + getElementId: jasmine.createSpy('getElementId'), + getClass: 'class', }); export const mockDynamicFormValidationService = jasmine.createSpyObj('DynamicFormValidationService', { diff --git a/src/app/submission/sections/upload/file/edit/section-upload-file-edit.model.ts b/src/app/submission/sections/upload/file/edit/section-upload-file-edit.model.ts index 300a4b461f..14886128a5 100644 --- a/src/app/submission/sections/upload/file/edit/section-upload-file-edit.model.ts +++ b/src/app/submission/sections/upload/file/edit/section-upload-file-edit.model.ts @@ -74,7 +74,7 @@ export const BITSTREAM_FORM_ACCESS_CONDITION_START_DATE_CONFIG: DynamicDatePicke required: null }, errorMessages: { - required: 'submission.sections.upload.form.date-required' + required: 'submission.sections.upload.form.date-required-from' } }; export const BITSTREAM_FORM_ACCESS_CONDITION_START_DATE_LAYOUT: DynamicFormControlLayout = { @@ -104,7 +104,7 @@ export const BITSTREAM_FORM_ACCESS_CONDITION_END_DATE_CONFIG: DynamicDatePickerM required: null }, errorMessages: { - required: 'submission.sections.upload.form.date-required' + required: 'submission.sections.upload.form.date-required-until' } }; export const BITSTREAM_FORM_ACCESS_CONDITION_END_DATE_LAYOUT: DynamicFormControlLayout = { diff --git a/src/assets/i18n/en.json5 b/src/assets/i18n/en.json5 index 4b6356f556..f3f09da1d4 100644 --- a/src/assets/i18n/en.json5 +++ b/src/assets/i18n/en.json5 @@ -3599,6 +3599,10 @@ "submission.sections.upload.form.date-required": "Date is required.", + "submission.sections.upload.form.date-required-from": "Grant access from date is required.", + + "submission.sections.upload.form.date-required-until": "Grant access until date is required.", + "submission.sections.upload.form.from-label": "Grant access from", "submission.sections.upload.form.from-placeholder": "From", From d264576a0793cdb17fcca222273fb1da22140069 Mon Sep 17 00:00:00 2001 From: Davide Negretti Date: Mon, 18 Oct 2021 10:40:02 +0200 Subject: [PATCH 10/10] [CST-4659] Deque accessibility issues - fix 470001 --- .../sections/upload/file/section-upload-file.component.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/submission/sections/upload/file/section-upload-file.component.html b/src/app/submission/sections/upload/file/section-upload-file.component.html index ce10e0ea59..bac71df1a7 100644 --- a/src/app/submission/sections/upload/file/section-upload-file.component.html +++ b/src/app/submission/sections/upload/file/section-upload-file.component.html @@ -29,17 +29,17 @@ - - -