Development Only stripe

This commit is contained in:
barsdeveloper
2022-04-26 22:42:06 +02:00
parent fff0af6f7b
commit df518ccd3c
5 changed files with 43 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
{"version":3,"sourceRoot":"","sources":["../../scss/style.scss","../../scss/ueb-node.scss","../../scss/ueb-pin.scss","../../scss/ueb-link.scss","../../scss/ueb-type-color.scss"],"names":[],"mappings":"AAAA,WACI,qBACA,iBACA,IACI,kGAIR,WACI,qBACA,mBACA,IACI,sGAIR,cACI,cACA,kBACA,8EACA,+BACA,WACA,iBAGJ,kBACI,iBAGJ,qBACI,aACA,kBACA,MACA,QACA,OACA,aACA,0BACA,UAGJ,mBACI,iBACA,gBACA,eAGJ,mBACI,kBACA,gCACA,gBACA,kBAGJ,oDACI,gBAGJ,UACI,kFACA,kBACA,eACA,gBACA,kEACA,mEACA,yBACA,iBAEI,s3BA0BJ,gBAEI,sZAQJ,sFACA,gEACA,oDACA,qBACA,gBAGJ,kDACI,gBAGJ,mDACI,eAGJ,qBAEI,eACA,6CAGJ,gBACI,eAGJ,gBACI,mBAGJ,gBACI,kBAGJ,gBACI,mBAGJ,gBACI,iBAGJ,gBACI,mBAGJ,gBACI,kBAGJ,iBACI,mBAGJ,iBACI,kBAGJ,iBACI,mBAGJ,iBACI,iBACA,uDAGJ,iBACI,mBACA,uDAGJ,iBACI,sBACA,uDAGJ,iBACI,iBACA,uDAGJ,iBACI,sBACA,uDAGJ,iBACI,sBACA,uDAGJ,kBACI,iBACA,uDAGJ,kBACI,sBACA,uDAGJ,kBACI,sBACA,uDAGJ,kBACI,kBACA,QACA,SACA,wGAGJ,sBACI,QACA,SAGJ,gEACI,8DACA,8DACA,8DACA,8DACA,oGACA,qGACA,kBACA,wCACA,yCACA,0CACA,4CAGJ,aACI,cACA,kBACA,kBACA,MACA,OACA,QACA,SACA,iBAEI,wlDAmDJ,gBAEI,gQAWJ,oBAEI,wJAOJ,4BAGJ,gDACI,mBAIJ,eACI,mBC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,iBAEI,yBAGJ,gBAEI,yBACA,mGAGJ,gBAEI","file":"ueb-style.css"}
{"version":3,"sourceRoot":"","sources":["../../scss/style.scss","../../scss/ueb-node.scss","../../scss/ueb-pin.scss","../../scss/ueb-link.scss","../../scss/ueb-type-color.scss"],"names":[],"mappings":"AAAA,WACI,qBACA,iBACA,IACI,kGAIR,WACI,qBACA,mBACA,IACI,sGAIR,cACI,cACA,kBACA,8EACA,+BACA,WACA,iBAGJ,kBACI,iBAGJ,qBACI,aACA,kBACA,MACA,QACA,OACA,aACA,0BACA,UAGJ,mBACI,iBACA,gBACA,eAGJ,mBACI,kBACA,gCACA,gBACA,kBAGJ,oDACI,gBAGJ,UACI,kFACA,kBACA,eACA,gBACA,kEACA,mEACA,yBACA,iBAEI,s3BA0BJ,gBAEI,sZAQJ,sFACA,gEACA,oDACA,qBACA,gBAGJ,kDACI,gBAGJ,mDACI,eAGJ,qBAEI,eACA,6CAGJ,gBACI,eAGJ,gBACI,mBAGJ,gBACI,kBAGJ,gBACI,mBAGJ,gBACI,iBAGJ,gBACI,mBAGJ,gBACI,kBAGJ,iBACI,mBAGJ,iBACI,kBAGJ,iBACI,mBAGJ,iBACI,iBACA,uDAGJ,iBACI,mBACA,uDAGJ,iBACI,sBACA,uDAGJ,iBACI,iBACA,uDAGJ,iBACI,sBACA,uDAGJ,iBACI,sBACA,uDAGJ,kBACI,iBACA,uDAGJ,kBACI,sBACA,uDAGJ,kBACI,sBACA,uDAGJ,kBACI,kBACA,QACA,SACA,wGAGJ,sBACI,QACA,SAGJ,gEACI,8DACA,8DACA,8DACA,8DACA,oGACA,qGACA,kBACA,wCACA,yCACA,0CACA,4CAGJ,aACI,cACA,kBACA,kBACA,MACA,OACA,QACA,SACA,iBAEI,wlDAmDJ,gBAEI,gQAWJ,oBAEI,wJAOJ,4BAGJ,gDACI,mBAIJ,eACI,mBCvUJ,SACI,cACA,kBACA,sGACA,qCACA,uDACA,oBAGJ,wEACI,YAGJ,iBACI,YACA,YACA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gBAEI,yBACA,mGAGJ,gBAEI","file":"ueb-style.css"}

