1128 Commits

Author SHA1 Message Date
Denys Vuika
d7ab0417b8
[AAE-622] No implicit returns (#5157)
* enable noImplicitReturns rule

* type fixes

* fix return types

* fix return value

* fix tests

* fix visibility service

* update tests

* add missing types

* fix test
2019-10-17 09:35:39 +01:00
Eugenio Romano
48aca2d30f
[ADF-4897] delete test-cookie after check (#5164)
* remove cookie test after check

* remove cookie test after check

* remove cookie test after check

* remove cookie test after check

* make nullable variable optional in cookie

* make nullable variable optional in cookie
2019-10-17 00:16:11 +01:00
Cilibiu Bogdan
8bb8231a83 mark aria headings (#5155) 2019-10-15 15:23:55 +01:00
Eugenio Romano
210f1d8f59 [#4961] Angular v9 (ivy) compatibility fixes #5153 (#5156)
* Angular 9 compatibility: add explicit types to prevent automatic deep imports

If you do not provide an explicit return type to a function then TypeScript
will try to guess it and create a dynamic import type for the `.d.ts` files.

Often the imports incorrectly point to a path deep within a package,
rather than accessing the type via the correct public facing import.

From Angular v9, using ivy, such deep imports cause compilation
errors and will prevent this library from being used for ivy enabled
applications.

This commit fixes this problem for a component and a service that
the adf-core library exports.

* Angular 9 compatibility: import DOCUMENT from `@angular/common`

In Angular 7 importing `DOCUMENT` from `platform-browser` was
deprecated, and it was removed completely in Angular 8.

* fix type afterlast alpha

* fix type after last alpha

* fix types demo shell
2019-10-15 15:22:42 +01:00
Eugenio Romano
0736a29d5c
fix style issues (#5151) 2019-10-14 18:32:35 +01:00
Denys Vuika
b3ca2166f0 upgrade js api (#5152)
* upgrade to latest js api

* add missing types

* remove useless function

* fix types

* enable strict mode

* Revert "enable strict mode"

This reverts commit 8e3f9c4563a46c28799cbf43c638e31ff751c55c.
2019-10-14 18:28:01 +01:00
davidcanonieto
47ec01555a [ADF-4893] Fix visibility condition in datatable action menu (#5088)
* [ADF-4893] Fix visibility condition in datatable action menu

* Add filtering for when menu cache is disabled

* Fix unit test and improve code

* Fix linting

* Fix linting

* Add missing return type
2019-10-14 15:28:24 +01:00
maurizio vitale
82ae1e00d6 Fix the insight style path 2019-10-10 12:32:50 +01:00
Denys Vuika
b1d0c50e88 [ADF-4926] fix attachments downloading (#5134)
* fix attachments downloading

* update code and tests
2019-10-10 12:06:36 +01:00
davidcanonieto
2def8d0557 [ADF-4861] Fix memory leak in Date widgets and Form Cloud Model (#5041)
* [ADF-4836] Fix memory leak in Date widgets and Form Cloud Model

* Remove unit tests based on old logic
2019-10-10 11:01:06 +01:00
Denys Vuika
f731988ca6 [ADF-4911] migrate identity role service (#5096)
* migrate IdentityRoleService implementation

* update unit tests

* move interfaces to the origin

* move models to proper places

* migrate model to interface

* fix test

* update docs
2019-10-10 10:25:57 +01:00
Cilibiu Bogdan
8da16ea1a7 [ADF-4937] Viewer - Drag and Drop is not operable with keyboard alone (#5126)
* add keyboard event logic

* tests

* fix outline visibility
2019-10-09 17:52:26 +01:00
Cilibiu Bogdan
922e6ae3ab add aria-label attribute (#5138) 2019-10-08 10:30:06 +01:00
Andras Popovics
ca79190880 Second part 2019-10-07 10:59:45 +01:00
Andras Popovics
14800ce399 [ADF-4896] Merging AMA and ADF notifications for a better world 2019-10-07 10:57:26 +01:00
Cilibiu Bogdan
922a85935e add sidebar button aria-expanded attribute (#5120) 2019-10-07 10:18:39 +01:00
Cilibiu Bogdan
6857213db6 trap focus for overlay viewer (#5127) 2019-10-06 18:08:15 +01:00
Suzana Dirla
9dd78b10f9 e2e fixes (#5129)
* fix e2e test [C260140] Copy - No permission folder

* Fix e2e test [C299158] Login component - SSO Grant type password (implicit flow false)
2019-10-06 18:05:52 +01:00
Cilibiu Bogdan
4a531dafcd don't use image path for alt text (#5130) 2019-10-06 18:04:50 +01:00
Suzana Dirla
3d604140d8 generic text (#5105) (#5121) 2019-10-02 18:56:10 +01:00
Eugenio Romano
2d58d2f458 bump 3.5.0 2019-09-30 17:34:25 +01:00
Eugenio Romano
20fa331d6f
sso settigs fix (#5114)
* fix test

* update-js-api

* update-js-api

* invert test order for some reason

* split before save publicUrls

* split before save publicUrls

* [ADF-4810] split if publicUrls is not Array

* [ADF-4810]better check for string
2019-09-30 15:36:27 +01:00
Cilibiu Bogdan
9f22cb5cc7 fix focus outline (#5115) 2019-09-30 14:19:22 +01:00
Eugenio Romano
bcacd8b42e
[ADF-4810] fix sso settings (#5108)
* fix sso settings

* fix test

* update-js-api

* update-js-api

* invert test order for some reason
2019-09-30 13:32:17 +01:00
Eugenio Romano
4709cda51e
localization 3.5.0 (#5112) 2019-09-30 12:00:59 +01:00
Denys Vuika
178740bbde [ADF-4921] upload widget fixes (#5109)
* upload widget fixes

* fix mocks
2019-09-29 13:48:01 +01:00
davidcanonieto
7ebd287728 [APM-1412] Fix Json dialog on Form json widget (#5107) 2019-09-27 15:08:48 +01:00
Cilibiu Bogdan
492a8e72f1 generic text (#5105) 2019-09-27 10:55:40 +01:00
Cilibiu Bogdan
82b0879b0f [ADF-4810] sso public urls configuration (#5102)
* update OAUTH schema and model

* update demoshell config for public urls
2019-09-26 13:37:48 +01:00
Eugenio Romano
3dc92beeb9
Review documentation plus some tools fix (#5100)
* review 3.5.0 doc

* fix documentation

* fix documentation

* fix documentation
2019-09-26 10:27:04 +01:00
davidcanonieto
6ec6be36d5 [ADF-4913] Fix Gallery View in datatable Component (#5101) 2019-09-26 08:41:29 +01:00
arditdomi
4b1ed97943 [ADF-4909] Hide about-plugins and about-product-versions sections whe… (#5095)
* [ADF-4909] Hide about-plugins and about-product-versions sections when they are empty

* [ADF-4909] Add missing unsubsciption
2019-09-24 16:48:09 +01:00
Denys Vuika
7a3fdfb490 fix readonly attribute 2019-09-20 13:31:31 +01:00
Maurizio Vitale
cd7e21a23d [ADF-4858] Make sure process-services works with ng commands (#5067)
* Process-services:
Making sure you can run
ng build process-services
ng test process-services

* Fix the path of the styles

* move the file in the right place
2019-09-20 09:47:17 +01:00
Denys Vuika
90b2cee70d
[ADF-4894] Json editor dialog (#5082)
* move download-zip to its own folder

* json dialog

* update docs

* update test

* disable e2e test

* json widget for the Form

* remove deprecated test

* fix tests, update display text name
2019-09-20 07:26:37 +01:00
dhrn
c2af8a23f0 [ADF-4868] [APS-1] adf-content-node-selector seems broken when we upload from External Alfresco content service (#5078) 2019-09-19 11:48:05 +01:00
Cilibiu Bogdan
d5b4caa5ed [ADF-4892] DocumentList - set appropriate column aria-sort state (#5079)
* set specific aria-sort state

* return false when table has no sorting

* move logic to component

* aria sort method

* tests
2019-09-18 15:21:35 +01:00
Silviu Popa
d89b61cff0 [ACTIVITI-3746] - fix form completion with tab fields (#5059)
* [ACTIVITI-3746] - fix form completion with tab fields

* fix lint

* fix unit test

* refractoring and PR changes

* fix unit tests
2019-09-16 12:57:46 +03:00
Denys Vuika
ae56d61ea3 use custom chrome version with puppeteer (#5070)
* use custom chrome version with puppeteer

* pin to Chromium 76

* update code to trigger travis

* update protractor

* try remove extra env setting

* try chrome 62

* upgrade to chrome 76, exclude 3 tests

* add safety check for the focus

* toggle tests

* disable tests

* disable flaky test

* update names

* disable flaky test

* disable flaky test

* disable test

* disable test

* fix name simpleapp

* rename simpleApp to simpleapp project change
2019-09-13 16:20:19 +01:00
Denys Vuika
77415d08a0 temporary switch off the FormModel json typing 2019-09-13 13:12:24 +01:00
Cilibiu Bogdan
5b11e52903 [ADF-4888] DocumentList - cell header title is announced over cell value (#5068)
* fix focus outline

* focus on cell values

* focus on size value if defined

* row actions menu aria-label
2019-09-12 15:04:43 +01:00
arditdomi
c2c883885e [ADF-4878] Refactor, Split ADF About component (#5064)
* Refactor, Split ADF About component

* [ADF-4878] Add documentation

* [ADF-4878] Rename Component

* [ADF-4878] Implement comments

* [ADF-4878] Update documentation for about components
2019-09-12 15:02:28 +01:00
Denys Vuika
d90497a3f8 fix FormRepresentationModel interface 2019-09-12 13:40:38 +01:00
Maurizio Vitale
4de00fd6ca [ADF-4867] adf-error-component refactor (#5056)
* Refactor the adf-error-component
Move the custom buttons on demoshell
Fix unit test
Remove usefull e2e

* Add basic example
2019-09-07 10:29:19 +01:00
Cilibiu Bogdan
bf6889ee54 [ADF-4831] DocumentList - filetype alternative text is not meaningful (#4998)
* filetype alternative text

* icons text translation key

* icon text accessibility translation

* fix e2e

* add miscellaneous file type
2019-09-05 11:50:28 +01:00
Denys Vuika
2360ccc6d5 [ACTIVITI-3720] cloud form support for form variable mapping (#5044)
* universal form model

* parse variables correctly

* turn group model into interface

* remove console.log

* interface instead of class

* update form id type

* improved form variable parsing

* improved variable conversion

* fix cloud tests

* fix typings and code bugs
2019-09-04 20:14:21 +01:00
Mario Romano
e4448259f3 [ACTIVITI-3739] make display show json types (#5046) 2019-09-03 15:11:20 +01:00
Vito
19a17ca6e6 [ADF-4823] added download and show preview for attach cloud widget (#4996)
* [ADF-4823] fixed download and start fixing show preview

* [ADF-4823] fixed preview files

* [ADF-4823] - added unit test

* [ADF-4823] - fixed lint problem

* [ADF-4823] - rebased and fixed lint problem

* added a new method in BrowserActions to check that the action menu is visible, and using that in the tests.

* linting fixes
2019-09-03 11:10:40 +01:00
Denys Vuika
ce50e9a3d3 [ACTIVITI-3720] form variables enhancements (#5028)
* support form variables on the model level

* take 'variables.name' convention into account

* move API to a proper place

* unit tests and code fixes

* unit tests for form field model

* process variable interface
2019-09-02 11:20:54 +01:00
davidcanonieto
1cb4dfc1b8 [ADF-4764] Hide placeholder in Amount Widget in readOnly mode (#5035)
* [ADF-4764] Hide placeholder in Amount Widget in readOnly mode

* add missing return type
2019-08-31 00:30:13 +01:00