198 Commits

Author SHA1 Message Date
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
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
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
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
dhrn
c64396b2fe
[AAE-1923] Form APS E2E (#5540)
* [AAE-1923] Form APS E2E

* * minor changes

* * fixed e2e
2020-03-16 11:49:11 +00:00
Vito
45f023c93a
AAE-1945 - Added extra form unit test (#5524)
* AAE-1945 - start adding test form rendering for task-details

* Added last unit test for AAE-1945

* AAE-1945 - removed wrong fdescribe

* AAE-1945 - fixed whitespace

* AAE-1945 - fixed wrong promise errored

* AAE-1945 - fixed failing unit test
2020-03-03 18:45:41 +00:00
Vito
359022de65
[AAE-2009] - Added visibility unit test for form (#5526)
* AAE-2009 - added visibility unit test for form widgets

* AAE-2009 - added visibility unit test for form widgets

* AAE-2009 - fixed id of mock form

* AAE-2009 - fixed linting
2020-03-03 16:59:01 +00:00
Vito
7c849d87f4
AAE-1941 - Added unit test for Number Widget (#5498)
* AAE-1938 - added first stack of visibility tests for form

* AAE-1941 - added number widget unit test

* fixed wrong import

* AAE-1941 - fixed unit test for form rendering
2020-02-28 16:10:07 +00:00
Vito
6bf8c17771
[AAE-1944] - Amount Widget Unit test (#5504)
* AAE-1944 - added unit test for amount widget

* AAE-1944 - fixed wrong header and lint problem
2020-02-28 14:04:26 +00:00
Baptiste Mahé
7a79d5bebf
[AAE-1943] Dropdown widget unit test (#5513)
* [AAE-2034] Radio Button displaued in read-only mode

* [AAE-2034] Added tests and disable for all radio group and not every button

* [AAE-1943] C309672 and C309675 into unit tests

* [AAE-1943] C309680 automated

* [AAE-1943] C309682 automated
2020-02-28 14:03:13 +00:00
Denys Vuika
a9b49a1eb7
[AAE-1883] document list preset unit tests (#5519)
* document list preset unit tests

* remove useless tests

* remove useless tests

* remove even more garbage

* remove junk
2020-02-28 13:26:01 +00:00
Vito
03fb9c32ec
AAE-2073 - reverted partially the changes on the parsing form of form… (#5517)
* AAE-2073 - reverted partially the changes on the parsing form of form service

* AAE-2073 - reverted changes on form service
2020-02-27 20:40:53 +01:00
Vito
1e67f50346
AAE-1938 - added first stack of visibility tests for form (#5489)
* AAE-1938 - added first stack of visibility tests for form

* AAE-1938 - fixed unit test after form service changes

* AAE-1938 - rebased with last development

* AAE-1938 - fixed failing e2e

* AAE-1938 - fixed mock definition to match updated service behaviour

* Fixed failing e2e

* AAE-1938 - try to fix cancel uploads
2020-02-26 14:46:01 +00:00
davidcanonieto
fcda1e3c7e
[AAE-1940] Add unit tests for Radio Buttons Widget (#5505)
* [AAE-1940] Add unit tests for Radio Buttons Component

* Update tests
2020-02-24 15:45:35 +00:00
Baptiste Mahé
53e1940ee7
[AAE-2034] Display disabled radio button in read-only mode (#5500)
* [AAE-2034] Radio Button displaued in read-only mode

* [AAE-2034] Added tests and disable for all radio group and not every button

* Test disbled property
2020-02-24 11:19:56 +00:00
Eugenio Romano
2d0b571875
remove not needed spaces (#5495)
* remove not usefull spaces

* increase timeout

* increase timeout

* fix
2020-02-23 17:00:16 +00:00
davidcanonieto
9898ad4401
[AAE-1939] Add unit tests to Text Widget (#5488)
* [AAE-1939] Add unit tests to Text Widget

* Improve code

* Improve toBeFalsy/toBeTruthy

* Configure TestBed only with needed modules
2020-02-23 12:38:46 +00:00
Eugenio Romano
1847768b56
[AAE-1848] fix kebab case files and add tlsint rule (#5481)
* fix kebab case files and add tlsint rule

* headless

* m 2 in e2e

* download file in headless chrome

* fix budget

* fix import

* fix import
2020-02-20 21:08:42 +00:00
Baptiste Mahé
918d27bc8a
C310322 to C310324 made in unit tests (#5493) 2020-02-20 15:29:04 +00:00
Denys Vuika
a0926a38d8
Minor code and style fixes (#5398)
* type fixes

* import fixes

* fix typos

* fix warning for private props that init in ctor only

* typing fixes

* typing fixes

* style cleanup

* fix test template
2020-02-09 22:03:32 +00:00
Baptiste Mahé
a3cbf9bcd3
[ADF-4920] Fixed checkbox dropdown style when invalid (#5444)
* ADF-4920 Fixed checkbox dropdown style when invalid

* ADF-4920 Corrected misspelling
2020-02-07 17:19:27 +00:00
Chris Rodriguez
4b102c1e7f [ACA-2475] keyboard trap (#5386)
* chore: added cdk keyboard trap to mat-datpicker

* chore: keyboard trap in datetimepicker
2020-01-24 11:08:02 +00:00
Denys Vuika
c7c1d76510
[AAE-936] injecting external settings for amount widget (#5389)
* injecting external settings for amount widget

* undo form changes
2020-01-23 11:59:40 +00:00
Silviu Popa
e0bc43d933 [AAE-1235] - fix task completion with datetime form widget (#5340) 2020-01-17 14:38:56 +00:00
Marouan Bentaleb
dac0f72b96 Adding amount row editor for dynamic table (#5366)
* Adding amount row editor for dynamic table

* Adding amount row editor for dynamic table
2020-01-15 15:26:30 +01:00
Maurizio Vitale
88d89b4ca8 [AAE-1152] Making sure the people and group widget is working fine as part of form (#5322)
* Making sure the people and group widget is working fine as part of the form

* Be able to save a form with people and group

* Fix tslint

* Fix html error

* Fix unit test
2019-12-11 11:22:50 +00:00
Eugenio Romano
703b96c9b0
[AAE-1152] Add People and Group component in the AAE Forms (#5314)
* firt version groupo component widget

* fix group

* fix compilation issue

* fix compilation issue

* fix compilation issue

* fix compilation issue

* fix problem update script

* multiple browser ps cloud

* add field assignment

* add field in form model

* no need subobject we need an issue to refactor the field model

* no need subobject we need an issue to refactor the field model

* fix unit test

* remove title modify

* revert

* fix lint

* exclude AAE-1179

* exclude tooltip e2e
2019-12-10 11:24:24 +00:00
Denys Vuika
8e6e755ed1
Revert "[ADF-4861] Fix memory leak in Date widgets and Form Cloud Model (#5041)" (#5279)
This reverts commit 2def8d05575709e613dc6ee9c59401346a4c3ae9.
2019-11-22 14:03:49 +00:00
Denys Vuika
e806e97c75 [AAE-207] support aps 1.x for upload reset (#5260)
* support aps 1.x for upload reset

* update test

* revert pdfjd change

* fix error reporting and crash from upload button

* i18n support for generic error

* fix test
2019-11-21 15:06:00 +00:00
Eugenio Romano
e667ec4f2f
[AAE-174] Show radio box in text box when read only (#5182)
* show radio box in text box when read only

* show radio box in text box when read only
2019-10-23 12:23:11 +01:00
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