@salesforce/ui-bundle-template-app-vue-sample-b2x 0.0.0-stage → 13.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +82 -0
- package/README.md +51 -2
- package/dist/.forceignore +15 -0
- package/dist/.husky/pre-commit +4 -0
- package/dist/.prettierignore +11 -0
- package/dist/.prettierrc +17 -0
- package/dist/CHANGELOG.md +5454 -0
- package/dist/README.md +587 -0
- package/dist/config/project-scratch-def.json +13 -0
- package/dist/eslint.config.js +7 -0
- package/dist/force-app/main/default/applications/PropertyManagement.app-meta.xml +33 -0
- package/dist/force-app/main/default/classes/MaintenanceRequestTriggerHandler.cls +69 -0
- package/dist/force-app/main/default/classes/MaintenanceRequestTriggerHandler.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/MaintenanceRequestTriggerHandler_Test.cls +308 -0
- package/dist/force-app/main/default/classes/MaintenanceRequestTriggerHandler_Test.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/TenantTriggerHandler.cls +77 -0
- package/dist/force-app/main/default/classes/TenantTriggerHandler.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/TenantTriggerHandler_Test.cls +100 -0
- package/dist/force-app/main/default/classes/TenantTriggerHandler_Test.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleAuthUtils.cls +68 -0
- package/dist/force-app/main/default/classes/UIBundleAuthUtils.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleAuthUtils_Test.cls +141 -0
- package/dist/force-app/main/default/classes/UIBundleAuthUtils_Test.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleChangePassword.cls +77 -0
- package/dist/force-app/main/default/classes/UIBundleChangePassword.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleForgotPassword.cls +71 -0
- package/dist/force-app/main/default/classes/UIBundleForgotPassword.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleLogin.cls +105 -0
- package/dist/force-app/main/default/classes/UIBundleLogin.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleRegistration.cls +162 -0
- package/dist/force-app/main/default/classes/UIBundleRegistration.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleSocialLoginConfig.cls +145 -0
- package/dist/force-app/main/default/classes/UIBundleSocialLoginConfig.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleSocialLoginConfig_Test.cls +181 -0
- package/dist/force-app/main/default/classes/UIBundleSocialLoginConfig_Test.cls-meta.xml +5 -0
- package/dist/force-app/main/default/cspTrustedSites/GitHub_Avatars.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/cspTrustedSites/Google_Fonts.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/cspTrustedSites/Google_Fonts_Static.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/cspTrustedSites/OpenStreetMap_Nominatim.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/cspTrustedSites/OpenStreetMap_Tiles.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/cspTrustedSites/Open_Meteo_API.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/cspTrustedSites/Pexels_Images.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/cspTrustedSites/Pexels_Videos.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/cspTrustedSites/Unsplash_Images.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/data/Agent__c.json +79 -0
- package/dist/force-app/main/default/data/Application__c.json +124 -0
- package/dist/force-app/main/default/data/Contact.json +44 -0
- package/dist/force-app/main/default/data/KPI_Snapshot__c.json +160 -0
- package/dist/force-app/main/default/data/Lease__c.json +9442 -0
- package/dist/force-app/main/default/data/Maintenance_Request__c.json +514 -0
- package/dist/force-app/main/default/data/Maintenance_Worker__c.json +304 -0
- package/dist/force-app/main/default/data/Notification__c.json +214 -0
- package/dist/force-app/main/default/data/Payment__c.json +1024 -0
- package/dist/force-app/main/default/data/Property_Cost__c.json +484 -0
- package/dist/force-app/main/default/data/Property_Feature__c.json +169 -0
- package/dist/force-app/main/default/data/Property_Image__c.json +148 -0
- package/dist/force-app/main/default/data/Property_Listing__c.json +130 -0
- package/dist/force-app/main/default/data/Property_Management_Company__c.json +70 -0
- package/dist/force-app/main/default/data/Property_Owner__c.json +184 -0
- package/dist/force-app/main/default/data/Property_Sale__c.json +246 -0
- package/dist/force-app/main/default/data/Property__c.json +704 -0
- package/dist/force-app/main/default/data/Tenant__c.json +184 -0
- package/dist/force-app/main/default/data/data-plan.json +110 -0
- package/dist/force-app/main/default/data/prepare-import-unique-fields.js +156 -0
- package/dist/force-app/main/default/digitalExperienceConfigs/vuepropertyrentalapp1.digitalExperienceConfig-meta.xml +8 -0
- package/dist/force-app/main/default/digitalExperiences/site/vuepropertyrentalapp1/sfdc_cms__site/vuepropertyrentalapp1/_meta.json +5 -0
- package/dist/force-app/main/default/digitalExperiences/site/vuepropertyrentalapp1/sfdc_cms__site/vuepropertyrentalapp1/content.json +10 -0
- package/dist/force-app/main/default/digitalExperiences/site/vuepropertyrentalapp1/vuepropertyrentalapp1.digitalExperience-meta.xml +11 -0
- package/dist/force-app/main/default/layouts/Application__c-Application Layout.layout-meta.xml +58 -0
- package/dist/force-app/main/default/layouts/KPI_Snapshot__c-KPI Snapshot Layout.layout-meta.xml +87 -0
- package/dist/force-app/main/default/layouts/Lease__c-Lease Layout.layout-meta.xml +83 -0
- package/dist/force-app/main/default/layouts/Maintenance_Request__c-Maintenance Request Layout.layout-meta.xml +89 -0
- package/dist/force-app/main/default/layouts/Maintenance_Worker__c-Maintenance Worker Layout.layout-meta.xml +66 -0
- package/dist/force-app/main/default/layouts/Payment__c-Payment Layout.layout-meta.xml +88 -0
- package/dist/force-app/main/default/layouts/Property_Cost__c-Property Cost Layout.layout-meta.xml +88 -0
- package/dist/force-app/main/default/layouts/Property_Feature__c-Property Feature Layout.layout-meta.xml +80 -0
- package/dist/force-app/main/default/layouts/Property_Image__c-Property Image Layout.layout-meta.xml +75 -0
- package/dist/force-app/main/default/layouts/Property_Listing__c-Property Listing Layout.layout-meta.xml +92 -0
- package/dist/force-app/main/default/layouts/Property_Management_Company__c-Property Management Company Layout.layout-meta.xml +75 -0
- package/dist/force-app/main/default/layouts/Property_Owner__c-Property Owner Layout.layout-meta.xml +67 -0
- package/dist/force-app/main/default/layouts/Property_Sale__c-Property Sale Layout.layout-meta.xml +87 -0
- package/dist/force-app/main/default/layouts/Property__c-Property Layout.layout-meta.xml +130 -0
- package/dist/force-app/main/default/layouts/Tenant__c-Tenant Layout.layout-meta.xml +58 -0
- package/dist/force-app/main/default/networks/vuepropertyrentalapp.network-meta.xml +60 -0
- package/dist/force-app/main/default/objects/Agent__c/Agent__c.object-meta.xml +66 -0
- package/dist/force-app/main/default/objects/Agent__c/fields/Agent_Type__c.field-meta.xml +37 -0
- package/dist/force-app/main/default/objects/Agent__c/fields/Availability__c.field-meta.xml +37 -0
- package/dist/force-app/main/default/objects/Agent__c/fields/Emergency_Alt__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Agent__c/fields/Language__c.field-meta.xml +42 -0
- package/dist/force-app/main/default/objects/Agent__c/fields/License_Expiry__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Agent__c/fields/License_Number__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Agent__c/fields/Office_Location__c.field-meta.xml +42 -0
- package/dist/force-app/main/default/objects/Agent__c/fields/Territory__c.field-meta.xml +42 -0
- package/dist/force-app/main/default/objects/Application__c/Application__c.object-meta.xml +67 -0
- package/dist/force-app/main/default/objects/Application__c/fields/Employment__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Application__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Application__c/fields/References__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Application__c/fields/Start_Date__c.field-meta.xml +9 -0
- package/dist/force-app/main/default/objects/Application__c/fields/Status__c.field-meta.xml +47 -0
- package/dist/force-app/main/default/objects/Application__c/fields/User__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/KPI_Snapshot__c.object-meta.xml +65 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/fields/Previous_Month_Sales__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/fields/Sales_MoM_Change__c.field-meta.xml +18 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/fields/Snapshot_Date__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/fields/Total_Properties__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/fields/Total_Sales_Amount__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/fields/Total_Sales_Count__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/fields/Units_Available__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/fields/Units_Occupied__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Lease__c/Lease__c.object-meta.xml +67 -0
- package/dist/force-app/main/default/objects/Lease__c/fields/End_Date__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Lease__c/fields/Lease_Status__c.field-meta.xml +36 -0
- package/dist/force-app/main/default/objects/Lease__c/fields/Monthly_Rent__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Lease__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Lease__c/fields/Security_Deposit__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Lease__c/fields/Start_Date__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Lease__c/fields/Tenant__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Lease__c/validationRules/End_Date_After_Start_Date.validationRule-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/Maintenance_Request__c.object-meta.xml +73 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Actual_Cost__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Assigned_Worker__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Completed__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Description__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Est_Cost__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Priority__c.field-meta.xml +32 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Scheduled__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Status__c.field-meta.xml +42 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Tenant_Home__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Type__c.field-meta.xml +62 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/User__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/Maintenance_Worker__c.object-meta.xml +71 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/fields/Certifications__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/fields/Employment_Type__c.field-meta.xml +32 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/fields/Hourly_Rate__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/fields/IsActive__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/fields/Location__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/fields/Phone__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/fields/Rating__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/fields/Type__c.field-meta.xml +57 -0
- package/dist/force-app/main/default/objects/Notification__c/Notification__c.object-meta.xml +67 -0
- package/dist/force-app/main/default/objects/Notification__c/fields/Is_Read__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Notification__c/fields/Message__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Notification__c/fields/Priority__c.field-meta.xml +36 -0
- package/dist/force-app/main/default/objects/Notification__c/fields/Related_Object_Type__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Notification__c/fields/Related_Record_Id__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Notification__c/fields/Title__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Notification__c/fields/Type__c.field-meta.xml +36 -0
- package/dist/force-app/main/default/objects/Notification__c/fields/User__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Payment__c/Payment__c.object-meta.xml +67 -0
- package/dist/force-app/main/default/objects/Payment__c/fields/Amount__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Payment__c/fields/Lease__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Payment__c/fields/Notes__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Payment__c/fields/Payment_Date__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Payment__c/fields/Payment_Method__c.field-meta.xml +41 -0
- package/dist/force-app/main/default/objects/Payment__c/fields/Payment_Status__c.field-meta.xml +36 -0
- package/dist/force-app/main/default/objects/Property_Cost__c/Property_Cost__c.object-meta.xml +67 -0
- package/dist/force-app/main/default/objects/Property_Cost__c/fields/Cost_Amount__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property_Cost__c/fields/Cost_Category__c.field-meta.xml +56 -0
- package/dist/force-app/main/default/objects/Property_Cost__c/fields/Cost_Date__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Property_Cost__c/fields/Description__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property_Cost__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Property_Cost__c/fields/Vendor__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property_Cost__c/validationRules/Cost_Amount_Limit.validationRule-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Feature__c/Property_Feature__c.object-meta.xml +65 -0
- package/dist/force-app/main/default/objects/Property_Feature__c/fields/Description__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Property_Feature__c/fields/Display_on_Listing__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Feature__c/fields/Feature_Category__c.field-meta.xml +51 -0
- package/dist/force-app/main/default/objects/Property_Feature__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Property_Image__c/Property_Image__c.object-meta.xml +65 -0
- package/dist/force-app/main/default/objects/Property_Image__c/fields/Alt_Text__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property_Image__c/fields/Display_Order__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Property_Image__c/fields/Image_Type__c.field-meta.xml +41 -0
- package/dist/force-app/main/default/objects/Property_Image__c/fields/Image_URL__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Image__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Property_Listing__c/Property_Listing__c.object-meta.xml +65 -0
- package/dist/force-app/main/default/objects/Property_Listing__c/fields/Display_Order__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Property_Listing__c/fields/Featured__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Listing__c/fields/Listing_Price__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property_Listing__c/fields/Listing_Status__c.field-meta.xml +41 -0
- package/dist/force-app/main/default/objects/Property_Listing__c/fields/Marketing_Description__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Property_Listing__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Property_Listing__c/fields/Short_Description__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property_Management_Company__c/Property_Management_Company__c.object-meta.xml +65 -0
- package/dist/force-app/main/default/objects/Property_Management_Company__c/fields/Active__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Management_Company__c/fields/Company_Code__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Property_Management_Company__c/fields/Email__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Management_Company__c/fields/Phone__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Management_Company__c/fields/Primary_Contact__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Property_Owner__c/Property_Owner__c.object-meta.xml +65 -0
- package/dist/force-app/main/default/objects/Property_Owner__c/fields/Address__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Owner__c/fields/Email__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Property_Owner__c/fields/Phone__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/Property_Sale__c.object-meta.xml +67 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/fields/Buyer_Tenant__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/fields/Payment_Method__c.field-meta.xml +41 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/fields/Reference_Number__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/fields/Sale_Amount__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/fields/Sale_Date__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/fields/Sale_Status__c.field-meta.xml +36 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/fields/Sale_Type__c.field-meta.xml +51 -0
- package/dist/force-app/main/default/objects/Property__c/Property__c.object-meta.xml +71 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Address__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Agent__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Available_Date__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Bathrooms__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Bedrooms__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Coordinates__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Deposit__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Description__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Features__c.field-meta.xml +38 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Hero_Image__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Lease_Term__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Monthly_Rent__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Parking__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Pet_Friendly__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Sq_Ft__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Status__c.field-meta.xml +37 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Tour_URL__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Type__c.field-meta.xml +37 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Utilities__c.field-meta.xml +38 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Year_Built__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Tenant__c/Tenant__c.object-meta.xml +67 -0
- package/dist/force-app/main/default/objects/Tenant__c/fields/End_Date__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Tenant__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Tenant__c/fields/Start_Date__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Tenant__c/fields/Status__c.field-meta.xml +37 -0
- package/dist/force-app/main/default/objects/Tenant__c/fields/User_Status__c.field-meta.xml +42 -0
- package/dist/force-app/main/default/objects/Tenant__c/fields/User__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/package.xml +24 -0
- package/dist/force-app/main/default/permissionsets/Property_Management_Access.permissionset-meta.xml +713 -0
- package/dist/force-app/main/default/permissionsets/Property_Rental_Guest_User_Access.permissionset-meta.xml +221 -0
- package/dist/force-app/main/default/permissionsets/Tenant_Maintenance_Access.permissionset-meta.xml +141 -0
- package/dist/force-app/main/default/permissionsets/vuepropertyrentalapp_Guest_User_Api_Access.permissionset-meta.xml +25 -0
- package/dist/force-app/main/default/profiles/Property Rental Prospect Profile.profile-meta.xml +299 -0
- package/dist/force-app/main/default/roles/Admin.role-meta.xml +9 -0
- package/dist/force-app/main/default/sharingrules/Property__c.sharingRules-meta.xml +17 -0
- package/dist/force-app/main/default/sites/vuepropertyrentalapp.site-meta.xml +31 -0
- package/dist/force-app/main/default/tabs/Agent__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Application__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/KPI_Snapshot__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Lease__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Maintenance_Request__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Maintenance_Worker__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Notification__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Payment__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Property_Cost__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Property_Feature__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Property_Image__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Property_Listing__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Property_Management_Company__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Property_Owner__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Property_Sale__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Property__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Tenant__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/triggers/MaintenanceRequestTrigger.trigger +5 -0
- package/dist/force-app/main/default/triggers/MaintenanceRequestTrigger.trigger-meta.xml +5 -0
- package/dist/force-app/main/default/triggers/TenantTrigger.trigger +8 -0
- package/dist/force-app/main/default/triggers/TenantTrigger.trigger-meta.xml +5 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/.forceignore +15 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/.graphqlrc.yml +2 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/.prettierignore +9 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/.prettierrc +11 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/README.md +35 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/codegen.yml +95 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/components.json +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/e2e/app.spec.ts +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/eslint.config.js +124 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/index.html +18 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/package.json +76 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/playwright.config.ts +24 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/scripts/get-graphql-schema.mjs +71 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/scripts/rewrite-e2e-assets.mjs +23 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/App.vue +20 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/applications/applicationApi.ts +58 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/applications/query/getUserDetails.graphql +16 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/graphql-operations-types.ts +27823 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/graphqlClient.ts +44 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/leads/leadApi.ts +83 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/maintenanceRequests/maintenanceRequestApi.ts +80 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/maintenanceRequests/query/maintenanceRequests.graphql +60 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/objectSearchService.ts +63 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/propertyDetailGraphQL.ts +80 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/propertyNodeUtils.ts +34 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/propertySearchService.ts +61 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/query/distinctPropertyStatus.graphql +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/query/distinctPropertyType.graphql +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/query/listingById.graphql +29 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/query/propertyAddressesByIds.graphql +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/query/propertyDetailById.graphql +124 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/query/searchProperties.graphql +85 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/query/tenantProperties.graphql +24 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/tenants/tenantApi.ts +28 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/appLayout.vue +104 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/assets/icons/appliances.svg +13 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/assets/icons/electrical.svg +39 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/assets/icons/hvac.svg +78 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/assets/icons/pest.svg +5 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/assets/icons/plumbing.svg +7 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/assets/icons/zen-logo.svg +5 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ErrorBoundary.vue +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/alerts/status-alert.vue +59 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/dashboard/WeatherWidget.vue +267 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/layout/TopBar.vue +90 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/layout/VerticalNav.vue +154 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/layouts/card-layout.vue +30 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/maintenanceRequests/MaintenanceRequestIcon.vue +41 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/maintenanceRequests/MaintenanceRequestList.vue +57 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/maintenanceRequests/MaintenanceRequestListItem.vue +95 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/maintenanceRequests/MaintenanceSummaryDetailsModal.vue +131 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/maintenanceRequests/StatusBadge.vue +41 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/properties/PropertyListingCard.vue +150 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/properties/PropertyListingCardSkeleton.vue +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/properties/PropertyMap.vue +233 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/properties/PropertySearchFilters.vue +331 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/properties/mapTypes.ts +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/properties/propertySearchFilterTypes.ts +11 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/skeletons/SkeletonField.vue +21 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/skeletons/SkeletonListRows.vue +25 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/alert/Alert.vue +21 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/alert/AlertAction.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/alert/AlertDescription.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/alert/AlertTitle.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/alert/index.ts +25 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/avatar/Avatar.vue +23 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/avatar/AvatarFallback.vue +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/avatar/AvatarImage.vue +16 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/avatar/index.ts +3 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/button/Button.vue +33 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/button/index.ts +43 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/card/Card.vue +29 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/card/CardAction.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/card/CardContent.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/card/CardDescription.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/card/CardFooter.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/card/CardHeader.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/card/CardTitle.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/card/index.ts +7 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/checkbox/Checkbox.vue +43 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/checkbox/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/collapsible/Collapsible.vue +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/collapsible/CollapsibleContent.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/collapsible/CollapsibleTrigger.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/collapsible/index.ts +3 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/Dialog.vue +15 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogClose.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogContent.vue +59 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogDescription.vue +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogFooter.vue +33 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogHeader.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogOverlay.vue +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogPortal.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogTitle.vue +26 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogTrigger.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/index.ts +10 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenu.vue +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +51 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuContent.vue +47 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuItem.vue +44 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +30 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuPortal.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +21 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +52 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +26 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuSub.vue +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +37 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +38 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/index.ts +15 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/Field.vue +27 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldContent.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldDescription.vue +24 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldError.vue +48 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldGroup.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldLabel.vue +24 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldLegend.vue +29 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldSeparator.vue +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldSet.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldTitle.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/index.ts +33 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/index.ts +115 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/input/Input.vue +30 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/input/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/label/Label.vue +29 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/label/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/pagination/Pagination.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/pagination/PaginationContent.vue +15 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/pagination/PaginationEllipsis.vue +23 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/pagination/PaginationItem.vue +7 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/pagination/PaginationLink.vue +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/pagination/PaginationNext.vue +29 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/pagination/PaginationPrevious.vue +29 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/pagination/index.ts +7 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/popover/Popover.vue +15 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/popover/PopoverAnchor.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/popover/PopoverContent.vue +44 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/popover/PopoverDescription.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/popover/PopoverHeader.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/popover/PopoverTitle.vue +14 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/popover/PopoverTrigger.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/popover/index.ts +7 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/Select.vue +15 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectContent.vue +65 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectGroup.vue +26 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectItem.vue +41 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectLabel.vue +26 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectScrollDownButton.vue +32 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectScrollUpButton.vue +32 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectSeparator.vue +24 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectTrigger.vue +45 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectValue.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/index.ts +10 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/separator/Separator.vue +33 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/separator/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/skeleton/Skeleton.vue +15 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/skeleton/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/sonner/Sonner.vue +29 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/sonner/index.ts +3 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/spinner/Spinner.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/spinner/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/propertyMapMarkerUtils.ts +156 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/useAsyncData.ts +69 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/useGeocode.ts +35 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/useMaintenanceRequests.ts +36 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/useObjectSearchParams.ts +263 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/usePropertyDetail.ts +46 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/usePropertyMapMarkers.ts +90 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/useReanchorReadingCursor.ts +66 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/useTenantAccess.ts +99 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/useWeather.ts +133 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/api/userProfileApi.ts +107 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/authHelpers.ts +78 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/authenticationConfig.ts +66 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/components/SocialLogin.vue +150 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/composables/useCountdownTimer.ts +246 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/composables/useRetryWithBackoff.ts +112 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/composables/useSessionTimeout.ts +244 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/context/authContext.ts +115 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/footers/FooterLink.vue +47 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/forms/AuthForm.vue +141 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/forms/SubmitButton.vue +57 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/hooks/EmailField.vue +46 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/hooks/PasswordField.vue +48 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/hooks/TextField.vue +106 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/hooks/form.ts +90 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/hooks/formContexts.ts +61 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/layout/CenteredPageLayout.vue +65 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/layouts/AuthAppLayout.vue +24 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/layouts/PrivateRouteLayout.vue +50 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/layouts/TenantRouteLayout.vue +67 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/menu/AuthMenu.vue +143 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/pages/ChangePassword.vue +122 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/pages/ForgotPassword.vue +90 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/pages/Login.vue +106 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/pages/Profile.vue +180 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/pages/Register.vue +135 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/pages/ResetPassword.vue +114 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/sessionTimeout/SessionExpiredAlert.vue +50 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/sessionTimeout/SessionTimeoutValidator.vue +136 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/sessionTimeout/SessionWarningModal.vue +151 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/sessionTimeout/sessionTimeService.ts +142 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/sessionTimeout/sessionTimeoutConfig.ts +82 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/utils/helpers.ts +90 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/utils/queryToSearchParams.ts +33 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/api/apiUtils.ts +56 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/api/orgApiVersionService.ts +37 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/api/searchableContentTypesService.ts +119 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/channelResolver.ts +40 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/cmsQueryFragment.ts +108 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/composables/useSearchableContentTypes.ts +132 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/contentTypeSessionCache.ts +134 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/contentTypeUtils.ts +40 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/index.ts +55 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/parseResponse.ts +65 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/searchChannel.ts +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/types.ts +66 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/registry.ts +38 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/sobject/index.ts +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/sobject/parseResponse.ts +55 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/sobject/queryFragment.ts +141 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/types.ts +103 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/api/distinctValuesService.ts +81 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/api/searchService.ts +136 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/GlobalSearchBox.types.ts +18 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/GlobalSearchBox.vue +73 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/MergedSearchResults.types.ts +24 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/MergedSearchResults.vue +263 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/Search.vue +200 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/SearchResults.vue +99 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/SourceSection.vue +204 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/controls/PaginationControls.vue +180 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/controls/ScopeSelector.vue +91 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/controls/SearchBar.vue +56 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/controls/SortControl.vue +55 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/ActiveFilters.vue +59 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/DefaultFilterField.vue +63 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/DefaultFilterPanel.vue +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/FilterContext.ts +45 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/FilterProvider.vue +23 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/FilterResetButton.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/PicklistField.vue +35 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/inputs/BooleanFilter.vue +47 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/inputs/DateRangeFilter.vue +144 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/inputs/FilterFieldWrapper.vue +23 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/inputs/MultiSelectFilter.vue +95 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/inputs/NumericRangeFilter.vue +117 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/inputs/SelectFilter.vue +44 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/inputs/TextFilter.vue +49 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/results/CmsResultRow.vue +160 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/results/DefaultResultRow.vue +102 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/results/RenderVNode.ts +10 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/results/resolveResultRenderer.ts +41 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/composables/useAsyncData.ts +66 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/composables/useDistinctValues.ts +67 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/composables/useSearch.ts +906 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/config.json +88 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/constants.ts +8 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/index.ts +115 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/loadConfig.ts +14 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/queryBuilder.ts +100 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/types.ts +375 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/utils/debounce.ts +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/utils/fieldUtils.ts +14 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/utils/filterUtils.ts +304 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/utils/sortUtils.ts +34 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/lib/utils.ts +6 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/main.ts +6 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/Application.vue +331 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/Contact.vue +277 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/Dashboard.vue +47 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/Home.vue +535 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/Maintenance.vue +345 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/NotFound.vue +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/PropertyDetails.vue +392 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/PropertySearch.vue +452 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/PropertySearchPlaceholder.vue +53 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/SearchPage.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-01.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-02.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-03.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-04.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-05.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-06.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-07.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-08.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-09.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-10.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-11.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-12.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-13.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-14.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-15.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-16.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-17.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-18.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-19.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-20.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-21.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-22.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-23.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-24.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-25.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/router-utils.ts +32 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/router.ts +153 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/styles/global.css +228 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/test/setup.ts +1 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/utils/geocode.ts +95 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/utils/weather.ts +262 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/tsconfig.json +45 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/tsconfig.node.json +13 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/tsconfig.tsbuildinfo +1 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/ui-bundle.json +7 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/vite-env.d.ts +14 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/vite.config.ts +106 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/vitest-env.d.ts +2 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/vuepropertyrentalapp.uibundle-meta.xml +8 -0
- package/dist/jest.config.js +6 -0
- package/dist/package-lock.json +12554 -0
- package/dist/package.json +46 -0
- package/dist/scripts/apex/hello.apex +10 -0
- package/dist/scripts/gitignore-templates.json +4 -0
- package/dist/scripts/graphql-search.sh +191 -0
- package/dist/scripts/network-senders.mjs +84 -0
- package/dist/scripts/org-setup-config-schema.mjs +132 -0
- package/dist/scripts/org-setup-dev.mjs +114 -0
- package/dist/scripts/org-setup-url.mjs +108 -0
- package/dist/scripts/org-setup-utils.mjs +569 -0
- package/dist/scripts/org-setup-xml.mjs +283 -0
- package/dist/scripts/org-setup.config.json +27 -0
- package/dist/scripts/org-setup.mjs +2545 -0
- package/dist/scripts/sf-project-setup.mjs +103 -0
- package/dist/scripts/soql/account.soql +6 -0
- package/dist/scripts/validate-org-setup-config.mjs +38 -0
- package/dist/sfdx-project.json +12 -0
- package/package.json +49 -4
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { SelectItemProps } from 'reka-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'vue';
|
|
4
|
+
import { computed } from 'vue';
|
|
5
|
+
import { CheckIcon } from '@lucide/vue';
|
|
6
|
+
import { SelectItem, SelectItemIndicator, SelectItemText } from 'reka-ui';
|
|
7
|
+
import { cn } from '@/lib/utils';
|
|
8
|
+
|
|
9
|
+
const props = defineProps<
|
|
10
|
+
SelectItemProps & { class?: HTMLAttributes['class'] }
|
|
11
|
+
>();
|
|
12
|
+
|
|
13
|
+
const delegatedProps = computed(() => {
|
|
14
|
+
const { class: _class, ...rest } = props;
|
|
15
|
+
return rest;
|
|
16
|
+
});
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<SelectItem
|
|
21
|
+
data-slot="select-item"
|
|
22
|
+
v-bind="delegatedProps"
|
|
23
|
+
:class="
|
|
24
|
+
cn(
|
|
25
|
+
`focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0`,
|
|
26
|
+
props.class
|
|
27
|
+
)
|
|
28
|
+
"
|
|
29
|
+
>
|
|
30
|
+
<span
|
|
31
|
+
class="pointer-events-none absolute right-2 flex size-4 items-center justify-center"
|
|
32
|
+
>
|
|
33
|
+
<SelectItemIndicator>
|
|
34
|
+
<CheckIcon class="pointer-events-none" />
|
|
35
|
+
</SelectItemIndicator>
|
|
36
|
+
</span>
|
|
37
|
+
<SelectItemText>
|
|
38
|
+
<slot />
|
|
39
|
+
</SelectItemText>
|
|
40
|
+
</SelectItem>
|
|
41
|
+
</template>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { SelectLabelProps } from 'reka-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'vue';
|
|
4
|
+
import { computed } from 'vue';
|
|
5
|
+
import { SelectLabel } from 'reka-ui';
|
|
6
|
+
import { cn } from '@/lib/utils';
|
|
7
|
+
|
|
8
|
+
const props = defineProps<
|
|
9
|
+
SelectLabelProps & { class?: HTMLAttributes['class'] }
|
|
10
|
+
>();
|
|
11
|
+
|
|
12
|
+
const delegatedProps = computed(() => {
|
|
13
|
+
const { class: _class, ...rest } = props;
|
|
14
|
+
return rest;
|
|
15
|
+
});
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<SelectLabel
|
|
20
|
+
data-slot="select-label"
|
|
21
|
+
v-bind="delegatedProps"
|
|
22
|
+
:class="cn('text-muted-foreground px-1.5 py-1 text-xs', props.class)"
|
|
23
|
+
>
|
|
24
|
+
<slot />
|
|
25
|
+
</SelectLabel>
|
|
26
|
+
</template>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { SelectScrollDownButtonProps } from 'reka-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'vue';
|
|
4
|
+
import { computed } from 'vue';
|
|
5
|
+
import { ChevronDownIcon } from '@lucide/vue';
|
|
6
|
+
import { SelectScrollDownButton } from 'reka-ui';
|
|
7
|
+
import { cn } from '@/lib/utils';
|
|
8
|
+
|
|
9
|
+
const props = defineProps<
|
|
10
|
+
SelectScrollDownButtonProps & { class?: HTMLAttributes['class'] }
|
|
11
|
+
>();
|
|
12
|
+
|
|
13
|
+
const delegatedProps = computed(() => {
|
|
14
|
+
const { class: _class, ...rest } = props;
|
|
15
|
+
return rest;
|
|
16
|
+
});
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<SelectScrollDownButton
|
|
21
|
+
data-slot="select-scroll-down-button"
|
|
22
|
+
v-bind="delegatedProps"
|
|
23
|
+
:class="
|
|
24
|
+
cn(
|
|
25
|
+
`bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4`,
|
|
26
|
+
props.class
|
|
27
|
+
)
|
|
28
|
+
"
|
|
29
|
+
>
|
|
30
|
+
<ChevronDownIcon />
|
|
31
|
+
</SelectScrollDownButton>
|
|
32
|
+
</template>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { SelectScrollUpButtonProps } from 'reka-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'vue';
|
|
4
|
+
import { computed } from 'vue';
|
|
5
|
+
import { ChevronUpIcon } from '@lucide/vue';
|
|
6
|
+
import { SelectScrollUpButton } from 'reka-ui';
|
|
7
|
+
import { cn } from '@/lib/utils';
|
|
8
|
+
|
|
9
|
+
const props = defineProps<
|
|
10
|
+
SelectScrollUpButtonProps & { class?: HTMLAttributes['class'] }
|
|
11
|
+
>();
|
|
12
|
+
|
|
13
|
+
const delegatedProps = computed(() => {
|
|
14
|
+
const { class: _class, ...rest } = props;
|
|
15
|
+
return rest;
|
|
16
|
+
});
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<SelectScrollUpButton
|
|
21
|
+
data-slot="select-scroll-up-button"
|
|
22
|
+
v-bind="delegatedProps"
|
|
23
|
+
:class="
|
|
24
|
+
cn(
|
|
25
|
+
`bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4`,
|
|
26
|
+
props.class
|
|
27
|
+
)
|
|
28
|
+
"
|
|
29
|
+
>
|
|
30
|
+
<ChevronUpIcon />
|
|
31
|
+
</SelectScrollUpButton>
|
|
32
|
+
</template>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { SelectSeparatorProps } from 'reka-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'vue';
|
|
4
|
+
import { computed } from 'vue';
|
|
5
|
+
import { SelectSeparator } from 'reka-ui';
|
|
6
|
+
import { cn } from '@/lib/utils';
|
|
7
|
+
|
|
8
|
+
const props = defineProps<
|
|
9
|
+
SelectSeparatorProps & { class?: HTMLAttributes['class'] }
|
|
10
|
+
>();
|
|
11
|
+
|
|
12
|
+
const delegatedProps = computed(() => {
|
|
13
|
+
const { class: _class, ...rest } = props;
|
|
14
|
+
return rest;
|
|
15
|
+
});
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<SelectSeparator
|
|
20
|
+
data-slot="select-separator"
|
|
21
|
+
v-bind="delegatedProps"
|
|
22
|
+
:class="cn('bg-border -mx-1 my-1 h-px pointer-events-none', props.class)"
|
|
23
|
+
/>
|
|
24
|
+
</template>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { SelectTriggerProps } from 'reka-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'vue';
|
|
4
|
+
import { computed } from 'vue';
|
|
5
|
+
import { ChevronDownIcon } from '@lucide/vue';
|
|
6
|
+
import { SelectIcon, SelectTrigger, useForwardProps } from 'reka-ui';
|
|
7
|
+
import { cn } from '@/lib/utils';
|
|
8
|
+
|
|
9
|
+
const props = withDefaults(
|
|
10
|
+
defineProps<
|
|
11
|
+
SelectTriggerProps & {
|
|
12
|
+
class?: HTMLAttributes['class'];
|
|
13
|
+
size?: 'sm' | 'default';
|
|
14
|
+
}
|
|
15
|
+
>(),
|
|
16
|
+
{ size: 'default' }
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
const delegatedProps = computed(() => {
|
|
20
|
+
const { class: _class, size: _size, ...rest } = props;
|
|
21
|
+
return rest;
|
|
22
|
+
});
|
|
23
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<template>
|
|
27
|
+
<SelectTrigger
|
|
28
|
+
data-slot="select-trigger"
|
|
29
|
+
:data-size="size"
|
|
30
|
+
v-bind="forwardedProps"
|
|
31
|
+
:class="
|
|
32
|
+
cn(
|
|
33
|
+
`border-input data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-lg border bg-transparent py-2 pr-2 pl-2.5 text-sm transition-colors select-none focus-visible:ring-3 aria-invalid:ring-3 data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-4 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,
|
|
34
|
+
props.class
|
|
35
|
+
)
|
|
36
|
+
"
|
|
37
|
+
>
|
|
38
|
+
<slot />
|
|
39
|
+
<SelectIcon as-child>
|
|
40
|
+
<ChevronDownIcon
|
|
41
|
+
class="text-muted-foreground size-4 pointer-events-none"
|
|
42
|
+
/>
|
|
43
|
+
</SelectIcon>
|
|
44
|
+
</SelectTrigger>
|
|
45
|
+
</template>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { SelectValueProps } from 'reka-ui';
|
|
3
|
+
import { SelectValue } from 'reka-ui';
|
|
4
|
+
|
|
5
|
+
const props = defineProps<SelectValueProps>();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<SelectValue data-slot="select-value" v-bind="props">
|
|
10
|
+
<slot />
|
|
11
|
+
</SelectValue>
|
|
12
|
+
</template>
|
package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/index.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as Select } from './Select.vue';
|
|
2
|
+
export { default as SelectContent } from './SelectContent.vue';
|
|
3
|
+
export { default as SelectGroup } from './SelectGroup.vue';
|
|
4
|
+
export { default as SelectItem } from './SelectItem.vue';
|
|
5
|
+
export { default as SelectLabel } from './SelectLabel.vue';
|
|
6
|
+
export { default as SelectScrollDownButton } from './SelectScrollDownButton.vue';
|
|
7
|
+
export { default as SelectScrollUpButton } from './SelectScrollUpButton.vue';
|
|
8
|
+
export { default as SelectSeparator } from './SelectSeparator.vue';
|
|
9
|
+
export { default as SelectTrigger } from './SelectTrigger.vue';
|
|
10
|
+
export { default as SelectValue } from './SelectValue.vue';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { SeparatorProps } from 'reka-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'vue';
|
|
4
|
+
import { computed } from 'vue';
|
|
5
|
+
import { Separator } from 'reka-ui';
|
|
6
|
+
import { cn } from '@/lib/utils';
|
|
7
|
+
|
|
8
|
+
const props = withDefaults(
|
|
9
|
+
defineProps<SeparatorProps & { class?: HTMLAttributes['class'] }>(),
|
|
10
|
+
{
|
|
11
|
+
orientation: 'horizontal',
|
|
12
|
+
decorative: true,
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
const delegatedProps = computed(() => {
|
|
17
|
+
const { class: _class, ...rest } = props;
|
|
18
|
+
return rest;
|
|
19
|
+
});
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<template>
|
|
23
|
+
<Separator
|
|
24
|
+
data-slot="separator"
|
|
25
|
+
v-bind="delegatedProps"
|
|
26
|
+
:class="
|
|
27
|
+
cn(
|
|
28
|
+
'bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px',
|
|
29
|
+
props.class
|
|
30
|
+
)
|
|
31
|
+
"
|
|
32
|
+
/>
|
|
33
|
+
</template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Separator } from './Separator.vue';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import { cn } from '@/lib/utils';
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes['class'];
|
|
7
|
+
}>();
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div
|
|
12
|
+
data-slot="skeleton"
|
|
13
|
+
:class="cn('bg-accent animate-pulse rounded-md', props.class)"
|
|
14
|
+
/>
|
|
15
|
+
</template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Skeleton } from './Skeleton.vue';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { Toaster as Sonner } from 'vue-sonner';
|
|
3
|
+
import type { ToasterProps } from 'vue-sonner';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Renders the toast container. Use with `toast()` from `vue-sonner` for
|
|
7
|
+
* messages with title, description, actions, and variants (success, error,
|
|
8
|
+
* warning).
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* import { toast } from 'vue-sonner';
|
|
12
|
+
* toast('Event has been created', {
|
|
13
|
+
* description: 'Sunday, December 03, 2023 at 9:00 AM',
|
|
14
|
+
* action: { label: 'Undo', onClick: () => {} },
|
|
15
|
+
* });
|
|
16
|
+
* toast.success('Saved!');
|
|
17
|
+
* toast.error('Something went wrong');
|
|
18
|
+
* toast.warning('Please review');
|
|
19
|
+
*/
|
|
20
|
+
// Defaults for position/richColors; callers can still override via props.
|
|
21
|
+
const props = withDefaults(defineProps<ToasterProps>(), {
|
|
22
|
+
position: 'top-right',
|
|
23
|
+
richColors: true,
|
|
24
|
+
});
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<template>
|
|
28
|
+
<Sonner v-bind="props" />
|
|
29
|
+
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import { Loader2Icon } from '@lucide/vue';
|
|
4
|
+
import { cn } from '@/lib/utils';
|
|
5
|
+
|
|
6
|
+
const props = defineProps<{
|
|
7
|
+
class?: HTMLAttributes['class'];
|
|
8
|
+
}>();
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<Loader2Icon
|
|
13
|
+
role="status"
|
|
14
|
+
aria-label="Loading"
|
|
15
|
+
:class="cn('size-4 animate-spin', props.class)"
|
|
16
|
+
/>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Spinner } from './Spinner.vue';
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
import type { PropertySearchNode } from "@/api/properties/propertySearchService";
|
|
7
|
+
import type { MapMarker } from "@/components/properties/mapTypes";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Pure helpers behind `usePropertyMapMarkers`, kept free of runtime `@/` imports
|
|
11
|
+
* so they can be unit tested in a plain node environment.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
export interface LatLng {
|
|
15
|
+
lat: number;
|
|
16
|
+
lng: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** Network/geocoding dependencies, injected so the resolver is testable. */
|
|
20
|
+
export interface MarkerResolverDeps {
|
|
21
|
+
fetchAddresses: (ids: string[]) => Promise<Record<string, string | null | undefined>>;
|
|
22
|
+
geocode: (address: string) => Promise<LatLng | null>;
|
|
23
|
+
getStateZip: (address: string) => string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function getListingName(node: PropertySearchNode): string {
|
|
27
|
+
if (node.Name?.displayValue != null && node.Name.displayValue !== "")
|
|
28
|
+
return node.Name.displayValue;
|
|
29
|
+
if (node.Name?.value != null && node.Name.value !== "") return node.Name.value;
|
|
30
|
+
return "Property";
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function toFiniteNumber(value: unknown): number | null {
|
|
34
|
+
if (typeof value === "number" && Number.isFinite(value)) return value;
|
|
35
|
+
if (typeof value === "string" && value.trim() !== "") {
|
|
36
|
+
const n = Number(value);
|
|
37
|
+
return Number.isFinite(n) ? n : null;
|
|
38
|
+
}
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function getCoordinatesFromNode(node: PropertySearchNode): LatLng | null {
|
|
43
|
+
const lat = toFiniteNumber(node.Coordinates__Latitude__s?.value);
|
|
44
|
+
const lng = toFiniteNumber(node.Coordinates__Longitude__s?.value);
|
|
45
|
+
if (lat == null || lng == null) return null;
|
|
46
|
+
return { lat, lng };
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** Round to 5 decimals (~1 m) so near-duplicate coords group together */
|
|
50
|
+
function key(lat: number, lng: number): string {
|
|
51
|
+
return `${lat.toFixed(5)},${lng.toFixed(5)}`;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* When multiple markers share the same lat/lng, offset them in a small circle so they appear
|
|
56
|
+
* close together but are all visible (no stacking).
|
|
57
|
+
*/
|
|
58
|
+
export function spreadDuplicateMarkers(markers: MapMarker[]): MapMarker[] {
|
|
59
|
+
const groups = new Map<string, MapMarker[]>();
|
|
60
|
+
for (const m of markers) {
|
|
61
|
+
const k = key(m.lat, m.lng);
|
|
62
|
+
const group = groups.get(k);
|
|
63
|
+
if (group) group.push(m);
|
|
64
|
+
else groups.set(k, [m]);
|
|
65
|
+
}
|
|
66
|
+
const result: MapMarker[] = [];
|
|
67
|
+
const radiusDeg = 0.0004; // ~40–50 m so pins sit close but visible
|
|
68
|
+
for (const group of groups.values()) {
|
|
69
|
+
if (group.length === 1) {
|
|
70
|
+
result.push(group[0]);
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
for (let i = 0; i < group.length; i++) {
|
|
74
|
+
const m = group[i];
|
|
75
|
+
const angle = (i / group.length) * 2 * Math.PI;
|
|
76
|
+
result.push({
|
|
77
|
+
...m,
|
|
78
|
+
lat: m.lat + radiusDeg * Math.cos(angle),
|
|
79
|
+
lng: m.lng + radiusDeg * Math.sin(angle),
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return result;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface MarkerPlan {
|
|
87
|
+
/** Unique, non-empty property ids in result order. */
|
|
88
|
+
uniqIds: string[];
|
|
89
|
+
/** Markers for nodes that already carry coordinates. */
|
|
90
|
+
directMarkers: MapMarker[];
|
|
91
|
+
/** Ids with no coordinates (need address lookup + geocoding). */
|
|
92
|
+
missingIds: string[];
|
|
93
|
+
/** id -> display label (first node wins). */
|
|
94
|
+
labels: Map<string, string>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/** Splits results into those with coordinates and those that need geocoding. */
|
|
98
|
+
export function planMarkers(results: readonly PropertySearchNode[]): MarkerPlan {
|
|
99
|
+
const labels = new Map<string, string>();
|
|
100
|
+
for (const node of results) {
|
|
101
|
+
if (!labels.has(node.Id)) labels.set(node.Id, getListingName(node));
|
|
102
|
+
}
|
|
103
|
+
const uniqIds = [...new Set(results.map((r) => r.Id).filter(Boolean))];
|
|
104
|
+
const directMarkers: MapMarker[] = [];
|
|
105
|
+
for (const node of results) {
|
|
106
|
+
if (!uniqIds.includes(node.Id)) continue;
|
|
107
|
+
const coords = getCoordinatesFromNode(node);
|
|
108
|
+
if (coords) {
|
|
109
|
+
directMarkers.push({
|
|
110
|
+
lat: coords.lat,
|
|
111
|
+
lng: coords.lng,
|
|
112
|
+
label: labels.get(node.Id) ?? "Property",
|
|
113
|
+
propertyId: node.Id,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
const missingIds = uniqIds.filter((id) => !directMarkers.some((m) => m.propertyId === id));
|
|
118
|
+
return { uniqIds, directMarkers, missingIds, labels };
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Looks up addresses for `missingIds`, geocodes them (falling back to "State Zip"),
|
|
123
|
+
* and returns all markers (direct + geocoded) with duplicates spread. Rejects if the
|
|
124
|
+
* address lookup or geocoding fails; callers treat that as "no markers".
|
|
125
|
+
*/
|
|
126
|
+
export async function resolveMarkers(
|
|
127
|
+
plan: MarkerPlan,
|
|
128
|
+
deps: MarkerResolverDeps,
|
|
129
|
+
): Promise<MapMarker[]> {
|
|
130
|
+
const idToAddress = await deps.fetchAddresses(plan.missingIds);
|
|
131
|
+
const toGeocode = Object.entries(idToAddress).filter(
|
|
132
|
+
(entry): entry is [string, string] => entry[1] != null && entry[1].trim() !== "",
|
|
133
|
+
);
|
|
134
|
+
if (toGeocode.length === 0) return spreadDuplicateMarkers(plan.directMarkers);
|
|
135
|
+
|
|
136
|
+
const resolved = await Promise.all(
|
|
137
|
+
toGeocode.map(async ([id, address]) => {
|
|
138
|
+
const normalized = address.replace(/\n/g, ", ").trim();
|
|
139
|
+
let coords = await deps.geocode(normalized);
|
|
140
|
+
if (!coords) {
|
|
141
|
+
const stateZip = deps.getStateZip(normalized);
|
|
142
|
+
if (stateZip !== normalized) coords = await deps.geocode(stateZip);
|
|
143
|
+
}
|
|
144
|
+
return coords ? { id, coords } : null;
|
|
145
|
+
}),
|
|
146
|
+
);
|
|
147
|
+
const geocoded: MapMarker[] = resolved
|
|
148
|
+
.filter((r): r is { id: string; coords: LatLng } => r != null)
|
|
149
|
+
.map(({ id, coords }) => ({
|
|
150
|
+
lat: coords.lat,
|
|
151
|
+
lng: coords.lng,
|
|
152
|
+
label: plan.labels.get(id) ?? "Property",
|
|
153
|
+
propertyId: id,
|
|
154
|
+
}));
|
|
155
|
+
return spreadDuplicateMarkers([...plan.directMarkers, ...geocoded]);
|
|
156
|
+
}
|
package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/useAsyncData.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { Ref, WatchSource } from 'vue';
|
|
2
|
+
import { ref, shallowRef, watch } from 'vue';
|
|
3
|
+
|
|
4
|
+
/** Reactive async-data snapshot: current data, loading, and error. */
|
|
5
|
+
export interface AsyncData<T> {
|
|
6
|
+
/** Latest successful result. Kept visible during a refetch. */
|
|
7
|
+
data: Ref<T | null>;
|
|
8
|
+
/** True while a fetch for the current args is in flight. */
|
|
9
|
+
loading: Ref<boolean>;
|
|
10
|
+
/** Error message from the most recent failed fetch, else null. */
|
|
11
|
+
error: Ref<string | null>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Runs an async `fetcher` immediately and again whenever `source` changes,
|
|
16
|
+
* exposing the result as reactive refs. Stale responses (the source changed
|
|
17
|
+
* during a fetch, or the component unmounted) are dropped via a generation
|
|
18
|
+
* counter, so only the latest in-flight request can write state.
|
|
19
|
+
*
|
|
20
|
+
* The Vue analogue of the React `useAsyncData` hook and the Angular
|
|
21
|
+
* `createAsyncData` helper: the state shape (`data` / `loading` / `error`) is
|
|
22
|
+
* identical so pages port across frameworks unchanged.
|
|
23
|
+
*
|
|
24
|
+
* @typeParam TArgs - The reactive arguments passed to the fetcher.
|
|
25
|
+
* @typeParam T - The fetched result type.
|
|
26
|
+
* @param source - Reactive source (ref, getter, or array of them) whose value
|
|
27
|
+
* is forwarded to `fetcher`. Re-runs on change.
|
|
28
|
+
* @param fetcher - Async function producing the data for the current args.
|
|
29
|
+
* @returns Reactive `{ data, loading, error }` refs.
|
|
30
|
+
*/
|
|
31
|
+
export function useAsyncData<TArgs, T>(
|
|
32
|
+
source: WatchSource<TArgs>,
|
|
33
|
+
fetcher: (args: TArgs) => Promise<T>
|
|
34
|
+
): AsyncData<T> {
|
|
35
|
+
const data = shallowRef<T | null>(null);
|
|
36
|
+
const loading = ref<boolean>(true);
|
|
37
|
+
const error = ref<string | null>(null);
|
|
38
|
+
|
|
39
|
+
let generation = 0;
|
|
40
|
+
|
|
41
|
+
const run = (args: TArgs): void => {
|
|
42
|
+
const current = ++generation;
|
|
43
|
+
loading.value = true;
|
|
44
|
+
error.value = null;
|
|
45
|
+
|
|
46
|
+
fetcher(args)
|
|
47
|
+
.then(result => {
|
|
48
|
+
if (current === generation) {
|
|
49
|
+
data.value = result;
|
|
50
|
+
}
|
|
51
|
+
})
|
|
52
|
+
.catch((err: unknown) => {
|
|
53
|
+
console.error(err);
|
|
54
|
+
if (current === generation) {
|
|
55
|
+
error.value =
|
|
56
|
+
err instanceof Error ? err.message : 'An error occurred';
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
.finally(() => {
|
|
60
|
+
if (current === generation) {
|
|
61
|
+
loading.value = false;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
watch(source, args => run(args), { immediate: true, deep: true });
|
|
67
|
+
|
|
68
|
+
return { data, loading, error };
|
|
69
|
+
}
|
package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/useGeocode.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
import { toValue, type MaybeRefOrGetter } from "vue";
|
|
7
|
+
import { geocodeAddress, getStateZipFromAddress, type GeocodeResult } from "@/utils/geocode";
|
|
8
|
+
import { useAsyncData } from "@/composables/useAsyncData";
|
|
9
|
+
|
|
10
|
+
async function geocodeWithFallback(address: string): Promise<GeocodeResult | null> {
|
|
11
|
+
const normalized = address.replace(/\n/g, ", ").trim();
|
|
12
|
+
const result = await geocodeAddress(normalized);
|
|
13
|
+
if (result != null) return result;
|
|
14
|
+
|
|
15
|
+
// Fallback: try state + zip if full address failed
|
|
16
|
+
const stateZip = getStateZipFromAddress(normalized);
|
|
17
|
+
if (stateZip !== normalized) {
|
|
18
|
+
return geocodeAddress(stateZip);
|
|
19
|
+
}
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Geocodes an address (with a state + zip fallback). The Vue analogue of the
|
|
25
|
+
* React `useGeocode` hook: re-runs when the address changes; an empty address
|
|
26
|
+
* resolves to `null` without a request.
|
|
27
|
+
*/
|
|
28
|
+
export function useGeocode(address: MaybeRefOrGetter<string | null | undefined>) {
|
|
29
|
+
const { data: coords, loading } = useAsyncData(
|
|
30
|
+
() => toValue(address)?.trim() ?? "",
|
|
31
|
+
(trimmed) => (trimmed ? geocodeWithFallback(trimmed) : Promise.resolve(null)),
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
return { coords, loading };
|
|
35
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
import { computed, ref } from "vue";
|
|
7
|
+
import {
|
|
8
|
+
searchMaintenanceRequests,
|
|
9
|
+
type MaintenanceRequestNode,
|
|
10
|
+
} from "@/api/maintenanceRequests/maintenanceRequestApi";
|
|
11
|
+
import { ResultOrder } from "@/api/graphql-operations-types";
|
|
12
|
+
import { useAsyncData } from "@/composables/useAsyncData";
|
|
13
|
+
|
|
14
|
+
async function fetchMaintenanceNodes(): Promise<MaintenanceRequestNode[]> {
|
|
15
|
+
const result = await searchMaintenanceRequests({
|
|
16
|
+
first: 50,
|
|
17
|
+
orderBy: { Scheduled__c: { order: ResultOrder.Desc } },
|
|
18
|
+
});
|
|
19
|
+
return (result.edges ?? []).flatMap((e) => (e?.node ? [e.node] : []));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Fetches the Maintenance_Request__c list and exposes `refetch` for after create.
|
|
24
|
+
* The Vue analogue of the React `useMaintenanceRequests` hook; the refetch
|
|
25
|
+
* counter is the watch source, so bumping it re-runs the fetch.
|
|
26
|
+
*/
|
|
27
|
+
export function useMaintenanceRequests() {
|
|
28
|
+
const generation = ref(0);
|
|
29
|
+
const { data, loading, error } = useAsyncData(generation, fetchMaintenanceNodes);
|
|
30
|
+
|
|
31
|
+
const refetch = () => {
|
|
32
|
+
generation.value++;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
return { requests: computed(() => data.value ?? []), loading, error, refetch };
|
|
36
|
+
}
|