254 Commits

Author SHA1 Message Date
Eugenio Romano
f4976a1949
[ADF-4329][ASD-5330] plus Improve e2e (#6580)
Improve e2e
Fix SSO user avatar 
Fix Priority for APS1
2021-02-05 15:18:30 +00:00
siva kumar
301df3dcb8
[AAE-4504] FE - [ADF] Fetch destination Folder Path from a static path (#6557)
* [AAE4504] FE - [ADF] Fetch destination Folder Path from a static path

* * Added condition to check destination folder path

* * Added typescript way to check

* Fix attach file from local e2e

* * Added unit tests to the recent changes

* * Fixed comments

Co-authored-by: Cristina Jalba <cristina.jalba@ness.com>
2021-02-05 09:45:04 +00:00
Silviu Popa
b126c14a07
[MNT-22063] - fix form cloud layout (#6529) 2021-01-22 16:59:39 +00:00
Silviu Popa
98705109e1
[MNT-22051] - Fix form field mapping when value is zero (#6517)
* [MNT-22051] - Fix form field mapping when value is zero

* PR changes

* add validation for null
2021-01-19 13:57:20 +00:00
Pablo Martinez Garcia
dd09c3ac02
[AAE-4241] Populate date and datetime widgets on retrieve metadata (#6412)
* AAE-4241 Populate date and datetime widget on retrieve metadata

* AAE-4241 Trigger build

* AAE-4241 Use on change to allow inline editing

* AAE-4241 Fix unit tests

* AAE-4241 Increase coverage

* AAE-4241 Add coverage
2021-01-11 09:39:24 +00:00
Ketevani Kvirikashvili
83df643133
unit tests are added for using date fields as visibility conditions (#6478)
Co-authored-by: Ketevani Kvirikashvili <ketevani@Ketevanis-MacBook-Pro.local>
2020-12-23 11:27:03 +00:00
dhrn
02aad08070
[ADF-5281][ADF] Can't go through a form with date/dateTime widgets only with Tab (#6365)
* [ADF-5281][ADF] Can't go through a form with date/dateTime widgets only with Tab

* * update datetime library

* Update date-time.widget.html
2020-12-18 09:48:28 +00:00
Vito
7f31441946
[ADF-5294] - fixed problem on form rendering (#6405)
Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local>
2020-12-01 23:58:32 +00:00
Vito
3ea094cff2
[AAE-1379] - fixed form rapresentation (#6366)
Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local>
2020-11-24 09:50:53 +00:00
Vito
dab85c0c43
Added optional on variable models to avoid breaking changes (#6328)
Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local>
2020-11-06 15:59:47 +00:00
davidcanonieto
91b7458bee
[ADF-5223] Fix Amount widget styling (#6302)
* [ADF-5223] Fix Amount widget styling

* Fix unit test

* Fix e2e test

* Fix e2e test
2020-11-05 14:00:15 +00:00
Vito
9c1b6dbc69
[MNT-22003] - fixed check on variable for visibility service (#6306)
* [MNT-22003] - fixed check on variable for visibility service

* [MNT-22003] - update variable for test

* [MNT-22003] - added extra unit test for checking the process variable passed

Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local>
2020-11-04 15:52:12 +00:00
Pablo Martinez Garcia
b3e8ff27af
[AAE-3587] Use grid to allow using rowspan (#6151)
* AAE-3587 Use material grid to allow using rowspan

* AAE-3587 Fix column field rowspan

* AAE-3587 Add enableFixedSpace default value

* AAE-3587 Change material grid to CSS grid area

* AAE-3587 Review comments

* AAE-3587 Refactor for clarification of the complex method

* AAE-3587 Add types to method signatures
2020-10-16 14:36:58 +01:00
Vito
e22bdc7f4c
[ADF-5259] - addded unit test for custom widget (#6202)
Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local>
2020-10-02 13:51:15 +01:00
Vito
ffe04120a8
[MNT-21705] - fixed column display for fields (#6078)
* [MNT-21705] - fixed column display for fields

* [MNT-21705] - fixed unit test

* [MNT-21636] - adding flag for enable-disable column

* [MNT-21705] - fixed broken unit test

* [MNT-21705] - added documentation for extra form input field

Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local>
2020-09-24 10:20:18 +01:00
Pablo Martinez Garcia
3a464a7bed
[AAE-3514] Create file viewer widget (#6142)
* AAE-3514 Create File viewer widget

* AAE-3514 Fix complex fields behaviour

* AAE-3514 Modify attach widget selection indicator

* AAE-3514 Add unit tests to attach-file-cloud widget

* AAE-3514 Add unit tests

* AAE-3514 Increase coverage

* AAE-3514 Fix review comments

* AAE-3514 Fix review comments
2020-09-22 17:01:03 +01:00
davidcanonieto
f4ebaec501
[AAE-3296] Add unit tests for Tooltips in Form Widgets (#6094) 2020-09-10 08:39:26 +01:00
Denys Vuika
d051aed476
fix production builds (#6075)
* run builds scripts sequentially

* temporary enable prod builds

* use ng instead of nx for adf-core

* increase mem

* downgrage the ts target

* downgrade main tsconfig

* update config

* downgrade scss-bundle

* raise mem only for prod builds

* restore dev build

* update angular cdk

* try restore build target

* upgrade unit tests after angular upgrade

* fix tests after angular upgrade

* remove old e2e
2020-08-28 17:34:08 +01:00
Pablo Martinez Garcia
c1435c53e0
[AAE-3273] Manage empty option in retrieve content metadata dropdowns (#6024)
* AAE-3273 Manage empty option in retrieve content metadata dropdowns

* AAE-3273 Add unit tests

* AAE-3273 Refactor add not present fields

* AAE-3273 Add unit test in core
2020-08-25 00:36:22 +01:00
Eugenio Romano
8a6358ef44
[AAE-2984] fix save not modified Form with dropdown (#5976)
* fix save not modified Form with dropdown

* Update form-field.model.ts

* Update form-field.model.ts

* fix empty value scenario

* fix unit
2020-08-12 22:34:16 +01:00
davidcanonieto
9b3efb5502
[ADF-5165] Fix Checkbok widget in completed tasks (#5979) 2020-08-12 17:58:09 +01:00
Eugenio Romano
0a935acf23
[ADF-5159] fix visibility condition for label radio box (#5974)
* fix visibility condition for label radio box

* fix lint
2020-08-11 16:22:50 +01:00
Pablo Martinez Garcia
aeff60a1b5
[AAE-3084] Add retrieve metadata option in upload widget (#5903)
* AAE-3084 Add retrieve metadata option to upload widget file menu

* AAE-3084 Fix rebasing issues

* AAE-3084 Fix behaviour on empty dropdown

* Update en.json

* AAE-3084 Fix en.json

Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
2020-08-10 11:57:30 +01:00
davidcanonieto
1ade912e64
[AAE-2378] Add tooltip to Form Cloud Widgets (#5947) 2020-08-03 21:32:19 +01:00
arditdomi
d553c71b1e
[AAE-3110] Move upload button inside the node selector dialog (#5901)
* Open select dialog on all types, fetch destination folder from a relative path

* Dialog UI refactor, multiple upload from local

* Fix document list should automatically reload after upload

* Remove not used ViewChild

* Fix imports, read destination folder from form field

* support different alias

* Remove not needed property, reuse selection mode

* Remove unused methods

* Fix unit tests

* * Added unit tests
* Fixed failing unit tests

* * Added unit for upload button
* Skipped failing e2e

* * Removed process-storage related code

* * Removed unncessory model and code
*

* * Removed contentHost from formCloud model

* * Skiped content-services e2e

* Skip failing process e2e related to attachment

Co-authored-by: sivakumar414ram <siva.kumar@muraai.com>
Co-authored-by: maurizio vitale <maurizio.vitale@alfresco.com>
2020-07-31 06:38:58 +01:00
davidcanonieto
1e692252a5
[AAE-612] Support for Form Outcome Visibility Conditions (#5934) 2020-07-30 17:05:10 +01:00
Denys Vuika
cd2b489100
[ADF-5146] Upgrade to Angular 10 (#5834)
* remove useless module

* upgrade to angular 8

* upgrade material to v8

* upgrade adf libs

* migrate demo shell to v8

* upgrade to angular 9

* upgrade material to v9

* remove hammer

* upgrade nx

* upgrade datetime picker

* upgrade flex layout

* update core api

* remove entry components

* code fixes

* upgrade testbed usage

* code fixes

* remove unnecessary core-js from tests

* upgrade CLI

* ts config fixes

* fix builds

* fix testing config

* compile fixes

* fix demo shell dev setup

* fix core tests

* fix card view import

* upgrade nx

* disable smart builds for now

* remove fdescribe

* restore smart builds

* fix issues

* unify tsconfigs and fix newly found issues

* fix configuration and cleanup package scripts

* improved production build from the same config

* use ADF libs directly instead of node_modules

* disable smart build

* single app configuration (angular)

* fix core build

* fix build scripts

* lint fixes

* fix linting setup

* fix linting rules

* various fixes

* disable affected libs for unit tests

* cleanup insights package.json

* simplify smart-build

* fix content tests

* fix tests

* test fixes

* fix tests

* fix test

* fix tests

* disable AppExtensionsModule (monaco example)

* remove monaco extension module

* upgrade bundle check rules

* fix insights tests and karma config

* fix protractor config

* e2e workaround

* upgrade puppeteer and split linting and build

* reusable resources config

* update protractor config

* fix after rebase

* fix protractor config

* fix e2e tsconfig

* update e2e setup

* Save demoshell artifact on S3 and remove travis cache

* Push the libs on S3 and fetch before releasing it

* Add deps

* Add dependencies among libs and run only affected unit test and build

* fix the travis stage name

* fix after renaming dev to demoshell

* force the order of the projects

* remove unused dependencies

* fix content e2e script

* exit codes fix

* add extra exit codes to core e2e

* postinstall hook and package cleanup

* cleanup packages

* remove deprecated code and dependency on router

* improve bundle analyzer script

* minor code fixes

* update spec

* fix code after rebase

* upgrade protractor after rebase

* fix e2e mapping lib

* Update tsconfig.e2e.json

* update e2e tsconfig

* fix angular config

* fix protractor runs

* cache dist folder for libs

* update material selectors for dropdowns

* selector fixes

* remove duplicated e2e that have unit tests already

* fix login selector

* fix e2e

* fix test

* fix import issues

* fix selector

* cleanup old monaco extension files

* cleanup demo shell login

* add protractor max retries

* disable customisations of protractor

* fix login validation

* fix after rebase

* fix after rebase, disable latest versions of libs

* Hide the report tab and rollback the localstorage

* rename protractor config back to js

* restore lint as part of build

* cleanup code

* do not copy anything to node_modules on dist test

* fix unit tests

* config fixes

* fix code

* fix code after rebase

* fix tests

* remove existing words from spellcheck

* remove useless directive decorators

* update package.json after rebase

* add js-api back

* code fixes

* add missing export

* update configs

* fix code

* try fix the sso login test

* fix

* remove puppeteer unit

* fix e2e script

* fix

* make provider easy

* fix routes module before upgrade

* fix unit tests

* upgrade angular cli

* upgrade to angular 10

Co-authored-by: maurizio vitale <maurizio.vitale@alfresco.com>
Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com>
Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
2020-07-03 13:01:05 +01:00
davidcanonieto
ed68ebb751
[ADF-5163] Fix placeholder on Form widgets (#5812) 2020-06-24 15:18:33 +01:00
arditdomi
f76e0cd0bb
[AAE-2840] Not able to complete a task with attach file widget with mappings (#5809)
* [AAE-2840] Check pipeline with possible fix

* Remove update form loop causing overwriting of the form values

* Revert ACA-3235 causing form values regression
2020-06-24 13:35:47 +01:00
arditdomi
01244b1250
[ACA-3218] Fix attach file widget - wrong payload when link is true (#5777)
* [ACA-3218] Fix attach file widget link is always false

* Add unit tests
2020-06-18 18:18:34 +01:00
Denys Vuika
e9350bd297
various code quality fixes (#5792)
* various code quality fixes

* reduce duplicated code

* add safety check
2020-06-18 17:57:46 +01:00
Silviu Popa
61d52bd8cd
[ACA-3454] disable floating label for ammount (#5782)
Co-authored-by: Silviu Popa <p3701014@L3700101120.ness.com>
2020-06-17 16:28:18 +01:00
Eugenio Romano
904c7eff7c
fix start process testing (#5778) 2020-06-16 09:08:04 +01:00
Mercy Chrysolite
6890dea819
[ACA-3286] User gets error when removing the attached file (#5735) (#5744) 2020-06-02 18:38:18 +02:00
Eugenio Romano
084dacde26
Revert "[ACA-3286] User gets error when removing the attached file (#5735)" (#5738)
This reverts commit 1565a49f684562a0f90c7f7efca89a52e178a99a.
2020-05-29 11:58:49 +01:00
Mercy Chrysolite
1565a49f68
[ACA-3286] User gets error when removing the attached file (#5735) 2020-05-29 11:43:18 +01:00
Silviu Popa
e715997a2d
[ACA-3277] - remove unnecessary style (#5729)
Co-authored-by: Silviu Popa <p3701014@L3700101120.ness.com>
2020-05-27 19:14:07 +01:00
Baptiste Mahé
7a6a86e27e
[AAE-2478] Long task title show ellipsis when too long and add tool tip to task title inside form (#5704)
* [AAE-2478] Keep long task title on one line with ellipsis

* [AAE-2478] Add tool tip to task title inside form

* [create preview]

* Update form.component.html

Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
2020-05-22 09:36:31 +01:00
Denys Vuika
ae3ac440bc
Ivy compatible test modules (#5718)
* ivy compatible core unit tests

* ivy compatible content tests

* ivy compatible process tests

* ivy compatible process cloud tests

* ivy compatible insights tests

* fix content test

* fix content test
2020-05-21 16:25:28 +01:00
Denys Vuika
654be10dd2
Pre-Angular 9 upgrade fixes (#5712)
* remove deprecated angular/http

* upgrade adf libs

* fix production builds

* ivy-compatible translate module usage

* improved module usage

* upgrade content services module

* fix process services tests

* upgrade process cloud tests

* lint fixes

* update core max size

* fix insights test module

* remove insights lazy loading workaround

* fix insights module exports

* * Fixed skipped form-cloud unit test and removed duplicated tests

* cleanup the use of services

Co-authored-by: sivakumar414ram <siva.kumar@muraai.com>
2020-05-20 16:51:51 +01:00
Denys Vuika
347e64fd91
Pre-Angular upgrade fixes (#5709)
* code fixes

* code fixes

* more code fixes

* even more fixes

* add missing typescript for cli

* rollback info drawer test changes

* use npx for cli commands

* restore attach providers
2020-05-18 14:02:15 +01:00
davidcanonieto
22acd3f6e6
[ADF-5143] Fix Checkbox widget value parsing (#5706) 2020-05-14 23:52:09 +01:00
Baptiste Mahé
78332449a5
[AAE-2200] Upload dialog title should match selected site. (#5648)
* [AAE-2200] content-node-selector-panel pass starting site and emit event onSiteChange

* [AAE-2200] content-node-selector handle siteChange event

* [AAE-2200] content-node-selector has good default title

* [AAE-2200] attach-file-widget-dialog handle siteChange event

* [AAE-2200] Minor fixes on attach-file-widget-dialog

* [AAE-2200] site-dropdown reload site list unfil it find its default site

* [AAE-2200] Fix title translation for attach-file-widget-dialog

* fix missing property description

* Unit test fix

* [AAE-2200] Fix title unit tests

* [AAE-2200] Fix sites-dropdown infinite loading

* [AAE-2200] Add content-node-selector-panel siteChange event unit tests

* [AAE-2200] Refactor sites-dropdown unit tests

* [AAE-2200] Refactor the 'allSitesLoaded' check

* [AAE-2200] Add sites-dorpdown default value unit tests

* [AAE-2200] Move getSiteFromNodePath method to sites service

* [create preview]

* [create preview]

* [AAE-2200] Better hasMoreItems check in sites-dropdown (fix unit test)

Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com>
Co-authored-by: Cano <david.cano.nieto@gmail.com>
Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
2020-05-14 10:38:16 +01:00
arditdomi
a8c252db8b
[ACA-3245] Fetch alfresco repo name from an API (#5676)
* [ACA-3245] Fetch alfresco repo name from an API

* [ACA-3245] Take the repo name from the API only when it is not defined in the app config

* [ACA-3245] Remo alfresco-1 as default in app.config service

* [ACA-3245] Remove passing null argument when calling getRepositories function

* [ACA-3245] Revert removing function parameter includeAccounts

* [ACA-3245] Add tenantId as optional

* [ACA-3245] Revert method

* [ACA-3245] Change both parameters to optional

* [ACA-3245] Rename param
2020-05-13 20:56:29 +01:00
siva kumar
6da489a7ff
[ACA-3235] FE - Should not include invisible fields in payload on Start/Save adf-form. (#5681)
* [ACA-3235] FE - Should not include invisible fields in payload on Start/Save adf-form.

* * Added unit test to the recent changes
2020-05-13 10:26:12 +01:00
Baptiste Mahé
c5b4888126
[ADF-5131] Radio buttons display below label (#5672) 2020-05-11 11:36:49 +01:00
davidcanonieto
7627b01bb1
[AAE-2487] Fix Checkbox Widget bug (#5657) 2020-04-30 13:19:33 +01:00
Denys Vuika
122bd9face
[ADF-5106] allow to redefine form widgets (APS 1.x and cloud) (#5601)
* create failing test

* fix form and start form widget registration

* update cloud form
2020-04-21 15:47:09 +01:00
dhrn
79cb328205
[ADF-1881] Consolidate NodeService and NodesApiService (#5591)
* [ADF-1881] Consolidate NodeService and NodesApiService

* * docs added
2020-04-06 15:21:54 +01:00
Baptiste Mahé
3fa95d6bd8
[AAE-1579] Fixing the style of the prefix of amount widget (#5546)
* [AAE-1579] Fix amount widget prefix

* top of prefix fixed in modeler

* [AAE-1579] prefix color get from theming

* [AAE-1579] fix color and removed useless include

* [AAE-1579] remove useless import and prefix red when input empty and required
2020-03-19 09:53:58 +00:00