From 53d6f153e4ff6dd5337e359204a53c6308ac5fac Mon Sep 17 00:00:00 2001 From: JamesBognar Date: Tue, 17 Mar 2020 15:42:47 -0400 Subject: [PATCH] Added gallery component to property page --- .../aura/PictureCarousel/PictureCarousel.cmp | 21 + .../PictureCarousel.cmp-meta.xml | 5 + .../aura/PictureCarousel/PictureCarousel.css | 57 ++ .../PictureCarouselController.js | 19 + .../PictureCarousel/PictureCarouselHelper.js | 6 + .../PictureCarouselRenderer.js | 6 + .../PictureGalleryCard/PictureGalleryCard.cmp | 30 + .../PictureGalleryCard.cmp-meta.xml | 5 + .../PictureGalleryCard/PictureGalleryCard.css | 21 + .../PictureGalleryCard.design | 3 + .../PictureGalleryCard/PictureGalleryCard.svg | 14 + .../PictureGalleryCardController.js | 19 + .../Property_Record_Page.flexipage-meta.xml | 23 + .../default/profiles/Admin.profile-meta.xml | 878 ++++++++++++++++++ 14 files changed, 1107 insertions(+) create mode 100644 force-app/main/default/aura/PictureCarousel/PictureCarousel.cmp create mode 100644 force-app/main/default/aura/PictureCarousel/PictureCarousel.cmp-meta.xml create mode 100644 force-app/main/default/aura/PictureCarousel/PictureCarousel.css create mode 100644 force-app/main/default/aura/PictureCarousel/PictureCarouselController.js create mode 100644 force-app/main/default/aura/PictureCarousel/PictureCarouselHelper.js create mode 100644 force-app/main/default/aura/PictureCarousel/PictureCarouselRenderer.js create mode 100644 force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.cmp create mode 100644 force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.cmp-meta.xml create mode 100644 force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.css create mode 100644 force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.design create mode 100644 force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.svg create mode 100644 force-app/main/default/aura/PictureGalleryCard/PictureGalleryCardController.js create mode 100644 force-app/main/default/profiles/Admin.profile-meta.xml diff --git a/force-app/main/default/aura/PictureCarousel/PictureCarousel.cmp b/force-app/main/default/aura/PictureCarousel/PictureCarousel.cmp new file mode 100644 index 0000000..99a6c4a --- /dev/null +++ b/force-app/main/default/aura/PictureCarousel/PictureCarousel.cmp @@ -0,0 +1,21 @@ + + + + + + + + + \ No newline at end of file diff --git a/force-app/main/default/aura/PictureCarousel/PictureCarousel.cmp-meta.xml b/force-app/main/default/aura/PictureCarousel/PictureCarousel.cmp-meta.xml new file mode 100644 index 0000000..ffdc4d8 --- /dev/null +++ b/force-app/main/default/aura/PictureCarousel/PictureCarousel.cmp-meta.xml @@ -0,0 +1,5 @@ + + + 44.0 + A Lightning Component Bundle + diff --git a/force-app/main/default/aura/PictureCarousel/PictureCarousel.css b/force-app/main/default/aura/PictureCarousel/PictureCarousel.css new file mode 100644 index 0000000..0cf6a84 --- /dev/null +++ b/force-app/main/default/aura/PictureCarousel/PictureCarousel.css @@ -0,0 +1,57 @@ +.THIS { + position: relative; + width: 100%; + height: 100%; + overflow: hidden; +} + +.THIS * { + box-sizing: border-box; +} + +.THIS .filmstrip { + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + transition: all .5s ease-in-out; + height: 100%; + display: inline-block; + white-space: nowrap; +} + +.THIS .slide { + height: 100%; + display: inline-block; + background-size: cover; + background-repeat: no-repeat; + background-position: center; +} + +.THIS .btn { + position: absolute; +} + +.THIS .btn.next { + top: 44%; + right: 6px; +} + +.THIS .btn.prev { + top: 44%; + left: 6px; +} + +.THIS .btn.fullscreen, +.THIS .btn.close +{ + bottom: 0; + left: 0; +} + +.THIS .btn.x-large .slds-button { + width: 3.5rem; + height: 3.5rem; +} +.THIS .btn.x-large .slds-button__icon { + width: 1.7rem; + height: 1.7rem; +} \ No newline at end of file diff --git a/force-app/main/default/aura/PictureCarousel/PictureCarouselController.js b/force-app/main/default/aura/PictureCarousel/PictureCarouselController.js new file mode 100644 index 0000000..67b4d69 --- /dev/null +++ b/force-app/main/default/aura/PictureCarousel/PictureCarouselController.js @@ -0,0 +1,19 @@ +({ + next: function(component) { + var slideIndex = component.get("v.slideIndex"); + var slides = component.get("v.slides"); + if (slideIndex + 1 < slides.length) { + slideIndex = slideIndex + 1; + component.set("v.slideIndex", slideIndex); + } + }, + + prev: function(component) { + var slideIndex = component.get("v.slideIndex"); + if (slideIndex > 0) { + slideIndex = slideIndex - 1; + component.set("v.slideIndex", slideIndex); + } + } + +}) \ No newline at end of file diff --git a/force-app/main/default/aura/PictureCarousel/PictureCarouselHelper.js b/force-app/main/default/aura/PictureCarousel/PictureCarouselHelper.js new file mode 100644 index 0000000..8f4a313 --- /dev/null +++ b/force-app/main/default/aura/PictureCarousel/PictureCarouselHelper.js @@ -0,0 +1,6 @@ +({ + setSlideWidth: function (component) { + var slideWidth = component.find("gallery").getElement().offsetWidth; + component.set("v.slideWidth", slideWidth); + } +}) \ No newline at end of file diff --git a/force-app/main/default/aura/PictureCarousel/PictureCarouselRenderer.js b/force-app/main/default/aura/PictureCarousel/PictureCarouselRenderer.js new file mode 100644 index 0000000..986894f --- /dev/null +++ b/force-app/main/default/aura/PictureCarousel/PictureCarouselRenderer.js @@ -0,0 +1,6 @@ +({ + afterRender: function (component, helper) { + this.superAfterRender(); + helper.setSlideWidth(component, helper); + } +}) \ No newline at end of file diff --git a/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.cmp b/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.cmp new file mode 100644 index 0000000..40194fe --- /dev/null +++ b/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.cmp @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + +
+
+
+ +
diff --git a/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.cmp-meta.xml b/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.cmp-meta.xml new file mode 100644 index 0000000..ffdc4d8 --- /dev/null +++ b/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.cmp-meta.xml @@ -0,0 +1,5 @@ + + + 44.0 + A Lightning Component Bundle + diff --git a/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.css b/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.css new file mode 100644 index 0000000..465d1d1 --- /dev/null +++ b/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.css @@ -0,0 +1,21 @@ +.THIS * { + box-sizing: border-box; +} + +.THIS .slds-card__body { + height: 340px; + margin-bottom: 0; +} + +.THIS .slds-modal__container { + margin-top: 100px; + height: 90%; + width: 90%; + max-width: initial; +} + +.THIS .slds-modal__close { + position: absolute; + top: 100px; + right: 5%; +} \ No newline at end of file diff --git a/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.design b/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.design new file mode 100644 index 0000000..9e7c300 --- /dev/null +++ b/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.design @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.svg b/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.svg new file mode 100644 index 0000000..a562108 --- /dev/null +++ b/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCard.svg @@ -0,0 +1,14 @@ + + + + image + Created with Sketch. + + + + + + + + + \ No newline at end of file diff --git a/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCardController.js b/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCardController.js new file mode 100644 index 0000000..72073a3 --- /dev/null +++ b/force-app/main/default/aura/PictureGalleryCard/PictureGalleryCardController.js @@ -0,0 +1,19 @@ +({ + doInit : function(component) { + // Hardcoding images in this demo component + component.set("v.slides", [ + 'https://s3-us-west-1.amazonaws.com/sfdc-demo/houses/living_room.jpg', + 'https://s3-us-west-1.amazonaws.com/sfdc-demo/houses/eatinkitchen.jpg', + 'https://s3-us-west-1.amazonaws.com/sfdc-demo/houses/kitchen.jpg' + ]); + }, + + fullScreen : function(component) { + component.set("v.fullScreen", true); + }, + + closeDialog : function(component) { + component.set("v.fullScreen", false); + } + +}) \ No newline at end of file diff --git a/force-app/main/default/flexipages/Property_Record_Page.flexipage-meta.xml b/force-app/main/default/flexipages/Property_Record_Page.flexipage-meta.xml index 600c7d4..e502108 100644 --- a/force-app/main/default/flexipages/Property_Record_Page.flexipage-meta.xml +++ b/force-app/main/default/flexipages/Property_Record_Page.flexipage-meta.xml @@ -6,6 +6,10 @@ collapsed false + + hideChatterActions + false + force:highlightsPanel Replace @@ -14,6 +18,18 @@ + + relatedListComponentOverride + NONE + + + rowsToDisplay + 10 + + + showActionBar + true + force:relatedListContainer Replace @@ -126,6 +142,13 @@ flexipage:tabset + + + animations + true + + PictureGalleryCard + Replace sidebar Region diff --git a/force-app/main/default/profiles/Admin.profile-meta.xml b/force-app/main/default/profiles/Admin.profile-meta.xml new file mode 100644 index 0000000..975308d --- /dev/null +++ b/force-app/main/default/profiles/Admin.profile-meta.xml @@ -0,0 +1,878 @@ + + + + DreamHouse + false + false + + + DreamHouseSampleDataController + true + + + DreamHouseSampleDataControllerTest + true + + false + + false + Broker__c.Email__c + false + + + false + Broker__c.Mobile_Phone__c + false + + + false + Broker__c.Phone__c + false + + + false + Broker__c.Picture_IMG__c + false + + + false + Broker__c.Picture__c + false + + + false + Broker__c.Title__c + false + + + false + Property__c.Address__c + false + + + false + Property__c.Assessed_Value__c + false + + + false + Property__c.Baths__c + false + + + false + Property__c.Beds__c + false + + + false + Property__c.Broker__c + false + + + false + Property__c.City__c + false + + + false + Property__c.Date_Agreement__c + false + + + false + Property__c.Date_Closed__c + false + + + false + Property__c.Date_Contracted__c + false + + + false + Property__c.Date_Listed__c + false + + + false + Property__c.Date_Pre_Market__c + false + + + false + Property__c.Days_On_Market__c + false + + + false + Property__c.Description__c + false + + + false + Property__c.Location__c + false + + + false + Property__c.Picture_IMG__c + false + + + false + Property__c.Picture__c + false + + + false + Property__c.Price__c + false + + + false + Property__c.Record_Link__c + false + + + false + Property__c.RemoveMe__c + false + + + false + Property__c.State__c + false + + + false + Property__c.Status__c + false + + + false + Property__c.Tags__c + false + + + false + Property__c.Thumbnail_IMG__c + false + + + false + Property__c.Thumbnail__c + false + + + false + Property__c.Title__c + false + + + false + Property__c.Zip__c + false + + + Broker__c-Broker Layout + + + Property__c-Property Layout + + + true + true + true + true + true + Broker__c + true + + + true + true + true + true + true + Property__c + true + + + DreamHouseSampleData + true + + + Broker__c + Hidden + + + Property__c + Hidden + + + Sample_Data_Import + Hidden + + Salesforce + + true + ActivateContract + + + true + ActivateOrder + + + true + ActivitiesAccess + + + true + AddDirectMessageMembers + + + true + AllowUniversalSearch + + + true + AllowViewKnowledge + + + true + ApexRestServices + + + true + ApiEnabled + + + true + AssignPermissionSets + + + true + AssignTopics + + + true + AuthorApex + + + true + BulkMacrosAllowed + + + true + CanInsertFeedSystemFields + + + true + CanUseNewDashboardBuilder + + + true + CanVerifyComment + + + true + ChangeDashboardColors + + + true + ChatterEditOwnPost + + + true + ChatterEditOwnRecordPost + + + true + ChatterFileLink + + + true + ChatterInternalUser + + + true + ChatterInviteExternalUsers + + + true + ChatterOwnGroups + + + true + ConnectOrgToEnvironmentHub + + + true + ConsentApiUpdate + + + true + ContentAdministrator + + + true + ContentWorkspaces + + + true + ConvertLeads + + + true + CreateCustomizeDashboards + + + true + CreateCustomizeFilters + + + true + CreateCustomizeReports + + + true + CreateDashboardFolders + + + true + CreateLtngTempFolder + + + true + CreateReportFolders + + + true + CreateTopics + + + true + CreateWorkBadgeDefinition + + + true + CreateWorkspaces + + + true + CustomizeApplication + + + true + DataExport + + + true + DelegatedTwoFactor + + + true + DeleteActivatedContract + + + true + DeleteTopics + + + true + DistributeFromPersWksp + + + true + EditActivatedOrders + + + true + EditBrandTemplates + + + true + EditCaseComments + + + true + EditEvent + + + true + EditHtmlTemplates + + + true + EditKnowledge + + + true + EditMyDashboards + + + true + EditMyReports + + + true + EditOppLineItemUnitPrice + + + true + EditPublicDocuments + + + true + EditPublicFilters + + + true + EditPublicTemplates + + + true + EditReadonlyFields + + + true + EditTask + + + true + EditTopics + + + true + EmailMass + + + true + EmailSingle + + + true + EnableCommunityAppLauncher + + + true + EnableNotifications + + + true + ExportReport + + + true + FieldServiceAccess + + + true + GiveRecognitionBadge + + + true + ImportCustomObjects + + + true + ImportLeads + + + true + ImportPersonal + + + true + InstallPackaging + + + true + LightningConsoleAllowedForUser + + + true + LightningExperienceUser + + + true + ListEmailSend + + + true + ManageAnalyticSnapshots + + + true + ManageAuthProviders + + + true + ManageBusinessHourHolidays + + + true + ManageCMS + + + true + ManageCallCenters + + + true + ManageCases + + + true + ManageCategories + + + true + ManageCertificates + + + true + ManageContentPermissions + + + true + ManageContentProperties + + + true + ManageContentTypes + + + true + ManageCustomPermissions + + + true + ManageCustomReportTypes + + + true + ManageDashbdsInPubFolders + + + true + ManageDataCategories + + + true + ManageDataIntegrations + + + true + ManageDynamicDashboards + + + true + ManageEmailClientConfig + + + true + ManageExchangeConfig + + + true + ManageHealthCheck + + + true + ManageHubConnections + + + true + ManageInteraction + + + true + ManageInternalUsers + + + true + ManageIpAddresses + + + true + ManageKnowledge + + + true + ManageKnowledgeImportExport + + + true + ManageLeads + + + true + ManageLoginAccessPolicies + + + true + ManageMobile + + + true + ManageNetworks + + + true + ManagePackageLicenses + + + true + ManagePasswordPolicies + + + true + ManageProfilesPermissionsets + + + true + ManagePropositions + + + true + ManagePvtRptsAndDashbds + + + true + ManageRecommendationStrategies + + + true + ManageRemoteAccess + + + true + ManageReportsInPubFolders + + + true + ManageRoles + + + true + ManageSearchPromotionRules + + + true + ManageSharing + + + true + ManageSolutions + + + true + ManageSubscriptions + + + true + ManageSynonyms + + + true + ManageUnlistedGroups + + + true + ManageUsers + + + true + MassInlineEdit + + + true + MergeTopics + + + true + ModerateChatter + + + true + ModifyAllData + + + true + ModifyDataClassification + + + true + ModifyMetadata + + + true + NewReportBuilder + + + true + Packaging2 + + + true + PrivacyDataAccess + + + true + RemoveDirectMessageMembers + + + true + ResetPasswords + + + true + RunReports + + + true + ScheduleReports + + + true + SelectFilesFromSalesforce + + + true + SendExternalEmailAvailable + + + true + SendSitRequests + + + true + ShareInternalArticles + + + true + ShowCompanyNameAsUserBadge + + + true + SolutionImport + + + true + SubmitMacrosAllowed + + + true + SubscribeDashboardRolesGrps + + + true + SubscribeDashboardToOtherUsers + + + true + SubscribeReportRolesGrps + + + true + SubscribeReportToOtherUsers + + + true + SubscribeReportsRunAsUser + + + true + SubscribeToLightningDashboards + + + true + SubscribeToLightningReports + + + true + TransactionalEmailSend + + + true + TransferAnyCase + + + true + TransferAnyEntity + + + true + TransferAnyLead + + + true + UseTeamReassignWizards + + + true + UseWebLink + + + true + ViewAllData + + + true + ViewAllUsers + + + true + ViewDataAssessment + + + true + ViewDataCategories + + + true + ViewDataLeakageEvents + + + true + ViewEventLogFiles + + + true + ViewFlowUsageAndFlowEventData + + + true + ViewHealthCheck + + + true + ViewHelpLink + + + true + ViewMyTeamsDashboards + + + true + ViewPublicDashboards + + + true + ViewPublicReports + + + true + ViewRoles + + + true + ViewSetup + + + true + WorkCalibrationUser + +