@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
package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/pivot.js
ADDED
|
@@ -0,0 +1,1363 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
var callWithJQuery,
|
|
3
|
+
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
|
|
4
|
+
__slice = [].slice,
|
|
5
|
+
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
|
|
6
|
+
__hasProp = {}.hasOwnProperty;
|
|
7
|
+
|
|
8
|
+
callWithJQuery = function(pivotModule) {
|
|
9
|
+
if (typeof exports === "object" && typeof module === "object") {
|
|
10
|
+
return pivotModule(require("jquery"));
|
|
11
|
+
} else if (typeof define === "function" && define.amd) {
|
|
12
|
+
return define(["jquery"], pivotModule);
|
|
13
|
+
} else {
|
|
14
|
+
return pivotModule(jQuery);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
callWithJQuery(function($) {
|
|
19
|
+
|
|
20
|
+
/*
|
|
21
|
+
Utilities
|
|
22
|
+
*/
|
|
23
|
+
var PivotData, addSeparators, aggregatorTemplates, aggregators, dayNamesEn, derivers, locales, mthNamesEn, naturalSort, numberFormat, pivotTableRenderer, renderers, usFmt, usFmtInt, usFmtPct, zeroPad;
|
|
24
|
+
addSeparators = function(nStr, thousandsSep, decimalSep) {
|
|
25
|
+
var rgx, x, x1, x2;
|
|
26
|
+
nStr += '';
|
|
27
|
+
x = nStr.split('.');
|
|
28
|
+
x1 = x[0];
|
|
29
|
+
x2 = x.length > 1 ? decimalSep + x[1] : '';
|
|
30
|
+
rgx = /(\d+)(\d{3})/;
|
|
31
|
+
while (rgx.test(x1)) {
|
|
32
|
+
x1 = x1.replace(rgx, '$1' + thousandsSep + '$2');
|
|
33
|
+
}
|
|
34
|
+
return x1 + x2;
|
|
35
|
+
};
|
|
36
|
+
numberFormat = function(opts) {
|
|
37
|
+
var defaults;
|
|
38
|
+
defaults = {
|
|
39
|
+
digitsAfterDecimal: 2,
|
|
40
|
+
scaler: 1,
|
|
41
|
+
thousandsSep: ",",
|
|
42
|
+
decimalSep: ".",
|
|
43
|
+
prefix: "",
|
|
44
|
+
suffix: "",
|
|
45
|
+
showZero: false
|
|
46
|
+
};
|
|
47
|
+
opts = $.extend(defaults, opts);
|
|
48
|
+
return function(x) {
|
|
49
|
+
var result;
|
|
50
|
+
if (isNaN(x) || !isFinite(x)) {
|
|
51
|
+
return "";
|
|
52
|
+
}
|
|
53
|
+
if (x === 0 && !opts.showZero) {
|
|
54
|
+
return "";
|
|
55
|
+
}
|
|
56
|
+
result = addSeparators((opts.scaler * x).toFixed(opts.digitsAfterDecimal), opts.thousandsSep, opts.decimalSep);
|
|
57
|
+
return "" + opts.prefix + result + opts.suffix;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
usFmt = numberFormat();
|
|
61
|
+
usFmtInt = numberFormat({
|
|
62
|
+
digitsAfterDecimal: 0
|
|
63
|
+
});
|
|
64
|
+
usFmtPct = numberFormat({
|
|
65
|
+
digitsAfterDecimal: 1,
|
|
66
|
+
scaler: 100,
|
|
67
|
+
suffix: "%"
|
|
68
|
+
});
|
|
69
|
+
aggregatorTemplates = {
|
|
70
|
+
count: function(formatter) {
|
|
71
|
+
if (formatter == null) {
|
|
72
|
+
formatter = usFmtInt;
|
|
73
|
+
}
|
|
74
|
+
return function() {
|
|
75
|
+
return function(data, rowKey, colKey) {
|
|
76
|
+
return {
|
|
77
|
+
count: 0,
|
|
78
|
+
push: function() {
|
|
79
|
+
return this.count++;
|
|
80
|
+
},
|
|
81
|
+
value: function() {
|
|
82
|
+
return this.count;
|
|
83
|
+
},
|
|
84
|
+
format: formatter
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
countUnique: function(formatter) {
|
|
90
|
+
if (formatter == null) {
|
|
91
|
+
formatter = usFmtInt;
|
|
92
|
+
}
|
|
93
|
+
return function(_arg) {
|
|
94
|
+
var attr;
|
|
95
|
+
attr = _arg[0];
|
|
96
|
+
return function(data, rowKey, colKey) {
|
|
97
|
+
return {
|
|
98
|
+
uniq: [],
|
|
99
|
+
push: function(record) {
|
|
100
|
+
var _ref;
|
|
101
|
+
if (_ref = record[attr], __indexOf.call(this.uniq, _ref) < 0) {
|
|
102
|
+
return this.uniq.push(record[attr]);
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
value: function() {
|
|
106
|
+
return this.uniq.length;
|
|
107
|
+
},
|
|
108
|
+
format: formatter,
|
|
109
|
+
numInputs: attr != null ? 0 : 1
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
listUnique: function(sep) {
|
|
115
|
+
return function(_arg) {
|
|
116
|
+
var attr;
|
|
117
|
+
attr = _arg[0];
|
|
118
|
+
return function(data, rowKey, colKey) {
|
|
119
|
+
return {
|
|
120
|
+
uniq: [],
|
|
121
|
+
push: function(record) {
|
|
122
|
+
var _ref;
|
|
123
|
+
if (_ref = record[attr], __indexOf.call(this.uniq, _ref) < 0) {
|
|
124
|
+
return this.uniq.push(record[attr]);
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
value: function() {
|
|
128
|
+
return this.uniq.join(sep);
|
|
129
|
+
},
|
|
130
|
+
format: function(x) {
|
|
131
|
+
return x;
|
|
132
|
+
},
|
|
133
|
+
numInputs: attr != null ? 0 : 1
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
},
|
|
138
|
+
sum: function(formatter) {
|
|
139
|
+
if (formatter == null) {
|
|
140
|
+
formatter = usFmt;
|
|
141
|
+
}
|
|
142
|
+
return function(_arg) {
|
|
143
|
+
var attr;
|
|
144
|
+
attr = _arg[0];
|
|
145
|
+
return function(data, rowKey, colKey) {
|
|
146
|
+
return {
|
|
147
|
+
sum: 0,
|
|
148
|
+
push: function(record) {
|
|
149
|
+
if (!isNaN(parseFloat(record[attr]))) {
|
|
150
|
+
return this.sum += parseFloat(record[attr]);
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
value: function() {
|
|
154
|
+
return this.sum;
|
|
155
|
+
},
|
|
156
|
+
format: formatter,
|
|
157
|
+
numInputs: attr != null ? 0 : 1
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
},
|
|
162
|
+
average: function(formatter) {
|
|
163
|
+
if (formatter == null) {
|
|
164
|
+
formatter = usFmt;
|
|
165
|
+
}
|
|
166
|
+
return function(_arg) {
|
|
167
|
+
var attr;
|
|
168
|
+
attr = _arg[0];
|
|
169
|
+
return function(data, rowKey, colKey) {
|
|
170
|
+
return {
|
|
171
|
+
sum: 0,
|
|
172
|
+
len: 0,
|
|
173
|
+
push: function(record) {
|
|
174
|
+
if (!isNaN(parseFloat(record[attr]))) {
|
|
175
|
+
this.sum += parseFloat(record[attr]);
|
|
176
|
+
return this.len++;
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
value: function() {
|
|
180
|
+
return this.sum / this.len;
|
|
181
|
+
},
|
|
182
|
+
format: formatter,
|
|
183
|
+
numInputs: attr != null ? 0 : 1
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
},
|
|
188
|
+
sumOverSum: function(formatter) {
|
|
189
|
+
if (formatter == null) {
|
|
190
|
+
formatter = usFmt;
|
|
191
|
+
}
|
|
192
|
+
return function(_arg) {
|
|
193
|
+
var denom, num;
|
|
194
|
+
num = _arg[0], denom = _arg[1];
|
|
195
|
+
return function(data, rowKey, colKey) {
|
|
196
|
+
return {
|
|
197
|
+
sumNum: 0,
|
|
198
|
+
sumDenom: 0,
|
|
199
|
+
push: function(record) {
|
|
200
|
+
if (!isNaN(parseFloat(record[num]))) {
|
|
201
|
+
this.sumNum += parseFloat(record[num]);
|
|
202
|
+
}
|
|
203
|
+
if (!isNaN(parseFloat(record[denom]))) {
|
|
204
|
+
return this.sumDenom += parseFloat(record[denom]);
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
value: function() {
|
|
208
|
+
return this.sumNum / this.sumDenom;
|
|
209
|
+
},
|
|
210
|
+
format: formatter,
|
|
211
|
+
numInputs: (num != null) && (denom != null) ? 0 : 2
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
},
|
|
216
|
+
sumOverSumBound80: function(upper, formatter) {
|
|
217
|
+
if (upper == null) {
|
|
218
|
+
upper = true;
|
|
219
|
+
}
|
|
220
|
+
if (formatter == null) {
|
|
221
|
+
formatter = usFmt;
|
|
222
|
+
}
|
|
223
|
+
return function(_arg) {
|
|
224
|
+
var denom, num;
|
|
225
|
+
num = _arg[0], denom = _arg[1];
|
|
226
|
+
return function(data, rowKey, colKey) {
|
|
227
|
+
return {
|
|
228
|
+
sumNum: 0,
|
|
229
|
+
sumDenom: 0,
|
|
230
|
+
push: function(record) {
|
|
231
|
+
if (!isNaN(parseFloat(record[num]))) {
|
|
232
|
+
this.sumNum += parseFloat(record[num]);
|
|
233
|
+
}
|
|
234
|
+
if (!isNaN(parseFloat(record[denom]))) {
|
|
235
|
+
return this.sumDenom += parseFloat(record[denom]);
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
value: function() {
|
|
239
|
+
var sign;
|
|
240
|
+
sign = upper ? 1 : -1;
|
|
241
|
+
return (0.821187207574908 / this.sumDenom + this.sumNum / this.sumDenom + 1.2815515655446004 * sign * Math.sqrt(0.410593603787454 / (this.sumDenom * this.sumDenom) + (this.sumNum * (1 - this.sumNum / this.sumDenom)) / (this.sumDenom * this.sumDenom))) / (1 + 1.642374415149816 / this.sumDenom);
|
|
242
|
+
},
|
|
243
|
+
format: formatter,
|
|
244
|
+
numInputs: (num != null) && (denom != null) ? 0 : 2
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
},
|
|
249
|
+
fractionOf: function(wrapped, type, formatter) {
|
|
250
|
+
if (type == null) {
|
|
251
|
+
type = "total";
|
|
252
|
+
}
|
|
253
|
+
if (formatter == null) {
|
|
254
|
+
formatter = usFmtPct;
|
|
255
|
+
}
|
|
256
|
+
return function() {
|
|
257
|
+
var x;
|
|
258
|
+
x = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
|
|
259
|
+
return function(data, rowKey, colKey) {
|
|
260
|
+
return {
|
|
261
|
+
selector: {
|
|
262
|
+
total: [[], []],
|
|
263
|
+
row: [rowKey, []],
|
|
264
|
+
col: [[], colKey]
|
|
265
|
+
}[type],
|
|
266
|
+
inner: wrapped.apply(null, x)(data, rowKey, colKey),
|
|
267
|
+
push: function(record) {
|
|
268
|
+
return this.inner.push(record);
|
|
269
|
+
},
|
|
270
|
+
format: formatter,
|
|
271
|
+
value: function() {
|
|
272
|
+
return this.inner.value() / data.getAggregator.apply(data, this.selector).inner.value();
|
|
273
|
+
},
|
|
274
|
+
numInputs: wrapped.apply(null, x)().numInputs
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
aggregators = (function(tpl) {
|
|
281
|
+
return {
|
|
282
|
+
"Count": tpl.count(usFmtInt),
|
|
283
|
+
"Count Unique Values": tpl.countUnique(usFmtInt),
|
|
284
|
+
"List Unique Values": tpl.listUnique(", "),
|
|
285
|
+
"Sum": tpl.sum(usFmt),
|
|
286
|
+
"Integer Sum": tpl.sum(usFmtInt),
|
|
287
|
+
"Average": tpl.average(usFmt),
|
|
288
|
+
"Sum over Sum": tpl.sumOverSum(usFmt),
|
|
289
|
+
"80% Upper Bound": tpl.sumOverSumBound80(true, usFmt),
|
|
290
|
+
"80% Lower Bound": tpl.sumOverSumBound80(false, usFmt),
|
|
291
|
+
"Sum as Fraction of Total": tpl.fractionOf(tpl.sum(), "total", usFmtPct),
|
|
292
|
+
"Sum as Fraction of Rows": tpl.fractionOf(tpl.sum(), "row", usFmtPct),
|
|
293
|
+
"Sum as Fraction of Columns": tpl.fractionOf(tpl.sum(), "col", usFmtPct),
|
|
294
|
+
"Count as Fraction of Total": tpl.fractionOf(tpl.count(), "total", usFmtPct),
|
|
295
|
+
"Count as Fraction of Rows": tpl.fractionOf(tpl.count(), "row", usFmtPct),
|
|
296
|
+
"Count as Fraction of Columns": tpl.fractionOf(tpl.count(), "col", usFmtPct)
|
|
297
|
+
};
|
|
298
|
+
})(aggregatorTemplates);
|
|
299
|
+
renderers = {
|
|
300
|
+
"Table": function(pvtData, opts) {
|
|
301
|
+
return pivotTableRenderer(pvtData, opts);
|
|
302
|
+
},
|
|
303
|
+
"Table Barchart": function(pvtData, opts) {
|
|
304
|
+
return $(pivotTableRenderer(pvtData, opts)).barchart();
|
|
305
|
+
},
|
|
306
|
+
"Heatmap": function(pvtData, opts) {
|
|
307
|
+
return $(pivotTableRenderer(pvtData, opts)).heatmap();
|
|
308
|
+
},
|
|
309
|
+
"Row Heatmap": function(pvtData, opts) {
|
|
310
|
+
return $(pivotTableRenderer(pvtData, opts)).heatmap("rowheatmap");
|
|
311
|
+
},
|
|
312
|
+
"Col Heatmap": function(pvtData, opts) {
|
|
313
|
+
return $(pivotTableRenderer(pvtData, opts)).heatmap("colheatmap");
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
locales = {
|
|
317
|
+
en: {
|
|
318
|
+
aggregators: aggregators,
|
|
319
|
+
renderers: renderers,
|
|
320
|
+
localeStrings: {
|
|
321
|
+
renderError: "An error occurred rendering the PivotTable results.",
|
|
322
|
+
computeError: "An error occurred computing the PivotTable results.",
|
|
323
|
+
uiRenderError: "An error occurred rendering the PivotTable UI.",
|
|
324
|
+
selectAll: "Select All",
|
|
325
|
+
selectNone: "Select None",
|
|
326
|
+
tooMany: "(too many to list)",
|
|
327
|
+
filterResults: "Filter results",
|
|
328
|
+
totals: "Totals",
|
|
329
|
+
vs: "vs",
|
|
330
|
+
by: "by"
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
mthNamesEn = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
335
|
+
dayNamesEn = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
|
336
|
+
zeroPad = function(number) {
|
|
337
|
+
return ("0" + number).substr(-2, 2);
|
|
338
|
+
};
|
|
339
|
+
derivers = {
|
|
340
|
+
bin: function(col, binWidth) {
|
|
341
|
+
return function(record) {
|
|
342
|
+
return record[col] - record[col] % binWidth;
|
|
343
|
+
};
|
|
344
|
+
},
|
|
345
|
+
dateFormat: function(col, formatString, mthNames, dayNames) {
|
|
346
|
+
if (mthNames == null) {
|
|
347
|
+
mthNames = mthNamesEn;
|
|
348
|
+
}
|
|
349
|
+
if (dayNames == null) {
|
|
350
|
+
dayNames = dayNamesEn;
|
|
351
|
+
}
|
|
352
|
+
return function(record) {
|
|
353
|
+
var date;
|
|
354
|
+
date = new Date(Date.parse(record[col]));
|
|
355
|
+
if (isNaN(date)) {
|
|
356
|
+
return "";
|
|
357
|
+
}
|
|
358
|
+
return formatString.replace(/%(.)/g, function(m, p) {
|
|
359
|
+
switch (p) {
|
|
360
|
+
case "y":
|
|
361
|
+
return date.getFullYear();
|
|
362
|
+
case "m":
|
|
363
|
+
return zeroPad(date.getMonth() + 1);
|
|
364
|
+
case "n":
|
|
365
|
+
return mthNames[date.getMonth()];
|
|
366
|
+
case "d":
|
|
367
|
+
return zeroPad(date.getDate());
|
|
368
|
+
case "w":
|
|
369
|
+
return dayNames[date.getDay()];
|
|
370
|
+
case "x":
|
|
371
|
+
return date.getDay();
|
|
372
|
+
case "H":
|
|
373
|
+
return zeroPad(date.getHours());
|
|
374
|
+
case "M":
|
|
375
|
+
return zeroPad(date.getMinutes());
|
|
376
|
+
case "S":
|
|
377
|
+
return zeroPad(date.getSeconds());
|
|
378
|
+
default:
|
|
379
|
+
return "%" + p;
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
naturalSort = (function(_this) {
|
|
386
|
+
return function(as, bs) {
|
|
387
|
+
var a, a1, b, b1, rd, rx, rz;
|
|
388
|
+
rx = /(\d+)|(\D+)/g;
|
|
389
|
+
rd = /\d/;
|
|
390
|
+
rz = /^0/;
|
|
391
|
+
if (typeof as === "number" || typeof bs === "number") {
|
|
392
|
+
if (isNaN(as)) {
|
|
393
|
+
return 1;
|
|
394
|
+
}
|
|
395
|
+
if (isNaN(bs)) {
|
|
396
|
+
return -1;
|
|
397
|
+
}
|
|
398
|
+
return as - bs;
|
|
399
|
+
}
|
|
400
|
+
a = String(as).toLowerCase();
|
|
401
|
+
b = String(bs).toLowerCase();
|
|
402
|
+
if (a === b) {
|
|
403
|
+
return 0;
|
|
404
|
+
}
|
|
405
|
+
if (!(rd.test(a) && rd.test(b))) {
|
|
406
|
+
return (a > b ? 1 : -1);
|
|
407
|
+
}
|
|
408
|
+
a = a.match(rx);
|
|
409
|
+
b = b.match(rx);
|
|
410
|
+
while (a.length && b.length) {
|
|
411
|
+
a1 = a.shift();
|
|
412
|
+
b1 = b.shift();
|
|
413
|
+
if (a1 !== b1) {
|
|
414
|
+
if (rd.test(a1) && rd.test(b1)) {
|
|
415
|
+
return a1.replace(rz, ".0") - b1.replace(rz, ".0");
|
|
416
|
+
} else {
|
|
417
|
+
return (a1 > b1 ? 1 : -1);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
return a.length - b.length;
|
|
422
|
+
};
|
|
423
|
+
})(this);
|
|
424
|
+
$.pivotUtilities = {
|
|
425
|
+
aggregatorTemplates: aggregatorTemplates,
|
|
426
|
+
aggregators: aggregators,
|
|
427
|
+
renderers: renderers,
|
|
428
|
+
derivers: derivers,
|
|
429
|
+
locales: locales,
|
|
430
|
+
naturalSort: naturalSort,
|
|
431
|
+
numberFormat: numberFormat
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
/*
|
|
435
|
+
Data Model class
|
|
436
|
+
*/
|
|
437
|
+
PivotData = (function() {
|
|
438
|
+
function PivotData(input, opts) {
|
|
439
|
+
this.getAggregator = __bind(this.getAggregator, this);
|
|
440
|
+
this.getRowKeys = __bind(this.getRowKeys, this);
|
|
441
|
+
this.getColKeys = __bind(this.getColKeys, this);
|
|
442
|
+
this.sortKeys = __bind(this.sortKeys, this);
|
|
443
|
+
this.arrSort = __bind(this.arrSort, this);
|
|
444
|
+
this.natSort = __bind(this.natSort, this);
|
|
445
|
+
this.aggregator = opts.aggregator;
|
|
446
|
+
this.aggregatorName = opts.aggregatorName;
|
|
447
|
+
this.colAttrs = opts.cols;
|
|
448
|
+
this.rowAttrs = opts.rows;
|
|
449
|
+
this.valAttrs = opts.vals;
|
|
450
|
+
this.tree = {};
|
|
451
|
+
this.rowKeys = [];
|
|
452
|
+
this.colKeys = [];
|
|
453
|
+
this.rowTotals = {};
|
|
454
|
+
this.colTotals = {};
|
|
455
|
+
this.allTotal = this.aggregator(this, [], []);
|
|
456
|
+
this.sorted = false;
|
|
457
|
+
PivotData.forEachRecord(input, opts.derivedAttributes, (function(_this) {
|
|
458
|
+
return function(record) {
|
|
459
|
+
if (opts.filter(record)) {
|
|
460
|
+
return _this.processRecord(record);
|
|
461
|
+
}
|
|
462
|
+
};
|
|
463
|
+
})(this));
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
PivotData.forEachRecord = function(input, derivedAttributes, f) {
|
|
467
|
+
var addRecord, compactRecord, i, j, k, record, tblCols, _i, _len, _ref, _results, _results1;
|
|
468
|
+
if ($.isEmptyObject(derivedAttributes)) {
|
|
469
|
+
addRecord = f;
|
|
470
|
+
} else {
|
|
471
|
+
addRecord = function(record) {
|
|
472
|
+
var k, v, _ref;
|
|
473
|
+
for (k in derivedAttributes) {
|
|
474
|
+
v = derivedAttributes[k];
|
|
475
|
+
record[k] = (_ref = v(record)) != null ? _ref : record[k];
|
|
476
|
+
}
|
|
477
|
+
return f(record);
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
if ($.isFunction(input)) {
|
|
481
|
+
return input(addRecord);
|
|
482
|
+
} else if ($.isArray(input)) {
|
|
483
|
+
if ($.isArray(input[0])) {
|
|
484
|
+
_results = [];
|
|
485
|
+
for (i in input) {
|
|
486
|
+
if (!__hasProp.call(input, i)) continue;
|
|
487
|
+
compactRecord = input[i];
|
|
488
|
+
if (!(i > 0)) {
|
|
489
|
+
continue;
|
|
490
|
+
}
|
|
491
|
+
record = {};
|
|
492
|
+
_ref = input[0];
|
|
493
|
+
for (j in _ref) {
|
|
494
|
+
if (!__hasProp.call(_ref, j)) continue;
|
|
495
|
+
k = _ref[j];
|
|
496
|
+
record[k] = compactRecord[j];
|
|
497
|
+
}
|
|
498
|
+
_results.push(addRecord(record));
|
|
499
|
+
}
|
|
500
|
+
return _results;
|
|
501
|
+
} else {
|
|
502
|
+
_results1 = [];
|
|
503
|
+
for (_i = 0, _len = input.length; _i < _len; _i++) {
|
|
504
|
+
record = input[_i];
|
|
505
|
+
_results1.push(addRecord(record));
|
|
506
|
+
}
|
|
507
|
+
return _results1;
|
|
508
|
+
}
|
|
509
|
+
} else if (input instanceof jQuery) {
|
|
510
|
+
tblCols = [];
|
|
511
|
+
$("thead > tr > th", input).each(function(i) {
|
|
512
|
+
return tblCols.push($(this).text());
|
|
513
|
+
});
|
|
514
|
+
return $("tbody > tr", input).each(function(i) {
|
|
515
|
+
record = {};
|
|
516
|
+
$("td", this).each(function(j) {
|
|
517
|
+
return record[tblCols[j]] = $(this).text();
|
|
518
|
+
});
|
|
519
|
+
return addRecord(record);
|
|
520
|
+
});
|
|
521
|
+
} else {
|
|
522
|
+
throw new Error("unknown input format");
|
|
523
|
+
}
|
|
524
|
+
};
|
|
525
|
+
|
|
526
|
+
PivotData.convertToArray = function(input) {
|
|
527
|
+
var result;
|
|
528
|
+
result = [];
|
|
529
|
+
PivotData.forEachRecord(input, {}, function(record) {
|
|
530
|
+
return result.push(record);
|
|
531
|
+
});
|
|
532
|
+
return result;
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
PivotData.prototype.natSort = function(as, bs) {
|
|
536
|
+
return naturalSort(as, bs);
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
PivotData.prototype.arrSort = function(a, b) {
|
|
540
|
+
return this.natSort(a.join(), b.join());
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
PivotData.prototype.sortKeys = function() {
|
|
544
|
+
if (!this.sorted) {
|
|
545
|
+
this.rowKeys.sort(this.arrSort);
|
|
546
|
+
this.colKeys.sort(this.arrSort);
|
|
547
|
+
}
|
|
548
|
+
return this.sorted = true;
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
PivotData.prototype.getColKeys = function() {
|
|
552
|
+
this.sortKeys();
|
|
553
|
+
return this.colKeys;
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
PivotData.prototype.getRowKeys = function() {
|
|
557
|
+
this.sortKeys();
|
|
558
|
+
return this.rowKeys;
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
PivotData.prototype.processRecord = function(record) {
|
|
562
|
+
var colKey, flatColKey, flatRowKey, rowKey, x, _i, _j, _len, _len1, _ref, _ref1, _ref2, _ref3;
|
|
563
|
+
colKey = [];
|
|
564
|
+
rowKey = [];
|
|
565
|
+
_ref = this.colAttrs;
|
|
566
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
|
567
|
+
x = _ref[_i];
|
|
568
|
+
colKey.push((_ref1 = record[x]) != null ? _ref1 : "null");
|
|
569
|
+
}
|
|
570
|
+
_ref2 = this.rowAttrs;
|
|
571
|
+
for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
|
|
572
|
+
x = _ref2[_j];
|
|
573
|
+
rowKey.push((_ref3 = record[x]) != null ? _ref3 : "null");
|
|
574
|
+
}
|
|
575
|
+
flatRowKey = rowKey.join(String.fromCharCode(0));
|
|
576
|
+
flatColKey = colKey.join(String.fromCharCode(0));
|
|
577
|
+
this.allTotal.push(record);
|
|
578
|
+
if (rowKey.length !== 0) {
|
|
579
|
+
if (!this.rowTotals[flatRowKey]) {
|
|
580
|
+
this.rowKeys.push(rowKey);
|
|
581
|
+
this.rowTotals[flatRowKey] = this.aggregator(this, rowKey, []);
|
|
582
|
+
}
|
|
583
|
+
this.rowTotals[flatRowKey].push(record);
|
|
584
|
+
}
|
|
585
|
+
if (colKey.length !== 0) {
|
|
586
|
+
if (!this.colTotals[flatColKey]) {
|
|
587
|
+
this.colKeys.push(colKey);
|
|
588
|
+
this.colTotals[flatColKey] = this.aggregator(this, [], colKey);
|
|
589
|
+
}
|
|
590
|
+
this.colTotals[flatColKey].push(record);
|
|
591
|
+
}
|
|
592
|
+
if (colKey.length !== 0 && rowKey.length !== 0) {
|
|
593
|
+
if (!this.tree[flatRowKey]) {
|
|
594
|
+
this.tree[flatRowKey] = {};
|
|
595
|
+
}
|
|
596
|
+
if (!this.tree[flatRowKey][flatColKey]) {
|
|
597
|
+
this.tree[flatRowKey][flatColKey] = this.aggregator(this, rowKey, colKey);
|
|
598
|
+
}
|
|
599
|
+
return this.tree[flatRowKey][flatColKey].push(record);
|
|
600
|
+
}
|
|
601
|
+
};
|
|
602
|
+
|
|
603
|
+
PivotData.prototype.getAggregator = function(rowKey, colKey) {
|
|
604
|
+
var agg, flatColKey, flatRowKey;
|
|
605
|
+
flatRowKey = rowKey.join(String.fromCharCode(0));
|
|
606
|
+
flatColKey = colKey.join(String.fromCharCode(0));
|
|
607
|
+
if (rowKey.length === 0 && colKey.length === 0) {
|
|
608
|
+
agg = this.allTotal;
|
|
609
|
+
} else if (rowKey.length === 0) {
|
|
610
|
+
agg = this.colTotals[flatColKey];
|
|
611
|
+
} else if (colKey.length === 0) {
|
|
612
|
+
agg = this.rowTotals[flatRowKey];
|
|
613
|
+
} else {
|
|
614
|
+
agg = this.tree[flatRowKey][flatColKey];
|
|
615
|
+
}
|
|
616
|
+
return agg != null ? agg : {
|
|
617
|
+
value: (function() {
|
|
618
|
+
return null;
|
|
619
|
+
}),
|
|
620
|
+
format: function() {
|
|
621
|
+
return "";
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
return PivotData;
|
|
627
|
+
|
|
628
|
+
})();
|
|
629
|
+
|
|
630
|
+
/*
|
|
631
|
+
Default Renderer for hierarchical table layout
|
|
632
|
+
*/
|
|
633
|
+
pivotTableRenderer = function(pivotData, opts) {
|
|
634
|
+
var aggregator, c, colAttrs, colKey, colKeys, defaults, i, j, r, result, rowAttrs, rowKey, rowKeys, spanSize, td, th, totalAggregator, tr, txt, val, x;
|
|
635
|
+
defaults = {
|
|
636
|
+
localeStrings: {
|
|
637
|
+
totals: "Totals"
|
|
638
|
+
}
|
|
639
|
+
};
|
|
640
|
+
opts = $.extend(defaults, opts);
|
|
641
|
+
colAttrs = pivotData.colAttrs;
|
|
642
|
+
rowAttrs = pivotData.rowAttrs;
|
|
643
|
+
rowKeys = pivotData.getRowKeys();
|
|
644
|
+
colKeys = pivotData.getColKeys();
|
|
645
|
+
result = document.createElement("table");
|
|
646
|
+
result.className = "pvtTable";
|
|
647
|
+
spanSize = function(arr, i, j) {
|
|
648
|
+
var len, noDraw, stop, x, _i, _j;
|
|
649
|
+
if (i !== 0) {
|
|
650
|
+
noDraw = true;
|
|
651
|
+
for (x = _i = 0; 0 <= j ? _i <= j : _i >= j; x = 0 <= j ? ++_i : --_i) {
|
|
652
|
+
if (arr[i - 1][x] !== arr[i][x]) {
|
|
653
|
+
noDraw = false;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
if (noDraw) {
|
|
657
|
+
return -1;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
len = 0;
|
|
661
|
+
while (i + len < arr.length) {
|
|
662
|
+
stop = false;
|
|
663
|
+
for (x = _j = 0; 0 <= j ? _j <= j : _j >= j; x = 0 <= j ? ++_j : --_j) {
|
|
664
|
+
if (arr[i][x] !== arr[i + len][x]) {
|
|
665
|
+
stop = true;
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
if (stop) {
|
|
669
|
+
break;
|
|
670
|
+
}
|
|
671
|
+
len++;
|
|
672
|
+
}
|
|
673
|
+
return len;
|
|
674
|
+
};
|
|
675
|
+
for (j in colAttrs) {
|
|
676
|
+
if (!__hasProp.call(colAttrs, j)) continue;
|
|
677
|
+
c = colAttrs[j];
|
|
678
|
+
tr = document.createElement("tr");
|
|
679
|
+
if (parseInt(j) === 0 && rowAttrs.length !== 0) {
|
|
680
|
+
th = document.createElement("th");
|
|
681
|
+
th.setAttribute("colspan", rowAttrs.length);
|
|
682
|
+
th.setAttribute("rowspan", colAttrs.length);
|
|
683
|
+
tr.appendChild(th);
|
|
684
|
+
}
|
|
685
|
+
th = document.createElement("th");
|
|
686
|
+
th.className = "pvtAxisLabel";
|
|
687
|
+
th.textContent = c;
|
|
688
|
+
tr.appendChild(th);
|
|
689
|
+
for (i in colKeys) {
|
|
690
|
+
if (!__hasProp.call(colKeys, i)) continue;
|
|
691
|
+
colKey = colKeys[i];
|
|
692
|
+
x = spanSize(colKeys, parseInt(i), parseInt(j));
|
|
693
|
+
if (x !== -1) {
|
|
694
|
+
th = document.createElement("th");
|
|
695
|
+
th.className = "pvtColLabel";
|
|
696
|
+
th.textContent = colKey[j];
|
|
697
|
+
th.setAttribute("colspan", x);
|
|
698
|
+
if (parseInt(j) === colAttrs.length - 1 && rowAttrs.length !== 0) {
|
|
699
|
+
th.setAttribute("rowspan", 2);
|
|
700
|
+
}
|
|
701
|
+
tr.appendChild(th);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
if (parseInt(j) === 0) {
|
|
705
|
+
th = document.createElement("th");
|
|
706
|
+
th.className = "pvtTotalLabel";
|
|
707
|
+
th.innerHTML = opts.localeStrings.totals;
|
|
708
|
+
th.setAttribute("rowspan", colAttrs.length + (rowAttrs.length === 0 ? 0 : 1));
|
|
709
|
+
tr.appendChild(th);
|
|
710
|
+
}
|
|
711
|
+
result.appendChild(tr);
|
|
712
|
+
}
|
|
713
|
+
if (rowAttrs.length !== 0) {
|
|
714
|
+
tr = document.createElement("tr");
|
|
715
|
+
for (i in rowAttrs) {
|
|
716
|
+
if (!__hasProp.call(rowAttrs, i)) continue;
|
|
717
|
+
r = rowAttrs[i];
|
|
718
|
+
th = document.createElement("th");
|
|
719
|
+
th.className = "pvtAxisLabel";
|
|
720
|
+
th.textContent = r;
|
|
721
|
+
tr.appendChild(th);
|
|
722
|
+
}
|
|
723
|
+
th = document.createElement("th");
|
|
724
|
+
if (colAttrs.length === 0) {
|
|
725
|
+
th.className = "pvtTotalLabel";
|
|
726
|
+
th.innerHTML = opts.localeStrings.totals;
|
|
727
|
+
}
|
|
728
|
+
tr.appendChild(th);
|
|
729
|
+
result.appendChild(tr);
|
|
730
|
+
}
|
|
731
|
+
for (i in rowKeys) {
|
|
732
|
+
if (!__hasProp.call(rowKeys, i)) continue;
|
|
733
|
+
rowKey = rowKeys[i];
|
|
734
|
+
tr = document.createElement("tr");
|
|
735
|
+
for (j in rowKey) {
|
|
736
|
+
if (!__hasProp.call(rowKey, j)) continue;
|
|
737
|
+
txt = rowKey[j];
|
|
738
|
+
x = spanSize(rowKeys, parseInt(i), parseInt(j));
|
|
739
|
+
if (x !== -1) {
|
|
740
|
+
th = document.createElement("th");
|
|
741
|
+
th.className = "pvtRowLabel";
|
|
742
|
+
th.textContent = txt;
|
|
743
|
+
th.setAttribute("rowspan", x);
|
|
744
|
+
if (parseInt(j) === rowAttrs.length - 1 && colAttrs.length !== 0) {
|
|
745
|
+
th.setAttribute("colspan", 2);
|
|
746
|
+
}
|
|
747
|
+
tr.appendChild(th);
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
for (j in colKeys) {
|
|
751
|
+
if (!__hasProp.call(colKeys, j)) continue;
|
|
752
|
+
colKey = colKeys[j];
|
|
753
|
+
aggregator = pivotData.getAggregator(rowKey, colKey);
|
|
754
|
+
val = aggregator.value();
|
|
755
|
+
td = document.createElement("td");
|
|
756
|
+
td.className = "pvtVal row" + i + " col" + j;
|
|
757
|
+
td.innerHTML = aggregator.format(val);
|
|
758
|
+
td.setAttribute("data-value", val);
|
|
759
|
+
tr.appendChild(td);
|
|
760
|
+
}
|
|
761
|
+
totalAggregator = pivotData.getAggregator(rowKey, []);
|
|
762
|
+
val = totalAggregator.value();
|
|
763
|
+
td = document.createElement("td");
|
|
764
|
+
td.className = "pvtTotal rowTotal";
|
|
765
|
+
td.innerHTML = totalAggregator.format(val);
|
|
766
|
+
td.setAttribute("data-value", val);
|
|
767
|
+
td.setAttribute("data-for", "row" + i);
|
|
768
|
+
tr.appendChild(td);
|
|
769
|
+
result.appendChild(tr);
|
|
770
|
+
}
|
|
771
|
+
tr = document.createElement("tr");
|
|
772
|
+
th = document.createElement("th");
|
|
773
|
+
th.className = "pvtTotalLabel";
|
|
774
|
+
th.innerHTML = opts.localeStrings.totals;
|
|
775
|
+
th.setAttribute("colspan", rowAttrs.length + (colAttrs.length === 0 ? 0 : 1));
|
|
776
|
+
tr.appendChild(th);
|
|
777
|
+
for (j in colKeys) {
|
|
778
|
+
if (!__hasProp.call(colKeys, j)) continue;
|
|
779
|
+
colKey = colKeys[j];
|
|
780
|
+
totalAggregator = pivotData.getAggregator([], colKey);
|
|
781
|
+
val = totalAggregator.value();
|
|
782
|
+
td = document.createElement("td");
|
|
783
|
+
td.className = "pvtTotal colTotal";
|
|
784
|
+
td.innerHTML = totalAggregator.format(val);
|
|
785
|
+
td.setAttribute("data-value", val);
|
|
786
|
+
td.setAttribute("data-for", "col" + j);
|
|
787
|
+
tr.appendChild(td);
|
|
788
|
+
}
|
|
789
|
+
totalAggregator = pivotData.getAggregator([], []);
|
|
790
|
+
val = totalAggregator.value();
|
|
791
|
+
td = document.createElement("td");
|
|
792
|
+
td.className = "pvtGrandTotal";
|
|
793
|
+
td.innerHTML = totalAggregator.format(val);
|
|
794
|
+
td.setAttribute("data-value", val);
|
|
795
|
+
tr.appendChild(td);
|
|
796
|
+
result.appendChild(tr);
|
|
797
|
+
result.setAttribute("data-numrows", rowKeys.length);
|
|
798
|
+
result.setAttribute("data-numcols", colKeys.length);
|
|
799
|
+
return result;
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
/*
|
|
803
|
+
Pivot Table core: create PivotData object and call Renderer on it
|
|
804
|
+
*/
|
|
805
|
+
$.fn.pivot = function(input, opts) {
|
|
806
|
+
var defaults, e, pivotData, result, x;
|
|
807
|
+
defaults = {
|
|
808
|
+
cols: [],
|
|
809
|
+
rows: [],
|
|
810
|
+
filter: function() {
|
|
811
|
+
return true;
|
|
812
|
+
},
|
|
813
|
+
aggregator: aggregatorTemplates.count()(),
|
|
814
|
+
aggregatorName: "Count",
|
|
815
|
+
derivedAttributes: {},
|
|
816
|
+
renderer: pivotTableRenderer,
|
|
817
|
+
rendererOptions: null,
|
|
818
|
+
localeStrings: locales.en.localeStrings
|
|
819
|
+
};
|
|
820
|
+
opts = $.extend(defaults, opts);
|
|
821
|
+
result = null;
|
|
822
|
+
try {
|
|
823
|
+
pivotData = new PivotData(input, opts);
|
|
824
|
+
try {
|
|
825
|
+
result = opts.renderer(pivotData, opts.rendererOptions);
|
|
826
|
+
} catch (_error) {
|
|
827
|
+
e = _error;
|
|
828
|
+
if (typeof console !== "undefined" && console !== null) {
|
|
829
|
+
console.error(e.stack);
|
|
830
|
+
}
|
|
831
|
+
result = $("<span>").html(opts.localeStrings.renderError);
|
|
832
|
+
}
|
|
833
|
+
} catch (_error) {
|
|
834
|
+
e = _error;
|
|
835
|
+
if (typeof console !== "undefined" && console !== null) {
|
|
836
|
+
console.error(e.stack);
|
|
837
|
+
}
|
|
838
|
+
result = $("<span>").html(opts.localeStrings.computeError);
|
|
839
|
+
}
|
|
840
|
+
x = this[0];
|
|
841
|
+
while (x.hasChildNodes()) {
|
|
842
|
+
x.removeChild(x.lastChild);
|
|
843
|
+
}
|
|
844
|
+
return this.append(result);
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
/*
|
|
848
|
+
Pivot Table UI: calls Pivot Table core above with options set by user
|
|
849
|
+
*/
|
|
850
|
+
$.fn.pivotUI = function(input, inputOpts, overwrite, locale) {
|
|
851
|
+
var a, aggregator, attrLength, axisValues, c, colList, defaults, e, existingOpts, i, initialRender, k, opts, pivotTable, refresh, refreshDelayed, renderer, rendererControl, shownAttributes, tblCols, tr1, tr2, uiTable, unusedAttrsVerticalAutoOverride, x, _fn, _i, _j, _k, _l, _len, _len1, _len2, _len3, _ref, _ref1, _ref2, _ref3, _ref4;
|
|
852
|
+
if (overwrite == null) {
|
|
853
|
+
overwrite = false;
|
|
854
|
+
}
|
|
855
|
+
if (locale == null) {
|
|
856
|
+
locale = "en";
|
|
857
|
+
}
|
|
858
|
+
defaults = {
|
|
859
|
+
derivedAttributes: {},
|
|
860
|
+
aggregators: locales[locale].aggregators,
|
|
861
|
+
renderers: locales[locale].renderers,
|
|
862
|
+
hiddenAttributes: [],
|
|
863
|
+
menuLimit: 200,
|
|
864
|
+
cols: [],
|
|
865
|
+
rows: [],
|
|
866
|
+
vals: [],
|
|
867
|
+
exclusions: {},
|
|
868
|
+
unusedAttrsVertical: "auto",
|
|
869
|
+
autoSortUnusedAttrs: false,
|
|
870
|
+
rendererOptions: {
|
|
871
|
+
localeStrings: locales[locale].localeStrings
|
|
872
|
+
},
|
|
873
|
+
onRefresh: null,
|
|
874
|
+
filter: function() {
|
|
875
|
+
return true;
|
|
876
|
+
},
|
|
877
|
+
localeStrings: locales[locale].localeStrings
|
|
878
|
+
};
|
|
879
|
+
existingOpts = this.data("pivotUIOptions");
|
|
880
|
+
if ((existingOpts == null) || overwrite) {
|
|
881
|
+
opts = $.extend(defaults, inputOpts);
|
|
882
|
+
} else {
|
|
883
|
+
opts = existingOpts;
|
|
884
|
+
}
|
|
885
|
+
try {
|
|
886
|
+
input = PivotData.convertToArray(input);
|
|
887
|
+
tblCols = (function() {
|
|
888
|
+
var _ref, _results;
|
|
889
|
+
_ref = input[0];
|
|
890
|
+
_results = [];
|
|
891
|
+
for (k in _ref) {
|
|
892
|
+
if (!__hasProp.call(_ref, k)) continue;
|
|
893
|
+
_results.push(k);
|
|
894
|
+
}
|
|
895
|
+
return _results;
|
|
896
|
+
})();
|
|
897
|
+
_ref = opts.derivedAttributes;
|
|
898
|
+
for (c in _ref) {
|
|
899
|
+
if (!__hasProp.call(_ref, c)) continue;
|
|
900
|
+
if ((__indexOf.call(tblCols, c) < 0)) {
|
|
901
|
+
tblCols.push(c);
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
axisValues = {};
|
|
905
|
+
for (_i = 0, _len = tblCols.length; _i < _len; _i++) {
|
|
906
|
+
x = tblCols[_i];
|
|
907
|
+
axisValues[x] = {};
|
|
908
|
+
}
|
|
909
|
+
PivotData.forEachRecord(input, opts.derivedAttributes, function(record) {
|
|
910
|
+
var v, _base, _results;
|
|
911
|
+
_results = [];
|
|
912
|
+
for (k in record) {
|
|
913
|
+
if (!__hasProp.call(record, k)) continue;
|
|
914
|
+
v = record[k];
|
|
915
|
+
if (!(opts.filter(record))) {
|
|
916
|
+
continue;
|
|
917
|
+
}
|
|
918
|
+
if (v == null) {
|
|
919
|
+
v = "null";
|
|
920
|
+
}
|
|
921
|
+
if ((_base = axisValues[k])[v] == null) {
|
|
922
|
+
_base[v] = 0;
|
|
923
|
+
}
|
|
924
|
+
_results.push(axisValues[k][v]++);
|
|
925
|
+
}
|
|
926
|
+
return _results;
|
|
927
|
+
});
|
|
928
|
+
uiTable = $("<table cellpadding='5'>");
|
|
929
|
+
rendererControl = $("<td>");
|
|
930
|
+
renderer = $("<select class='pvtRenderer'>").appendTo(rendererControl).bind("change", function() {
|
|
931
|
+
return refresh();
|
|
932
|
+
});
|
|
933
|
+
_ref1 = opts.renderers;
|
|
934
|
+
for (x in _ref1) {
|
|
935
|
+
if (!__hasProp.call(_ref1, x)) continue;
|
|
936
|
+
$("<option>").val(x).html(x).appendTo(renderer);
|
|
937
|
+
}
|
|
938
|
+
colList = $("<td class='pvtAxisContainer pvtUnused'>");
|
|
939
|
+
shownAttributes = (function() {
|
|
940
|
+
var _j, _len1, _results;
|
|
941
|
+
_results = [];
|
|
942
|
+
for (_j = 0, _len1 = tblCols.length; _j < _len1; _j++) {
|
|
943
|
+
c = tblCols[_j];
|
|
944
|
+
if (__indexOf.call(opts.hiddenAttributes, c) < 0) {
|
|
945
|
+
_results.push(c);
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
return _results;
|
|
949
|
+
})();
|
|
950
|
+
unusedAttrsVerticalAutoOverride = false;
|
|
951
|
+
if (opts.unusedAttrsVertical === "auto") {
|
|
952
|
+
attrLength = 0;
|
|
953
|
+
for (_j = 0, _len1 = shownAttributes.length; _j < _len1; _j++) {
|
|
954
|
+
a = shownAttributes[_j];
|
|
955
|
+
attrLength += a.length;
|
|
956
|
+
}
|
|
957
|
+
unusedAttrsVerticalAutoOverride = attrLength > 120;
|
|
958
|
+
}
|
|
959
|
+
if (opts.unusedAttrsVertical === true || unusedAttrsVerticalAutoOverride) {
|
|
960
|
+
colList.addClass('pvtVertList');
|
|
961
|
+
} else {
|
|
962
|
+
colList.addClass('pvtHorizList');
|
|
963
|
+
}
|
|
964
|
+
_fn = function(c) {
|
|
965
|
+
var attrElem, btns, checkContainer, filterItem, filterItemExcluded, hasExcludedItem, keys, showFilterList, triangleLink, updateFilter, v, valueList, _k, _len2, _ref2;
|
|
966
|
+
keys = (function() {
|
|
967
|
+
var _results;
|
|
968
|
+
_results = [];
|
|
969
|
+
for (k in axisValues[c]) {
|
|
970
|
+
_results.push(k);
|
|
971
|
+
}
|
|
972
|
+
return _results;
|
|
973
|
+
})();
|
|
974
|
+
hasExcludedItem = false;
|
|
975
|
+
valueList = $("<div>").addClass('pvtFilterBox').hide();
|
|
976
|
+
valueList.append($("<h4>").text("" + c + " (" + keys.length + ")"));
|
|
977
|
+
if (keys.length > opts.menuLimit) {
|
|
978
|
+
valueList.append($("<p>").html(opts.localeStrings.tooMany));
|
|
979
|
+
} else {
|
|
980
|
+
btns = $("<p>").appendTo(valueList);
|
|
981
|
+
btns.append($("<button>", {
|
|
982
|
+
type: "button"
|
|
983
|
+
}).html(opts.localeStrings.selectAll).bind("click", function() {
|
|
984
|
+
return valueList.find("input:visible").prop("checked", true);
|
|
985
|
+
}));
|
|
986
|
+
btns.append($("<button>", {
|
|
987
|
+
type: "button"
|
|
988
|
+
}).html(opts.localeStrings.selectNone).bind("click", function() {
|
|
989
|
+
return valueList.find("input:visible").prop("checked", false);
|
|
990
|
+
}));
|
|
991
|
+
btns.append($("<input>").addClass("pvtSearch").attr("placeholder", opts.localeStrings.filterResults).bind("keyup", function() {
|
|
992
|
+
var filter;
|
|
993
|
+
filter = $(this).val().toLowerCase();
|
|
994
|
+
return $(this).parents(".pvtFilterBox").find('label span').each(function() {
|
|
995
|
+
var testString;
|
|
996
|
+
testString = $(this).text().toLowerCase().indexOf(filter);
|
|
997
|
+
if (testString !== -1) {
|
|
998
|
+
return $(this).parent().show();
|
|
999
|
+
} else {
|
|
1000
|
+
return $(this).parent().hide();
|
|
1001
|
+
}
|
|
1002
|
+
});
|
|
1003
|
+
}));
|
|
1004
|
+
checkContainer = $("<div>").addClass("pvtCheckContainer").appendTo(valueList);
|
|
1005
|
+
_ref2 = keys.sort(naturalSort);
|
|
1006
|
+
for (_k = 0, _len2 = _ref2.length; _k < _len2; _k++) {
|
|
1007
|
+
k = _ref2[_k];
|
|
1008
|
+
v = axisValues[c][k];
|
|
1009
|
+
filterItem = $("<label>");
|
|
1010
|
+
filterItemExcluded = opts.exclusions[c] ? (__indexOf.call(opts.exclusions[c], k) >= 0) : false;
|
|
1011
|
+
hasExcludedItem || (hasExcludedItem = filterItemExcluded);
|
|
1012
|
+
$("<input type='checkbox' class='pvtFilter'>").attr("checked", !filterItemExcluded).data("filter", [c, k]).appendTo(filterItem);
|
|
1013
|
+
filterItem.append($("<span>").text("" + k + " (" + v + ")"));
|
|
1014
|
+
checkContainer.append($("<p>").append(filterItem));
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
updateFilter = function() {
|
|
1018
|
+
var unselectedCount;
|
|
1019
|
+
unselectedCount = $(valueList).find("[type='checkbox']").length - $(valueList).find("[type='checkbox']:checked").length;
|
|
1020
|
+
if (unselectedCount > 0) {
|
|
1021
|
+
attrElem.addClass("pvtFilteredAttribute");
|
|
1022
|
+
} else {
|
|
1023
|
+
attrElem.removeClass("pvtFilteredAttribute");
|
|
1024
|
+
}
|
|
1025
|
+
if (keys.length > opts.menuLimit) {
|
|
1026
|
+
return valueList.toggle();
|
|
1027
|
+
} else {
|
|
1028
|
+
return valueList.toggle(0, refresh);
|
|
1029
|
+
}
|
|
1030
|
+
};
|
|
1031
|
+
$("<p>").appendTo(valueList).append($("<button>", {
|
|
1032
|
+
type: "button"
|
|
1033
|
+
}).text("OK").bind("click", updateFilter));
|
|
1034
|
+
showFilterList = function(e) {
|
|
1035
|
+
valueList.css({
|
|
1036
|
+
left: e.pageX,
|
|
1037
|
+
top: e.pageY
|
|
1038
|
+
}).toggle();
|
|
1039
|
+
$('.pvtSearch').val('');
|
|
1040
|
+
return $('label').show();
|
|
1041
|
+
};
|
|
1042
|
+
triangleLink = $("<span class='pvtTriangle'>").html(" ▾").bind("click", showFilterList);
|
|
1043
|
+
attrElem = $("<li class='axis_" + i + "'>").append($("<span class='pvtAttr'>").text(c).data("attrName", c).append(triangleLink));
|
|
1044
|
+
if (hasExcludedItem) {
|
|
1045
|
+
attrElem.addClass('pvtFilteredAttribute');
|
|
1046
|
+
}
|
|
1047
|
+
colList.append(attrElem).append(valueList);
|
|
1048
|
+
return attrElem.bind("dblclick", showFilterList);
|
|
1049
|
+
};
|
|
1050
|
+
for (i in shownAttributes) {
|
|
1051
|
+
c = shownAttributes[i];
|
|
1052
|
+
_fn(c);
|
|
1053
|
+
}
|
|
1054
|
+
tr1 = $("<tr>").appendTo(uiTable);
|
|
1055
|
+
aggregator = $("<select class='pvtAggregator'>").bind("change", function() {
|
|
1056
|
+
return refresh();
|
|
1057
|
+
});
|
|
1058
|
+
_ref2 = opts.aggregators;
|
|
1059
|
+
for (x in _ref2) {
|
|
1060
|
+
if (!__hasProp.call(_ref2, x)) continue;
|
|
1061
|
+
aggregator.append($("<option>").val(x).html(x));
|
|
1062
|
+
}
|
|
1063
|
+
$("<td class='pvtVals'>").appendTo(tr1).append(aggregator).append($("<br>"));
|
|
1064
|
+
$("<td class='pvtAxisContainer pvtHorizList pvtCols'>").appendTo(tr1);
|
|
1065
|
+
tr2 = $("<tr>").appendTo(uiTable);
|
|
1066
|
+
tr2.append($("<td valign='top' class='pvtAxisContainer pvtRows'>"));
|
|
1067
|
+
pivotTable = $("<td valign='top' class='pvtRendererArea'>").appendTo(tr2);
|
|
1068
|
+
if (opts.unusedAttrsVertical === true || unusedAttrsVerticalAutoOverride) {
|
|
1069
|
+
uiTable.find('tr:nth-child(1)').prepend(rendererControl);
|
|
1070
|
+
uiTable.find('tr:nth-child(2)').prepend(colList);
|
|
1071
|
+
} else {
|
|
1072
|
+
uiTable.prepend($("<tr>").append(rendererControl).append(colList));
|
|
1073
|
+
}
|
|
1074
|
+
this.html(uiTable);
|
|
1075
|
+
_ref3 = opts.cols;
|
|
1076
|
+
for (_k = 0, _len2 = _ref3.length; _k < _len2; _k++) {
|
|
1077
|
+
x = _ref3[_k];
|
|
1078
|
+
this.find(".pvtCols").append(this.find(".axis_" + (shownAttributes.indexOf(x))));
|
|
1079
|
+
}
|
|
1080
|
+
_ref4 = opts.rows;
|
|
1081
|
+
for (_l = 0, _len3 = _ref4.length; _l < _len3; _l++) {
|
|
1082
|
+
x = _ref4[_l];
|
|
1083
|
+
this.find(".pvtRows").append(this.find(".axis_" + (shownAttributes.indexOf(x))));
|
|
1084
|
+
}
|
|
1085
|
+
if (opts.aggregatorName != null) {
|
|
1086
|
+
this.find(".pvtAggregator").val(opts.aggregatorName);
|
|
1087
|
+
}
|
|
1088
|
+
if (opts.rendererName != null) {
|
|
1089
|
+
this.find(".pvtRenderer").val(opts.rendererName);
|
|
1090
|
+
}
|
|
1091
|
+
initialRender = true;
|
|
1092
|
+
refreshDelayed = (function(_this) {
|
|
1093
|
+
return function() {
|
|
1094
|
+
var attr, exclusions, natSort, newDropdown, numInputsToProcess, pivotUIOptions, pvtVals, subopts, unusedAttrsContainer, vals, _len4, _m, _n, _ref5;
|
|
1095
|
+
subopts = {
|
|
1096
|
+
derivedAttributes: opts.derivedAttributes,
|
|
1097
|
+
localeStrings: opts.localeStrings,
|
|
1098
|
+
rendererOptions: opts.rendererOptions,
|
|
1099
|
+
cols: [],
|
|
1100
|
+
rows: []
|
|
1101
|
+
};
|
|
1102
|
+
numInputsToProcess = (_ref5 = opts.aggregators[aggregator.val()]([])().numInputs) != null ? _ref5 : 0;
|
|
1103
|
+
vals = [];
|
|
1104
|
+
_this.find(".pvtRows li span.pvtAttr").each(function() {
|
|
1105
|
+
return subopts.rows.push($(this).data("attrName"));
|
|
1106
|
+
});
|
|
1107
|
+
_this.find(".pvtCols li span.pvtAttr").each(function() {
|
|
1108
|
+
return subopts.cols.push($(this).data("attrName"));
|
|
1109
|
+
});
|
|
1110
|
+
_this.find(".pvtVals select.pvtAttrDropdown").each(function() {
|
|
1111
|
+
if (numInputsToProcess === 0) {
|
|
1112
|
+
return $(this).remove();
|
|
1113
|
+
} else {
|
|
1114
|
+
numInputsToProcess--;
|
|
1115
|
+
if ($(this).val() !== "") {
|
|
1116
|
+
return vals.push($(this).val());
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
});
|
|
1120
|
+
if (numInputsToProcess !== 0) {
|
|
1121
|
+
pvtVals = _this.find(".pvtVals");
|
|
1122
|
+
for (x = _m = 0; 0 <= numInputsToProcess ? _m < numInputsToProcess : _m > numInputsToProcess; x = 0 <= numInputsToProcess ? ++_m : --_m) {
|
|
1123
|
+
newDropdown = $("<select class='pvtAttrDropdown'>").append($("<option>")).bind("change", function() {
|
|
1124
|
+
return refresh();
|
|
1125
|
+
});
|
|
1126
|
+
for (_n = 0, _len4 = shownAttributes.length; _n < _len4; _n++) {
|
|
1127
|
+
attr = shownAttributes[_n];
|
|
1128
|
+
newDropdown.append($("<option>").val(attr).text(attr));
|
|
1129
|
+
}
|
|
1130
|
+
pvtVals.append(newDropdown);
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
if (initialRender) {
|
|
1134
|
+
vals = opts.vals;
|
|
1135
|
+
i = 0;
|
|
1136
|
+
_this.find(".pvtVals select.pvtAttrDropdown").each(function() {
|
|
1137
|
+
$(this).val(vals[i]);
|
|
1138
|
+
return i++;
|
|
1139
|
+
});
|
|
1140
|
+
initialRender = false;
|
|
1141
|
+
}
|
|
1142
|
+
subopts.aggregatorName = aggregator.val();
|
|
1143
|
+
subopts.vals = vals;
|
|
1144
|
+
subopts.aggregator = opts.aggregators[aggregator.val()](vals);
|
|
1145
|
+
subopts.renderer = opts.renderers[renderer.val()];
|
|
1146
|
+
exclusions = {};
|
|
1147
|
+
_this.find('input.pvtFilter').not(':checked').each(function() {
|
|
1148
|
+
var filter;
|
|
1149
|
+
filter = $(this).data("filter");
|
|
1150
|
+
if (exclusions[filter[0]] != null) {
|
|
1151
|
+
return exclusions[filter[0]].push(filter[1]);
|
|
1152
|
+
} else {
|
|
1153
|
+
return exclusions[filter[0]] = [filter[1]];
|
|
1154
|
+
}
|
|
1155
|
+
});
|
|
1156
|
+
subopts.filter = function(record) {
|
|
1157
|
+
var excludedItems, _ref6;
|
|
1158
|
+
if (!opts.filter(record)) {
|
|
1159
|
+
return false;
|
|
1160
|
+
}
|
|
1161
|
+
for (k in exclusions) {
|
|
1162
|
+
excludedItems = exclusions[k];
|
|
1163
|
+
if (_ref6 = "" + record[k], __indexOf.call(excludedItems, _ref6) >= 0) {
|
|
1164
|
+
return false;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
return true;
|
|
1168
|
+
};
|
|
1169
|
+
pivotTable.pivot(input, subopts);
|
|
1170
|
+
pivotUIOptions = $.extend(opts, {
|
|
1171
|
+
cols: subopts.cols,
|
|
1172
|
+
rows: subopts.rows,
|
|
1173
|
+
vals: vals,
|
|
1174
|
+
exclusions: exclusions,
|
|
1175
|
+
aggregatorName: aggregator.val(),
|
|
1176
|
+
rendererName: renderer.val()
|
|
1177
|
+
});
|
|
1178
|
+
_this.data("pivotUIOptions", pivotUIOptions);
|
|
1179
|
+
if (opts.autoSortUnusedAttrs) {
|
|
1180
|
+
natSort = $.pivotUtilities.naturalSort;
|
|
1181
|
+
unusedAttrsContainer = _this.find("td.pvtUnused.pvtAxisContainer");
|
|
1182
|
+
$(unusedAttrsContainer).children("li").sort(function(a, b) {
|
|
1183
|
+
return natSort($(a).text(), $(b).text());
|
|
1184
|
+
}).appendTo(unusedAttrsContainer);
|
|
1185
|
+
}
|
|
1186
|
+
pivotTable.css("opacity", 1);
|
|
1187
|
+
if (opts.onRefresh != null) {
|
|
1188
|
+
return opts.onRefresh(pivotUIOptions);
|
|
1189
|
+
}
|
|
1190
|
+
};
|
|
1191
|
+
})(this);
|
|
1192
|
+
refresh = (function(_this) {
|
|
1193
|
+
return function() {
|
|
1194
|
+
pivotTable.css("opacity", 0.5);
|
|
1195
|
+
return setTimeout(refreshDelayed, 10);
|
|
1196
|
+
};
|
|
1197
|
+
})(this);
|
|
1198
|
+
refresh();
|
|
1199
|
+
this.find(".pvtAxisContainer").sortable({
|
|
1200
|
+
update: function(e, ui) {
|
|
1201
|
+
if (ui.sender == null) {
|
|
1202
|
+
return refresh();
|
|
1203
|
+
}
|
|
1204
|
+
},
|
|
1205
|
+
connectWith: this.find(".pvtAxisContainer"),
|
|
1206
|
+
items: 'li',
|
|
1207
|
+
placeholder: 'pvtPlaceholder'
|
|
1208
|
+
});
|
|
1209
|
+
} catch (_error) {
|
|
1210
|
+
e = _error;
|
|
1211
|
+
if (typeof console !== "undefined" && console !== null) {
|
|
1212
|
+
console.error(e.stack);
|
|
1213
|
+
}
|
|
1214
|
+
this.html(opts.localeStrings.uiRenderError);
|
|
1215
|
+
}
|
|
1216
|
+
return this;
|
|
1217
|
+
};
|
|
1218
|
+
|
|
1219
|
+
/*
|
|
1220
|
+
Heatmap post-processing
|
|
1221
|
+
*/
|
|
1222
|
+
$.fn.heatmap = function(scope) {
|
|
1223
|
+
var colorGen, heatmapper, i, j, numCols, numRows, _i, _j;
|
|
1224
|
+
if (scope == null) {
|
|
1225
|
+
scope = "heatmap";
|
|
1226
|
+
}
|
|
1227
|
+
numRows = this.data("numrows");
|
|
1228
|
+
numCols = this.data("numcols");
|
|
1229
|
+
colorGen = function(color, min, max) {
|
|
1230
|
+
var hexGen;
|
|
1231
|
+
hexGen = (function() {
|
|
1232
|
+
switch (color) {
|
|
1233
|
+
case "red":
|
|
1234
|
+
return function(hex) {
|
|
1235
|
+
return "ff" + hex + hex;
|
|
1236
|
+
};
|
|
1237
|
+
case "green":
|
|
1238
|
+
return function(hex) {
|
|
1239
|
+
return "" + hex + "ff" + hex;
|
|
1240
|
+
};
|
|
1241
|
+
case "blue":
|
|
1242
|
+
return function(hex) {
|
|
1243
|
+
return "" + hex + hex + "ff";
|
|
1244
|
+
};
|
|
1245
|
+
}
|
|
1246
|
+
})();
|
|
1247
|
+
return function(x) {
|
|
1248
|
+
var hex, intensity;
|
|
1249
|
+
intensity = 255 - Math.round(255 * (x - min) / (max - min));
|
|
1250
|
+
hex = intensity.toString(16).split(".")[0];
|
|
1251
|
+
if (hex.length === 1) {
|
|
1252
|
+
hex = 0 + hex;
|
|
1253
|
+
}
|
|
1254
|
+
return hexGen(hex);
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1257
|
+
heatmapper = (function(_this) {
|
|
1258
|
+
return function(scope, color) {
|
|
1259
|
+
var colorFor, forEachCell, values;
|
|
1260
|
+
forEachCell = function(f) {
|
|
1261
|
+
return _this.find(scope).each(function() {
|
|
1262
|
+
var x;
|
|
1263
|
+
x = $(this).data("value");
|
|
1264
|
+
if ((x != null) && isFinite(x)) {
|
|
1265
|
+
return f(x, $(this));
|
|
1266
|
+
}
|
|
1267
|
+
});
|
|
1268
|
+
};
|
|
1269
|
+
values = [];
|
|
1270
|
+
forEachCell(function(x) {
|
|
1271
|
+
return values.push(x);
|
|
1272
|
+
});
|
|
1273
|
+
colorFor = colorGen(color, Math.min.apply(Math, values), Math.max.apply(Math, values));
|
|
1274
|
+
return forEachCell(function(x, elem) {
|
|
1275
|
+
return elem.css("background-color", "#" + colorFor(x));
|
|
1276
|
+
});
|
|
1277
|
+
};
|
|
1278
|
+
})(this);
|
|
1279
|
+
switch (scope) {
|
|
1280
|
+
case "heatmap":
|
|
1281
|
+
heatmapper(".pvtVal", "red");
|
|
1282
|
+
break;
|
|
1283
|
+
case "rowheatmap":
|
|
1284
|
+
for (i = _i = 0; 0 <= numRows ? _i < numRows : _i > numRows; i = 0 <= numRows ? ++_i : --_i) {
|
|
1285
|
+
heatmapper(".pvtVal.row" + i, "red");
|
|
1286
|
+
}
|
|
1287
|
+
break;
|
|
1288
|
+
case "colheatmap":
|
|
1289
|
+
for (j = _j = 0; 0 <= numCols ? _j < numCols : _j > numCols; j = 0 <= numCols ? ++_j : --_j) {
|
|
1290
|
+
heatmapper(".pvtVal.col" + j, "red");
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
heatmapper(".pvtTotal.rowTotal", "red");
|
|
1294
|
+
heatmapper(".pvtTotal.colTotal", "red");
|
|
1295
|
+
return this;
|
|
1296
|
+
};
|
|
1297
|
+
|
|
1298
|
+
/*
|
|
1299
|
+
Barchart post-processing
|
|
1300
|
+
*/
|
|
1301
|
+
return $.fn.barchart = function() {
|
|
1302
|
+
var barcharter, i, numCols, numRows, _i;
|
|
1303
|
+
numRows = this.data("numrows");
|
|
1304
|
+
numCols = this.data("numcols");
|
|
1305
|
+
barcharter = (function(_this) {
|
|
1306
|
+
return function(scope) {
|
|
1307
|
+
var forEachCell, max, scaler, values;
|
|
1308
|
+
forEachCell = function(f) {
|
|
1309
|
+
return _this.find(scope).each(function() {
|
|
1310
|
+
var x;
|
|
1311
|
+
x = $(this).data("value");
|
|
1312
|
+
if ((x != null) && isFinite(x)) {
|
|
1313
|
+
return f(x, $(this));
|
|
1314
|
+
}
|
|
1315
|
+
});
|
|
1316
|
+
};
|
|
1317
|
+
values = [];
|
|
1318
|
+
forEachCell(function(x) {
|
|
1319
|
+
return values.push(x);
|
|
1320
|
+
});
|
|
1321
|
+
max = Math.max.apply(Math, values);
|
|
1322
|
+
scaler = function(x) {
|
|
1323
|
+
return 100 * x / (1.4 * max);
|
|
1324
|
+
};
|
|
1325
|
+
return forEachCell(function(x, elem) {
|
|
1326
|
+
var text, wrapper;
|
|
1327
|
+
text = elem.text();
|
|
1328
|
+
wrapper = $("<div>").css({
|
|
1329
|
+
"position": "relative",
|
|
1330
|
+
"height": "55px"
|
|
1331
|
+
});
|
|
1332
|
+
wrapper.append($("<div>").css({
|
|
1333
|
+
"position": "absolute",
|
|
1334
|
+
"bottom": 0,
|
|
1335
|
+
"left": 0,
|
|
1336
|
+
"right": 0,
|
|
1337
|
+
"height": scaler(x) + "%",
|
|
1338
|
+
"background-color": "gray"
|
|
1339
|
+
}));
|
|
1340
|
+
wrapper.append($("<div>").text(text).css({
|
|
1341
|
+
"position": "relative",
|
|
1342
|
+
"padding-left": "5px",
|
|
1343
|
+
"padding-right": "5px"
|
|
1344
|
+
}));
|
|
1345
|
+
return elem.css({
|
|
1346
|
+
"padding": 0,
|
|
1347
|
+
"padding-top": "5px",
|
|
1348
|
+
"text-align": "center"
|
|
1349
|
+
}).html(wrapper);
|
|
1350
|
+
});
|
|
1351
|
+
};
|
|
1352
|
+
})(this);
|
|
1353
|
+
for (i = _i = 0; 0 <= numRows ? _i < numRows : _i > numRows; i = 0 <= numRows ? ++_i : --_i) {
|
|
1354
|
+
barcharter(".pvtVal.row" + i);
|
|
1355
|
+
}
|
|
1356
|
+
barcharter(".pvtTotal.colTotal");
|
|
1357
|
+
return this;
|
|
1358
|
+
};
|
|
1359
|
+
});
|
|
1360
|
+
|
|
1361
|
+
}).call(this);
|
|
1362
|
+
|
|
1363
|
+
//# sourceMappingURL=pivot.js.map
|