Commit Graph

971 Commits

Author SHA1 Message Date
AleksanderSklorz
67f1a4c506 [ACS-6189] broken decision table dates after deprecation of moment date adapter 3 (#9026)
* ACS-6189 Fixed date format

* ACS-6189 Fixed unit test

* ACS-6189 Reverted unwanted changes

* ACS-6189 Fixed date format
2023-10-25 15:28:58 +02:00
Denys Vuika
8bd24dbb7c [ACS-6190] prefer-promise-reject-errors rule and fixes (#9021)
* fix promise rejections

* fix promise errors

* promise error fixes

* fix promise rejections

* [ci:force] fix formatting

* test fixes

* [ci:force] fix tests

* [ci:force] fix tests

* fix incorrect return types

* meaningful errors

* remove useless pipe

* fix accessing private members in the test
2023-10-25 07:01:45 -04:00
AleksanderSklorz
a73e72facb [ACS-6189] Corrected date format (#9016)
* ACS-6189 Corrected date format

* [ci:force]ACS-6189 Trigger build
2023-10-24 13:13:20 -04:00
Wojciech Duda
3912a652d5 [AAE-16369] use layout-bp mixin where applicable (#8945)
* [AAE-15828] layout-bp mixin for core

* [AAE-15828] fixed import

* [AAE-15828] layout-bp for process-services-cloud

* [AAE-15828] layout-bp for process-services

* [AAE-15828] layout-bp for content-services

* [AAE-15828] fixed incorrect values

* [AAE-15828] lint fix

* configure stylePreprocessorOptions for cross project scss importing

* scss import cardio

* set correct style paths for packages

* [AAE-16369] addded missing test config

* [ci:force] fix for the pretheme build

* unified configs for libs
2023-10-23 15:36:26 +01:00
MichalKinas
7c4304a1e7 Fix AAE-16968 BC (#9010)
* Fix AAE-16968 BC

* Fix incorrect import

* Move DataColumnType to extensions lib

* Lint fixes
2023-10-19 09:17:28 -04:00
Wiktor Danielewski
b49c86fda5 [AAE-16968] Add boolean type (#8972)
* [AAE-16968] Update variable mapper service

* Update DetaColumnComponent

* [AAE-16968] Update DataColumnTypes interface

* [AAE-16968] Handle boolean column on UI

* [AAE-16968] Create BooleanCellComponent

* [AAE-16968] Delete comment

* [AAE-16968] Update BooleanCellComponent

* [AAE-16968] Delete unnecessary css classes

* [AAE-16968] Allow for string values

* [AAE-16968] Update test for datatable

* [AAE-16968] Update tests for boolean cell

* [AAE-16968] Update tests for VariableMapperService

* [AAE-16968] Add boolean pipe

* [AAE-16968] Update pipe

* [AAE-16968] Update code formatting

* [AAE-16968] Add doc for the boolean pipe

* [AAE-16968] Update DataColumnComponent doc

* [AAE-16968] Delete unnecessary class

* [AAE-16968] Fix title bug

* [AAE-16968] Update BooleanCell tests

* [AAE-16968] Update Boolean pipe

* [AAE-16968] Update tests for variable mapper service

* [AAE-16968] Update PipesModule

* [AAE-16968] Small fix

* [AAE-16968] Fix lint error
2023-10-19 09:00:27 +02:00
Denys Vuika
678df4298d [APPS-2108] migrate cardview and task filters to date-fns (#9006)
* move based edit task filter to date-fns

* migrate cardview component to date-fns

* bug fixes for card view types, utc and multivalue

* fix copy to clipboard typing issue

* mark moment adapter for deprecation

* exclude e2e

* try migrate metadata smoke
2023-10-18 14:17:30 +01:00
Denys Vuika
e6d625253c [APPS-2132] migrate components to date-fns (#9001)
* migrate edit process filter to date-fns

* refresh unit tests

* fix a11y for date-fns

* Revert "fix a11y for date-fns"

This reverts commit 2e706d4aed1b8a50d1de62fe11d9d528530d628c.

* update e2e

* start task fixes

* cleanup code

* remove fdescribe

* remove moment, improve unit testing

* remove dependency on date util

* cleanup search date range component

* cleanup code

* migrate search date range component

* revert e2e changes for now

* extra fixes and tests

* add missing functionality, extra tests

* increase time constraints

* improved code, disabled e2e

* move e2e to unit tests, extra rework for insights

* extra unit test for date range validation

* migrate date-range to date-fns
2023-10-17 17:24:46 +01:00
Denys Vuika
2f36da5765 [APPS-2108] date-fns adapter for datetime pickers, many datetime parsing and validation fixes (#8992)
* migrate cloud date widget to date-fns, fix test bugs

* [ci:force] update docs

* [ci:force] remove commented out code

* [APPS-2232] date cell validator, unit tests

* improved moment adapter, code cleanup

* datetime adapter, many code fixes

* code review fixes

* code cleanup

* cleanup

* fix max datetime validation, update tests

* remove e2e already covered by unit tests

* fix search date range

* remove fake demo shell e2e for search

* remove fake demo shell e2e for search page

* cleanup e2e

* migrate dynamic table to date-fns

* fix e2e formatting

* migrate protractor to unit tests

* cleanup e2e
2023-10-15 15:58:22 +01:00
Denys Vuika
03a52dc10f [APPS-2108] migrate form field validators to date-fns (#8988)
* migrate test

* migrate datetime validator

* date validator

* min/max date validators

* migrate form-field validators to date-fns

* [ci:force] update docs

* form-field-model date

* field model: datetime

* migrate form field model, extra tests and fixes
2023-10-11 12:01:58 +01:00
Tomasz Gnyp
11b4f5186b [AAE-16969] Remove force casting of all types to text (#8963) 2023-10-04 15:36:11 +02:00
Denys Vuika
43242b1185 pre angular 15 cleanup (#8961)
* pre angular 15 cleanup

* [ci:force] update test

* [ci:force] various updates as per migration

* [ci:force] port more changes

* [ci:force] migrate tests

* [ci:force] migrate formatting

* migrate changes

* rollback storybook
2023-10-03 07:35:53 -04:00
Denys Vuika
034e9574d0 [AAE-16884] revert request removal (#8959)
* [ci:force] revert request removal

* [ci:force] dummy change to trigger e2e
2023-10-02 12:33:43 -04:00
Denys Vuika
94baaf7d33 [AAE-16884] init aae script fixes (#8957)
* [ci:force] init aae script fixes

* [ci:force] improved typings

* [ci:force] switch to http and remove useless test

* [ci:force] simple change to trigger tests

* [ci:force] remove debug logs
2023-10-02 16:04:12 +01:00
Denys Vuika
d78dcd2156 [ACS-6071] fix docs for process cloud (#8947)
* fix docs for process cloud

* fix typo
2023-09-28 16:44:57 +01:00
Wojciech Duda
016e5ec089 Revert "[AAE-16369] use layout-bp mixin where applicable" (#8944) 2023-09-28 15:22:27 +02:00
Wojciech Duda
d7e0bb6cd3 [AAE-16369] use layout-bp mixin where applicable (#8896) 2023-09-28 14:18:15 +02:00
AleksanderSklorz
094acf77ce [ACS-5613] process preview on popup displaying the details of selected running process on the popup (#8933)
* ACS-5613 Renamed name column header for process details

* ACS-5613 Change order of columns based on order property

* ACS-5613 Added some unit test

* ACS-5613 Added unit tests

* ACS-5613 Added documentation

* ACS-5613 Fixed e2e

* ACS-5613 Fixed e2e

* ACS-5613 Fixed e2e

* ACS-5613 Fixed e2e

* ACS-5613 Fixed e2e
2023-09-28 10:44:07 +02:00
Denys Vuika
ef551a9c71 Improved ESLint configuration, integrated spellcheck and error fixes (#8931)
* integrate cspell with eslint, improved configuration

* core: fix linting errors

* core: fix lint warnings

* content: lint fixes

* process service lint fixes

* lint: process services cloud

* lint: insights

* lint: extensions

* [ci:force] lint: cli fixes

* [ci:force] comment out dead code

* [ci:force] exclude dead code

* fix code and tests

* rollback some changes

* fix testing lib

* fix demo shell

* minor lint warning fixes

* minor lint fixes

* fix process services
2023-09-26 13:46:53 +01:00
Denys Vuika
a1dd270c5d [ACS-5991] ESLint fixes and code quality improvements (#8893)
* prefer-optional-chain: core

* prefer-optional-chain: content, fix typings

* prefer-optional-chain: process, fix typings

* prefer-optional-chain: process-cloud, fix typings, fix ts configs and eslint

* [ci: force] sonar errors fixes, insights lib

* [ci:force] fix security issues

* [ci:force] fix metadata e2e bug, js assignment bugs

* [ci:force] fix lint issue

* [ci:force] fix tests
2023-09-18 09:42:16 +01:00
Diogo Bastos
13b6bf37ff [AAE-16202] Fix long label overlap on radio button (#8906)
* [AAE-16202] Fix long label overlap on radio button

* [AAE-16202] Add margin top

* Align styles with expected behaviour

* [AAE-16202] fix lint error
2023-09-12 16:05:05 +02:00
Tomasz Gnyp
ce881b7dcf [AAE-16303] Handle nested property data source in data table (#8895) 2023-09-08 17:19:53 +02:00
Robert Duda
a8db044092 [AAE-14704] Fix viewers showing removed file (#8890) 2023-09-08 10:11:47 +02:00
MichalKinas
76e2870c66 Adjust ADF to latest JS-API version (#8882)
* Bump js-api version

* Fix imports

* Fix content-services unit tests

* Fix process-services unit tests

* [ci:force] Trigger CI

* Fix code smells

* Fix orderBy param

* Fix code smells

* Fix failing unit tests

* Bump js-api version and align with new changes

* Remove dangling coma

* Fix delete return type

* Add correct date format in task filters e2es

* Fix typing in task filter sorting

* Fix activiti content api import

* Add null check for has avatar

* Make User class instead of type

* Fix user type in comment model

* Fix sonar cloud issue

* Type fixes

* Update js-api version
2023-09-07 07:29:42 -04:00
Diogo Bastos
8a9f828894 [AAE-16202] Fix long label overlap on radio button (#8886)
* [AAE-16202] Fix long label overlap on radio button

* [AAE-16202] Add margin top
2023-09-06 11:16:28 +01:00
Denys Vuika
3b4ce3b857 [ACS-5839] migrate to latest JS-API types (#8859)
* [ci:force] migrate Minimal Node to Node

* [ci:force] remove js-api wrappers and use real types

* [ci:force] remove js-api wrappers and use real types

* [ci:force] fix linting errors

* [ci:force] fix linting errors

* [ci:force] security fixes

* [ci:force] sonarcloud bug fixes

* [ci:force] dead code elimination, sonar suggested fixes
2023-08-29 20:56:40 +01:00
Tomasz Gnyp
a5b05b3e5f [AAE-15814] Handle direct input mapping with JSON response for data table widget (#8860) 2023-08-29 18:01:57 +02:00
Raviraj Bahirsheth
d839531d08 [APPS-2134] Remove moment.js dependency from start-task-cloud.compone… (#8845)
* [APPS-2134] Remove moment.js dependency from start-task-cloud.component.ts

* Removed the console log

* Update variable name
2023-08-25 09:13:14 -04:00
Ketevani Kvirikashvili
377dd5d3a2 [AAE-15764] Add rollback property to the model (#8848)
* [AAE-15764] Add rollback property to the model

* trigger
2023-08-25 11:53:11 +01:00
Jatin Chugh
c9fdf24553 [APPS-2127] migrated dependency in date-range-filter component from moment to date-fns (#8833)
* migrated dependency in date-range-filter component from moment to date-fns

* test cases migrated to date-fns impacted due to migration of dependency in date-range-filter.component.ts

* migrate date-range-filter.service.ts from moment to date-fns dependency
2023-08-22 14:45:52 -04:00
Jatin Chugh
d0c35c28ee [ACS-5860] Migration of process name cloud pipe from moment to date-fns (#8797) 2023-08-17 19:22:38 -04:00
Pablo Martinez Garcia
04803c1815 [AAE-15839] Fix file object input in viewers (#8804)
* [AAE-15839] Fix file object input in viewers

* [AAE-15839] Attend review comments

* [AAE-15839] Remove duplication

* [AAE-15839] Fix package-lock.json

* [AAE-15839] Fix package.json

* [AAE-15839] Remove duplication

* [AAE-15839] Remove duplication
2023-08-09 13:30:50 +02:00
Tomasz Gnyp
1f96c3452c [AAE-15815] Create Data Table widget (#8801)
* [AAE-15815] Create Data Table widget

* [AAE-15815] Add check for corectness of column schema

* fix mock name typo

* improve method name

* fix testing module config
2023-08-09 01:31:39 +02:00
Denys Vuika
1a4d7ba008 [ACS-5629] enhanced way of providing translations (#8763)
* enhanced way providing translations

* update documentation

* update documentation

* test fixes

* try add missing module import

* inject i18n to core module to cause the setup
2023-07-18 20:06:09 +01:00
Denys Vuika
f45d69eb49 [ACS-5620] stabilise unit tests by switching to standard Angular api (#8759)
* switch to standard TestBed api for unit testing

* test fixes

* test fixes

* test fixes

* test fixes

* test fixes

* test fixes

* test fixes

* test fixes

* test fixes
2023-07-15 15:02:33 +01:00
Tomasz Gnyp
484211d322 [AAE-15519] Fix - Assign To filter UI is broken (#8751) 2023-07-12 15:13:33 +02:00
Tomasz Gnyp
0ffbf9fbe2 [AAE-15522] Fix - Dropdown variable error messages are displayed at modeling part 2 (#8734)
* Revert preview flag changes

* add get preview state method to form cloud service
2023-07-04 14:39:02 +02:00
Tomasz Gnyp
a933070fc3 [AAE-15522] Fix - Dropdown variable error messages are displayed at modeling level (#8730) 2023-07-04 09:37:08 +02:00
Tomasz Gnyp
e3ea23da37 [AAE-15082][AAE-15081] Resolve the options coming from a json variabl… (#8673)
* [AAE-15082][AAE-15081] Resolve the options coming from a json variable for a dropdown

* split method to smaller parts and remove duplications in units

* fix unit tests

* get variables from API call

* [AAE-15082] Add handle form variable

* replace variableId by variableName

* improve code
2023-06-29 17:21:14 +02:00
Amedeo Lepore
7abebf0652 [AAE-12501] Align JS API (#8344)
* [AAE-12501] Provide an AlfrescoApiService implementation that disable the AlfrescoApi oauth initialization when we use new oidc implementation

* [AAE-12501] Replace oauth2Auth with authentication service, define get username as abstract

* [AAE-12501] Replace sitesService with authentication service since sitesService get the username from oauth2Auth

* [AAE-12501] Call implicitLogin by authentication service

* [AAE-12501] Replace Oauth2Auth with AlfrescoApi and call the custom api without using authentication

* [AAE-12501] Replace oauth2Auth with authentication service to get the token

* [AAE-12501] Replace oauth2Auth with alfrescoApi

* remove unneeded JS-API dep
move auth in the right place

* [AAE-10501] Rename alfresco-api.http-client to adf-http-client

* [AAE-10501] Remove config from a CoreModule, a different service is provided in AuthModule to use angular http client instead of super agent

* [AAE-10501] Disable AlfrescoApi oauth initialization while using new adf oidc authentication

* [AAE-12501] Replace alfresco api client with AdfHttpClient

* [AAE-12501] Restore get username methods

* [AAE-12501] Get username with authentication service

* [AAE-12501] removee unused method

* [AAE-12501] Trigger on login when token is received

* [AAE-12501] Fix content-services unit test

* [AAE-12501] Fix import

* [AAE-12501] Fix core unit tests

* [AAE-12501] Fix process-services-cloud unit tests

* [AAE-12501] Create a request options interface with the needed props, remove the import from js-api, return the body from request

* [AAE-12501] Fix process-services-cloud unit tests without Expectation

* [AAE-12501] Fix Core secondary entrypoints unit tests are not executed: move test.ts one level up in order to find all the spec files into the secondary entrypoints folders and update path

* [AAE-12501] Fix Core unit tests that weren't executed because of the previous test.ts wrong location

* [AAE-12501] Fix authentication token_issued subscription

* add emitters

* [AAE-12501] Replace Math.random() to fix hospot security issue, fix lint issues

* [AAE-12501] Install event-emitter dependency

* [AAE-12501] Comment temporary setCsrfToken because is not possible to import app config service from core due to circular dependencies

* [AAE-12501] Get disableCsrf from app config serviice when app configuration is loaded

* [AAE-12501] Fix license-header lint issue

* [AAE-14221] Regenerate lock file

* [AAE-14221] Fix sonarcloud issues

* [AAE-12501] Remove wrong character

* [AAE-12501] Regenerate lock file

* [AAE-12501] Fix BC: update alfresco api response error

---------

Co-authored-by: eromano <eugenioromano16@gmail.com>
2023-06-27 17:22:30 +02:00
Diogo Bastos
3f4fe2a898 [AAE-15252] Update ADF interfaces to reflect update from BE (#8672)
* [AAE-15252] Update ADF ApplicationInstanceModel and Descriptor interfaces and AppsProcessCloudService service

* [AAE-15252] Update app.config.json file
2023-06-27 10:45:52 +01:00
Gloria Camino
58ef531c6b LOC-447 - Updated UI files in 16 languages for ADF 6.2 release based on EN file of 2023-06-20 (#8685) 2023-06-20 12:06:40 -04:00
Ehsan Rezaei
caaf04b5ea [AAE-15228] process filter component styles configurable (#8657)
* Rebasing

* AAE-15228: Removed unused style
2023-06-14 10:07:50 +02:00
Ehsan Rezaei
fa063465d3 [AAE-15223] Removing Material native classes modifications (#8656) 2023-06-13 18:12:01 +02:00
Ehsan Rezaei
1870214bac [AAE-15198] - Using reference vars to style form fields in base task (#8651)
* [AAE-15198] - Using reference vars to style form fields in base task filter component

* AAE-15198: Fixed lint errors
2023-06-12 17:54:02 +02:00
Gloria Camino
a762c19a5c LOC-440 - UI updated as per https://alfresco.atlassian.net/browse/AAE-14405 All strings updated as per source of 2023-06-09 (#8641) 2023-06-12 09:54:41 -04:00
Ehsan Rezaei
c66fb5f6ec [AAE-15149] Added reference variables to edit task filter component (#8636)
* AAE-15149: Added reference variables to edit task filter component

* AAE-15149: Added component variables

* AAE-15149: updated variable names

* AAE-15149: updated class names targeting directly the elements

* AAE-15149: updated class names targeting directly the elements

* AAE-15149: Fixed lint errors
2023-06-12 15:31:38 +02:00
tomasz hanaj
f549a19fb9 [AAE-14469] added constraint for typed value (#8611)
* [AAE-14469] added constraint for typed value

* [AAE-14469] removed obsolete input property
2023-06-06 09:41:13 +01:00
Denys Vuika
f5abce8baa Optimise imports using inject function (#8557)
* optimise AuthGuard

* optimise UploadBase

* optimise BaseAuthenticationService

* optimise FormComponent

* optimise BaseCloudService

* optimise card view
2023-06-05 17:31:44 +01:00
Tomasz Gnyp
9845b1e2a0 [AAE-14851] Convert manual tests to unit for C587091, C587092 (#8608)
* [AAE-14851] Convert manual tests to unit for C587091, C587092

* remove useless unit test

* implement suggestions
2023-06-05 12:23:30 +02:00