Commit Graph

381 Commits

Author SHA1 Message Date
Bartosz Sekuła
e570ef8da0 [AAE-11496] Move 'content-plugin' to projects folder as 'aca-content' (#2817)
* [AAE-11496] Move content-plugin to projects

* Fix unit test
2022-12-20 18:15:34 +01:00
MichalKinas
cb84a06e25 [ACA-4625] Add ADF linking to unit tests and e2es (#2853) 2022-12-20 09:40:33 +00:00
AleksanderSklorz
a189ccd676 [AAE-11830] Changes required to address comment in APPS (#2848) 2022-12-16 14:32:05 +01:00
AleksanderSklorz
b609a9cd33 [ACS-3757] returning focus to element from which they were opened (#2837)
* ACS-3757 Return focus to More Actions button after closing modals opened from that button

* ACS-3757 Return focus to specific row from personal files after closing modal opened from context menu from row

* ACS-3757 Fixed issue that sometimes node was undefined

* ACS-3757 Return focus after closing upload new version modal

* ACS-3757 Added restore focus on list of libraries, restoring focus to correct row when multi rows are selected, little refactoring

* ACS-3757 Use runActionById function instead of runAction

* ACS-3757 Fixed unit tests

* ACS-3757 Updated description

* ACS-3757 Adrressing comments for static and for selectors in jsons

* ACS-3757 Remove boolean flag from jsons

* ACS-3757 Added some unit tests

* ACS-3757 Resolved conflicts

* ACS-3757 Created ModalConfiguration interface

* ACS-3757 Increase version of ADF

* ACS-3757 Fix for e2e

* ACS-3757 Fix some more e2e

* ACS-3757 Removed log
2022-12-13 17:06:18 +01:00
Thomas Hunter
8c7c40a3d4 [ACA-4644] Inherited & linked rules that are disabled should not be listed (#2843)
* [ACA-4644] Inherited & linked rules that are disabled should not be listed

* Added condition for linked rule sets to need only enabled rules

* Added a bypass for the empty rules list for linked rule sets that have only disabled rules

* Replaced array filter with some
2022-12-13 10:10:17 +00:00
Nikita Maliarchuk
088eac5a3a [ACA-4634] Folder Rules style fix: Edit and Delete Rule buttons disappear if rules have long description or name (#2842)
* [ACS-4146] - unit tests

* [ACS-4146] - removed console.log()

* ACS-3961 - style fixes

* ACS-3961 - removed calculated width
2022-12-11 12:10:15 +00:00
Nikita Maliarchuk
86178c3a3a [ACS-4146] Folder Rules bug fix: An empty list for a child folder is displayed instead of an empty content template (#2839)
* [ACS-4146] - functional implementation

* [ACS-4146] - unit tests

* [ACS-4146] - removed console.log()
2022-12-07 13:43:48 +01:00
Nikita Maliarchuk
79243bad54 [ACS-4129] Folder rules - temporarily change 'Category value' to text box (#2830)
* ACS-4129 - temporarily changed category-value to text box

* ACS-4129 - typo correction
2022-12-02 16:03:27 +00:00
Gloria Camino
95ed79bc0e LOC-400 - Localized UI files for ACA 4.0 in 16 languages (#2829) 2022-12-02 11:15:32 +00:00
Nikita Maliarchuk
d1c143333a [ACS-4091] Folder rules: "Add simple workflow" action clears out parameters when trying to set destination folder (#2826)
* ACS-4091 fixed a bug

* ACS-4091 - fixed typo
2022-12-01 15:22:45 +01:00
Thomas Hunter
409b9751a5 [ACA-4632] [ACA-4633] Fix error script dropdown not having any options + hide dropdown when isAsynchronous unchecked (#2825) 2022-12-01 13:55:01 +00:00
Nikita Maliarchuk
5d330d3e36 [ACA-4627] Folder Rules - clicking on Manage Rules button does not fire the correct requests to the backend for inherited rules (#2822)
* ACA-4627 - changed from parent id to the current folder id

* ACA-4627 - unit test
2022-11-30 20:18:08 +00:00
Thomas Hunter
bfe14f8143 [ACS-4630] Fix no different rule is selected when rule is deleted (#2824)
* [ACS-4630] Fix no different rule is selected when rule is deleted

* Add unit test

* Some tests were failing due to objects with same references being used across different tests
2022-11-30 18:28:40 +00:00
Nikita Maliarchuk
60ba8eb6ce [ACS-3895] ACA - Folder Rules: inherit rule sets toggle (#2808)
* ACS-3895 - initial layout

* ACS-3895 - finished functionality

* ACS-3895 - unit tests

* ACS-3895 - deleted comments

* ACS-3895 - small fixes

* ACS-3895 - renamed ruleSettings to ruleSettingsMock

* ACS-3895 - rebase
2022-11-24 19:07:21 +01:00
Thomas Hunter
d9d2441b3a [ACS-3513] [ACS-3515] Create, edit and delete rule set link (#2810) 2022-11-24 15:37:01 +00:00
Bartosz Sekuła
456454fee1 [AAE-10533] Generic App shell for HxP applications (#2679)
* [AAE-10533] Generic App shell for HxP applications

* refactor

* fix scss mixin path

* remove forRoot in content-plugin

* remove provided routers

* revert router service

* revert template usage

* Added shell markdown

* Move login component to content-plugin

* Moved logic from app.component to app.service

* remove upload-area from shell

* cleaning

* cleaning

* update md

* abstract preferences

* allow to set shell parent route

* fix preferencesService name

* Fix for sidenav

* Fix CR comments

* [ci:force]

* move translation service mock to aca-shared

* fix e2e

* Fix page title

* remove drop area wrapper from whole application

* Fix e2e

* [ci:force]

* Remove blank page from shell

* Add upload files dialog

* [ci:force]

* Remove ExtensionsDataLoaderGuard from shell
2022-11-23 13:45:32 +00:00
Nikita Maliarchuk
81033450d8 [ACS-3860] Folder rules - Node picker for action parameters of type "d:noderef" (#2800)
* [ACS-3860] - added callback with node selector dialog

* ACS-3860 - implemented node picker for actions

* ACS-3860 - unit tests

* ACS-3860 - linting

* ACS-3860 - i18n

* ACS-3860 - small fix

* ACS-3860 - changed to private method, added typization

* ACS-3860 - removed useless getter and setter

* ACS-3860 - added 'noderef' to cspell.json
2022-11-22 13:30:46 +01:00
Thomas Hunter
03ed8e071a [ACS-4010] Rule sets listing regrouping (#2803)
* [ACS-4010] Rule sets listing regrouping

* Linting

* Unit tests

* Remove TODOs
2022-11-22 11:14:09 +00:00
AleksanderSklorz
ae551f03fc [ACS-3640] Reverting reverted changes for a 11 y aca 881740 snackbar messages disappear without option to adjust timing (#2785)
* ACS-3640 Increasing time of autoclosing snackbar and adding X icon to close snackbar

* ACS-3640 Fix lint issues

* ACS-3640 Addressing PR comments

* ACS-3640 Fix lint issue

* ACS-3640 Added aria label for action icon

* ACS-3640 Fixed one left file

* ACS-3640 Fixed lint issues

* ACS-3640 Correction for e2e

* ACS-3640 Reverting reverted corrections for e2e

* ACS-3640 Use data automation id

* ACS-3640 Update ADF version
2022-11-21 10:48:22 +01:00
Thomas Hunter
c75091bf59 [ACS-3887] Rule set listing, including linked & inherited rules (#2780)
* [ACS-3887] Rule set listing to include linked & inherited rules

* Handled rules & rule sets reloading after a create/update/delete operation

* Linting

* Start rewrite of folder rules service unit tests

* Rules service and rule sets service unit tests

* Readd rules services create, update & delete unit tests

* rule set list ui component unit tests

* Manage rules component unit tests

* Remove & modify comments
2022-11-16 16:29:26 +00:00
Nikita Maliarchuk
b63a07b012 [ACA-4624] - added placeholder (#2777) 2022-11-16 10:07:39 +01:00
Denys Vuika
cc41a575ac Revert snackbar changes (#2778)
* Revert "[AAE-10766] upgrade to new About component (#2769)"

This reverts commit 5ce4835e4c.

* restore about dialog changes

* latest ADF alpha
2022-11-15 17:01:04 +00:00
Nikita Maliarchuk
854fb28374 [ACS-3859] Action parameter constraints into dropdown box (#2773)
* [ACS-3859] - functionality implementation

* [ACS-3859] - unit tests

* [ACS-3859] - small fix
2022-11-15 11:07:27 +01:00
Denys Vuika
5ce4835e4c [AAE-10766] upgrade to new About component (#2769)
* [AAE-10766] upgrade to new About component

* upgrade to latest ADF alpha

* update e2e to reflect snackbar changes

* Revert "update e2e to reflect snackbar changes"

This reverts commit 6164804bab.

* ACS-3640 a 11 y aca 881740 snackbar messages disappear without option to adjust timing (#2734)

* ACS-3640 Increasing time of autoclosing snackbar and adding X icon to close snackbar

* ACS-3640 Fix lint issues

* ACS-3640 Addressing PR comments

* ACS-3640 Fix lint issue

* ACS-3640 Added aria label for action icon

* ACS-3640 Fixed one left file

* ACS-3640 Fixed lint issues

* use latest adf

* ACS-3640 Correction for e2e

Co-authored-by: Denys Vuika <denys.vuika@gmail.com>

* remove the action check from the snackbar

* update e2e

* update e2e

* update e2e

* Update e2e

Co-authored-by: AleksanderSklorz <115619721+AleksanderSklorz@users.noreply.github.com>
Co-authored-by: Aleksander Sklorz <Aleksander.Sklorz@hyland.com>
2022-11-14 23:55:06 +00:00
MichalKinas
8081bc81d6 [ACA-4618] Decouple ACA and Governance (#2757)
* [ACA-4618] Remove governance dependecies from ACA

* [ACA-4618] Move canOpenWithOffice evaluator to ACA shared

* [ACA-4618] Add missing unit test changes

* [ACA-4618] Prettier fixes
2022-11-04 11:15:33 +00:00
AleksanderSklorz
ae57a094b1 ACS-3545 fix e2e tests (#2759)
* [ci:force][auto-commit] Update @alfresco/js-api to 5.2.0-401 for branch: update-alfresco-dependencies originated from @alfresco/js-api PR: 36873

* [ci:force][auto-commit] Update @alfresco/adf-extensions to 5.2.0-36869 for branch: update-alfresco-dependencies originated from @alfresco/adf-extensions PR: 36873

* [ci:force][auto-commit] Update @alfresco/adf-core to 5.2.0-36869 for branch: update-alfresco-dependencies originated from @alfresco/adf-core PR: 36873

* [ci:force][auto-commit] Update @alfresco/adf-content-services to 5.2.0-36869 for branch: update-alfresco-dependencies originated from @alfresco/adf-content-services PR: 36873

* [ci:force][auto-commit] Update @alfresco/adf-cli to 5.2.0-36869 for branch: update-alfresco-dependencies originated from @alfresco/adf-cli PR: 36873

* [ci:force][auto-commit] Update @alfresco/adf-testing to 5.2.0-36869 for branch: update-alfresco-dependencies originated from @alfresco/adf-testing PR: 36873

* ACS-3545 Fix for e2e tests

Co-authored-by: alfresco-build <alfresco-build@hyland.com>
2022-11-04 10:47:28 +00:00
Thomas Hunter
e354ec3891 [ACS-3744] Folder rules styling fixes (#2753)
* Folder rules styling fixes

* Fix not showing isInheritable in read only
2022-11-02 12:51:40 +00:00
MichalKinas
eee6feca1a [ACS-3700] Pass mat menu items from external components to mat menu (#2720)
* [ACS-3700] Pass mat menu items from external components to mat menu

* [ACS-3700] Linter fixes
2022-11-02 13:10:27 +01:00
Thomas Hunter
2b12fa983c [ACS-3886] Fix edit button being disabled when opening edit rule dialog initially (#2754)
* [ACS-3886] Fix edit button being disabled when opening edit rule dialog initially

* Fix test
2022-11-02 09:35:52 +00:00
Thomas Hunter
2bdad0bce7 [ACS-3872] Disable boolean mode dropdown due to lack of OR in ACS (#2744) 2022-10-27 12:37:19 +01:00
AleksanderSklorz
fd83219d54 [ACS-3545] a11y aca metadata sidebar (#2742)
* ACS-3545 Added aria label to progress bar for metadata sidebar

* ACS-3545 Fixed lint issues
2022-10-27 09:18:37 +01:00
Nikita Maliarchuk
441df71885 renamed comparator's value (#2733) 2022-10-21 14:43:41 +01:00
Nikita Maliarchuk
77c5ac0c96 [ACS-3576] Map aspect actions with the aspect picker dropdown (#2713)
* rebased

* rebased

* unit tests

* linting

* publicApiCall

* renamed method formatAspects to parseAspectsToSelectOptions

* added getter cardViewStyle

* removing business logic from the ui component

* moved 'loadAspects()' to actions.service.ts

* preview fix

* removed duplicate
2022-10-18 15:49:20 +01:00
Thomas Hunter
a66226992e [ACS-3721] Change folder rules endpoints to private (#2710) 2022-10-13 14:14:48 +01:00
Thomas Hunter
9549a6c098 [ACS-3698] Add some validation to the actions section of the folder rules create / update dialog (#2712)
* Action definition ID required

* Unit tests

* Lint
2022-10-13 11:31:20 +01:00
MichalKinas
3e44f46575 [ACS-3552] Accessibility fixes for CSV file issues (#2705)
* [ACS-3552] Accessibility fixes for CSV file issues

* [ACS-3552] Fix tabindex attribute values
2022-10-11 23:46:10 +01:00
Denys Vuika
df4a80f641 [MNT-22754] fix context menus for records (#2706)
* fix context menus for records

* fix unit tests

* fix unit tests
2022-10-11 22:21:30 +01:00
Nikita Maliarchuk
a804dceade [ACS-3511] Update rules (#2701)
* rebase

* fixed a bug conserning isEnabled checkbox

* removed addFakeApect, added unit tests

* linting

* renamed openNewRuleDialog to openCreateUpdateRuleDialog
2022-10-11 09:24:37 +01:00
Thomas Hunter
59c7d68299 [ACA-3258] Edit rule dialog actions section (#2692)
* Add actions service

* Create components

* Rebasing

* Add card view component

* Moved actions definition call outside of actions list component

* Localisation of parameter and action labels + read only mode for components

* Remove action option

* Default to one item in array

* Handle change of cardview

* Linting

* Add unit tests

* Fix broken unit tests

* Fix unknown word

* Add private to property
2022-10-06 14:07:47 +01:00
Nikita Maliarchuk
cd6a2cc238 [ACS-3596] Create / Update rule dialog - display errors (#2685)
* folder-rules.service - createRule method

* add temp method addFakeAction

* [ACS-3596] Create / Update rule dialog - display errors

* comments removed
2022-10-04 12:18:36 +02:00
MichalKinas
958134e22d [ACS-3621] Fix context menu directive flaky unit test (#2675) 2022-10-03 10:07:36 +01:00
Nikita Maliarchuk
4a6725133d [ACS-3359] Rename boolean fields in rule API. (#2672)
* [ACS-3359] Rename boolean fields in rule API.

* renamed some other fields

Co-authored-by: Tom Page <thomas.page@alfresco.com>
2022-09-28 16:51:46 +02:00
Nikita Maliarchuk
aaa1914263 [ACS-3575] Update FolderRulesService to provide a list of available aspects (#2669)
* first commit

* [ACS-3575] Update FolderRulesService to provide a list of available aspects

* rebase
2022-09-26 11:11:49 +02:00
Nikita Maliarchuk
1f0d590a84 [ACS-3586] ACA/Folder Rules: Adding a rule to a Folder seems to break the Folder Rules UI (#2663)
* [ACS-3586] ACA/Folder Rules: Adding a rule to a Folder seems to break the Folder Rules UI

* refactored condition statement

* linter

* parseSimpleCondition fn
2022-09-23 09:29:46 +01:00
Nikita Maliarchuk
c2b9c6cc55 [ACS-3259] Create / Update rule dialog - options section (#2651)
* first commit

* intermediate commit

* some progress

* [ACS-3259] Create / Update rule dialog - options section
2022-09-20 10:14:49 +01:00
Gloria Camino
f48a5b8483 LOC-391 Fix for ACA-4606 - Updated strings in 16 languages (#2647) 2022-09-16 12:38:49 +01:00
Ketevani Kvirikashvili
50c84a0e8c [AAE-10253] It shouldn't be possible to right click in a drag&drop empty area (#2611)
* [AAE-10253] It shouldn't be possible to right click in a drag&drop empty area

* changed expect

* add method isEmptyTable
2022-09-16 11:40:22 +01:00
Nikita Maliarchuk
3b9eae677c [ACS-3512] - ACA enable/disable rule from listing (#2636)
* initial html layout

* toggleRule method

* [ACS-3512] - ACA enable/disable rule from listing

* useless crutch was deleted
2022-09-16 11:14:32 +02:00
Sushmitha V
49e48abf3a [AAE-6294] The list should be refreshed without allowing a used to se… (#2629)
* [AAE-6294] The list should be refreshed without allowing a used to select the same folder already deleted

* Changes done as per comment

* resolved build fails
2022-09-12 14:24:19 +02:00
Gloria Camino
402a14368d LOC-383 - Updated UI files in 16 languages for ACA 2.13 release (#2619) 2022-09-02 15:46:12 +01:00