@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
|
@@ -1806,15 +1806,16 @@ var isTargetFactory = (config) => {
|
|
|
1806
1806
|
};
|
|
1807
1807
|
var InjectMetadataKey = Symbol("Inject");
|
|
1808
1808
|
var getInject = (target, propertyKey) => {
|
|
1809
|
-
if (target
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1809
|
+
if (target == null) return [];
|
|
1810
|
+
let searchTarget = typeof target === "object" ? target.constructor : target;
|
|
1811
|
+
while (searchTarget && searchTarget !== Object) {
|
|
1812
|
+
const data = propertyKey ? Reflect.getOwnMetadata(InjectMetadataKey, searchTarget, propertyKey) : ReflectUtils.getMetadata(InjectMetadataKey, searchTarget);
|
|
1813
|
+
if (data) return data;
|
|
1814
|
+
const proto = Object.getPrototypeOf(searchTarget);
|
|
1815
|
+
searchTarget = proto && typeof proto === "function" ? proto : proto?.constructor || null;
|
|
1816
|
+
if (searchTarget === target) break;
|
|
1817
1817
|
}
|
|
1818
|
+
return propertyKey ? [] : [];
|
|
1818
1819
|
};
|
|
1819
1820
|
|
|
1820
1821
|
// src/elements/SwcInterfaces.ts
|
|
@@ -10613,7 +10614,6 @@ var SimstanceManager = class _SimstanceManager {
|
|
|
10613
10614
|
});
|
|
10614
10615
|
}
|
|
10615
10616
|
async executeBindParameterSimPromise({ target, targetKey, firstCheckMaker, parameterCount, inputParameters }, otherStorage) {
|
|
10616
|
-
console.log("--vvvaaaaaaaaaaaa");
|
|
10617
10617
|
const binds = this.getParameterSim({ target, targetKey, firstCheckMaker, otherStorage, parameterCount, inputParameters });
|
|
10618
10618
|
if (typeof target === "object" && targetKey) {
|
|
10619
10619
|
const targetMethod = target[targetKey];
|
|
@@ -12396,6 +12396,155 @@ var HashRouter = class extends Router {
|
|
|
12396
12396
|
}
|
|
12397
12397
|
};
|
|
12398
12398
|
|
|
12399
|
+
// src/router/ElementRouter.ts
|
|
12400
|
+
var ElementRouter = class extends Router {
|
|
12401
|
+
constructor(config) {
|
|
12402
|
+
const { firstUrl, ...rest } = config;
|
|
12403
|
+
super(rest);
|
|
12404
|
+
this._history = [];
|
|
12405
|
+
this._currentIndex = -1;
|
|
12406
|
+
const startUrl = firstUrl ?? "/";
|
|
12407
|
+
this._history = [{ url: startUrl, data: null }];
|
|
12408
|
+
this._currentIndex = 0;
|
|
12409
|
+
if (firstUrl) {
|
|
12410
|
+
this.replace(firstUrl, { config: { noEventAndPublish: true } });
|
|
12411
|
+
}
|
|
12412
|
+
}
|
|
12413
|
+
// Override pushState to manage internal history
|
|
12414
|
+
pushState(data, title, path, config) {
|
|
12415
|
+
const behaviorSubject = this.behaviorSubject;
|
|
12416
|
+
if (!config?.noEventAndPublish && behaviorSubject) {
|
|
12417
|
+
behaviorSubject.next({ ...this.getRouteData({ pathOrUrl: path }), triggerPoint: "start" });
|
|
12418
|
+
}
|
|
12419
|
+
if (!this._history) this._history = [];
|
|
12420
|
+
this._history = this._history.slice(0, this._currentIndex + 1);
|
|
12421
|
+
this._history.push({ url: path, data, title });
|
|
12422
|
+
this._currentIndex++;
|
|
12423
|
+
if (!config?.noEventAndPublish && behaviorSubject) {
|
|
12424
|
+
behaviorSubject.next({ ...this.getRouteData({ pathOrUrl: path }), triggerPoint: "end" });
|
|
12425
|
+
}
|
|
12426
|
+
return { data };
|
|
12427
|
+
}
|
|
12428
|
+
// Override replaceState to manage internal history
|
|
12429
|
+
replaceState(data, title, path, config) {
|
|
12430
|
+
const behaviorSubject = this.behaviorSubject;
|
|
12431
|
+
if (!config?.noEventAndPublish && behaviorSubject) {
|
|
12432
|
+
behaviorSubject.next({ ...this.getRouteData({ pathOrUrl: path }), triggerPoint: "start" });
|
|
12433
|
+
}
|
|
12434
|
+
if (!this._history) this._history = [];
|
|
12435
|
+
if (this._currentIndex === -1) {
|
|
12436
|
+
this._history.push({ url: path, data, title });
|
|
12437
|
+
this._currentIndex = 0;
|
|
12438
|
+
} else {
|
|
12439
|
+
this._history[this._currentIndex] = { url: path, data, title };
|
|
12440
|
+
}
|
|
12441
|
+
if (!config?.noEventAndPublish && behaviorSubject) {
|
|
12442
|
+
behaviorSubject.next({ ...this.getRouteData({ pathOrUrl: path }), triggerPoint: "end" });
|
|
12443
|
+
}
|
|
12444
|
+
return { data };
|
|
12445
|
+
}
|
|
12446
|
+
push(path, state2) {
|
|
12447
|
+
this.pushState(state2?.data, state2?.title, this.toUrl(path), state2?.config);
|
|
12448
|
+
}
|
|
12449
|
+
replace(path, state2) {
|
|
12450
|
+
this.replaceState(state2?.data, state2?.title, this.toUrl(path), state2?.config);
|
|
12451
|
+
}
|
|
12452
|
+
back(config) {
|
|
12453
|
+
if (this._currentIndex > 0) {
|
|
12454
|
+
this.go(-1, config);
|
|
12455
|
+
}
|
|
12456
|
+
}
|
|
12457
|
+
forward(config) {
|
|
12458
|
+
if (this._currentIndex < this._history.length - 1) {
|
|
12459
|
+
this.go(1, config);
|
|
12460
|
+
}
|
|
12461
|
+
}
|
|
12462
|
+
go(config, changeStateConfig) {
|
|
12463
|
+
if (typeof config === "number") {
|
|
12464
|
+
const targetIndex = this._currentIndex + config;
|
|
12465
|
+
if (this._history && targetIndex >= 0 && targetIndex < this._history.length) {
|
|
12466
|
+
const behaviorSubject = this.behaviorSubject;
|
|
12467
|
+
if (!changeStateConfig?.noEventAndPublish && behaviorSubject) {
|
|
12468
|
+
behaviorSubject.next({ ...this.getRouteData(), triggerPoint: "start" });
|
|
12469
|
+
}
|
|
12470
|
+
this._currentIndex = targetIndex;
|
|
12471
|
+
const entry = this._history[this._currentIndex];
|
|
12472
|
+
if (!changeStateConfig?.noEventAndPublish && behaviorSubject) {
|
|
12473
|
+
behaviorSubject.next({ ...this.getRouteData({ pathOrUrl: entry.url }), triggerPoint: "end" });
|
|
12474
|
+
}
|
|
12475
|
+
}
|
|
12476
|
+
return;
|
|
12477
|
+
}
|
|
12478
|
+
return super.go(config, changeStateConfig);
|
|
12479
|
+
}
|
|
12480
|
+
getData() {
|
|
12481
|
+
return this._history?.[this._currentIndex]?.data;
|
|
12482
|
+
}
|
|
12483
|
+
getUrl() {
|
|
12484
|
+
return this._history?.[this._currentIndex]?.url ?? this.config?.firstUrl ?? "/";
|
|
12485
|
+
}
|
|
12486
|
+
getHref() {
|
|
12487
|
+
return this.getUrl();
|
|
12488
|
+
}
|
|
12489
|
+
getPathName() {
|
|
12490
|
+
return this.getUrl().split("?")[0];
|
|
12491
|
+
}
|
|
12492
|
+
getSearch() {
|
|
12493
|
+
const parts = this.getUrl().split("?");
|
|
12494
|
+
return parts[1] ? `?${parts[1]}` : "";
|
|
12495
|
+
}
|
|
12496
|
+
getSearchParams(data) {
|
|
12497
|
+
const search = this.getSearch();
|
|
12498
|
+
const searchParams = new URLSearchParams(search);
|
|
12499
|
+
return UrlUtils.manipulateSearchParams(searchParams, data);
|
|
12500
|
+
}
|
|
12501
|
+
getHashSearchParams(data) {
|
|
12502
|
+
const url = this.getUrl();
|
|
12503
|
+
const hashIdx = url.indexOf("#");
|
|
12504
|
+
const hash = hashIdx !== -1 ? url.slice(hashIdx + 1) : "";
|
|
12505
|
+
const searchParams = new URLSearchParams(hash);
|
|
12506
|
+
return UrlUtils.manipulateSearchParams(searchParams, data);
|
|
12507
|
+
}
|
|
12508
|
+
pushAddSearchParam(params, state2) {
|
|
12509
|
+
const s = this.getSearchParams({ append: params });
|
|
12510
|
+
this.push({ searchParams: s }, state2);
|
|
12511
|
+
}
|
|
12512
|
+
pushDeleteHashSearchParam(name, state2) {
|
|
12513
|
+
const s = this.getHashSearchParams({ delete: Array.isArray(name) ? name : [name] });
|
|
12514
|
+
const url = this.getUrl().split("#")[0];
|
|
12515
|
+
const size = Array.from(s.entries()).length;
|
|
12516
|
+
this.push(url + (size > 0 ? "#" + s.toString() : ""), state2);
|
|
12517
|
+
}
|
|
12518
|
+
pushDeleteSearchParam(name, state2) {
|
|
12519
|
+
const s = this.getSearchParams({ delete: Array.isArray(name) ? name : [name] });
|
|
12520
|
+
this.push({ searchParams: s }, state2);
|
|
12521
|
+
}
|
|
12522
|
+
pushUpsertSearchParam(params, state2) {
|
|
12523
|
+
const s = this.getSearchParams();
|
|
12524
|
+
UrlUtils.upsertSearchParam(s, params);
|
|
12525
|
+
this.push({ searchParams: s }, state2);
|
|
12526
|
+
}
|
|
12527
|
+
replaceAddSearchParam(params, state2) {
|
|
12528
|
+
const s = this.getSearchParams({ append: params });
|
|
12529
|
+
this.replace({ searchParams: s }, state2);
|
|
12530
|
+
}
|
|
12531
|
+
replaceDeleteHashSearchParam(name, state2) {
|
|
12532
|
+
const s = this.getHashSearchParams({ delete: Array.isArray(name) ? name : [name] });
|
|
12533
|
+
const url = this.getUrl().split("#")[0];
|
|
12534
|
+
const size = Array.from(s.entries()).length;
|
|
12535
|
+
this.replace(url + (size > 0 ? "#" + s.toString() : ""), state2);
|
|
12536
|
+
}
|
|
12537
|
+
replaceDeleteSearchParam(name, state2) {
|
|
12538
|
+
const s = this.getSearchParams({ delete: Array.isArray(name) ? name : [name] });
|
|
12539
|
+
this.replace({ searchParams: s }, state2);
|
|
12540
|
+
}
|
|
12541
|
+
replaceUpsertSearchParam(params, state2) {
|
|
12542
|
+
const s = this.getSearchParamObject();
|
|
12543
|
+
UrlUtils.upsertSearchParam(s, params);
|
|
12544
|
+
this.replace({ searchParams: s }, state2);
|
|
12545
|
+
}
|
|
12546
|
+
};
|
|
12547
|
+
|
|
12399
12548
|
// src/elements/apps/SwcApp.ts
|
|
12400
12549
|
var __decorate = function(decorators, target, key, desc) {
|
|
12401
12550
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -12421,12 +12570,18 @@ var SwcApp = class SwcApp2 extends SwcHTMLElementBase {
|
|
|
12421
12570
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
12422
12571
|
if (userConfig) {
|
|
12423
12572
|
const _config = {
|
|
12424
|
-
routeType: "
|
|
12573
|
+
routeType: "element",
|
|
12425
12574
|
window,
|
|
12426
12575
|
...userConfig
|
|
12427
12576
|
};
|
|
12428
|
-
|
|
12429
|
-
|
|
12577
|
+
if (_config.routeType === "path") {
|
|
12578
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
12579
|
+
} else if (_config.routeType === "hash") {
|
|
12580
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
12581
|
+
} else {
|
|
12582
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
12583
|
+
}
|
|
12584
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
12430
12585
|
if (route.triggerPoint === "end") {
|
|
12431
12586
|
this.routingProcess(route.path);
|
|
12432
12587
|
}
|
|
@@ -12437,8 +12592,8 @@ var SwcApp = class SwcApp2 extends SwcHTMLElementBase {
|
|
|
12437
12592
|
});
|
|
12438
12593
|
this.simpleApplication = new SimpleApplication(option);
|
|
12439
12594
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
12440
|
-
if (this.
|
|
12441
|
-
otherInstanceSim.set(Router, this.
|
|
12595
|
+
if (this.router) {
|
|
12596
|
+
otherInstanceSim.set(Router, this.router);
|
|
12442
12597
|
}
|
|
12443
12598
|
this.simpleApplication.run(otherInstanceSim);
|
|
12444
12599
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -12450,7 +12605,7 @@ var SwcApp = class SwcApp2 extends SwcHTMLElementBase {
|
|
|
12450
12605
|
}
|
|
12451
12606
|
}
|
|
12452
12607
|
if (_config.path) {
|
|
12453
|
-
await this.
|
|
12608
|
+
await this.router?.go(_config.path);
|
|
12454
12609
|
}
|
|
12455
12610
|
}
|
|
12456
12611
|
} catch (e) {
|
|
@@ -12462,7 +12617,7 @@ var SwcApp = class SwcApp2 extends SwcHTMLElementBase {
|
|
|
12462
12617
|
this.routerSubscription?.unsubscribe();
|
|
12463
12618
|
}
|
|
12464
12619
|
async routing(path) {
|
|
12465
|
-
await this.
|
|
12620
|
+
await this.router?.go(path);
|
|
12466
12621
|
}
|
|
12467
12622
|
async routingProcess(path) {
|
|
12468
12623
|
await this.simpleApplication?.routing(path);
|
|
@@ -12498,12 +12653,18 @@ var SwcAppAnchor = class SwcAppAnchor2 extends SwcHTMLAnchorElementBase {
|
|
|
12498
12653
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
12499
12654
|
if (userConfig) {
|
|
12500
12655
|
const _config = {
|
|
12501
|
-
routeType: "
|
|
12656
|
+
routeType: "element",
|
|
12502
12657
|
window,
|
|
12503
12658
|
...userConfig
|
|
12504
12659
|
};
|
|
12505
|
-
|
|
12506
|
-
|
|
12660
|
+
if (_config.routeType === "path") {
|
|
12661
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
12662
|
+
} else if (_config.routeType === "hash") {
|
|
12663
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
12664
|
+
} else {
|
|
12665
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
12666
|
+
}
|
|
12667
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
12507
12668
|
if (route.triggerPoint === "end") {
|
|
12508
12669
|
this.routingProcess(route.path);
|
|
12509
12670
|
}
|
|
@@ -12514,8 +12675,8 @@ var SwcAppAnchor = class SwcAppAnchor2 extends SwcHTMLAnchorElementBase {
|
|
|
12514
12675
|
});
|
|
12515
12676
|
this.simpleApplication = new SimpleApplication(option);
|
|
12516
12677
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
12517
|
-
if (this.
|
|
12518
|
-
otherInstanceSim.set(Router, this.
|
|
12678
|
+
if (this.router) {
|
|
12679
|
+
otherInstanceSim.set(Router, this.router);
|
|
12519
12680
|
}
|
|
12520
12681
|
this.simpleApplication.run(otherInstanceSim);
|
|
12521
12682
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -12527,7 +12688,7 @@ var SwcAppAnchor = class SwcAppAnchor2 extends SwcHTMLAnchorElementBase {
|
|
|
12527
12688
|
}
|
|
12528
12689
|
}
|
|
12529
12690
|
if (_config.path) {
|
|
12530
|
-
await this.
|
|
12691
|
+
await this.router?.go(_config.path);
|
|
12531
12692
|
}
|
|
12532
12693
|
}
|
|
12533
12694
|
} catch (e) {
|
|
@@ -12539,7 +12700,7 @@ var SwcAppAnchor = class SwcAppAnchor2 extends SwcHTMLAnchorElementBase {
|
|
|
12539
12700
|
this.routerSubscription?.unsubscribe();
|
|
12540
12701
|
}
|
|
12541
12702
|
async routing(path) {
|
|
12542
|
-
await this.
|
|
12703
|
+
await this.router?.go(path);
|
|
12543
12704
|
}
|
|
12544
12705
|
async routingProcess(path) {
|
|
12545
12706
|
await this.simpleApplication?.routing(path);
|
|
@@ -12575,12 +12736,18 @@ var SwcAppArea = class SwcAppArea2 extends SwcHTMLAreaElementBase {
|
|
|
12575
12736
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
12576
12737
|
if (userConfig) {
|
|
12577
12738
|
const _config = {
|
|
12578
|
-
routeType: "
|
|
12739
|
+
routeType: "element",
|
|
12579
12740
|
window,
|
|
12580
12741
|
...userConfig
|
|
12581
12742
|
};
|
|
12582
|
-
|
|
12583
|
-
|
|
12743
|
+
if (_config.routeType === "path") {
|
|
12744
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
12745
|
+
} else if (_config.routeType === "hash") {
|
|
12746
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
12747
|
+
} else {
|
|
12748
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
12749
|
+
}
|
|
12750
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
12584
12751
|
if (route.triggerPoint === "end") {
|
|
12585
12752
|
this.routingProcess(route.path);
|
|
12586
12753
|
}
|
|
@@ -12591,8 +12758,8 @@ var SwcAppArea = class SwcAppArea2 extends SwcHTMLAreaElementBase {
|
|
|
12591
12758
|
});
|
|
12592
12759
|
this.simpleApplication = new SimpleApplication(option);
|
|
12593
12760
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
12594
|
-
if (this.
|
|
12595
|
-
otherInstanceSim.set(Router, this.
|
|
12761
|
+
if (this.router) {
|
|
12762
|
+
otherInstanceSim.set(Router, this.router);
|
|
12596
12763
|
}
|
|
12597
12764
|
this.simpleApplication.run(otherInstanceSim);
|
|
12598
12765
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -12604,7 +12771,7 @@ var SwcAppArea = class SwcAppArea2 extends SwcHTMLAreaElementBase {
|
|
|
12604
12771
|
}
|
|
12605
12772
|
}
|
|
12606
12773
|
if (_config.path) {
|
|
12607
|
-
await this.
|
|
12774
|
+
await this.router?.go(_config.path);
|
|
12608
12775
|
}
|
|
12609
12776
|
}
|
|
12610
12777
|
} catch (e) {
|
|
@@ -12616,7 +12783,7 @@ var SwcAppArea = class SwcAppArea2 extends SwcHTMLAreaElementBase {
|
|
|
12616
12783
|
this.routerSubscription?.unsubscribe();
|
|
12617
12784
|
}
|
|
12618
12785
|
async routing(path) {
|
|
12619
|
-
await this.
|
|
12786
|
+
await this.router?.go(path);
|
|
12620
12787
|
}
|
|
12621
12788
|
async routingProcess(path) {
|
|
12622
12789
|
await this.simpleApplication?.routing(path);
|
|
@@ -12652,12 +12819,18 @@ var SwcAppAudio = class SwcAppAudio2 extends SwcHTMLAudioElementBase {
|
|
|
12652
12819
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
12653
12820
|
if (userConfig) {
|
|
12654
12821
|
const _config = {
|
|
12655
|
-
routeType: "
|
|
12822
|
+
routeType: "element",
|
|
12656
12823
|
window,
|
|
12657
12824
|
...userConfig
|
|
12658
12825
|
};
|
|
12659
|
-
|
|
12660
|
-
|
|
12826
|
+
if (_config.routeType === "path") {
|
|
12827
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
12828
|
+
} else if (_config.routeType === "hash") {
|
|
12829
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
12830
|
+
} else {
|
|
12831
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
12832
|
+
}
|
|
12833
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
12661
12834
|
if (route.triggerPoint === "end") {
|
|
12662
12835
|
this.routingProcess(route.path);
|
|
12663
12836
|
}
|
|
@@ -12668,8 +12841,8 @@ var SwcAppAudio = class SwcAppAudio2 extends SwcHTMLAudioElementBase {
|
|
|
12668
12841
|
});
|
|
12669
12842
|
this.simpleApplication = new SimpleApplication(option);
|
|
12670
12843
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
12671
|
-
if (this.
|
|
12672
|
-
otherInstanceSim.set(Router, this.
|
|
12844
|
+
if (this.router) {
|
|
12845
|
+
otherInstanceSim.set(Router, this.router);
|
|
12673
12846
|
}
|
|
12674
12847
|
this.simpleApplication.run(otherInstanceSim);
|
|
12675
12848
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -12681,7 +12854,7 @@ var SwcAppAudio = class SwcAppAudio2 extends SwcHTMLAudioElementBase {
|
|
|
12681
12854
|
}
|
|
12682
12855
|
}
|
|
12683
12856
|
if (_config.path) {
|
|
12684
|
-
await this.
|
|
12857
|
+
await this.router?.go(_config.path);
|
|
12685
12858
|
}
|
|
12686
12859
|
}
|
|
12687
12860
|
} catch (e) {
|
|
@@ -12693,7 +12866,7 @@ var SwcAppAudio = class SwcAppAudio2 extends SwcHTMLAudioElementBase {
|
|
|
12693
12866
|
this.routerSubscription?.unsubscribe();
|
|
12694
12867
|
}
|
|
12695
12868
|
async routing(path) {
|
|
12696
|
-
await this.
|
|
12869
|
+
await this.router?.go(path);
|
|
12697
12870
|
}
|
|
12698
12871
|
async routingProcess(path) {
|
|
12699
12872
|
await this.simpleApplication?.routing(path);
|
|
@@ -12729,12 +12902,18 @@ var SwcAppBase = class SwcAppBase2 extends SwcHTMLBaseElementBase {
|
|
|
12729
12902
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
12730
12903
|
if (userConfig) {
|
|
12731
12904
|
const _config = {
|
|
12732
|
-
routeType: "
|
|
12905
|
+
routeType: "element",
|
|
12733
12906
|
window,
|
|
12734
12907
|
...userConfig
|
|
12735
12908
|
};
|
|
12736
|
-
|
|
12737
|
-
|
|
12909
|
+
if (_config.routeType === "path") {
|
|
12910
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
12911
|
+
} else if (_config.routeType === "hash") {
|
|
12912
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
12913
|
+
} else {
|
|
12914
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
12915
|
+
}
|
|
12916
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
12738
12917
|
if (route.triggerPoint === "end") {
|
|
12739
12918
|
this.routingProcess(route.path);
|
|
12740
12919
|
}
|
|
@@ -12745,8 +12924,8 @@ var SwcAppBase = class SwcAppBase2 extends SwcHTMLBaseElementBase {
|
|
|
12745
12924
|
});
|
|
12746
12925
|
this.simpleApplication = new SimpleApplication(option);
|
|
12747
12926
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
12748
|
-
if (this.
|
|
12749
|
-
otherInstanceSim.set(Router, this.
|
|
12927
|
+
if (this.router) {
|
|
12928
|
+
otherInstanceSim.set(Router, this.router);
|
|
12750
12929
|
}
|
|
12751
12930
|
this.simpleApplication.run(otherInstanceSim);
|
|
12752
12931
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -12758,7 +12937,7 @@ var SwcAppBase = class SwcAppBase2 extends SwcHTMLBaseElementBase {
|
|
|
12758
12937
|
}
|
|
12759
12938
|
}
|
|
12760
12939
|
if (_config.path) {
|
|
12761
|
-
await this.
|
|
12940
|
+
await this.router?.go(_config.path);
|
|
12762
12941
|
}
|
|
12763
12942
|
}
|
|
12764
12943
|
} catch (e) {
|
|
@@ -12770,7 +12949,7 @@ var SwcAppBase = class SwcAppBase2 extends SwcHTMLBaseElementBase {
|
|
|
12770
12949
|
this.routerSubscription?.unsubscribe();
|
|
12771
12950
|
}
|
|
12772
12951
|
async routing(path) {
|
|
12773
|
-
await this.
|
|
12952
|
+
await this.router?.go(path);
|
|
12774
12953
|
}
|
|
12775
12954
|
async routingProcess(path) {
|
|
12776
12955
|
await this.simpleApplication?.routing(path);
|
|
@@ -12806,12 +12985,18 @@ var SwcAppButton = class SwcAppButton2 extends SwcHTMLButtonElementBase {
|
|
|
12806
12985
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
12807
12986
|
if (userConfig) {
|
|
12808
12987
|
const _config = {
|
|
12809
|
-
routeType: "
|
|
12988
|
+
routeType: "element",
|
|
12810
12989
|
window,
|
|
12811
12990
|
...userConfig
|
|
12812
12991
|
};
|
|
12813
|
-
|
|
12814
|
-
|
|
12992
|
+
if (_config.routeType === "path") {
|
|
12993
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
12994
|
+
} else if (_config.routeType === "hash") {
|
|
12995
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
12996
|
+
} else {
|
|
12997
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
12998
|
+
}
|
|
12999
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
12815
13000
|
if (route.triggerPoint === "end") {
|
|
12816
13001
|
this.routingProcess(route.path);
|
|
12817
13002
|
}
|
|
@@ -12822,8 +13007,8 @@ var SwcAppButton = class SwcAppButton2 extends SwcHTMLButtonElementBase {
|
|
|
12822
13007
|
});
|
|
12823
13008
|
this.simpleApplication = new SimpleApplication(option);
|
|
12824
13009
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
12825
|
-
if (this.
|
|
12826
|
-
otherInstanceSim.set(Router, this.
|
|
13010
|
+
if (this.router) {
|
|
13011
|
+
otherInstanceSim.set(Router, this.router);
|
|
12827
13012
|
}
|
|
12828
13013
|
this.simpleApplication.run(otherInstanceSim);
|
|
12829
13014
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -12835,7 +13020,7 @@ var SwcAppButton = class SwcAppButton2 extends SwcHTMLButtonElementBase {
|
|
|
12835
13020
|
}
|
|
12836
13021
|
}
|
|
12837
13022
|
if (_config.path) {
|
|
12838
|
-
await this.
|
|
13023
|
+
await this.router?.go(_config.path);
|
|
12839
13024
|
}
|
|
12840
13025
|
}
|
|
12841
13026
|
} catch (e) {
|
|
@@ -12847,7 +13032,7 @@ var SwcAppButton = class SwcAppButton2 extends SwcHTMLButtonElementBase {
|
|
|
12847
13032
|
this.routerSubscription?.unsubscribe();
|
|
12848
13033
|
}
|
|
12849
13034
|
async routing(path) {
|
|
12850
|
-
await this.
|
|
13035
|
+
await this.router?.go(path);
|
|
12851
13036
|
}
|
|
12852
13037
|
async routingProcess(path) {
|
|
12853
13038
|
await this.simpleApplication?.routing(path);
|
|
@@ -12883,12 +13068,18 @@ var SwcAppCanvas = class SwcAppCanvas2 extends SwcHTMLCanvasElementBase {
|
|
|
12883
13068
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
12884
13069
|
if (userConfig) {
|
|
12885
13070
|
const _config = {
|
|
12886
|
-
routeType: "
|
|
13071
|
+
routeType: "element",
|
|
12887
13072
|
window,
|
|
12888
13073
|
...userConfig
|
|
12889
13074
|
};
|
|
12890
|
-
|
|
12891
|
-
|
|
13075
|
+
if (_config.routeType === "path") {
|
|
13076
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13077
|
+
} else if (_config.routeType === "hash") {
|
|
13078
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13079
|
+
} else {
|
|
13080
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13081
|
+
}
|
|
13082
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
12892
13083
|
if (route.triggerPoint === "end") {
|
|
12893
13084
|
this.routingProcess(route.path);
|
|
12894
13085
|
}
|
|
@@ -12899,8 +13090,8 @@ var SwcAppCanvas = class SwcAppCanvas2 extends SwcHTMLCanvasElementBase {
|
|
|
12899
13090
|
});
|
|
12900
13091
|
this.simpleApplication = new SimpleApplication(option);
|
|
12901
13092
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
12902
|
-
if (this.
|
|
12903
|
-
otherInstanceSim.set(Router, this.
|
|
13093
|
+
if (this.router) {
|
|
13094
|
+
otherInstanceSim.set(Router, this.router);
|
|
12904
13095
|
}
|
|
12905
13096
|
this.simpleApplication.run(otherInstanceSim);
|
|
12906
13097
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -12912,7 +13103,7 @@ var SwcAppCanvas = class SwcAppCanvas2 extends SwcHTMLCanvasElementBase {
|
|
|
12912
13103
|
}
|
|
12913
13104
|
}
|
|
12914
13105
|
if (_config.path) {
|
|
12915
|
-
await this.
|
|
13106
|
+
await this.router?.go(_config.path);
|
|
12916
13107
|
}
|
|
12917
13108
|
}
|
|
12918
13109
|
} catch (e) {
|
|
@@ -12924,7 +13115,7 @@ var SwcAppCanvas = class SwcAppCanvas2 extends SwcHTMLCanvasElementBase {
|
|
|
12924
13115
|
this.routerSubscription?.unsubscribe();
|
|
12925
13116
|
}
|
|
12926
13117
|
async routing(path) {
|
|
12927
|
-
await this.
|
|
13118
|
+
await this.router?.go(path);
|
|
12928
13119
|
}
|
|
12929
13120
|
async routingProcess(path) {
|
|
12930
13121
|
await this.simpleApplication?.routing(path);
|
|
@@ -12960,12 +13151,18 @@ var SwcAppData = class SwcAppData2 extends SwcHTMLDataElementBase {
|
|
|
12960
13151
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
12961
13152
|
if (userConfig) {
|
|
12962
13153
|
const _config = {
|
|
12963
|
-
routeType: "
|
|
13154
|
+
routeType: "element",
|
|
12964
13155
|
window,
|
|
12965
13156
|
...userConfig
|
|
12966
13157
|
};
|
|
12967
|
-
|
|
12968
|
-
|
|
13158
|
+
if (_config.routeType === "path") {
|
|
13159
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13160
|
+
} else if (_config.routeType === "hash") {
|
|
13161
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13162
|
+
} else {
|
|
13163
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13164
|
+
}
|
|
13165
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
12969
13166
|
if (route.triggerPoint === "end") {
|
|
12970
13167
|
this.routingProcess(route.path);
|
|
12971
13168
|
}
|
|
@@ -12976,8 +13173,8 @@ var SwcAppData = class SwcAppData2 extends SwcHTMLDataElementBase {
|
|
|
12976
13173
|
});
|
|
12977
13174
|
this.simpleApplication = new SimpleApplication(option);
|
|
12978
13175
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
12979
|
-
if (this.
|
|
12980
|
-
otherInstanceSim.set(Router, this.
|
|
13176
|
+
if (this.router) {
|
|
13177
|
+
otherInstanceSim.set(Router, this.router);
|
|
12981
13178
|
}
|
|
12982
13179
|
this.simpleApplication.run(otherInstanceSim);
|
|
12983
13180
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -12989,7 +13186,7 @@ var SwcAppData = class SwcAppData2 extends SwcHTMLDataElementBase {
|
|
|
12989
13186
|
}
|
|
12990
13187
|
}
|
|
12991
13188
|
if (_config.path) {
|
|
12992
|
-
await this.
|
|
13189
|
+
await this.router?.go(_config.path);
|
|
12993
13190
|
}
|
|
12994
13191
|
}
|
|
12995
13192
|
} catch (e) {
|
|
@@ -13001,7 +13198,7 @@ var SwcAppData = class SwcAppData2 extends SwcHTMLDataElementBase {
|
|
|
13001
13198
|
this.routerSubscription?.unsubscribe();
|
|
13002
13199
|
}
|
|
13003
13200
|
async routing(path) {
|
|
13004
|
-
await this.
|
|
13201
|
+
await this.router?.go(path);
|
|
13005
13202
|
}
|
|
13006
13203
|
async routingProcess(path) {
|
|
13007
13204
|
await this.simpleApplication?.routing(path);
|
|
@@ -13037,12 +13234,18 @@ var SwcAppDataList = class SwcAppDataList2 extends SwcHTMLDataListElementBase {
|
|
|
13037
13234
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13038
13235
|
if (userConfig) {
|
|
13039
13236
|
const _config = {
|
|
13040
|
-
routeType: "
|
|
13237
|
+
routeType: "element",
|
|
13041
13238
|
window,
|
|
13042
13239
|
...userConfig
|
|
13043
13240
|
};
|
|
13044
|
-
|
|
13045
|
-
|
|
13241
|
+
if (_config.routeType === "path") {
|
|
13242
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13243
|
+
} else if (_config.routeType === "hash") {
|
|
13244
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13245
|
+
} else {
|
|
13246
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13247
|
+
}
|
|
13248
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13046
13249
|
if (route.triggerPoint === "end") {
|
|
13047
13250
|
this.routingProcess(route.path);
|
|
13048
13251
|
}
|
|
@@ -13053,8 +13256,8 @@ var SwcAppDataList = class SwcAppDataList2 extends SwcHTMLDataListElementBase {
|
|
|
13053
13256
|
});
|
|
13054
13257
|
this.simpleApplication = new SimpleApplication(option);
|
|
13055
13258
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13056
|
-
if (this.
|
|
13057
|
-
otherInstanceSim.set(Router, this.
|
|
13259
|
+
if (this.router) {
|
|
13260
|
+
otherInstanceSim.set(Router, this.router);
|
|
13058
13261
|
}
|
|
13059
13262
|
this.simpleApplication.run(otherInstanceSim);
|
|
13060
13263
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13066,7 +13269,7 @@ var SwcAppDataList = class SwcAppDataList2 extends SwcHTMLDataListElementBase {
|
|
|
13066
13269
|
}
|
|
13067
13270
|
}
|
|
13068
13271
|
if (_config.path) {
|
|
13069
|
-
await this.
|
|
13272
|
+
await this.router?.go(_config.path);
|
|
13070
13273
|
}
|
|
13071
13274
|
}
|
|
13072
13275
|
} catch (e) {
|
|
@@ -13078,7 +13281,7 @@ var SwcAppDataList = class SwcAppDataList2 extends SwcHTMLDataListElementBase {
|
|
|
13078
13281
|
this.routerSubscription?.unsubscribe();
|
|
13079
13282
|
}
|
|
13080
13283
|
async routing(path) {
|
|
13081
|
-
await this.
|
|
13284
|
+
await this.router?.go(path);
|
|
13082
13285
|
}
|
|
13083
13286
|
async routingProcess(path) {
|
|
13084
13287
|
await this.simpleApplication?.routing(path);
|
|
@@ -13114,12 +13317,18 @@ var SwcAppDetails = class SwcAppDetails2 extends SwcHTMLDetailsElementBase {
|
|
|
13114
13317
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13115
13318
|
if (userConfig) {
|
|
13116
13319
|
const _config = {
|
|
13117
|
-
routeType: "
|
|
13320
|
+
routeType: "element",
|
|
13118
13321
|
window,
|
|
13119
13322
|
...userConfig
|
|
13120
13323
|
};
|
|
13121
|
-
|
|
13122
|
-
|
|
13324
|
+
if (_config.routeType === "path") {
|
|
13325
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13326
|
+
} else if (_config.routeType === "hash") {
|
|
13327
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13328
|
+
} else {
|
|
13329
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13330
|
+
}
|
|
13331
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13123
13332
|
if (route.triggerPoint === "end") {
|
|
13124
13333
|
this.routingProcess(route.path);
|
|
13125
13334
|
}
|
|
@@ -13130,8 +13339,8 @@ var SwcAppDetails = class SwcAppDetails2 extends SwcHTMLDetailsElementBase {
|
|
|
13130
13339
|
});
|
|
13131
13340
|
this.simpleApplication = new SimpleApplication(option);
|
|
13132
13341
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13133
|
-
if (this.
|
|
13134
|
-
otherInstanceSim.set(Router, this.
|
|
13342
|
+
if (this.router) {
|
|
13343
|
+
otherInstanceSim.set(Router, this.router);
|
|
13135
13344
|
}
|
|
13136
13345
|
this.simpleApplication.run(otherInstanceSim);
|
|
13137
13346
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13143,7 +13352,7 @@ var SwcAppDetails = class SwcAppDetails2 extends SwcHTMLDetailsElementBase {
|
|
|
13143
13352
|
}
|
|
13144
13353
|
}
|
|
13145
13354
|
if (_config.path) {
|
|
13146
|
-
await this.
|
|
13355
|
+
await this.router?.go(_config.path);
|
|
13147
13356
|
}
|
|
13148
13357
|
}
|
|
13149
13358
|
} catch (e) {
|
|
@@ -13155,7 +13364,7 @@ var SwcAppDetails = class SwcAppDetails2 extends SwcHTMLDetailsElementBase {
|
|
|
13155
13364
|
this.routerSubscription?.unsubscribe();
|
|
13156
13365
|
}
|
|
13157
13366
|
async routing(path) {
|
|
13158
|
-
await this.
|
|
13367
|
+
await this.router?.go(path);
|
|
13159
13368
|
}
|
|
13160
13369
|
async routingProcess(path) {
|
|
13161
13370
|
await this.simpleApplication?.routing(path);
|
|
@@ -13191,12 +13400,18 @@ var SwcAppDialog = class SwcAppDialog2 extends SwcHTMLDialogElementBase {
|
|
|
13191
13400
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13192
13401
|
if (userConfig) {
|
|
13193
13402
|
const _config = {
|
|
13194
|
-
routeType: "
|
|
13403
|
+
routeType: "element",
|
|
13195
13404
|
window,
|
|
13196
13405
|
...userConfig
|
|
13197
13406
|
};
|
|
13198
|
-
|
|
13199
|
-
|
|
13407
|
+
if (_config.routeType === "path") {
|
|
13408
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13409
|
+
} else if (_config.routeType === "hash") {
|
|
13410
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13411
|
+
} else {
|
|
13412
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13413
|
+
}
|
|
13414
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13200
13415
|
if (route.triggerPoint === "end") {
|
|
13201
13416
|
this.routingProcess(route.path);
|
|
13202
13417
|
}
|
|
@@ -13207,8 +13422,8 @@ var SwcAppDialog = class SwcAppDialog2 extends SwcHTMLDialogElementBase {
|
|
|
13207
13422
|
});
|
|
13208
13423
|
this.simpleApplication = new SimpleApplication(option);
|
|
13209
13424
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13210
|
-
if (this.
|
|
13211
|
-
otherInstanceSim.set(Router, this.
|
|
13425
|
+
if (this.router) {
|
|
13426
|
+
otherInstanceSim.set(Router, this.router);
|
|
13212
13427
|
}
|
|
13213
13428
|
this.simpleApplication.run(otherInstanceSim);
|
|
13214
13429
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13220,7 +13435,7 @@ var SwcAppDialog = class SwcAppDialog2 extends SwcHTMLDialogElementBase {
|
|
|
13220
13435
|
}
|
|
13221
13436
|
}
|
|
13222
13437
|
if (_config.path) {
|
|
13223
|
-
await this.
|
|
13438
|
+
await this.router?.go(_config.path);
|
|
13224
13439
|
}
|
|
13225
13440
|
}
|
|
13226
13441
|
} catch (e) {
|
|
@@ -13232,7 +13447,7 @@ var SwcAppDialog = class SwcAppDialog2 extends SwcHTMLDialogElementBase {
|
|
|
13232
13447
|
this.routerSubscription?.unsubscribe();
|
|
13233
13448
|
}
|
|
13234
13449
|
async routing(path) {
|
|
13235
|
-
await this.
|
|
13450
|
+
await this.router?.go(path);
|
|
13236
13451
|
}
|
|
13237
13452
|
async routingProcess(path) {
|
|
13238
13453
|
await this.simpleApplication?.routing(path);
|
|
@@ -13268,12 +13483,18 @@ var SwcAppDiv = class SwcAppDiv2 extends SwcHTMLDivElementBase {
|
|
|
13268
13483
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13269
13484
|
if (userConfig) {
|
|
13270
13485
|
const _config = {
|
|
13271
|
-
routeType: "
|
|
13486
|
+
routeType: "element",
|
|
13272
13487
|
window,
|
|
13273
13488
|
...userConfig
|
|
13274
13489
|
};
|
|
13275
|
-
|
|
13276
|
-
|
|
13490
|
+
if (_config.routeType === "path") {
|
|
13491
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13492
|
+
} else if (_config.routeType === "hash") {
|
|
13493
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13494
|
+
} else {
|
|
13495
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13496
|
+
}
|
|
13497
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13277
13498
|
if (route.triggerPoint === "end") {
|
|
13278
13499
|
this.routingProcess(route.path);
|
|
13279
13500
|
}
|
|
@@ -13284,8 +13505,8 @@ var SwcAppDiv = class SwcAppDiv2 extends SwcHTMLDivElementBase {
|
|
|
13284
13505
|
});
|
|
13285
13506
|
this.simpleApplication = new SimpleApplication(option);
|
|
13286
13507
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13287
|
-
if (this.
|
|
13288
|
-
otherInstanceSim.set(Router, this.
|
|
13508
|
+
if (this.router) {
|
|
13509
|
+
otherInstanceSim.set(Router, this.router);
|
|
13289
13510
|
}
|
|
13290
13511
|
this.simpleApplication.run(otherInstanceSim);
|
|
13291
13512
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13297,7 +13518,7 @@ var SwcAppDiv = class SwcAppDiv2 extends SwcHTMLDivElementBase {
|
|
|
13297
13518
|
}
|
|
13298
13519
|
}
|
|
13299
13520
|
if (_config.path) {
|
|
13300
|
-
await this.
|
|
13521
|
+
await this.router?.go(_config.path);
|
|
13301
13522
|
}
|
|
13302
13523
|
}
|
|
13303
13524
|
} catch (e) {
|
|
@@ -13309,7 +13530,7 @@ var SwcAppDiv = class SwcAppDiv2 extends SwcHTMLDivElementBase {
|
|
|
13309
13530
|
this.routerSubscription?.unsubscribe();
|
|
13310
13531
|
}
|
|
13311
13532
|
async routing(path) {
|
|
13312
|
-
await this.
|
|
13533
|
+
await this.router?.go(path);
|
|
13313
13534
|
}
|
|
13314
13535
|
async routingProcess(path) {
|
|
13315
13536
|
await this.simpleApplication?.routing(path);
|
|
@@ -13345,12 +13566,18 @@ var SwcAppDl = class SwcAppDl2 extends SwcHTMLDListElementBase {
|
|
|
13345
13566
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13346
13567
|
if (userConfig) {
|
|
13347
13568
|
const _config = {
|
|
13348
|
-
routeType: "
|
|
13569
|
+
routeType: "element",
|
|
13349
13570
|
window,
|
|
13350
13571
|
...userConfig
|
|
13351
13572
|
};
|
|
13352
|
-
|
|
13353
|
-
|
|
13573
|
+
if (_config.routeType === "path") {
|
|
13574
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13575
|
+
} else if (_config.routeType === "hash") {
|
|
13576
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13577
|
+
} else {
|
|
13578
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13579
|
+
}
|
|
13580
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13354
13581
|
if (route.triggerPoint === "end") {
|
|
13355
13582
|
this.routingProcess(route.path);
|
|
13356
13583
|
}
|
|
@@ -13361,8 +13588,8 @@ var SwcAppDl = class SwcAppDl2 extends SwcHTMLDListElementBase {
|
|
|
13361
13588
|
});
|
|
13362
13589
|
this.simpleApplication = new SimpleApplication(option);
|
|
13363
13590
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13364
|
-
if (this.
|
|
13365
|
-
otherInstanceSim.set(Router, this.
|
|
13591
|
+
if (this.router) {
|
|
13592
|
+
otherInstanceSim.set(Router, this.router);
|
|
13366
13593
|
}
|
|
13367
13594
|
this.simpleApplication.run(otherInstanceSim);
|
|
13368
13595
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13374,7 +13601,7 @@ var SwcAppDl = class SwcAppDl2 extends SwcHTMLDListElementBase {
|
|
|
13374
13601
|
}
|
|
13375
13602
|
}
|
|
13376
13603
|
if (_config.path) {
|
|
13377
|
-
await this.
|
|
13604
|
+
await this.router?.go(_config.path);
|
|
13378
13605
|
}
|
|
13379
13606
|
}
|
|
13380
13607
|
} catch (e) {
|
|
@@ -13386,7 +13613,7 @@ var SwcAppDl = class SwcAppDl2 extends SwcHTMLDListElementBase {
|
|
|
13386
13613
|
this.routerSubscription?.unsubscribe();
|
|
13387
13614
|
}
|
|
13388
13615
|
async routing(path) {
|
|
13389
|
-
await this.
|
|
13616
|
+
await this.router?.go(path);
|
|
13390
13617
|
}
|
|
13391
13618
|
async routingProcess(path) {
|
|
13392
13619
|
await this.simpleApplication?.routing(path);
|
|
@@ -13422,12 +13649,18 @@ var SwcAppEmbed = class SwcAppEmbed2 extends SwcHTMLEmbedElementBase {
|
|
|
13422
13649
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13423
13650
|
if (userConfig) {
|
|
13424
13651
|
const _config = {
|
|
13425
|
-
routeType: "
|
|
13652
|
+
routeType: "element",
|
|
13426
13653
|
window,
|
|
13427
13654
|
...userConfig
|
|
13428
13655
|
};
|
|
13429
|
-
|
|
13430
|
-
|
|
13656
|
+
if (_config.routeType === "path") {
|
|
13657
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13658
|
+
} else if (_config.routeType === "hash") {
|
|
13659
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13660
|
+
} else {
|
|
13661
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13662
|
+
}
|
|
13663
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13431
13664
|
if (route.triggerPoint === "end") {
|
|
13432
13665
|
this.routingProcess(route.path);
|
|
13433
13666
|
}
|
|
@@ -13438,8 +13671,8 @@ var SwcAppEmbed = class SwcAppEmbed2 extends SwcHTMLEmbedElementBase {
|
|
|
13438
13671
|
});
|
|
13439
13672
|
this.simpleApplication = new SimpleApplication(option);
|
|
13440
13673
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13441
|
-
if (this.
|
|
13442
|
-
otherInstanceSim.set(Router, this.
|
|
13674
|
+
if (this.router) {
|
|
13675
|
+
otherInstanceSim.set(Router, this.router);
|
|
13443
13676
|
}
|
|
13444
13677
|
this.simpleApplication.run(otherInstanceSim);
|
|
13445
13678
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13451,7 +13684,7 @@ var SwcAppEmbed = class SwcAppEmbed2 extends SwcHTMLEmbedElementBase {
|
|
|
13451
13684
|
}
|
|
13452
13685
|
}
|
|
13453
13686
|
if (_config.path) {
|
|
13454
|
-
await this.
|
|
13687
|
+
await this.router?.go(_config.path);
|
|
13455
13688
|
}
|
|
13456
13689
|
}
|
|
13457
13690
|
} catch (e) {
|
|
@@ -13463,7 +13696,7 @@ var SwcAppEmbed = class SwcAppEmbed2 extends SwcHTMLEmbedElementBase {
|
|
|
13463
13696
|
this.routerSubscription?.unsubscribe();
|
|
13464
13697
|
}
|
|
13465
13698
|
async routing(path) {
|
|
13466
|
-
await this.
|
|
13699
|
+
await this.router?.go(path);
|
|
13467
13700
|
}
|
|
13468
13701
|
async routingProcess(path) {
|
|
13469
13702
|
await this.simpleApplication?.routing(path);
|
|
@@ -13499,12 +13732,18 @@ var SwcAppFieldSet = class SwcAppFieldSet2 extends SwcHTMLFieldSetElementBase {
|
|
|
13499
13732
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13500
13733
|
if (userConfig) {
|
|
13501
13734
|
const _config = {
|
|
13502
|
-
routeType: "
|
|
13735
|
+
routeType: "element",
|
|
13503
13736
|
window,
|
|
13504
13737
|
...userConfig
|
|
13505
13738
|
};
|
|
13506
|
-
|
|
13507
|
-
|
|
13739
|
+
if (_config.routeType === "path") {
|
|
13740
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13741
|
+
} else if (_config.routeType === "hash") {
|
|
13742
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13743
|
+
} else {
|
|
13744
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13745
|
+
}
|
|
13746
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13508
13747
|
if (route.triggerPoint === "end") {
|
|
13509
13748
|
this.routingProcess(route.path);
|
|
13510
13749
|
}
|
|
@@ -13515,8 +13754,8 @@ var SwcAppFieldSet = class SwcAppFieldSet2 extends SwcHTMLFieldSetElementBase {
|
|
|
13515
13754
|
});
|
|
13516
13755
|
this.simpleApplication = new SimpleApplication(option);
|
|
13517
13756
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13518
|
-
if (this.
|
|
13519
|
-
otherInstanceSim.set(Router, this.
|
|
13757
|
+
if (this.router) {
|
|
13758
|
+
otherInstanceSim.set(Router, this.router);
|
|
13520
13759
|
}
|
|
13521
13760
|
this.simpleApplication.run(otherInstanceSim);
|
|
13522
13761
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13528,7 +13767,7 @@ var SwcAppFieldSet = class SwcAppFieldSet2 extends SwcHTMLFieldSetElementBase {
|
|
|
13528
13767
|
}
|
|
13529
13768
|
}
|
|
13530
13769
|
if (_config.path) {
|
|
13531
|
-
await this.
|
|
13770
|
+
await this.router?.go(_config.path);
|
|
13532
13771
|
}
|
|
13533
13772
|
}
|
|
13534
13773
|
} catch (e) {
|
|
@@ -13540,7 +13779,7 @@ var SwcAppFieldSet = class SwcAppFieldSet2 extends SwcHTMLFieldSetElementBase {
|
|
|
13540
13779
|
this.routerSubscription?.unsubscribe();
|
|
13541
13780
|
}
|
|
13542
13781
|
async routing(path) {
|
|
13543
|
-
await this.
|
|
13782
|
+
await this.router?.go(path);
|
|
13544
13783
|
}
|
|
13545
13784
|
async routingProcess(path) {
|
|
13546
13785
|
await this.simpleApplication?.routing(path);
|
|
@@ -13576,12 +13815,18 @@ var SwcAppForm = class SwcAppForm2 extends SwcHTMLFormElementBase {
|
|
|
13576
13815
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13577
13816
|
if (userConfig) {
|
|
13578
13817
|
const _config = {
|
|
13579
|
-
routeType: "
|
|
13818
|
+
routeType: "element",
|
|
13580
13819
|
window,
|
|
13581
13820
|
...userConfig
|
|
13582
13821
|
};
|
|
13583
|
-
|
|
13584
|
-
|
|
13822
|
+
if (_config.routeType === "path") {
|
|
13823
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13824
|
+
} else if (_config.routeType === "hash") {
|
|
13825
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13826
|
+
} else {
|
|
13827
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13828
|
+
}
|
|
13829
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13585
13830
|
if (route.triggerPoint === "end") {
|
|
13586
13831
|
this.routingProcess(route.path);
|
|
13587
13832
|
}
|
|
@@ -13592,8 +13837,8 @@ var SwcAppForm = class SwcAppForm2 extends SwcHTMLFormElementBase {
|
|
|
13592
13837
|
});
|
|
13593
13838
|
this.simpleApplication = new SimpleApplication(option);
|
|
13594
13839
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13595
|
-
if (this.
|
|
13596
|
-
otherInstanceSim.set(Router, this.
|
|
13840
|
+
if (this.router) {
|
|
13841
|
+
otherInstanceSim.set(Router, this.router);
|
|
13597
13842
|
}
|
|
13598
13843
|
this.simpleApplication.run(otherInstanceSim);
|
|
13599
13844
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13605,7 +13850,7 @@ var SwcAppForm = class SwcAppForm2 extends SwcHTMLFormElementBase {
|
|
|
13605
13850
|
}
|
|
13606
13851
|
}
|
|
13607
13852
|
if (_config.path) {
|
|
13608
|
-
await this.
|
|
13853
|
+
await this.router?.go(_config.path);
|
|
13609
13854
|
}
|
|
13610
13855
|
}
|
|
13611
13856
|
} catch (e) {
|
|
@@ -13617,7 +13862,7 @@ var SwcAppForm = class SwcAppForm2 extends SwcHTMLFormElementBase {
|
|
|
13617
13862
|
this.routerSubscription?.unsubscribe();
|
|
13618
13863
|
}
|
|
13619
13864
|
async routing(path) {
|
|
13620
|
-
await this.
|
|
13865
|
+
await this.router?.go(path);
|
|
13621
13866
|
}
|
|
13622
13867
|
async routingProcess(path) {
|
|
13623
13868
|
await this.simpleApplication?.routing(path);
|
|
@@ -13653,12 +13898,18 @@ var SwcAppHr = class SwcAppHr2 extends SwcHTMLHRElementBase {
|
|
|
13653
13898
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13654
13899
|
if (userConfig) {
|
|
13655
13900
|
const _config = {
|
|
13656
|
-
routeType: "
|
|
13901
|
+
routeType: "element",
|
|
13657
13902
|
window,
|
|
13658
13903
|
...userConfig
|
|
13659
13904
|
};
|
|
13660
|
-
|
|
13661
|
-
|
|
13905
|
+
if (_config.routeType === "path") {
|
|
13906
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13907
|
+
} else if (_config.routeType === "hash") {
|
|
13908
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13909
|
+
} else {
|
|
13910
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13911
|
+
}
|
|
13912
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13662
13913
|
if (route.triggerPoint === "end") {
|
|
13663
13914
|
this.routingProcess(route.path);
|
|
13664
13915
|
}
|
|
@@ -13669,8 +13920,8 @@ var SwcAppHr = class SwcAppHr2 extends SwcHTMLHRElementBase {
|
|
|
13669
13920
|
});
|
|
13670
13921
|
this.simpleApplication = new SimpleApplication(option);
|
|
13671
13922
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13672
|
-
if (this.
|
|
13673
|
-
otherInstanceSim.set(Router, this.
|
|
13923
|
+
if (this.router) {
|
|
13924
|
+
otherInstanceSim.set(Router, this.router);
|
|
13674
13925
|
}
|
|
13675
13926
|
this.simpleApplication.run(otherInstanceSim);
|
|
13676
13927
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13682,7 +13933,7 @@ var SwcAppHr = class SwcAppHr2 extends SwcHTMLHRElementBase {
|
|
|
13682
13933
|
}
|
|
13683
13934
|
}
|
|
13684
13935
|
if (_config.path) {
|
|
13685
|
-
await this.
|
|
13936
|
+
await this.router?.go(_config.path);
|
|
13686
13937
|
}
|
|
13687
13938
|
}
|
|
13688
13939
|
} catch (e) {
|
|
@@ -13694,7 +13945,7 @@ var SwcAppHr = class SwcAppHr2 extends SwcHTMLHRElementBase {
|
|
|
13694
13945
|
this.routerSubscription?.unsubscribe();
|
|
13695
13946
|
}
|
|
13696
13947
|
async routing(path) {
|
|
13697
|
-
await this.
|
|
13948
|
+
await this.router?.go(path);
|
|
13698
13949
|
}
|
|
13699
13950
|
async routingProcess(path) {
|
|
13700
13951
|
await this.simpleApplication?.routing(path);
|
|
@@ -13730,12 +13981,18 @@ var SwcAppIFrame = class SwcAppIFrame2 extends SwcHTMLIFrameElementBase {
|
|
|
13730
13981
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13731
13982
|
if (userConfig) {
|
|
13732
13983
|
const _config = {
|
|
13733
|
-
routeType: "
|
|
13984
|
+
routeType: "element",
|
|
13734
13985
|
window,
|
|
13735
13986
|
...userConfig
|
|
13736
13987
|
};
|
|
13737
|
-
|
|
13738
|
-
|
|
13988
|
+
if (_config.routeType === "path") {
|
|
13989
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
13990
|
+
} else if (_config.routeType === "hash") {
|
|
13991
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
13992
|
+
} else {
|
|
13993
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
13994
|
+
}
|
|
13995
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13739
13996
|
if (route.triggerPoint === "end") {
|
|
13740
13997
|
this.routingProcess(route.path);
|
|
13741
13998
|
}
|
|
@@ -13746,8 +14003,8 @@ var SwcAppIFrame = class SwcAppIFrame2 extends SwcHTMLIFrameElementBase {
|
|
|
13746
14003
|
});
|
|
13747
14004
|
this.simpleApplication = new SimpleApplication(option);
|
|
13748
14005
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13749
|
-
if (this.
|
|
13750
|
-
otherInstanceSim.set(Router, this.
|
|
14006
|
+
if (this.router) {
|
|
14007
|
+
otherInstanceSim.set(Router, this.router);
|
|
13751
14008
|
}
|
|
13752
14009
|
this.simpleApplication.run(otherInstanceSim);
|
|
13753
14010
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13759,7 +14016,7 @@ var SwcAppIFrame = class SwcAppIFrame2 extends SwcHTMLIFrameElementBase {
|
|
|
13759
14016
|
}
|
|
13760
14017
|
}
|
|
13761
14018
|
if (_config.path) {
|
|
13762
|
-
await this.
|
|
14019
|
+
await this.router?.go(_config.path);
|
|
13763
14020
|
}
|
|
13764
14021
|
}
|
|
13765
14022
|
} catch (e) {
|
|
@@ -13771,7 +14028,7 @@ var SwcAppIFrame = class SwcAppIFrame2 extends SwcHTMLIFrameElementBase {
|
|
|
13771
14028
|
this.routerSubscription?.unsubscribe();
|
|
13772
14029
|
}
|
|
13773
14030
|
async routing(path) {
|
|
13774
|
-
await this.
|
|
14031
|
+
await this.router?.go(path);
|
|
13775
14032
|
}
|
|
13776
14033
|
async routingProcess(path) {
|
|
13777
14034
|
await this.simpleApplication?.routing(path);
|
|
@@ -13807,12 +14064,18 @@ var SwcAppImage = class SwcAppImage2 extends SwcHTMLImageElementBase {
|
|
|
13807
14064
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13808
14065
|
if (userConfig) {
|
|
13809
14066
|
const _config = {
|
|
13810
|
-
routeType: "
|
|
14067
|
+
routeType: "element",
|
|
13811
14068
|
window,
|
|
13812
14069
|
...userConfig
|
|
13813
14070
|
};
|
|
13814
|
-
|
|
13815
|
-
|
|
14071
|
+
if (_config.routeType === "path") {
|
|
14072
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14073
|
+
} else if (_config.routeType === "hash") {
|
|
14074
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14075
|
+
} else {
|
|
14076
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14077
|
+
}
|
|
14078
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13816
14079
|
if (route.triggerPoint === "end") {
|
|
13817
14080
|
this.routingProcess(route.path);
|
|
13818
14081
|
}
|
|
@@ -13823,8 +14086,8 @@ var SwcAppImage = class SwcAppImage2 extends SwcHTMLImageElementBase {
|
|
|
13823
14086
|
});
|
|
13824
14087
|
this.simpleApplication = new SimpleApplication(option);
|
|
13825
14088
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13826
|
-
if (this.
|
|
13827
|
-
otherInstanceSim.set(Router, this.
|
|
14089
|
+
if (this.router) {
|
|
14090
|
+
otherInstanceSim.set(Router, this.router);
|
|
13828
14091
|
}
|
|
13829
14092
|
this.simpleApplication.run(otherInstanceSim);
|
|
13830
14093
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13836,7 +14099,7 @@ var SwcAppImage = class SwcAppImage2 extends SwcHTMLImageElementBase {
|
|
|
13836
14099
|
}
|
|
13837
14100
|
}
|
|
13838
14101
|
if (_config.path) {
|
|
13839
|
-
await this.
|
|
14102
|
+
await this.router?.go(_config.path);
|
|
13840
14103
|
}
|
|
13841
14104
|
}
|
|
13842
14105
|
} catch (e) {
|
|
@@ -13848,7 +14111,7 @@ var SwcAppImage = class SwcAppImage2 extends SwcHTMLImageElementBase {
|
|
|
13848
14111
|
this.routerSubscription?.unsubscribe();
|
|
13849
14112
|
}
|
|
13850
14113
|
async routing(path) {
|
|
13851
|
-
await this.
|
|
14114
|
+
await this.router?.go(path);
|
|
13852
14115
|
}
|
|
13853
14116
|
async routingProcess(path) {
|
|
13854
14117
|
await this.simpleApplication?.routing(path);
|
|
@@ -13884,12 +14147,18 @@ var SwcAppInput = class SwcAppInput2 extends SwcHTMLInputElementBase {
|
|
|
13884
14147
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13885
14148
|
if (userConfig) {
|
|
13886
14149
|
const _config = {
|
|
13887
|
-
routeType: "
|
|
14150
|
+
routeType: "element",
|
|
13888
14151
|
window,
|
|
13889
14152
|
...userConfig
|
|
13890
14153
|
};
|
|
13891
|
-
|
|
13892
|
-
|
|
14154
|
+
if (_config.routeType === "path") {
|
|
14155
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14156
|
+
} else if (_config.routeType === "hash") {
|
|
14157
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14158
|
+
} else {
|
|
14159
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14160
|
+
}
|
|
14161
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13893
14162
|
if (route.triggerPoint === "end") {
|
|
13894
14163
|
this.routingProcess(route.path);
|
|
13895
14164
|
}
|
|
@@ -13900,8 +14169,8 @@ var SwcAppInput = class SwcAppInput2 extends SwcHTMLInputElementBase {
|
|
|
13900
14169
|
});
|
|
13901
14170
|
this.simpleApplication = new SimpleApplication(option);
|
|
13902
14171
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13903
|
-
if (this.
|
|
13904
|
-
otherInstanceSim.set(Router, this.
|
|
14172
|
+
if (this.router) {
|
|
14173
|
+
otherInstanceSim.set(Router, this.router);
|
|
13905
14174
|
}
|
|
13906
14175
|
this.simpleApplication.run(otherInstanceSim);
|
|
13907
14176
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13913,7 +14182,7 @@ var SwcAppInput = class SwcAppInput2 extends SwcHTMLInputElementBase {
|
|
|
13913
14182
|
}
|
|
13914
14183
|
}
|
|
13915
14184
|
if (_config.path) {
|
|
13916
|
-
await this.
|
|
14185
|
+
await this.router?.go(_config.path);
|
|
13917
14186
|
}
|
|
13918
14187
|
}
|
|
13919
14188
|
} catch (e) {
|
|
@@ -13925,7 +14194,7 @@ var SwcAppInput = class SwcAppInput2 extends SwcHTMLInputElementBase {
|
|
|
13925
14194
|
this.routerSubscription?.unsubscribe();
|
|
13926
14195
|
}
|
|
13927
14196
|
async routing(path) {
|
|
13928
|
-
await this.
|
|
14197
|
+
await this.router?.go(path);
|
|
13929
14198
|
}
|
|
13930
14199
|
async routingProcess(path) {
|
|
13931
14200
|
await this.simpleApplication?.routing(path);
|
|
@@ -13961,12 +14230,18 @@ var SwcAppLabel = class SwcAppLabel2 extends SwcHTMLLabelElementBase {
|
|
|
13961
14230
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
13962
14231
|
if (userConfig) {
|
|
13963
14232
|
const _config = {
|
|
13964
|
-
routeType: "
|
|
14233
|
+
routeType: "element",
|
|
13965
14234
|
window,
|
|
13966
14235
|
...userConfig
|
|
13967
14236
|
};
|
|
13968
|
-
|
|
13969
|
-
|
|
14237
|
+
if (_config.routeType === "path") {
|
|
14238
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14239
|
+
} else if (_config.routeType === "hash") {
|
|
14240
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14241
|
+
} else {
|
|
14242
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14243
|
+
}
|
|
14244
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
13970
14245
|
if (route.triggerPoint === "end") {
|
|
13971
14246
|
this.routingProcess(route.path);
|
|
13972
14247
|
}
|
|
@@ -13977,8 +14252,8 @@ var SwcAppLabel = class SwcAppLabel2 extends SwcHTMLLabelElementBase {
|
|
|
13977
14252
|
});
|
|
13978
14253
|
this.simpleApplication = new SimpleApplication(option);
|
|
13979
14254
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
13980
|
-
if (this.
|
|
13981
|
-
otherInstanceSim.set(Router, this.
|
|
14255
|
+
if (this.router) {
|
|
14256
|
+
otherInstanceSim.set(Router, this.router);
|
|
13982
14257
|
}
|
|
13983
14258
|
this.simpleApplication.run(otherInstanceSim);
|
|
13984
14259
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -13990,7 +14265,7 @@ var SwcAppLabel = class SwcAppLabel2 extends SwcHTMLLabelElementBase {
|
|
|
13990
14265
|
}
|
|
13991
14266
|
}
|
|
13992
14267
|
if (_config.path) {
|
|
13993
|
-
await this.
|
|
14268
|
+
await this.router?.go(_config.path);
|
|
13994
14269
|
}
|
|
13995
14270
|
}
|
|
13996
14271
|
} catch (e) {
|
|
@@ -14002,7 +14277,7 @@ var SwcAppLabel = class SwcAppLabel2 extends SwcHTMLLabelElementBase {
|
|
|
14002
14277
|
this.routerSubscription?.unsubscribe();
|
|
14003
14278
|
}
|
|
14004
14279
|
async routing(path) {
|
|
14005
|
-
await this.
|
|
14280
|
+
await this.router?.go(path);
|
|
14006
14281
|
}
|
|
14007
14282
|
async routingProcess(path) {
|
|
14008
14283
|
await this.simpleApplication?.routing(path);
|
|
@@ -14038,12 +14313,18 @@ var SwcAppLegend = class SwcAppLegend2 extends SwcHTMLLegendElementBase {
|
|
|
14038
14313
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14039
14314
|
if (userConfig) {
|
|
14040
14315
|
const _config = {
|
|
14041
|
-
routeType: "
|
|
14316
|
+
routeType: "element",
|
|
14042
14317
|
window,
|
|
14043
14318
|
...userConfig
|
|
14044
14319
|
};
|
|
14045
|
-
|
|
14046
|
-
|
|
14320
|
+
if (_config.routeType === "path") {
|
|
14321
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14322
|
+
} else if (_config.routeType === "hash") {
|
|
14323
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14324
|
+
} else {
|
|
14325
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14326
|
+
}
|
|
14327
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14047
14328
|
if (route.triggerPoint === "end") {
|
|
14048
14329
|
this.routingProcess(route.path);
|
|
14049
14330
|
}
|
|
@@ -14054,8 +14335,8 @@ var SwcAppLegend = class SwcAppLegend2 extends SwcHTMLLegendElementBase {
|
|
|
14054
14335
|
});
|
|
14055
14336
|
this.simpleApplication = new SimpleApplication(option);
|
|
14056
14337
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14057
|
-
if (this.
|
|
14058
|
-
otherInstanceSim.set(Router, this.
|
|
14338
|
+
if (this.router) {
|
|
14339
|
+
otherInstanceSim.set(Router, this.router);
|
|
14059
14340
|
}
|
|
14060
14341
|
this.simpleApplication.run(otherInstanceSim);
|
|
14061
14342
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14067,7 +14348,7 @@ var SwcAppLegend = class SwcAppLegend2 extends SwcHTMLLegendElementBase {
|
|
|
14067
14348
|
}
|
|
14068
14349
|
}
|
|
14069
14350
|
if (_config.path) {
|
|
14070
|
-
await this.
|
|
14351
|
+
await this.router?.go(_config.path);
|
|
14071
14352
|
}
|
|
14072
14353
|
}
|
|
14073
14354
|
} catch (e) {
|
|
@@ -14079,7 +14360,7 @@ var SwcAppLegend = class SwcAppLegend2 extends SwcHTMLLegendElementBase {
|
|
|
14079
14360
|
this.routerSubscription?.unsubscribe();
|
|
14080
14361
|
}
|
|
14081
14362
|
async routing(path) {
|
|
14082
|
-
await this.
|
|
14363
|
+
await this.router?.go(path);
|
|
14083
14364
|
}
|
|
14084
14365
|
async routingProcess(path) {
|
|
14085
14366
|
await this.simpleApplication?.routing(path);
|
|
@@ -14115,12 +14396,18 @@ var SwcAppLi = class SwcAppLi2 extends SwcHTMLLIElementBase {
|
|
|
14115
14396
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14116
14397
|
if (userConfig) {
|
|
14117
14398
|
const _config = {
|
|
14118
|
-
routeType: "
|
|
14399
|
+
routeType: "element",
|
|
14119
14400
|
window,
|
|
14120
14401
|
...userConfig
|
|
14121
14402
|
};
|
|
14122
|
-
|
|
14123
|
-
|
|
14403
|
+
if (_config.routeType === "path") {
|
|
14404
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14405
|
+
} else if (_config.routeType === "hash") {
|
|
14406
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14407
|
+
} else {
|
|
14408
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14409
|
+
}
|
|
14410
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14124
14411
|
if (route.triggerPoint === "end") {
|
|
14125
14412
|
this.routingProcess(route.path);
|
|
14126
14413
|
}
|
|
@@ -14131,8 +14418,8 @@ var SwcAppLi = class SwcAppLi2 extends SwcHTMLLIElementBase {
|
|
|
14131
14418
|
});
|
|
14132
14419
|
this.simpleApplication = new SimpleApplication(option);
|
|
14133
14420
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14134
|
-
if (this.
|
|
14135
|
-
otherInstanceSim.set(Router, this.
|
|
14421
|
+
if (this.router) {
|
|
14422
|
+
otherInstanceSim.set(Router, this.router);
|
|
14136
14423
|
}
|
|
14137
14424
|
this.simpleApplication.run(otherInstanceSim);
|
|
14138
14425
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14144,7 +14431,7 @@ var SwcAppLi = class SwcAppLi2 extends SwcHTMLLIElementBase {
|
|
|
14144
14431
|
}
|
|
14145
14432
|
}
|
|
14146
14433
|
if (_config.path) {
|
|
14147
|
-
await this.
|
|
14434
|
+
await this.router?.go(_config.path);
|
|
14148
14435
|
}
|
|
14149
14436
|
}
|
|
14150
14437
|
} catch (e) {
|
|
@@ -14156,7 +14443,7 @@ var SwcAppLi = class SwcAppLi2 extends SwcHTMLLIElementBase {
|
|
|
14156
14443
|
this.routerSubscription?.unsubscribe();
|
|
14157
14444
|
}
|
|
14158
14445
|
async routing(path) {
|
|
14159
|
-
await this.
|
|
14446
|
+
await this.router?.go(path);
|
|
14160
14447
|
}
|
|
14161
14448
|
async routingProcess(path) {
|
|
14162
14449
|
await this.simpleApplication?.routing(path);
|
|
@@ -14192,12 +14479,18 @@ var SwcAppLink = class SwcAppLink2 extends SwcHTMLLinkElementBase {
|
|
|
14192
14479
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14193
14480
|
if (userConfig) {
|
|
14194
14481
|
const _config = {
|
|
14195
|
-
routeType: "
|
|
14482
|
+
routeType: "element",
|
|
14196
14483
|
window,
|
|
14197
14484
|
...userConfig
|
|
14198
14485
|
};
|
|
14199
|
-
|
|
14200
|
-
|
|
14486
|
+
if (_config.routeType === "path") {
|
|
14487
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14488
|
+
} else if (_config.routeType === "hash") {
|
|
14489
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14490
|
+
} else {
|
|
14491
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14492
|
+
}
|
|
14493
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14201
14494
|
if (route.triggerPoint === "end") {
|
|
14202
14495
|
this.routingProcess(route.path);
|
|
14203
14496
|
}
|
|
@@ -14208,8 +14501,8 @@ var SwcAppLink = class SwcAppLink2 extends SwcHTMLLinkElementBase {
|
|
|
14208
14501
|
});
|
|
14209
14502
|
this.simpleApplication = new SimpleApplication(option);
|
|
14210
14503
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14211
|
-
if (this.
|
|
14212
|
-
otherInstanceSim.set(Router, this.
|
|
14504
|
+
if (this.router) {
|
|
14505
|
+
otherInstanceSim.set(Router, this.router);
|
|
14213
14506
|
}
|
|
14214
14507
|
this.simpleApplication.run(otherInstanceSim);
|
|
14215
14508
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14221,7 +14514,7 @@ var SwcAppLink = class SwcAppLink2 extends SwcHTMLLinkElementBase {
|
|
|
14221
14514
|
}
|
|
14222
14515
|
}
|
|
14223
14516
|
if (_config.path) {
|
|
14224
|
-
await this.
|
|
14517
|
+
await this.router?.go(_config.path);
|
|
14225
14518
|
}
|
|
14226
14519
|
}
|
|
14227
14520
|
} catch (e) {
|
|
@@ -14233,7 +14526,7 @@ var SwcAppLink = class SwcAppLink2 extends SwcHTMLLinkElementBase {
|
|
|
14233
14526
|
this.routerSubscription?.unsubscribe();
|
|
14234
14527
|
}
|
|
14235
14528
|
async routing(path) {
|
|
14236
|
-
await this.
|
|
14529
|
+
await this.router?.go(path);
|
|
14237
14530
|
}
|
|
14238
14531
|
async routingProcess(path) {
|
|
14239
14532
|
await this.simpleApplication?.routing(path);
|
|
@@ -14269,12 +14562,18 @@ var SwcAppMap = class SwcAppMap2 extends SwcHTMLMapElementBase {
|
|
|
14269
14562
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14270
14563
|
if (userConfig) {
|
|
14271
14564
|
const _config = {
|
|
14272
|
-
routeType: "
|
|
14565
|
+
routeType: "element",
|
|
14273
14566
|
window,
|
|
14274
14567
|
...userConfig
|
|
14275
14568
|
};
|
|
14276
|
-
|
|
14277
|
-
|
|
14569
|
+
if (_config.routeType === "path") {
|
|
14570
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14571
|
+
} else if (_config.routeType === "hash") {
|
|
14572
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14573
|
+
} else {
|
|
14574
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14575
|
+
}
|
|
14576
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14278
14577
|
if (route.triggerPoint === "end") {
|
|
14279
14578
|
this.routingProcess(route.path);
|
|
14280
14579
|
}
|
|
@@ -14285,8 +14584,8 @@ var SwcAppMap = class SwcAppMap2 extends SwcHTMLMapElementBase {
|
|
|
14285
14584
|
});
|
|
14286
14585
|
this.simpleApplication = new SimpleApplication(option);
|
|
14287
14586
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14288
|
-
if (this.
|
|
14289
|
-
otherInstanceSim.set(Router, this.
|
|
14587
|
+
if (this.router) {
|
|
14588
|
+
otherInstanceSim.set(Router, this.router);
|
|
14290
14589
|
}
|
|
14291
14590
|
this.simpleApplication.run(otherInstanceSim);
|
|
14292
14591
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14298,7 +14597,7 @@ var SwcAppMap = class SwcAppMap2 extends SwcHTMLMapElementBase {
|
|
|
14298
14597
|
}
|
|
14299
14598
|
}
|
|
14300
14599
|
if (_config.path) {
|
|
14301
|
-
await this.
|
|
14600
|
+
await this.router?.go(_config.path);
|
|
14302
14601
|
}
|
|
14303
14602
|
}
|
|
14304
14603
|
} catch (e) {
|
|
@@ -14310,7 +14609,7 @@ var SwcAppMap = class SwcAppMap2 extends SwcHTMLMapElementBase {
|
|
|
14310
14609
|
this.routerSubscription?.unsubscribe();
|
|
14311
14610
|
}
|
|
14312
14611
|
async routing(path) {
|
|
14313
|
-
await this.
|
|
14612
|
+
await this.router?.go(path);
|
|
14314
14613
|
}
|
|
14315
14614
|
async routingProcess(path) {
|
|
14316
14615
|
await this.simpleApplication?.routing(path);
|
|
@@ -14346,12 +14645,18 @@ var SwcAppMeta = class SwcAppMeta2 extends SwcHTMLMetaElementBase {
|
|
|
14346
14645
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14347
14646
|
if (userConfig) {
|
|
14348
14647
|
const _config = {
|
|
14349
|
-
routeType: "
|
|
14648
|
+
routeType: "element",
|
|
14350
14649
|
window,
|
|
14351
14650
|
...userConfig
|
|
14352
14651
|
};
|
|
14353
|
-
|
|
14354
|
-
|
|
14652
|
+
if (_config.routeType === "path") {
|
|
14653
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14654
|
+
} else if (_config.routeType === "hash") {
|
|
14655
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14656
|
+
} else {
|
|
14657
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14658
|
+
}
|
|
14659
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14355
14660
|
if (route.triggerPoint === "end") {
|
|
14356
14661
|
this.routingProcess(route.path);
|
|
14357
14662
|
}
|
|
@@ -14362,8 +14667,8 @@ var SwcAppMeta = class SwcAppMeta2 extends SwcHTMLMetaElementBase {
|
|
|
14362
14667
|
});
|
|
14363
14668
|
this.simpleApplication = new SimpleApplication(option);
|
|
14364
14669
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14365
|
-
if (this.
|
|
14366
|
-
otherInstanceSim.set(Router, this.
|
|
14670
|
+
if (this.router) {
|
|
14671
|
+
otherInstanceSim.set(Router, this.router);
|
|
14367
14672
|
}
|
|
14368
14673
|
this.simpleApplication.run(otherInstanceSim);
|
|
14369
14674
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14375,7 +14680,7 @@ var SwcAppMeta = class SwcAppMeta2 extends SwcHTMLMetaElementBase {
|
|
|
14375
14680
|
}
|
|
14376
14681
|
}
|
|
14377
14682
|
if (_config.path) {
|
|
14378
|
-
await this.
|
|
14683
|
+
await this.router?.go(_config.path);
|
|
14379
14684
|
}
|
|
14380
14685
|
}
|
|
14381
14686
|
} catch (e) {
|
|
@@ -14387,7 +14692,7 @@ var SwcAppMeta = class SwcAppMeta2 extends SwcHTMLMetaElementBase {
|
|
|
14387
14692
|
this.routerSubscription?.unsubscribe();
|
|
14388
14693
|
}
|
|
14389
14694
|
async routing(path) {
|
|
14390
|
-
await this.
|
|
14695
|
+
await this.router?.go(path);
|
|
14391
14696
|
}
|
|
14392
14697
|
async routingProcess(path) {
|
|
14393
14698
|
await this.simpleApplication?.routing(path);
|
|
@@ -14423,12 +14728,18 @@ var SwcAppMeter = class SwcAppMeter2 extends SwcHTMLMeterElementBase {
|
|
|
14423
14728
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14424
14729
|
if (userConfig) {
|
|
14425
14730
|
const _config = {
|
|
14426
|
-
routeType: "
|
|
14731
|
+
routeType: "element",
|
|
14427
14732
|
window,
|
|
14428
14733
|
...userConfig
|
|
14429
14734
|
};
|
|
14430
|
-
|
|
14431
|
-
|
|
14735
|
+
if (_config.routeType === "path") {
|
|
14736
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14737
|
+
} else if (_config.routeType === "hash") {
|
|
14738
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14739
|
+
} else {
|
|
14740
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14741
|
+
}
|
|
14742
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14432
14743
|
if (route.triggerPoint === "end") {
|
|
14433
14744
|
this.routingProcess(route.path);
|
|
14434
14745
|
}
|
|
@@ -14439,8 +14750,8 @@ var SwcAppMeter = class SwcAppMeter2 extends SwcHTMLMeterElementBase {
|
|
|
14439
14750
|
});
|
|
14440
14751
|
this.simpleApplication = new SimpleApplication(option);
|
|
14441
14752
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14442
|
-
if (this.
|
|
14443
|
-
otherInstanceSim.set(Router, this.
|
|
14753
|
+
if (this.router) {
|
|
14754
|
+
otherInstanceSim.set(Router, this.router);
|
|
14444
14755
|
}
|
|
14445
14756
|
this.simpleApplication.run(otherInstanceSim);
|
|
14446
14757
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14452,7 +14763,7 @@ var SwcAppMeter = class SwcAppMeter2 extends SwcHTMLMeterElementBase {
|
|
|
14452
14763
|
}
|
|
14453
14764
|
}
|
|
14454
14765
|
if (_config.path) {
|
|
14455
|
-
await this.
|
|
14766
|
+
await this.router?.go(_config.path);
|
|
14456
14767
|
}
|
|
14457
14768
|
}
|
|
14458
14769
|
} catch (e) {
|
|
@@ -14464,7 +14775,7 @@ var SwcAppMeter = class SwcAppMeter2 extends SwcHTMLMeterElementBase {
|
|
|
14464
14775
|
this.routerSubscription?.unsubscribe();
|
|
14465
14776
|
}
|
|
14466
14777
|
async routing(path) {
|
|
14467
|
-
await this.
|
|
14778
|
+
await this.router?.go(path);
|
|
14468
14779
|
}
|
|
14469
14780
|
async routingProcess(path) {
|
|
14470
14781
|
await this.simpleApplication?.routing(path);
|
|
@@ -14500,12 +14811,18 @@ var SwcAppMod = class SwcAppMod2 extends SwcHTMLModElementBase {
|
|
|
14500
14811
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14501
14812
|
if (userConfig) {
|
|
14502
14813
|
const _config = {
|
|
14503
|
-
routeType: "
|
|
14814
|
+
routeType: "element",
|
|
14504
14815
|
window,
|
|
14505
14816
|
...userConfig
|
|
14506
14817
|
};
|
|
14507
|
-
|
|
14508
|
-
|
|
14818
|
+
if (_config.routeType === "path") {
|
|
14819
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14820
|
+
} else if (_config.routeType === "hash") {
|
|
14821
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14822
|
+
} else {
|
|
14823
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14824
|
+
}
|
|
14825
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14509
14826
|
if (route.triggerPoint === "end") {
|
|
14510
14827
|
this.routingProcess(route.path);
|
|
14511
14828
|
}
|
|
@@ -14516,8 +14833,8 @@ var SwcAppMod = class SwcAppMod2 extends SwcHTMLModElementBase {
|
|
|
14516
14833
|
});
|
|
14517
14834
|
this.simpleApplication = new SimpleApplication(option);
|
|
14518
14835
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14519
|
-
if (this.
|
|
14520
|
-
otherInstanceSim.set(Router, this.
|
|
14836
|
+
if (this.router) {
|
|
14837
|
+
otherInstanceSim.set(Router, this.router);
|
|
14521
14838
|
}
|
|
14522
14839
|
this.simpleApplication.run(otherInstanceSim);
|
|
14523
14840
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14529,7 +14846,7 @@ var SwcAppMod = class SwcAppMod2 extends SwcHTMLModElementBase {
|
|
|
14529
14846
|
}
|
|
14530
14847
|
}
|
|
14531
14848
|
if (_config.path) {
|
|
14532
|
-
await this.
|
|
14849
|
+
await this.router?.go(_config.path);
|
|
14533
14850
|
}
|
|
14534
14851
|
}
|
|
14535
14852
|
} catch (e) {
|
|
@@ -14541,7 +14858,7 @@ var SwcAppMod = class SwcAppMod2 extends SwcHTMLModElementBase {
|
|
|
14541
14858
|
this.routerSubscription?.unsubscribe();
|
|
14542
14859
|
}
|
|
14543
14860
|
async routing(path) {
|
|
14544
|
-
await this.
|
|
14861
|
+
await this.router?.go(path);
|
|
14545
14862
|
}
|
|
14546
14863
|
async routingProcess(path) {
|
|
14547
14864
|
await this.simpleApplication?.routing(path);
|
|
@@ -14577,12 +14894,18 @@ var SwcAppObject = class SwcAppObject2 extends SwcHTMLObjectElementBase {
|
|
|
14577
14894
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14578
14895
|
if (userConfig) {
|
|
14579
14896
|
const _config = {
|
|
14580
|
-
routeType: "
|
|
14897
|
+
routeType: "element",
|
|
14581
14898
|
window,
|
|
14582
14899
|
...userConfig
|
|
14583
14900
|
};
|
|
14584
|
-
|
|
14585
|
-
|
|
14901
|
+
if (_config.routeType === "path") {
|
|
14902
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14903
|
+
} else if (_config.routeType === "hash") {
|
|
14904
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14905
|
+
} else {
|
|
14906
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14907
|
+
}
|
|
14908
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14586
14909
|
if (route.triggerPoint === "end") {
|
|
14587
14910
|
this.routingProcess(route.path);
|
|
14588
14911
|
}
|
|
@@ -14593,8 +14916,8 @@ var SwcAppObject = class SwcAppObject2 extends SwcHTMLObjectElementBase {
|
|
|
14593
14916
|
});
|
|
14594
14917
|
this.simpleApplication = new SimpleApplication(option);
|
|
14595
14918
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14596
|
-
if (this.
|
|
14597
|
-
otherInstanceSim.set(Router, this.
|
|
14919
|
+
if (this.router) {
|
|
14920
|
+
otherInstanceSim.set(Router, this.router);
|
|
14598
14921
|
}
|
|
14599
14922
|
this.simpleApplication.run(otherInstanceSim);
|
|
14600
14923
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14606,7 +14929,7 @@ var SwcAppObject = class SwcAppObject2 extends SwcHTMLObjectElementBase {
|
|
|
14606
14929
|
}
|
|
14607
14930
|
}
|
|
14608
14931
|
if (_config.path) {
|
|
14609
|
-
await this.
|
|
14932
|
+
await this.router?.go(_config.path);
|
|
14610
14933
|
}
|
|
14611
14934
|
}
|
|
14612
14935
|
} catch (e) {
|
|
@@ -14618,7 +14941,7 @@ var SwcAppObject = class SwcAppObject2 extends SwcHTMLObjectElementBase {
|
|
|
14618
14941
|
this.routerSubscription?.unsubscribe();
|
|
14619
14942
|
}
|
|
14620
14943
|
async routing(path) {
|
|
14621
|
-
await this.
|
|
14944
|
+
await this.router?.go(path);
|
|
14622
14945
|
}
|
|
14623
14946
|
async routingProcess(path) {
|
|
14624
14947
|
await this.simpleApplication?.routing(path);
|
|
@@ -14654,12 +14977,18 @@ var SwcAppOl = class SwcAppOl2 extends SwcHTMLOListElementBase {
|
|
|
14654
14977
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14655
14978
|
if (userConfig) {
|
|
14656
14979
|
const _config = {
|
|
14657
|
-
routeType: "
|
|
14980
|
+
routeType: "element",
|
|
14658
14981
|
window,
|
|
14659
14982
|
...userConfig
|
|
14660
14983
|
};
|
|
14661
|
-
|
|
14662
|
-
|
|
14984
|
+
if (_config.routeType === "path") {
|
|
14985
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
14986
|
+
} else if (_config.routeType === "hash") {
|
|
14987
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
14988
|
+
} else {
|
|
14989
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
14990
|
+
}
|
|
14991
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14663
14992
|
if (route.triggerPoint === "end") {
|
|
14664
14993
|
this.routingProcess(route.path);
|
|
14665
14994
|
}
|
|
@@ -14670,8 +14999,8 @@ var SwcAppOl = class SwcAppOl2 extends SwcHTMLOListElementBase {
|
|
|
14670
14999
|
});
|
|
14671
15000
|
this.simpleApplication = new SimpleApplication(option);
|
|
14672
15001
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14673
|
-
if (this.
|
|
14674
|
-
otherInstanceSim.set(Router, this.
|
|
15002
|
+
if (this.router) {
|
|
15003
|
+
otherInstanceSim.set(Router, this.router);
|
|
14675
15004
|
}
|
|
14676
15005
|
this.simpleApplication.run(otherInstanceSim);
|
|
14677
15006
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14683,7 +15012,7 @@ var SwcAppOl = class SwcAppOl2 extends SwcHTMLOListElementBase {
|
|
|
14683
15012
|
}
|
|
14684
15013
|
}
|
|
14685
15014
|
if (_config.path) {
|
|
14686
|
-
await this.
|
|
15015
|
+
await this.router?.go(_config.path);
|
|
14687
15016
|
}
|
|
14688
15017
|
}
|
|
14689
15018
|
} catch (e) {
|
|
@@ -14695,7 +15024,7 @@ var SwcAppOl = class SwcAppOl2 extends SwcHTMLOListElementBase {
|
|
|
14695
15024
|
this.routerSubscription?.unsubscribe();
|
|
14696
15025
|
}
|
|
14697
15026
|
async routing(path) {
|
|
14698
|
-
await this.
|
|
15027
|
+
await this.router?.go(path);
|
|
14699
15028
|
}
|
|
14700
15029
|
async routingProcess(path) {
|
|
14701
15030
|
await this.simpleApplication?.routing(path);
|
|
@@ -14731,12 +15060,18 @@ var SwcAppOptGroup = class SwcAppOptGroup2 extends SwcHTMLOptGroupElementBase {
|
|
|
14731
15060
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14732
15061
|
if (userConfig) {
|
|
14733
15062
|
const _config = {
|
|
14734
|
-
routeType: "
|
|
15063
|
+
routeType: "element",
|
|
14735
15064
|
window,
|
|
14736
15065
|
...userConfig
|
|
14737
15066
|
};
|
|
14738
|
-
|
|
14739
|
-
|
|
15067
|
+
if (_config.routeType === "path") {
|
|
15068
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15069
|
+
} else if (_config.routeType === "hash") {
|
|
15070
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15071
|
+
} else {
|
|
15072
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15073
|
+
}
|
|
15074
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14740
15075
|
if (route.triggerPoint === "end") {
|
|
14741
15076
|
this.routingProcess(route.path);
|
|
14742
15077
|
}
|
|
@@ -14747,8 +15082,8 @@ var SwcAppOptGroup = class SwcAppOptGroup2 extends SwcHTMLOptGroupElementBase {
|
|
|
14747
15082
|
});
|
|
14748
15083
|
this.simpleApplication = new SimpleApplication(option);
|
|
14749
15084
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14750
|
-
if (this.
|
|
14751
|
-
otherInstanceSim.set(Router, this.
|
|
15085
|
+
if (this.router) {
|
|
15086
|
+
otherInstanceSim.set(Router, this.router);
|
|
14752
15087
|
}
|
|
14753
15088
|
this.simpleApplication.run(otherInstanceSim);
|
|
14754
15089
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14760,7 +15095,7 @@ var SwcAppOptGroup = class SwcAppOptGroup2 extends SwcHTMLOptGroupElementBase {
|
|
|
14760
15095
|
}
|
|
14761
15096
|
}
|
|
14762
15097
|
if (_config.path) {
|
|
14763
|
-
await this.
|
|
15098
|
+
await this.router?.go(_config.path);
|
|
14764
15099
|
}
|
|
14765
15100
|
}
|
|
14766
15101
|
} catch (e) {
|
|
@@ -14772,7 +15107,7 @@ var SwcAppOptGroup = class SwcAppOptGroup2 extends SwcHTMLOptGroupElementBase {
|
|
|
14772
15107
|
this.routerSubscription?.unsubscribe();
|
|
14773
15108
|
}
|
|
14774
15109
|
async routing(path) {
|
|
14775
|
-
await this.
|
|
15110
|
+
await this.router?.go(path);
|
|
14776
15111
|
}
|
|
14777
15112
|
async routingProcess(path) {
|
|
14778
15113
|
await this.simpleApplication?.routing(path);
|
|
@@ -14808,12 +15143,18 @@ var SwcAppOption = class SwcAppOption2 extends SwcHTMLOptionElementBase {
|
|
|
14808
15143
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14809
15144
|
if (userConfig) {
|
|
14810
15145
|
const _config = {
|
|
14811
|
-
routeType: "
|
|
15146
|
+
routeType: "element",
|
|
14812
15147
|
window,
|
|
14813
15148
|
...userConfig
|
|
14814
15149
|
};
|
|
14815
|
-
|
|
14816
|
-
|
|
15150
|
+
if (_config.routeType === "path") {
|
|
15151
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15152
|
+
} else if (_config.routeType === "hash") {
|
|
15153
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15154
|
+
} else {
|
|
15155
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15156
|
+
}
|
|
15157
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14817
15158
|
if (route.triggerPoint === "end") {
|
|
14818
15159
|
this.routingProcess(route.path);
|
|
14819
15160
|
}
|
|
@@ -14824,8 +15165,8 @@ var SwcAppOption = class SwcAppOption2 extends SwcHTMLOptionElementBase {
|
|
|
14824
15165
|
});
|
|
14825
15166
|
this.simpleApplication = new SimpleApplication(option);
|
|
14826
15167
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14827
|
-
if (this.
|
|
14828
|
-
otherInstanceSim.set(Router, this.
|
|
15168
|
+
if (this.router) {
|
|
15169
|
+
otherInstanceSim.set(Router, this.router);
|
|
14829
15170
|
}
|
|
14830
15171
|
this.simpleApplication.run(otherInstanceSim);
|
|
14831
15172
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14837,7 +15178,7 @@ var SwcAppOption = class SwcAppOption2 extends SwcHTMLOptionElementBase {
|
|
|
14837
15178
|
}
|
|
14838
15179
|
}
|
|
14839
15180
|
if (_config.path) {
|
|
14840
|
-
await this.
|
|
15181
|
+
await this.router?.go(_config.path);
|
|
14841
15182
|
}
|
|
14842
15183
|
}
|
|
14843
15184
|
} catch (e) {
|
|
@@ -14849,7 +15190,7 @@ var SwcAppOption = class SwcAppOption2 extends SwcHTMLOptionElementBase {
|
|
|
14849
15190
|
this.routerSubscription?.unsubscribe();
|
|
14850
15191
|
}
|
|
14851
15192
|
async routing(path) {
|
|
14852
|
-
await this.
|
|
15193
|
+
await this.router?.go(path);
|
|
14853
15194
|
}
|
|
14854
15195
|
async routingProcess(path) {
|
|
14855
15196
|
await this.simpleApplication?.routing(path);
|
|
@@ -14885,12 +15226,18 @@ var SwcAppOutput = class SwcAppOutput2 extends SwcHTMLOutputElementBase {
|
|
|
14885
15226
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14886
15227
|
if (userConfig) {
|
|
14887
15228
|
const _config = {
|
|
14888
|
-
routeType: "
|
|
15229
|
+
routeType: "element",
|
|
14889
15230
|
window,
|
|
14890
15231
|
...userConfig
|
|
14891
15232
|
};
|
|
14892
|
-
|
|
14893
|
-
|
|
15233
|
+
if (_config.routeType === "path") {
|
|
15234
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15235
|
+
} else if (_config.routeType === "hash") {
|
|
15236
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15237
|
+
} else {
|
|
15238
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15239
|
+
}
|
|
15240
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14894
15241
|
if (route.triggerPoint === "end") {
|
|
14895
15242
|
this.routingProcess(route.path);
|
|
14896
15243
|
}
|
|
@@ -14901,8 +15248,8 @@ var SwcAppOutput = class SwcAppOutput2 extends SwcHTMLOutputElementBase {
|
|
|
14901
15248
|
});
|
|
14902
15249
|
this.simpleApplication = new SimpleApplication(option);
|
|
14903
15250
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14904
|
-
if (this.
|
|
14905
|
-
otherInstanceSim.set(Router, this.
|
|
15251
|
+
if (this.router) {
|
|
15252
|
+
otherInstanceSim.set(Router, this.router);
|
|
14906
15253
|
}
|
|
14907
15254
|
this.simpleApplication.run(otherInstanceSim);
|
|
14908
15255
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14914,7 +15261,7 @@ var SwcAppOutput = class SwcAppOutput2 extends SwcHTMLOutputElementBase {
|
|
|
14914
15261
|
}
|
|
14915
15262
|
}
|
|
14916
15263
|
if (_config.path) {
|
|
14917
|
-
await this.
|
|
15264
|
+
await this.router?.go(_config.path);
|
|
14918
15265
|
}
|
|
14919
15266
|
}
|
|
14920
15267
|
} catch (e) {
|
|
@@ -14926,7 +15273,7 @@ var SwcAppOutput = class SwcAppOutput2 extends SwcHTMLOutputElementBase {
|
|
|
14926
15273
|
this.routerSubscription?.unsubscribe();
|
|
14927
15274
|
}
|
|
14928
15275
|
async routing(path) {
|
|
14929
|
-
await this.
|
|
15276
|
+
await this.router?.go(path);
|
|
14930
15277
|
}
|
|
14931
15278
|
async routingProcess(path) {
|
|
14932
15279
|
await this.simpleApplication?.routing(path);
|
|
@@ -14962,12 +15309,18 @@ var SwcAppParagraph = class SwcAppParagraph2 extends SwcHTMLParagraphElementBase
|
|
|
14962
15309
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
14963
15310
|
if (userConfig) {
|
|
14964
15311
|
const _config = {
|
|
14965
|
-
routeType: "
|
|
15312
|
+
routeType: "element",
|
|
14966
15313
|
window,
|
|
14967
15314
|
...userConfig
|
|
14968
15315
|
};
|
|
14969
|
-
|
|
14970
|
-
|
|
15316
|
+
if (_config.routeType === "path") {
|
|
15317
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15318
|
+
} else if (_config.routeType === "hash") {
|
|
15319
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15320
|
+
} else {
|
|
15321
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15322
|
+
}
|
|
15323
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
14971
15324
|
if (route.triggerPoint === "end") {
|
|
14972
15325
|
this.routingProcess(route.path);
|
|
14973
15326
|
}
|
|
@@ -14978,8 +15331,8 @@ var SwcAppParagraph = class SwcAppParagraph2 extends SwcHTMLParagraphElementBase
|
|
|
14978
15331
|
});
|
|
14979
15332
|
this.simpleApplication = new SimpleApplication(option);
|
|
14980
15333
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
14981
|
-
if (this.
|
|
14982
|
-
otherInstanceSim.set(Router, this.
|
|
15334
|
+
if (this.router) {
|
|
15335
|
+
otherInstanceSim.set(Router, this.router);
|
|
14983
15336
|
}
|
|
14984
15337
|
this.simpleApplication.run(otherInstanceSim);
|
|
14985
15338
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -14991,7 +15344,7 @@ var SwcAppParagraph = class SwcAppParagraph2 extends SwcHTMLParagraphElementBase
|
|
|
14991
15344
|
}
|
|
14992
15345
|
}
|
|
14993
15346
|
if (_config.path) {
|
|
14994
|
-
await this.
|
|
15347
|
+
await this.router?.go(_config.path);
|
|
14995
15348
|
}
|
|
14996
15349
|
}
|
|
14997
15350
|
} catch (e) {
|
|
@@ -15003,7 +15356,7 @@ var SwcAppParagraph = class SwcAppParagraph2 extends SwcHTMLParagraphElementBase
|
|
|
15003
15356
|
this.routerSubscription?.unsubscribe();
|
|
15004
15357
|
}
|
|
15005
15358
|
async routing(path) {
|
|
15006
|
-
await this.
|
|
15359
|
+
await this.router?.go(path);
|
|
15007
15360
|
}
|
|
15008
15361
|
async routingProcess(path) {
|
|
15009
15362
|
await this.simpleApplication?.routing(path);
|
|
@@ -15039,12 +15392,18 @@ var SwcAppParam = class SwcAppParam2 extends SwcHTMLParamElementBase {
|
|
|
15039
15392
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15040
15393
|
if (userConfig) {
|
|
15041
15394
|
const _config = {
|
|
15042
|
-
routeType: "
|
|
15395
|
+
routeType: "element",
|
|
15043
15396
|
window,
|
|
15044
15397
|
...userConfig
|
|
15045
15398
|
};
|
|
15046
|
-
|
|
15047
|
-
|
|
15399
|
+
if (_config.routeType === "path") {
|
|
15400
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15401
|
+
} else if (_config.routeType === "hash") {
|
|
15402
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15403
|
+
} else {
|
|
15404
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15405
|
+
}
|
|
15406
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15048
15407
|
if (route.triggerPoint === "end") {
|
|
15049
15408
|
this.routingProcess(route.path);
|
|
15050
15409
|
}
|
|
@@ -15055,8 +15414,8 @@ var SwcAppParam = class SwcAppParam2 extends SwcHTMLParamElementBase {
|
|
|
15055
15414
|
});
|
|
15056
15415
|
this.simpleApplication = new SimpleApplication(option);
|
|
15057
15416
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15058
|
-
if (this.
|
|
15059
|
-
otherInstanceSim.set(Router, this.
|
|
15417
|
+
if (this.router) {
|
|
15418
|
+
otherInstanceSim.set(Router, this.router);
|
|
15060
15419
|
}
|
|
15061
15420
|
this.simpleApplication.run(otherInstanceSim);
|
|
15062
15421
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15068,7 +15427,7 @@ var SwcAppParam = class SwcAppParam2 extends SwcHTMLParamElementBase {
|
|
|
15068
15427
|
}
|
|
15069
15428
|
}
|
|
15070
15429
|
if (_config.path) {
|
|
15071
|
-
await this.
|
|
15430
|
+
await this.router?.go(_config.path);
|
|
15072
15431
|
}
|
|
15073
15432
|
}
|
|
15074
15433
|
} catch (e) {
|
|
@@ -15080,7 +15439,7 @@ var SwcAppParam = class SwcAppParam2 extends SwcHTMLParamElementBase {
|
|
|
15080
15439
|
this.routerSubscription?.unsubscribe();
|
|
15081
15440
|
}
|
|
15082
15441
|
async routing(path) {
|
|
15083
|
-
await this.
|
|
15442
|
+
await this.router?.go(path);
|
|
15084
15443
|
}
|
|
15085
15444
|
async routingProcess(path) {
|
|
15086
15445
|
await this.simpleApplication?.routing(path);
|
|
@@ -15116,12 +15475,18 @@ var SwcAppPicture = class SwcAppPicture2 extends SwcHTMLPictureElementBase {
|
|
|
15116
15475
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15117
15476
|
if (userConfig) {
|
|
15118
15477
|
const _config = {
|
|
15119
|
-
routeType: "
|
|
15478
|
+
routeType: "element",
|
|
15120
15479
|
window,
|
|
15121
15480
|
...userConfig
|
|
15122
15481
|
};
|
|
15123
|
-
|
|
15124
|
-
|
|
15482
|
+
if (_config.routeType === "path") {
|
|
15483
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15484
|
+
} else if (_config.routeType === "hash") {
|
|
15485
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15486
|
+
} else {
|
|
15487
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15488
|
+
}
|
|
15489
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15125
15490
|
if (route.triggerPoint === "end") {
|
|
15126
15491
|
this.routingProcess(route.path);
|
|
15127
15492
|
}
|
|
@@ -15132,8 +15497,8 @@ var SwcAppPicture = class SwcAppPicture2 extends SwcHTMLPictureElementBase {
|
|
|
15132
15497
|
});
|
|
15133
15498
|
this.simpleApplication = new SimpleApplication(option);
|
|
15134
15499
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15135
|
-
if (this.
|
|
15136
|
-
otherInstanceSim.set(Router, this.
|
|
15500
|
+
if (this.router) {
|
|
15501
|
+
otherInstanceSim.set(Router, this.router);
|
|
15137
15502
|
}
|
|
15138
15503
|
this.simpleApplication.run(otherInstanceSim);
|
|
15139
15504
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15145,7 +15510,7 @@ var SwcAppPicture = class SwcAppPicture2 extends SwcHTMLPictureElementBase {
|
|
|
15145
15510
|
}
|
|
15146
15511
|
}
|
|
15147
15512
|
if (_config.path) {
|
|
15148
|
-
await this.
|
|
15513
|
+
await this.router?.go(_config.path);
|
|
15149
15514
|
}
|
|
15150
15515
|
}
|
|
15151
15516
|
} catch (e) {
|
|
@@ -15157,7 +15522,7 @@ var SwcAppPicture = class SwcAppPicture2 extends SwcHTMLPictureElementBase {
|
|
|
15157
15522
|
this.routerSubscription?.unsubscribe();
|
|
15158
15523
|
}
|
|
15159
15524
|
async routing(path) {
|
|
15160
|
-
await this.
|
|
15525
|
+
await this.router?.go(path);
|
|
15161
15526
|
}
|
|
15162
15527
|
async routingProcess(path) {
|
|
15163
15528
|
await this.simpleApplication?.routing(path);
|
|
@@ -15193,12 +15558,18 @@ var SwcAppPre = class SwcAppPre2 extends SwcHTMLPreElementBase {
|
|
|
15193
15558
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15194
15559
|
if (userConfig) {
|
|
15195
15560
|
const _config = {
|
|
15196
|
-
routeType: "
|
|
15561
|
+
routeType: "element",
|
|
15197
15562
|
window,
|
|
15198
15563
|
...userConfig
|
|
15199
15564
|
};
|
|
15200
|
-
|
|
15201
|
-
|
|
15565
|
+
if (_config.routeType === "path") {
|
|
15566
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15567
|
+
} else if (_config.routeType === "hash") {
|
|
15568
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15569
|
+
} else {
|
|
15570
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15571
|
+
}
|
|
15572
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15202
15573
|
if (route.triggerPoint === "end") {
|
|
15203
15574
|
this.routingProcess(route.path);
|
|
15204
15575
|
}
|
|
@@ -15209,8 +15580,8 @@ var SwcAppPre = class SwcAppPre2 extends SwcHTMLPreElementBase {
|
|
|
15209
15580
|
});
|
|
15210
15581
|
this.simpleApplication = new SimpleApplication(option);
|
|
15211
15582
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15212
|
-
if (this.
|
|
15213
|
-
otherInstanceSim.set(Router, this.
|
|
15583
|
+
if (this.router) {
|
|
15584
|
+
otherInstanceSim.set(Router, this.router);
|
|
15214
15585
|
}
|
|
15215
15586
|
this.simpleApplication.run(otherInstanceSim);
|
|
15216
15587
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15222,7 +15593,7 @@ var SwcAppPre = class SwcAppPre2 extends SwcHTMLPreElementBase {
|
|
|
15222
15593
|
}
|
|
15223
15594
|
}
|
|
15224
15595
|
if (_config.path) {
|
|
15225
|
-
await this.
|
|
15596
|
+
await this.router?.go(_config.path);
|
|
15226
15597
|
}
|
|
15227
15598
|
}
|
|
15228
15599
|
} catch (e) {
|
|
@@ -15234,7 +15605,7 @@ var SwcAppPre = class SwcAppPre2 extends SwcHTMLPreElementBase {
|
|
|
15234
15605
|
this.routerSubscription?.unsubscribe();
|
|
15235
15606
|
}
|
|
15236
15607
|
async routing(path) {
|
|
15237
|
-
await this.
|
|
15608
|
+
await this.router?.go(path);
|
|
15238
15609
|
}
|
|
15239
15610
|
async routingProcess(path) {
|
|
15240
15611
|
await this.simpleApplication?.routing(path);
|
|
@@ -15270,12 +15641,18 @@ var SwcAppProgress = class SwcAppProgress2 extends SwcHTMLProgressElementBase {
|
|
|
15270
15641
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15271
15642
|
if (userConfig) {
|
|
15272
15643
|
const _config = {
|
|
15273
|
-
routeType: "
|
|
15644
|
+
routeType: "element",
|
|
15274
15645
|
window,
|
|
15275
15646
|
...userConfig
|
|
15276
15647
|
};
|
|
15277
|
-
|
|
15278
|
-
|
|
15648
|
+
if (_config.routeType === "path") {
|
|
15649
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15650
|
+
} else if (_config.routeType === "hash") {
|
|
15651
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15652
|
+
} else {
|
|
15653
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15654
|
+
}
|
|
15655
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15279
15656
|
if (route.triggerPoint === "end") {
|
|
15280
15657
|
this.routingProcess(route.path);
|
|
15281
15658
|
}
|
|
@@ -15286,8 +15663,8 @@ var SwcAppProgress = class SwcAppProgress2 extends SwcHTMLProgressElementBase {
|
|
|
15286
15663
|
});
|
|
15287
15664
|
this.simpleApplication = new SimpleApplication(option);
|
|
15288
15665
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15289
|
-
if (this.
|
|
15290
|
-
otherInstanceSim.set(Router, this.
|
|
15666
|
+
if (this.router) {
|
|
15667
|
+
otherInstanceSim.set(Router, this.router);
|
|
15291
15668
|
}
|
|
15292
15669
|
this.simpleApplication.run(otherInstanceSim);
|
|
15293
15670
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15299,7 +15676,7 @@ var SwcAppProgress = class SwcAppProgress2 extends SwcHTMLProgressElementBase {
|
|
|
15299
15676
|
}
|
|
15300
15677
|
}
|
|
15301
15678
|
if (_config.path) {
|
|
15302
|
-
await this.
|
|
15679
|
+
await this.router?.go(_config.path);
|
|
15303
15680
|
}
|
|
15304
15681
|
}
|
|
15305
15682
|
} catch (e) {
|
|
@@ -15311,7 +15688,7 @@ var SwcAppProgress = class SwcAppProgress2 extends SwcHTMLProgressElementBase {
|
|
|
15311
15688
|
this.routerSubscription?.unsubscribe();
|
|
15312
15689
|
}
|
|
15313
15690
|
async routing(path) {
|
|
15314
|
-
await this.
|
|
15691
|
+
await this.router?.go(path);
|
|
15315
15692
|
}
|
|
15316
15693
|
async routingProcess(path) {
|
|
15317
15694
|
await this.simpleApplication?.routing(path);
|
|
@@ -15347,12 +15724,18 @@ var SwcAppQuote = class SwcAppQuote2 extends SwcHTMLQuoteElementBase {
|
|
|
15347
15724
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15348
15725
|
if (userConfig) {
|
|
15349
15726
|
const _config = {
|
|
15350
|
-
routeType: "
|
|
15727
|
+
routeType: "element",
|
|
15351
15728
|
window,
|
|
15352
15729
|
...userConfig
|
|
15353
15730
|
};
|
|
15354
|
-
|
|
15355
|
-
|
|
15731
|
+
if (_config.routeType === "path") {
|
|
15732
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15733
|
+
} else if (_config.routeType === "hash") {
|
|
15734
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15735
|
+
} else {
|
|
15736
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15737
|
+
}
|
|
15738
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15356
15739
|
if (route.triggerPoint === "end") {
|
|
15357
15740
|
this.routingProcess(route.path);
|
|
15358
15741
|
}
|
|
@@ -15363,8 +15746,8 @@ var SwcAppQuote = class SwcAppQuote2 extends SwcHTMLQuoteElementBase {
|
|
|
15363
15746
|
});
|
|
15364
15747
|
this.simpleApplication = new SimpleApplication(option);
|
|
15365
15748
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15366
|
-
if (this.
|
|
15367
|
-
otherInstanceSim.set(Router, this.
|
|
15749
|
+
if (this.router) {
|
|
15750
|
+
otherInstanceSim.set(Router, this.router);
|
|
15368
15751
|
}
|
|
15369
15752
|
this.simpleApplication.run(otherInstanceSim);
|
|
15370
15753
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15376,7 +15759,7 @@ var SwcAppQuote = class SwcAppQuote2 extends SwcHTMLQuoteElementBase {
|
|
|
15376
15759
|
}
|
|
15377
15760
|
}
|
|
15378
15761
|
if (_config.path) {
|
|
15379
|
-
await this.
|
|
15762
|
+
await this.router?.go(_config.path);
|
|
15380
15763
|
}
|
|
15381
15764
|
}
|
|
15382
15765
|
} catch (e) {
|
|
@@ -15388,7 +15771,7 @@ var SwcAppQuote = class SwcAppQuote2 extends SwcHTMLQuoteElementBase {
|
|
|
15388
15771
|
this.routerSubscription?.unsubscribe();
|
|
15389
15772
|
}
|
|
15390
15773
|
async routing(path) {
|
|
15391
|
-
await this.
|
|
15774
|
+
await this.router?.go(path);
|
|
15392
15775
|
}
|
|
15393
15776
|
async routingProcess(path) {
|
|
15394
15777
|
await this.simpleApplication?.routing(path);
|
|
@@ -15424,12 +15807,18 @@ var SwcAppScript = class SwcAppScript2 extends SwcHTMLScriptElementBase {
|
|
|
15424
15807
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15425
15808
|
if (userConfig) {
|
|
15426
15809
|
const _config = {
|
|
15427
|
-
routeType: "
|
|
15810
|
+
routeType: "element",
|
|
15428
15811
|
window,
|
|
15429
15812
|
...userConfig
|
|
15430
15813
|
};
|
|
15431
|
-
|
|
15432
|
-
|
|
15814
|
+
if (_config.routeType === "path") {
|
|
15815
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15816
|
+
} else if (_config.routeType === "hash") {
|
|
15817
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15818
|
+
} else {
|
|
15819
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15820
|
+
}
|
|
15821
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15433
15822
|
if (route.triggerPoint === "end") {
|
|
15434
15823
|
this.routingProcess(route.path);
|
|
15435
15824
|
}
|
|
@@ -15440,8 +15829,8 @@ var SwcAppScript = class SwcAppScript2 extends SwcHTMLScriptElementBase {
|
|
|
15440
15829
|
});
|
|
15441
15830
|
this.simpleApplication = new SimpleApplication(option);
|
|
15442
15831
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15443
|
-
if (this.
|
|
15444
|
-
otherInstanceSim.set(Router, this.
|
|
15832
|
+
if (this.router) {
|
|
15833
|
+
otherInstanceSim.set(Router, this.router);
|
|
15445
15834
|
}
|
|
15446
15835
|
this.simpleApplication.run(otherInstanceSim);
|
|
15447
15836
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15453,7 +15842,7 @@ var SwcAppScript = class SwcAppScript2 extends SwcHTMLScriptElementBase {
|
|
|
15453
15842
|
}
|
|
15454
15843
|
}
|
|
15455
15844
|
if (_config.path) {
|
|
15456
|
-
await this.
|
|
15845
|
+
await this.router?.go(_config.path);
|
|
15457
15846
|
}
|
|
15458
15847
|
}
|
|
15459
15848
|
} catch (e) {
|
|
@@ -15465,7 +15854,7 @@ var SwcAppScript = class SwcAppScript2 extends SwcHTMLScriptElementBase {
|
|
|
15465
15854
|
this.routerSubscription?.unsubscribe();
|
|
15466
15855
|
}
|
|
15467
15856
|
async routing(path) {
|
|
15468
|
-
await this.
|
|
15857
|
+
await this.router?.go(path);
|
|
15469
15858
|
}
|
|
15470
15859
|
async routingProcess(path) {
|
|
15471
15860
|
await this.simpleApplication?.routing(path);
|
|
@@ -15501,12 +15890,18 @@ var SwcAppSelect = class SwcAppSelect2 extends SwcHTMLSelectElementBase {
|
|
|
15501
15890
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15502
15891
|
if (userConfig) {
|
|
15503
15892
|
const _config = {
|
|
15504
|
-
routeType: "
|
|
15893
|
+
routeType: "element",
|
|
15505
15894
|
window,
|
|
15506
15895
|
...userConfig
|
|
15507
15896
|
};
|
|
15508
|
-
|
|
15509
|
-
|
|
15897
|
+
if (_config.routeType === "path") {
|
|
15898
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15899
|
+
} else if (_config.routeType === "hash") {
|
|
15900
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15901
|
+
} else {
|
|
15902
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15903
|
+
}
|
|
15904
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15510
15905
|
if (route.triggerPoint === "end") {
|
|
15511
15906
|
this.routingProcess(route.path);
|
|
15512
15907
|
}
|
|
@@ -15517,8 +15912,8 @@ var SwcAppSelect = class SwcAppSelect2 extends SwcHTMLSelectElementBase {
|
|
|
15517
15912
|
});
|
|
15518
15913
|
this.simpleApplication = new SimpleApplication(option);
|
|
15519
15914
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15520
|
-
if (this.
|
|
15521
|
-
otherInstanceSim.set(Router, this.
|
|
15915
|
+
if (this.router) {
|
|
15916
|
+
otherInstanceSim.set(Router, this.router);
|
|
15522
15917
|
}
|
|
15523
15918
|
this.simpleApplication.run(otherInstanceSim);
|
|
15524
15919
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15530,7 +15925,7 @@ var SwcAppSelect = class SwcAppSelect2 extends SwcHTMLSelectElementBase {
|
|
|
15530
15925
|
}
|
|
15531
15926
|
}
|
|
15532
15927
|
if (_config.path) {
|
|
15533
|
-
await this.
|
|
15928
|
+
await this.router?.go(_config.path);
|
|
15534
15929
|
}
|
|
15535
15930
|
}
|
|
15536
15931
|
} catch (e) {
|
|
@@ -15542,7 +15937,7 @@ var SwcAppSelect = class SwcAppSelect2 extends SwcHTMLSelectElementBase {
|
|
|
15542
15937
|
this.routerSubscription?.unsubscribe();
|
|
15543
15938
|
}
|
|
15544
15939
|
async routing(path) {
|
|
15545
|
-
await this.
|
|
15940
|
+
await this.router?.go(path);
|
|
15546
15941
|
}
|
|
15547
15942
|
async routingProcess(path) {
|
|
15548
15943
|
await this.simpleApplication?.routing(path);
|
|
@@ -15578,12 +15973,18 @@ var SwcAppSlot = class SwcAppSlot2 extends SwcHTMLSlotElementBase {
|
|
|
15578
15973
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15579
15974
|
if (userConfig) {
|
|
15580
15975
|
const _config = {
|
|
15581
|
-
routeType: "
|
|
15976
|
+
routeType: "element",
|
|
15582
15977
|
window,
|
|
15583
15978
|
...userConfig
|
|
15584
15979
|
};
|
|
15585
|
-
|
|
15586
|
-
|
|
15980
|
+
if (_config.routeType === "path") {
|
|
15981
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
15982
|
+
} else if (_config.routeType === "hash") {
|
|
15983
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
15984
|
+
} else {
|
|
15985
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
15986
|
+
}
|
|
15987
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15587
15988
|
if (route.triggerPoint === "end") {
|
|
15588
15989
|
this.routingProcess(route.path);
|
|
15589
15990
|
}
|
|
@@ -15594,8 +15995,8 @@ var SwcAppSlot = class SwcAppSlot2 extends SwcHTMLSlotElementBase {
|
|
|
15594
15995
|
});
|
|
15595
15996
|
this.simpleApplication = new SimpleApplication(option);
|
|
15596
15997
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15597
|
-
if (this.
|
|
15598
|
-
otherInstanceSim.set(Router, this.
|
|
15998
|
+
if (this.router) {
|
|
15999
|
+
otherInstanceSim.set(Router, this.router);
|
|
15599
16000
|
}
|
|
15600
16001
|
this.simpleApplication.run(otherInstanceSim);
|
|
15601
16002
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15607,7 +16008,7 @@ var SwcAppSlot = class SwcAppSlot2 extends SwcHTMLSlotElementBase {
|
|
|
15607
16008
|
}
|
|
15608
16009
|
}
|
|
15609
16010
|
if (_config.path) {
|
|
15610
|
-
await this.
|
|
16011
|
+
await this.router?.go(_config.path);
|
|
15611
16012
|
}
|
|
15612
16013
|
}
|
|
15613
16014
|
} catch (e) {
|
|
@@ -15619,7 +16020,7 @@ var SwcAppSlot = class SwcAppSlot2 extends SwcHTMLSlotElementBase {
|
|
|
15619
16020
|
this.routerSubscription?.unsubscribe();
|
|
15620
16021
|
}
|
|
15621
16022
|
async routing(path) {
|
|
15622
|
-
await this.
|
|
16023
|
+
await this.router?.go(path);
|
|
15623
16024
|
}
|
|
15624
16025
|
async routingProcess(path) {
|
|
15625
16026
|
await this.simpleApplication?.routing(path);
|
|
@@ -15655,12 +16056,18 @@ var SwcAppSource = class SwcAppSource2 extends SwcHTMLSourceElementBase {
|
|
|
15655
16056
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15656
16057
|
if (userConfig) {
|
|
15657
16058
|
const _config = {
|
|
15658
|
-
routeType: "
|
|
16059
|
+
routeType: "element",
|
|
15659
16060
|
window,
|
|
15660
16061
|
...userConfig
|
|
15661
16062
|
};
|
|
15662
|
-
|
|
15663
|
-
|
|
16063
|
+
if (_config.routeType === "path") {
|
|
16064
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16065
|
+
} else if (_config.routeType === "hash") {
|
|
16066
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16067
|
+
} else {
|
|
16068
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16069
|
+
}
|
|
16070
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15664
16071
|
if (route.triggerPoint === "end") {
|
|
15665
16072
|
this.routingProcess(route.path);
|
|
15666
16073
|
}
|
|
@@ -15671,8 +16078,8 @@ var SwcAppSource = class SwcAppSource2 extends SwcHTMLSourceElementBase {
|
|
|
15671
16078
|
});
|
|
15672
16079
|
this.simpleApplication = new SimpleApplication(option);
|
|
15673
16080
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15674
|
-
if (this.
|
|
15675
|
-
otherInstanceSim.set(Router, this.
|
|
16081
|
+
if (this.router) {
|
|
16082
|
+
otherInstanceSim.set(Router, this.router);
|
|
15676
16083
|
}
|
|
15677
16084
|
this.simpleApplication.run(otherInstanceSim);
|
|
15678
16085
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15684,7 +16091,7 @@ var SwcAppSource = class SwcAppSource2 extends SwcHTMLSourceElementBase {
|
|
|
15684
16091
|
}
|
|
15685
16092
|
}
|
|
15686
16093
|
if (_config.path) {
|
|
15687
|
-
await this.
|
|
16094
|
+
await this.router?.go(_config.path);
|
|
15688
16095
|
}
|
|
15689
16096
|
}
|
|
15690
16097
|
} catch (e) {
|
|
@@ -15696,7 +16103,7 @@ var SwcAppSource = class SwcAppSource2 extends SwcHTMLSourceElementBase {
|
|
|
15696
16103
|
this.routerSubscription?.unsubscribe();
|
|
15697
16104
|
}
|
|
15698
16105
|
async routing(path) {
|
|
15699
|
-
await this.
|
|
16106
|
+
await this.router?.go(path);
|
|
15700
16107
|
}
|
|
15701
16108
|
async routingProcess(path) {
|
|
15702
16109
|
await this.simpleApplication?.routing(path);
|
|
@@ -15732,12 +16139,18 @@ var SwcAppSpan = class SwcAppSpan2 extends SwcHTMLSpanElementBase {
|
|
|
15732
16139
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15733
16140
|
if (userConfig) {
|
|
15734
16141
|
const _config = {
|
|
15735
|
-
routeType: "
|
|
16142
|
+
routeType: "element",
|
|
15736
16143
|
window,
|
|
15737
16144
|
...userConfig
|
|
15738
16145
|
};
|
|
15739
|
-
|
|
15740
|
-
|
|
16146
|
+
if (_config.routeType === "path") {
|
|
16147
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16148
|
+
} else if (_config.routeType === "hash") {
|
|
16149
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16150
|
+
} else {
|
|
16151
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16152
|
+
}
|
|
16153
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15741
16154
|
if (route.triggerPoint === "end") {
|
|
15742
16155
|
this.routingProcess(route.path);
|
|
15743
16156
|
}
|
|
@@ -15748,8 +16161,8 @@ var SwcAppSpan = class SwcAppSpan2 extends SwcHTMLSpanElementBase {
|
|
|
15748
16161
|
});
|
|
15749
16162
|
this.simpleApplication = new SimpleApplication(option);
|
|
15750
16163
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15751
|
-
if (this.
|
|
15752
|
-
otherInstanceSim.set(Router, this.
|
|
16164
|
+
if (this.router) {
|
|
16165
|
+
otherInstanceSim.set(Router, this.router);
|
|
15753
16166
|
}
|
|
15754
16167
|
this.simpleApplication.run(otherInstanceSim);
|
|
15755
16168
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15761,7 +16174,7 @@ var SwcAppSpan = class SwcAppSpan2 extends SwcHTMLSpanElementBase {
|
|
|
15761
16174
|
}
|
|
15762
16175
|
}
|
|
15763
16176
|
if (_config.path) {
|
|
15764
|
-
await this.
|
|
16177
|
+
await this.router?.go(_config.path);
|
|
15765
16178
|
}
|
|
15766
16179
|
}
|
|
15767
16180
|
} catch (e) {
|
|
@@ -15773,7 +16186,7 @@ var SwcAppSpan = class SwcAppSpan2 extends SwcHTMLSpanElementBase {
|
|
|
15773
16186
|
this.routerSubscription?.unsubscribe();
|
|
15774
16187
|
}
|
|
15775
16188
|
async routing(path) {
|
|
15776
|
-
await this.
|
|
16189
|
+
await this.router?.go(path);
|
|
15777
16190
|
}
|
|
15778
16191
|
async routingProcess(path) {
|
|
15779
16192
|
await this.simpleApplication?.routing(path);
|
|
@@ -15809,12 +16222,18 @@ var SwcAppStyle = class SwcAppStyle2 extends SwcHTMLStyleElementBase {
|
|
|
15809
16222
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15810
16223
|
if (userConfig) {
|
|
15811
16224
|
const _config = {
|
|
15812
|
-
routeType: "
|
|
16225
|
+
routeType: "element",
|
|
15813
16226
|
window,
|
|
15814
16227
|
...userConfig
|
|
15815
16228
|
};
|
|
15816
|
-
|
|
15817
|
-
|
|
16229
|
+
if (_config.routeType === "path") {
|
|
16230
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16231
|
+
} else if (_config.routeType === "hash") {
|
|
16232
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16233
|
+
} else {
|
|
16234
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16235
|
+
}
|
|
16236
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15818
16237
|
if (route.triggerPoint === "end") {
|
|
15819
16238
|
this.routingProcess(route.path);
|
|
15820
16239
|
}
|
|
@@ -15825,8 +16244,8 @@ var SwcAppStyle = class SwcAppStyle2 extends SwcHTMLStyleElementBase {
|
|
|
15825
16244
|
});
|
|
15826
16245
|
this.simpleApplication = new SimpleApplication(option);
|
|
15827
16246
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15828
|
-
if (this.
|
|
15829
|
-
otherInstanceSim.set(Router, this.
|
|
16247
|
+
if (this.router) {
|
|
16248
|
+
otherInstanceSim.set(Router, this.router);
|
|
15830
16249
|
}
|
|
15831
16250
|
this.simpleApplication.run(otherInstanceSim);
|
|
15832
16251
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15838,7 +16257,7 @@ var SwcAppStyle = class SwcAppStyle2 extends SwcHTMLStyleElementBase {
|
|
|
15838
16257
|
}
|
|
15839
16258
|
}
|
|
15840
16259
|
if (_config.path) {
|
|
15841
|
-
await this.
|
|
16260
|
+
await this.router?.go(_config.path);
|
|
15842
16261
|
}
|
|
15843
16262
|
}
|
|
15844
16263
|
} catch (e) {
|
|
@@ -15850,7 +16269,7 @@ var SwcAppStyle = class SwcAppStyle2 extends SwcHTMLStyleElementBase {
|
|
|
15850
16269
|
this.routerSubscription?.unsubscribe();
|
|
15851
16270
|
}
|
|
15852
16271
|
async routing(path) {
|
|
15853
|
-
await this.
|
|
16272
|
+
await this.router?.go(path);
|
|
15854
16273
|
}
|
|
15855
16274
|
async routingProcess(path) {
|
|
15856
16275
|
await this.simpleApplication?.routing(path);
|
|
@@ -15886,12 +16305,18 @@ var SwcAppTable = class SwcAppTable2 extends SwcHTMLTableElementBase {
|
|
|
15886
16305
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15887
16306
|
if (userConfig) {
|
|
15888
16307
|
const _config = {
|
|
15889
|
-
routeType: "
|
|
16308
|
+
routeType: "element",
|
|
15890
16309
|
window,
|
|
15891
16310
|
...userConfig
|
|
15892
16311
|
};
|
|
15893
|
-
|
|
15894
|
-
|
|
16312
|
+
if (_config.routeType === "path") {
|
|
16313
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16314
|
+
} else if (_config.routeType === "hash") {
|
|
16315
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16316
|
+
} else {
|
|
16317
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16318
|
+
}
|
|
16319
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15895
16320
|
if (route.triggerPoint === "end") {
|
|
15896
16321
|
this.routingProcess(route.path);
|
|
15897
16322
|
}
|
|
@@ -15902,8 +16327,8 @@ var SwcAppTable = class SwcAppTable2 extends SwcHTMLTableElementBase {
|
|
|
15902
16327
|
});
|
|
15903
16328
|
this.simpleApplication = new SimpleApplication(option);
|
|
15904
16329
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15905
|
-
if (this.
|
|
15906
|
-
otherInstanceSim.set(Router, this.
|
|
16330
|
+
if (this.router) {
|
|
16331
|
+
otherInstanceSim.set(Router, this.router);
|
|
15907
16332
|
}
|
|
15908
16333
|
this.simpleApplication.run(otherInstanceSim);
|
|
15909
16334
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15915,7 +16340,7 @@ var SwcAppTable = class SwcAppTable2 extends SwcHTMLTableElementBase {
|
|
|
15915
16340
|
}
|
|
15916
16341
|
}
|
|
15917
16342
|
if (_config.path) {
|
|
15918
|
-
await this.
|
|
16343
|
+
await this.router?.go(_config.path);
|
|
15919
16344
|
}
|
|
15920
16345
|
}
|
|
15921
16346
|
} catch (e) {
|
|
@@ -15927,7 +16352,7 @@ var SwcAppTable = class SwcAppTable2 extends SwcHTMLTableElementBase {
|
|
|
15927
16352
|
this.routerSubscription?.unsubscribe();
|
|
15928
16353
|
}
|
|
15929
16354
|
async routing(path) {
|
|
15930
|
-
await this.
|
|
16355
|
+
await this.router?.go(path);
|
|
15931
16356
|
}
|
|
15932
16357
|
async routingProcess(path) {
|
|
15933
16358
|
await this.simpleApplication?.routing(path);
|
|
@@ -15963,12 +16388,18 @@ var SwcAppTableSection = class SwcAppTableSection2 extends SwcHTMLTableSectionEl
|
|
|
15963
16388
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
15964
16389
|
if (userConfig) {
|
|
15965
16390
|
const _config = {
|
|
15966
|
-
routeType: "
|
|
16391
|
+
routeType: "element",
|
|
15967
16392
|
window,
|
|
15968
16393
|
...userConfig
|
|
15969
16394
|
};
|
|
15970
|
-
|
|
15971
|
-
|
|
16395
|
+
if (_config.routeType === "path") {
|
|
16396
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16397
|
+
} else if (_config.routeType === "hash") {
|
|
16398
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16399
|
+
} else {
|
|
16400
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16401
|
+
}
|
|
16402
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
15972
16403
|
if (route.triggerPoint === "end") {
|
|
15973
16404
|
this.routingProcess(route.path);
|
|
15974
16405
|
}
|
|
@@ -15979,8 +16410,8 @@ var SwcAppTableSection = class SwcAppTableSection2 extends SwcHTMLTableSectionEl
|
|
|
15979
16410
|
});
|
|
15980
16411
|
this.simpleApplication = new SimpleApplication(option);
|
|
15981
16412
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
15982
|
-
if (this.
|
|
15983
|
-
otherInstanceSim.set(Router, this.
|
|
16413
|
+
if (this.router) {
|
|
16414
|
+
otherInstanceSim.set(Router, this.router);
|
|
15984
16415
|
}
|
|
15985
16416
|
this.simpleApplication.run(otherInstanceSim);
|
|
15986
16417
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -15992,7 +16423,7 @@ var SwcAppTableSection = class SwcAppTableSection2 extends SwcHTMLTableSectionEl
|
|
|
15992
16423
|
}
|
|
15993
16424
|
}
|
|
15994
16425
|
if (_config.path) {
|
|
15995
|
-
await this.
|
|
16426
|
+
await this.router?.go(_config.path);
|
|
15996
16427
|
}
|
|
15997
16428
|
}
|
|
15998
16429
|
} catch (e) {
|
|
@@ -16004,7 +16435,7 @@ var SwcAppTableSection = class SwcAppTableSection2 extends SwcHTMLTableSectionEl
|
|
|
16004
16435
|
this.routerSubscription?.unsubscribe();
|
|
16005
16436
|
}
|
|
16006
16437
|
async routing(path) {
|
|
16007
|
-
await this.
|
|
16438
|
+
await this.router?.go(path);
|
|
16008
16439
|
}
|
|
16009
16440
|
async routingProcess(path) {
|
|
16010
16441
|
await this.simpleApplication?.routing(path);
|
|
@@ -16040,12 +16471,18 @@ var SwcAppTableCell = class SwcAppTableCell2 extends SwcHTMLTableCellElementBase
|
|
|
16040
16471
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16041
16472
|
if (userConfig) {
|
|
16042
16473
|
const _config = {
|
|
16043
|
-
routeType: "
|
|
16474
|
+
routeType: "element",
|
|
16044
16475
|
window,
|
|
16045
16476
|
...userConfig
|
|
16046
16477
|
};
|
|
16047
|
-
|
|
16048
|
-
|
|
16478
|
+
if (_config.routeType === "path") {
|
|
16479
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16480
|
+
} else if (_config.routeType === "hash") {
|
|
16481
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16482
|
+
} else {
|
|
16483
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16484
|
+
}
|
|
16485
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16049
16486
|
if (route.triggerPoint === "end") {
|
|
16050
16487
|
this.routingProcess(route.path);
|
|
16051
16488
|
}
|
|
@@ -16056,8 +16493,8 @@ var SwcAppTableCell = class SwcAppTableCell2 extends SwcHTMLTableCellElementBase
|
|
|
16056
16493
|
});
|
|
16057
16494
|
this.simpleApplication = new SimpleApplication(option);
|
|
16058
16495
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16059
|
-
if (this.
|
|
16060
|
-
otherInstanceSim.set(Router, this.
|
|
16496
|
+
if (this.router) {
|
|
16497
|
+
otherInstanceSim.set(Router, this.router);
|
|
16061
16498
|
}
|
|
16062
16499
|
this.simpleApplication.run(otherInstanceSim);
|
|
16063
16500
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16069,7 +16506,7 @@ var SwcAppTableCell = class SwcAppTableCell2 extends SwcHTMLTableCellElementBase
|
|
|
16069
16506
|
}
|
|
16070
16507
|
}
|
|
16071
16508
|
if (_config.path) {
|
|
16072
|
-
await this.
|
|
16509
|
+
await this.router?.go(_config.path);
|
|
16073
16510
|
}
|
|
16074
16511
|
}
|
|
16075
16512
|
} catch (e) {
|
|
@@ -16081,7 +16518,7 @@ var SwcAppTableCell = class SwcAppTableCell2 extends SwcHTMLTableCellElementBase
|
|
|
16081
16518
|
this.routerSubscription?.unsubscribe();
|
|
16082
16519
|
}
|
|
16083
16520
|
async routing(path) {
|
|
16084
|
-
await this.
|
|
16521
|
+
await this.router?.go(path);
|
|
16085
16522
|
}
|
|
16086
16523
|
async routingProcess(path) {
|
|
16087
16524
|
await this.simpleApplication?.routing(path);
|
|
@@ -16117,12 +16554,18 @@ var SwcAppTemplate = class SwcAppTemplate2 extends SwcHTMLTemplateElementBase {
|
|
|
16117
16554
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16118
16555
|
if (userConfig) {
|
|
16119
16556
|
const _config = {
|
|
16120
|
-
routeType: "
|
|
16557
|
+
routeType: "element",
|
|
16121
16558
|
window,
|
|
16122
16559
|
...userConfig
|
|
16123
16560
|
};
|
|
16124
|
-
|
|
16125
|
-
|
|
16561
|
+
if (_config.routeType === "path") {
|
|
16562
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16563
|
+
} else if (_config.routeType === "hash") {
|
|
16564
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16565
|
+
} else {
|
|
16566
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16567
|
+
}
|
|
16568
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16126
16569
|
if (route.triggerPoint === "end") {
|
|
16127
16570
|
this.routingProcess(route.path);
|
|
16128
16571
|
}
|
|
@@ -16133,8 +16576,8 @@ var SwcAppTemplate = class SwcAppTemplate2 extends SwcHTMLTemplateElementBase {
|
|
|
16133
16576
|
});
|
|
16134
16577
|
this.simpleApplication = new SimpleApplication(option);
|
|
16135
16578
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16136
|
-
if (this.
|
|
16137
|
-
otherInstanceSim.set(Router, this.
|
|
16579
|
+
if (this.router) {
|
|
16580
|
+
otherInstanceSim.set(Router, this.router);
|
|
16138
16581
|
}
|
|
16139
16582
|
this.simpleApplication.run(otherInstanceSim);
|
|
16140
16583
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16146,7 +16589,7 @@ var SwcAppTemplate = class SwcAppTemplate2 extends SwcHTMLTemplateElementBase {
|
|
|
16146
16589
|
}
|
|
16147
16590
|
}
|
|
16148
16591
|
if (_config.path) {
|
|
16149
|
-
await this.
|
|
16592
|
+
await this.router?.go(_config.path);
|
|
16150
16593
|
}
|
|
16151
16594
|
}
|
|
16152
16595
|
} catch (e) {
|
|
@@ -16158,7 +16601,7 @@ var SwcAppTemplate = class SwcAppTemplate2 extends SwcHTMLTemplateElementBase {
|
|
|
16158
16601
|
this.routerSubscription?.unsubscribe();
|
|
16159
16602
|
}
|
|
16160
16603
|
async routing(path) {
|
|
16161
|
-
await this.
|
|
16604
|
+
await this.router?.go(path);
|
|
16162
16605
|
}
|
|
16163
16606
|
async routingProcess(path) {
|
|
16164
16607
|
await this.simpleApplication?.routing(path);
|
|
@@ -16194,12 +16637,18 @@ var SwcAppTextArea = class SwcAppTextArea2 extends SwcHTMLTextAreaElementBase {
|
|
|
16194
16637
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16195
16638
|
if (userConfig) {
|
|
16196
16639
|
const _config = {
|
|
16197
|
-
routeType: "
|
|
16640
|
+
routeType: "element",
|
|
16198
16641
|
window,
|
|
16199
16642
|
...userConfig
|
|
16200
16643
|
};
|
|
16201
|
-
|
|
16202
|
-
|
|
16644
|
+
if (_config.routeType === "path") {
|
|
16645
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16646
|
+
} else if (_config.routeType === "hash") {
|
|
16647
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16648
|
+
} else {
|
|
16649
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16650
|
+
}
|
|
16651
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16203
16652
|
if (route.triggerPoint === "end") {
|
|
16204
16653
|
this.routingProcess(route.path);
|
|
16205
16654
|
}
|
|
@@ -16210,8 +16659,8 @@ var SwcAppTextArea = class SwcAppTextArea2 extends SwcHTMLTextAreaElementBase {
|
|
|
16210
16659
|
});
|
|
16211
16660
|
this.simpleApplication = new SimpleApplication(option);
|
|
16212
16661
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16213
|
-
if (this.
|
|
16214
|
-
otherInstanceSim.set(Router, this.
|
|
16662
|
+
if (this.router) {
|
|
16663
|
+
otherInstanceSim.set(Router, this.router);
|
|
16215
16664
|
}
|
|
16216
16665
|
this.simpleApplication.run(otherInstanceSim);
|
|
16217
16666
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16223,7 +16672,7 @@ var SwcAppTextArea = class SwcAppTextArea2 extends SwcHTMLTextAreaElementBase {
|
|
|
16223
16672
|
}
|
|
16224
16673
|
}
|
|
16225
16674
|
if (_config.path) {
|
|
16226
|
-
await this.
|
|
16675
|
+
await this.router?.go(_config.path);
|
|
16227
16676
|
}
|
|
16228
16677
|
}
|
|
16229
16678
|
} catch (e) {
|
|
@@ -16235,7 +16684,7 @@ var SwcAppTextArea = class SwcAppTextArea2 extends SwcHTMLTextAreaElementBase {
|
|
|
16235
16684
|
this.routerSubscription?.unsubscribe();
|
|
16236
16685
|
}
|
|
16237
16686
|
async routing(path) {
|
|
16238
|
-
await this.
|
|
16687
|
+
await this.router?.go(path);
|
|
16239
16688
|
}
|
|
16240
16689
|
async routingProcess(path) {
|
|
16241
16690
|
await this.simpleApplication?.routing(path);
|
|
@@ -16271,12 +16720,18 @@ var SwcAppTime = class SwcAppTime2 extends SwcHTMLTimeElementBase {
|
|
|
16271
16720
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16272
16721
|
if (userConfig) {
|
|
16273
16722
|
const _config = {
|
|
16274
|
-
routeType: "
|
|
16723
|
+
routeType: "element",
|
|
16275
16724
|
window,
|
|
16276
16725
|
...userConfig
|
|
16277
16726
|
};
|
|
16278
|
-
|
|
16279
|
-
|
|
16727
|
+
if (_config.routeType === "path") {
|
|
16728
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16729
|
+
} else if (_config.routeType === "hash") {
|
|
16730
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16731
|
+
} else {
|
|
16732
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16733
|
+
}
|
|
16734
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16280
16735
|
if (route.triggerPoint === "end") {
|
|
16281
16736
|
this.routingProcess(route.path);
|
|
16282
16737
|
}
|
|
@@ -16287,8 +16742,8 @@ var SwcAppTime = class SwcAppTime2 extends SwcHTMLTimeElementBase {
|
|
|
16287
16742
|
});
|
|
16288
16743
|
this.simpleApplication = new SimpleApplication(option);
|
|
16289
16744
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16290
|
-
if (this.
|
|
16291
|
-
otherInstanceSim.set(Router, this.
|
|
16745
|
+
if (this.router) {
|
|
16746
|
+
otherInstanceSim.set(Router, this.router);
|
|
16292
16747
|
}
|
|
16293
16748
|
this.simpleApplication.run(otherInstanceSim);
|
|
16294
16749
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16300,7 +16755,7 @@ var SwcAppTime = class SwcAppTime2 extends SwcHTMLTimeElementBase {
|
|
|
16300
16755
|
}
|
|
16301
16756
|
}
|
|
16302
16757
|
if (_config.path) {
|
|
16303
|
-
await this.
|
|
16758
|
+
await this.router?.go(_config.path);
|
|
16304
16759
|
}
|
|
16305
16760
|
}
|
|
16306
16761
|
} catch (e) {
|
|
@@ -16312,7 +16767,7 @@ var SwcAppTime = class SwcAppTime2 extends SwcHTMLTimeElementBase {
|
|
|
16312
16767
|
this.routerSubscription?.unsubscribe();
|
|
16313
16768
|
}
|
|
16314
16769
|
async routing(path) {
|
|
16315
|
-
await this.
|
|
16770
|
+
await this.router?.go(path);
|
|
16316
16771
|
}
|
|
16317
16772
|
async routingProcess(path) {
|
|
16318
16773
|
await this.simpleApplication?.routing(path);
|
|
@@ -16348,12 +16803,18 @@ var SwcAppTitle = class SwcAppTitle2 extends SwcHTMLTitleElementBase {
|
|
|
16348
16803
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16349
16804
|
if (userConfig) {
|
|
16350
16805
|
const _config = {
|
|
16351
|
-
routeType: "
|
|
16806
|
+
routeType: "element",
|
|
16352
16807
|
window,
|
|
16353
16808
|
...userConfig
|
|
16354
16809
|
};
|
|
16355
|
-
|
|
16356
|
-
|
|
16810
|
+
if (_config.routeType === "path") {
|
|
16811
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16812
|
+
} else if (_config.routeType === "hash") {
|
|
16813
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16814
|
+
} else {
|
|
16815
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16816
|
+
}
|
|
16817
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16357
16818
|
if (route.triggerPoint === "end") {
|
|
16358
16819
|
this.routingProcess(route.path);
|
|
16359
16820
|
}
|
|
@@ -16364,8 +16825,8 @@ var SwcAppTitle = class SwcAppTitle2 extends SwcHTMLTitleElementBase {
|
|
|
16364
16825
|
});
|
|
16365
16826
|
this.simpleApplication = new SimpleApplication(option);
|
|
16366
16827
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16367
|
-
if (this.
|
|
16368
|
-
otherInstanceSim.set(Router, this.
|
|
16828
|
+
if (this.router) {
|
|
16829
|
+
otherInstanceSim.set(Router, this.router);
|
|
16369
16830
|
}
|
|
16370
16831
|
this.simpleApplication.run(otherInstanceSim);
|
|
16371
16832
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16377,7 +16838,7 @@ var SwcAppTitle = class SwcAppTitle2 extends SwcHTMLTitleElementBase {
|
|
|
16377
16838
|
}
|
|
16378
16839
|
}
|
|
16379
16840
|
if (_config.path) {
|
|
16380
|
-
await this.
|
|
16841
|
+
await this.router?.go(_config.path);
|
|
16381
16842
|
}
|
|
16382
16843
|
}
|
|
16383
16844
|
} catch (e) {
|
|
@@ -16389,7 +16850,7 @@ var SwcAppTitle = class SwcAppTitle2 extends SwcHTMLTitleElementBase {
|
|
|
16389
16850
|
this.routerSubscription?.unsubscribe();
|
|
16390
16851
|
}
|
|
16391
16852
|
async routing(path) {
|
|
16392
|
-
await this.
|
|
16853
|
+
await this.router?.go(path);
|
|
16393
16854
|
}
|
|
16394
16855
|
async routingProcess(path) {
|
|
16395
16856
|
await this.simpleApplication?.routing(path);
|
|
@@ -16425,12 +16886,18 @@ var SwcAppTableRow = class SwcAppTableRow2 extends SwcHTMLTableRowElementBase {
|
|
|
16425
16886
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16426
16887
|
if (userConfig) {
|
|
16427
16888
|
const _config = {
|
|
16428
|
-
routeType: "
|
|
16889
|
+
routeType: "element",
|
|
16429
16890
|
window,
|
|
16430
16891
|
...userConfig
|
|
16431
16892
|
};
|
|
16432
|
-
|
|
16433
|
-
|
|
16893
|
+
if (_config.routeType === "path") {
|
|
16894
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16895
|
+
} else if (_config.routeType === "hash") {
|
|
16896
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16897
|
+
} else {
|
|
16898
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16899
|
+
}
|
|
16900
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16434
16901
|
if (route.triggerPoint === "end") {
|
|
16435
16902
|
this.routingProcess(route.path);
|
|
16436
16903
|
}
|
|
@@ -16441,8 +16908,8 @@ var SwcAppTableRow = class SwcAppTableRow2 extends SwcHTMLTableRowElementBase {
|
|
|
16441
16908
|
});
|
|
16442
16909
|
this.simpleApplication = new SimpleApplication(option);
|
|
16443
16910
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16444
|
-
if (this.
|
|
16445
|
-
otherInstanceSim.set(Router, this.
|
|
16911
|
+
if (this.router) {
|
|
16912
|
+
otherInstanceSim.set(Router, this.router);
|
|
16446
16913
|
}
|
|
16447
16914
|
this.simpleApplication.run(otherInstanceSim);
|
|
16448
16915
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16454,7 +16921,7 @@ var SwcAppTableRow = class SwcAppTableRow2 extends SwcHTMLTableRowElementBase {
|
|
|
16454
16921
|
}
|
|
16455
16922
|
}
|
|
16456
16923
|
if (_config.path) {
|
|
16457
|
-
await this.
|
|
16924
|
+
await this.router?.go(_config.path);
|
|
16458
16925
|
}
|
|
16459
16926
|
}
|
|
16460
16927
|
} catch (e) {
|
|
@@ -16466,7 +16933,7 @@ var SwcAppTableRow = class SwcAppTableRow2 extends SwcHTMLTableRowElementBase {
|
|
|
16466
16933
|
this.routerSubscription?.unsubscribe();
|
|
16467
16934
|
}
|
|
16468
16935
|
async routing(path) {
|
|
16469
|
-
await this.
|
|
16936
|
+
await this.router?.go(path);
|
|
16470
16937
|
}
|
|
16471
16938
|
async routingProcess(path) {
|
|
16472
16939
|
await this.simpleApplication?.routing(path);
|
|
@@ -16502,12 +16969,18 @@ var SwcAppTrack = class SwcAppTrack2 extends SwcHTMLTrackElementBase {
|
|
|
16502
16969
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16503
16970
|
if (userConfig) {
|
|
16504
16971
|
const _config = {
|
|
16505
|
-
routeType: "
|
|
16972
|
+
routeType: "element",
|
|
16506
16973
|
window,
|
|
16507
16974
|
...userConfig
|
|
16508
16975
|
};
|
|
16509
|
-
|
|
16510
|
-
|
|
16976
|
+
if (_config.routeType === "path") {
|
|
16977
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
16978
|
+
} else if (_config.routeType === "hash") {
|
|
16979
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
16980
|
+
} else {
|
|
16981
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
16982
|
+
}
|
|
16983
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16511
16984
|
if (route.triggerPoint === "end") {
|
|
16512
16985
|
this.routingProcess(route.path);
|
|
16513
16986
|
}
|
|
@@ -16518,8 +16991,8 @@ var SwcAppTrack = class SwcAppTrack2 extends SwcHTMLTrackElementBase {
|
|
|
16518
16991
|
});
|
|
16519
16992
|
this.simpleApplication = new SimpleApplication(option);
|
|
16520
16993
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16521
|
-
if (this.
|
|
16522
|
-
otherInstanceSim.set(Router, this.
|
|
16994
|
+
if (this.router) {
|
|
16995
|
+
otherInstanceSim.set(Router, this.router);
|
|
16523
16996
|
}
|
|
16524
16997
|
this.simpleApplication.run(otherInstanceSim);
|
|
16525
16998
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16531,7 +17004,7 @@ var SwcAppTrack = class SwcAppTrack2 extends SwcHTMLTrackElementBase {
|
|
|
16531
17004
|
}
|
|
16532
17005
|
}
|
|
16533
17006
|
if (_config.path) {
|
|
16534
|
-
await this.
|
|
17007
|
+
await this.router?.go(_config.path);
|
|
16535
17008
|
}
|
|
16536
17009
|
}
|
|
16537
17010
|
} catch (e) {
|
|
@@ -16543,7 +17016,7 @@ var SwcAppTrack = class SwcAppTrack2 extends SwcHTMLTrackElementBase {
|
|
|
16543
17016
|
this.routerSubscription?.unsubscribe();
|
|
16544
17017
|
}
|
|
16545
17018
|
async routing(path) {
|
|
16546
|
-
await this.
|
|
17019
|
+
await this.router?.go(path);
|
|
16547
17020
|
}
|
|
16548
17021
|
async routingProcess(path) {
|
|
16549
17022
|
await this.simpleApplication?.routing(path);
|
|
@@ -16579,12 +17052,18 @@ var SwcAppUl = class SwcAppUl2 extends SwcHTMLUListElementBase {
|
|
|
16579
17052
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16580
17053
|
if (userConfig) {
|
|
16581
17054
|
const _config = {
|
|
16582
|
-
routeType: "
|
|
17055
|
+
routeType: "element",
|
|
16583
17056
|
window,
|
|
16584
17057
|
...userConfig
|
|
16585
17058
|
};
|
|
16586
|
-
|
|
16587
|
-
|
|
17059
|
+
if (_config.routeType === "path") {
|
|
17060
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
17061
|
+
} else if (_config.routeType === "hash") {
|
|
17062
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
17063
|
+
} else {
|
|
17064
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
17065
|
+
}
|
|
17066
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16588
17067
|
if (route.triggerPoint === "end") {
|
|
16589
17068
|
this.routingProcess(route.path);
|
|
16590
17069
|
}
|
|
@@ -16595,8 +17074,8 @@ var SwcAppUl = class SwcAppUl2 extends SwcHTMLUListElementBase {
|
|
|
16595
17074
|
});
|
|
16596
17075
|
this.simpleApplication = new SimpleApplication(option);
|
|
16597
17076
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16598
|
-
if (this.
|
|
16599
|
-
otherInstanceSim.set(Router, this.
|
|
17077
|
+
if (this.router) {
|
|
17078
|
+
otherInstanceSim.set(Router, this.router);
|
|
16600
17079
|
}
|
|
16601
17080
|
this.simpleApplication.run(otherInstanceSim);
|
|
16602
17081
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16608,7 +17087,7 @@ var SwcAppUl = class SwcAppUl2 extends SwcHTMLUListElementBase {
|
|
|
16608
17087
|
}
|
|
16609
17088
|
}
|
|
16610
17089
|
if (_config.path) {
|
|
16611
|
-
await this.
|
|
17090
|
+
await this.router?.go(_config.path);
|
|
16612
17091
|
}
|
|
16613
17092
|
}
|
|
16614
17093
|
} catch (e) {
|
|
@@ -16620,7 +17099,7 @@ var SwcAppUl = class SwcAppUl2 extends SwcHTMLUListElementBase {
|
|
|
16620
17099
|
this.routerSubscription?.unsubscribe();
|
|
16621
17100
|
}
|
|
16622
17101
|
async routing(path) {
|
|
16623
|
-
await this.
|
|
17102
|
+
await this.router?.go(path);
|
|
16624
17103
|
}
|
|
16625
17104
|
async routingProcess(path) {
|
|
16626
17105
|
await this.simpleApplication?.routing(path);
|
|
@@ -16656,12 +17135,18 @@ var SwcAppVideo = class SwcAppVideo2 extends SwcHTMLVideoElementBase {
|
|
|
16656
17135
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16657
17136
|
if (userConfig) {
|
|
16658
17137
|
const _config = {
|
|
16659
|
-
routeType: "
|
|
17138
|
+
routeType: "element",
|
|
16660
17139
|
window,
|
|
16661
17140
|
...userConfig
|
|
16662
17141
|
};
|
|
16663
|
-
|
|
16664
|
-
|
|
17142
|
+
if (_config.routeType === "path") {
|
|
17143
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
17144
|
+
} else if (_config.routeType === "hash") {
|
|
17145
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
17146
|
+
} else {
|
|
17147
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
17148
|
+
}
|
|
17149
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16665
17150
|
if (route.triggerPoint === "end") {
|
|
16666
17151
|
this.routingProcess(route.path);
|
|
16667
17152
|
}
|
|
@@ -16672,8 +17157,8 @@ var SwcAppVideo = class SwcAppVideo2 extends SwcHTMLVideoElementBase {
|
|
|
16672
17157
|
});
|
|
16673
17158
|
this.simpleApplication = new SimpleApplication(option);
|
|
16674
17159
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16675
|
-
if (this.
|
|
16676
|
-
otherInstanceSim.set(Router, this.
|
|
17160
|
+
if (this.router) {
|
|
17161
|
+
otherInstanceSim.set(Router, this.router);
|
|
16677
17162
|
}
|
|
16678
17163
|
this.simpleApplication.run(otherInstanceSim);
|
|
16679
17164
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16685,7 +17170,7 @@ var SwcAppVideo = class SwcAppVideo2 extends SwcHTMLVideoElementBase {
|
|
|
16685
17170
|
}
|
|
16686
17171
|
}
|
|
16687
17172
|
if (_config.path) {
|
|
16688
|
-
await this.
|
|
17173
|
+
await this.router?.go(_config.path);
|
|
16689
17174
|
}
|
|
16690
17175
|
}
|
|
16691
17176
|
} catch (e) {
|
|
@@ -16697,7 +17182,7 @@ var SwcAppVideo = class SwcAppVideo2 extends SwcHTMLVideoElementBase {
|
|
|
16697
17182
|
this.routerSubscription?.unsubscribe();
|
|
16698
17183
|
}
|
|
16699
17184
|
async routing(path) {
|
|
16700
|
-
await this.
|
|
17185
|
+
await this.router?.go(path);
|
|
16701
17186
|
}
|
|
16702
17187
|
async routingProcess(path) {
|
|
16703
17188
|
await this.simpleApplication?.routing(path);
|
|
@@ -16733,12 +17218,18 @@ var SwcAppHeading = class SwcAppHeading2 extends SwcHTMLHeadingElementBase {
|
|
|
16733
17218
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16734
17219
|
if (userConfig) {
|
|
16735
17220
|
const _config = {
|
|
16736
|
-
routeType: "
|
|
17221
|
+
routeType: "element",
|
|
16737
17222
|
window,
|
|
16738
17223
|
...userConfig
|
|
16739
17224
|
};
|
|
16740
|
-
|
|
16741
|
-
|
|
17225
|
+
if (_config.routeType === "path") {
|
|
17226
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
17227
|
+
} else if (_config.routeType === "hash") {
|
|
17228
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
17229
|
+
} else {
|
|
17230
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
17231
|
+
}
|
|
17232
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16742
17233
|
if (route.triggerPoint === "end") {
|
|
16743
17234
|
this.routingProcess(route.path);
|
|
16744
17235
|
}
|
|
@@ -16749,8 +17240,8 @@ var SwcAppHeading = class SwcAppHeading2 extends SwcHTMLHeadingElementBase {
|
|
|
16749
17240
|
});
|
|
16750
17241
|
this.simpleApplication = new SimpleApplication(option);
|
|
16751
17242
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16752
|
-
if (this.
|
|
16753
|
-
otherInstanceSim.set(Router, this.
|
|
17243
|
+
if (this.router) {
|
|
17244
|
+
otherInstanceSim.set(Router, this.router);
|
|
16754
17245
|
}
|
|
16755
17246
|
this.simpleApplication.run(otherInstanceSim);
|
|
16756
17247
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16762,7 +17253,7 @@ var SwcAppHeading = class SwcAppHeading2 extends SwcHTMLHeadingElementBase {
|
|
|
16762
17253
|
}
|
|
16763
17254
|
}
|
|
16764
17255
|
if (_config.path) {
|
|
16765
|
-
await this.
|
|
17256
|
+
await this.router?.go(_config.path);
|
|
16766
17257
|
}
|
|
16767
17258
|
}
|
|
16768
17259
|
} catch (e) {
|
|
@@ -16774,7 +17265,7 @@ var SwcAppHeading = class SwcAppHeading2 extends SwcHTMLHeadingElementBase {
|
|
|
16774
17265
|
this.routerSubscription?.unsubscribe();
|
|
16775
17266
|
}
|
|
16776
17267
|
async routing(path) {
|
|
16777
|
-
await this.
|
|
17268
|
+
await this.router?.go(path);
|
|
16778
17269
|
}
|
|
16779
17270
|
async routingProcess(path) {
|
|
16780
17271
|
await this.simpleApplication?.routing(path);
|
|
@@ -16810,12 +17301,18 @@ var SwcAppBody = class SwcAppBody2 extends SwcHTMLBodyElementBase {
|
|
|
16810
17301
|
const userConfig = new Function(`return ${applicationConfigStr}`).apply(this);
|
|
16811
17302
|
if (userConfig) {
|
|
16812
17303
|
const _config = {
|
|
16813
|
-
routeType: "
|
|
17304
|
+
routeType: "element",
|
|
16814
17305
|
window,
|
|
16815
17306
|
...userConfig
|
|
16816
17307
|
};
|
|
16817
|
-
|
|
16818
|
-
|
|
17308
|
+
if (_config.routeType === "path") {
|
|
17309
|
+
this.router = new PathRouter({ window: _config.window, firstUrl: _config.path });
|
|
17310
|
+
} else if (_config.routeType === "hash") {
|
|
17311
|
+
this.router = new HashRouter({ window: _config.window, firstUrl: _config.path });
|
|
17312
|
+
} else {
|
|
17313
|
+
this.router = new ElementRouter({ window: _config.window, firstUrl: _config.path });
|
|
17314
|
+
}
|
|
17315
|
+
this.routerSubscription = this.router.observable.subscribe((route) => {
|
|
16819
17316
|
if (route.triggerPoint === "end") {
|
|
16820
17317
|
this.routingProcess(route.path);
|
|
16821
17318
|
}
|
|
@@ -16826,8 +17323,8 @@ var SwcAppBody = class SwcAppBody2 extends SwcHTMLBodyElementBase {
|
|
|
16826
17323
|
});
|
|
16827
17324
|
this.simpleApplication = new SimpleApplication(option);
|
|
16828
17325
|
const otherInstanceSim = /* @__PURE__ */ new Map();
|
|
16829
|
-
if (this.
|
|
16830
|
-
otherInstanceSim.set(Router, this.
|
|
17326
|
+
if (this.router) {
|
|
17327
|
+
otherInstanceSim.set(Router, this.router);
|
|
16831
17328
|
}
|
|
16832
17329
|
this.simpleApplication.run(otherInstanceSim);
|
|
16833
17330
|
const data = this.simpleApplication.sim(_config.rootRouter);
|
|
@@ -16839,7 +17336,7 @@ var SwcAppBody = class SwcAppBody2 extends SwcHTMLBodyElementBase {
|
|
|
16839
17336
|
}
|
|
16840
17337
|
}
|
|
16841
17338
|
if (_config.path) {
|
|
16842
|
-
await this.
|
|
17339
|
+
await this.router?.go(_config.path);
|
|
16843
17340
|
}
|
|
16844
17341
|
}
|
|
16845
17342
|
} catch (e) {
|
|
@@ -16851,7 +17348,7 @@ var SwcAppBody = class SwcAppBody2 extends SwcHTMLBodyElementBase {
|
|
|
16851
17348
|
this.routerSubscription?.unsubscribe();
|
|
16852
17349
|
}
|
|
16853
17350
|
async routing(path) {
|
|
16854
|
-
await this.
|
|
17351
|
+
await this.router?.go(path);
|
|
16855
17352
|
}
|
|
16856
17353
|
async routingProcess(path) {
|
|
16857
17354
|
await this.simpleApplication?.routing(path);
|