87 Commits

Author SHA1 Message Date
Andy Stark
58d765a355 [ADF-3551] Doc review updates (#3793)
* [ADF-3551] Updated docs and JSDocs

* [ADF-3551] Updated docs and JSDocs

* [ADF-3551] Updated docs and JSDocs
2018-09-14 14:41:25 +01:00
Andy Stark
3ba72f00f8 [ADF-3551] Updates for doc review (#3784)
* [ADF-3551] Updated doc comments

* [ADF-3551] Updated doc comments

* [ADF-3551] Doc files updated with new doc comments
2018-09-13 12:59:57 +01:00
Cilibiu Bogdan
3857364b39 subscribe until destroyed (#3776) 2018-09-12 13:03:12 +01:00
Suzana Dirla
6ddf028d93 [ADF-3510] Search facets date-range goes invalid when empty - fix (#3741) 2018-09-07 10:05:55 +01:00
Suzana Dirla
931181dee0 [ADF-3511] The error message for "Created date" fields is not the correct one when are no inputs - fix (#3742) 2018-09-07 10:05:13 +01:00
davidcanonieto
6ad37c1ecc [ADF-3455] Show more/less buttons in Search Radio Component hide when they are not necessary (#3734) 2018-09-06 14:01:06 +01:00
Denys Vuika
d39de25fe9 [ADF-3459] fix datepicker validation regression (#3697)
* fix datepicker validation regression

* improved validation message

* update libs
2018-08-14 15:43:21 +01:00
Vito
62f0804205 [ADF-3467] force the input to be updated when user type for removing … (#3693)
* [ADF-3467] force the input to be updated when user type for removing placeholder

* [ADF-3467] fixed error when search page is opened without any parameters to search
2018-08-14 15:43:14 +01:00
Denys Vuika
c2566697ea use default page size for wrong parameter value (#3687) 2018-08-14 15:43:08 +01:00
Suzana Dirla
6f313b7c37 [ADF-3435][ADF-3436] fix search chips (#3681)
* fix chip list remove

* fix tests

* better find criteria

* swap to fix e2e test

* set 'expanded' for facetFields from config

* fix e2e test

* remove comments
2018-08-14 15:43:04 +01:00
Eugenio Romano
c83731a283 fix search filter automation id 2018-08-14 15:42:50 +01:00
Denys Vuika
f606149344 [ADF-3380] lazy loading fixes (#3609)
* lazy loading file viewer

* fix issue with CoreModule referencing

* fix issue with app config and lazy loading

* test fixes

* fix import

* lazy loading workaround for content module

* fix providers for lazy loading

* fix tests

* lazy loading for Process Services lib

* lazy loading for Insights, module cleanup

* fix issue with Translate module, optimise imports

* lazy-load blob viewer (demo shell)

* remove duplicate pdf init

* update to more stable pdfjs

* fix license header

* fix lint issues

* fix test import

* fix pdf version
2018-08-14 15:42:50 +01:00
Suzana Dirla
18a21a59a5 [ADF-3400] fix buckets update on search filter (#3644)
* [ADF-3400] fix buckets update on search filter

* [ADF-3400] test facetFields bucket updates

* [ADF-3400] clean tests
2018-08-14 15:42:46 +01:00
marouanbentaleb
68779e0426 E2E for multiselect facet search (#3657) 2018-08-14 15:42:44 +01:00
Denys Vuika
6b24bfb1d4 [ADF-3299] and [ADF-3300] upgrade to Angular and Material 6 (#3579)
* upgrade to HttpClient

* upgrade to Renderer2

* upgrade Document reference

* remove useless test with deprecated ReflectiveInjector

* upgrade to latest typescript

* upgrade libs

* upgrade package scripts

* remove rxjs blacklists and duplicate rules

* add rxjs compat to help with migration

* fix breaking changes

* fix breaking changes in material

* fix breaking changes (material 6)

* upgrade rxjs, ngx-translate and flex layout

* update unit tests

* restore providers

* upgrade deprecated Observable.error

* rebase
fix first configuration problems

* fix style issues commented

* fix core build

* fix lib template errors

* move lib test execution in angular.json

* ignore

* karma conf files

* fix import statement test

* single run option

* update packages reporter

* restore report

* increase timeout

* improve karma conf test configuration

* fix test issues about lint

* fix test analytics

* fix process service test

* content service fix test

* fix logout directive test

* fix core test

* fix build

* update node-sass to latest

* update angular cli dependencies

* improve build script

create directorites and move files only if previous command succeded

* upgrade individual libs to 6.0

* remove old webpack files

* revert sass change

* fix type issues
fix style issues

* fix tslint demo shell issue

* fix peerdependencies

* fix test e2e BC

* package upate

* fix style import issue

* extract-text-webpack-plugin beta

* fix test dist build command

* remove alpha js-api

* fix tslint issue
add banner tslint rule

* upload service fix

* change BC script

* fix test dist script

* increase demo shell timeout test

* verbose copy

* path absolute

* fix script bc

* fix copy part

* fix path warning
fix monaco editor

* remove duplicate header

* remove unused import

* fix align and check ago tests

* add missing import

* fix notification button selector

* [ANGULAR6] fixed core tests

* fix CS test

* fix cs test step 2

* increase travis_wait for dist

* fix attachment PS

* fix checklist test

* use pdf min
2018-08-14 15:42:43 +01:00
Denys Vuika
94463a7505 add missing export (#3646) 2018-08-14 15:42:40 +01:00
Denys Vuika
f9195e4e27 [ADF-3406] fix chip list integration regression (#3634)
* fix chip list integration

* add unit test
2018-08-14 15:42:36 +01:00
Denys Vuika
0670c93d7b [ADF-3367] facets multiselect fixes (#3611)
* group facet buckets by field

* unit tests and code fixes
2018-08-14 15:42:30 +01:00
Denys Vuika
ac057ee4fe [ADF-3371] fix: Search Filter raises errors when "facetQueries" is not in config 2018-08-14 15:42:26 +01:00
Denys Vuika
c63184334f [ADF-3365] search filter fixes (#3594)
* preserve ordering of facet fields and queries

* update tests

* rework facet queries

* rework facet management, update unit tests

* remove unused interfaces

* fix test

* remove deprecated interfaces

* expose selection for the chip list
2018-08-14 15:42:23 +01:00
Denys Vuika
6508b145d0 [ADF-3292] fix reset to defaults (#3566)
* fix reset to defaults

* code fixes

* restore providers

* fix category filtering
2018-08-14 15:42:11 +01:00
bbcodrin
8cc07f5816 [ADF-3238] content size min error added (#3532)
* content size min error added

* clean code
2018-08-14 15:42:00 +01:00
Denys Vuika
acf73fba54 [ADF-3217] reset previous search settings (#3490)
* reset previous search settings

* unit test

* remove fit
2018-06-15 14:51:26 +01:00
Suzana Dirla
8d363be9b3 [ADF-3134] fix increasing search calls issue (#3444) 2018-06-06 18:58:13 +01:00
Denys Vuika
6909c459a8
[ADF-3115] a11y fixes (#3424)
* a11y fixes for search input

* a11y fixes for pagination

* a11y fixes for content actions
2018-06-01 13:22:47 +01:00
Cilibiu Bogdan
2f12f518ef [ADF-3108] Search - facetQueries panel renders when not defined in configuration (#3417)
* show facetQueries based on configuration definition

* tests

* FacetQueries is defined
2018-05-31 22:05:46 +01:00
Eugenio Romano
eb0f91c5db fix random test failing part 2 (#3395)
* fix random failing test core search/comment/auth/user

* fix node delete directive

* fix lint issues

* node restore fix

* fix comment test

* remove fdescribe

* fix tests and tslint

* fix upload test

* unsubscribe success event task test

* copy comment object during test

* use the data pipe performance improvement and standard usage

* uncomment random test

* fix comment date random failing test

* disposable unsubscribe

* fix start process

* remove fdescribe

* change start process test and remove commented code

* fix error event check double click

* clone object form test

* refactor date time test

* fix service mock

* fix test dropdown and context

* git hook lint

* fix language test

* unsubscribe documentlist event test

* fix disposable error

* fix console log service error document list

* unusbscribe search test

* clear input field

* remove wrong test
2018-05-29 10:18:17 +01:00
Suzana Dirla
11bac7e796 [ADF-3042] Use the custom date adapter from adf-core on Search Date Range widget (#3394)
-fix localization
-fix tests
-show parse error
2018-05-25 14:45:55 +02:00
Denys Vuika
405306d9ab minor layout fix for search facet buttons 2018-05-24 12:34:36 +01:00
Denys Vuika
30f13cdecd bold font for checked boxes (#3381) 2018-05-23 19:21:05 +01:00
Denys Vuika
44a39b76a5 search filter now remembers original user query (#3384) 2018-05-23 19:06:49 +01:00
Eugenio Romano
7e67257b8a
first part random test fix (#3376)
fixing random test executions first part
2018-05-23 01:23:54 +01:00
Denys Vuika
f69bad3732 [ADF-2927] search filter enhancements (#3365)
* search filter enhancements

* reset button for facet queries

* update code and tests

* remove unused type

* restore code missing after rebase
2018-05-23 00:36:20 +01:00
bbcodrin
b2e35c3560 [ADF-2923] button type added (#3358)
* button type added

* remove unnecessary code
2018-05-22 13:40:44 +01:00
Denys Vuika
5aa523d9ac [ADF-3055] fix bug with page size for facet fields (#3359)
* fix bug with page size for facet fields

* move page size to a constant

* move const inside the scope

* test fixes
2018-05-22 10:33:46 +01:00
Suzana Dirla
67e0c02a5a [ADF-2984] Show date invalid message on search date range picker (#3323)
* [ADF-2984] Show date invalid message on search date range picker

* [ADF-2984] test that required format is displayed when date input is invalid

* [ADF-2984] More space above buttons
2018-05-18 17:22:12 +01:00
Denys Vuika
07440731fa [ADF-2131] Search sorting (#3334)
* sorting configuration

* detect primary sorting and use with document list

* search results sorting

* docs update

* unit tests and code updates

* update code

* update code

* generic sorting picker, test updates

* ability to switch off client side sorting

* update docs for document list
2018-05-18 14:33:28 +01:00
Suzana Dirla
4e70a116eb [ADF-2997] The meaning of the range fields is not clear (#3338)
* [ADF-2997] restrict 'to' field not to allow dates in the future

* [ADF-2997] more clear labels for start and end date fields

the translation team will decide what will be the best values for the date fields
2018-05-17 11:41:51 +01:00
bbcodrin
fd924c439a [ADF-2925] Required and invalid validators added (#3277)
* test added

* tests clean

* test added

* tslint clean

* test name changed

* update tests
2018-05-15 13:21:38 +01:00
Denys Vuika
bd4451e83d remove search configuration enforcement (#3315) 2018-05-14 10:24:29 +01:00
Denys Vuika
33115567db fix search filter styles (#3313) 2018-05-11 12:21:07 +01:00
Denys Vuika
4f64ebb3ef fix css scope for search filter 2018-05-10 20:04:35 +01:00
Suzana Dirla
5f004c9972 [ADF-2849] Search Date Range - Set the format of the date from config (#3288)
* format date chosen from the datePicker's calendar

* format date on focusout event

* fix tests & some code refactoring

* more validation messages

* unit tests

* fix typecast error

* move "dateFormat" to be part of the "date range" widget settings block

* fix error on Moment

"...Type 'moment.Moment' is not assignable to type 'moment.Moment'. Two different types with this name exist, but they are unrelated.
          Property 'isLocal' is missing in type 'Moment'..."

* moment - use old version

* change script - use recent version of moment
2018-05-10 14:27:31 +01:00
Denys Vuika
7afcd24488 [ADF-2328] filtering support for facets and categories (#3293)
* filtering support for facets and categories

* fix tests

* update variable names
2018-05-10 14:23:18 +01:00
bbcodrin
a5aff3d2df [ADF-2916] number range form validator added (#3279)
* number range form validator added

* tests added
2018-05-10 10:12:40 +01:00
Denys Vuika
3a3acd23ff [ADF-2914] support for number range patterns (#3282)
* support for number range patterns

* fix memory leak for tag actions
2018-05-09 09:33:11 +01:00
Denys Vuika
ba35eda2f9 search fixes (#3272)
* "show less" button for search filter container

* consistent button styles across widgets

* i18n support for facets

* page sizes for check list

* display page buttons only when needed

* page sizes for all facet fields

* test fixes

* update lib versions

* fix angular configuration
2018-05-08 13:41:27 +01:00
Eugenio Romano
fe0ac0e474
move tslint ADF rules in principal repo (#3247)
* move tslint ADF rules in principal repo

* fix style issues

* change pacakge.json position

* update to angular cli 6.0.0

* reorganization package.json

* remove node modules2 folder

* exclude integration

* rollback alfresco-js-api

* solve types problems

* fix pdf test

* fix errors and exclude two tests

* fix e2e

* fix test

* copy all the new packages in node_modules

* fix test

* fix packaging script

* scss issue fix

* move test export in tools
2018-05-04 17:13:45 +01:00
Vito
513915b3d9 [ADF-2556] Created component for add group or user to permission (#3242)
* [ADF-2556] first step to create add people or group to permissions

* [ADF-2556] creating a dialog with user results

* [ADF-2556]
integrated service for add and remove permission from node

* [ADF-2556] fixed behaviour and style for add user group

* [ADF-2556] added some refactoring for dialog service

* [ADF-2556] refactoring the dependencies of the components

* [ADF-2556] added some fix and a new key for dialog

* [ADF-2556] start adding test for node permission service

* [ADF-2556] added test for add permission panel component

* [ADf-2556] adding tests for new add permission component

* [ADF-2556] fixed tests and added documentation

* [ADF-2556] fixed documentation for add-node components

* [ADF-2556] added peer review changes
2018-05-03 15:14:15 +01:00
Denys Vuika
61a4173ad3 fix AOT issue (remove unused attribute from html) 2018-05-03 12:23:24 +01:00