179 Commits

Author SHA1 Message Date
Popovics András
cc1efc9cd6 [ADF-1611] Demo shell responsiveness (#2426)
* Reapplying the unreappliable

* Fix buggy search button

* Fix settings

* Last bit of responsive stylings
2017-10-04 17:54:18 +01:00
Denys Vuika
e3fbe21340 [ADF-1634] floating toolbar for PDF viewer (#2413)
* floating toolbar for PDF viewer

* use routing settings to toggle app menu

* remove dialog viewer

* remove duplicate menu
2017-10-04 09:57:35 +01:00
Denys Vuika
93a87af4a5 [ADF-1623] routing integration for Viewer (#2404)
* routed viewer (demo app)

* toolbar support

* app menu component for demo shell

* navigate back button

* fix unit tests

* improve viewer type detection and rendering

* download button

* automatic pdf rendition, spinners, ui tweaks

* border for pdf pages

* scroll top support

* docs update

* info drawer placeholder
2017-10-03 11:57:23 +01:00
Maurizio Vitale
55a999b492 Revert "Adding some responsiveness to demo shell app (#2408)" (#2410)
This reverts commit 6fa135faf317ed3bd5aa976e8fcbf38930b1a1c2.
2017-10-03 11:54:31 +01:00
Popovics András
6fa135faf3 Adding some responsiveness to demo shell app (#2408) 2017-10-03 11:49:07 +01:00
Popovics András
9f0e40a6e8 [ADF-1583] Fix change detection error (the quick way) (#2396)
* Fix change detection error (the quick way)

* Fix it the second time
2017-09-29 17:49:01 +01:00
Eugenio Romano
70a38acbff Update package json typescript version (#2368)
* update package json typescript version

* fix test problem

* fix minor upload type bug
2017-09-24 16:01:34 +01:00
Eugenio Romano
5c7ccb9b83 fix toolbar and page port view for size in small devices (#2338)
remove old alfresco and activiti prefix
fix login toggle mobile devices
2017-09-14 19:53:46 +01:00
Denys Vuika
aed9532d9d remove unused checkbox from demo shell (#2322) 2017-09-11 17:01:31 +02:00
Vito
4e50c4e2d6 [ADF-1458] revert changes applied for upload button (#2286)
* [ADF-1458] reverting changes from ADF-1458

* [ADF-1458] reapply default value to disabled

* [ADF-1458] revert changes on README

* [ADF-1458] update readme added more check for node permission checking

* [ADF-1458] reverting changes to tests

* [ADF-1458] revert changes for test directive
2017-09-05 15:16:41 +01:00
Vito
1f66cf8c56 [ADF-1458] wrongly named input attribute - renamed disabled into disable (#2270)
* [ADF-1458] wrongly named input attribute - renamed disabled into disable

* [ADF 1458] renamed disabled attribute in disable
2017-09-05 15:16:41 +01:00
Denys Vuika
7f720fda3a fix issues with the icons column in DT/DL (#2277)
* fix issues with the icons column in DT/DL

- fix issue with screen reader label not being translated
- fix issue with column taking the width of the screen reader label

* fix custom selection icon position
2017-09-05 15:16:41 +01:00
Denys Vuika
5f7d690db5 dynamic column layout support (#2260) 2017-09-05 15:16:41 +01:00
Vito
42ed604349 [ADF-1368] Delete a document onto document list update even the file upload dialog (#2267)
* [ADF-1368] adding success action event even form file deleted on document actions

* [ADF-1368] reflecting delete changes on documentlist

* [ADF-1368] added event on upload service when a file is deleted from external source

* [ADF-1368] pinned version beta8 for material

* [ADF-1368] added test cases for success event on documentlist actions delete
2017-09-05 15:16:41 +01:00
Cilibiu Bogdan
07ba8bc15f [ADF-1403] Upload Dialog - Delete files event (#2234)
* remove provisional service

* Error and Delete events

* delete status

* separate upload events

* update demo

* files upload counter and errors

* pendig files icon and action

* remove multiple files error key

* handle cancel files

* fixed component theme

* remove fdescribe

* resolved comments

* throw error
2017-09-05 15:16:41 +01:00
Eugenio Romano
d4e64ac438 [ADF-1434] Theming ADF component (#2228)
* start custom theming adf

* demo shell cleaning

* login mdl cleaning

* uploader mdl cleaning

* prebuilt themes

* theme picker in demo shell

* clean custom colors and mdl

* fix rebase errors

* theming from color style guide

* dev default theme orange purple

* fix color accent inverted in picker

* fix test and add colors classes

* fix tag component theming issues

* fix datatable theming

* add theming guides
2017-09-05 15:16:41 +01:00
Denys Vuika
def3cbaee8 [ADF-1220] Extra data sources for Document List (#2224)
* initial trashcan support and demo page

* use testbed for unit tests

* support for restricting navigation for special data sources

* shared links mode, thumbnail fixes

* update unit tests

* improve Trashcan/SharedLinks columns

* Sites view for document list

* Favorites support for DL, upgrade to latest js-api (alpha)

* recent files support for document list

* support default presets

* readme updates and code fixes

* code fixes

* breadcrumb fixes

- show custom root node for certain scenarios
- fix css issues
- fix crash related to missing "path" property for certain scenarios

* toolbar style fixes

- addresses the shrinking issues with components embedded into toolbar (i.e. breadcrumb)

* i18n support for column presets

* unit tests
2017-09-05 15:16:41 +01:00
Popovics András
ac55704220 [ADF-1188] Upload related components, unify interfaces, deprecate disableWithNoPermission (#2216)
* Deprecate enabled input property in UploadDragAreaComponent

* Refactoring about disabled property

* using adf-node-permission directive, deprecating disableWithNoPermission

* Parent component access from directive

* Upliad drag area component uses the directive also

* Usage of property instead of helper method in the NodePermissionSubjects

* Fix small issues

* Update readme files
2017-09-05 15:16:41 +01:00
Denys Vuika
06e03ad1e9 [ADF-1404] Data Column enhancements for Document List (#2220)
* support 'timeAgo' format for data-column

* file size column type and bug fixes

* readme updates

* location column type

* readme fixes

* update unit tests

* file size pipe tests
2017-09-05 15:16:41 +01:00
Denys Vuika
bb79190209 remove MDL dependencies and old toolbar (#2207) 2017-09-05 15:16:41 +01:00
Denys Vuika
fc46830f7d [ADF-1021] custom tooltip formatter for data columns (#2206)
* custom tooltip formatter for data columns

* readme updates

* unit tests
2017-09-05 15:16:41 +01:00
Denys Vuika
09b213dd04 [ADF-1372] support for tooltips (Upload button) (#2204)
* support for tooltips (Upload button)

* readme update

* update layout to fix the tests

* remove test code
2017-09-05 15:16:41 +01:00
Denys Vuika
8b4261acb3 [ADF-1374] Move download and create folder dialogs to ADF (#2205)
* move create folder and download zip dialogs to core

* code cleanup
2017-09-05 15:16:41 +01:00
Denys Vuika
81712d69d6 fix the build 2017-09-05 15:16:41 +01:00
Denys Vuika
bb53844f92 Viewer enhancements and Viewer Dialog prototype (#2200)
* viewer dialog scaffold

* toolbar divider component

* simple error screen

* material module and tooltips

* show file name in the title

* improved settings, simple image viewer

* flex-based image viewer, minor fixes

* ability to switch between viewers

* single viewer for images

* remove MDL from the Viewer component

* remove hardcoded demo shell layout

remove harcoded assumptions on "header" and "main" elements

* rework text viewer, remove MDL dependency

* upgrade 'unknown format' view, remove MDL

* simplify media viewer layout

* simplify image viewer

* clean pdf viewer

* migrate pdf viewer styles to scss

* rewrite pdf viewer host styles in scss

* fix unit tests and cleanup layout

* file viewer service

* viewer dialog supports downloads if url provided
2017-09-05 15:16:41 +01:00
Popovics András
e6ae21a0bc Files and search component fix with routing support (#2191) 2017-09-05 15:16:41 +01:00
Popovics András
e93a771366 [ADF-459] Copy & move further features (#2187)
* Adding current folder to list by default

* Fix documentlist component's rowFilter and imageResolver

* Adding rowfilter to not show the current node in the list

* Removing unpermitted nodes from the selectable ones (not visually)

* Restore documentlist original behaviour (rowFilter and imageResolver)

* Select event interface works with array from this point on

* Introducing the one and only, mighty Breadcrumb

* Breadcrumb position fix

* Extract hightlight transform functionality from highlight pipe

* Highlight part I.

* Showing breadcrumb with the new redesigned functionality

* Rebase fix

* Error and success callback for the new content actions

* Tests for HighlightDirective

* Update documentation

* Until proper pagination we use this temporary fix

* Fix node unselection on folder change

* Fix accessibility support in dropdown breadcrumb
2017-09-05 15:16:41 +01:00
Denys Vuika
3741ae1c9e remove mdl from "Files" page (demo shell) (#2185) 2017-09-05 15:16:41 +01:00
Denys Vuika
2955d8ec23 adfTimeAgo pipe and demo (#2182) 2017-09-05 15:16:41 +01:00
Denys Vuika
6c1a758561 breadcrumb fixes (#2181) 2017-09-05 15:16:41 +01:00
Denys Vuika
2fe81ceeae fix demo shell issues (lint) 2017-09-05 15:16:41 +01:00
Denys Vuika
0f239a1fa3 [ADF-1300] Download as Zip feature and dialog (#2174)
* Download API demo

- download single selected file
- download multiple selected files as ZIP
- download one or multiple selected folders as ZIP
- download all mixed content as ZIP (file + folder)

* download dialog (first cut)

* code cleanup
2017-09-05 15:16:41 +01:00
Denys Vuika
91ef0b6947 [ASF-1227] new adf-node-permission directive (#2154)
* directive implementation

* update docs

* unit tests and api docs

* code improvements

* simplify code

* update type def and docs
2017-09-05 15:16:41 +01:00
Denys Vuika
c85bf05cb2 replace 'template' with 'ng-template' (#2167) 2017-09-05 15:16:41 +01:00
Eugenio Romano
cfa8a222f0 revert modify after rebase 2017-08-01 11:25:32 +01:00
Popovics András
4fd8bfb875 [ADF-1041] Node picker, first iteration (#2122)
* First try

* Dialog basic functionality

* Search input

* Hammering it together

* Fist working proto for copy

* Fix the tests and tslint errors for a happier world

* Add more tests (and test shells for the future)

* copyNode and moveNode methods

* Copy and move actions for content type

* Extract common parts in favor of using them in folder content type also

* Small fixes

* Copy and Move actions for folders as well

* Style fixes, ui behaviours and tests needed to be written

* Move duplicated search service from documentlist to core

* Use search service from core within the search component

* Fix dialog width

* Update docs

* Tests for node selector

* Change seletionMade event's name to select
2017-08-01 11:25:32 +01:00
Denys Vuika
0717563979 Fix upload bug (demo app) 2017-08-01 11:25:32 +01:00
Eugenio Romano
d573f32640 style permissions fix and add in hasPermission possibility to check t… (#2113)
* style permissions fix and add in hasPermission possibility to check the negate permission
* remove fdescribe in discovery test and add test for negate permissions
2017-08-01 11:25:32 +01:00
Denys Vuika
03f60d910f replace MDL sidebar with material2 menus (#2112)
* replace MDL sidebar with material2 menus

- separate language picker
- separate "more" menu

* toolbar theme picker

* fix toolbar button colors for different themes

* revert the commented out code
2017-08-01 11:25:32 +01:00
Denys Vuika
0b9ab68f22 basic toolbar docs and screenshots (#2108) 2017-08-01 11:25:32 +01:00
Denys Vuika
24bd860d38 [ADF-1115] selection management for DT/DL components (#2100)
* row select/unselect dom events for DT

- new events for datatable
- improved unit tests for empty content placeholders

* improved selection management for DT

* selection management for document list

* fix tests
2017-08-01 11:25:32 +01:00
Vito
d8d2dde96c [ADF-968] Added Site Dropdown component to document list (#2093)
* [ADF-968] added demo project and new component

* [ADF-968] added default option choice

* [ADF-968] - moved site dropdown into documentlist

* [ADF-968] fixed test for new component

* [ADF-968] removed fdescribe for single cases

* [ADF-968] fixed test to check rendering

* [ADF-968] added conversion to Boolean forced by alfresco-js-api

* [ADF-968]- moved site service into core

* [ADF-968] reflected changes on js-api index

* [ADF-968] fixed wrongly merged path from rebase

* [ADF-968] fixed wrongly merged path from rebase

* [ADF-968] fixed import problem on demo shell demo

* [ADF-968] revert changes on package.json

* [ADF-968] removed wrong package-lock

* [ADF-968] applied changes from PR

* [ADF-968] reindented file html
2017-08-01 11:25:32 +01:00
Eugenio Romano
a9142e2ca2 [ADF-1040] Change document list style rows based on permissions model (#2085)
* Change document list style rows based on permissions model

* fix test
2017-08-01 11:25:32 +01:00
Popovics András
6947e04208 [ADF-1038] - Dropddown Breadcrumb component (#2092)
* Update material to beta8

* Install @angular/cdk

* DropdownBreadcrumb component

* Style fixes

* Fix styling issues after rebase

* Fix Material issue in processlist

* Update material again, because of rebase errors... :/

* Fix new tslint rule raised errors
2017-08-01 11:25:32 +01:00
Denys Vuika
4c7baca95c [ADF-993] toolbar improvements (#2090)
* toolbar improvements

- simple "title" property to render toolbar title
- advanced "adf-toolbar-title" element for compound toolbars

* move to SASS and improve styling

* fix divider color
2017-08-01 11:25:32 +01:00
Denys Vuika
f715361f94 [ADF-1092] independent styles for data-table (#2084)
* independent styles for datatable

- datatable (and all derived components) no longer depend on MDL css/js

* readme update
2017-08-01 11:25:32 +01:00
Denys Vuika
ef518ea822 documentation and example (#2081) 2017-08-01 11:25:32 +01:00
Eugenio Romano
8cdb276dc4 [ADF-864] codelyzer form component (#2076) 2017-08-01 11:25:32 +01:00
Denys Vuika
3b8cf27862 [ADF-770] upgrade to md-menu (#2060)
* upgrade to md-menu

- upgrade to md-menu
- fix issue with missing icons
- extend demo shell to show icons for actions
- fix issue with border problems in Firefox
- remove commented out samples in demo shell (there's readme for that instead)

* fix unit tests

* fix tests
2017-08-01 11:25:32 +01:00
Maurizio Vitale
183dd3c990 [ADF-1002] Move the UploadService from the upload to core component and share it with the Process service (#2055)
* use the same upload component between the content and process service

* Create a BaseUploadServe inside the core
The AlfrescoUpload should extend the BaseUpload

* Improve the code

* Move the process service from the demo shell to form component

* Merge [ADF-917] added exlcluded files into app config to prevent special files

* Remove typo

* Fix import

* Fix FileModel import

* Fix Denys comment

* Fix unit test with the new path of UploadService

* Add missing implementation
2017-08-01 11:25:32 +01:00