1130 Commits

Author SHA1 Message Date
Alfresco Build
0891a60f4d
[ci:force][auto-commit] Update dependencies JS:7.2.0 (#9069)
Co-authored-by: tomgny <tomgny@users.noreply.github.com>
2023-11-07 15:54:34 +01:00
Alfresco Build
00c05315a2
[ci:force][auto-commit] Update dependencies JS:7.2.0-1490 (#9057)
Co-authored-by: mauriziovitale <mauriziovitale@users.noreply.github.com>
2023-11-07 13:16:37 +01:00
Denys Vuika
10361b9065
fix broken expression code in people cloud (#9065) 2023-11-06 16:43:23 +00:00
Eugenio Romano
08da9ae2c3
[AAE-12501] move auth in ADF (#8689)
* remove unneeded JS-API dep
move auth in the right place

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

* [AAE-12501] Restore get username methods

* [AAE-12501] Get username with authentication service

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

* add emitters

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

* [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] Remove wrong character

* Pass down the requestUrl for request interception
bring back check from js-api
fixing isLogin issues part1
some fix around emit
Narrow access for methods
fix sso username issue
Switch to dynamic service injection
add emitters
move auth inside ADF

* clean

* fix unit test

* fix lint

* Fix exports

* Fix process-services unit tests

* Fix core unit tests

Fix core unit tests

Fix core unit tests

Fix core unit tests

Fix core unit tests

Fix core unit tests

Fix core unit tests

* Fix content-services unit tests: getEcmUsername from authentication service

Fix content-services unit tests: alfresco api service has been replaced by authentication service

* Fix circular dependecies issue importing AppConfigService outside the api entrypoint dir

* Import AuthModule even in not only canary mode to let the e2es run

* Fix authentication unit tests

* Fix unit test '[ECM] should return a ticket undefined after logout'

* Remove AlfrescoApiService is not used anymore

* Fix unit test '[BPM] should return an BPM ticket after the login done': add Basic suffix to basicAuth

* Fix unit tests core

* Fix login errors with the BASIC authentication

* Fix missing onLogin event

* Temporary skip unit tests to check e2es

* Fix login component doesn't add the authorization header

* Fix prefix is undefined

* Fix image is not showed by the alfresco file viewer because alf_ticket is not added to the content url query params, pass ticketEcm to the alfrescoApi configuration used by alfrescoApiClient.ts getAlfTicket()

* Fix C280012: set app prefix before calling content api

* Revert "Fix image is not showed by the alfresco file viewer because alf_ticket is not added to the content url query params, pass ticketEcm to the alfrescoApi configuration used by alfrescoApiClient.ts getAlfTicket()"

This reverts commit afbf086b98d72835aab8b15d4af433efeaac2d3b.

* try to change adf core autoamtion service init

* go back

* grant type password login

* fix

* remove automatic login in reset try

* fix not silent login

* lint happy

* fix

* Update alfresco-api-v2-loader.service.ts

* fixint

* Revert "Temporary skip unit tests to check e2es"

This reverts commit a0adc7e58a001a54442c82952761bff891caa5cd.

* fix modules

* fix app config stream in storing service
fix app config stream for sub property

* fix identity test to use the real service

* fix unit

* fix unit

* fix unit

* remove test that are probably have never been green

* fix

* fix PC

* fix localstorage

* fix

* fix

* fix

* fix

* fix storybook
move e2e in content for versioning
fix lint

* fix

* fix size

* enable log

* some fix for usernames

* remove log

* fix rebase

* [AAE-12502] Restore isKerberosEnabled into authentication service

* subject onLogin

* fix unit

* Fix lint issue

* fix

* Update error message

* Revert change did by b79c5d37d6\#diff-ad85723e21276e05e577bab652c6ab0d243bd0ad54d4cc70ef6e60dc5e635c33L38

* Refresh the browser to wait for the user to click process cloud page

* Remove e2e, the application list is already tested by the app-list-cloud.component.spec.ts https://github.com/Alfresco/alfresco-ng2-components/blob/dev-eromano-AAE-12501-2/lib/process-services-cloud/src/lib/app/components/app-list-cloud.component.spec.ts\#L147

* [12502] Add getUsername method to the AuthenticationService

* [12501] restore mutlipart/form-data header needed by angular http-client to to fix 415 unsupported media type

* Revert "[12501] restore mutlipart/form-data header needed by angular http-client to to fix 415 unsupported media type"

This reverts commit d8c584b94f649b57859d74157ec0861f2ebddebb.

* [12501] fix unsupported upload file on admin-apa, append json content type only calling alfresco api

* [12501] fix unsupported upload file on admin-apa

[12501] fix unsupported upload file on admin-apa

* Revert "[12501] fix unsupported upload file on admin-apa"

This reverts commit 53cda21d795588d87244c78c5a5347afd04ea2b1.

* Improve getHeaders

* Revert change

* Set application/json content type if request body is not a FormData

* Logout by the authenticationService

* Update returned error message

* Fix lint issues after rebasing

* [12502] Add basic template with data-automation-ad selector to check when is attached to the Dom

* Fix issues after rebase

---------

Co-authored-by: Amedeo Lepore <amedeo.lepore@hyland.com>
Co-authored-by: Andras Popovics <popovics@ndras.hu>
2023-11-06 14:25:27 +01:00
Denys Vuika
93fd0bec6c
[ACS-6140] reduce access to internal material classes (#9053)
* cleanup login (demo shell)

* cleanup e2e from useless calls

* [ci:force] cleanup e2e from useless calls

* [ci:force] cleanup e2e from useless calls

* [ci:force] improved uploader selectors

* [ci:force] remove useless selectors when automation id provided

* [ci:force] improved tests and selectors

* [ci:force] improved tests and selectors

* [ci:force] improved tests and selectors

* [ci:force] improved tests and selectors

* [ci:force] improved tests and selectors

* [ci:force] improved tests and selectors

* [ci:force] switch edit task filter to angular harness

* [ci:force] switch edit process filter to angular harness

* [ci:force] switch search chip list to angular harness

* [ci:force] switch search panel to angular harness

* [ci:force] switch search radio to angular harness

* [ci:force] switch search text to angular harness

* [ci:force] search logical filter

* [ci:force] search form component

* [ci:force] search filter container

* [ci:force] fix viewer test

* [ci:force] search facet chip harness

* [ci:force] search facet chip harness

* [ci:force] dropdown breadcrumb

* [ci:force] search check list

* [ci:force] folder dialog

* [ci:force] search filter component

* [ci:force] json cell

* [ci:force] amount widget

* [ci:force] checkbox widget

* [ci:force] multiline-text widget

* [ci:force] number widget

* [ci:force] text widget

* [ci:force] card view array item

* add permission dialog

* permission container component

* permission list component

* card view components

* search widget chip

* search facet chip

* edit service task filter

* card view components

* sites dropdown

* share dialog

* header component

* datetime widget

* remove comments
2023-11-03 06:05:34 -04:00
Alfresco Build
0b677e7189
[ci:force][auto-commit] Update dependencies JS:7.2.0-1481 (#9028)
Co-authored-by: mauriziovitale <mauriziovitale@users.noreply.github.com>
2023-11-02 14:29:45 +00:00
MichalKinas
e8ea75d9f3
Release 6.4.0 (#9044)
* Release 6.4.0

* Lock file update

* Exclude failing E2Es

* Exclude failing E2Es

* Exclude failing E2Es

* Exclude failing E2Es
2023-10-31 13:00:37 +01:00
Denys Vuika
2d3175ef4a
[ACS-6227] cleanup error handling and fix typing issues (#9035)
* cleanup audit service, remove useless ajax tests

* cleanup sites service and remove useless ajax tests

* cleanup services

* cleanup services

* fix typings

* code cleanup
2023-10-27 13:51:28 +01:00
Denys Vuika
ba96ed14b2
[ACS-6196] await-thenable rule for ESLint, fix issues (#9027)
* fix issues for core lib

* fix content services lib

* fix and cleanup process services

* [ci:force] process services cloud

* [ci:force] align coverage with all libs

* [ci:force] fix the insights
2023-10-26 09:33:48 -04:00
Denys Vuika
7ebdce7875
[APPS-2108] break direct dependency on moment.js (#9032)
* break direct dependency on moment.js

* [ci:force] preserve moment for cli tools

* remove MatMomentDatetimeModule from content

* share dialog fixes

* revert testing module changes

* remove incorrect date modules

* fix html
2023-10-26 09:33:26 -04:00
AleksanderSklorz
abf369bc37
[ACS-6189] Moved date adapter from module to component (#9029) 2023-10-26 10:40:55 +02:00
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
Alfresco Build
36d90b314d
[ci:force][auto-commit] Update dependencies JS:7.1.0-1437 (#9022)
Co-authored-by: mauriziovitale <mauriziovitale@users.noreply.github.com>
2023-10-25 04:39:59 -04:00
Alfresco Build
46104e9246
[ci:force][auto-commit] Update dependencies JS:7.1.0-1429 (#8969)
Co-authored-by: mauriziovitale <mauriziovitale@users.noreply.github.com>
2023-10-24 13:14:51 -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
Alfresco Build
441d8003af
[ci:force][auto-commit] Update dependencies JS:7.1.0-1372 (#8966)
Co-authored-by: mauriziovitale <mauriziovitale@users.noreply.github.com>
2023-10-05 03:40:55 -04:00
Tomasz Gnyp
11b4f5186b
[AAE-16969] Remove force casting of all types to text (#8963) 2023-10-04 15:36:11 +02:00
Alfresco Build
c548fc7763
[ci:force][auto-commit] Update dependencies JS:7.1.0-1371 (#8964)
Co-authored-by: mauriziovitale <mauriziovitale@users.noreply.github.com>
2023-10-04 09:38:59 +01: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
Alfresco Build
0b1fc4faa4
[ci:force][auto-commit] Update dependencies JS:7.1.0-1368 (#8960)
Co-authored-by: mauriziovitale <mauriziovitale@users.noreply.github.com>
2023-10-03 03:51:22 -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
Alfresco Build
c2d45e10f8
[ci:force][auto-commit] Update dependencies JS:7.1.0-1367 (#8949)
Co-authored-by: mauriziovitale <mauriziovitale@users.noreply.github.com>
2023-10-02 07:20:09 -04: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
Alfresco Build
ed0dd094b4
[ci:force][auto-commit] Update dependencies JS:7.1.0-1349 (#8941)
Co-authored-by: MichalKinas <MichalKinas@users.noreply.github.com>
2023-09-28 10:23:44 +02:00
Alfresco Build
a488a729eb
[ci:force][auto-commit] Update dependencies JS:7.1.0-1346 (#8939)
Co-authored-by: MichalKinas <MichalKinas@users.noreply.github.com>
2023-09-28 00:36:57 +02:00
Alfresco Build
06bfded238
[ci:force][auto-commit] Update dependencies JS:7.1.0-1331 (#8925)
Co-authored-by: mauriziovitale <mauriziovitale@users.noreply.github.com>
2023-09-27 15:10:01 +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
Alfresco Build
919a8ba80c
[ci:force][auto-commit] Update dependencies JS:7.1.0-1313 (#8918)
Co-authored-by: mauriziovitale <mauriziovitale@users.noreply.github.com>
2023-09-22 04:58:09 -04:00
Denys Vuika
9ca7dbdce9
Release 6.3.0 (#8917)
* bump versions and deps

* release reports

* release notes

* update lock file
2023-09-18 14:55:34 +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
Alfresco Build
6df6fd16fc
[ci:force][auto-commit] Update dependencies JS:6.3.0-1289 (#8907)
Co-authored-by: mauriziovitale <mauriziovitale@users.noreply.github.com>
2023-09-13 03:33:10 -04: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
Alfresco Build
3aa55996bf
[ci:force][auto-commit] Update dependencies JS:6.3.0-1288 (#8904)
Co-authored-by: mauriziovitale <mauriziovitale@users.noreply.github.com>
2023-09-12 04:43:40 -04:00
Alfresco Build
d2ef772e0a
[ci:force][auto-commit] Update dependencies JS:6.3.0-1280 (#8819)
Co-authored-by: mauriziovitale <mauriziovitale@users.noreply.github.com>
2023-09-11 14:35:30 +01: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