46 Commits

Author SHA1 Message Date
Eugenio Romano
5f8b41411a
[NO-ISSUE] RE enable failing test (#3168)
* restore viewer test

* fix content node selector breadcrumb tests

* fix skipped test

* notification service uncomment test

* remove duplicated test
exclude dialog test
2018-04-11 09:03:03 +01:00
Eugenio Romano
07c247ca11 [ADF-2500] fix trashcan bug plus refactoring documentlist (#3136)
* [ADF-2500] The full content of Trashcan is not displayed.

fix pagination problem and add tests

* refactor code

* custom resources services

* move custom resources in separate service part 2

* move custom resources in separate service part 3

* move isCustomResources in custom resources

* move getCorrispondinNodeIds in custom services

* reorganize code

* add pagination interface

* remove permissions check document list and use the common cs method
remove the merge option and move it in the paginator

* make infinte scrolling always use the target

* restore loading infinite page

* fix license header

* fix type problems

* breadcrumb test service

* fix test

* export CustomResourcesService

* fix test pagination

* fix content ndoe test

* remove timeout content node selector test

* fix after rebase

* ripristinate observalbe in search service

* fix wrong type return stub document list test

* fix search service

* fix test document list

* move handle error in common method

* restore observable in search control

* Update search-control.component.spec.ts

* fix after rebase

* add import switchmap

* core import in karma conf

* missing commas

* fix mocks

* fix mock searchquerybody

* search test fix
2018-04-09 10:31:43 +01:00
Alex Bolboșenco
7d1b4bf14a [ADF-2540] Lock node feature (#3138)
* add adf-node-lock directive

* add lock-node service + button in context menu

* unit tests

* docs

* unit tests fix

* Remove unnecessary imports

* PR changes

* Remove fit from tests

* Update specific node from list on lock/ulock
2018-04-06 06:59:28 +01:00
Denys Vuika
ed48994e67 [ADF-2128] facet container component (#3094)
* (wip) facet container

* shaping out the API

* code lint fixes

* radiobox facet example

* fields selector facet

* search limits support

* scope locations facet example

* move custom search to 'search.query' config

* use facet fields and queries from the config file

* use facet filters

* use facet buckets in query

* preserve expanded/checked states

* code cleanup and binding fixes

* fix apis after rebase

* extract query builder into separate class

* code improvements

* full chip list (merge facet fields with queries)

* placeholder for range requests

* move search infrastructure to ADF core

* cleanup code

* auto-search on init

* move search components to the content services

* selected facets chip list

* split into separate components at ADF level

* move the rest of the implementation to ADF

* facet builder fixes and tests

* translation support for category names

* docs placeholders

* update language level

* unit tests and packaging updates

* fix after rebase

* remove fdescribe

* some docs on search settings

* rename components as per review

* simplify chip list as per review

* turn query builder into service

* improve search service, integrate old search results

* fix node selector integration

* move service to the top module

* update tests

* remove fdescribe

* update tests

* test fixes

* test fixes

* test updates

* fix tests

* code and test fixes

* remove fit

* fix tests

* fix tests

* remove obsolete test

* increase bundle threshold

* update docs to reflect PR changes

* fix docs
2018-03-29 11:34:08 +01:00
Eugenio Romano
9e2969b955 [ADF-2569] fix reload app.config.json (#3124)
* fix reload app.config.json

* improve style mobile
fix test

* test karma setup update

* fix core providers test

* remove unused providers

* use mock api in service test

* skip test in the wrong place

* remove comma

* remove fdescribe
2018-03-28 11:01:04 +01:00
Eugenio Romano
812c7be6f6
[no-issue] remove viewChildren use (#3116)
* remove viewChildren component use in lib and demoshell

* Update trashcan.component.ts

* Update trashcan.component.ts
2018-03-23 10:06:59 +00:00
suzanadirla
87c37dd9bd [ADF-2397] Sometimes Load more on Content Node Selector does not load next page of results (#3065)
* [ADF-2397] Sometimes Load more on Content Node Selector does not load next page of results

* [ADF-2397] added test
2018-03-13 17:35:44 +00:00
suzanadirla
3a68382be0 [ADF-2465] Sometimes, navigating using the breadcrumb opens another folder instead of the clicked one - after search performed on the Content Node Selector (#3054)
* [ADF-2465] Sometimes, navigating using the breadcrumb opens another folder instead of the clicked one - after search performed on the Content Node Selector

fixed bug
added tests
made sure that deleting search input field clears all search related data

* [ADF-2465] change tests not to use setTimeouts
2018-03-13 17:34:56 +00:00
Andy Stark
d563dbbd77 [ADF-2451] Reviewed docs for components (#3061)
* [ADF-2451] Reviewed tasklist docs

* [ADF-2451] Reviewed docs for content node components

* [ADF-2451] Fixed tslint error

* [ADF-2463] Moved core components to subfolder (#3062)

* [ADF-2443] renaming getDifferentPageSize to getDefaultPageSize (#3060)

* [ADF-2443] renaming getDifferentPageSize to getDefaultPageSize

* [ADF-2443] fixed method call for demo shell

* Add data-automation-id to an error message displayed on the Tag Page. (#3064)

* Update upload-drag-area.component.md (#3067)

* [ADF-2443] fixed documentation (#3066)

* [ADF-2451] Reviewed tasklist docs

* [ADF-2451] Reviewed docs for content node components

* [ADF-2451] Fixed tslint error
2018-03-13 12:11:13 +00:00
Eugenio Romano
c3e2588e35
[ADF-No-issue-number] search problem type fix (#3068)
* search problem type fix

* fix type test

* fix test node selector

* fix test content node selector panel
2018-03-13 12:10:06 +00:00
Vito
f0dcaa02fb [ADF-2361] added breadcrumb transform function to the breadcrumb comp… (#3050)
* [ADF-2361] added breadcrumb transform function to the breadcrumb component

* [ADF-2361] added PR review changes
2018-03-08 18:05:00 +00:00
Eugenio Romano
45426fd246
[no-issue] speed up test CS part 2 (#3009)
* remove tag and rating service the testbed

* remove unused import in modules

* pdf viewer async

* viewer test fixed

* remove testbed share datatable

* remove unused dependencies

* add missing parameter

* remove testbed from folder actions service

* TaskHeaderComponent async

* remove testbed from document actions and list

* remove unused import

* use done for nested test

* fast finish false
2018-02-28 17:15:52 +00:00
Denys Vuika
40f51a17df fixes for AoT (#2995)
* fixes for missing values in templates

* fix location cell implementation for object picker
2018-02-24 10:28:45 +00:00
suzanadirla
d997f14565 [ADF-2077] [Destination picker] User should not be able to copy / mo… (#2978)
* [ADF-20177] [Destination picker] User should not be able to copy / move items into a site outside of the documentLibrary

* [ADF-20177] added unit tests for the change

* [ADF-2077] refactor code and unit tests after code review

* [ADF-2077] more refactoring to make the unit tests messages more clear
2018-02-23 17:38:08 +00:00
Denys Vuika
c915a79342
[ADF-2169] Destination Picker fixes (#2984)
* style and layout fixes for Destination Picker

* fix for binding to private member, remove recent demo

* add 'search results' label, code fixes

* selected icon style fixes

* style fixes

* style fixes

* fix column header align issue

* style fixes for empty content

* icon column style fixes
2018-02-22 19:21:10 +00:00
Denys Vuika
2f69383c44 [ADF-2316] upgrade ngx-translate (#2956)
* upgrade ngx-translate

* add missing export

* add missing export

* Update test-e2e-bc.sh

* rxjs fixes

* increase timeout test

* lettable operator translate
2018-02-20 18:39:57 +00:00
suzanadirla
ed9289d6df [ADF-2310] Error is thrown if isSelectionValid optional property is not defined (#2957)
* [ADF-2310] Error is thrown if isSelectionValid optional property is not defined

* [ADF-2310] added unit tests for the change and removed unneeded import

* fix tests

* [ADF-2310] add missing async

* [ADF-2310] add more async function to unit tests
2018-02-20 18:22:21 +00:00
suzanadirla
6d0bab9278 [ADF-2304] Add option to Content Node Selector to transform the breadcrumb folder node (#2952)
* [ADF-2304] Add option to Content Node Selector to transform the breadcrumb folder node

* [ADF-2304] update documentation with recent changes

* [ADF-2304] added example of using the breadcrumbTransform
2018-02-19 17:27:55 +00:00
suzanadirla
6f81d7729e [ADF-2264] [Destination picker] File Libraries visibility column is not displayed (#2954) 2018-02-15 10:17:43 +00:00
Andy Stark
3114fa4862 [ADF-1769] Added support for methods to JSDoc tool (#2925)
* [ADF-1769] Refactored component props features

* [ADF-1769] Added methods list feature to doc tool

* [ADF-1769] Added support for optional parameters and initialisers

* [ADF-1769] Switched off prop generator tool
2018-02-09 10:22:41 +00:00
suzanadirla
b6cc8efe27 [ADF-2246] [Destination Picker] The selection from the dropdown is ignored after 'Clear' action (#2908) 2018-02-05 11:24:19 +00:00
suzanadirla
78c6a68e51 [ADF-2242] Search on custom sources is not working. (#2904)
* [ADF-2242] Search on custom sources is not working.

fix search on custom sources

* [ADF-2242] added unit tests

* [ADF-2242] reverted change

* [ADF-2242] simplify code on search method and make extra call only when having custom dropdown defined
2018-02-02 15:22:33 +00:00
Eugenio Romano
9e4b2e74e9
[ADF-2159] Update angular-cli to latest version (#2874)
* Update angular cli version 1.6.5

* fix tslint problems and update devdependencies using the angularcli 1.6.4

* test fixing

* [ADF-2159] start fixing userinfo test

* [ADF-2159] fixed userinfo tests

* [ADF-2159] added async to accordion component test

* [ADF-2159] testing probable failed test on CI

* [ADF-2159] check removing fake destroyed view test

* [ADF-2159] check viewer tests

* [ADF-2159] attempt on test fix

* [ADF-2159] test fix

* [ADF-2159] fix test

* [ADF-2159] fix test

* [ADF-2159] rebased

* [ADF-2159] check test

* [ADF-2159] fixing test

* [ADF-2159] Fix#1

* [ADF-2159] Fix#2

* [ADF-2159] Fix#3

* [ADF-2159] Fix #4

* [ADF-2159] Fix #5

* [ADF-2159] Fix #6

* [ADF-2159] fixed viewer test

* [ADF-2159] fixed cast element
2018-02-01 10:08:25 +00:00
suzanadirla
d2d635b94d [ADF-2000] Destination picker is not completely translated (#2883) 2018-01-28 22:55:39 +00:00
suzanadirla
d071250e24 [ADF-2221] Search fails on Content Node Selector (#2888) 2018-01-26 10:25:55 +00:00
Vito
101701b72e [ADF-2196] fixed error message for no permission on copy and move (#2863)
* [ADF-2196] fixed error message for no permission on copy and move

* [ADF-2196] removed fdescribe
2018-01-23 12:06:10 +00:00
Vito
a401ebd35d [ADF-2150] improved queryBody mechanism (#2852)
* [ADF-2150] changed query body parameter to a function

* [ADF-2150] added an example page where to try change query body

* [ADF-2150] improved queryBody mechanism

* [ADF-2150] fixed content node test

* [ADF-2150] extended docs added another way to use the query node

* [ADF-2150] fixed test for search on content node

* [ADF-2150] added some improvements to service config

* [ADF-2150] changed the documentation accordingly

* [ADF-2150] added PR changes

* [ADF-2150] fixed jdoc

* [ADF-2150] added checkbox to switch from service approach to input object approach

* [ADF-2150] fixed build error on demo shell
2018-01-23 10:12:52 +00:00
Vito
66262c4822 [ADF-325] added attach folder widget (#2831)
[ADF-325] added new attach folder widget
2018-01-16 14:28:39 +00:00
Vito
46ad98cd8b [ADF-2054] Created a new widget to handle uploading file from Share (#2810)
* [ADF-2054] start creating custom upload widget for share integration

* [ADF-2054] changed content node selector service to allow different opening approach

* [ADF-2054] addedd support for multi resource files

* [ADF-2054] fixed base case for upload when only local files are selected

* [ADF-2054] start adding and fixing tests for new share attach button widget

* [ADF-2054] changed test to perfrom a correct check

* [ADF-2054] removed fdescribe

* [ADF-2054] added test for share-widget component

* [ADF-2054] added peer reviews changes

* [ADF-2054] created a module folder for content widgets

* [ADF-2054] fixed wrong import

* [ADF-2054] fixed rebase errors

* [ADF-2054] restored some files changed by rebase

* [ADF-2054] added link to content services to fix packaging issue

* [ADF-2054] renamed widget
2018-01-12 13:28:18 +00:00
Eugenio Romano
932a23d449
[fix-build] add stable version chrome in travis conf (#2819)
* chrome stable
2018-01-10 14:53:47 +00:00
suzanadirla
553ae4db7b [ADF-2070][ADF-2071][ADF-2072] 'Load more' on destination picker does… (#2774)
* [ADF-2070][ADF-2071][ADF-2072] 'Load more' on destination picker doesn't display correct content of folders

* [ADF-2070][ADF-2071][ADF-2072] add tests

* [ADF-2070][ADF-2071][ADF-2072] 'Load more' on destination picker doesn't display correct content of folders
2017-12-19 22:14:36 +00:00
Vito
9afa632148 [ADF-2065] Refactored Content node selector component (#2778)
* [ADF-2065] created dialog component for content node selector

* [ADF-2065] removing SiteModel from site dropdown to use SitePaging model of js-api

* [ADF-2065] - removed site model and updated documentation

* [ADF-2065] fixed test for site component

* [ADF-2065] refactored content node selector and created content node selector dialog

* [ADF-2065] fixed test on site-api service

* [ADF-2065] added a new content node dialog service to centralise the logic for content node dialog

* [ADF-2065] start adding test for node-actions service|

* [ADF-2065] added test for node-actions service

* [ADF-2065] added test for node action service

* [ADF-2065] renamed components to keep backward compatibility

* [ADF-2065] added input just for backward compatibility

* [ADF-2065] added some changes for backward compatibility and updated documentation

* [ADF-2065] updated documentation for content node selector
2017-12-14 12:36:08 +00:00
Popovics András
3e52127b5c [ADF-2061] Fix content node selector search (#2772)
* Fix content node selector search

* Fix tests
2017-12-07 19:23:38 +00:00
Popovics András
cb06c8a963 [ADF-1431] Destination Picker: Display path of the folder in search results (#2762)
* Add initial implementation with style fixes

* Further style fixes

* Add tests, styling fixes
2017-12-05 01:09:40 +00:00
Eugenio Romano
197fab4da8
[ADF-2010] Move/copy, when searching for folder multiple results are returned (#2727)
* adding debounce time in object picker
unify search api
fix multiples duplicate result
remove limit of 4 character to search

* remove three.min.js

* remove unused import

* tlsint fix and remove file

* rename sitesApiService to sitesService as all the other services

* fix test timeout async
2017-11-26 22:06:05 +00:00
Eugenio Romano
083f40192c fix highlighting content node selector 2017-11-23 16:40:37 +00:00
Popovics András
9bc99665ef Fix misalignment in FF also (#2709) 2017-11-23 14:04:16 +00:00
Denys Vuika
7d4ee779cf add missing export (#2706) 2017-11-23 12:34:58 +00:00
Popovics András
c0738cb7d9 [ADF-2006] Fix document list style misalignment in copy/move dialog (#2704)
* Fix document list style misalignment in copy/move dialog

* Remove unnecessary import
2017-11-23 11:22:45 +00:00
suzanadirla
68239cd002 [ADF-1599] [Destination Picker] Updates to match the designed component (#2642)
* [ADF-1599] fix design issues

Search Term Highlight text to be orange (primary color)
Main action button text label to be orange (primary color)
Main action button text to be in Uppercase
Main action button to relate to the action i.e. MOVE or COPY
Dialog title: Name of item to move/copy should be in 'quotes'

* [ADF-1599] fix Dropdown	Placeholder text from 'Site List' to 'Select Location'

* [ADF-1599] fix Dropdown	Placeholder text from 'Site List' to 'Select Location'

* fix 'Select Location' width and bottom margin

* [ADF-1599] update document picker to match design

* [ADF-1599] fix failing tests

* [ADF-1599] update the unit tests

* [ADF-1599] use only colors from $theme on component scss file

* [ADF-1599] change needed after resolving conflict on merge
2017-11-22 13:40:47 +00:00
suzanadirla
c91301d9a5 [ADF-1949] fix issue that appears on call action on chosenNode from c… (#2690)
* [ADF-1949] fix issue that appears on call action on chosenNode from custom source list

* [ADF-1949] update unit tests
2017-11-22 12:46:40 +00:00
Eugenio Romano
f629f48d16
[ADF-1968] [IE11] The login page is not loading and import fix (#2679)
* fix viewer script
export insights and diagram
remove requires svg
fix new data adapter path
dist working with diagrams commented out
change use of minimatch
fix unused import
remove unused component
fix test
new import moment es6 and throw rxjs
fix import analytics test
fix imports rxjs
new pacakging

* fix after rebase

* fix test upload services

* exclude temporarily button event test

* restore commented demo shell files

* fix process spy
2017-11-22 10:33:56 +00:00
suzanadirla
edaa442e18 [ADF-1949 ] Allow customization of the dropdown menu on document picker (#2660)
* [ADF-1949] Allow customization of the dropdown menu on document picker

- add as input properties the 'dropdownHideMyFiles' and the 'dropdownSiteList' to the destination picker, so the list of sites from the dropdown can be customized, if wanted
- add navigation on '-mysites-' entries on document-list
- use custom dropdown on the copy/move document picker

* [ADF-1949] do not use a custom dropdown on the copy/move document picker on ADF side, because this can be done only on ACA side

* [ADF-1949] handling the node-dblclick event on content-node-selector.component instead of doing it on the document-list component

- and update the sites-dropdown documentation file

* [ADF-1949] changes requested on code review

* [ADF-1949] fix failing tests
2017-11-20 12:10:38 +00:00
Vito
141bc0f8b4 [ADF-1805] rebased documentlist pagination removal (#2668)
* [ADF-1805] rebased documentlist pagination removal

* [ADF-1805] fixed some wrong changes]
2017-11-20 10:40:05 +00:00
Eugenio Romano
ff2e855aa3
Fix prefix adf- import (#2657)
* fix prefix adf- import

* missing conf file prefix replacement

* fix demo shell start
2017-11-17 02:46:31 +00:00
Eugenio Romano
a52bb5600a
New packages org (#2639)
New packages org
2017-11-16 14:12:52 +00:00