From 86dc874d4b949c36ea11cdafb87919d3401ef1fb Mon Sep 17 00:00:00 2001 From: Jonathan Gillespie Date: Mon, 11 Jun 2018 20:32:55 +0200 Subject: [PATCH] Summer '18 Release (#10) * Upgraded to SimpleMetadata v1.0.0 * Updated all Lightning components to API v43.0 * Updated all references to Apex properties to use PascalCase instead of camelCase * Removed listViewMetadata.cmp & references --- src/aura/currentUser/currentUser.cmp-meta.xml | 2 +- .../environmentMetadata.cmp-meta.xml | 2 +- src/aura/fieldLabel/fieldLabel.cmp | 6 +- src/aura/fieldLabel/fieldLabel.cmp-meta.xml | 2 +- .../fieldMetadata/fieldMetadata.cmp-meta.xml | 2 +- src/aura/fieldMetadata/fieldMetadataHelper.js | 2 +- .../fieldSetMetadata.cmp-meta.xml | 2 +- .../fieldSetMetadataHelper.js | 2 +- src/aura/inputField/inputField.cmp | 34 +-- src/aura/inputField/inputField.cmp-meta.xml | 2 +- src/aura/inputField/inputFieldHelper.js | 14 +- .../listViewMetadata/listViewMetadata.cmp | 24 -- .../listViewMetadata.cmp-meta.xml | 5 - .../listViewMetadataController.js | 5 - .../listViewMetadataHelper.js | 34 --- src/aura/lookup/lookup.cmp | 54 ++-- src/aura/lookup/lookup.cmp-meta.xml | 2 +- src/aura/lookup/lookupController.js | 36 +-- src/aura/lookup/lookupHelper.js | 16 +- src/aura/modal/modal.cmp-meta.xml | 2 +- .../objectPropertyValue.cmp-meta.xml | 2 +- src/aura/outputField/outputField.cmp | 4 +- src/aura/outputField/outputField.cmp-meta.xml | 2 +- src/aura/outputField/outputFieldHelper.js | 12 +- .../queueMetadata/queueMetadata.cmp-meta.xml | 2 +- src/aura/queueMetadata/queueMetadataHelper.js | 6 +- .../recordTypeMetadata/recordTypeMetadata.cmp | 2 +- .../recordTypeMetadata.cmp-meta.xml | 2 +- src/aura/simpleAdmin/simpleAdmin.cmp | 287 ++++++++---------- src/aura/simpleAdmin/simpleAdmin.cmp-meta.xml | 2 +- src/aura/simpleAdmin/simpleAdminController.js | 12 +- src/aura/simpleAdmin/simpleAdminHelper.js | 8 +- src/aura/sobjectLabel/sobjectLabel.cmp | 4 +- .../sobjectLabel/sobjectLabel.cmp-meta.xml | 2 +- src/aura/sobjectMetadata/sobjectMetadata.cmp | 4 +- .../sobjectMetadata.cmp-meta.xml | 2 +- .../sobjectMetadataController.js | 2 +- .../sobjectMetadata/sobjectMetadataHelper.js | 4 +- .../toastNotification.cmp-meta.xml | 2 +- .../toastNotificationEvent.evt-meta.xml | 2 +- src/classes/ContextMetadata.cls | 31 ++ ...-meta.xml => ContextMetadata.cls-meta.xml} | 2 +- src/classes/ContextMetadata_Tests.cls | 48 +++ ...xml => ContextMetadata_Tests.cls-meta.xml} | 2 +- src/classes/EnvironmentMetadata.cls | 72 ++--- src/classes/EnvironmentMetadata.cls-meta.xml | 2 +- src/classes/EnvironmentMetadata_Tests.cls | 64 ++-- .../EnvironmentMetadata_Tests.cls-meta.xml | 2 +- src/classes/FieldMetadata.cls | 162 +++++----- src/classes/FieldMetadata.cls-meta.xml | 2 +- src/classes/FieldMetadata_Tests.cls | 141 +++++---- src/classes/FieldMetadata_Tests.cls-meta.xml | 2 +- src/classes/FieldSetMetadata.cls | 110 +++---- src/classes/FieldSetMetadata.cls-meta.xml | 2 +- src/classes/FieldSetMetadata_Tests.cls | 34 +-- .../FieldSetMetadata_Tests.cls-meta.xml | 2 +- src/classes/LightningMetadataController.cls | 34 +-- .../LightningMetadataController.cls-meta.xml | 2 +- .../LightningMetadataController_Tests.cls | 8 +- ...tningMetadataController_Tests.cls-meta.xml | 2 +- src/classes/LimitsMetadata.cls | 53 ++++ ...s-meta.xml => LimitsMetadata.cls-meta.xml} | 2 +- src/classes/LimitsMetadata_Tests.cls | 73 +++++ ....xml => LimitsMetadata_Tests.cls-meta.xml} | 2 +- src/classes/ListViewMetadata.cls | 67 ---- src/classes/ListViewMetadata_Tests.cls | 64 ---- src/classes/LookupController.cls | 40 +-- src/classes/LookupController.cls-meta.xml | 2 +- .../LookupController_Tests.cls-meta.xml | 2 +- src/classes/QueueMetadata.cls | 83 ++--- src/classes/QueueMetadata.cls-meta.xml | 2 +- src/classes/QueueMetadata_Tests.cls | 40 ++- src/classes/QueueMetadata_Tests.cls-meta.xml | 2 +- src/classes/RecordTypeMetadata.cls | 117 +++---- src/classes/RecordTypeMetadata.cls-meta.xml | 2 +- src/classes/RecordTypeMetadata_Tests.cls | 80 ++--- .../RecordTypeMetadata_Tests.cls-meta.xml | 2 +- src/classes/SObjectMetadata.cls | 147 --------- src/classes/SObjectMetadata_Tests.cls | 108 ------- src/classes/SobjectMetadata.cls | 191 ++++++++++++ src/classes/SobjectMetadata.cls-meta.xml | 5 + src/classes/SobjectMetadata_Tests.cls | 112 +++++++ .../SobjectMetadata_Tests.cls-meta.xml | 5 + src/package.xml | 2 +- 84 files changed, 1258 insertions(+), 1280 deletions(-) delete mode 100644 src/aura/listViewMetadata/listViewMetadata.cmp delete mode 100644 src/aura/listViewMetadata/listViewMetadata.cmp-meta.xml delete mode 100644 src/aura/listViewMetadata/listViewMetadataController.js delete mode 100644 src/aura/listViewMetadata/listViewMetadataHelper.js create mode 100644 src/classes/ContextMetadata.cls rename src/classes/{ListViewMetadata.cls-meta.xml => ContextMetadata.cls-meta.xml} (80%) create mode 100644 src/classes/ContextMetadata_Tests.cls rename src/classes/{SObjectMetadata_Tests.cls-meta.xml => ContextMetadata_Tests.cls-meta.xml} (80%) create mode 100644 src/classes/LimitsMetadata.cls rename src/classes/{ListViewMetadata_Tests.cls-meta.xml => LimitsMetadata.cls-meta.xml} (80%) create mode 100644 src/classes/LimitsMetadata_Tests.cls rename src/classes/{SObjectMetadata.cls-meta.xml => LimitsMetadata_Tests.cls-meta.xml} (80%) delete mode 100644 src/classes/ListViewMetadata.cls delete mode 100644 src/classes/ListViewMetadata_Tests.cls delete mode 100644 src/classes/SObjectMetadata.cls delete mode 100644 src/classes/SObjectMetadata_Tests.cls create mode 100644 src/classes/SobjectMetadata.cls create mode 100644 src/classes/SobjectMetadata.cls-meta.xml create mode 100644 src/classes/SobjectMetadata_Tests.cls create mode 100644 src/classes/SobjectMetadata_Tests.cls-meta.xml diff --git a/src/aura/currentUser/currentUser.cmp-meta.xml b/src/aura/currentUser/currentUser.cmp-meta.xml index 392a2d7..ab250ad 100644 --- a/src/aura/currentUser/currentUser.cmp-meta.xml +++ b/src/aura/currentUser/currentUser.cmp-meta.xml @@ -1,5 +1,5 @@ - 42.0 + 43.0 currentUser diff --git a/src/aura/environmentMetadata/environmentMetadata.cmp-meta.xml b/src/aura/environmentMetadata/environmentMetadata.cmp-meta.xml index 3108041..d6eb887 100644 --- a/src/aura/environmentMetadata/environmentMetadata.cmp-meta.xml +++ b/src/aura/environmentMetadata/environmentMetadata.cmp-meta.xml @@ -1,5 +1,5 @@ - 42.0 + 43.0 environmentMetadata diff --git a/src/aura/fieldLabel/fieldLabel.cmp b/src/aura/fieldLabel/fieldLabel.cmp index 628c418..5bb57a5 100644 --- a/src/aura/fieldLabel/fieldLabel.cmp +++ b/src/aura/fieldLabel/fieldLabel.cmp @@ -5,9 +5,9 @@ See LICENSE file or go to https://github.com/jongpie/LightningComponents for ful - - - + + + \ No newline at end of file diff --git a/src/aura/fieldLabel/fieldLabel.cmp-meta.xml b/src/aura/fieldLabel/fieldLabel.cmp-meta.xml index 5584483..1d85aab 100644 --- a/src/aura/fieldLabel/fieldLabel.cmp-meta.xml +++ b/src/aura/fieldLabel/fieldLabel.cmp-meta.xml @@ -1,5 +1,5 @@ - 41.0 + 43.0 fieldLabel diff --git a/src/aura/fieldMetadata/fieldMetadata.cmp-meta.xml b/src/aura/fieldMetadata/fieldMetadata.cmp-meta.xml index 10dc88d..7e3030e 100644 --- a/src/aura/fieldMetadata/fieldMetadata.cmp-meta.xml +++ b/src/aura/fieldMetadata/fieldMetadata.cmp-meta.xml @@ -1,5 +1,5 @@ - 42.0 + 43.0 fieldMetadata diff --git a/src/aura/fieldMetadata/fieldMetadataHelper.js b/src/aura/fieldMetadata/fieldMetadataHelper.js index 94daa3f..37c7589 100644 --- a/src/aura/fieldMetadata/fieldMetadataHelper.js +++ b/src/aura/fieldMetadata/fieldMetadataHelper.js @@ -7,7 +7,7 @@ var params = event.getParam('arguments'); - var action = component.get('c.getFieldMetadataByName'); + var action = component.get('c.getFieldMetadataByApiName'); action.setParams({ sobjectApiName : sobjectApiName, fieldApiName : fieldApiName diff --git a/src/aura/fieldSetMetadata/fieldSetMetadata.cmp-meta.xml b/src/aura/fieldSetMetadata/fieldSetMetadata.cmp-meta.xml index f41260d..fa7cfa8 100644 --- a/src/aura/fieldSetMetadata/fieldSetMetadata.cmp-meta.xml +++ b/src/aura/fieldSetMetadata/fieldSetMetadata.cmp-meta.xml @@ -1,5 +1,5 @@ - 42.0 + 43.0 fieldSetMetadata diff --git a/src/aura/fieldSetMetadata/fieldSetMetadataHelper.js b/src/aura/fieldSetMetadata/fieldSetMetadataHelper.js index e924dd4..8a8378e 100644 --- a/src/aura/fieldSetMetadata/fieldSetMetadataHelper.js +++ b/src/aura/fieldSetMetadata/fieldSetMetadataHelper.js @@ -7,7 +7,7 @@ var params = event.getParam('arguments'); - var action = component.get('c.getFieldSetMetadataByName'); + var action = component.get('c.getFieldSetMetadataByApiName'); action.setParams({ sobjectApiName : component.get('v.sobjectApiName'), fieldSetApiName : component.get('v.fieldSetApiName') diff --git a/src/aura/inputField/inputField.cmp b/src/aura/inputField/inputField.cmp index a74f195..848cd5b 100644 --- a/src/aura/inputField/inputField.cmp +++ b/src/aura/inputField/inputField.cmp @@ -5,7 +5,7 @@ See LICENSE file or go to https://github.com/jongpie/LightningComponents for ful - + @@ -24,7 +24,7 @@ See LICENSE file or go to https://github.com/jongpie/LightningComponents for ful - +