Commit graph

455 commits

Author SHA1 Message Date
Clemente Raposo
690162a2ce Add modal button group component
Component is meant to by used by the modals that have buttons
Allows to implement a dynamic way to declare modal buttons.
Each button onClick call back receives the activeModal.
Allowing to close or dismiss the modal on the onClick callback

- Re-use scrm-button-group
- Extend button group and button interfaces
-- Override the onClick handler to receiving the active modal
-- Inject the active modal to the button callbacks
- Allow for a configurable breakpoint using the config:
-- ui.modal_buttons_collapse_breakpoint
- Add karma/jasmine tests
2021-03-30 19:22:36 +01:00
Clemente Raposo
b82d7097b7 Add Base Modal Component
- Refactor exiting modal component
- Add component with base modal layout
-- Support adding modal body and footer using content projection
-- Supports declaring close button
- Add karma/jasmine tests
2021-03-30 19:22:36 +01:00
Clemente Raposo
5f619d43de Button component adjustments
- Move button interface to app-common module
- Add support for defining a labelKey
-- Translate the label using scrm-label
- Add support for defining a titleKey
- Declare type for onClick callback function
- Add ButtonUtils service
2021-03-30 19:22:36 +01:00
Clemente Raposo
41f6444a1b Move modal component
- Add structure to allow grouping modal components
- Move modal component to subfolder
-- Modal is now going to serve as the base generic modal
-- Concept similar to the panel component
2021-03-30 19:22:36 +01:00
Clemente Raposo
c79fae5473 Move classic-view component to views
- Move view, as it is used by the router as a view
- Move classic-view specific services
- Remove api.classic-view.get.ts and classic-view.facade.ts
-- Deprecated
-- The approach of getting the html from the api wasn't followed
2021-03-30 19:22:36 +01:00
Clemente Raposo
d1534850fb Move login component to views
- Login component is used by the router like other views
-- Though not a view according to the SuiteCRM concept of a view
- Fix eslint inspection errors
2021-03-30 19:22:36 +01:00
Jack Anderson
e9b9819e7d Accounts Chart Implementation 2021-03-30 19:22:36 +01:00
Balu Mahendran
0ca4b558d5 Filter Panel Alignment space changes 2021-03-30 19:22:36 +01:00
Clemente Raposo
4f8d734e58 Fix DaysUntilDueTask statistic unit tests
- Tests failed due to difference in timezones conversion
2021-03-30 19:22:36 +01:00
Clemente Raposo
d4493e5759 Add relate edit component
- Add relate edit component
-- Add standard relate handling to BaseRelateComponent

- Re-structure relate fields handling
-- Store the object instead of just the name
-- Map valueObject to the proper attributes when saving
2021-03-30 19:22:36 +01:00
Clemente Raposo
9af33c927b Add support for saving relate fields
- Convert relate field nested object to legacy format
- Properly map relate id fields to bean
2021-03-30 19:22:36 +01:00
Clemente Raposo
bfed5ae78e Fix editview metadata loading for Users module
- Properly load the legacy app and router
-- Fixes user module metadata loading
- Adjust unit tests
2021-03-30 19:22:36 +01:00
Dillon-Brown
544adba1b3 Upgrade Apollo
- Added @ApolloClient.
- Upgraded Apollo-Client to V3.
- Upgraded Apollo-Angular to V2.

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:36 +01:00
Dillon-Brown
d43b1ab2df NPM Update
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:36 +01:00
Clemente Raposo
3368a63948 Display warning message in record save validation
- Display warning messages for record save validations failures
2021-03-30 19:22:36 +01:00
Clemente Raposo
33c9d0553a Add Enum and Multienum filters
- Add multienum filter component
- Configure enum and dynamic enums to also use multi enum
- Fix filter criteria mapping for multienums
- Adjust karma/jasmine tests
- remove unstable karma/jasmine tests
2021-03-30 19:22:35 +01:00
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