Commit graph

476 commits

Author SHA1 Message Date
Dillon-Brown
a5bb3c53b1 Update NPM
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:37 +01:00
Dillon-Brown
58a2d236e5 Update Composer
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:37 +01:00
Dillon-Brown
e9efb1d6af Remove default_index_method from tagged services
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:37 +01:00
Jack Anderson
491a6dac41 Remove Leads Subpanel File 2021-03-30 19:22:37 +01:00
Dillon-Brown
9881af09e2 Update assets base path
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:37 +01:00
Clemente Raposo
fd605bfbd6 Change modal-backdrop color
- Change color to match the one on legacy modals
2021-03-30 19:22:37 +01:00
Clemente Raposo
ba49c5a82e Add Record List Modal to relate fields
- Add select record button
-- Add button styling
-- Display button next to chip component
- Open record list modal on button click
-- Open xlarge and scrollable modal
-- Add styling to correctly display scroll
- Add jasmine / karma tests
2021-03-30 19:22:37 +01:00
Clemente Raposo
d609bf2c2e Add Record List Modal
- Use base modal layout
- Use scrm-table
- Add table adapter to handle table configuration
-- Add public method to get record list module
- Add message when not properly configured
- Display loading spinner when loading metadata
- Make record list modal available in app
- Add Karma / Jasmine tests
2021-03-30 19:22:37 +01:00
Clemente Raposo
c455b862fd Add Record List Modal Store
- Use base record list store
- Get metadata for the initialized module
-- Add metadataLoading Observable
- Load data after metadata is returned
- Add store factory
- Split record list meta from listview meta
-- Use record list meta definition
2021-03-30 19:22:36 +01:00
Clemente Raposo
eb56608933 Add metadata store public api to fetch module metadata
- Make getMetatada method public
- Allow retrieving metadata for modules other that the current
-- Containers will need to display views of different modules
2021-03-30 19:22:36 +01:00
Clemente Raposo
9c17802df5 Override main, primary and secondary button colors
- Move color overrides to separate files
- Add full override for main, primary and secondary buttons
2021-03-30 19:22:36 +01:00
Clemente Raposo
860b384051 Use scrm-label in table component
- Use the scrm-label component in template
- Add module to table config to allow using modStrings
- Remove language related observable streams from vm$
- Remove translatedLabel calculation in table adapters
- Remove translatedLabel property from model
2021-03-30 19:22:36 +01:00
Clemente Raposo
e4f35db209 Update gitignore 2021-03-30 19:22:36 +01:00
Dillon-Brown
06a6932496 Fix unit tests
- Update unit test bootstrap pathing
- Move new theme images to new legacy path
- Fix AccountsNewByMonthMock unit test warning
- Change startLegacyApp to follow the correct method signature

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:36 +01:00
Dillon-Brown
19884c2bb0 Move robots.txt and favicon.ico to public dir
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:36 +01:00
Dillon-Brown
e14c076981 Restructure project index to public dir
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:36 +01:00
Clemente Raposo
3e9aaa6675 Fix async karma - jasmine tests
- Fix that use async wait for rendering
-- Make proper usage of async and await
- Add waitUntil util method for tests
2021-03-30 19:22:36 +01:00
Clemente Raposo
fc9fcfd2cf Add record view cancel confirmation modal
- Check if the record is dirty when cancel is clicked
-- Use the formGroup dirty flag
- Launch message modal if dirty
- Only execute cancel if ok button is clicked
- Otherwise stay on page
- Adjust unit / karma tests
2021-03-30 19:22:36 +01:00
Clemente Raposo
8ad9d8474b Mark fields as dirty on changes
- Mark all fields that call formControl setValue as dirty
-- set value does not mark the field as dirty
- The isDirty flag is used to calculate if the record was changed
2021-03-30 19:22:36 +01:00
Clemente Raposo
bf4bce5945 Define main, primary and secondary button colors
- Define main, primary and secondary color variables
- Add main, primary and secondary button styling
2021-03-30 19:22:36 +01:00
Clemente Raposo
b6bbbf26ed Add message modal component
- Add re-usable message modal component
-- Allow for passing a message labelKey
-- Allow for configuring an array of buttons
- Declare component as an entry component
- Add karma/jasmine tests
2021-03-30 19:22:36 +01:00
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