@opentrainticketing/netex-deckplan-editor 1.0.1 → 1.0.3

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.
Files changed (37) hide show
  1. package/dist/netex-deckplan-editor.es.js +542 -548
  2. package/dist/netex-deckplan-editor.umd.js +14 -14
  3. package/package.json +1 -1
  4. package/dist/app/App.vue.d.ts +0 -4
  5. package/dist/app/main.d.ts +0 -1
  6. package/dist/components/DeckVisualization.vue.d.ts +0 -46
  7. package/dist/components/DeckplanEditor.vue.d.ts +0 -8
  8. package/dist/components/ElementCatalog.vue.d.ts +0 -9
  9. package/dist/components/ObjectProperties.vue.d.ts +0 -19
  10. package/dist/components/WagonVisualization.vue.d.ts +0 -25
  11. package/dist/components/XmlViewer.vue.d.ts +0 -23
  12. package/dist/components/index.d.ts +0 -3
  13. package/dist/helpers/parser.d.ts +0 -2
  14. package/dist/index.d.ts +0 -8
  15. package/dist/types/netex/actualVehicleEquipment.d.ts +0 -28
  16. package/dist/types/netex/centroid.d.ts +0 -11
  17. package/dist/types/netex/deck.d.ts +0 -82
  18. package/dist/types/netex/deckEntranceCouple.d.ts +0 -25
  19. package/dist/types/netex/deckEntranceUsage.d.ts +0 -31
  20. package/dist/types/netex/deckLevel.d.ts +0 -27
  21. package/dist/types/netex/deckPlan.d.ts +0 -32
  22. package/dist/types/netex/deckSpaceCapacity.d.ts +0 -18
  23. package/dist/types/netex/equipment.d.ts +0 -12
  24. package/dist/types/netex/general.d.ts +0 -30
  25. package/dist/types/netex/luggageSpot.d.ts +0 -50
  26. package/dist/types/netex/otherDeckSpace.d.ts +0 -33
  27. package/dist/types/netex/passengerEntrance.d.ts +0 -114
  28. package/dist/types/netex/passengerSpace.d.ts +0 -109
  29. package/dist/types/netex/passengerSpot.d.ts +0 -107
  30. package/dist/types/netex/polygon.d.ts +0 -5
  31. package/dist/types/netex/serviceFacilitySet.d.ts +0 -12
  32. package/dist/types/netex/spotColumn.d.ts +0 -24
  33. package/dist/types/netex/spotRow.d.ts +0 -24
  34. package/dist/types/netex/stopAffinity.d.ts +0 -1
  35. package/dist/types/netex/validityCondition.d.ts +0 -27
  36. package/dist/types/view/seats.d.ts +0 -8
  37. package/dist/webcomponent/webcomponent.d.ts +0 -22
