@opentrainticketing/netex-deckplan-editor 1.0.7 → 1.0.9

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 (41) hide show
  1. package/dist/app/App.vue.d.ts +4 -0
  2. package/dist/app/main.d.ts +1 -0
  3. package/dist/components/editor/DeckVisualization.vue.d.ts +46 -0
  4. package/dist/components/editor/DeckplanEditor.vue.d.ts +8 -0
  5. package/dist/components/editor/ElementCatalog.vue.d.ts +9 -0
  6. package/dist/components/editor/ObjectProperties.vue.d.ts +19 -0
  7. package/dist/components/editor/WagonVisualization.vue.d.ts +25 -0
  8. package/dist/components/editor/XmlViewer.vue.d.ts +23 -0
  9. package/dist/components/editor/index.d.ts +3 -0
  10. package/dist/components/renderer/DeckRendering.vue.d.ts +44 -0
  11. package/dist/components/renderer/index.d.ts +1 -0
  12. package/dist/helpers/parser.d.ts +2 -0
  13. package/dist/index.d.ts +12 -0
  14. package/dist/netex-deckplan-editor-vue.es.js +2662 -0
  15. package/dist/netex-deckplan-editor.css +1 -0
  16. package/dist/netex-deckplan-editor.es.js +3183 -3080
  17. package/dist/netex-deckplan-editor.umd.js +25 -15
  18. package/dist/types/netex/actualVehicleEquipment.d.ts +28 -0
  19. package/dist/types/netex/centroid.d.ts +11 -0
  20. package/dist/types/netex/deck.d.ts +70 -0
  21. package/dist/types/netex/deckEntranceCouple.d.ts +25 -0
  22. package/dist/types/netex/deckEntranceUsage.d.ts +31 -0
  23. package/dist/types/netex/deckLevel.d.ts +27 -0
  24. package/dist/types/netex/deckPlan.d.ts +32 -0
  25. package/dist/types/netex/deckSpaceCapacity.d.ts +18 -0
  26. package/dist/types/netex/equipment.d.ts +12 -0
  27. package/dist/types/netex/general.d.ts +30 -0
  28. package/dist/types/netex/luggageSpot.d.ts +50 -0
  29. package/dist/types/netex/otherDeckSpace.d.ts +33 -0
  30. package/dist/types/netex/passengerEntrance.d.ts +114 -0
  31. package/dist/types/netex/passengerSpace.d.ts +109 -0
  32. package/dist/types/netex/passengerSpot.d.ts +106 -0
  33. package/dist/types/netex/polygon.d.ts +5 -0
  34. package/dist/types/netex/serviceFacilitySet.d.ts +12 -0
  35. package/dist/types/netex/spotColumn.d.ts +24 -0
  36. package/dist/types/netex/spotRow.d.ts +24 -0
  37. package/dist/types/netex/stopAffinity.d.ts +1 -0
  38. package/dist/types/netex/validityCondition.d.ts +27 -0
  39. package/dist/types/view/seats.d.ts +8 -0
  40. package/dist/webcomponent/webcomponent.d.ts +22 -0
  41. package/package.json +1 -1
@@ -0,0 +1,106 @@
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
+ getClasses(): string;
73
+ getShape(scale: number): {
74
+ x: number;
75
+ y: number;
76
+ width: number;
77
+ height: number;
78
+ fill: string;
79
+ stroke: string;
80
+ strokeWidth: number;
81
+ cornerRadius: number;
82
+ draggable: boolean;
83
+ } | {
84
+ x: number;
85
+ y: number;
86
+ width: number;
87
+ height: number;
88
+ fill: string;
89
+ draggable: boolean;
90
+ stroke?: undefined;
91
+ strokeWidth?: undefined;
92
+ cornerRadius?: undefined;
93
+ };
94
+ }
95
+ export declare class PassengerSpotRef {
96
+ attr_ref: string;
97
+ attr_version: string;
98
+ constructor({ attr_ref, attr_version }: {
99
+ attr_ref: string;
100
+ attr_version: string;
101
+ });
102
+ toXML(): {
103
+ attr_ref: string;
104
+ attr_version: string;
105
+ };
106
+ }
@@ -0,0 +1,5 @@
1
+ export declare class Polygon {
2
+ value: object;
3
+ constructor(value: object);
4
+ toXML(): object;
5
+ }
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,24 @@
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
+ }
@@ -0,0 +1,24 @@
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
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,27 @@
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
+ }
@@ -0,0 +1,8 @@
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>;
@@ -0,0 +1,22 @@
1
+ declare const _default: {
2
+ DeckplanEditorElement: import("vue").VueElementConstructor<{}>;
3
+ DeckRenderingElement: import("vue").VueElementConstructor<import("vue").ExtractPropTypes<{
4
+ deck: {
5
+ type: import("vue").PropType<import("../types/netex/deck").Deck>;
6
+ required: true;
7
+ };
8
+ scale: {
9
+ type: NumberConstructor;
10
+ required: true;
11
+ };
12
+ availability: {
13
+ type: import("vue").PropType<import("..").Availability>;
14
+ };
15
+ vertical: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ }>>;
20
+ parseNeTEx: (xml: string) => import("../types/netex/deckPlan").DeckPlan[];
21
+ };
22
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentrainticketing/netex-deckplan-editor",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/netex-deckplan-editor-vue.es.js",