Commit Graph

46 Commits

Author SHA1 Message Date
davidcanonieto
6417337f9d [ACA-3251] Move InfoDrawer and Toolbar components to aca-shared (#1466)
* moved tool bar

* moved info drawer

* moved appextension service

* moved pagination service

* Fix imports

* * fixed lints

* * fixed space

* added travis configuration

* * comments fixed

* * comments fixed

* * lint fixed

Co-authored-by: dhrn <dharan.g@muraai.com>
2020-05-12 14:34:26 +01:00
Cilibiu Bogdan
7b0ce29000 [ACA-3278] Header - extension actions not visible (#1462)
* custom toolbar actions theme

* update  tests
2020-05-12 08:53:30 +03:00
Denys Vuika
bf509843b7 integrate Prettier with tslint (#1419)
* integrate prettier with tslint

* remove obsolte scripts

* update tsconfig

* fix lint issues

* fix lint errors

* more rules and fixes

* kebab case and lint fixes

* update helpers

* update util
2020-04-19 23:29:20 +01:00
Chris Rodriguez
5e49d9591b [ACA-2582] menu menuitem roles (#1315)
* chore: wip

* chore: wip mark will poke around

* chore: removed unused directive

* remove useless directive

* cleanup code

Co-authored-by: Denys Vuika <denys.vuika@gmail.com>
2020-03-23 16:23:37 +02:00
Cilibiu Bogdan
66f9442563 update copyright (#1302)
* update copyright

* update year
2020-01-16 18:15:34 +02:00
Chris Rodriguez
d12079e2a7 [ACA-2543] Left Navigation - Button does not have a role (#1306)
* chore: a11y removed overriding role from button in menu

* chore: removed comment

* chore: removed previous change and override role with new role
2020-01-16 06:31:15 +02:00
pionnegru
61bc80e538 set aria-expanded 2019-10-16 07:47:08 +03:00
pionnegru
a1224d2f72 action icons accessibility 2019-10-11 08:31:44 +03:00
Cilibiu Bogdan
edf1e52e94 [ACA-2745] Viewer - return to location on close (#1196)
* use viewNodeExtras when calling action

* open viewer based on ViewNodeExtras data

* resolve closing destination based on ViewNodeExtras query params

* remove unused param

* call ViewNodeAction with correct params

* update tests

* update docs
2019-09-06 14:17:29 +03:00
Cilibiu Bogdan
e31c0d6caf [ACA-2087] Overlay Viewer (#1175)
* viewer outlet over preview route

* use ViewNodeAction over ViewFileAction

* pass data to dynamic component

* ViewNodeComponent for view file  custom actions

* update docs

* pass primary url to show preview outlet

* update tests

* reset selection on navigation event

* document list update selection action when not viewer

* close viewer for move and delete from viewer

* location as router commands to work with search query

* make viewer to behave like former preview

* viewer error route

* call correct preview method

* remove view/error route

* navigate to show error

* span element for action name

* fix folder navigation

* fix test

* page title fix

* update tests

* locate better the viewer toolbar

* fix viewer url  link

* update navigation rules

* document-list directive tests

* try workaround for chrome 76

* try another workaround for using chromedriver 75 instead of 76

* ViewerEffects tests

* reset selection over reload

* fix tests

* add reset event test

* remove actions

* context menu action refresh on favourite

* reset selection on navigation

* add delete and upload events

* takeUntil after operators

* remove chrome workaround parameter

* filter navigation event
2019-08-08 15:38:50 +03:00
Cilibiu Bogdan
120c030b2b check if data exists 2019-07-12 08:54:36 +03:00
Cilibiu Bogdan
026157b892 tests 2019-07-12 08:54:36 +03:00
Cilibiu Bogdan
e98af1ff26 reload on specified routes 2019-07-12 08:54:35 +03:00
Cilibiu Bogdan
7e52c54754 pass data for dynamic components 2019-07-12 08:54:35 +03:00
Suzana Dirla
eb1e8c8fa1 [ACA-2147] toolbar clean css - fix colors (#1114)
* [ACA-2147] toolbar clean css - fix colors

* [ACA-1619] keep aspect properties config example

* [ACA-2147] keep toolbar color setting in custom-theme

* remove dist folder from travis cache

* build dist folder before each suite

* remove no longer needed 'Prepare dist cache' since dist cache was disabled
2019-05-21 16:38:19 +01:00
Denys Vuika
1928aa0b1b npm security audit fixes (#1112)
* update angular libs

* audit fix

* fix code style

* remove rimraf dependency
2019-05-17 15:14:23 +01:00
Denys Vuika
9db1c2989f shared library (#1080)
* shared project scaffold

* rules package

* move evaluators to shared lib

* add rxjs peer dependency

* use dedicated material namespaces

* create store package, move actions

* move selectors to shared library

* move generic effects to shared lib

* move routing extensions

* minor code reorg

* fix unit tests

* move content-api service

* move permission service

* update tests

* update plint config

* move page layout

* css variables

* use dedicated css property

* move generic error component to shared lib

* fix test
2019-04-25 14:56:54 +01:00
Suzana Dirla
9f127c0530 [ACA-2328] style cleanup to prepare for move css overrides to ADF (#1055)
* [ACA-2139] remove style override

- was added on ADF component since 3.0.0

* [ACA-2149] prepare for moving adf-upload-dialog style to ADF

- separate new styling from overrides

* [ACA-2148] just delete without moving to ADF

- since we no longer use the adf-upload-button anywhere in ACA

* [ACA-2150] refactor adf-upload-drag-area code

* [ACA-2150] more refactor adf-upload-drag-area scss

* [ACA-2150] change variable naming on adf-upload-drag-area scss

* [ACA-2141] fix adf-info-drawer height

- and mark code that could be removed in the future - without moving to ADF

* [ACA-2147] prepare adf-toolbar code to be moved to ADF

* [ACA-2141] remove not needed styles

- already set inside the adf-version-manager styling

* [ACA-2146] prepare adf-sidenav-layout code to be moved to ADF

* [ACA-2144] remove no more needed styles for facet-buttons

- styles for adf-facet-buttons are applied in ADF 3.1.0

* [ACA-2150] fix reset 'parent' color on adf-upload-drag-area

* [ACA-2150] refactor adf-upload-drag-area code

- to easier to move to ADF

* [ACA-2141] better fix for adf-info-drawer height

* [ACA-2147] rename css class to prepare adf-toolbar code to be moved to ADF
2019-04-05 12:38:08 +01:00
Denys Vuika
3a4cff505f add missing typings to code (#1050)
* remove unused parameters

* add missing types

* add missing typing information

* fix tests

* restore old code
2019-04-02 14:38:29 +01:00
Adina Parpalita
6ac697564d update copyright year (#1022)
* update copyright year

* forgot a file

* update year on licence header
2019-03-19 15:41:27 +02:00
Denys Vuika
07f45e08cf various bug fixes (#1010)
* various bug fixes

* use 'remove favorite' label where appropriate

* fix toggle favorite component labels

* e2e type check and fixes

* favorite library label

* support toggle favorite component selectors

* update tests

* update e2e tests

* update e2e

* e2e update

* update e2e
2019-03-14 15:40:38 +00:00
Denys Vuika
a25385049d reload active doclist via NgRx actions (#978)
* doclist reload action and effect

* deprecate folderEdited event

* deprecate "favoriteToggle" event

* deprecate "favoriteRemoved" event

* update docs

* unified reload function

* deprecate "nodesRestored" event

* deprecate "nodesPurged" event

* test fixes

* deprecate "nodesMoved" event

* reduce the use of "nodesDeleted"
2019-02-27 13:45:55 +00:00
Denys Vuika
d32f4a7dc6 [ACA-2204] Upgrade to ADF 3.0.0 release (#949)
* upgrade to ADF 3.0.0

* update unit tests
2019-02-14 07:34:12 +00:00
Cilibiu Bogdan
913685eb14 [ACA-213] Edit Offline - permissions (#911)
* edit offline action rules

* unlock node error message

* update extensions rules

* lock unlock evaluators

* LockNodeDirective over EditOfflineDirective

* disable tests failing cause of unrelated bug

* isUserWriteLockOwner over isUserWriteLock
2019-02-05 18:39:11 +00:00
Cilibiu Bogdan
e004d365a9 [ACA-213] Edit Offline (#909)
* WRITE_LOCK evaluator

* evaluate actions for WRITE_LOCK

* edit offline action

* DL icon for WRITE_LOCK files

* edit offline directive

* custom name column

* localisation

* toggle offline edit extension

* move takeUntil operator

* add tooltip

* better selector to differentiate Edit folder from Edit Offline

* default to empty object for null properties object

* isPersonalFiles evaluator

* isLibraryFiles evaluator

* isLibraryFiles evaluator

* isPersonalFiles evaluator

* update canEditLockedFile rule
2019-02-01 11:52:08 +00:00
Denys Vuika
7992b0a015 [ACA-2122] automatic code formatting on commit (#890) 2019-01-04 15:20:24 +00:00
Denys Vuika
99a8192b36 [ACA-2064] support custom icons for extensions (#864)
* icon component, custom svg

* split components, fix modules

* simplify code

* universal icon component

* support custom icon registration

* update docs

* test fixes
2018-12-07 19:09:45 +00:00
Suzana Dirla
8952be634f [ACA-2045] reset selection on toggle join action (#829) 2018-11-26 15:51:33 +00:00
Suzana Dirla
62e33efbd0 [ACA-1607] context menu - join/cancel join actions (#820)
* [ACA-1607] context menu fix for search-results

* [ACA-19] fix orderBy 'Name'

* [ACA-1607] style changes

* [ACA-1607] reload on join action
2018-11-23 12:00:42 +00:00
Cilibiu Bogdan
0bd64f2543 [ACA-1607] Libraries - add/remove favorite library action (#816)
* workaround rework

* avorite unfavorite i18n reference

* extension definition

* is favorite library default value

* add action tooltip

* toglle favorite library state

* add toggle favorite library directive

* remove default isFavorite library value

* rework favorite library directive

* mark selected as favorite on favorite libaries route

* update tests

* add context menu delete library action

* update e2e
2018-11-22 10:37:14 +00:00
Cilibiu Bogdan
da41834524 [ACA-20] Add/Remove favorite library (#804)
* custom add favorite library

* addFavoriteLibrary component

* tests

* update doc

* add content event

* reload on remove favorite library

* consistency

* app.selection.library over app.navigation.isLibraries

* fix duplicate id name
2018-11-16 12:46:36 +02:00
Suzana Dirla
49e80ddce1 [ACA-19] Toggle join request - library action (#800)
* [ACA-19] join/cancel join library actions

* [ACA-19] show the info drawer

* [ACA-19] custom icon for join library

* [ACA-19] css to 'see' custom icon for extension

* [ACA-19] reformat with prettier

* [ACA-19] better role display

* [ACA-19] simplify cancel request rule

* [ACA-19] refactor and use toggle join/cancel join component & directive

* [ACA-19] reformat with Prettier

* [ACA-19] fix title for svgIcon

* [ACA-19] fix translation

* [ACA-19] unit test
2018-11-14 12:43:14 +00:00
Denys Vuika
cb3754e29d update prettier (#790)
* update prettier

* enable auto-formatting for html
2018-11-08 11:54:25 +00:00
Cilibiu Bogdan
f44b3629e9 [ACA-92] Context Menu - share settings action (#699)
* context menu share settings action

* update cspell with 'qshare'

* share/edit share in viewer

* force change detection on children

* cleanup module declarations

* detection only for preview page

* assert properties

* cast to boolean
2018-10-10 18:31:13 +01:00
Denys Vuika
457fa74048 [ACA-1830] create menu enhancements (#670)
* nested menus for create button

* evaluate sub-menu permissions

* demo plugin

* "create library" action

* unit tests and proper effect name
2018-09-27 09:07:24 +01:00
Denys Vuika
f580b96a78 more detailed code coverage reports (#664)
* add about to coverage

* add more components to coverage

* more truth for coverage reports

* even more fun

* switch off json formatting

* deploy war file after unit test run
2018-09-24 14:35:14 +01:00
Denys Vuika
8a7fbaa70a [ACA-1809] app header extensions (#659)
* move header to separate component

* code fixes

* project header buttons and menus

* app menu example

* delete empty style

* logout action

* update docs

* and one more test
2018-09-23 17:53:56 +01:00
Denys Vuika
ac0a29e14a tree-shakable services (#661)
* improved services

* context menu service

* update to latest adf-extensions
2018-09-23 17:06:52 +01:00
Denys Vuika
f44838ac42 split toolbar components (#635)
* split create menu into separate component

* toolbar menu item component

* toolbar menu component

* component updates

* unified property name

* code and style improvements

* login module (lazy)
2018-09-15 19:28:33 +01:00
Denys Vuika
883a1971c5 [ACA-1443] prettier formatting and checks (#629)
* intergrate prettier

* update settings

* integrate with travis

* unified formatting across all files
2018-09-13 16:47:55 +01:00
Cilibiu Bogdan
7ac613d72c [ACA-1769] Favorites - refresh after unfavoriting an item (#609)
* favorite toggle action event

* subscribe favorite view to toggle favorite event

* emit event on toggle favorite
2018-09-06 14:09:33 +01:00
Cilibiu Bogdan
a9402bef00 [ACA-1746] Preview - favorite action UI state does not change (#597) 2018-09-03 19:35:27 +01:00
Denys Vuika
fa0d10c419 extra app modules (#596)
* toolbar module

* lazy load Settings

* fix build

* remove duplicate build for e2e

* Revert "remove duplicate build for e2e"

This reverts commit 94b872239b.
2018-09-03 19:28:15 +01:00
Denys Vuika
c916ab4cd1 reusable extensibility lib (#585)
reusable extensibility lib (part 1)
2018-08-29 16:38:44 +01:00
Denys Vuika
f91608fe78 Angular 6 (#556)
* upgrade to angular 6 (with rxjs-compat)

* fix tests

* fix test scripts

* upgrade rxjs to 6.0

* remove rxjs-compat layer

* update unit tests

* restore tests

* context-menu transparent backdrop

* upgrade libs

* changed snackbar locator

* locator as class

* remove locator element reference

* snackbar locators

* wait for snackbar before executing the action button

* expect cdk-overlay before mat-menu-panel condition

* update libs
2018-08-09 11:11:06 +01:00
Denys Vuika
ae8675dfd7 [ACA-1631] more application ngrx actions (#540)
* delete action

* library path evaluator

* extension for sharing files

* upload actions

* delete library

* use extensions for experimental library actions

* unshare nodes

* fix icons and titles

* "create menu" backed by core extension

* support for descriptions, update upload selector

* update code and tests

* support disabled tooltips for navbar

* fix selector

* [ACA-1486] remove double fetch call

* migrate to trashcan actions, element IDs

* cleanup code, remove deprecated directives

* add/remove favorite

* improve rendering performance

* update favorites without reload

* support for adding Sites to favorites

* disable favorites for Libraries for now

* copy action

* move node

* manage versions and permissions

* cleanup code

* toggle info drawer

* card view mode

* use extension layer for favorites toolbar

* fix menu tooltips

* fix 'remove as favorite' tests

* update tests

* test fixes

* fix edit folder for favorites

* fix test

* cleanup favorites layout

* upgrade recent files layout

* update evaluators for shared nodes

* test fixes

* test fixes

* restore recent files layout

* workaround for "favorite" toggle and recent files

* upgrade shared files page

* upgrade files page layout

* fix library evaluator

* workaround for shared files and permissions

* cleanup code

* upgrade search results

* upgrade sidebar and viewer actions

* code cleanup

* code cleanup

* code cleanup
2018-07-31 10:36:26 +01:00