Compare commits

...
313 Commits
Author SHA1 Message Date
Eugenio Romano 12ef9656aa 4.6.0 bump and doc update (#7253)
* update doc 4.6.0

* 4.6.0 bump

* fix

* fix lock
2021-09-15 16:08:17 +01:00
Vito d2910ab078 [ADF-5462] - fixed logout redirect on other tabs (#7245) 2021-09-13 14:05:19 +01:00
Eugenio Romano 3f44e2e649 update-doc-viewer (#7246) 2021-09-13 10:10:01 +01:00
arditdomiandArdit Domi cb79b216ce [ACA-4310] - Show the breadcrumb even for invalid selections in searc… (#7241)
* [ACA-4310] - Show the breadcrumb even for invalid selections in search results

* Empty commit

Co-authored-by: Ardit Domi <arditdomi@apl-c02g64vpmd6t.home>
2021-09-08 12:14:08 +01:00
Gloria Camino 20f1ca1cf9 LOC-323 - Updated UI for ADF 4.6 in 16 languages (#7234) 2021-09-06 11:02:56 +01:00
Dharan 01f0139504 [ACA-3669] Incorrect Version Number Displayed (#7230) 2021-09-02 14:19:17 +01:00
Pablo Martinez Garcia e5192c10d6 Update candidatebaseapp to remove start event referencing unexisting form (#7231) 2021-09-02 10:25:07 +01:00
Pablo Martinez Garcia c54587d90d [AAE-5727] Add 'today' and 'now' as default values for date and datetime widgets (#7229) 2021-09-01 16:10:25 +02:00
dependabot[bot] 86d9a09c63 Bump ts-node from 10.0.0 to 10.2.1 (#7219)
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.0.0 to 10.2.1.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.0.0...v10.2.1)

---
updated-dependencies:
- dependency-name: ts-node
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-25 09:39:05 +02:00
Michał Dunat eb95e84ea7 [AAE-5718] change ngOnInit to ngAfterViewInit in Login component docs in Customizing validation rules section (#7223) 2021-08-24 16:11:47 +02:00
Alfresco Build UserandTravis CI User 336c3700f1 [ci:force][auto-commit] Update JS-API to 4.6.0-3790 for branch: update-js-api originated from JS-API PR: 3805 (#7221)
Co-authored-by: Travis CI User <travis@example.org>
2021-08-24 11:08:28 +02:00
arditdomiandArdit Domi aac821a1fe [AAE-5414] - SSO Auth Guard - Add the concept of excluded roles (#7222)
Co-authored-by: Ardit Domi <arditdomi@apl-c02g64vpmd6t.home>
2021-08-24 09:25:36 +01:00
Alfresco Build UserandTravis CI User d0e99c6bbf [ci:force][auto-commit] Update JS-API to 4.6.0-3790 for branch: update-js-api originated from JS-API PR: 3793 (#7215)
Co-authored-by: Travis CI User <travis@example.org>
2021-08-18 10:33:31 +02:00
Eugenio Romano 194274a8d8 Update update-project.sh (#7216) 2021-08-18 10:33:20 +02:00
Thomas Hunter 6dae24d424 [ADF-5460] Add placeholder to SearchTextInputComponent (#7208) 2021-08-16 12:34:44 +02:00
dependabot[bot] d89957a4ec Bump concurrently from 6.2.0 to 6.2.1 (#7211)
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 6.2.0 to 6.2.1.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v6.2.0...v6.2.1)

---
updated-dependencies:
- dependency-name: concurrently
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-16 11:33:25 +01:00
Eugenio Romano a25923d1f2 Improve compatibility (#7214)
* refactor content

* refactor core

* refactor rest

* fix lint

* fix

* lint

* lint

* fix

* fix

* fix
2021-08-16 11:42:29 +02:00
Alfresco Build UserandTravis CI User 8c8e388fa0 [ci:force][auto-commit] Update JS-API to 4.6.0-3780 for branch: update-js-api originated from JS-API PR: 3781 (#7209)
Co-authored-by: Travis CI User <travis@example.org>
2021-08-14 16:39:39 +02:00
Denys Vuika 6e6ba46026 add missing api to extensions interface (#7120) 2021-08-13 11:38:45 +01:00
dependabot[bot] 4cf8d96131 Bump path-parse from 1.0.6 to 1.0.7 in /tools/doc (#7206)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-13 10:47:15 +01:00
Alfresco Build UserandTravis CI User cf9107850f Update branch for JS-API PR#3711 (#7183)
* [ci:force][auto-commit] Update JS-API to 4.6.0-3709 for branch: update-js-api originated from JS-API PR: 3711

* [ci:force][auto-commit] Update JS-API to 4.6.0-3740 for branch: update-js-api originated from JS-API PR: 3741

* [ci:force][auto-commit] Update JS-API to 4.6.0-3745 for branch: update-js-api originated from JS-API PR: 3746

* [ci:force][auto-commit] Update JS-API to 4.6.0-3771 for branch: update-js-api originated from JS-API PR: 3772

Co-authored-by: Travis CI User <travis@example.org>
2021-08-13 10:14:54 +01:00
dependabot[bot] 36fade536c Bump @apollo/client from 3.3.20 to 3.4.5 (#7199)
Bumps [@apollo/client](https://github.com/apollographql/apollo-client) from 3.3.20 to 3.4.5.
- [Release notes](https://github.com/apollographql/apollo-client/releases)
- [Changelog](https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-client/compare/v3.3.20...v3.4.5)

---
updated-dependencies:
- dependency-name: "@apollo/client"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-13 10:14:11 +01:00
dependabot[bot] 8d31edee68 Bump lint-staged from 11.1.1 to 11.1.2 (#7200)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 11.1.1 to 11.1.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v11.1.1...v11.1.2)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-12 16:22:00 +01:00
dependabot[bot] 6977770213 Bump url-parse from 1.5.1 to 1.5.3 (#7204)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.3)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-12 14:53:28 +01:00
Ketevani Kvirikashvili b15b414d08 [AAE-5163] Landing page title tooltip is displayed correctly (#7202) 2021-08-12 13:31:13 +01:00
dependabot[bot] d8440e0fea Bump jszip from 3.5.0 to 3.7.1 (#7203)
Bumps [jszip](https://github.com/Stuk/jszip) from 3.5.0 to 3.7.1.
- [Release notes](https://github.com/Stuk/jszip/releases)
- [Changelog](https://github.com/Stuk/jszip/blob/master/CHANGES.md)
- [Commits](https://github.com/Stuk/jszip/compare/v3.5.0...v3.7.1)

---
updated-dependencies:
- dependency-name: jszip
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-12 11:57:25 +01:00
dependabot[bot] dd24b464fd Bump path-parse from 1.0.6 to 1.0.7 (#7201)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-12 11:21:49 +01:00
Eugenio Romano c01417a08f [ADF-5429] Improve search for testability (#7198)
* improve search for testability

* fix lint
2021-08-06 11:09:51 +02:00
Eugenio Romano f30b20cc46 [ADF-5426] Remove compatibility layer from Lib (#7110)
* remove compatibility step 1

* remove compatibility step 2

* remove compatibility step 3

* remove compatibility step 4

* remove compatibility step 5
2021-08-04 17:31:35 +02:00
siva kumar 5d5b582e32 [AAE-5529] Include sorting params in the PeopleContentQueryRequestModel (#7193) 2021-08-02 11:40:46 +02:00
Dharan 4befb779f8 [MNT-22334] ADW - User information not displayed when Kerberos is in use (#7172)
* [MNT-22334] ADW - User information not displayed when Kerberos is in use

* * enable kerberos

* * added test

* Revert "* enable kerberos"
2021-08-02 11:30:09 +02:00
arditdomi 94d908e51a [AAE-5392] - Make search text input more configurable & add an event … (#7188)
* [AAE-5392] - Make search text input more configurable & add an event emitter to indicate the states of it

* Remove fdescribe

* Emit empty search term when the search gets cleared

* Emit the empty search term when the search gets collapsed by the Search icon

* Same onBlur, emit the empty search term

* Add unit tests for emitters resetting the search term

* Fix comments, use reset event emitter instead of emitting an empty search term

* Update documentation

* Revert reset to boolean

* Fix flaky unit test
2021-07-30 11:30:20 +03:00
Maurizio Vitale cab016046a [AAE-5560] ProcessServiceCloudModule - be able to inject a different preference service instance (#7185)
* be able to inject a different preference service instance

* retrigger
2021-07-29 10:00:47 +02:00
siva kumar 4940ffb006 [AAE-5529] Include sorting params in the PeopleContentQueryRequestModel (#7182)
* [AAE-5529] Include sorting params in the PeopleContentQueryRequestModel

* * Added unit tests to the recent changes on people content service

* * Fixed comment
2021-07-28 13:17:15 +02:00
Dharan 29b4190888 [ACS-1767] [ADF] - Convert C329803 and C329800 cases (#7170) 2021-07-28 11:36:07 +01:00
VitoandKetevani Kvirikashvili bd1b879e44 [MNT-22348] - Fixed visibility when complex cases are appling (#7176)
* [MNT-22348] - Fixed visibility when complex cases are appling

* [MNT-22348] - Fixed lint errrors

* [MNT-22461] Unit test for visibility condition behaviour for checkxox expression is added

* fixed unit test for visibility condition

* [MNT-22348] - Fixed wrong form definition

* [MNT-22348] - Fixed wrong quote

* [MNT-22348] - Fixed wrong form definition

* [MNT-22348] - fixed form definition

Co-authored-by: Ketevani Kvirikashvili <qqetikv@gmail.com>
2021-07-28 11:30:40 +01:00
siva kumar deb925679c [AAE-4740] FE - [ADF] Destination picker it's not displaying my files folder if the destination Folder path is set to a folder part of trash (#7173)
* [AAE-4740] FE - [ADF] Destination picker it's not displaying my files folder if the destination Folder path is set to a folder part of trash

* * Added notification message

* * Fixed some comments

* * Rollbacl to preview changes

* * Added more unit tests

* * Removed MatDialogModule from test

* * Fixed comments
2021-07-28 11:18:39 +02:00
dependabot[bot] f049c90788 Bump lint-staged from 10.5.1 to 11.1.1 (#7192)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.5.1 to 11.1.1.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.5.1...v11.1.1)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-28 09:22:22 +01:00
Denys Vuika 635e8bea49 rollback theming enhancements (#7191) 2021-07-28 07:56:20 +01:00
Denys Vuika 3c5da169b2 Theme bugfixes (#7186)
* fix core bugs

* use proper pallettes
2021-07-23 12:09:55 +01:00
Denys Vuika 03caaafc6d force CI on the automatic ADF/JS-API upgrades (#7184) 2021-07-23 08:05:44 +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 c1860f0c1f [ADF-5410] code fixes and updates prior to Angular 12 upgrade (#7177)
* package fixes

* upgrade stylelint config

* upgrade configuration and stats

* code fixes based on Angular upgrade

* rework scss-bundle usage

* use node 14 with travis (lts)

* fix production builds

* fix node sass version
2021-07-15 12:48:23 +01:00
Alfresco Build UserandTravis CI User 182021a127 [ci:force][auto-commit] Update JS-API to 4.6.0-3694 for branch: update-js-api originated from JS-API PR: 3696 (#7174)
Co-authored-by: Travis CI User <travis@example.org>
2021-07-13 14:54:02 +02:00
VitoandEugenio Romano 3d94711326 [ADF-5173] - delayed destroying of pdfjs worker to prevent error on c… (#7062)
* [ADF-5173] - delayed destroying of pdfjs worker to prevent error on closing while loading

* [ADF-5173] - added delay instead of setTimeout

* Update pdf-viewer.component.ts

Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
2021-07-13 14:49:41 +02:00
Pablo Martinez Garcia 8be6bbaf3c [AAE-4241] Fix date and date time not being populated when node metadata is retrieved (#7025)
* AAE-4241 Fix date and date time not being populated when node metadata is retrieved

* AAE-4241 Fix unit tests

* [AAE-4241] Fix validation messages

* [AAE-4241] Fix unit tests

* [AAE-4241] Fix error log messages

* [AAE-4241] Fix unit tests

* [AAE-4241] Fix e2e tests
2021-07-13 07:22:27 +02: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
dependabot[bot] 059aa8ba06 Bump husky from 6.0.0 to 7.0.1 (#7168)
Bumps [husky](https://github.com/typicode/husky) from 6.0.0 to 7.0.1.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v6.0.0...v7.0.1)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-12 12:42:08 +01:00
Alfresco Build UserandTravis CI User d91bbea5e1 [ci:force][auto-commit] Update JS-API to 4.5.0-3672 for branch: update-js-api originated from JS-API PR: 3680 (#7165)
Co-authored-by: Travis CI User <travis@example.org>
2021-07-12 11:47:10 +02:00
Eugenio Romano 794e6d7069 upadte apk 1.21-alpine 2021-07-08 13:22:41 +02:00
Eugenio Romano 6154cbbc3d 1.21-alpine update 2021-07-08 13:19:24 +02:00
Eugenio Romano bce74a974a 1.20-alpine (#7159) 2021-07-08 12:33:56 +02:00
Eugenio Romano 71abca0348 4.5.0 bump (#7158) 2021-07-07 19:50:54 +01:00
Eugenio Romano 69527712b6 Improve tslint configuration (#7157) 2021-07-07 17:03:01 +02:00
Dharan d17d003f75 [ADF-5439] New bubble filters with expandible list extends too much when there are too many elements (#7156) 2021-07-07 11:37:53 +02:00
d6499792bd Update branch for JS-API PR#3674 (#7154)
* [ci:force][auto-commit] Update JS-API to 4.5.0-3672 for branch: update-js-api originated from JS-API PR: 3674

* Update search-filters.e2e.ts

Co-authored-by: Travis CI User <travis@example.org>
Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
2021-07-07 11:36:29 +02:00
Dharan 7e4954bd80 [ADF-5439] New bubble filters with expandible list extends too much when there are too many elements (#7153) 2021-07-06 11:17:31 +02:00
arditdomi 54402f7ba4 [AAE-5458] - Reset filters when the filter input is not defined (rollback code causing regression) (#7151)
* Reset filters when the new filter param is undefined

* Rollback more code, fix unit tests

* Fix spaces after comma
2021-07-05 17:30:57 +01:00
Dharan 8024f828f7 * fix adf lint (#7152) 2021-07-05 16:55:02 +02:00
Dharan cb5c3abd7c [ADF-5440] update ADF e2e for APS 2.0 (#7150)
* [ADF-5440] update PS  e2e for APS 2.0
[ci:force] run all e2e

* [ci:force] run all e2e

* [ci:force] revert old app config value
2021-07-05 16:12:46 +02:00
Pablo Martinez Garcia dab75c51ee [ACA-4503] Fix close all dialogs (#7142)
* [ACA-4503] Fix close all dialogs

* [ci:force] clean unit test file
2021-07-05 15:18:59 +02:00
Dharan cc8a9f3ca0 [ADF-5438] Demoshell fixes (#7148)
[ADF-5438] 'Clear' and 'Apply' are showed for the new 'Content Size' bubble
[ADF-5437] Content size bubble filter shows a clear button

[ADF-5436] Check list filter shows 'Clear All' when there's already the remove button
2021-07-05 17:04:10 +05:30
Alfresco Build UserandTravis CI User 1afe1dd5c2 [ci:force][auto-commit] Update JS-API to 4.5.0-3650 for branch: update-js-api originated from JS-API PR: 3656 (#7145)
Co-authored-by: Travis CI User <travis@example.org>
2021-07-05 12:57:46 +02:00
Gloria Camino 93a31f6306 LOC-314 -Updated UI files in 16 languages for ADF 4.5 release (#7141) 2021-07-05 12:57:30 +02:00
Dharan bbc2701df2 [ACA-4486] docs update (#7146)
* [ACA-4486] docs update

* * [ci:force] rename see also section

* [ci:force] settings and  migrate step added

* settings and  migrate step added

* [ci:force] minor corrections
2021-07-05 11:56:56 +02:00
Pablo Martinez Garcia d93980d1a3 [ACA-4503] Fix closing dialogs behind when closing the content selector dialog (#7138)
* [ACA-4503] Fix closing dialogs behind when closing the content selector dialog

* [ACA-4503] Close the dialogs from the content node selector component
2021-07-01 15:16:26 +02:00
Eugenio Romano 05c3ed01d7 [7094] Fix empty save people groups (#7137)
* fix empty save people groups

* fix
2021-07-01 12:36:13 +02:00
arditdomi 94aa8aec35 [AAE-5432] - Fix no filter should be selected by default (#7136)
* Fix no filter should be selected by default

* Replace not.toBeDefined with toBeUndefined

* Fix comment - Trigger onChanges with filter change instead of appName
2021-07-01 09:58:31 +02:00
Thomas Hunter 0fa677c92a [ACA-4455] Fix horizontal scroller sometimes showing up on datatable (#7135) 2021-06-30 13:24:36 +01:00
Eugenio Romano 91b6dc176b Update protractor.excludes.json (#7132) 2021-06-30 12:30:55 +02:00
Silviu Popa 40e48d2444 fix disable complete button on invalid datetime (#7134) 2021-06-29 18:20:58 +02:00
Thomas Hunter 2ef7596620 [ACA-4455] Fixed row column scrolling on small width screens (#7133) 2021-06-29 17:01:53 +01:00
arditdomi 7f7b61bda1 [ACA-4479][ACA-4480] - Enable Save button when the form is invalid (#7131)
* [ACA-4479][ACA-4480] - Enable Save button when the form is invalid

* Add a unit test for form cloud

* Fix e2e
2021-06-29 14:36:19 +01:00
Alfresco Build UserandTravis CI User 2e377731c9 Update branch for JS-API PR#3648 (#7129)
* [ci:force][auto-commit] Update JS-API to 4.5.0-3646 for branch: update-js-api originated from JS-API PR: 3648

* [ci:force][auto-commit] Update JS-API to 4.5.0-3650 for branch: update-js-api originated from JS-API PR: 3651

Co-authored-by: Travis CI User <travis@example.org>
2021-06-29 14:00:14 +01:00
Eugenio Romano 4aa9f79707 4.5.0 Release note (#7130)
* doc part 1

* doc part 2

* 4.5.0 release note

* Update README.md

* Update README.md
2021-06-28 17:28:59 +02:00
Vito 82a57c9c05 [ACA-4436] - added option for select item to display None (#7113)
* [ACA-4436] - added option for select item to display None

* [ACA-4436] - added unit test and fixed wrong default behaviour

* [ACA-4436] - fixed property check

* [ACA-4436] - fixed unit test

* [ACA-4436] - fixed unit test
2021-06-25 11:19:16 +02:00
Dharan 26d180e661 [ACA-4486] support search widget chips layout (#7122)
* [ACA-4486] support search widget chips layout

* * revert to old config

* * resolved rebase conflicts

* [ci:force] force e2e

* [ci:force] docs update and remove directive added

* [ci:force] config updated

* [ci:force] add missing app config schema to prod build
2021-06-25 10:54:12 +02:00
Alfresco Build UserandTravis CI User 87be0b0b70 Update branch for JS-API PR#3612 (#7111)
* [ci:force][auto-commit] Update JS-API to 4.5.0-3611 for branch: update-js-api originated from JS-API PR: 3612

* [ci:force][auto-commit] Update JS-API to 4.5.0-3629 for branch: update-js-api originated from JS-API PR: 3631

* [ci:force][auto-commit] Update JS-API to 4.5.0-3637 for branch: update-js-api originated from JS-API PR: 3639

Co-authored-by: Travis CI User <travis@example.org>
2021-06-25 10:18:09 +02:00
arditdomi 462f40827e Revert "[AAE-5392] - Add find people api call (#7119)" (#7121)
This reverts commit 1e251ab8aa.
2021-06-24 09:57:27 +01:00
arditdomi 1e251ab8aa [AAE-5392] - Add find people api call (#7119)
* [AAE-5392] - Add find people api call

* Add documentation
2021-06-22 18:08:01 +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
Popovics András b5e4316c08 Expose shared library as subdirectory (#7114)
* Expose shared library as subdirectory

* [ci:force]
2021-06-20 12:29:31 +02:00
Popovics András 1ecc14f184 Refactor e2e's ApiService (#7101)
* Refactor e2e's ApiService

* Fix bits here and there

* [ci:force] Remove unused imports

* [ci:force] Extract shared part from adf-testing

* [ci:force] Extract StringUtils as well

* Make protractor's Logger not have duplicated code

* [ci:force]
2021-06-19 23:03:17 +02:00
Eugenio Romano 2d61a2941c Update extensibility.md 2021-06-17 12:11:28 +02:00
dependabot[bot] d8088cf1cd Bump @apollo/client from 3.3.16 to 3.3.20 (#7104)
Bumps [@apollo/client](https://github.com/apollographql/apollo-client) from 3.3.16 to 3.3.20.
- [Release notes](https://github.com/apollographql/apollo-client/releases)
- [Changelog](https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-client/compare/v3.3.16...v3.3.20)

---
updated-dependencies:
- dependency-name: "@apollo/client"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-16 20:57:31 +02:00
dependabot[bot] 6d629b769e Bump cropperjs from 1.5.11 to 1.5.12 (#7105)
Bumps [cropperjs](https://github.com/fengyuanchen/cropperjs) from 1.5.11 to 1.5.12.
- [Release notes](https://github.com/fengyuanchen/cropperjs/releases)
- [Changelog](https://github.com/fengyuanchen/cropperjs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/fengyuanchen/cropperjs/compare/v1.5.11...v1.5.12)

---
updated-dependencies:
- dependency-name: cropperjs
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-16 17:26:05 +02:00
dependabot[bot] c439f88ac1 Bump selenium-webdriver from 4.0.0-alpha.7 to 4.0.0-beta.4 (#7103)
Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) from 4.0.0-alpha.7 to 4.0.0-beta.4.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/commits)

---
updated-dependencies:
- dependency-name: selenium-webdriver
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-16 09:31:10 +02:00
dependabot[bot] 019ffe63df Bump subscriptions-transport-ws from 0.9.18 to 0.9.19 (#7106)
Bumps [subscriptions-transport-ws](https://github.com/apollostack/subscriptions-transport-ws) from 0.9.18 to 0.9.19.
- [Release notes](https://github.com/apollostack/subscriptions-transport-ws/releases)
- [Changelog](https://github.com/apollographql/subscriptions-transport-ws/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollostack/subscriptions-transport-ws/commits)

---
updated-dependencies:
- dependency-name: subscriptions-transport-ws
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-15 16:16:39 +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
Dharan ba03c60adb [ADF-5417] Support multiple search configuration in app config json (#7096)
* [ACS-1642] Support multiple search configuration in app config json

* [ci:force] unit test added

* adf component added

* [ci:force] check compatibility

* [ci:force] * run all e2e

* * revert initvalue

* [ci:force] revert app config

* [ci:force] docs update
2021-06-15 14:52:46 +02:00
dependabot[bot] 1cffef9421 Bump tslib from 2.0.3 to 2.3.0 (#7107)
Bumps [tslib](https://github.com/Microsoft/tslib) from 2.0.3 to 2.3.0.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](https://github.com/Microsoft/tslib/compare/2.0.3...2.3.0)

---
updated-dependencies:
- dependency-name: tslib
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-15 14:49:44 +02:00
Iulia Burcă ad987a8d34 [ACA-3611] Create test folder for E2E precondition files (#7088)
* create test folder

* if folder exists get its details

* rename precondition files
2021-06-14 22:09:57 +03:00
dependabot[bot] 4b6f735dcc Bump ws from 5.2.2 to 5.2.3 (#7108)
Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/5.2.2...5.2.3)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-14 15:34:01 +02:00
Alfresco Build UserandTravis CI User 111742ff42 Update branch for JS-API PR#3583 (#7093)
* [ci:force][auto-commit] Update JS-API to 4.5.0-3576 for branch: update-js-api originated from JS-API PR: 3583

* [ci:force][auto-commit] Update JS-API to 4.5.0-3603 for branch: update-js-api originated from JS-API PR: 3604

Co-authored-by: Travis CI User <travis@example.org>
2021-06-14 12:21:24 +02:00
Denys Vuika eb71a79d1e prepare tests for ng-12 upgrade (#7099)
* prepare tests for ng12 upgrade

* fix lint

* fix tests

* test fixes

* fix code and tests

* fix code and tests

* test fixes

* test fixes
2021-06-11 07:36:32 +01:00
Eugenio Romano 558056b05c test if we can remove compatibility (#7064)
remove compatibility
2021-06-10 14:38:12 +02:00
Cristina Jalba 4dc98eb288 [ADF-5421]Include C307988 test back 2021-06-10 12:56:24 +03:00
Sushmitha V 60ff0fc387 [AAE-2617] To get access to datatable component from process-list (#7068) 2021-06-10 13:57:49 +05:30
Cristina Jalba 6400fd6ba8 [ACA-4474]Add isStartProcessButtonEnabled method
* [ACA-4474] Add isStartProcessButtonEnabled method

* Refactor tests

* Fix lint error

* Refactor isStartProcessButtonEnabled method

* Fix startProcessWithProcessDefinition method

* Fix tests

* no message

* Fix isStartProcessButtonDisabled method

* Exclude failing e2e
2021-06-08 18:58:11 +03:00
dependabot[bot] e8824a6579 Bump karma from 6.3.2 to 6.3.3 (#7092)
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.2 to 6.3.3.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.2...v6.3.3)

---
updated-dependencies:
- dependency-name: karma
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-08 14:29:01 +02:00
Dharan 9a2a62255f [ADF-5369] HTTP 500 response in adf-upload-button is emitted as a success event (#7087)
* [ADF-5369] HTTP 500 response in adf-upload-button is emitted as a success event

* [ci:force] unit test fixed
2021-06-08 09:00:04 +01:00
Cristina Jalba acf4b26d74 [ACA-4474]Add checkWidgetsAreVisible method
* Add checkWidgetsAreVisible method

* Add checkNoFileIsAttachedToWidgets()
2021-06-07 13:18:08 +03:00
Dharan 91d813e6f1 [ACA-4464] Add user/groups - should not be able to select the same user multiple times (#7066) 2021-06-03 14:41:02 +01:00
95d680b143 Update branch for JS-API PR#3558 (#7080)
* [ci:force][auto-commit] Update JS-API to 4.5.0-3557 for branch: update-js-api originated from JS-API PR: 3558

* lock fix remove snyk

* rebase

* [ci:force][auto-commit] Update JS-API to 4.5.0-3561 for branch: update-js-api originated from JS-API PR: 3562

Co-authored-by: Travis CI User <travis@example.org>
Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com>
2021-06-02 14:54:44 +01:00
Thomas Hunter 40bbeb13f0 [AAE-5208] Add pagination info to listPeople function in PeopleContentService (#7055)
* [AAE-5208] Add pagination info to listPeople function in PeopleContentService

* Change documentation
2021-06-02 11:49:47 +01:00
dependabot[bot] 4bf9433c82 Bump apollo-angular from 2.3.0 to 2.6.0 (#7079)
Bumps [apollo-angular](https://github.com/kamilkisiela/apollo-angular/tree/HEAD/packages/apollo-angular) from 2.3.0 to 2.6.0.
- [Release notes](https://github.com/kamilkisiela/apollo-angular/releases)
- [Changelog](https://github.com/kamilkisiela/apollo-angular/blob/v2.6.0/packages/apollo-angular/CHANGELOG.md)
- [Commits](https://github.com/kamilkisiela/apollo-angular/commits/v2.6.0/packages/apollo-angular)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-01 15:53:56 +01:00
dependabot[bot] 5eaac38b5a Bump concurrently from 6.0.0 to 6.2.0 (#7083)
Bumps [concurrently](https://github.com/kimmobrunfeldt/concurrently) from 6.0.0 to 6.2.0.
- [Release notes](https://github.com/kimmobrunfeldt/concurrently/releases)
- [Commits](https://github.com/kimmobrunfeldt/concurrently/compare/v6.0.0...v6.2.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-01 15:53:47 +01:00
dependabot[bot] 84d009a0fa Bump css-loader from 5.2.5 to 5.2.6 (#7075)
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 5.2.5 to 5.2.6.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v5.2.5...v5.2.6)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-01 14:17:45 +01:00
dependabot[bot] c56902acd9 Bump ts-node from 9.0.0 to 10.0.0 (#7073)
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 9.0.0 to 10.0.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v9.0.0...v10.0.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-01 13:10:01 +01:00
Dharan 2637654dba [AAE-5280] Better error handling for user task (#7070)
* [AAE-5280] [ADF] Better error handling for user task

* * fixed comments
2021-06-01 12:03:03 +01:00
dependabot[bot] 37efc8bcd0 Bump snyk from 1.550.0 to 1.618.0 (#7072)
Bumps [snyk](https://github.com/snyk/snyk) from 1.550.0 to 1.618.0.
- [Release notes](https://github.com/snyk/snyk/releases)
- [Changelog](https://github.com/snyk/snyk/blob/master/.releaserc)
- [Commits](https://github.com/snyk/snyk/compare/v1.550.0...v1.618.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-01 11:46:57 +01:00
dependabot[bot] b6b4ae44bb Bump cspell from 5.3.8 to 5.5.1 (#7074)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.3.8 to 5.5.1.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v5.3.8...v5.5.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-01 11:46:48 +01:00
dependabot[bot] ff8c0fde0a Bump dns-packet from 1.3.1 to 1.3.4 (#7069)
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mafintosh/dns-packet/compare/v1.3.1...v1.3.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-01 10:11:26 +01:00
siva kumar 2a9b406491 [AAE-4974] FE - Remove scroll bar from empty "Upload from your device" list (#7049) 2021-06-01 09:46:33 +01:00
Dharan 1a0f2f5bcc [ADF-5148] ContentService.hasPermissions() should check inhertied permission (#7059)
* [ADF-5148] ContentService.hasPermissions() should check inherited permission

* * fixed permission method
2021-06-01 09:45:59 +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
Eugenio Romano 9e0000a307 disable w3c due getValue problem (#7067)
* [ci:force]disable w3c due getValue problem

* unify get Input value

* [ci:force]fix

* [ci:force] remove

* [ci:force]remove all getAttribute

* fix lint

* fix lint

* fix

* fix

* fix

* fix

* different fix try

* rewrite wait for for value

* fix lint

* remove e2e already covered by unit

* fix lint

* fix
2021-05-28 18:08:49 +01:00
Urse Daniel 200cfb8dba fixed overflow issues (#7060) 2021-05-25 17:14:57 +01:00
Eugenio Romano 0fcb15c9c5 Remove e2e already covered by unit test (#7058)
* remove e2e not possible to automate

* remove e2e already covered by unit test

* Update login-component.e2e.ts
2021-05-25 17:14:17 +01:00
dependabot[bot] a45c596045 Bump browserslist from 4.14.0 to 4.16.6 (#7061)
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.14.0 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.14.0...4.16.6)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 15:34:32 +01:00
Cristina Jalba 12c3fec51a e2e: Improve cloud custom filters
* Improve cloud custom filters
2021-05-25 16:30:54 +03:00
Thomas Hunter bbbdcbdaa5 [AAE-5145] Add enum for content node selector actions (#7039)
* [AAE-5145] Add enum for content node selector actions

* [AAE-5145] Fix lint and unit tests

* Order imports back to original order

* Rename to NodeAction
2021-05-25 13:02:42 +01:00
dependabot[bot] 73ccb3e92c Bump css-loader from 5.2.4 to 5.2.5 (#7053)
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 5.2.4 to 5.2.5.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v5.2.4...v5.2.5)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 13:01:35 +01:00
Dharan 4b3a7f41f0 [ADF-5231] The protected flag for properties should not be editable (#7056) 2021-05-25 13:01:22 +01:00
Vito 65cbd570fb [MNT-22418] - disabling action for physical records (#7057) 2021-05-25 09:15:57 +01:00
Dharan 4c1e462364 [ACA-4454] The create library button should get disabled after being clicked once (#7046) 2021-05-24 09:22:25 +01:00
Sushmitha V a5c8586184 [DW-1608] Added username tag in the ID of the dropdown in deploy application admin access (#7045) 2021-05-24 10:56:06 +05:30
arditdomi bd96dfddde [ADF-5387] - Fix dropdown tests, remove call to external API (#7044)
* [ADF-5387] - Fix dropdown tests, remove call to external API

* Update simpleapp

* Re-include test

* Fix comment

* Fix lint errors
2021-05-21 22:01:02 +02:00
Cilibiu Bogdan 272e2d67e3 outline current page thumbnail (#7042) 2021-05-21 11:43:02 +01:00
Eugenio Romano 5478c88683 Update activiti-alfresco.service.ts (#7041) 2021-05-21 11:42:50 +01:00
Eugenio Romano ac6f616246 Fix some build scripts (#7048)
Make publish run on API
2021-05-20 17:14:42 +01:00
Cristina Jalba a5e85b44f8 [ACA-4458]Add expand cloud custom filter method
* [ACA-4458]Add expand cloud custom filter method

* Fix comment

* Rename method

* Fix comment

* Fix comment
2021-05-20 18:56:08 +03:00
Eugenio Romanoandarditdomi 6e0ad4ce43 4.4.0 (#7030)
* 4.4.0

* Update README.md

* Update upgrade43-44.md

* Update readme

* lock update

Co-authored-by: arditdomi <32884230+arditdomi@users.noreply.github.com>
2021-05-20 09:50:30 +01:00
Vito c533b4ec35 [ACA-4445] - disabled edit aspect button on content card for ACS version below 7 (#7043) 2021-05-19 17:18:57 +01:00
Cilibiu Bogdan f03d133899 prevent children events from bubbling up (#7040) 2021-05-18 14:04:10 +01:00
Gloria Camino 2335143546 LOC-300 Second commit of updated UI files in 16 languages (#7036) 2021-05-17 16:44:16 +01:00
Eugenio Romano 5e3bc08594 Form fix style (#7038) 2021-05-17 16:44:08 +01:00
Dharan 3339a0ddd9 [ACA-4421] [Edit Aspects] Apply button should be disabled by default (#7035) 2021-05-17 15:50:34 +01:00
Sushmitha V 6aac131b0a [ADF-5397] Resolved - selection count should show at the end (#7037) 2021-05-17 15:25:56 +01:00
Nanna Setämaa f7ec24d1bb [AAE-4009] Fix horizontal scroll issue for pdf-viewer (#7023)
* [AAE-4009] Fix horizontal scroll issue for pdf-viewer

* [AAE-4009] Rewrite method with single exit
2021-05-17 11:35:26 +01:00
Sushmitha V f3ada4ef85 [ACA-4409] Resolved - More button is displayed on Destination Picker … (#7018)
* [ACA-4409] Resolved - More button is displayed on Destination Picker on a folder even if its files are not displayed

* [ACA-4409] Updated param names

* [ACA-4409] Refactored the changes

* Removed fit and fdescribe

* Resolved lint error
2021-05-14 17:17:41 +01:00
Sushmitha V 68db27bc91 [ACA-4422] Resolved - Edit Aspects Dialog should close when pressing ESC (#7022)
* [ACA-4422] Resolved - Edit Aspects Dialog should close when pressing ESC

* [ACA-4422] Fixed unit test failure

* [ACA-4422] Resolved unit test errors
2021-05-14 16:32:23 +01:00
Urse Daniel afd3a7c93d [ACA-4423] VIEWER - when closing the upload dialog the filename changes to "Unknown" (#7024)
* fix blob type instead of image

* set new crop

* improve test

* removed onchanges watcher
2021-05-14 15:22:06 +01:00
Vito 2b9535e90c Fixing header style as now it's not aligned anymore (#7028) 2021-05-14 14:52:36 +01:00
Eugenio Romano 77e1a08b23 [ADF-5379] change notification history service storage variable (#7026)
* change notification history service storage variable

* fix mark as read
2021-05-14 14:52:28 +01:00
Dharan 65e3a21c25 [ACA-2864] Site Managers are not able to disable inherit permissions … (#7021)
* [ACA-2864] Site Managers are not able to disable inherit permissions in DW/ACA

* * added test cases

* * fixed lints

* * [force ci] remove mispell
2021-05-14 18:42:57 +05:30
Silviu Popa 81042f1951 [ACA-3700] - fix suspened date start date (#7020)
* fix suspened date start date

* remove unnecesarry parameters
2021-05-14 15:47:35 +03:00
Urse Daniel 11b66338d0 center the container always based on the width&height of the image (#7027) 2021-05-14 15:43:33 +03:00
Denys Vuika 251b64a8f3 update docs on the extension value replace (#7029) 2021-05-14 12:03:48 +01:00
Alfresco Build UserandTravis CI User 9f33fb81d7 [ci:force][auto-commit] Update JS-API to 4.4.0-3493 for branch: update-js-api originated from JS-API PR: 3494 (#7019)
Co-authored-by: Travis CI User <travis@example.org>
2021-05-12 18:04:19 +01:00
Silviu PopaandEugenio Romano dfc636441c [ACA-4325] - disable upload button on upload new file version begin (#7017)
* [ACA-4325] - disable upload button on upload version begin

* Update upload-base.spec.ts

* disable upload button only on version upload component

* PR changes

* change to started

Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
2021-05-12 17:17:41 +01:00
Thomas Hunter c96b6ea36f [AAE-5124] Show counter only when attaching files (#7011)
* [AAE-5124] Show counter only when attaching files

* Reset package-lock.json

* Add another unit test

* Fix unit test
2021-05-12 16:42:49 +01:00
Cilibiu Bogdan 3a558d701a as dependency (#7015) 2021-05-11 20:11:57 +01:00
Dharan e603486b00 [AAE-5139] User name style and Discovery service initialization fix (#7010)
* [AAE-5139] User name style fix and Discovery serice fixed

* * fixed unit test

* * fixed test and us latest js-api events

* * tests fixed

* * update js api

* * fixed test and lint
2021-05-12 00:10:21 +05:30
Maurizio Vitale 453198c1e8 Attemp number 2 (#7016) 2021-05-11 16:57:32 +01:00
Gloria Camino e74705d66d LOC-300 Updated UI files in 16 languages (#7014) 2021-05-11 15:28:59 +01:00
siva kumar 7882e0377e [AAE-5128] [APA] Drag and Drop template is broken on Upload from your device tab (#7013) 2021-05-11 15:23:34 +01:00
Eugenio Romano 24d256b2b1 fix login docker 2021-05-11 13:22:28 +01:00
Maurizio Vitale 8dde72dbb8 Use the cloud key (#7005) 2021-05-10 22:41:34 +01:00
Thomas Hunter f1f512018c [ACS-1525] Only run scan environment on cron (#6966)
* [ACS-1525] Only run scan environment on cron

* [ACS-1525] Remove environment scan

* [ACS-1525] Add example of use of the command in README

* Add exit 0
2021-05-10 17:04:17 +02:00
Alfresco Build UserandTravis CI User 4c09d5fd35 [ci:force][auto-commit] Update JS-API to 4.4.0-3475 for branch: update-js-api originated from JS-API PR: 3476 (#6999)
Co-authored-by: Travis CI User <travis@example.org>
2021-05-10 13:16:39 +01:00
Eddie 3e4b2083ff Update content-type-dialog.component.md (#7008)
Just a missing 't' on 'content'
2021-05-10 13:15:36 +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
Adina Parpalita c45808053d add missing event on image viewer (#7007) 2021-05-10 13:07:31 +01:00
Eugenio Romano d6a4f84161 generate documentation (#7006) 2021-05-10 10:47:48 +01:00
Eugenio Romano 2d510776ea [ci:force]audit npm fix (#6993) 2021-05-09 18:32:02 +01:00
davidcanonietoandEugenio Romano bd805cb34b [ADF-5390] [ADF-5391] Add multivalue cardview for Date, Datetime, Integers and Decimal properties. (#6980)
* [ADF-5390] Addd multivalue cardview for Date, Datetime, Integers and Decimal properties

* Fix unit test

* Fix linting

* Fix e2e tests

* fix e2e

Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com>
2021-05-09 04:05:26 +01:00
Eugenio Romano 71cad4c287 [ci:force] auto update node version when media management actions are triggered (#6992) 2021-05-08 22:29:51 +01:00
Alfresco Build UserandTravis CI User e86d48b484 [ci:force][auto-commit] Update JS-API to 4.4.0-3449 for branch: update-js-api originated from JS-API PR: 3450 (#6991)
Co-authored-by: Travis CI User <travis@example.org>
2021-05-08 14:06:48 +01:00
dependabot[bot] f54a29191e Bump hosted-git-info from 2.8.8 to 2.8.9 in /lib/cli (#6989)
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-08 14:03:03 +01:00
dependabot[bot] 5bf022d24a Bump ua-parser-js from 0.7.23 to 0.7.28 (#6988)
Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js) from 0.7.23 to 0.7.28.
- [Release notes](https://github.com/faisalman/ua-parser-js/releases)
- [Commits](https://github.com/faisalman/ua-parser-js/compare/0.7.23...0.7.28)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-08 12:50:31 +01:00
dependabot[bot] 3dbf917a7a Bump underscore from 1.12.0 to 1.13.1 in /tools/doc (#6985)
Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](https://github.com/jashkenas/underscore/compare/1.12.0...1.13.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-08 08:30:39 +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
dependabot[bot] 0b272b0de9 Bump lodash from 4.17.20 to 4.17.21 (#6981)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-07 17:22:20 +01:00
Alfresco Build UserandTravis CI User 1a1a78a5fb [ci:force][auto-commit] Update JS-API to 4.4.0-3443 for branch: update-js-api originated from JS-API PR: 3445 (#6982)
Co-authored-by: Travis CI User <travis@example.org>
2021-05-07 15:33:58 +01:00
Alfresco Build UserandTravis CI User 957bd4130d Update branch for JS-API PR#3405 (#6964)
* [auto-commit] Update JS-API to 4.4.0-3395 for branch: update-js-api originated from JS-API PR: 3405

* [auto-commit] Update JS-API to 4.4.0-3422 for branch: update-js-api originated from JS-API PR: 3423

Co-authored-by: Travis CI User <travis@example.org>
2021-05-07 08:42:20 +01:00
Pablo Martinez Garcia 12652b53b8 AAE-5122 Change mouse event to leave in tooltip card (#6978) 2021-05-06 21:36:20 +02:00
Urse DanielandDenys Vuika f5c29a5ec8 [ADF-5377] Viewer: Image Crop (#6977)
* changed dependency

* Update lib/core/viewer/components/img-viewer.component.ts

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

Co-authored-by: Denys Vuika <denys.vuika@alfresco.com>
2021-05-06 15:21:15 +01:00
Urse Daniel aa5cbea7f5 changed dependency (#6975) 2021-05-05 17:52:42 +01:00
davidcanonieto 550a223164 [ADF-5379] Add a way to disable WS notifications (#6924)
* [ADF-5379] Add a way to disable WS notifications

* Update app-notifications.service.ts

* Update task-filters-cloud.component.spec.ts

* Move flag to upper level in config.json

* Create new notification section in app.config.json

* Update implementation

* Improve naming
2021-05-05 14:14:44 +01:00
Dharan 884d646078 [ACA-4361] Review permission list (#6974)
* [ACA-4361] permission ux review

* * fixed comments and lint

* * remove space
2021-05-05 14:13:34 +01:00
dependabot[bot] d65797763e Bump mini-css-extract-plugin from 1.4.1 to 1.6.0 (#6971)
Bumps [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) from 1.4.1 to 1.6.0.
- [Release notes](https://github.com/webpack-contrib/mini-css-extract-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/mini-css-extract-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.4.1...v1.6.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-04 17:39:29 +01:00
Vito d369265e66 [AAE-4973] - fixed start process button enabling when default process… (#6968)
* [AAE-4973] - fixed start process button enabling when default process is set

* [AAE-4973] - added constants
2021-05-04 17:13:38 +01:00
dependabot[bot] a29594090f Bump stylelint from 13.10.0 to 13.13.1 (#6973)
Bumps [stylelint](https://github.com/stylelint/stylelint) from 13.10.0 to 13.13.1.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/13.10.0...13.13.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-04 15:46:01 +01:00
siva kumar b77e03764e [ACA-4389] [APS1] Convert some of process services extension E2E steps to unit-tests (#6959)
* [ACA-4389] [APS1] make sure to move/convert some of E2E steps to unit-tests

* * Added fail test description

* * Fixed comments

* * Fixed lint errors
2021-05-04 15:11:29 +01:00
Eugenio Romano 184b20364b fix swsdp in breadcrumb (#6967) 2021-05-04 15:11:00 +01:00
dependabot[bot] 143266a656 Bump @apollo/client from 3.3.13 to 3.3.16 (#6970)
Bumps [@apollo/client](https://github.com/apollographql/apollo-client) from 3.3.13 to 3.3.16.
- [Release notes](https://github.com/apollographql/apollo-client/releases)
- [Changelog](https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-client/compare/v3.3.13...v3.3.16)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-04 15:10:25 +01:00
dependabot[bot] fb4875fdcf Bump css-loader from 5.2.1 to 5.2.4 (#6969)
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 5.2.1 to 5.2.4.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v5.2.1...v5.2.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-04 13:58:06 +01:00
e8ffe8e35e [ADF-5378] ADF Previewer: Image Rotate + Save (#6958)
* updates including cropperJS

* update on rotation + unit tests

* small fix

* hide toolbar on save

* remove unused & duplicate method

* added readonly & prettier code

* include readOnly mode to hide/show media management actions

* updated dependencies

* fix emit spy

* ADF-5378: Fix failing e2es

* Fix comments for unit tests

* ADF-5378: Removed obsolete buttons from e2e

Co-authored-by: kristian <kristian.dimitrov@alfresco.com>
Co-authored-by: adomi <ardit.domi@alfresco.com>
2021-05-01 15:54:37 +01:00
Dharan 8b5e45f4eb [ADF-5366] initialize discovery and version compatibility service for oauth based session (#6864)
* [ADF-5366] initialize discovery and version compatibility service for oauth based session

* better error message

* * fix spaces

* * revert the search service

* * fix build

* * check properties after type update

* * check properties after type update

* * check properties after type update

* * fix infinite loop

* * fix test without title

* * wait for options

* * wait for session

* Update metadata-content-type.e2e.ts

* Update metadata-content-type.e2e.ts

* Update protractor.excludes.json

* Update protractor.excludes.json
2021-04-29 13:40:49 +01:00
Popovics András c0b5935b43 [ACS-1526] Fail on Draft and unapproved PRs (#6963)
* [ACS-1526] Fail on Draft and unapproved PRs

* [ci:force]
2021-04-28 20:38:10 +02:00
Stephen Tweeddale c149f16adf Remove additional double slashes from documentation. (#6960)
For the sake of the ABN markdown parser.
2021-04-28 17:20:16 +01:00
Thomas Hunter 9cbae9abd8 [AAE-5021] Add listPeople method to PeopleContentService (#6947)
* [AAE-5021] Add listPeople method to PeopleContentService

* lint

* Replace Person with EcmUserModel

* Update imports to @alfresco/adf-core

* Change to const + lint
2021-04-28 16:50:53 +01:00
Eugenio Romano 42c81e46bb fix e2e protractor (#6962) 2021-04-28 14:03:30 +01:00
Stephen Tweeddale dd5fc685b8 Abn content fixes (#6957)
* Remove double backslashes from markdown files.

Neither github nor the ABN understands them.

* Make a <br /> tag self-closing, for the purposes of the ABN
2021-04-27 16:56:17 +01:00
Eugenio Romano efe625ea33 Travis Ci only remove e2e on develop merge (#6953)
* Travis Ci only remove e2e on develop merge

* Update .travis.yml

* Update .travis.yml
2021-04-27 14:41:42 +01:00
Adina Parpalita ba1b337433 rename env variable (#6956)
* rename env variable LOG_LEVEL to E2E_LOG_LEVEL in order to be consistent with the rest of the apps

* revert part of the renaming
2021-04-27 14:41:32 +01:00
Eugenio Romano 4e94216d14 log demo shell not starting (#6954) 2021-04-27 17:01:49 +05:30
Vito 431f273b07 [ADF-5362] - enabiling properties refresh on ADW/ACA (#6952) 2021-04-27 16:45:48 +05:30
Eugenio Romano 672891e21b improve travis ci (#6951)
add deprecate build script
2021-04-27 09:26:13 +01:00
arditdomi 9c165b2307 Fix content unit tests executing twice (#6950)
* Run all unit test for cron jobs, fix content unit tests executing twice

* Revert execution of all unit tests on cron

* revert identation
2021-04-26 18:40:46 +01:00
Dharan 534c013754 [ACA-4361] should be able to change permission if search service is down (#6948)
* should be able to change permission if search service is down

* Update node-permission.service.ts

* Update node-permission.service.spec.ts

* Update node-permission.service.spec.ts
2021-04-26 17:44:11 +01:00
arditdomi 504c0b825a Run all e2e for cron jobs (#6949) 2021-04-26 14:54:19 +01:00
arditdomi 574db8d7cc [AAE-4985] - Make SSO Role Service accept a content admin role that is not part of the JWT token (#6942)
* Add ability to check if the user is an ACS_ADMIN - not part of JTW token

* Make get user api call only once

* Add unit tests

* Add documentation

* Fix comments

* Exclude flaky tests, dependent on another test

* Fix unit test

* Fix comments

* Update documentation
2021-04-26 14:27:22 +01:00
Iulia Burcă 585a1b6918 Improve checkFilesAreAttachedToWidget() method (#6943)
* Improve checkFilesAreAttachedToWidget() method

* Add types for the parameters

* exclude test
2021-04-26 12:19:37 +03:00
dependabot[bot] a13f2992ec Bump ssri from 6.0.1 to 6.0.2 in /lib/cli (#6944)
Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases)
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md)
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-23 11:54:15 +01:00
dependabot[bot] 3c9a8cc592 Bump snyk from 1.530.0 to 1.550.0 (#6936)
Bumps [snyk](https://github.com/snyk/snyk) from 1.530.0 to 1.550.0.
- [Release notes](https://github.com/snyk/snyk/releases)
- [Changelog](https://github.com/snyk/snyk/blob/master/.releaserc)
- [Commits](https://github.com/snyk/snyk/compare/v1.530.0...v1.550.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-23 08:50:49 +01: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
Silviu Popa 59dc6cb1d1 [ACA-3700] - fix suspended data filter not preserving data (#6940)
* [ACA-3700] - fix suspended data filter not preserving data

* fix lint
2021-04-23 08:49:51 +01:00
Sushmitha V dd56588df8 [AAE-4863] Fixed the async and done warning due to new version of Karma (#6938)
* [AAE-4863] Fixed the async and done warning due to new version of Karma

* Fixed lint error
2021-04-22 11:05:13 +05:30
siva kumar bf70e471ce [AAE-4995] Expand ADF PeopleContentService to create new person (#6931)
* [AAE-4995] Expose create/list content users API in ADF PeopleContentService

* * Updated documentation

* * Removed listPeople api

* * Added unit tests and improved old tests

* * Updated doc with js-api doc link

* *Fixed lint errors

* * Fixed failing unit tests
2021-04-21 19:17:54 +05:30
Eugenio Romano cd349361d0 Update release-docker.sh 2021-04-21 14:08:43 +01:00
Eugenio Romano 7becdd64bc Update release-docker.sh 2021-04-21 13:19:29 +01:00
Eugenio Romano 8c01a541d4 Update build-libs.sh 2021-04-21 13:16:39 +01:00
Eugenio Romano a4bb83ae8c Update release-npm.sh 2021-04-21 10:34:25 +01:00
Eugenio Romano 1a3cf77986 [ADF-5225] smoke test (#6929)
* change smoke test suite

* less

* fix error message undefined

* Update protractor.conf.js
2021-04-21 09:53:22 +01:00
Silviu PopaandSilviu Constantin Popa e376d2f66a [ACA-3700] - add suspended date filter (#6886)
* [ACA-3700] - add suspended date filter

* fix process list filtering

Co-authored-by: Silviu Constantin Popa <silviucpopa@L3700101120.ness.com>
2021-04-20 15:48:45 +03:00
Pablo Martinez Garcia d37608111a AAE-4879 Deatach tooltip card when directive is destroyed (#6939) 2021-04-20 10:21:22 +02:00
Eugenio Romano aed2208205 Update check-cs-env.ts 2021-04-19 11:15:53 +01:00
Eugenio Romano 43633ce6c0 remove codecov 2021-04-16 11:18:56 +01:00
Vito 066a68497d [MNT-22207] - resetting query fragment when clicking Reset all button on search filters (#6928) 2021-04-16 09:39:40 +01:00
Pablo Martinez Garcia 684cdb88ea AAE-4879 Update tooltip card to receive custom HTML (#6930) 2021-04-16 09:39:19 +01:00
Vito e9bf84e13c [ADF-5370] - fixed style for container dimension (#6923) 2021-04-15 16:50:42 +01:00
Eugenio Romano 882a3bd6d8 Run develop only once a day (#6927) 2021-04-15 14:43:07 +01:00
Dharan d18418d033 Revert "move scroll overflow to parent (#6730)" (#6926)
This reverts commit 4653e10872.
2021-04-15 13:57:48 +01:00
Thomas Hunterandadomi 96c94988c1 [AAE-4428] Add selected file counter to attach file widget (#6881)
* [AAE-4428] Add selected file counter to attach file widget

* [AAE-4428] Add getSelectedCount method

* [AAE-4428] Add unit tests

* [AAE-4428] Changed so TranslationService injection is not necessary

* [AAE-4428] Added unit tests to check the element has been injected

* spacing

* [AAE-4428] Remove unnecessary check in unit test

* [AAE-4428] Add node counter directive

* [ci skip] Fix linting issues

* Remove changing the selection to the nabigated node

* Revert removing selection on folder loaded, add unit test

* Added documentation

Co-authored-by: adomi <ardit.domi@alfresco.com>
2021-04-15 13:57:26 +01:00
Eugenio Romano 7b1d32b06b Update update-project.sh 2021-04-15 10:28:16 +01:00
Vito e4288cd1f9 [ADF-5362] - Content type properties should be showed when content type is changed. (#6922)
* [ADF-5362] - Content type properties showed when content type changed

* [ADF-5362] - Added some fix and some unit tests

* [ADF-5370] - fixed e2e

* [ADF-5370] - fixed e2e
2021-04-15 09:56:21 +01:00
Vito 257614bfc0 [ADF-5372] - fixed wrong result pipe (#6925)
* [ADF-5372] - fixed wrong result pipe

* [ADF-5372] - fixed missing radix on parseInt
2021-04-15 09:55:51 +01:00
Eugenio Romano 5a363670a0 Update update-project.sh 2021-04-13 16:24:24 +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
dependabot[bot] bd8242922b Bump jasmine-spec-reporter from 5.0.2 to 7.0.0 (#6918)
Bumps [jasmine-spec-reporter](https://github.com/bcaudan/jasmine-spec-reporter) from 5.0.2 to 7.0.0.
- [Release notes](https://github.com/bcaudan/jasmine-spec-reporter/releases)
- [Changelog](https://github.com/bcaudan/jasmine-spec-reporter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcaudan/jasmine-spec-reporter/compare/v5.0.2...v7.0.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-12 14:45:11 +01:00
dependabot[bot] c0e287899e Bump mini-css-extract-plugin from 1.3.9 to 1.4.1 (#6917)
Bumps [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) from 1.3.9 to 1.4.1.
- [Release notes](https://github.com/webpack-contrib/mini-css-extract-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/mini-css-extract-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.3.9...v1.4.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-12 14:44:55 +01:00
Vito 7d01a9315b [ADF-5362] - showing in the confirm dialog only the propery of the cu… (#6909)
* [ADF-5362] - showing in the confirm dialog only the propery of the custom type not the inherited ones

* fxed lint
2021-04-12 11:59:44 +01:00
loictrichaud be355cc6b4 add enableFractions in form values (#6915) 2021-04-12 11:58:51 +01:00
dependabot[bot] ec67b295af Bump snyk from 1.503.0 to 1.530.0 (#6920)
Bumps [snyk](https://github.com/snyk/snyk) from 1.503.0 to 1.530.0.
- [Release notes](https://github.com/snyk/snyk/releases)
- [Changelog](https://github.com/snyk/snyk/blob/master/.releaserc)
- [Commits](https://github.com/snyk/snyk/compare/v1.503.0...v1.530.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-12 11:08:55 +01:00
dependabot[bot] f272c0cc27 Bump css-loader from 5.2.0 to 5.2.1 (#6919)
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 5.2.0 to 5.2.1.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v5.2.0...v5.2.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-12 11:08:40 +01:00
arditdomi 291e224ad4 [AAE-4483] Add empty list drag and drop template in upload from local tab (#6916) 2021-04-12 10:31:52 +01:00
Eugenio Romano 3aea68b358 Update .travis.yml 2021-04-12 09:58:34 +01:00
Vito 4b13ab7ec4 [ADF-5363] - when aspects has no name we will show the id instead (#6906)
* [ADF-5363] - when aspects has no name we will show the id instead

* added PR review fix
2021-04-09 16:00:55 +01:00
Maurizio Vitale a1ae3ae8c8 docker command: Create 2 different actions publish and link (#6907)
* Create 2 different action publish and link

* use enum

* Use publish as default action

* Check if action is valid

* Add back compatibility
2021-04-09 16:27:27 +02:00
Alfresco Build UserandTravis CI User 833ca30440 Update branch for JS-API PR#3366 (#6910)
* [auto-commit] Update JS-API to 4.4.0-3366 for branch: update-js-api originated from JS-API PR: 3366

* [auto-commit] Update JS-API to 4.4.0-3368 for branch: update-js-api originated from JS-API PR: 3368

* [auto-commit] Update JS-API to 4.4.0-3369 for branch: update-js-api originated from JS-API PR: 3369

* [auto-commit] Update JS-API to 4.4.0-3371 for branch: update-js-api originated from JS-API PR: 3372

Co-authored-by: Travis CI User <travis@example.org>
2021-04-09 14:49:20 +01:00
Vito f9a7836a5a [ACA-4202] - forcing firefox to ignore cache when document version ha… (#6807)
* [ACA-4202] - forcing firefox to ignore cache when document version has changed

* fxed lint
2021-04-09 11:44:14 +01:00
Iulia Burcă 318ce0e346 [ACA-3188] Add methods for ADW+APS1 e2e (#6816)
* Add isRemoveFileOptionDisplayed method

* Add checkStartProcessFormIsDisplayed method

* delete unused class

* add setUserTaskName to e2e-displayValue-process

* delete unused class

* update isRemoveFileOptionDisplayed method

* Create separate PO for start-form component

* Export new PO

* tslint fix

* convert selectors to TestElement

* improve test-element isDisplayed method

* rename method

* Remove methods
2021-04-09 11:41:29 +01:00
Eugenio Romano 8ee091ac54 remove beta [skip-ci] 2021-04-09 11:16:05 +01:00
Eugenio Romano 59ce019345 Update .travis.yml 2021-04-09 11:14:14 +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
Alfresco Build UserandTravis CI User b08e2731bf [auto-commit] Update JS-API to 4.4.0-3364 for branch: update-js-api originated from JS-API PR: 3364 (#6908)
Co-authored-by: Travis CI User <travis@example.org>
2021-04-08 10:17:25 +01:00
Silviu PopaandSilviu Constantin Popa c120526a29 [ACA-3619] - change assignment placeholder (#6891)
* [ACA-3619] - change assignment placeholder

* RP changs

Co-authored-by: Silviu Constantin Popa <silviucpopa@L3700101120.ness.com>
2021-04-07 13:11:20 +01:00
Sushmitha V c60d456332 [AAE-4358][AAE-4359] [APA] Floating label added for the process and task filters (#6872) 2021-04-07 12:00:28 +01:00
Denys Vuika a244200258 Name column fixes (#6904) 2021-04-07 12:00:05 +01:00
Sushmitha V ec2436e73b [ACA-3957] Added correct Icons and left nav, process config layout and consistency in ADW/APA (#6879) 2021-04-07 10:22:06 +01:00
Maurizio Vitale 262ba0f6be Remove the pathProject as mandatory (#6905) 2021-04-07 10:18:03 +01:00
Alfresco Build UserandTravis CI User f874a43c9c Update branch for JS-API PR#3342 (#6876)
* [auto-commit] Update JS-API to 4.4.0-3342 for branch: update-js-api originated from JS-API PR: 3342

* [auto-commit] Update JS-API to 4.4.0-3345 for branch: update-js-api originated from JS-API PR: 3345

* [auto-commit] Update JS-API to 4.4.0-3346 for branch: update-js-api originated from JS-API PR: 3346

* [auto-commit] Update JS-API to 4.4.0-3350 for branch: update-js-api originated from JS-API PR: 3350

* [auto-commit] Update JS-API to 4.4.0-3353 for branch: update-js-api originated from JS-API PR: 3353

* [auto-commit] Update JS-API to 4.4.0-3357 for branch: update-js-api originated from JS-API PR: 3357

* [auto-commit] Update JS-API to 4.4.0-3359 for branch: update-js-api originated from JS-API PR: 3359

* [auto-commit] Update JS-API to 4.4.0-3362 for branch: update-js-api originated from JS-API PR: 3362

Co-authored-by: Travis CI User <travis@example.org>
2021-04-07 10:17:45 +01:00
Eugenio Romano 6eaf89afd0 fix button filter color in high contrast (#6889) 2021-04-06 15:05:35 +01:00
Cristina Jalba cdaad8ebf1 [ADF-5374]Fix flaky filters tests (#6894)
* Check Travis

* Try with sleep

* Add more sleep and logs

* no message

* Fix

* no message

* no message

* Remove sleep
2021-04-06 14:36:31 +01:00
Eugenio Romano a910998246 Update dependabot.yml (#6901) 2021-04-06 12:29:54 +01:00
Denys Vuika 145c05321d improved language picker (#6890)
* improved language picker

* fix import path

* update tests
2021-04-06 10:35:41 +01:00
Roxana Diacenco cf7ffba81a [ACA-3652] Add Assignment custom filter in task filter cloud component page (#6887)
* [ACA-3652] Add Assignment custom filter in task filter cloud component page

* Fix linting error

* Remove unused element locator
2021-04-06 09:40:44 +01:00
Cristina Jalba 39255ab02f [AAE-4924]Add method for createProcess with variables (#6897)
* Add methos for createProcess with variables

* Exclude test due to bug
2021-04-06 09:25:31 +01:00
Popovics András 37b10ecb8f Typo fix (#6885) 2021-03-31 09:47:44 +01:00
Iulia Burcă ed6cc26930 Update wrong methods (#6882)
* Update wrong methods

* tslint fix

* change back to StringUtil
2021-03-31 11:08:59 +03:00
Cristina Jalba e0efec5d85 [ACA-4324]MovAdd details about tasks in resource files
* MovAdd details about tasks in resource files

* Add correlationkey
2021-03-30 16:01:13 +03:00
dependabot[bot] b3b090cce5 Bump karma from 6.3.1 to 6.3.2 (#6884)
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.1 to 6.3.2.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.1...v6.3.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-30 13:36:42 +01:00
Eugenio Romano c38993ee68 [skip ci] 2021-03-30 11:16:40 +01:00
dependabot[bot] a8fff74538 Bump y18n from 3.2.1 to 3.2.2 (#6883)
Bumps [y18n](https://github.com/yargs/y18n) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-30 11:03:13 +01:00
Silviu PopaandSilviu Constantin Popa 4df448567b [ACA-4220] - preselect initator values by username (#6860)
* [ACA-4220] - preselect initator values by username

* add unit test

* fix demoshell process filters

* revert app.config

* fix build

Co-authored-by: Silviu Constantin Popa <silviucpopa@L3700101120.ness.com>
2021-03-30 12:59:54 +03:00
Denys Vuika 452fc3c278 remove fdescribe 2021-03-30 10:21:08 +01:00
dependabot[bot] e6e077736c Bump husky from 5.2.0 to 6.0.0 (#6877)
Bumps [husky](https://github.com/typicode/husky) from 5.2.0 to 6.0.0.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v5.2.0...v6.0.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-30 10:15:46 +01:00
Denys Vuika ff8e40d425 support replacing values on merge (#6875) 2021-03-30 10:15:32 +01:00
Iulia Burcă ab4ab2fbbe [AAE-4824] Add more widgets to resources and cloud related methods (#6865)
* Add more widgets to resources

* move methods for random process & task name to ADF

* Add some task related methods

* Add checkTaskListAndContentAreLoaded method
2021-03-30 09:31:59 +03:00
Eugenio Romano 1957a8e5ca Update protractor.conf.js 2021-03-29 17:00:17 +01:00
Eugenio Romano 1e22d43a02 Update protractor.conf.js 2021-03-29 16:43:14 +01:00
Eugenio Romano 29c9a6a2c0 smoke test suite (#6874) 2021-03-29 15:31:50 +01:00
davidcanonieto afb58470f5 [ACA-4370] Refresh filter counter on filter click (#6873) 2021-03-29 15:31:39 +01:00
Vito b4fa19358c [MNT-22298] - Added check for ACS version (#6845)
* [MNT-22298] - Added check for ACS version

* [MNT-22298] - fixed lint problem
2021-03-26 18:58:01 +00:00
siva kumar 6c295b9f1c [AAE-4817] Add reusble method in ProcessListCloudComponent page object (#6863) 2021-03-26 14:10:37 +00:00
Eugenio RomanoandTravis CI User 0e673a9d92 update js-api (#6847)
* update js-api

* previous version

* previous js-api

* older

* [auto-commit] Update JS-API to 4.4.0-3332 for branch: update-js-api originated from JS-API PR: 3332

* trace

* older

* [auto-commit] Update JS-API to 4.4.0-3286 for branch: update-js-api originated from JS-API PR: 3286

* [auto-commit] Update JS-API to 4.4.0-3284 for branch: update-js-api originated from JS-API PR: 3284

* [auto-commit] Update JS-API to 4.4.0-3335 for branch: update-js-api originated from JS-API PR: 3335

* [create docker image]

* polyfill

Co-authored-by: Travis CI User <travis@example.org>
2021-03-26 14:10:12 +00:00
Denys Vuika 23264b0068 migrate library directives from ACA (#6861) 2021-03-26 08:03:30 +00:00
siva kumar 7219ff38ac [AAE-4817] Testing - Add process/form ids in the CANDIDATEBASEAPP resources file (#6853) 2021-03-25 15:32:49 +00:00
Rubén Barroso b12c37ee9c [AAE-4017] Change label: attach file retrieve metadata (#6850)
* [AAE-4017] Change label attach file retrieve metadata

* [AAE-4017] Replace "autocomplete" for "autofill" in retrieve metadata label

* [AAE-4017] Capitalise label
2021-03-25 15:26:08 +00:00
dependabot[bot] 50887b2cc6 Bump karma from 5.2.3 to 6.3.1 (#6859)
Bumps [karma](https://github.com/karma-runner/karma) from 5.2.3 to 6.3.1.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v5.2.3...v6.3.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-25 15:21:07 +00:00
Gloria CaminoandSushmitha100796 9301947c63 [MNT-22236] UI strings fully updated in 16 languages (#6856)
* [ACA-4053] Changed the APP_VERSION value

* FIX for MNT-22236 - All updated UI files in 16 languages as per Sushmitha and Denys requests

Co-authored-by: Sushmitha100796 <sushmitha.v@muraai.com>
2021-03-25 15:15:36 +00:00
dependabot[bot] c5fc65bedc Bump css-loader from 5.1.0 to 5.2.0 (#6858)
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v5.1.0...v5.2.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-25 09:28:55 +00:00
dependabot[bot] 49f6d8b5da Bump @apollo/client from 3.3.12 to 3.3.13 (#6857)
Bumps [@apollo/client](https://github.com/apollographql/apollo-client) from 3.3.12 to 3.3.13.
- [Release notes](https://github.com/apollographql/apollo-client/releases)
- [Changelog](https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-client/compare/v3.3.12...v3.3.13)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-25 09:28:48 +00:00
Thomas Hunter 61e14beba8 [AAE-4823] Add resources used in e2e tests in ADW 2021-03-25 11:22:15 +02:00
Cristina Jalba 09834a1a70 [ACA-4337]Move APW tests: claim/release standalone task, json widget
* Move APW tests: claim/release standalone task, json widget

* Modify the form id

* Fix lint

* Fix lint

* Change test rail id

* no message
2021-03-25 10:27:19 +02:00
Denys Vuika 6ec9833b36 [MNT-22236] update e2e to reflect permission i18n support (#6852)
* update e2e to reflect permission i18n support

* use latest js-api SitesApi

* remove use of deprecated sites api in e2e

* fix test

* fix test
2021-03-24 20:51:01 +00:00
siva kumar cd0587dcfd [AAE-4697] Restrict content node selector breadcrumb when destination folder path is wrong (#6738)
* [AAE-4697] Restrict content node selector breadcrumb when destination folder path is wrong

* * Added unit tests

* * Used try/catch block

* * Moved if logic from try black to a method
2021-03-24 11:49:35 +00:00
Eugenio Romano ab6354d39a Fix affect (#6846)
* fix affect

* one name
2021-03-23 17:12:55 +00:00
Denys Vuika b97aa7dfee [MNT-22236] Permission i18n support (#6843)
* localized role pipe

* update tests

* additional tests

* update module

* fix package lock

* update module settings

* try update code

* update import

* test fixes
2021-03-23 16:22:32 +00:00
swethamani c0a3f9d99d Modify Delete method (#6840) 2021-03-23 12:15:06 +01:00
arditdomiandMaurizio Vitale 2d257ea092 [ACA-4306] Testing - Add form widget ids in the SIMPLEAPP resources file (#6806)
* [ACA-4306] Testing - Add form widget ids in the SIMPLEAPP resources file

* downgrade nrwl workspace version

* Use the PR branch name and terminate

* Handle the error

* Revert downgrade nrwl workspace

* Remove the useless check on rebase and raise the exit 1

* Remove the script

* Use the HEAD and create a new variable for commit sha

Co-authored-by: Maurizio Vitale <maurizio.vitale@alfresco.com>
2021-03-22 17:44:55 +00:00
Petruta Bogdana Patrichi 4e94176536 Add widgets to inputform for SIMPLE_APP (#6838) 2021-03-22 15:38:43 +00:00
Eugenio Romano d35ba2eedb Validate config improvements (#6837)
* validate config

* fix

* fix
2021-03-22 14:02:05 +00:00
Denys Vuika 5c55c7ed13 api docs for the TestElement (#6834) 2021-03-22 11:13:41 +00:00
dependabot[bot] 4d656625ea Bump snyk from 1.495.0 to 1.503.0 (#6831)
Bumps [snyk](https://github.com/snyk/snyk) from 1.495.0 to 1.503.0.
- [Release notes](https://github.com/snyk/snyk/releases)
- [Changelog](https://github.com/snyk/snyk/blob/master/.releaserc)
- [Commits](https://github.com/snyk/snyk/compare/v1.495.0...v1.503.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-22 10:46:31 +00:00
dependabot[bot] 40b75f8472 Bump husky from 5.1.2 to 5.2.0 (#6832)
Bumps [husky](https://github.com/typicode/husky) from 5.1.2 to 5.2.0.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v5.1.2...v5.2.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-22 10:46:21 +00:00
arditdomi 2640134401 Add getProcessFilters method in testing - filters util (#6382) 2021-03-22 10:44:49 +00:00
siva kumar 3d46976f83 [ACA-4307] Move Process task JSON mapping e2e process and task names to ADF resource file (#6778)
* [ACA-4307] Move Process task JSON mapping e2e process and task names to ADF resource file

* * Moved display widget methods to ADF testing pack
2021-03-22 09:30:38 +00:00
davidcanonieto a68c39a806 [ADF-5359] Improve response time for filter counters (#6800)
* [ADF-5359] Improve response time for filter counters

* Improve cache

* Update .travis.yml
2021-03-22 09:29:54 +00:00
Dharan 8f8819c395 [ADF-5318] E2E Content Change type (#6799)
* [ADF-5318] E2E Content Change type

* Update metadata-content-type.e2e.ts
2021-03-22 09:25:50 +00:00
Eugenio Romano 76de2c06f5 add some more info on the refresh token timeout (#6823) 2021-03-22 09:22:42 +00:00
dependabot[bot] 0a9e8b81d4 Bump @apollo/client from 3.3.10 to 3.3.12 (#6826)
Bumps [@apollo/client](https://github.com/apollographql/apollo-client) from 3.3.10 to 3.3.12.
- [Release notes](https://github.com/apollographql/apollo-client/releases)
- [Changelog](https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-client/compare/v3.3.10...v3.3.12)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-18 14:56:25 +00:00
dependabot[bot] fd318e67f7 Bump cspell from 5.3.7 to 5.3.8 (#6827)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.3.7 to 5.3.8.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/master/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v5.3.7...v5.3.8)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-18 14:56:16 +00:00
Vito b0005c216b [ADF-5358] - fixed duplicated type on reopening viewer (#6815) 2021-03-18 09:28:59 +00:00
dependabot[bot] f90871da57 Bump ajv-cli from 3.2.1 to 4.2.0 (#6809)
Bumps [ajv-cli](https://github.com/ajv-validator/ajv-cli) from 3.2.1 to 4.2.0.
- [Release notes](https://github.com/ajv-validator/ajv-cli/releases)
- [Commits](https://github.com/ajv-validator/ajv-cli/commits/v4.2.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-18 09:28:37 +00:00
dependabot[bot] 4447cdd161 Bump snyk from 1.462.0 to 1.495.0 (#6822)
Bumps [snyk](https://github.com/snyk/snyk) from 1.462.0 to 1.495.0.
- [Release notes](https://github.com/snyk/snyk/releases)
- [Changelog](https://github.com/snyk/snyk/blob/master/.releaserc)
- [Commits](https://github.com/snyk/snyk/compare/v1.462.0...v1.495.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-18 09:28:27 +00:00
Eugenio Romano e7c0eb4a94 Update .travis.yml 2021-03-17 16:33:41 +00:00
Eugenio Romano cd915b307b Remove demo shell test and make cloud a bit more stable (#6781)
* remove demo shell test and make cloud a bit more stable

* fix lint

* Update restore-content-directive.e2e.ts

* Update restore-content-directive.e2e.ts

* Update restore-content-directive.e2e.ts

* try fix attach

* Update .travis.yml

* sleep...

* remove about e2e demo shell....

* fix

* lint fix

* configure

* refactor buuild

* names and remove demo shell build from libs

* fix new build approach

* fix

* fix

* .

* uncomment

* .

* .

* fix

* fix

* .

* fix

* lock update

* fix demo shell errors

* use replay subject

* fix some console log error

* suffix problem

* split process e2e

* not need to check everywhere the pagination e2e

* split content

* fix

* fix

* fix

* fix

* reorg

# Conflicts:
#	.travis.yml
2021-03-17 15:17:46 +00:00
Cristina Jalba 90aabe3541 [ACA-4340]Add method for createProcessInstanceAndClaimFirstTask
* Add method for createProcessInstanceAndClaimFirstTask

* Instantiate in constructor

* Change data to be public

* Fix lint
2021-03-12 15:17:03 +02:00
arditdomi 2ed632f9fc [ADF-5355] - Fix attach button visibility when using external source (#6784) 2021-03-12 09:03:42 +00:00
1644 changed files with 67993 additions and 25572 deletions
+2 -1
View File
@@ -3,7 +3,8 @@ updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
interval: "weekly"
day: "sunday"
open-pull-requests-limit: 5
target-branch: develop
ignore:
+1
View File
@@ -27,3 +27,4 @@ out-tsc
!/.protractor-smartrunner/
/reports/
e2e-result-*
licenses.txt
+311 -71
View File
@@ -1,3 +1,6 @@
import:
- source: Alfresco/alfresco-build-tools:.travis.docker_hub_login.yml@v1.1.1
git:
depth: 3
quiet: true
@@ -6,13 +9,17 @@ language: node_js
arch: arm64-graviton2
dist: bionic
node_js:
- '12.18.4'
- '14'
before_install: . ./scripts/ci/job_hooks/before_install.sh
install: ./scripts/ci/job_hooks/install.sh
env:
global:
# REPOSITORY
- REPO_OWNER="Alfresco"
- REPO_NAME="alfresco-ng2-components"
- S3_DBP_PATH="s3://alfresco-travis-builds/adf"
- DEMO_SHELL_DIR="./dist/demo-shell"
- BUILT_LIBS_DIR="./lib/dist"
@@ -21,9 +28,15 @@ env:
#E2E VARIABLES
- SAVE_SCREENSHOT=true
- REDIRECT_URI=/
- REDIRECT_URI_LOGOUT=/logout/
- BROWSER_RUN=true
- MAXINSTANCES=2
- PROXY_HOST_ADF=$E2E_HOST
- HOST_SSO=$HOST_SSO
- USERNAME_ADF=$E2E_USERNAME
- PASSWORD_ADF=$E2E_PASSWORD
- IDENTITY_ADMIN_EMAIL=$E2E_ADMIN_EMAIL_IDENTITY
- IDENTITY_ADMIN_PASSWORD=$E2E_ADMIN_PASSWORD_IDENTITY
- URL_HOST_ADF="http://localhost:4200"
branches:
only:
@@ -34,21 +47,24 @@ branches:
- /.*beta.*/
stages:
- name: Prerequisite
- name: Setup
- name: "Lint & Build Dist & Release"
- name: "Build lib"
if: tag IS blank
- name: Trigger Alpha ADF child build
if: (branch = develop AND type = push) OR type = api
- name: Check bundle
- name: "Check bundle"
if: type = push AND tag IS blank
- name: Unit test
if: (branch != master AND type != cron AND tag IS blank) OR type = api
- name: e2e Test
if: (branch != master AND type != cron AND tag IS blank) OR type = api
- name: Trigger Beta ADF child build
if: tag =~ .*beta.*
- name: Release tag
if: type = cron OR branch = master
- name: "Trigger Alpha ADF child build"
if: branch = develop AND (type = cron || type = api)
- name: "Build Demo shell"
if: tag IS blank
- name: "Unit test Lib"
if: type = pull_request || (type = cron || type = api)
- name: "e2e Test"
if: type = pull_request || (type = cron || type = api)
- name: "Release tag"
if: branch = master
- name: "Deprecate develop builds"
if: branch = master
addons:
chrome: stable
@@ -59,6 +75,15 @@ services:
jobs:
include:
# Big Bang ===================
- stage: Prerequisite
name: "Before anything unnece$$ary happens..."
if: type == pull_request
language: python
python: 3.8
install: echo "no install here"
script: ./scripts/ci/jobs/dbpci-build-guard-check $TRAVIS_PULL_REQUEST || exit 1
# Setup ======================
- stage: Setup
name: "Node modules cache preparation"
@@ -71,134 +96,349 @@ jobs:
use: node_modules_cache
# Run Only for any PR
- stage: "Lint & Build Dist & Release"
name: Build
- stage: "Build lib"
name: "Lib::Build"
script:
- ./scripts/travis/build/build.sh
- ./scripts/travis/release/release-npm.sh
- ./scripts/travis/release/release-docker.sh
- ./scripts/travis/build/build-libs.sh || travis_terminate 1
- ./scripts/travis/release/release-npm.sh || travis_terminate 1
workspaces:
create:
name: built_artefacts_cache
name: built_libs_cache
paths:
- "$DEMO_SHELL_DIR"
- "$BUILT_LIBS_DIR"
- "$NODE_MODULES_DIR"
use: node_modules_cache
- stage: "Lint & Build Dist & Release"
- stage: "Build lib"
name: "Lint"
script: ./scripts/lint.sh
workspaces:
use: node_modules_cache
use: node_modules_cache
- stage: Unit test
name: Unit test content
- stage: "Build Demo shell"
name: "Demo Shell :Build && dockerize"
script:
# Build Demo shell for production docker"
- NODE_OPTIONS=--max_old_space_size=8192 nx build demoshell --configuration production
- ./scripts/travis/release/release-docker.sh
workspaces:
create:
name: built_demo_shell_cache
paths:
- "$DEMO_SHELL_DIR"
use:
- built_libs_cache
- stage: "Unit test Lib"
name: "content::unit"
script: ./scripts/travis/unit-test/content.sh
workspaces:
use: node_modules_cache
use: built_libs_cache
- stage: Unit test
name: Unit test core extension demo
- stage: "Unit test Lib"
name: "core-extension::unit"
script: ./scripts/travis/unit-test/core-extension.sh
workspaces:
use: node_modules_cache
use: built_libs_cache
- stage: Unit test
name: Unit test process insights
- stage: "Unit test Lib"
name: "process-insights::unit"
script: ./scripts/travis/unit-test/process.sh
workspaces:
use: node_modules_cache
use: built_libs_cache
- stage: Unit test
name: Unit test process-cloud
- stage: "Unit test Lib"
name: "process-cloud::unit"
script: ./scripts/travis/unit-test/process-cloud.sh
workspaces:
use: node_modules_cache
use: built_libs_cache
- stage: Trigger Alpha ADF child build
name: Trigger Alpha ADF child build
- stage: "Trigger Alpha ADF child build"
name: "Trigger Alpha ADF child build"
script: ./scripts/travis/update/update-project.sh -p $TRAVIS_BUILD_NUMBER -t $GITHUB_TOKEN -v alpha
workspaces:
use: node_modules_cache
use: built_libs_cache
- stage: Trigger Beta ADF child build
name: Trigger Beta ADF child build
script: ./scripts/travis/update/update-project.sh -p $TRAVIS_BUILD_NUMBER -t $GITHUB_TOKEN -v beta
workspaces:
use: node_modules_cache
- stage: Release tag
- stage: "Release tag"
script: ./scripts/travis/release/git-tag.sh
- stage: e2e Test
name: core
- stage: "Deprecate develop builds"
script:
- ADF_VERSION=$(npm view @alfresco/adf-core@${TAG_NPM} version)
- ./scripts/travis/release/deprecate-develop-build.sh -v ${ADF_VERSION}
- stage: "e2e Test"
name: "Core"
before_script:
- ./scripts/ci/job_hooks/before_e2e.sh
- ./scripts/ci/check-env/check-cs-env.sh || travis_terminate 1
- ./scripts/ci/check-env/check-ps-env.sh || travis_terminate 1
script: ./scripts/travis/e2e/core-e2e.sh
script: ./scripts/travis/e2e/e2e.sh
after_script: ./scripts/ci/job_hooks/after_e2e.sh
workspaces:
use:
- node_modules_cache
- built_artefacts_cache
- built_libs_cache
- built_demo_shell_cache
env:
- FOLDER="core"
- PROVIDER='ALL'
- AUTH_TYPE='OAUTH'
- stage: e2e Test
name: content
- stage: "e2e Test"
name: "Content: Components"
before_script:
- ./scripts/ci/job_hooks/before_e2e.sh
- ./scripts/ci/check-env/check-cs-env.sh || travis_terminate 1
script: ./scripts/travis/e2e/content-services-e2e.sh
script: ./scripts/travis/e2e/e2e.sh
after_script: ./scripts/ci/job_hooks/after_e2e.sh
workspaces:
use:
- node_modules_cache
- built_artefacts_cache
- built_libs_cache
- built_demo_shell_cache
env:
- FOLDER="content-services/components"
- PROVIDER="ECM"
- AUTH_TYPE="BASIC"
- stage: e2e Test
name: search
- stage: "e2e Test"
name: "Content: Directives"
before_script:
- ./scripts/ci/job_hooks/before_e2e.sh
- ./scripts/ci/check-env/check-cs-env.sh || travis_terminate 1
script: ./scripts/travis/e2e/search-e2e.sh
script: ./scripts/travis/e2e/e2e.sh
after_script: ./scripts/ci/job_hooks/after_e2e.sh
workspaces:
use:
- node_modules_cache
- built_artefacts_cache
- built_libs_cache
- built_demo_shell_cache
env:
- FOLDER="content-services/directives"
- PROVIDER="ECM"
- AUTH_TYPE="BASIC"
- stage: e2e Test
name: process
- stage: "e2e Test"
name: "Content: Document List"
before_script:
- ./scripts/ci/job_hooks/before_e2e.sh
- ./scripts/ci/check-env/check-cs-env.sh || travis_terminate 1
script: ./scripts/travis/e2e/e2e.sh
after_script: ./scripts/ci/job_hooks/after_e2e.sh
workspaces:
use:
- built_libs_cache
- built_demo_shell_cache
env:
- FOLDER="content-services/document-list"
- PROVIDER="ECM"
- AUTH_TYPE="BASIC"
- stage: "e2e Test"
name: "Content: Metadata"
before_script:
- ./scripts/ci/job_hooks/before_e2e.sh
- ./scripts/ci/check-env/check-cs-env.sh || travis_terminate 1
script: ./scripts/travis/e2e/e2e.sh
after_script: ./scripts/ci/job_hooks/after_e2e.sh
workspaces:
use:
- built_libs_cache
- built_demo_shell_cache
env:
- FOLDER="content-services/metadata"
- PROVIDER="ECM"
- AUTH_TYPE="BASIC"
- stage: "e2e Test"
name: "Content: Upload and Versioning"
before_script:
- ./scripts/ci/job_hooks/before_e2e.sh
- ./scripts/ci/check-env/check-cs-env.sh || travis_terminate 1
script: ./scripts/travis/e2e/e2e.sh
after_script: ./scripts/ci/job_hooks/after_e2e.sh
workspaces:
use:
- built_libs_cache
- built_demo_shell_cache
env:
- FOLDER="content-services/upload"
- PROVIDER="ECM"
- AUTH_TYPE="BASIC"
- stage: "e2e Test"
name: "Search"
before_script:
- ./scripts/ci/job_hooks/before_e2e.sh
- ./scripts/ci/check-env/check-cs-env.sh || travis_terminate 1
script: ./scripts/travis/e2e/e2e.sh
after_script: ./scripts/ci/job_hooks/after_e2e.sh
workspaces:
use:
- built_libs_cache
- built_demo_shell_cache
env:
- FOLDER="search"
- PROVIDER="ECM"
- AUTH_TYPE="BASIC"
- stage: "e2e Test"
name: "Process: Form"
before_script:
- ./scripts/ci/job_hooks/before_e2e.sh || travis_terminate 1
- ./scripts/ci/check-env/check-ps-env.sh || travis_terminate 1
- ./scripts/ci/check-env/check-external-cs-env.sh || travis_terminate 1
script: ./scripts/travis/e2e/process-services-e2e.sh
script: ./scripts/travis/e2e/e2e.sh
after_script: ./scripts/ci/job_hooks/after_e2e.sh
workspaces:
use:
- node_modules_cache
- built_artefacts_cache
- built_libs_cache
- built_demo_shell_cache
env:
- FOLDER="process-services/form"
- PROVIDER="BPM"
- AUTH_TYPE="OAUTH"
- stage: e2e Test
name: process Cloud
- stage: "e2e Test"
name: "Process: Process"
before_script:
- ./scripts/ci/job_hooks/before_e2e.sh || travis_terminate 1
- ./scripts/ci/check-env/check-ps-env.sh || travis_terminate 1
- ./scripts/ci/check-env/check-external-cs-env.sh || travis_terminate 1
script: ./scripts/travis/e2e/e2e.sh
after_script: ./scripts/ci/job_hooks/after_e2e.sh
workspaces:
use:
- built_libs_cache
- built_demo_shell_cache
env:
- FOLDER="process-services/process"
- PROVIDER="BPM"
- AUTH_TYPE="OAUTH"
- stage: "e2e Test"
name: "Process: Tasks"
before_script:
- ./scripts/ci/job_hooks/before_e2e.sh || travis_terminate 1
- ./scripts/ci/check-env/check-ps-env.sh || travis_terminate 1
- ./scripts/ci/check-env/check-external-cs-env.sh || travis_terminate 1
script: ./scripts/travis/e2e/e2e.sh
after_script: ./scripts/ci/job_hooks/after_e2e.sh
workspaces:
use:
- built_libs_cache
- built_demo_shell_cache
env:
- FOLDER="process-services/tasks"
- PROVIDER="BPM"
- AUTH_TYPE="OAUTH"
- stage: "e2e Test"
name: "Process: Widgets"
before_script:
- ./scripts/ci/job_hooks/before_e2e.sh || travis_terminate 1
- ./scripts/ci/check-env/check-ps-env.sh || travis_terminate 1
- ./scripts/ci/check-env/check-external-cs-env.sh || travis_terminate 1
script: ./scripts/travis/e2e/e2e.sh
after_script: ./scripts/ci/job_hooks/after_e2e.sh
workspaces:
use:
- built_libs_cache
- built_demo_shell_cache
env:
- FOLDER="process-services/widgets"
- PROVIDER="BPM"
- AUTH_TYPE="OAUTH"
- stage: "e2e Test"
name: "Process Cloud : Form"
before_script:
- ./scripts/ci/job_hooks/before_e2e.sh
- ./scripts/ci/check-env/check-cs-env.sh || travis_terminate 1
- ./scripts/ci/check-env/check-ps-cloud-env.sh || travis_terminate 1
script: ./scripts/travis/e2e/process-services-cloud-e2e.sh
script: ./scripts/travis/e2e/e2e.sh
after_script: ./scripts/ci/job_hooks/after_e2e.sh
workspaces:
use:
- node_modules_cache
- built_artefacts_cache
- built_libs_cache
- built_demo_shell_cache
env:
- FOLDER="process-services-cloud/form-field"
- PROVIDER="ALL"
- AUTH_TYPE="OAUTH"
- stage: "e2e Test"
name: "Process Cloud : People"
before_script:
- ./scripts/ci/job_hooks/before_e2e.sh
- ./scripts/ci/check-env/check-cs-env.sh || travis_terminate 1
- ./scripts/ci/check-env/check-ps-cloud-env.sh || travis_terminate 1
script: ./scripts/travis/e2e/e2e.sh
after_script: ./scripts/ci/job_hooks/after_e2e.sh
workspaces:
use:
- built_libs_cache
- built_demo_shell_cache
env:
- FOLDER="process-services-cloud/people"
- PROVIDER="ALL"
- AUTH_TYPE="OAUTH"
- stage: "e2e Test"
name: "Process Cloud : Process"
before_script:
- ./scripts/ci/job_hooks/before_e2e.sh
- ./scripts/ci/check-env/check-cs-env.sh || travis_terminate 1
- ./scripts/ci/check-env/check-ps-cloud-env.sh || travis_terminate 1
script: ./scripts/travis/e2e/e2e.sh
after_script: ./scripts/ci/job_hooks/after_e2e.sh
workspaces:
use:
- built_libs_cache
- built_demo_shell_cache
env:
- FOLDER="process-services-cloud/process"
- PROVIDER="ALL"
- AUTH_TYPE="OAUTH"
- stage: "e2e Test"
name: "Process Cloud : Start Task"
before_script:
- ./scripts/ci/job_hooks/before_e2e.sh
- ./scripts/ci/check-env/check-cs-env.sh || travis_terminate 1
- ./scripts/ci/check-env/check-ps-cloud-env.sh || travis_terminate 1
script: ./scripts/travis/e2e/e2e.sh
after_script: ./scripts/ci/job_hooks/after_e2e.sh
workspaces:
use:
- built_libs_cache
- built_demo_shell_cache
env:
- FOLDER="process-services-cloud/start-task"
- PROVIDER="ALL"
- AUTH_TYPE="OAUTH"
- stage: "e2e Test"
name: "Process Cloud : Tasks List"
before_script:
- ./scripts/ci/job_hooks/before_e2e.sh
- ./scripts/ci/check-env/check-cs-env.sh || travis_terminate 1
- ./scripts/ci/check-env/check-ps-cloud-env.sh || travis_terminate 1
script: ./scripts/travis/e2e/e2e.sh
after_script: ./scripts/ci/job_hooks/after_e2e.sh
workspaces:
use:
- built_libs_cache
- built_demo_shell_cache
env:
- FOLDER="process-services-cloud/task-list"
- PROVIDER="ALL"
- AUTH_TYPE="OAUTH"
- stage: Check bundle
script:
- ADF_VERSION=$(npm view @alfresco/adf-core@${TAG_NPM} version)
- ./scripts/travis/build/npm-check-bundles.sh -v ${ADF_VERSION}
workspaces:
use: node_modules_cache
use: built_libs_cache
notifications:
slack:
+5 -1
View File
@@ -10,7 +10,11 @@ RUN mkdir -p ./licenses && \
# 2. Generate image
FROM nginxinc/nginx-unprivileged:1.19.3-alpine
FROM nginxinc/nginx-unprivileged:1.21-alpine
USER root
RUN apk update && apk upgrade
USER 101
ARG PROJECT_NAME
-3
View File
@@ -9,9 +9,6 @@
[![Join the chat at https://gitter.im/Alfresco/alfresco-ng2-components](https://badges.gitter.im/Alfresco/alfresco-ng2-components.svg)](https://gitter.im/Alfresco/alfresco-ng2-components?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
<p>
<a href='https://codecov.io/gh/Alfresco/alfresco-ng2-components'>
<img src='http://img.shields.io/codecov/c/github/Alfresco/alfresco-ng2-components/master.svg?maxAge=2592000' alt='Coverage Status' />
</a>
<a href='https://github.com/Alfresco/alfresco-ng2-components/blob/master/LICENSE'>
<img src='https://img.shields.io/hexpm/l/plug.svg' alt='license' />
</a>
+90 -14
View File
@@ -30,7 +30,9 @@
"tsConfig": "tsconfig.dev.json",
"polyfills": "demo-shell/src/polyfills.ts",
"stylePreprocessorOptions": {
"includePaths": ["lib"]
"includePaths": [
"lib"
]
},
"assets": [
"demo-shell/src/assets",
@@ -121,7 +123,8 @@
"demo-shell/src/assets/fonts/material-icons/material-icons.css",
"demo-shell/src/assets/fonts/muli/muli.css",
"demo-shell/src/styles.scss",
"demo-shell/src/custom-style-dev.scss"
"demo-shell/src/custom-style-dev.scss",
"node_modules/cropperjs/dist/cropper.min.css"
],
"scripts": [
"node_modules/pdfjs-dist/build/pdf.js",
@@ -162,6 +165,16 @@
"maximumWarning": "6kb"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": true,
"buildOptimizer": true,
"verbose": false,
"fileReplacements": [
{
"replace": "demo-shell/src/environments/environment.ts",
@@ -298,8 +311,14 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["tsconfig.dev.json"],
"exclude": ["**/node_modules/**/*", "package.json"]
"tsConfig": [
"tsconfig.dev.json"
],
"exclude": [
"**/node_modules/**/*",
"**/lib/**/*",
"package.json"
]
}
}
}
@@ -332,8 +351,13 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["./e2e/tsconfig.e2e.json"],
"exclude": ["**/node_modules/**/*"]
"tsConfig": [
"./e2e/tsconfig.e2e.json"
],
"exclude": [
"**/lib/**/*",
"**/node_modules/**/*"
]
}
}
}
@@ -374,7 +398,14 @@
"lib/core/tsconfig.lib.json",
"lib/core/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
"exclude": [
"**/lib/extensions/**/*",
"**/lib/content-services/**/*",
"**/lib/insights/**/*",
"**/lib/process-services-cloud/**/*",
"**/lib/process-services/**/*",
"**/node_modules/**"
]
}
}
}
@@ -415,7 +446,14 @@
"lib/content-services/tsconfig.lib.json",
"lib/content-services/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
"exclude": [
"**/lib/extensions/**/*",
"**/lib/core/**/*",
"**/lib/insights/**/*",
"**/lib/process-services-cloud/**/*",
"**/lib/process-services/**/*",
"**/node_modules/**"
]
}
}
}
@@ -456,7 +494,14 @@
"lib/process-services/tsconfig.lib.json",
"lib/process-services/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
"exclude": [
"**/lib/extensions/**/*",
"**/lib/core/**/*",
"**/lib/insights/**/*",
"**/lib/process-services-cloud/**/*",
"**/lib/content-services/**/*",
"**/node_modules/**"
]
}
}
}
@@ -497,7 +542,14 @@
"lib/process-services-cloud/tsconfig.lib.json",
"lib/process-services-cloud/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
"exclude": [
"**/lib/extensions/**/*",
"**/lib/core/**/*",
"**/lib/insights/**/*",
"**/lib/process-services/**/*",
"**/lib/content-services/**/*",
"**/node_modules/**"
]
}
}
}
@@ -538,7 +590,14 @@
"lib/insights/tsconfig.lib.json",
"lib/insights/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
"exclude": [
"**/lib/extensions/**/*",
"**/lib/core/**/*",
"**/lib/process-services-cloud/**/*",
"**/lib/process-services/**/*",
"**/lib/content-services/**/*",
"**/node_modules/**"
]
}
}
}
@@ -578,7 +637,14 @@
"lib/extensions/tsconfig.lib.json",
"lib/extensions/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
"exclude": [
"**/lib/core/**/*",
"**/lib/content-services/**/*",
"**/lib/process-services/**/*",
"**/lib/process-services-cloud/**/*",
"**/lib/insights/**/*",
"**/node_modules/**"
]
}
}
}
@@ -608,7 +674,14 @@
"lib/testing/tsconfig.lib.json",
"lib/testing/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
"exclude": [
"**/lib/core/**/*",
"**/lib/content-services/**/*",
"**/lib/process-services/**/*",
"**/lib/process-services-cloud/**/*",
"**/lib/insight/**/*",
"**/node_modules/**"
]
}
}
}
@@ -633,5 +706,8 @@
}
}
},
"defaultProject": "demoshell"
"defaultProject": "demoshell",
"cli": {
"analytics": "0ce5075f-0835-439a-bebe-7c41750179a6"
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "Alfresco-ADF-Angular-Demo",
"description": "Demo shell for Alfresco Angular components",
"version": "4.3.0",
"version": "4.6.0",
"author": "Alfresco Software, Ltd.",
"repository": {
"type": "git",
+4 -2
View File
@@ -219,7 +219,8 @@
"NOTIFICATIONS": {
"TASK_ASSIGNED": "تم تعيين المهمة {{taskName}} إلى {{assignee}}",
"PROCESS_STARTED": "تم بدء عملية {{processName}}",
"TASK_UPDATED": "تم تحديث تفاصيل مهمة {{taskName}}"
"TASK_UPDATED": "تم تحديث تفاصيل مهمة {{taskName}}",
"TASK_CREATED": "تم إنشاء المهمة {{TaskName}}"
},
"FORM-LOADING": {
"FORM_DATA": "بيانات النموذج",
@@ -348,5 +349,6 @@
"PROCESS_ID": "معرّف مثيل المعالجة",
"ACTION_TYPE": "نوع الإجراء"
}
}
},
"DEFAULT_SEARCH": "افتراضي"
}
+9 -7
View File
@@ -219,7 +219,8 @@
"NOTIFICATIONS": {
"TASK_ASSIGNED": "Úkol {{taskName}} byl přiřazen uživateli {{assignee}}",
"PROCESS_STARTED": "Byl spuštěn proces {{processName}}",
"TASK_UPDATED": "Byly aktualizovány podrobnosti úkolu {{taskName}}"
"TASK_UPDATED": "Byly aktualizovány podrobnosti úkolu {{taskName}}",
"TASK_CREATED": "Úkol {{taskName}} byl vytvořen"
},
"FORM-LOADING": {
"FORM_DATA": "Data formuláře",
@@ -251,11 +252,11 @@
"CREATED_THIS_YEAR": "1.Vytvořeno tento rok",
"MIMETYPE": "2.Typ: HTML",
"XTRASMALL": "3.Velikost: extra malé",
"SMALL": "3.Velikost: malé",
"MEDIUM": "3.Velikost: střední",
"LARGE": "3.Velikost: velké",
"XTRALARGE": "3.Velikost: extra velké",
"XXTRALARGE": "3.Velikost: XX velké"
"SMALL": "4.Velikost: malé",
"MEDIUM": "5.Velikost: střední",
"LARGE": "6.Velikost: velké",
"XTRALARGE": "7.Velikost: extra velké",
"XXTRALARGE": "8.Velikost: XX velké"
}
},
"SOCIAL": {
@@ -348,5 +349,6 @@
"PROCESS_ID": "ID instance procesu",
"ACTION_TYPE": "Typ akce"
}
}
},
"DEFAULT_SEARCH": "Výchozí"
}
+4 -2
View File
@@ -219,7 +219,8 @@
"NOTIFICATIONS": {
"TASK_ASSIGNED": "{{taskName}} opgave er blevet tildelt til {{assignee}}",
"PROCESS_STARTED": "{{processName}} processen er startet",
"TASK_UPDATED": "{{taskName}} opgavedetaljer er blevet opdateret"
"TASK_UPDATED": "{{taskName}} opgavedetaljer er blevet opdateret",
"TASK_CREATED": "Opgaven {{taskName}} blev oprettet"
},
"FORM-LOADING": {
"FORM_DATA": "Formulardata",
@@ -348,5 +349,6 @@
"PROCESS_ID": "Procesforekomst-id",
"ACTION_TYPE": "Handlingstype"
}
}
},
"DEFAULT_SEARCH": "Standard"
}
+4 -2
View File
@@ -219,7 +219,8 @@
"NOTIFICATIONS": {
"TASK_ASSIGNED": "Aufgabe '{{taskName}}' wurde {{assignee}} zugewiesen",
"PROCESS_STARTED": "Prozess '{{processName}}' wurde gestartet",
"TASK_UPDATED": "Aufgabe '{{taskName}}' wurde aktualisiert"
"TASK_UPDATED": "Aufgabe '{{taskName}}' wurde aktualisiert",
"TASK_CREATED": "Die Aufgabe {{taskName}} wurde erstellt"
},
"FORM-LOADING": {
"FORM_DATA": "Formulardaten",
@@ -348,5 +349,6 @@
"PROCESS_ID": "Prozessinstanz-ID",
"ACTION_TYPE": "Aktionstyp"
}
}
},
"DEFAULT_SEARCH": "Standard"
}
+2 -1
View File
@@ -349,5 +349,6 @@
"PROCESS_ID": "Process Instance ID",
"ACTION_TYPE": "Action Type"
}
}
},
"DEFAULT_SEARCH": "Default"
}
+4 -2
View File
@@ -219,7 +219,8 @@
"NOTIFICATIONS": {
"TASK_ASSIGNED": "La tarea {{taskName}} ha sido asignada a {{assignee}}",
"PROCESS_STARTED": "Se ha iniciado el proceso {{processName}}",
"TASK_UPDATED": "Se actualizaron los detalles de la tarea {{taskName}}"
"TASK_UPDATED": "Se actualizaron los detalles de la tarea {{taskName}}",
"TASK_CREATED": "Se ha creado la tarea {{taskName}}"
},
"FORM-LOADING": {
"FORM_DATA": "Datos del formulario",
@@ -348,5 +349,6 @@
"PROCESS_ID": "ID de instancia del proceso",
"ACTION_TYPE": "Tipo de acción"
}
}
},
"DEFAULT_SEARCH": "Predeterminado"
}
+4 -2
View File
@@ -219,7 +219,8 @@
"NOTIFICATIONS": {
"TASK_ASSIGNED": "{{taskName}} -tehtävä on määritetty käyttäjälle {{assignee}}",
"PROCESS_STARTED": "{{processName}} -prosessi on käynnistetty",
"TASK_UPDATED": "{{taskName}} -tehtävän tiedot on päivitetty"
"TASK_UPDATED": "{{taskName}} -tehtävän tiedot on päivitetty",
"TASK_CREATED": "{{taskName}} -tehtävä luotiin"
},
"FORM-LOADING": {
"FORM_DATA": "Lomaketiedot",
@@ -348,5 +349,6 @@
"PROCESS_ID": "Prosessiesiintymätunnus",
"ACTION_TYPE": "Toiminnon tyyppi"
}
}
},
"DEFAULT_SEARCH": "Oletus"
}
+5 -3
View File
@@ -219,7 +219,8 @@
"NOTIFICATIONS": {
"TASK_ASSIGNED": "La tâche {{taskName}} a été assignée à {{assignee}}",
"PROCESS_STARTED": "Le processus {{processName}} a été démarré",
"TASK_UPDATED": "Les détails de la tâche {{taskName}} ont été mis à jour"
"TASK_UPDATED": "Les détails de la tâche {{taskName}} ont été mis à jour",
"TASK_CREATED": "{{taskName}} tâche a été créée"
},
"FORM-LOADING": {
"FORM_DATA": "Données du formulaire",
@@ -268,7 +269,7 @@
"NODE_LIST": "Liste de balises par ID de nœud"
},
"DEMO_PERMISSION": {
"INHERIT_PERMISSION_BUTTON": "Hériter les droits d'accès",
"INHERIT_PERMISSION_BUTTON": "Hériter des droits d'accès",
"INHERITED_PERMISSIONS_BUTTON": "Droits d'accès hérités"
},
"TASK_LIST_DEMO": {
@@ -348,5 +349,6 @@
"PROCESS_ID": "ID de l'instance de processus",
"ACTION_TYPE": "Type d'action"
}
}
},
"DEFAULT_SEARCH": "Par défaut"
}
+9 -7
View File
@@ -39,8 +39,8 @@
},
"title": "Benvenuto",
"VERSION": {
"NO_PERMISSION": "Non si dispone dei permessi per gestire versioni di questo contenuto",
"NO_PERMISSION_EVENT": "Non si dispone dei permessi ${event.permission} di ${event.action} ${event.type}",
"NO_PERMISSION": "Non si dispone dell'autorizzazione per gestire versioni di questo contenuto",
"NO_PERMISSION_EVENT": "Non si dispone dell'autorizzazione ${event.permission} per ${event.action} ${event.type}",
"CHOOSE_FILE": "Seleziona un file per visualizzarne le versioni",
"DIALOG": {
"CLOSE": "Chiudi",
@@ -171,7 +171,7 @@
"LOCK": "Blocca",
"METADATA": "Informazioni",
"DOWNLOAD": "Scarica",
"PERMISSION": "Permesso",
"PERMISSION": "Autorizzazione",
"FOLDER": {
"COPY": "Copia",
"MOVE": "Sposta",
@@ -219,7 +219,8 @@
"NOTIFICATIONS": {
"TASK_ASSIGNED": "Il compito {{taskName}} è stato assegnato a {{assignee}}",
"PROCESS_STARTED": "Il processo {{processName}} è stato avviato",
"TASK_UPDATED": "I dettagli del compito {{taskName}} sono stati aggiornati"
"TASK_UPDATED": "I dettagli del compito {{taskName}} sono stati aggiornati",
"TASK_CREATED": "Il compito {{taskName}} è stato creato"
},
"FORM-LOADING": {
"FORM_DATA": "Dati modulo",
@@ -268,8 +269,8 @@
"NODE_LIST": "Elenco tag per ID nodo"
},
"DEMO_PERMISSION": {
"INHERIT_PERMISSION_BUTTON": "Eredita permessi",
"INHERITED_PERMISSIONS_BUTTON": "Permesso ereditato"
"INHERIT_PERMISSION_BUTTON": "Eredita autorizzazione",
"INHERITED_PERMISSIONS_BUTTON": "Autorizzazione ereditata"
},
"TASK_LIST_DEMO": {
"ERROR_MESSAGE": {
@@ -348,5 +349,6 @@
"PROCESS_ID": "ID istanza di processo",
"ACTION_TYPE": "Tipo di azione"
}
}
},
"DEFAULT_SEARCH": "Predefinito"
}
+4 -2
View File
@@ -219,7 +219,8 @@
"NOTIFICATIONS": {
"TASK_ASSIGNED": "{{taskName}}タスクが{{assignee}}に割り当てられました",
"PROCESS_STARTED": "{{processName}}プロセスが開始しました",
"TASK_UPDATED": "{{taskName}}タスクの詳細が更新されました"
"TASK_UPDATED": "{{taskName}}タスクの詳細が更新されました",
"TASK_CREATED": "{{taskName}}タスクが作成されました"
},
"FORM-LOADING": {
"FORM_DATA": "フォーム データ",
@@ -348,5 +349,6 @@
"PROCESS_ID": "プロセスインスタンス ID",
"ACTION_TYPE": "処理のタイプ"
}
}
},
"DEFAULT_SEARCH": "デフォルト"
}
+4 -2
View File
@@ -219,7 +219,8 @@
"NOTIFICATIONS": {
"TASK_ASSIGNED": "{{taskName}}-oppgaven er tilordnet til {{assignee}}",
"PROCESS_STARTED": "{{processName}}-prosessen er startet",
"TASK_UPDATED": "{{taskName}}-oppgavedetaljene er oppdatert"
"TASK_UPDATED": "{{taskName}}-oppgavedetaljene er oppdatert",
"TASK_CREATED": "Oppgaven {{taskName}} ble opprettet"
},
"FORM-LOADING": {
"FORM_DATA": "Skjemadata",
@@ -348,5 +349,6 @@
"PROCESS_ID": "Prosesstilfelle-ID",
"ACTION_TYPE": "Handlingstype"
}
}
},
"DEFAULT_SEARCH": "Standard"
}
+7 -5
View File
@@ -171,7 +171,7 @@
"LOCK": "Vergrendeling",
"METADATA": "Info",
"DOWNLOAD": "Downloaden",
"PERMISSION": "Machtiging",
"PERMISSION": "Rechten",
"FOLDER": {
"COPY": "Kopiëren",
"MOVE": "Verplaatsen",
@@ -219,7 +219,8 @@
"NOTIFICATIONS": {
"TASK_ASSIGNED": "{{taskName}}-taak is toegewezen aan {{assignee}}",
"PROCESS_STARTED": "{{processName}}-proces is gestart",
"TASK_UPDATED": "{{taskName}}-taakdetails zijn bijgewerkt"
"TASK_UPDATED": "{{taskName}}-taakdetails zijn bijgewerkt",
"TASK_CREATED": "Taak {{taskName}} is gemaakt"
},
"FORM-LOADING": {
"FORM_DATA": "Formuliergegevens",
@@ -268,8 +269,8 @@
"NODE_LIST": "Taglijst per node-id"
},
"DEMO_PERMISSION": {
"INHERIT_PERMISSION_BUTTON": "Machtiging overnemen",
"INHERITED_PERMISSIONS_BUTTON": "Machtiging overgenomen"
"INHERIT_PERMISSION_BUTTON": "Rechten overnemen",
"INHERITED_PERMISSIONS_BUTTON": "Rechten overgenomen"
},
"TASK_LIST_DEMO": {
"ERROR_MESSAGE": {
@@ -348,5 +349,6 @@
"PROCESS_ID": "Procesinstantie-id",
"ACTION_TYPE": "Actietype"
}
}
},
"DEFAULT_SEARCH": "Standaard"
}
+4 -2
View File
@@ -219,7 +219,8 @@
"NOTIFICATIONS": {
"TASK_ASSIGNED": "Zadanie {{taskName}} zostało przydzielone do {{assignee}}",
"PROCESS_STARTED": "Proces {{processName}} został uruchomiony",
"TASK_UPDATED": "Szczegóły zadania {{taskName}} zostały zaktualizowane"
"TASK_UPDATED": "Szczegóły zadania {{taskName}} zostały zaktualizowane",
"TASK_CREATED": "Zadanie {{taskName}} zostało utworzone"
},
"FORM-LOADING": {
"FORM_DATA": "Dane formularza",
@@ -348,5 +349,6 @@
"PROCESS_ID": "Identyfikator wystąpienia procesu",
"ACTION_TYPE": "Typ czynności"
}
}
},
"DEFAULT_SEARCH": "Domyślne"
}
+4 -2
View File
@@ -219,7 +219,8 @@
"NOTIFICATIONS": {
"TASK_ASSIGNED": "A tarefa {{taskName}} foi atribuída a {{assignee}}",
"PROCESS_STARTED": "O processo {{processName}} foi iniciado",
"TASK_UPDATED": "Os detalhes da tarefa {{taskName}} foram atualizados"
"TASK_UPDATED": "Os detalhes da tarefa {{taskName}} foram atualizados",
"TASK_CREATED": "A tarefa {{taskName}} foi criada"
},
"FORM-LOADING": {
"FORM_DATA": "Dados do formulário",
@@ -348,5 +349,6 @@
"PROCESS_ID": "ID de instância de processo",
"ACTION_TYPE": "Tipo de ação"
}
}
},
"DEFAULT_SEARCH": "Padrão"
}
+5 -3
View File
@@ -70,7 +70,7 @@
"PROCESS_SERVICES": "Process Services",
"LOGIN": "Войти",
"CUSTOM_SOURCES": "Пользовательские источники",
"DATATABLE": "Datatable",
"DATATABLE": "Таблица данных",
"DATATABLE_LAZY": "Таблица данных (частичная загрузка)",
"DOCUMENT_LIST": "Список документов",
"TEMPLATE": "Шаблон",
@@ -219,7 +219,8 @@
"NOTIFICATIONS": {
"TASK_ASSIGNED": "Задача {{taskName}} была назначена {{assignee}}",
"PROCESS_STARTED": "Процесс {{processName}} запущен",
"TASK_UPDATED": "Сведения о задаче {{taskName}} обновлены"
"TASK_UPDATED": "Сведения о задаче {{taskName}} обновлены",
"TASK_CREATED": "{{taskName}} задача создана"
},
"FORM-LOADING": {
"FORM_DATA": "Данные формы",
@@ -348,5 +349,6 @@
"PROCESS_ID": "Идентификатор экземпляра процесса",
"ACTION_TYPE": "Тип действия"
}
}
},
"DEFAULT_SEARCH": "По умолчанию"
}
+4 -2
View File
@@ -219,7 +219,8 @@
"NOTIFICATIONS": {
"TASK_ASSIGNED": "{{taskName}} uppgiften har tilldelats till {{assignee}}",
"PROCESS_STARTED": "{{processName}} processen har startats",
"TASK_UPDATED": "{{taskName}} uppgiftsinformation har uppdaterats"
"TASK_UPDATED": "{{taskName}} uppgiftsinformation har uppdaterats",
"TASK_CREATED": "Uppgiften {{taskName}} skapades"
},
"FORM-LOADING": {
"FORM_DATA": "Formulärdata",
@@ -348,5 +349,6 @@
"PROCESS_ID": "Processinstans-ID",
"ACTION_TYPE": "Åtgärdstyp"
}
}
},
"DEFAULT_SEARCH": "Standard"
}
+4 -2
View File
@@ -219,7 +219,8 @@
"NOTIFICATIONS": {
"TASK_ASSIGNED": "{{taskName}} 任务已分配给 {{assignee}}",
"PROCESS_STARTED": "{{processName}} 进程已启动",
"TASK_UPDATED": "{{taskName}} 任务详细信息已更新"
"TASK_UPDATED": "{{taskName}} 任务详细信息已更新",
"TASK_CREATED": "{{taskName}} 任务已创建"
},
"FORM-LOADING": {
"FORM_DATA": "表单数据",
@@ -348,5 +349,6 @@
"PROCESS_ID": "流程实例 ID",
"ACTION_TYPE": "操作类型"
}
}
},
"DEFAULT_SEARCH": "默认值"
}
+275 -74
View File
@@ -31,80 +31,10 @@
"application": {
"storagePrefix": "ADF",
"name": "Alfresco ADF Application",
"copyright": "© 2016 - 2018 Alfresco Software, Inc. All Rights Reserved."
"copyright": "© 2016 - 2021 Alfresco Software, Inc. All Rights Reserved."
},
"languages": [
{
"key": "en",
"label": "English"
},
{
"key": "fr",
"label": "Français"
},
{
"key": "de",
"label": "Deutsch"
},
{
"key": "it",
"label": "Italiano"
},
{
"key": "es",
"label": "Español"
},
{
"key": "ja",
"label": "日本語"
},
{
"key": "nl",
"label": "Nederlands"
},
{
"key": "pt-BR",
"label": "Português (Brasil)"
},
{
"key": "nb",
"label": "Bokmål"
},
{
"key": "ru",
"label": "Русский"
},
{
"key": "zh-CN",
"label": "中文简体"
},
{
"key": "ar",
"label": "عربى",
"direction": "rtl"
},
{
"key": "cs",
"label": "Čeština"
},
{
"key": "pl",
"label": "Polski"
},
{
"key": "fi",
"label": "Suomi"
},
{
"key": "da",
"label": "Dansk"
},
{
"key": "sv",
"label": "Svenska"
}
],
"search": {
"notifications": true,
"search": [{
"filterWithContains": true,
"app:fields": [
"cm:name",
@@ -435,8 +365,279 @@
"postfix": ")"
}
]
}
},
"name": "DEFAULT_SEARCH",
"default": true
},
{
"filterWithContains": true,
"app:fields": [
"cm:name",
"cm:title",
"cm:description",
"ia:whatEvent",
"ia:descriptionEvent",
"lnk:title",
"lnk:description",
"TEXT",
"TAG"
],
"include": [
"path",
"allowableOperations",
"properties"
],
"sorting": {
"options": [
{
"key": "name",
"label": "Name",
"type": "FIELD",
"field": "cm:name",
"ascending": true
},
{
"key": "content.sizeInBytes",
"label": "Size",
"type": "FIELD",
"field": "content.size",
"ascending": true
},
{
"key": "createdByUser",
"label": "Author",
"type": "FIELD",
"field": "cm:creator",
"ascending": true
},
{
"key": "createdAt",
"label": "Created",
"type": "FIELD",
"field": "cm:created",
"ascending": true
},
{
"key": "score",
"label": "Relevance",
"type": "SCORE",
"field": "score",
"ascending": false
}
],
"defaults": [
{
"key": "score",
"type": "FIELD",
"field": "score",
"ascending": false
}
]
},
"resetButton": true,
"filterQueries": [
{
"query": "TYPE:'cm:folder'"
},
{
"query": "NOT cm:creator:System"
}
],
"facetFields": {
"expanded": true,
"fields": [
{
"field": "content.size",
"mincount": 1,
"label": "Folder Size",
"settings": {
"allowUpdateOnChange": false,
"hideDefaultAction": true,
"unit": "Bytes"
}
},
{
"field": "creator",
"mincount": 1,
"label": "Folder created",
"settings": {
"allowUpdateOnChange": false,
"hideDefaultAction": true
}
},
{
"field": "modifier",
"mincount": 1,
"label": "Folder Modifier",
"settings": {
"allowUpdateOnChange": false,
"hideDefaultAction": true
}
},
{
"field": "created",
"mincount": 1,
"label": "Folder Created",
"settings": {
"allowUpdateOnChange": false,
"hideDefaultAction": true
}
}
]
},
"facetQueries": {
"label": "SEARCH.FACET_QUERIES.MY_FACET_QUERIES",
"pageSize": 5,
"expanded": true,
"mincount": 1,
"queries": [
{
"query": "created:2019",
"label": "SEARCH.FACET_QUERIES.CREATED_THIS_YEAR"
},
{
"query": "content.mimetype:text/html",
"label": "SEARCH.FACET_QUERIES.MIMETYPE",
"group": "Type facet queries"
},
{
"query": "content.size:[0 TO 10240]",
"label": "SEARCH.FACET_QUERIES.XTRASMALL",
"group": "Size facet queries"
},
{
"query": "content.size:[10240 TO 102400]",
"label": "SEARCH.FACET_QUERIES.SMALL",
"group": "Size facet queries"
},
{
"query": "content.size:[102400 TO 1048576]",
"label": "SEARCH.FACET_QUERIES.MEDIUM",
"group": "Size facet queries"
},
{
"query": "content.size:[1048576 TO 16777216]",
"label": "SEARCH.FACET_QUERIES.LARGE",
"group": "Size facet queries"
},
{
"query": "content.size:[16777216 TO 134217728]",
"label": "SEARCH.FACET_QUERIES.XTRALARGE",
"group": "Size facet queries"
},
{
"query": "content.size:[134217728 TO MAX]",
"label": "SEARCH.FACET_QUERIES.XXTRALARGE",
"group": "Size facet queries"
}
],
"settings": {
"allowUpdateOnChange": false,
"hideDefaultAction": true
}
},
"facetIntervals": {
"expanded": true,
"intervals": [
{
"label": "The Created",
"field": "cm:created",
"sets": [
{
"label": "lastYear",
"start": "2018",
"end": "2019",
"endInclusive": false
},
{
"label": "currentYear",
"start": "NOW/YEAR",
"end": "NOW/YEAR+1YEAR"
},
{
"label": "earlier",
"start": "*",
"end": "2018",
"endInclusive": false
}
],
"settings": {
"allowUpdateOnChange": false,
"hideDefaultAction": true
}
},
{
"label": "The Modified",
"field": "cm:modified",
"sets": [
{
"label": "2017",
"start": "2017",
"end": "2018",
"endInclusive": false
},
{
"label": "2017-2018",
"start": "2017",
"end": "2018",
"endInclusive": true
},
{
"label": "currentYear",
"start": "NOW/YEAR",
"end": "NOW/YEAR+1YEAR"
},
{
"label": "earlierThan2017",
"start": "*",
"end": "2017",
"endInclusive": false
}
],
"settings": {
"allowUpdateOnChange": false,
"hideDefaultAction": true
}
}
]
},
"categories": [
{
"id": "contentSize",
"name": "Content Size",
"enabled": true,
"component": {
"selector": "slider",
"settings": {
"allowUpdateOnChange": false,
"hideDefaultAction": true,
"unit": "Byte",
"field": "cm:content.size",
"min": 0,
"max": 18,
"step": 1,
"thumbLabel": true
}
}
}
],
"highlight": {
"prefix": " ",
"postfix": " ",
"mergeContiguous": true,
"fields": [
{
"field": "cm:title"
},
{
"field": "description",
"prefix": "(",
"postfix": ")"
}
]
},
"name": "Folder"
}],
"search-headers": {
"filterWithContains": true,
"app:fields": [
+4 -2
View File
@@ -114,6 +114,7 @@ import localeDa from '@angular/common/locales/da';
import localeSv from '@angular/common/locales/sv';
import { setupAppNotifications } from './services/app-notifications-factory';
import { AppNotificationsService } from './services/app-notifications.service';
import { SearchFilterChipsComponent } from './components/search/search-filter-chips.component';
registerLocaleData(localeFr);
registerLocaleData(localeDe);
@@ -137,7 +138,7 @@ registerLocaleData(localeSv);
BrowserModule,
environment.e2e ? NoopAnimationsModule : BrowserAnimationsModule,
ReactiveFormsModule,
RouterModule.forRoot(appRoutes, { useHash: true }),
RouterModule.forRoot(appRoutes, { useHash: true, relativeLinkResolution: 'legacy' }),
FormsModule,
HttpClientModule,
MaterialModule,
@@ -204,7 +205,8 @@ registerLocaleData(localeSv);
CustomEditorComponent,
CustomWidgetComponent,
ProcessCloudLayoutComponent,
ServiceTaskListCloudDemoComponent
ServiceTaskListCloudDemoComponent,
SearchFilterChipsComponent
],
providers: [
{
+6
View File
@@ -55,6 +55,7 @@ import { FilteredSearchComponent } from './components/files/filtered-search.comp
import { ProcessCloudLayoutComponent } from './components/cloud/process-cloud-layout.component';
import { ServiceTaskListCloudDemoComponent } from './components/cloud/service-task-list-cloud-demo.component';
import { AspectListSampleComponent } from './components/aspect-list-sample/aspect-list-sample.component';
import { SearchFilterChipsComponent } from './components/search/search-filter-chips.component';
export const appRoutes: Routes = [
{ path: 'login', loadChildren: () => import('./components/login/login.module').then(m => m.AppLoginModule) },
@@ -325,6 +326,11 @@ export const appRoutes: Routes = [
component: SearchResultComponent,
canActivate: [AuthGuardEcm]
},
{
path: 'search-filter-chips',
component: SearchFilterChipsComponent,
canActivate: [AuthGuardEcm]
},
{
path: 'extendedSearch',
component: SearchExtendedComponent,
@@ -16,23 +16,18 @@
*/
import { Component, OnInit } from '@angular/core';
import {
name,
version,
commit,
dependencies
} from '../../../../../package.json';
import pkg from '../../../../../package.json';
import { AppConfigService } from '@alfresco/adf-core';
@Component({
selector: 'app-about-page',
templateUrl: './about.component.html',
styleUrls: ['about.component.scss']
styleUrls: ['./about.component.scss']
})
export class AboutComponent implements OnInit {
url = `https://github.com/Alfresco/${name}/commits/${commit}`;
version = version;
dependencies = dependencies;
url = `https://github.com/Alfresco/${pkg.name}/commits/${pkg.commit}`;
version = pkg.version;
dependencies = pkg.dependencies;
showExtensions = true;
application = '';
@@ -87,3 +87,5 @@
</button>
</ng-template>
</mat-menu>
<adf-file-uploading-dialog #fileDialog position="left"></adf-file-uploading-dialog>
@@ -2,7 +2,7 @@
$primary: map-get($theme, primary);
$minimumAppWidth: 320px;
@media screen and ($mat-xsmall) {
@media screen and (max-width: 599px) {
app-search-bar {
width: 150px;
}
@@ -14,6 +14,10 @@
}
}
adf-file-uploading-dialog {
z-index: 1100;
}
.app-layout {
display: flex;
flex: 1;
@@ -42,13 +46,13 @@
}
}
@media screen and ($mat-small) {
@media screen and (max-width: 959px) {
.app-menu {
padding-top: 0;
}
}
@media screen and ($mat-xsmall) {}
@media screen and (max-width: 599px) {}
mat-sidenav-content > div {
display: flex;
@@ -20,10 +20,10 @@ import { UserPreferencesService, AppConfigService, AlfrescoApiService, UserPrefe
import { HeaderDataService } from '../header-data/header-data.service';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { ThemePalette } from '@angular/material/core';
@Component({
templateUrl: 'app-layout.component.html',
styleUrls: ['app-layout.component.scss'],
templateUrl: './app-layout.component.html',
host: {
'class': 'app-layout'
},
@@ -93,14 +93,14 @@ export class AppLayoutComponent implements OnInit, OnDestroy {
expandedSidenav = false;
position = 'start';
position: 'start' | 'end' = 'start';
direction = 'ltr';
hideSidenav = false;
showMenu = true;
enableRedirect = true;
color = 'primary';
color: ThemePalette = 'primary';
title = 'APP_LAYOUT.APP_NAME';
logo: string;
redirectUrl: string | any[] = ['/home'];
@@ -34,8 +34,8 @@ import {
} from '../../../cloud/custom-form-components/custom-editor.component';
@Component({
templateUrl: 'cloud-form-demo.component.html',
styleUrls: ['cloud-form-demo.component.scss'],
templateUrl: './cloud-form-demo.component.html',
styleUrls: ['./cloud-form-demo.component.scss'],
providers: [
{ provide: FormRenderingService, useClass: CloudFormRenderingService }
]
@@ -20,8 +20,8 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-expandable-menu',
templateUrl: 'aspect-list-sample.component.html',
styleUrls: ['aspect-list-sample.component.scss']
templateUrl: './aspect-list-sample.component.html',
styleUrls: ['./aspect-list-sample.component.scss']
})
export class AspectListSampleComponent {
@@ -125,6 +125,15 @@ export class CardViewComponent implements OnInit, OnDestroy {
format: 'shortDate',
editable: this.isEditable
}),
new CardViewDateItemModel({
label: 'CardView Date Item - Multivalue (chips)',
value: [new Date(1983, 11, 24, 10, 0, 30)],
key: 'date',
default: new Date(1983, 11, 24, 10, 0, 30),
format: 'shortDate',
editable: this.isEditable,
multivalued: true
}),
new CardViewDatetimeItemModel({
label: 'CardView Datetime Item',
value: new Date(1983, 11, 24, 10, 0, 0),
@@ -133,6 +142,15 @@ export class CardViewComponent implements OnInit, OnDestroy {
format: 'short',
editable: this.isEditable
}),
new CardViewDatetimeItemModel({
label: 'CardView Datetime Item - Multivalue (chips)',
value: [new Date(1983, 11, 24, 10, 0, 0)],
key: 'datetime',
default: new Date(1983, 11, 24, 10, 0, 0),
format: 'short',
editable: this.isEditable,
multivalued: true
}),
new CardViewBoolItemModel({
label: 'CardView Boolean Item',
value: true,
@@ -162,6 +180,15 @@ export class CardViewComponent implements OnInit, OnDestroy {
editable: this.isEditable,
pipes: [{ pipe: this.decimalNumberPipe }]
}),
new CardViewFloatItemModel({
label: 'CardView Float Item - Multivalue (chips)',
value: [9.9],
key: 'float',
default: 0.0,
editable: this.isEditable,
multivalued: true,
pipes: [{ pipe: this.decimalNumberPipe }]
}),
new CardViewKeyValuePairsItemModel({
label: 'CardView Key-Value Pairs Item',
value: [{ name: 'hey', value: 'you' }, { name: 'hey', value: 'you' }],
@@ -21,7 +21,7 @@ import { ActivatedRoute } from '@angular/router';
@Component({
selector: 'app-cloud-breadcrumbs',
templateUrl: './cloud-breadcrumb-component.html',
styleUrls: ['cloud-breadcrumb-component.scss']
styleUrls: ['./cloud-breadcrumb-component.scss']
})
export class CloudBreadcrumbsComponent implements OnInit {
appName: string;
@@ -24,7 +24,7 @@ import { ProcessFilterCloudModel } from '@alfresco/adf-process-services-cloud';
@Component({
selector: 'app-cloud-filters-demo',
templateUrl: './cloud-filters-demo.component.html',
styleUrls: ['cloud-filters-demo.component.scss'],
styleUrls: ['./cloud-filters-demo.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class CloudFiltersDemoComponent implements OnInit {
@@ -48,7 +48,7 @@ export class CommunityTasksCloudDemoComponent implements OnInit, OnDestroy {
filterId;
multiselect: boolean;
selectedRows: string[] = [];
selectedRows: any[] = [];
testingMode: boolean;
selectionMode: string;
taskDetailsRedirection: boolean;
@@ -9,7 +9,8 @@
(taskClaimed)="onClaimTask()"
(taskCompleted)="onTaskCompleted()"
(taskUnclaimed)="onUnclaimTask()"
(formSaved)="onFormSaved()">
(formSaved)="onFormSaved()"
(error)="onError($event)">
</adf-cloud-task-form>
</div>
<adf-cloud-task-header fxFlex
@@ -64,4 +64,13 @@ export class CommunityTaskDetailsCloudDemoComponent {
onFormSaved() {
this.notificationService.openSnackMessage('Task has been saved successfully');
}
onError({ message: error }: Error) {
let errorMessage;
try {
errorMessage = JSON.parse(error).message || JSON.parse(error).entry?.message;
errorMessage = JSON.parse(errorMessage).message;
} catch {}
this.notificationService.showError(errorMessage || error);
}
}
@@ -20,15 +20,15 @@
</mat-radio-group>
<mat-form-field *ngIf="!isPeopleAppNameSelected()" class="app-preselect-value">
<mat-label>{{ 'PEOPLE_GROUPS_CLOUD.ROLE' | translate }} ["ACTIVITI_ADMIN", "ACTIVITI_USER"]</mat-label>
<input matInput (input)="setPeopleRoles($event.target?.value)" data-automation-id="app-people-roles-input" />
<input matInput (input)="setPeopleRoles($any($event).target?.value)" data-automation-id="app-people-roles-input" />
</mat-form-field>
<mat-form-field *ngIf="isPeopleAppNameSelected()" class="app-preselect-value">
<mat-label>{{ 'PEOPLE_GROUPS_CLOUD.APP_NAME' | translate }}</mat-label>
<input matInput (input)="setPeopleAppName($event.target?.value)" data-automation-id="app-people-app-input" />
<input matInput (input)="setPeopleAppName($any($event).target?.value)" data-automation-id="app-people-app-input" />
</mat-form-field>
<mat-form-field class="app-preselect-value-full">
<mat-label>{{ 'PEOPLE_GROUPS_CLOUD.PRESELECTED_VALUE' | translate }} {{ DEFAULT_PEOPLE_PLACEHOLDER }}</mat-label>
<input matInput (input)="setPeoplePreselectValue($event.target?.value)" data-automation-id="app-people-preselect-input" />
<input matInput (input)="setPeoplePreselectValue($any($event).target?.value)" data-automation-id="app-people-preselect-input" />
</mat-form-field>
<mat-checkbox class="app-preselect-value" (change)="onChangePeopleValidation($event)">{{
'PEOPLE_GROUPS_CLOUD.PRESELECT_VALIDATION' | translate }}</mat-checkbox>
@@ -92,19 +92,19 @@
<mat-form-field *ngIf="!isGroupAppNameSelected()" class="app-preselect-value">
<mat-label>{{ 'PEOPLE_GROUPS_CLOUD.ROLE' | translate }} ["ACTIVITI_ADMIN", "ACTIVITI_USER"]</mat-label>
<input matInput
(input)="setGroupRoles($event.target?.value)"
(input)="setGroupRoles($any($event).target?.value)"
data-automation-id="app-group-roles-input"/>
</mat-form-field>
<mat-form-field *ngIf="isGroupAppNameSelected()" class="app-preselect-value">
<mat-label>{{ 'PEOPLE_GROUPS_CLOUD.APP_NAME' | translate }}</mat-label>
<input matInput
(input)="setGroupAppName($event.target?.value)"
(input)="setGroupAppName($any($event).target?.value)"
data-automation-id="app-group-app-input"/>
</mat-form-field>
<mat-form-field class="app-preselect-value-full">
<mat-label>Preselect: {{ DEFAULT_GROUP_PLACEHOLDER }}</mat-label>
<input matInput
(input)="setGroupsPreselectValue($event.target?.value)"
(input)="setGroupsPreselectValue($any($event).target?.value)"
data-automation-id="app-group-preselect-input" />
</mat-form-field>
<mat-checkbox class="app-preselect-value" (change)="onChangeGroupValidation($event)">
@@ -15,7 +15,7 @@
class="app-cloud-layout-overflow"
[appName]="editedFilter.appName"
[appVersion]="editedFilter.appVersion"
[initiator]="getInitiatorValue()"
[initiator]="editedFilter.initiator"
[processDefinitionId]="editedFilter.processDefinitionId"
[processDefinitionName]="editedFilter.processDefinitionName"
[processDefinitionKey]="editedFilter.processDefinitionKey"
@@ -16,7 +16,7 @@
*/
import { Component, OnInit, OnDestroy } from '@angular/core';
import { EditProcessFilterCloudComponent, ProcessFilterAction, ProcessFilterCloudModel, ProcessFilterCloudService } from '@alfresco/adf-process-services-cloud';
import { EditProcessFilterCloudComponent, ProcessFilterAction, ProcessFilterCloudModel } from '@alfresco/adf-process-services-cloud';
import { ActivatedRoute, Router } from '@angular/router';
import { UserPreferencesService, DataCellEvent } from '@alfresco/adf-core';
import { CloudLayoutService, CloudServiceSettings } from './services/cloud-layout.service';
@@ -60,7 +60,6 @@ export class ProcessesCloudDemoComponent implements OnInit, OnDestroy {
private router: Router,
private cloudLayoutService: CloudLayoutService,
private cloudProcessFiltersService: CloudProcessFiltersService,
private processFilterCloudService: ProcessFilterCloudService,
private userPreference: UserPreferencesService) {
}
@@ -102,10 +101,6 @@ export class ProcessesCloudDemoComponent implements OnInit, OnDestroy {
}
}
getInitiatorValue(): string {
return this.editedFilter.initiator?.map(initiator => initiator.username).join(',');
}
onChangePageSize(event: Pagination) {
this.userPreference.paginationSize = event.maxItems;
}
@@ -181,9 +176,7 @@ export class ProcessesCloudDemoComponent implements OnInit, OnDestroy {
private loadFilter(model: ProcessFilterCloudModel) {
if (model && model.appName && model.id) {
this.processFilterCloudService.getFilterById(model.appName, model.id).subscribe(filter => {
this.editedFilter = Object.assign({}, filter, model);
});
this.editedFilter = model;
}
}
}
@@ -23,7 +23,7 @@ import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
@Component({
templateUrl: 'service-task-list-cloud-demo.component.html'
templateUrl: './service-task-list-cloud-demo.component.html'
})
export class ServiceTaskListCloudDemoComponent implements OnInit, OnDestroy {
@@ -24,7 +24,6 @@ import { CloudFormRenderingService } from '@alfresco/adf-process-services-cloud'
@Component({
templateUrl: './start-process-cloud-demo.component.html',
styleUrls: ['./start-process-cloud-demo.component.scss'],
providers: [
{ provide: FormRenderingService, useClass: CloudFormRenderingService }
]
@@ -33,7 +32,7 @@ export class StartProcessCloudDemoComponent implements OnInit {
appName;
processName: string;
formValues: string;
formValues: any;
variables: any;
constructor(private appConfig: AppConfigService,
@@ -21,8 +21,7 @@ import { NotificationService } from '@alfresco/adf-core';
import { CloudLayoutService } from './services/cloud-layout.service';
@Component({
templateUrl: './start-task-cloud-demo.component.html',
styleUrls: ['./start-task-cloud-demo.component.scss']
templateUrl: './start-task-cloud-demo.component.html'
})
export class StartTaskCloudDemoComponent implements OnInit {
@@ -9,7 +9,8 @@
(cancelClick)="goBack()"
(taskCompleted)="onTaskCompleted()"
(formContentClicked)="onFormContentClicked($event)"
(formSaved)="onFormSaved()">
(formSaved)="onFormSaved()"
(error)="onError($event)">
</adf-cloud-task-form>
</div>
<adf-cloud-task-header #taskHeader fxFlex
@@ -67,4 +67,13 @@ export class TaskDetailsCloudDemoComponent {
onFormSaved() {
this.notificationService.openSnackMessage('Task has been saved successfully');
}
onError({ message: error }: Error) {
let errorMessage;
try {
errorMessage = JSON.parse(error).message || JSON.parse(error).entry?.message;
errorMessage = JSON.parse(errorMessage).message;
} catch {}
this.notificationService.showError(errorMessage || error);
}
}
@@ -37,8 +37,7 @@
(showRowContextMenu)="onShowRowContextMenu($event)"
(executeRowAction)="onExecuteRowAction($event)"
(rowClick)="onRowClick($event)"
(rowsSelected)="onRowsSelected($event)"
#taskCloud>
(rowsSelected)="onRowsSelected($event)">
</adf-cloud-task-list>
<adf-pagination
[target]="taskCloud"
@@ -24,8 +24,7 @@ import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
@Component({
templateUrl: 'tasks-cloud-demo.component.html',
styleUrls: ['tasks-cloud-demo.component.scss']
templateUrl: './tasks-cloud-demo.component.html'
})
export class TasksCloudDemoComponent implements OnInit, OnDestroy {
@@ -48,7 +47,7 @@ export class TasksCloudDemoComponent implements OnInit, OnDestroy {
filterId;
multiselect: boolean;
selectedRows: string[] = [];
selectedRows: any[] = [];
actionMenu: boolean;
contextMenu: boolean;
actions: any[] = [];
@@ -27,7 +27,7 @@ import { takeUntil } from 'rxjs/operators';
@Component({
selector: 'app-config-editor',
templateUrl: 'config-editor.component.html',
templateUrl: './config-editor.component.html',
styleUrls: ['./config-editor.component.scss']
})
export class ConfigEditorComponent implements OnDestroy {
@@ -21,8 +21,7 @@ import { ConfirmDialogComponent } from '@alfresco/adf-content-services';
@Component({
selector: 'app-confirm-dialog-example',
templateUrl: 'confirm-dialog-example.component.html',
styleUrls: ['confirm-dialog-example.component.scss']
templateUrl: './confirm-dialog-example.component.html'
})
export class ConfirmDialogExampleComponent {
@@ -16,7 +16,7 @@
*/
import { Component, ViewEncapsulation } from '@angular/core';
import { SitePaging, SiteEntry, MinimalNodeEntryEntity } from '@alfresco/js-api';
import { SitePaging, SiteEntry, MinimalNodeEntryEntity, Node } from '@alfresco/js-api';
import { ContentNodeDialogService, ShareDataRow, RowFilter } from '@alfresco/adf-content-services';
import { ThumbnailService } from '@alfresco/adf-core';
@@ -99,8 +99,8 @@ export class ContentNodeSelectorComponent {
return this.thumbnailService.getMimeTypeIcon('video/quicktime');
}
onNodeSelect(node: MinimalNodeEntryEntity) {
this.validSelection = !!node;
onNodeSelect(selection: Node[]) {
this.validSelection = !!selection;
}
customIsValidFunction(entry: MinimalNodeEntryEntity): boolean {
@@ -33,6 +33,9 @@
<data-column type="text" key="users" title="Users"></data-column>
<data-column key="status" title="Status">
<ng-template let-value="value">{{value | json }}</ng-template>
<adf-data-column-header>
<ng-template>STATUS</ng-template>
</adf-data-column-header>
</data-column>
</data-columns>
-->
@@ -1,8 +1,8 @@
<h1>DataTable Drag and Drop Demo</h1>
<div data-automation-id="datatable"
(header-dragover)="onDragOver($event)"
(header-drop)="onDrop($event)"
(header-drop)="onDrop($any($event))"
(cell-dragover)="onDragOver($event)"
(cell-drop)="onDrop($event)">
(cell-drop)="onDrop($any($event))">
<adf-datatable [data]="data"></adf-datatable>
</div>
@@ -88,7 +88,7 @@ export class DataTableDnDComponent implements OnInit {
this.data.setSorting(new DataSorting('id', 'asc'));
}
onDragOver(event: CustomEvent) {
onDragOver(event: Event) {
event.preventDefault();
}
@@ -16,7 +16,7 @@
*/
import { Component, OnInit, OnDestroy } from '@angular/core';
import { AppExtensionService } from '@alfresco/adf-extensions';
import { AppExtensionService, DocumentListPresetRef } from '@alfresco/adf-extensions';
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
@@ -28,7 +28,7 @@ import { takeUntil } from 'rxjs/operators';
export class ExtensionPresetsComponent implements OnInit, OnDestroy {
onDestroy$ = new Subject<boolean>();
columns: any[] = [];
columns: DocumentListPresetRef[] = [];
isSmallScreen = false;
constructor(
@@ -55,7 +55,7 @@ export class ExtensionPresetsComponent implements OnInit, OnDestroy {
this.onDestroy$.complete();
}
trackById(_: number, obj: { id: string }) {
trackById(_: number, obj: DocumentListPresetRef): string {
return obj.id;
}
}
@@ -44,6 +44,9 @@ export class NameColumnComponent implements OnInit, OnDestroy {
@Input()
context: any;
@Input()
key = 'name';
displayText$ = new BehaviorSubject<string>('');
node: NodeEntry;
@@ -73,7 +76,8 @@ export class NameColumnComponent implements OnInit, OnDestroy {
this.node = this.context.row.node;
if (this.node && this.node.entry) {
this.displayText$.next(this.node.entry.name || this.node.entry.id);
const displayText = this.context.row.getValue(this.key);
this.displayText$.next(displayText || this.node.entry.id);
}
}
@@ -17,14 +17,14 @@
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { ActivatedRoute, Router, PRIMARY_OUTLET } from '@angular/router';
import { ContentService, AllowableOperationsEnum, PermissionsEnum, NodesApiService } from '@alfresco/adf-core';
import { ContentService, AllowableOperationsEnum, PermissionsEnum, NodesApiService, FileUploadErrorEvent } from '@alfresco/adf-core';
import { MatSnackBar } from '@angular/material/snack-bar';
import { PreviewService } from '../../services/preview.service';
@Component({
selector: 'app-file-view',
templateUrl: 'file-view.component.html',
styleUrls: ['file-view.component.scss'],
templateUrl: './file-view.component.html',
styleUrls: ['./file-view.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class FileViewComponent implements OnInit {
@@ -103,7 +103,8 @@ export class FileViewComponent implements OnInit {
this.router.navigateByUrl(primaryUrl);
}
onUploadError(errorMessage: string) {
onUploadError(event: FileUploadErrorEvent) {
const errorMessage = event.error;
this.snackBar.open(errorMessage, '', { duration: 4000 });
}
@@ -20,7 +20,7 @@ import { DocumentListComponent } from '@alfresco/adf-content-services';
@Component({
selector: 'app-custom-sources',
templateUrl: 'custom-sources.component.html'
templateUrl: './custom-sources.component.html'
})
export class CustomSourcesComponent {
@@ -14,7 +14,7 @@
locationFormat="/files"
[display]="'gallery'"
[preselectNodes]="selectedNodes"
[showHeader]="false"
[showHeader]="noHeaderMode"
[maxItems]="5"
(preview)="showFile($event)"
selectionMode="null">
@@ -117,7 +117,7 @@
<button mat-icon-button
data-automation-id="delete-toolbar-button"
adf-check-allowable-operation="delete"
permanent=true
[permanent]="true"
[adf-nodes]="documentList.selection"
title="{{ 'DOCUMENT_LIST.TOOLBAR.DELETE' | translate }}"
(delete)="onDeleteActionSuccess($event)"
@@ -156,7 +156,7 @@
</button>
<mat-menu #themePicker="matMenu">
<button mat-menu-item (click)="toolbarColor = 'default'">Default</button>
<button mat-menu-item (click)="toolbarColor = null">Default</button>
<button mat-menu-item (click)="toolbarColor = 'primary'">Primary</button>
<button mat-menu-item (click)="toolbarColor = 'accent'">Accent</button>
<button mat-menu-item (click)="toolbarColor = 'warn'">Warn</button>
@@ -239,7 +239,7 @@
(preview)="showFile($event)"
(folderChange)="onFolderChange($event)"
(permissionError)="handlePermissionError($event)"
(name-click)="documentList.onNodeDblClick($event.detail?.node)"
(name-click)="documentList.onNodeDblClick($any($event).detail?.node)"
(filterSelection)="onFilterSelected($event)">
<adf-custom-no-permission-template *ngIf="enableCustomPermissionMessage">
@@ -266,7 +266,7 @@
title="{{'DOCUMENT_LIST.COLUMNS.DISPLAY_NAME' | translate}}"
[formatTooltip]="getNodeNameTooltip">
<ng-template let-context>
<adf-name-column [context]="context"></adf-name-column>
<adf-name-column key="name" [context]="context"></adf-name-column>
</ng-template>
</data-column>
<data-column
@@ -410,7 +410,7 @@
(execute)="onManageMetadata($event)">
</content-action>
<content-action
icon="settings_input_component"
icon="supervisor_account"
title="DOCUMENT_LIST.ACTIONS.PERMISSION"
permission="copy"
(error)="onContentActionError($event)"
@@ -648,7 +648,7 @@
<form class="example-form">
<mat-form-field *ngIf="preselectNodes" class="adf-preselect-nodes-input">
<input matInput
(input)="setPreselectNodes($event.target?.value)"
(input)="setPreselectNodes($any($event).target?.value)"
placeholder="NodeEntry[] => [{ entry: { isFile: true, id: 'node-id' }}, { entry: { isFile: true, id: 'node-id' }} ]">
</mat-form-field>
</form>
@@ -721,5 +721,3 @@
</mat-form-field>
</div>
</div>
<adf-file-uploading-dialog #fileDialog (error)="openSnackMessageError($event)"></adf-file-uploading-dialog>
@@ -3,7 +3,7 @@
margin: 10px !important;
}
@media screen and ($mat-xsmall) {
@media screen and (max-width: 599px) {
.app-container {
margin: 0;
}
@@ -48,13 +48,13 @@ import { MetadataDialogAdapterComponent } from './metadata-dialog-adapter.compon
import { Subject } from 'rxjs';
import { PreviewService } from '../../services/preview.service';
import { takeUntil, debounceTime, scan } from 'rxjs/operators';
import { ThemePalette } from '@angular/material/core';
const DEFAULT_FOLDER_TO_SHOW = '-my-';
@Component({
selector: 'app-files-component',
templateUrl: './files.component.html',
styleUrls: ['./files.component.scss'],
providers: [
{ provide: FormRenderingService, useClass: ProcessFormRenderingService }
]
@@ -75,7 +75,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
this.appConfig.get<string>(AppConfigValues.BASESHAREURL) ||
this.appConfig.get<string>(AppConfigValues.ECMHOST)) + '/preview/s/';
toolbarColor = 'default';
toolbarColor: ThemePalette;
selectionModes = [
{ value: 'none', viewValue: 'None' },
@@ -95,7 +95,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
sorting = ['name', 'ASC'];
@Input()
sortingMode = 'server';
sortingMode: 'server' | 'client' = 'server';
@Input()
showRecentFiles = true;
@@ -107,7 +107,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
showSettingsPanel = true;
@Input()
showHeader: string = ShowHeaderMode.Always;
showHeader = ShowHeaderMode.Always;
@Input()
selectionMode = 'multiple';
@@ -208,7 +208,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
preselectNodes: boolean;
warnOnMultipleUploads = false;
thumbnails = false;
noHeaderMode = ShowHeaderMode.Never;
enableCustomPermissionMessage = false;
enableMediumTimeFormat = false;
displayEmptyMetadata = false;
@@ -405,8 +405,8 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
});
}
openSnackMessageError(message: string) {
this.notificationService.showError(message);
openSnackMessageError(error: any) {
this.notificationService.showError(error.value || error);
}
openSnackMessageInfo(message: string) {
@@ -20,6 +20,7 @@ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { MinimalNodeEntryEntity } from '@alfresco/js-api';
import { MatSnackBar } from '@angular/material/snack-bar';
import { PreviewService } from '../../services/preview.service';
import { FileUploadErrorEvent } from '@alfresco/adf-core';
@Component({
templateUrl: './version-manager-dialog-adapter.component.html',
@@ -45,8 +46,9 @@ export class VersionManagerDialogAdapterComponent {
this.allowDownload = data.hasOwnProperty('allowDownload') ? data.allowDownload : this.allowDownload;
}
uploadError(errorMessage: string) {
this.snackBar.open(errorMessage, '', {duration: 4000});
uploadError(event: FileUploadErrorEvent) {
const errorMessage = event.error;
this.snackBar.open(errorMessage, '', { duration: 4000 });
}
close() {
@@ -58,7 +60,7 @@ export class VersionManagerDialogAdapterComponent {
this.close();
}
hideVersionComparison(isCancelled: boolean | Node) {
hideVersionComparison(isCancelled: any) {
if (isCancelled) {
this.showVersionComparison = false;
this.newFileVersion = null;
@@ -1,4 +1,4 @@
<adf-form-list [forms]="formList" (row-dblclick)="onRowDblClick($event)">
<adf-form-list [forms]="formList" (row-dblclick)="onRowDblClick($any($event))">
</adf-form-list>
<div class="app-form-container" *ngIf="!isEmptyForm()">
<adf-form #adfForm [form]="form" [data]="restoredData" [showValidationIcon]="showValidationIcon">
@@ -23,8 +23,8 @@ import { takeUntil } from 'rxjs/operators';
@Component({
selector: 'app-form-list',
templateUrl: 'form-list.component.html',
styleUrls: ['form-list.component.scss']
templateUrl: './form-list.component.html',
styleUrls: ['./form-list.component.scss']
})
export class FormListComponent implements OnInit, OnDestroy {
@@ -60,7 +60,7 @@ export class FormListComponent implements OnInit, OnDestroy {
this.onDestroy$.complete();
}
onRowDblClick(event: CustomEvent) {
onRowDblClick(event: CustomEvent<any>) {
const rowForm = event.detail.value.obj;
this.formService.getFormDefinitionById(rowForm.id).subscribe((formModel) => {
@@ -29,8 +29,8 @@ import { takeUntil } from 'rxjs/operators';
@Component({
selector: 'app-form-loading',
templateUrl: 'form-loading.component.html',
styleUrls: ['form-loading.component.scss'],
templateUrl: './form-loading.component.html',
styleUrls: ['./form-loading.component.scss'],
providers: [{ provide: FormService, useClass: FakeFormService }]
})
export class FormLoadingComponent implements OnInit, OnDestroy {
@@ -24,8 +24,8 @@ import { takeUntil } from 'rxjs/operators';
@Component({
selector: 'app-form',
templateUrl: 'form.component.html',
styleUrls: ['form.component.scss'],
templateUrl: './form.component.html',
styleUrls: ['./form.component.scss'],
providers: [
{ provide: FormService, useClass: InMemoryFormService },
{ provide: FormRenderingService, useClass: ProcessFormRenderingService }
@@ -7,13 +7,13 @@
<div>
<label>Choose header color</label>
<select (change)="changeColor($event.target.value)">
<select (change)="changeColor($any($event).target.value)">
<option value="primary">Primary</option>
<option value="accent">Accent</option>
<option value="warn">Warn</option>
</select>
OR
<input type="text" name="color" (keyup.enter)="changeColor($event.target.value)"
<input type="text" name="color" (keyup.enter)="changeColor($any($event).target.value)"
placeholder="hex color code">
<p>*Choose only one value at a time: either hex code or theme color.</p>
<p>*press enter for submitting new hex color</p>
@@ -21,27 +21,27 @@
<div>
<label>Change title</label>
<input type="text" name="title" (keyup.enter)="submitTitle($event.target.value)"
<input type="text" name="title" (keyup.enter)="submitTitle($any($event).target.value)"
placeholder="{{ 'APP_LAYOUT.APP_NAME' | translate}}">
<p>*press enter for submitting new title</p>
</div>
<div>
<label>Change logo</label>
<input type="text" placeholder="URL path" (keyup.enter)="submitLogo($event.target.value)">
<input type="text" placeholder="URL path" (keyup.enter)="submitLogo($any($event).target.value)">
<p>*press enter for submitting new logo</p>
</div>
<div>
<label>Change logo link</label>
<input type="url" placeholder="Redirect URL" (keyup.enter)="submitRedirectUrl($event.target.value)">
<input type="url" placeholder="Redirect URL" (keyup.enter)="submitRedirectUrl($any($event).target.value)">
<p>*Input JSON friendly array or explicit string. E.g. ["/test", 33, "user", 11] or "/test"</p>
<p>*press enter for submitting new link on logo</p>
</div>
<div>
<label>Change logo tooltip</label>
<input type="text" placeholder="Tooltip text" (keyup.enter)="submitTooltip($event.target.value)">
<input type="text" placeholder="Tooltip text" (keyup.enter)="submitTooltip($any($event).target.value)">
<p>*press enter for submitting new tooltip</p>
</div>
@@ -16,6 +16,7 @@
*/
import { Component } from '@angular/core';
import { ThemePalette } from '@angular/material/core';
import { HeaderDataService } from './header-data.service';
@Component({
@@ -24,7 +25,7 @@ import { HeaderDataService } from './header-data.service';
})
export class HeaderDataComponent {
checkbox = true;
position = 'start';
position: 'start' | 'end' = 'start';
hideSidenavToggle = false;
constructor(private headerService: HeaderDataService) {
@@ -34,7 +35,7 @@ export class HeaderDataComponent {
this.headerService.hideMenuButton();
}
changeColor(color: string) {
changeColor(color: ThemePalette) {
this.headerService.changeColor(color);
}
@@ -16,6 +16,7 @@
*/
import { Injectable, Output, EventEmitter } from '@angular/core';
import { ThemePalette } from '@angular/material/core';
@Injectable({
providedIn: 'root'
@@ -26,12 +27,12 @@ export class HeaderDataService {
show = true;
@Output() hideMenu = new EventEmitter<boolean>();
@Output() color = new EventEmitter<string>();
@Output() color = new EventEmitter<ThemePalette>();
@Output() title = new EventEmitter<string>();
@Output() logo = new EventEmitter<string>();
@Output() redirectUrl = new EventEmitter<string | any[]>();
@Output() tooltip = new EventEmitter<string>();
@Output() position = new EventEmitter<string>();
@Output() position = new EventEmitter<'start' | 'end'>();
@Output() hideSidenav = new EventEmitter<boolean>();
hideMenuButton() {
@@ -39,7 +40,7 @@ export class HeaderDataService {
this.hideMenu.emit(this.show);
}
changeColor(color: string) {
changeColor(color: ThemePalette) {
this.color.emit(color);
}
@@ -60,7 +61,7 @@ export class HeaderDataService {
this.tooltip.emit(tooltip);
}
changePosition(position: string) {
changePosition(position: 'start' | 'end') {
this.position.emit(position);
}
@@ -26,7 +26,7 @@
display: none;
}
@media screen and ($mat-small) {
@media screen and (max-width: 959px) {
.app-settings, .app-setting-button.mat-fab.mat-accent {
display: none;
}
@@ -21,8 +21,7 @@ import { LogService } from '@alfresco/adf-core';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.scss']
templateUrl: './login.component.html'
})
export class LoginComponent {
@@ -18,7 +18,7 @@
import { Component, Input } from '@angular/core';
@Component({
templateUrl: 'overlay-viewer.component.html'
templateUrl: './overlay-viewer.component.html'
})
export class OverlayViewerComponent {
@@ -1,18 +1,3 @@
<div class="app-inherit_permission_button">
<button mat-raised-button
[color]="toggleStatus?'accent':'primary'"
adf-inherit-permission [nodeId]="nodeId"
(error)="showErrorMessage($event)"
(updated)="onUpdatedPermissions($event)">
{{ (toggleStatus?'DEMO_PERMISSION.INHERITED_PERMISSIONS_BUTTON':'DEMO_PERMISSION.INHERIT_PERMISSION_BUTTON') | translate}}</button>
<button mat-button color="primary" (click)="openAddPermissionDialog()" data-automation-id="adf-add-permission-button">Add User or Group</button>
<div class="app-permission-section">
<adf-permission-list [nodeId]="nodeId"></adf-permission-list>
</div>
<div>
<adf-permission-list #permissionList
[nodeId]="nodeId"
(update)="reloadList()"
(error)="showErrorMessage($event)">
</adf-permission-list>
</div>
@@ -1,6 +1,4 @@
.app-inherit_permission_button {
padding-top: 20px;
display: flex;
justify-content: center;
padding-bottom: 20px;
.app-permission-section {
box-sizing: border-box;
height: 100%;
}
@@ -15,11 +15,8 @@
* limitations under the License.
*/
import { Component, Optional, OnInit, ViewChild } from '@angular/core';
import { Component, OnInit, Optional } from '@angular/core';
import { ActivatedRoute, Params } from '@angular/router';
import { PermissionListComponent, NodePermissionDialogService } from '@alfresco/adf-content-services';
import { MinimalNodeEntryEntity } from '@alfresco/js-api';
import { NodesApiService, NotificationService } from '@alfresco/adf-core';
@Component({
selector: 'app-permissions',
@@ -28,16 +25,9 @@ import { NodesApiService, NotificationService } from '@alfresco/adf-core';
})
export class DemoPermissionComponent implements OnInit {
@ViewChild('permissionList', { static: true })
displayPermissionComponent: PermissionListComponent;
nodeId: string;
toggleStatus = false;
constructor(@Optional() private route: ActivatedRoute,
private nodeService: NodesApiService,
private nodePermissionDialogService: NodePermissionDialogService,
private notificationService: NotificationService) {
constructor(@Optional() private route: ActivatedRoute) {
}
ngOnInit() {
@@ -48,34 +38,5 @@ export class DemoPermissionComponent implements OnInit {
}
});
}
this.nodeService
.getNode(this.nodeId, {include: ['permissions'] })
.subscribe( (currentNode: MinimalNodeEntryEntity) => {
this.toggleStatus = currentNode.permissions?.isInheritanceEnabled ?? false;
});
}
onUpdatedPermissions(node: MinimalNodeEntryEntity) {
this.toggleStatus = node.permissions?.isInheritanceEnabled ?? false;
this.displayPermissionComponent.reload();
}
reloadList() {
this.displayPermissionComponent.reload();
}
openAddPermissionDialog() {
this.nodePermissionDialogService
.updateNodePermissionByDialog(this.nodeId)
.subscribe(
() => this.displayPermissionComponent.reload(),
(error) => this.showErrorMessage(error)
);
}
showErrorMessage(error) {
const message = error.message ? error.message : error;
this.notificationService.openSnackMessage(message);
}
}
@@ -21,7 +21,7 @@ import { AppConfigService } from '@alfresco/adf-core';
@Component({
selector: 'app-pipes-page',
templateUrl: './pipes.component.html',
styleUrls: ['pipes.component.scss']
styleUrls: ['./pipes.component.scss']
})
export class PipesComponent {
@@ -148,31 +148,35 @@ export class ProcessListDemoComponent implements OnInit, OnDestroy {
return ended ? 'Completed' : 'Active';
}
get processAppId(): AbstractControl {
return this.processListForm.get('processAppId');
private getControl<T extends AbstractControl>(key: string): T {
return this.processListForm.get(key) as T;
}
get processDefinitionId(): AbstractControl {
return this.processListForm.get('processDefinitionId');
get processAppId(): FormControl {
return this.getControl<FormControl>('processAppId');
}
get processInstanceId(): AbstractControl {
return this.processListForm.get('processInstanceId');
get processDefinitionId(): FormControl {
return this.getControl<FormControl>('processDefinitionId');
}
get processState(): AbstractControl {
return this.processListForm.get('processState');
get processInstanceId(): FormControl {
return this.getControl<FormControl>('processInstanceId');
}
get processSort(): AbstractControl {
return this.processListForm.get('processSort');
get processState(): FormControl {
return this.getControl<FormControl>('processState');
}
get processSize(): AbstractControl {
return this.processListForm.get('processSize');
get processSort(): FormControl {
return this.getControl<FormControl>('processSort');
}
get processPage(): AbstractControl {
return this.processListForm.get('processPage');
get processSize(): FormControl {
return this.getControl<FormControl>('processSize');
}
get processPage(): FormControl {
return this.getControl<FormControl>('processPage');
}
}
@@ -53,7 +53,7 @@
(rowClick)="onTaskRowClick($event)"
(success)="onSuccessTaskList()"
(row-click)="onRowClick($event)"
(row-dblclick)="onTaskRowDblClick($event)"
(row-dblclick)="onTaskRowDblClick($any($event))"
[multiselect]="multiSelectTask"
#taskList>
<!-- Custom column definition demo -->
@@ -168,7 +168,7 @@
[showContextMenu]="processContextMenu"
(showRowContextMenu)="onShowProcessRowContextMenu($event)"
(rowClick)="onProcessRowClick($event)"
(row-dblclick)="onProcessRowDblClick($event)"
(row-dblclick)="onProcessRowDblClick($any($event))"
[multiselect]="multiSelectProcess"
(success)="onSuccessProcessList()">
<!-- Custom column definition demo -->
@@ -1,100 +1,97 @@
@mixin app-process-service-component-theme($theme) {
.app-no-form-container {
text-align: center;
font-weight: 600;
font-size: 18px;
.app-no-form-container {
text-align: center;
font-weight: 600;
font-size: 18px;
}
.app-grid {
.app-grid-item {
margin: 4px;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
padding: 10px;
}
.app-grid {
.app-grid-item {
margin: 4px;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
0 3px 1px -2px rgba(0, 0, 0, 0.2),
0 1px 5px 0 rgba(0, 0, 0, 0.12);
padding: 10px;
}
.app-list-buttons {
margin-bottom: 24px;
}
.app-list-buttons {
margin-bottom: 24px;
}
.app-tasks-list.app-small-pagination,
.app-processes-list.app-small-pagination {
.app-pagination {
flex-wrap: wrap;
padding-bottom: 24px;
padding-top: 8px;
.app-tasks-list.app-small-pagination,
.app-processes-list.app-small-pagination {
.app-pagination {
flex-wrap: wrap;
padding-bottom: 24px;
padding-top: 8px;
&__range-block.app-pagination__block:first-child {
order: 1;
width: 60%;
flex: 0 0 auto;
box-sizing: border-box;
padding-left: 2px;
justify-content: flex-start;
}
&__perpage-block {
order: 3;
width: 60%;
box-sizing: border-box;
padding-left: 2px;
justify-content: flex-start;
}
&__actualinfo-block {
order: 2;
width: 40%;
box-sizing: border-box;
padding-right: 2px;
justify-content: flex-end;
}
&__controls-block {
order: 4;
width: 40%;
box-sizing: border-box;
padding-right: 2px;
justify-content: flex-end;
}
&__range-block.app-pagination__block:first-child {
order: 1;
width: 60%;
flex: 0 0 auto;
box-sizing: border-box;
padding-left: 2px;
justify-content: flex-start;
}
}
.app-list {
.app-datatable-list {
border: none;
&__perpage-block {
order: 3;
width: 60%;
box-sizing: border-box;
padding-left: 2px;
justify-content: flex-start;
}
}
mat-slide-toggle {
margin: 10px;
}
&__actualinfo-block {
order: 2;
width: 40%;
box-sizing: border-box;
padding-right: 2px;
justify-content: flex-end;
}
@media screen and ($mat-small) {
container-widget .app-grid-list {
flex-direction: column;
&__controls-block {
order: 4;
width: 40%;
box-sizing: border-box;
padding-right: 2px;
justify-content: flex-end;
}
}
}
.app-accordion-panel {
.mat-expansion-panel {
background: inherit;
.app-list {
.app-datatable-list {
border: none;
}
}
.mat-expansion-panel-header-title, .mat-expansion-panel-header-description {
flex-basis: 0;
align-items: center;
}
mat-slide-toggle {
margin: 10px;
}
.mat-expansion-panel-header-description {
justify-content: space-between;
align-items: center;
}
.app-accordion-title-padding {
padding-left: 20px;
@media screen and (max-width: 959px) {
container-widget .app-grid-list {
flex-direction: column;
}
}
}
.app-accordion-panel {
.mat-expansion-panel {
background: inherit;
}
.mat-expansion-panel-header-title,
.mat-expansion-panel-header-description {
flex-basis: 0;
align-items: center;
}
.mat-expansion-panel-header-description {
justify-content: space-between;
align-items: center;
}
.app-accordion-title-padding {
padding-left: 20px;
}
}
@@ -31,7 +31,8 @@ import {
import { ActivatedRoute, Router } from '@angular/router';
import {
Pagination,
UserProcessInstanceFilterRepresentation
UserProcessInstanceFilterRepresentation,
ScriptFilesApi
} from '@alfresco/js-api';
import {
FORM_FIELD_VALIDATORS, FormRenderingService, FormService,
@@ -113,10 +114,10 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
@Input()
appId: number = null;
filterSelected: object = null;
filterSelected: any = null;
@Output()
changePageSize: EventEmitter<Pagination> = new EventEmitter();
changePageSize = new EventEmitter<Pagination>();
selectFirstReport = false;
multiSelectTask = false;
@@ -167,6 +168,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
];
private onDestroy$ = new Subject<boolean>();
private scriptFileApi: ScriptFilesApi;
constructor(private elementRef: ElementRef,
private route: ActivatedRoute,
@@ -181,6 +183,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
private notificationService: NotificationService,
private preferenceService: UserPreferencesService) {
this.scriptFileApi = new ScriptFilesApi(this.apiService.getInstance());
this.defaultProcessName = this.appConfig.get<string>('adf-start-process.name');
this.defaultProcessDefinitionName = this.appConfig.get<string>('adf-start-process.processDefinitionName');
this.defaultTaskName = this.appConfig.get<string>('adf-start-task.name');
@@ -488,7 +491,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
}
loadStencilScriptsInPageFromProcessService() {
this.apiService.getInstance().activiti.scriptFileApi.getControllers().then((response) => {
this.scriptFileApi.getControllers().then((response) => {
if (response) {
const stencilScript = document.createElement('script');
stencilScript.type = 'text/javascript';
@@ -0,0 +1,39 @@
<div class="app-search-results">
<div class="app-search-results__content">
<mat-progress-bar *ngIf="isLoading" color="primary" mode="indeterminate"></mat-progress-bar>
<div class="app-search-results__sorting">
<div style="padding: 0 12px">
<adf-search-form></adf-search-form>
</div>
<mat-divider [vertical]="true"></mat-divider>
<div style="padding: 0 12px; flex: 65%">
<adf-search-filter-chips></adf-search-filter-chips>
</div>
<mat-icon adf-reset-search matTooltip="reset" style="padding-right: 5px;">refresh</mat-icon>
<adf-search-sorting-picker style="width: 240px"></adf-search-sorting-picker>
</div>
<app-files-component
[showHeader]="showHeader"
[sorting]="sorting"
[sortingMode]="'server'"
[showRecentFiles]="false"
[showSitePicker]="false"
[showSettingsPanel]="false"
[currentFolderId]="null"
[nodeResult]="$any(data)"
[disableDragArea]="true"
[pagination]="pagination"
[searchTerm]="searchedWord"
(changedPageSize)="onRefreshPagination($event)"
(changedPageNumber)="onRefreshPagination($event)"
(turnedNextPage)="onRefreshPagination($event)"
(loadNext)="onRefreshPagination($event)"
(turnedPreviousPage)="onRefreshPagination($event)"
(deleteElementSuccess)="onDeleteElementSuccess()">
</app-files-component>
</div>
</div>
@@ -0,0 +1,44 @@
.app-search-results {
display: flex;
margin-left: 5px;
.app-search-settings {
width: 260px;
border: 1px solid #eee;
}
&__facets {
margin: 5px;
}
&__content {
flex: 1;
}
&__sorting {
padding-top: 16px;
padding-bottom: 16px;
display: flex;
}
}
div.app-search-results-container {
padding: 0 20px 20px;
}
.app-search-title {
font-size: 22px;
padding: 15px 0;
}
@media screen and (max-width: 600px) {
:host .app-col-display-name {
min-width: 100px;
}
:host .app-col-modified-at, :host .app-col-modified-by {
display: none;
}
:host div.app-search-results-container table {
width: 100%;
}
}
@@ -0,0 +1,168 @@
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Component, OnDestroy, OnInit } from '@angular/core';
import { ActivatedRoute, Params, Router } from '@angular/router';
import { Pagination, ResultSetPaging } from '@alfresco/js-api';
import { SearchConfiguration, SearchForm, SearchQueryBuilderService } from '@alfresco/adf-content-services';
import { SearchService, ShowHeaderMode, UserPreferencesService } from '@alfresco/adf-core';
import { combineLatest, Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
@Component({
selector: 'app-search-filter-chips',
templateUrl: './search-filter-chips.component.html',
styleUrls: [ './search-filter-chips.component.scss' ],
providers: [SearchService]
})
export class SearchFilterChipsComponent implements OnInit, OnDestroy {
queryParamName = 'q';
searchedWord = '';
data: ResultSetPaging;
pagination: Pagination;
isLoading = true;
sorting = ['name', 'asc'];
searchForms: SearchForm[];
showHeader = ShowHeaderMode.Always;
private onDestroy$ = new Subject<boolean>();
constructor(public router: Router,
private preferences: UserPreferencesService,
private queryBuilder: SearchQueryBuilderService,
private route: ActivatedRoute) {
combineLatest([this.route.params, this.queryBuilder.configUpdated])
.pipe(takeUntil(this.onDestroy$))
.subscribe(([params, searchConfig]) => {
this.updateSearchSetting(searchConfig);
this.searchedWord = params.hasOwnProperty(this.queryParamName) ? params[this.queryParamName] : null;
const query = this.formatSearchQuery(this.searchedWord, searchConfig['app:fields']);
if (query) {
this.queryBuilder.userQuery = query;
}
});
queryBuilder.paging = {
maxItems: this.preferences.paginationSize,
skipCount: 0
};
}
ngOnInit() {
this.queryBuilder.resetToDefaults();
this.sorting = this.getSorting();
this.queryBuilder.updated
.pipe(takeUntil(this.onDestroy$))
.subscribe(() => {
this.sorting = this.getSorting();
this.isLoading = true;
});
this.queryBuilder.executed
.pipe(takeUntil(this.onDestroy$))
.subscribe((resultSetPaging: ResultSetPaging) => {
this.queryBuilder.paging.skipCount = 0;
this.onSearchResultLoaded(resultSetPaging);
this.isLoading = false;
});
if (this.route) {
this.route.params.forEach((params: Params) => {
this.searchedWord = params.hasOwnProperty(this.queryParamName) ? params[this.queryParamName] : null;
if (this.searchedWord) {
this.queryBuilder.update();
} else {
this.queryBuilder.userQuery = null;
this.queryBuilder.executed.next(new ResultSetPaging({
list: {
pagination: { totalItems: 0 },
entries: []
}
}));
}
});
}
}
private formatSearchQuery(userInput: string, fields = ['cm:name']) {
if (!userInput) {
return null;
}
return fields.map((field) => `${field}:"${userInput}*"`).join(' OR ');
}
ngOnDestroy() {
this.onDestroy$.next(true);
this.onDestroy$.complete();
}
onSearchResultLoaded(resultSetPaging: ResultSetPaging) {
this.data = resultSetPaging;
this.pagination = { ...resultSetPaging.list.pagination };
}
onRefreshPagination(pagination: Pagination) {
this.queryBuilder.paging = {
maxItems: pagination.maxItems,
skipCount: pagination.skipCount
};
this.queryBuilder.update();
}
onDeleteElementSuccess() {
this.queryBuilder.execute();
}
private getSorting(): string[] {
const primary = this.queryBuilder.getPrimarySorting();
if (primary) {
return [primary.key, primary.ascending ? 'asc' : 'desc'];
}
return ['name', 'asc'];
}
private updateSearchSetting(config: SearchConfiguration): void {
if (config.facetQueries) {
this.updateSetting(config.facetQueries);
}
if (config.facetFields?.fields?.length) {
config.facetFields.fields.forEach((field) => this.updateSetting(field));
}
if (config.facetIntervals?.intervals?.length) {
config.facetIntervals.intervals.forEach((field) => this.updateSetting(field));
}
if (config.categories.length) {
config.categories.forEach((field) => this.updateSetting(field.component));
}
}
private updateSetting(field) {
field.settings = field.settings ?? {};
field.settings.allowUpdateOnChange = false;
field.settings.hideDefaultAction = true;
}
}
@@ -9,16 +9,20 @@
<mat-progress-bar *ngIf="isLoading" color="primary" mode="indeterminate"></mat-progress-bar>
<div class="app-search-results__sorting">
<adf-search-sorting-picker></adf-search-sorting-picker>
<div style="padding: 0 12px">
<button mat-stroked-button (click)="switchLayout()"> Switch to new layout </button>
</div>
</div>
<app-files-component
[showHeader]="false"
[showHeader]="showHeader"
[sorting]="sorting"
[sortingMode]="'server'"
[showRecentFiles]="false"
[showSitePicker]="false"
[showSettingsPanel]="false"
[currentFolderId]="null"
[nodeResult]="data"
[nodeResult]="$any(data)"
[disableDragArea]="true"
[pagination]="pagination"
[searchTerm]="searchedWord"
@@ -16,7 +16,11 @@
}
&__sorting {
text-align: right;
padding-top: 16px;
padding-bottom: 16px;
display: flex;
flex-direction: row-reverse;
justify-content: space-between;
}
}
@@ -15,12 +15,12 @@
* limitations under the License.
*/
import { Component, OnInit, Optional, OnDestroy } from '@angular/core';
import { Router, ActivatedRoute, Params } from '@angular/router';
import { Component, OnDestroy, OnInit } from '@angular/core';
import { ActivatedRoute, Params, Router } from '@angular/router';
import { Pagination, ResultSetPaging } from '@alfresco/js-api';
import { SearchQueryBuilderService } from '@alfresco/adf-content-services';
import { UserPreferencesService, SearchService, AppConfigService } from '@alfresco/adf-core';
import { Subject } from 'rxjs';
import { SearchForm, SearchQueryBuilderService } from '@alfresco/adf-content-services';
import { SearchService, ShowHeaderMode, UserPreferencesService } from '@alfresco/adf-core';
import { combineLatest, Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
@Component({
@@ -38,14 +38,25 @@ export class SearchResultComponent implements OnInit, OnDestroy {
isLoading = true;
sorting = ['name', 'asc'];
searchForms: SearchForm[];
showHeader = ShowHeaderMode.Always;
private onDestroy$ = new Subject<boolean>();
constructor(public router: Router,
private config: AppConfigService,
private preferences: UserPreferencesService,
private queryBuilder: SearchQueryBuilderService,
@Optional() private route: ActivatedRoute) {
private route: ActivatedRoute) {
combineLatest([this.route.params, this.queryBuilder.configUpdated])
.pipe(takeUntil(this.onDestroy$))
.subscribe(([params, searchConfig]) => {
this.searchedWord = params.hasOwnProperty(this.queryParamName) ? params[this.queryParamName] : null;
const query = this.formatSearchQuery(this.searchedWord, searchConfig['app:fields']);
if (query) {
this.queryBuilder.userQuery = query;
}
});
queryBuilder.paging = {
maxItems: this.preferences.paginationSize,
skipCount: 0
@@ -76,10 +87,7 @@ export class SearchResultComponent implements OnInit, OnDestroy {
if (this.route) {
this.route.params.forEach((params: Params) => {
this.searchedWord = params.hasOwnProperty(this.queryParamName) ? params[this.queryParamName] : null;
const query = this.formatSearchQuery(this.searchedWord);
if (query) {
this.queryBuilder.userQuery = query;
if (this.searchedWord) {
this.queryBuilder.update();
} else {
this.queryBuilder.userQuery = null;
@@ -94,15 +102,11 @@ export class SearchResultComponent implements OnInit, OnDestroy {
}
}
private formatSearchQuery(userInput: string) {
private formatSearchQuery(userInput: string, fields = ['cm:name']) {
if (!userInput) {
return null;
}
const fields = this.config.get<string[]>('search.app:fields', ['cm:name']);
const query = fields.map((field) => `${field}:"${userInput}*"`).join(' OR ');
return query;
return fields.map((field) => `${field}:"${userInput}*"`).join(' OR ');
}
ngOnDestroy() {
@@ -136,4 +140,8 @@ export class SearchResultComponent implements OnInit, OnDestroy {
return ['name', 'asc'];
}
switchLayout() {
this.router.navigate(['search-filter-chips', { q: this.searchedWord }] );
}
}
@@ -21,7 +21,7 @@ import { Router } from '@angular/router';
@Component({
selector: 'app-settings',
templateUrl: 'settings.component.html'
templateUrl: './settings.component.html'
})
export class SettingsComponent {
@@ -20,8 +20,8 @@ import { ActivatedRoute, Router } from '@angular/router';
@Component({
selector: 'app-shared-link-view',
templateUrl: 'shared-link-view.component.html',
styleUrls: [ 'shared-link-view.component.scss' ],
templateUrl: './shared-link-view.component.html',
styleUrls: [ './shared-link-view.component.scss' ],
encapsulation: ViewEncapsulation.None,
// tslint:disable-next-line:use-host-property-decorator
host: { 'class': 'app-shared-link-view' }
@@ -19,8 +19,7 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-sites',
templateUrl: 'sites.component.html',
styleUrls: ['sites.component.scss']
templateUrl: './sites.component.html'
})
export class SitesComponent {
@@ -19,8 +19,8 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-social',
templateUrl: 'social.component.html',
styleUrls: ['social.component.scss']
templateUrl: './social.component.html',
styleUrls: ['./social.component.scss']
})
export class SocialComponent {
@@ -19,8 +19,8 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-tag',
templateUrl: 'tag.component.html',
styleUrls: ['tag.component.scss']
templateUrl: './tag.component.html',
styleUrls: ['./tag.component.scss']
})
export class TagComponent {
@@ -194,59 +194,63 @@ export class TaskListDemoComponent implements OnInit, OnDestroy {
return this.taskListForm && this.taskListForm.dirty && this.taskListForm.valid;
}
get taskAppId(): AbstractControl {
return this.taskListForm.get('taskAppId');
private getControl<T extends AbstractControl>(key: string): T {
return this.taskListForm.get(key) as T;
}
get taskId(): AbstractControl {
return this.taskListForm.get('taskId');
get taskAppId(): FormControl {
return this.getControl<FormControl>('taskAppId');
}
get taskProcessDefinitionId(): AbstractControl {
return this.taskListForm.get('taskProcessDefinitionId');
get taskId(): FormControl {
return this.getControl<FormControl>('taskId');
}
get taskProcessInstanceId(): AbstractControl {
return this.taskListForm.get('taskProcessInstanceId');
get taskProcessDefinitionId(): FormControl {
return this.getControl<FormControl>('taskProcessDefinitionId');
}
get taskName(): AbstractControl {
return this.taskListForm.get('taskName');
get taskProcessInstanceId(): FormControl {
return this.getControl<FormControl>('taskProcessInstanceId');
}
get taskAssignment(): AbstractControl {
return this.taskListForm.get('taskAssignment');
get taskName(): FormControl {
return this.getControl<FormControl>('taskName');
}
get taskState(): AbstractControl {
return this.taskListForm.get('taskState');
get taskAssignment(): FormControl {
return this.getControl<FormControl>('taskAssignment');
}
get taskSort(): AbstractControl {
return this.taskListForm.get('taskSort');
get taskState(): FormControl {
return this.getControl<FormControl>('taskState');
}
get taskIncludeProcessInstance(): AbstractControl {
return this.taskListForm.get('taskIncludeProcessInstance');
get taskSort(): FormControl {
return this.getControl<FormControl>('taskSort');
}
get taskStart(): AbstractControl {
return this.taskListForm.get('taskStart');
get taskIncludeProcessInstance(): FormControl {
return this.getControl<FormControl>('taskIncludeProcessInstance');
}
get taskSize(): AbstractControl {
return this.taskListForm.get('taskSize');
get taskStart(): FormControl {
return this.getControl<FormControl>('taskStart');
}
get taskPage(): AbstractControl {
return this.taskListForm.get('taskPage');
get taskSize(): FormControl {
return this.getControl<FormControl>('taskSize');
}
get taskDueAfter(): AbstractControl {
return this.taskListForm.get('taskDueAfter');
get taskPage(): FormControl {
return this.getControl<FormControl>('taskPage');
}
get taskDueBefore(): AbstractControl {
return this.taskListForm.get('taskDueBefore');
get taskDueAfter(): FormControl {
return this.getControl<FormControl>('taskDueAfter');
}
get taskDueBefore(): FormControl {
return this.getControl<FormControl>('taskDueBefore');
}
}
@@ -28,8 +28,8 @@ import { DocsSiteTheme, ThemeStorage } from './theme-storage/theme-storage';
@Component({
selector: 'app-theme-picker',
templateUrl: 'theme-picker.html',
styleUrls: ['theme-picker.css'],
templateUrl: './theme-picker.html',
styleUrls: ['./theme-picker.css'],
changeDetection: ChangeDetectionStrategy.OnPush,
host: {'aria-hidden': 'true'}
})
@@ -18,7 +18,7 @@
mat-icon-button
(selection-node-restored)="refresh()"
(restore)="onRestore($event)"
[adf-restore]="documentList.selection"
[adf-restore]="$any(documentList).selection"
*ngIf="documentList.selection.length"
title="{{ 'TRASHCAN.ACTIONS.RESTORE' | translate }}">
<mat-icon>restore</mat-icon>

Some files were not shown because too many files have changed in this diff Show More