From f2100986a1fc887f5b3250f062e0a0bdf3cee99d Mon Sep 17 00:00:00 2001 From: Himanshu Singh Date: Fri, 23 Aug 2024 14:33:33 +0530 Subject: [PATCH] Describe your feature changes --- force-app/main/default/lwc/.eslintrc.json | 14 - .../lwc/accountListLWC/accountListLWC.html | 13 - .../lwc/accountListLWC/accountListLWC.js | 44 --- .../accountListLWC/accountListLWC.js-meta.xml | 5 - .../lwc/accountLocator/accountLocator.html | 15 - .../lwc/accountLocator/accountLocator.js | 12 - .../accountLocator/accountLocator.js-meta.xml | 10 - .../default/lwc/accountMap/accountMap.html | 7 - .../main/default/lwc/accountMap/accountMap.js | 40 --- .../lwc/accountMap/accountMap.js-meta.xml | 5 - .../lwc/accountSearch/accountSearch.html | 13 - .../lwc/accountSearch/accountSearch.js | 29 -- .../accountSearch/accountSearch.js-meta.xml | 8 - .../lwc/apiDecorator/apiDecorator.html | 9 - .../default/lwc/apiDecorator/apiDecorator.js | 5 - .../lwc/apiDecorator/apiDecorator.js-meta.xml | 8 - .../main/default/lwc/bikeCard/bikeCard.html | 10 - .../main/default/lwc/bikeCard/bikeCard.js | 9 - .../default/lwc/bikeCard/bikeCard.js-meta.xml | 12 - .../c2pModelComponent/c2pModelComponent.html | 18 -- .../c2pModelComponent/c2pModelComponent.js | 19 -- .../c2pModelComponent.js-meta.xml | 5 - .../c2pParentComponet/c2pParentComponet.html | 20 -- .../c2pParentComponet/c2pParentComponet.js | 18 -- .../c2pParentComponet.js-meta.xml | 8 - .../default/lwc/calculator/calculator.html | 177 ------------ .../main/default/lwc/calculator/calculator.js | 110 -------- .../lwc/calculator/calculator.js-meta.xml | 8 - .../lwc/calculatorChild/calculatorChild.html | 147 ---------- .../lwc/calculatorChild/calculatorChild.js | 21 -- .../calculatorChild.js-meta.xml | 5 - .../calculatorParent/calculatorParent.html | 10 - .../lwc/calculatorParent/calculatorParent.js | 26 -- .../calculatorParent.js-meta.xml | 8 - .../lwc/callBackMethods/callBackMethods.html | 37 --- .../lwc/callBackMethods/callBackMethods.js | 58 ---- .../callBackMethods.js-meta.xml | 10 - .../default/lwc/callingFlow/callingFlow.html | 7 - .../default/lwc/callingFlow/callingFlow.js | 14 - .../lwc/callingFlow/callingFlow.js-meta.xml | 9 - .../main/default/lwc/calllwc/calllwc.css | 26 -- .../main/default/lwc/calllwc/calllwc.html | 34 --- force-app/main/default/lwc/calllwc/calllwc.js | 83 ------ .../default/lwc/calllwc/calllwc.js-meta.xml | 10 - .../lwc/childExample/childExample.html | 5 - .../default/lwc/childExample/childExample.js | 5 - .../lwc/childExample/childExample.js-meta.xml | 5 - .../main/default/lwc/childExp1/childExp1.html | 6 - .../main/default/lwc/childExp1/childExp1.js | 5 - .../lwc/childExp1/childExp1.js-meta.xml | 5 - .../main/default/lwc/chlidExp/chlidExp.html | 41 --- .../main/default/lwc/chlidExp/chlidExp.js | 23 -- .../default/lwc/chlidExp/chlidExp.js-meta.xml | 5 - .../lwc/cloud_Pub_Sub/cloud_Pub_Sub.css | 4 - .../lwc/cloud_Pub_Sub/cloud_Pub_Sub.html | 33 --- .../lwc/cloud_Pub_Sub/cloud_Pub_Sub.js | 23 -- .../cloud_Pub_Sub/cloud_Pub_Sub.js-meta.xml | 11 - .../conditionalRenderingComponent.html | 25 -- .../conditionalRenderingComponent.js | 19 -- .../conditionalRenderingComponent.js-meta.xml | 9 - .../connectedCallBack/connectedCallBack.html | 17 -- .../connectedCallBack/connectedCallBack.js | 16 -- .../connectedCallBack.js-meta.xml | 8 - .../lwc/createContact/createContact.css | 3 - .../lwc/createContact/createContact.html | 21 -- .../lwc/createContact/createContact.js | 51 ---- .../createContact/createContact.js-meta.xml | 10 - .../createCustomPhotoUploader.css | 77 ------ .../createCustomPhotoUploader.html | 259 ------------------ .../createCustomPhotoUploader.js | 161 ----------- .../createCustomPhotoUploader.js-meta.xml | 8 - .../createRecordWithoutApex.html | 9 - .../createRecordWithoutApex.js | 56 ---- .../createRecordWithoutApex.js-meta.xml | 8 - .../creatingCustomPhotoUploader.html | 36 --- .../creatingCustomPhotoUploader.js | 166 ----------- .../creatingCustomPhotoUploader.js-meta.xml | 26 -- .../customFooterFlowComponent.html | 14 - .../customFooterFlowComponent.js | 37 --- .../customFooterFlowComponent.js-meta.xml | 13 - .../lwc/customLookup/customLookup.html | 15 - .../default/lwc/customLookup/customLookup.js | 31 --- .../lwc/customLookup/customLookup.js-meta.xml | 8 - .../default/lwc/dOEComponent/dOEComponent.css | 33 --- .../lwc/dOEComponent/dOEComponent.html | 58 ---- .../default/lwc/dOEComponent/dOEComponent.js | 7 - .../lwc/dOEComponent/dOEComponent.js-meta.xml | 10 - .../designSystemComponent.css | 4 - .../designSystemComponent.html | 22 -- .../designSystemComponent.js | 3 - .../designSystemComponent.js-meta.xml | 8 - .../dynamicRecordPicker.css | 15 - .../dynamicRecordPicker.html | 40 --- .../dynamicRecordPicker.js | 45 --- .../dynamicRecordPicker.js-meta.xml | 8 - .../default/lwc/fileupload/fileupload.html | 19 -- .../main/default/lwc/fileupload/fileupload.js | 34 --- .../lwc/fileupload/fileupload.js-meta.xml | 8 - .../main/default/lwc/formLWC/formLWC.html | 10 - force-app/main/default/lwc/formLWC/formLWC.js | 12 - .../default/lwc/formLWC/formLWC.js-meta.xml | 9 - force-app/main/default/lwc/hello/hello.html | 5 - force-app/main/default/lwc/hello/hello.js | 5 - .../main/default/lwc/hello/hello.js-meta.xml | 10 - .../default/lwc/helloWorld/helloWorld.html | 8 - .../main/default/lwc/helloWorld/helloWorld.js | 7 - .../lwc/helloWorld/helloWorld.js-meta.xml | 10 - .../helloWorldComponent.html | 27 -- .../helloWorldComponent.js | 42 --- .../helloWorldComponent.js-meta.xml | 9 - .../lifeCycleHooksChildComponent.html | 8 - .../lifeCycleHooksChildComponent.js | 18 -- .../lifeCycleHooksChildComponent.js-meta.xml | 5 - .../lifeCycleHooksParentComponent.html | 24 -- .../lifeCycleHooksParentComponent.js | 25 -- .../lifeCycleHooksParentComponent.js-meta.xml | 8 - .../lightningDatatableLWCExample.html | 14 - .../lightningDatatableLWCExample.js | 48 ---- .../lightningDatatableLWCExample.js-meta.xml | 10 - force-app/main/default/lwc/lms/lms.html | 6 - force-app/main/default/lwc/lms/lms.js | 22 -- .../main/default/lwc/lms/lms.js-meta.xml | 9 - .../lwc/locationViwer/locationViwer.html | 8 - .../lwc/locationViwer/locationViwer.js | 37 --- .../locationViwer/locationViwer.js-meta.xml | 9 - force-app/main/default/lwc/logger/logger.html | 5 - force-app/main/default/lwc/logger/logger.js | 12 - .../default/lwc/logger/logger.js-meta.xml | 8 - .../loopingComponent/loopingComponent.html | 76 ----- .../lwc/loopingComponent/loopingComponent.js | 35 --- .../loopingComponent.js-meta.xml | 8 - .../membershipAndAccount.css | 54 ---- .../membershipAndAccount.html | 38 --- .../membershipAndAccount.js | 34 --- .../membershipAndAccount.js-meta.xml | 25 -- .../default/lwc/memoryGame/memoryGame.css | 23 -- .../default/lwc/memoryGame/memoryGame.html | 24 -- .../main/default/lwc/memoryGame/memoryGame.js | 47 ---- .../lwc/memoryGame/memoryGame.js-meta.xml | 8 - .../lwc/navigateToHome/navigateToHome.html | 8 - .../lwc/navigateToHome/navigateToHome.js | 13 - .../navigateToHome/navigateToHome.js-meta.xml | 8 - .../navigateToRecordPage.html | 8 - .../navigateToRecordPage.js | 34 --- .../navigateToRecordPage.js-meta.xml | 9 - .../p2cCarousalComponent.html | 16 -- .../p2cCarousalComponent.js | 5 - .../p2cCarousalComponent.js-meta.xml | 5 - .../p2cChildComponent/p2cChildComponent.html | 10 - .../p2cChildComponent/p2cChildComponent.js | 9 - .../p2cChildComponent.js-meta.xml | 5 - .../p2cParentComponent.html | 34 --- .../p2cParentComponent/p2cParentComponent.js | 30 -- .../p2cParentComponent.js-meta.xml | 8 - .../p2cProgressComponent.html | 3 - .../p2cProgressComponent.js | 6 - .../p2cProgressComponent.js-meta.xml | 5 - .../p2cSliderComponent.html | 7 - .../p2cSliderComponent/p2cSliderComponent.js | 12 - .../p2cSliderComponent.js-meta.xml | 5 - .../lwc/parentExample/parentExample.html | 15 - .../lwc/parentExample/parentExample.js | 9 - .../parentExample/parentExample.js-meta.xml | 8 - .../main/default/lwc/parentExp/parentExp.html | 12 - .../main/default/lwc/parentExp/parentExp.js | 16 -- .../lwc/parentExp/parentExp.js-meta.xml | 8 - .../default/lwc/parentExp1/parentExp1.html | 18 -- .../main/default/lwc/parentExp1/parentExp1.js | 10 - .../lwc/parentExp1/parentExp1.js-meta.xml | 5 - .../lwc/parentExpFirst/parentExpFirst.html | 18 -- .../lwc/parentExpFirst/parentExpFirst.js | 10 - .../parentExpFirst/parentExpFirst.js-meta.xml | 5 - .../PolymorphicRecordPicker.css | 20 -- .../polymorphicRecordPicker.html | 44 --- .../polymorphicRecordPicker.js | 68 ----- .../polymorphicRecordPicker.js-meta.xml | 9 - .../lwc/previewFileModal/PreviewFileModal.css | 4 - .../previewFileModal/previewFileModal.html | 63 ----- .../lwc/previewFileModal/previewFileModal.js | 19 -- .../previewFileModal.js-meta.xml | 10 - .../previewFileThumbnailCard.html | 65 ----- .../previewFileThumbnailCard.js | 63 ----- .../previewFileThumbnailCard.js-meta.xml | 10 - .../previewFileThumbnails.html | 41 --- .../previewFileThumbnails.js | 104 ------- .../previewFileThumbnails.js-meta.xml | 10 - .../default/lwc/profilePhoto/profilePhoto.css | 30 -- .../lwc/profilePhoto/profilePhoto.html | 16 -- .../default/lwc/profilePhoto/profilePhoto.js | 33 --- .../lwc/profilePhoto/profilePhoto.js-meta.xml | 8 - force-app/main/default/lwc/pubSub/pubSub.html | 3 - force-app/main/default/lwc/pubSub/pubSub.js | 38 --- .../default/lwc/pubSub/pubSub.js-meta.xml | 5 - .../lwc/pubSubComponent/pubSubComponent.js | 47 ---- .../pubSubComponent.js-meta.xml | 5 - .../pubSubComponentA/pubSubComponentA.html | 8 - .../lwc/pubSubComponentA/pubSubComponentA.js | 11 - .../pubSubComponentA.js-meta.xml | 8 - .../pubSubComponentB/pubSubComponentB.html | 7 - .../lwc/pubSubComponentB/pubSubComponentB.js | 13 - .../pubSubComponentB.js-meta.xml | 8 - .../main/default/lwc/publisher/publisher.html | 11 - .../main/default/lwc/publisher/publisher.js | 13 - .../lwc/publisher/publisher.js-meta.xml | 9 - .../lwc/quizAppCoponent/js-confetti.js | 2 - .../lwc/quizAppCoponent/quizAppCoponent.html | 50 ---- .../lwc/quizAppCoponent/quizAppCoponent.js | 143 ---------- .../quizAppCoponent.js-meta.xml | 9 - .../lwc/recordPicker/recordPicker.html | 16 -- .../default/lwc/recordPicker/recordPicker.js | 11 - .../lwc/recordPicker/recordPicker.js-meta.xml | 8 - .../refreshApexModule/refreshApexModule.html | 15 - .../refreshApexModule/refreshApexModule.js | 68 ----- .../refreshApexModule.js-meta.xml | 9 - .../lwc/relatedContact/relatedContact.html | 15 - .../lwc/relatedContact/relatedContact.js | 44 --- .../relatedContact/relatedContact.js-meta.xml | 9 - .../lwc/relatedPlayer/relatedPlayer.html | 28 -- .../lwc/relatedPlayer/relatedPlayer.js | 96 ------- .../relatedPlayer/relatedPlayer.js-meta.xml | 9 - .../relatedRecordComponent.html | 39 --- .../relatedRecordComponent.js | 133 --------- .../relatedRecordComponent.js-meta.xml | 8 - .../renderMethodComponent.html | 13 - .../renderMethodComponent.js | 24 -- .../renderMethodComponent.js-meta.xml | 8 - .../renderMethodComponent/signInTemplate.html | 24 -- .../renderMethodComponent/signUpTamplate.html | 26 -- .../lwc/searchRecord/searchRecord.html | 30 -- .../default/lwc/searchRecord/searchRecord.js | 34 --- .../lwc/searchRecord/searchRecord.js-meta.xml | 9 - .../SendMoneyComponantRMG.css | 4 - .../sendMoneyComponantRMG.html | 44 --- .../sendMoneyComponantRMG.js | 3 - .../sendMoneyComponantRMG.js-meta.xml | 24 -- .../sendMoneyWithRMGPAY.css | 148 ---------- .../sendMoneyWithRMGPAY.html | 118 -------- .../sendMoneyWithRMGPAY.js | 57 ---- .../sendMoneyWithRMGPAY.js-meta.xml | 28 -- .../setterDemoChildComponent.html | 5 - .../setterDemoChildComponent.js | 14 - .../setterDemoChildComponent.js-meta.xml | 5 - .../setterDemoParentComponent.html | 5 - .../setterDemoParentComponent.js | 8 - .../setterDemoParentComponent.js-meta.xml | 8 - .../slotChildComponent.html | 9 - .../slotChildComponent/slotChildComponent.js | 3 - .../slotChildComponent.js-meta.xml | 5 - .../slotParentComponent.html | 11 - .../slotParentComponent.js | 3 - .../slotParentComponent.js-meta.xml | 8 - .../default/lwc/subscriber/subscriber.html | 14 - .../main/default/lwc/subscriber/subscriber.js | 16 -- .../lwc/subscriber/subscriber.js-meta.xml | 9 - .../main/default/lwc/testLwc/testLwc.html | 8 - force-app/main/default/lwc/testLwc/testLwc.js | 17 -- .../default/lwc/testLwc/testLwc.js-meta.xml | 9 - .../toDoListComponent/toDoListComponent.html | 31 --- .../toDoListComponent/toDoListComponent.js | 30 -- .../toDoListComponent.js-meta.xml | 8 - .../main/default/lwc/trackDemo/trackDemo.html | 14 - .../main/default/lwc/trackDemo/trackDemo.js | 19 -- .../lwc/trackDemo/trackDemo.js-meta.xml | 8 - .../__tests__/weatherApplication.test.js | 25 -- .../weatherApplication.html | 67 ----- .../weatherApplication/weatherApplication.js | 19 -- .../weatherApplication.js-meta.xml | 8 - .../lwc/wrapperTable/wrapperTable.html | 9 - .../default/lwc/wrapperTable/wrapperTable.js | 14 - .../lwc/wrapperTable/wrapperTable.js-meta.xml | 8 - 270 files changed, 6446 deletions(-) delete mode 100644 force-app/main/default/lwc/.eslintrc.json delete mode 100644 force-app/main/default/lwc/accountListLWC/accountListLWC.html delete mode 100644 force-app/main/default/lwc/accountListLWC/accountListLWC.js delete mode 100644 force-app/main/default/lwc/accountListLWC/accountListLWC.js-meta.xml delete mode 100644 force-app/main/default/lwc/accountLocator/accountLocator.html delete mode 100644 force-app/main/default/lwc/accountLocator/accountLocator.js delete mode 100644 force-app/main/default/lwc/accountLocator/accountLocator.js-meta.xml delete mode 100644 force-app/main/default/lwc/accountMap/accountMap.html delete mode 100644 force-app/main/default/lwc/accountMap/accountMap.js delete mode 100644 force-app/main/default/lwc/accountMap/accountMap.js-meta.xml delete mode 100644 force-app/main/default/lwc/accountSearch/accountSearch.html delete mode 100644 force-app/main/default/lwc/accountSearch/accountSearch.js delete mode 100644 force-app/main/default/lwc/accountSearch/accountSearch.js-meta.xml delete mode 100644 force-app/main/default/lwc/apiDecorator/apiDecorator.html delete mode 100644 force-app/main/default/lwc/apiDecorator/apiDecorator.js delete mode 100644 force-app/main/default/lwc/apiDecorator/apiDecorator.js-meta.xml delete mode 100644 force-app/main/default/lwc/bikeCard/bikeCard.html delete mode 100644 force-app/main/default/lwc/bikeCard/bikeCard.js delete mode 100644 force-app/main/default/lwc/bikeCard/bikeCard.js-meta.xml delete mode 100644 force-app/main/default/lwc/c2pModelComponent/c2pModelComponent.html delete mode 100644 force-app/main/default/lwc/c2pModelComponent/c2pModelComponent.js delete mode 100644 force-app/main/default/lwc/c2pModelComponent/c2pModelComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/c2pParentComponet/c2pParentComponet.html delete mode 100644 force-app/main/default/lwc/c2pParentComponet/c2pParentComponet.js delete mode 100644 force-app/main/default/lwc/c2pParentComponet/c2pParentComponet.js-meta.xml delete mode 100644 force-app/main/default/lwc/calculator/calculator.html delete mode 100644 force-app/main/default/lwc/calculator/calculator.js delete mode 100644 force-app/main/default/lwc/calculator/calculator.js-meta.xml delete mode 100644 force-app/main/default/lwc/calculatorChild/calculatorChild.html delete mode 100644 force-app/main/default/lwc/calculatorChild/calculatorChild.js delete mode 100644 force-app/main/default/lwc/calculatorChild/calculatorChild.js-meta.xml delete mode 100644 force-app/main/default/lwc/calculatorParent/calculatorParent.html delete mode 100644 force-app/main/default/lwc/calculatorParent/calculatorParent.js delete mode 100644 force-app/main/default/lwc/calculatorParent/calculatorParent.js-meta.xml delete mode 100644 force-app/main/default/lwc/callBackMethods/callBackMethods.html delete mode 100644 force-app/main/default/lwc/callBackMethods/callBackMethods.js delete mode 100644 force-app/main/default/lwc/callBackMethods/callBackMethods.js-meta.xml delete mode 100644 force-app/main/default/lwc/callingFlow/callingFlow.html delete mode 100644 force-app/main/default/lwc/callingFlow/callingFlow.js delete mode 100644 force-app/main/default/lwc/callingFlow/callingFlow.js-meta.xml delete mode 100644 force-app/main/default/lwc/calllwc/calllwc.css delete mode 100644 force-app/main/default/lwc/calllwc/calllwc.html delete mode 100644 force-app/main/default/lwc/calllwc/calllwc.js delete mode 100644 force-app/main/default/lwc/calllwc/calllwc.js-meta.xml delete mode 100644 force-app/main/default/lwc/childExample/childExample.html delete mode 100644 force-app/main/default/lwc/childExample/childExample.js delete mode 100644 force-app/main/default/lwc/childExample/childExample.js-meta.xml delete mode 100644 force-app/main/default/lwc/childExp1/childExp1.html delete mode 100644 force-app/main/default/lwc/childExp1/childExp1.js delete mode 100644 force-app/main/default/lwc/childExp1/childExp1.js-meta.xml delete mode 100644 force-app/main/default/lwc/chlidExp/chlidExp.html delete mode 100644 force-app/main/default/lwc/chlidExp/chlidExp.js delete mode 100644 force-app/main/default/lwc/chlidExp/chlidExp.js-meta.xml delete mode 100644 force-app/main/default/lwc/cloud_Pub_Sub/cloud_Pub_Sub.css delete mode 100644 force-app/main/default/lwc/cloud_Pub_Sub/cloud_Pub_Sub.html delete mode 100644 force-app/main/default/lwc/cloud_Pub_Sub/cloud_Pub_Sub.js delete mode 100644 force-app/main/default/lwc/cloud_Pub_Sub/cloud_Pub_Sub.js-meta.xml delete mode 100644 force-app/main/default/lwc/conditionalRenderingComponent/conditionalRenderingComponent.html delete mode 100644 force-app/main/default/lwc/conditionalRenderingComponent/conditionalRenderingComponent.js delete mode 100644 force-app/main/default/lwc/conditionalRenderingComponent/conditionalRenderingComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/connectedCallBack/connectedCallBack.html delete mode 100644 force-app/main/default/lwc/connectedCallBack/connectedCallBack.js delete mode 100644 force-app/main/default/lwc/connectedCallBack/connectedCallBack.js-meta.xml delete mode 100644 force-app/main/default/lwc/createContact/createContact.css delete mode 100644 force-app/main/default/lwc/createContact/createContact.html delete mode 100644 force-app/main/default/lwc/createContact/createContact.js delete mode 100644 force-app/main/default/lwc/createContact/createContact.js-meta.xml delete mode 100644 force-app/main/default/lwc/createCustomPhotoUploader/createCustomPhotoUploader.css delete mode 100644 force-app/main/default/lwc/createCustomPhotoUploader/createCustomPhotoUploader.html delete mode 100644 force-app/main/default/lwc/createCustomPhotoUploader/createCustomPhotoUploader.js delete mode 100644 force-app/main/default/lwc/createCustomPhotoUploader/createCustomPhotoUploader.js-meta.xml delete mode 100644 force-app/main/default/lwc/createRecordWithoutApex/createRecordWithoutApex.html delete mode 100644 force-app/main/default/lwc/createRecordWithoutApex/createRecordWithoutApex.js delete mode 100644 force-app/main/default/lwc/createRecordWithoutApex/createRecordWithoutApex.js-meta.xml delete mode 100644 force-app/main/default/lwc/creatingCustomPhotoUploader/creatingCustomPhotoUploader.html delete mode 100644 force-app/main/default/lwc/creatingCustomPhotoUploader/creatingCustomPhotoUploader.js delete mode 100644 force-app/main/default/lwc/creatingCustomPhotoUploader/creatingCustomPhotoUploader.js-meta.xml delete mode 100644 force-app/main/default/lwc/customFooterFlowComponent/customFooterFlowComponent.html delete mode 100644 force-app/main/default/lwc/customFooterFlowComponent/customFooterFlowComponent.js delete mode 100644 force-app/main/default/lwc/customFooterFlowComponent/customFooterFlowComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/customLookup/customLookup.html delete mode 100644 force-app/main/default/lwc/customLookup/customLookup.js delete mode 100644 force-app/main/default/lwc/customLookup/customLookup.js-meta.xml delete mode 100644 force-app/main/default/lwc/dOEComponent/dOEComponent.css delete mode 100644 force-app/main/default/lwc/dOEComponent/dOEComponent.html delete mode 100644 force-app/main/default/lwc/dOEComponent/dOEComponent.js delete mode 100644 force-app/main/default/lwc/dOEComponent/dOEComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/designSystemComponent/designSystemComponent.css delete mode 100644 force-app/main/default/lwc/designSystemComponent/designSystemComponent.html delete mode 100644 force-app/main/default/lwc/designSystemComponent/designSystemComponent.js delete mode 100644 force-app/main/default/lwc/designSystemComponent/designSystemComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/dynamicRecordPicker/dynamicRecordPicker.css delete mode 100644 force-app/main/default/lwc/dynamicRecordPicker/dynamicRecordPicker.html delete mode 100644 force-app/main/default/lwc/dynamicRecordPicker/dynamicRecordPicker.js delete mode 100644 force-app/main/default/lwc/dynamicRecordPicker/dynamicRecordPicker.js-meta.xml delete mode 100644 force-app/main/default/lwc/fileupload/fileupload.html delete mode 100644 force-app/main/default/lwc/fileupload/fileupload.js delete mode 100644 force-app/main/default/lwc/fileupload/fileupload.js-meta.xml delete mode 100644 force-app/main/default/lwc/formLWC/formLWC.html delete mode 100644 force-app/main/default/lwc/formLWC/formLWC.js delete mode 100644 force-app/main/default/lwc/formLWC/formLWC.js-meta.xml delete mode 100644 force-app/main/default/lwc/hello/hello.html delete mode 100644 force-app/main/default/lwc/hello/hello.js delete mode 100644 force-app/main/default/lwc/hello/hello.js-meta.xml delete mode 100644 force-app/main/default/lwc/helloWorld/helloWorld.html delete mode 100644 force-app/main/default/lwc/helloWorld/helloWorld.js delete mode 100644 force-app/main/default/lwc/helloWorld/helloWorld.js-meta.xml delete mode 100644 force-app/main/default/lwc/helloWorldComponent/helloWorldComponent.html delete mode 100644 force-app/main/default/lwc/helloWorldComponent/helloWorldComponent.js delete mode 100644 force-app/main/default/lwc/helloWorldComponent/helloWorldComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/lifeCycleHooksChildComponent/lifeCycleHooksChildComponent.html delete mode 100644 force-app/main/default/lwc/lifeCycleHooksChildComponent/lifeCycleHooksChildComponent.js delete mode 100644 force-app/main/default/lwc/lifeCycleHooksChildComponent/lifeCycleHooksChildComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/lifeCycleHooksParentComponent/lifeCycleHooksParentComponent.html delete mode 100644 force-app/main/default/lwc/lifeCycleHooksParentComponent/lifeCycleHooksParentComponent.js delete mode 100644 force-app/main/default/lwc/lifeCycleHooksParentComponent/lifeCycleHooksParentComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/lightningDatatableLWCExample/lightningDatatableLWCExample.html delete mode 100644 force-app/main/default/lwc/lightningDatatableLWCExample/lightningDatatableLWCExample.js delete mode 100644 force-app/main/default/lwc/lightningDatatableLWCExample/lightningDatatableLWCExample.js-meta.xml delete mode 100644 force-app/main/default/lwc/lms/lms.html delete mode 100644 force-app/main/default/lwc/lms/lms.js delete mode 100644 force-app/main/default/lwc/lms/lms.js-meta.xml delete mode 100644 force-app/main/default/lwc/locationViwer/locationViwer.html delete mode 100644 force-app/main/default/lwc/locationViwer/locationViwer.js delete mode 100644 force-app/main/default/lwc/locationViwer/locationViwer.js-meta.xml delete mode 100644 force-app/main/default/lwc/logger/logger.html delete mode 100644 force-app/main/default/lwc/logger/logger.js delete mode 100644 force-app/main/default/lwc/logger/logger.js-meta.xml delete mode 100644 force-app/main/default/lwc/loopingComponent/loopingComponent.html delete mode 100644 force-app/main/default/lwc/loopingComponent/loopingComponent.js delete mode 100644 force-app/main/default/lwc/loopingComponent/loopingComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/membershipAndAccount/membershipAndAccount.css delete mode 100644 force-app/main/default/lwc/membershipAndAccount/membershipAndAccount.html delete mode 100644 force-app/main/default/lwc/membershipAndAccount/membershipAndAccount.js delete mode 100644 force-app/main/default/lwc/membershipAndAccount/membershipAndAccount.js-meta.xml delete mode 100644 force-app/main/default/lwc/memoryGame/memoryGame.css delete mode 100644 force-app/main/default/lwc/memoryGame/memoryGame.html delete mode 100644 force-app/main/default/lwc/memoryGame/memoryGame.js delete mode 100644 force-app/main/default/lwc/memoryGame/memoryGame.js-meta.xml delete mode 100644 force-app/main/default/lwc/navigateToHome/navigateToHome.html delete mode 100644 force-app/main/default/lwc/navigateToHome/navigateToHome.js delete mode 100644 force-app/main/default/lwc/navigateToHome/navigateToHome.js-meta.xml delete mode 100644 force-app/main/default/lwc/navigateToRecordPage/navigateToRecordPage.html delete mode 100644 force-app/main/default/lwc/navigateToRecordPage/navigateToRecordPage.js delete mode 100644 force-app/main/default/lwc/navigateToRecordPage/navigateToRecordPage.js-meta.xml delete mode 100644 force-app/main/default/lwc/p2cCarousalComponent/p2cCarousalComponent.html delete mode 100644 force-app/main/default/lwc/p2cCarousalComponent/p2cCarousalComponent.js delete mode 100644 force-app/main/default/lwc/p2cCarousalComponent/p2cCarousalComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/p2cChildComponent/p2cChildComponent.html delete mode 100644 force-app/main/default/lwc/p2cChildComponent/p2cChildComponent.js delete mode 100644 force-app/main/default/lwc/p2cChildComponent/p2cChildComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/p2cParentComponent/p2cParentComponent.html delete mode 100644 force-app/main/default/lwc/p2cParentComponent/p2cParentComponent.js delete mode 100644 force-app/main/default/lwc/p2cParentComponent/p2cParentComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/p2cProgressComponent/p2cProgressComponent.html delete mode 100644 force-app/main/default/lwc/p2cProgressComponent/p2cProgressComponent.js delete mode 100644 force-app/main/default/lwc/p2cProgressComponent/p2cProgressComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/p2cSliderComponent/p2cSliderComponent.html delete mode 100644 force-app/main/default/lwc/p2cSliderComponent/p2cSliderComponent.js delete mode 100644 force-app/main/default/lwc/p2cSliderComponent/p2cSliderComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/parentExample/parentExample.html delete mode 100644 force-app/main/default/lwc/parentExample/parentExample.js delete mode 100644 force-app/main/default/lwc/parentExample/parentExample.js-meta.xml delete mode 100644 force-app/main/default/lwc/parentExp/parentExp.html delete mode 100644 force-app/main/default/lwc/parentExp/parentExp.js delete mode 100644 force-app/main/default/lwc/parentExp/parentExp.js-meta.xml delete mode 100644 force-app/main/default/lwc/parentExp1/parentExp1.html delete mode 100644 force-app/main/default/lwc/parentExp1/parentExp1.js delete mode 100644 force-app/main/default/lwc/parentExp1/parentExp1.js-meta.xml delete mode 100644 force-app/main/default/lwc/parentExpFirst/parentExpFirst.html delete mode 100644 force-app/main/default/lwc/parentExpFirst/parentExpFirst.js delete mode 100644 force-app/main/default/lwc/parentExpFirst/parentExpFirst.js-meta.xml delete mode 100644 force-app/main/default/lwc/polymorphicRecordPicker/PolymorphicRecordPicker.css delete mode 100644 force-app/main/default/lwc/polymorphicRecordPicker/polymorphicRecordPicker.html delete mode 100644 force-app/main/default/lwc/polymorphicRecordPicker/polymorphicRecordPicker.js delete mode 100644 force-app/main/default/lwc/polymorphicRecordPicker/polymorphicRecordPicker.js-meta.xml delete mode 100644 force-app/main/default/lwc/previewFileModal/PreviewFileModal.css delete mode 100644 force-app/main/default/lwc/previewFileModal/previewFileModal.html delete mode 100644 force-app/main/default/lwc/previewFileModal/previewFileModal.js delete mode 100644 force-app/main/default/lwc/previewFileModal/previewFileModal.js-meta.xml delete mode 100644 force-app/main/default/lwc/previewFileThumbnailCard/previewFileThumbnailCard.html delete mode 100644 force-app/main/default/lwc/previewFileThumbnailCard/previewFileThumbnailCard.js delete mode 100644 force-app/main/default/lwc/previewFileThumbnailCard/previewFileThumbnailCard.js-meta.xml delete mode 100644 force-app/main/default/lwc/previewFileThumbnails/previewFileThumbnails.html delete mode 100644 force-app/main/default/lwc/previewFileThumbnails/previewFileThumbnails.js delete mode 100644 force-app/main/default/lwc/previewFileThumbnails/previewFileThumbnails.js-meta.xml delete mode 100644 force-app/main/default/lwc/profilePhoto/profilePhoto.css delete mode 100644 force-app/main/default/lwc/profilePhoto/profilePhoto.html delete mode 100644 force-app/main/default/lwc/profilePhoto/profilePhoto.js delete mode 100644 force-app/main/default/lwc/profilePhoto/profilePhoto.js-meta.xml delete mode 100644 force-app/main/default/lwc/pubSub/pubSub.html delete mode 100644 force-app/main/default/lwc/pubSub/pubSub.js delete mode 100644 force-app/main/default/lwc/pubSub/pubSub.js-meta.xml delete mode 100644 force-app/main/default/lwc/pubSubComponent/pubSubComponent.js delete mode 100644 force-app/main/default/lwc/pubSubComponent/pubSubComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/pubSubComponentA/pubSubComponentA.html delete mode 100644 force-app/main/default/lwc/pubSubComponentA/pubSubComponentA.js delete mode 100644 force-app/main/default/lwc/pubSubComponentA/pubSubComponentA.js-meta.xml delete mode 100644 force-app/main/default/lwc/pubSubComponentB/pubSubComponentB.html delete mode 100644 force-app/main/default/lwc/pubSubComponentB/pubSubComponentB.js delete mode 100644 force-app/main/default/lwc/pubSubComponentB/pubSubComponentB.js-meta.xml delete mode 100644 force-app/main/default/lwc/publisher/publisher.html delete mode 100644 force-app/main/default/lwc/publisher/publisher.js delete mode 100644 force-app/main/default/lwc/publisher/publisher.js-meta.xml delete mode 100644 force-app/main/default/lwc/quizAppCoponent/js-confetti.js delete mode 100644 force-app/main/default/lwc/quizAppCoponent/quizAppCoponent.html delete mode 100644 force-app/main/default/lwc/quizAppCoponent/quizAppCoponent.js delete mode 100644 force-app/main/default/lwc/quizAppCoponent/quizAppCoponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/recordPicker/recordPicker.html delete mode 100644 force-app/main/default/lwc/recordPicker/recordPicker.js delete mode 100644 force-app/main/default/lwc/recordPicker/recordPicker.js-meta.xml delete mode 100644 force-app/main/default/lwc/refreshApexModule/refreshApexModule.html delete mode 100644 force-app/main/default/lwc/refreshApexModule/refreshApexModule.js delete mode 100644 force-app/main/default/lwc/refreshApexModule/refreshApexModule.js-meta.xml delete mode 100644 force-app/main/default/lwc/relatedContact/relatedContact.html delete mode 100644 force-app/main/default/lwc/relatedContact/relatedContact.js delete mode 100644 force-app/main/default/lwc/relatedContact/relatedContact.js-meta.xml delete mode 100644 force-app/main/default/lwc/relatedPlayer/relatedPlayer.html delete mode 100644 force-app/main/default/lwc/relatedPlayer/relatedPlayer.js delete mode 100644 force-app/main/default/lwc/relatedPlayer/relatedPlayer.js-meta.xml delete mode 100644 force-app/main/default/lwc/relatedRecordComponent/relatedRecordComponent.html delete mode 100644 force-app/main/default/lwc/relatedRecordComponent/relatedRecordComponent.js delete mode 100644 force-app/main/default/lwc/relatedRecordComponent/relatedRecordComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/renderMethodComponent/renderMethodComponent.html delete mode 100644 force-app/main/default/lwc/renderMethodComponent/renderMethodComponent.js delete mode 100644 force-app/main/default/lwc/renderMethodComponent/renderMethodComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/renderMethodComponent/signInTemplate.html delete mode 100644 force-app/main/default/lwc/renderMethodComponent/signUpTamplate.html delete mode 100644 force-app/main/default/lwc/searchRecord/searchRecord.html delete mode 100644 force-app/main/default/lwc/searchRecord/searchRecord.js delete mode 100644 force-app/main/default/lwc/searchRecord/searchRecord.js-meta.xml delete mode 100644 force-app/main/default/lwc/sendMoneyComponantRMG/SendMoneyComponantRMG.css delete mode 100644 force-app/main/default/lwc/sendMoneyComponantRMG/sendMoneyComponantRMG.html delete mode 100644 force-app/main/default/lwc/sendMoneyComponantRMG/sendMoneyComponantRMG.js delete mode 100644 force-app/main/default/lwc/sendMoneyComponantRMG/sendMoneyComponantRMG.js-meta.xml delete mode 100644 force-app/main/default/lwc/sendMoneyWithRMGPAY/sendMoneyWithRMGPAY.css delete mode 100644 force-app/main/default/lwc/sendMoneyWithRMGPAY/sendMoneyWithRMGPAY.html delete mode 100644 force-app/main/default/lwc/sendMoneyWithRMGPAY/sendMoneyWithRMGPAY.js delete mode 100644 force-app/main/default/lwc/sendMoneyWithRMGPAY/sendMoneyWithRMGPAY.js-meta.xml delete mode 100644 force-app/main/default/lwc/setterDemoChildComponent/setterDemoChildComponent.html delete mode 100644 force-app/main/default/lwc/setterDemoChildComponent/setterDemoChildComponent.js delete mode 100644 force-app/main/default/lwc/setterDemoChildComponent/setterDemoChildComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/setterDemoParentComponent/setterDemoParentComponent.html delete mode 100644 force-app/main/default/lwc/setterDemoParentComponent/setterDemoParentComponent.js delete mode 100644 force-app/main/default/lwc/setterDemoParentComponent/setterDemoParentComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/slotChildComponent/slotChildComponent.html delete mode 100644 force-app/main/default/lwc/slotChildComponent/slotChildComponent.js delete mode 100644 force-app/main/default/lwc/slotChildComponent/slotChildComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/slotParentComponent/slotParentComponent.html delete mode 100644 force-app/main/default/lwc/slotParentComponent/slotParentComponent.js delete mode 100644 force-app/main/default/lwc/slotParentComponent/slotParentComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/subscriber/subscriber.html delete mode 100644 force-app/main/default/lwc/subscriber/subscriber.js delete mode 100644 force-app/main/default/lwc/subscriber/subscriber.js-meta.xml delete mode 100644 force-app/main/default/lwc/testLwc/testLwc.html delete mode 100644 force-app/main/default/lwc/testLwc/testLwc.js delete mode 100644 force-app/main/default/lwc/testLwc/testLwc.js-meta.xml delete mode 100644 force-app/main/default/lwc/toDoListComponent/toDoListComponent.html delete mode 100644 force-app/main/default/lwc/toDoListComponent/toDoListComponent.js delete mode 100644 force-app/main/default/lwc/toDoListComponent/toDoListComponent.js-meta.xml delete mode 100644 force-app/main/default/lwc/trackDemo/trackDemo.html delete mode 100644 force-app/main/default/lwc/trackDemo/trackDemo.js delete mode 100644 force-app/main/default/lwc/trackDemo/trackDemo.js-meta.xml delete mode 100644 force-app/main/default/lwc/weatherApplication/__tests__/weatherApplication.test.js delete mode 100644 force-app/main/default/lwc/weatherApplication/weatherApplication.html delete mode 100644 force-app/main/default/lwc/weatherApplication/weatherApplication.js delete mode 100644 force-app/main/default/lwc/weatherApplication/weatherApplication.js-meta.xml delete mode 100644 force-app/main/default/lwc/wrapperTable/wrapperTable.html delete mode 100644 force-app/main/default/lwc/wrapperTable/wrapperTable.js delete mode 100644 force-app/main/default/lwc/wrapperTable/wrapperTable.js-meta.xml diff --git a/force-app/main/default/lwc/.eslintrc.json b/force-app/main/default/lwc/.eslintrc.json deleted file mode 100644 index a82e76d..0000000 --- a/force-app/main/default/lwc/.eslintrc.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": ["@salesforce/eslint-config-lwc/recommended"], - "overrides": [ - { - "files": ["*.test.js"], - "rules": { - "@lwc/lwc/no-unexpected-wire-adapter-usages": "off" - }, - "env": { - "node": true - } - } - ] -} diff --git a/force-app/main/default/lwc/accountListLWC/accountListLWC.html b/force-app/main/default/lwc/accountListLWC/accountListLWC.html deleted file mode 100644 index 7164cbb..0000000 --- a/force-app/main/default/lwc/accountListLWC/accountListLWC.html +++ /dev/null @@ -1,13 +0,0 @@ - - \ No newline at end of file diff --git a/force-app/main/default/lwc/accountListLWC/accountListLWC.js b/force-app/main/default/lwc/accountListLWC/accountListLWC.js deleted file mode 100644 index 9353eb7..0000000 --- a/force-app/main/default/lwc/accountListLWC/accountListLWC.js +++ /dev/null @@ -1,44 +0,0 @@ -// accountList.js -import { LightningElement, api } from 'lwc'; -import { NavigationMixin } from 'lightning/navigation'; - -export default class AccountListLWC extends NavigationMixin(LightningElement) { - @api accounts; - - columns = [ - { label: 'Account Name', fieldName: 'Name' }, - { label: 'Type', fieldName:'Type'}, - { label: 'Phone', fieldName:'Phone'}, - { - label: 'Action', - type: 'button', - initialWidth: 135, - typeAttributes: { - label: 'View details', - name: 'view_details', - title: 'Click to View Details', - disabled: false, - value: 'view', - variant: 'base', - }, - } - ]; - - handleRowAction(event) { - const actionName = event.detail.action.name; - const row = event.detail.row; - switch (actionName) { - case 'view_details': - this[NavigationMixin.Navigate]({ - type:'standard__recordPage', - attributes:{ - recordId: row.Id, - objectApiName:'Account', - actionName:'view' - } - }) - break; - default: - } - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/accountListLWC/accountListLWC.js-meta.xml b/force-app/main/default/lwc/accountListLWC/accountListLWC.js-meta.xml deleted file mode 100644 index 6127d85..0000000 --- a/force-app/main/default/lwc/accountListLWC/accountListLWC.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 59.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/accountLocator/accountLocator.html b/force-app/main/default/lwc/accountLocator/accountLocator.html deleted file mode 100644 index e2e0c9a..0000000 --- a/force-app/main/default/lwc/accountLocator/accountLocator.html +++ /dev/null @@ -1,15 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/accountLocator/accountLocator.js b/force-app/main/default/lwc/accountLocator/accountLocator.js deleted file mode 100644 index e209cc1..0000000 --- a/force-app/main/default/lwc/accountLocator/accountLocator.js +++ /dev/null @@ -1,12 +0,0 @@ -// accountLocatorController.js -import { LightningElement, track } from 'lwc'; - -export default class AccountLocator extends LightningElement { - @track accounts; - - handleSearch(event) { - this.accounts = event.detail; - - } - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/accountLocator/accountLocator.js-meta.xml b/force-app/main/default/lwc/accountLocator/accountLocator.js-meta.xml deleted file mode 100644 index 9d66e64..0000000 --- a/force-app/main/default/lwc/accountLocator/accountLocator.js-meta.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - 59.0 - true - - lightning__HomePage - lightning__AppPage - lightningCommunity__Page - - \ No newline at end of file diff --git a/force-app/main/default/lwc/accountMap/accountMap.html b/force-app/main/default/lwc/accountMap/accountMap.html deleted file mode 100644 index 6c4b068..0000000 --- a/force-app/main/default/lwc/accountMap/accountMap.html +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/accountMap/accountMap.js b/force-app/main/default/lwc/accountMap/accountMap.js deleted file mode 100644 index 532ada4..0000000 --- a/force-app/main/default/lwc/accountMap/accountMap.js +++ /dev/null @@ -1,40 +0,0 @@ -// accountMap.js -import { LightningElement, api, track } from 'lwc'; - -export default class AccountMap extends LightningElement { - @track mapMarkers = []; - _accounts; - - connectedCallback() { - this.loadMapMarkers(); - } - - loadMapMarkers() { - if (this._accounts && this._accounts.length > 0) { - - this.mapMarkers = this._accounts.map(account => { - return { - location: { - Street: account.ShippingStreet, - City: account.ShippingCity, - PostalCode: account.ShippingPostalCode - }, - title: account.Name, - description: `Phone: ${account.Phone}`, - icon: 'standard:location' - }; - }); - } - } - - @api - get accounts() { - return this._accounts; - } - - set accounts(value) { - this._accounts = value; - this.loadMapMarkers(); - } - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/accountMap/accountMap.js-meta.xml b/force-app/main/default/lwc/accountMap/accountMap.js-meta.xml deleted file mode 100644 index 6127d85..0000000 --- a/force-app/main/default/lwc/accountMap/accountMap.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 59.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/accountSearch/accountSearch.html b/force-app/main/default/lwc/accountSearch/accountSearch.html deleted file mode 100644 index 2a9a5b9..0000000 --- a/force-app/main/default/lwc/accountSearch/accountSearch.html +++ /dev/null @@ -1,13 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/accountSearch/accountSearch.js b/force-app/main/default/lwc/accountSearch/accountSearch.js deleted file mode 100644 index 28dc867..0000000 --- a/force-app/main/default/lwc/accountSearch/accountSearch.js +++ /dev/null @@ -1,29 +0,0 @@ -// accountSearchController.js -import { LightningElement, track } from 'lwc'; -import searchAccounts from '@salesforce/apex/AccountSearchController.searchAccounts'; - -export default class AccountSearch extends LightningElement { - @track searchValue = ''; - - handleSearchChange(event) { - this.searchValue = event.target.value; - this.searchAccounts(); - } - - searchAccounts() { - try { - searchAccounts({ searchValue: this.searchValue }) - .then(result => { - console.log('Search Results: ', JSON.stringify(result)); // Debugging line - this.accounts = result; - const searchEvent = new CustomEvent('search', { detail: this.accounts }); - this.dispatchEvent(searchEvent); - }) - .catch(error => { - console.error('Error in AccountSearch: ' + error.message); - }); - } catch (err) { - console.error('Error in AccountSearch: ' + err.message); - } - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/accountSearch/accountSearch.js-meta.xml b/force-app/main/default/lwc/accountSearch/accountSearch.js-meta.xml deleted file mode 100644 index fcdb4b8..0000000 --- a/force-app/main/default/lwc/accountSearch/accountSearch.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/apiDecorator/apiDecorator.html b/force-app/main/default/lwc/apiDecorator/apiDecorator.html deleted file mode 100644 index 7470a98..0000000 --- a/force-app/main/default/lwc/apiDecorator/apiDecorator.html +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/apiDecorator/apiDecorator.js b/force-app/main/default/lwc/apiDecorator/apiDecorator.js deleted file mode 100644 index 6ff1fdc..0000000 --- a/force-app/main/default/lwc/apiDecorator/apiDecorator.js +++ /dev/null @@ -1,5 +0,0 @@ -import { LightningElement,api} from 'lwc'; - -export default class ApiDecorator extends LightningElement { - itemName="Welcome to Api "; -} \ No newline at end of file diff --git a/force-app/main/default/lwc/apiDecorator/apiDecorator.js-meta.xml b/force-app/main/default/lwc/apiDecorator/apiDecorator.js-meta.xml deleted file mode 100644 index d77eec4..0000000 --- a/force-app/main/default/lwc/apiDecorator/apiDecorator.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 57.0 - true - - lightning__RecordPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/bikeCard/bikeCard.html b/force-app/main/default/lwc/bikeCard/bikeCard.html deleted file mode 100644 index f6bb186..0000000 --- a/force-app/main/default/lwc/bikeCard/bikeCard.html +++ /dev/null @@ -1,10 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/bikeCard/bikeCard.js b/force-app/main/default/lwc/bikeCard/bikeCard.js deleted file mode 100644 index 200d3e7..0000000 --- a/force-app/main/default/lwc/bikeCard/bikeCard.js +++ /dev/null @@ -1,9 +0,0 @@ -import { LightningElement } from 'lwc'; -export default class bikeCard extends LightningElement { - name = 'Electra X4'; - description = 'A sweet bike built for comfort.'; - category = 'Mountain'; - material = 'Steel'; - price = '$2,700'; - pictureUrl = 'https://s3-us-west-1.amazonaws.com/sfdc-demo/ebikes/electrax4.jpg'; -} \ No newline at end of file diff --git a/force-app/main/default/lwc/bikeCard/bikeCard.js-meta.xml b/force-app/main/default/lwc/bikeCard/bikeCard.js-meta.xml deleted file mode 100644 index 86726ba..0000000 --- a/force-app/main/default/lwc/bikeCard/bikeCard.js-meta.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - 57.0 - true - Bike Card - - lightning__AppPage - lightning__RecordPage - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/c2pModelComponent/c2pModelComponent.html b/force-app/main/default/lwc/c2pModelComponent/c2pModelComponent.html deleted file mode 100644 index 71c9077..0000000 --- a/force-app/main/default/lwc/c2pModelComponent/c2pModelComponent.html +++ /dev/null @@ -1,18 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/c2pModelComponent/c2pModelComponent.js b/force-app/main/default/lwc/c2pModelComponent/c2pModelComponent.js deleted file mode 100644 index 58a2c0a..0000000 --- a/force-app/main/default/lwc/c2pModelComponent/c2pModelComponent.js +++ /dev/null @@ -1,19 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class C2pModelComponent extends LightningElement { - - msg = [{ name : 'Event 1', - mess : 'Closed 1'}, -{ - name : 'Event 2', - mess : 'Closed 2' -}] - closeHandler(){ - - const myEvent = new CustomEvent('close',{ - detail :this.msg - }); - this.dispatchEvent(myEvent); - - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/c2pModelComponent/c2pModelComponent.js-meta.xml b/force-app/main/default/lwc/c2pModelComponent/c2pModelComponent.js-meta.xml deleted file mode 100644 index 6127d85..0000000 --- a/force-app/main/default/lwc/c2pModelComponent/c2pModelComponent.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 59.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/c2pParentComponet/c2pParentComponet.html b/force-app/main/default/lwc/c2pParentComponet/c2pParentComponet.html deleted file mode 100644 index 3c61a21..0000000 --- a/force-app/main/default/lwc/c2pParentComponet/c2pParentComponet.html +++ /dev/null @@ -1,20 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/c2pParentComponet/c2pParentComponet.js b/force-app/main/default/lwc/c2pParentComponet/c2pParentComponet.js deleted file mode 100644 index f0d0917..0000000 --- a/force-app/main/default/lwc/c2pParentComponet/c2pParentComponet.js +++ /dev/null @@ -1,18 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class C2pParentComponet extends LightningElement { - - showModal=false; - message; - - clickHandler(){ - this.showModal = true ; - } - - closeHandler(event){ - this.message = event.detail - this.showModal = false ; - console.log(this.message[0].name); - - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/c2pParentComponet/c2pParentComponet.js-meta.xml b/force-app/main/default/lwc/c2pParentComponet/c2pParentComponet.js-meta.xml deleted file mode 100644 index 011be21..0000000 --- a/force-app/main/default/lwc/c2pParentComponet/c2pParentComponet.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightning__AppPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/calculator/calculator.html b/force-app/main/default/lwc/calculator/calculator.html deleted file mode 100644 index a5236eb..0000000 --- a/force-app/main/default/lwc/calculator/calculator.html +++ /dev/null @@ -1,177 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/calculator/calculator.js b/force-app/main/default/lwc/calculator/calculator.js deleted file mode 100644 index 4a4210e..0000000 --- a/force-app/main/default/lwc/calculator/calculator.js +++ /dev/null @@ -1,110 +0,0 @@ -import { LightningElement } from 'lwc'; - - -export default class PracticeJavaScript extends LightningElement { - calcResult = ''; - calcExpression = ''; - clrExpression = false; - prevOper = ''; - operations = { - current: 0, - '=': function(){ - return this.current; - }, - '+': function(n){ - this.current += parseInt(n); - return this; - }, - '-': function(n){ - this.current -= parseInt(n); - return this; - }, - '*': function(n){ - this.current *= parseInt(n); - return this; - }, - '/': function(n){ - this.current /= parseInt(n); - return this; - } - } - - - get showResult(){ - return this.operations.current; - } - handleClear(event){ - this.calcResult = ''; - this.calcExpression = ''; - - } - - - handleClick(event){ - if (this.clrExpression){ - this.calcExpression = ''; - this.calcResult = ''; - this.operations.current = 0; - this.clrExpression = false; - } - this.calcExpression = this.calcExpression + event.target.label; - if (event.target.label === "CLR"){ - this.calcResult = ''; - this.calcExpression = ''; - this.operations.current = 0; - } - else if (event.target.label === "+"){ - if (this.operations.current === 0) - { - this.operations.current = parseInt(this.calcResult); - } - else{ - this.calcResult = this.operations[this.prevOper](this.calcResult); - } - this.prevOper = '+'; - this.calcResult = ''; - } - else if (event.target.label === "-"){ - if (this.operations.current === 0) - { - this.operations.current = parseInt(this.calcResult); - } - else{ - this.calcResult = this.operations[this.prevOper](this.calcResult); - } - this.prevOper = '-'; - this.calcResult = ''; - } - else if (event.target.label === "*"){ - if (this.operations.current === 0) - { - this.operations.current = parseInt(this.calcResult); - } - else{ - this.calcResult = this.operations[this.prevOper](this.calcResult); - } - this.prevOper = '*'; - this.calcResult = ''; - } - else if (event.target.label === "/"){ - if (this.operations.current === 0) - { - this.operations.current = parseInt(this.calcResult); - } - else{ - this.calcResult = this.operations[this.prevOper](this.calcResult); - } - this.prevOper = '/'; - this.calcResult = ''; - } - else if (event.target.label === "="){ - this.calcResult = this.operations[this.prevOper](this.calcResult); - this.calcResult = this.operations['='](); - this.clrExpression = true; - } - else{ - this.calcResult = this.calcResult + event.target.label; - - } - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/calculator/calculator.js-meta.xml b/force-app/main/default/lwc/calculator/calculator.js-meta.xml deleted file mode 100644 index 519ef48..0000000 --- a/force-app/main/default/lwc/calculator/calculator.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 57.0 - true - - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/calculatorChild/calculatorChild.html b/force-app/main/default/lwc/calculatorChild/calculatorChild.html deleted file mode 100644 index 2f7103f..0000000 --- a/force-app/main/default/lwc/calculatorChild/calculatorChild.html +++ /dev/null @@ -1,147 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/calculatorChild/calculatorChild.js b/force-app/main/default/lwc/calculatorChild/calculatorChild.js deleted file mode 100644 index 95371e0..0000000 --- a/force-app/main/default/lwc/calculatorChild/calculatorChild.js +++ /dev/null @@ -1,21 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class CalculatorChild extends LightningElement { - handleNumbers(event){ - const valueformultiply=event.target.value; - - this.dispatchEvent(new CustomEvent('numbers',{ - detail:valueformultiply - })); - - } - handleMultiply(event){ - const valueoflogic=event.target.value; - this.dispatchEvent(new CustomEvent('logical',{ - detail:valueoflogic - })); - } - handleClearAll(event){ - this.dispatchEvent(new CustomEvent('clear')); - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/calculatorChild/calculatorChild.js-meta.xml b/force-app/main/default/lwc/calculatorChild/calculatorChild.js-meta.xml deleted file mode 100644 index 3fe0e73..0000000 --- a/force-app/main/default/lwc/calculatorChild/calculatorChild.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 57.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/calculatorParent/calculatorParent.html b/force-app/main/default/lwc/calculatorParent/calculatorParent.html deleted file mode 100644 index 1e8c1ed..0000000 --- a/force-app/main/default/lwc/calculatorParent/calculatorParent.html +++ /dev/null @@ -1,10 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/calculatorParent/calculatorParent.js b/force-app/main/default/lwc/calculatorParent/calculatorParent.js deleted file mode 100644 index 3bff2ba..0000000 --- a/force-app/main/default/lwc/calculatorParent/calculatorParent.js +++ /dev/null @@ -1,26 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class CalculatorParent extends LightningElement { - expression; - number; - cal; - output=0; - handlenumbers(event){ - this.expression+=event.detail; - this.number=event.detail; - if(this.cal=null){ - this.output=this.number; - } - } - handlelogical(event){ - this.expression+=event.detail; - this.cal=event.detail; - - } - handleClear(){ - this.expression = ''; - this.output = ''; - } - - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/calculatorParent/calculatorParent.js-meta.xml b/force-app/main/default/lwc/calculatorParent/calculatorParent.js-meta.xml deleted file mode 100644 index 519ef48..0000000 --- a/force-app/main/default/lwc/calculatorParent/calculatorParent.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 57.0 - true - - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/callBackMethods/callBackMethods.html b/force-app/main/default/lwc/callBackMethods/callBackMethods.html deleted file mode 100644 index cd7c16d..0000000 --- a/force-app/main/default/lwc/callBackMethods/callBackMethods.html +++ /dev/null @@ -1,37 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/callBackMethods/callBackMethods.js b/force-app/main/default/lwc/callBackMethods/callBackMethods.js deleted file mode 100644 index 9ccefc5..0000000 --- a/force-app/main/default/lwc/callBackMethods/callBackMethods.js +++ /dev/null @@ -1,58 +0,0 @@ -import { LightningElement,api, wire, track } from 'lwc'; -import { getRecord, getFieldValue } from 'lightning/uiRecordApi'; -// import templateOne from './templateOne.html'; -// import templateTwo from './templateTwo.html'; - -// import NAME_FIELD from '@salesforce/schema/Account.Name'; -// import PHONE_FIELD from '@salesforce/schema/Account.Phone'; -const FIELDS =[ - 'Account.Name', - 'Account.Phone', -] -export default class BaiscLWCLearn extends LightningElement { - message = 'Api Example'; - @api recordId; - @track ShowButton=false; - showInfo = false; - showInputFiledVal = false; - buttonLabel; - @wire(getRecord, {recordId: '$recordId',fields:FIELDS}) - record; //it contain data and error - - get name(){ - return this.record.data.fields.Name.value; - } - - get phone(){ - return this.record.data.fields.Phone.value; - } - - getName(event){ - console.log('Name', event.target.value); - this.ShowButton=true; - } - - connectedCallback(){ - console.log('Connected Call Back is Called'); - } - buttonClicked(event) - { - this.buttonLabel = event.currentTarget.dataset.id; - this.showInfo = true; - this.showInputFiledVal = true; - //this.template.querySelector('.input1').value = buttonLabel + ' is Clicked'; - } - - renderedCallback() - { - if(this.showInputFiledVal) - { - this.template.querySelector('.input1').value = this.buttonLabel + ' is Clicked'; - this.showInputFiledVal = false; - } - } - - disconnectedCallback(){ - console.log('Disconnected Call Back is Called'); - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/callBackMethods/callBackMethods.js-meta.xml b/force-app/main/default/lwc/callBackMethods/callBackMethods.js-meta.xml deleted file mode 100644 index ca5b3ed..0000000 --- a/force-app/main/default/lwc/callBackMethods/callBackMethods.js-meta.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - 57.0 - true - - lightning__HomePage - lightning__RecordPage - - - \ No newline at end of file diff --git a/force-app/main/default/lwc/callingFlow/callingFlow.html b/force-app/main/default/lwc/callingFlow/callingFlow.html deleted file mode 100644 index 70d85f5..0000000 --- a/force-app/main/default/lwc/callingFlow/callingFlow.html +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/callingFlow/callingFlow.js b/force-app/main/default/lwc/callingFlow/callingFlow.js deleted file mode 100644 index 6a97f77..0000000 --- a/force-app/main/default/lwc/callingFlow/callingFlow.js +++ /dev/null @@ -1,14 +0,0 @@ -import { LightningElement, track } from 'lwc'; - -export default class MyComponent extends LightningElement { - @track isFlowVisible = false; - - launchFlow() { - this.isFlowVisible = true; - this.template.querySelector('lightning-flow').startFlow('ShowingText'); - } - - hideFlow() { - this.isFlowVisible = false; - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/callingFlow/callingFlow.js-meta.xml b/force-app/main/default/lwc/callingFlow/callingFlow.js-meta.xml deleted file mode 100644 index 5b8c38a..0000000 --- a/force-app/main/default/lwc/callingFlow/callingFlow.js-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - 58.0 - true - - lightning__HomePage - lightning__AppPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/calllwc/calllwc.css b/force-app/main/default/lwc/calllwc/calllwc.css deleted file mode 100644 index 8c5d474..0000000 --- a/force-app/main/default/lwc/calllwc/calllwc.css +++ /dev/null @@ -1,26 +0,0 @@ -.chat-content { - position: relative; - font-weight: 400; - line-height: 1.3; - max-width: 70%; - padding: 10px; - font-size: 0.875em; - border-radius: 10px 10px 0; - float: right; - margin-left: 40px; - white-space: pre-wrap; - text-align: left; -} - -.agent.chat-content { - color: #000; - background: #7e0c65; - border-radius: 10px 10px 10px 0; - float: left; -} - -.chasitor.chat-content { - background: rgb(6, 223, 6); - color: rgb(0, 0, 0); - margin-left: auto; -} \ No newline at end of file diff --git a/force-app/main/default/lwc/calllwc/calllwc.html b/force-app/main/default/lwc/calllwc/calllwc.html deleted file mode 100644 index 2b1d2f8..0000000 --- a/force-app/main/default/lwc/calllwc/calllwc.html +++ /dev/null @@ -1,34 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/calllwc/calllwc.js b/force-app/main/default/lwc/calllwc/calllwc.js deleted file mode 100644 index b02e6e4..0000000 --- a/force-app/main/default/lwc/calllwc/calllwc.js +++ /dev/null @@ -1,83 +0,0 @@ -import { track, api } from 'lwc'; -import { ShowToastEvent } from 'lightning/platformShowToastEvent'; -import Botimage from '@salesforce/resourceUrl/Botimage'; -import ChatMessage from 'lightningsnapin/baseChatMessage'; - -const CHAT_CONTENT_CLASS = 'chat-content'; -const AGENT_USER_TYPE = 'agent'; -const CHASITOR_USER_TYPE = 'chasitor'; -const SUPPORTED_USER_TYPES = [AGENT_USER_TYPE, CHASITOR_USER_TYPE]; - -export default class calllwc extends ChatMessage { - @track messageStyle = ''; - @track imageURL = Botimage; - @track name = 'Order Product Image'; - @track showImage = false; - @track fileUpload = false; // Initialize to false - @track mapMarkers = []; // Initialize to empty array - @track showMap = false; - - handleGeolocationSuccess(position) { - const { latitude, longitude } = position.coords; - this.mapMarkers = [{ - location: { - Street: '', - City: '', - Country: '', - Latitude: latitude, - Longitude: longitude - }, - title: 'You are here', - description: 'Your current location' - }]; - } - - handleClick(){ - if(navigator.geolocation){ - navigator.geolocation.getCurrentPosition( - this.handleGeolocationSuccess.bind(this), - error => console.error('Geolocation error:', error) - ); - } - } - - @api - handleUploadFinished(event) { - console.log('Upload finished'); - // Get the list of uploaded files - const uploadedFiles = event.detail.files; - console.log('No. of files uploaded : ' + uploadedFiles.length); - console.log('file : ', event.detail.files); - - // Show success message - const toastEvent = new ShowToastEvent({ - title: 'Success!', - message: 'Upload completed successfully', - variant: 'success', - }); - this.dispatchEvent(toastEvent); - } - - isSupportedUserType(userType) { - return SUPPORTED_USER_TYPES.includes(userType); - } - - connectedCallback() { - if (this.isSupportedUserType(this.userType)) { - this.messageStyle = `${CHAT_CONTENT_CLASS} ${this.userType}`; - } else { - throw new Error(`Unsupported user type: ${this.userType}`); - } - if (this.messageContent.value === 'Einstein Chatbot') { - this.showImage = true; - } else if (this.messageContent.value === 'File Upload') { - this.fileUpload = true; - } else if (this.messageContent.value === 'Current Location') { - this.handleClick(); // Call the handleClick method to get the current location - this.showMap = true; - console.log('Map ' ,this.showMap ); - } else { - this.showImage = false; - } - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/calllwc/calllwc.js-meta.xml b/force-app/main/default/lwc/calllwc/calllwc.js-meta.xml deleted file mode 100644 index ca0d885..0000000 --- a/force-app/main/default/lwc/calllwc/calllwc.js-meta.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - 59.0 - true - calllwc - - lightningSnapin__ChatMessage - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/childExample/childExample.html b/force-app/main/default/lwc/childExample/childExample.html deleted file mode 100644 index 840ee16..0000000 --- a/force-app/main/default/lwc/childExample/childExample.html +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/childExample/childExample.js b/force-app/main/default/lwc/childExample/childExample.js deleted file mode 100644 index e71b8ea..0000000 --- a/force-app/main/default/lwc/childExample/childExample.js +++ /dev/null @@ -1,5 +0,0 @@ -import { LightningElement,api } from 'lwc'; - -export default class ChildExample extends LightningElement { - @api counter=0; -} \ No newline at end of file diff --git a/force-app/main/default/lwc/childExample/childExample.js-meta.xml b/force-app/main/default/lwc/childExample/childExample.js-meta.xml deleted file mode 100644 index 3fe0e73..0000000 --- a/force-app/main/default/lwc/childExample/childExample.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 57.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/childExp1/childExp1.html b/force-app/main/default/lwc/childExp1/childExp1.html deleted file mode 100644 index 1f6d8c4..0000000 --- a/force-app/main/default/lwc/childExp1/childExp1.html +++ /dev/null @@ -1,6 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/childExp1/childExp1.js b/force-app/main/default/lwc/childExp1/childExp1.js deleted file mode 100644 index 6858270..0000000 --- a/force-app/main/default/lwc/childExp1/childExp1.js +++ /dev/null @@ -1,5 +0,0 @@ -import { LightningElement,api } from 'lwc'; - -export default class ChildExp1 extends LightningElement { - @api counter=0; -} \ No newline at end of file diff --git a/force-app/main/default/lwc/childExp1/childExp1.js-meta.xml b/force-app/main/default/lwc/childExp1/childExp1.js-meta.xml deleted file mode 100644 index 3fe0e73..0000000 --- a/force-app/main/default/lwc/childExp1/childExp1.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 57.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/chlidExp/chlidExp.html b/force-app/main/default/lwc/chlidExp/chlidExp.html deleted file mode 100644 index 01158ed..0000000 --- a/force-app/main/default/lwc/chlidExp/chlidExp.html +++ /dev/null @@ -1,41 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/chlidExp/chlidExp.js b/force-app/main/default/lwc/chlidExp/chlidExp.js deleted file mode 100644 index f190c66..0000000 --- a/force-app/main/default/lwc/chlidExp/chlidExp.js +++ /dev/null @@ -1,23 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class ChlidExp extends LightningElement { - handleSubstract(){ - this.dispatchEvent(new CustomEvent('substract')); - - } - - handleAdd(){ - this.dispatchEvent(new CustomEvent('add')); - - } - - handleMultiply(event){ - const valueformultiply=event.target.value; - - this.dispatchEvent(new CustomEvent('multiply',{ - detail:valueformultiply - })) - - } - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/chlidExp/chlidExp.js-meta.xml b/force-app/main/default/lwc/chlidExp/chlidExp.js-meta.xml deleted file mode 100644 index 3fe0e73..0000000 --- a/force-app/main/default/lwc/chlidExp/chlidExp.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 57.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/cloud_Pub_Sub/cloud_Pub_Sub.css b/force-app/main/default/lwc/cloud_Pub_Sub/cloud_Pub_Sub.css deleted file mode 100644 index d7cb7db..0000000 --- a/force-app/main/default/lwc/cloud_Pub_Sub/cloud_Pub_Sub.css +++ /dev/null @@ -1,4 +0,0 @@ -.shadow-box { - box-shadow: 0 0 2px #0176d3; - margin-bottom: 5px; -} \ No newline at end of file diff --git a/force-app/main/default/lwc/cloud_Pub_Sub/cloud_Pub_Sub.html b/force-app/main/default/lwc/cloud_Pub_Sub/cloud_Pub_Sub.html deleted file mode 100644 index 86a2bd1..0000000 --- a/force-app/main/default/lwc/cloud_Pub_Sub/cloud_Pub_Sub.html +++ /dev/null @@ -1,33 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/cloud_Pub_Sub/cloud_Pub_Sub.js b/force-app/main/default/lwc/cloud_Pub_Sub/cloud_Pub_Sub.js deleted file mode 100644 index e66e90a..0000000 --- a/force-app/main/default/lwc/cloud_Pub_Sub/cloud_Pub_Sub.js +++ /dev/null @@ -1,23 +0,0 @@ -import { LightningElement, track } from 'lwc'; -import pullMessages from '@salesforce/apex/GoogleCloudPubSubService.pullMessages'; -export default class Cloud_Pub_Sub extends LightningElement { - @track messages = []; - - getMessages() { - console.log('onclick'); - try { - pullMessages() - .then(result => { - this.messages = result; - console.log('got message', this.messages); - }) - .catch(error => { - console.error('Error in pullMessages: ', error); - }); - - } catch (e) { - console.error('Error in getMessages: ', e); - } - } - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/cloud_Pub_Sub/cloud_Pub_Sub.js-meta.xml b/force-app/main/default/lwc/cloud_Pub_Sub/cloud_Pub_Sub.js-meta.xml deleted file mode 100644 index 8f8e5eb..0000000 --- a/force-app/main/default/lwc/cloud_Pub_Sub/cloud_Pub_Sub.js-meta.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - 59.0 - true - - lightning__HomePage - lightning__RecordPage - lightningCommunity__Page - lightningCommunity__Default - - \ No newline at end of file diff --git a/force-app/main/default/lwc/conditionalRenderingComponent/conditionalRenderingComponent.html b/force-app/main/default/lwc/conditionalRenderingComponent/conditionalRenderingComponent.html deleted file mode 100644 index daafd4b..0000000 --- a/force-app/main/default/lwc/conditionalRenderingComponent/conditionalRenderingComponent.html +++ /dev/null @@ -1,25 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/conditionalRenderingComponent/conditionalRenderingComponent.js b/force-app/main/default/lwc/conditionalRenderingComponent/conditionalRenderingComponent.js deleted file mode 100644 index 1dc13b1..0000000 --- a/force-app/main/default/lwc/conditionalRenderingComponent/conditionalRenderingComponent.js +++ /dev/null @@ -1,19 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class ConditionalRenderingComponent extends LightningElement { - isVisible = false; - name - handleClick() { - this.isVisible = true; - } - handleInputChange(event){ - this.name = event.target.value; - } - get helloName(){ - return this.name === 'hello' - } - - //falsy Values - // 0,false,'',null,undefined - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/conditionalRenderingComponent/conditionalRenderingComponent.js-meta.xml b/force-app/main/default/lwc/conditionalRenderingComponent/conditionalRenderingComponent.js-meta.xml deleted file mode 100644 index 09b9c8d..0000000 --- a/force-app/main/default/lwc/conditionalRenderingComponent/conditionalRenderingComponent.js-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - 59.0 - true - - lightning__AppPage - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/connectedCallBack/connectedCallBack.html b/force-app/main/default/lwc/connectedCallBack/connectedCallBack.html deleted file mode 100644 index 760a24f..0000000 --- a/force-app/main/default/lwc/connectedCallBack/connectedCallBack.html +++ /dev/null @@ -1,17 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/connectedCallBack/connectedCallBack.js b/force-app/main/default/lwc/connectedCallBack/connectedCallBack.js deleted file mode 100644 index 9be191c..0000000 --- a/force-app/main/default/lwc/connectedCallBack/connectedCallBack.js +++ /dev/null @@ -1,16 +0,0 @@ -import { LightningElement } from 'lwc'; -export default class App extends LightningElement { - name = 'Electra X4'; - description = 'A sweet bike built for comfort.'; - category = 'Mountain'; - material = 'Steel'; - price = '$2,700'; - time=10000; - pictureUrl = 'https://s3-us-west-1.amazonaws.com/sfdc-demo/ebikes/electrax4.jpg'; - ready = false; - connectedCallback() { - setTimeout(() => { - this.ready = true; - }, this.time); - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/connectedCallBack/connectedCallBack.js-meta.xml b/force-app/main/default/lwc/connectedCallBack/connectedCallBack.js-meta.xml deleted file mode 100644 index 5fecdd0..0000000 --- a/force-app/main/default/lwc/connectedCallBack/connectedCallBack.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 58.0 - true - - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/createContact/createContact.css b/force-app/main/default/lwc/createContact/createContact.css deleted file mode 100644 index 5db389e..0000000 --- a/force-app/main/default/lwc/createContact/createContact.css +++ /dev/null @@ -1,3 +0,0 @@ -.custom-background { - background-color: rgb(251, 238, 193); -} \ No newline at end of file diff --git a/force-app/main/default/lwc/createContact/createContact.html b/force-app/main/default/lwc/createContact/createContact.html deleted file mode 100644 index 178b8b9..0000000 --- a/force-app/main/default/lwc/createContact/createContact.html +++ /dev/null @@ -1,21 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/createContact/createContact.js b/force-app/main/default/lwc/createContact/createContact.js deleted file mode 100644 index 1124e8b..0000000 --- a/force-app/main/default/lwc/createContact/createContact.js +++ /dev/null @@ -1,51 +0,0 @@ -import { LightningElement, track } from 'lwc'; -import { ShowToastEvent } from 'lightning/platformShowToastEvent'; -import createContact from '@salesforce/apex/ContactCreator.createContact'; - -export default class CreateContact extends LightningElement { - @track contact = { - fname: '', - lname: '', - email: '' - }; - - handleChange(event) { - const field = event.target.name; - this.contact[field] = event.target.value; - } - - handleSave() { - const { fname, lname, email } = this.contact; - console.log('debug',this.contact); - if(!fname || !lname || !email) { - this.showToast('Error', 'First Name, Last Name and Email cannot be empty', 'error'); - } else { - createContact({ fname, lname, email }) - .then(result => { - this.resetContact(); - this.showToast('Success', 'Contact created', 'success'); - }) - .catch(error => { - this.showToast('Error creating record', 'A contact with this email already exists', 'error'); - }); - } - } - - showToast(title, message, variant) { - this.dispatchEvent( - new ShowToastEvent({ - title, - message, - variant - }) - ); - } - - resetContact() { - this.contact = { - fname: '', - lname: '', - email: '' - }; - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/createContact/createContact.js-meta.xml b/force-app/main/default/lwc/createContact/createContact.js-meta.xml deleted file mode 100644 index e94cf53..0000000 --- a/force-app/main/default/lwc/createContact/createContact.js-meta.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - 59.0 - true - - lightning__HomePage - lightningCommunity__Page - lightningCommunity__Default - - \ No newline at end of file diff --git a/force-app/main/default/lwc/createCustomPhotoUploader/createCustomPhotoUploader.css b/force-app/main/default/lwc/createCustomPhotoUploader/createCustomPhotoUploader.css deleted file mode 100644 index 7ac40ca..0000000 --- a/force-app/main/default/lwc/createCustomPhotoUploader/createCustomPhotoUploader.css +++ /dev/null @@ -1,77 +0,0 @@ -/* myComponent.css */ -.image-container { - position: relative; - display: inline-block; -} - -.image { - height: 100px; - width: 100px; - border-radius:100px; - display: block; -} -.card-image{ - display: flex; - justify-content: center; - align-items: center; - height: 100%; -} -.overlay-icon-1{ - position: absolute; - top: -4px; - right: 12px; -} - -.overlay-icon { - position: absolute; - bottom: 2px; - right: 10px; -} - -.dropdown-content { - display: none; - position: absolute; - background-color: #f9f9f9; - min-width: 160px; - box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); -} - - -.dropdown-content p { - padding: 3px 4px; - cursor: pointer; -} - -.dropdown-content p:hover { - background-color: #ddd; /* Change the background color of each item when hovering over it */ -} - -.overlay-icon:hover .dropdown-content { - display: block; -} -.removeImage { - border-radius: 50%; - padding: 0px 4px; - margin: 8px 2px 8px 8px; - color: #fff; - background-color: #9f201b; - cursor: pointer; -} - /* for preview */ - .image-preview-container { - width: 50%; - margin: 0 auto; - border: 1px solid rgba(0, 0, 0, 0.1); - padding: 3rem; - border-radius: 20px; -} - -.image-preview-container img { - width: 100%; - display: none; - margin-bottom: 30px; -} -.custom-close-button { - --sds-c-icon-size-m: 2rem; /* Adjust the size */ - font-weight: bold; /* Make it bold */ -} \ No newline at end of file diff --git a/force-app/main/default/lwc/createCustomPhotoUploader/createCustomPhotoUploader.html b/force-app/main/default/lwc/createCustomPhotoUploader/createCustomPhotoUploader.html deleted file mode 100644 index cb90020..0000000 --- a/force-app/main/default/lwc/createCustomPhotoUploader/createCustomPhotoUploader.html +++ /dev/null @@ -1,259 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/createCustomPhotoUploader/createCustomPhotoUploader.js b/force-app/main/default/lwc/createCustomPhotoUploader/createCustomPhotoUploader.js deleted file mode 100644 index 7b008c1..0000000 --- a/force-app/main/default/lwc/createCustomPhotoUploader/createCustomPhotoUploader.js +++ /dev/null @@ -1,161 +0,0 @@ -import { LightningElement,api,track,wire} from 'lwc'; -import uploadFile from '@salesforce/apex/FileUploadService.uploadFile'; -import deletefile from '@salesforce/apex/FileUploadService.deletefile'; -import { ShowToastEvent } from 'lightning/platformShowToastEvent'; -import { refreshApex } from '@salesforce/apex'; -import { getRecord, getFieldValue } from 'lightning/uiRecordApi'; - -// Import the reference to the fields that you wish to display -import ProfileUrl__c_FIELD from '@salesforce/schema/Friend__c.ProfileUrl__c'; - -export default class CreateCustomPhotoUploader extends LightningElement { - - fields = [ProfileUrl__c_FIELD]; - uploadPhotoPrompt = false; - showPhotoPrompt=false; - deletePhotoPrompt=false; - Contentv; - @api recordId; - fileData; - imageUrl; - spinner=false; - isphoto=false; - - @wire(getRecord, { recordId: '$recordId', fields: [ProfileUrl__c_FIELD] }) - wiredRecord({ error, data }) { - if (data) { - this.imageUrl = getFieldValue(data, ProfileUrl__c_FIELD); - } else if (error) { - console.error('Error getting record', error); - } - } - renderedCallback() { - console.log('Img url:',this.imageUrl); - if(this.imageUrl!=null){ - let url = new URL(this.imageUrl); - let params = new URLSearchParams(url.search); - this.Contentv= params.get('versionId'); - console.log('@@@ Content iddddd',this.Contentv); - } - - } - UploadFilechange(event) { - const file = event.target.files[0]; - const fileType = file.type; - const acceptedFormats = ['image/png', 'image/jpeg']; - if (!acceptedFormats.includes(fileType)) { - // Show an error message and return - this.dispatchEvent( - new ShowToastEvent({ - title: 'Error', - message: 'Invalid file type. Please upload a .png or .jpeg file.', - variant: 'error', - }), - ); - return; - - } - var reader = new FileReader(); - reader.onload = () => { - var base64 = reader.result.split(',')[1]; - this.fileData = { - 'filename': file.name, - 'base64': base64, - 'recordId': this.recordId - } - console.log(this.fileData); - } - reader.readAsDataURL(file); - } - - handleClick(){ - if(this.fileData==null){ - console.log('inside click if'); - this.dispatchEvent( - new ShowToastEvent({ - title: 'Error', - message: 'Please Choose Photo!', - variant: 'error', - }), - ); - }else if(this.fileData != null){ - this.spinner = true; - console.log('inside else'); - const {base64, filename, recordId} = this.fileData; - uploadFile({ base64, filename, recordId }) - .then(result=>{ - if(result){ - this.imageUrl = result; - // window.localStorage.setItem('imageUrl', this.imageUrl) - this.isphoto=true; - this.dispatchEvent( - new ShowToastEvent({ - title:`${filename} uploaded successfully!!`, - variant: 'success', - }), - ); - console.log('image url:',this.imageUrl); - let url = new URL(this.imageUrl); - let params = new URLSearchParams(url.search); - this.Contentv= params.get('versionId'); - console.log('@@@ Content iddddd',this.Contentv); - // Hide the spinner after 2.5 seconds - setTimeout(() => { - this.spinner = false; - }, 2500); - this.fileData = null - this.hidePrompt(); - }else if(error){ - console.log(error); - } - }) - } - } - - removeReceiptImage(){ - this.fileData=null; - } - - showPrompt() { - this.uploadPhotoPrompt = true; - } - hidePrompt() { - this.uploadPhotoPrompt = false; - this.showPhotoPrompt= false; - this.fileData=null; - this.deletePhotoPrompt=false; - - } - showPhoto() { - this.showPhotoPrompt=true; - - } - uploadPhoto() { - - this.uploadPhotoPrompt=true; - } - deletePhoto(){ - this.deletePhotoPrompt=true; - } - - handleDelete(){ - deletefile({Contentv: this.Contentv,recordid:this.recordId}) - .then(result=>{ - if(result){ - this.dispatchEvent( - new ShowToastEvent({ - title:result, - variant: 'success', - }), - ); - setTimeout(() => { - this.spinner = false; - }, 2500); - this.isphoto=false; - this.hidePrompt(); - } - - }) - } - - } \ No newline at end of file diff --git a/force-app/main/default/lwc/createCustomPhotoUploader/createCustomPhotoUploader.js-meta.xml b/force-app/main/default/lwc/createCustomPhotoUploader/createCustomPhotoUploader.js-meta.xml deleted file mode 100644 index fa684e5..0000000 --- a/force-app/main/default/lwc/createCustomPhotoUploader/createCustomPhotoUploader.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 58.0 - true - - lightning__RecordPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/createRecordWithoutApex/createRecordWithoutApex.html b/force-app/main/default/lwc/createRecordWithoutApex/createRecordWithoutApex.html deleted file mode 100644 index 36aeb75..0000000 --- a/force-app/main/default/lwc/createRecordWithoutApex/createRecordWithoutApex.html +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/createRecordWithoutApex/createRecordWithoutApex.js b/force-app/main/default/lwc/createRecordWithoutApex/createRecordWithoutApex.js deleted file mode 100644 index c173115..0000000 --- a/force-app/main/default/lwc/createRecordWithoutApex/createRecordWithoutApex.js +++ /dev/null @@ -1,56 +0,0 @@ -import { LightningElement } from 'lwc'; // Importing necessary modules from LWC -import { createRecord } from 'lightning/uiRecordApi'; // Importing createRecord from uiRecordApi to create a new record -import ACCOUNT_OBJECT from '@salesforce/schema/Account'; // Importing Account object from Salesforce schema -import { ShowToastEvent } from 'lightning/platformShowToastEvent'; // Importing ShowToastEvent to display toast messages -import NAME_FIELD from '@salesforce/schema/Account.Name'; // Importing Name field from Account object in Salesforce schema -import matchNameMethod from '@salesforce/apex/MatchName.matchNameMethod'; // Importing Apex method to check for matching account names - -export default class CreateRecordWithoutApex extends LightningElement { - Name = ''; // Variable to hold the name value entered in the LWC - - // Function to handle the change in name input field value - handleNameChange(event) { - this.Name = event.target.value; // Updating the Name variable with the entered value - } - - // Function to handle account creation - async handleCreateAccount() { - const fields = {}; - fields[NAME_FIELD.fieldApiName] = this.Name; // Setting the Name field with the entered value - const recordInput = { apiName: ACCOUNT_OBJECT.objectApiName, fields }; // Preparing the record input for account creation - - try { - const matchName = await matchNameMethod({ acName: this.Name }); // Checking if a matching account name exists - if (!matchName) { // If no matching account name exists, create a new account record - const account = await createRecord(recordInput); - this.showSuccessToast(); // Show success toast message after account creation - window.location.reload(); // Reload the window to reflect the changes - } else { - this.failToast(); // If a matching account name exists, show failure toast message - window.location.reload(); // Reload the window to reflect the changes - } - } catch (error) { - console.error(error); // Log any errors encountered during the process - } - } - - showSuccessToast() { // Function to display success toast message - const event = new ShowToastEvent({ - label: 'Record Created', - message: 'Congratulations!!! You have Created Record', - variant: 'success', - mode: 'dismissable', - }); - this.dispatchEvent(event); // Dispatching the toast event - } - - failToast() { // Function to display failure toast message - const event = new ShowToastEvent({ - label: 'Record Creation failed', - message: 'Failed!! Duplicate Name Found!!! Try With Different Name', - variant: 'error', - mode: 'dismissable', - }); - this.dispatchEvent(event); // Dispatching the toast event - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/createRecordWithoutApex/createRecordWithoutApex.js-meta.xml b/force-app/main/default/lwc/createRecordWithoutApex/createRecordWithoutApex.js-meta.xml deleted file mode 100644 index 5fecdd0..0000000 --- a/force-app/main/default/lwc/createRecordWithoutApex/createRecordWithoutApex.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 58.0 - true - - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/creatingCustomPhotoUploader/creatingCustomPhotoUploader.html b/force-app/main/default/lwc/creatingCustomPhotoUploader/creatingCustomPhotoUploader.html deleted file mode 100644 index 0e9530c..0000000 --- a/force-app/main/default/lwc/creatingCustomPhotoUploader/creatingCustomPhotoUploader.html +++ /dev/null @@ -1,36 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/creatingCustomPhotoUploader/creatingCustomPhotoUploader.js b/force-app/main/default/lwc/creatingCustomPhotoUploader/creatingCustomPhotoUploader.js deleted file mode 100644 index c9f86a6..0000000 --- a/force-app/main/default/lwc/creatingCustomPhotoUploader/creatingCustomPhotoUploader.js +++ /dev/null @@ -1,166 +0,0 @@ -import { LightningElement, api,track } from 'lwc'; -import { ShowToastEvent } from 'lightning/platformShowToastEvent'; -import LightningPrompt from 'lightning/prompt'; -import uploadFile from '@salesforce/apex/FileUploadService.uploadFile' -import { FlowAttributeChangeEvent, FlowNavigationNextEvent } from 'lightning/flowSupport'; -export default class creatingCustomPhotoUploader extends LightningElement { - @api recordId; - fileData - UploadFilechange(event) { - const file = event.target.files[0]; - const fileType = file.type; - const acceptedFormats = ['image/png', 'image/jpeg']; - - if (!acceptedFormats.includes(fileType)) { - // Show an error message and return - this.dispatchEvent( - new ShowToastEvent({ - title: 'Error', - message: 'Invalid file type. Please upload a .png or .jpeg file.', - variant: 'error', - }), - ); - return; - } - - var reader = new FileReader(); - reader.onload = () => { - var base64 = reader.result.split(',')[1]; - this.fileData = { - 'filename': file.name, - 'base64': base64, - 'recordId': this.recordId - } - console.log(this.fileData); - } - reader.readAsDataURL(file); - } - - - handleClick(){ - const {base64, filename, recordId} = this.fileData - uploadFile({ base64, filename, recordId }).then(result=>{ - this.fileData = null - let title = `${filename} uploaded successfully!!` - this.toast(title) - }) - } - - toast(title){ - const toastEvent = new ShowToastEvent({ - title, - variant:"success" - }) - this.dispatchEvent(toastEvent) - } - notify() - { - //Ask question using Prompt - this.template.querySelector('c-common-notification').notify('prompt', 'What is your Email?','header','Notification','info'); - } - - - @api notificationType; - @api message; - @api variant; - @api header; - @api colorTheme; - @api value; - @api isCallerFlow=false; - @api autoCloseTime = 5000; - @track showToastBar=false; - connectedCallback() - { - //If Flow then show modal when screen is shown - if(this.isCallerFlow==true) - { - this.showNotification(); - } - } - showNotification() - { - if(this.notificationType=='Confirm') - { - this.handleConfirm(); - } - else if(this.notificationType=='Prompt') - { - this.handlePrompt(); - } - else if(this.notificationType=='Alert') - { - this.handleAlert(); - } - else if(this.notificationType=='Toast') - { - this.handleToast(); - } - } - - @api - notify(type, message,variant,header,theme) { - this.notificationType = type; - this.message = message; - this.variant=variant; - this.header=header; - this.colorTheme = theme; - this.showNotification(); - } - - handlePrompt(){ - LightningPrompt.open({ - message: this.message, - theme: this.colorTheme, - label: this.header, - variant: this.variant, - defaultValue: '', - }).then((result) => { - this.value=result; - const selectedEvent = new CustomEvent('selection', { detail: result }); - // Dispatches the event - this.dispatchEvent(selectedEvent); - - if(this.isCallerFlow==true) - { - const attributeChangeEvent = new FlowAttributeChangeEvent( - 'value',result); - this.dispatchEvent(attributeChangeEvent); - - var navigationEvent = new FlowNavigationNextEvent(); - this.dispatchEvent(navigationEvent); - } - }); - } - - - - //Toast Section - closeModel() { - this.showToastBar = false; - if(this.isCallerFlow==true) - { - var navigationEvent = new FlowNavigationNextEvent(); - this.dispatchEvent(navigationEvent); - } - } - - get getIconName() { - return 'utility:' + this.colorTheme; - } - - get innerClass() { - return 'slds-icon_container slds-icon-utility-' + this.colorTheme + ' slds-icon-utility-success slds-m-right_small slds-no-flex slds-align-top'; - } - - get outerClass() { - return 'slds-notify slds-notify_toast slds-theme_' + this.colorTheme; - } - - handleToast(){ - var that=this; - that.showToastBar = true; - setTimeout(() => { - that.closeModel(); - }, that.autoCloseTime); - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/creatingCustomPhotoUploader/creatingCustomPhotoUploader.js-meta.xml b/force-app/main/default/lwc/creatingCustomPhotoUploader/creatingCustomPhotoUploader.js-meta.xml deleted file mode 100644 index 060a2d1..0000000 --- a/force-app/main/default/lwc/creatingCustomPhotoUploader/creatingCustomPhotoUploader.js-meta.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - 56.0 - true - Notification - - lightning__RecordAction - lightning__HomePage - lightning__RecordPage - lightning__AppPage - lightning__Tab - lightning__FlowScreen - - - - - - - - - - - - - - \ No newline at end of file diff --git a/force-app/main/default/lwc/customFooterFlowComponent/customFooterFlowComponent.html b/force-app/main/default/lwc/customFooterFlowComponent/customFooterFlowComponent.html deleted file mode 100644 index 17ff6b5..0000000 --- a/force-app/main/default/lwc/customFooterFlowComponent/customFooterFlowComponent.html +++ /dev/null @@ -1,14 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/customFooterFlowComponent/customFooterFlowComponent.js b/force-app/main/default/lwc/customFooterFlowComponent/customFooterFlowComponent.js deleted file mode 100644 index 357eef1..0000000 --- a/force-app/main/default/lwc/customFooterFlowComponent/customFooterFlowComponent.js +++ /dev/null @@ -1,37 +0,0 @@ -import { LightningElement, api } from 'lwc'; -import { FlowAttributeChangeEvent, FlowNavigationBackEvent, FlowNavigationNextEvent} from 'lightning/flowSupport'; - -/*FlowAttributeChangeEvent — Informs the runtime that a component property has changed. -FlowNavigationBackEvent — Requests navigation to the previous screen. -FlowNavigationNextEvent — Requests navigation to the next screen. -FlowNavigationFinishEvent — Requests the flow runtime to terminate the flow.*/ - -export default class CustomFooterFlowComponent extends LightningElement { - - @api btnName; - - handleSaveData(event){ - - if(event.target.name === 'Save as Draft'){ - this.btnName = event.target.name; - console.log('btn name: ',this.btnName); - const attributeChangeEvent = new FlowAttributeChangeEvent('btnName', this.btnName); - this.dispatchEvent(attributeChangeEvent); - } - else if(event.target.name === 'Send Checklists'){ - this.btnName = event.target.name; - console.log('btn name: ',this.btnName); - const attributeChangeEvent = new FlowAttributeChangeEvent('btnName', this.btnName); - this.dispatchEvent(attributeChangeEvent); - } - const navigateNextEvent = new FlowNavigationNextEvent(); - this.dispatchEvent(navigateNextEvent); - } - - handleGoBack(){ - // navigate to the back screen - const navigateBackEvent = new FlowNavigationBackEvent(); - this.dispatchEvent(navigateBackEvent); - } - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/customFooterFlowComponent/customFooterFlowComponent.js-meta.xml b/force-app/main/default/lwc/customFooterFlowComponent/customFooterFlowComponent.js-meta.xml deleted file mode 100644 index 77d0b50..0000000 --- a/force-app/main/default/lwc/customFooterFlowComponent/customFooterFlowComponent.js-meta.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - 59.0 - true - - lightning__FlowScreen - - - - - - - \ No newline at end of file diff --git a/force-app/main/default/lwc/customLookup/customLookup.html b/force-app/main/default/lwc/customLookup/customLookup.html deleted file mode 100644 index 3225ad7..0000000 --- a/force-app/main/default/lwc/customLookup/customLookup.html +++ /dev/null @@ -1,15 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/customLookup/customLookup.js b/force-app/main/default/lwc/customLookup/customLookup.js deleted file mode 100644 index ca98479..0000000 --- a/force-app/main/default/lwc/customLookup/customLookup.js +++ /dev/null @@ -1,31 +0,0 @@ -import { LightningElement,wire } from 'lwc'; -import findAccounts from '@salesforce/apex/AccountController.findAccounts'; - -export default class customLookup extends LightningElement { - value = ''; - resultObj = []; // Declare an object to store the result - - handleOnChange(event){ - this.value = event.target.value; - console.log(this.value); - findAccounts({searchKey: this.value}) - .then(result => { - this.resultObj = result; // Store the result in the object - console.log("Printing reslt ",this.resultObj); // Log the object - }) - .catch(error => { - console.error(error); - }); - } - handleMouseOver(event) { - const recordId = event.currentTarget.dataset.id; - const record = this.resultObj.find(rec => rec.Id === recordId); - record.showCard = true; - } - - handleMouseOut(event) { - const recordId = event.currentTarget.dataset.id; - const record = this.resultObj.find(rec => rec.Id === recordId); - record.showCard = false; - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/customLookup/customLookup.js-meta.xml b/force-app/main/default/lwc/customLookup/customLookup.js-meta.xml deleted file mode 100644 index fa684e5..0000000 --- a/force-app/main/default/lwc/customLookup/customLookup.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 58.0 - true - - lightning__RecordPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/dOEComponent/dOEComponent.css b/force-app/main/default/lwc/dOEComponent/dOEComponent.css deleted file mode 100644 index 5cddbc0..0000000 --- a/force-app/main/default/lwc/dOEComponent/dOEComponent.css +++ /dev/null @@ -1,33 +0,0 @@ -/* .custom-button { - height: 120px; - width: 250px; - display: flex; - color: #022160; - align-items: center; - justify-content: center; - text-align: center; - padding: 10px; - border-radius: 10px; - box-shadow: 0 2px 4px rgba(0,0,0,0.2); - cursor: pointer; - background-color: #ffffff - }*/ - svg { - fill: blue; - } - - .custom-button { - height: 120px; /* Adjust based on your design needs */ - width: 250px; /* Adjust based on your design needs */ - display: flex; - color: #022160; - align-items: center; - justify-content: center; - text-align: center; - padding: 10px; - border-radius: 10px; /* Optional for rounded corners */ - box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Optional for shadow effect */ - cursor: pointer; - background-color: #ffffff; - margin: 10px; /* Add this line */ -} \ No newline at end of file diff --git a/force-app/main/default/lwc/dOEComponent/dOEComponent.html b/force-app/main/default/lwc/dOEComponent/dOEComponent.html deleted file mode 100644 index 23646a6..0000000 --- a/force-app/main/default/lwc/dOEComponent/dOEComponent.html +++ /dev/null @@ -1,58 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/dOEComponent/dOEComponent.js b/force-app/main/default/lwc/dOEComponent/dOEComponent.js deleted file mode 100644 index 41007bb..0000000 --- a/force-app/main/default/lwc/dOEComponent/dOEComponent.js +++ /dev/null @@ -1,7 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class DOEComponent extends LightningElement { - handleclick(){ - console.log('clicked'); - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/dOEComponent/dOEComponent.js-meta.xml b/force-app/main/default/lwc/dOEComponent/dOEComponent.js-meta.xml deleted file mode 100644 index 1688b73..0000000 --- a/force-app/main/default/lwc/dOEComponent/dOEComponent.js-meta.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - 59.0 - true - - lightning__AppPage - lightningCommunity__Default - lightningCommunity__Page - - \ No newline at end of file diff --git a/force-app/main/default/lwc/designSystemComponent/designSystemComponent.css b/force-app/main/default/lwc/designSystemComponent/designSystemComponent.css deleted file mode 100644 index d471f2d..0000000 --- a/force-app/main/default/lwc/designSystemComponent/designSystemComponent.css +++ /dev/null @@ -1,4 +0,0 @@ -.designTokens{ - color: var(--lwc-brandAccessible); - background-color: var(--lwc-colorBackgroundAlt); -} \ No newline at end of file diff --git a/force-app/main/default/lwc/designSystemComponent/designSystemComponent.html b/force-app/main/default/lwc/designSystemComponent/designSystemComponent.html deleted file mode 100644 index 77eee6b..0000000 --- a/force-app/main/default/lwc/designSystemComponent/designSystemComponent.html +++ /dev/null @@ -1,22 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/designSystemComponent/designSystemComponent.js b/force-app/main/default/lwc/designSystemComponent/designSystemComponent.js deleted file mode 100644 index efca777..0000000 --- a/force-app/main/default/lwc/designSystemComponent/designSystemComponent.js +++ /dev/null @@ -1,3 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class DesignSystemComponent extends LightningElement {} \ No newline at end of file diff --git a/force-app/main/default/lwc/designSystemComponent/designSystemComponent.js-meta.xml b/force-app/main/default/lwc/designSystemComponent/designSystemComponent.js-meta.xml deleted file mode 100644 index 011be21..0000000 --- a/force-app/main/default/lwc/designSystemComponent/designSystemComponent.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightning__AppPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/dynamicRecordPicker/dynamicRecordPicker.css b/force-app/main/default/lwc/dynamicRecordPicker/dynamicRecordPicker.css deleted file mode 100644 index 0507c98..0000000 --- a/force-app/main/default/lwc/dynamicRecordPicker/dynamicRecordPicker.css +++ /dev/null @@ -1,15 +0,0 @@ -.loading-container { - position: relative; -} - -.spinner-container { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - display: flex; - align-items: center; - justify-content: center; - background-color: rgba(255, 255, 255, 0.8); -} \ No newline at end of file diff --git a/force-app/main/default/lwc/dynamicRecordPicker/dynamicRecordPicker.html b/force-app/main/default/lwc/dynamicRecordPicker/dynamicRecordPicker.html deleted file mode 100644 index bee4015..0000000 --- a/force-app/main/default/lwc/dynamicRecordPicker/dynamicRecordPicker.html +++ /dev/null @@ -1,40 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/dynamicRecordPicker/dynamicRecordPicker.js b/force-app/main/default/lwc/dynamicRecordPicker/dynamicRecordPicker.js deleted file mode 100644 index 8a9a2dd..0000000 --- a/force-app/main/default/lwc/dynamicRecordPicker/dynamicRecordPicker.js +++ /dev/null @@ -1,45 +0,0 @@ -import { LightningElement, wire, track } from 'lwc'; -import getAllObjects from '@salesforce/apex/GetAllObjects.getAllObjects'; - -export default class DynamicRecordPicker extends LightningElement { - @track targetObjects = []; - selectedTarget = ''; - currentSelectedRecordId = null; - @track isLoading = true; - - @track targetObjects = [ - { label: 'Account', value: 'Account' }, - { label: 'Contact', value: 'Contact' }, - { label: 'Lead', value: 'Lead' }, - { label: 'Opportunity', value: 'Opportunity' } - ]; - - @wire(getAllObjects) - wiredObjects({ error, data }) { - if (data) { - // this.targetObjects = data.map(obj => ({ label: obj, value: obj })); - // Set the selectedTarget to the first object in the list - if(this.targetObjects.length > 0) { - this.selectedTarget = this.targetObjects[0].value; - } - console.log('@@@data',this.targetObjects); - this.isLoading = false; - } else if (error) { - console.error(error); - this.isLoading = false; - } - } - - //To hide combobox - get showTargetSelector() { - return this.currentSelectedRecordId === null; - } - - handleTargetSelection(event) { - this.selectedTarget = event.target.value; - } - - handleRecordSelect(event) { - this.currentSelectedRecordId = event.detail.recordId; - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/dynamicRecordPicker/dynamicRecordPicker.js-meta.xml b/force-app/main/default/lwc/dynamicRecordPicker/dynamicRecordPicker.js-meta.xml deleted file mode 100644 index 5fecdd0..0000000 --- a/force-app/main/default/lwc/dynamicRecordPicker/dynamicRecordPicker.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 58.0 - true - - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/fileupload/fileupload.html b/force-app/main/default/lwc/fileupload/fileupload.html deleted file mode 100644 index 54201f9..0000000 --- a/force-app/main/default/lwc/fileupload/fileupload.html +++ /dev/null @@ -1,19 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/fileupload/fileupload.js b/force-app/main/default/lwc/fileupload/fileupload.js deleted file mode 100644 index e2f5bb6..0000000 --- a/force-app/main/default/lwc/fileupload/fileupload.js +++ /dev/null @@ -1,34 +0,0 @@ -import { track } from 'lwc'; - -import BaseChatMessage from 'lightningsnapin/BaseChatMessage'; -const CHAT_CONTENT_CLASS = 'chat-content'; -const AGENT_USER_TYPE = 'agent'; -const CHASITOR_USER_TYPE = 'chasitor'; -const SUPPORTED_USER_TYPES = [AGENT_USER_TYPE, CHASITOR_USER_TYPE]; -const LWC_PREFIX = 'lwc:'; - -export default class fileupload extends BaseChatMessage { - - @track content = ''; - showNow=false; - showNoContent=false; - text = ''; // Declare 'text' variable - - connectedCallback() { - if(this.messageContent.value.startsWith(LWC_PREFIX)) { // Use the constant LWC_PREFIX - if(this.messageContent.value.split(':')[1]==="Yes") { // Use double quotes - this.showNow=true; - } else { - this.text='The file upload option is not available'; - this.showNoContent=true; - } - } else { - this.showNoContent=true; - this.text=this.messageContent.value; - } - } - - handleUploadFinished(event) { // Add 'event' parameter - const uploadedFiles = event.detail.files; - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/fileupload/fileupload.js-meta.xml b/force-app/main/default/lwc/fileupload/fileupload.js-meta.xml deleted file mode 100644 index a48b7c9..0000000 --- a/force-app/main/default/lwc/fileupload/fileupload.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightningSnapin__ChatMessage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/formLWC/formLWC.html b/force-app/main/default/lwc/formLWC/formLWC.html deleted file mode 100644 index 4e9b8a2..0000000 --- a/force-app/main/default/lwc/formLWC/formLWC.html +++ /dev/null @@ -1,10 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/formLWC/formLWC.js b/force-app/main/default/lwc/formLWC/formLWC.js deleted file mode 100644 index 84ffd3b..0000000 --- a/force-app/main/default/lwc/formLWC/formLWC.js +++ /dev/null @@ -1,12 +0,0 @@ -import { LightningElement, track } from 'lwc'; - -export default class ContactForm extends LightningElement { - @track firstName = ''; - @track lastName = ''; - @track email = ''; - - handleSubmit() { - // handle form submission logic here - window.print(); - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/formLWC/formLWC.js-meta.xml b/force-app/main/default/lwc/formLWC/formLWC.js-meta.xml deleted file mode 100644 index 56af8a8..0000000 --- a/force-app/main/default/lwc/formLWC/formLWC.js-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - 58.0 - true - - lightning__RecordPage - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/hello/hello.html b/force-app/main/default/lwc/hello/hello.html deleted file mode 100644 index 5eda547..0000000 --- a/force-app/main/default/lwc/hello/hello.html +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/hello/hello.js b/force-app/main/default/lwc/hello/hello.js deleted file mode 100644 index 9730436..0000000 --- a/force-app/main/default/lwc/hello/hello.js +++ /dev/null @@ -1,5 +0,0 @@ -import { LightningElement,api } from 'lwc'; - -export default class Hello extends LightningElement { - @api name = 'World'; -} \ No newline at end of file diff --git a/force-app/main/default/lwc/hello/hello.js-meta.xml b/force-app/main/default/lwc/hello/hello.js-meta.xml deleted file mode 100644 index ccd127c..0000000 --- a/force-app/main/default/lwc/hello/hello.js-meta.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - 60.0 - true - - lightning__AppPage - lightning__RecordPage - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/helloWorld/helloWorld.html b/force-app/main/default/lwc/helloWorld/helloWorld.html deleted file mode 100644 index 1eb9d79..0000000 --- a/force-app/main/default/lwc/helloWorld/helloWorld.html +++ /dev/null @@ -1,8 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/helloWorld/helloWorld.js b/force-app/main/default/lwc/helloWorld/helloWorld.js deleted file mode 100644 index 7bb04a1..0000000 --- a/force-app/main/default/lwc/helloWorld/helloWorld.js +++ /dev/null @@ -1,7 +0,0 @@ -import { LightningElement } from 'lwc'; -export default class helloWorld extends LightningElement { - greeting = 'World'; - changeHandler(event) { - this.greeting = event.target.value; - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/helloWorld/helloWorld.js-meta.xml b/force-app/main/default/lwc/helloWorld/helloWorld.js-meta.xml deleted file mode 100644 index 0bc0653..0000000 --- a/force-app/main/default/lwc/helloWorld/helloWorld.js-meta.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - 52.0 - true - - lightning__AppPage - lightning__RecordPage - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/helloWorldComponent/helloWorldComponent.html b/force-app/main/default/lwc/helloWorldComponent/helloWorldComponent.html deleted file mode 100644 index b4e36bf..0000000 --- a/force-app/main/default/lwc/helloWorldComponent/helloWorldComponent.html +++ /dev/null @@ -1,27 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/helloWorldComponent/helloWorldComponent.js b/force-app/main/default/lwc/helloWorldComponent/helloWorldComponent.js deleted file mode 100644 index ad0ae35..0000000 --- a/force-app/main/default/lwc/helloWorldComponent/helloWorldComponent.js +++ /dev/null @@ -1,42 +0,0 @@ -import { LightningElement,track } from 'lwc'; - -export default class HelloWorldComponent extends LightningElement { - - // Learning Data Binding - - fullName = 'Jonathan Fox' - title = 'Software Engineer' - //change Title - changeTitle(event){ - this.title = event.target.value; - } - - //Learning @track decorator - - @track address = { - city : 'San Francisco', - postcode : 94105, - state : 'CA', - country : 'USA' - } - myArray = ['a','b','c'] - - - trackhandler(event){ - this.address.city = event.target.value - // if not using @track - // this.address = {...this.address, "city": event.target.value} - } - - //Learning Getter - users = ['John','Jane','Jack'] - num1 = 10 - num2 = 20 - get firstuser(){ - return this.users[0] - - } - get sum(){ - return this.num1 + this.num2 - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/helloWorldComponent/helloWorldComponent.js-meta.xml b/force-app/main/default/lwc/helloWorldComponent/helloWorldComponent.js-meta.xml deleted file mode 100644 index 09b9c8d..0000000 --- a/force-app/main/default/lwc/helloWorldComponent/helloWorldComponent.js-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - 59.0 - true - - lightning__AppPage - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/lifeCycleHooksChildComponent/lifeCycleHooksChildComponent.html b/force-app/main/default/lwc/lifeCycleHooksChildComponent/lifeCycleHooksChildComponent.html deleted file mode 100644 index 2c4f06a..0000000 --- a/force-app/main/default/lwc/lifeCycleHooksChildComponent/lifeCycleHooksChildComponent.html +++ /dev/null @@ -1,8 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/lifeCycleHooksChildComponent/lifeCycleHooksChildComponent.js b/force-app/main/default/lwc/lifeCycleHooksChildComponent/lifeCycleHooksChildComponent.js deleted file mode 100644 index 74db91b..0000000 --- a/force-app/main/default/lwc/lifeCycleHooksChildComponent/lifeCycleHooksChildComponent.js +++ /dev/null @@ -1,18 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class LifeCycleHooksChildComponent extends LightningElement { - constructor(){ - super() - console.log('Child Constructor Called'); - } - connectedCallback(){ - console.log('Child Connected callback Called'); - throw new Error ("Loading of child compoent is failed") - } - renderedCallback(){ - console.log('Child Rendered Callback Called'); - } - disconnectedCallback(){ - alert('Child disconnected Callback Called'); - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/lifeCycleHooksChildComponent/lifeCycleHooksChildComponent.js-meta.xml b/force-app/main/default/lwc/lifeCycleHooksChildComponent/lifeCycleHooksChildComponent.js-meta.xml deleted file mode 100644 index 6127d85..0000000 --- a/force-app/main/default/lwc/lifeCycleHooksChildComponent/lifeCycleHooksChildComponent.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 59.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/lifeCycleHooksParentComponent/lifeCycleHooksParentComponent.html b/force-app/main/default/lwc/lifeCycleHooksParentComponent/lifeCycleHooksParentComponent.html deleted file mode 100644 index f5921e2..0000000 --- a/force-app/main/default/lwc/lifeCycleHooksParentComponent/lifeCycleHooksParentComponent.html +++ /dev/null @@ -1,24 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/lifeCycleHooksParentComponent/lifeCycleHooksParentComponent.js b/force-app/main/default/lwc/lifeCycleHooksParentComponent/lifeCycleHooksParentComponent.js deleted file mode 100644 index bf31abb..0000000 --- a/force-app/main/default/lwc/lifeCycleHooksParentComponent/lifeCycleHooksParentComponent.js +++ /dev/null @@ -1,25 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class LifeCycleHooksParentComponent extends LightningElement { - isChildVisible = false - constructor(){ - super() - console.log('Parent Constructor Called'); - } - connectedCallback(){ - console.log('Parent Connected callback Called'); - } - renderedCallback(){ - console.log('Parent Rendered Callback Called'); - } - errorCallback(err,stack){ - console.log('Error',err.message); - console.log('Stack',stack); - } - - handleClick(){ - this.isChildVisible = !this.isChildVisible; - - } - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/lifeCycleHooksParentComponent/lifeCycleHooksParentComponent.js-meta.xml b/force-app/main/default/lwc/lifeCycleHooksParentComponent/lifeCycleHooksParentComponent.js-meta.xml deleted file mode 100644 index 011be21..0000000 --- a/force-app/main/default/lwc/lifeCycleHooksParentComponent/lifeCycleHooksParentComponent.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightning__AppPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/lightningDatatableLWCExample/lightningDatatableLWCExample.html b/force-app/main/default/lwc/lightningDatatableLWCExample/lightningDatatableLWCExample.html deleted file mode 100644 index d562419..0000000 --- a/force-app/main/default/lwc/lightningDatatableLWCExample/lightningDatatableLWCExample.html +++ /dev/null @@ -1,14 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/lightningDatatableLWCExample/lightningDatatableLWCExample.js b/force-app/main/default/lwc/lightningDatatableLWCExample/lightningDatatableLWCExample.js deleted file mode 100644 index b029171..0000000 --- a/force-app/main/default/lwc/lightningDatatableLWCExample/lightningDatatableLWCExample.js +++ /dev/null @@ -1,48 +0,0 @@ -import { LightningElement, wire, track,api } from 'lwc'; -import { NavigationMixin } from 'lightning/navigation'; -import getAccounts from '@salesforce/apex/MyAccounts.getAccounts'; - - -export default class LightningDatatableLWCExample extends NavigationMixin(LightningElement) { - @track columns = [ - { - label: 'Account Name', - fieldName: 'Name', - type: 'text', - sortable: true - }, - { - label: 'Phone', - fieldName: 'Phone', - type: 'phone', - sortable: true - } - ]; - - @track error; - @track data; - - @wire(getAccounts) - wiredAccounts({ error, data }) { - if (data) { - this.data = data; - } else if (error) { - this.error = error; - } - } - - handleRowAction(event) { - const selectedRecord =event.detail.row.Id; - console.log('@@@@@@ getting selected id: '+selectedRecord); - - this[NavigationMixin.Navigate]({ - type: 'standard__recordPage', - attributes: { - recordId: selectedRecord, - objectApiName: 'Account', - actionName: 'view' - } - }); - } - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/lightningDatatableLWCExample/lightningDatatableLWCExample.js-meta.xml b/force-app/main/default/lwc/lightningDatatableLWCExample/lightningDatatableLWCExample.js-meta.xml deleted file mode 100644 index b216d10..0000000 --- a/force-app/main/default/lwc/lightningDatatableLWCExample/lightningDatatableLWCExample.js-meta.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - 57.0 - true - - lightning__AppPage - lightning__RecordPage - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/lms/lms.html b/force-app/main/default/lwc/lms/lms.html deleted file mode 100644 index f379f42..0000000 --- a/force-app/main/default/lwc/lms/lms.html +++ /dev/null @@ -1,6 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/lms/lms.js b/force-app/main/default/lwc/lms/lms.js deleted file mode 100644 index aa22f94..0000000 --- a/force-app/main/default/lwc/lms/lms.js +++ /dev/null @@ -1,22 +0,0 @@ -import { LightningElement,wire } from 'lwc'; -import { subscribe, MessageContext } from 'lightning/messageService'; -import COUNTER_UPDATED_CHANNEL from '@salesforce/messageChannel/CounterUpdated__c'; - -export default class Lms extends LightningElement { - @wire(MessageContext) - messageContext; - - connectedCallback() { - this.subscription = subscribe( - this.messageContext, - COUNTER_UPDATED_CHANNEL, - (message) => { - this.updateCounter(message.counterValue); - } - ); - } - updateCounter(counterValue) { - this.counterValue = counterValue; - } - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/lms/lms.js-meta.xml b/force-app/main/default/lwc/lms/lms.js-meta.xml deleted file mode 100644 index 9fa43f2..0000000 --- a/force-app/main/default/lwc/lms/lms.js-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - 59.0 - true - - lightning__HomePage - lightning__RecordPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/locationViwer/locationViwer.html b/force-app/main/default/lwc/locationViwer/locationViwer.html deleted file mode 100644 index 1e7a253..0000000 --- a/force-app/main/default/lwc/locationViwer/locationViwer.html +++ /dev/null @@ -1,8 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/locationViwer/locationViwer.js b/force-app/main/default/lwc/locationViwer/locationViwer.js deleted file mode 100644 index f52bd3a..0000000 --- a/force-app/main/default/lwc/locationViwer/locationViwer.js +++ /dev/null @@ -1,37 +0,0 @@ -// Import necessary modules from the lwc library and the getFriendLocation Apex class -import { LightningElement, api, track } from 'lwc'; -import getLoacation from '@salesforce/apex/getFriendLocation.getLoacation'; - -// Define the LocationViwer class which extends the LightningElement base class -export default class LocationViwer extends LightningElement { - @api recordId; // Public property to hold the record ID - @track CityOfFriend; // Tracked property to hold the friend's city - error; // Property to hold any errors - mapMarkers; // Property to hold the map markers - - // Lifecycle hook which fires when a component is inserted into the DOM - connectedCallback(){ - console.log('Record id:', this.recordId); // Log the record ID - - // Call the getLoacation function from the Apex class with the record ID as a parameter - getLoacation({rcId: this.recordId}) - .then(result => { // Handle the Promise resolution - console.log(result); // Log the result - this.CityOfFriend = result[0].Home_Town__c; // Assign the friend's city to CityOfFriend - console.log('@@@@CityOfFriend:', this.CityOfFriend); - - // Define mapMarkers with the friend's city as a location - this.mapMarkers = [{ - location: { - City: this.CityOfFriend, - }, - }]; - }) - .catch(error => { // Handle any errors - this.error = error; // Assign the error to the error property - }) - } - - zoomLevel = 15; // Set the zoom level for the map - listView = 'visible'; // Set the list view for the map to visible -} \ No newline at end of file diff --git a/force-app/main/default/lwc/locationViwer/locationViwer.js-meta.xml b/force-app/main/default/lwc/locationViwer/locationViwer.js-meta.xml deleted file mode 100644 index 56af8a8..0000000 --- a/force-app/main/default/lwc/locationViwer/locationViwer.js-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - 58.0 - true - - lightning__RecordPage - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/logger/logger.html b/force-app/main/default/lwc/logger/logger.html deleted file mode 100644 index 6d1e75a..0000000 --- a/force-app/main/default/lwc/logger/logger.html +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/logger/logger.js b/force-app/main/default/lwc/logger/logger.js deleted file mode 100644 index dbd7279..0000000 --- a/force-app/main/default/lwc/logger/logger.js +++ /dev/null @@ -1,12 +0,0 @@ -import { LightningElement } from 'lwc'; -import { log } from 'lightning/logger'; - -export default class Logger extends LightningElement { - handleClick() { - let msg = { - type: 'click', - action: 'Approve' - } - log(msg); - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/logger/logger.js-meta.xml b/force-app/main/default/lwc/logger/logger.js-meta.xml deleted file mode 100644 index 0ac90a6..0000000 --- a/force-app/main/default/lwc/logger/logger.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightning__RecordPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/loopingComponent/loopingComponent.html b/force-app/main/default/lwc/loopingComponent/loopingComponent.html deleted file mode 100644 index f64e452..0000000 --- a/force-app/main/default/lwc/loopingComponent/loopingComponent.html +++ /dev/null @@ -1,76 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/loopingComponent/loopingComponent.js b/force-app/main/default/lwc/loopingComponent/loopingComponent.js deleted file mode 100644 index b0d7bce..0000000 --- a/force-app/main/default/lwc/loopingComponent/loopingComponent.js +++ /dev/null @@ -1,35 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class LoopingComponent extends LightningElement { - - carList = ['Ford Mustang', 'Toyota Camry', 'Honda Civic', 'Chevy Camaro', 'Dodge Challenger']; - - ceoList =[ - { - id : 1, - name: 'Elon Musk', - company: 'Tesla' - }, - { - id : 2, - name: 'Jeff Bezos', - company: 'Amazon' - }, - { - id : 3, - name: 'Bill Gates', - company: 'Microsoft' - }, - { - id : 4, - name: 'Mark Zuckerberg', - company: 'Facebook' - }, - { - id : 5, - name: 'Sundar Pichai', - company: 'Google' - }, - ] - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/loopingComponent/loopingComponent.js-meta.xml b/force-app/main/default/lwc/loopingComponent/loopingComponent.js-meta.xml deleted file mode 100644 index 011be21..0000000 --- a/force-app/main/default/lwc/loopingComponent/loopingComponent.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightning__AppPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/membershipAndAccount/membershipAndAccount.css b/force-app/main/default/lwc/membershipAndAccount/membershipAndAccount.css deleted file mode 100644 index 4e55186..0000000 --- a/force-app/main/default/lwc/membershipAndAccount/membershipAndAccount.css +++ /dev/null @@ -1,54 +0,0 @@ -.card{ - box-shadow: 0px 0px 1px 0px ; /* Adjusted shadow */ - display: flex; - flex-direction: column; - border-radius: 10px; - background-color: #ffffff; - width: 230px; - margin-bottom: 24px; - padding: 10px 0 15px 15px; - font-size: medium; -} - -@media (max-width: 768px) { - .slds-scrollable_y { - padding-left: 10px; /* Adjust as needed */ - } -} - -.slds-scrollable_y{ - height: 248px; - margin: 22px; - padding:17px; -} - -.container { - width: 100%; - font-family: Arial, sans-serif; - background-color: #f2f2f4; -} - -.container h1 { - font-size: 24px; - color: #172068; - font-weight: bold; - margin-bottom: 10px; -} -.container.p{ - color: #172068; -} -.loading-container { - position: relative; -} - -.spinner-container { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - display: flex; - align-items: center; - justify-content: center; - background-color: rgba(255, 255, 255, 0.8); -} \ No newline at end of file diff --git a/force-app/main/default/lwc/membershipAndAccount/membershipAndAccount.html b/force-app/main/default/lwc/membershipAndAccount/membershipAndAccount.html deleted file mode 100644 index a26b1a2..0000000 --- a/force-app/main/default/lwc/membershipAndAccount/membershipAndAccount.html +++ /dev/null @@ -1,38 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/membershipAndAccount/membershipAndAccount.js b/force-app/main/default/lwc/membershipAndAccount/membershipAndAccount.js deleted file mode 100644 index df783d8..0000000 --- a/force-app/main/default/lwc/membershipAndAccount/membershipAndAccount.js +++ /dev/null @@ -1,34 +0,0 @@ -import { LightningElement, wire, track } from 'lwc'; -import getMembershipAndAccountMethod from '@salesforce/apex/getMembershipAndAccount.getMembershipAndAccountMethod'; - -export default class MembershipAndAccount extends LightningElement { - @track Membership = []; - @track AccInfo = {}; - @track isLoading = true; - - @wire(getMembershipAndAccountMethod) - wiredDate({error, data}){ - if (data) { - this.Membership = data.map(item => { - let flatItem = {...item}; - flatItem.Financial_Product_Name = item.Financial_Product__r.Name; - return flatItem; - }); - console.log("Membership",this.Membership); - - if (data.length > 0) { - this.AccInfo = { - Industry: data[0].Member__r.Industry, - AccountNumber: data[0].Member__r.AccountNumber, - AccountName:data[0].Member__r.Name, - Type:data[0].Member__r.AccountNumber - }; - } - console.log("Acc info",this.AccInfo); - this.isLoading = false; - } else if(error){ - console.log('Error',error); - this.isLoading = false; - } - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/membershipAndAccount/membershipAndAccount.js-meta.xml b/force-app/main/default/lwc/membershipAndAccount/membershipAndAccount.js-meta.xml deleted file mode 100644 index 4546800..0000000 --- a/force-app/main/default/lwc/membershipAndAccount/membershipAndAccount.js-meta.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - 58.0 - true - - lightning__HomePage - lightningCommunity__Page - lightningCommunity__Default - lightning__RecordPage - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/force-app/main/default/lwc/memoryGame/memoryGame.css b/force-app/main/default/lwc/memoryGame/memoryGame.css deleted file mode 100644 index 4e54417..0000000 --- a/force-app/main/default/lwc/memoryGame/memoryGame.css +++ /dev/null @@ -1,23 +0,0 @@ -.container{ - display: flex; - justify-content: center; - align-items: center; - flex-direction: column; -} -.score-panel{ - text-align: left; - margin-bottom: 12px; -} -.timer{ - display: inline-block; - margin: 0 1rem; -} -.restart{ - float: right; - cursor: pointer; - margin: 0px 8px; -} -.timer::before{ - content: "\f4fc"; - font-family: "FontAwesome"; -} \ No newline at end of file diff --git a/force-app/main/default/lwc/memoryGame/memoryGame.html b/force-app/main/default/lwc/memoryGame/memoryGame.html deleted file mode 100644 index 5ca3f6c..0000000 --- a/force-app/main/default/lwc/memoryGame/memoryGame.html +++ /dev/null @@ -1,24 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/memoryGame/memoryGame.js b/force-app/main/default/lwc/memoryGame/memoryGame.js deleted file mode 100644 index f5994e0..0000000 --- a/force-app/main/default/lwc/memoryGame/memoryGame.js +++ /dev/null @@ -1,47 +0,0 @@ -import { LightningElement } from 'lwc'; -import {loadStyle} from 'lightning/platformResourceLoader' -import fontawesome11 from '@salesforce/resourceUrl/fontawesome11' -export default class MemoryGame extends LightningElement { - isLoaded = false; - - cards = [ - {id:1,listclass:"card",type:"diamond",icon:"fa fa-diamond"}, - {id:2,listclass:"card",type:"plane",icon:"fa fa-plane"}, - {id:3,listclass:"card",type:"anchor",icon:"fa fa-anchor"}, - {id:4,listclass:"card",type:"bolt",icon:"fa fa-bolt"}, - {id:5,listclass:"card",type:"cube",icon:"fa fa-cube"}, - {id:6,listclass:"card",type:"anchor",icon:"fa fa-anchor"}, - {id:7,listclass:"card",type:"leaf",icon:"fa fa-leaf"}, - {id:8,listclass:"card",type:"bicycle",icon:"fa fa-bicycle"}, - {id:9,listclass:"card",type:"diamond",icon:"fa fa-diamond"}, - {id:10,listclass:"card",type:"bomb",icon:"fa fa-bomb"}, - {id:11,listclass:"card",type:"leaf",icon:"fa fa-leaf"}, - {id:12,listclass:"card",type:"bomb",icon:"fa fa-bomb"}, - {id:13,listclass:"card",type:"bolt",icon:"fa fa-bolt"}, - {id:14,listclass:"card",type:"bicycle",icon:"fa fa-bicycle"}, - {id:15,listclass:"card",type:"plane",icon:"fa fa-plane"}, - {id:16,listclass:"card",type:"cube",icon:"fa fa-cube"}, - {id:17,listclass:"card",type:"user",icon:"fa fa-user-check"}, - - ] - renderedCallback(){ - try { - if(this.isLoaded == true){ - return - }else{ - loadStyle(this,fontawesome11+'/fontawesome-free-6.5.2-web/css/all.css') - .then(()=>{ - console.log('loded Succesfully'); - }) - .catch(error=>{ - console.error('error',error); - }) - this.isLoaded = true; - } - } catch (error) { - console.error('Got Error when loading Library:',error); - } - - - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/memoryGame/memoryGame.js-meta.xml b/force-app/main/default/lwc/memoryGame/memoryGame.js-meta.xml deleted file mode 100644 index 011be21..0000000 --- a/force-app/main/default/lwc/memoryGame/memoryGame.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightning__AppPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/navigateToHome/navigateToHome.html b/force-app/main/default/lwc/navigateToHome/navigateToHome.html deleted file mode 100644 index bd5fb3e..0000000 --- a/force-app/main/default/lwc/navigateToHome/navigateToHome.html +++ /dev/null @@ -1,8 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/navigateToHome/navigateToHome.js b/force-app/main/default/lwc/navigateToHome/navigateToHome.js deleted file mode 100644 index b798c2a..0000000 --- a/force-app/main/default/lwc/navigateToHome/navigateToHome.js +++ /dev/null @@ -1,13 +0,0 @@ -import { LightningElement } from 'lwc'; -import {NavigationMixin} from 'lightning/navigation'; -export default class NavigateToHome extends NavigationMixin(LightningElement) { - - navigateToHome(){ - this[NavigationMixin.Navigate]({ - type:'standard__namedPage', - attributes:{ - pageName:'home' - } - }) - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/navigateToHome/navigateToHome.js-meta.xml b/force-app/main/default/lwc/navigateToHome/navigateToHome.js-meta.xml deleted file mode 100644 index 011be21..0000000 --- a/force-app/main/default/lwc/navigateToHome/navigateToHome.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightning__AppPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/navigateToRecordPage/navigateToRecordPage.html b/force-app/main/default/lwc/navigateToRecordPage/navigateToRecordPage.html deleted file mode 100644 index 12e6424..0000000 --- a/force-app/main/default/lwc/navigateToRecordPage/navigateToRecordPage.html +++ /dev/null @@ -1,8 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/navigateToRecordPage/navigateToRecordPage.js b/force-app/main/default/lwc/navigateToRecordPage/navigateToRecordPage.js deleted file mode 100644 index 0e89bb9..0000000 --- a/force-app/main/default/lwc/navigateToRecordPage/navigateToRecordPage.js +++ /dev/null @@ -1,34 +0,0 @@ -import { LightningElement, wire } from 'lwc'; -import { NavigationMixin } from 'lightning/navigation'; -import getAccounts from '@salesforce/apex/MyAccounts.getAccounts'; - -const columns = [ - { label: 'Name', fieldName: 'Name' }, - { label: 'Phone', fieldName: 'Phone', type: 'phone' } -]; - -export default class AccountList extends NavigationMixin(LightningElement) { - columns = columns; - accounts; - - @wire(getAccounts) - AcCList({ error, data }) { - if (data) { - this.accounts = data; - } else if (error) { - console.error(error); - } - } - - gotoRecordPage(event) { - this.record = event.detail.row; - this[NavigationMixin.Navigate]({ - type: 'standard__recordPage', - attributes: { - recordId: this.record.id, - objectApiName: 'Account', - actionName: 'view' - } - }); - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/navigateToRecordPage/navigateToRecordPage.js-meta.xml b/force-app/main/default/lwc/navigateToRecordPage/navigateToRecordPage.js-meta.xml deleted file mode 100644 index 14a8e29..0000000 --- a/force-app/main/default/lwc/navigateToRecordPage/navigateToRecordPage.js-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - 57.0 - true - - lightning__AppPage - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/p2cCarousalComponent/p2cCarousalComponent.html b/force-app/main/default/lwc/p2cCarousalComponent/p2cCarousalComponent.html deleted file mode 100644 index 1df6f84..0000000 --- a/force-app/main/default/lwc/p2cCarousalComponent/p2cCarousalComponent.html +++ /dev/null @@ -1,16 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/p2cCarousalComponent/p2cCarousalComponent.js b/force-app/main/default/lwc/p2cCarousalComponent/p2cCarousalComponent.js deleted file mode 100644 index 79550ed..0000000 --- a/force-app/main/default/lwc/p2cCarousalComponent/p2cCarousalComponent.js +++ /dev/null @@ -1,5 +0,0 @@ -import { LightningElement,api } from 'lwc'; - -export default class P2cCarousalComponent extends LightningElement { - @api caraousalDetails -} \ No newline at end of file diff --git a/force-app/main/default/lwc/p2cCarousalComponent/p2cCarousalComponent.js-meta.xml b/force-app/main/default/lwc/p2cCarousalComponent/p2cCarousalComponent.js-meta.xml deleted file mode 100644 index 6127d85..0000000 --- a/force-app/main/default/lwc/p2cCarousalComponent/p2cCarousalComponent.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 59.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/p2cChildComponent/p2cChildComponent.html b/force-app/main/default/lwc/p2cChildComponent/p2cChildComponent.html deleted file mode 100644 index 32af363..0000000 --- a/force-app/main/default/lwc/p2cChildComponent/p2cChildComponent.html +++ /dev/null @@ -1,10 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/p2cChildComponent/p2cChildComponent.js b/force-app/main/default/lwc/p2cChildComponent/p2cChildComponent.js deleted file mode 100644 index 05d02e1..0000000 --- a/force-app/main/default/lwc/p2cChildComponent/p2cChildComponent.js +++ /dev/null @@ -1,9 +0,0 @@ -import { LightningElement,api } from 'lwc'; - -export default class P2cChildComponent extends LightningElement { - @api message; - @api number; - @api isVisible; - @api heading; - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/p2cChildComponent/p2cChildComponent.js-meta.xml b/force-app/main/default/lwc/p2cChildComponent/p2cChildComponent.js-meta.xml deleted file mode 100644 index 6127d85..0000000 --- a/force-app/main/default/lwc/p2cChildComponent/p2cChildComponent.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 59.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/p2cParentComponent/p2cParentComponent.html b/force-app/main/default/lwc/p2cParentComponent/p2cParentComponent.html deleted file mode 100644 index 7aad246..0000000 --- a/force-app/main/default/lwc/p2cParentComponent/p2cParentComponent.html +++ /dev/null @@ -1,34 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/p2cParentComponent/p2cParentComponent.js b/force-app/main/default/lwc/p2cParentComponent/p2cParentComponent.js deleted file mode 100644 index 305976c..0000000 --- a/force-app/main/default/lwc/p2cParentComponent/p2cParentComponent.js +++ /dev/null @@ -1,30 +0,0 @@ -import { LightningElement,api } from 'lwc'; - -export default class P2cParentComponent extends LightningElement { - carousalData = [ - { - src : "https://www.lightningdesignsystem.com/assets/images/carousel/carousel-01.jpg", - header : "First Card", - description :"First card description." - }, - { - src : "https://www.lightningdesignsystem.com/assets/images/carousel/carousel-01.jpg", - header : "Secound Card", - description :"Secound card description." - }, - { - src : "https://www.lightningdesignsystem.com/assets/images/carousel/carousel-01.jpg", - header : "Third Card", - description :"Third card description." - } -] - percentage=10 - changeHandler(event){ - this.percentage = (event.target.value)*10; - - } - - handleClick(){ - this.template.querySelector('c-p2c-slider-component').resetSlider() - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/p2cParentComponent/p2cParentComponent.js-meta.xml b/force-app/main/default/lwc/p2cParentComponent/p2cParentComponent.js-meta.xml deleted file mode 100644 index 011be21..0000000 --- a/force-app/main/default/lwc/p2cParentComponent/p2cParentComponent.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightning__AppPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/p2cProgressComponent/p2cProgressComponent.html b/force-app/main/default/lwc/p2cProgressComponent/p2cProgressComponent.html deleted file mode 100644 index c9d5665..0000000 --- a/force-app/main/default/lwc/p2cProgressComponent/p2cProgressComponent.html +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/p2cProgressComponent/p2cProgressComponent.js b/force-app/main/default/lwc/p2cProgressComponent/p2cProgressComponent.js deleted file mode 100644 index f8aef17..0000000 --- a/force-app/main/default/lwc/p2cProgressComponent/p2cProgressComponent.js +++ /dev/null @@ -1,6 +0,0 @@ -import { LightningElement,api } from 'lwc'; - -export default class P2cProgressComponent extends LightningElement { - @api progressvalue; - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/p2cProgressComponent/p2cProgressComponent.js-meta.xml b/force-app/main/default/lwc/p2cProgressComponent/p2cProgressComponent.js-meta.xml deleted file mode 100644 index 6127d85..0000000 --- a/force-app/main/default/lwc/p2cProgressComponent/p2cProgressComponent.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 59.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/p2cSliderComponent/p2cSliderComponent.html b/force-app/main/default/lwc/p2cSliderComponent/p2cSliderComponent.html deleted file mode 100644 index 20f5399..0000000 --- a/force-app/main/default/lwc/p2cSliderComponent/p2cSliderComponent.html +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/p2cSliderComponent/p2cSliderComponent.js b/force-app/main/default/lwc/p2cSliderComponent/p2cSliderComponent.js deleted file mode 100644 index 13975ec..0000000 --- a/force-app/main/default/lwc/p2cSliderComponent/p2cSliderComponent.js +++ /dev/null @@ -1,12 +0,0 @@ -import { LightningElement,api } from 'lwc'; - -export default class P2cSliderComponent extends LightningElement { - val= 20 - changeHandler(event){ - this.val = event.target.value; - } - @api resetSlider(){ - this.val = 50; - } - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/p2cSliderComponent/p2cSliderComponent.js-meta.xml b/force-app/main/default/lwc/p2cSliderComponent/p2cSliderComponent.js-meta.xml deleted file mode 100644 index 6127d85..0000000 --- a/force-app/main/default/lwc/p2cSliderComponent/p2cSliderComponent.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 59.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/parentExample/parentExample.html b/force-app/main/default/lwc/parentExample/parentExample.html deleted file mode 100644 index 9cfdec6..0000000 --- a/force-app/main/default/lwc/parentExample/parentExample.html +++ /dev/null @@ -1,15 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/parentExample/parentExample.js b/force-app/main/default/lwc/parentExample/parentExample.js deleted file mode 100644 index dfefdbc..0000000 --- a/force-app/main/default/lwc/parentExample/parentExample.js +++ /dev/null @@ -1,9 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class ParentExample extends LightningElement { - startcounter=0; - handleStartCounter(event){ - this.startcounter=event.target.value; - - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/parentExample/parentExample.js-meta.xml b/force-app/main/default/lwc/parentExample/parentExample.js-meta.xml deleted file mode 100644 index 519ef48..0000000 --- a/force-app/main/default/lwc/parentExample/parentExample.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 57.0 - true - - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/parentExp/parentExp.html b/force-app/main/default/lwc/parentExp/parentExp.html deleted file mode 100644 index 5701968..0000000 --- a/force-app/main/default/lwc/parentExp/parentExp.html +++ /dev/null @@ -1,12 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/parentExp/parentExp.js b/force-app/main/default/lwc/parentExp/parentExp.js deleted file mode 100644 index 17e9e64..0000000 --- a/force-app/main/default/lwc/parentExp/parentExp.js +++ /dev/null @@ -1,16 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class ParentExp extends LightningElement { - countvalue=0; - - handleDecrement(){ - this.countvalue--; - } - handleIncrement(){ - this.countvalue++; - } - handleMultiply(event){ - const multiplingNumber=event.detail; - this.countvalue*=multiplingNumber; - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/parentExp/parentExp.js-meta.xml b/force-app/main/default/lwc/parentExp/parentExp.js-meta.xml deleted file mode 100644 index 519ef48..0000000 --- a/force-app/main/default/lwc/parentExp/parentExp.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 57.0 - true - - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/parentExp1/parentExp1.html b/force-app/main/default/lwc/parentExp1/parentExp1.html deleted file mode 100644 index 33aa890..0000000 --- a/force-app/main/default/lwc/parentExp1/parentExp1.html +++ /dev/null @@ -1,18 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/parentExp1/parentExp1.js b/force-app/main/default/lwc/parentExp1/parentExp1.js deleted file mode 100644 index 217435a..0000000 --- a/force-app/main/default/lwc/parentExp1/parentExp1.js +++ /dev/null @@ -1,10 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class ParentExp1 extends LightningElement { - startCounter=0; - - handleStartChange(event){ - this.startCounter = event.target.value; - - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/parentExp1/parentExp1.js-meta.xml b/force-app/main/default/lwc/parentExp1/parentExp1.js-meta.xml deleted file mode 100644 index 3fe0e73..0000000 --- a/force-app/main/default/lwc/parentExp1/parentExp1.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 57.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/parentExpFirst/parentExpFirst.html b/force-app/main/default/lwc/parentExpFirst/parentExpFirst.html deleted file mode 100644 index 33aa890..0000000 --- a/force-app/main/default/lwc/parentExpFirst/parentExpFirst.html +++ /dev/null @@ -1,18 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/parentExpFirst/parentExpFirst.js b/force-app/main/default/lwc/parentExpFirst/parentExpFirst.js deleted file mode 100644 index 217435a..0000000 --- a/force-app/main/default/lwc/parentExpFirst/parentExpFirst.js +++ /dev/null @@ -1,10 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class ParentExp1 extends LightningElement { - startCounter=0; - - handleStartChange(event){ - this.startCounter = event.target.value; - - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/parentExpFirst/parentExpFirst.js-meta.xml b/force-app/main/default/lwc/parentExpFirst/parentExpFirst.js-meta.xml deleted file mode 100644 index 3fe0e73..0000000 --- a/force-app/main/default/lwc/parentExpFirst/parentExpFirst.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 57.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/polymorphicRecordPicker/PolymorphicRecordPicker.css b/force-app/main/default/lwc/polymorphicRecordPicker/PolymorphicRecordPicker.css deleted file mode 100644 index 4a7d865..0000000 --- a/force-app/main/default/lwc/polymorphicRecordPicker/PolymorphicRecordPicker.css +++ /dev/null @@ -1,20 +0,0 @@ -/* Container with relative positioning */ -.loading-container { - position: relative; - display: inline-block; -} - -/* Spinner container with absolute positioning and centered content */ -.spinner-container { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - /* Flex display for center alignment of content */ - display: flex; - align-items: center; - justify-content: center; - /* Semi-transparent white background */ - background-color: rgba(255, 255, 255, 0.8); -} \ No newline at end of file diff --git a/force-app/main/default/lwc/polymorphicRecordPicker/polymorphicRecordPicker.html b/force-app/main/default/lwc/polymorphicRecordPicker/polymorphicRecordPicker.html deleted file mode 100644 index 5cbbc54..0000000 --- a/force-app/main/default/lwc/polymorphicRecordPicker/polymorphicRecordPicker.html +++ /dev/null @@ -1,44 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/polymorphicRecordPicker/polymorphicRecordPicker.js b/force-app/main/default/lwc/polymorphicRecordPicker/polymorphicRecordPicker.js deleted file mode 100644 index c1a1dea..0000000 --- a/force-app/main/default/lwc/polymorphicRecordPicker/polymorphicRecordPicker.js +++ /dev/null @@ -1,68 +0,0 @@ -// Import necessary modules from the Lightning Web Components (LWC) and Apex -import { LightningElement, wire, track } from 'lwc'; -import getObjectMethod from '@salesforce/apex/getObjects.getObjectMethod'; - -// Define the PolymorphicRecordPicker class -export default class PolymorphicRecordPicker extends LightningElement { - // Track the target objects, selected target, current selected record ID, and loading state - @track targetObjects = [ - { label: 'Account', value: 'Account' }, - { label: 'Contact', value: 'Contact' }, - { label: 'Lead', value: 'Lead' }, - { label: 'Opportunity', value: 'Opportunity' } - ]; - selectedTarget = ''; - currentSelectedRecordId = null; - @track isLoading = true; - - - // Wire the getAllObjects Apex method to the wiredObjects function - @wire(getObjectMethod) - wiredObjects({ error, data }) { - try { - // If data is returned - if (data) { - - // Map the data to the targetObjects array - this.targetObjects = [...this.targetObjects, ...data.map(obj => ({ label: obj, value: obj }))]; - - // Set the selectedTarget to the first object in the list - if (this.targetObjects.length > 0) { - this.selectedTarget = this.targetObjects[0].value; - } - - // Log the targetObjects array - console.log('@@@data', this.targetObjects); - // Set isLoading to false to hide the loading spinner - this.isLoading = false; - } - // If an error occurred - else if (error) { - // Log the error - console.error(error); - // Set isLoading to false to hide the loading spinner - this.isLoading = false; - } - } catch (e) { - console.error('An error occurred: ', e); - } - } - - // Getter to determine whether to show the target selector - get showTargetSelector() { - // Return true if the currentSelectedRecordId is null - return this.currentSelectedRecordId === null; - } - - // Handler for the target selection event - handleTargetSelection(event) { - // Set the selectedTarget to the value of the event target - this.selectedTarget = event.target.value; - } - - // Handler for the record select event - handleRecordSelect(event) { - // Set the currentSelectedRecordId to the record ID from the event detail - this.currentSelectedRecordId = event.detail.recordId; - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/polymorphicRecordPicker/polymorphicRecordPicker.js-meta.xml b/force-app/main/default/lwc/polymorphicRecordPicker/polymorphicRecordPicker.js-meta.xml deleted file mode 100644 index a19e36b..0000000 --- a/force-app/main/default/lwc/polymorphicRecordPicker/polymorphicRecordPicker.js-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - 58.0 - true - - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/previewFileModal/PreviewFileModal.css b/force-app/main/default/lwc/previewFileModal/PreviewFileModal.css deleted file mode 100644 index 770d0ac..0000000 --- a/force-app/main/default/lwc/previewFileModal/PreviewFileModal.css +++ /dev/null @@ -1,4 +0,0 @@ -.slds-modal__container { - width: 90% !important; - max-width: 90% !important; - } \ No newline at end of file diff --git a/force-app/main/default/lwc/previewFileModal/previewFileModal.html b/force-app/main/default/lwc/previewFileModal/previewFileModal.html deleted file mode 100644 index 912eeab..0000000 --- a/force-app/main/default/lwc/previewFileModal/previewFileModal.html +++ /dev/null @@ -1,63 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/previewFileModal/previewFileModal.js b/force-app/main/default/lwc/previewFileModal/previewFileModal.js deleted file mode 100644 index d50a1ae..0000000 --- a/force-app/main/default/lwc/previewFileModal/previewFileModal.js +++ /dev/null @@ -1,19 +0,0 @@ -import { LightningElement, api } from "lwc"; - -export default class PreviewFileModal extends LightningElement { - @api url; - @api description=""; - @api fileExtension; - showFrame = false; - showModal = false; - @api show() { - console.log("###showFrame : " + this.fileExtension); - if (this.fileExtension === "pdf") this.showFrame = true; - else this.showFrame = false; - this.showModal = true; - console.log("description in last"+this.description); - } - closeModal() { - this.showModal = false; - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/previewFileModal/previewFileModal.js-meta.xml b/force-app/main/default/lwc/previewFileModal/previewFileModal.js-meta.xml deleted file mode 100644 index 8f2f6ae..0000000 --- a/force-app/main/default/lwc/previewFileModal/previewFileModal.js-meta.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - 57.0 - true - - lightning__AppPage - lightning__HomePage - lightning__RecordPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/previewFileThumbnailCard/previewFileThumbnailCard.html b/force-app/main/default/lwc/previewFileThumbnailCard/previewFileThumbnailCard.html deleted file mode 100644 index af90663..0000000 --- a/force-app/main/default/lwc/previewFileThumbnailCard/previewFileThumbnailCard.html +++ /dev/null @@ -1,65 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/previewFileThumbnailCard/previewFileThumbnailCard.js b/force-app/main/default/lwc/previewFileThumbnailCard/previewFileThumbnailCard.js deleted file mode 100644 index 0311c61..0000000 --- a/force-app/main/default/lwc/previewFileThumbnailCard/previewFileThumbnailCard.js +++ /dev/null @@ -1,63 +0,0 @@ -import { LightningElement, api } from "lwc"; - -export default class PreviewFileThumbnailCard extends LightningElement { - @api file; - @api recordId; - @api thumbnail; - @api note; - - renderedCallback(){ - console.log('Note in Child' ,this.note); - } - - - get iconName() { - if (this.file.Extension) { - if (this.file.Extension === "pdf") { - return "doctype:pdf"; - } - if (this.file.Extension === "ppt") { - return "doctype:ppt"; - } - if (this.file.Extension === "xls") { - return "doctype:excel"; - } - if (this.file.Extension === "csv") { - return "doctype:csv"; - } - if (this.file.Extension === "txt") { - return "doctype:txt"; - } - if (this.file.Extension === "xml") { - return "doctype:xml"; - } - if (this.file.Extension === "doc") { - return "doctype:word"; - } - if (this.file.Extension === "zip") { - return "doctype:zip"; - } - if (this.file.Extension === "rtf") { - return "doctype:rtf"; - } - if (this.file.Extension === "psd") { - return "doctype:psd"; - } - if (this.file.Extension === "html") { - return "doctype:html"; - } - if (this.file.Extension === "gdoc") { - return "doctype:gdoc"; - } - } - return "doctype:image"; - } - - filePreview() { - console.log("###Click"); - const showPreview = this.template.querySelector("c-preview-file-modal"); - showPreview.show(); - showPreview.description=this.note; - console.log(`des${this.note}`) - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/previewFileThumbnailCard/previewFileThumbnailCard.js-meta.xml b/force-app/main/default/lwc/previewFileThumbnailCard/previewFileThumbnailCard.js-meta.xml deleted file mode 100644 index 8f2f6ae..0000000 --- a/force-app/main/default/lwc/previewFileThumbnailCard/previewFileThumbnailCard.js-meta.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - 57.0 - true - - lightning__AppPage - lightning__HomePage - lightning__RecordPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/previewFileThumbnails/previewFileThumbnails.html b/force-app/main/default/lwc/previewFileThumbnails/previewFileThumbnails.html deleted file mode 100644 index 6ef5a87..0000000 --- a/force-app/main/default/lwc/previewFileThumbnails/previewFileThumbnails.html +++ /dev/null @@ -1,41 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/previewFileThumbnails/previewFileThumbnails.js b/force-app/main/default/lwc/previewFileThumbnails/previewFileThumbnails.js deleted file mode 100644 index 8ddebaa..0000000 --- a/force-app/main/default/lwc/previewFileThumbnails/previewFileThumbnails.js +++ /dev/null @@ -1,104 +0,0 @@ -import { LightningElement, wire, api, track } from "lwc"; -import { refreshApex } from "@salesforce/apex"; -import { ShowToastEvent } from "lightning/platformShowToastEvent"; -import updateFileDescription from '@salesforce/apex/FileDescrip.updateFileDescription'; -import getFileVersions from "@salesforce/apex/FileController.getVersionFiles"; - -export default class PreviewFileThumbnails extends LightningElement { - isDisable=true; - @track descrip=""; - @track addDes=""; - loaded = false; - @track fileList; - @api recordId; - @track files = []; - get acceptedFormats() { - return [".pdf", ".png", ".jpg", ".jpeg"]; - } - - @wire(getFileVersions, { recordId: "$recordId" }) - fileResponse(value) { - this.wiredActivities = value; - const { data, error } = value; - this.fileList = ""; - this.files = []; - if (data) { - this.fileList = data; - for (let i = 0; i < this.fileList.length; i++) { - let file = { - Id: this.fileList[i].Id, - Title: this.fileList[i].Title, - Extension: this.fileList[i].FileExtension, - ContentDocumentId: this.fileList[i].ContentDocumentId, - ContentDocument: this.fileList[i].ContentDocument, - CreatedDate: this.fileList[i].CreatedDate, - thumbnailFileCard: - "/sfc/servlet.shepherd/version/renditionDownload?rendition=THUMB720BY480&versionId=" + - this.fileList[i].Id + - "&operationContext=CHATTER&contentId=" + - this.fileList[i].ContentDocumentId, - downloadUrl: - "/sfc/servlet.shepherd/document/download/" + - this.fileList[i].ContentDocumentId - }; - this.files.push(file); - } - this.loaded = true; - } else if (error) { - this.dispatchEvent( - new ShowToastEvent({ - title: "Error loading Files", - message: error.body.message, - variant: "error" - }) - ); - } - } - handleUploadFinished(event) { - const uploadedFiles = event.detail.files; - refreshApex(this.wiredActivities); - this.dispatchEvent( - new ShowToastEvent({ - title: "Success!", - message: uploadedFiles.length + " Files Uploaded Successfully.", - variant: "success" - }) - ); - - } - addnotes(event){ - this.descrip=event.target.value; - console.log("@@@@text:"+this.descrip); - if(this.descrip==""){ - this.isDisable=true; - } - else{ - this.isDisable=false; - } - } - add() { - this.addDes = this.descrip; - console.log('add des:', this.addDes); - console.log('RecordId', this.recordId); - updateFileDescription({ recordId: this.recordId, description:this.addDes }) - .then(result => { - const event = new ShowToastEvent({ - title: 'INSERTED', - message: 'SUCCESS', - variant: 'success' - }); - this.dispatchEvent(event); - }) - .catch(error => { - console.log(error); - const event = new ShowToastEvent({ - title: 'error', - message: 'Failed', - variant: 'error' - }); - this.dispatchEvent(event); - }); -} - - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/previewFileThumbnails/previewFileThumbnails.js-meta.xml b/force-app/main/default/lwc/previewFileThumbnails/previewFileThumbnails.js-meta.xml deleted file mode 100644 index 8f2f6ae..0000000 --- a/force-app/main/default/lwc/previewFileThumbnails/previewFileThumbnails.js-meta.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - 57.0 - true - - lightning__AppPage - lightning__HomePage - lightning__RecordPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/profilePhoto/profilePhoto.css b/force-app/main/default/lwc/profilePhoto/profilePhoto.css deleted file mode 100644 index 0d39aa0..0000000 --- a/force-app/main/default/lwc/profilePhoto/profilePhoto.css +++ /dev/null @@ -1,30 +0,0 @@ -/* myComponent.css */ -.image-container { - position: relative; - display: inline-block; -} - -.image { - height: 100px; - width: 100px; - border-radius:100px; - display: block; -} - -.overlay-icon { - position: absolute; - bottom: 8px; /* Position from the bottom */ - right: 16px; /* Position from the right */ -} - -.dropdown-content { - display: none; - position: absolute; - background-color: #f9f9f9; - min-width: 160px; - box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); -} - -.overlay-icon:hover .dropdown-content { - display: block; -} \ No newline at end of file diff --git a/force-app/main/default/lwc/profilePhoto/profilePhoto.html b/force-app/main/default/lwc/profilePhoto/profilePhoto.html deleted file mode 100644 index ca7be3e..0000000 --- a/force-app/main/default/lwc/profilePhoto/profilePhoto.html +++ /dev/null @@ -1,16 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/profilePhoto/profilePhoto.js b/force-app/main/default/lwc/profilePhoto/profilePhoto.js deleted file mode 100644 index a5aecc2..0000000 --- a/force-app/main/default/lwc/profilePhoto/profilePhoto.js +++ /dev/null @@ -1,33 +0,0 @@ -import { LightningElement,api} from 'lwc'; -import ProfilePhotoMethod from '@salesforce/apex/ProfilePhotoClass.ProfilePhotoMethod' - -export default class ProfilePhoto extends LightningElement { - @api recordId; - imageUrl=''; - error; - connectedCallback(){ - console.log('Current page Record id',this.recordId); - ProfilePhotoMethod({Id:this.recordId}) - .then(result=>{ - this.imageUrl=result; - console.log('url from this image url',this.imageUrl); - console.log('From result',result); - }) - .catch(error => { // Handle any errors - this.error = error; // Assign the error to the error property - }) - - } - showPhoto() { - // Your code for showing the photo here - window.print('Print') - } - - deletePhoto() { - // Your code for deleting the photo here - } - - uploadPhoto() { - // Your code for uploading a photo here - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/profilePhoto/profilePhoto.js-meta.xml b/force-app/main/default/lwc/profilePhoto/profilePhoto.js-meta.xml deleted file mode 100644 index fa684e5..0000000 --- a/force-app/main/default/lwc/profilePhoto/profilePhoto.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 58.0 - true - - lightning__RecordPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/pubSub/pubSub.html b/force-app/main/default/lwc/pubSub/pubSub.html deleted file mode 100644 index 27e0f69..0000000 --- a/force-app/main/default/lwc/pubSub/pubSub.html +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/pubSub/pubSub.js b/force-app/main/default/lwc/pubSub/pubSub.js deleted file mode 100644 index 6e41d31..0000000 --- a/force-app/main/default/lwc/pubSub/pubSub.js +++ /dev/null @@ -1,38 +0,0 @@ -let callbacks = {}; - -const register = (eventName, callback) => { - if (!callbacks[eventName]) { - callbacks[eventName] = new Set(); - } - callbacks[eventName].add(callback); -}; - -const unRegister = (eventName, callback) => { - if (!callbacks[eventName]) { - callbacks[eventName] = new Set(); - } - callbacks[eventName].delete(callback); -}; - -const unRegisterAll = () => { - callbacks = {}; -}; - -const fire = (eventName, payload) => { - if (callbacks[eventName]) { - callbacks[eventName].forEach(callback => { - try { - callback(payload); - } catch (error) { - console.log(error); - } - }); - } -}; - -export default { - register, - unRegister, - unRegisterAll, - fire -}; \ No newline at end of file diff --git a/force-app/main/default/lwc/pubSub/pubSub.js-meta.xml b/force-app/main/default/lwc/pubSub/pubSub.js-meta.xml deleted file mode 100644 index 6127d85..0000000 --- a/force-app/main/default/lwc/pubSub/pubSub.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 59.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/pubSubComponent/pubSubComponent.js b/force-app/main/default/lwc/pubSubComponent/pubSubComponent.js deleted file mode 100644 index 35f1e7e..0000000 --- a/force-app/main/default/lwc/pubSubComponent/pubSubComponent.js +++ /dev/null @@ -1,47 +0,0 @@ -const store = {} -/** - subscribers a callback for an event - @param {string} eventName - name of the event to listen for - @param {function} callback -Function to invoke when said event is fired - */ -const subscribe = (eventName,callback) =>{ - if(!store[eventName]){ - store[eventName] = new Set(); - } - store[eventName].add(callback); -}; - -/** -unsubscribe a callback for an event - @param {string} eventName - name of the event to unsubscribe from - @param {Function} callback -Function to unsubscribe - */ - const unsubscribe = (eventName,callback) =>{ - if(store[eventName]){ - store[eventName].delete(callback); - } -}; - -/** - Publish an evnet to listners - @param {string} eventName - name of the event to publish - @param {Function} payload - payload og the event to publish - */ - - const publish = (eventName,payload) =>{ - if(store[eventName]){ - store[eventName].forEach(callback => { - try { - callback(payload); - } catch (error) { - console.error(error); - } - }); - } - }; - - export default{ - subscribe, - unsubscribe, - publish - }; \ No newline at end of file diff --git a/force-app/main/default/lwc/pubSubComponent/pubSubComponent.js-meta.xml b/force-app/main/default/lwc/pubSubComponent/pubSubComponent.js-meta.xml deleted file mode 100644 index 6127d85..0000000 --- a/force-app/main/default/lwc/pubSubComponent/pubSubComponent.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 59.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/pubSubComponentA/pubSubComponentA.html b/force-app/main/default/lwc/pubSubComponentA/pubSubComponentA.html deleted file mode 100644 index 4772bcb..0000000 --- a/force-app/main/default/lwc/pubSubComponentA/pubSubComponentA.html +++ /dev/null @@ -1,8 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/pubSubComponentA/pubSubComponentA.js b/force-app/main/default/lwc/pubSubComponentA/pubSubComponentA.js deleted file mode 100644 index 1796ea1..0000000 --- a/force-app/main/default/lwc/pubSubComponentA/pubSubComponentA.js +++ /dev/null @@ -1,11 +0,0 @@ -import { LightningElement } from 'lwc'; -import pubSubComponent from 'c/pubSubComponent'; -export default class PubSubComponentA extends LightningElement { - message; - inputHandler(event){ - this.message = event.target.value; - } - publishHandler(){ - pubSubComponent.publish('componentA',this.message) - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/pubSubComponentA/pubSubComponentA.js-meta.xml b/force-app/main/default/lwc/pubSubComponentA/pubSubComponentA.js-meta.xml deleted file mode 100644 index 011be21..0000000 --- a/force-app/main/default/lwc/pubSubComponentA/pubSubComponentA.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightning__AppPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/pubSubComponentB/pubSubComponentB.html b/force-app/main/default/lwc/pubSubComponentB/pubSubComponentB.html deleted file mode 100644 index 8aebcec..0000000 --- a/force-app/main/default/lwc/pubSubComponentB/pubSubComponentB.html +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/pubSubComponentB/pubSubComponentB.js b/force-app/main/default/lwc/pubSubComponentB/pubSubComponentB.js deleted file mode 100644 index 29e5273..0000000 --- a/force-app/main/default/lwc/pubSubComponentB/pubSubComponentB.js +++ /dev/null @@ -1,13 +0,0 @@ -import { LightningElement } from 'lwc'; -import pubSubComponent from 'c/pubSubComponent'; -export default class PubSubComponentB extends LightningElement { - message; - connectedCallback(){ - this.callsubscriber() - } - callsubscriber(){ - pubSubComponent.subscribe('componentA',(message)=>{ - this.message = message; - }); - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/pubSubComponentB/pubSubComponentB.js-meta.xml b/force-app/main/default/lwc/pubSubComponentB/pubSubComponentB.js-meta.xml deleted file mode 100644 index 011be21..0000000 --- a/force-app/main/default/lwc/pubSubComponentB/pubSubComponentB.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightning__AppPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/publisher/publisher.html b/force-app/main/default/lwc/publisher/publisher.html deleted file mode 100644 index 456b396..0000000 --- a/force-app/main/default/lwc/publisher/publisher.html +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/publisher/publisher.js b/force-app/main/default/lwc/publisher/publisher.js deleted file mode 100644 index 2e1fb3c..0000000 --- a/force-app/main/default/lwc/publisher/publisher.js +++ /dev/null @@ -1,13 +0,0 @@ -import { LightningElement } from 'lwc'; -import pubSub from 'c/pubSub'; -export default class Publisher extends LightningElement { - - handleOnClick(){ - console.log("Event Firing"); - let message ={ - "message" : 'Hello Bro' - } - pubSub.fire('simplevt',message); - console.log('Event Fired'); - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/publisher/publisher.js-meta.xml b/force-app/main/default/lwc/publisher/publisher.js-meta.xml deleted file mode 100644 index 9fa43f2..0000000 --- a/force-app/main/default/lwc/publisher/publisher.js-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - 59.0 - true - - lightning__HomePage - lightning__RecordPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/quizAppCoponent/js-confetti.js b/force-app/main/default/lwc/quizAppCoponent/js-confetti.js deleted file mode 100644 index 82987cc..0000000 --- a/force-app/main/default/lwc/quizAppCoponent/js-confetti.js +++ /dev/null @@ -1,2 +0,0 @@ -var JSConfetti=function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:0,n=Math.random()*(e-t)+t;return Math.floor(n*Math.pow(10,i))/Math.pow(10,i)}function o(t){return t[s(0,t.length)]}var a=["#fcf403","#62fc03","#f4fc03","#03e7fc","#03fca5","#a503fc","#fc03ad","#fc03c2"];function r(t){return Math.log(t)/Math.log(1920)}var h=function(){function e(i){t(this,e);var n=i.initialPosition,a=i.direction,h=i.confettiRadius,c=i.confettiColors,u=i.emojis,l=i.emojiSize,d=i.canvasWidth,f=s(.9,1.7,3)*r(d);this.confettiSpeed={x:f,y:f},this.finalConfettiSpeedX=s(.2,.6,3),this.rotationSpeed=u.length?.01:s(.03,.07,3)*r(d),this.dragForceCoefficient=s(5e-4,9e-4,6),this.radius={x:h,y:h},this.initialRadius=h,this.rotationAngle="left"===a?s(0,.2,3):s(-.2,0,3),this.emojiSize=l,this.emojiRotationAngle=s(0,2*Math.PI),this.radiusYUpdateDirection="down";var m="left"===a?s(82,15)*Math.PI/180:s(-15,-82)*Math.PI/180;this.absCos=Math.abs(Math.cos(m)),this.absSin=Math.abs(Math.sin(m));var v=s(-150,0),p={x:n.x+("left"===a?-v:v)*this.absCos,y:n.y-v*this.absSin};this.currentPosition=Object.assign({},p),this.initialPosition=Object.assign({},p),this.color=u.length?null:o(c),this.emoji=u.length?o(u):null,this.createdAt=(new Date).getTime(),this.direction=a}return i(e,[{key:"draw",value:function(t){var e=this.currentPosition,i=this.radius,n=this.color,s=this.emoji,o=this.rotationAngle,a=this.emojiRotationAngle,r=this.emojiSize,h=window.devicePixelRatio;n?(t.fillStyle=n,t.beginPath(),t.ellipse(e.x*h,e.y*h,i.x*h,i.y*h,o,0,2*Math.PI),t.fill()):s&&(t.font="".concat(r,"px serif"),t.save(),t.translate(h*e.x,h*e.y),t.rotate(a),t.textAlign="center",t.fillText(s,0,0),t.restore())}},{key:"updatePosition",value:function(t,e){var i=this.confettiSpeed,n=this.dragForceCoefficient,s=this.finalConfettiSpeedX,o=this.radiusYUpdateDirection,a=this.rotationSpeed,r=this.createdAt,h=this.direction,c=e-r;i.x>s&&(this.confettiSpeed.x-=n*t),this.currentPosition.x+=i.x*("left"===h?-this.absCos:this.absCos)*t,this.currentPosition.y=this.initialPosition.y-i.y*this.absSin*c+.00125*Math.pow(c,2)/2,this.rotationSpeed-=this.emoji?1e-4:1e-5*t,this.rotationSpeed<0&&(this.rotationSpeed=0),this.emoji?this.emojiRotationAngle+=this.rotationSpeed*t%(2*Math.PI):"down"===o?(this.radius.y-=t*a,this.radius.y<=0&&(this.radius.y=0,this.radiusYUpdateDirection="up")):(this.radius.y+=t*a,this.radius.y>=this.initialRadius&&(this.radius.y=this.initialRadius,this.radiusYUpdateDirection="down"))}},{key:"getIsVisibleOnCanvas",value:function(t){return this.currentPosition.y0&&void 0!==arguments[0]?arguments[0]:{};t(this,e),this.activeConfettiBatches=[],this.canvas=i.canvas||c(),this.canvasContext=this.canvas.getContext("2d"),this.requestAnimationFrameRequested=!1,this.lastUpdated=(new Date).getTime(),this.iterationIndex=0,this.loop=this.loop.bind(this),requestAnimationFrame(this.loop)}return i(e,[{key:"loop",value:function(){var t,e,i,s,o;this.requestAnimationFrameRequested=!1,t=this.canvas,e=window.devicePixelRatio,i=getComputedStyle(t),s=n(i.getPropertyValue("width")),o=n(i.getPropertyValue("height")),t.setAttribute("width",(s*e).toString()),t.setAttribute("height",(o*e).toString());var a=(new Date).getTime(),r=a-this.lastUpdated,h=this.canvas.offsetHeight,c=this.iterationIndex%10==0;this.activeConfettiBatches=this.activeConfettiBatches.filter((function(t){return t.processShapes({timeDelta:r,currentTime:a},h,c),!c||!t.complete()})),this.iterationIndex++,this.queueAnimationFrameIfNeeded(a)}},{key:"queueAnimationFrameIfNeeded",value:function(t){this.requestAnimationFrameRequested||this.activeConfettiBatches.length<1||(this.requestAnimationFrameRequested=!0,this.lastUpdated=t||(new Date).getTime(),requestAnimationFrame(this.loop))}},{key:"addConfetti",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=u(t),i=e.confettiRadius,n=e.confettiNumber,s=e.confettiColors,o=e.emojis,a=e.emojiSize,r=this.canvas.getBoundingClientRect(),c=r.width,d=r.height,f=5*d/7,m={x:0,y:f},v={x:c,y:f},p=new l(this.canvasContext),y=0;y - - -
-
- -
- - - - -
-
-
-
- - \ No newline at end of file diff --git a/force-app/main/default/lwc/quizAppCoponent/quizAppCoponent.js b/force-app/main/default/lwc/quizAppCoponent/quizAppCoponent.js deleted file mode 100644 index 5e5968f..0000000 --- a/force-app/main/default/lwc/quizAppCoponent/quizAppCoponent.js +++ /dev/null @@ -1,143 +0,0 @@ -import { LightningElement, api } from 'lwc'; -import { ShowToastEvent } from 'lightning/platformShowToastEvent'; -import { JSConfetti } from './js-confetti'; - -export default class QuizAppCoponent extends LightningElement { - - myQuestions = [ - { - id: 1, - question: 'What is the capital of France?', - options: { - a: 'Paris', - b: 'London', - c: 'Rome', - d: 'Berlin' - }, - correctAnswer: 'a' - }, - { - id: 2, - question: 'What is the largest ocean in the world?', - options: { - a: 'Pacific Ocean', - b: 'Atlantic Ocean', - c: 'Southern Ocean', - d: 'Arctic Ocean' - }, - correctAnswer: 'a' - }, - { - id: 3, - question: 'What is the highest mountain in the world?', - options: { - a: 'Mount Everest', - b: 'Mount Kilimanjaro', - c: 'K2', - d: 'Mount Elbrus' - }, - correctAnswer: 'a' - }, - { - id: 4, - question: 'What is the full form of US?', - options: { - a: 'India', - b: 'United States', - c: 'Pakistan', - d: 'China' - }, - correctAnswer: 'b' - }, - { - id: 5, - question: 'What is the most common language in the world?', - options: { - a: 'Spanish', - b: 'English', - c: 'Arabic', - d: 'Hindi' - }, - correctAnswer: 'b' - } - ]; - selected = {}; - correctAnswer = 0; - - get allNotSelected() { - return !(Object.keys(this.selected).length === this.myQuestions.length); - } - get emojis() { - return this.correctAnswer <= 2 ? '🥺😟😔🥲' : '😀😁🥳🎇'; - } - get variant(){ - return this.correctAnswer <= 2 ? 'error' : 'success'; - } - - - handleChange(event) { - const { name, value } = event.target; - this.selected = { ...this.selected, [name]: value }; - - - } - handleSubmit(event) { - event.preventDefault(); - let correct = this.myQuestions.filter(item => this.selected[item.id] === item.correctAnswer); - this.correctAnswer = correct.length; - this.showConfetti(); - this.showToast(); - } - handleReset() { - this.selected = {}; - this.confetti(); - } - - showToast() { - const event = new ShowToastEvent({ - title: 'Your Score', - message: 'You scored ' + this.correctAnswer + ' out of ' + this.myQuestions.length, - variant: this.variant, - }); - this.dispatchEvent(event); - - } - @api size = 'small'; - @api number = 'normal'; - @api type = 'emoji'; - @api emoji = this.emojis; - - - - sizeOptions = [ - { label: 'small', value: 60 }, - { label: 'medium', value: 100 }, - { label: 'large', value: 140 } - ]; - numberOptions = [ - { label: 'few', value: 15 }, - { label: 'normal', value: 30 }, - { label: 'plenty', value: 50 } - ]; - - showConfetti() { - // Confetti will be shown immediatelly when component renders - const jsConfetti = new JSConfetti(); - // The emoji confettis accept the emojiSize and confettiNumber parameters - if (this.type === 'emoji') { - jsConfetti.addConfetti({ - emojis: [...this.emojis], - emojiSize: this.sizeOptions.filter(o => o.label === this.size)[0].value, - confettiNumber: this.numberOptions.filter(o => o.label === this.number)[0].value, - }); - } - - // The default confettis only accept the confettiNumber parameter - else { - jsConfetti.addConfetti({ - confettiNumber: this.numberOptions.filter(o => o.label === this.number)[0].value * 4, - }); - } - } - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/quizAppCoponent/quizAppCoponent.js-meta.xml b/force-app/main/default/lwc/quizAppCoponent/quizAppCoponent.js-meta.xml deleted file mode 100644 index 95e1902..0000000 --- a/force-app/main/default/lwc/quizAppCoponent/quizAppCoponent.js-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - 59.0 - true - - lightning__AppPage - lightningCommunity__Page - - \ No newline at end of file diff --git a/force-app/main/default/lwc/recordPicker/recordPicker.html b/force-app/main/default/lwc/recordPicker/recordPicker.html deleted file mode 100644 index 3e9a961..0000000 --- a/force-app/main/default/lwc/recordPicker/recordPicker.html +++ /dev/null @@ -1,16 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/recordPicker/recordPicker.js b/force-app/main/default/lwc/recordPicker/recordPicker.js deleted file mode 100644 index b70b0d3..0000000 --- a/force-app/main/default/lwc/recordPicker/recordPicker.js +++ /dev/null @@ -1,11 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class RecordPicker extends LightningElement { - handleChange( event ) { - console.log(event.detail.recordId); - } - displayInfo = { - // primaryField: 'Account.Name', - additionalFields: ['Title'], - }; -} \ No newline at end of file diff --git a/force-app/main/default/lwc/recordPicker/recordPicker.js-meta.xml b/force-app/main/default/lwc/recordPicker/recordPicker.js-meta.xml deleted file mode 100644 index 5fecdd0..0000000 --- a/force-app/main/default/lwc/recordPicker/recordPicker.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 58.0 - true - - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/refreshApexModule/refreshApexModule.html b/force-app/main/default/lwc/refreshApexModule/refreshApexModule.html deleted file mode 100644 index 44a997e..0000000 --- a/force-app/main/default/lwc/refreshApexModule/refreshApexModule.html +++ /dev/null @@ -1,15 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/refreshApexModule/refreshApexModule.js b/force-app/main/default/lwc/refreshApexModule/refreshApexModule.js deleted file mode 100644 index 2507b84..0000000 --- a/force-app/main/default/lwc/refreshApexModule/refreshApexModule.js +++ /dev/null @@ -1,68 +0,0 @@ -import { LightningElement, wire, track } from 'lwc'; -import findMethod from '@salesforce/apex/ApexController.findMethod'; -import changeMethod from '@salesforce/apex/ApexController.changeMethod'; -import {refreshApex} from '@salesforce/apex'; -import { ShowToastEvent } from 'lightning/platformShowToastEvent'; - -export default class RefreshApexModule extends LightningElement { - @track paramForChangeOne; - @ track parameters; - - - // Wired Apex result - _wiredResult; - connectedCallback(){ - console.log(this.parameters) - } - - @wire(findMethod, { paramOne: '$paramForChangeOne'}) - wiredCallback(result) { - this._wiredResult = result; - console.log(result); - if (result.data) { - this.parameters = result.data; - - this.error = undefined; - } else if (result.error) { - this.error = result.error; - this.parameters = undefined; - } - } - - // Function to refresh data - refreshData() { - return refreshApex(this._wiredResult); - } - - // Function to change something and then refresh the data - callFromHtml() { - console.log('@@@Call from html called'); - console.log('@paramett2222',this.parameters) - changeMethod({paramForChangeOne: this.paramForChangeOne}) - .then(result => { - if (result) { - this.showNotification('success', 'Success Message', ''); - } - // Refreshing table data using refresh apex - return this.refreshData(); - }) - .catch(error => { - console.log(error); - }); - } - - showNotification(variant, title, message) { - const evt = new ShowToastEvent({ - title: title, - message: message, - variant: variant, - }); - this.dispatchEvent(evt); - } - - handleParamOneChange(event) { - this.paramForChangeOne = event.target.value; - } - - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/refreshApexModule/refreshApexModule.js-meta.xml b/force-app/main/default/lwc/refreshApexModule/refreshApexModule.js-meta.xml deleted file mode 100644 index 56af8a8..0000000 --- a/force-app/main/default/lwc/refreshApexModule/refreshApexModule.js-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - 58.0 - true - - lightning__RecordPage - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/relatedContact/relatedContact.html b/force-app/main/default/lwc/relatedContact/relatedContact.html deleted file mode 100644 index 74c5d72..0000000 --- a/force-app/main/default/lwc/relatedContact/relatedContact.html +++ /dev/null @@ -1,15 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/relatedContact/relatedContact.js b/force-app/main/default/lwc/relatedContact/relatedContact.js deleted file mode 100644 index bac9359..0000000 --- a/force-app/main/default/lwc/relatedContact/relatedContact.js +++ /dev/null @@ -1,44 +0,0 @@ -import { LightningElement,wire,track,api } from 'lwc'; -import getcon from '@salesforce/apex/RelatedCon.getcon'; -export default class RelatedContact extends LightningElement { - - @api recordId; - - @track columns = [{ - label: 'FirstName', - fieldName: 'firstName', - type: 'text', - sortable: true - }, - - { - label: 'LastName', - fieldName: 'LastName', - type: 'text', - sortable: true - }, - { - label: 'Email', - fieldName: 'Email', - type: 'Email', - sortable: true - }, - { - label: 'Phone ', - fieldName: 'phone', - type: 'Phone', - sortable: true - } -]; - -@track error; -@track ConList ; -@wire(getcon,{acId:'$recordId'}) wiredContact({error, data}) { - if (data) { - this.ConList = data; - console.log("@@@@@data"+data); - } else if (error) { - this.error = error; - } -} -} \ No newline at end of file diff --git a/force-app/main/default/lwc/relatedContact/relatedContact.js-meta.xml b/force-app/main/default/lwc/relatedContact/relatedContact.js-meta.xml deleted file mode 100644 index bdb4682..0000000 --- a/force-app/main/default/lwc/relatedContact/relatedContact.js-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - 57.0 - true - - lightning__HomePage - lightning__RecordPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/relatedPlayer/relatedPlayer.html b/force-app/main/default/lwc/relatedPlayer/relatedPlayer.html deleted file mode 100644 index 5a47704..0000000 --- a/force-app/main/default/lwc/relatedPlayer/relatedPlayer.html +++ /dev/null @@ -1,28 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/relatedPlayer/relatedPlayer.js b/force-app/main/default/lwc/relatedPlayer/relatedPlayer.js deleted file mode 100644 index be613b9..0000000 --- a/force-app/main/default/lwc/relatedPlayer/relatedPlayer.js +++ /dev/null @@ -1,96 +0,0 @@ -// Importing necessary modules from the Lightning Web Components (LWC) and Salesforce Apex -import { LightningElement,api,track} from 'lwc'; -import getPlayerList from '@salesforce/apex/getPlayer.getPlayerList'; -import {NavigationMixin} from 'lightning/navigation'; - -// Defining actions for the data table -const actions=[ - {label:'View',name:'view'}, -]; - -// Defining columns for the data table -const columns=[ - {label:'Player Name',fieldName:'Name'}, - {label:'Country',fieldName:'Country__c'}, - { - type:'action', - typeAttributes : { rowActions : actions}, - }, -]; - -// Exporting the default class which extends NavigationMixin and LightningElement -export default class RelatedPlayer extends NavigationMixin(LightningElement ){ - @track showPlayer='Show Player'; // Track variable for button label - - @track isVisible=false; // Track variable for visibility of player list - - @api recordId; // Record Id from the parent component - - @track data=[]; // Track variable for storing player data - - @track playerData=[]; // Track variable for storing player data - - columns=columns; // Columns for the data table - - error; // Variable to store any error during Apex method call - - // Lifecycle hook which fires when component is inserted into DOM - connectedCallback(){ - console.log(this.recordId); - //get player list - getPlayerList({SelectedId:this.recordId}) - .then(result=>{ - this.data=result; - console.log(result); - }) - .catch(error=>{ - this.error=error; - }) - } - - // Function to handle click event of the button - handleclick(event){ - const label=event.target.label; - if(label==='Show Player'){ - this.showPlayer='Hide Player'; - this.isVisible=true; - - }else if(label==="Hide Player"){ - this.showPlayer="Show Player" - this.isVisible=false; - - } - } - - // Function to handle row action of the data table - handleRowAction(event){ - const actionName=event.detail.action.name; - const row=event.detail.row; - switch(actionName){ - case 'view': - this.navigateToPlayerRecordPage(row); - break - default: - } - - } - - // Function to navigate to player record page - navigateToPlayerRecordPage(rowData){ - const player=rowData; - console.log(player); - console.log('Playrer Id' , player.Id); - - if(player.Id){ - this[NavigationMixin.Navigate]({ - type: 'standard__recordPage', - attributes: { - recordId: player.Id, - actionName: 'view', - }, - }) - } - - - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/relatedPlayer/relatedPlayer.js-meta.xml b/force-app/main/default/lwc/relatedPlayer/relatedPlayer.js-meta.xml deleted file mode 100644 index 2323255..0000000 --- a/force-app/main/default/lwc/relatedPlayer/relatedPlayer.js-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - 58.0 - true - - lightning__AppPage - lightning__RecordPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/relatedRecordComponent/relatedRecordComponent.html b/force-app/main/default/lwc/relatedRecordComponent/relatedRecordComponent.html deleted file mode 100644 index 1d792a9..0000000 --- a/force-app/main/default/lwc/relatedRecordComponent/relatedRecordComponent.html +++ /dev/null @@ -1,39 +0,0 @@ - - \ No newline at end of file diff --git a/force-app/main/default/lwc/relatedRecordComponent/relatedRecordComponent.js b/force-app/main/default/lwc/relatedRecordComponent/relatedRecordComponent.js deleted file mode 100644 index 6bf7642..0000000 --- a/force-app/main/default/lwc/relatedRecordComponent/relatedRecordComponent.js +++ /dev/null @@ -1,133 +0,0 @@ -import { LightningElement, wire, track, api } from 'lwc'; -import getAccountContacts from '@salesforce/apex/AccountRelatedListController.getAccountContacts'; -import getAccountOpportunities from '@salesforce/apex/AccountRelatedListController.getAccountOpportunities'; -import updateFileds from '@salesforce/apex/AccountRelatedListController.updateFileds'; -import { ShowToastEvent } from 'lightning/platformShowToastEvent'; -import { refreshApex } from '@salesforce/apex'; -import { getObjectInfo, getPicklistValues } from "lightning/uiObjectInfoApi"; -import OPPORTUNITY_OBJECT from "@salesforce/schema/Opportunity"; -import STAGE_FIELD from "@salesforce/schema/Opportunity.StageName"; - -export default class RelatedRecordComponent extends LightningElement { - @api recordId; - @track contactsData = []; - @track opportunitiesData = []; - @track draftValues = []; - @track ValuesToUpdate = []; - @track stageOptions; - opportunityRecordTypeId; - stages; - sumOfAmount=0; - - @wire(getObjectInfo, { objectApiName: OPPORTUNITY_OBJECT }) - results({ error, data }) { - if (data) { - this.opportunityRecordTypeId = data.defaultRecordTypeId; - this.error = undefined; - } else if (error) { - this.error = error; - this.opportunityRecordTypeId = undefined; - } - } - - @wire(getPicklistValues, { recordTypeId: "$opportunityRecordTypeId", fieldApiName: STAGE_FIELD }) - picklistResults({ error, data }) { - if (data) { - this.stages = data.values; - console.log('stages ',this.stages); - this.error = undefined; - this.stageOptions = this.stages.map(item => item.value); - console.log('stageOptions',this.stageOptions); - } else if (error) { - this.error = error; - this.stages = undefined; - console.log('stages ',this.stages); - } - } - - - contactsColumns = [ - { label: 'Name', fieldName: 'Name', editable: true }, - { label: 'Email', fieldName: 'Email', type: 'email', editable: true }, - { label: 'Phone', fieldName: 'Phone', type: 'phone', editable: true }, - // Add more fields as needed - ]; - - opportunitiesColumns = [ - { label: 'Name', fieldName: 'Name', editable: true }, - { - label: 'Stage', - fieldName: 'StageName', - type: 'picklist', - editable: true, - typeAttributes: { - placeholder: 'Choose Stage', - options: this.stageOptions, // provide options from StageName picklist values - value: { fieldName: 'StageName' }, // bind to StageName field - context: { fieldName: 'Id' }, // bind to record Id - variant: 'label-hidden', - name: 'StageName', - label: 'Stage' - } - }, - { label: 'Amount', fieldName: 'Amount', type: 'currency', editable: true }, - // Add more fields as needed - ]; - - @wire(getAccountContacts, { accountId: '$recordId' }) - wiredContacts({ error, data }) { - if (data) { - this.contactsData = data; - } else if (error) { - console.error('Error fetching contacts:', error); - } - } - - @wire(getAccountOpportunities, { accountId: '$recordId' }) - wiredOpportunities({ error, data }) { - if (data) { - this.opportunitiesData = data; - this.opportunitiesData.forEach(item =>{ - this.sumOfAmount +=item.Amount - }) - - } else if (error) { - console.error('Error fetching opportunities:', error); - } - } - - handleSave(event) { - this.ValuesToUpdate = event.detail.draftValues; - console.log('ValuesToUpdate:', this.ValuesToUpdate); - - updateFileds({recordInput:this.ValuesToUpdate}) - .then(() => { - this.dispatchEvent( - new ShowToastEvent({ - title: 'Success', - message: 'Records updated', - variant: 'success' - }) - ); - // Clear all draft values - this.draftValues = []; - // this.ValuesToUpdate = []; - - return Promise.all([ - refreshApex(this.contactsData), - refreshApex(this.opportunitiesData) - ]); - }) - .catch(error => { - // Handle error - console.error('Error updating record:', error.body.message); - this.dispatchEvent( - new ShowToastEvent({ - title: 'Error', - message: error.body.message, - variant: 'error' - }) - ); - }); - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/relatedRecordComponent/relatedRecordComponent.js-meta.xml b/force-app/main/default/lwc/relatedRecordComponent/relatedRecordComponent.js-meta.xml deleted file mode 100644 index 0ac90a6..0000000 --- a/force-app/main/default/lwc/relatedRecordComponent/relatedRecordComponent.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightning__RecordPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/renderMethodComponent/renderMethodComponent.html b/force-app/main/default/lwc/renderMethodComponent/renderMethodComponent.html deleted file mode 100644 index 9718b65..0000000 --- a/force-app/main/default/lwc/renderMethodComponent/renderMethodComponent.html +++ /dev/null @@ -1,13 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/renderMethodComponent/renderMethodComponent.js b/force-app/main/default/lwc/renderMethodComponent/renderMethodComponent.js deleted file mode 100644 index 1d6f81f..0000000 --- a/force-app/main/default/lwc/renderMethodComponent/renderMethodComponent.js +++ /dev/null @@ -1,24 +0,0 @@ -import { LightningElement } from 'lwc'; -import { ShowToastEvent } from 'lightning/platformShowToastEvent'; -import signUpTamplate from './signUpTamplate.html' -import signInTemplate from './signInTemplate.html' -import renderTamplate from './renderMethodComponent.html' -export default class RenderMethodComponent extends LightningElement { - selectedBtn = '' - render(){ - return this.selectedBtn === 'SignUp' ? signUpTamplate : - this.selectedBtn === "SignIn" ? signInTemplate : - renderTamplate - } - handleClick(event){ - this.selectedBtn = event.target.label; - } - submitHandler(event){ - this.dispatchEvent(new ShowToastEvent({ - title: `${event.target.label} `, - message: `${event.target.label} Successfully`, - variant: "success" - })); - } - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/renderMethodComponent/renderMethodComponent.js-meta.xml b/force-app/main/default/lwc/renderMethodComponent/renderMethodComponent.js-meta.xml deleted file mode 100644 index 011be21..0000000 --- a/force-app/main/default/lwc/renderMethodComponent/renderMethodComponent.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightning__AppPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/renderMethodComponent/signInTemplate.html b/force-app/main/default/lwc/renderMethodComponent/signInTemplate.html deleted file mode 100644 index 69a5c1e..0000000 --- a/force-app/main/default/lwc/renderMethodComponent/signInTemplate.html +++ /dev/null @@ -1,24 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/renderMethodComponent/signUpTamplate.html b/force-app/main/default/lwc/renderMethodComponent/signUpTamplate.html deleted file mode 100644 index 34fc777..0000000 --- a/force-app/main/default/lwc/renderMethodComponent/signUpTamplate.html +++ /dev/null @@ -1,26 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/searchRecord/searchRecord.html b/force-app/main/default/lwc/searchRecord/searchRecord.html deleted file mode 100644 index 685fd29..0000000 --- a/force-app/main/default/lwc/searchRecord/searchRecord.html +++ /dev/null @@ -1,30 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/searchRecord/searchRecord.js b/force-app/main/default/lwc/searchRecord/searchRecord.js deleted file mode 100644 index a303ff5..0000000 --- a/force-app/main/default/lwc/searchRecord/searchRecord.js +++ /dev/null @@ -1,34 +0,0 @@ -import { LightningElement,track,wire} from 'lwc'; -import sRecords from '@salesforce/apex/SearchRecord.sRecords'; -export default class SearchRecord extends LightningElement { - - @track AccName =''; - @track acclist =[]; - @track searchedRecord=false; - @track accId; - @track msgResult=false; - @wire (sRecords,{input: '$AccName'}) records({error,data}){ - if(data){ - this.acclist=data; - this.searchedRecord=data.length>0; - this.msgResult=data.length=== 0 && this.AccName !==''; - - } - else if(error){ - console.log(error); - } - } - Search(event){ - this.AccName = event.target.value; - } - - seletion(event){ - this.accId=event.target.dataset.value; - console.log('@@@@@@ getting selected id: '+this.accId); - this.AccName=event.target.dataset.label; - const sevent=new CustomEvent('Selected',{ detail:this.accId}); - this.dispatchEvent(sevent); - searchedRecord=false; - } - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/searchRecord/searchRecord.js-meta.xml b/force-app/main/default/lwc/searchRecord/searchRecord.js-meta.xml deleted file mode 100644 index bdb4682..0000000 --- a/force-app/main/default/lwc/searchRecord/searchRecord.js-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - 57.0 - true - - lightning__HomePage - lightning__RecordPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/sendMoneyComponantRMG/SendMoneyComponantRMG.css b/force-app/main/default/lwc/sendMoneyComponantRMG/SendMoneyComponantRMG.css deleted file mode 100644 index 7ab35b0..0000000 --- a/force-app/main/default/lwc/sendMoneyComponantRMG/SendMoneyComponantRMG.css +++ /dev/null @@ -1,4 +0,0 @@ -.bordered-card { - border: 1px solid #000; /* Adjust color and width as needed */ - cursor: pointer; -} \ No newline at end of file diff --git a/force-app/main/default/lwc/sendMoneyComponantRMG/sendMoneyComponantRMG.html b/force-app/main/default/lwc/sendMoneyComponantRMG/sendMoneyComponantRMG.html deleted file mode 100644 index 9d16b09..0000000 --- a/force-app/main/default/lwc/sendMoneyComponantRMG/sendMoneyComponantRMG.html +++ /dev/null @@ -1,44 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/sendMoneyComponantRMG/sendMoneyComponantRMG.js b/force-app/main/default/lwc/sendMoneyComponantRMG/sendMoneyComponantRMG.js deleted file mode 100644 index 1751c88..0000000 --- a/force-app/main/default/lwc/sendMoneyComponantRMG/sendMoneyComponantRMG.js +++ /dev/null @@ -1,3 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class SendMoneyComponantRMG extends LightningElement {} \ No newline at end of file diff --git a/force-app/main/default/lwc/sendMoneyComponantRMG/sendMoneyComponantRMG.js-meta.xml b/force-app/main/default/lwc/sendMoneyComponantRMG/sendMoneyComponantRMG.js-meta.xml deleted file mode 100644 index cd49d55..0000000 --- a/force-app/main/default/lwc/sendMoneyComponantRMG/sendMoneyComponantRMG.js-meta.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - 50.0 - true - - lightning__RecordPage - lightning__AppPage - lightning__HomePage - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/force-app/main/default/lwc/sendMoneyWithRMGPAY/sendMoneyWithRMGPAY.css b/force-app/main/default/lwc/sendMoneyWithRMGPAY/sendMoneyWithRMGPAY.css deleted file mode 100644 index 1a2d8a7..0000000 --- a/force-app/main/default/lwc/sendMoneyWithRMGPAY/sendMoneyWithRMGPAY.css +++ /dev/null @@ -1,148 +0,0 @@ -/* Main container */ -.container { - width: 100%; - padding: 20px; - font-family: Arial, sans-serif; - background-color: #f2f2f4; -} - -.container h1 { - font-size: 24px; - color: #172068; - font-weight: bold; -} - -.container p { - font-weight: bold; - font-size: 16px; - color: #5e5454; -} -/* options css */ -.options { - display: flex; - justify-content: space-between; - margin-top: 20px; -} -/* option css for ever option */ -.options .option { - background-color: #ffffff; - flex: 1; - padding: 10px; - text-align: center; - cursor: pointer; - box-shadow: 0px 0px 1px 0px ; /* Adjusted shadow */ - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - margin: 10px; - border-radius: 10px; - height: 200px; -} -/* option text */ -.option-text{ - font-size: 15px; - color: #6878be; -} - -/* logo for css */ -.logo { - width: 40px; - height: 40px; - border-radius: 50%; - background-color: #f5f5f5; - padding: 5px; - fill: #192b67; -} - -/* Added this media query at the end of your CSS */ -@media (max-width: 600px) { - .options { - flex-direction: column; - } -} - -/* css for accordion */ -.accordion-button { - display: flex; - width: 100%; - align-items: flex-start; - justify-content: space-between; - padding: 10px 0; - - background-color: #ffffff; - border: none; - flex: 1; - padding: 10px; - color:#6878be; - box-shadow: 0px 0px 1px 0px; - - -} - -.accordion-button .content { - display: flex; - align-items: center; - -} - -/* css for arrow finctionality */ -.arrow { - float: right; /* This positions the icon on the right */ - font-weight: bold; - font-size: 16px; /* This increases the size of the icon */ -} -.arrow.right { - transform: rotate(0deg); -} - -.arrow.down { - transform: rotate(90deg); -} - -/* css for accordion content */ -.accordion-content { - display: none; - padding: 10px 10px 10px 40px; - background-color: #ffffff; - box-shadow: 0px 0px 1px 0px ; - color:#6878be; - - -} - -.container h1, .container p, .accordion { - padding-left: 10px; - padding-right: 10px; -} -/* css for background round circle of icons */ -.icon-circle { - display: inline-flex; - justify-content: center; - align-items: center; - border-radius: 50%; - padding: 5px; - background-color: #f5f5f5; - margin-right: 10px; - -} - - -/* first and last border redius */ -.four { - border-bottom-left-radius: 10px; - border-bottom-right-radius: 10px; -} -.first{ - border-top-right-radius: 10px; - border-top-left-radius: 10px; -} - -.accordion{ - margin-top: 10px; - color: #6878be; -} - /* svg icon color */ -.icon-circle svg{ - fill: #6878be; -} \ No newline at end of file diff --git a/force-app/main/default/lwc/sendMoneyWithRMGPAY/sendMoneyWithRMGPAY.html b/force-app/main/default/lwc/sendMoneyWithRMGPAY/sendMoneyWithRMGPAY.html deleted file mode 100644 index 8893b9c..0000000 --- a/force-app/main/default/lwc/sendMoneyWithRMGPAY/sendMoneyWithRMGPAY.html +++ /dev/null @@ -1,118 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/sendMoneyWithRMGPAY/sendMoneyWithRMGPAY.js b/force-app/main/default/lwc/sendMoneyWithRMGPAY/sendMoneyWithRMGPAY.js deleted file mode 100644 index 139a07e..0000000 --- a/force-app/main/default/lwc/sendMoneyWithRMGPAY/sendMoneyWithRMGPAY.js +++ /dev/null @@ -1,57 +0,0 @@ -// Importing necessary modules from the Lightning Web Components (LWC) library -import { LightningElement } from 'lwc'; - -// Defining a new class 'SendMoneyWithRMGPAY' which extends from 'LightningElement' -export default class SendMoneyWithRMGPAY extends LightningElement { - - // Method to handle click events on the first card - - handleclick() { - console.log("handling click on first card"); - } - - // Method to handle click events on the accordion buttons - - handleOnClick(event) { - - // Get the target element from the event object - let target = event.target; - - // Check if the target is an SVG, a path, an arrow, a span, or has the class 'content' - - if (target.tagName.toLowerCase() === 'svg' || target.tagName.toLowerCase() === 'path' || target.classList.contains('arrow') || target.tagName.toLowerCase() === 'span' || target.classList.contains('content')) { - - // If so, find the closest parent element with the class 'accordion-button' - - target = target.closest('.accordion-button'); - } - - // Toggle the 'active' class on the target element - - target.classList.toggle("active"); - - // Get the next sibling element of the target (the content panel of the accordion) - - let panel = target.nextElementSibling; - - // Find the arrow element within the target - - let arrow = target.querySelector('.arrow'); - - // Check if the panel is currently displayed - - if (panel.style.display === "block") { - - // If so, hide the panel and change the arrow to point right - panel.style.display = "none"; - arrow.classList.remove('down'); - arrow.classList.add('right'); - } else { - - // If not, display the panel and change the arrow to point down - panel.style.display = "block"; - arrow.classList.remove('right'); - arrow.classList.add('down'); - } - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/sendMoneyWithRMGPAY/sendMoneyWithRMGPAY.js-meta.xml b/force-app/main/default/lwc/sendMoneyWithRMGPAY/sendMoneyWithRMGPAY.js-meta.xml deleted file mode 100644 index 150a75c..0000000 --- a/force-app/main/default/lwc/sendMoneyWithRMGPAY/sendMoneyWithRMGPAY.js-meta.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - 58.0 - true - - lightning__RecordPage - lightning__AppPage - lightning__HomePage - lightningCommunity__Default - lightningCommunity__Page - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/force-app/main/default/lwc/setterDemoChildComponent/setterDemoChildComponent.html b/force-app/main/default/lwc/setterDemoChildComponent/setterDemoChildComponent.html deleted file mode 100644 index da75b4c..0000000 --- a/force-app/main/default/lwc/setterDemoChildComponent/setterDemoChildComponent.html +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/setterDemoChildComponent/setterDemoChildComponent.js b/force-app/main/default/lwc/setterDemoChildComponent/setterDemoChildComponent.js deleted file mode 100644 index 261b37f..0000000 --- a/force-app/main/default/lwc/setterDemoChildComponent/setterDemoChildComponent.js +++ /dev/null @@ -1,14 +0,0 @@ -import { LightningElement,api } from 'lwc'; - -export default class SetterDemoChildComponent extends LightningElement { - userDetails - @api - get details(){ - return this.userDetails; - } - set details(data){ - let newAge = data.age*2 - this.userDetails = {...data,age:newAge}; - - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/setterDemoChildComponent/setterDemoChildComponent.js-meta.xml b/force-app/main/default/lwc/setterDemoChildComponent/setterDemoChildComponent.js-meta.xml deleted file mode 100644 index 6127d85..0000000 --- a/force-app/main/default/lwc/setterDemoChildComponent/setterDemoChildComponent.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 59.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/setterDemoParentComponent/setterDemoParentComponent.html b/force-app/main/default/lwc/setterDemoParentComponent/setterDemoParentComponent.html deleted file mode 100644 index 9240818..0000000 --- a/force-app/main/default/lwc/setterDemoParentComponent/setterDemoParentComponent.html +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/setterDemoParentComponent/setterDemoParentComponent.js b/force-app/main/default/lwc/setterDemoParentComponent/setterDemoParentComponent.js deleted file mode 100644 index a267f9f..0000000 --- a/force-app/main/default/lwc/setterDemoParentComponent/setterDemoParentComponent.js +++ /dev/null @@ -1,8 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class SetterDemoParentComponent extends LightningElement { - userDetails = { - name : 'Yumi', - age : 25, - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/setterDemoParentComponent/setterDemoParentComponent.js-meta.xml b/force-app/main/default/lwc/setterDemoParentComponent/setterDemoParentComponent.js-meta.xml deleted file mode 100644 index 011be21..0000000 --- a/force-app/main/default/lwc/setterDemoParentComponent/setterDemoParentComponent.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightning__AppPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/slotChildComponent/slotChildComponent.html b/force-app/main/default/lwc/slotChildComponent/slotChildComponent.html deleted file mode 100644 index 1176442..0000000 --- a/force-app/main/default/lwc/slotChildComponent/slotChildComponent.html +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/slotChildComponent/slotChildComponent.js b/force-app/main/default/lwc/slotChildComponent/slotChildComponent.js deleted file mode 100644 index 25860ea..0000000 --- a/force-app/main/default/lwc/slotChildComponent/slotChildComponent.js +++ /dev/null @@ -1,3 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class SlotChildComponent extends LightningElement {} \ No newline at end of file diff --git a/force-app/main/default/lwc/slotChildComponent/slotChildComponent.js-meta.xml b/force-app/main/default/lwc/slotChildComponent/slotChildComponent.js-meta.xml deleted file mode 100644 index 6127d85..0000000 --- a/force-app/main/default/lwc/slotChildComponent/slotChildComponent.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 59.0 - false - \ No newline at end of file diff --git a/force-app/main/default/lwc/slotParentComponent/slotParentComponent.html b/force-app/main/default/lwc/slotParentComponent/slotParentComponent.html deleted file mode 100644 index 908e025..0000000 --- a/force-app/main/default/lwc/slotParentComponent/slotParentComponent.html +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/slotParentComponent/slotParentComponent.js b/force-app/main/default/lwc/slotParentComponent/slotParentComponent.js deleted file mode 100644 index 462ef43..0000000 --- a/force-app/main/default/lwc/slotParentComponent/slotParentComponent.js +++ /dev/null @@ -1,3 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class SlotParentComponent extends LightningElement {} \ No newline at end of file diff --git a/force-app/main/default/lwc/slotParentComponent/slotParentComponent.js-meta.xml b/force-app/main/default/lwc/slotParentComponent/slotParentComponent.js-meta.xml deleted file mode 100644 index 011be21..0000000 --- a/force-app/main/default/lwc/slotParentComponent/slotParentComponent.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightning__AppPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/subscriber/subscriber.html b/force-app/main/default/lwc/subscriber/subscriber.html deleted file mode 100644 index 2c7e789..0000000 --- a/force-app/main/default/lwc/subscriber/subscriber.html +++ /dev/null @@ -1,14 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/subscriber/subscriber.js b/force-app/main/default/lwc/subscriber/subscriber.js deleted file mode 100644 index 8f24405..0000000 --- a/force-app/main/default/lwc/subscriber/subscriber.js +++ /dev/null @@ -1,16 +0,0 @@ -import { LightningElement } from 'lwc'; -import pubSub from 'c/pubSub'; -export default class Subscriber extends LightningElement { - message; - connectedCallback(){ - this.register(); - } - handleEvent(messageFromEvt){ - console.log("event handled",messageFromEvt.message); - this.message=messageFromEvt.message; - } - register(){ - console.log('event registerd'); - pubSub.register('simplevt',this.handleEvent.bind(this)) - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/subscriber/subscriber.js-meta.xml b/force-app/main/default/lwc/subscriber/subscriber.js-meta.xml deleted file mode 100644 index 9fa43f2..0000000 --- a/force-app/main/default/lwc/subscriber/subscriber.js-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - 59.0 - true - - lightning__HomePage - lightning__RecordPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/testLwc/testLwc.html b/force-app/main/default/lwc/testLwc/testLwc.html deleted file mode 100644 index 93af483..0000000 --- a/force-app/main/default/lwc/testLwc/testLwc.html +++ /dev/null @@ -1,8 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/testLwc/testLwc.js b/force-app/main/default/lwc/testLwc/testLwc.js deleted file mode 100644 index 1db0b0b..0000000 --- a/force-app/main/default/lwc/testLwc/testLwc.js +++ /dev/null @@ -1,17 +0,0 @@ -import { LightningElement } from 'lwc'; -import { NavigationMixin } from 'lightning/navigation'; -export default class TestLwc extends NavigationMixin(LightningElement) { - - navigateToAccountsList() { - this[NavigationMixin.Navigate]({ - type: 'standard__objectPage', - attributes: { - objectApiName: 'Account', - actionName: 'list' - }, - state: { - filterName: 'Recent' // Optional filter name - } - }); - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/testLwc/testLwc.js-meta.xml b/force-app/main/default/lwc/testLwc/testLwc.js-meta.xml deleted file mode 100644 index e46dbc2..0000000 --- a/force-app/main/default/lwc/testLwc/testLwc.js-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - 59.0 - true - - lightning__HomePage - lightning__FlowScreen - - \ No newline at end of file diff --git a/force-app/main/default/lwc/toDoListComponent/toDoListComponent.html b/force-app/main/default/lwc/toDoListComponent/toDoListComponent.html deleted file mode 100644 index bf5f509..0000000 --- a/force-app/main/default/lwc/toDoListComponent/toDoListComponent.html +++ /dev/null @@ -1,31 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/toDoListComponent/toDoListComponent.js b/force-app/main/default/lwc/toDoListComponent/toDoListComponent.js deleted file mode 100644 index d920454..0000000 --- a/force-app/main/default/lwc/toDoListComponent/toDoListComponent.js +++ /dev/null @@ -1,30 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class ToDoListComponent extends LightningElement { - titleValue = ''; - descriptionValue = ''; - createTask = false; - isDisabled = true; - - handleChange(event) { - if (event.target.label === 'Title') { - this.titleValue = event.target.value; - } else if (event.target.label === 'Description') { - this.descriptionValue = event.target.value; - } - this.updateButtonState(); - } - - updateButtonState() { - if (this.titleValue != '' && this.titleValue === ' ') { - this.isDisabled = false; - } else { - this.isDisabled = true; - } - } - - handleCreate() { - console.log(this.titleValue, this.descriptionValue); - this.createTask = true; - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/toDoListComponent/toDoListComponent.js-meta.xml b/force-app/main/default/lwc/toDoListComponent/toDoListComponent.js-meta.xml deleted file mode 100644 index 011be21..0000000 --- a/force-app/main/default/lwc/toDoListComponent/toDoListComponent.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightning__AppPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/trackDemo/trackDemo.html b/force-app/main/default/lwc/trackDemo/trackDemo.html deleted file mode 100644 index 87c90e3..0000000 --- a/force-app/main/default/lwc/trackDemo/trackDemo.html +++ /dev/null @@ -1,14 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/trackDemo/trackDemo.js b/force-app/main/default/lwc/trackDemo/trackDemo.js deleted file mode 100644 index 161e8da..0000000 --- a/force-app/main/default/lwc/trackDemo/trackDemo.js +++ /dev/null @@ -1,19 +0,0 @@ -import { LightningElement,track } from 'lwc'; - -export default class TrackDemo extends LightningElement { - - @track fullName={firstName:"",lastName:""}; - - handleChange(event){ - const field=event.target.name; - // window.alert(field) - - if(field === 'firstName'){ - this.fullName.firstName=event.target.value; - } - else if(field === 'lastName'){ - this.fullName.lastName=event.target.value; - } - - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/trackDemo/trackDemo.js-meta.xml b/force-app/main/default/lwc/trackDemo/trackDemo.js-meta.xml deleted file mode 100644 index 519ef48..0000000 --- a/force-app/main/default/lwc/trackDemo/trackDemo.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 57.0 - true - - lightning__HomePage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/weatherApplication/__tests__/weatherApplication.test.js b/force-app/main/default/lwc/weatherApplication/__tests__/weatherApplication.test.js deleted file mode 100644 index c703304..0000000 --- a/force-app/main/default/lwc/weatherApplication/__tests__/weatherApplication.test.js +++ /dev/null @@ -1,25 +0,0 @@ -import { createElement } from 'lwc'; -import WeatherApplication from 'c/weatherApplication'; - -describe('c-weather-application', () => { - afterEach(() => { - // The jsdom instance is shared across test cases in a single file so reset the DOM - while (document.body.firstChild) { - document.body.removeChild(document.body.firstChild); - } - }); - - it('TODO: test case generated by CLI command, please fill in test logic', () => { - // Arrange - const element = createElement('c-weather-application', { - is: WeatherApplication - }); - - // Act - document.body.appendChild(element); - - // Assert - // const div = element.shadowRoot.querySelector('div'); - expect(1).toBe(1); - }); -}); \ No newline at end of file diff --git a/force-app/main/default/lwc/weatherApplication/weatherApplication.html b/force-app/main/default/lwc/weatherApplication/weatherApplication.html deleted file mode 100644 index 49b786e..0000000 --- a/force-app/main/default/lwc/weatherApplication/weatherApplication.html +++ /dev/null @@ -1,67 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/weatherApplication/weatherApplication.js b/force-app/main/default/lwc/weatherApplication/weatherApplication.js deleted file mode 100644 index d8508f3..0000000 --- a/force-app/main/default/lwc/weatherApplication/weatherApplication.js +++ /dev/null @@ -1,19 +0,0 @@ -import { LightningElement } from 'lwc'; - -export default class WeatherApplication extends LightningElement { - value = ''; - - get options() { - return [ - // { label: 'choose one...', value: '' }, - { label: 'one', value: '1' }, - { label: 'two', value: '2' }, - { label: 'three', value: '3' }, - ]; - } - - handleChange(event) { - this.value = event.detail.value; - } - -} \ No newline at end of file diff --git a/force-app/main/default/lwc/weatherApplication/weatherApplication.js-meta.xml b/force-app/main/default/lwc/weatherApplication/weatherApplication.js-meta.xml deleted file mode 100644 index 90b3bcd..0000000 --- a/force-app/main/default/lwc/weatherApplication/weatherApplication.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 61.0 - true - - lightning__AppPage - - \ No newline at end of file diff --git a/force-app/main/default/lwc/wrapperTable/wrapperTable.html b/force-app/main/default/lwc/wrapperTable/wrapperTable.html deleted file mode 100644 index a9c6b70..0000000 --- a/force-app/main/default/lwc/wrapperTable/wrapperTable.html +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/wrapperTable/wrapperTable.js b/force-app/main/default/lwc/wrapperTable/wrapperTable.js deleted file mode 100644 index 43a4eb7..0000000 --- a/force-app/main/default/lwc/wrapperTable/wrapperTable.js +++ /dev/null @@ -1,14 +0,0 @@ -import { LightningElement,track} from 'lwc'; - -export default class WrapperTable extends LightningElement { - @track data = [ - { id: 1, name: 'John Doe', email: 'john.doe@example.com' }, - { id: 2, name: 'Jane Smith', email: 'jane.smith@example.com' } - ]; - - @track columns = [ - { label: 'ID', fieldName: 'id' }, - { label: 'Name', fieldName: 'name' }, - { label: 'Email', fieldName: 'email' } - ]; -} \ No newline at end of file diff --git a/force-app/main/default/lwc/wrapperTable/wrapperTable.js-meta.xml b/force-app/main/default/lwc/wrapperTable/wrapperTable.js-meta.xml deleted file mode 100644 index 0ac90a6..0000000 --- a/force-app/main/default/lwc/wrapperTable/wrapperTable.js-meta.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - 59.0 - true - - lightning__RecordPage - - \ No newline at end of file