@openmrs/esm-user-onboarding-app 4.0.1-pre.76 → 4.0.1-pre.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/743.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_openmrs_esm_user_onboarding_app=globalThis.webpackChunk_openmrs_esm_user_onboarding_app||[]).push([[743],{6743:(t,e,a)=>{"use strict";a.r(e),a.d(e,{importTranslation:()=>c,root:()=>p,startupApp:()=>d,tutorial:()=>u,tutorialModal:()=>g});var i=a(5987),n={showTutorial:{_type:i.Type.Boolean,_default:!1,_description:"Enable or Disable Onboarding Walkthrough"},tutorialData:{_type:i.Type.Array,_description:"List of tutorials to be displayed in the modal",_default:[{title:"Basic Tutorial",description:"Learn how to efficiently search for patients, register new patients, access user settings, and view ongoing visits and appointments.",steps:[{target:'[aria-label="OpenMRS"]',content:"Welcome to OpenMRS! This is the main dashboard where you can navigate to various features of the system.",disableBeacon:!0},{target:'[name="SearchPatientIcon"]',content:"This is the search icon. Use it to find patients in the system quickly."},{target:'[name="AddPatientIcon"]',content:"This is the add patient icon. Click here to register a new patient into the system."},{target:'[name="User"]',content:"The user icon. Click here to change your user preferences and settings."},{target:'[data-extension-id="active-visits-widget"]',content:"This table displays active visits. Here you can see all the ongoing patient visits."},{target:'[data-extension-id="home-appointments"]',content:"This table shows appointments. View and manage patient appointments from this section."}]},{title:"Tutorial for demo purposes",description:"This tutorial is for demo / debugging purposes only",steps:[{target:'[aria-label="OpenMRS"]',title:"Let us walk through the tutorial features together.",disableBeacon:!0},{target:'[data-extension-id="clinical-appointments-dashboard-link"]',title:"Click on this link. This step is configured to be automatic and will take you to the next step. Once the given query selector resolves an element on the page, it will proceed automatically.",hideCloseButton:!0,hideNextButton:!0,disableOverlayClose:!0,spotlightClicks:!0,data:{autoNextOn:'[data-extension-id="clinical-appointments-dashboard"]'}},{target:'[data-extension-id="clinical-appointments-dashboard"]',title:"Congrats! You have reached the clinical appointments dashboard.",disableOverlayClose:!0},{target:'[aria-label="OpenMRS"]',title:'Now, let’s see how this behaves when elements take a bit longer to load. Set your network throttling to "Slow 3G" and hit "Next".',disableOverlayClose:!0,hideBackButton:!0},{target:'[data-extension-id="laboratory-dashboard-link"]',title:'Let\'s navigate to the laboratory page. Our next target is the "Tests Ordered" table. I’ll disappear once you reach the laboratory page and reappear when the table is loaded. See you there!',hideCloseButton:!0,hideNextButton:!0,disableOverlayClose:!0,spotlightClicks:!0,data:{autoNextOn:'[data-extension-id="laboratory-dashboard"]'}},{target:'[data-extension-id="all-lab-requests-table"] table',title:"It's me again. By default, I'll wait for the element to appear, so you don't have to worry about slow components when writing a new tutorial.",disableOverlayClose:!0,hideBackButton:!0},{target:'[aria-label="OpenMRS"]',title:"Now let's do a fun exercise. Can you find out how to view a patient's allergies on your own? Feel free to turn off network throttling. ;) "},{target:'[data-extension-slot-name="patient-chart-allergies-dashboard-slot"]',title:"Great job! You found the allergies section! This is the end of the tutorial. Feel free to explore the system on your own or check out the other tutorials."}]},{title:"Patient Registration Tutorial",description:"Learn how to register a new patient into the system.",steps:[{target:'[name="AddPatientIcon"]',title:"Add Patient",content:"Click here to add a patient to the system.",disableBeacon:!0,disableOverlayClose:!0,spotlightClicks:!0,hideCloseButton:!0,hideNextButton:!0,hideFooter:!0,data:{autoNextOn:"#demographics"}},{target:"#demographics",title:"Demographics",content:"This is the Demographics section. Here you can find various fields and information related to the patient.",disableBeacon:!0,hideBackButton:!0},{target:"#contact",title:"Contact Details",content:"Here you can update the patient's contact information.",disableBeacon:!0},{target:"#relationships",title:"Relationships",content:"In this section, you can manage the patient's relationships.",disableBeacon:!0},{target:'button[type="submit"]',title:"Register Patient",content:"Click this button to register the patient's information into the system.",disableBeacon:!0}]},{title:"Patient Chart Tutorial",description:"Patient chart is the main point of interaction between healthcare professionals and patient data, where you can manage everything related to a single patient.",steps:[{target:'[data-testid="searchPatientIcon"]',title:"Search icon",content:"To access the patient chart, first, you need to select a patient. To start, click here to open the search box so that we can search for a patient.",disableBeacon:!0,disableOverlayClose:!0,spotlightClicks:!0,hideNextButton:!0,data:{autoNextOn:'[data-testid="patientSearchBar"]'}},{target:'[data-testid="patientSearchBar"]',title:"Search box",content:"Now, enter the name or the ID of the patient here. Some example patient names that you can search for are: John, Smith, Mary.",hideNextButton:!0,hideBackButton:!0,disableOverlayClose:!0,spotlightClicks:!0,data:{autoNextOn:'[data-testid="floatingSearchResultsContainer"]'}},{target:'[data-testid="floatingSearchResultsContainer"]',title:"Search results",content:"Click on the patient you want to go to their patient chart.",spotlightClicks:!0,disableOverlayClose:!0,disableOverlay:!0,placement:"left",hideNextButton:!0,hideBackButton:!0,data:{autoNextOn:'[data-extension-slot-name="action-menu-patient-chart-items-slot"]'}},{target:"body",title:"Patient Chart",content:"Welcome to the Patient Chart View! Here, you can quickly see everything about your patient's health history, visits, medications, allergies, and test results—all in one place. It's designed to help you provide the best care efficiently.",spotlightClicks:!0,disableOverlayClose:!0,hideBackButton:!0,placement:"center"},{target:'[data-extension-id="patient-banner"]',title:"Patient header",content:'The patient header contains all the key information you need to identify the patient you are currently viewing. You can click on the "Show Details" button to see additional patient information.',disableOverlayClose:!0,spotlightClicks:!0,hideBackButton:!0},{target:'[aria-label="Left navigation"]',title:"Left panel",content:"The left panel shows the sections of the patient chart. Currently, we are on the patient summary page.",disableOverlayClose:!0,spotlightClicks:!0,placement:"right"},{target:'[data-extension-slot-name="patient-chart-summary-dashboard-slot"]',title:"Patient summary widgets",content:"Patient Summary is a personalized view made up of widgets that show essential features and information for quick access.",disableOverlayClose:!0},{target:'[data-extension-slot-name="action-menu-patient-chart-items-slot"]',title:"Siderail",content:"The siderail contains a series of links that take users to different tabs in the Workspace, such as the order basket, visit notes, and clinical forms. Once open, the Workspace is persistent across pages (for example, all pages within the patient chart)."},{target:"body",title:"Great job! You've completed the tutorial. Now, take a moment to explore the Patient Chart View and discover all its features. Feel free to navigate around and get comfortable with the layout. If you need to return to the home page, just click the close button in the top right corner. Happy exploring!",disableOverlayClose:!0,placement:"center"}]}]}},o=a(6072),s=a.n(o),r=a(3941);var l="@openmrs/esm-user-onboarding-app",h={featureName:"user-onboarding",moduleName:l},c=a(4767);function d(){(0,i.defineConfigSchema)(l,n)}var p=(0,i.getAsyncLifecycle)((function(){return Promise.all([a.e(534),a.e(438),a.e(917)]).then(a.bind(a,917))}),h),u=(0,i.getSyncLifecycle)((function(){var t=(0,r.useTranslation)().t;return s().createElement(s().Fragment,null,s().createElement("div",{onClick:function(){var t=(0,i.showModal)("tutorial-modal",{onClose:function(){return t()}})}},t("tutorials","Tutorials")))}),h),g=(0,i.getAsyncLifecycle)((function(){return Promise.all([a.e(534),a.e(570)]).then(a.bind(a,3570))}),h)},4767:(t,e,a)=>{var i={"./am.json":[1197,197],"./en.json":[4300,300],"./es.json":[3099,99],"./fr.json":[4055,55],"./he.json":[4652,652],"./km.json":[4335,335]};function n(t){if(!a.o(i,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=i[t],n=e[0];return a.e(e[1]).then((()=>a(n)))}n.keys=()=>Object.keys(i),n.id=4767,t.exports=n}}]);
1
+ (globalThis.webpackChunk_openmrs_esm_user_onboarding_app=globalThis.webpackChunk_openmrs_esm_user_onboarding_app||[]).push([[743],{6743:(t,e,a)=>{"use strict";a.r(e),a.d(e,{importTranslation:()=>c,root:()=>p,startupApp:()=>d,tutorial:()=>u,tutorialModal:()=>g});var n=a(5987),i={showTutorial:{_type:n.Type.Boolean,_default:!1,_description:"Enable or Disable Onboarding Walkthrough"},tutorialData:{_type:n.Type.Array,_description:"List of tutorials to be displayed in the modal",_default:[{title:"Basic Tutorial",description:"Learn how to efficiently search for patients, register new patients, access user settings, and view ongoing visits and appointments.",steps:[{target:'[aria-label="OpenMRS"]',content:"Welcome to OpenMRS! This is the main dashboard where you can navigate to various features of the system.",disableBeacon:!0},{target:'[name="SearchPatientIcon"]',content:"This is the search icon. Use it to find patients in the system quickly."},{target:'[name="AddPatientIcon"]',content:"This is the add patient icon. Click here to register a new patient into the system."},{target:'[name="User"]',content:"The user icon. Click here to change your user preferences and settings."},{target:'[data-extension-id="active-visits-widget"]',content:"This table displays active visits. Here you can see all the ongoing patient visits."},{target:'[data-extension-id="home-appointments"]',content:"This table shows appointments. View and manage patient appointments from this section."}]},{title:"Tutorial for demo purposes",description:"This tutorial is for demo / debugging purposes only",steps:[{target:'[aria-label="OpenMRS"]',title:"Let us walk through the tutorial features together.",disableBeacon:!0},{target:'[data-extension-id="clinical-appointments-dashboard-link"]',title:"Click on this link. This step is configured to be automatic and will take you to the next step. Once the given query selector resolves an element on the page, it will proceed automatically.",hideCloseButton:!0,hideNextButton:!0,disableOverlayClose:!0,spotlightClicks:!0,data:{autoNextOn:'[data-extension-id="clinical-appointments-dashboard"]'}},{target:'[data-extension-id="clinical-appointments-dashboard"]',title:"Congrats! You have reached the clinical appointments dashboard.",disableOverlayClose:!0},{target:'[aria-label="OpenMRS"]',title:'Now, let’s see how this behaves when elements take a bit longer to load. Set your network throttling to "Slow 3G" and hit "Next".',disableOverlayClose:!0,hideBackButton:!0},{target:'[data-extension-id="laboratory-dashboard-link"]',title:'Let\'s navigate to the laboratory page. Our next target is the "Tests Ordered" table. I’ll disappear once you reach the laboratory page and reappear when the table is loaded. See you there!',hideCloseButton:!0,hideNextButton:!0,disableOverlayClose:!0,spotlightClicks:!0,data:{autoNextOn:'[data-extension-id="laboratory-dashboard"]'}},{target:'[data-extension-id="all-lab-requests-table"] table',title:"It's me again. By default, I'll wait for the element to appear, so you don't have to worry about slow components when writing a new tutorial.",disableOverlayClose:!0,hideBackButton:!0},{target:'[aria-label="OpenMRS"]',title:"Now let's do a fun exercise. Can you find out how to view a patient's allergies on your own? Feel free to turn off network throttling. ;) "},{target:'[data-extension-slot-name="patient-chart-allergies-dashboard-slot"]',title:"Great job! You found the allergies section! This is the end of the tutorial. Feel free to explore the system on your own or check out the other tutorials."}]},{title:"Patient Registration Tutorial",description:"Learn how to register a new patient into the system.",steps:[{target:'[name="AddPatientIcon"]',title:"Add Patient",content:"Click here to add a patient to the system.",disableBeacon:!0,disableOverlayClose:!0,spotlightClicks:!0,hideCloseButton:!0,hideNextButton:!0,hideFooter:!0,data:{autoNextOn:"#demographics"}},{target:"#demographics",title:"Demographics",content:"This is the Demographics section. Here you can find various fields and information related to the patient.",disableBeacon:!0,hideBackButton:!0},{target:"#contact",title:"Contact Details",content:"Here you can update the patient's contact information.",disableBeacon:!0},{target:"#relationships",title:"Relationships",content:"In this section, you can manage the patient's relationships.",disableBeacon:!0},{target:'button[type="submit"]',title:"Register Patient",content:"Click this button to register the patient's information into the system.",disableBeacon:!0}]},{title:"Patient Chart Tutorial",description:"Patient chart is the main point of interaction between healthcare professionals and patient data, where you can manage everything related to a single patient.",steps:[{target:'[data-testid="searchPatientIcon"]',title:"Search icon",content:"To access the patient chart, first, you need to select a patient. To start, click here to open the search box so that we can search for a patient.",disableBeacon:!0,disableOverlayClose:!0,spotlightClicks:!0,hideNextButton:!0,data:{autoNextOn:'[data-testid="patientSearchBar"]'}},{target:'[data-testid="patientSearchBar"]',title:"Search box",content:"Now, enter the name or the ID of the patient here. Some example patient names that you can search for are: John, Smith, Mary.",hideNextButton:!0,hideBackButton:!0,disableOverlayClose:!0,spotlightClicks:!0,data:{autoNextOn:'[data-testid="floatingSearchResultsContainer"]'}},{target:'[data-testid="floatingSearchResultsContainer"]',title:"Search results",content:"Click on the patient you want to go to their patient chart.",spotlightClicks:!0,disableOverlayClose:!0,disableOverlay:!0,placement:"left",hideNextButton:!0,hideBackButton:!0,data:{autoNextOn:'[data-extension-slot-name="action-menu-patient-chart-items-slot"]'}},{target:"body",title:"Patient Chart",content:"Welcome to the Patient Chart View! Here, you can quickly see everything about your patient's health history, visits, medications, allergies, and test results—all in one place. It's designed to help you provide the best care efficiently.",spotlightClicks:!0,disableOverlayClose:!0,hideBackButton:!0,placement:"center"},{target:'[data-extension-id="patient-banner"]',title:"Patient header",content:'The patient header contains all the key information you need to identify the patient you are currently viewing. You can click on the "Show Details" button to see additional patient information.',disableOverlayClose:!0,spotlightClicks:!0,hideBackButton:!0},{target:'[aria-label="Left navigation"]',title:"Left panel",content:"The left panel shows the sections of the patient chart. Currently, we are on the patient summary page.",disableOverlayClose:!0,spotlightClicks:!0,placement:"right"},{target:'[data-extension-slot-name="patient-chart-summary-dashboard-slot"]',title:"Patient summary widgets",content:"Patient Summary is a personalized view made up of widgets that show essential features and information for quick access.",disableOverlayClose:!0},{target:'[data-extension-slot-name="action-menu-patient-chart-items-slot"]',title:"Siderail",content:"The siderail contains a series of links that take users to different tabs in the Workspace, such as the order basket, visit notes, and clinical forms. Once open, the Workspace is persistent across pages (for example, all pages within the patient chart)."},{target:"body",title:"Great job! You've completed the tutorial. Now, take a moment to explore the Patient Chart View and discover all its features. Feel free to navigate around and get comfortable with the layout. If you need to return to the home page, just click the close button in the top right corner. Happy exploring!",disableOverlayClose:!0,placement:"center"}]},{title:"Patient Search",description:"Learn how to find a patient in the system using basic and advanced search features, including the use of filters to refine results.",steps:[{target:'[data-testid="searchPatientIcon"]',title:"Search icon",content:"Click on the search icon to open the search box so that we can search for a patient.",disableBeacon:!0,disableOverlayClose:!0,spotlightClicks:!0,hideNextButton:!0,data:{autoNextOn:'[data-testid="patientSearchBar"]'}},{target:'[data-testid="patientSearchBar"]',title:"Search box",content:"Now, enter the name of the patient here. If you know the patient ID, you can use that as well. You will see the results if the patient you entered exists in the system. Some example patient names that you can search for are: John, Smith, Mary.",hideNextButton:!0,hideBackButton:!0,disableOverlayClose:!0,spotlightClicks:!0,data:{autoNextOn:'[data-testid="floatingSearchResultsContainer"]'}},{target:'button[type="submit"]',title:"Search button",content:"If there are a lot of patients in the system, you may need additional fields to search other than the name. Also, the patient you are looking for may not be displayed in the top results if there are multiple patients with the same name. In these scenarios, you can click here to open the advanced search.",spotlightClicks:!0,disableOverlayClose:!0,placement:"bottom",hideNextButton:!0,hideBackButton:!0,data:{autoNextOn:'[data-openmrs-role="Refine Search"]'}},{target:'[data-openmrs-role="Refine Search"]',title:"Filters section",content:"You can refine your search by applying filters such as date of birth, age, sex, and phone number here.",spotlightClicks:!0,disableOverlayClose:!0,hideBackButton:!0},{target:'[data-openmrs-role="Search Results"]',title:"Search results",content:"Here you can see all the patients who match the search criteria. Clicking on a patient will open the patient’s patient chart.",disableOverlayClose:!0,placement:"right"},{target:'[data-testid="closeSearchIcon"]',content:"That’s the end of the tutorial. Click on the close button to go back to the home page.",spotlightClicks:!0,disableOverlayClose:!0,placement:"bottom",hideNextButton:!0,hideBackButton:!0,data:{autoNextOn:'[data-extension-id="page-header"]'}}]}]}},o=a(6072),s=a.n(o),r=a(3941);var l="@openmrs/esm-user-onboarding-app",h={featureName:"user-onboarding",moduleName:l},c=a(4767);function d(){(0,n.defineConfigSchema)(l,i)}var p=(0,n.getAsyncLifecycle)((function(){return Promise.all([a.e(534),a.e(438),a.e(917)]).then(a.bind(a,917))}),h),u=(0,n.getSyncLifecycle)((function(){var t=(0,r.useTranslation)().t;return s().createElement(s().Fragment,null,s().createElement("div",{onClick:function(){var t=(0,n.showModal)("tutorial-modal",{onClose:function(){return t()}})}},t("tutorials","Tutorials")))}),h),g=(0,n.getAsyncLifecycle)((function(){return Promise.all([a.e(534),a.e(570)]).then(a.bind(a,3570))}),h)},4767:(t,e,a)=>{var n={"./am.json":[1197,197],"./en.json":[4300,300],"./es.json":[3099,99],"./fr.json":[4055,55],"./he.json":[4652,652],"./km.json":[4335,335]};function i(t){if(!a.o(n,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=n[t],i=e[0];return a.e(e[1]).then((()=>a(i)))}i.keys=()=>Object.keys(n),i.id=4767,t.exports=i}}]);
package/dist/743.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"743.js","mappings":"oRAEaA,EAAe,CAC1BC,aAAc,CACZC,MAAOC,EAAAA,KAAKC,QAC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AA,oBAAkB,W,OAAM,6D,GAA4BP,GAE3DQ,GAAWC,EAAAA,EAAAA,mBCfP,WACf,IAAM,GAAQC,EAAAA,EAAAA,kBAANC,EAQR,OACE,oCACE,kBAACC,MAAAA,CAAIC,QARe,WACtB,IAAMC,GAAUC,EAAAA,EAAAA,WAAU,iBAAkB,CAC1CC,QAAS,W,OAAMF,G,GAEnB,GAIoCH,EAAE,YAAa,cAGrD,GDCmDX,GAEtCiB,GAAgBV,EAAAA,EAAAA,oBAAkB,W,OAAM,qD,GAAsCP,E,iBErB3F,IAAIkB,EAAM,CACT,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,IAED,YAAa,CACZ,KACA,IAED,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,MAGF,SAASC,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEJ,EAAKE,GAC9B,OAAOG,QAAQC,UAAUC,MAAK,KAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBP,EAAM,KAEjD,MADAM,EAAEE,KAAO,mBACHF,CAAC,IAIT,IAAIG,EAAMX,EAAIE,GAAMU,EAAKD,EAAI,GAC7B,OAAOR,EAAoBK,EAAEG,EAAI,IAAIJ,MAAK,IAClCJ,EAAoBS,IAE7B,CACAX,EAAoBY,KAAO,IAAOC,OAAOD,KAAKb,GAC9CC,EAAoBW,GAAK,KACzBG,EAAOC,QAAUf,C","sources":["webpack://@openmrs/esm-user-onboarding-app/./src/config-schema.ts","webpack://@openmrs/esm-user-onboarding-app/./src/index.ts","webpack://@openmrs/esm-user-onboarding-app/./src/tutorial/tutorial.tsx","webpack://@openmrs/esm-user-onboarding-app/./translations/ lazy nonrecursive .json$"],"names":["configSchema","showTutorial","_type","Type","Boolean","_default","_description","tutorialData","Array","title","description","steps","target","content","disableBeacon","hideCloseButton","hideNextButton","disableOverlayClose","spotlightClicks","data","autoNextOn","hideBackButton","hideFooter","disableOverlay","placement","moduleName","options","featureName","importTranslation","require","startupApp","defineConfigSchema","root","getAsyncLifecycle","tutorial","getSyncLifecycle","useTranslation","t","div","onClick","dispose","showModal","onClose","tutorialModal","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","id","keys","Object","module","exports"],"sourceRoot":""}
1
+ {"version":3,"file":"743.js","mappings":"oRAEaA,EAAe,CAC1BC,aAAc,CACZC,MAAOC,EAAAA,KAAKC,QACZC,UAAU,EACVC,aAAc,4CAEhBC,aAAc,CACZL,MAAOC,EAAAA,KAAKK,MACZF,aAAc,iDACdD,SAAU,CACR,CACEI,MAAO,iBACPC,YAAa,uIACbC,MAAO,CAAC,CACNC,OAAQ,yBACRC,QAAS,2GACTC,eAAe,GAEf,CACEF,OAAQ,6BACRC,QAAS,2EAEX,CACED,OAAQ,0BACRC,QAAS,uFAEX,CACED,OAAQ,gBACRC,QAAS,2EAEX,CACED,OAAQ,6CACRC,QAAS,uFAEX,CACED,OAAQ,0CACRC,QAAS,4FAIf,CACEJ,MAAO,6BACPC,YAAa,sDACbC,MAAO,CACL,CACEC,OAAQ,yBACRH,MAAO,sDACPK,eAAe,GAEjB,CACEF,OAAQ,6DACRH,MACE,gMACFM,iBAAiB,EACjBC,gBAAgB,EAChBC,qBAAqB,EACrBC,iBAAiB,EACjBC,KAAM,CACJC,WAAY,0DAGhB,CACER,OAAQ,wDACRH,MAAO,kEACPQ,qBAAqB,GAEvB,CACEL,OAAQ,yBACRH,MACE,oIACFQ,qBAAqB,EACrBI,gBAAgB,GAElB,CACET,OAAQ,kDACRH,MACE,gMACFM,iBAAiB,EACjBC,gBAAgB,EAChBC,qBAAqB,EACrBC,iBAAiB,EACjBC,KAAM,CACJC,WAAY,+CAGhB,CACER,OAAQ,qDACRH,MACE,gJACFQ,qBAAqB,EACrBI,gBAAgB,GAElB,CACET,OAAQ,yBACRH,MACE,8IAEJ,CACEG,OAAQ,sEACRH,MACE,gKAIR,CACEA,MAAO,gCACPC,YAAa,uDACbC,MAAO,CACL,CACEC,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OAAMF,G,GAEnB,GAIoCH,EAAE,YAAa,cAGrD,GDCmDX,GAEtCiB,GAAgBV,EAAAA,EAAAA,oBAAkB,W,OAAM,qD,GAAsCP,E,iBErB3F,IAAIkB,EAAM,CACT,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,IAED,YAAa,CACZ,KACA,IAED,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,MAGF,SAASC,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEJ,EAAKE,GAC9B,OAAOG,QAAQC,UAAUC,MAAK,KAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBP,EAAM,KAEjD,MADAM,EAAEE,KAAO,mBACHF,CAAC,IAIT,IAAIG,EAAMX,EAAIE,GAAMU,EAAKD,EAAI,GAC7B,OAAOR,EAAoBK,EAAEG,EAAI,IAAIJ,MAAK,IAClCJ,EAAoBS,IAE7B,CACAX,EAAoBY,KAAO,IAAOC,OAAOD,KAAKb,GAC9CC,EAAoBW,GAAK,KACzBG,EAAOC,QAAUf,C","sources":["webpack://@openmrs/esm-user-onboarding-app/./src/config-schema.ts","webpack://@openmrs/esm-user-onboarding-app/./src/index.ts","webpack://@openmrs/esm-user-onboarding-app/./src/tutorial/tutorial.tsx","webpack://@openmrs/esm-user-onboarding-app/./translations/ lazy nonrecursive .json$"],"names":["configSchema","showTutorial","_type","Type","Boolean","_default","_description","tutorialData","Array","title","description","steps","target","content","disableBeacon","hideCloseButton","hideNextButton","disableOverlayClose","spotlightClicks","data","autoNextOn","hideBackButton","hideFooter","disableOverlay","placement","moduleName","options","featureName","importTranslation","require","startupApp","defineConfigSchema","root","getAsyncLifecycle","tutorial","getSyncLifecycle","useTranslation","t","div","onClick","dispose","showModal","onClose","tutorialModal","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","id","keys","Object","module","exports"],"sourceRoot":""}
@@ -341,10 +341,10 @@
341
341
  "initial": false,
342
342
  "entry": false,
343
343
  "recorded": false,
344
- "size": 14572,
344
+ "size": 18566,
345
345
  "sizes": {
346
346
  "consume-shared": 84,
347
- "javascript": 14488
347
+ "javascript": 18482
348
348
  },
349
349
  "names": [],
350
350
  "idHints": [],
@@ -357,7 +357,7 @@
357
357
  "auxiliaryFiles": [
358
358
  "743.js.map"
359
359
  ],
360
- "hash": "e4e5d5153a2ada98",
360
+ "hash": "c7cf76682e974949",
361
361
  "childrenByOrder": {}
362
362
  },
363
363
  {
@@ -365,10 +365,10 @@
365
365
  "initial": true,
366
366
  "entry": true,
367
367
  "recorded": false,
368
- "size": 34371,
368
+ "size": 38365,
369
369
  "sizes": {
370
370
  "consume-shared": 126,
371
- "javascript": 14488,
371
+ "javascript": 18482,
372
372
  "share-init": 126,
373
373
  "runtime": 19631
374
374
  },
@@ -385,7 +385,7 @@
385
385
  "auxiliaryFiles": [
386
386
  "main.js.map"
387
387
  ],
388
- "hash": "35e47d2c874a5761",
388
+ "hash": "bdae0bcc0cb7fd6c",
389
389
  "childrenByOrder": {}
390
390
  },
391
391
  {
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.24.0"},"extensions":[{"name":"tutorials","slot":"help-menu-slot","component":"tutorial","online":true,"offline":true}],"modals":[{"name":"tutorial-modal","component":"tutorialModal"}],"pages":[{"component":"root","route":true}],"version":"4.0.1-pre.76"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.24.0"},"extensions":[{"name":"tutorials","slot":"help-menu-slot","component":"tutorial","online":true,"offline":true}],"modals":[{"name":"tutorial-modal","component":"tutorialModal"}],"pages":[{"component":"root","route":true}],"version":"4.0.1-pre.85"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-user-onboarding-app",
3
- "version": "4.0.1-pre.76",
3
+ "version": "4.0.1-pre.85",
4
4
  "license": "MPL-2.0",
5
5
  "description": "An OpenMRS microfrontend for user onboarding walkthroughs",
6
6
  "browser": "dist/openmrs-esm-user-onboarding-app.js",
@@ -244,6 +244,80 @@ export const configSchema = {
244
244
  },
245
245
  ],
246
246
  },
