@dooboostore/simple-web-component 1.0.6 → 1.0.7
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/README.md +134 -87
- package/dist/cjs/decorators/addEventListener.js.map +1 -1
- package/dist/cjs/decorators/elementDefine.js +59 -35
- package/dist/cjs/decorators/elementDefine.js.map +2 -2
- package/dist/cjs/decorators/query.js +27 -5
- package/dist/cjs/decorators/query.js.map +2 -2
- package/dist/cjs/decorators/queryAll.js +27 -5
- package/dist/cjs/decorators/queryAll.js.map +2 -2
- package/dist/cjs/decorators/state.js.map +1 -1
- package/dist/cjs/elements/SwcChoose.js.map +2 -2
- package/dist/cjs/elements/SwcForOf.js +3 -1
- package/dist/cjs/elements/SwcForOf.js.map +2 -2
- package/dist/cjs/elements/SwcObject.js +8 -6
- package/dist/cjs/elements/SwcObject.js.map +2 -2
- package/dist/cjs/index.js +3 -6
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/is/SwcIfAnchor.js +1 -1
- package/dist/cjs/is/SwcIfAnchor.js.map +2 -2
- package/dist/cjs/is/SwcIfArea.js +1 -1
- package/dist/cjs/is/SwcIfArea.js.map +2 -2
- package/dist/cjs/is/SwcIfAudio.js +1 -1
- package/dist/cjs/is/SwcIfAudio.js.map +2 -2
- package/dist/cjs/is/SwcIfBase.js +1 -1
- package/dist/cjs/is/SwcIfBase.js.map +2 -2
- package/dist/cjs/is/SwcIfButton.js +1 -1
- package/dist/cjs/is/SwcIfButton.js.map +2 -2
- package/dist/cjs/is/SwcIfCanvas.js +1 -1
- package/dist/cjs/is/SwcIfCanvas.js.map +2 -2
- package/dist/cjs/is/SwcIfData.js +1 -1
- package/dist/cjs/is/SwcIfData.js.map +2 -2
- package/dist/cjs/is/SwcIfDataList.js +1 -1
- package/dist/cjs/is/SwcIfDataList.js.map +2 -2
- package/dist/cjs/is/SwcIfDetails.js +1 -1
- package/dist/cjs/is/SwcIfDetails.js.map +2 -2
- package/dist/cjs/is/SwcIfDialog.js +1 -1
- package/dist/cjs/is/SwcIfDialog.js.map +2 -2
- package/dist/cjs/is/SwcIfDiv.js +1 -1
- package/dist/cjs/is/SwcIfDiv.js.map +2 -2
- package/dist/cjs/is/SwcIfDl.js +1 -1
- package/dist/cjs/is/SwcIfDl.js.map +2 -2
- package/dist/cjs/is/SwcIfEmbed.js +1 -1
- package/dist/cjs/is/SwcIfEmbed.js.map +2 -2
- package/dist/cjs/is/SwcIfFieldSet.js +1 -1
- package/dist/cjs/is/SwcIfFieldSet.js.map +2 -2
- package/dist/cjs/is/SwcIfForm.js +1 -1
- package/dist/cjs/is/SwcIfForm.js.map +2 -2
- package/dist/cjs/is/SwcIfHeading.js +1 -1
- package/dist/cjs/is/SwcIfHeading.js.map +2 -2
- package/dist/cjs/is/SwcIfHr.js +1 -1
- package/dist/cjs/is/SwcIfHr.js.map +2 -2
- package/dist/cjs/is/SwcIfIFrame.js +1 -1
- package/dist/cjs/is/SwcIfIFrame.js.map +2 -2
- package/dist/cjs/is/SwcIfImage.js +1 -1
- package/dist/cjs/is/SwcIfImage.js.map +2 -2
- package/dist/cjs/is/SwcIfInput.js +1 -1
- package/dist/cjs/is/SwcIfInput.js.map +2 -2
- package/dist/cjs/is/SwcIfLabel.js +1 -1
- package/dist/cjs/is/SwcIfLabel.js.map +2 -2
- package/dist/cjs/is/SwcIfLegend.js +1 -1
- package/dist/cjs/is/SwcIfLegend.js.map +2 -2
- package/dist/cjs/is/SwcIfLi.js +1 -1
- package/dist/cjs/is/SwcIfLi.js.map +2 -2
- package/dist/cjs/is/SwcIfLink.js +1 -1
- package/dist/cjs/is/SwcIfLink.js.map +2 -2
- package/dist/cjs/is/SwcIfMap.js +1 -1
- package/dist/cjs/is/SwcIfMap.js.map +2 -2
- package/dist/cjs/is/SwcIfMeta.js +1 -1
- package/dist/cjs/is/SwcIfMeta.js.map +2 -2
- package/dist/cjs/is/SwcIfMeter.js +1 -1
- package/dist/cjs/is/SwcIfMeter.js.map +2 -2
- package/dist/cjs/is/SwcIfMod.js +1 -1
- package/dist/cjs/is/SwcIfMod.js.map +2 -2
- package/dist/cjs/is/SwcIfObject.js +1 -1
- package/dist/cjs/is/SwcIfObject.js.map +2 -2
- package/dist/cjs/is/SwcIfOl.js +1 -1
- package/dist/cjs/is/SwcIfOl.js.map +2 -2
- package/dist/cjs/is/SwcIfOptGroup.js +1 -1
- package/dist/cjs/is/SwcIfOptGroup.js.map +2 -2
- package/dist/cjs/is/SwcIfOption.js +1 -1
- package/dist/cjs/is/SwcIfOption.js.map +2 -2
- package/dist/cjs/is/SwcIfOutput.js +1 -1
- package/dist/cjs/is/SwcIfOutput.js.map +2 -2
- package/dist/cjs/is/SwcIfParagraph.js +1 -1
- package/dist/cjs/is/SwcIfParagraph.js.map +2 -2
- package/dist/cjs/is/SwcIfParam.js +1 -1
- package/dist/cjs/is/SwcIfParam.js.map +2 -2
- package/dist/cjs/is/SwcIfPicture.js +1 -1
- package/dist/cjs/is/SwcIfPicture.js.map +2 -2
- package/dist/cjs/is/SwcIfPre.js +1 -1
- package/dist/cjs/is/SwcIfPre.js.map +2 -2
- package/dist/cjs/is/SwcIfProgress.js +1 -1
- package/dist/cjs/is/SwcIfProgress.js.map +2 -2
- package/dist/cjs/is/SwcIfQuote.js +1 -1
- package/dist/cjs/is/SwcIfQuote.js.map +2 -2
- package/dist/cjs/is/SwcIfScript.js +1 -1
- package/dist/cjs/is/SwcIfScript.js.map +2 -2
- package/dist/cjs/is/SwcIfSelect.js +1 -1
- package/dist/cjs/is/SwcIfSelect.js.map +2 -2
- package/dist/cjs/is/SwcIfSlot.js +1 -1
- package/dist/cjs/is/SwcIfSlot.js.map +2 -2
- package/dist/cjs/is/SwcIfSource.js +1 -1
- package/dist/cjs/is/SwcIfSource.js.map +2 -2
- package/dist/cjs/is/SwcIfSpan.js +1 -1
- package/dist/cjs/is/SwcIfSpan.js.map +2 -2
- package/dist/cjs/is/SwcIfStyle.js +1 -1
- package/dist/cjs/is/SwcIfStyle.js.map +2 -2
- package/dist/cjs/is/SwcIfTable.js +1 -1
- package/dist/cjs/is/SwcIfTable.js.map +2 -2
- package/dist/cjs/is/SwcIfTableCell.js +1 -1
- package/dist/cjs/is/SwcIfTableCell.js.map +2 -2
- package/dist/cjs/is/SwcIfTableRow.js +1 -1
- package/dist/cjs/is/SwcIfTableRow.js.map +2 -2
- package/dist/cjs/is/SwcIfTableSection.js +1 -1
- package/dist/cjs/is/SwcIfTableSection.js.map +2 -2
- package/dist/cjs/is/SwcIfTemplate.js +1 -1
- package/dist/cjs/is/SwcIfTemplate.js.map +2 -2
- package/dist/cjs/is/SwcIfTextArea.js +1 -1
- package/dist/cjs/is/SwcIfTextArea.js.map +2 -2
- package/dist/cjs/is/SwcIfTime.js +1 -1
- package/dist/cjs/is/SwcIfTime.js.map +2 -2
- package/dist/cjs/is/SwcIfTitle.js +1 -1
- package/dist/cjs/is/SwcIfTitle.js.map +2 -2
- package/dist/cjs/is/SwcIfTrack.js +1 -1
- package/dist/cjs/is/SwcIfTrack.js.map +2 -2
- package/dist/cjs/is/SwcIfUl.js +1 -1
- package/dist/cjs/is/SwcIfUl.js.map +2 -2
- package/dist/cjs/is/SwcIfVideo.js +1 -1
- package/dist/cjs/is/SwcIfVideo.js.map +2 -2
- package/dist/esm/decorators/addEventListener.js.map +1 -1
- package/dist/esm/decorators/elementDefine.js +59 -35
- package/dist/esm/decorators/elementDefine.js.map +2 -2
- package/dist/esm/decorators/query.js +27 -5
- package/dist/esm/decorators/query.js.map +2 -2
- package/dist/esm/decorators/queryAll.js +27 -5
- package/dist/esm/decorators/queryAll.js.map +2 -2
- package/dist/esm/decorators/state.js.map +1 -1
- package/dist/esm/elements/SwcChoose.js.map +2 -2
- package/dist/esm/elements/SwcForOf.js +3 -1
- package/dist/esm/elements/SwcForOf.js.map +2 -2
- package/dist/esm/elements/SwcObject.js +8 -6
- package/dist/esm/elements/SwcObject.js.map +2 -2
- package/dist/esm/index.js +3 -6
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/is/SwcIfAnchor.js +1 -1
- package/dist/esm/is/SwcIfAnchor.js.map +2 -2
- package/dist/esm/is/SwcIfArea.js +1 -1
- package/dist/esm/is/SwcIfArea.js.map +2 -2
- package/dist/esm/is/SwcIfAudio.js +1 -1
- package/dist/esm/is/SwcIfAudio.js.map +2 -2
- package/dist/esm/is/SwcIfBase.js +1 -1
- package/dist/esm/is/SwcIfBase.js.map +2 -2
- package/dist/esm/is/SwcIfButton.js +1 -1
- package/dist/esm/is/SwcIfButton.js.map +2 -2
- package/dist/esm/is/SwcIfCanvas.js +1 -1
- package/dist/esm/is/SwcIfCanvas.js.map +2 -2
- package/dist/esm/is/SwcIfData.js +1 -1
- package/dist/esm/is/SwcIfData.js.map +2 -2
- package/dist/esm/is/SwcIfDataList.js +1 -1
- package/dist/esm/is/SwcIfDataList.js.map +2 -2
- package/dist/esm/is/SwcIfDetails.js +1 -1
- package/dist/esm/is/SwcIfDetails.js.map +2 -2
- package/dist/esm/is/SwcIfDialog.js +1 -1
- package/dist/esm/is/SwcIfDialog.js.map +2 -2
- package/dist/esm/is/SwcIfDiv.js +1 -1
- package/dist/esm/is/SwcIfDiv.js.map +2 -2
- package/dist/esm/is/SwcIfDl.js +1 -1
- package/dist/esm/is/SwcIfDl.js.map +2 -2
- package/dist/esm/is/SwcIfEmbed.js +1 -1
- package/dist/esm/is/SwcIfEmbed.js.map +2 -2
- package/dist/esm/is/SwcIfFieldSet.js +1 -1
- package/dist/esm/is/SwcIfFieldSet.js.map +2 -2
- package/dist/esm/is/SwcIfForm.js +1 -1
- package/dist/esm/is/SwcIfForm.js.map +2 -2
- package/dist/esm/is/SwcIfHeading.js +1 -1
- package/dist/esm/is/SwcIfHeading.js.map +2 -2
- package/dist/esm/is/SwcIfHr.js +1 -1
- package/dist/esm/is/SwcIfHr.js.map +2 -2
- package/dist/esm/is/SwcIfIFrame.js +1 -1
- package/dist/esm/is/SwcIfIFrame.js.map +2 -2
- package/dist/esm/is/SwcIfImage.js +1 -1
- package/dist/esm/is/SwcIfImage.js.map +2 -2
- package/dist/esm/is/SwcIfInput.js +1 -1
- package/dist/esm/is/SwcIfInput.js.map +2 -2
- package/dist/esm/is/SwcIfLabel.js +1 -1
- package/dist/esm/is/SwcIfLabel.js.map +2 -2
- package/dist/esm/is/SwcIfLegend.js +1 -1
- package/dist/esm/is/SwcIfLegend.js.map +2 -2
- package/dist/esm/is/SwcIfLi.js +1 -1
- package/dist/esm/is/SwcIfLi.js.map +2 -2
- package/dist/esm/is/SwcIfLink.js +1 -1
- package/dist/esm/is/SwcIfLink.js.map +2 -2
- package/dist/esm/is/SwcIfMap.js +1 -1
- package/dist/esm/is/SwcIfMap.js.map +2 -2
- package/dist/esm/is/SwcIfMeta.js +1 -1
- package/dist/esm/is/SwcIfMeta.js.map +2 -2
- package/dist/esm/is/SwcIfMeter.js +1 -1
- package/dist/esm/is/SwcIfMeter.js.map +2 -2
- package/dist/esm/is/SwcIfMod.js +1 -1
- package/dist/esm/is/SwcIfMod.js.map +2 -2
- package/dist/esm/is/SwcIfObject.js +1 -1
- package/dist/esm/is/SwcIfObject.js.map +2 -2
- package/dist/esm/is/SwcIfOl.js +1 -1
- package/dist/esm/is/SwcIfOl.js.map +2 -2
- package/dist/esm/is/SwcIfOptGroup.js +1 -1
- package/dist/esm/is/SwcIfOptGroup.js.map +2 -2
- package/dist/esm/is/SwcIfOption.js +1 -1
- package/dist/esm/is/SwcIfOption.js.map +2 -2
- package/dist/esm/is/SwcIfOutput.js +1 -1
- package/dist/esm/is/SwcIfOutput.js.map +2 -2
- package/dist/esm/is/SwcIfParagraph.js +1 -1
- package/dist/esm/is/SwcIfParagraph.js.map +2 -2
- package/dist/esm/is/SwcIfParam.js +1 -1
- package/dist/esm/is/SwcIfParam.js.map +2 -2
- package/dist/esm/is/SwcIfPicture.js +1 -1
- package/dist/esm/is/SwcIfPicture.js.map +2 -2
- package/dist/esm/is/SwcIfPre.js +1 -1
- package/dist/esm/is/SwcIfPre.js.map +2 -2
- package/dist/esm/is/SwcIfProgress.js +1 -1
- package/dist/esm/is/SwcIfProgress.js.map +2 -2
- package/dist/esm/is/SwcIfQuote.js +1 -1
- package/dist/esm/is/SwcIfQuote.js.map +2 -2
- package/dist/esm/is/SwcIfScript.js +1 -1
- package/dist/esm/is/SwcIfScript.js.map +2 -2
- package/dist/esm/is/SwcIfSelect.js +1 -1
- package/dist/esm/is/SwcIfSelect.js.map +2 -2
- package/dist/esm/is/SwcIfSlot.js +1 -1
- package/dist/esm/is/SwcIfSlot.js.map +2 -2
- package/dist/esm/is/SwcIfSource.js +1 -1
- package/dist/esm/is/SwcIfSource.js.map +2 -2
- package/dist/esm/is/SwcIfSpan.js +1 -1
- package/dist/esm/is/SwcIfSpan.js.map +2 -2
- package/dist/esm/is/SwcIfStyle.js +1 -1
- package/dist/esm/is/SwcIfStyle.js.map +2 -2
- package/dist/esm/is/SwcIfTable.js +1 -1
- package/dist/esm/is/SwcIfTable.js.map +2 -2
- package/dist/esm/is/SwcIfTableCell.js +1 -1
- package/dist/esm/is/SwcIfTableCell.js.map +2 -2
- package/dist/esm/is/SwcIfTableRow.js +1 -1
- package/dist/esm/is/SwcIfTableRow.js.map +2 -2
- package/dist/esm/is/SwcIfTableSection.js +1 -1
- package/dist/esm/is/SwcIfTableSection.js.map +2 -2
- package/dist/esm/is/SwcIfTemplate.js +1 -1
- package/dist/esm/is/SwcIfTemplate.js.map +2 -2
- package/dist/esm/is/SwcIfTextArea.js +1 -1
- package/dist/esm/is/SwcIfTextArea.js.map +2 -2
- package/dist/esm/is/SwcIfTime.js +1 -1
- package/dist/esm/is/SwcIfTime.js.map +2 -2
- package/dist/esm/is/SwcIfTitle.js +1 -1
- package/dist/esm/is/SwcIfTitle.js.map +2 -2
- package/dist/esm/is/SwcIfTrack.js +1 -1
- package/dist/esm/is/SwcIfTrack.js.map +2 -2
- package/dist/esm/is/SwcIfUl.js +1 -1
- package/dist/esm/is/SwcIfUl.js.map +2 -2
- package/dist/esm/is/SwcIfVideo.js +1 -1
- package/dist/esm/is/SwcIfVideo.js.map +2 -2
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +1938 -2014
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +4 -4
- package/dist/types/decorators/addEventListener.d.ts +1 -1
- package/dist/types/decorators/addEventListener.d.ts.map +1 -1
- package/dist/types/decorators/elementDefine.d.ts.map +1 -1
- package/dist/types/decorators/query.d.ts +5 -2
- package/dist/types/decorators/query.d.ts.map +1 -1
- package/dist/types/decorators/queryAll.d.ts +5 -2
- package/dist/types/decorators/queryAll.d.ts.map +1 -1
- package/dist/types/decorators/state.d.ts +1 -1
- package/dist/types/decorators/state.d.ts.map +1 -1
- package/dist/types/elements/SwcChoose.d.ts.map +1 -1
- package/dist/types/elements/SwcForOf.d.ts.map +1 -1
- package/dist/types/elements/SwcObject.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -6
- package/dist/types/index.d.ts.map +1 -1
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +1938 -2014
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +4 -4
- package/package.json +4 -4
- package/src/decorators/addEventListener.ts +1 -1
- package/src/decorators/elementDefine.ts +64 -35
- package/src/decorators/query.ts +35 -8
- package/src/decorators/queryAll.ts +35 -8
- package/src/decorators/state.ts +1 -1
- package/src/elements/SwcChoose.ts +1 -5
- package/src/elements/SwcForOf.ts +2 -1
- package/src/elements/SwcObject.ts +8 -6
- package/src/index.ts +3 -6
- package/src/is/SwcIfAnchor.ts +1 -1
- package/src/is/SwcIfArea.ts +1 -1
- package/src/is/SwcIfAudio.ts +1 -1
- package/src/is/SwcIfBase.ts +1 -1
- package/src/is/SwcIfButton.ts +1 -1
- package/src/is/SwcIfCanvas.ts +1 -1
- package/src/is/SwcIfData.ts +1 -1
- package/src/is/SwcIfDataList.ts +1 -1
- package/src/is/SwcIfDetails.ts +1 -1
- package/src/is/SwcIfDialog.ts +1 -1
- package/src/is/SwcIfDiv.ts +1 -1
- package/src/is/SwcIfDl.ts +1 -1
- package/src/is/SwcIfEmbed.ts +1 -1
- package/src/is/SwcIfFieldSet.ts +1 -1
- package/src/is/SwcIfForm.ts +1 -1
- package/src/is/SwcIfHeading.ts +1 -1
- package/src/is/SwcIfHr.ts +1 -1
- package/src/is/SwcIfIFrame.ts +1 -1
- package/src/is/SwcIfImage.ts +1 -1
- package/src/is/SwcIfInput.ts +1 -1
- package/src/is/SwcIfLabel.ts +1 -1
- package/src/is/SwcIfLegend.ts +1 -1
- package/src/is/SwcIfLi.ts +1 -1
- package/src/is/SwcIfLink.ts +1 -1
- package/src/is/SwcIfMap.ts +1 -1
- package/src/is/SwcIfMeta.ts +1 -1
- package/src/is/SwcIfMeter.ts +1 -1
- package/src/is/SwcIfMod.ts +1 -1
- package/src/is/SwcIfObject.ts +1 -1
- package/src/is/SwcIfOl.ts +1 -1
- package/src/is/SwcIfOptGroup.ts +1 -1
- package/src/is/SwcIfOption.ts +1 -1
- package/src/is/SwcIfOutput.ts +1 -1
- package/src/is/SwcIfParagraph.ts +1 -1
- package/src/is/SwcIfParam.ts +1 -1
- package/src/is/SwcIfPicture.ts +1 -1
- package/src/is/SwcIfPre.ts +1 -1
- package/src/is/SwcIfProgress.ts +1 -1
- package/src/is/SwcIfQuote.ts +1 -1
- package/src/is/SwcIfScript.ts +1 -1
- package/src/is/SwcIfSelect.ts +1 -1
- package/src/is/SwcIfSlot.ts +1 -1
- package/src/is/SwcIfSource.ts +1 -1
- package/src/is/SwcIfSpan.ts +1 -1
- package/src/is/SwcIfStyle.ts +1 -1
- package/src/is/SwcIfTable.ts +1 -1
- package/src/is/SwcIfTableCell.ts +1 -1
- package/src/is/SwcIfTableRow.ts +1 -1
- package/src/is/SwcIfTableSection.ts +1 -1
- package/src/is/SwcIfTemplate.ts +1 -1
- package/src/is/SwcIfTextArea.ts +1 -1
- package/src/is/SwcIfTime.ts +1 -1
- package/src/is/SwcIfTitle.ts +1 -1
- package/src/is/SwcIfTrack.ts +1 -1
- package/src/is/SwcIfUl.ts +1 -1
- package/src/is/SwcIfVideo.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dooboostore/simple-web-component",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"bugs": {
|
|
23
23
|
"url": "https://github.com/dooboostore-develop/packages/issues"
|
|
24
24
|
},
|
|
25
|
-
"homepage": "https://github.com/dooboostore-develop/packages
|
|
25
|
+
"homepage": "https://github.com/dooboostore-develop/packages/tree/main/%40dooboostore/simple-web-component",
|
|
26
26
|
"keywords": [
|
|
27
27
|
"front",
|
|
28
28
|
"web-components",
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
"esbuild": "^0.23.0",
|
|
81
81
|
"reflect-metadata": "^0.2.2",
|
|
82
82
|
"@dooboostore/core": "1.0.28",
|
|
83
|
-
"@dooboostore/core-
|
|
84
|
-
"@dooboostore/core-
|
|
83
|
+
"@dooboostore/core-web": "1.0.9",
|
|
84
|
+
"@dooboostore/core-node": "1.0.10"
|
|
85
85
|
},
|
|
86
86
|
"scripts": {
|
|
87
87
|
"clean": "rm -rf dist",
|
|
@@ -3,7 +3,7 @@ import { ReflectUtils } from '@dooboostore/core/reflect/ReflectUtils';
|
|
|
3
3
|
export interface AddEventListenerOptions extends EventListenerOptions {
|
|
4
4
|
query?: string;
|
|
5
5
|
type: string;
|
|
6
|
-
|
|
6
|
+
root?: 'light' | 'shadow' | 'all' | 'auto';
|
|
7
7
|
capture?: boolean;
|
|
8
8
|
once?: boolean;
|
|
9
9
|
passive?: boolean;
|
|
@@ -157,66 +157,95 @@ export const elementDefine =
|
|
|
157
157
|
|
|
158
158
|
private _syncDecorators() {
|
|
159
159
|
this._buildStateMap();
|
|
160
|
+
|
|
161
|
+
const getSearchRoots = (rootOption?: string): Node[] => {
|
|
162
|
+
const roots: Node[] = [];
|
|
163
|
+
if (rootOption === 'shadow') {
|
|
164
|
+
if (this.shadowRoot) roots.push(this.shadowRoot);
|
|
165
|
+
} else if (rootOption === 'light') {
|
|
166
|
+
roots.push(this as any as Node);
|
|
167
|
+
} else if (rootOption === 'all') {
|
|
168
|
+
if (this.shadowRoot) roots.push(this.shadowRoot);
|
|
169
|
+
roots.push(this as any as Node);
|
|
170
|
+
} else {
|
|
171
|
+
// Default: 'auto'
|
|
172
|
+
roots.push(this.shadowRoot || (this as any as Node));
|
|
173
|
+
}
|
|
174
|
+
return roots;
|
|
175
|
+
};
|
|
176
|
+
|
|
160
177
|
const queryMetadata = getQueryMetadata(this);
|
|
161
178
|
if (queryMetadata) {
|
|
162
179
|
queryMetadata
|
|
163
180
|
.filter(it => it.isMethod)
|
|
164
181
|
.forEach(it => {
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
182
|
+
const searchRoots = getSearchRoots(it.options.root);
|
|
183
|
+
let foundEl: Element | null = null;
|
|
184
|
+
for (const root of searchRoots) {
|
|
185
|
+
foundEl = it.selector ? (root as HTMLElement).querySelector(it.selector) : (this as any as Element);
|
|
186
|
+
if (foundEl) break;
|
|
187
|
+
}
|
|
188
|
+
if (foundEl) {
|
|
189
|
+
let bound = this._boundElements.get(foundEl);
|
|
169
190
|
if (!bound) {
|
|
170
191
|
bound = new Set();
|
|
171
|
-
this._boundElements.set(
|
|
192
|
+
this._boundElements.set(foundEl, bound);
|
|
172
193
|
}
|
|
173
194
|
if (!bound.has(it.propertyKey)) {
|
|
174
|
-
(this as any)[it.propertyKey](
|
|
195
|
+
(this as any)[it.propertyKey](foundEl);
|
|
175
196
|
bound.add(it.propertyKey);
|
|
176
197
|
}
|
|
177
198
|
}
|
|
178
199
|
});
|
|
179
200
|
}
|
|
201
|
+
|
|
180
202
|
const queryAllMetadata = getQueryAllMetadata(this);
|
|
181
203
|
if (queryAllMetadata) {
|
|
182
204
|
queryAllMetadata
|
|
183
205
|
.filter(it => it.isMethod)
|
|
184
206
|
.forEach(it => {
|
|
185
|
-
const
|
|
186
|
-
const
|
|
187
|
-
(
|
|
207
|
+
const searchRoots = getSearchRoots(it.options.root);
|
|
208
|
+
const allElements: Element[] = [];
|
|
209
|
+
searchRoots.forEach(root => {
|
|
210
|
+
const found = it.selector ? (root as HTMLElement).querySelectorAll(it.selector) : [this as any as Element];
|
|
211
|
+
allElements.push(...Array.from(found));
|
|
212
|
+
});
|
|
213
|
+
(this as any)[it.propertyKey](allElements);
|
|
188
214
|
});
|
|
189
215
|
}
|
|
216
|
+
|
|
190
217
|
const eventListeners = getAddEventListenerMetadata(this);
|
|
191
218
|
if (eventListeners) {
|
|
192
219
|
eventListeners.forEach(it => {
|
|
193
|
-
const { query, type,
|
|
194
|
-
const
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
220
|
+
const { query, type, root: rootOption, ...options } = it.options;
|
|
221
|
+
const searchRoots = getSearchRoots(rootOption);
|
|
222
|
+
searchRoots.forEach(root => {
|
|
223
|
+
const targetElements = query ? (root as HTMLElement).querySelectorAll(query) : [this as any as Element];
|
|
224
|
+
targetElements.forEach(targetElement => {
|
|
225
|
+
if (targetElement) {
|
|
226
|
+
let bound = this._boundElements.get(targetElement);
|
|
227
|
+
if (!bound) {
|
|
228
|
+
bound = new Set();
|
|
229
|
+
this._boundElements.set(targetElement, bound);
|
|
230
|
+
}
|
|
231
|
+
const eventKey = `event:${String(it.propertyKey)}:${type}`;
|
|
232
|
+
if (!bound.has(eventKey)) {
|
|
233
|
+
const handler = (event: any) => {
|
|
234
|
+
if (it.options.stopImmediatePropagation) event.stopImmediatePropagation();
|
|
235
|
+
if (it.options.stopPropagation) event.stopPropagation();
|
|
236
|
+
if (it.options.preventDefault) event.preventDefault();
|
|
237
|
+
(this as any)[it.propertyKey](event, targetElement);
|
|
238
|
+
};
|
|
239
|
+
targetElement.addEventListener(type, handler, options);
|
|
240
|
+
bound.add(eventKey);
|
|
241
|
+
if (config.autoRemoveEventListeners) this._activeListeners.push({ el: targetElement, type, handler, options });
|
|
242
|
+
const addEventMethods = getLifecycleMetadata(this, ON_ADD_EVENT_LISTENER_METADATA_KEY);
|
|
243
|
+
addEventMethods?.forEach(m => {
|
|
244
|
+
if (typeof (this as any)[m] === 'function') (this as any)[m](targetElement, type, handler);
|
|
245
|
+
});
|
|
246
|
+
}
|
|
202
247
|
}
|
|
203
|
-
|
|
204
|
-
if (!bound.has(eventKey)) {
|
|
205
|
-
const handler = (event: any) => {
|
|
206
|
-
if (it.options.stopImmediatePropagation) event.stopImmediatePropagation();
|
|
207
|
-
if (it.options.stopPropagation) event.stopPropagation();
|
|
208
|
-
if (it.options.preventDefault) event.preventDefault();
|
|
209
|
-
(this as any)[it.propertyKey](event, targetElement);
|
|
210
|
-
};
|
|
211
|
-
targetElement.addEventListener(type, handler, options);
|
|
212
|
-
bound.add(eventKey);
|
|
213
|
-
if (config.autoRemoveEventListeners) this._activeListeners.push({ el: targetElement, type, handler, options });
|
|
214
|
-
const addEventMethods = getLifecycleMetadata(this, ON_ADD_EVENT_LISTENER_METADATA_KEY);
|
|
215
|
-
addEventMethods?.forEach(m => {
|
|
216
|
-
if (typeof (this as any)[m] === 'function') (this as any)[m](targetElement, type, handler);
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
}
|
|
248
|
+
});
|
|
220
249
|
});
|
|
221
250
|
});
|
|
222
251
|
}
|
package/src/decorators/query.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ReflectUtils } from '@dooboostore/core/reflect/ReflectUtils';
|
|
2
2
|
|
|
3
3
|
export interface QueryOptions {
|
|
4
|
-
|
|
4
|
+
selector?: string;
|
|
5
|
+
root?: 'light' | 'shadow' | 'all' | 'auto';
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
export interface QueryMetadata {
|
|
@@ -13,12 +14,14 @@ export interface QueryMetadata {
|
|
|
13
14
|
|
|
14
15
|
export const QUERY_METADATA_KEY = Symbol('simple-web-component:query');
|
|
15
16
|
|
|
16
|
-
export
|
|
17
|
-
|
|
17
|
+
export function query(selector: string): any;
|
|
18
|
+
export function query(options: QueryOptions): any;
|
|
19
|
+
export function query(target: Object, propertyKey: string | symbol): void;
|
|
20
|
+
export function query(arg1?: string | QueryOptions | Object, arg2?: string | symbol): any {
|
|
21
|
+
const decorator = (selector: string, options: QueryOptions, target: Object, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => {
|
|
18
22
|
const isMethod = !!descriptor;
|
|
19
23
|
const constructor = target.constructor;
|
|
20
24
|
|
|
21
|
-
// 메타데이터 저장 (나중에 elementDefine에서 사용)
|
|
22
25
|
let queries = ReflectUtils.getMetadata<QueryMetadata[]>(QUERY_METADATA_KEY, constructor);
|
|
23
26
|
if (!queries) {
|
|
24
27
|
queries = [];
|
|
@@ -27,18 +30,42 @@ export const query = (selector: string, options: QueryOptions = { useShadow: tru
|
|
|
27
30
|
queries.push({ selector, options, propertyKey, isMethod });
|
|
28
31
|
|
|
29
32
|
if (!isMethod) {
|
|
30
|
-
// 속성 데코레이터인 경우: 기존처럼 Lazy Getter 설정
|
|
31
33
|
Object.defineProperty(target, propertyKey, {
|
|
32
34
|
get(this: HTMLElement) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
if (!selector) return this;
|
|
36
|
+
let searchRoot: Node = this;
|
|
37
|
+
if (options.root === 'shadow') searchRoot = this.shadowRoot || this;
|
|
38
|
+
else if (options.root === 'light') searchRoot = this;
|
|
39
|
+
else searchRoot = this.shadowRoot || this; // Default: Auto (Shadow-First)
|
|
40
|
+
|
|
41
|
+
return (searchRoot as HTMLElement).querySelector(selector);
|
|
35
42
|
},
|
|
36
43
|
enumerable: true,
|
|
37
44
|
configurable: true
|
|
38
45
|
});
|
|
39
46
|
}
|
|
40
47
|
};
|
|
41
|
-
|
|
48
|
+
|
|
49
|
+
// Case: @query (parameterless decorator)
|
|
50
|
+
if (arg1 && typeof arg2 === 'string') {
|
|
51
|
+
return decorator('', {}, arg1 as Object, arg2 as string | symbol);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Case: @query('selector') or @query({ selector: '...', ... })
|
|
55
|
+
return (target: Object, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => {
|
|
56
|
+
let selector = '';
|
|
57
|
+
let options: QueryOptions = {};
|
|
58
|
+
|
|
59
|
+
if (typeof arg1 === 'string') {
|
|
60
|
+
selector = arg1;
|
|
61
|
+
} else if (typeof arg1 === 'object') {
|
|
62
|
+
options = arg1 as QueryOptions;
|
|
63
|
+
selector = options.selector || '';
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
decorator(selector, options, target, propertyKey, descriptor);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
42
69
|
|
|
43
70
|
export const getQueryMetadata = (target: any): QueryMetadata[] | undefined => {
|
|
44
71
|
const constructor = target instanceof Function ? target : target.constructor;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ReflectUtils } from '@dooboostore/core/reflect/ReflectUtils';
|
|
2
2
|
|
|
3
3
|
export interface QueryAllOptions {
|
|
4
|
-
|
|
4
|
+
selector?: string;
|
|
5
|
+
root?: 'light' | 'shadow' | 'all' | 'auto';
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
export interface QueryAllMetadata {
|
|
@@ -13,12 +14,14 @@ export interface QueryAllMetadata {
|
|
|
13
14
|
|
|
14
15
|
export const QUERY_ALL_METADATA_KEY = Symbol('simple-web-component:query-all');
|
|
15
16
|
|
|
16
|
-
export
|
|
17
|
-
|
|
17
|
+
export function queryAll(selector: string): any;
|
|
18
|
+
export function queryAll(options: QueryAllOptions): any;
|
|
19
|
+
export function queryAll(target: Object, propertyKey: string | symbol): void;
|
|
20
|
+
export function queryAll(arg1?: string | QueryAllOptions | Object, arg2?: string | symbol): any {
|
|
21
|
+
const decorator = (selector: string, options: QueryAllOptions, target: Object, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => {
|
|
18
22
|
const isMethod = !!descriptor;
|
|
19
23
|
const constructor = target.constructor;
|
|
20
24
|
|
|
21
|
-
// 메타데이터 저장 (나중에 elementDefine에서 사용)
|
|
22
25
|
let queries = ReflectUtils.getMetadata<QueryAllMetadata[]>(QUERY_ALL_METADATA_KEY, constructor);
|
|
23
26
|
if (!queries) {
|
|
24
27
|
queries = [];
|
|
@@ -27,18 +30,42 @@ export const queryAll = (selector: string, options: QueryAllOptions = { useShado
|
|
|
27
30
|
queries.push({ selector, options, propertyKey, isMethod });
|
|
28
31
|
|
|
29
32
|
if (!isMethod) {
|
|
30
|
-
// 속성 데코레이터인 경우: 기존처럼 Lazy Getter 설정
|
|
31
33
|
Object.defineProperty(target, propertyKey, {
|
|
32
34
|
get(this: HTMLElement) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
if (!selector) return [this];
|
|
36
|
+
let searchRoot: Node = this;
|
|
37
|
+
if (options.root === 'shadow') searchRoot = this.shadowRoot || this;
|
|
38
|
+
else if (options.root === 'light') searchRoot = this;
|
|
39
|
+
else searchRoot = this.shadowRoot || this; // Default: Auto (Shadow-First)
|
|
40
|
+
|
|
41
|
+
return (searchRoot as HTMLElement).querySelectorAll(selector);
|
|
35
42
|
},
|
|
36
43
|
enumerable: true,
|
|
37
44
|
configurable: true
|
|
38
45
|
});
|
|
39
46
|
}
|
|
40
47
|
};
|
|
41
|
-
|
|
48
|
+
|
|
49
|
+
// Case: @queryAll (parameterless decorator)
|
|
50
|
+
if (arg1 && typeof arg2 === 'string') {
|
|
51
|
+
return decorator('', {}, arg1 as Object, arg2 as string | symbol);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Case: @queryAll('selector') or @queryAll({ selector: '...', ... })
|
|
55
|
+
return (target: Object, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => {
|
|
56
|
+
let selector = '';
|
|
57
|
+
let options: QueryAllOptions = {};
|
|
58
|
+
|
|
59
|
+
if (typeof arg1 === 'string') {
|
|
60
|
+
selector = arg1;
|
|
61
|
+
} else if (typeof arg1 === 'object') {
|
|
62
|
+
options = arg1 as QueryAllOptions;
|
|
63
|
+
selector = options.selector || '';
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
decorator(selector, options, target, propertyKey, descriptor);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
42
69
|
|
|
43
70
|
export const getQueryAllMetadata = (target: any): QueryAllMetadata[] | undefined => {
|
|
44
71
|
const constructor = target instanceof Function ? target : target.constructor;
|
package/src/decorators/state.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface StateMetadata {
|
|
|
11
11
|
|
|
12
12
|
export const STATE_METADATA_KEY = Symbol('simple-web-component:state');
|
|
13
13
|
|
|
14
|
-
export function state(nameOrOptions
|
|
14
|
+
export function state(nameOrOptions?: string | StateOptions): PropertyDecorator;
|
|
15
15
|
export function state(target: Object, propertyKey: string | symbol): void;
|
|
16
16
|
export function state(arg1?: string | StateOptions | Object, arg2?: string | symbol): PropertyDecorator | void {
|
|
17
17
|
const decorator = (options: StateOptions, target: Object, propertyKey: string | symbol) => {
|
|
@@ -37,7 +37,6 @@ export class SwcChoose extends HTMLElement {
|
|
|
37
37
|
const other = this.querySelector('swc-other');
|
|
38
38
|
let matched = false;
|
|
39
39
|
|
|
40
|
-
// 현재 choose에 설정된 value (swc-value 우선)
|
|
41
40
|
const chooseValue = this.getAttribute('swc-value') ?? this.getAttribute('value') ?? this._swcValue;
|
|
42
41
|
|
|
43
42
|
whens.forEach(when => {
|
|
@@ -48,15 +47,12 @@ export class SwcChoose extends HTMLElement {
|
|
|
48
47
|
|
|
49
48
|
const testAttr = when.getAttribute('test');
|
|
50
49
|
if (testAttr === null) return;
|
|
51
|
-
if (testAttr.includes('{{')) return;
|
|
50
|
+
if (testAttr.includes('{{')) return;
|
|
52
51
|
|
|
53
52
|
let isConditionMet = false;
|
|
54
|
-
|
|
55
53
|
if (chooseValue !== undefined && chooseValue !== null) {
|
|
56
|
-
// 1. 매칭 모드: choose의 value와 when의 test값이 같은지 비교
|
|
57
54
|
isConditionMet = String(chooseValue) === String(testAttr);
|
|
58
55
|
} else {
|
|
59
|
-
// 2. 표현식 모드: testAttr 자체가 실행 가능한 코드인 경우
|
|
60
56
|
try {
|
|
61
57
|
if (testAttr === 'true') isConditionMet = true;
|
|
62
58
|
else if (testAttr === 'false') isConditionMet = false;
|
package/src/elements/SwcForOf.ts
CHANGED
|
@@ -13,9 +13,10 @@ export class SwcForOf extends SwcHTMLElementBase {
|
|
|
13
13
|
if (!Array.isArray(val)) val = [];
|
|
14
14
|
this._swcValue = this.createReactiveProxy(
|
|
15
15
|
val,
|
|
16
|
-
() => this.
|
|
16
|
+
() => (this as any)._updateState((this as any)._asKey),
|
|
17
17
|
(idx, v) => this.updateSingleRow(idx, v)
|
|
18
18
|
);
|
|
19
|
+
if (this._masterTplNodes.length === 0) this.initCore();
|
|
19
20
|
this.renderAll();
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -12,7 +12,12 @@ export class SwcObject extends SwcHTMLElementBase {
|
|
|
12
12
|
|
|
13
13
|
set swcValue(val: any) {
|
|
14
14
|
if (typeof val !== 'object' || val === null) val = {};
|
|
15
|
-
this._swcValue = this.createReactiveProxy(val, () =>
|
|
15
|
+
this._swcValue = this.createReactiveProxy(val, () => {
|
|
16
|
+
if (typeof (this as any)._updateState === 'function') {
|
|
17
|
+
(this as any)._updateState((this as any)._asKey);
|
|
18
|
+
}
|
|
19
|
+
this.updateUI();
|
|
20
|
+
});
|
|
16
21
|
if (this._masterTplNodes.length === 0) this.initCore();
|
|
17
22
|
this.render();
|
|
18
23
|
}
|
|
@@ -41,12 +46,9 @@ export class SwcObject extends SwcHTMLElementBase {
|
|
|
41
46
|
}
|
|
42
47
|
|
|
43
48
|
private render() {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
this._renderedNodes.forEach(n => {
|
|
47
|
-
if (n.parentElement === this) this.removeChild(n);
|
|
48
|
-
});
|
|
49
|
+
this.innerHTML = '';
|
|
49
50
|
this._renderedNodes = [];
|
|
51
|
+
if (!this.shadowRoot || this._masterTplNodes.length === 0) return;
|
|
50
52
|
|
|
51
53
|
let slot = this.shadowRoot.querySelector('slot[name="obj-content"]');
|
|
52
54
|
if (!slot) {
|
package/src/index.ts
CHANGED
|
@@ -8,13 +8,10 @@ export * from './decorators/lifecycles';
|
|
|
8
8
|
export * from './decorators/query';
|
|
9
9
|
export * from './decorators/queryAll';
|
|
10
10
|
export * from './decorators/addEventListener';
|
|
11
|
-
export * from './elements/SwcForOf';
|
|
12
|
-
export * from './elements/SwcIf';
|
|
13
|
-
export * from './elements/SwcChoose';
|
|
14
|
-
export * from './elements/SwcWhen';
|
|
15
|
-
export * from './elements/SwcOther';
|
|
16
|
-
export * from './elements/SwcObject';
|
|
17
11
|
export * from './elements/SwcHTMLElementBase';
|
|
12
|
+
export * from './elements/SwcObject';
|
|
13
|
+
export * from './elements/SwcIf';
|
|
14
|
+
export * from './elements/SwcForOf';
|
|
18
15
|
export * from './utils/Utils';
|
|
19
16
|
export * from './is/SwcHTMLAnchorElementBase';
|
|
20
17
|
export * from './is/SwcForOfAnchor';
|
package/src/is/SwcIfAnchor.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfAnchor extends SwcHTMLAnchorElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfArea.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfArea extends SwcHTMLAreaElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfAudio.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfAudio extends SwcHTMLAudioElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfBase.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfBase extends SwcHTMLBaseElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfButton.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfButton extends SwcHTMLButtonElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfCanvas.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfCanvas extends SwcHTMLCanvasElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfData.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfData extends SwcHTMLDataElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfDataList.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfDataList extends SwcHTMLDataListElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfDetails.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfDetails extends SwcHTMLDetailsElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfDialog.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfDialog extends SwcHTMLDialogElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfDiv.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfDiv extends SwcHTMLDivElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfDl.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfDl extends SwcHTMLDListElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfEmbed.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfEmbed extends SwcHTMLEmbedElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfFieldSet.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfFieldSet extends SwcHTMLFieldSetElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfForm.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfForm extends SwcHTMLFormElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfHeading.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfHeading extends SwcHTMLHeadingElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfHr.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfHr extends SwcHTMLHRElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfIFrame.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfIFrame extends SwcHTMLIFrameElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfImage.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfImage extends SwcHTMLImageElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/src/is/SwcIfInput.ts
CHANGED
|
@@ -53,8 +53,8 @@ export class SwcIfInput extends SwcHTMLInputElementBase {
|
|
|
53
53
|
if (isTruthy && this._masterTplNodes.length > 0) {
|
|
54
54
|
this._masterTplNodes.forEach(tplNode => {
|
|
55
55
|
const clone = tplNode.cloneNode(true) as HTMLElement;
|
|
56
|
-
if (clone.style) clone.style.display = 'contents';
|
|
57
56
|
this.appendChild(clone);
|
|
57
|
+
if (clone.style) clone.style.display = 'contents';
|
|
58
58
|
this.applyData(clone, this._swcValue);
|
|
59
59
|
});
|
|
60
60
|
}
|