Commit Graph

59 Commits

Author SHA1 Message Date
pionnegru
427ae8aeff user options extension and rules 2020-01-07 20:31:50 +02:00
Cilibiu Bogdan
1091c6fe86 [ACA-2746] Side Navigation - conditionally render group of items (#1197)
* filter groups based on rule

* test

* update docs
2019-09-06 17:16:43 +03:00
Suzana Dirla
5ffdf75f52 [ACA-1619] automatically show content metadata (#1104)
* [ACA-1619] overwrite the app.config metadata settings only of the 'content-metadata-presets' is non-empty

* [ACA-1619] app config to show automatically all metadata aspects

- not extendable version

* [ACA-1619] app extension to show automatically all metadata aspects

- extendable version
- the app.config setting is overwritten by the one with ids from app.extensions
- could remove completely the content metadata setting from app.json

* [ACA-1619] allow 'disabled' property on content metadata configuration

* [ACA-1619] test content-metadata plugin extension

 - allow 'disabled' property on content metadata configuration

* [ACA-1619] remove test reference to metadata plugin

* [ACA-1619] backwards compatibility for metadata plugin extensions

- add back initial structure (& ids) of content-metadata "custom" preset
- revert change to sample metadata extension plugin

* [ACA-1619] forgotten change

* [ACA-1619] tests
2019-05-17 10:34:20 +01:00
Denys Vuika
d8e3b9ada0 [ACA-2364] support 'canPreview' rule for the Viewer (#1102)
* support `canPreview` rule for the Viewer

* update plint settings

* update prettier settings for plint

* test fixes

* update config
2019-05-10 15:08:00 +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
Cilibiu Bogdan
5bf77dfc81 [ACA-2322] Sidenav - support dynamic components (#1066)
* dynamic components support

* subscribe to sidenav selector

* update module for extension

* sidenav selector

* support dynamic components definistion

* update docs

* stabilise tests

* Update src/app/components/sidenav/sidenav.module.ts

Co-Authored-By: pionnegru <pionnegru@users.noreply.github.com>

* Update src/app/components/sidenav/sidenav.module.ts

Co-Authored-By: pionnegru <pionnegru@users.noreply.github.com>

* rename selector
2019-04-12 10:39:05 +01:00
Cilibiu Bogdan
839c9d0dbb [ACA-2320] Navigation - support store actions (#1052)
* move component into folder

* update module

* add children template references

* clean up styling

* clean up theme

* use content projection

* remove old tests

* button menu component

* expand menu component

* link item component

* resolve action directive

* custom active link directive

* collapse template reference

* expanded template reference

* expansion panel directive

* item template directive

* menu panel directive

* support for ngrx actions

* update side navigation inplementation

* remove unused component

* remove unused styling

* update module

* clean up

* unit tests

* unit tests

* remove unused component

* lint

* remove unused import

* fix test

* add tooltip

* fix text

* fix e2e

* use action route commands

* remove fdescribe

* styles fix

* e2e fix tooltip test

* fix active route when drill down

* update docs
2019-04-05 13:03:40 +01:00
Denys Vuika
672d6a75b1 [ACA-2302] upgrade to ADF 3.2.0 beta (#1049)
* upgrade to ADF 3.2.0 beta 2

* remove deprecated extension classes

* fix some DL style issues

* update class names

* update cell classes

* update viewer

* fix test

* update angular dependencies

* cleanup login component

* update tests

* fix selector

* fix document list cell selector

* fix viewer extension test

* upgrade to beta3

* fix some tests and disable tests until regression is fixed on ADF side

* disable hyperlink e2e for now

* upgrade to latest alpha

* restore tests
2019-03-30 16:48:15 +00:00
Denys Vuika
dd02a8ddd6 support "disabled" rules for Viewer extensions 2019-03-20 15:56:54 +00: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
147924f6c3 fix visibility evaluation for create menu (#1017) 2019-03-15 13:03:43 +00:00
Cilibiu Bogdan
675d57c7e3 menu filter disabled items (#1009) 2019-03-11 07:44:43 +00:00
Denys Vuika
229e23f61d support repository info with app state (#984) 2019-02-28 18:35:11 +00:00
Denys Vuika
9458ce1785 [ACA-2212] allow "edit in office" only for basic auth (#971)
* allow AOS only for basic auth for now

* bump aos extension version
2019-02-25 16:06:17 +00:00
Cilibiu Bogdan
525ba7e73e [ACA-2216] Shared link preview - use extension actions (#964)
* isSharedFileViewer evaluator

* navigation evaluators tests

* update docs

* fallback for SharedLink entry

* shared link view use extensions

* rules for link shared view actions

* dedicated extension definition for shared link action toolbar

* resolve selection and actions

* update tests

* remove un used imports

* nest shared link viewer toolbar actions in to viewer structure
2019-02-24 12:50:23 +00:00
Denys Vuika
da3527b0db unified format for viewer sub-menus (#901)
* unified format for viewer sub-menus

* fix tests

* update prettier
2019-01-20 11:13:55 +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
Cilibiu Bogdan
e020dc4b77 [ACA-1923] Extensions - sort children by order (#850)
* sort children by order

* update cspell
2018-12-04 16:32:49 +00:00
Cilibiu Bogdan
6c821d0fba [ACA-1924] Context menu - filter out disabled children (#838) 2018-11-28 12:25:00 +00:00
Denys Vuika
26b4b0684f [ACA-805] about screen enhancements (#813)
* upgrade to latest adf-extensions

* switch to ADF RepositoryState

* show extensions on About page, i18n fixes

* update docs

* cleanup about styles

* greatly simplify app dependencies rendering

* fix linting

* fix tests
2018-11-20 21:15:05 +02:00
Cilibiu Bogdan
4a420cc9f9 [ACA-20] Favorite Libraries (#789)
* libraries submenu config

* fix item id

* favorite libraries columns

* libraries submenu text

* columns text

* submenu schema

* submenu routes

* role column component

* favorite libraries list api

* register favorite libraries presets

* favorite libraries list component

* register role column component

* dl custom node list is library route

* empty state message icon

* remove custom id

* merge subscriptions

* adapt to child route

* fix component selector

* revert to favorite library route

* sidenav main links font weight

* libraries children contants

* library expand panel method

* update e2e

* libraries children columns consistency

* isLibrary workaround for custom node list

* update isLibrary evaluator

* update e2e

* lint

* Update src/assets/app.extensions.json

Co-Authored-By: pionnegru <pionnegru@users.noreply.github.com>

* Update src/app/extensions/extension.service.ts

Co-Authored-By: pionnegru <pionnegru@users.noreply.github.com>

* Update src/app/extensions/extension.service.ts

Co-Authored-By: pionnegru <pionnegru@users.noreply.github.com>

* Update src/app/extensions/extension.service.ts

Co-Authored-By: pionnegru <pionnegru@users.noreply.github.com>

* Update src/app/extensions/extension.service.ts

Co-Authored-By: pionnegru <pionnegru@users.noreply.github.com>

* use correct preset

* update e2e

* update page titles values

* find child active link

* fix expected value

* update expected

* role column tests

* check if menu is expanded
2018-11-09 13:53:51 +00:00
Suzana Dirla
1e3136332e [ACA-19] Library Search Results (#783)
* [ACA-19] libraries results page

* [ACA-19] libraries search query builder service + trigger action on search option select

* [ACA-19] remove sorting

* [ACA-19] extension - set custom columns for search libraries results

* [ACA-19] add role column

* [ACA-19] adapt text

* [ACA-19] reformat with Prettier

* [ACA-19] fix unit tests

* [ACA-19] reformat with Prettier

* [ACA-19] some unit tests & code cleanup

* [ACA-19] fix navigation

* [ACA-19] remove duplicates

* [ACA-19] unit test
2018-11-08 12:22:09 +00:00
Cilibiu Bogdan
88678852e7 [ACA-20] Sidenav - submenu support (#779)
* transform children data

* update navigation schema for children

* sidenav submenu

* update style

* disable extansion panel animation

* child routerLinkActive template reference

* getApplicationNavigation test

* minimised submenu indicator

* sort navigaton children
2018-11-06 14:08:57 +02:00
Cilibiu Bogdan
1807456a3e [ACA-1956] Library - metadata info (#760)
* library metadata panel

* add infoDrawer component to Library

* set infoDrawer state to false onDestroy

* infoDrawer action

* update actions index

* infoDrawer set state reducer

* register Library metadata component to extensions

* filter infoDrawer tabs

* update library api

* library actions and effects

* refresh library view on update event

* infoDrawer tests

* refactor

* check permission on update

* check permission on update

* lint

* reference selection library

* add parameter type

* full width
2018-10-29 14:09:05 +02:00
Cilibiu Bogdan
ed6d95cc1a remove extra type check (#739) 2018-10-19 19:51:33 +01:00
Cilibiu Bogdan
061836d217 filter children by rule (#735) 2018-10-18 19:21:58 +01:00
Denys Vuika
59841a3b81 filter out disabled column templates 2018-10-15 11:23:01 +01:00
Suzana Dirla
27dcb33891 [ACA-1890][ACA-1798] metadata extension e2e (#711)
* [ACA-1890] make sure that the metadata component uses the extension settings

* [ACA-1798] remove unused imports

* [ACA-1798] test metadata extension

* format with Prettier

* [ACA-1798] changes after code review
2018-10-15 09:33:08 +01:00
Denys Vuika
9dcdacce40 [ACA-1552] extensibility support for document lists (#714)
* dynamic column component

* dynamic columns for files

* support conditional rendering

* libraries preset

* shared files preset

* recent files preset

* favorites preset

* trashcan preset

* load presets from the extension config

* code fixes
2018-10-14 10:21:58 +03:00
Denys Vuika
ba967d0e25 deprecate profile resolver (#686)
* resolve profile at startup

* remove profile resolver, load profile on app ready

* dispose subscriptions
2018-10-03 19:43:01 +01:00
Cilibiu Bogdan
8d9d3dbc45 [ACA-543] Disable Share feature based on repository property (#658)
* add visibility type to navigation schema

* repository data model

* add repository state

* add repository state

* add repository evaluator

* allot navigation elements to called again

* AppRuleContext extends

* repository status resolver

* map repository evaluator

* reevaluate navigation elements

* generic route evaluator

* add route guard on Share

* evaluate guard based on data property

* changed old imports

* add Action suffix

* set state false by default

* tree shakable services to simplify rebase

* fix rebase

* isQuickShareEnabled initial null state

* repository store effects

* repository store actions

* refactored

* refactored
2018-09-28 10:32:36 +01:00
Suzana Dirla
6e9109930b [ACA-1550] Metadata Card configuration from an extension plugin (#668)
* [ACA-1550] use local component for metadata

* [ACA-1550] get component local for metadata properties

* [ACA-1550] test metadata-plugin

* [ACA-1550] overwrite content-metadata settings from app.config.json

* [ACA-1550] fix and remove test content

* [ACA-1550] have the app default metadata config in the app.extensions.json

* [ACA-1550] there can be only one presets for content-metadata

* [ACA-1550] filter disabled

* [ACA-1550] rebase fixes

* [ACA-1550] prettier fix

* [ACA-1550] unit test

* [ACA-1550] manage app config directly from the App Extension Service
2018-09-27 16:32:03 +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
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
Suzana Dirla
e373064fd1 [ACA-1548][ACA-1802] add actions to viewer toolbar via extensions (#637)
* [ACA-1548] rename viewer toolbar extension of More menu

* [ACA-1548][ACA-1802] add actions to the viewer toolbar via extensions
2018-09-17 13:14:27 +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
Denys Vuika
c916ab4cd1 reusable extensibility lib (#585)
reusable extensibility lib (part 1)
2018-08-29 16:38:44 +01:00
Denys Vuika
972b08700f refactor extenstion layer to simplify testing and maintenance (#577)
* refactor extenstion layer to simplify testing and maintenance

* generic extension config

* move loading code to loader
2018-08-20 21:35:28 +01:00
Denys Vuika
e97c8b703c [ACA-1695] viewer extensions (#576)
[ACA-1695] viewer extensions
2018-08-19 15:14:06 +01:00
Denys Vuika
160226094d extensibility docs update (#571)
* docs: custom sidebar tabs

* update docs

* docs update, simplify extension schema

* test fixes
2018-08-17 13:44:01 +01:00
Denys Vuika
89aec91caf [ACA-1646] "dev tools" extension (#567)
* dev tools extension project

* code editor integration

* latest editor, offline setup

* override extension config (session only)

* schema support

* wire external plugins with experimental flag

* update package scripts

* sidebar extensions scaffold

* propagate extension tabs to info drawer

* separate tab components for info drawer

* extensibility for info drawer

* support tab icons
2018-08-16 16:55:06 +01:00
Denys Vuika
8f3030760a extension enhancements (#552)
* default action types

* move context-menu to the correct folder
2018-08-06 11:53:26 +03:00
Cilibiu Bogdan
27977be9a2 [ACA-1614] DocumentList - context menu actions (#544)
* context menu

* make same structure check

* align naming

* lazy loading support

* update module import implementation

* close context menu on Escape

* focus and navigate context menu items

* update with material cdk 'keycodes' name

* changed module folder name
2018-08-03 14:14:19 +03:00
Denys Vuika
a419726cf2 support rule negation (#541) 2018-08-01 12:06:20 +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
Denys Vuika
7509095d20 extensions: purge and delete toolbar actions (#528)
* rework "purge" action

* "restore deleted" action

* fix tests

* cleanup comments

* allow inline action names

* allow inline rules without params

* simplify bulk registration
2018-07-23 09:39:06 +01:00
Denys Vuika
3ab9cee163 [ACA-1597] allow extensions overwrite existing settings (#523)
* merge objects within the arrays

* metadata properties

* code cleanup
2018-07-20 14:46:43 +01:00
Denys Vuika
8c9ffc1160 [ACA-1591] Load extensions from multiple files (#521)
* rework extension service, separate file with config

* improve loading, optional entries

* simplify config and unify content actions

* load and merge multiple files

* improve plugin loading, introduce second demo

* move demo stuff to a plugin

* rework navbar to make it pluggable

* code and naming convention cleanup

* extension schema

* switch off custom navbar group by default

* hotfix for facetQueries issue

* consolidate files, final renames
2018-07-19 20:54:39 +01:00