Commit graph

439 commits

Author SHA1 Message Date
Clemente Raposo
bbbd78ead4 Adjust filter-panel chips display
- Allow setting a class in scrm-panel
- Adjust height in filter panel do display the same as other inputs
- Adjust input width to avoid breaking to new line
- Remove paddings from tag
2021-03-30 19:22:35 +01:00
Clemente Raposo
8eff4e16b7 Add Boolean filter field
- Add boolean filter component
-- Use same implementation as in enums
- Fix karma/jasmine tests
2021-03-30 19:22:35 +01:00
Clemente Raposo
af186a7013 Add RecordList FilterMappers
- Refactor LegacyFilterMapper to allow adding mappers per type
- Add date and date time mappers to convert to proper format
-- Api should receive fields in internal format
-- Legacy search expects user format
-- Convert to user format when calling legacy search

- Add multienum to correctly process criteria
-- Api search criteria receive an array of values
-- For other fields legacy expects just one value not an array
-- For multienum legacy expects an array of values
-- Add mapper to send array of values to legacy for multienums
2021-03-30 19:22:35 +01:00
Clemente Raposo
805c751a99 Adjust Filter panel display
- Add missing view-container class to filter-panel container to:
-- Match left and right padding of other elements
-- Match text size of other elements
- Remove unneeded bottom margin from view-container
2021-03-30 19:22:35 +01:00
Clemente Raposo
61de0618ea Restructure front end filters setup
- Use FieldManager
- Change ValidationManager to support save and filter validation
- Use reactive forms formControl in varchar filter
- Add null checks to datetime formatter
- Add field type to criteria
- Set form control value on field init
- display messages for edit or filter modes
- Validate filter input
- Display warning messages when not valid
- Adjust karma / jasmine tests
2021-03-30 19:22:35 +01:00
Clemente Raposo
0916d14a5c Fix front end type validators
- Add missing empty check to type validators
-- type validators should not apply if empty
- Fix toInternal conversion
2021-03-30 19:22:35 +01:00
Clemente Raposo
f315b3f839 Setup warning messages
- Set them do auto cole after preset timeout
- Allow setting label key
2021-03-30 19:22:35 +01:00
Clemente Raposo
801632388b Add field type validators
- Add validators for specific field types
2021-03-30 19:22:35 +01:00
Clemente Raposo
ba542821c2 Fix field mapping to internal format
- Use user format when building field formControl
- Fix phone formatter regex
- Add edit mode option to currency user formatting
- Cleanup date and datetime formatters
- Fix toInternalFormat processing
2021-03-30 19:22:35 +01:00
Clemente Raposo
bb8d75a38b Temporarily disable date and datetime edit components
- Date and datetime edit compoenents aren't working properly
- Fallback to varchar edit
- Keep date / datetime validations
2021-03-30 19:22:35 +01:00
Clemente Raposo
f0d198141d Add frontend validation structure
- Move FieldManager to a service
- Add formControl to Field interface
- Initialize FormControl in FieldManagerBuild
- Setup field validations when building field
-- Add StandardValidatorFn, StandardValidationErrors interfaces
-- Add Validation Manager
--- Look at fieldDefinitions
--- Look at type definitions
-- Add required validation
- Replace 2way databinding usages with formControl in fields
- Convert input value to internal format, on change
-- Add DataTypeFormatter to BaseField
-- Add and implement toInternalFormat on all formatters
-- Add phone and date formatters
- Display error messages in generic field component
- Call validate up save
-- Only allow saving when all fields are valid
2021-03-30 19:22:35 +01:00
Clemente Raposo
fccb03ca52 Add dynamic labels
- Add dynamic label service
-- Add micro string template parsing
- Add dynamic label component
- Add karma/jasmine tests
2021-03-30 19:22:35 +01:00
Clemente Raposo
2c8b31dd0f Install lodash 2021-03-30 19:22:35 +01:00
Clemente Raposo
4515a53063 Merge editviewdefs into record view definitions
- Read editviewdefs displayParams
-- Read readOnly and required attributes
-- Merge into current definition
- Read detailviewdefs displayPara,s
-- Read readOnly and required attributes
2021-03-30 19:22:35 +01:00
Clemente Raposo
f00a920cfd Remove deprecated submit field component 2021-03-30 19:22:35 +01:00
Clemente Raposo
f22144049f Remove deprecated collection component 2021-03-30 19:22:35 +01:00
Clemente Raposo
bac3d7d0ca Remove deprecated assignedusername component 2021-03-30 19:22:35 +01:00
j.anderson
004247656f Opportunities Chart Implementation 2021-03-30 19:22:35 +01:00
j.anderson
035762ff27 Activities and History Subpanel Changes 2021-03-30 19:22:35 +01:00
balumahendran
af00ddacdd Navbar Styling Changes 2021-03-30 19:22:35 +01:00
Clemente Raposo
bb19193aa1 Use sidebar widgets in list view
- Update list view folder to follow new structure
-- Move list view related components to list view folder
-- Move list view store to list view folder
-- Move list view adapters to list view folder