247
+ {
248
+ title: 'Patient Search',
249
+ description: 'Learn how to find a patient in the system using basic and advanced search features, including the use of filters to refine results.',
250
+ steps: [
251
+ {
252
+ target: '[data-testid="searchPatientIcon"]',
253
+ title: 'Search icon',
254
+ content: 'Click on the search icon to open the search box so that we can search for a patient.',
255
+ disableBeacon: true,
256
+ disableOverlayClose: true,
257
+ spotlightClicks: true,
258
+ hideNextButton: true,
259
+ data: {
260
+ autoNextOn: '[data-testid="patientSearchBar"]',
261
+ },
262
+ },
263
+ {
264
+ target: '[data-testid="patientSearchBar"]',
265
+ title: 'Search box',
266
+ content:
267
+ 'Now, enter the name of the patient here. If you know the patient ID, you can use that as well. You will see the results if the patient you entered exists in the system. Some example patient names that you can search for are: John, Smith, Mary.',
268
+ hideNextButton: true,
269
+ hideBackButton: true,
270
+ disableOverlayClose: true,
271
+ spotlightClicks: true,
272
+ data: {
273
+ autoNextOn: '[data-testid="floatingSearchResultsContainer"]',
274
+ },
275
+ },
276
+ {
277
+ target: 'button[type="submit"]',
278
+ title: 'Search button',
279
+ content:
280
+ 'If there are a lot of patients in the system, you may need additional fields to search other than the name. Also, the patient you are looking for may not be displayed in the top results if there are multiple patients with the same name. In these scenarios, you can click here to open the advanced search.',
281
+ spotlightClicks: true,
282
+ disableOverlayClose: true,
283
+ placement: 'bottom',
284
+ hideNextButton: true,
285
+ hideBackButton: true,
286
+ data: {
287
+ autoNextOn: '[data-openmrs-role="Refine Search"]',
288
+ },
289
+ },
290
+ {
291
+ target: '[data-openmrs-role="Refine Search"]',
292
+ title: 'Filters section',
293
+ content:
294
+ 'You can refine your search by applying filters such as date of birth, age, sex, and phone number here.',
295
+ spotlightClicks: true,
296
+ disableOverlayClose: true,
297
+ hideBackButton: true,
298
+ },
299
+ {
300
+ target: '[data-openmrs-role="Search Results"]',
301
+ title: 'Search results',
302
+ content:
303
+ 'Here you can see all the patients who match the search criteria. Clicking on a patient will open the patient’s patient chart.',
304
+ disableOverlayClose: true,
305
+ placement: 'right',
306
+ },
307
+ {
308
+ target: '[data-testid="closeSearchIcon"]',
309
+ content: 'That’s the end of the tutorial. Click on the close button to go back to the home page.',
310
+ spotlightClicks: true,
311
+ disableOverlayClose: true,
312
+ placement: 'bottom',
313
+ hideNextButton: true,
314
+ hideBackButton: true,
315
+ data: {
316
+ autoNextOn: '[data-extension-id="page-header"]',
317
+ },
318
+ },
319
+ ],
320
+ },
247
321
  ],
248
322
  },
249
323
  };