@enervance/insight-cim-model 0.0.1
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/.nycrc +28 -0
- package/README.md +25 -0
- package/dist/config/lew-sincal/lew-sincal-load.config.d.ts +1 -0
- package/dist/config/lew-sincal/lew-sincal-load.config.js +46 -0
- package/dist/config/lew-sincal/lew-sincal-load.config.js.map +1 -0
- package/dist/config/power-system-datamodel/psdm-load.config.d.ts +1 -0
- package/dist/config/power-system-datamodel/psdm-load.config.js +43 -0
- package/dist/config/power-system-datamodel/psdm-load.config.js.map +1 -0
- package/dist/config/westnetz-integral7/integral7-load.config.d.ts +1 -0
- package/dist/config/westnetz-integral7/integral7-load.config.js +44 -0
- package/dist/config/westnetz-integral7/integral7-load.config.js.map +1 -0
- package/dist/config/westnetz-neplan/callbacks/cb-connectivitynode.d.ts +10 -0
- package/dist/config/westnetz-neplan/callbacks/cb-connectivitynode.js +153 -0
- package/dist/config/westnetz-neplan/callbacks/cb-connectivitynode.js.map +1 -0
- package/dist/config/westnetz-neplan/callbacks/cb-psr.d.ts +6 -0
- package/dist/config/westnetz-neplan/callbacks/cb-psr.js +26 -0
- package/dist/config/westnetz-neplan/callbacks/cb-psr.js.map +1 -0
- package/dist/config/westnetz-neplan/callbacks/cb-wnenergyconsumer.d.ts +6 -0
- package/dist/config/westnetz-neplan/callbacks/cb-wnenergyconsumer.js +60 -0
- package/dist/config/westnetz-neplan/callbacks/cb-wnenergyconsumer.js.map +1 -0
- package/dist/config/westnetz-neplan/neplan-load.config.d.ts +1 -0
- package/dist/config/westnetz-neplan/neplan-load.config.js +51 -0
- package/dist/config/westnetz-neplan/neplan-load.config.js.map +1 -0
- package/dist/config/westnetz-neplan/property-handler-westenergy.config.d.ts +47 -0
- package/dist/config/westnetz-neplan/property-handler-westenergy.config.js +54 -0
- package/dist/config/westnetz-neplan/property-handler-westenergy.config.js.map +1 -0
- package/dist/constants/cim-class-definition.d.ts +1 -0
- package/dist/constants/cim-class-definition.js +120 -0
- package/dist/constants/cim-class-definition.js.map +1 -0
- package/dist/constants/cim-class-names.d.ts +72 -0
- package/dist/constants/cim-class-names.js +77 -0
- package/dist/constants/cim-class-names.js.map +1 -0
- package/dist/constants/cim-constants.d.ts +5 -0
- package/dist/constants/cim-constants.js +10 -0
- package/dist/constants/cim-constants.js.map +1 -0
- package/dist/constants/init-data/ASSET_HEALTH_EVENTS.d.ts +1 -0
- package/dist/constants/init-data/ASSET_HEALTH_EVENTS.js +49 -0
- package/dist/constants/init-data/ASSET_HEALTH_EVENTS.js.map +1 -0
- package/dist/constants/init-data/ASSSET_OWNER.d.ts +1 -0
- package/dist/constants/init-data/ASSSET_OWNER.js +15 -0
- package/dist/constants/init-data/ASSSET_OWNER.js.map +1 -0
- package/dist/constants/init-data/JENA_SPARQL.d.ts +11 -0
- package/dist/constants/init-data/JENA_SPARQL.js +328 -0
- package/dist/constants/init-data/JENA_SPARQL.js.map +1 -0
- package/dist/constants/init-data/PSR_TYPES.d.ts +1 -0
- package/dist/constants/init-data/PSR_TYPES.js +78 -0
- package/dist/constants/init-data/PSR_TYPES.js.map +1 -0
- package/dist/constants/rdf-xml.d.ts +39 -0
- package/dist/constants/rdf-xml.js +44 -0
- package/dist/constants/rdf-xml.js.map +1 -0
- package/dist/converter/PSDM/ConverterPowerSystemDataModel.d.ts +18 -0
- package/dist/converter/PSDM/ConverterPowerSystemDataModel.js +380 -0
- package/dist/converter/PSDM/ConverterPowerSystemDataModel.js.map +1 -0
- package/dist/converter/PSDM/model/FixedFeedIn.d.ts +11 -0
- package/dist/converter/PSDM/model/FixedFeedIn.js +3 -0
- package/dist/converter/PSDM/model/FixedFeedIn.js.map +1 -0
- package/dist/converter/PSDM/model/Line.d.ts +15 -0
- package/dist/converter/PSDM/model/Line.js +3 -0
- package/dist/converter/PSDM/model/Line.js.map +1 -0
- package/dist/converter/PSDM/model/LineType.d.ts +10 -0
- package/dist/converter/PSDM/model/LineType.js +3 -0
- package/dist/converter/PSDM/model/LineType.js.map +1 -0
- package/dist/converter/PSDM/model/Load.d.ts +14 -0
- package/dist/converter/PSDM/model/Load.js +3 -0
- package/dist/converter/PSDM/model/Load.js.map +1 -0
- package/dist/converter/PSDM/model/Node.d.ts +14 -0
- package/dist/converter/PSDM/model/Node.js +3 -0
- package/dist/converter/PSDM/model/Node.js.map +1 -0
- package/dist/converter/PSDM/model/TimeSeriesMapping.d.ts +5 -0
- package/dist/converter/PSDM/model/TimeSeriesMapping.js +3 -0
- package/dist/converter/PSDM/model/TimeSeriesMapping.js.map +1 -0
- package/dist/converter/PSDM/model/Transformer.d.ts +13 -0
- package/dist/converter/PSDM/model/Transformer.js +3 -0
- package/dist/converter/PSDM/model/Transformer.js.map +1 -0
- package/dist/converter/PSDM/model/TransformerType.d.ts +17 -0
- package/dist/converter/PSDM/model/TransformerType.js +3 -0
- package/dist/converter/PSDM/model/TransformerType.js.map +1 -0
- package/dist/converter/PSDM/model/geo/Crs.d.ts +4 -0
- package/dist/converter/PSDM/model/geo/Crs.js +3 -0
- package/dist/converter/PSDM/model/geo/Crs.js.map +1 -0
- package/dist/converter/PSDM/model/geo/GeoPosition.d.ts +6 -0
- package/dist/converter/PSDM/model/geo/GeoPosition.js +3 -0
- package/dist/converter/PSDM/model/geo/GeoPosition.js.map +1 -0
- package/dist/converter/integral7/ConverterIntegral7.d.ts +106 -0
- package/dist/converter/integral7/ConverterIntegral7.js +2275 -0
- package/dist/converter/integral7/ConverterIntegral7.js.map +1 -0
- package/dist/converter/integral7/config/db-config.d.ts +11 -0
- package/dist/converter/integral7/config/db-config.js +3 -0
- package/dist/converter/integral7/config/db-config.js.map +1 -0
- package/dist/converter/integral7/config/generation-unit-fuel-types.d.ts +50 -0
- package/dist/converter/integral7/config/generation-unit-fuel-types.js +54 -0
- package/dist/converter/integral7/config/generation-unit-fuel-types.js.map +1 -0
- package/dist/converter/integral7/config/integral-prefix.d.ts +20 -0
- package/dist/converter/integral7/config/integral-prefix.js +24 -0
- package/dist/converter/integral7/config/integral-prefix.js.map +1 -0
- package/dist/converter/integral7/model/integral/BaseClass.d.ts +13 -0
- package/dist/converter/integral7/model/integral/BaseClass.js +19 -0
- package/dist/converter/integral7/model/integral/BaseClass.js.map +1 -0
- package/dist/converter/integral7/model/integral/BaseClassNsg.d.ts +11 -0
- package/dist/converter/integral7/model/integral/BaseClassNsg.js +15 -0
- package/dist/converter/integral7/model/integral/BaseClassNsg.js.map +1 -0
- package/dist/converter/integral7/model/integral/KnotenSo.d.ts +14 -0
- package/dist/converter/integral7/model/integral/KnotenSo.js +29 -0
- package/dist/converter/integral7/model/integral/KnotenSo.js.map +1 -0
- package/dist/converter/integral7/model/integral/KnotenSoNsg.d.ts +11 -0
- package/dist/converter/integral7/model/integral/KnotenSoNsg.js +13 -0
- package/dist/converter/integral7/model/integral/KnotenSoNsg.js.map +1 -0
- package/dist/converter/integral7/model/integral/Leitung.d.ts +14 -0
- package/dist/converter/integral7/model/integral/Leitung.js +64 -0
- package/dist/converter/integral7/model/integral/Leitung.js.map +1 -0
- package/dist/converter/integral7/model/integral/LeitungNsg.d.ts +14 -0
- package/dist/converter/integral7/model/integral/LeitungNsg.js +28 -0
- package/dist/converter/integral7/model/integral/LeitungNsg.js.map +1 -0
- package/dist/converter/integral7/model/integral/Point.d.ts +6 -0
- package/dist/converter/integral7/model/integral/Point.js +14 -0
- package/dist/converter/integral7/model/integral/Point.js.map +1 -0
- package/dist/converter/integral7/model/integral/Schaltanlage.d.ts +21 -0
- package/dist/converter/integral7/model/integral/Schaltanlage.js +147 -0
- package/dist/converter/integral7/model/integral/Schaltanlage.js.map +1 -0
- package/dist/converter/integral7/model/integral/SchaltanlageNSG.d.ts +14 -0
- package/dist/converter/integral7/model/integral/SchaltanlageNSG.js +15 -0
- package/dist/converter/integral7/model/integral/SchaltanlageNSG.js.map +1 -0
- package/dist/converter/integral7/model/integral/Schaltanlagenabschnitt.d.ts +16 -0
- package/dist/converter/integral7/model/integral/Schaltanlagenabschnitt.js +30 -0
- package/dist/converter/integral7/model/integral/Schaltanlagenabschnitt.js.map +1 -0
- package/dist/converter/integral7/model/integral/SchaltanlagenabschnittNsg.d.ts +13 -0
- package/dist/converter/integral7/model/integral/SchaltanlagenabschnittNsg.js +15 -0
- package/dist/converter/integral7/model/integral/SchaltanlagenabschnittNsg.js.map +1 -0
- package/dist/converter/integral7/model/integral/Schaltfeld.d.ts +20 -0
- package/dist/converter/integral7/model/integral/Schaltfeld.js +100 -0
- package/dist/converter/integral7/model/integral/Schaltfeld.js.map +1 -0
- package/dist/converter/integral7/model/integral/SchaltfeldNsg.d.ts +17 -0
- package/dist/converter/integral7/model/integral/SchaltfeldNsg.js +16 -0
- package/dist/converter/integral7/model/integral/SchaltfeldNsg.js.map +1 -0
- package/dist/converter/integral7/model/integral/Standort.d.ts +24 -0
- package/dist/converter/integral7/model/integral/Standort.js +34 -0
- package/dist/converter/integral7/model/integral/Standort.js.map +1 -0
- package/dist/converter/integral7/model/integral/StandortNsg.d.ts +10 -0
- package/dist/converter/integral7/model/integral/StandortNsg.js +13 -0
- package/dist/converter/integral7/model/integral/StandortNsg.js.map +1 -0
- package/dist/converter/integral7/model/integral/Trafo2w.d.ts +15 -0
- package/dist/converter/integral7/model/integral/Trafo2w.js +11 -0
- package/dist/converter/integral7/model/integral/Trafo2w.js.map +1 -0
- package/dist/converter/integral7/model/integral/Trafo2wNsg.d.ts +2 -0
- package/dist/converter/integral7/model/integral/Trafo2wNsg.js +7 -0
- package/dist/converter/integral7/model/integral/Trafo2wNsg.js.map +1 -0
- package/dist/converter/integral7/model/interfaces.d.ts +352 -0
- package/dist/converter/integral7/model/interfaces.js +3 -0
- package/dist/converter/integral7/model/interfaces.js.map +1 -0
- package/dist/converter/integral7/sql/integral.sql.d.ts +124 -0
- package/dist/converter/integral7/sql/integral.sql.js +285 -0
- package/dist/converter/integral7/sql/integral.sql.js.map +1 -0
- package/dist/converter/integral7/utils-schema.d.ts +6 -0
- package/dist/converter/integral7/utils-schema.js +43 -0
- package/dist/converter/integral7/utils-schema.js.map +1 -0
- package/dist/converter/integral7/utils-trafo3w.d.ts +13 -0
- package/dist/converter/integral7/utils-trafo3w.js +236 -0
- package/dist/converter/integral7/utils-trafo3w.js.map +1 -0
- package/dist/converter/integral7/utils.d.ts +38 -0
- package/dist/converter/integral7/utils.js +577 -0
- package/dist/converter/integral7/utils.js.map +1 -0
- package/dist/etl-neplan/etl-neplan-contingency-analysis.d.ts +8 -0
- package/dist/etl-neplan/etl-neplan-contingency-analysis.js +113 -0
- package/dist/etl-neplan/etl-neplan-contingency-analysis.js.map +1 -0
- package/dist/etl-neplan/etl-neplan-feederline.d.ts +6 -0
- package/dist/etl-neplan/etl-neplan-feederline.js +91 -0
- package/dist/etl-neplan/etl-neplan-feederline.js.map +1 -0
- package/dist/etl-neplan/etl-neplan.d.ts +9 -0
- package/dist/etl-neplan/etl-neplan.js +222 -0
- package/dist/etl-neplan/etl-neplan.js.map +1 -0
- package/dist/index.d.ts +170 -0
- package/dist/index.js +349 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/model/assets/IAsset.d.ts +3 -0
- package/dist/interfaces/model/assets/IAsset.js +3 -0
- package/dist/interfaces/model/assets/IAsset.js.map +1 -0
- package/dist/interfaces/model/assets/IAssetContainer.d.ts +3 -0
- package/dist/interfaces/model/assets/IAssetContainer.js +3 -0
- package/dist/interfaces/model/assets/IAssetContainer.js.map +1 -0
- package/dist/interfaces/model/assets/IFacility.d.ts +3 -0
- package/dist/interfaces/model/assets/IFacility.js +3 -0
- package/dist/interfaces/model/assets/IFacility.js.map +1 -0
- package/dist/interfaces/model/common/IDocument.d.ts +3 -0
- package/dist/interfaces/model/common/IDocument.js +3 -0
- package/dist/interfaces/model/common/IDocument.js.map +1 -0
- package/dist/interfaces/model/core/IACDCTerminal.d.ts +5 -0
- package/dist/interfaces/model/core/IACDCTerminal.js +3 -0
- package/dist/interfaces/model/core/IACDCTerminal.js.map +1 -0
- package/dist/interfaces/model/core/IBaseVoltage.d.ts +6 -0
- package/dist/interfaces/model/core/IBaseVoltage.js +3 -0
- package/dist/interfaces/model/core/IBaseVoltage.js.map +1 -0
- package/dist/interfaces/model/core/IConductingEquipment.d.ts +8 -0
- package/dist/interfaces/model/core/IConductingEquipment.js +3 -0
- package/dist/interfaces/model/core/IConductingEquipment.js.map +1 -0
- package/dist/interfaces/model/core/IConnectivityNode.d.ts +17 -0
- package/dist/interfaces/model/core/IConnectivityNode.js +3 -0
- package/dist/interfaces/model/core/IConnectivityNode.js.map +1 -0
- package/dist/interfaces/model/core/IConnectivityNodeContainer.d.ts +9 -0
- package/dist/interfaces/model/core/IConnectivityNodeContainer.js +3 -0
- package/dist/interfaces/model/core/IConnectivityNodeContainer.js.map +1 -0
- package/dist/interfaces/model/core/IEquipment.d.ts +3 -0
- package/dist/interfaces/model/core/IEquipment.js +3 -0
- package/dist/interfaces/model/core/IEquipment.js.map +1 -0
- package/dist/interfaces/model/core/IEquipmentContainer.d.ts +9 -0
- package/dist/interfaces/model/core/IEquipmentContainer.js +3 -0
- package/dist/interfaces/model/core/IEquipmentContainer.js.map +1 -0
- package/dist/interfaces/model/core/IFeeder.d.ts +11 -0
- package/dist/interfaces/model/core/IFeeder.js +3 -0
- package/dist/interfaces/model/core/IFeeder.js.map +1 -0
- package/dist/interfaces/model/core/IIdentifiedObject.d.ts +52 -0
- package/dist/interfaces/model/core/IIdentifiedObject.js +3 -0
- package/dist/interfaces/model/core/IIdentifiedObject.js.map +1 -0
- package/dist/interfaces/model/core/IPowerSystemResource.d.ts +3 -0
- package/dist/interfaces/model/core/IPowerSystemResource.js +3 -0
- package/dist/interfaces/model/core/IPowerSystemResource.js.map +1 -0
- package/dist/interfaces/model/core/ISubstation.d.ts +6 -0
- package/dist/interfaces/model/core/ISubstation.js +3 -0
- package/dist/interfaces/model/core/ISubstation.js.map +1 -0
- package/dist/interfaces/model/core/ITerminal.d.ts +29 -0
- package/dist/interfaces/model/core/ITerminal.js +3 -0
- package/dist/interfaces/model/core/ITerminal.js.map +1 -0
- package/dist/interfaces/model/core/IVoltageLevel.d.ts +13 -0
- package/dist/interfaces/model/core/IVoltageLevel.js +3 -0
- package/dist/interfaces/model/core/IVoltageLevel.js.map +1 -0
- package/dist/interfaces/model/diagram/IDiagram.d.ts +15 -0
- package/dist/interfaces/model/diagram/IDiagram.js +3 -0
- package/dist/interfaces/model/diagram/IDiagram.js.map +1 -0
- package/dist/interfaces/model/diagram/IDiagramObject.d.ts +19 -0
- package/dist/interfaces/model/diagram/IDiagramObject.js +3 -0
- package/dist/interfaces/model/diagram/IDiagramObject.js.map +1 -0
- package/dist/interfaces/model/diagram/IDiagramObjectPoint.d.ts +11 -0
- package/dist/interfaces/model/diagram/IDiagramObjectPoint.js +3 -0
- package/dist/interfaces/model/diagram/IDiagramObjectPoint.js.map +1 -0
- package/dist/interfaces/model/domain/IActivePower.d.ts +3 -0
- package/dist/interfaces/model/domain/IActivePower.js +3 -0
- package/dist/interfaces/model/domain/IActivePower.js.map +1 -0
- package/dist/interfaces/model/domain/IAngleDegrees.d.ts +3 -0
- package/dist/interfaces/model/domain/IAngleDegrees.js +3 -0
- package/dist/interfaces/model/domain/IAngleDegrees.js.map +1 -0
- package/dist/interfaces/model/domain/IApparentPower.d.ts +3 -0
- package/dist/interfaces/model/domain/IApparentPower.js +3 -0
- package/dist/interfaces/model/domain/IApparentPower.js.map +1 -0
- package/dist/interfaces/model/domain/ICurrentFlow.d.ts +3 -0
- package/dist/interfaces/model/domain/ICurrentFlow.js +3 -0
- package/dist/interfaces/model/domain/ICurrentFlow.js.map +1 -0
- package/dist/interfaces/model/domain/IDataType.d.ts +7 -0
- package/dist/interfaces/model/domain/IDataType.js +3 -0
- package/dist/interfaces/model/domain/IDataType.js.map +1 -0
- package/dist/interfaces/model/domain/IReactivePower.d.ts +3 -0
- package/dist/interfaces/model/domain/IReactivePower.js +3 -0
- package/dist/interfaces/model/domain/IReactivePower.js.map +1 -0
- package/dist/interfaces/model/domain/IVoltage.d.ts +3 -0
- package/dist/interfaces/model/domain/IVoltage.js +3 -0
- package/dist/interfaces/model/domain/IVoltage.js.map +1 -0
- package/dist/interfaces/model/domain/UnitMultiplier.d.ts +13 -0
- package/dist/interfaces/model/domain/UnitMultiplier.js +18 -0
- package/dist/interfaces/model/domain/UnitMultiplier.js.map +1 -0
- package/dist/interfaces/model/domain/UnitSymbol.d.ts +30 -0
- package/dist/interfaces/model/domain/UnitSymbol.js +35 -0
- package/dist/interfaces/model/domain/UnitSymbol.js.map +1 -0
- package/dist/interfaces/model/enums/EnumShapeInfo.d.ts +5 -0
- package/dist/interfaces/model/enums/EnumShapeInfo.js +10 -0
- package/dist/interfaces/model/enums/EnumShapeInfo.js.map +1 -0
- package/dist/interfaces/model/faults/IFault.d.ts +8 -0
- package/dist/interfaces/model/faults/IFault.js +3 -0
- package/dist/interfaces/model/faults/IFault.js.map +1 -0
- package/dist/interfaces/model/model/IModel.d.ts +86 -0
- package/dist/interfaces/model/model/IModel.js +3 -0
- package/dist/interfaces/model/model/IModel.js.map +1 -0
- package/dist/interfaces/model/operations/IOutage.d.ts +11 -0
- package/dist/interfaces/model/operations/IOutage.js +3 -0
- package/dist/interfaces/model/operations/IOutage.js.map +1 -0
- package/dist/interfaces/model/operations/ISwitchingAction.d.ts +6 -0
- package/dist/interfaces/model/operations/ISwitchingAction.js +3 -0
- package/dist/interfaces/model/operations/ISwitchingAction.js.map +1 -0
- package/dist/interfaces/model/operations/ISwitchingPlan.d.ts +11 -0
- package/dist/interfaces/model/operations/ISwitchingPlan.js +3 -0
- package/dist/interfaces/model/operations/ISwitchingPlan.js.map +1 -0
- package/dist/interfaces/model/statevariables/ISvPowerFlow.d.ts +6 -0
- package/dist/interfaces/model/statevariables/ISvPowerFlow.js +3 -0
- package/dist/interfaces/model/statevariables/ISvPowerFlow.js.map +1 -0
- package/dist/interfaces/model/statevariables/ISvVoltage.d.ts +14 -0
- package/dist/interfaces/model/statevariables/ISvVoltage.js +3 -0
- package/dist/interfaces/model/statevariables/ISvVoltage.js.map +1 -0
- package/dist/interfaces/model/topology/ITopologicalIsland.d.ts +10 -0
- package/dist/interfaces/model/topology/ITopologicalIsland.js +3 -0
- package/dist/interfaces/model/topology/ITopologicalIsland.js.map +1 -0
- package/dist/interfaces/model/topology/ITopologicalNode.d.ts +23 -0
- package/dist/interfaces/model/topology/ITopologicalNode.js +3 -0
- package/dist/interfaces/model/topology/ITopologicalNode.js.map +1 -0
- package/dist/interfaces/model/wires/IACLineSegment.d.ts +3 -0
- package/dist/interfaces/model/wires/IACLineSegment.js +3 -0
- package/dist/interfaces/model/wires/IACLineSegment.js.map +1 -0
- package/dist/interfaces/model/wires/IBusbarSection.d.ts +3 -0
- package/dist/interfaces/model/wires/IBusbarSection.js +3 -0
- package/dist/interfaces/model/wires/IBusbarSection.js.map +1 -0
- package/dist/interfaces/model/wires/ICompositeSwitch.d.ts +3 -0
- package/dist/interfaces/model/wires/ICompositeSwitch.js +3 -0
- package/dist/interfaces/model/wires/ICompositeSwitch.js.map +1 -0
- package/dist/interfaces/model/wires/IConductor.d.ts +5 -0
- package/dist/interfaces/model/wires/IConductor.js +3 -0
- package/dist/interfaces/model/wires/IConductor.js.map +1 -0
- package/dist/interfaces/model/wires/IConnector.d.ts +3 -0
- package/dist/interfaces/model/wires/IConnector.js +3 -0
- package/dist/interfaces/model/wires/IConnector.js.map +1 -0
- package/dist/interfaces/model/wires/IDisconnector.d.ts +3 -0
- package/dist/interfaces/model/wires/IDisconnector.js +3 -0
- package/dist/interfaces/model/wires/IDisconnector.js.map +1 -0
- package/dist/interfaces/model/wires/IEnergyConsumer.d.ts +6 -0
- package/dist/interfaces/model/wires/IEnergyConsumer.js +3 -0
- package/dist/interfaces/model/wires/IEnergyConsumer.js.map +1 -0
- package/dist/interfaces/model/wires/IEnergySource.d.ts +15 -0
- package/dist/interfaces/model/wires/IEnergySource.js +3 -0
- package/dist/interfaces/model/wires/IEnergySource.js.map +1 -0
- package/dist/interfaces/model/wires/IExternalNetworkInjection.d.ts +33 -0
- package/dist/interfaces/model/wires/IExternalNetworkInjection.js +3 -0
- package/dist/interfaces/model/wires/IExternalNetworkInjection.js.map +1 -0
- package/dist/interfaces/model/wires/ILoadBreakSwitch.d.ts +3 -0
- package/dist/interfaces/model/wires/ILoadBreakSwitch.js +3 -0
- package/dist/interfaces/model/wires/ILoadBreakSwitch.js.map +1 -0
- package/dist/interfaces/model/wires/IPowerTransformer.d.ts +6 -0
- package/dist/interfaces/model/wires/IPowerTransformer.js +3 -0
- package/dist/interfaces/model/wires/IPowerTransformer.js.map +1 -0
- package/dist/interfaces/model/wires/IPowerTransformerEnd.d.ts +8 -0
- package/dist/interfaces/model/wires/IPowerTransformerEnd.js +3 -0
- package/dist/interfaces/model/wires/IPowerTransformerEnd.js.map +1 -0
- package/dist/interfaces/model/wires/IProtectedSwitch.d.ts +3 -0
- package/dist/interfaces/model/wires/IProtectedSwitch.js +3 -0
- package/dist/interfaces/model/wires/IProtectedSwitch.js.map +1 -0
- package/dist/interfaces/model/wires/IRegulatingCondEq.d.ts +3 -0
- package/dist/interfaces/model/wires/IRegulatingCondEq.js +3 -0
- package/dist/interfaces/model/wires/IRegulatingCondEq.js.map +1 -0
- package/dist/interfaces/model/wires/ISwitch.d.ts +9 -0
- package/dist/interfaces/model/wires/ISwitch.js +3 -0
- package/dist/interfaces/model/wires/ISwitch.js.map +1 -0
- package/dist/interfaces/model/wires/ITransformerEnd.d.ts +13 -0
- package/dist/interfaces/model/wires/ITransformerEnd.js +3 -0
- package/dist/interfaces/model/wires/ITransformerEnd.js.map +1 -0
- package/dist/interfaces/observable/IObservable.d.ts +6 -0
- package/dist/interfaces/observable/IObservable.js +3 -0
- package/dist/interfaces/observable/IObservable.js.map +1 -0
- package/dist/interfaces/observable/IObserver.d.ts +3 -0
- package/dist/interfaces/observable/IObserver.js +3 -0
- package/dist/interfaces/observable/IObserver.js.map +1 -0
- package/dist/interfaces/persistence-interfaces.d.ts +10 -0
- package/dist/interfaces/persistence-interfaces.js +3 -0
- package/dist/interfaces/persistence-interfaces.js.map +1 -0
- package/dist/interfaces/schema-settings/ShapeInfos.d.ts +24 -0
- package/dist/interfaces/schema-settings/ShapeInfos.js +13 -0
- package/dist/interfaces/schema-settings/ShapeInfos.js.map +1 -0
- package/dist/model/assetinfo/AssetInfo.d.ts +6 -0
- package/dist/model/assetinfo/AssetInfo.js +13 -0
- package/dist/model/assetinfo/AssetInfo.js.map +1 -0
- package/dist/model/assetinfo/CableInfo.d.ts +4 -0
- package/dist/model/assetinfo/CableInfo.js +11 -0
- package/dist/model/assetinfo/CableInfo.js.map +1 -0
- package/dist/model/assetinfo/OverheadWireInfo.d.ts +4 -0
- package/dist/model/assetinfo/OverheadWireInfo.js +11 -0
- package/dist/model/assetinfo/OverheadWireInfo.js.map +1 -0
- package/dist/model/assetinfo/PowerTransformer2WInfo.d.ts +6 -0
- package/dist/model/assetinfo/PowerTransformer2WInfo.js +11 -0
- package/dist/model/assetinfo/PowerTransformer2WInfo.js.map +1 -0
- package/dist/model/assetinfo/PowerTransformer3WInfo.d.ts +10 -0
- package/dist/model/assetinfo/PowerTransformer3WInfo.js +11 -0
- package/dist/model/assetinfo/PowerTransformer3WInfo.js.map +1 -0
- package/dist/model/assetinfo/PowerTransformerInfo.d.ts +8 -0
- package/dist/model/assetinfo/PowerTransformerInfo.js +12 -0
- package/dist/model/assetinfo/PowerTransformerInfo.js.map +1 -0
- package/dist/model/assetinfo/TapChangerInfo.d.ts +22 -0
- package/dist/model/assetinfo/TapChangerInfo.js +11 -0
- package/dist/model/assetinfo/TapChangerInfo.js.map +1 -0
- package/dist/model/assetinfo/TransformerEndInfo.d.ts +23 -0
- package/dist/model/assetinfo/TransformerEndInfo.js +11 -0
- package/dist/model/assetinfo/TransformerEndInfo.js.map +1 -0
- package/dist/model/assetinfo/WireInfo.d.ts +14 -0
- package/dist/model/assetinfo/WireInfo.js +11 -0
- package/dist/model/assetinfo/WireInfo.js.map +1 -0
- package/dist/model/assets/AggregateScore.d.ts +4 -0
- package/dist/model/assets/AggregateScore.js +11 -0
- package/dist/model/assets/AggregateScore.js.map +1 -0
- package/dist/model/assets/AnalyticScore.d.ts +12 -0
- package/dist/model/assets/AnalyticScore.js +34 -0
- package/dist/model/assets/AnalyticScore.js.map +1 -0
- package/dist/model/assets/Asset.d.ts +38 -0
- package/dist/model/assets/Asset.js +109 -0
- package/dist/model/assets/Asset.js.map +1 -0
- package/dist/model/assets/AssetContainer.d.ts +5 -0
- package/dist/model/assets/AssetContainer.js +12 -0
- package/dist/model/assets/AssetContainer.js.map +1 -0
- package/dist/model/assets/AssetDeployment.d.ts +22 -0
- package/dist/model/assets/AssetDeployment.js +94 -0
- package/dist/model/assets/AssetDeployment.js.map +1 -0
- package/dist/model/assets/AssetHealthEvent.d.ts +12 -0
- package/dist/model/assets/AssetHealthEvent.js +65 -0
- package/dist/model/assets/AssetHealthEvent.js.map +1 -0
- package/dist/model/assets/AssetOrganisationRole.d.ts +12 -0
- package/dist/model/assets/AssetOrganisationRole.js +43 -0
- package/dist/model/assets/AssetOrganisationRole.js.map +1 -0
- package/dist/model/assets/AssetOwner.d.ts +8 -0
- package/dist/model/assets/AssetOwner.js +48 -0
- package/dist/model/assets/AssetOwner.js.map +1 -0
- package/dist/model/assets/DeploymentDate.d.ts +9 -0
- package/dist/model/assets/DeploymentDate.js +13 -0
- package/dist/model/assets/DeploymentDate.js.map +1 -0
- package/dist/model/assets/DeploymentStateKind.d.ts +7 -0
- package/dist/model/assets/DeploymentStateKind.js +12 -0
- package/dist/model/assets/DeploymentStateKind.js.map +1 -0
- package/dist/model/assets/Facility.d.ts +16 -0
- package/dist/model/assets/Facility.js +91 -0
- package/dist/model/assets/Facility.js.map +1 -0
- package/dist/model/assets/FacilityKind.d.ts +9 -0
- package/dist/model/assets/FacilityKind.js +14 -0
- package/dist/model/assets/FacilityKind.js.map +1 -0
- package/dist/model/assets/HealthScore.d.ts +9 -0
- package/dist/model/assets/HealthScore.js +55 -0
- package/dist/model/assets/HealthScore.js.map +1 -0
- package/dist/model/assets/LifecycleDate.d.ts +10 -0
- package/dist/model/assets/LifecycleDate.js +12 -0
- package/dist/model/assets/LifecycleDate.js.map +1 -0
- package/dist/model/assets/RiskScore.d.ts +4 -0
- package/dist/model/assets/RiskScore.js +11 -0
- package/dist/model/assets/RiskScore.js.map +1 -0
- package/dist/model/assets/TransformerApplicationKind.d.ts +6 -0
- package/dist/model/assets/TransformerApplicationKind.js +11 -0
- package/dist/model/assets/TransformerApplicationKind.js.map +1 -0
- package/dist/model/common/ActivityRecord.d.ts +18 -0
- package/dist/model/common/ActivityRecord.js +52 -0
- package/dist/model/common/ActivityRecord.js.map +1 -0
- package/dist/model/common/CoordinateSystem.d.ts +15 -0
- package/dist/model/common/CoordinateSystem.js +75 -0
- package/dist/model/common/CoordinateSystem.js.map +1 -0
- package/dist/model/common/Document.d.ts +4 -0
- package/dist/model/common/Document.js +11 -0
- package/dist/model/common/Document.js.map +1 -0
- package/dist/model/common/Location.d.ts +25 -0
- package/dist/model/common/Location.js +154 -0
- package/dist/model/common/Location.js.map +1 -0
- package/dist/model/common/OrganisationRole.d.ts +4 -0
- package/dist/model/common/OrganisationRole.js +11 -0
- package/dist/model/common/OrganisationRole.js.map +1 -0
- package/dist/model/common/PositionPoint.d.ts +19 -0
- package/dist/model/common/PositionPoint.js +111 -0
- package/dist/model/common/PositionPoint.js.map +1 -0
- package/dist/model/common/Status.d.ts +7 -0
- package/dist/model/common/Status.js +10 -0
- package/dist/model/common/Status.js.map +1 -0
- package/dist/model/core/ACDCTerminal.d.ts +14 -0
- package/dist/model/core/ACDCTerminal.js +54 -0
- package/dist/model/core/ACDCTerminal.js.map +1 -0
- package/dist/model/core/BaseVoltage.d.ts +22 -0
- package/dist/model/core/BaseVoltage.js +109 -0
- package/dist/model/core/BaseVoltage.js.map +1 -0
- package/dist/model/core/Bay.d.ts +27 -0
- package/dist/model/core/Bay.js +153 -0
- package/dist/model/core/Bay.js.map +1 -0
- package/dist/model/core/ConductingEquipment.d.ts +37 -0
- package/dist/model/core/ConductingEquipment.js +132 -0
- package/dist/model/core/ConductingEquipment.js.map +1 -0
- package/dist/model/core/ConnectivityNode.d.ts +42 -0
- package/dist/model/core/ConnectivityNode.js +317 -0
- package/dist/model/core/ConnectivityNode.js.map +1 -0
- package/dist/model/core/ConnectivityNodeContainer.d.ts +11 -0
- package/dist/model/core/ConnectivityNodeContainer.js +19 -0
- package/dist/model/core/ConnectivityNodeContainer.js.map +1 -0
- package/dist/model/core/Curve.d.ts +12 -0
- package/dist/model/core/Curve.js +34 -0
- package/dist/model/core/Curve.js.map +1 -0
- package/dist/model/core/CurveData.d.ts +15 -0
- package/dist/model/core/CurveData.js +58 -0
- package/dist/model/core/CurveData.js.map +1 -0
- package/dist/model/core/CurveStyle.d.ts +4 -0
- package/dist/model/core/CurveStyle.js +9 -0
- package/dist/model/core/CurveStyle.js.map +1 -0
- package/dist/model/core/Equipment.d.ts +30 -0
- package/dist/model/core/Equipment.js +148 -0
- package/dist/model/core/Equipment.js.map +1 -0
- package/dist/model/core/EquipmentContainer.d.ts +13 -0
- package/dist/model/core/EquipmentContainer.js +31 -0
- package/dist/model/core/EquipmentContainer.js.map +1 -0
- package/dist/model/core/Feeder.d.ts +31 -0
- package/dist/model/core/Feeder.js +143 -0
- package/dist/model/core/Feeder.js.map +1 -0
- package/dist/model/core/GeographicalRegion.d.ts +9 -0
- package/dist/model/core/GeographicalRegion.js +30 -0
- package/dist/model/core/GeographicalRegion.js.map +1 -0
- package/dist/model/core/IdentifiedObject.d.ts +70 -0
- package/dist/model/core/IdentifiedObject.js +225 -0
- package/dist/model/core/IdentifiedObject.js.map +1 -0
- package/dist/model/core/PSRType.d.ts +22 -0
- package/dist/model/core/PSRType.js +116 -0
- package/dist/model/core/PSRType.js.map +1 -0
- package/dist/model/core/PhaseCode.d.ts +23 -0
- package/dist/model/core/PhaseCode.js +28 -0
- package/dist/model/core/PhaseCode.js.map +1 -0
- package/dist/model/core/PowerSystemResource.d.ts +26 -0
- package/dist/model/core/PowerSystemResource.js +81 -0
- package/dist/model/core/PowerSystemResource.js.map +1 -0
- package/dist/model/core/SubGeographicalRegion.d.ts +15 -0
- package/dist/model/core/SubGeographicalRegion.js +49 -0
- package/dist/model/core/SubGeographicalRegion.js.map +1 -0
- package/dist/model/core/Substation.d.ts +34 -0
- package/dist/model/core/Substation.js +233 -0
- package/dist/model/core/Substation.js.map +1 -0
- package/dist/model/core/Terminal.d.ts +68 -0
- package/dist/model/core/Terminal.js +307 -0
- package/dist/model/core/Terminal.js.map +1 -0
- package/dist/model/core/VoltageLevel.d.ts +34 -0
- package/dist/model/core/VoltageLevel.js +162 -0
- package/dist/model/core/VoltageLevel.js.map +1 -0
- package/dist/model/diagram/Diagram.d.ts +29 -0
- package/dist/model/diagram/Diagram.js +105 -0
- package/dist/model/diagram/Diagram.js.map +1 -0
- package/dist/model/diagram/DiagramObject.d.ts +43 -0
- package/dist/model/diagram/DiagramObject.js +275 -0
- package/dist/model/diagram/DiagramObject.js.map +1 -0
- package/dist/model/diagram/DiagramObjectPoint.d.ts +33 -0
- package/dist/model/diagram/DiagramObjectPoint.js +169 -0
- package/dist/model/diagram/DiagramObjectPoint.js.map +1 -0
- package/dist/model/diagram/DiagramStyle.d.ts +9 -0
- package/dist/model/diagram/DiagramStyle.js +29 -0
- package/dist/model/diagram/DiagramStyle.js.map +1 -0
- package/dist/model/diagram/OrientationKind.d.ts +4 -0
- package/dist/model/diagram/OrientationKind.js +9 -0
- package/dist/model/diagram/OrientationKind.js.map +1 -0
- package/dist/model/domain/ActivePower.d.ts +8 -0
- package/dist/model/domain/ActivePower.js +12 -0
- package/dist/model/domain/ActivePower.js.map +1 -0
- package/dist/model/domain/AngleDegrees.d.ts +8 -0
- package/dist/model/domain/AngleDegrees.js +12 -0
- package/dist/model/domain/AngleDegrees.js.map +1 -0
- package/dist/model/domain/ApparentPower.d.ts +8 -0
- package/dist/model/domain/ApparentPower.js +12 -0
- package/dist/model/domain/ApparentPower.js.map +1 -0
- package/dist/model/domain/Capacitance.d.ts +8 -0
- package/dist/model/domain/Capacitance.js +12 -0
- package/dist/model/domain/Capacitance.js.map +1 -0
- package/dist/model/domain/CapacitancePerLength.d.ts +8 -0
- package/dist/model/domain/CapacitancePerLength.js +12 -0
- package/dist/model/domain/CapacitancePerLength.js.map +1 -0
- package/dist/model/domain/ConductancePerLength.d.ts +8 -0
- package/dist/model/domain/ConductancePerLength.js +12 -0
- package/dist/model/domain/ConductancePerLength.js.map +1 -0
- package/dist/model/domain/CurrentFlow.d.ts +8 -0
- package/dist/model/domain/CurrentFlow.js +12 -0
- package/dist/model/domain/CurrentFlow.js.map +1 -0
- package/dist/model/domain/Reactance.d.ts +8 -0
- package/dist/model/domain/Reactance.js +12 -0
- package/dist/model/domain/Reactance.js.map +1 -0
- package/dist/model/domain/ReactancePerLength.d.ts +8 -0
- package/dist/model/domain/ReactancePerLength.js +12 -0
- package/dist/model/domain/ReactancePerLength.js.map +1 -0
- package/dist/model/domain/ReactivePower.d.ts +8 -0
- package/dist/model/domain/ReactivePower.js +12 -0
- package/dist/model/domain/ReactivePower.js.map +1 -0
- package/dist/model/domain/Resistance.d.ts +8 -0
- package/dist/model/domain/Resistance.js +12 -0
- package/dist/model/domain/Resistance.js.map +1 -0
- package/dist/model/domain/ResistancePerLength.d.ts +8 -0
- package/dist/model/domain/ResistancePerLength.js +12 -0
- package/dist/model/domain/ResistancePerLength.js.map +1 -0
- package/dist/model/domain/UnitMultiplier.d.ts +13 -0
- package/dist/model/domain/UnitMultiplier.js +18 -0
- package/dist/model/domain/UnitMultiplier.js.map +1 -0
- package/dist/model/domain/UnitSymbol.d.ts +30 -0
- package/dist/model/domain/UnitSymbol.js +35 -0
- package/dist/model/domain/UnitSymbol.js.map +1 -0
- package/dist/model/domain/Voltage.d.ts +8 -0
- package/dist/model/domain/Voltage.js +12 -0
- package/dist/model/domain/Voltage.js.map +1 -0
- package/dist/model/equivalents/EquivalentBranch.d.ts +34 -0
- package/dist/model/equivalents/EquivalentBranch.js +161 -0
- package/dist/model/equivalents/EquivalentBranch.js.map +1 -0
- package/dist/model/equivalents/EquivalentEquipment.d.ts +4 -0
- package/dist/model/equivalents/EquivalentEquipment.js +11 -0
- package/dist/model/equivalents/EquivalentEquipment.js.map +1 -0
- package/dist/model/extensions/amprion/core/AMPRIONBay.d.ts +16 -0
- package/dist/model/extensions/amprion/core/AMPRIONBay.js +92 -0
- package/dist/model/extensions/amprion/core/AMPRIONBay.js.map +1 -0
- package/dist/model/extensions/amprion/core/AMPRIONConnectivityNode.d.ts +11 -0
- package/dist/model/extensions/amprion/core/AMPRIONConnectivityNode.js +43 -0
- package/dist/model/extensions/amprion/core/AMPRIONConnectivityNode.js.map +1 -0
- package/dist/model/extensions/enervance/assets/EVImportanceScore.d.ts +9 -0
- package/dist/model/extensions/enervance/assets/EVImportanceScore.js +55 -0
- package/dist/model/extensions/enervance/assets/EVImportanceScore.js.map +1 -0
- package/dist/model/extensions/enervance/core/EVTerminal.d.ts +11 -0
- package/dist/model/extensions/enervance/core/EVTerminal.js +59 -0
- package/dist/model/extensions/enervance/core/EVTerminal.js.map +1 -0
- package/dist/model/extensions/enervance/operations/EVTerminalAction.d.ts +23 -0
- package/dist/model/extensions/enervance/operations/EVTerminalAction.js +112 -0
- package/dist/model/extensions/enervance/operations/EVTerminalAction.js.map +1 -0
- package/dist/model/extensions/neplan-westnetz/assets/WNFacility.d.ts +17 -0
- package/dist/model/extensions/neplan-westnetz/assets/WNFacility.js +108 -0
- package/dist/model/extensions/neplan-westnetz/assets/WNFacility.js.map +1 -0
- package/dist/model/extensions/neplan-westnetz/core/WNConnectivityNode.d.ts +33 -0
- package/dist/model/extensions/neplan-westnetz/core/WNConnectivityNode.js +279 -0
- package/dist/model/extensions/neplan-westnetz/core/WNConnectivityNode.js.map +1 -0
- package/dist/model/extensions/neplan-westnetz/core/WNFeeder.d.ts +19 -0
- package/dist/model/extensions/neplan-westnetz/core/WNFeeder.js +92 -0
- package/dist/model/extensions/neplan-westnetz/core/WNFeeder.js.map +1 -0
- package/dist/model/extensions/neplan-westnetz/faults/WNFaultConnectivityNode.d.ts +20 -0
- package/dist/model/extensions/neplan-westnetz/faults/WNFaultConnectivityNode.js +95 -0
- package/dist/model/extensions/neplan-westnetz/faults/WNFaultConnectivityNode.js.map +1 -0
- package/dist/model/extensions/neplan-westnetz/operations/WNOutage.d.ts +18 -0
- package/dist/model/extensions/neplan-westnetz/operations/WNOutage.js +97 -0
- package/dist/model/extensions/neplan-westnetz/operations/WNOutage.js.map +1 -0
- package/dist/model/extensions/neplan-westnetz/wires/WNEnergyConsumer.d.ts +36 -0
- package/dist/model/extensions/neplan-westnetz/wires/WNEnergyConsumer.js +319 -0
- package/dist/model/extensions/neplan-westnetz/wires/WNEnergyConsumer.js.map +1 -0
- package/dist/model/faults/EquipmentFault.d.ts +4 -0
- package/dist/model/faults/EquipmentFault.js +11 -0
- package/dist/model/faults/EquipmentFault.js.map +1 -0
- package/dist/model/faults/Fault.d.ts +13 -0
- package/dist/model/faults/Fault.js +31 -0
- package/dist/model/faults/Fault.js.map +1 -0
- package/dist/model/faults/LineFault.d.ts +4 -0
- package/dist/model/faults/LineFault.js +11 -0
- package/dist/model/faults/LineFault.js.map +1 -0
- package/dist/model/generation/FossilFuel.d.ts +12 -0
- package/dist/model/generation/FossilFuel.js +46 -0
- package/dist/model/generation/FossilFuel.js.map +1 -0
- package/dist/model/generation/FuelType.d.ts +8 -0
- package/dist/model/generation/FuelType.js +13 -0
- package/dist/model/generation/FuelType.js.map +1 -0
- package/dist/model/generation/GeneratingUnit.d.ts +32 -0
- package/dist/model/generation/GeneratingUnit.js +112 -0
- package/dist/model/generation/GeneratingUnit.js.map +1 -0
- package/dist/model/generation/GeneratorControlSource.d.ts +6 -0
- package/dist/model/generation/GeneratorControlSource.js +11 -0
- package/dist/model/generation/GeneratorControlSource.js.map +1 -0
- package/dist/model/generation/HydroEnergyConversionKind.d.ts +4 -0
- package/dist/model/generation/HydroEnergyConversionKind.js +9 -0
- package/dist/model/generation/HydroEnergyConversionKind.js.map +1 -0
- package/dist/model/generation/HydroGeneratingUnit.d.ts +8 -0
- package/dist/model/generation/HydroGeneratingUnit.js +11 -0
- package/dist/model/generation/HydroGeneratingUnit.js.map +1 -0
- package/dist/model/generation/HydroPlantStorageKind.d.ts +5 -0
- package/dist/model/generation/HydroPlantStorageKind.js +10 -0
- package/dist/model/generation/HydroPlantStorageKind.js.map +1 -0
- package/dist/model/generation/HydroPowerPlant.d.ts +8 -0
- package/dist/model/generation/HydroPowerPlant.js +13 -0
- package/dist/model/generation/HydroPowerPlant.js.map +1 -0
- package/dist/model/generation/HydroPump.d.ts +8 -0
- package/dist/model/generation/HydroPump.js +11 -0
- package/dist/model/generation/HydroPump.js.map +1 -0
- package/dist/model/generation/NuclearGeneratingUnit.d.ts +4 -0
- package/dist/model/generation/NuclearGeneratingUnit.js +11 -0
- package/dist/model/generation/NuclearGeneratingUnit.js.map +1 -0
- package/dist/model/generation/SolarGeneratingUnit.d.ts +4 -0
- package/dist/model/generation/SolarGeneratingUnit.js +11 -0
- package/dist/model/generation/SolarGeneratingUnit.js.map +1 -0
- package/dist/model/generation/ThermalGeneratingUnit.d.ts +11 -0
- package/dist/model/generation/ThermalGeneratingUnit.js +36 -0
- package/dist/model/generation/ThermalGeneratingUnit.js.map +1 -0
- package/dist/model/generation/WindGenUnitKind.d.ts +4 -0
- package/dist/model/generation/WindGenUnitKind.js +9 -0
- package/dist/model/generation/WindGenUnitKind.js.map +1 -0
- package/dist/model/generation/WindGeneratingUnit.d.ts +6 -0
- package/dist/model/generation/WindGeneratingUnit.js +11 -0
- package/dist/model/generation/WindGeneratingUnit.js.map +1 -0
- package/dist/model/loadmodel/ConformLoad.d.ts +8 -0
- package/dist/model/loadmodel/ConformLoad.js +30 -0
- package/dist/model/loadmodel/ConformLoad.js.map +1 -0
- package/dist/model/model/Model.d.ts +293 -0
- package/dist/model/model/Model.js +792 -0
- package/dist/model/model/Model.js.map +1 -0
- package/dist/model/operationallimits/CurrentLimit.d.ts +17 -0
- package/dist/model/operationallimits/CurrentLimit.js +79 -0
- package/dist/model/operationallimits/CurrentLimit.js.map +1 -0
- package/dist/model/operationallimits/ENTSOEOperationalLimitType.d.ts +5 -0
- package/dist/model/operationallimits/ENTSOEOperationalLimitType.js +10 -0
- package/dist/model/operationallimits/ENTSOEOperationalLimitType.js.map +1 -0
- package/dist/model/operationallimits/LimitTypeKind.d.ts +9 -0
- package/dist/model/operationallimits/LimitTypeKind.js +14 -0
- package/dist/model/operationallimits/LimitTypeKind.js.map +1 -0
- package/dist/model/operationallimits/OperationalLimit.d.ts +15 -0
- package/dist/model/operationallimits/OperationalLimit.js +62 -0
- package/dist/model/operationallimits/OperationalLimit.js.map +1 -0
- package/dist/model/operationallimits/OperationalLimitDirectionKind.d.ts +5 -0
- package/dist/model/operationallimits/OperationalLimitDirectionKind.js +10 -0
- package/dist/model/operationallimits/OperationalLimitDirectionKind.js.map +1 -0
- package/dist/model/operationallimits/OperationalLimitSet.d.ts +23 -0
- package/dist/model/operationallimits/OperationalLimitSet.js +104 -0
- package/dist/model/operationallimits/OperationalLimitSet.js.map +1 -0
- package/dist/model/operationallimits/OperationalLimitType.d.ts +20 -0
- package/dist/model/operationallimits/OperationalLimitType.js +74 -0
- package/dist/model/operationallimits/OperationalLimitType.js.map +1 -0
- package/dist/model/operations/Outage.d.ts +18 -0
- package/dist/model/operations/Outage.js +48 -0
- package/dist/model/operations/Outage.js.map +1 -0
- package/dist/model/operations/SwitchAction.d.ts +6 -0
- package/dist/model/operations/SwitchAction.js +11 -0
- package/dist/model/operations/SwitchAction.js.map +1 -0
- package/dist/model/operations/SwitchActionKind.d.ts +6 -0
- package/dist/model/operations/SwitchActionKind.js +11 -0
- package/dist/model/operations/SwitchActionKind.js.map +1 -0
- package/dist/model/operations/SwitchingAction.d.ts +14 -0
- package/dist/model/operations/SwitchingAction.js +32 -0
- package/dist/model/operations/SwitchingAction.js.map +1 -0
- package/dist/model/operations/SwitchingPlan.d.ts +26 -0
- package/dist/model/operations/SwitchingPlan.js +102 -0
- package/dist/model/operations/SwitchingPlan.js.map +1 -0
- package/dist/model/operations/UnplannedOutage.d.ts +4 -0
- package/dist/model/operations/UnplannedOutage.js +11 -0
- package/dist/model/operations/UnplannedOutage.js.map +1 -0
- package/dist/model/statevariables/StateVariable.d.ts +9 -0
- package/dist/model/statevariables/StateVariable.js +23 -0
- package/dist/model/statevariables/StateVariable.js.map +1 -0
- package/dist/model/statevariables/SvPowerFlow.d.ts +17 -0
- package/dist/model/statevariables/SvPowerFlow.js +60 -0
- package/dist/model/statevariables/SvPowerFlow.js.map +1 -0
- package/dist/model/statevariables/SvStatus.d.ts +12 -0
- package/dist/model/statevariables/SvStatus.js +45 -0
- package/dist/model/statevariables/SvStatus.js.map +1 -0
- package/dist/model/statevariables/SvTapStep.d.ts +12 -0
- package/dist/model/statevariables/SvTapStep.js +46 -0
- package/dist/model/statevariables/SvTapStep.js.map +1 -0
- package/dist/model/statevariables/SvVoltage.d.ts +16 -0
- package/dist/model/statevariables/SvVoltage.js +60 -0
- package/dist/model/statevariables/SvVoltage.js.map +1 -0
- package/dist/model/topology/TopologicalIsland.d.ts +13 -0
- package/dist/model/topology/TopologicalIsland.js +50 -0
- package/dist/model/topology/TopologicalIsland.js.map +1 -0
- package/dist/model/topology/TopologicalNode.d.ts +40 -0
- package/dist/model/topology/TopologicalNode.js +152 -0
- package/dist/model/topology/TopologicalNode.js.map +1 -0
- package/dist/model/wires/ACLineSegment.d.ts +33 -0
- package/dist/model/wires/ACLineSegment.js +206 -0
- package/dist/model/wires/ACLineSegment.js.map +1 -0
- package/dist/model/wires/AsynchronousMachine.d.ts +19 -0
- package/dist/model/wires/AsynchronousMachine.js +42 -0
- package/dist/model/wires/AsynchronousMachine.js.map +1 -0
- package/dist/model/wires/AsynchronousMachineKind.d.ts +4 -0
- package/dist/model/wires/AsynchronousMachineKind.js +9 -0
- package/dist/model/wires/AsynchronousMachineKind.js.map +1 -0
- package/dist/model/wires/Breaker.d.ts +12 -0
- package/dist/model/wires/Breaker.js +76 -0
- package/dist/model/wires/Breaker.js.map +1 -0
- package/dist/model/wires/BusbarSection.d.ts +12 -0
- package/dist/model/wires/BusbarSection.js +64 -0
- package/dist/model/wires/BusbarSection.js.map +1 -0
- package/dist/model/wires/Clamp.d.ts +6 -0
- package/dist/model/wires/Clamp.js +35 -0
- package/dist/model/wires/Clamp.js.map +1 -0
- package/dist/model/wires/CompositeSwitch.d.ts +5 -0
- package/dist/model/wires/CompositeSwitch.js +12 -0
- package/dist/model/wires/CompositeSwitch.js.map +1 -0
- package/dist/model/wires/Conductor.d.ts +13 -0
- package/dist/model/wires/Conductor.js +45 -0
- package/dist/model/wires/Conductor.js.map +1 -0
- package/dist/model/wires/Connector.d.ts +5 -0
- package/dist/model/wires/Connector.js +17 -0
- package/dist/model/wires/Connector.js.map +1 -0
- package/dist/model/wires/Cut.d.ts +4 -0
- package/dist/model/wires/Cut.js +11 -0
- package/dist/model/wires/Cut.js.map +1 -0
- package/dist/model/wires/Disconnector.d.ts +18 -0
- package/dist/model/wires/Disconnector.js +106 -0
- package/dist/model/wires/Disconnector.js.map +1 -0
- package/dist/model/wires/EarthFaultCompensator.d.ts +7 -0
- package/dist/model/wires/EarthFaultCompensator.js +19 -0
- package/dist/model/wires/EarthFaultCompensator.js.map +1 -0
- package/dist/model/wires/EnergyConsumer.d.ts +37 -0
- package/dist/model/wires/EnergyConsumer.js +189 -0
- package/dist/model/wires/EnergyConsumer.js.map +1 -0
- package/dist/model/wires/EnergySource.d.ts +41 -0
- package/dist/model/wires/EnergySource.js +198 -0
- package/dist/model/wires/EnergySource.js.map +1 -0
- package/dist/model/wires/ExternalNetworkInjection.d.ts +46 -0
- package/dist/model/wires/ExternalNetworkInjection.js +195 -0
- package/dist/model/wires/ExternalNetworkInjection.js.map +1 -0
- package/dist/model/wires/Ground.d.ts +8 -0
- package/dist/model/wires/Ground.js +38 -0
- package/dist/model/wires/Ground.js.map +1 -0
- package/dist/model/wires/GroundDisconnector.d.ts +8 -0
- package/dist/model/wires/GroundDisconnector.js +38 -0
- package/dist/model/wires/GroundDisconnector.js.map +1 -0
- package/dist/model/wires/Jumper.d.ts +4 -0
- package/dist/model/wires/Jumper.js +11 -0
- package/dist/model/wires/Jumper.js.map +1 -0
- package/dist/model/wires/Junction.d.ts +10 -0
- package/dist/model/wires/Junction.js +51 -0
- package/dist/model/wires/Junction.js.map +1 -0
- package/dist/model/wires/Line.d.ts +20 -0
- package/dist/model/wires/Line.js +101 -0
- package/dist/model/wires/Line.js.map +1 -0
- package/dist/model/wires/LoadBreakSwitch.d.ts +16 -0
- package/dist/model/wires/LoadBreakSwitch.js +93 -0
- package/dist/model/wires/LoadBreakSwitch.js.map +1 -0
- package/dist/model/wires/PetersenCoil.d.ts +19 -0
- package/dist/model/wires/PetersenCoil.js +71 -0
- package/dist/model/wires/PetersenCoil.js.map +1 -0
- package/dist/model/wires/PetersenCoilModeKind.d.ts +5 -0
- package/dist/model/wires/PetersenCoilModeKind.js +10 -0
- package/dist/model/wires/PetersenCoilModeKind.js.map +1 -0
- package/dist/model/wires/Plant.d.ts +5 -0
- package/dist/model/wires/Plant.js +12 -0
- package/dist/model/wires/Plant.js.map +1 -0
- package/dist/model/wires/PowerTransformer.d.ts +30 -0
- package/dist/model/wires/PowerTransformer.js +170 -0
- package/dist/model/wires/PowerTransformer.js.map +1 -0
- package/dist/model/wires/PowerTransformerEnd.d.ts +33 -0
- package/dist/model/wires/PowerTransformerEnd.js +147 -0
- package/dist/model/wires/PowerTransformerEnd.js.map +1 -0
- package/dist/model/wires/ProtectedSwitch.d.ts +4 -0
- package/dist/model/wires/ProtectedSwitch.js +11 -0
- package/dist/model/wires/ProtectedSwitch.js.map +1 -0
- package/dist/model/wires/RatioTapChanger.d.ts +15 -0
- package/dist/model/wires/RatioTapChanger.js +64 -0
- package/dist/model/wires/RatioTapChanger.js.map +1 -0
- package/dist/model/wires/RatioTapChangerTable.d.ts +10 -0
- package/dist/model/wires/RatioTapChangerTable.js +30 -0
- package/dist/model/wires/RatioTapChangerTable.js.map +1 -0
- package/dist/model/wires/RatioTapChangerTablePoint.d.ts +11 -0
- package/dist/model/wires/RatioTapChangerTablePoint.js +42 -0
- package/dist/model/wires/RatioTapChangerTablePoint.js.map +1 -0
- package/dist/model/wires/ReactiveCapabilityCurve.d.ts +10 -0
- package/dist/model/wires/ReactiveCapabilityCurve.js +31 -0
- package/dist/model/wires/ReactiveCapabilityCurve.js.map +1 -0
- package/dist/model/wires/Recloser.d.ts +6 -0
- package/dist/model/wires/Recloser.js +35 -0
- package/dist/model/wires/Recloser.js.map +1 -0
- package/dist/model/wires/RegulatingCondEq.d.ts +15 -0
- package/dist/model/wires/RegulatingCondEq.js +55 -0
- package/dist/model/wires/RegulatingCondEq.js.map +1 -0
- package/dist/model/wires/RegulatingControl.d.ts +32 -0
- package/dist/model/wires/RegulatingControl.js +139 -0
- package/dist/model/wires/RegulatingControl.js.map +1 -0
- package/dist/model/wires/RegulatingControlModeKind.d.ts +10 -0
- package/dist/model/wires/RegulatingControlModeKind.js +15 -0
- package/dist/model/wires/RegulatingControlModeKind.js.map +1 -0
- package/dist/model/wires/RotatingMachine.d.ts +27 -0
- package/dist/model/wires/RotatingMachine.js +112 -0
- package/dist/model/wires/RotatingMachine.js.map +1 -0
- package/dist/model/wires/SeriesCompensator.d.ts +7 -0
- package/dist/model/wires/SeriesCompensator.js +41 -0
- package/dist/model/wires/SeriesCompensator.js.map +1 -0
- package/dist/model/wires/ShortCircuitRotorKind.d.ts +6 -0
- package/dist/model/wires/ShortCircuitRotorKind.js +11 -0
- package/dist/model/wires/ShortCircuitRotorKind.js.map +1 -0
- package/dist/model/wires/Switch.d.ts +33 -0
- package/dist/model/wires/Switch.js +166 -0
- package/dist/model/wires/Switch.js.map +1 -0
- package/dist/model/wires/SynchronousMachine.d.ts +50 -0
- package/dist/model/wires/SynchronousMachine.js +193 -0
- package/dist/model/wires/SynchronousMachine.js.map +1 -0
- package/dist/model/wires/SynchronousMachineKind.d.ts +9 -0
- package/dist/model/wires/SynchronousMachineKind.js +14 -0
- package/dist/model/wires/SynchronousMachineKind.js.map +1 -0
- package/dist/model/wires/SynchronousMachineOperatingMode.d.ts +5 -0
- package/dist/model/wires/SynchronousMachineOperatingMode.js +10 -0
- package/dist/model/wires/SynchronousMachineOperatingMode.js.map +1 -0
- package/dist/model/wires/TapChanger.d.ts +19 -0
- package/dist/model/wires/TapChanger.js +41 -0
- package/dist/model/wires/TapChanger.js.map +1 -0
- package/dist/model/wires/TapChangerControl.d.ts +9 -0
- package/dist/model/wires/TapChangerControl.js +28 -0
- package/dist/model/wires/TapChangerControl.js.map +1 -0
- package/dist/model/wires/TapChangerTablePoint.d.ts +12 -0
- package/dist/model/wires/TapChangerTablePoint.js +34 -0
- package/dist/model/wires/TapChangerTablePoint.js.map +1 -0
- package/dist/model/wires/TransformerControlMode.d.ts +4 -0
- package/dist/model/wires/TransformerControlMode.js +9 -0
- package/dist/model/wires/TransformerControlMode.js.map +1 -0
- package/dist/model/wires/TransformerEnd.d.ts +31 -0
- package/dist/model/wires/TransformerEnd.js +108 -0
- package/dist/model/wires/TransformerEnd.js.map +1 -0
- package/dist/model/wires/WindingConnection.d.ts +9 -0
- package/dist/model/wires/WindingConnection.js +14 -0
- package/dist/model/wires/WindingConnection.js.map +1 -0
- package/dist/package.json +16 -0
- package/dist/util/datatype-converter.d.ts +3 -0
- package/dist/util/datatype-converter.js +49 -0
- package/dist/util/datatype-converter.js.map +1 -0
- package/dist/util/sparql/sparql-building-block.d.ts +15 -0
- package/dist/util/sparql/sparql-building-block.js +31 -0
- package/dist/util/sparql/sparql-building-block.js.map +1 -0
- package/dist/util/sparql/sparql-utils.d.ts +3 -0
- package/dist/util/sparql/sparql-utils.js +28 -0
- package/dist/util/sparql/sparql-utils.js.map +1 -0
- package/dist/util/util-create.d.ts +11 -0
- package/dist/util/util-create.js +113 -0
- package/dist/util/util-create.js.map +1 -0
- package/dist/util/util-search.d.ts +8 -0
- package/dist/util/util-search.js +41 -0
- package/dist/util/util-search.js.map +1 -0
- package/dist/util/util-topology.d.ts +14 -0
- package/dist/util/util-topology.js +144 -0
- package/dist/util/util-topology.js.map +1 -0
- package/dist/util/utils.d.ts +25 -0
- package/dist/util/utils.js +221 -0
- package/dist/util/utils.js.map +1 -0
- package/dist/util/xml/utils.parser.d.ts +3 -0
- package/dist/util/xml/utils.parser.js +32 -0
- package/dist/util/xml/utils.parser.js.map +1 -0
- package/dist/util/xml/xml.parser.d.ts +16 -0
- package/dist/util/xml/xml.parser.js +98 -0
- package/dist/util/xml/xml.parser.js.map +1 -0
- package/dist/util/xml/xml.serializer.d.ts +12 -0
- package/dist/util/xml/xml.serializer.js +135 -0
- package/dist/util/xml/xml.serializer.js.map +1 -0
- package/jasmine/jasmine_all.json +13 -0
- package/jasmine/jasmine_fuseki_interface.json +13 -0
- package/jasmine/jasmine_fuseki_psdm.json +13 -0
- package/jasmine/jasmine_integral_7.json +13 -0
- package/jasmine/jasmine_psdm.json +13 -0
- package/package.json +73 -0
- package/src/config/lew-sincal/lew-sincal-load.config.ts +58 -0
- package/src/config/power-system-datamodel/psdm-load.config.ts +57 -0
- package/src/config/westnetz-integral7/integral7-load.config.ts +53 -0
- package/src/config/westnetz-neplan/callbacks/cb-connectivitynode.ts +159 -0
- package/src/config/westnetz-neplan/callbacks/cb-psr.ts +30 -0
- package/src/config/westnetz-neplan/callbacks/cb-wnenergyconsumer.ts +70 -0
- package/src/config/westnetz-neplan/neplan-load.config.ts +130 -0
- package/src/config/westnetz-neplan/property-handler-westenergy.config.ts +52 -0
- package/src/constants/cim-class-definition.ts +149 -0
- package/src/constants/cim-class-names.ts +108 -0
- package/src/constants/cim-constants.ts +5 -0
- package/src/constants/init-data/ASSET_HEALTH_EVENTS.ts +45 -0
- package/src/constants/init-data/ASSSET_OWNER.ts +11 -0
- package/src/constants/init-data/JENA_SPARQL.ts +328 -0
- package/src/constants/init-data/PSR_TYPES.ts +75 -0
- package/src/constants/init-data/xml/AssetHealtEvent.xml +45 -0
- package/src/constants/init-data/xml/AssetOwner.xml +11 -0
- package/src/constants/init-data/xml/PsrType.xml +80 -0
- package/src/constants/rdf-xml.ts +52 -0
- package/src/converter/PSDM/ConverterPowerSystemDataModel.ts +546 -0
- package/src/converter/PSDM/model/FixedFeedIn.ts +28 -0
- package/src/converter/PSDM/model/Line.ts +39 -0
- package/src/converter/PSDM/model/LineType.ts +29 -0
- package/src/converter/PSDM/model/Load.ts +38 -0
- package/src/converter/PSDM/model/Node.ts +16 -0
- package/src/converter/PSDM/model/TimeSeriesMapping.ts +13 -0
- package/src/converter/PSDM/model/Transformer.ts +34 -0
- package/src/converter/PSDM/model/TransformerType.ts +49 -0
- package/src/converter/PSDM/model/geo/Crs.ts +4 -0
- package/src/converter/PSDM/model/geo/GeoPosition.ts +7 -0
- package/src/converter/integral7/ConverterIntegral7.ts +3508 -0
- package/src/converter/integral7/config/db-config.ts +12 -0
- package/src/converter/integral7/config/generation-unit-fuel-types.ts +51 -0
- package/src/converter/integral7/config/integral-prefix.ts +20 -0
- package/src/converter/integral7/model/integral/BaseClass.ts +28 -0
- package/src/converter/integral7/model/integral/BaseClassNsg.ts +21 -0
- package/src/converter/integral7/model/integral/KnotenSo.ts +41 -0
- package/src/converter/integral7/model/integral/KnotenSoNsg.ts +24 -0
- package/src/converter/integral7/model/integral/Leitung.ts +73 -0
- package/src/converter/integral7/model/integral/LeitungNsg.ts +46 -0
- package/src/converter/integral7/model/integral/Point.ts +14 -0
- package/src/converter/integral7/model/integral/Schaltanlage.ts +151 -0
- package/src/converter/integral7/model/integral/SchaltanlageNSG.ts +30 -0
- package/src/converter/integral7/model/integral/Schaltanlagenabschnitt.ts +44 -0
- package/src/converter/integral7/model/integral/SchaltanlagenabschnittNsg.ts +27 -0
- package/src/converter/integral7/model/integral/Schaltfeld.ts +116 -0
- package/src/converter/integral7/model/integral/SchaltfeldNsg.ts +35 -0
- package/src/converter/integral7/model/integral/Standort.ts +53 -0
- package/src/converter/integral7/model/integral/StandortNsg.ts +24 -0
- package/src/converter/integral7/model/integral/Trafo2w.ts +22 -0
- package/src/converter/integral7/model/integral/Trafo2wNsg.ts +13 -0
- package/src/converter/integral7/model/interfaces.ts +443 -0
- package/src/converter/integral7/sql/integral.sql.ts +319 -0
- package/src/converter/integral7/utils-schema.ts +50 -0
- package/src/converter/integral7/utils-trafo3w.ts +321 -0
- package/src/converter/integral7/utils.ts +653 -0
- package/src/etl-neplan/etl-neplan-contingency-analysis.ts +170 -0
- package/src/etl-neplan/etl-neplan-feederline.ts +138 -0
- package/src/etl-neplan/etl-neplan.ts +343 -0
- package/src/index.ts +291 -0
- package/src/interfaces/model/assets/IAsset.ts +5 -0
- package/src/interfaces/model/assets/IAssetContainer.ts +5 -0
- package/src/interfaces/model/assets/IFacility.ts +5 -0
- package/src/interfaces/model/common/IDocument.ts +5 -0
- package/src/interfaces/model/core/IACDCTerminal.ts +8 -0
- package/src/interfaces/model/core/IBaseVoltage.ts +7 -0
- package/src/interfaces/model/core/IConductingEquipment.ts +16 -0
- package/src/interfaces/model/core/IConnectivityNode.ts +27 -0
- package/src/interfaces/model/core/IConnectivityNodeContainer.ts +11 -0
- package/src/interfaces/model/core/IEquipment.ts +11 -0
- package/src/interfaces/model/core/IEquipmentContainer.ts +12 -0
- package/src/interfaces/model/core/IFeeder.ts +21 -0
- package/src/interfaces/model/core/IIdentifiedObject.ts +108 -0
- package/src/interfaces/model/core/IPowerSystemResource.ts +3 -0
- package/src/interfaces/model/core/ISubstation.ts +8 -0
- package/src/interfaces/model/core/ITerminal.ts +57 -0
- package/src/interfaces/model/core/IVoltageLevel.ts +14 -0
- package/src/interfaces/model/diagram/IDiagram.ts +21 -0
- package/src/interfaces/model/diagram/IDiagramObject.ts +21 -0
- package/src/interfaces/model/diagram/IDiagramObjectPoint.ts +16 -0
- package/src/interfaces/model/domain/IActivePower.ts +3 -0
- package/src/interfaces/model/domain/IAngleDegrees.ts +3 -0
- package/src/interfaces/model/domain/IApparentPower.ts +3 -0
- package/src/interfaces/model/domain/ICurrentFlow.ts +3 -0
- package/src/interfaces/model/domain/IDataType.ts +9 -0
- package/src/interfaces/model/domain/IReactivePower.ts +3 -0
- package/src/interfaces/model/domain/IVoltage.ts +3 -0
- package/src/interfaces/model/domain/UnitMultiplier.ts +13 -0
- package/src/interfaces/model/domain/UnitSymbol.ts +30 -0
- package/src/interfaces/model/enums/EnumShapeInfo.ts +5 -0
- package/src/interfaces/model/faults/IFault.ts +11 -0
- package/src/interfaces/model/model/IModel.ts +91 -0
- package/src/interfaces/model/operations/IOutage.ts +23 -0
- package/src/interfaces/model/operations/ISwitchingAction.ts +9 -0
- package/src/interfaces/model/operations/ISwitchingPlan.ts +26 -0
- package/src/interfaces/model/statevariables/ISvPowerFlow.ts +20 -0
- package/src/interfaces/model/statevariables/ISvVoltage.ts +16 -0
- package/src/interfaces/model/topology/ITopologicalIsland.ts +11 -0
- package/src/interfaces/model/topology/ITopologicalNode.ts +24 -0
- package/src/interfaces/model/wires/IACLineSegment.ts +4 -0
- package/src/interfaces/model/wires/IBusbarSection.ts +4 -0
- package/src/interfaces/model/wires/ICompositeSwitch.ts +6 -0
- package/src/interfaces/model/wires/IConductor.ts +6 -0
- package/src/interfaces/model/wires/IConnector.ts +5 -0
- package/src/interfaces/model/wires/IDisconnector.ts +4 -0
- package/src/interfaces/model/wires/IEnergyConsumer.ts +7 -0
- package/src/interfaces/model/wires/IEnergySource.ts +20 -0
- package/src/interfaces/model/wires/IExternalNetworkInjection.ts +34 -0
- package/src/interfaces/model/wires/ILoadBreakSwitch.ts +4 -0
- package/src/interfaces/model/wires/IPowerTransformer.ts +7 -0
- package/src/interfaces/model/wires/IPowerTransformerEnd.ts +10 -0
- package/src/interfaces/model/wires/IProtectedSwitch.ts +4 -0
- package/src/interfaces/model/wires/IRegulatingCondEq.ts +4 -0
- package/src/interfaces/model/wires/ISwitch.ts +11 -0
- package/src/interfaces/model/wires/ITransformerEnd.ts +14 -0
- package/src/interfaces/observable/IObservable.ts +6 -0
- package/src/interfaces/observable/IObserver.ts +3 -0
- package/src/interfaces/persistence-interfaces.ts +12 -0
- package/src/interfaces/schema-settings/ShapeInfos.ts +28 -0
- package/src/model/assetinfo/AssetInfo.ts +13 -0
- package/src/model/assetinfo/CableInfo.ts +8 -0
- package/src/model/assetinfo/OverheadWireInfo.ts +8 -0
- package/src/model/assetinfo/PowerTransformer2WInfo.ts +13 -0
- package/src/model/assetinfo/PowerTransformer3WInfo.ts +18 -0
- package/src/model/assetinfo/PowerTransformerInfo.ts +14 -0
- package/src/model/assetinfo/TapChangerInfo.ts +60 -0
- package/src/model/assetinfo/TransformerEndInfo.ts +38 -0
- package/src/model/assetinfo/WireInfo.ts +22 -0
- package/src/model/assets/AggregateScore.ts +9 -0
- package/src/model/assets/AnalyticScore.ts +41 -0
- package/src/model/assets/Asset.ts +164 -0
- package/src/model/assets/AssetContainer.ts +11 -0
- package/src/model/assets/AssetDeployment.ts +122 -0
- package/src/model/assets/AssetHealthEvent.ts +73 -0
- package/src/model/assets/AssetOrganisationRole.ts +51 -0
- package/src/model/assets/AssetOwner.ts +54 -0
- package/src/model/assets/DeploymentDate.ts +20 -0
- package/src/model/assets/DeploymentStateKind.ts +7 -0
- package/src/model/assets/Facility.ts +107 -0
- package/src/model/assets/FacilityKind.ts +9 -0
- package/src/model/assets/HealthScore.ts +59 -0
- package/src/model/assets/LifecycleDate.ts +17 -0
- package/src/model/assets/RiskScore.ts +7 -0
- package/src/model/assets/TransformerApplicationKind.ts +6 -0
- package/src/model/common/ActivityRecord.ts +93 -0
- package/src/model/common/CoordinateSystem.ts +81 -0
- package/src/model/common/Document.ts +9 -0
- package/src/model/common/Location.ts +237 -0
- package/src/model/common/OrganisationRole.ts +7 -0
- package/src/model/common/PositionPoint.ts +121 -0
- package/src/model/common/Status.ts +11 -0
- package/src/model/core/ACDCTerminal.ts +63 -0
- package/src/model/core/BaseVoltage.ts +129 -0
- package/src/model/core/Bay.ts +178 -0
- package/src/model/core/ConductingEquipment.ts +182 -0
- package/src/model/core/ConnectivityNode.ts +417 -0
- package/src/model/core/ConnectivityNodeContainer.ts +26 -0
- package/src/model/core/Curve.ts +55 -0
- package/src/model/core/CurveData.ts +74 -0
- package/src/model/core/CurveStyle.ts +4 -0
- package/src/model/core/Equipment.ts +184 -0
- package/src/model/core/EquipmentContainer.ts +40 -0
- package/src/model/core/Feeder.ts +186 -0
- package/src/model/core/GeographicalRegion.ts +34 -0
- package/src/model/core/IdentifiedObject.ts +393 -0
- package/src/model/core/PSRType.ts +167 -0
- package/src/model/core/PhaseCode.ts +23 -0
- package/src/model/core/PowerSystemResource.ts +113 -0
- package/src/model/core/SubGeographicalRegion.ts +58 -0
- package/src/model/core/Substation.ts +284 -0
- package/src/model/core/Terminal.ts +413 -0
- package/src/model/core/VoltageLevel.ts +193 -0
- package/src/model/diagram/Diagram.ts +136 -0
- package/src/model/diagram/DiagramObject.ts +338 -0
- package/src/model/diagram/DiagramObjectPoint.ts +196 -0
- package/src/model/diagram/DiagramStyle.ts +32 -0
- package/src/model/diagram/OrientationKind.ts +4 -0
- package/src/model/domain/ActivePower.ts +14 -0
- package/src/model/domain/AngleDegrees.ts +14 -0
- package/src/model/domain/ApparentPower.ts +14 -0
- package/src/model/domain/Capacitance.ts +15 -0
- package/src/model/domain/CapacitancePerLength.ts +15 -0
- package/src/model/domain/ConductancePerLength.ts +14 -0
- package/src/model/domain/CurrentFlow.ts +14 -0
- package/src/model/domain/Reactance.ts +15 -0
- package/src/model/domain/ReactancePerLength.ts +14 -0
- package/src/model/domain/ReactivePower.ts +14 -0
- package/src/model/domain/Resistance.ts +14 -0
- package/src/model/domain/ResistancePerLength.ts +14 -0
- package/src/model/domain/UnitMultiplier.ts +13 -0
- package/src/model/domain/UnitSymbol.ts +30 -0
- package/src/model/domain/Voltage.ts +14 -0
- package/src/model/equivalents/EquivalentBranch.ts +203 -0
- package/src/model/equivalents/EquivalentEquipment.ts +8 -0
- package/src/model/extensions/amprion/core/AMPRIONBay.ts +106 -0
- package/src/model/extensions/amprion/core/AMPRIONConnectivityNode.ts +51 -0
- package/src/model/extensions/enervance/assets/EVImportanceScore.ts +58 -0
- package/src/model/extensions/enervance/core/EVTerminal.ts +63 -0
- package/src/model/extensions/enervance/operations/EVTerminalAction.ts +148 -0
- package/src/model/extensions/neplan-westnetz/assets/WNFacility.ts +122 -0
- package/src/model/extensions/neplan-westnetz/core/WNConnectivityNode.ts +344 -0
- package/src/model/extensions/neplan-westnetz/core/WNFeeder.ts +115 -0
- package/src/model/extensions/neplan-westnetz/faults/WNFaultConnectivityNode.ts +113 -0
- package/src/model/extensions/neplan-westnetz/operations/WNOutage.ts +111 -0
- package/src/model/extensions/neplan-westnetz/wires/WNEnergyConsumer.ts +451 -0
- package/src/model/faults/EquipmentFault.ts +9 -0
- package/src/model/faults/Fault.ts +41 -0
- package/src/model/faults/LineFault.ts +10 -0
- package/src/model/generation/FossilFuel.ts +53 -0
- package/src/model/generation/FuelType.ts +8 -0
- package/src/model/generation/GeneratingUnit.ts +157 -0
- package/src/model/generation/GeneratorControlSource.ts +6 -0
- package/src/model/generation/HydroEnergyConversionKind.ts +4 -0
- package/src/model/generation/HydroGeneratingUnit.ts +14 -0
- package/src/model/generation/HydroPlantStorageKind.ts +5 -0
- package/src/model/generation/HydroPowerPlant.ts +13 -0
- package/src/model/generation/HydroPump.ts +13 -0
- package/src/model/generation/NuclearGeneratingUnit.ts +8 -0
- package/src/model/generation/SolarGeneratingUnit.ts +8 -0
- package/src/model/generation/ThermalGeneratingUnit.ts +42 -0
- package/src/model/generation/WindGenUnitKind.ts +4 -0
- package/src/model/generation/WindGeneratingUnit.ts +11 -0
- package/src/model/loadmodel/ConformLoad.ts +34 -0
- package/src/model/model/Model.ts +1129 -0
- package/src/model/operationallimits/CurrentLimit.ts +92 -0
- package/src/model/operationallimits/ENTSOEOperationalLimitType.ts +5 -0
- package/src/model/operationallimits/LimitTypeKind.ts +9 -0
- package/src/model/operationallimits/OperationalLimit.ts +68 -0
- package/src/model/operationallimits/OperationalLimitDirectionKind.ts +5 -0
- package/src/model/operationallimits/OperationalLimitSet.ts +124 -0
- package/src/model/operationallimits/OperationalLimitType.ts +94 -0
- package/src/model/operations/Outage.ts +68 -0
- package/src/model/operations/SwitchAction.ts +12 -0
- package/src/model/operations/SwitchActionKind.ts +6 -0
- package/src/model/operations/SwitchingAction.ts +43 -0
- package/src/model/operations/SwitchingPlan.ts +141 -0
- package/src/model/operations/UnplannedOutage.ts +9 -0
- package/src/model/statevariables/StateVariable.ts +28 -0
- package/src/model/statevariables/SvPowerFlow.ts +75 -0
- package/src/model/statevariables/SvStatus.ts +51 -0
- package/src/model/statevariables/SvTapStep.ts +54 -0
- package/src/model/statevariables/SvVoltage.ts +74 -0
- package/src/model/topology/TopologicalIsland.ts +57 -0
- package/src/model/topology/TopologicalNode.ts +203 -0
- package/src/model/wires/ACLineSegment.ts +293 -0
- package/src/model/wires/AsynchronousMachine.ts +56 -0
- package/src/model/wires/AsynchronousMachineKind.ts +5 -0
- package/src/model/wires/Breaker.ts +82 -0
- package/src/model/wires/BusbarSection.ts +70 -0
- package/src/model/wires/Clamp.ts +33 -0
- package/src/model/wires/CompositeSwitch.ts +13 -0
- package/src/model/wires/Conductor.ts +55 -0
- package/src/model/wires/Connector.ts +16 -0
- package/src/model/wires/Cut.ts +7 -0
- package/src/model/wires/Disconnector.ts +120 -0
- package/src/model/wires/EarthFaultCompensator.ts +20 -0
- package/src/model/wires/EnergyConsumer.ts +255 -0
- package/src/model/wires/EnergySource.ts +303 -0
- package/src/model/wires/ExternalNetworkInjection.ts +276 -0
- package/src/model/wires/Ground.ts +40 -0
- package/src/model/wires/GroundDisconnector.ts +39 -0
- package/src/model/wires/Jumper.ts +8 -0
- package/src/model/wires/Junction.ts +57 -0
- package/src/model/wires/Line.ts +117 -0
- package/src/model/wires/LoadBreakSwitch.ts +107 -0
- package/src/model/wires/PetersenCoil.ts +90 -0
- package/src/model/wires/PetersenCoilModeKind.ts +5 -0
- package/src/model/wires/Plant.ts +12 -0
- package/src/model/wires/PowerTransformer.ts +231 -0
- package/src/model/wires/PowerTransformerEnd.ts +168 -0
- package/src/model/wires/ProtectedSwitch.ts +9 -0
- package/src/model/wires/RatioTapChanger.ts +96 -0
- package/src/model/wires/RatioTapChangerTable.ts +35 -0
- package/src/model/wires/RatioTapChangerTablePoint.ts +45 -0
- package/src/model/wires/ReactiveCapabilityCurve.ts +35 -0
- package/src/model/wires/Recloser.ts +32 -0
- package/src/model/wires/RegulatingCondEq.ts +67 -0
- package/src/model/wires/RegulatingControl.ts +217 -0
- package/src/model/wires/RegulatingControlModeKind.ts +11 -0
- package/src/model/wires/RotatingMachine.ts +172 -0
- package/src/model/wires/SeriesCompensator.ts +40 -0
- package/src/model/wires/ShortCircuitRotorKind.ts +6 -0
- package/src/model/wires/Switch.ts +223 -0
- package/src/model/wires/SynchronousMachine.ts +267 -0
- package/src/model/wires/SynchronousMachineKind.ts +9 -0
- package/src/model/wires/SynchronousMachineOperatingMode.ts +5 -0
- package/src/model/wires/TapChanger.ts +55 -0
- package/src/model/wires/TapChangerControl.ts +32 -0
- package/src/model/wires/TapChangerTablePoint.ts +41 -0
- package/src/model/wires/TransformerControlMode.ts +4 -0
- package/src/model/wires/TransformerEnd.ts +143 -0
- package/src/model/wires/WindingConnection.ts +9 -0
- package/src/package.json +16 -0
- package/src/util/datatype-converter.ts +48 -0
- package/src/util/sparql/sparql-building-block.ts +43 -0
- package/src/util/sparql/sparql-utils.ts +150 -0
- package/src/util/util-create.ts +146 -0
- package/src/util/util-search.ts +40 -0
- package/src/util/util-topology.ts +164 -0
- package/src/util/utils.ts +255 -0
- package/src/util/xml/utils.parser.ts +29 -0
- package/src/util/xml/xml.parser.ts +107 -0
- package/src/util/xml/xml.serializer.ts +245 -0
- package/test/apache-jena-fuseki-interface/apache-jena-fuseki-neplan.tests.spec.ts +864 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/LICENSE +617 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/NOTICE +216 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/README +62 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-delete +725 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-get +725 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-head +725 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-post +725 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-put +725 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-query +725 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-update +725 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-update-form +725 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/soh +725 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki +512 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki-backup +34 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki-server +95 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki-server.bat +28 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki-server.jar +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki.service +59 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki.war +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/config.ttl +30 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/configuration/test.ttl +50 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/shiro.ini +38 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GOSP.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GOSP.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GPOS.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GPOS.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GSPO.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GSPO.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/OSP.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/OSP.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/OSPG.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/OSPG.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/POS.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/POS.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/POSG.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/POSG.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/SPO.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/SPO.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/SPOG.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/SPOG.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/journal.jrnl +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/node2id.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/node2id.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/nodes.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/prefix2id.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/prefix2id.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/prefixIdx.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/prefixIdx.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/prefixes.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/tdb.cfg +32 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/tdb.lock +1 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-mem +27 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-service +23 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb +31 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb-dir +30 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb-mem +30 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb2 +31 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb2-dir +30 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb2-mem +30 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/WEB-INF/web.xml +332 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/admin-logs.html +73 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/bootstrap-select.min.css +7 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/bootstrap-theme.css.map +1 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/bootstrap-theme.min.css +7 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/bootstrap.css.map +1 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/bootstrap.min.css +7 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/codemirror.css +301 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/codemirror.min.css +1 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/font-awesome.min.css +4 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/fui.css +191 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/jquery.dataTables.css +220 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/jquery.fileupload-noscript.css +22 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/jquery.fileupload-ui-noscript.css +17 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/jquery.fileupload-ui.css +57 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/jquery.fileupload.css +36 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/pivot.min.css +1 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/qonsole.css +172 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/yasqe.min.css +1 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/yasr.min.css +1 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/dataset.html +247 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/documentation.html +83 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/FontAwesome.otf +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/fontawesome-webfont.eot +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/fontawesome-webfont.svg +504 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/fontawesome-webfont.ttf +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/fontawesome-webfont.woff +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/glyphicons-halflings-regular.eot +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/glyphicons-halflings-regular.svg +229 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/glyphicons-halflings-regular.woff +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/back_disabled.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/back_enabled.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/back_enabled_hover.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/favicon.ico +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/forward_disabled.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/forward_enabled.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/forward_enabled_hover.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/jena-logo-notext-small.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/sort_asc.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/sort_asc_disabled.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/sort_both.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/sort_desc.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/sort_desc_disabled.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/wait30.gif +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/index.html +101 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/dataset-controller.js +69 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/index-controller.js +50 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/manage-controller.js +39 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/query-controller.js +72 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/upload-controller.js +42 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/validation-controller.js +38 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/fui.js +33 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/main.dataset.js +31 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/main.index.js +24 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/main.manage.js +27 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/main.validation.js +24 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/models/dataset-stats.js +102 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/models/dataset.js +262 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/models/fuseki-server.js +180 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/models/task.js +105 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/models/validation-options.js +85 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/qonsole-config.js +27 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/services/ping-service.js +54 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/services/validation-service.js +98 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-edit.tpl +58 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-info.tpl +40 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-management.tpl +62 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-selection-list.tpl +22 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-selector.tpl +15 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-simple-create.tpl +85 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-stats.tpl +14 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/file-upload.tpl +46 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/uploadable-file.tpl +23 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/util/page-utils.js +33 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-edit.js +205 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-info.js +76 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-management.js +173 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-selection-list.js +58 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-selector.js +84 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-simple-create.js +102 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-stats.js +41 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/datasets-dropdown-list.js +43 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/file-upload.js +225 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/tabbed-view-manager.js +63 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/uploadable-file.js +39 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/validation-options.js +54 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/common-config.js +94 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/addon/fold/brace-fold.js +105 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/addon/fold/comment-fold.js +57 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/addon/fold/foldcode.js +145 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/addon/fold/foldgutter.js +134 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/addon/fold/xml-fold.js +181 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/backbone-min.js +2 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/backbone.js +1581 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/backbone.marionette.js +2385 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/bootstrap-select.min.js +8 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/bootstrap.min.js +6 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/html5shiv.js +8 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery-1.10.2.js +9789 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery-1.10.2.min.js +6 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery-ui.min.js +7 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.dataTables.min.js +157 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.fileupload.js +1426 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.fileupload.local.js +1428 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.form.js +1278 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.iframe-transport.js +214 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.ui.widget.js +530 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.xdomainrequest.js +90 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/lib/codemirror.js +7638 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/mode/javascript/javascript.js +683 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/mode/sparql/sparql.js +160 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/mode/turtle/turtle.js +160 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/mode/xml/xml.js +384 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/pivot.js +1363 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/pivot.min.js +2 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/pivot.min.js.map +1 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/plugins/text.js +386 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/qonsole.js +577 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/refresh.sh +21 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/require.js +2076 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/require.min.js +36 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/respond.min.js +6 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/sprintf-0.7-beta1.js +183 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/underscore.js +1276 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/yasqe.min.js +9 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/yasqe.min.js.map +1 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/yasr.min.js +8 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/yasr.min.js.map +1 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/manage.html +110 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/services.html +76 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/test/test-fuseki-config.ttl +27 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/validate.html +147 -0
- package/test/apache-jena-fuseki-interface/data/json/PersistData.json +111 -0
- package/test/apache-jena-fuseki-interface/data/xml/AssetHealthEvent.xml +45 -0
- package/test/apache-jena-fuseki-interface/data/xml/AssetOwner.xml +11 -0
- package/test/apache-jena-fuseki-interface/data/xml/Outages.xml +69 -0
- package/test/apache-jena-fuseki-interface/data/xml/PsrType.xml +80 -0
- package/test/apache-jena-fuseki-interface/data/xml/neplan-eslohe/Eslohe_Rootnet_Area_1_EQ_V1.xml +15755 -0
- package/test/apache-jena-fuseki-interface/data/xml/neplan-eslohe/Eslohe_Rootnet_Area_1_EQ_V1_feeder_ext.xml +54 -0
- package/test/apache-jena-fuseki-interface/data/xml/neplan-eslohe/Eslohe_Rootnet_Area_1_SSH_V1.xml +2796 -0
- package/test/apache-jena-fuseki-interface/data/xml-rdf-data.xml +84 -0
- package/test/cim-xml-rdf-parser/cim-xml-rdf-parser.tests.spec.ts +23 -0
- package/test/cim-xml-rdf-parser/data/rdfxml_serialisation.xml +192 -0
- package/test/integral7-converter/integral7-converter.tests.spec.ts +185 -0
- package/test/power-system-data-model-converter/data/fixed_feed_in_input.csv +72 -0
- package/test/power-system-data-model-converter/data/line_input.csv +1910 -0
- package/test/power-system-data-model-converter/data/line_type_input.csv +5 -0
- package/test/power-system-data-model-converter/data/load_input.csv +1829 -0
- package/test/power-system-data-model-converter/data/node_input.csv +2835 -0
- package/test/power-system-data-model-converter/data/time_series_mapping.csv +878 -0
- package/test/power-system-data-model-converter/data/transformer_2_w_input.csv +1047 -0
- package/test/power-system-data-model-converter/data/transformer_2_w_type_input.csv +5 -0
- package/test/power-system-data-model-converter/power-system-data-model-converter.tests.spec.ts +310 -0
- package/tsconfig.json +24 -0
- package/webpack.config.js +24 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
|
3
|
+
|
|
4
|
+
(function(mod) {
|
|
5
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
|
6
|
+
mod(require("../../lib/codemirror"));
|
|
7
|
+
else if (typeof define == "function" && define.amd) // AMD
|
|
8
|
+
define(["../../lib/codemirror"], mod);
|
|
9
|
+
else // Plain browser env
|
|
10
|
+
mod(CodeMirror);
|
|
11
|
+
})(function(CodeMirror) {
|
|
12
|
+
"use strict";
|
|
13
|
+
|
|
14
|
+
CodeMirror.registerGlobalHelper("fold", "comment", function(mode) {
|
|
15
|
+
return mode.blockCommentStart && mode.blockCommentEnd;
|
|
16
|
+
}, function(cm, start) {
|
|
17
|
+
var mode = cm.getModeAt(start), startToken = mode.blockCommentStart, endToken = mode.blockCommentEnd;
|
|
18
|
+
if (!startToken || !endToken) return;
|
|
19
|
+
var line = start.line, lineText = cm.getLine(line);
|
|
20
|
+
|
|
21
|
+
var startCh;
|
|
22
|
+
for (var at = start.ch, pass = 0;;) {
|
|
23
|
+
var found = at <= 0 ? -1 : lineText.lastIndexOf(startToken, at - 1);
|
|
24
|
+
if (found == -1) {
|
|
25
|
+
if (pass == 1) return;
|
|
26
|
+
pass = 1;
|
|
27
|
+
at = lineText.length;
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
if (pass == 1 && found < start.ch) return;
|
|
31
|
+
if (/comment/.test(cm.getTokenTypeAt(CodeMirror.Pos(line, found + 1)))) {
|
|
32
|
+
startCh = found + startToken.length;
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
at = found - 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
var depth = 1, lastLine = cm.lastLine(), end, endCh;
|
|
39
|
+
outer: for (var i = line; i <= lastLine; ++i) {
|
|
40
|
+
var text = cm.getLine(i), pos = i == line ? startCh : 0;
|
|
41
|
+
for (;;) {
|
|
42
|
+
var nextOpen = text.indexOf(startToken, pos), nextClose = text.indexOf(endToken, pos);
|
|
43
|
+
if (nextOpen < 0) nextOpen = text.length;
|
|
44
|
+
if (nextClose < 0) nextClose = text.length;
|
|
45
|
+
pos = Math.min(nextOpen, nextClose);
|
|
46
|
+
if (pos == text.length) break;
|
|
47
|
+
if (pos == nextOpen) ++depth;
|
|
48
|
+
else if (!--depth) { end = i; endCh = pos; break outer; }
|
|
49
|
+
++pos;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
if (end == null || line == end && endCh == startCh) return;
|
|
53
|
+
return {from: CodeMirror.Pos(line, startCh),
|
|
54
|
+
to: CodeMirror.Pos(end, endCh)};
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
});
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
|
3
|
+
|
|
4
|
+
(function(mod) {
|
|
5
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
|
6
|
+
mod(require("../../lib/codemirror"));
|
|
7
|
+
else if (typeof define == "function" && define.amd) // AMD
|
|
8
|
+
define(["../../lib/codemirror"], mod);
|
|
9
|
+
else // Plain browser env
|
|
10
|
+
mod(CodeMirror);
|
|
11
|
+
})(function(CodeMirror) {
|
|
12
|
+
"use strict";
|
|
13
|
+
|
|
14
|
+
function doFold(cm, pos, options, force) {
|
|
15
|
+
if (options && options.call) {
|
|
16
|
+
var finder = options;
|
|
17
|
+
options = null;
|
|
18
|
+
} else {
|
|
19
|
+
var finder = getOption(cm, options, "rangeFinder");
|
|
20
|
+
}
|
|
21
|
+
if (typeof pos == "number") pos = CodeMirror.Pos(pos, 0);
|
|
22
|
+
var minSize = getOption(cm, options, "minFoldSize");
|
|
23
|
+
|
|
24
|
+
function getRange(allowFolded) {
|
|
25
|
+
var range = finder(cm, pos);
|
|
26
|
+
if (!range || range.to.line - range.from.line < minSize) return null;
|
|
27
|
+
var marks = cm.findMarksAt(range.from);
|
|
28
|
+
for (var i = 0; i < marks.length; ++i) {
|
|
29
|
+
if (marks[i].__isFold && force !== "fold") {
|
|
30
|
+
if (!allowFolded) return null;
|
|
31
|
+
range.cleared = true;
|
|
32
|
+
marks[i].clear();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return range;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
var range = getRange(true);
|
|
39
|
+
if (getOption(cm, options, "scanUp")) while (!range && pos.line > cm.firstLine()) {
|
|
40
|
+
pos = CodeMirror.Pos(pos.line - 1, 0);
|
|
41
|
+
range = getRange(false);
|
|
42
|
+
}
|
|
43
|
+
if (!range || range.cleared || force === "unfold") return;
|
|
44
|
+
|
|
45
|
+
var myWidget = makeWidget(cm, options);
|
|
46
|
+
CodeMirror.on(myWidget, "mousedown", function(e) {
|
|
47
|
+
myRange.clear();
|
|
48
|
+
CodeMirror.e_preventDefault(e);
|
|
49
|
+
});
|
|
50
|
+
var myRange = cm.markText(range.from, range.to, {
|
|
51
|
+
replacedWith: myWidget,
|
|
52
|
+
clearOnEnter: true,
|
|
53
|
+
__isFold: true
|
|
54
|
+
});
|
|
55
|
+
myRange.on("clear", function(from, to) {
|
|
56
|
+
CodeMirror.signal(cm, "unfold", cm, from, to);
|
|
57
|
+
});
|
|
58
|
+
CodeMirror.signal(cm, "fold", cm, range.from, range.to);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function makeWidget(cm, options) {
|
|
62
|
+
var widget = getOption(cm, options, "widget");
|
|
63
|
+
if (typeof widget == "string") {
|
|
64
|
+
var text = document.createTextNode(widget);
|
|
65
|
+
widget = document.createElement("span");
|
|
66
|
+
widget.appendChild(text);
|
|
67
|
+
widget.className = "CodeMirror-foldmarker";
|
|
68
|
+
}
|
|
69
|
+
return widget;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Clumsy backwards-compatible interface
|
|
73
|
+
CodeMirror.newFoldFunction = function(rangeFinder, widget) {
|
|
74
|
+
return function(cm, pos) { doFold(cm, pos, {rangeFinder: rangeFinder, widget: widget}); };
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// New-style interface
|
|
78
|
+
CodeMirror.defineExtension("foldCode", function(pos, options, force) {
|
|
79
|
+
doFold(this, pos, options, force);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
CodeMirror.defineExtension("isFolded", function(pos) {
|
|
83
|
+
var marks = this.findMarksAt(pos);
|
|
84
|
+
for (var i = 0; i < marks.length; ++i)
|
|
85
|
+
if (marks[i].__isFold) return true;
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
CodeMirror.commands.toggleFold = function(cm) {
|
|
89
|
+
cm.foldCode(cm.getCursor());
|
|
90
|
+
};
|
|
91
|
+
CodeMirror.commands.fold = function(cm) {
|
|
92
|
+
cm.foldCode(cm.getCursor(), null, "fold");
|
|
93
|
+
};
|
|
94
|
+
CodeMirror.commands.unfold = function(cm) {
|
|
95
|
+
cm.foldCode(cm.getCursor(), null, "unfold");
|
|
96
|
+
};
|
|
97
|
+
CodeMirror.commands.foldAll = function(cm) {
|
|
98
|
+
cm.operation(function() {
|
|
99
|
+
for (var i = cm.firstLine(), e = cm.lastLine(); i <= e; i++)
|
|
100
|
+
cm.foldCode(CodeMirror.Pos(i, 0), null, "fold");
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
CodeMirror.commands.unfoldAll = function(cm) {
|
|
104
|
+
cm.operation(function() {
|
|
105
|
+
for (var i = cm.firstLine(), e = cm.lastLine(); i <= e; i++)
|
|
106
|
+
cm.foldCode(CodeMirror.Pos(i, 0), null, "unfold");
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
CodeMirror.registerHelper("fold", "combine", function() {
|
|
111
|
+
var funcs = Array.prototype.slice.call(arguments, 0);
|
|
112
|
+
return function(cm, start) {
|
|
113
|
+
for (var i = 0; i < funcs.length; ++i) {
|
|
114
|
+
var found = funcs[i](cm, start);
|
|
115
|
+
if (found) return found;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
CodeMirror.registerHelper("fold", "auto", function(cm, start) {
|
|
121
|
+
var helpers = cm.getHelpers(start, "fold");
|
|
122
|
+
for (var i = 0; i < helpers.length; i++) {
|
|
123
|
+
var cur = helpers[i](cm, start);
|
|
124
|
+
if (cur) return cur;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
var defaultOptions = {
|
|
129
|
+
rangeFinder: CodeMirror.fold.auto,
|
|
130
|
+
widget: "\u2194",
|
|
131
|
+
minFoldSize: 0,
|
|
132
|
+
scanUp: false
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
CodeMirror.defineOption("foldOptions", null);
|
|
136
|
+
|
|
137
|
+
function getOption(cm, options, name) {
|
|
138
|
+
if (options && options[name] !== undefined)
|
|
139
|
+
return options[name];
|
|
140
|
+
var editorOptions = cm.options.foldOptions;
|
|
141
|
+
if (editorOptions && editorOptions[name] !== undefined)
|
|
142
|
+
return editorOptions[name];
|
|
143
|
+
return defaultOptions[name];
|
|
144
|
+
}
|
|
145
|
+
});
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
|
3
|
+
|
|
4
|
+
(function(mod) {
|
|
5
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
|
6
|
+
mod(require("../../lib/codemirror"), require("./foldcode"));
|
|
7
|
+
else if (typeof define == "function" && define.amd) // AMD
|
|
8
|
+
define(["../../lib/codemirror", "./foldcode"], mod);
|
|
9
|
+
else // Plain browser env
|
|
10
|
+
mod(CodeMirror);
|
|
11
|
+
})(function(CodeMirror) {
|
|
12
|
+
"use strict";
|
|
13
|
+
|
|
14
|
+
CodeMirror.defineOption("foldGutter", false, function(cm, val, old) {
|
|
15
|
+
if (old && old != CodeMirror.Init) {
|
|
16
|
+
cm.clearGutter(cm.state.foldGutter.options.gutter);
|
|
17
|
+
cm.state.foldGutter = null;
|
|
18
|
+
cm.off("gutterClick", onGutterClick);
|
|
19
|
+
cm.off("change", onChange);
|
|
20
|
+
cm.off("viewportChange", onViewportChange);
|
|
21
|
+
cm.off("fold", onFold);
|
|
22
|
+
cm.off("unfold", onFold);
|
|
23
|
+
cm.off("swapDoc", updateInViewport);
|
|
24
|
+
}
|
|
25
|
+
if (val) {
|
|
26
|
+
cm.state.foldGutter = new State(parseOptions(val));
|
|
27
|
+
updateInViewport(cm);
|
|
28
|
+
cm.on("gutterClick", onGutterClick);
|
|
29
|
+
cm.on("change", onChange);
|
|
30
|
+
cm.on("viewportChange", onViewportChange);
|
|
31
|
+
cm.on("fold", onFold);
|
|
32
|
+
cm.on("unfold", onFold);
|
|
33
|
+
cm.on("swapDoc", updateInViewport);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
var Pos = CodeMirror.Pos;
|
|
38
|
+
|
|
39
|
+
function State(options) {
|
|
40
|
+
this.options = options;
|
|
41
|
+
this.from = this.to = 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function parseOptions(opts) {
|
|
45
|
+
if (opts === true) opts = {};
|
|
46
|
+
if (opts.gutter == null) opts.gutter = "CodeMirror-foldgutter";
|
|
47
|
+
if (opts.indicatorOpen == null) opts.indicatorOpen = "CodeMirror-foldgutter-open";
|
|
48
|
+
if (opts.indicatorFolded == null) opts.indicatorFolded = "CodeMirror-foldgutter-folded";
|
|
49
|
+
return opts;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function isFolded(cm, line) {
|
|
53
|
+
var marks = cm.findMarksAt(Pos(line));
|
|
54
|
+
for (var i = 0; i < marks.length; ++i)
|
|
55
|
+
if (marks[i].__isFold && marks[i].find().from.line == line) return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function marker(spec) {
|
|
59
|
+
if (typeof spec == "string") {
|
|
60
|
+
var elt = document.createElement("div");
|
|
61
|
+
elt.className = spec + " CodeMirror-guttermarker-subtle";
|
|
62
|
+
return elt;
|
|
63
|
+
} else {
|
|
64
|
+
return spec.cloneNode(true);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function updateFoldInfo(cm, from, to) {
|
|
69
|
+
var opts = cm.state.foldGutter.options, cur = from;
|
|
70
|
+
cm.eachLine(from, to, function(line) {
|
|
71
|
+
var mark = null;
|
|
72
|
+
if (isFolded(cm, cur)) {
|
|
73
|
+
mark = marker(opts.indicatorFolded);
|
|
74
|
+
} else {
|
|
75
|
+
var pos = Pos(cur, 0), func = opts.rangeFinder || CodeMirror.fold.auto;
|
|
76
|
+
var range = func && func(cm, pos);
|
|
77
|
+
if (range && range.from.line + 1 < range.to.line)
|
|
78
|
+
mark = marker(opts.indicatorOpen);
|
|
79
|
+
}
|
|
80
|
+
cm.setGutterMarker(line, opts.gutter, mark);
|
|
81
|
+
++cur;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function updateInViewport(cm) {
|
|
86
|
+
var vp = cm.getViewport(), state = cm.state.foldGutter;
|
|
87
|
+
if (!state) return;
|
|
88
|
+
cm.operation(function() {
|
|
89
|
+
updateFoldInfo(cm, vp.from, vp.to);
|
|
90
|
+
});
|
|
91
|
+
state.from = vp.from; state.to = vp.to;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function onGutterClick(cm, line, gutter) {
|
|
95
|
+
var opts = cm.state.foldGutter.options;
|
|
96
|
+
if (gutter != opts.gutter) return;
|
|
97
|
+
cm.foldCode(Pos(line, 0), opts.rangeFinder);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function onChange(cm) {
|
|
101
|
+
var state = cm.state.foldGutter, opts = cm.state.foldGutter.options;
|
|
102
|
+
state.from = state.to = 0;
|
|
103
|
+
clearTimeout(state.changeUpdate);
|
|
104
|
+
state.changeUpdate = setTimeout(function() { updateInViewport(cm); }, opts.foldOnChangeTimeSpan || 600);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function onViewportChange(cm) {
|
|
108
|
+
var state = cm.state.foldGutter, opts = cm.state.foldGutter.options;
|
|
109
|
+
clearTimeout(state.changeUpdate);
|
|
110
|
+
state.changeUpdate = setTimeout(function() {
|
|
111
|
+
var vp = cm.getViewport();
|
|
112
|
+
if (state.from == state.to || vp.from - state.to > 20 || state.from - vp.to > 20) {
|
|
113
|
+
updateInViewport(cm);
|
|
114
|
+
} else {
|
|
115
|
+
cm.operation(function() {
|
|
116
|
+
if (vp.from < state.from) {
|
|
117
|
+
updateFoldInfo(cm, vp.from, state.from);
|
|
118
|
+
state.from = vp.from;
|
|
119
|
+
}
|
|
120
|
+
if (vp.to > state.to) {
|
|
121
|
+
updateFoldInfo(cm, state.to, vp.to);
|
|
122
|
+
state.to = vp.to;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}, opts.updateViewportTimeSpan || 400);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function onFold(cm, from) {
|
|
130
|
+
var state = cm.state.foldGutter, line = from.line;
|
|
131
|
+
if (line >= state.from && line < state.to)
|
|
132
|
+
updateFoldInfo(cm, line, line + 1);
|
|
133
|
+
}
|
|
134
|
+
});
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
|
3
|
+
|
|
4
|
+
(function(mod) {
|
|
5
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
|
6
|
+
mod(require("../../lib/codemirror"));
|
|
7
|
+
else if (typeof define == "function" && define.amd) // AMD
|
|
8
|
+
define(["../../lib/codemirror"], mod);
|
|
9
|
+
else // Plain browser env
|
|
10
|
+
mod(CodeMirror);
|
|
11
|
+
})(function(CodeMirror) {
|
|
12
|
+
"use strict";
|
|
13
|
+
|
|
14
|
+
var Pos = CodeMirror.Pos;
|
|
15
|
+
function cmp(a, b) { return a.line - b.line || a.ch - b.ch; }
|
|
16
|
+
|
|
17
|
+
var nameStartChar = "A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
|
|
18
|
+
var nameChar = nameStartChar + "\-\:\.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
|
|
19
|
+
var xmlTagStart = new RegExp("<(/?)([" + nameStartChar + "][" + nameChar + "]*)", "g");
|
|
20
|
+
|
|
21
|
+
function Iter(cm, line, ch, range) {
|
|
22
|
+
this.line = line; this.ch = ch;
|
|
23
|
+
this.cm = cm; this.text = cm.getLine(line);
|
|
24
|
+
this.min = range ? range.from : cm.firstLine();
|
|
25
|
+
this.max = range ? range.to - 1 : cm.lastLine();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function tagAt(iter, ch) {
|
|
29
|
+
var type = iter.cm.getTokenTypeAt(Pos(iter.line, ch));
|
|
30
|
+
return type && /\btag\b/.test(type);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function nextLine(iter) {
|
|
34
|
+
if (iter.line >= iter.max) return;
|
|
35
|
+
iter.ch = 0;
|
|
36
|
+
iter.text = iter.cm.getLine(++iter.line);
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function prevLine(iter) {
|
|
40
|
+
if (iter.line <= iter.min) return;
|
|
41
|
+
iter.text = iter.cm.getLine(--iter.line);
|
|
42
|
+
iter.ch = iter.text.length;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function toTagEnd(iter) {
|
|
47
|
+
for (;;) {
|
|
48
|
+
var gt = iter.text.indexOf(">", iter.ch);
|
|
49
|
+
if (gt == -1) { if (nextLine(iter)) continue; else return; }
|
|
50
|
+
if (!tagAt(iter, gt + 1)) { iter.ch = gt + 1; continue; }
|
|
51
|
+
var lastSlash = iter.text.lastIndexOf("/", gt);
|
|
52
|
+
var selfClose = lastSlash > -1 && !/\S/.test(iter.text.slice(lastSlash + 1, gt));
|
|
53
|
+
iter.ch = gt + 1;
|
|
54
|
+
return selfClose ? "selfClose" : "regular";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function toTagStart(iter) {
|
|
58
|
+
for (;;) {
|
|
59
|
+
var lt = iter.ch ? iter.text.lastIndexOf("<", iter.ch - 1) : -1;
|
|
60
|
+
if (lt == -1) { if (prevLine(iter)) continue; else return; }
|
|
61
|
+
if (!tagAt(iter, lt + 1)) { iter.ch = lt; continue; }
|
|
62
|
+
xmlTagStart.lastIndex = lt;
|
|
63
|
+
iter.ch = lt;
|
|
64
|
+
var match = xmlTagStart.exec(iter.text);
|
|
65
|
+
if (match && match.index == lt) return match;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function toNextTag(iter) {
|
|
70
|
+
for (;;) {
|
|
71
|
+
xmlTagStart.lastIndex = iter.ch;
|
|
72
|
+
var found = xmlTagStart.exec(iter.text);
|
|
73
|
+
if (!found) { if (nextLine(iter)) continue; else return; }
|
|
74
|
+
if (!tagAt(iter, found.index + 1)) { iter.ch = found.index + 1; continue; }
|
|
75
|
+
iter.ch = found.index + found[0].length;
|
|
76
|
+
return found;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function toPrevTag(iter) {
|
|
80
|
+
for (;;) {
|
|
81
|
+
var gt = iter.ch ? iter.text.lastIndexOf(">", iter.ch - 1) : -1;
|
|
82
|
+
if (gt == -1) { if (prevLine(iter)) continue; else return; }
|
|
83
|
+
if (!tagAt(iter, gt + 1)) { iter.ch = gt; continue; }
|
|
84
|
+
var lastSlash = iter.text.lastIndexOf("/", gt);
|
|
85
|
+
var selfClose = lastSlash > -1 && !/\S/.test(iter.text.slice(lastSlash + 1, gt));
|
|
86
|
+
iter.ch = gt + 1;
|
|
87
|
+
return selfClose ? "selfClose" : "regular";
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function findMatchingClose(iter, tag) {
|
|
92
|
+
var stack = [];
|
|
93
|
+
for (;;) {
|
|
94
|
+
var next = toNextTag(iter), end, startLine = iter.line, startCh = iter.ch - (next ? next[0].length : 0);
|
|
95
|
+
if (!next || !(end = toTagEnd(iter))) return;
|
|
96
|
+
if (end == "selfClose") continue;
|
|
97
|
+
if (next[1]) { // closing tag
|
|
98
|
+
for (var i = stack.length - 1; i >= 0; --i) if (stack[i] == next[2]) {
|
|
99
|
+
stack.length = i;
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
if (i < 0 && (!tag || tag == next[2])) return {
|
|
103
|
+
tag: next[2],
|
|
104
|
+
from: Pos(startLine, startCh),
|
|
105
|
+
to: Pos(iter.line, iter.ch)
|
|
106
|
+
};
|
|
107
|
+
} else { // opening tag
|
|
108
|
+
stack.push(next[2]);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function findMatchingOpen(iter, tag) {
|
|
113
|
+
var stack = [];
|
|
114
|
+
for (;;) {
|
|
115
|
+
var prev = toPrevTag(iter);
|
|
116
|
+
if (!prev) return;
|
|
117
|
+
if (prev == "selfClose") { toTagStart(iter); continue; }
|
|
118
|
+
var endLine = iter.line, endCh = iter.ch;
|
|
119
|
+
var start = toTagStart(iter);
|
|
120
|
+
if (!start) return;
|
|
121
|
+
if (start[1]) { // closing tag
|
|
122
|
+
stack.push(start[2]);
|
|
123
|
+
} else { // opening tag
|
|
124
|
+
for (var i = stack.length - 1; i >= 0; --i) if (stack[i] == start[2]) {
|
|
125
|
+
stack.length = i;
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
if (i < 0 && (!tag || tag == start[2])) return {
|
|
129
|
+
tag: start[2],
|
|
130
|
+
from: Pos(iter.line, iter.ch),
|
|
131
|
+
to: Pos(endLine, endCh)
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
CodeMirror.registerHelper("fold", "xml", function(cm, start) {
|
|
138
|
+
var iter = new Iter(cm, start.line, 0);
|
|
139
|
+
for (;;) {
|
|
140
|
+
var openTag = toNextTag(iter), end;
|
|
141
|
+
if (!openTag || iter.line != start.line || !(end = toTagEnd(iter))) return;
|
|
142
|
+
if (!openTag[1] && end != "selfClose") {
|
|
143
|
+
var start = Pos(iter.line, iter.ch);
|
|
144
|
+
var close = findMatchingClose(iter, openTag[2]);
|
|
145
|
+
return close && {from: start, to: close.from};
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
CodeMirror.findMatchingTag = function(cm, pos, range) {
|
|
150
|
+
var iter = new Iter(cm, pos.line, pos.ch, range);
|
|
151
|
+
if (iter.text.indexOf(">") == -1 && iter.text.indexOf("<") == -1) return;
|
|
152
|
+
var end = toTagEnd(iter), to = end && Pos(iter.line, iter.ch);
|
|
153
|
+
var start = end && toTagStart(iter);
|
|
154
|
+
if (!end || end == "selfClose" || !start || cmp(iter, pos) > 0) return;
|
|
155
|
+
var here = {from: Pos(iter.line, iter.ch), to: to, tag: start[2]};
|
|
156
|
+
|
|
157
|
+
if (start[1]) { // closing tag
|
|
158
|
+
return {open: findMatchingOpen(iter, start[2]), close: here, at: "close"};
|
|
159
|
+
} else { // opening tag
|
|
160
|
+
iter = new Iter(cm, to.line, to.ch, range);
|
|
161
|
+
return {open: here, close: findMatchingClose(iter, start[2]), at: "open"};
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
CodeMirror.findEnclosingTag = function(cm, pos, range) {
|
|
166
|
+
var iter = new Iter(cm, pos.line, pos.ch, range);
|
|
167
|
+
for (;;) {
|
|
168
|
+
var open = findMatchingOpen(iter);
|
|
169
|
+
if (!open) break;
|
|
170
|
+
var forward = new Iter(cm, pos.line, pos.ch, range);
|
|
171
|
+
var close = findMatchingClose(forward, open.tag);
|
|
172
|
+
if (close) return {open: open, close: close};
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
// Used by addon/edit/closetag.js
|
|
177
|
+
CodeMirror.scanForClosingTag = function(cm, pos, name, end) {
|
|
178
|
+
var iter = new Iter(cm, pos.line, pos.ch, end ? {from: 0, to: end} : null);
|
|
179
|
+
return findMatchingClose(iter, name);
|
|
180
|
+
};
|
|
181
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(){var t=this;var e=t.Backbone;var i=[];var r=i.push;var s=i.slice;var n=i.splice;var a;if(typeof exports!=="undefined"){a=exports}else{a=t.Backbone={}}a.VERSION="1.1.0";var h=t._;if(!h&&typeof require!=="undefined")h=require("underscore");a.$=t.jQuery||t.Zepto||t.ender||t.$;a.noConflict=function(){t.Backbone=e;return this};a.emulateHTTP=false;a.emulateJSON=false;var o=a.Events={on:function(t,e,i){if(!l(this,"on",t,[e,i])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);r.push({callback:e,context:i,ctx:i||this});return this},once:function(t,e,i){if(!l(this,"once",t,[e,i])||!e)return this;var r=this;var s=h.once(function(){r.off(t,s);e.apply(this,arguments)});s._callback=e;return this.on(t,s,i)},off:function(t,e,i){var r,s,n,a,o,u,c,f;if(!this._events||!l(this,"off",t,[e,i]))return this;if(!t&&!e&&!i){this._events={};return this}a=t?[t]:h.keys(this._events);for(o=0,u=a.length;o<u;o++){t=a[o];if(n=this._events[t]){this._events[t]=r=[];if(e||i){for(c=0,f=n.length;c<f;c++){s=n[c];if(e&&e!==s.callback&&e!==s.callback._callback||i&&i!==s.context){r.push(s)}}}if(!r.length)delete this._events[t]}}return this},trigger:function(t){if(!this._events)return this;var e=s.call(arguments,1);if(!l(this,"trigger",t,e))return this;var i=this._events[t];var r=this._events.all;if(i)c(i,e);if(r)c(r,arguments);return this},stopListening:function(t,e,i){var r=this._listeningTo;if(!r)return this;var s=!e&&!i;if(!i&&typeof e==="object")i=this;if(t)(r={})[t._listenId]=t;for(var n in r){t=r[n];t.off(e,i,this);if(s||h.isEmpty(t._events))delete this._listeningTo[n]}return this}};var u=/\s+/;var l=function(t,e,i,r){if(!i)return true;if(typeof i==="object"){for(var s in i){t[e].apply(t,[s,i[s]].concat(r))}return false}if(u.test(i)){var n=i.split(u);for(var a=0,h=n.length;a<h;a++){t[e].apply(t,[n[a]].concat(r))}return false}return true};var c=function(t,e){var i,r=-1,s=t.length,n=e[0],a=e[1],h=e[2];switch(e.length){case 0:while(++r<s)(i=t[r]).callback.call(i.ctx);return;case 1:while(++r<s)(i=t[r]).callback.call(i.ctx,n);return;case 2:while(++r<s)(i=t[r]).callback.call(i.ctx,n,a);return;case 3:while(++r<s)(i=t[r]).callback.call(i.ctx,n,a,h);return;default:while(++r<s)(i=t[r]).callback.apply(i.ctx,e)}};var f={listenTo:"on",listenToOnce:"once"};h.each(f,function(t,e){o[e]=function(e,i,r){var s=this._listeningTo||(this._listeningTo={});var n=e._listenId||(e._listenId=h.uniqueId("l"));s[n]=e;if(!r&&typeof i==="object")r=this;e[t](i,r,this);return this}});o.bind=o.on;o.unbind=o.off;h.extend(a,o);var d=a.Model=function(t,e){var i=t||{};e||(e={});this.cid=h.uniqueId("c");this.attributes={};if(e.collection)this.collection=e.collection;if(e.parse)i=this.parse(i,e)||{};i=h.defaults({},i,h.result(this,"defaults"));this.set(i,e);this.changed={};this.initialize.apply(this,arguments)};h.extend(d.prototype,o,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return h.clone(this.attributes)},sync:function(){return a.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return h.escape(this.get(t))},has:function(t){return this.get(t)!=null},set:function(t,e,i){var r,s,n,a,o,u,l,c;if(t==null)return this;if(typeof t==="object"){s=t;i=e}else{(s={})[t]=e}i||(i={});if(!this._validate(s,i))return false;n=i.unset;o=i.silent;a=[];u=this._changing;this._changing=true;if(!u){this._previousAttributes=h.clone(this.attributes);this.changed={}}c=this.attributes,l=this._previousAttributes;if(this.idAttribute in s)this.id=s[this.idAttribute];for(r in s){e=s[r];if(!h.isEqual(c[r],e))a.push(r);if(!h.isEqual(l[r],e)){this.changed[r]=e}else{delete this.changed[r]}n?delete c[r]:c[r]=e}if(!o){if(a.length)this._pending=true;for(var f=0,d=a.length;f<d;f++){this.trigger("change:"+a[f],this,c[a[f]],i)}}if(u)return this;if(!o){while(this._pending){this._pending=false;this.trigger("change",this,i)}}this._pending=false;this._changing=false;return this},unset:function(t,e){return this.set(t,void 0,h.extend({},e,{unset:true}))},clear:function(t){var e={};for(var i in this.attributes)e[i]=void 0;return this.set(e,h.extend({},t,{unset:true}))},hasChanged:function(t){if(t==null)return!h.isEmpty(this.changed);return h.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?h.clone(this.changed):false;var e,i=false;var r=this._changing?this._previousAttributes:this.attributes;for(var s in t){if(h.isEqual(r[s],e=t[s]))continue;(i||(i={}))[s]=e}return i},previous:function(t){if(t==null||!this._previousAttributes)return null;return this._previousAttributes[t]},previousAttributes:function(){return h.clone(this._previousAttributes)},fetch:function(t){t=t?h.clone(t):{};if(t.parse===void 0)t.parse=true;var e=this;var i=t.success;t.success=function(r){if(!e.set(e.parse(r,t),t))return false;if(i)i(e,r,t);e.trigger("sync",e,r,t)};M(this,t);return this.sync("read",this,t)},save:function(t,e,i){var r,s,n,a=this.attributes;if(t==null||typeof t==="object"){r=t;i=e}else{(r={})[t]=e}i=h.extend({validate:true},i);if(r&&!i.wait){if(!this.set(r,i))return false}else{if(!this._validate(r,i))return false}if(r&&i.wait){this.attributes=h.extend({},a,r)}if(i.parse===void 0)i.parse=true;var o=this;var u=i.success;i.success=function(t){o.attributes=a;var e=o.parse(t,i);if(i.wait)e=h.extend(r||{},e);if(h.isObject(e)&&!o.set(e,i)){return false}if(u)u(o,t,i);o.trigger("sync",o,t,i)};M(this,i);s=this.isNew()?"create":i.patch?"patch":"update";if(s==="patch")i.attrs=r;n=this.sync(s,this,i);if(r&&i.wait)this.attributes=a;return n},destroy:function(t){t=t?h.clone(t):{};var e=this;var i=t.success;var r=function(){e.trigger("destroy",e,e.collection,t)};t.success=function(s){if(t.wait||e.isNew())r();if(i)i(e,s,t);if(!e.isNew())e.trigger("sync",e,s,t)};if(this.isNew()){t.success();return false}M(this,t);var s=this.sync("delete",this,t);if(!t.wait)r();return s},url:function(){var t=h.result(this,"urlRoot")||h.result(this.collection,"url")||U();if(this.isNew())return t;return t+(t.charAt(t.length-1)==="/"?"":"/")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return this.id==null},isValid:function(t){return this._validate({},h.extend(t||{},{validate:true}))},_validate:function(t,e){if(!e.validate||!this.validate)return true;t=h.extend({},this.attributes,t);var i=this.validationError=this.validate(t,e)||null;if(!i)return true;this.trigger("invalid",this,i,h.extend(e,{validationError:i}));return false}});var p=["keys","values","pairs","invert","pick","omit"];h.each(p,function(t){d.prototype[t]=function(){var e=s.call(arguments);e.unshift(this.attributes);return h[t].apply(h,e)}});var v=a.Collection=function(t,e){e||(e={});if(e.model)this.model=e.model;if(e.comparator!==void 0)this.comparator=e.comparator;this._reset();this.initialize.apply(this,arguments);if(t)this.reset(t,h.extend({silent:true},e))};var g={add:true,remove:true,merge:true};var m={add:true,remove:false};h.extend(v.prototype,o,{model:d,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return a.sync.apply(this,arguments)},add:function(t,e){return this.set(t,h.extend({merge:false},e,m))},remove:function(t,e){var i=!h.isArray(t);t=i?[t]:h.clone(t);e||(e={});var r,s,n,a;for(r=0,s=t.length;r<s;r++){a=t[r]=this.get(t[r]);if(!a)continue;delete this._byId[a.id];delete this._byId[a.cid];n=this.indexOf(a);this.models.splice(n,1);this.length--;if(!e.silent){e.index=n;a.trigger("remove",a,this,e)}this._removeReference(a)}return i?t[0]:t},set:function(t,e){e=h.defaults({},e,g);if(e.parse)t=this.parse(t,e);var i=!h.isArray(t);t=i?t?[t]:[]:h.clone(t);var r,s,n,a,o,u,l;var c=e.at;var f=this.model;var p=this.comparator&&c==null&&e.sort!==false;var v=h.isString(this.comparator)?this.comparator:null;var m=[],y=[],_={};var w=e.add,b=e.merge,x=e.remove;var E=!p&&w&&x?[]:false;for(r=0,s=t.length;r<s;r++){o=t[r];if(o instanceof d){n=a=o}else{n=o[f.prototype.idAttribute]}if(u=this.get(n)){if(x)_[u.cid]=true;if(b){o=o===a?a.attributes:o;if(e.parse)o=u.parse(o,e);u.set(o,e);if(p&&!l&&u.hasChanged(v))l=true}t[r]=u}else if(w){a=t[r]=this._prepareModel(o,e);if(!a)continue;m.push(a);a.on("all",this._onModelEvent,this);this._byId[a.cid]=a;if(a.id!=null)this._byId[a.id]=a}if(E)E.push(u||a)}if(x){for(r=0,s=this.length;r<s;++r){if(!_[(a=this.models[r]).cid])y.push(a)}if(y.length)this.remove(y,e)}if(m.length||E&&E.length){if(p)l=true;this.length+=m.length;if(c!=null){for(r=0,s=m.length;r<s;r++){this.models.splice(c+r,0,m[r])}}else{if(E)this.models.length=0;var T=E||m;for(r=0,s=T.length;r<s;r++){this.models.push(T[r])}}}if(l)this.sort({silent:true});if(!e.silent){for(r=0,s=m.length;r<s;r++){(a=m[r]).trigger("add",a,this,e)}if(l||E&&E.length)this.trigger("sort",this,e)}return i?t[0]:t},reset:function(t,e){e||(e={});for(var i=0,r=this.models.length;i<r;i++){this._removeReference(this.models[i])}e.previousModels=this.models;this._reset();t=this.add(t,h.extend({silent:true},e));if(!e.silent)this.trigger("reset",this,e);return t},push:function(t,e){return this.add(t,h.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);this.remove(e,t);return e},unshift:function(t,e){return this.add(t,h.extend({at:0},e))},shift:function(t){var e=this.at(0);this.remove(e,t);return e},slice:function(){return s.apply(this.models,arguments)},get:function(t){if(t==null)return void 0;return this._byId[t.id]||this._byId[t.cid]||this._byId[t]},at:function(t){return this.models[t]},where:function(t,e){if(h.isEmpty(t))return e?void 0:[];return this[e?"find":"filter"](function(e){for(var i in t){if(t[i]!==e.get(i))return false}return true})},findWhere:function(t){return this.where(t,true)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");t||(t={});if(h.isString(this.comparator)||this.comparator.length===1){this.models=this.sortBy(this.comparator,this)}else{this.models.sort(h.bind(this.comparator,this))}if(!t.silent)this.trigger("sort",this,t);return this},pluck:function(t){return h.invoke(this.models,"get",t)},fetch:function(t){t=t?h.clone(t):{};if(t.parse===void 0)t.parse=true;var e=t.success;var i=this;t.success=function(r){var s=t.reset?"reset":"set";i[s](r,t);if(e)e(i,r,t);i.trigger("sync",i,r,t)};M(this,t);return this.sync("read",this,t)},create:function(t,e){e=e?h.clone(e):{};if(!(t=this._prepareModel(t,e)))return false;if(!e.wait)this.add(t,e);var i=this;var r=e.success;e.success=function(t,e,s){if(s.wait)i.add(t,s);if(r)r(t,e,s)};t.save(null,e);return t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0;this.models=[];this._byId={}},_prepareModel:function(t,e){if(t instanceof d){if(!t.collection)t.collection=this;return t}e=e?h.clone(e):{};e.collection=this;var i=new this.model(t,e);if(!i.validationError)return i;this.trigger("invalid",this,i.validationError,e);return false},_removeReference:function(t){if(this===t.collection)delete t.collection;t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,r){if((t==="add"||t==="remove")&&i!==this)return;if(t==="destroy")this.remove(e,r);if(e&&t==="change:"+e.idAttribute){delete this._byId[e.previous(e.idAttribute)];if(e.id!=null)this._byId[e.id]=e}this.trigger.apply(this,arguments)}});var y=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain"];h.each(y,function(t){v.prototype[t]=function(){var e=s.call(arguments);e.unshift(this.models);return h[t].apply(h,e)}});var _=["groupBy","countBy","sortBy"];h.each(_,function(t){v.prototype[t]=function(e,i){var r=h.isFunction(e)?e:function(t){return t.get(e)};return h[t](this.models,r,i)}});var w=a.View=function(t){this.cid=h.uniqueId("view");t||(t={});h.extend(this,h.pick(t,x));this._ensureElement();this.initialize.apply(this,arguments);this.delegateEvents()};var b=/^(\S+)\s*(.*)$/;var x=["model","collection","el","id","attributes","className","tagName","events"];h.extend(w.prototype,o,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){this.$el.remove();this.stopListening();return this},setElement:function(t,e){if(this.$el)this.undelegateEvents();this.$el=t instanceof a.$?t:a.$(t);this.el=this.$el[0];if(e!==false)this.delegateEvents();return this},delegateEvents:function(t){if(!(t||(t=h.result(this,"events"))))return this;this.undelegateEvents();for(var e in t){var i=t[e];if(!h.isFunction(i))i=this[t[e]];if(!i)continue;var r=e.match(b);var s=r[1],n=r[2];i=h.bind(i,this);s+=".delegateEvents"+this.cid;if(n===""){this.$el.on(s,i)}else{this.$el.on(s,n,i)}}return this},undelegateEvents:function(){this.$el.off(".delegateEvents"+this.cid);return this},_ensureElement:function(){if(!this.el){var t=h.extend({},h.result(this,"attributes"));if(this.id)t.id=h.result(this,"id");if(this.className)t["class"]=h.result(this,"className");var e=a.$("<"+h.result(this,"tagName")+">").attr(t);this.setElement(e,false)}else{this.setElement(h.result(this,"el"),false)}}});a.sync=function(t,e,i){var r=T[t];h.defaults(i||(i={}),{emulateHTTP:a.emulateHTTP,emulateJSON:a.emulateJSON});var s={type:r,dataType:"json"};if(!i.url){s.url=h.result(e,"url")||U()}if(i.data==null&&e&&(t==="create"||t==="update"||t==="patch")){s.contentType="application/json";s.data=JSON.stringify(i.attrs||e.toJSON(i))}if(i.emulateJSON){s.contentType="application/x-www-form-urlencoded";s.data=s.data?{model:s.data}:{}}if(i.emulateHTTP&&(r==="PUT"||r==="DELETE"||r==="PATCH")){s.type="POST";if(i.emulateJSON)s.data._method=r;var n=i.beforeSend;i.beforeSend=function(t){t.setRequestHeader("X-HTTP-Method-Override",r);if(n)return n.apply(this,arguments)}}if(s.type!=="GET"&&!i.emulateJSON){s.processData=false}if(s.type==="PATCH"&&E){s.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}var o=i.xhr=a.ajax(h.extend(s,i));e.trigger("request",e,o,i);return o};var E=typeof window!=="undefined"&&!!window.ActiveXObject&&!(window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent);var T={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};a.ajax=function(){return a.$.ajax.apply(a.$,arguments)};var k=a.Router=function(t){t||(t={});if(t.routes)this.routes=t.routes;this._bindRoutes();this.initialize.apply(this,arguments)};var S=/\((.*?)\)/g;var $=/(\(\?)?:\w+/g;var H=/\*\w+/g;var A=/[\-{}\[\]+?.,\\\^$|#\s]/g;h.extend(k.prototype,o,{initialize:function(){},route:function(t,e,i){if(!h.isRegExp(t))t=this._routeToRegExp(t);if(h.isFunction(e)){i=e;e=""}if(!i)i=this[e];var r=this;a.history.route(t,function(s){var n=r._extractParameters(t,s);i&&i.apply(r,n);r.trigger.apply(r,["route:"+e].concat(n));r.trigger("route",e,n);a.history.trigger("route",r,e,n)});return this},navigate:function(t,e){a.history.navigate(t,e);return this},_bindRoutes:function(){if(!this.routes)return;this.routes=h.result(this,"routes");var t,e=h.keys(this.routes);while((t=e.pop())!=null){this.route(t,this.routes[t])}},_routeToRegExp:function(t){t=t.replace(A,"\\$&").replace(S,"(?:$1)?").replace($,function(t,e){return e?t:"([^/]+)"}).replace(H,"(.*?)");return new RegExp("^"+t+"$")},_extractParameters:function(t,e){var i=t.exec(e).slice(1);return h.map(i,function(t){return t?decodeURIComponent(t):null})}});var I=a.History=function(){this.handlers=[];h.bindAll(this,"checkUrl");if(typeof window!=="undefined"){this.location=window.location;this.history=window.history}};var N=/^[#\/]|\s+$/g;var O=/^\/+|\/+$/g;var P=/msie [\w.]+/;var C=/\/$/;var j=/[?#].*$/;I.started=false;h.extend(I.prototype,o,{interval:50,getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(t==null){if(this._hasPushState||!this._wantsHashChange||e){t=this.location.pathname;var i=this.root.replace(C,"");if(!t.indexOf(i))t=t.slice(i.length)}else{t=this.getHash()}}return t.replace(N,"")},start:function(t){if(I.started)throw new Error("Backbone.history has already been started");I.started=true;this.options=h.extend({root:"/"},this.options,t);this.root=this.options.root;this._wantsHashChange=this.options.hashChange!==false;this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var e=this.getFragment();var i=document.documentMode;var r=P.exec(navigator.userAgent.toLowerCase())&&(!i||i<=7);this.root=("/"+this.root+"/").replace(O,"/");if(r&&this._wantsHashChange){this.iframe=a.$('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow;this.navigate(e)}if(this._hasPushState){a.$(window).on("popstate",this.checkUrl)}else if(this._wantsHashChange&&"onhashchange"in window&&!r){a.$(window).on("hashchange",this.checkUrl)}else if(this._wantsHashChange){this._checkUrlInterval=setInterval(this.checkUrl,this.interval)}this.fragment=e;var s=this.location;var n=s.pathname.replace(/[^\/]$/,"$&/")===this.root;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!n){this.fragment=this.getFragment(null,true);this.location.replace(this.root+this.location.search+"#"+this.fragment);return true}else if(this._hasPushState&&n&&s.hash){this.fragment=this.getHash().replace(N,"");this.history.replaceState({},document.title,this.root+this.fragment+s.search)}}if(!this.options.silent)return this.loadUrl()},stop:function(){a.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl);clearInterval(this._checkUrlInterval);I.started=false},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe){e=this.getFragment(this.getHash(this.iframe))}if(e===this.fragment)return false;if(this.iframe)this.navigate(e);this.loadUrl()},loadUrl:function(t){t=this.fragment=this.getFragment(t);return h.any(this.handlers,function(e){if(e.route.test(t)){e.callback(t);return true}})},navigate:function(t,e){if(!I.started)return false;if(!e||e===true)e={trigger:!!e};var i=this.root+(t=this.getFragment(t||""));t=t.replace(j,"");if(this.fragment===t)return;this.fragment=t;if(t===""&&i!=="/")i=i.slice(0,-1);if(this._hasPushState){this.history[e.replace?"replaceState":"pushState"]({},document.title,i)}else if(this._wantsHashChange){this._updateHash(this.location,t,e.replace);if(this.iframe&&t!==this.getFragment(this.getHash(this.iframe))){if(!e.replace)this.iframe.document.open().close();this._updateHash(this.iframe.location,t,e.replace)}}else{return this.location.assign(i)}if(e.trigger)return this.loadUrl(t)},_updateHash:function(t,e,i){if(i){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else{t.hash="#"+e}}});a.history=new I;var R=function(t,e){var i=this;var r;if(t&&h.has(t,"constructor")){r=t.constructor}else{r=function(){return i.apply(this,arguments)}}h.extend(r,i,e);var s=function(){this.constructor=r};s.prototype=i.prototype;r.prototype=new s;if(t)h.extend(r.prototype,t);r.__super__=i.prototype;return r};d.extend=v.extend=k.extend=w.extend=I.extend=R;var U=function(){throw new Error('A "url" property or function must be specified')};var M=function(t,e){var i=e.error;e.error=function(r){if(i)i(t,r,e);t.trigger("error",t,r,e)}}}).call(this);
|
|
2
|
+
//# sourceMappingURL=backbone-min.map
|