77 Commits

Author SHA1 Message Date
Denys Vuika
bca5a783ab
fix eslint warnigs for core project (#7506) 2022-02-17 14:35:33 +00:00
Denys Vuika
b8bb234410
[AAE-7100] ESLint support for ADF Core and DemoShell projects (#7481)
* remove tsconfig.base as per eslint schematics

* add schematics

* upgrade demoshell to eslint

* fix eslint issues for demoshell

* integrate eslint for ADF core and fix some issues

* turn into warn

* fix code

* workaround for Chrome clipboard issue

* exclude e2e tests

* exclude e2e
2022-02-02 18:01:47 +00:00
Denys Vuika
254a6cd9d3
[MNT-22613] Viewer extensibility fixes (#7294)
* viewer fixes and unit tests

* update docs

* fix unit test
2021-10-12 13:57:13 +01:00
Denys Vuika
2bb7586f93
[MNT-22613] Viewer wildcard extension (#7280)
* support viewer wildcard extensions

* update docs

* fix lint

* fix template
2021-10-05 17:01:07 +01:00
Denys Vuika
6f968f7e4a
[AAE-5637] Remove SCSS mixins and use CSS variables (#7250)
* remove default-class mixin and use regular import

* cleanup colors

* remove variables file, fix bugs in animations

* proper ordering of imports, core css vars

* cleanup snackbar and material themes

* tags component

* login component styles

* app login

* toolbar component styles

* breadcrumb styles

* dropdown breadcrumb

* app layout component

* demo shell: files component

* aspect list styles

* content metadata styles

* node selector

* name location cell

* node share dialog

* content type dialog

* folder dialog

* document list

* datatable theme

* pagination theme

* viewer theme

* viewer theme

* user-info theme

* container widget

* dynamic table theme

* form widgets

* form theme

* form renderer

* sidebar menu

* header theme

* info drawer theme

* comment list

* commens and layout container

* sidenav layout

* empty content

* error content

* clipboard theme

* search input

* tooltip card and notification history

* card view theme

* remove unused keys

* add permission dialog

* search and permission dialogs

* version comparison and column themes

* upload drag area and cleanup references

* remove the need for content styles

* insight components

* cleanup insights theme

* process components

* process components

* process cloud themes

* cleanup unsed imports

* cleanup mixins

* update build scripts

* test fixes

* remove fdescribe

* css fixes

* update unit tests
2021-09-29 13:17:05 +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
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
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
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
Eugenio Romano
71cad4c287
[ci:force] auto update node version when media management actions are triggered (#6992) 2021-05-08 22:29:51 +01:00
Urse Daniel
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
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
Vito
46edbafb25
[ACA-4202] - refreshing the preview when version has changed (#6763) 2021-03-02 17:21:45 +00:00
Cilibiu Bogdan
588db58b5d
[ADF-5339] ESCAPE should close opened dialog not the overlay viewer (#6696)
* don't close viewer if Escape was performed on opened dialog

* subscribe only in overlayMode

* tests

* lint

* move logic to method
2021-02-19 16:59:55 +00:00
Eugenio Romano
2071596fe6
[ADF-5331] - Alpha ADF/JS-API update has been successfully created. (#6639)
* remove unused script
refactor the alpha build to use the JS-API in the branch all the time

* use alpha build number

* rewire maxretry

* Delete check-js-api-version.js
2021-02-08 16:00:44 +00:00
Vito
5b603ee018
[ACA-4202] - caching with version number for the url (#6422)
* [ACA-4202] - caching with version number for the url

* [ACA-4202] - fixed image caching when file with the same name is versioned

Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local>
2020-12-04 17:29:16 +00:00
Denys Vuika
a3fabf632c
[ACA-2176] prevent Esc click event bubble into the Viewer (#6378)
* prevent Esc click event bubble into the Viewer

* fix tests
2020-12-02 13:48:44 +00:00
davidcanonieto
6977df169a
[ADF-4481] Fix Viewer peview for unsupported new versions (#6101)
* [ADF-4481] Fix Viewer peview for unsupported new versions

* Update img-viewer.component.ts
2020-09-08 17:28:46 +01:00
Urse Daniel
bf7a0902c6
[ADF-5209] When viewing a previous version, the title is not displayed correctly. (#5926)
* set the file title if the versionId is present.

* test if file title is set when changing the versionId.
2020-07-30 10:19:02 +01:00
Urse Daniel
b331c1422d
[ACA-100] FIX - View a previous version (#5915)
* small fix, forgot to add the line when creating the last branch

* fixing the wrong parameter passing

* small fix, forgot to add the line when creating the last branch

* fixing the wrong parameter passing

* ACA-100: Exclude preview of a previous version e2e tests until ADF starts using ACS 7+

* ACA-100: Change protractor.conf.js path in Jasmine Opts

* fixing the wrong parameter passing

Co-authored-by: kristian <kristian.dimitrov@alfresco.com>
2020-07-28 13:33:20 +01:00
Urse Daniel
7c09fb1fb9
added functionality to view a previous version (#5913) 2020-07-27 09:29:29 +01:00
dhrn
3f45e7b35d
[ACA-2368] UI Issues while editing Metadata in the Preview Page #1091 (#5562)
* [ACA-2368] UI Issues while editing Metadata in the Preview Page #1091

* tslint fxed

* [ACA-2368] UI Issues while editing Metadata in the Preview Page #1091

* * revert commits

* Revert "* revert commits"

This reverts commit fd0e86084cc4ac14870d9008400528f63a681c59.

* * unit test added
2020-03-25 11:06:40 +00:00
Eugenio Romano
ad9aaf2b40
add mp3 support mediatype viewer/thumbnail blob (#5357) 2020-01-07 16:13:49 +01:00
Cilibiu Bogdan
a60fb744c4 [ADF-4965] Viewer - pass navigate before and next event (#5166)
* pass event

* update docs
2019-10-17 19:25:54 +01:00
Denys Vuika
edc0945f39 fix "ng lint" command (#5012)
* update to latest js-api

* fix the "ng lint" command

* fix linting issues

* fix lint issues

* lint fixes

* code fixes

* fix html

* fix html

* update tests

* test fixes

* update tests

* fix tests and api

* fix code
2019-08-29 16:35:30 +01:00
Eugenio Romano
f04c135377
Fix e2e test (#4981)
* fix core viewer

* increase rendition retry

* sso refresh before test

* general fix test

* try use last proxy

* avoid use proxy

* remove proxy

* fix setting tests

* fix share and sso test

* fix lint exclude

* fix sso

* fix some process services cloud e2e

* fix sso download

* exclude sso test

* fix cloud

* add logout content service test

* add logout core

* add logout search

* redefine global before all

* separate protracotr method

* try

* try multiple attempt before all

* add prefix group and users

* add prefix group and users

* add prefix group and users

* rexecute sso test

* fix process service visibility e2e

* split SSO login test

* fix SSO download

* fix SSO download

* fix some cloud issues

* fix some cloud issues

* fix some cloud issues

* share file fix cs

* fix cloud test
2019-08-08 17:52:45 +02:00
arditdomi
dc450a3af2 [ADF-4480] Change Viewer behaviour when opening unsupported files (#4922)
* [ADF-4480] Change Viewer behaviour when opening unsuported files

* [ADF-4480] Fix identations

* [ADF-4480] Make timeout of rendition retry constant
2019-07-13 11:35:21 +01:00
Cilibiu Bogdan
ccdcba8778 [ADF-4424] Pdf Viewer - password dialog does not close when pressing Escape (#4622)
* return to previous page on close

* update e2e

* [ADF-4424] Improve PreviousRouteService to use it in pdfViewer

* change previous Url logic

* remove navigation logic

* remove test

* Update pdfViewer.component.spec.ts

* back button logic for viewer outlet

* unit tests

* remove fdescribe

* remove unused service

* e2e

* return to location

* remove click filter step

* remove unnecessary test steps

* remove un existen export

* unify preview between PS and CS in demo shell

* fix dispalyname property
2019-07-11 17:33:15 +01:00
davidcanonieto
181cee72d6 [ADF-4364] Fix Back button action on Viewer Component (#4613)
* [ADF-3364] Fix Back button action on Viewer Component

* [ADF-4364] Fix Module providers

* [ADF-4364] Add unit tests

* [ADF-4364] Fix unit tests

* [ADF-4364] Fix lazy loading module of Viewer component
2019-04-18 11:34:16 +02:00
Denys Vuika
a7a48e8b2b enable prefer-const rule for tslint, fix issues (#4409)
* enable prefer-const rule for tslint, fix issues

* Update content-node-selector.component.spec.ts

* Update content-node-selector.component.spec.ts

* fix const

* fix lint issues

* update tests

* update tests

* update tests

* fix code

* fix page class
2019-03-27 09:55:30 +00:00
Denys Vuika
26c5982a1a extensibility improvements (#4484)
* add missing interfaces to extensions library

* separate rule service

* api enhancements

* fix test

* improve APIs
2019-03-27 09:54:50 +00:00
Eugenio Romano
3136580bba
[ADF-4225] Viewer extension accept multiple file type (#4427)
* viewer extension can target multiple types.

* fix lint
2019-03-12 21:18:09 +00:00
Eugenio Romano
bda7e07b52
[ADF-4125] simplify extension load in extension module (#4214)
* add extension load in extension module

* add viewer extensions

* fix license header

* fix node passed in the viewer extension

* fix node passed in the viewer extension

* startup factory extension

* startup factory extension

* fix script

* fix beta tag build

* fix build

* fix build

* refactoring configuration files

* extension using map

* fix build

* fix config

* fix test

* fix test
2019-02-22 14:19:41 +00:00
Eugenio Romano
c55cba5514
license header update 2019 (#4300) 2019-02-12 01:18:43 +00:00
Eugenio Romano
7d061b2c11
[ADF-1873] Remove all deprecated code from ADF (#4145)
* remove deprecated code part 1

* remove deprecation step 2

* fix spellcheck

* fix

* fix lint

* fix not used import

* remove deprecation

* fix test first part after remove deprecation

* fix test

* fix sidebar demo shell
2019-01-15 15:36:01 +00:00
Eugenio Romano
3ef7d3b7ea [ADF-] update library to use new js-api 3.0.0 (#4097) 2019-01-08 16:29:30 +00:00
davidcanonieto
7197e1e13a [ADF-1443] Refactor Download directive (#4028)
* [ADF-1443] Refactor Download directive

* [ADF-1443] Node Download Directive now accepts single node and an array as input

* [ADF-1443] Fix Unit tests

* [ADF-1443] Fix unit test related to viewer component
2018-12-05 16:39:21 +00:00
Eugenio Romano
34a30c0f14
tslint arrow-parens rule (#4003) 2018-11-23 01:06:56 +00:00
Eugenio Romano
58f61fd836
[ADF-3643] Viewer shows both sidebar icons (#3852)
* Viewer shows both sidebar icons

* update readme

* add config editor for start-process
2018-10-03 11:29:55 +01:00
Andy Stark
431bde3ddf [ADF-3587] Fixed doc comment problems (#3822)
* [ADF-3587] Fixed missing docs for accessor properties

* [ADF-3587] Fixed badly formed doc comments with deprecated tag

* [ADF-3587] Fixed linting issue with doc comment
2018-09-25 21:45:16 +01:00
Eugenio Romano
897a557afa
[ADF-3332][ADF-3352] Add property e2e test and leftsidebar viewer (#3814)
* new viewer test
left sidebar
fix height width no overlay viewer

* fix lint and failing e2e

* missing semi column

* fix test

* fix template

* documentation
2018-09-21 11:37:40 +01:00
Denys Vuika
9a9c3dbfbc [ADF-3357] text viewer fixes (#3800)
* text viewer fixes

* allow viewing 'css' and 'md' files as text
2018-09-18 10:49:35 +01:00
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
Denys Vuika
c5c1aa9ecb [ADF-3443] basic printing support (#3777)
* printing service

* code fixes

* update code
2018-09-12 13:04:43 +01:00
Vito
35e1563fde [ADF-3324] added redirect to 404 page when the shared link is invalid (#3749)
* [ADF-3324] added redirect to 404 page when the shared link is invalid

* [ADF-3324] removed fdescribe

* [ADF-3324] fixed documentation adding the new event
2018-09-10 11:10:44 +01:00
Eugenio Romano
35bcd80106 fix title viewer issues of priority between name display and real name 2018-08-14 15:42:59 +01:00
Eugenio Romano
163ff13000 build fix 2018-08-14 15:42:58 +01:00
Eugenio Romano
6b8bd4685c fix mat datetime picker regression 2018-08-14 15:42:57 +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
Suzana Dirla
ee8151d50d [ADF-3324] Preview - unshared file breaks preview (#3580) 2018-08-14 15:42:19 +01:00