204 Commits

Author SHA1 Message Date
dependabot[bot]
28bdab1146
Bump stylelint from 13.13.1 to 14.2.0 (#7431)
* Bump stylelint from 13.13.1 to 14.2.0

Bumps [stylelint](https://github.com/stylelint/stylelint) from 13.13.1 to 14.2.0.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/13.13.1...14.2.0)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* upgrade to newest stylelint

* fix style issues

* fix color function rules to match old Angular

* rollback modern color func

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Denys Vuika <denys.vuika@gmail.com>
2022-01-05 09:21:09 +00:00
Eugenio Romano
c8688bf0bf
[ACA-4382 ] About Page refactoring to use it across all the platform (#7365)
* about page refactor for global usage

* Development About

* add storybook

* fix build

* fix

* fix

* fix imports

* fix

* fix lint

* fix

* fix

* fix

* fix
2021-11-23 10:30:10 +00:00
Eugenio Romano
40377e040e
fix missing translation permission (#7297)
fix UI regression Datatable full width
2021-10-13 14:50:09 +01:00
Denys Vuika
6f968f7e4a
[AAE-5637] Remove SCSS mixins and use CSS variables (#7250)
* remove default-class mixin and use regular import

* cleanup colors

* remove variables file, fix bugs in animations

* proper ordering of imports, core css vars

* cleanup snackbar and material themes

* tags component

* login component styles

* app login

* toolbar component styles

* breadcrumb styles

* dropdown breadcrumb

* app layout component

* demo shell: files component

* aspect list styles

* content metadata styles

* node selector

* name location cell

* node share dialog

* content type dialog

* folder dialog

* document list

* datatable theme

* pagination theme

* viewer theme

* viewer theme

* user-info theme

* container widget

* dynamic table theme

* form widgets

* form theme

* form renderer

* sidebar menu

* header theme

* info drawer theme

* comment list

* commens and layout container

* sidenav layout

* empty content

* error content

* clipboard theme

* search input

* tooltip card and notification history

* card view theme

* remove unused keys

* add permission dialog

* search and permission dialogs

* version comparison and column themes

* upload drag area and cleanup references

* remove the need for content styles

* insight components

* cleanup insights theme

* process components

* process components

* process cloud themes

* cleanup unsed imports

* cleanup mixins

* update build scripts

* test fixes

* remove fdescribe

* css fixes

* update unit tests
2021-09-29 13:17:05 +01:00
Denys Vuika
3c5da169b2
Theme bugfixes (#7186)
* fix core bugs

* use proper pallettes
2021-07-23 12:09:55 +01:00
Denys Vuika
81f7e2af33
[ADF-5456] improved theming bundling (#7180)
* theming barrel file for core

* card-view theme

* clipboard theme

* rename core theme files

* content services themes

* process services theme

* process services cloud theme

* insights theming

* try fix flaky test
2021-07-20 15:24:37 +01:00
Denys Vuika
a4c3f3a95b
[ADF-5415] remove deprecated async method (#7171)
* remove deprecated async method

* fix tests and code

* test fixes

* fix tests
2021-07-12 20:09:47 +01:00
Thomas Hunter
0fa677c92a
[ACA-4455] Fix horizontal scroller sometimes showing up on datatable (#7135) 2021-06-30 13:24:36 +01:00
Thomas Hunter
2ef7596620
[ACA-4455] Fixed row column scrolling on small width screens (#7133) 2021-06-29 17:01:53 +01:00
Denys Vuika
829805e201
[ADF-5432] component template and code fixes after testing Angular strict mode (#7118)
* process list fixes

* template error fixes

* template and code fixes

* bug fixes in templates and types

* bugs, bugs are everywhere

* fix test

* test fixes

* enable strict templates for extensions lib

* enable strict mode for insights lib

* enable strict mode for core lib

* enable strict mode for content lib

* strict mode for process lib

* strict mode for process cloud

* fix demo shell template issues

* fix process cloud types
2021-06-22 16:36:06 +01:00
Thomas Hunter
e2b8557f4b
[AAE-5362] Add option to make actions button visible only on hover (#7117)
* [AAE-5362] Add option to make actions button visible only on hover

* [AAE-5362] Refactor

* Unrelated linting fixes
2021-06-22 16:28:38 +01:00
Denys Vuika
3079aa48c3
[ADF-5422] remove deprecated "async()" from unit tests (#7109)
* remove angualar async from content services

* upgrade more tests

* upgrade core tests

* upgrade tests

* fix deprecated constant

* fix tests

* fix after rebase
2021-06-15 16:16:15 +01:00
Denys Vuika
e94b2f99bd
[ADF-5406] SCSS and HTML template path fixes (#7063)
* remove useless mixin

* fix scss paths

* style fixes

* fix styles

* style fixes

* style fixes

* style fixes

* style fixes

* insights fixes

* css and template path fixes

* bug fixes
2021-06-01 09:21:00 +01:00
Dharan
87d87a4ce1
[ACA-4407] unit test for data table custom header (#7004)
* [ACA-4407] unit test for data table custom header

* * fix icon size
2021-05-10 13:15:05 +01:00
Dharan
5780b46acc
[ACA-4361] Fix data column conflict (#6986)
* [ACA-4361] Fix data column conflict

* * revert html
2021-05-07 19:39:39 +02:00
Dharan
0635b7fd06
[ACA-4361] permission layout modified (#6937)
* * reusable data table column moved

* [ACA-4361] permission layout modified

* * build fixed

* fix build

* * import fixed

* * null safety operation

* * fixed comments

* * fix lint

* * wait for reload list

* * remove sleep

* * add sleep

* * fix comments

* * fix comments

* * floating promises fix

* * remove wait
2021-04-23 08:50:28 +01:00
Dharan
d18418d033
Revert "move scroll overflow to parent (#6730)" (#6926)
This reverts commit 4653e10872772fd9604a3060b7f25b6a06f50136.
2021-04-15 13:57:48 +01:00
Denys Vuika
84ce202ad2
[AAE-4966] Extensible app config (#6914)
* merge app config from the extensions

* improved service injection in unit tests

* extra unit test

* fix content tests

* update code as per review

* fix lint

* fix lint

* update code and tests

* update schema
2021-04-13 14:16:29 +01:00
arditdomi
e589071328
[AAE-4841] - Fix content node selector current selection is lost after uploading files (#6862)
* [AAE-4841] - Preserve current selection when preselecting the newly uploaded nodes

* add a method to handle unselection of a preselected row in document list and emit the change

* Fix-refactor unselection

* Fix document list reload

* Partial revert share datatable adapter

* try with overwriting datatable selection

* Sync datatable selection after every page load

* refactor selection/unselection in datatable by using a row id

* Fix/Add some unit tests

* Move preselection from adapter to doc list, fix single selection mode

* Add some unit tests

* Add document list unit tests
2021-04-08 14:55:06 +01:00
Cilibiu Bogdan
4653e10872
move scroll overflow to parent (#6730) 2021-02-25 13:05:42 +00:00
Silviu Popa
f73dece82d
[AAE-4077] - TaskCloud: Refactor priority (#6385)
* [AAE-4077] - TaskCloud: Refactor priority

* export default priority values

* Fix e2e tests

* fix navigation from task-list

* Update task-list-properties-sort.e2e.ts

* Fix lint

Co-authored-by: Cano <david.cano.nieto@gmail.com>
2020-11-26 17:38:40 +00:00
davidcanonieto
e497b31e3e
[AAE-3469] New Service Task Cloud Component (#6161)
* [AAE-3469] New Service Task Lisst Component

* Fix unit tests

* Add documentation

* Add public methods to Data Table Schema

* [AAE-3469] New Service Task Cloud Component

* Fix comments

* Fix comments

* Fix unit tests
2020-09-28 09:47:18 +01:00
davidcanonieto
b0a46f7eac
[ADF-5219] Refactor Document list Filters (#6092)
* First commit

* Second commit

* Commit 4

* Add unit tests

* Fix unit tests

* Add documentation for breaking change

* Fix rebase

* Fix unit test
2020-09-25 10:08:15 +01:00
davidcanonieto
a888689caa
Revert "[AAE-3469] New Service Task List in Task List Cloud Component (#6131)" (#6154)
This reverts commit 472e112b71ab928c454818c706ccc2c6debc91c4.
2020-09-23 10:48:52 +02:00
davidcanonieto
472e112b71
[AAE-3469] New Service Task List in Task List Cloud Component (#6131)
* [AAE-3469] New Service Task Lisst Component

* Fix unit tests

* Add documentation

* Add public methods to Data Table Schema
2020-09-22 20:41:53 +01:00
Denys Vuika
d355f76499
drag and drop improvements (copy effect) (#6019)
* drag and drop fixes (copy effect)

* fix tests

* update tests

* test fixes
2020-08-18 10:57:09 +01:00
Vito
61cac20ab3
Readded column key as key parameter (#5960)
* Readded column key as key parameter

* Fixed failing unit test
2020-08-07 09:37:40 +01:00
Vito
85183ead0d
[ACA-3542] - added sorting for filters (#5932)
* [ACA-3542] - added sorting for filters

* [ACA-3542] - removed wrong parameter

* [ACA-3542] - fixed test with fixed sorting mode parameter

* Update content-node-selector-panel.component.html

* fix e2e

* fix delete site

Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com>
2020-08-03 10:30:14 +01:00
Vito
30c5c58d40
[ACA-3672] - added server order for document -list (#5899)
* [ACA-3672] - added sorting server side for document-list

* [ACA-3672] - added and fixed unit tests for backend order

* [ACA-3672] - fixed failing test

* [ACA-3672] - regenerated doc and renamed variable

Co-authored-by: Vito Albano <vitoalbano@Vitos-MacBook-Pro.local>
2020-07-23 14:04:05 +01:00
Mercy Chrysolite
ed12b13c87
[ACA-3529] Custom filter doesn't work properly when Direction is set to ASC (#5829)
* [ACA-3479] Sort Order arrow not displayed in task and process list

* Added unit tests

* Fixed lint

* Updated constant prefix

* Added retention of sorting when ItemsPerPage changes

* Removed unwanted changes check; Renamed sortInput

* Updated unit tests

* [ACA-3529] Custom filter doesn't work properly when Direction is set to "ASC"

* Added server side sorting, when sort on column is changed

* Added unit tests
2020-07-07 17:39:27 +05:30
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
Vito
29d953e2d1
ACA-3426 - Search Headers for Document List (#5800)
* [ACA-3426] Move filter-menu inside search and renamed as search-header

* [ACA-3426] adf-search-header removed from document-list and implemented in app-files

* [ACA-3426] Allow custom header filters inside document-list

* [ACA-3426] Decouple search from the document-list

* [ACA-3409] NodePaging ouputed to the DL

* [ACA-3426] - fixed injection for service

* Dev baptiste aca 3430 (#5773)

* [ACA-3430] Add style to filter and hide action buttons from facet widgets

* [ACA-3430] Update eventEmitter created in the DL and create  unit tests for the search-header

Co-authored-by: BaptisteMahe <mahe.baptiste.19@gmail.com>

* [ACA-3426] - added parent for service

* [ACA-3426] - added parent for service - fixed method

* [ACA-3426] Revert update EventEmitter inside DL

* [ACA-3436] Use of the node input instead of nodeUpdate mehtod

* [ACA-3426] Add clear behaviour to search-header

* [ACA-3426] Remove useless update exposition

* [ACA-3426] Update filter button styles and padding inside the filter menu

* [ACA-3443] Propagate filters states through DL and datatable to avoid hiding the header

* [ACA-3426] Refactor showHeader logic and use it for the filters

* [ACA-3426] - fixed pagination for filter result

* [ACA-3426] - fixed messed files after rebase

* [ACA-3426] - added simplified config version

* [ACA-3426] - enabling created by filter

* [ACA-3426] Fix search-date-range apply method

* [ACA-3426] Fix loading style and default showHeaderMode

* [ACA-3426] Changed showHedaer default to always

* [ACA-3426] - stabilised the feature and added injection token

* [ACA-3426] Add unit test for showHeader new behaviour

* [ACA-3426] Add documentation to search-header

* [ACA-3426] - added parent filtering for special folders

* [ACA-3426] - added unit test for search header

* [ACA-3426] - fixed search fitler behavour

* [ACA-3426] - fixed search result inject service

* [ACA-3426] - fixed search result inject service for search sorting

* [ACA-3426] - fixed title for matching selector

* [ACA-3426] - fixed app config with missing search widget

* Update search-header.component.md

Co-authored-by: BaptisteMahe <mahe.baptiste.19@gmail.com>
Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
2020-06-22 09:24:57 +01:00
dhrn
5a0ba6666d
[ACA-3474] [Info Drawer] Error on save (#5791) 2020-06-20 14:56:41 +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
arditdomi
d56bca3765
[ACA-3201] Fix datatable non-sortable with sortable columns are not aligned (#5771) 2020-06-11 18:13:01 +01:00
Baptiste Mahé
6412697d96
[ACA-3407] New component : Filter Menu created and implemented inside the Document List (#5748)
* [ACA-3407] New component : Filter Menu, implemented inside the Document List

* [ACA-3407] Refactor click method

* [ACA-3407] Update Filter Icon style

* [ACA-3407] Add filter icon and update tooltip with column name
2020-06-08 09:46:45 +01:00
Baptiste Mahé
439e3c7a7c
[ADF-5153] Transclusion exposed from the DataTable to the DocumentList (#5743)
* [ADF-5153] Transclusion exposed from the DataTable to the DocumentList

* [ADF-5153] Add flags to control transclusion

* [ADF-5153] Remove Ngif breaking the transclusion
2020-06-02 15:31:56 +01:00
arditdomi
3649e9239f
[ACA-3368] Update datatable columns when presetColumn schema changes (#5732)
* [ACA-3368] Update datatable columns when presetColumn schema changes

* [ACA-3368] Add presetColumn change detection for task list

* [ACA-3368] Improve unit tests, fix comments

* [ACA-3368] More unit test improvements
2020-05-29 14:34:42 +01:00
Baptiste Mahé
a9a801c34d
[ADF-5150] Datatable sub-component each in its own folder (#5734) 2020-05-28 22:45:32 +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
Urse Daniel
4cb3a876d9
[ACA-45] Drag and Drop a New Version (#5710)
* added a new input: file

* unit test - having singleFile option and a file as input, the type of the input for uploading should be button instead of file

* added a click event for the upload button and also handle if having a file as input, the type of the input should be 'button' instead of 'file'

* handling allowed for upload also for 'update' permissions over a dropped file. also emitting a new event for updating file version if i'm dropping a single file over another file.

* unit tests for handling dropping a file over another

* added a new input (file type)

* passing a file to adf-version-upload component

* new input as file and toggle new version if having that as input + unit test

* added new input as file for new version

* added new input to allow dropping a file over another to update it's version

* added a new variable for handling dropping a file over another one and also handle a new event when we update the file version

* pass a new dropped file to the dialog

* new message

* new method to allow isDropTarget for a file instead only to folders.

* new emitter for updating a file's version

* allows updating a file's version by dropping another file over it.

* refactor allowDropFiles

* update docs for drag&drop file into another file

* update for drag&drop a file over another file functionality

* made the allowDropFiles checking optional for isDropTarget property, only checking if the value is passed to the share-data-row

Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com>
2020-05-20 11:57:17 +01:00
davidcanonieto
b6072f806a
[ADF-5129][ADF-5130] Fix Lock in Gallery view and Lock Dialog (#5646) 2020-04-28 08:50:06 +01:00
Urse Daniel
4f8aa8d4be
added indeterminate state for the 'select all' checkbox + unit test. (#5590) 2020-04-06 13:01:03 +01:00
Urse Daniel
6d406d8a7d
[ADF-4264] Fixed the breadcrumb when changing to custom site in node selector (#5589)
* unit test for veryfing if changing to a custom site the current breadcrumb folder is the title of the site.

* fixed the problem when changing to a custom site the breadcrumb current folder title is not changing. fixed the issue when navigating inside a node after changing to a custom site the path to the root in the breadcrumb was not the correct path.

* updated the styling for the data rows to match the styling of the breadcrumb

* if there is an error the loader should stop not only if there is a message. updated to fix the node-selector site problem when adding a non existing site, the loader would previously keep spinning even though in console was thrown an error but the clients never had an UI update about the issue.
2020-04-03 10:55:51 +01:00
Urse Daniel
8f3f5b3879
[ADF-4933] Adding keydown event on data row to simulate double click when pressing 'enter' key (#5564)
* changing the event on row from keyup to keydown to fix the issue of reopening the file after closing ussing only keyboard (opening and closing the file by enter)

* Reverting the 'onRowKeyDown' to not make a breaking change and added a new method to handle the opening file using 'enter' key

* Added unit test - it should emit double click if keydown "enter key" on row

* Small changes for clean coding
2020-03-27 16:33:44 +00:00
Denys Vuika
fc6a80c45a
[ACA-2566][ACA-2567] permissions a11y fixes (#5560)
* fix layout and a11y, cleanup html

* fix sorting announcer

* fix i18n issue for Actions column
2020-03-19 16:47:24 +00:00
Eugenio Romano
a70883378a
[AAE-2107] Move e2e to Unit test (#5535)
* [AAE-2107] Move e2e to Unit test

* * fixed namings

* * more unit test added

* * minor changes
2020-03-05 16:47:59 +00:00
Denys Vuika
999e513087
add missing DataColumn module to DataTable (#5512)
* add missing DataColumn module to DataTable

* fix import path
2020-02-26 14:58:26 +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
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