- Remove old implementation of list view charts
- Use sidebar widgets component

- Add support for declaring list view sidebar widgets
-- Replace ChartDefinitionProvider with ListViewSidebarWidgetDefinitionProvider
-- Add default configuration for list view sidebar widgets

- Add ListQueryDataHandler
-- Allows to easily get the list view query for the criteria set
-- Allows to override query parts and execute it

- Configure leads sidebar widget
- Add LeadsByStatusCount series statistic provider
-- Add unit tests

- Update unit tests
2021-03-30 19:22:35 +01:00
Clemente Raposo
f80c50f72a Remove deprecated button field
- deprecated code.
2021-03-30 19:22:35 +01:00
balumahendran
7282aaa068 Title Header Module Alignment 2021-03-30 19:22:35 +01:00
j.anderson
a778e0e504 Add Contracts Subpanel Implementation 2021-03-30 19:22:35 +01:00
j.anderson
6065c9c22a Campaign subpanel implementation 2021-03-30 19:22:35 +01:00
j.anderson
68a9e70345 Add quotes insight 2021-03-30 19:22:34 +01:00
j.anderson
4db1d03190 Tidy Invoice Subpanel Insight 2021-03-30 19:22:34 +01:00
j.anderson
65a1dd98b5 testing 2021-03-30 19:22:34 +01:00
j.anderson
60a44c9868 Add Default Subpanel Stat 2021-03-30 19:22:34 +01:00
j.anderson
8498cf2f19 Enhance Insights for Custom Relationships 2021-03-30 19:22:34 +01:00
Dillon-Brown
6569b061e8 Fix inspections
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:34 +01:00
j.anderson
9855c638c6 Invoice Subpanel implementation 2021-03-30 19:22:34 +01:00
j.anderson
adca306c93 Add Cases Subpanel Implementation 2021-03-30 19:22:34 +01:00
Dillon-Brown
2114e123d8 Implement skipped tests
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:34 +01:00
Clemente Raposo
ca4b9ced9a Fix Accounts per month chart
- Remove wrong data format parsing
-- now the backend data always comes in db format
2021-03-30 19:22:34 +01:00
Clemente Raposo
2d67efde52 Fix OpportunitySalesStageTimeSpan Statistic
- Remove order_by leftover
-- Caused issues when sql_mode=only_full_group_by is enabled
2021-03-30 19:22:34 +01:00
j.anderson
af75e70c97 Fix infinite loading on subpanel 2021-03-30 19:22:34 +01:00
j.anderson
18453d52aa Fix infinite loading on widget 2021-03-30 19:22:34 +01:00
Dillon-Brown
952d635ff9 Update Composer
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:34 +01:00
Dillon-Brown
d726904517 NPM Update
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:34 +01:00
Dillon-Brown
9dc999d5a5 Fix OpportunitySalesStageTimeSpanTest
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:34 +01:00
Dillon-Brown
2d6128e09e Add compiled CSS files to gitignore
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:34 +01:00
Dillon-Brown
12c9bec2a1 Fix statistics unit tests
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:34 +01:00
j.anderson
ff3c901ff0 Remove days from task completion 2021-03-30 19:22:34 +01:00
j.anderson
420bd2fc85 Change datetime to date for events subpanel 2021-03-30 19:22:34 +01:00
j.anderson
e08f641f31 Add html for label and changes to stats 2021-03-30 19:22:34 +01:00
j.anderson
9fdfb4c73d Add Contact Subpanel implementation 2021-03-30 19:22:34 +01:00
j.anderson
abb164315c Fix Test Files 2021-03-30 19:22:34 +01:00
Clemente Raposo
7477586d03 Send SubPanelActivitiesNextDate insight dates in db format
- Send dates in db format as expected by the frontend
- Fix unit tests
2021-03-30 19:22:34 +01:00
Clemente Raposo
611d7a9999 Fix Record Deletion
- Use Bean retrieve method instead of BeanFactory getBean
-- doesn't work with mark_deleted and related records
2021-03-30 19:22:34 +01:00