9
dist/ueblueprint.js vendored
View File

@@ -3376,6 +3376,9 @@ class NodeTemplate extends SelectableDraggableTemplate {
<div class="ueb-node-inputs"></div>
<div class="ueb-node-outputs"></div>
</div>
${node.entity.EnabledState.toString() == "DevelopmentOnly" ? html`
<div class="ueb-node-developmentonly">Development Only</div>
` : ""}
${node.entity.AdvancedPinDisplay ? html`
<div class="ueb-node-expansion">
<svg
@@ -3409,8 +3412,10 @@ class NodeTemplate extends SelectableDraggableTemplate {
*/
setup(node) {
super.setup(node);
const nodeName = node.entity.getObjectName();
node.dataset.name = sanitizeText(nodeName);
node.dataset.name = sanitizeText(node.entity.getObjectName());
if (node.entity.EnabledState) {
node.dataset.enabledState = node.entity.EnabledState.toString();
}
if (node.selected) {
node.classList.add("ueb-selected");
}

View File

@@ -34,6 +34,9 @@ export default class NodeTemplate extends SelectableDraggableTemplate {
<div class="ueb-node-inputs"></div>
<div class="ueb-node-outputs"></div>
</div>
${node.entity.EnabledState.toString() == "DevelopmentOnly" ? html`
<div class="ueb-node-developmentonly">Development Only</div>
` : ""}
${node.entity.AdvancedPinDisplay ? html`
<div class="ueb-node-expansion">
<svg
@@ -67,8 +70,10 @@ export default class NodeTemplate extends SelectableDraggableTemplate {
*/
setup(node) {
super.setup(node)
const nodeName = node.entity.getObjectName()
node.dataset.name = sanitizeText(nodeName)
node.dataset.name = sanitizeText(node.entity.getObjectName())
if (node.entity.EnabledState) {
node.dataset.enabledState = node.entity.EnabledState.toString()
}
if (node.selected) {
node.classList.add("ueb-selected")
}

View File

@@ -42,8 +42,8 @@ ueb-blueprint[data-drag-scrolling="false"][data-selecting="false"] ueb-node {
.ueb-node-header {
padding: 0.3em 0.7em;
box-shadow: inset 5px 1px 5px -3px #83b37b,
inset 0 1px 0 0 #111311,
inset 0 2px 0 0 #83b37b;
inset 0 1px 0 0 #111311,
inset 0 2px 0 0 #83b37b;
border-radius: var(--ueb-node-radius) var(--ueb-node-radius) 0 0;
background: linear-gradient(170deg, #5f815a 0%, #5f815a 50%, transparent 100%);
color: #c0c0c0;
@@ -74,6 +74,30 @@ ueb-blueprint[data-drag-scrolling="false"][data-selecting="false"] ueb-node {
padding-right: 8px;
}
.ueb-node-developmentonly {
display: none;
background: repeating-linear-gradient(-45deg,
transparent 0,
#57590a 1px,
#57590a 11px,
transparent 12px,
transparent 24px);
background: repeating-linear-gradient(-45deg,
transparent 0,
#57590a 1px,
#57590a 11px,
transparent 12px,
transparent 24px);
text-align: center;
padding: 2px;
letter-spacing: 0.06em;
text-shadow: 1px 1px 1px black;
}
ueb-node[data-enabled-state="DevelopmentOnly"] .ueb-node-developmentonly {
display: block;
}
.ueb-node-expansion {
display: none;
text-align: center;
@@ -91,6 +115,7 @@ ueb-blueprint[data-drag-scrolling="false"][data-selecting="false"] .ueb-node-exp
ueb-node[data-advanced-display] .ueb-node-expansion {
display: block;
}
ueb-node[data-advanced-display="Shown"] .ueb-node-expansion-icon {
transform: scaleY(-1)
}