2022 Commits

Author SHA1 Message Date
Wiktor Danielewski
606abdb4fd
[AAE-17103] Handle icon type (#9012)
* [AAE-17103] Add typeof pipe

* [AAE-17103] Create IconCellComponent

* [AAE-17103] Update tests for IconCellComponent

* [AAE-17103] Small fix for boolean cell tests

* [AAE-17103] Update formatting

* [AAE-17103] Update icon cell

* [AAE-17103] Update tests

* [AAE-17103] Improve boolean cell

* [AAE-17103] Improve icon cell

* [AAE-17103] Update tests

* [AAE-17103] Udate doc about icon type

* [AAE-17103] Switch to inject feature of Angular

* [AAE-17103] Update IconCellComponent

* [AAE-17103] Remove typeof pipe

* [AAE-17103] Add ChangeDetectorRef

* [AAE-17103] Refactor AmoundCell

* [AAE-17103] Small improvement

* [AAE-17103] Update tests structure

* [AAE-17103] Small update
2023-11-17 12:49:00 +01:00
Raviraj Bahirsheth
4af945123b
Revert "[ACS-5311] Notification History Bug Fix (#9011)" (#9096)
This reverts commit 94fb61541c5bfdacda9997e1929d76609ee6917f.
2023-11-17 06:26:51 -05:00
Amedeo Lepore
cf62196fc4
Release 6.5.2 (#9094) 2023-11-16 13:25:14 +01:00
MichalKinas
81787d5202
[MNT-23166] Add resize flag to document list with option to disable blur (#9090)
* [MNT-23166] Add resize flag to document list with option to disable blur

* [MNT-23166] Missing docs and CR fixes

* [MNT-23166] Lint fixes

* [MNT-23166] Lint fixes

* [MNT-23166] Lint fixes
2023-11-15 14:51:38 +01:00
Amedeo Lepore
e5ca7d2069
[AAE-18057] Fix token is not refreshed after silent-refresh is called. Get another token from the auth server. (#9089) 2023-11-15 11:28:05 +00:00
AleksanderSklorz
6988c1f458
[ACS-6067] viewer thumbnails not refresh on file change (#9075)
* ACS-6067 Update thumbnails when file is changed

* ACS-6067 Added unit tests

* ACS-6067 Removed redundant line
2023-11-14 12:44:48 +01:00
Amedeo Lepore
e2c116c25a
Release 6.5.1 (#9082) 2023-11-13 10:19:15 +01:00
Amedeo Lepore
f2df3c4143
[AAE-17909][AAE-17964] fix silent-refresh url is not set with the value - fix background image set to undefined (#9080)
* [AAE-17909] fix silent-refresh url is not set with the value from the app.config.json

* [AAE-17964] fix backgroundImage is undefined, set a default value
2023-11-10 14:19:59 +00:00
Wiktor Danielewski
168bb0b6ca
[AAE-17258] Update storybook for datatable and datacolumn (#9052)
* [AAE-17258] Datatable storybook - add boolean type

* [AAE-17258] Datatable storybook - Repair location column

* [AAE-17258] Update location column - storybook

* [AAE-17258] Add boolean column and update data mapping - storybook

* [AAE-17258] Add some comments

* [AAE-17258] Storybook - add image column

* [AAE-17258] Add missing props for DataColumn

* [AAE-17258] Update storybook over the amount column type

* [AAE-17258] Add number column to the Storybook

* [AAE-17258] Storybook simplify json column

* [AAE-17258] Stroybook DataColum refactor

* [AAE-17258] Storybook DataColumn refactor

* [AAE-17258] Update DataColumn with date type

* [AAE-17258] Update Datatable over timeAgo column - Storybook

* [AAE-17258] Small changes

* [AAE-17258] Storybook - simplify DataColumn stories and allow for row updates
2023-11-09 14:17:08 +01:00
Denys Vuika
f0a11fdab0
[ACS-6140] migrate tests to harness (#9071)
* migrate aspect list tests to harness

* [ci:force] categories management

* [ci:force] fix keyboard handling

* [ci:force] fix memory leak

* migrate document list

* migrate new version uploader dialog

* migrate folder dialog

* bug fixes for keyboard, remove fake unit tests

* [ci:force] migrate and cleanup notification tests

* migrate app details cloud

* migrate app list cloud

* migrate group cloud component

* [ci:force] cleanup code based on reviews

* [ci:force] migrate people cloud

* [ci:force] migrate process list cloud

* [ci:force] migrate start process cloud

* [ci:force] task form cloud

* [ci:force] service task list cloud

* [ci:force] task list cloud

* [ci:force] process attachment list and apps list

* [ci:force] code review changes

* [ci:force] app list bug fixes and code cleanup

* [ci:force] fix incorrect/missing typings, fix tests

* [ci:force] code cleanup
2023-11-09 04:24:56 -05:00
Robert Duda
479cc8b545
Release 6.5.0 (#9076) 2023-11-08 15:54:57 +01:00
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
Amedeo Lepore
a01a1b9e9a
[AAE-17804] Fix login redirection, add redirectUri from the app.config (#9066)
* [AAE-17804] Fix login redirection, add redirectUri from the app.config

* [AAE-17804] Updated unit tests
2023-11-07 14:34:18 +00:00
Wojciech Duda
34c82f4a49
[AAE-17807] fix for header background color (#9067)
* [AAE-17807] fix for header background color

* [AAE-17807] added unit tests
2023-11-07 13:14:54 +00: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
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
Bartosz Sekula
057e0bcd7c
[AAE-17746] Remove secret from required prop from app.config.schema.json (#9063) 2023-11-06 13:17:14 +00:00
DominikIwanek
bac7cc98e1
[ACS-6210] - ACA column alinement shifted when we have very long file/folder name (#9060) 2023-11-06 06:32:59 -05:00
Bartosz Sekula
7c127eb957
[AAE-17669] Custom theme should use default font (#9062) 2023-11-06 12:31:14 +01:00
Wojciech Duda
a29f63cd9b
[AAE-17551] added backgroundImage property for header (#9058)
* [AAE-17551] added backgroundImage property for header

* [AAE-17551] added test for background image

* [AAE-17551] removed some material selectors

* [AAE-17551] rebasing

* [AAE-17551] fixed unit test
2023-11-04 15:06:11 +01:00
SheenaMalhotra182
94fb61541c
[ACS-5311] Notification History Bug Fix (#9011)
* [ACS-5311] implemented read state for notifications and showing only unread notifications in history menu

* [ACS-5311] linting fixes

* [ACS-5311] linting fixes

* [ACS-5311] fixed code smell

* [ACS-5311] addressed review comments

* [ACS-5311] addressed review comments

* [ACS-5311] updated unit tests

* [ACS-5311] addressed review comments and optimized unit tests

* [ACS-5311] linting fix

* [ACS-5311] addressed review comments

* [ACS-5311] fixed typos

* [ACS-5311] moved NOTIFICATION_STORAGE to notification.model.ts to reuse across repos

* [ACS-5311] addressed review comments
2023-11-03 14:41:40 +00: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
Tomasz Gnyp
9278d9296f
[AAE-16965] Improve data table date column (#9038)
* [AAE-16965] Improve Date data table column type

* [AAE-16965] Date unit tests

* update docs

* cleanup cells after implement inject

* bring back removed constructors

* remove empty constructors

* replace constructor token injection by inject function

* [AAE-16965] Use other variable for template

* implement suggestions

* update demo shell module

* fix unit test

* fix timeAgo problem

* add some more unit tests

* fake change in extensions

* [AAE-16965] fix for backward compatibility
2023-11-03 10:31:13 +01:00
Bartosz Sekula
85ddcdf22c
Fix missing primary scss variable (#9056)
* Fix missing primary scss variable

* remove test var
2023-11-02 15:47:52 +00: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
tomasz hanaj
15f82c812c
[AAE-15296] added design tokens to InfoDrawerComponent (#9051)
* [AAE-15296] added design tokens to InfoDrawerComponent

* [AAE-15296] added access to theme to component variables
2023-11-02 13:10:05 +01:00
Bartosz Sekula
54e95bc5f7
[AAE-16970] Custom colors are not calculating correctly in default UI (#9054) 2023-11-02 11:15:30 +01:00
Wiktor Danielewski
81f0df3da1
[AAE-16995] Code refactor of LocationCellComponent (#9033)
* [AAE-16995] Migrate to standalone

* [AAE-16995] Update Datatable module

* [AAE-16995] Enable hyperlink click

* [AAE-16995] Fix test mistake

* [AAE-16995] Refactor DatatableCell

* [AAE-16995] Refactor LocationCellComponent

* [AAE-16995] Update doc about location cell

* [AAE-16995] Clarify the purpose of location cell

* [AAE-16995] Remove unnecessary check

* [AAE-16995] Align to remarks
2023-10-31 16:51:07 +01: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
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
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
Denys Vuika
f366cf7c0a
[ACS-5645] metadata fixes for encapsulation and host classes (#9018)
* remove useless typing

* fix missing host classes and encapsulation
2023-10-24 12:11:28 -04:00
Denys Vuika
879c5a6d2c
[ACS-5645] card view dateitem parse fix (#9017)
* card view dateitem parse fix

* remove unused prop

* remove dead link from demo shell
2023-10-24 10:48:36 -04:00
DominikIwanek
36c6e6d8ea
[ACS-5566] - Add configurable columns to document list (#8968)
* [ACS-5566] - add configurable columns to document list

* [ACS-5566] - add max visible columns

* [ACS-5566] - add unit tests

* [ACS-5566] - add docs

* [ACS-5566] - style changes after CR

* [ACS-5566] - changes for pipeline

* [ACS-5566] - changes for pipeline

* [ACS-5566] - changes for pipeline
2023-10-24 09:52:11 -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
Tomasz Gnyp
33f1147671
[AAE-16962] Handle number data table column type (#9013)
* [AAE-16962] Handle number column type

* solve conflicts

* remove TODO

* [AAE-16952] Revert incorrect conflict solve

* remove duplicated import
2023-10-23 11:53:32 +02: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
Tomasz Gnyp
6644f539fa
[AAE-16964] Handle amount data table cloumn type (#8984)
* [AAE-16964] Handle amount data table cloumn type

* remove not needed reset testing module

* improve spacing

* update documentation

* remove code duplications in unit tests

* add type for default currency config

* update doc
2023-10-19 11:50:35 +02: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
7d5fbecf3f
[APPS-2136] migrate search-datetime-range to date-fns (#9004)
* strongly typed forms

* migrate to date-fns

* [ci:force] mark moment pipes for deprecation

* [ci:force] try migrate the metadata smoke e2e

* [ci:force] remove dead code

* cleanup dead code and switch e2e to date-fns

* [ci:force] migrate tests

* revert metadata

* [ci:force] migrate e2e

* [ci:force] delete date util
2023-10-18 07:56:10 +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
96d0a617a4
[APPS-2108] migrate unit tests to date-fns (#8991)
* migrate unit tests

* [ci:force] cleanup
2023-10-11 14:52:37 +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
Aayush Rohila
2f28ec9b6f
[ACS-5877] Migrate widget-visibility service do date-fns (#8870)
* [ACS-5877] Migrate from moment to date-fns for widget-visibility service

* [ACS-5877] Migration from moment to date-fns in widget-visiblity.service

* migrate widget visibility service to date-fns

* restore clean method

---------

Co-authored-by: Denys Vuika <denys.vuika@gmail.com>
2023-10-10 17:12:44 +01:00
Denys Vuika
ce549249e5
[APPS-2108] ADF date-fns adapter implementation (#8983)
* adf date-fns adapter, migrate date widget

* [ci:force] fix tests

* [ci:force] update docs

* fix types and tests

* fix how the real date is stored, extra tests

* remove useless e2e as covered by tests already
2023-10-10 11:58:04 +01:00
Denys Vuika
3a374ad2a4
[APPS-2108] migrate date widget to Angular date picker (#8975)
* migrate date widget to Angular date picker

* [ci:force] fix tests

* [ci:force] fix tests

* [ci:force] test fixes

* [ci:force] missing label attributes

* added type for value
2023-10-09 10:28:13 +01:00