@@ -1,114 +0,0 @@
1
- import { ActualVehicleEquipment } from './actualVehicleEquipment';
2
- import { Centroid as GeneralCentroid } from './centroid';
3
- import { Name as GeneralName } from './general';
4
- export declare class PassengerEntrance {
5
- static xmlTagName: string;
6
- attr_id: string;
7
- attr_version: string;
8
- Name: GeneralName | undefined;
9
- Label: string | undefined;
10
- Width: number | undefined;
11
- Height: number | undefined;
12
- actualVehicleEquipments: ActualVehicleEquipment[];
13
- PublicUse: boolean | undefined;
14
- VehicleSide: 'rightSide' | 'leftSide' | 'front' | 'back' | undefined;
15
- SequenceFromFront: number | undefined;
16
- HeightFromGround: number | undefined;
17
- DeckEntranceType: 'external' | 'internal' | undefined;
18
- IsEmergencyExit: boolean | undefined;
19
- HasDoor: boolean | undefined;
20
- IsAutomatic: boolean | undefined;
21
- Centroid: GeneralCentroid | undefined;
22
- constructor({ attr_id, attr_version, Name, Label, Width, Height, actualVehicleEquipments, PublicUse, VehicleSide, SequenceFromFront, HeightFromGround, DeckEntranceType, IsEmergencyExit, HasDoor, IsAutomatic, Centroid, }: {
23
- attr_id: string;
24
- attr_version: string;
25
- Name: {
26
- text_value: string;
27
- };
28
- Label: {
29
- text_value: string;
30
- } | undefined;
31
- Width: {
32
- text_value: number;
33
- } | undefined;
34
- Height: {
35
- text_value: number;
36
- } | undefined;
37
- actualVehicleEquipments: {
38
- ActualVehicleEquipment: any[];
39
- };
40
- PublicUse: {
41
- text_value: boolean;
42
- } | undefined;
43
- VehicleSide: {
44
- text_value: 'rightSide' | 'leftSide' | 'front' | 'back';
45
- } | undefined;
46
- SequenceFromFront: {
47
- text_value: number;
48
- } | undefined;
49
- HeightFromGround: {
50
- text_value: number;
51
- } | undefined;
52
- DeckEntranceType: {
53
- text_value: 'external' | 'internal';
54
- } | undefined;
55
- IsEmergencyExit: {
56
- text_value: boolean;
57
- } | undefined;
58
- HasDoor: {
59
- text_value: boolean;
60
- } | undefined;
61
- IsAutomatic: {
62
- text_value: boolean;
63
- } | undefined;
64
- Centroid: any | undefined;
65
- });
66
- toXML(): {
67
- attr_id: string;
68
- attr_version: string;
69
- Name: {
70
- text_value: string;
71
- } | undefined;
72
- Label: string | undefined;
73
- Width: number | undefined;
74
- Height: number | undefined;
75
- actualVehicleEquipments: {
76
- ActualVehicleEquipment: object[];
77
- };
78
- PublicUse: boolean | undefined;
79
- VehicleSide: "rightSide" | "leftSide" | "front" | "back" | undefined;
80
- SequenceFromFront: number | undefined;
81
- HeightFromGround: number | undefined;
82
- DeckEntranceType: "external" | "internal" | undefined;
83
- IsEmergencyExit: boolean | undefined;
84
- HasDoor: boolean | undefined;
85
- IsAutomatic: boolean | undefined;
86
- Centroid: {
87
- Location: {
88
- pos: string;
89
- };
90
- } | undefined;
91
- };
92
- getShape(scale: number, deckLength: number, deckWidth: number): {
93
- x: number;
94
- y: number;
95
- width: number;
96
- height: number;
97
- fill: string;
98
- stroke: string;
99
- strokeWidth: number;
100
- draggable: boolean;
101
- };
102
- }
103
- export declare class PassengerEntranceRef {
104
- attr_ref: string;
105
- attr_version: string;
106
- constructor({ attr_ref, attr_version }: {
107
- attr_ref: string;
108
- attr_version: string;
109
- });
110
- toXML(): {
111
- attr_ref: string;
112
- attr_version: string;
113
- };
114
- }
@@ -1,109 +0,0 @@
1
- import { ActualVehicleEquipment } from './actualVehicleEquipment';
2
- import { DeckEntranceCouple } from './deckEntranceCouple';
3
- import { DeckEntranceUsage } from './deckEntranceUsage';
4
- import { DeckSpaceCapacity } from './deckSpaceCapacity';
5
- import { Name as GeneralName } from './general';
6
- import { LuggageSpot, LuggageSpotRef } from './luggageSpot';
7
- import { PassengerEntrance } from './passengerEntrance';
8
- import { PassengerSpot, PassengerSpotRef } from './passengerSpot';
9
- import { Polygon as GeneralPolygon } from './polygon';
10
- import { Centroid as GeneralCentroid } from './centroid';
11
- import { ServiceFacilitySetRef as GeneralServiceFacilitySetRef } from './serviceFacilitySet';
12
- export declare class PassengerSpace {
13
- static xmlTagName: string;
14
- attr_id: string;
15
- attr_version: string;
16
- Name: GeneralName | undefined;
17
- SmokingAllowed: boolean | undefined;
18
- StandingAllowed: boolean | undefined;
19
- PassengerSpaceType: 'seatingArea' | 'passengerCabin' | 'vehicleArea' | 'luggageStore' | 'corridor' | 'restaurant' | 'toilet' | 'bathroom' | 'other' | undefined;
20
- passengerSpots: (PassengerSpot | PassengerSpotRef)[] | undefined;
21
- luggageSpots: (LuggageSpot | LuggageSpotRef)[] | undefined;
22
- deckEntrances: PassengerEntrance[] | undefined;
23
- deckEntranceUsage: DeckEntranceUsage[] | undefined;
24
- deckEntranceCouples: DeckEntranceCouple[] | undefined;
25
- deckSpaceCapacities: DeckSpaceCapacity[] | undefined;
26
- actualVehicleEquipments: ActualVehicleEquipment[] | undefined;
27
- ServiceFacilitySetRef: GeneralServiceFacilitySetRef | undefined;
28
- Centroid: GeneralCentroid | undefined;
29
- Polygon: GeneralPolygon | undefined;
30
- PublicUse: boolean | undefined;
31
- TotalCapacity: number | undefined;
32
- FareClass: string | undefined;
33
- AirConditioned: boolean | undefined;
34
- constructor({ attr_id, attr_version, Name, SmokingAllowed, StandingAllowed, PassengerSpaceType, passengerSpots, luggageSpots, deckEntrances, deckEntranceUsage, deckEntranceCouples, deckSpaceCapacities, actualVehicleEquipments, ServiceFacilitySetRef, Centroid, Polygon, PublicUse, TotalCapacity, FareClass, AirConditioned, }: {
35
- attr_id: string;
36
- attr_version: string;
37
- Name: GeneralName | undefined;
38
- SmokingAllowed: boolean | undefined;
39
- StandingAllowed: boolean | undefined;
40
- PassengerSpaceType: 'seatingArea' | 'passengerCabin' | 'vehicleArea' | 'luggageStore' | 'corridor' | 'restaurant' | 'toilet' | 'bathroom' | 'other' | undefined;
41
- passengerSpots: {
42
- PassengerSpot: any[];
43
- PassengerSpotRef: any[];
44
- } | undefined;
45
- luggageSpots: {
46
- LuggageSpot: any[];
47
- LuggageSpotRef: any[];
48
- } | undefined;
49
- deckEntrances: {
50
- PassengerEntrance: any[];
51
- } | undefined;
52
- deckEntranceUsage: {
53
- DeckEntranceUsage: any[];
54
- } | undefined;
55
- deckEntranceCouples: {
56
- DeckEntranceCouple: any[];
57
- } | undefined;
58
- deckSpaceCapacities: {
59
- DeckSpaceCapacity: any[];
60
- } | undefined;
61
- actualVehicleEquipments: {
62
- ActualVehicleEquipment: any[];
63
- } | undefined;
64
- ServiceFacilitySetRef: any | undefined;
65
- Centroid: any | undefined;
66
- Polygon: any | undefined;
67
- PublicUse: {
68
- "text_value": boolean;
69
- } | undefined;
70
- TotalCapacity: {
71
- "text_value": number;
72
- } | undefined;
73
- FareClass: {
74
- "text_value": string;
75
- } | undefined;
76
- AirConditioned: {
77
- "text_value": boolean;
78
- } | undefined;
79
- });
80
- toXML(): {
81
- attr_id: string;
82
- attr_version: string;
83
- Name: GeneralName | undefined;
84
- SmokingAllowed: boolean | undefined;
85
- StandingAllowed: boolean | undefined;
86
- PassengerSpaceType: "seatingArea" | "passengerCabin" | "vehicleArea" | "luggageStore" | "corridor" | "restaurant" | "toilet" | "bathroom" | "other" | undefined;
87
- passengerSpots: any;
88
- luggageSpots: any;
89
- deckEntrances: any;
90
- deckEntranceUsage: any;
91
- deckEntranceCouples: any;
92
- deckSpaceCapacities: any;
93
- actualVehicleEquipments: any;
94
- ServiceFacilitySetRef: {
95
- attr_ref: string;
96
- attr_version: string;
97
- } | undefined;
98
- Centroid: {
99
- Location: {
100
- pos: string;
101
- };
102
- } | undefined;
103
- Polygon: object | undefined;
104
- PublicUse: boolean | undefined;
105
- TotalCapacity: number | undefined;
106
- FareClass: string | undefined;
107
- AirConditioned: boolean | undefined;
108
- };
109
- }
@@ -1,107 +0,0 @@
1
- import { ActualVehicleEquipment } from './actualVehicleEquipment';
2
- import { SpotColumnRef as GeneralSpotColumnRef } from './spotColumn';
3
- import { Centroid as GeneralCentroid } from './centroid';
4
- import { SpotRowRef as GeneralSpotRowRef } from './spotRow';
5
- import { PassengerSpotAvailability } from '../view/seats';
6
- export declare class PassengerSpot {
7
- static xmlTagName: string;
8
- attr_id: string;
9
- attr_version: string;
10
- Label: string | undefined;
11
- Orientation: 'backwards' | 'forwards' | 'leftwards' | 'rightwards' | undefined;
12
- actualVehicleEquipments: ActualVehicleEquipment[] | undefined;
13
- SpotColumnRef: GeneralSpotColumnRef | undefined;
14
- SpotRowRef: GeneralSpotRowRef | undefined;
15
- ByWindow: boolean | undefined;
16
- ByAisle: boolean | undefined;
17
- HasPower: boolean | undefined;
18
- Centroid: GeneralCentroid | undefined;
19
- Width: number;
20
- Length: number;
21
- availability: undefined | PassengerSpotAvailability;
22
- constructor({ attr_id, attr_version, Label, Orientation, actualVehicleEquipments, SpotColumnRef, SpotRowRef, ByWindow, ByAisle, HasPower, Centroid, Width, Length, }: {
23
- attr_id: string;
24
- attr_version: string;
25
- Label: string;
26
- Orientation: 'backwards' | 'forwards' | 'leftwards' | 'rightwards';
27
- actualVehicleEquipments: any[];
28
- SpotColumnRef: any;
29
- SpotRowRef: any;
30
- ByWindow: boolean | undefined;
31
- ByAisle: boolean | undefined;
32
- HasPower: boolean | undefined;
33
- Centroid: any | undefined;
34
- Width: number | undefined;
35
- Length: number | undefined;
36
- });
37
- toXML(): {
38
- attr_id: string;
39
- attr_version: string;
40
- Label: {
41
- text_value: string;
42
- } | undefined;
43
- Orientation: {
44
- text_value: "backwards" | "forwards" | "leftwards" | "rightwards";
45
- } | undefined;
46
- actualVehicleEquipments: any;
47
- SpotColumnRef: {
48
- attr_ref: string;
49
- attr_version: string;
50
- } | undefined;
51
- SpotRowRef: {
52
- attr_ref: string;
53
- attr_version: string;
54
- } | undefined;
55
- ByWindow: {
56
- text_value: true;
57
- } | undefined;
58
- ByAisle: {
59
- text_value: true;
60
- } | undefined;
61
- HasPower: {
62
- text_value: true;
63
- } | undefined;
64
- Centroid: {
65
- Location: {
66
- pos: string;
67
- };
68
- } | undefined;
69
- Width: number;
70
- Length: number;
71
- };
72
- getFillColor(): "lightred" | "lightgreen" | "lightgray" | "black" | "lightyellow";
73
- getStrokeColor(): "black" | "red" | "green" | "gray" | "#121212";
74
- getShape(scale: number): {
75
- x: number;
76
- y: number;
77
- width: number;
78
- height: number;
79
- fill: string;
80
- stroke: string;
81
- strokeWidth: number;
82
- cornerRadius: number;
83
- draggable: boolean;
84
- } | {
85
- x: number;
86
- y: number;
87
- width: number;
88
- height: number;
89
- fill: string;
90
- draggable: boolean;
91
- stroke?: undefined;
92
- strokeWidth?: undefined;
93
- cornerRadius?: undefined;
94
- };
95
- }
96
- export declare class PassengerSpotRef {
97
- attr_ref: string;
98
- attr_version: string;
99
- constructor({ attr_ref, attr_version }: {
100
- attr_ref: string;
101
- attr_version: string;
102
- });
103
- toXML(): {
104
- attr_ref: string;
105
- attr_version: string;
106
- };
107
- }
@@ -1,5 +0,0 @@
1
- export declare class Polygon {
2
- value: object;
3
- constructor(value: object);
4
- toXML(): object;
5
- }
@@ -1,12 +0,0 @@
1
- export declare class ServiceFacilitySetRef {
2
- attr_ref: string;
3
- attr_version: string;
4
- constructor({ attr_ref, attr_version }: {
5
- attr_ref: string;
6
- attr_version: string;
7
- });
8
- toXML(): {
9
- attr_ref: string;
10
- attr_version: string;
11
- };
12
- }
@@ -1,24 +0,0 @@
1
- export declare class SpotColumn {
2
- attr_id: string;
3
- label: string;
4
- constructor({ attr_id, Label }: {
5
- attr_id: string;
6
- Label: string;
7
- });
8
- toXML(): {
9
- attr_id: string;
10
- label: string;
11
- };
12
- }
13
- export declare class SpotColumnRef {
14
- attr_ref: string;
15
- attr_version: string;
16
- constructor({ attr_ref, attr_version }: {
17
- attr_ref: string;
18
- attr_version: string;
19
- });
20
- toXML(): {
21
- attr_ref: string;
22
- attr_version: string;
23
- };
24
- }
@@ -1,24 +0,0 @@
1
- export declare class SpotRow {
2
- attr_id: string;
3
- label: string;
4
- constructor({ attr_id, Label }: {
5
- attr_id: string;
6
- Label: string;
7
- });
8
- toXML(): {
9
- attr_id: string;
10
- label: string;
11
- };
12
- }
13
- export declare class SpotRowRef {
14
- attr_ref: string;
15
- attr_version: string;
16
- constructor({ attr_ref, attr_version }: {
17
- attr_ref: string;
18
- attr_version: string;
19
- });
20
- toXML(): {
21
- attr_ref: string;
22
- attr_version: string;
23
- };
24
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,27 +0,0 @@
1
- export declare class ValidityCondition {
2
- attr_id: string;
3
- attr_version: string;
4
- Name: string;
5
- constructor({ attr_id, attr_version, Name }: {
6
- attr_id: string;
7
- attr_version: string;
8
- Name: string;
9
- });
10
- toXML(): {
11
- attr_id: string;
12
- Name: string;
13
- attr_version: string;
14
- };
15
- }
16
- export declare class ValidityConditionRef {
17
- attr_ref: string;
18
- attr_version: string;
19
- constructor({ attr_ref, attr_version }: {
20
- attr_ref: string;
21
- attr_version: string;
22
- });
23
- toXML(): {
24
- attr_ref: string;
25
- attr_version: string;
26
- };
27
- }
@@ -1,8 +0,0 @@
1
- export declare enum PassengerSpotAvailability {
2
- Occupied = "Occupied",
3
- Selected = "Selected",
4
- Filtered = "Filtered",
5
- Defect = "Defect",
6
- Undefined = "Undefined"
7
- }
8
- export type Availability = Record<string, PassengerSpotAvailability>;
@@ -1,22 +0,0 @@
1
- declare const _default: {
2
- DeckplanEditorElement: import("vue").VueElementConstructor<{}>;
3
- DeckVisualizationElement: import("vue").VueElementConstructor<import("vue").ExtractPropTypes<{
4
- deck: {
5
- type: import("vue").PropType<import("../types/netex/deck").Deck>;
6
- required: true;
7
- };
8
- availability: {
9
- type: import("vue").PropType<import("../types/view/seats").Availability>;
10
- };
11
- scale: {
12
- type: NumberConstructor;
13
- required: true;
14
- };
15
- selectedElements: {
16
- type: import("vue").PropType<any[]>;
17
- default: () => never[];
18
- };
19
- }>>;
20
- parseNeTEx: (xml: string) => import("../types/netex/deckPlan").DeckPlan[];
21
- };
22
- export default _default;