|
| 1 | +import { |
| 2 | + customElement, |
| 3 | + html, |
| 4 | + LitElement, |
| 5 | +} from 'lit-element'; |
| 6 | + |
| 7 | +import { |
| 8 | + bayIcon, |
| 9 | + circuitBreakerIcon, |
| 10 | + currentTransformerIcon, |
| 11 | + disconnectorIcon, |
| 12 | + earthSwitchIcon, |
| 13 | + generalConductingEquipmentIcon, |
| 14 | + gooseIcon, |
| 15 | + lineIcon, |
| 16 | + processIcon, |
| 17 | + smvIcon, |
| 18 | + substationIcon, |
| 19 | + voltageLevelIcon, |
| 20 | + voltageTransformerIcon |
| 21 | +} from './icons.js'; |
| 22 | +import { |
| 23 | + automationLogicalNode, |
| 24 | + controlLogicalNode, |
| 25 | + functionalLogicalNode, |
| 26 | + furtherPowerSystemEquipmentLogicalNode, |
| 27 | + generalLogicalNode, |
| 28 | + interfacingLogicalNode, |
| 29 | + measurementLogicalNode, |
| 30 | + nonElectricalLogicalNode, |
| 31 | + powerTransformerLogicalNode, |
| 32 | + protectionLogicalNode, |
| 33 | + protectionRelatedLogicalNode, |
| 34 | + qualityLogicalNode, |
| 35 | + supervisionLogicalNode, |
| 36 | + switchgearLogicalNode, |
| 37 | + systemLogicalNode, |
| 38 | + transformerLogicalNode, |
| 39 | +} from './lnode.js'; |
| 40 | + |
| 41 | +@customElement('custom-icon-bay') |
| 42 | +export class CustomIconBay extends LitElement { |
| 43 | + render() { |
| 44 | + return html`${bayIcon}`; |
| 45 | + } |
| 46 | +} |
| 47 | + |
| 48 | +@customElement('custom-icon-substation') |
| 49 | +export class CustomIconSubstation extends LitElement { |
| 50 | + render() { |
| 51 | + return html`${substationIcon}`; |
| 52 | + } |
| 53 | +} |
| 54 | + |
| 55 | +@customElement('custom-icon-voltagelevel') |
| 56 | +export class CustomIconVoltageLevel extends LitElement { |
| 57 | + render() { |
| 58 | + return html`${voltageLevelIcon}`; |
| 59 | + } |
| 60 | +} |
| 61 | + |
| 62 | +@customElement('custom-icon-circuitbreaker') |
| 63 | +export class CustomIconCircuitBreaker extends LitElement { |
| 64 | + render() { |
| 65 | + return html`${circuitBreakerIcon}`; |
| 66 | + } |
| 67 | +} |
| 68 | + |
| 69 | +@customElement('custom-icon-disconnector') |
| 70 | +export class CustomIconDisconnector extends LitElement { |
| 71 | + render() { |
| 72 | + return html`${disconnectorIcon}`; |
| 73 | + } |
| 74 | +} |
| 75 | + |
| 76 | +@customElement('custom-icon-currenttransformer') |
| 77 | +export class CustomIconCurrentTransformer extends LitElement { |
| 78 | + render() { |
| 79 | + return html`${currentTransformerIcon}`; |
| 80 | + } |
| 81 | +} |
| 82 | + |
| 83 | +@customElement('custom-icon-voltagetransformer') |
| 84 | +export class CustomIconVoltageTransformer extends LitElement { |
| 85 | + render() { |
| 86 | + return html`${voltageTransformerIcon}`; |
| 87 | + } |
| 88 | +} |
| 89 | + |
| 90 | +@customElement('custom-icon-earthswitch') |
| 91 | +export class CustomIconEarthSwitch extends LitElement { |
| 92 | + render() { |
| 93 | + return html`${earthSwitchIcon}`; |
| 94 | + } |
| 95 | +} |
| 96 | + |
| 97 | +@customElement('custom-icon-generalconductingequipment') |
| 98 | +export class CustomIconGeneralConductingEquipment extends LitElement { |
| 99 | + render() { |
| 100 | + return html`${generalConductingEquipmentIcon}`; |
| 101 | + } |
| 102 | +} |
| 103 | + |
| 104 | +@customElement('custom-icon-goose') |
| 105 | +export class CustomIconGoose extends LitElement { |
| 106 | + render() { |
| 107 | + return html`${gooseIcon}`; |
| 108 | + } |
| 109 | +} |
| 110 | + |
| 111 | +@customElement('custom-icon-smv') |
| 112 | +export class CustomIconSmv extends LitElement { |
| 113 | + render() { |
| 114 | + return html`${smvIcon}`; |
| 115 | + } |
| 116 | +} |
| 117 | + |
| 118 | +@customElement('custom-icon-line') |
| 119 | +export class CustomIconLine extends LitElement { |
| 120 | + render() { |
| 121 | + return html`${lineIcon}`; |
| 122 | + } |
| 123 | +} |
| 124 | + |
| 125 | +@customElement('custom-icon-process') |
| 126 | +export class CustomIconProcess extends LitElement { |
| 127 | + render() { |
| 128 | + return html`${processIcon}`; |
| 129 | + } |
| 130 | +} |
| 131 | + |
| 132 | +@customElement('custom-icon-lnode-automation') |
| 133 | +export class CustomIconLNodeAutomation extends LitElement { |
| 134 | + render() { |
| 135 | + return html`${automationLogicalNode}`; |
| 136 | + } |
| 137 | +} |
| 138 | + |
| 139 | +@customElement('custom-icon-lnode-control') |
| 140 | +export class CustomIconLNodeControl extends LitElement { |
| 141 | + render() { |
| 142 | + return html`${controlLogicalNode}`; |
| 143 | + } |
| 144 | +} |
| 145 | + |
| 146 | +@customElement('custom-icon-lnode-functional') |
| 147 | +export class CustomIconLNodeFunctional extends LitElement { |
| 148 | + render() { |
| 149 | + return html`${functionalLogicalNode}`; |
| 150 | + } |
| 151 | +} |
| 152 | + |
| 153 | +@customElement('custom-icon-lnode-furtherpowersystemequipment') |
| 154 | +export class CustomIconLNodeFurtherPowerSystemEquipment extends LitElement { |
| 155 | + render() { |
| 156 | + return html`${furtherPowerSystemEquipmentLogicalNode}`; |
| 157 | + } |
| 158 | +} |
| 159 | + |
| 160 | +@customElement('custom-icon-lnode-general') |
| 161 | +export class CustomIconLNodeGeneral extends LitElement { |
| 162 | + render() { |
| 163 | + return html`${generalLogicalNode}`; |
| 164 | + } |
| 165 | +} |
| 166 | + |
| 167 | +@customElement('custom-icon-lnode-interfacing') |
| 168 | +export class CustomIconLNodeInterfacing extends LitElement { |
| 169 | + render() { |
| 170 | + return html`${interfacingLogicalNode}`; |
| 171 | + } |
| 172 | +} |
| 173 | + |
| 174 | +@customElement('custom-icon-lnode-measurement') |
| 175 | +export class CustomIconLNodeMeasurement extends LitElement { |
| 176 | + render() { |
| 177 | + return html`${measurementLogicalNode}`; |
| 178 | + } |
| 179 | +} |
| 180 | + |
| 181 | +@customElement('custom-icon-lnode-nonelectrical') |
| 182 | +export class CustomIconLNodeNonElectrical extends LitElement { |
| 183 | + render() { |
| 184 | + return html`${nonElectricalLogicalNode}`; |
| 185 | + } |
| 186 | +} |
| 187 | + |
| 188 | +@customElement('custom-icon-lnode-powertransformer') |
| 189 | +export class CustomIconLNodePowerTransformer extends LitElement { |
| 190 | + render() { |
| 191 | + return html`${powerTransformerLogicalNode}`; |
| 192 | + } |
| 193 | +} |
| 194 | + |
| 195 | +@customElement('custom-icon-lnode-protection') |
| 196 | +export class CustomIconLNodeProtection extends LitElement { |
| 197 | + render() { |
| 198 | + return html`${protectionLogicalNode}`; |
| 199 | + } |
| 200 | +} |
| 201 | + |
| 202 | +@customElement('custom-icon-lnode-protectionrelated') |
| 203 | +export class CustomIconLNodeProtectionRelated extends LitElement { |
| 204 | + render() { |
| 205 | + return html`${protectionRelatedLogicalNode}`; |
| 206 | + } |
| 207 | +} |
| 208 | + |
| 209 | +@customElement('custom-icon-lnode-quality') |
| 210 | +export class CustomIconLNodeQuality extends LitElement { |
| 211 | + render() { |
| 212 | + return html`${qualityLogicalNode}`; |
| 213 | + } |
| 214 | +} |
| 215 | + |
| 216 | +@customElement('custom-icon-lnode-supervision') |
| 217 | +export class CustomIconLNodeSupervision extends LitElement { |
| 218 | + render() { |
| 219 | + return html`${supervisionLogicalNode}`; |
| 220 | + } |
| 221 | +} |
| 222 | + |
| 223 | +@customElement('custom-icon-lnode-switchgear') |
| 224 | +export class CustomIconLNodeSwitchgear extends LitElement { |
| 225 | + render() { |
| 226 | + return html`${switchgearLogicalNode}`; |
| 227 | + } |
| 228 | +} |
| 229 | + |
| 230 | +@customElement('custom-icon-lnode-system') |
| 231 | +export class CustomIconLNodeSystem extends LitElement { |
| 232 | + render() { |
| 233 | + return html`${systemLogicalNode}`; |
| 234 | + } |
| 235 | +} |
| 236 | + |
| 237 | +@customElement('custom-icon-lnode-transformer') |
| 238 | +export class CustomIconLNodeTransformer extends LitElement { |
| 239 | + render() { |
| 240 | + return html`${transformerLogicalNode}`; |
| 241 | + } |
| 242 | +} |
0 commit comments