@dooboostore/simple-web-component 1.0.13 → 1.0.14
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/cjs/decorators/elementDefine.js.map +2 -2
- package/dist/cjs/elements/SwcInterfaces.js.map +2 -2
- package/dist/cjs/elements/apps/SwcApp.js +14 -7
- package/dist/cjs/elements/apps/SwcApp.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppAnchor.js +14 -7
- package/dist/cjs/elements/apps/SwcAppAnchor.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppArea.js +14 -7
- package/dist/cjs/elements/apps/SwcAppArea.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppAudio.js +14 -7
- package/dist/cjs/elements/apps/SwcAppAudio.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppBase.js +14 -7
- package/dist/cjs/elements/apps/SwcAppBase.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppBody.js +14 -7
- package/dist/cjs/elements/apps/SwcAppBody.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppButton.js +14 -7
- package/dist/cjs/elements/apps/SwcAppButton.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppCanvas.js +14 -7
- package/dist/cjs/elements/apps/SwcAppCanvas.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppData.js +14 -7
- package/dist/cjs/elements/apps/SwcAppData.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppDataList.js +14 -7
- package/dist/cjs/elements/apps/SwcAppDataList.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppDetails.js +14 -7
- package/dist/cjs/elements/apps/SwcAppDetails.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppDialog.js +14 -7
- package/dist/cjs/elements/apps/SwcAppDialog.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppDiv.js +14 -7
- package/dist/cjs/elements/apps/SwcAppDiv.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppDl.js +14 -7
- package/dist/cjs/elements/apps/SwcAppDl.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppEmbed.js +14 -7
- package/dist/cjs/elements/apps/SwcAppEmbed.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppFieldSet.js +14 -7
- package/dist/cjs/elements/apps/SwcAppFieldSet.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppForm.js +14 -7
- package/dist/cjs/elements/apps/SwcAppForm.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppHeading.js +14 -7
- package/dist/cjs/elements/apps/SwcAppHeading.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppHr.js +14 -7
- package/dist/cjs/elements/apps/SwcAppHr.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppIFrame.js +14 -7
- package/dist/cjs/elements/apps/SwcAppIFrame.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppImage.js +14 -7
- package/dist/cjs/elements/apps/SwcAppImage.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppInput.js +14 -7
- package/dist/cjs/elements/apps/SwcAppInput.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppLabel.js +14 -7
- package/dist/cjs/elements/apps/SwcAppLabel.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppLegend.js +14 -7
- package/dist/cjs/elements/apps/SwcAppLegend.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppLi.js +14 -7
- package/dist/cjs/elements/apps/SwcAppLi.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppLink.js +14 -7
- package/dist/cjs/elements/apps/SwcAppLink.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppMap.js +14 -7
- package/dist/cjs/elements/apps/SwcAppMap.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppMeta.js +14 -7
- package/dist/cjs/elements/apps/SwcAppMeta.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppMeter.js +14 -7
- package/dist/cjs/elements/apps/SwcAppMeter.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppMod.js +14 -7
- package/dist/cjs/elements/apps/SwcAppMod.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppObject.js +14 -7
- package/dist/cjs/elements/apps/SwcAppObject.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppOl.js +14 -7
- package/dist/cjs/elements/apps/SwcAppOl.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppOptGroup.js +14 -7
- package/dist/cjs/elements/apps/SwcAppOptGroup.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppOption.js +14 -7
- package/dist/cjs/elements/apps/SwcAppOption.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppOutput.js +14 -7
- package/dist/cjs/elements/apps/SwcAppOutput.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppParagraph.js +14 -7
- package/dist/cjs/elements/apps/SwcAppParagraph.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppParam.js +14 -7
- package/dist/cjs/elements/apps/SwcAppParam.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppPicture.js +14 -7
- package/dist/cjs/elements/apps/SwcAppPicture.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppPre.js +14 -7
- package/dist/cjs/elements/apps/SwcAppPre.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppProgress.js +14 -7
- package/dist/cjs/elements/apps/SwcAppProgress.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppQuote.js +14 -7
- package/dist/cjs/elements/apps/SwcAppQuote.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppScript.js +14 -7
- package/dist/cjs/elements/apps/SwcAppScript.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppSelect.js +14 -7
- package/dist/cjs/elements/apps/SwcAppSelect.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppSlot.js +14 -7
- package/dist/cjs/elements/apps/SwcAppSlot.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppSource.js +14 -7
- package/dist/cjs/elements/apps/SwcAppSource.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppSpan.js +14 -7
- package/dist/cjs/elements/apps/SwcAppSpan.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppStyle.js +14 -7
- package/dist/cjs/elements/apps/SwcAppStyle.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppTable.js +14 -7
- package/dist/cjs/elements/apps/SwcAppTable.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppTableCell.js +14 -7
- package/dist/cjs/elements/apps/SwcAppTableCell.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppTableRow.js +14 -7
- package/dist/cjs/elements/apps/SwcAppTableRow.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppTableSection.js +14 -7
- package/dist/cjs/elements/apps/SwcAppTableSection.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppTemplate.js +14 -7
- package/dist/cjs/elements/apps/SwcAppTemplate.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppTextArea.js +14 -7
- package/dist/cjs/elements/apps/SwcAppTextArea.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppTime.js +14 -7
- package/dist/cjs/elements/apps/SwcAppTime.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppTitle.js +14 -7
- package/dist/cjs/elements/apps/SwcAppTitle.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppTrack.js +14 -7
- package/dist/cjs/elements/apps/SwcAppTrack.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppUl.js +14 -7
- package/dist/cjs/elements/apps/SwcAppUl.js.map +2 -2
- package/dist/cjs/elements/apps/SwcAppVideo.js +14 -7
- package/dist/cjs/elements/apps/SwcAppVideo.js.map +2 -2
- package/dist/cjs/router/ElementRouter.js +172 -0
- package/dist/cjs/router/ElementRouter.js.map +7 -0
- package/dist/esm/decorators/elementDefine.js.map +2 -2
- package/dist/esm/elements/SwcInterfaces.js.map +2 -2
- package/dist/esm/elements/apps/SwcApp.js +14 -7
- package/dist/esm/elements/apps/SwcApp.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppAnchor.js +14 -7
- package/dist/esm/elements/apps/SwcAppAnchor.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppArea.js +14 -7
- package/dist/esm/elements/apps/SwcAppArea.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppAudio.js +14 -7
- package/dist/esm/elements/apps/SwcAppAudio.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppBase.js +14 -7
- package/dist/esm/elements/apps/SwcAppBase.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppBody.js +14 -7
- package/dist/esm/elements/apps/SwcAppBody.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppButton.js +14 -7
- package/dist/esm/elements/apps/SwcAppButton.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppCanvas.js +14 -7
- package/dist/esm/elements/apps/SwcAppCanvas.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppData.js +14 -7
- package/dist/esm/elements/apps/SwcAppData.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppDataList.js +14 -7
- package/dist/esm/elements/apps/SwcAppDataList.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppDetails.js +14 -7
- package/dist/esm/elements/apps/SwcAppDetails.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppDialog.js +14 -7
- package/dist/esm/elements/apps/SwcAppDialog.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppDiv.js +14 -7
- package/dist/esm/elements/apps/SwcAppDiv.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppDl.js +14 -7
- package/dist/esm/elements/apps/SwcAppDl.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppEmbed.js +14 -7
- package/dist/esm/elements/apps/SwcAppEmbed.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppFieldSet.js +14 -7
- package/dist/esm/elements/apps/SwcAppFieldSet.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppForm.js +14 -7
- package/dist/esm/elements/apps/SwcAppForm.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppHeading.js +14 -7
- package/dist/esm/elements/apps/SwcAppHeading.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppHr.js +14 -7
- package/dist/esm/elements/apps/SwcAppHr.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppIFrame.js +14 -7
- package/dist/esm/elements/apps/SwcAppIFrame.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppImage.js +14 -7
- package/dist/esm/elements/apps/SwcAppImage.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppInput.js +14 -7
- package/dist/esm/elements/apps/SwcAppInput.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppLabel.js +14 -7
- package/dist/esm/elements/apps/SwcAppLabel.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppLegend.js +14 -7
- package/dist/esm/elements/apps/SwcAppLegend.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppLi.js +14 -7
- package/dist/esm/elements/apps/SwcAppLi.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppLink.js +14 -7
- package/dist/esm/elements/apps/SwcAppLink.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppMap.js +14 -7
- package/dist/esm/elements/apps/SwcAppMap.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppMeta.js +14 -7
- package/dist/esm/elements/apps/SwcAppMeta.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppMeter.js +14 -7
- package/dist/esm/elements/apps/SwcAppMeter.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppMod.js +14 -7
- package/dist/esm/elements/apps/SwcAppMod.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppObject.js +14 -7
- package/dist/esm/elements/apps/SwcAppObject.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppOl.js +14 -7
- package/dist/esm/elements/apps/SwcAppOl.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppOptGroup.js +14 -7
- package/dist/esm/elements/apps/SwcAppOptGroup.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppOption.js +14 -7
- package/dist/esm/elements/apps/SwcAppOption.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppOutput.js +14 -7
- package/dist/esm/elements/apps/SwcAppOutput.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppParagraph.js +14 -7
- package/dist/esm/elements/apps/SwcAppParagraph.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppParam.js +14 -7
- package/dist/esm/elements/apps/SwcAppParam.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppPicture.js +14 -7
- package/dist/esm/elements/apps/SwcAppPicture.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppPre.js +14 -7
- package/dist/esm/elements/apps/SwcAppPre.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppProgress.js +14 -7
- package/dist/esm/elements/apps/SwcAppProgress.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppQuote.js +14 -7
- package/dist/esm/elements/apps/SwcAppQuote.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppScript.js +14 -7
- package/dist/esm/elements/apps/SwcAppScript.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppSelect.js +14 -7
- package/dist/esm/elements/apps/SwcAppSelect.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppSlot.js +14 -7
- package/dist/esm/elements/apps/SwcAppSlot.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppSource.js +14 -7
- package/dist/esm/elements/apps/SwcAppSource.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppSpan.js +14 -7
- package/dist/esm/elements/apps/SwcAppSpan.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppStyle.js +14 -7
- package/dist/esm/elements/apps/SwcAppStyle.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppTable.js +14 -7
- package/dist/esm/elements/apps/SwcAppTable.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppTableCell.js +14 -7
- package/dist/esm/elements/apps/SwcAppTableCell.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppTableRow.js +14 -7
- package/dist/esm/elements/apps/SwcAppTableRow.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppTableSection.js +14 -7
- package/dist/esm/elements/apps/SwcAppTableSection.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppTemplate.js +14 -7
- package/dist/esm/elements/apps/SwcAppTemplate.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppTextArea.js +14 -7
- package/dist/esm/elements/apps/SwcAppTextArea.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppTime.js +14 -7
- package/dist/esm/elements/apps/SwcAppTime.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppTitle.js +14 -7
- package/dist/esm/elements/apps/SwcAppTitle.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppTrack.js +14 -7
- package/dist/esm/elements/apps/SwcAppTrack.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppUl.js +14 -7
- package/dist/esm/elements/apps/SwcAppUl.js.map +2 -2
- package/dist/esm/elements/apps/SwcAppVideo.js +14 -7
- package/dist/esm/elements/apps/SwcAppVideo.js.map +2 -2
- package/dist/esm/router/ElementRouter.js +153 -0
- package/dist/esm/router/ElementRouter.js.map +7 -0
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +912 -415
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +4 -4
- package/dist/types/decorators/elementDefine.d.ts.map +1 -1
- package/dist/types/elements/SwcInterfaces.d.ts +3 -1
- package/dist/types/elements/SwcInterfaces.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcApp.d.ts +2 -3
- package/dist/types/elements/apps/SwcApp.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppAnchor.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppAnchor.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppArea.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppArea.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppAudio.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppAudio.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppBase.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppBase.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppBody.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppBody.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppButton.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppButton.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppCanvas.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppCanvas.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppData.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppData.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppDataList.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppDataList.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppDetails.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppDetails.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppDialog.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppDialog.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppDiv.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppDiv.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppDl.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppDl.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppEmbed.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppEmbed.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppFieldSet.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppFieldSet.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppForm.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppForm.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppHeading.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppHeading.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppHr.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppHr.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppIFrame.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppIFrame.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppImage.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppImage.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppInput.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppInput.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppLabel.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppLabel.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppLegend.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppLegend.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppLi.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppLi.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppLink.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppLink.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppMap.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppMap.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppMeta.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppMeta.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppMeter.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppMeter.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppMod.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppMod.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppObject.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppObject.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppOl.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppOl.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppOptGroup.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppOptGroup.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppOption.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppOption.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppOutput.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppOutput.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppParagraph.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppParagraph.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppParam.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppParam.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppPicture.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppPicture.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppPre.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppPre.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppProgress.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppProgress.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppQuote.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppQuote.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppScript.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppScript.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppSelect.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppSelect.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppSlot.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppSlot.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppSource.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppSource.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppSpan.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppSpan.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppStyle.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppStyle.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppTable.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppTable.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppTableCell.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppTableCell.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppTableRow.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppTableRow.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppTableSection.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppTableSection.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppTemplate.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppTemplate.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppTextArea.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppTextArea.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppTime.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppTime.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppTitle.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppTitle.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppTrack.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppTrack.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppUl.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppUl.d.ts.map +1 -1
- package/dist/types/elements/apps/SwcAppVideo.d.ts +2 -3
- package/dist/types/elements/apps/SwcAppVideo.d.ts.map +1 -1
- package/dist/types/router/ElementRouter.d.ts +41 -0
- package/dist/types/router/ElementRouter.d.ts.map +1 -0
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +912 -415
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +4 -4
- package/package.json +2 -2
- package/src/decorators/elementDefine.ts +1 -0
- package/src/elements/SwcInterfaces.ts +6 -2
- package/src/elements/apps/SwcApp.ts +17 -9
- package/src/elements/apps/SwcAppAnchor.ts +17 -9
- package/src/elements/apps/SwcAppArea.ts +17 -9
- package/src/elements/apps/SwcAppAudio.ts +17 -9
- package/src/elements/apps/SwcAppBase.ts +17 -9
- package/src/elements/apps/SwcAppBody.ts +17 -9
- package/src/elements/apps/SwcAppButton.ts +17 -9
- package/src/elements/apps/SwcAppCanvas.ts +17 -9
- package/src/elements/apps/SwcAppData.ts +17 -9
- package/src/elements/apps/SwcAppDataList.ts +17 -9
- package/src/elements/apps/SwcAppDetails.ts +17 -9
- package/src/elements/apps/SwcAppDialog.ts +17 -9
- package/src/elements/apps/SwcAppDiv.ts +17 -9
- package/src/elements/apps/SwcAppDl.ts +17 -9
- package/src/elements/apps/SwcAppEmbed.ts +17 -9
- package/src/elements/apps/SwcAppFieldSet.ts +17 -9
- package/src/elements/apps/SwcAppForm.ts +17 -9
- package/src/elements/apps/SwcAppHeading.ts +17 -9
- package/src/elements/apps/SwcAppHr.ts +17 -9
- package/src/elements/apps/SwcAppIFrame.ts +17 -9
- package/src/elements/apps/SwcAppImage.ts +17 -9
- package/src/elements/apps/SwcAppInput.ts +17 -9
- package/src/elements/apps/SwcAppLabel.ts +17 -9
- package/src/elements/apps/SwcAppLegend.ts +17 -9
- package/src/elements/apps/SwcAppLi.ts +17 -9
- package/src/elements/apps/SwcAppLink.ts +17 -9
- package/src/elements/apps/SwcAppMap.ts +17 -9
- package/src/elements/apps/SwcAppMeta.ts +17 -9
- package/src/elements/apps/SwcAppMeter.ts +17 -9
- package/src/elements/apps/SwcAppMod.ts +17 -9
- package/src/elements/apps/SwcAppObject.ts +17 -9
- package/src/elements/apps/SwcAppOl.ts +17 -9
- package/src/elements/apps/SwcAppOptGroup.ts +17 -9
- package/src/elements/apps/SwcAppOption.ts +17 -9
- package/src/elements/apps/SwcAppOutput.ts +17 -9
- package/src/elements/apps/SwcAppParagraph.ts +17 -9
- package/src/elements/apps/SwcAppParam.ts +17 -9
- package/src/elements/apps/SwcAppPicture.ts +17 -9
- package/src/elements/apps/SwcAppPre.ts +17 -9
- package/src/elements/apps/SwcAppProgress.ts +17 -9
- package/src/elements/apps/SwcAppQuote.ts +17 -9
- package/src/elements/apps/SwcAppScript.ts +17 -9
- package/src/elements/apps/SwcAppSelect.ts +17 -9
- package/src/elements/apps/SwcAppSlot.ts +17 -9
- package/src/elements/apps/SwcAppSource.ts +17 -9
- package/src/elements/apps/SwcAppSpan.ts +17 -9
- package/src/elements/apps/SwcAppStyle.ts +17 -9
- package/src/elements/apps/SwcAppTable.ts +17 -9
- package/src/elements/apps/SwcAppTableCell.ts +17 -9
- package/src/elements/apps/SwcAppTableRow.ts +17 -9
- package/src/elements/apps/SwcAppTableSection.ts +17 -9
- package/src/elements/apps/SwcAppTemplate.ts +17 -9
- package/src/elements/apps/SwcAppTextArea.ts +17 -9
- package/src/elements/apps/SwcAppTime.ts +17 -9
- package/src/elements/apps/SwcAppTitle.ts +17 -9
- package/src/elements/apps/SwcAppTrack.ts +17 -9
- package/src/elements/apps/SwcAppUl.ts +17 -9
- package/src/elements/apps/SwcAppVideo.ts +17 -9
- package/src/router/ElementRouter.ts +187 -0
|
@@ -1990,15 +1990,16 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
1990
1990
|
};
|
|
1991
1991
|
var InjectMetadataKey = Symbol("Inject");
|
|
1992
1992
|
var getInject = (target, propertyKey) => {
|
|
1993
|
-
if (target
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
1993
|
+
if (target == null) return [];
|
|
1994
|
+
let searchTarget = typeof target === "object" ? target.constructor : target;
|
|
1995
|
+
while (searchTarget && searchTarget !== Object) {
|
|
1996
|
+
const data = propertyKey ? Reflect.getOwnMetadata(InjectMetadataKey, searchTarget, propertyKey) : ReflectUtils.getMetadata(InjectMetadataKey, searchTarget);
|
|
1997
|
+
if (data) return data;
|
|
1998
|
+
const proto = Object.getPrototypeOf(searchTarget);
|
|
1999
|
+
searchTarget = proto && typeof proto === "function" ? proto : proto?.constructor || null;
|
|
2000
|
+
if (searchTarget === target) break;
|
|
2001
2001
|
}
|
|
2002
|
+
return propertyKey ? [] : [];
|
|
2002
2003
|
};
|
|
2003
2004
|
|
|
2004
2005
|
// src/elements/SwcInterfaces.ts
|
|
@@ -10797,7 +10798,6 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
10797
10798
|
});
|
|
10798
10799
|
}
|
|
10799
10800
|
async executeBindParameterSimPromise({ target, targetKey, firstCheckMaker, parameterCount, inputParameters }, otherStorage) {
|
|
10800
|
-
console.log("--vvvaaaaaaaaaaaa");
|
|
10801
10801
|
const binds = this.getParameterSim({ target, targetKey, firstCheckMaker, otherStorage, parameterCount, inputParameters });
|
|
10802
10802
|
if (typeof target === "object" && targetKey) {
|
|
10803
10803
|
const targetMethod = target[targetKey];
|
|
@@ -12580,6 +12580,155 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12580
12580
|
}
|
|
12581
12581
|
};
|
|
12582
12582
|
|
|
12583
|
+
// src/router/ElementRouter.ts
|
|
12584
|
+
var ElementRouter = class extends Router {
|
|
12585
|
+
constructor(config) {
|
|
12586
|
+
const { firstUrl, ...rest } = config;
|
|
12587
|
+
super(rest);
|
|
12588
|
+
this._history = [];
|
|
12589
|
+
this._currentIndex = -1;
|
|
12590
|
+
const startUrl = firstUrl ?? "/";
|
|
12591
|
+
this._history = [{ url: startUrl, data: null }];
|
|
12592
|
+
this._currentIndex = 0;
|
|
12593
|
+
if (firstUrl) {
|
|
12594
|
+
this.replace(firstUrl, { config: { noEventAndPublish: true } });
|
|
12595
|
+
}
|
|
12596
|
+
}
|
|
12597
|
+
// Override pushState to manage internal history
|
|
12598
|
+
pushState(data, title, path, config) {
|
|
12599
|
+
const behaviorSubject = this.behaviorSubject;
|
|
12600
|
+
if (!config?.noEventAndPublish && behaviorSubject) {
|
|
12601
|
+
behaviorSubject.next({ ...this.getRouteData({ pathOrUrl: path }), triggerPoint: "start" });
|
|
12602
|
+
}
|
|
12603
|
+
if (!this._history) this._history = [];
|
|
12604
|
+
this._history = this._history.slice(0, this._currentIndex + 1);
|
|
12605
|
+
this._history.push({ url: path, data, title });
|
|
12606
|
+
this._currentIndex++;
|
|
12607
|
+
if (!config?.noEventAndPublish && behaviorSubject) {
|
|
12608
|
+
behaviorSubject.next({ ...this.getRouteData({ pathOrUrl: path }), triggerPoint: "end" });
|
|
12609
|
+
}
|
|
12610
|
+
return { data };
|
|
12611
|
+
}
|
|
12612
|
+
// Override replaceState to manage internal history
|
|
12613
|
+
replaceState(data, title, path, config) {
|
|
12614
|
+
const behaviorSubject = this.behaviorSubject;
|
|
12615
|
+
if (!config?.noEventAndPublish && behaviorSubject) {
|
|
12616
|
+
behaviorSubject.next({ ...this.getRouteData({ pathOrUrl: path }), triggerPoint: "start" });
|
|
12617
|
+
}
|
|
12618
|
+
if (!this._history) this._history = [];
|
|
12619
|
+
if (this._currentIndex === -1) {
|
|
12620
|
+
this._history.push({ url: path, data, title });
|
|
12621
|
+
this._currentIndex = 0;
|
|
12622
|
+
} else {
|
|
12623
|
+
this._history[this._currentIndex] = { url: path, data, title };
|
|
12624
|
+
}
|
|
12625
|
+
if (!config?.noEventAndPublish && behaviorSubject) {
|
|
12626
|
+
behaviorSubject.next({ ...this.getRouteData({ pathOrUrl: path }), triggerPoint: "end" });
|
|
12627
|
+
}
|
|
12628
|
+
return { data };
|
|
12629
|
+
}
|
|
12630
|
+
push(path, state2) {
|
|
12631
|
+
this.pushState(state2?.data, state2?.title, this.toUrl(path), state2?.config);
|
|
12632
|
+
}
|
|
12633
|
+
replace(path, state2) {
|
|
12634
|
+
this.replaceState(state2?.data, state2?.title, this.toUrl(path), state2?.config);
|
|
12635
|
+
}
|
|
12636
|
+
back(config) {
|
|
12637
|
+
if (this._currentIndex > 0) {
|
|
12638
|
+
this.go(-1, config);
|
|
12639
|
+
}
|
|
12640
|
+
}
|
|
12641
|
+
forward(config) {
|
|
12642
|
+
if (this._currentIndex < this._history.length - 1) {
|
|
12643
|
+
this.go(1, config);
|
|
12644
|
+
}
|
|
12645
|
+
}
|
|
12646
|
+
go(config, changeStateConfig) {
|
|
12647
|
+
if (typeof config === "number") {
|
|
12648
|
+
const targetIndex = this._currentIndex + config;
|
|
12649
|
+
if (this._history && targetIndex >= 0 && targetIndex < this._history.length) {
|
|
12650
|
+
const behaviorSubject = this.behaviorSubject;
|
|
12651
|
+
if (!changeStateConfig?.noEventAndPublish && behaviorSubject) {
|
|
12652
|
+
behaviorSubject.next({ ...this.getRouteData(), triggerPoint: "start" });
|
|
12653
|
+
}
|
|
12654
|
+
this._currentIndex = targetIndex;
|
|
12655
|
+
const entry = this._history[this._currentIndex];
|
|
12656
|
+
if (!changeStateConfig?.noEventAndPublish && behaviorSubject) {
|
|
12657
|
+
behaviorSubject.next({ ...this.getRouteData({ pathOrUrl: entry.url }), triggerPoint: "end" });
|
|
12658
|
+
}
|
|
12659
|
+
}
|
|
12660
|
+
return;
|
|
12661
|
+
}
|
|
12662
|
+
return super.go(config, changeStateConfig);
|
|
12663
|
+
}
|
|
12664
|
+
getData() {
|
|
12665
|
+
return this._history?.[this._currentIndex]?.data;
|
|
12666
|
+
}
|
|
12667
|
+
getUrl() {
|
|
12668
|
+
return this._history?.[this._currentIndex]?.url ?? this.config?.firstUrl ?? "/";
|
|
12669
|
+
}
|
|
12670
|
+
getHref() {
|
|
12671
|
+
return this.getUrl();
|
|
12672
|
+
}
|
|
12673
|
+
getPathName() {
|
|
12674
|
+
return this.getUrl().split("?")[0];
|
|
12675
|
+
}
|
|
12676
|
+
getSearch() {
|
|
12677
|
+
const parts = this.getUrl().split("?");
|
|
12678
|
+
return parts[1] ? `?${parts[1]}` : "";
|
|
12679
|
+
}
|
|
12680
|
+
getSearchParams(data) {
|
|
12681
|
+
const search = this.getSearch();
|
|
12682
|
+
const searchParams = new URLSearchParams(search);
|
|
12683
|
+
return UrlUtils.manipulateSearchParams(searchParams, data);
|
|
12684
|
+
}
|
|
12685
|
+
getHashSearchParams(data) {
|
|
12686
|
+
const url = this.getUrl();
|
|
12687
|
+
const hashIdx = url.indexOf("#");
|
|
12688
|
+
const hash = hashIdx !== -1 ? url.slice(hashIdx + 1) : "";
|
|
12689
|
+
const searchParams = new URLSearchParams(hash);
|
|
12690
|
+
return UrlUtils.manipulateSearchParams(searchParams, data);
|
|
12691
|
+
}
|
|
12692
|
+
pushAddSearchParam(params, state2) {
|
|
12693
|
+
const s = this.getSearchParams({ append: params });
|
|
12694
|
+
this.push({ searchParams: s }, state2);
|
|
12695
|
+
}
|
|
12696
|
+
pushDeleteHashSearchParam(name, state2) {
|
|
12697
|
+
const s = this.getHashSearchParams({ delete: Array.isArray(name) ? name : [name] });
|
|
12698
|
+
const url = this.getUrl().split("#")[0];
|
|
12699
|
+
const size = Array.from(s.entries()).length;
|
|
12700
|
+
this.push(url + (size > 0 ? "#" + s.toString() : ""), state2);
|
|
12701
|
+
}
|
|
12702
|
+
pushDeleteSearchParam(name, state2) {
|
|
12703
|
+
const s = this.getSearchParams({ delete: Array.isArray(name) ? name : [name] });
|
|
12704
|
+
this.push({ searchParams: s }, state2);
|
|
12705
|
+
}
|
|
12706
|
+
pushUpsertSearchParam(params, state2) {
|
|
12707
|
+
const s = this.getSearchParams();
|
|
12708
|
+
UrlUtils.upsertSearchParam(s, params);
|
|
12709
|
+
this.push({ searchParams: s }, state2);
|
|
12710
|
+
}
|
|
12711
|
+
replaceAddSearchParam(params, state2) {
|
|
12712
|
+
const s = this.getSearchParams({ append: params });
|
|
12713
|
+
this.replace({ searchParams: s }, state2);
|
|
12714
|
+
}
|
|
12715
|
+
replaceDeleteHashSearchParam(name, state2) {
|
|
12716
|
+
const s = this.getHashSearchParams({ delete: Array.isArray(name) ? name : [name] });
|
|
12717
|
+
const url = this.getUrl().split("#")[0];
|
|
12718
|
+
const size = Array.from(s.entries()).length;
|
|
12719
|
+
this.replace(url + (size > 0 ? "#" + s.toString() : ""), state2);
|
|
12720
|
+
}
|
|
12721
|
+
replaceDeleteSearchParam(name, state2) {
|
|
12722
|
+
const s = this.getSearchParams({ delete: Array.isArray(name) ? name : [name] });
|
|
12723
|
+
this.replace({ searchParams: s }, state2);
|
|
12724
|
+
}
|
|
12725
|
+
replaceUpsertSearchParam(params, state2) {
|
|
12726
|
+
const s = this.getSearchParamObject();
|
|
12727
|
+
UrlUtils.upsertSearchParam(s, params);
|
|
12728
|
+
this.replace({ searchParams: s }, state2);
|
|
12729
|
+
}
|
|
12730
|
+
};
|
|
12731
|
+
|
|
12583
12732
|
// src/elements/apps/SwcApp.ts
|
|
12584
12733
|
var __decorate = function(decorators, target, key, desc) {
|
|
12585
12734
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -12605,12 +12754,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12605
12754
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
12606
12755
|
if (userConfig) {
|
|
12607
12756
|
const _config = {
|
|
12608
|
-
routeType: "
|
|
12757
|
+
routeType: "element",
|
|
12609
12758
|
window,
|
|
12610
12759
|
...userConfig
|
|
12611
12760
|
};
|
|
12612
|
-
|
|
12613
|
-
|
|
12761
|
+
if (_config.routeType === "path") {
|
|
12762
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
12763
|
+
} else if (_config.routeType === "hash") {
|
|
12764
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
12765
|
+
} else {
|
|
12766
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
12767
|
+
}
|
|
12768
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
12614
12769
|
if (route.triggerPoint === "end") {
|
|
12615
12770
|
this.routingProcess(route.path);
|
|
12616
12771
|
}
|
|
@@ -12621,8 +12776,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12621
12776
|
});
|
|
12622
12777
|
this.simpleApplication = new SimpleApplication(option);
|
|
12623
12778
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
12624
|
-
if (this.
|
|
12625
|
-
otherInstanceSim.set(Router, this.
|
|
12779
|
+
if (this.router) {
|
|
12780
|
+
otherInstanceSim.set(Router, this.router);
|
|
12626
12781
|
}
|
|
12627
12782
|
this.simpleApplication.run(otherInstanceSim);
|
|
12628
12783
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -12634,7 +12789,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12634
12789
|
}
|
|
12635
12790
|
}
|
|
12636
12791
|
if (_config.path) {
|
|
12637
|
-
await this.
|
|
12792
|
+
await this.router?.go(_config.path);
|
|
12638
12793
|
}
|
|
12639
12794
|
}
|
|
12640
12795
|
} catch (e) {
|
|
@@ -12646,7 +12801,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12646
12801
|
this.routerSubscription?.unsubscribe();
|
|
12647
12802
|
}
|
|
12648
12803
|
async routing(path) {
|
|
12649
|
-
await this.
|
|
12804
|
+
await this.router?.go(path);
|
|
12650
12805
|
}
|
|
12651
12806
|
async routingProcess(path) {
|
|
12652
12807
|
await this.simpleApplication?.routing(path);
|
|
@@ -12682,12 +12837,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12682
12837
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
12683
12838
|
if (userConfig) {
|
|
12684
12839
|
const _config = {
|
|
12685
|
-
routeType: "
|
|
12840
|
+
routeType: "element",
|
|
12686
12841
|
window,
|
|
12687
12842
|
...userConfig
|
|
12688
12843
|
};
|
|
12689
|
-
|
|
12690
|
-
|
|
12844
|
+
if (_config.routeType === "path") {
|
|
12845
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
12846
|
+
} else if (_config.routeType === "hash") {
|
|
12847
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
12848
|
+
} else {
|
|
12849
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
12850
|
+
}
|
|
12851
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
12691
12852
|
if (route.triggerPoint === "end") {
|
|
12692
12853
|
this.routingProcess(route.path);
|
|
12693
12854
|
}
|
|
@@ -12698,8 +12859,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12698
12859
|
});
|
|
12699
12860
|
this.simpleApplication = new SimpleApplication(option);
|
|
12700
12861
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
12701
|
-
if (this.
|
|
12702
|
-
otherInstanceSim.set(Router, this.
|
|
12862
|
+
if (this.router) {
|
|
12863
|
+
otherInstanceSim.set(Router, this.router);
|
|
12703
12864
|
}
|
|
12704
12865
|
this.simpleApplication.run(otherInstanceSim);
|
|
12705
12866
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -12711,7 +12872,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12711
12872
|
}
|
|
12712
12873
|
}
|
|
12713
12874
|
if (_config.path) {
|
|
12714
|
-
await this.
|
|
12875
|
+
await this.router?.go(_config.path);
|
|
12715
12876
|
}
|
|
12716
12877
|
}
|
|
12717
12878
|
} catch (e) {
|
|
@@ -12723,7 +12884,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12723
12884
|
this.routerSubscription?.unsubscribe();
|
|
12724
12885
|
}
|
|
12725
12886
|
async routing(path) {
|
|
12726
|
-
await this.
|
|
12887
|
+
await this.router?.go(path);
|
|
12727
12888
|
}
|
|
12728
12889
|
async routingProcess(path) {
|
|
12729
12890
|
await this.simpleApplication?.routing(path);
|
|
@@ -12759,12 +12920,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12759
12920
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
12760
12921
|
if (userConfig) {
|
|
12761
12922
|
const _config = {
|
|
12762
|
-
routeType: "
|
|
12923
|
+
routeType: "element",
|
|
12763
12924
|
window,
|
|
12764
12925
|
...userConfig
|
|
12765
12926
|
};
|
|
12766
|
-
|
|
12767
|
-
|
|
12927
|
+
if (_config.routeType === "path") {
|
|
12928
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
12929
|
+
} else if (_config.routeType === "hash") {
|
|
12930
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
12931
|
+
} else {
|
|
12932
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
12933
|
+
}
|
|
12934
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
12768
12935
|
if (route.triggerPoint === "end") {
|
|
12769
12936
|
this.routingProcess(route.path);
|
|
12770
12937
|
}
|
|
@@ -12775,8 +12942,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12775
12942
|
});
|
|
12776
12943
|
this.simpleApplication = new SimpleApplication(option);
|
|
12777
12944
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
12778
|
-
if (this.
|
|
12779
|
-
otherInstanceSim.set(Router, this.
|
|
12945
|
+
if (this.router) {
|
|
12946
|
+
otherInstanceSim.set(Router, this.router);
|
|
12780
12947
|
}
|
|
12781
12948
|
this.simpleApplication.run(otherInstanceSim);
|
|
12782
12949
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -12788,7 +12955,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12788
12955
|
}
|
|
12789
12956
|
}
|
|
12790
12957
|
if (_config.path) {
|
|
12791
|
-
await this.
|
|
12958
|
+
await this.router?.go(_config.path);
|
|
12792
12959
|
}
|
|
12793
12960
|
}
|
|
12794
12961
|
} catch (e) {
|
|
@@ -12800,7 +12967,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12800
12967
|
this.routerSubscription?.unsubscribe();
|
|
12801
12968
|
}
|
|
12802
12969
|
async routing(path) {
|
|
12803
|
-
await this.
|
|
12970
|
+
await this.router?.go(path);
|
|
12804
12971
|
}
|
|
12805
12972
|
async routingProcess(path) {
|
|
12806
12973
|
await this.simpleApplication?.routing(path);
|
|
@@ -12836,12 +13003,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12836
13003
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
12837
13004
|
if (userConfig) {
|
|
12838
13005
|
const _config = {
|
|
12839
|
-
routeType: "
|
|
13006
|
+
routeType: "element",
|
|
12840
13007
|
window,
|
|
12841
13008
|
...userConfig
|
|
12842
13009
|
};
|
|
12843
|
-
|
|
12844
|
-
|
|
13010
|
+
if (_config.routeType === "path") {
|
|
13011
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13012
|
+
} else if (_config.routeType === "hash") {
|
|
13013
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13014
|
+
} else {
|
|
13015
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13016
|
+
}
|
|
13017
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
12845
13018
|
if (route.triggerPoint === "end") {
|
|
12846
13019
|
this.routingProcess(route.path);
|
|
12847
13020
|
}
|
|
@@ -12852,8 +13025,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12852
13025
|
});
|
|
12853
13026
|
this.simpleApplication = new SimpleApplication(option);
|
|
12854
13027
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
12855
|
-
if (this.
|
|
12856
|
-
otherInstanceSim.set(Router, this.
|
|
13028
|
+
if (this.router) {
|
|
13029
|
+
otherInstanceSim.set(Router, this.router);
|
|
12857
13030
|
}
|
|
12858
13031
|
this.simpleApplication.run(otherInstanceSim);
|
|
12859
13032
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -12865,7 +13038,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12865
13038
|
}
|
|
12866
13039
|
}
|
|
12867
13040
|
if (_config.path) {
|
|
12868
|
-
await this.
|
|
13041
|
+
await this.router?.go(_config.path);
|
|
12869
13042
|
}
|
|
12870
13043
|
}
|
|
12871
13044
|
} catch (e) {
|
|
@@ -12877,7 +13050,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12877
13050
|
this.routerSubscription?.unsubscribe();
|
|
12878
13051
|
}
|
|
12879
13052
|
async routing(path) {
|
|
12880
|
-
await this.
|
|
13053
|
+
await this.router?.go(path);
|
|
12881
13054
|
}
|
|
12882
13055
|
async routingProcess(path) {
|
|
12883
13056
|
await this.simpleApplication?.routing(path);
|
|
@@ -12913,12 +13086,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12913
13086
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
12914
13087
|
if (userConfig) {
|
|
12915
13088
|
const _config = {
|
|
12916
|
-
routeType: "
|
|
13089
|
+
routeType: "element",
|
|
12917
13090
|
window,
|
|
12918
13091
|
...userConfig
|
|
12919
13092
|
};
|
|
12920
|
-
|
|
12921
|
-
|
|
13093
|
+
if (_config.routeType === "path") {
|
|
13094
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13095
|
+
} else if (_config.routeType === "hash") {
|
|
13096
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13097
|
+
} else {
|
|
13098
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13099
|
+
}
|
|
13100
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
12922
13101
|
if (route.triggerPoint === "end") {
|
|
12923
13102
|
this.routingProcess(route.path);
|
|
12924
13103
|
}
|
|
@@ -12929,8 +13108,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12929
13108
|
});
|
|
12930
13109
|
this.simpleApplication = new SimpleApplication(option);
|
|
12931
13110
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
12932
|
-
if (this.
|
|
12933
|
-
otherInstanceSim.set(Router, this.
|
|
13111
|
+
if (this.router) {
|
|
13112
|
+
otherInstanceSim.set(Router, this.router);
|
|
12934
13113
|
}
|
|
12935
13114
|
this.simpleApplication.run(otherInstanceSim);
|
|
12936
13115
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -12942,7 +13121,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12942
13121
|
}
|
|
12943
13122
|
}
|
|
12944
13123
|
if (_config.path) {
|
|
12945
|
-
await this.
|
|
13124
|
+
await this.router?.go(_config.path);
|
|
12946
13125
|
}
|
|
12947
13126
|
}
|
|
12948
13127
|
} catch (e) {
|
|
@@ -12954,7 +13133,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12954
13133
|
this.routerSubscription?.unsubscribe();
|
|
12955
13134
|
}
|
|
12956
13135
|
async routing(path) {
|
|
12957
|
-
await this.
|
|
13136
|
+
await this.router?.go(path);
|
|
12958
13137
|
}
|
|
12959
13138
|
async routingProcess(path) {
|
|
12960
13139
|
await this.simpleApplication?.routing(path);
|
|
@@ -12990,12 +13169,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
12990
13169
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
12991
13170
|
if (userConfig) {
|
|
12992
13171
|
const _config = {
|
|
12993
|
-
routeType: "
|
|
13172
|
+
routeType: "element",
|
|
12994
13173
|
window,
|
|
12995
13174
|
...userConfig
|
|
12996
13175
|
};
|
|
12997
|
-
|
|
12998
|
-
|
|
13176
|
+
if (_config.routeType === "path") {
|
|
13177
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13178
|
+
} else if (_config.routeType === "hash") {
|
|
13179
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13180
|
+
} else {
|
|
13181
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13182
|
+
}
|
|
13183
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
12999
13184
|
if (route.triggerPoint === "end") {
|
|
13000
13185
|
this.routingProcess(route.path);
|
|
13001
13186
|
}
|
|
@@ -13006,8 +13191,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13006
13191
|
});
|
|
13007
13192
|
this.simpleApplication = new SimpleApplication(option);
|
|
13008
13193
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13009
|
-
if (this.
|
|
13010
|
-
otherInstanceSim.set(Router, this.
|
|
13194
|
+
if (this.router) {
|
|
13195
|
+
otherInstanceSim.set(Router, this.router);
|
|
13011
13196
|
}
|
|
13012
13197
|
this.simpleApplication.run(otherInstanceSim);
|
|
13013
13198
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13019,7 +13204,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13019
13204
|
}
|
|
13020
13205
|
}
|
|
13021
13206
|
if (_config.path) {
|
|
13022
|
-
await this.
|
|
13207
|
+
await this.router?.go(_config.path);
|
|
13023
13208
|
}
|
|
13024
13209
|
}
|
|
13025
13210
|
} catch (e) {
|
|
@@ -13031,7 +13216,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13031
13216
|
this.routerSubscription?.unsubscribe();
|
|
13032
13217
|
}
|
|
13033
13218
|
async routing(path) {
|
|
13034
|
-
await this.
|
|
13219
|
+
await this.router?.go(path);
|
|
13035
13220
|
}
|
|
13036
13221
|
async routingProcess(path) {
|
|
13037
13222
|
await this.simpleApplication?.routing(path);
|
|
@@ -13067,12 +13252,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13067
13252
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13068
13253
|
if (userConfig) {
|
|
13069
13254
|
const _config = {
|
|
13070
|
-
routeType: "
|
|
13255
|
+
routeType: "element",
|
|
13071
13256
|
window,
|
|
13072
13257
|
...userConfig
|
|
13073
13258
|
};
|
|
13074
|
-
|
|
13075
|
-
|
|
13259
|
+
if (_config.routeType === "path") {
|
|
13260
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13261
|
+
} else if (_config.routeType === "hash") {
|
|
13262
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13263
|
+
} else {
|
|
13264
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13265
|
+
}
|
|
13266
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13076
13267
|
if (route.triggerPoint === "end") {
|
|
13077
13268
|
this.routingProcess(route.path);
|
|
13078
13269
|
}
|
|
@@ -13083,8 +13274,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13083
13274
|
});
|
|
13084
13275
|
this.simpleApplication = new SimpleApplication(option);
|
|
13085
13276
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13086
|
-
if (this.
|
|
13087
|
-
otherInstanceSim.set(Router, this.
|
|
13277
|
+
if (this.router) {
|
|
13278
|
+
otherInstanceSim.set(Router, this.router);
|
|
13088
13279
|
}
|
|
13089
13280
|
this.simpleApplication.run(otherInstanceSim);
|
|
13090
13281
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13096,7 +13287,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13096
13287
|
}
|
|
13097
13288
|
}
|
|
13098
13289
|
if (_config.path) {
|
|
13099
|
-
await this.
|
|
13290
|
+
await this.router?.go(_config.path);
|
|
13100
13291
|
}
|
|
13101
13292
|
}
|
|
13102
13293
|
} catch (e) {
|
|
@@ -13108,7 +13299,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13108
13299
|
this.routerSubscription?.unsubscribe();
|
|
13109
13300
|
}
|
|
13110
13301
|
async routing(path) {
|
|
13111
|
-
await this.
|
|
13302
|
+
await this.router?.go(path);
|
|
13112
13303
|
}
|
|
13113
13304
|
async routingProcess(path) {
|
|
13114
13305
|
await this.simpleApplication?.routing(path);
|
|
@@ -13144,12 +13335,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13144
13335
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13145
13336
|
if (userConfig) {
|
|
13146
13337
|
const _config = {
|
|
13147
|
-
routeType: "
|
|
13338
|
+
routeType: "element",
|
|
13148
13339
|
window,
|
|
13149
13340
|
...userConfig
|
|
13150
13341
|
};
|
|
13151
|
-
|
|
13152
|
-
|
|
13342
|
+
if (_config.routeType === "path") {
|
|
13343
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13344
|
+
} else if (_config.routeType === "hash") {
|
|
13345
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13346
|
+
} else {
|
|
13347
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13348
|
+
}
|
|
13349
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13153
13350
|
if (route.triggerPoint === "end") {
|
|
13154
13351
|
this.routingProcess(route.path);
|
|
13155
13352
|
}
|
|
@@ -13160,8 +13357,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13160
13357
|
});
|
|
13161
13358
|
this.simpleApplication = new SimpleApplication(option);
|
|
13162
13359
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13163
|
-
if (this.
|
|
13164
|
-
otherInstanceSim.set(Router, this.
|
|
13360
|
+
if (this.router) {
|
|
13361
|
+
otherInstanceSim.set(Router, this.router);
|
|
13165
13362
|
}
|
|
13166
13363
|
this.simpleApplication.run(otherInstanceSim);
|
|
13167
13364
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13173,7 +13370,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13173
13370
|
}
|
|
13174
13371
|
}
|
|
13175
13372
|
if (_config.path) {
|
|
13176
|
-
await this.
|
|
13373
|
+
await this.router?.go(_config.path);
|
|
13177
13374
|
}
|
|
13178
13375
|
}
|
|
13179
13376
|
} catch (e) {
|
|
@@ -13185,7 +13382,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13185
13382
|
this.routerSubscription?.unsubscribe();
|
|
13186
13383
|
}
|
|
13187
13384
|
async routing(path) {
|
|
13188
|
-
await this.
|
|
13385
|
+
await this.router?.go(path);
|
|
13189
13386
|
}
|
|
13190
13387
|
async routingProcess(path) {
|
|
13191
13388
|
await this.simpleApplication?.routing(path);
|
|
@@ -13221,12 +13418,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13221
13418
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13222
13419
|
if (userConfig) {
|
|
13223
13420
|
const _config = {
|
|
13224
|
-
routeType: "
|
|
13421
|
+
routeType: "element",
|
|
13225
13422
|
window,
|
|
13226
13423
|
...userConfig
|
|
13227
13424
|
};
|
|
13228
|
-
|
|
13229
|
-
|
|
13425
|
+
if (_config.routeType === "path") {
|
|
13426
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13427
|
+
} else if (_config.routeType === "hash") {
|
|
13428
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13429
|
+
} else {
|
|
13430
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13431
|
+
}
|
|
13432
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13230
13433
|
if (route.triggerPoint === "end") {
|
|
13231
13434
|
this.routingProcess(route.path);
|
|
13232
13435
|
}
|
|
@@ -13237,8 +13440,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13237
13440
|
});
|
|
13238
13441
|
this.simpleApplication = new SimpleApplication(option);
|
|
13239
13442
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13240
|
-
if (this.
|
|
13241
|
-
otherInstanceSim.set(Router, this.
|
|
13443
|
+
if (this.router) {
|
|
13444
|
+
otherInstanceSim.set(Router, this.router);
|
|
13242
13445
|
}
|
|
13243
13446
|
this.simpleApplication.run(otherInstanceSim);
|
|
13244
13447
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13250,7 +13453,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13250
13453
|
}
|
|
13251
13454
|
}
|
|
13252
13455
|
if (_config.path) {
|
|
13253
|
-
await this.
|
|
13456
|
+
await this.router?.go(_config.path);
|
|
13254
13457
|
}
|
|
13255
13458
|
}
|
|
13256
13459
|
} catch (e) {
|
|
@@ -13262,7 +13465,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13262
13465
|
this.routerSubscription?.unsubscribe();
|
|
13263
13466
|
}
|
|
13264
13467
|
async routing(path) {
|
|
13265
|
-
await this.
|
|
13468
|
+
await this.router?.go(path);
|
|
13266
13469
|
}
|
|
13267
13470
|
async routingProcess(path) {
|
|
13268
13471
|
await this.simpleApplication?.routing(path);
|
|
@@ -13298,12 +13501,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13298
13501
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13299
13502
|
if (userConfig) {
|
|
13300
13503
|
const _config = {
|
|
13301
|
-
routeType: "
|
|
13504
|
+
routeType: "element",
|
|
13302
13505
|
window,
|
|
13303
13506
|
...userConfig
|
|
13304
13507
|
};
|
|
13305
|
-
|
|
13306
|
-
|
|
13508
|
+
if (_config.routeType === "path") {
|
|
13509
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13510
|
+
} else if (_config.routeType === "hash") {
|
|
13511
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13512
|
+
} else {
|
|
13513
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13514
|
+
}
|
|
13515
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13307
13516
|
if (route.triggerPoint === "end") {
|
|
13308
13517
|
this.routingProcess(route.path);
|
|
13309
13518
|
}
|
|
@@ -13314,8 +13523,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13314
13523
|
});
|
|
13315
13524
|
this.simpleApplication = new SimpleApplication(option);
|
|
13316
13525
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13317
|
-
if (this.
|
|
13318
|
-
otherInstanceSim.set(Router, this.
|
|
13526
|
+
if (this.router) {
|
|
13527
|
+
otherInstanceSim.set(Router, this.router);
|
|
13319
13528
|
}
|
|
13320
13529
|
this.simpleApplication.run(otherInstanceSim);
|
|
13321
13530
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13327,7 +13536,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13327
13536
|
}
|
|
13328
13537
|
}
|
|
13329
13538
|
if (_config.path) {
|
|
13330
|
-
await this.
|
|
13539
|
+
await this.router?.go(_config.path);
|
|
13331
13540
|
}
|
|
13332
13541
|
}
|
|
13333
13542
|
} catch (e) {
|
|
@@ -13339,7 +13548,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13339
13548
|
this.routerSubscription?.unsubscribe();
|
|
13340
13549
|
}
|
|
13341
13550
|
async routing(path) {
|
|
13342
|
-
await this.
|
|
13551
|
+
await this.router?.go(path);
|
|
13343
13552
|
}
|
|
13344
13553
|
async routingProcess(path) {
|
|
13345
13554
|
await this.simpleApplication?.routing(path);
|
|
@@ -13375,12 +13584,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13375
13584
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13376
13585
|
if (userConfig) {
|
|
13377
13586
|
const _config = {
|
|
13378
|
-
routeType: "
|
|
13587
|
+
routeType: "element",
|
|
13379
13588
|
window,
|
|
13380
13589
|
...userConfig
|
|
13381
13590
|
};
|
|
13382
|
-
|
|
13383
|
-
|
|
13591
|
+
if (_config.routeType === "path") {
|
|
13592
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13593
|
+
} else if (_config.routeType === "hash") {
|
|
13594
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13595
|
+
} else {
|
|
13596
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13597
|
+
}
|
|
13598
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13384
13599
|
if (route.triggerPoint === "end") {
|
|
13385
13600
|
this.routingProcess(route.path);
|
|
13386
13601
|
}
|
|
@@ -13391,8 +13606,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13391
13606
|
});
|
|
13392
13607
|
this.simpleApplication = new SimpleApplication(option);
|
|
13393
13608
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13394
|
-
if (this.
|
|
13395
|
-
otherInstanceSim.set(Router, this.
|
|
13609
|
+
if (this.router) {
|
|
13610
|
+
otherInstanceSim.set(Router, this.router);
|
|
13396
13611
|
}
|
|
13397
13612
|
this.simpleApplication.run(otherInstanceSim);
|
|
13398
13613
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13404,7 +13619,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13404
13619
|
}
|
|
13405
13620
|
}
|
|
13406
13621
|
if (_config.path) {
|
|
13407
|
-
await this.
|
|
13622
|
+
await this.router?.go(_config.path);
|
|
13408
13623
|
}
|
|
13409
13624
|
}
|
|
13410
13625
|
} catch (e) {
|
|
@@ -13416,7 +13631,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13416
13631
|
this.routerSubscription?.unsubscribe();
|
|
13417
13632
|
}
|
|
13418
13633
|
async routing(path) {
|
|
13419
|
-
await this.
|
|
13634
|
+
await this.router?.go(path);
|
|
13420
13635
|
}
|
|
13421
13636
|
async routingProcess(path) {
|
|
13422
13637
|
await this.simpleApplication?.routing(path);
|
|
@@ -13452,12 +13667,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13452
13667
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13453
13668
|
if (userConfig) {
|
|
13454
13669
|
const _config = {
|
|
13455
|
-
routeType: "
|
|
13670
|
+
routeType: "element",
|
|
13456
13671
|
window,
|
|
13457
13672
|
...userConfig
|
|
13458
13673
|
};
|
|
13459
|
-
|
|
13460
|
-
|
|
13674
|
+
if (_config.routeType === "path") {
|
|
13675
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13676
|
+
} else if (_config.routeType === "hash") {
|
|
13677
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13678
|
+
} else {
|
|
13679
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13680
|
+
}
|
|
13681
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13461
13682
|
if (route.triggerPoint === "end") {
|
|
13462
13683
|
this.routingProcess(route.path);
|
|
13463
13684
|
}
|
|
@@ -13468,8 +13689,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13468
13689
|
});
|
|
13469
13690
|
this.simpleApplication = new SimpleApplication(option);
|
|
13470
13691
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13471
|
-
if (this.
|
|
13472
|
-
otherInstanceSim.set(Router, this.
|
|
13692
|
+
if (this.router) {
|
|
13693
|
+
otherInstanceSim.set(Router, this.router);
|
|
13473
13694
|
}
|
|
13474
13695
|
this.simpleApplication.run(otherInstanceSim);
|
|
13475
13696
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13481,7 +13702,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13481
13702
|
}
|
|
13482
13703
|
}
|
|
13483
13704
|
if (_config.path) {
|
|
13484
|
-
await this.
|
|
13705
|
+
await this.router?.go(_config.path);
|
|
13485
13706
|
}
|
|
13486
13707
|
}
|
|
13487
13708
|
} catch (e) {
|
|
@@ -13493,7 +13714,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13493
13714
|
this.routerSubscription?.unsubscribe();
|
|
13494
13715
|
}
|
|
13495
13716
|
async routing(path) {
|
|
13496
|
-
await this.
|
|
13717
|
+
await this.router?.go(path);
|
|
13497
13718
|
}
|
|
13498
13719
|
async routingProcess(path) {
|
|
13499
13720
|
await this.simpleApplication?.routing(path);
|
|
@@ -13529,12 +13750,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13529
13750
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13530
13751
|
if (userConfig) {
|
|
13531
13752
|
const _config = {
|
|
13532
|
-
routeType: "
|
|
13753
|
+
routeType: "element",
|
|
13533
13754
|
window,
|
|
13534
13755
|
...userConfig
|
|
13535
13756
|
};
|
|
13536
|
-
|
|
13537
|
-
|
|
13757
|
+
if (_config.routeType === "path") {
|
|
13758
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13759
|
+
} else if (_config.routeType === "hash") {
|
|
13760
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13761
|
+
} else {
|
|
13762
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13763
|
+
}
|
|
13764
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13538
13765
|
if (route.triggerPoint === "end") {
|
|
13539
13766
|
this.routingProcess(route.path);
|
|
13540
13767
|
}
|
|
@@ -13545,8 +13772,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13545
13772
|
});
|
|
13546
13773
|
this.simpleApplication = new SimpleApplication(option);
|
|
13547
13774
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13548
|
-
if (this.
|
|
13549
|
-
otherInstanceSim.set(Router, this.
|
|
13775
|
+
if (this.router) {
|
|
13776
|
+
otherInstanceSim.set(Router, this.router);
|
|
13550
13777
|
}
|
|
13551
13778
|
this.simpleApplication.run(otherInstanceSim);
|
|
13552
13779
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13558,7 +13785,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13558
13785
|
}
|
|
13559
13786
|
}
|
|
13560
13787
|
if (_config.path) {
|
|
13561
|
-
await this.
|
|
13788
|
+
await this.router?.go(_config.path);
|
|
13562
13789
|
}
|
|
13563
13790
|
}
|
|
13564
13791
|
} catch (e) {
|
|
@@ -13570,7 +13797,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13570
13797
|
this.routerSubscription?.unsubscribe();
|
|
13571
13798
|
}
|
|
13572
13799
|
async routing(path) {
|
|
13573
|
-
await this.
|
|
13800
|
+
await this.router?.go(path);
|
|
13574
13801
|
}
|
|
13575
13802
|
async routingProcess(path) {
|
|
13576
13803
|
await this.simpleApplication?.routing(path);
|
|
@@ -13606,12 +13833,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13606
13833
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13607
13834
|
if (userConfig) {
|
|
13608
13835
|
const _config = {
|
|
13609
|
-
routeType: "
|
|
13836
|
+
routeType: "element",
|
|
13610
13837
|
window,
|
|
13611
13838
|
...userConfig
|
|
13612
13839
|
};
|
|
13613
|
-
|
|
13614
|
-
|
|
13840
|
+
if (_config.routeType === "path") {
|
|
13841
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13842
|
+
} else if (_config.routeType === "hash") {
|
|
13843
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13844
|
+
} else {
|
|
13845
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13846
|
+
}
|
|
13847
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13615
13848
|
if (route.triggerPoint === "end") {
|
|
13616
13849
|
this.routingProcess(route.path);
|
|
13617
13850
|
}
|
|
@@ -13622,8 +13855,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13622
13855
|
});
|
|
13623
13856
|
this.simpleApplication = new SimpleApplication(option);
|
|
13624
13857
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13625
|
-
if (this.
|
|
13626
|
-
otherInstanceSim.set(Router, this.
|
|
13858
|
+
if (this.router) {
|
|
13859
|
+
otherInstanceSim.set(Router, this.router);
|
|
13627
13860
|
}
|
|
13628
13861
|
this.simpleApplication.run(otherInstanceSim);
|
|
13629
13862
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13635,7 +13868,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13635
13868
|
}
|
|
13636
13869
|
}
|
|
13637
13870
|
if (_config.path) {
|
|
13638
|
-
await this.
|
|
13871
|
+
await this.router?.go(_config.path);
|
|
13639
13872
|
}
|
|
13640
13873
|
}
|
|
13641
13874
|
} catch (e) {
|
|
@@ -13647,7 +13880,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13647
13880
|
this.routerSubscription?.unsubscribe();
|
|
13648
13881
|
}
|
|
13649
13882
|
async routing(path) {
|
|
13650
|
-
await this.
|
|
13883
|
+
await this.router?.go(path);
|
|
13651
13884
|
}
|
|
13652
13885
|
async routingProcess(path) {
|
|
13653
13886
|
await this.simpleApplication?.routing(path);
|
|
@@ -13683,12 +13916,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13683
13916
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13684
13917
|
if (userConfig) {
|
|
13685
13918
|
const _config = {
|
|
13686
|
-
routeType: "
|
|
13919
|
+
routeType: "element",
|
|
13687
13920
|
window,
|
|
13688
13921
|
...userConfig
|
|
13689
13922
|
};
|
|
13690
|
-
|
|
13691
|
-
|
|
13923
|
+
if (_config.routeType === "path") {
|
|
13924
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13925
|
+
} else if (_config.routeType === "hash") {
|
|
13926
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13927
|
+
} else {
|
|
13928
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13929
|
+
}
|
|
13930
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13692
13931
|
if (route.triggerPoint === "end") {
|
|
13693
13932
|
this.routingProcess(route.path);
|
|
13694
13933
|
}
|
|
@@ -13699,8 +13938,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13699
13938
|
});
|
|
13700
13939
|
this.simpleApplication = new SimpleApplication(option);
|
|
13701
13940
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13702
|
-
if (this.
|
|
13703
|
-
otherInstanceSim.set(Router, this.
|
|
13941
|
+
if (this.router) {
|
|
13942
|
+
otherInstanceSim.set(Router, this.router);
|
|
13704
13943
|
}
|
|
13705
13944
|
this.simpleApplication.run(otherInstanceSim);
|
|
13706
13945
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13712,7 +13951,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13712
13951
|
}
|
|
13713
13952
|
}
|
|
13714
13953
|
if (_config.path) {
|
|
13715
|
-
await this.
|
|
13954
|
+
await this.router?.go(_config.path);
|
|
13716
13955
|
}
|
|
13717
13956
|
}
|
|
13718
13957
|
} catch (e) {
|
|
@@ -13724,7 +13963,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13724
13963
|
this.routerSubscription?.unsubscribe();
|
|
13725
13964
|
}
|
|
13726
13965
|
async routing(path) {
|
|
13727
|
-
await this.
|
|
13966
|
+
await this.router?.go(path);
|
|
13728
13967
|
}
|
|
13729
13968
|
async routingProcess(path) {
|
|
13730
13969
|
await this.simpleApplication?.routing(path);
|
|
@@ -13760,12 +13999,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13760
13999
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13761
14000
|
if (userConfig) {
|
|
13762
14001
|
const _config = {
|
|
13763
|
-
routeType: "
|
|
14002
|
+
routeType: "element",
|
|
13764
14003
|
window,
|
|
13765
14004
|
...userConfig
|
|
13766
14005
|
};
|
|
13767
|
-
|
|
13768
|
-
|
|
14006
|
+
if (_config.routeType === "path") {
|
|
14007
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14008
|
+
} else if (_config.routeType === "hash") {
|
|
14009
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14010
|
+
} else {
|
|
14011
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14012
|
+
}
|
|
14013
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13769
14014
|
if (route.triggerPoint === "end") {
|
|
13770
14015
|
this.routingProcess(route.path);
|
|
13771
14016
|
}
|
|
@@ -13776,8 +14021,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13776
14021
|
});
|
|
13777
14022
|
this.simpleApplication = new SimpleApplication(option);
|
|
13778
14023
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13779
|
-
if (this.
|
|
13780
|
-
otherInstanceSim.set(Router, this.
|
|
14024
|
+
if (this.router) {
|
|
14025
|
+
otherInstanceSim.set(Router, this.router);
|
|
13781
14026
|
}
|
|
13782
14027
|
this.simpleApplication.run(otherInstanceSim);
|
|
13783
14028
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13789,7 +14034,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13789
14034
|
}
|
|
13790
14035
|
}
|
|
13791
14036
|
if (_config.path) {
|
|
13792
|
-
await this.
|
|
14037
|
+
await this.router?.go(_config.path);
|
|
13793
14038
|
}
|
|
13794
14039
|
}
|
|
13795
14040
|
} catch (e) {
|
|
@@ -13801,7 +14046,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13801
14046
|
this.routerSubscription?.unsubscribe();
|
|
13802
14047
|
}
|
|
13803
14048
|
async routing(path) {
|
|
13804
|
-
await this.
|
|
14049
|
+
await this.router?.go(path);
|
|
13805
14050
|
}
|
|
13806
14051
|
async routingProcess(path) {
|
|
13807
14052
|
await this.simpleApplication?.routing(path);
|
|
@@ -13837,12 +14082,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13837
14082
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13838
14083
|
if (userConfig) {
|
|
13839
14084
|
const _config = {
|
|
13840
|
-
routeType: "
|
|
14085
|
+
routeType: "element",
|
|
13841
14086
|
window,
|
|
13842
14087
|
...userConfig
|
|
13843
14088
|
};
|
|
13844
|
-
|
|
13845
|
-
|
|
14089
|
+
if (_config.routeType === "path") {
|
|
14090
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14091
|
+
} else if (_config.routeType === "hash") {
|
|
14092
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14093
|
+
} else {
|
|
14094
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14095
|
+
}
|
|
14096
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13846
14097
|
if (route.triggerPoint === "end") {
|
|
13847
14098
|
this.routingProcess(route.path);
|
|
13848
14099
|
}
|
|
@@ -13853,8 +14104,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13853
14104
|
});
|
|
13854
14105
|
this.simpleApplication = new SimpleApplication(option);
|
|
13855
14106
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13856
|
-
if (this.
|
|
13857
|
-
otherInstanceSim.set(Router, this.
|
|
14107
|
+
if (this.router) {
|
|
14108
|
+
otherInstanceSim.set(Router, this.router);
|
|
13858
14109
|
}
|
|
13859
14110
|
this.simpleApplication.run(otherInstanceSim);
|
|
13860
14111
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13866,7 +14117,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13866
14117
|
}
|
|
13867
14118
|
}
|
|
13868
14119
|
if (_config.path) {
|
|
13869
|
-
await this.
|
|
14120
|
+
await this.router?.go(_config.path);
|
|
13870
14121
|
}
|
|
13871
14122
|
}
|
|
13872
14123
|
} catch (e) {
|
|
@@ -13878,7 +14129,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13878
14129
|
this.routerSubscription?.unsubscribe();
|
|
13879
14130
|
}
|
|
13880
14131
|
async routing(path) {
|
|
13881
|
-
await this.
|
|
14132
|
+
await this.router?.go(path);
|
|
13882
14133
|
}
|
|
13883
14134
|
async routingProcess(path) {
|
|
13884
14135
|
await this.simpleApplication?.routing(path);
|
|
@@ -13914,12 +14165,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13914
14165
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13915
14166
|
if (userConfig) {
|
|
13916
14167
|
const _config = {
|
|
13917
|
-
routeType: "
|
|
14168
|
+
routeType: "element",
|
|
13918
14169
|
window,
|
|
13919
14170
|
...userConfig
|
|
13920
14171
|
};
|
|
13921
|
-
|
|
13922
|
-
|
|
14172
|
+
if (_config.routeType === "path") {
|
|
14173
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14174
|
+
} else if (_config.routeType === "hash") {
|
|
14175
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14176
|
+
} else {
|
|
14177
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14178
|
+
}
|
|
14179
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13923
14180
|
if (route.triggerPoint === "end") {
|
|
13924
14181
|
this.routingProcess(route.path);
|
|
13925
14182
|
}
|
|
@@ -13930,8 +14187,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13930
14187
|
});
|
|
13931
14188
|
this.simpleApplication = new SimpleApplication(option);
|
|
13932
14189
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13933
|
-
if (this.
|
|
13934
|
-
otherInstanceSim.set(Router, this.
|
|
14190
|
+
if (this.router) {
|
|
14191
|
+
otherInstanceSim.set(Router, this.router);
|
|
13935
14192
|
}
|
|
13936
14193
|
this.simpleApplication.run(otherInstanceSim);
|
|
13937
14194
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13943,7 +14200,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13943
14200
|
}
|
|
13944
14201
|
}
|
|
13945
14202
|
if (_config.path) {
|
|
13946
|
-
await this.
|
|
14203
|
+
await this.router?.go(_config.path);
|
|
13947
14204
|
}
|
|
13948
14205
|
}
|
|
13949
14206
|
} catch (e) {
|
|
@@ -13955,7 +14212,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13955
14212
|
this.routerSubscription?.unsubscribe();
|
|
13956
14213
|
}
|
|
13957
14214
|
async routing(path) {
|
|
13958
|
-
await this.
|
|
14215
|
+
await this.router?.go(path);
|
|
13959
14216
|
}
|
|
13960
14217
|
async routingProcess(path) {
|
|
13961
14218
|
await this.simpleApplication?.routing(path);
|
|
@@ -13991,12 +14248,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
13991
14248
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13992
14249
|
if (userConfig) {
|
|
13993
14250
|
const _config = {
|
|
13994
|
-
routeType: "
|
|
14251
|
+
routeType: "element",
|
|
13995
14252
|
window,
|
|
13996
14253
|
...userConfig
|
|
13997
14254
|
};
|
|
13998
|
-
|
|
13999
|
-
|
|
14255
|
+
if (_config.routeType === "path") {
|
|
14256
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14257
|
+
} else if (_config.routeType === "hash") {
|
|
14258
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14259
|
+
} else {
|
|
14260
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14261
|
+
}
|
|
14262
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14000
14263
|
if (route.triggerPoint === "end") {
|
|
14001
14264
|
this.routingProcess(route.path);
|
|
14002
14265
|
}
|
|
@@ -14007,8 +14270,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14007
14270
|
});
|
|
14008
14271
|
this.simpleApplication = new SimpleApplication(option);
|
|
14009
14272
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14010
|
-
if (this.
|
|
14011
|
-
otherInstanceSim.set(Router, this.
|
|
14273
|
+
if (this.router) {
|
|
14274
|
+
otherInstanceSim.set(Router, this.router);
|
|
14012
14275
|
}
|
|
14013
14276
|
this.simpleApplication.run(otherInstanceSim);
|
|
14014
14277
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14020,7 +14283,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14020
14283
|
}
|
|
14021
14284
|
}
|
|
14022
14285
|
if (_config.path) {
|
|
14023
|
-
await this.
|
|
14286
|
+
await this.router?.go(_config.path);
|
|
14024
14287
|
}
|
|
14025
14288
|
}
|
|
14026
14289
|
} catch (e) {
|
|
@@ -14032,7 +14295,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14032
14295
|
this.routerSubscription?.unsubscribe();
|
|
14033
14296
|
}
|
|
14034
14297
|
async routing(path) {
|
|
14035
|
-
await this.
|
|
14298
|
+
await this.router?.go(path);
|
|
14036
14299
|
}
|
|
14037
14300
|
async routingProcess(path) {
|
|
14038
14301
|
await this.simpleApplication?.routing(path);
|
|
@@ -14068,12 +14331,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14068
14331
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14069
14332
|
if (userConfig) {
|
|
14070
14333
|
const _config = {
|
|
14071
|
-
routeType: "
|
|
14334
|
+
routeType: "element",
|
|
14072
14335
|
window,
|
|
14073
14336
|
...userConfig
|
|
14074
14337
|
};
|
|
14075
|
-
|
|
14076
|
-
|
|
14338
|
+
if (_config.routeType === "path") {
|
|
14339
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14340
|
+
} else if (_config.routeType === "hash") {
|
|
14341
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14342
|
+
} else {
|
|
14343
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14344
|
+
}
|
|
14345
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14077
14346
|
if (route.triggerPoint === "end") {
|
|
14078
14347
|
this.routingProcess(route.path);
|
|
14079
14348
|
}
|
|
@@ -14084,8 +14353,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14084
14353
|
});
|
|
14085
14354
|
this.simpleApplication = new SimpleApplication(option);
|
|
14086
14355
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14087
|
-
if (this.
|
|
14088
|
-
otherInstanceSim.set(Router, this.
|
|
14356
|
+
if (this.router) {
|
|
14357
|
+
otherInstanceSim.set(Router, this.router);
|
|
14089
14358
|
}
|
|
14090
14359
|
this.simpleApplication.run(otherInstanceSim);
|
|
14091
14360
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14097,7 +14366,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14097
14366
|
}
|
|
14098
14367
|
}
|
|
14099
14368
|
if (_config.path) {
|
|
14100
|
-
await this.
|
|
14369
|
+
await this.router?.go(_config.path);
|
|
14101
14370
|
}
|
|
14102
14371
|
}
|
|
14103
14372
|
} catch (e) {
|
|
@@ -14109,7 +14378,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14109
14378
|
this.routerSubscription?.unsubscribe();
|
|
14110
14379
|
}
|
|
14111
14380
|
async routing(path) {
|
|
14112
|
-
await this.
|
|
14381
|
+
await this.router?.go(path);
|
|
14113
14382
|
}
|
|
14114
14383
|
async routingProcess(path) {
|
|
14115
14384
|
await this.simpleApplication?.routing(path);
|
|
@@ -14145,12 +14414,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14145
14414
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14146
14415
|
if (userConfig) {
|
|
14147
14416
|
const _config = {
|
|
14148
|
-
routeType: "
|
|
14417
|
+
routeType: "element",
|
|
14149
14418
|
window,
|
|
14150
14419
|
...userConfig
|
|
14151
14420
|
};
|
|
14152
|
-
|
|
14153
|
-
|
|
14421
|
+
if (_config.routeType === "path") {
|
|
14422
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14423
|
+
} else if (_config.routeType === "hash") {
|
|
14424
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14425
|
+
} else {
|
|
14426
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14427
|
+
}
|
|
14428
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14154
14429
|
if (route.triggerPoint === "end") {
|
|
14155
14430
|
this.routingProcess(route.path);
|
|
14156
14431
|
}
|
|
@@ -14161,8 +14436,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14161
14436
|
});
|
|
14162
14437
|
this.simpleApplication = new SimpleApplication(option);
|
|
14163
14438
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14164
|
-
if (this.
|
|
14165
|
-
otherInstanceSim.set(Router, this.
|
|
14439
|
+
if (this.router) {
|
|
14440
|
+
otherInstanceSim.set(Router, this.router);
|
|
14166
14441
|
}
|
|
14167
14442
|
this.simpleApplication.run(otherInstanceSim);
|
|
14168
14443
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14174,7 +14449,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14174
14449
|
}
|
|
14175
14450
|
}
|
|
14176
14451
|
if (_config.path) {
|
|
14177
|
-
await this.
|
|
14452
|
+
await this.router?.go(_config.path);
|
|
14178
14453
|
}
|
|
14179
14454
|
}
|
|
14180
14455
|
} catch (e) {
|
|
@@ -14186,7 +14461,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14186
14461
|
this.routerSubscription?.unsubscribe();
|
|
14187
14462
|
}
|
|
14188
14463
|
async routing(path) {
|
|
14189
|
-
await this.
|
|
14464
|
+
await this.router?.go(path);
|
|
14190
14465
|
}
|
|
14191
14466
|
async routingProcess(path) {
|
|
14192
14467
|
await this.simpleApplication?.routing(path);
|
|
@@ -14222,12 +14497,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14222
14497
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14223
14498
|
if (userConfig) {
|
|
14224
14499
|
const _config = {
|
|
14225
|
-
routeType: "
|
|
14500
|
+
routeType: "element",
|
|
14226
14501
|
window,
|
|
14227
14502
|
...userConfig
|
|
14228
14503
|
};
|
|
14229
|
-
|
|
14230
|
-
|
|
14504
|
+
if (_config.routeType === "path") {
|
|
14505
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14506
|
+
} else if (_config.routeType === "hash") {
|
|
14507
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14508
|
+
} else {
|
|
14509
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14510
|
+
}
|
|
14511
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14231
14512
|
if (route.triggerPoint === "end") {
|
|
14232
14513
|
this.routingProcess(route.path);
|
|
14233
14514
|
}
|
|
@@ -14238,8 +14519,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14238
14519
|
});
|
|
14239
14520
|
this.simpleApplication = new SimpleApplication(option);
|
|
14240
14521
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14241
|
-
if (this.
|
|
14242
|
-
otherInstanceSim.set(Router, this.
|
|
14522
|
+
if (this.router) {
|
|
14523
|
+
otherInstanceSim.set(Router, this.router);
|
|
14243
14524
|
}
|
|
14244
14525
|
this.simpleApplication.run(otherInstanceSim);
|
|
14245
14526
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14251,7 +14532,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14251
14532
|
}
|
|
14252
14533
|
}
|
|
14253
14534
|
if (_config.path) {
|
|
14254
|
-
await this.
|
|
14535
|
+
await this.router?.go(_config.path);
|
|
14255
14536
|
}
|
|
14256
14537
|
}
|
|
14257
14538
|
} catch (e) {
|
|
@@ -14263,7 +14544,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14263
14544
|
this.routerSubscription?.unsubscribe();
|
|
14264
14545
|
}
|
|
14265
14546
|
async routing(path) {
|
|
14266
|
-
await this.
|
|
14547
|
+
await this.router?.go(path);
|
|
14267
14548
|
}
|
|
14268
14549
|
async routingProcess(path) {
|
|
14269
14550
|
await this.simpleApplication?.routing(path);
|
|
@@ -14299,12 +14580,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14299
14580
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14300
14581
|
if (userConfig) {
|
|
14301
14582
|
const _config = {
|
|
14302
|
-
routeType: "
|
|
14583
|
+
routeType: "element",
|
|
14303
14584
|
window,
|
|
14304
14585
|
...userConfig
|
|
14305
14586
|
};
|
|
14306
|
-
|
|
14307
|
-
|
|
14587
|
+
if (_config.routeType === "path") {
|
|
14588
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14589
|
+
} else if (_config.routeType === "hash") {
|
|
14590
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14591
|
+
} else {
|
|
14592
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14593
|
+
}
|
|
14594
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14308
14595
|
if (route.triggerPoint === "end") {
|
|
14309
14596
|
this.routingProcess(route.path);
|
|
14310
14597
|
}
|
|
@@ -14315,8 +14602,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14315
14602
|
});
|
|
14316
14603
|
this.simpleApplication = new SimpleApplication(option);
|
|
14317
14604
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14318
|
-
if (this.
|
|
14319
|
-
otherInstanceSim.set(Router, this.
|
|
14605
|
+
if (this.router) {
|
|
14606
|
+
otherInstanceSim.set(Router, this.router);
|
|
14320
14607
|
}
|
|
14321
14608
|
this.simpleApplication.run(otherInstanceSim);
|
|
14322
14609
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14328,7 +14615,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14328
14615
|
}
|
|
14329
14616
|
}
|
|
14330
14617
|
if (_config.path) {
|
|
14331
|
-
await this.
|
|
14618
|
+
await this.router?.go(_config.path);
|
|
14332
14619
|
}
|
|
14333
14620
|
}
|
|
14334
14621
|
} catch (e) {
|
|
@@ -14340,7 +14627,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14340
14627
|
this.routerSubscription?.unsubscribe();
|
|
14341
14628
|
}
|
|
14342
14629
|
async routing(path) {
|
|
14343
|
-
await this.
|
|
14630
|
+
await this.router?.go(path);
|
|
14344
14631
|
}
|
|
14345
14632
|
async routingProcess(path) {
|
|
14346
14633
|
await this.simpleApplication?.routing(path);
|
|
@@ -14376,12 +14663,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14376
14663
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14377
14664
|
if (userConfig) {
|
|
14378
14665
|
const _config = {
|
|
14379
|
-
routeType: "
|
|
14666
|
+
routeType: "element",
|
|
14380
14667
|
window,
|
|
14381
14668
|
...userConfig
|
|
14382
14669
|
};
|
|
14383
|
-
|
|
14384
|
-
|
|
14670
|
+
if (_config.routeType === "path") {
|
|
14671
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14672
|
+
} else if (_config.routeType === "hash") {
|
|
14673
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14674
|
+
} else {
|
|
14675
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14676
|
+
}
|
|
14677
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14385
14678
|
if (route.triggerPoint === "end") {
|
|
14386
14679
|
this.routingProcess(route.path);
|
|
14387
14680
|
}
|
|
@@ -14392,8 +14685,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14392
14685
|
});
|
|
14393
14686
|
this.simpleApplication = new SimpleApplication(option);
|
|
14394
14687
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14395
|
-
if (this.
|
|
14396
|
-
otherInstanceSim.set(Router, this.
|
|
14688
|
+
if (this.router) {
|
|
14689
|
+
otherInstanceSim.set(Router, this.router);
|
|
14397
14690
|
}
|
|
14398
14691
|
this.simpleApplication.run(otherInstanceSim);
|
|
14399
14692
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14405,7 +14698,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14405
14698
|
}
|
|
14406
14699
|
}
|
|
14407
14700
|
if (_config.path) {
|
|
14408
|
-
await this.
|
|
14701
|
+
await this.router?.go(_config.path);
|
|
14409
14702
|
}
|
|
14410
14703
|
}
|
|
14411
14704
|
} catch (e) {
|
|
@@ -14417,7 +14710,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14417
14710
|
this.routerSubscription?.unsubscribe();
|
|
14418
14711
|
}
|
|
14419
14712
|
async routing(path) {
|
|
14420
|
-
await this.
|
|
14713
|
+
await this.router?.go(path);
|
|
14421
14714
|
}
|
|
14422
14715
|
async routingProcess(path) {
|
|
14423
14716
|
await this.simpleApplication?.routing(path);
|
|
@@ -14453,12 +14746,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14453
14746
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14454
14747
|
if (userConfig) {
|
|
14455
14748
|
const _config = {
|
|
14456
|
-
routeType: "
|
|
14749
|
+
routeType: "element",
|
|
14457
14750
|
window,
|
|
14458
14751
|
...userConfig
|
|
14459
14752
|
};
|
|
14460
|
-
|
|
14461
|
-
|
|
14753
|
+
if (_config.routeType === "path") {
|
|
14754
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14755
|
+
} else if (_config.routeType === "hash") {
|
|
14756
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14757
|
+
} else {
|
|
14758
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14759
|
+
}
|
|
14760
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14462
14761
|
if (route.triggerPoint === "end") {
|
|
14463
14762
|
this.routingProcess(route.path);
|
|
14464
14763
|
}
|
|
@@ -14469,8 +14768,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14469
14768
|
});
|
|
14470
14769
|
this.simpleApplication = new SimpleApplication(option);
|
|
14471
14770
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14472
|
-
if (this.
|
|
14473
|
-
otherInstanceSim.set(Router, this.
|
|
14771
|
+
if (this.router) {
|
|
14772
|
+
otherInstanceSim.set(Router, this.router);
|
|
14474
14773
|
}
|
|
14475
14774
|
this.simpleApplication.run(otherInstanceSim);
|
|
14476
14775
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14482,7 +14781,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14482
14781
|
}
|
|
14483
14782
|
}
|
|
14484
14783
|
if (_config.path) {
|
|
14485
|
-
await this.
|
|
14784
|
+
await this.router?.go(_config.path);
|
|
14486
14785
|
}
|
|
14487
14786
|
}
|
|
14488
14787
|
} catch (e) {
|
|
@@ -14494,7 +14793,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14494
14793
|
this.routerSubscription?.unsubscribe();
|
|
14495
14794
|
}
|
|
14496
14795
|
async routing(path) {
|
|
14497
|
-
await this.
|
|
14796
|
+
await this.router?.go(path);
|
|
14498
14797
|
}
|
|
14499
14798
|
async routingProcess(path) {
|
|
14500
14799
|
await this.simpleApplication?.routing(path);
|
|
@@ -14530,12 +14829,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14530
14829
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14531
14830
|
if (userConfig) {
|
|
14532
14831
|
const _config = {
|
|
14533
|
-
routeType: "
|
|
14832
|
+
routeType: "element",
|
|
14534
14833
|
window,
|
|
14535
14834
|
...userConfig
|
|
14536
14835
|
};
|
|
14537
|
-
|
|
14538
|
-
|
|
14836
|
+
if (_config.routeType === "path") {
|
|
14837
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14838
|
+
} else if (_config.routeType === "hash") {
|
|
14839
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14840
|
+
} else {
|
|
14841
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14842
|
+
}
|
|
14843
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14539
14844
|
if (route.triggerPoint === "end") {
|
|
14540
14845
|
this.routingProcess(route.path);
|
|
14541
14846
|
}
|
|
@@ -14546,8 +14851,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14546
14851
|
});
|
|
14547
14852
|
this.simpleApplication = new SimpleApplication(option);
|
|
14548
14853
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14549
|
-
if (this.
|
|
14550
|
-
otherInstanceSim.set(Router, this.
|
|
14854
|
+
if (this.router) {
|
|
14855
|
+
otherInstanceSim.set(Router, this.router);
|
|
14551
14856
|
}
|
|
14552
14857
|
this.simpleApplication.run(otherInstanceSim);
|
|
14553
14858
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14559,7 +14864,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14559
14864
|
}
|
|
14560
14865
|
}
|
|
14561
14866
|
if (_config.path) {
|
|
14562
|
-
await this.
|
|
14867
|
+
await this.router?.go(_config.path);
|
|
14563
14868
|
}
|
|
14564
14869
|
}
|
|
14565
14870
|
} catch (e) {
|
|
@@ -14571,7 +14876,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14571
14876
|
this.routerSubscription?.unsubscribe();
|
|
14572
14877
|
}
|
|
14573
14878
|
async routing(path) {
|
|
14574
|
-
await this.
|
|
14879
|
+
await this.router?.go(path);
|
|
14575
14880
|
}
|
|
14576
14881
|
async routingProcess(path) {
|
|
14577
14882
|
await this.simpleApplication?.routing(path);
|
|
@@ -14607,12 +14912,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14607
14912
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14608
14913
|
if (userConfig) {
|
|
14609
14914
|
const _config = {
|
|
14610
|
-
routeType: "
|
|
14915
|
+
routeType: "element",
|
|
14611
14916
|
window,
|
|
14612
14917
|
...userConfig
|
|
14613
14918
|
};
|
|
14614
|
-
|
|
14615
|
-
|
|
14919
|
+
if (_config.routeType === "path") {
|
|
14920
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14921
|
+
} else if (_config.routeType === "hash") {
|
|
14922
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14923
|
+
} else {
|
|
14924
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14925
|
+
}
|
|
14926
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14616
14927
|
if (route.triggerPoint === "end") {
|
|
14617
14928
|
this.routingProcess(route.path);
|
|
14618
14929
|
}
|
|
@@ -14623,8 +14934,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14623
14934
|
});
|
|
14624
14935
|
this.simpleApplication = new SimpleApplication(option);
|
|
14625
14936
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14626
|
-
if (this.
|
|
14627
|
-
otherInstanceSim.set(Router, this.
|
|
14937
|
+
if (this.router) {
|
|
14938
|
+
otherInstanceSim.set(Router, this.router);
|
|
14628
14939
|
}
|
|
14629
14940
|
this.simpleApplication.run(otherInstanceSim);
|
|
14630
14941
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14636,7 +14947,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14636
14947
|
}
|
|
14637
14948
|
}
|
|
14638
14949
|
if (_config.path) {
|
|
14639
|
-
await this.
|
|
14950
|
+
await this.router?.go(_config.path);
|
|
14640
14951
|
}
|
|
14641
14952
|
}
|
|
14642
14953
|
} catch (e) {
|
|
@@ -14648,7 +14959,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14648
14959
|
this.routerSubscription?.unsubscribe();
|
|
14649
14960
|
}
|
|
14650
14961
|
async routing(path) {
|
|
14651
|
-
await this.
|
|
14962
|
+
await this.router?.go(path);
|
|
14652
14963
|
}
|
|
14653
14964
|
async routingProcess(path) {
|
|
14654
14965
|
await this.simpleApplication?.routing(path);
|
|
@@ -14684,12 +14995,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14684
14995
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14685
14996
|
if (userConfig) {
|
|
14686
14997
|
const _config = {
|
|
14687
|
-
routeType: "
|
|
14998
|
+
routeType: "element",
|
|
14688
14999
|
window,
|
|
14689
15000
|
...userConfig
|
|
14690
15001
|
};
|
|
14691
|
-
|
|
14692
|
-
|
|
15002
|
+
if (_config.routeType === "path") {
|
|
15003
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15004
|
+
} else if (_config.routeType === "hash") {
|
|
15005
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15006
|
+
} else {
|
|
15007
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15008
|
+
}
|
|
15009
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14693
15010
|
if (route.triggerPoint === "end") {
|
|
14694
15011
|
this.routingProcess(route.path);
|
|
14695
15012
|
}
|
|
@@ -14700,8 +15017,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14700
15017
|
});
|
|
14701
15018
|
this.simpleApplication = new SimpleApplication(option);
|
|
14702
15019
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14703
|
-
if (this.
|
|
14704
|
-
otherInstanceSim.set(Router, this.
|
|
15020
|
+
if (this.router) {
|
|
15021
|
+
otherInstanceSim.set(Router, this.router);
|
|
14705
15022
|
}
|
|
14706
15023
|
this.simpleApplication.run(otherInstanceSim);
|
|
14707
15024
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14713,7 +15030,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14713
15030
|
}
|
|
14714
15031
|
}
|
|
14715
15032
|
if (_config.path) {
|
|
14716
|
-
await this.
|
|
15033
|
+
await this.router?.go(_config.path);
|
|
14717
15034
|
}
|
|
14718
15035
|
}
|
|
14719
15036
|
} catch (e) {
|
|
@@ -14725,7 +15042,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14725
15042
|
this.routerSubscription?.unsubscribe();
|
|
14726
15043
|
}
|
|
14727
15044
|
async routing(path) {
|
|
14728
|
-
await this.
|
|
15045
|
+
await this.router?.go(path);
|
|
14729
15046
|
}
|
|
14730
15047
|
async routingProcess(path) {
|
|
14731
15048
|
await this.simpleApplication?.routing(path);
|
|
@@ -14761,12 +15078,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14761
15078
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14762
15079
|
if (userConfig) {
|
|
14763
15080
|
const _config = {
|
|
14764
|
-
routeType: "
|
|
15081
|
+
routeType: "element",
|
|
14765
15082
|
window,
|
|
14766
15083
|
...userConfig
|
|
14767
15084
|
};
|
|
14768
|
-
|
|
14769
|
-
|
|
15085
|
+
if (_config.routeType === "path") {
|
|
15086
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15087
|
+
} else if (_config.routeType === "hash") {
|
|
15088
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15089
|
+
} else {
|
|
15090
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15091
|
+
}
|
|
15092
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14770
15093
|
if (route.triggerPoint === "end") {
|
|
14771
15094
|
this.routingProcess(route.path);
|
|
14772
15095
|
}
|
|
@@ -14777,8 +15100,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14777
15100
|
});
|
|
14778
15101
|
this.simpleApplication = new SimpleApplication(option);
|
|
14779
15102
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14780
|
-
if (this.
|
|
14781
|
-
otherInstanceSim.set(Router, this.
|
|
15103
|
+
if (this.router) {
|
|
15104
|
+
otherInstanceSim.set(Router, this.router);
|
|
14782
15105
|
}
|
|
14783
15106
|
this.simpleApplication.run(otherInstanceSim);
|
|
14784
15107
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14790,7 +15113,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14790
15113
|
}
|
|
14791
15114
|
}
|
|
14792
15115
|
if (_config.path) {
|
|
14793
|
-
await this.
|
|
15116
|
+
await this.router?.go(_config.path);
|
|
14794
15117
|
}
|
|
14795
15118
|
}
|
|
14796
15119
|
} catch (e) {
|
|
@@ -14802,7 +15125,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14802
15125
|
this.routerSubscription?.unsubscribe();
|
|
14803
15126
|
}
|
|
14804
15127
|
async routing(path) {
|
|
14805
|
-
await this.
|
|
15128
|
+
await this.router?.go(path);
|
|
14806
15129
|
}
|
|
14807
15130
|
async routingProcess(path) {
|
|
14808
15131
|
await this.simpleApplication?.routing(path);
|
|
@@ -14838,12 +15161,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14838
15161
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14839
15162
|
if (userConfig) {
|
|
14840
15163
|
const _config = {
|
|
14841
|
-
routeType: "
|
|
15164
|
+
routeType: "element",
|
|
14842
15165
|
window,
|
|
14843
15166
|
...userConfig
|
|
14844
15167
|
};
|
|
14845
|
-
|
|
14846
|
-
|
|
15168
|
+
if (_config.routeType === "path") {
|
|
15169
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15170
|
+
} else if (_config.routeType === "hash") {
|
|
15171
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15172
|
+
} else {
|
|
15173
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15174
|
+
}
|
|
15175
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14847
15176
|
if (route.triggerPoint === "end") {
|
|
14848
15177
|
this.routingProcess(route.path);
|
|
14849
15178
|
}
|
|
@@ -14854,8 +15183,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14854
15183
|
});
|
|
14855
15184
|
this.simpleApplication = new SimpleApplication(option);
|
|
14856
15185
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14857
|
-
if (this.
|
|
14858
|
-
otherInstanceSim.set(Router, this.
|
|
15186
|
+
if (this.router) {
|
|
15187
|
+
otherInstanceSim.set(Router, this.router);
|
|
14859
15188
|
}
|
|
14860
15189
|
this.simpleApplication.run(otherInstanceSim);
|
|
14861
15190
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14867,7 +15196,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14867
15196
|
}
|
|
14868
15197
|
}
|
|
14869
15198
|
if (_config.path) {
|
|
14870
|
-
await this.
|
|
15199
|
+
await this.router?.go(_config.path);
|
|
14871
15200
|
}
|
|
14872
15201
|
}
|
|
14873
15202
|
} catch (e) {
|
|
@@ -14879,7 +15208,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14879
15208
|
this.routerSubscription?.unsubscribe();
|
|
14880
15209
|
}
|
|
14881
15210
|
async routing(path) {
|
|
14882
|
-
await this.
|
|
15211
|
+
await this.router?.go(path);
|
|
14883
15212
|
}
|
|
14884
15213
|
async routingProcess(path) {
|
|
14885
15214
|
await this.simpleApplication?.routing(path);
|
|
@@ -14915,12 +15244,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14915
15244
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14916
15245
|
if (userConfig) {
|
|
14917
15246
|
const _config = {
|
|
14918
|
-
routeType: "
|
|
15247
|
+
routeType: "element",
|
|
14919
15248
|
window,
|
|
14920
15249
|
...userConfig
|
|
14921
15250
|
};
|
|
14922
|
-
|
|
14923
|
-
|
|
15251
|
+
if (_config.routeType === "path") {
|
|
15252
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15253
|
+
} else if (_config.routeType === "hash") {
|
|
15254
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15255
|
+
} else {
|
|
15256
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15257
|
+
}
|
|
15258
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14924
15259
|
if (route.triggerPoint === "end") {
|
|
14925
15260
|
this.routingProcess(route.path);
|
|
14926
15261
|
}
|
|
@@ -14931,8 +15266,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14931
15266
|
});
|
|
14932
15267
|
this.simpleApplication = new SimpleApplication(option);
|
|
14933
15268
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14934
|
-
if (this.
|
|
14935
|
-
otherInstanceSim.set(Router, this.
|
|
15269
|
+
if (this.router) {
|
|
15270
|
+
otherInstanceSim.set(Router, this.router);
|
|
14936
15271
|
}
|
|
14937
15272
|
this.simpleApplication.run(otherInstanceSim);
|
|
14938
15273
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14944,7 +15279,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14944
15279
|
}
|
|
14945
15280
|
}
|
|
14946
15281
|
if (_config.path) {
|
|
14947
|
-
await this.
|
|
15282
|
+
await this.router?.go(_config.path);
|
|
14948
15283
|
}
|
|
14949
15284
|
}
|
|
14950
15285
|
} catch (e) {
|
|
@@ -14956,7 +15291,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14956
15291
|
this.routerSubscription?.unsubscribe();
|
|
14957
15292
|
}
|
|
14958
15293
|
async routing(path) {
|
|
14959
|
-
await this.
|
|
15294
|
+
await this.router?.go(path);
|
|
14960
15295
|
}
|
|
14961
15296
|
async routingProcess(path) {
|
|
14962
15297
|
await this.simpleApplication?.routing(path);
|
|
@@ -14992,12 +15327,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
14992
15327
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14993
15328
|
if (userConfig) {
|
|
14994
15329
|
const _config = {
|
|
14995
|
-
routeType: "
|
|
15330
|
+
routeType: "element",
|
|
14996
15331
|
window,
|
|
14997
15332
|
...userConfig
|
|
14998
15333
|
};
|
|
14999
|
-
|
|
15000
|
-
|
|
15334
|
+
if (_config.routeType === "path") {
|
|
15335
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15336
|
+
} else if (_config.routeType === "hash") {
|
|
15337
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15338
|
+
} else {
|
|
15339
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15340
|
+
}
|
|
15341
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15001
15342
|
if (route.triggerPoint === "end") {
|
|
15002
15343
|
this.routingProcess(route.path);
|
|
15003
15344
|
}
|
|
@@ -15008,8 +15349,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15008
15349
|
});
|
|
15009
15350
|
this.simpleApplication = new SimpleApplication(option);
|
|
15010
15351
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15011
|
-
if (this.
|
|
15012
|
-
otherInstanceSim.set(Router, this.
|
|
15352
|
+
if (this.router) {
|
|
15353
|
+
otherInstanceSim.set(Router, this.router);
|
|
15013
15354
|
}
|
|
15014
15355
|
this.simpleApplication.run(otherInstanceSim);
|
|
15015
15356
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15021,7 +15362,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15021
15362
|
}
|
|
15022
15363
|
}
|
|
15023
15364
|
if (_config.path) {
|
|
15024
|
-
await this.
|
|
15365
|
+
await this.router?.go(_config.path);
|
|
15025
15366
|
}
|
|
15026
15367
|
}
|
|
15027
15368
|
} catch (e) {
|
|
@@ -15033,7 +15374,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15033
15374
|
this.routerSubscription?.unsubscribe();
|
|
15034
15375
|
}
|
|
15035
15376
|
async routing(path) {
|
|
15036
|
-
await this.
|
|
15377
|
+
await this.router?.go(path);
|
|
15037
15378
|
}
|
|
15038
15379
|
async routingProcess(path) {
|
|
15039
15380
|
await this.simpleApplication?.routing(path);
|
|
@@ -15069,12 +15410,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15069
15410
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15070
15411
|
if (userConfig) {
|
|
15071
15412
|
const _config = {
|
|
15072
|
-
routeType: "
|
|
15413
|
+
routeType: "element",
|
|
15073
15414
|
window,
|
|
15074
15415
|
...userConfig
|
|
15075
15416
|
};
|
|
15076
|
-
|
|
15077
|
-
|
|
15417
|
+
if (_config.routeType === "path") {
|
|
15418
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15419
|
+
} else if (_config.routeType === "hash") {
|
|
15420
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15421
|
+
} else {
|
|
15422
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15423
|
+
}
|
|
15424
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15078
15425
|
if (route.triggerPoint === "end") {
|
|
15079
15426
|
this.routingProcess(route.path);
|
|
15080
15427
|
}
|
|
@@ -15085,8 +15432,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15085
15432
|
});
|
|
15086
15433
|
this.simpleApplication = new SimpleApplication(option);
|
|
15087
15434
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15088
|
-
if (this.
|
|
15089
|
-
otherInstanceSim.set(Router, this.
|
|
15435
|
+
if (this.router) {
|
|
15436
|
+
otherInstanceSim.set(Router, this.router);
|
|
15090
15437
|
}
|
|
15091
15438
|
this.simpleApplication.run(otherInstanceSim);
|
|
15092
15439
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15098,7 +15445,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15098
15445
|
}
|
|
15099
15446
|
}
|
|
15100
15447
|
if (_config.path) {
|
|
15101
|
-
await this.
|
|
15448
|
+
await this.router?.go(_config.path);
|
|
15102
15449
|
}
|
|
15103
15450
|
}
|
|
15104
15451
|
} catch (e) {
|
|
@@ -15110,7 +15457,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15110
15457
|
this.routerSubscription?.unsubscribe();
|
|
15111
15458
|
}
|
|
15112
15459
|
async routing(path) {
|
|
15113
|
-
await this.
|
|
15460
|
+
await this.router?.go(path);
|
|
15114
15461
|
}
|
|
15115
15462
|
async routingProcess(path) {
|
|
15116
15463
|
await this.simpleApplication?.routing(path);
|
|
@@ -15146,12 +15493,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15146
15493
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15147
15494
|
if (userConfig) {
|
|
15148
15495
|
const _config = {
|
|
15149
|
-
routeType: "
|
|
15496
|
+
routeType: "element",
|
|
15150
15497
|
window,
|
|
15151
15498
|
...userConfig
|
|
15152
15499
|
};
|
|
15153
|
-
|
|
15154
|
-
|
|
15500
|
+
if (_config.routeType === "path") {
|
|
15501
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15502
|
+
} else if (_config.routeType === "hash") {
|
|
15503
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15504
|
+
} else {
|
|
15505
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15506
|
+
}
|
|
15507
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15155
15508
|
if (route.triggerPoint === "end") {
|
|
15156
15509
|
this.routingProcess(route.path);
|
|
15157
15510
|
}
|
|
@@ -15162,8 +15515,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15162
15515
|
});
|
|
15163
15516
|
this.simpleApplication = new SimpleApplication(option);
|
|
15164
15517
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15165
|
-
if (this.
|
|
15166
|
-
otherInstanceSim.set(Router, this.
|
|
15518
|
+
if (this.router) {
|
|
15519
|
+
otherInstanceSim.set(Router, this.router);
|
|
15167
15520
|
}
|
|
15168
15521
|
this.simpleApplication.run(otherInstanceSim);
|
|
15169
15522
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15175,7 +15528,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15175
15528
|
}
|
|
15176
15529
|
}
|
|
15177
15530
|
if (_config.path) {
|
|
15178
|
-
await this.
|
|
15531
|
+
await this.router?.go(_config.path);
|
|
15179
15532
|
}
|
|
15180
15533
|
}
|
|
15181
15534
|
} catch (e) {
|
|
@@ -15187,7 +15540,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15187
15540
|
this.routerSubscription?.unsubscribe();
|
|
15188
15541
|
}
|
|
15189
15542
|
async routing(path) {
|
|
15190
|
-
await this.
|
|
15543
|
+
await this.router?.go(path);
|
|
15191
15544
|
}
|
|
15192
15545
|
async routingProcess(path) {
|
|
15193
15546
|
await this.simpleApplication?.routing(path);
|
|
@@ -15223,12 +15576,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15223
15576
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15224
15577
|
if (userConfig) {
|
|
15225
15578
|
const _config = {
|
|
15226
|
-
routeType: "
|
|
15579
|
+
routeType: "element",
|
|
15227
15580
|
window,
|
|
15228
15581
|
...userConfig
|
|
15229
15582
|
};
|
|
15230
|
-
|
|
15231
|
-
|
|
15583
|
+
if (_config.routeType === "path") {
|
|
15584
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15585
|
+
} else if (_config.routeType === "hash") {
|
|
15586
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15587
|
+
} else {
|
|
15588
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15589
|
+
}
|
|
15590
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15232
15591
|
if (route.triggerPoint === "end") {
|
|
15233
15592
|
this.routingProcess(route.path);
|
|
15234
15593
|
}
|
|
@@ -15239,8 +15598,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15239
15598
|
});
|
|
15240
15599
|
this.simpleApplication = new SimpleApplication(option);
|
|
15241
15600
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15242
|
-
if (this.
|
|
15243
|
-
otherInstanceSim.set(Router, this.
|
|
15601
|
+
if (this.router) {
|
|
15602
|
+
otherInstanceSim.set(Router, this.router);
|
|
15244
15603
|
}
|
|
15245
15604
|
this.simpleApplication.run(otherInstanceSim);
|
|
15246
15605
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15252,7 +15611,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15252
15611
|
}
|
|
15253
15612
|
}
|
|
15254
15613
|
if (_config.path) {
|
|
15255
|
-
await this.
|
|
15614
|
+
await this.router?.go(_config.path);
|
|
15256
15615
|
}
|
|
15257
15616
|
}
|
|
15258
15617
|
} catch (e) {
|
|
@@ -15264,7 +15623,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15264
15623
|
this.routerSubscription?.unsubscribe();
|
|
15265
15624
|
}
|
|
15266
15625
|
async routing(path) {
|
|
15267
|
-
await this.
|
|
15626
|
+
await this.router?.go(path);
|
|
15268
15627
|
}
|
|
15269
15628
|
async routingProcess(path) {
|
|
15270
15629
|
await this.simpleApplication?.routing(path);
|
|
@@ -15300,12 +15659,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15300
15659
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15301
15660
|
if (userConfig) {
|
|
15302
15661
|
const _config = {
|
|
15303
|
-
routeType: "
|
|
15662
|
+
routeType: "element",
|
|
15304
15663
|
window,
|
|
15305
15664
|
...userConfig
|
|
15306
15665
|
};
|
|
15307
|
-
|
|
15308
|
-
|
|
15666
|
+
if (_config.routeType === "path") {
|
|
15667
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15668
|
+
} else if (_config.routeType === "hash") {
|
|
15669
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15670
|
+
} else {
|
|
15671
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15672
|
+
}
|
|
15673
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15309
15674
|
if (route.triggerPoint === "end") {
|
|
15310
15675
|
this.routingProcess(route.path);
|
|
15311
15676
|
}
|
|
@@ -15316,8 +15681,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15316
15681
|
});
|
|
15317
15682
|
this.simpleApplication = new SimpleApplication(option);
|
|
15318
15683
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15319
|
-
if (this.
|
|
15320
|
-
otherInstanceSim.set(Router, this.
|
|
15684
|
+
if (this.router) {
|
|
15685
|
+
otherInstanceSim.set(Router, this.router);
|
|
15321
15686
|
}
|
|
15322
15687
|
this.simpleApplication.run(otherInstanceSim);
|
|
15323
15688
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15329,7 +15694,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15329
15694
|
}
|
|
15330
15695
|
}
|
|
15331
15696
|
if (_config.path) {
|
|
15332
|
-
await this.
|
|
15697
|
+
await this.router?.go(_config.path);
|
|
15333
15698
|
}
|
|
15334
15699
|
}
|
|
15335
15700
|
} catch (e) {
|
|
@@ -15341,7 +15706,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15341
15706
|
this.routerSubscription?.unsubscribe();
|
|
15342
15707
|
}
|
|
15343
15708
|
async routing(path) {
|
|
15344
|
-
await this.
|
|
15709
|
+
await this.router?.go(path);
|
|
15345
15710
|
}
|
|
15346
15711
|
async routingProcess(path) {
|
|
15347
15712
|
await this.simpleApplication?.routing(path);
|
|
@@ -15377,12 +15742,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15377
15742
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15378
15743
|
if (userConfig) {
|
|
15379
15744
|
const _config = {
|
|
15380
|
-
routeType: "
|
|
15745
|
+
routeType: "element",
|
|
15381
15746
|
window,
|
|
15382
15747
|
...userConfig
|
|
15383
15748
|
};
|
|
15384
|
-
|
|
15385
|
-
|
|
15749
|
+
if (_config.routeType === "path") {
|
|
15750
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15751
|
+
} else if (_config.routeType === "hash") {
|
|
15752
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15753
|
+
} else {
|
|
15754
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15755
|
+
}
|
|
15756
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15386
15757
|
if (route.triggerPoint === "end") {
|
|
15387
15758
|
this.routingProcess(route.path);
|
|
15388
15759
|
}
|
|
@@ -15393,8 +15764,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15393
15764
|
});
|
|
15394
15765
|
this.simpleApplication = new SimpleApplication(option);
|
|
15395
15766
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15396
|
-
if (this.
|
|
15397
|
-
otherInstanceSim.set(Router, this.
|
|
15767
|
+
if (this.router) {
|
|
15768
|
+
otherInstanceSim.set(Router, this.router);
|
|
15398
15769
|
}
|
|
15399
15770
|
this.simpleApplication.run(otherInstanceSim);
|
|
15400
15771
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15406,7 +15777,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15406
15777
|
}
|
|
15407
15778
|
}
|
|
15408
15779
|
if (_config.path) {
|
|
15409
|
-
await this.
|
|
15780
|
+
await this.router?.go(_config.path);
|
|
15410
15781
|
}
|
|
15411
15782
|
}
|
|
15412
15783
|
} catch (e) {
|
|
@@ -15418,7 +15789,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15418
15789
|
this.routerSubscription?.unsubscribe();
|
|
15419
15790
|
}
|
|
15420
15791
|
async routing(path) {
|
|
15421
|
-
await this.
|
|
15792
|
+
await this.router?.go(path);
|
|
15422
15793
|
}
|
|
15423
15794
|
async routingProcess(path) {
|
|
15424
15795
|
await this.simpleApplication?.routing(path);
|
|
@@ -15454,12 +15825,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15454
15825
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15455
15826
|
if (userConfig) {
|
|
15456
15827
|
const _config = {
|
|
15457
|
-
routeType: "
|
|
15828
|
+
routeType: "element",
|
|
15458
15829
|
window,
|
|
15459
15830
|
...userConfig
|
|
15460
15831
|
};
|
|
15461
|
-
|
|
15462
|
-
|
|
15832
|
+
if (_config.routeType === "path") {
|
|
15833
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15834
|
+
} else if (_config.routeType === "hash") {
|
|
15835
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15836
|
+
} else {
|
|
15837
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15838
|
+
}
|
|
15839
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15463
15840
|
if (route.triggerPoint === "end") {
|
|
15464
15841
|
this.routingProcess(route.path);
|
|
15465
15842
|
}
|
|
@@ -15470,8 +15847,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15470
15847
|
});
|
|
15471
15848
|
this.simpleApplication = new SimpleApplication(option);
|
|
15472
15849
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15473
|
-
if (this.
|
|
15474
|
-
otherInstanceSim.set(Router, this.
|
|
15850
|
+
if (this.router) {
|
|
15851
|
+
otherInstanceSim.set(Router, this.router);
|
|
15475
15852
|
}
|
|
15476
15853
|
this.simpleApplication.run(otherInstanceSim);
|
|
15477
15854
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15483,7 +15860,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15483
15860
|
}
|
|
15484
15861
|
}
|
|
15485
15862
|
if (_config.path) {
|
|
15486
|
-
await this.
|
|
15863
|
+
await this.router?.go(_config.path);
|
|
15487
15864
|
}
|
|
15488
15865
|
}
|
|
15489
15866
|
} catch (e) {
|
|
@@ -15495,7 +15872,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15495
15872
|
this.routerSubscription?.unsubscribe();
|
|
15496
15873
|
}
|
|
15497
15874
|
async routing(path) {
|
|
15498
|
-
await this.
|
|
15875
|
+
await this.router?.go(path);
|
|
15499
15876
|
}
|
|
15500
15877
|
async routingProcess(path) {
|
|
15501
15878
|
await this.simpleApplication?.routing(path);
|
|
@@ -15531,12 +15908,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15531
15908
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15532
15909
|
if (userConfig) {
|
|
15533
15910
|
const _config = {
|
|
15534
|
-
routeType: "
|
|
15911
|
+
routeType: "element",
|
|
15535
15912
|
window,
|
|
15536
15913
|
...userConfig
|
|
15537
15914
|
};
|
|
15538
|
-
|
|
15539
|
-
|
|
15915
|
+
if (_config.routeType === "path") {
|
|
15916
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15917
|
+
} else if (_config.routeType === "hash") {
|
|
15918
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15919
|
+
} else {
|
|
15920
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15921
|
+
}
|
|
15922
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15540
15923
|
if (route.triggerPoint === "end") {
|
|
15541
15924
|
this.routingProcess(route.path);
|
|
15542
15925
|
}
|
|
@@ -15547,8 +15930,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15547
15930
|
});
|
|
15548
15931
|
this.simpleApplication = new SimpleApplication(option);
|
|
15549
15932
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15550
|
-
if (this.
|
|
15551
|
-
otherInstanceSim.set(Router, this.
|
|
15933
|
+
if (this.router) {
|
|
15934
|
+
otherInstanceSim.set(Router, this.router);
|
|
15552
15935
|
}
|
|
15553
15936
|
this.simpleApplication.run(otherInstanceSim);
|
|
15554
15937
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15560,7 +15943,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15560
15943
|
}
|
|
15561
15944
|
}
|
|
15562
15945
|
if (_config.path) {
|
|
15563
|
-
await this.
|
|
15946
|
+
await this.router?.go(_config.path);
|
|
15564
15947
|
}
|
|
15565
15948
|
}
|
|
15566
15949
|
} catch (e) {
|
|
@@ -15572,7 +15955,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15572
15955
|
this.routerSubscription?.unsubscribe();
|
|
15573
15956
|
}
|
|
15574
15957
|
async routing(path) {
|
|
15575
|
-
await this.
|
|
15958
|
+
await this.router?.go(path);
|
|
15576
15959
|
}
|
|
15577
15960
|
async routingProcess(path) {
|
|
15578
15961
|
await this.simpleApplication?.routing(path);
|
|
@@ -15608,12 +15991,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15608
15991
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15609
15992
|
if (userConfig) {
|
|
15610
15993
|
const _config = {
|
|
15611
|
-
routeType: "
|
|
15994
|
+
routeType: "element",
|
|
15612
15995
|
window,
|
|
15613
15996
|
...userConfig
|
|
15614
15997
|
};
|
|
15615
|
-
|
|
15616
|
-
|
|
15998
|
+
if (_config.routeType === "path") {
|
|
15999
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16000
|
+
} else if (_config.routeType === "hash") {
|
|
16001
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16002
|
+
} else {
|
|
16003
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16004
|
+
}
|
|
16005
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15617
16006
|
if (route.triggerPoint === "end") {
|
|
15618
16007
|
this.routingProcess(route.path);
|
|
15619
16008
|
}
|
|
@@ -15624,8 +16013,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15624
16013
|
});
|
|
15625
16014
|
this.simpleApplication = new SimpleApplication(option);
|
|
15626
16015
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15627
|
-
if (this.
|
|
15628
|
-
otherInstanceSim.set(Router, this.
|
|
16016
|
+
if (this.router) {
|
|
16017
|
+
otherInstanceSim.set(Router, this.router);
|
|
15629
16018
|
}
|
|
15630
16019
|
this.simpleApplication.run(otherInstanceSim);
|
|
15631
16020
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15637,7 +16026,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15637
16026
|
}
|
|
15638
16027
|
}
|
|
15639
16028
|
if (_config.path) {
|
|
15640
|
-
await this.
|
|
16029
|
+
await this.router?.go(_config.path);
|
|
15641
16030
|
}
|
|
15642
16031
|
}
|
|
15643
16032
|
} catch (e) {
|
|
@@ -15649,7 +16038,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15649
16038
|
this.routerSubscription?.unsubscribe();
|
|
15650
16039
|
}
|
|
15651
16040
|
async routing(path) {
|
|
15652
|
-
await this.
|
|
16041
|
+
await this.router?.go(path);
|
|
15653
16042
|
}
|
|
15654
16043
|
async routingProcess(path) {
|
|
15655
16044
|
await this.simpleApplication?.routing(path);
|
|
@@ -15685,12 +16074,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15685
16074
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15686
16075
|
if (userConfig) {
|
|
15687
16076
|
const _config = {
|
|
15688
|
-
routeType: "
|
|
16077
|
+
routeType: "element",
|
|
15689
16078
|
window,
|
|
15690
16079
|
...userConfig
|
|
15691
16080
|
};
|
|
15692
|
-
|
|
15693
|
-
|
|
16081
|
+
if (_config.routeType === "path") {
|
|
16082
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16083
|
+
} else if (_config.routeType === "hash") {
|
|
16084
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16085
|
+
} else {
|
|
16086
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16087
|
+
}
|
|
16088
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15694
16089
|
if (route.triggerPoint === "end") {
|
|
15695
16090
|
this.routingProcess(route.path);
|
|
15696
16091
|
}
|
|
@@ -15701,8 +16096,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15701
16096
|
});
|
|
15702
16097
|
this.simpleApplication = new SimpleApplication(option);
|
|
15703
16098
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15704
|
-
if (this.
|
|
15705
|
-
otherInstanceSim.set(Router, this.
|
|
16099
|
+
if (this.router) {
|
|
16100
|
+
otherInstanceSim.set(Router, this.router);
|
|
15706
16101
|
}
|
|
15707
16102
|
this.simpleApplication.run(otherInstanceSim);
|
|
15708
16103
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15714,7 +16109,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15714
16109
|
}
|
|
15715
16110
|
}
|
|
15716
16111
|
if (_config.path) {
|
|
15717
|
-
await this.
|
|
16112
|
+
await this.router?.go(_config.path);
|
|
15718
16113
|
}
|
|
15719
16114
|
}
|
|
15720
16115
|
} catch (e) {
|
|
@@ -15726,7 +16121,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15726
16121
|
this.routerSubscription?.unsubscribe();
|
|
15727
16122
|
}
|
|
15728
16123
|
async routing(path) {
|
|
15729
|
-
await this.
|
|
16124
|
+
await this.router?.go(path);
|
|
15730
16125
|
}
|
|
15731
16126
|
async routingProcess(path) {
|
|
15732
16127
|
await this.simpleApplication?.routing(path);
|
|
@@ -15762,12 +16157,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15762
16157
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15763
16158
|
if (userConfig) {
|
|
15764
16159
|
const _config = {
|
|
15765
|
-
routeType: "
|
|
16160
|
+
routeType: "element",
|
|
15766
16161
|
window,
|
|
15767
16162
|
...userConfig
|
|
15768
16163
|
};
|
|
15769
|
-
|
|
15770
|
-
|
|
16164
|
+
if (_config.routeType === "path") {
|
|
16165
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16166
|
+
} else if (_config.routeType === "hash") {
|
|
16167
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16168
|
+
} else {
|
|
16169
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16170
|
+
}
|
|
16171
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15771
16172
|
if (route.triggerPoint === "end") {
|
|
15772
16173
|
this.routingProcess(route.path);
|
|
15773
16174
|
}
|
|
@@ -15778,8 +16179,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15778
16179
|
});
|
|
15779
16180
|
this.simpleApplication = new SimpleApplication(option);
|
|
15780
16181
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15781
|
-
if (this.
|
|
15782
|
-
otherInstanceSim.set(Router, this.
|
|
16182
|
+
if (this.router) {
|
|
16183
|
+
otherInstanceSim.set(Router, this.router);
|
|
15783
16184
|
}
|
|
15784
16185
|
this.simpleApplication.run(otherInstanceSim);
|
|
15785
16186
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15791,7 +16192,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15791
16192
|
}
|
|
15792
16193
|
}
|
|
15793
16194
|
if (_config.path) {
|
|
15794
|
-
await this.
|
|
16195
|
+
await this.router?.go(_config.path);
|
|
15795
16196
|
}
|
|
15796
16197
|
}
|
|
15797
16198
|
} catch (e) {
|
|
@@ -15803,7 +16204,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15803
16204
|
this.routerSubscription?.unsubscribe();
|
|
15804
16205
|
}
|
|
15805
16206
|
async routing(path) {
|
|
15806
|
-
await this.
|
|
16207
|
+
await this.router?.go(path);
|
|
15807
16208
|
}
|
|
15808
16209
|
async routingProcess(path) {
|
|
15809
16210
|
await this.simpleApplication?.routing(path);
|
|
@@ -15839,12 +16240,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15839
16240
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15840
16241
|
if (userConfig) {
|
|
15841
16242
|
const _config = {
|
|
15842
|
-
routeType: "
|
|
16243
|
+
routeType: "element",
|
|
15843
16244
|
window,
|
|
15844
16245
|
...userConfig
|
|
15845
16246
|
};
|
|
15846
|
-
|
|
15847
|
-
|
|
16247
|
+
if (_config.routeType === "path") {
|
|
16248
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16249
|
+
} else if (_config.routeType === "hash") {
|
|
16250
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16251
|
+
} else {
|
|
16252
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16253
|
+
}
|
|
16254
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15848
16255
|
if (route.triggerPoint === "end") {
|
|
15849
16256
|
this.routingProcess(route.path);
|
|
15850
16257
|
}
|
|
@@ -15855,8 +16262,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15855
16262
|
});
|
|
15856
16263
|
this.simpleApplication = new SimpleApplication(option);
|
|
15857
16264
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15858
|
-
if (this.
|
|
15859
|
-
otherInstanceSim.set(Router, this.
|
|
16265
|
+
if (this.router) {
|
|
16266
|
+
otherInstanceSim.set(Router, this.router);
|
|
15860
16267
|
}
|
|
15861
16268
|
this.simpleApplication.run(otherInstanceSim);
|
|
15862
16269
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15868,7 +16275,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15868
16275
|
}
|
|
15869
16276
|
}
|
|
15870
16277
|
if (_config.path) {
|
|
15871
|
-
await this.
|
|
16278
|
+
await this.router?.go(_config.path);
|
|
15872
16279
|
}
|
|
15873
16280
|
}
|
|
15874
16281
|
} catch (e) {
|
|
@@ -15880,7 +16287,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15880
16287
|
this.routerSubscription?.unsubscribe();
|
|
15881
16288
|
}
|
|
15882
16289
|
async routing(path) {
|
|
15883
|
-
await this.
|
|
16290
|
+
await this.router?.go(path);
|
|
15884
16291
|
}
|
|
15885
16292
|
async routingProcess(path) {
|
|
15886
16293
|
await this.simpleApplication?.routing(path);
|
|
@@ -15916,12 +16323,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15916
16323
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15917
16324
|
if (userConfig) {
|
|
15918
16325
|
const _config = {
|
|
15919
|
-
routeType: "
|
|
16326
|
+
routeType: "element",
|
|
15920
16327
|
window,
|
|
15921
16328
|
...userConfig
|
|
15922
16329
|
};
|
|
15923
|
-
|
|
15924
|
-
|
|
16330
|
+
if (_config.routeType === "path") {
|
|
16331
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16332
|
+
} else if (_config.routeType === "hash") {
|
|
16333
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16334
|
+
} else {
|
|
16335
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16336
|
+
}
|
|
16337
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15925
16338
|
if (route.triggerPoint === "end") {
|
|
15926
16339
|
this.routingProcess(route.path);
|
|
15927
16340
|
}
|
|
@@ -15932,8 +16345,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15932
16345
|
});
|
|
15933
16346
|
this.simpleApplication = new SimpleApplication(option);
|
|
15934
16347
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15935
|
-
if (this.
|
|
15936
|
-
otherInstanceSim.set(Router, this.
|
|
16348
|
+
if (this.router) {
|
|
16349
|
+
otherInstanceSim.set(Router, this.router);
|
|
15937
16350
|
}
|
|
15938
16351
|
this.simpleApplication.run(otherInstanceSim);
|
|
15939
16352
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15945,7 +16358,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15945
16358
|
}
|
|
15946
16359
|
}
|
|
15947
16360
|
if (_config.path) {
|
|
15948
|
-
await this.
|
|
16361
|
+
await this.router?.go(_config.path);
|
|
15949
16362
|
}
|
|
15950
16363
|
}
|
|
15951
16364
|
} catch (e) {
|
|
@@ -15957,7 +16370,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15957
16370
|
this.routerSubscription?.unsubscribe();
|
|
15958
16371
|
}
|
|
15959
16372
|
async routing(path) {
|
|
15960
|
-
await this.
|
|
16373
|
+
await this.router?.go(path);
|
|
15961
16374
|
}
|
|
15962
16375
|
async routingProcess(path) {
|
|
15963
16376
|
await this.simpleApplication?.routing(path);
|
|
@@ -15993,12 +16406,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
15993
16406
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15994
16407
|
if (userConfig) {
|
|
15995
16408
|
const _config = {
|
|
15996
|
-
routeType: "
|
|
16409
|
+
routeType: "element",
|
|
15997
16410
|
window,
|
|
15998
16411
|
...userConfig
|
|
15999
16412
|
};
|
|
16000
|
-
|
|
16001
|
-
|
|
16413
|
+
if (_config.routeType === "path") {
|
|
16414
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16415
|
+
} else if (_config.routeType === "hash") {
|
|
16416
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16417
|
+
} else {
|
|
16418
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16419
|
+
}
|
|
16420
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16002
16421
|
if (route.triggerPoint === "end") {
|
|
16003
16422
|
this.routingProcess(route.path);
|
|
16004
16423
|
}
|
|
@@ -16009,8 +16428,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16009
16428
|
});
|
|
16010
16429
|
this.simpleApplication = new SimpleApplication(option);
|
|
16011
16430
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16012
|
-
if (this.
|
|
16013
|
-
otherInstanceSim.set(Router, this.
|
|
16431
|
+
if (this.router) {
|
|
16432
|
+
otherInstanceSim.set(Router, this.router);
|
|
16014
16433
|
}
|
|
16015
16434
|
this.simpleApplication.run(otherInstanceSim);
|
|
16016
16435
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16022,7 +16441,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16022
16441
|
}
|
|
16023
16442
|
}
|
|
16024
16443
|
if (_config.path) {
|
|
16025
|
-
await this.
|
|
16444
|
+
await this.router?.go(_config.path);
|
|
16026
16445
|
}
|
|
16027
16446
|
}
|
|
16028
16447
|
} catch (e) {
|
|
@@ -16034,7 +16453,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16034
16453
|
this.routerSubscription?.unsubscribe();
|
|
16035
16454
|
}
|
|
16036
16455
|
async routing(path) {
|
|
16037
|
-
await this.
|
|
16456
|
+
await this.router?.go(path);
|
|
16038
16457
|
}
|
|
16039
16458
|
async routingProcess(path) {
|
|
16040
16459
|
await this.simpleApplication?.routing(path);
|
|
@@ -16070,12 +16489,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16070
16489
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16071
16490
|
if (userConfig) {
|
|
16072
16491
|
const _config = {
|
|
16073
|
-
routeType: "
|
|
16492
|
+
routeType: "element",
|
|
16074
16493
|
window,
|
|
16075
16494
|
...userConfig
|
|
16076
16495
|
};
|
|
16077
|
-
|
|
16078
|
-
|
|
16496
|
+
if (_config.routeType === "path") {
|
|
16497
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16498
|
+
} else if (_config.routeType === "hash") {
|
|
16499
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16500
|
+
} else {
|
|
16501
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16502
|
+
}
|
|
16503
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16079
16504
|
if (route.triggerPoint === "end") {
|
|
16080
16505
|
this.routingProcess(route.path);
|
|
16081
16506
|
}
|
|
@@ -16086,8 +16511,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16086
16511
|
});
|
|
16087
16512
|
this.simpleApplication = new SimpleApplication(option);
|
|
16088
16513
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16089
|
-
if (this.
|
|
16090
|
-
otherInstanceSim.set(Router, this.
|
|
16514
|
+
if (this.router) {
|
|
16515
|
+
otherInstanceSim.set(Router, this.router);
|
|
16091
16516
|
}
|
|
16092
16517
|
this.simpleApplication.run(otherInstanceSim);
|
|
16093
16518
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16099,7 +16524,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16099
16524
|
}
|
|
16100
16525
|
}
|
|
16101
16526
|
if (_config.path) {
|
|
16102
|
-
await this.
|
|
16527
|
+
await this.router?.go(_config.path);
|
|
16103
16528
|
}
|
|
16104
16529
|
}
|
|
16105
16530
|
} catch (e) {
|
|
@@ -16111,7 +16536,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16111
16536
|
this.routerSubscription?.unsubscribe();
|
|
16112
16537
|
}
|
|
16113
16538
|
async routing(path) {
|
|
16114
|
-
await this.
|
|
16539
|
+
await this.router?.go(path);
|
|
16115
16540
|
}
|
|
16116
16541
|
async routingProcess(path) {
|
|
16117
16542
|
await this.simpleApplication?.routing(path);
|
|
@@ -16147,12 +16572,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16147
16572
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16148
16573
|
if (userConfig) {
|
|
16149
16574
|
const _config = {
|
|
16150
|
-
routeType: "
|
|
16575
|
+
routeType: "element",
|
|
16151
16576
|
window,
|
|
16152
16577
|
...userConfig
|
|
16153
16578
|
};
|
|
16154
|
-
|
|
16155
|
-
|
|
16579
|
+
if (_config.routeType === "path") {
|
|
16580
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16581
|
+
} else if (_config.routeType === "hash") {
|
|
16582
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16583
|
+
} else {
|
|
16584
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16585
|
+
}
|
|
16586
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16156
16587
|
if (route.triggerPoint === "end") {
|
|
16157
16588
|
this.routingProcess(route.path);
|
|
16158
16589
|
}
|
|
@@ -16163,8 +16594,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16163
16594
|
});
|
|
16164
16595
|
this.simpleApplication = new SimpleApplication(option);
|
|
16165
16596
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16166
|
-
if (this.
|
|
16167
|
-
otherInstanceSim.set(Router, this.
|
|
16597
|
+
if (this.router) {
|
|
16598
|
+
otherInstanceSim.set(Router, this.router);
|
|
16168
16599
|
}
|
|
16169
16600
|
this.simpleApplication.run(otherInstanceSim);
|
|
16170
16601
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16176,7 +16607,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16176
16607
|
}
|
|
16177
16608
|
}
|
|
16178
16609
|
if (_config.path) {
|
|
16179
|
-
await this.
|
|
16610
|
+
await this.router?.go(_config.path);
|
|
16180
16611
|
}
|
|
16181
16612
|
}
|
|
16182
16613
|
} catch (e) {
|
|
@@ -16188,7 +16619,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16188
16619
|
this.routerSubscription?.unsubscribe();
|
|
16189
16620
|
}
|
|
16190
16621
|
async routing(path) {
|
|
16191
|
-
await this.
|
|
16622
|
+
await this.router?.go(path);
|
|
16192
16623
|
}
|
|
16193
16624
|
async routingProcess(path) {
|
|
16194
16625
|
await this.simpleApplication?.routing(path);
|
|
@@ -16224,12 +16655,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16224
16655
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16225
16656
|
if (userConfig) {
|
|
16226
16657
|
const _config = {
|
|
16227
|
-
routeType: "
|
|
16658
|
+
routeType: "element",
|
|
16228
16659
|
window,
|
|
16229
16660
|
...userConfig
|
|
16230
16661
|
};
|
|
16231
|
-
|
|
16232
|
-
|
|
16662
|
+
if (_config.routeType === "path") {
|
|
16663
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16664
|
+
} else if (_config.routeType === "hash") {
|
|
16665
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16666
|
+
} else {
|
|
16667
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16668
|
+
}
|
|
16669
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16233
16670
|
if (route.triggerPoint === "end") {
|
|
16234
16671
|
this.routingProcess(route.path);
|
|
16235
16672
|
}
|
|
@@ -16240,8 +16677,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16240
16677
|
});
|
|
16241
16678
|
this.simpleApplication = new SimpleApplication(option);
|
|
16242
16679
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16243
|
-
if (this.
|
|
16244
|
-
otherInstanceSim.set(Router, this.
|
|
16680
|
+
if (this.router) {
|
|
16681
|
+
otherInstanceSim.set(Router, this.router);
|
|
16245
16682
|
}
|
|
16246
16683
|
this.simpleApplication.run(otherInstanceSim);
|
|
16247
16684
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16253,7 +16690,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16253
16690
|
}
|
|
16254
16691
|
}
|
|
16255
16692
|
if (_config.path) {
|
|
16256
|
-
await this.
|
|
16693
|
+
await this.router?.go(_config.path);
|
|
16257
16694
|
}
|
|
16258
16695
|
}
|
|
16259
16696
|
} catch (e) {
|
|
@@ -16265,7 +16702,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16265
16702
|
this.routerSubscription?.unsubscribe();
|
|
16266
16703
|
}
|
|
16267
16704
|
async routing(path) {
|
|
16268
|
-
await this.
|
|
16705
|
+
await this.router?.go(path);
|
|
16269
16706
|
}
|
|
16270
16707
|
async routingProcess(path) {
|
|
16271
16708
|
await this.simpleApplication?.routing(path);
|
|
@@ -16301,12 +16738,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16301
16738
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16302
16739
|
if (userConfig) {
|
|
16303
16740
|
const _config = {
|
|
16304
|
-
routeType: "
|
|
16741
|
+
routeType: "element",
|
|
16305
16742
|
window,
|
|
16306
16743
|
...userConfig
|
|
16307
16744
|
};
|
|
16308
|
-
|
|
16309
|
-
|
|
16745
|
+
if (_config.routeType === "path") {
|
|
16746
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16747
|
+
} else if (_config.routeType === "hash") {
|
|
16748
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16749
|
+
} else {
|
|
16750
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16751
|
+
}
|
|
16752
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16310
16753
|
if (route.triggerPoint === "end") {
|
|
16311
16754
|
this.routingProcess(route.path);
|
|
16312
16755
|
}
|
|
@@ -16317,8 +16760,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16317
16760
|
});
|
|
16318
16761
|
this.simpleApplication = new SimpleApplication(option);
|
|
16319
16762
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16320
|
-
if (this.
|
|
16321
|
-
otherInstanceSim.set(Router, this.
|
|
16763
|
+
if (this.router) {
|
|
16764
|
+
otherInstanceSim.set(Router, this.router);
|
|
16322
16765
|
}
|
|
16323
16766
|
this.simpleApplication.run(otherInstanceSim);
|
|
16324
16767
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16330,7 +16773,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16330
16773
|
}
|
|
16331
16774
|
}
|
|
16332
16775
|
if (_config.path) {
|
|
16333
|
-
await this.
|
|
16776
|
+
await this.router?.go(_config.path);
|
|
16334
16777
|
}
|
|
16335
16778
|
}
|
|
16336
16779
|
} catch (e) {
|
|
@@ -16342,7 +16785,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16342
16785
|
this.routerSubscription?.unsubscribe();
|
|
16343
16786
|
}
|
|
16344
16787
|
async routing(path) {
|
|
16345
|
-
await this.
|
|
16788
|
+
await this.router?.go(path);
|
|
16346
16789
|
}
|
|
16347
16790
|
async routingProcess(path) {
|
|
16348
16791
|
await this.simpleApplication?.routing(path);
|
|
@@ -16378,12 +16821,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16378
16821
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16379
16822
|
if (userConfig) {
|
|
16380
16823
|
const _config = {
|
|
16381
|
-
routeType: "
|
|
16824
|
+
routeType: "element",
|
|
16382
16825
|
window,
|
|
16383
16826
|
...userConfig
|
|
16384
16827
|
};
|
|
16385
|
-
|
|
16386
|
-
|
|
16828
|
+
if (_config.routeType === "path") {
|
|
16829
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16830
|
+
} else if (_config.routeType === "hash") {
|
|
16831
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16832
|
+
} else {
|
|
16833
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16834
|
+
}
|
|
16835
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16387
16836
|
if (route.triggerPoint === "end") {
|
|
16388
16837
|
this.routingProcess(route.path);
|
|
16389
16838
|
}
|
|
@@ -16394,8 +16843,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16394
16843
|
});
|
|
16395
16844
|
this.simpleApplication = new SimpleApplication(option);
|
|
16396
16845
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16397
|
-
if (this.
|
|
16398
|
-
otherInstanceSim.set(Router, this.
|
|
16846
|
+
if (this.router) {
|
|
16847
|
+
otherInstanceSim.set(Router, this.router);
|
|
16399
16848
|
}
|
|
16400
16849
|
this.simpleApplication.run(otherInstanceSim);
|
|
16401
16850
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16407,7 +16856,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16407
16856
|
}
|
|
16408
16857
|
}
|
|
16409
16858
|
if (_config.path) {
|
|
16410
|
-
await this.
|
|
16859
|
+
await this.router?.go(_config.path);
|
|
16411
16860
|
}
|
|
16412
16861
|
}
|
|
16413
16862
|
} catch (e) {
|
|
@@ -16419,7 +16868,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16419
16868
|
this.routerSubscription?.unsubscribe();
|
|
16420
16869
|
}
|
|
16421
16870
|
async routing(path) {
|
|
16422
|
-
await this.
|
|
16871
|
+
await this.router?.go(path);
|
|
16423
16872
|
}
|
|
16424
16873
|
async routingProcess(path) {
|
|
16425
16874
|
await this.simpleApplication?.routing(path);
|
|
@@ -16455,12 +16904,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16455
16904
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16456
16905
|
if (userConfig) {
|
|
16457
16906
|
const _config = {
|
|
16458
|
-
routeType: "
|
|
16907
|
+
routeType: "element",
|
|
16459
16908
|
window,
|
|
16460
16909
|
...userConfig
|
|
16461
16910
|
};
|
|
16462
|
-
|
|
16463
|
-
|
|
16911
|
+
if (_config.routeType === "path") {
|
|
16912
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16913
|
+
} else if (_config.routeType === "hash") {
|
|
16914
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16915
|
+
} else {
|
|
16916
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16917
|
+
}
|
|
16918
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16464
16919
|
if (route.triggerPoint === "end") {
|
|
16465
16920
|
this.routingProcess(route.path);
|
|
16466
16921
|
}
|
|
@@ -16471,8 +16926,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16471
16926
|
});
|
|
16472
16927
|
this.simpleApplication = new SimpleApplication(option);
|
|
16473
16928
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16474
|
-
if (this.
|
|
16475
|
-
otherInstanceSim.set(Router, this.
|
|
16929
|
+
if (this.router) {
|
|
16930
|
+
otherInstanceSim.set(Router, this.router);
|
|
16476
16931
|
}
|
|
16477
16932
|
this.simpleApplication.run(otherInstanceSim);
|
|
16478
16933
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16484,7 +16939,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16484
16939
|
}
|
|
16485
16940
|
}
|
|
16486
16941
|
if (_config.path) {
|
|
16487
|
-
await this.
|
|
16942
|
+
await this.router?.go(_config.path);
|
|
16488
16943
|
}
|
|
16489
16944
|
}
|
|
16490
16945
|
} catch (e) {
|
|
@@ -16496,7 +16951,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16496
16951
|
this.routerSubscription?.unsubscribe();
|
|
16497
16952
|
}
|
|
16498
16953
|
async routing(path) {
|
|
16499
|
-
await this.
|
|
16954
|
+
await this.router?.go(path);
|
|
16500
16955
|
}
|
|
16501
16956
|
async routingProcess(path) {
|
|
16502
16957
|
await this.simpleApplication?.routing(path);
|
|
@@ -16532,12 +16987,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16532
16987
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16533
16988
|
if (userConfig) {
|
|
16534
16989
|
const _config = {
|
|
16535
|
-
routeType: "
|
|
16990
|
+
routeType: "element",
|
|
16536
16991
|
window,
|
|
16537
16992
|
...userConfig
|
|
16538
16993
|
};
|
|
16539
|
-
|
|
16540
|
-
|
|
16994
|
+
if (_config.routeType === "path") {
|
|
16995
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16996
|
+
} else if (_config.routeType === "hash") {
|
|
16997
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16998
|
+
} else {
|
|
16999
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
17000
|
+
}
|
|
17001
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16541
17002
|
if (route.triggerPoint === "end") {
|
|
16542
17003
|
this.routingProcess(route.path);
|
|
16543
17004
|
}
|
|
@@ -16548,8 +17009,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16548
17009
|
});
|
|
16549
17010
|
this.simpleApplication = new SimpleApplication(option);
|
|
16550
17011
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16551
|
-
if (this.
|
|
16552
|
-
otherInstanceSim.set(Router, this.
|
|
17012
|
+
if (this.router) {
|
|
17013
|
+
otherInstanceSim.set(Router, this.router);
|
|
16553
17014
|
}
|
|
16554
17015
|
this.simpleApplication.run(otherInstanceSim);
|
|
16555
17016
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16561,7 +17022,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16561
17022
|
}
|
|
16562
17023
|
}
|
|
16563
17024
|
if (_config.path) {
|
|
16564
|
-
await this.
|
|
17025
|
+
await this.router?.go(_config.path);
|
|
16565
17026
|
}
|
|
16566
17027
|
}
|
|
16567
17028
|
} catch (e) {
|
|
@@ -16573,7 +17034,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16573
17034
|
this.routerSubscription?.unsubscribe();
|
|
16574
17035
|
}
|
|
16575
17036
|
async routing(path) {
|
|
16576
|
-
await this.
|
|
17037
|
+
await this.router?.go(path);
|
|
16577
17038
|
}
|
|
16578
17039
|
async routingProcess(path) {
|
|
16579
17040
|
await this.simpleApplication?.routing(path);
|
|
@@ -16609,12 +17070,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16609
17070
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16610
17071
|
if (userConfig) {
|
|
16611
17072
|
const _config = {
|
|
16612
|
-
routeType: "
|
|
17073
|
+
routeType: "element",
|
|
16613
17074
|
window,
|
|
16614
17075
|
...userConfig
|
|
16615
17076
|
};
|
|
16616
|
-
|
|
16617
|
-
|
|
17077
|
+
if (_config.routeType === "path") {
|
|
17078
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
17079
|
+
} else if (_config.routeType === "hash") {
|
|
17080
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
17081
|
+
} else {
|
|
17082
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
17083
|
+
}
|
|
17084
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16618
17085
|
if (route.triggerPoint === "end") {
|
|
16619
17086
|
this.routingProcess(route.path);
|
|
16620
17087
|
}
|
|
@@ -16625,8 +17092,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16625
17092
|
});
|
|
16626
17093
|
this.simpleApplication = new SimpleApplication(option);
|
|
16627
17094
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16628
|
-
if (this.
|
|
16629
|
-
otherInstanceSim.set(Router, this.
|
|
17095
|
+
if (this.router) {
|
|
17096
|
+
otherInstanceSim.set(Router, this.router);
|
|
16630
17097
|
}
|
|
16631
17098
|
this.simpleApplication.run(otherInstanceSim);
|
|
16632
17099
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16638,7 +17105,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16638
17105
|
}
|
|
16639
17106
|
}
|
|
16640
17107
|
if (_config.path) {
|
|
16641
|
-
await this.
|
|
17108
|
+
await this.router?.go(_config.path);
|
|
16642
17109
|
}
|
|
16643
17110
|
}
|
|
16644
17111
|
} catch (e) {
|
|
@@ -16650,7 +17117,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16650
17117
|
this.routerSubscription?.unsubscribe();
|
|
16651
17118
|
}
|
|
16652
17119
|
async routing(path) {
|
|
16653
|
-
await this.
|
|
17120
|
+
await this.router?.go(path);
|
|
16654
17121
|
}
|
|
16655
17122
|
async routingProcess(path) {
|
|
16656
17123
|
await this.simpleApplication?.routing(path);
|
|
@@ -16686,12 +17153,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16686
17153
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16687
17154
|
if (userConfig) {
|
|
16688
17155
|
const _config = {
|
|
16689
|
-
routeType: "
|
|
17156
|
+
routeType: "element",
|
|
16690
17157
|
window,
|
|
16691
17158
|
...userConfig
|
|
16692
17159
|
};
|
|
16693
|
-
|
|
16694
|
-
|
|
17160
|
+
if (_config.routeType === "path") {
|
|
17161
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
17162
|
+
} else if (_config.routeType === "hash") {
|
|
17163
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
17164
|
+
} else {
|
|
17165
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
17166
|
+
}
|
|
17167
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16695
17168
|
if (route.triggerPoint === "end") {
|
|
16696
17169
|
this.routingProcess(route.path);
|
|
16697
17170
|
}
|
|
@@ -16702,8 +17175,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16702
17175
|
});
|
|
16703
17176
|
this.simpleApplication = new SimpleApplication(option);
|
|
16704
17177
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16705
|
-
if (this.
|
|
16706
|
-
otherInstanceSim.set(Router, this.
|
|
17178
|
+
if (this.router) {
|
|
17179
|
+
otherInstanceSim.set(Router, this.router);
|
|
16707
17180
|
}
|
|
16708
17181
|
this.simpleApplication.run(otherInstanceSim);
|
|
16709
17182
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16715,7 +17188,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16715
17188
|
}
|
|
16716
17189
|
}
|
|
16717
17190
|
if (_config.path) {
|
|
16718
|
-
await this.
|
|
17191
|
+
await this.router?.go(_config.path);
|
|
16719
17192
|
}
|
|
16720
17193
|
}
|
|
16721
17194
|
} catch (e) {
|
|
@@ -16727,7 +17200,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16727
17200
|
this.routerSubscription?.unsubscribe();
|
|
16728
17201
|
}
|
|
16729
17202
|
async routing(path) {
|
|
16730
|
-
await this.
|
|
17203
|
+
await this.router?.go(path);
|
|
16731
17204
|
}
|
|
16732
17205
|
async routingProcess(path) {
|
|
16733
17206
|
await this.simpleApplication?.routing(path);
|
|
@@ -16763,12 +17236,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16763
17236
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16764
17237
|
if (userConfig) {
|
|
16765
17238
|
const _config = {
|
|
16766
|
-
routeType: "
|
|
17239
|
+
routeType: "element",
|
|
16767
17240
|
window,
|
|
16768
17241
|
...userConfig
|
|
16769
17242
|
};
|
|
16770
|
-
|
|
16771
|
-
|
|
17243
|
+
if (_config.routeType === "path") {
|
|
17244
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
17245
|
+
} else if (_config.routeType === "hash") {
|
|
17246
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
17247
|
+
} else {
|
|
17248
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
17249
|
+
}
|
|
17250
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16772
17251
|
if (route.triggerPoint === "end") {
|
|
16773
17252
|
this.routingProcess(route.path);
|
|
16774
17253
|
}
|
|
@@ -16779,8 +17258,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16779
17258
|
});
|
|
16780
17259
|
this.simpleApplication = new SimpleApplication(option);
|
|
16781
17260
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16782
|
-
if (this.
|
|
16783
|
-
otherInstanceSim.set(Router, this.
|
|
17261
|
+
if (this.router) {
|
|
17262
|
+
otherInstanceSim.set(Router, this.router);
|
|
16784
17263
|
}
|
|
16785
17264
|
this.simpleApplication.run(otherInstanceSim);
|
|
16786
17265
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16792,7 +17271,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16792
17271
|
}
|
|
16793
17272
|
}
|
|
16794
17273
|
if (_config.path) {
|
|
16795
|
-
await this.
|
|
17274
|
+
await this.router?.go(_config.path);
|
|
16796
17275
|
}
|
|
16797
17276
|
}
|
|
16798
17277
|
} catch (e) {
|
|
@@ -16804,7 +17283,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16804
17283
|
this.routerSubscription?.unsubscribe();
|
|
16805
17284
|
}
|
|
16806
17285
|
async routing(path) {
|
|
16807
|
-
await this.
|
|
17286
|
+
await this.router?.go(path);
|
|
16808
17287
|
}
|
|
16809
17288
|
async routingProcess(path) {
|
|
16810
17289
|
await this.simpleApplication?.routing(path);
|
|
@@ -16840,12 +17319,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16840
17319
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16841
17320
|
if (userConfig) {
|
|
16842
17321
|
const _config = {
|
|
16843
|
-
routeType: "
|
|
17322
|
+
routeType: "element",
|
|
16844
17323
|
window,
|
|
16845
17324
|
...userConfig
|
|
16846
17325
|
};
|
|
16847
|
-
|
|
16848
|
-
|
|
17326
|
+
if (_config.routeType === "path") {
|
|
17327
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
17328
|
+
} else if (_config.routeType === "hash") {
|
|
17329
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
17330
|
+
} else {
|
|
17331
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
17332
|
+
}
|
|
17333
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16849
17334
|
if (route.triggerPoint === "end") {
|
|
16850
17335
|
this.routingProcess(route.path);
|
|
16851
17336
|
}
|
|
@@ -16856,8 +17341,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16856
17341
|
});
|
|
16857
17342
|
this.simpleApplication = new SimpleApplication(option);
|
|
16858
17343
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16859
|
-
if (this.
|
|
16860
|
-
otherInstanceSim.set(Router, this.
|
|
17344
|
+
if (this.router) {
|
|
17345
|
+
otherInstanceSim.set(Router, this.router);
|
|
16861
17346
|
}
|
|
16862
17347
|
this.simpleApplication.run(otherInstanceSim);
|
|
16863
17348
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16869,7 +17354,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16869
17354
|
}
|
|
16870
17355
|
}
|
|
16871
17356
|
if (_config.path) {
|
|
16872
|
-
await this.
|
|
17357
|
+
await this.router?.go(_config.path);
|
|
16873
17358
|
}
|
|
16874
17359
|
}
|
|
16875
17360
|
} catch (e) {
|
|
@@ -16881,7 +17366,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16881
17366
|
this.routerSubscription?.unsubscribe();
|
|
16882
17367
|
}
|
|
16883
17368
|
async routing(path) {
|
|
16884
|
-
await this.
|
|
17369
|
+
await this.router?.go(path);
|
|
16885
17370
|
}
|
|
16886
17371
|
async routingProcess(path) {
|
|
16887
17372
|
await this.simpleApplication?.routing(path);
|
|
@@ -16917,12 +17402,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16917
17402
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16918
17403
|
if (userConfig) {
|
|
16919
17404
|
const _config = {
|
|
16920
|
-
routeType: "
|
|
17405
|
+
routeType: "element",
|
|
16921
17406
|
window,
|
|
16922
17407
|
...userConfig
|
|
16923
17408
|
};
|
|
16924
|
-
|
|
16925
|
-
|
|
17409
|
+
if (_config.routeType === "path") {
|
|
17410
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
17411
|
+
} else if (_config.routeType === "hash") {
|
|
17412
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
17413
|
+
} else {
|
|
17414
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
17415
|
+
}
|
|
17416
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16926
17417
|
if (route.triggerPoint === "end") {
|
|
16927
17418
|
this.routingProcess(route.path);
|
|
16928
17419
|
}
|
|
@@ -16933,8 +17424,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16933
17424
|
});
|
|
16934
17425
|
this.simpleApplication = new SimpleApplication(option);
|
|
16935
17426
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16936
|
-
if (this.
|
|
16937
|
-
otherInstanceSim.set(Router, this.
|
|
17427
|
+
if (this.router) {
|
|
17428
|
+
otherInstanceSim.set(Router, this.router);
|
|
16938
17429
|
}
|
|
16939
17430
|
this.simpleApplication.run(otherInstanceSim);
|
|
16940
17431
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16946,7 +17437,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16946
17437
|
}
|
|
16947
17438
|
}
|
|
16948
17439
|
if (_config.path) {
|
|
16949
|
-
await this.
|
|
17440
|
+
await this.router?.go(_config.path);
|
|
16950
17441
|
}
|
|
16951
17442
|
}
|
|
16952
17443
|
} catch (e) {
|
|
@@ -16958,7 +17449,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16958
17449
|
this.routerSubscription?.unsubscribe();
|
|
16959
17450
|
}
|
|
16960
17451
|
async routing(path) {
|
|
16961
|
-
await this.
|
|
17452
|
+
await this.router?.go(path);
|
|
16962
17453
|
}
|
|
16963
17454
|
async routingProcess(path) {
|
|
16964
17455
|
await this.simpleApplication?.routing(path);
|
|
@@ -16994,12 +17485,18 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
16994
17485
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16995
17486
|
if (userConfig) {
|
|
16996
17487
|
const _config = {
|
|
16997
|
-
routeType: "
|
|
17488
|
+
routeType: "element",
|
|
16998
17489
|
window,
|
|
16999
17490
|
...userConfig
|
|
17000
17491
|
};
|
|
17001
|
-
|
|
17002
|
-
|
|
17492
|
+
if (_config.routeType === "path") {
|
|
17493
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
17494
|
+
} else if (_config.routeType === "hash") {
|
|
17495
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
17496
|
+
} else {
|
|
17497
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
17498
|
+
}
|
|
17499
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
17003
17500
|
if (route.triggerPoint === "end") {
|
|
17004
17501
|
this.routingProcess(route.path);
|
|
17005
17502
|
}
|
|
@@ -17010,8 +17507,8 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
17010
17507
|
});
|
|
17011
17508
|
this.simpleApplication = new SimpleApplication(option);
|
|
17012
17509
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
17013
|
-
if (this.
|
|
17014
|
-
otherInstanceSim.set(Router, this.
|
|
17510
|
+
if (this.router) {
|
|
17511
|
+
otherInstanceSim.set(Router, this.router);
|
|
17015
17512
|
}
|
|
17016
17513
|
this.simpleApplication.run(otherInstanceSim);
|
|
17017
17514
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -17023,7 +17520,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
17023
17520
|
}
|
|
17024
17521
|
}
|
|
17025
17522
|
if (_config.path) {
|
|
17026
|
-
await this.
|
|
17523
|
+
await this.router?.go(_config.path);
|
|
17027
17524
|
}
|
|
17028
17525
|
}
|
|
17029
17526
|
} catch (e) {
|
|
@@ -17035,7 +17532,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
17035
17532
|
this.routerSubscription?.unsubscribe();
|
|
17036
17533
|
}
|
|
17037
17534
|
async routing(path) {
|
|
17038
|
-
await this.
|
|
17535
|
+
await this.router?.go(path);
|
|
17039
17536
|
}
|
|
17040
17537
|
async routingProcess(path) {
|
|
17041
17538
|
await this.simpleApplication?.routing(path);
|