@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentrainticketing/netex-deckplan-editor",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/netex-deckplan-editor-vue.es.js",
@@ -1,4 +0,0 @@
1
- import '@/assets/lib.css';
2
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3
- declare const _default: typeof __VLS_export;
4
- export default _default;
@@ -1 +0,0 @@
1
- export {};
@@ -1,46 +0,0 @@
1
- import type { Deck } from '@/types/netex/deck';
2
- import type { PropType } from 'vue';
3
- import { type Availability } from '@/types/view/seats';
4
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
- deck: {
6
- type: PropType<Deck>;
7
- required: true;
8
- };
9
- availability: {
10
- type: PropType<Availability>;
11
- };
12
- scale: {
13
- type: NumberConstructor;
14
- required: true;
15
- };
16
- selectedElements: {
17
- type: PropType<any[]>;
18
- default: () => never[];
19
- };
20
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
- select: (...args: any[]) => void;
22
- "area-select": (...args: any[]) => void;
23
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
- deck: {
25
- type: PropType<Deck>;
26
- required: true;
27
- };
28
- availability: {
29
- type: PropType<Availability>;
30
- };
31
- scale: {
32
- type: NumberConstructor;
33
- required: true;
34
- };
35
- selectedElements: {
36
- type: PropType<any[]>;
37
- default: () => never[];
38
- };
39
- }>> & Readonly<{
40
- onSelect?: ((...args: any[]) => any) | undefined;
41
- "onArea-select"?: ((...args: any[]) => any) | undefined;
42
- }>, {
43
- selectedElements: any[];
44
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
45
- declare const _default: typeof __VLS_export;
46
- export default _default;
@@ -1,8 +0,0 @@
1
- declare function exportXml(): string | null;
2
- declare function loadXml(xml: string): void;
3
- declare const __VLS_export: import("vue").DefineComponent<{}, {
4
- exportXml: typeof exportXml;
5
- loadXml: typeof loadXml;
6
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
- declare const _default: typeof __VLS_export;
8
- export default _default;
@@ -1,9 +0,0 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
- "add-seat": (...args: any[]) => void;
3
- "add-door": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
5
- "onAdd-seat"?: ((...args: any[]) => any) | undefined;
6
- "onAdd-door"?: ((...args: any[]) => any) | undefined;
7
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
- declare const _default: typeof __VLS_export;
9
- export default _default;
@@ -1,19 +0,0 @@
1
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- element: {
3
- type: ObjectConstructor;
4
- default: null;
5
- };
6
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- delete: (...args: any[]) => void;
8
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
- element: {
10
- type: ObjectConstructor;
11
- default: null;
12
- };
13
- }>> & Readonly<{
14
- onDelete?: ((...args: any[]) => any) | undefined;
15
- }>, {
16
- element: Record<string, any>;
17
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
18
- declare const _default: typeof __VLS_export;
19
- export default _default;
@@ -1,25 +0,0 @@
1
- import { DeckPlan } from '@/types/netex/deckPlan';
2
- import type { PropType } from 'vue';
3
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
- deckPlans: {
5
- type: PropType<DeckPlan[]>;
6
- required: false;
7
- };
8
- selectedElements: {
9
- type: PropType<any[]>;
10
- default: () => never[];
11
- };
12
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
- deckPlans: {
14
- type: PropType<DeckPlan[]>;
15
- required: false;
16
- };
17
- selectedElements: {
18
- type: PropType<any[]>;
19
- default: () => never[];
20
- };
21
- }>> & Readonly<{}>, {
22
- selectedElements: any[];
23
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
- declare const _default: typeof __VLS_export;
25
- export default _default;
@@ -1,23 +0,0 @@
1
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- xml: {
3
- type: StringConstructor;
4
- required: true;
5
- };
6
- selectedId: {
7
- type: StringConstructor;
8
- default: null;
9
- };
10
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
- xml: {
12
- type: StringConstructor;
13
- required: true;
14
- };
15
- selectedId: {
16
- type: StringConstructor;
17
- default: null;
18
- };
19
- }>> & Readonly<{}>, {
20
- selectedId: string;
21
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
22
- declare const _default: typeof __VLS_export;
23
- export default _default;
@@ -1,3 +0,0 @@
1
- export { default as DeckplanEditor } from './DeckplanEditor.vue';
2
- export { default as DeckVisualization } from './DeckVisualization.vue';
3
- export { default as WagonVisualization } from './WagonVisualization.vue';
@@ -1,2 +0,0 @@
1
- import { DeckPlan } from '@/types/netex/deckPlan';
2
- export declare const parseNeTEx: (xml: string) => DeckPlan[];
package/dist/index.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import { type App } from 'vue';
2
- import '@/assets/lib.css';
3
- declare function install(app: App): void;
4
- declare const _default: {
5
- install: typeof install;
6
- };
7
- export default _default;
8
- export * from './components';
@@ -1,28 +0,0 @@
1
- import type { EquipmentRef } from './equipment';
2
- export declare class ActualVehicleEquipment {
3
- attr_id: string;
4
- attr_version: string;
5
- Units: number;
6
- TicketingEquipmentRef: EquipmentRef | undefined;
7
- TicketValidatorEquipmentRef: EquipmentRef | undefined;
8
- constructor({ attr_id, attr_version, Units, TicketingEquipmentRef, TicketValidatorEquipmentRef, }: {
9
- attr_id: string;
10
- attr_version: string;
11
- Units: number;
12
- TicketingEquipmentRef: EquipmentRef | undefined;
13
- TicketValidatorEquipmentRef: EquipmentRef | undefined;
14
- });
15
- toXML(): {
16
- attr_id: string;
17
- attr_version: string;
18
- Units: number;
19
- TicketingEquipmentRef: {
20
- attr_ref: string;
21
- attr_version: string;
22
- } | undefined;
23
- TicketValidatorEquipmentRef: {
24
- attr_ref: string;
25
- attr_version: string;
26
- } | undefined;
27
- };
28
- }
@@ -1,11 +0,0 @@
1
- export declare class Centroid {
2
- x: number;
3
- y: number;
4
- constructor(x: number, y: number);
5
- static fromXML(value: any): Centroid | undefined;
6
- toXML(): {
7
- Location: {
8
- pos: string;
9
- };
10
- };
11
- }
@@ -1,82 +0,0 @@
1
- import { DeckLevelRef as GeneralDeckLevelRef } from './deckLevel';
2
- import { OtherDeckSpace } from './otherDeckSpace';
3
- import { PassengerSpace } from './passengerSpace';
4
- import { Polygon } from './polygon';
5
- import { SpotColumn } from './spotColumn';
6
- import { SpotRow } from './spotRow';
7
- export declare class Deck {
8
- attr_id: string;
9
- attr_version: string;
10
- Name: string;
11
- polygon: Polygon | undefined;
12
- deckspaces: (OtherDeckSpace | PassengerSpace)[];
13
- DeckLevelRef: GeneralDeckLevelRef | undefined;
14
- spotRows: SpotRow[];
15
- spotColumns: SpotColumn[];
16
- Width: number;
17
- Length: number;
18
- constructor({ attr_id, attr_version, deckSpaces, spotRows, spotColumns, DeckLevelRef, Name, polygon, Width, Length, }: {
19
- attr_id: string;
20
- attr_version: string;
21
- deckSpaces: {
22
- OtherDeckSpace: any | any[];
23
- PassengerSpace: any | any[];
24
- };
25
- spotRows: {
26
- SpotRow: any[];
27
- } | undefined;
28
- spotColumns: {
29
- SpotColumn: any[];
30
- } | undefined;
31
- DeckLevelRef: GeneralDeckLevelRef | undefined;
32
- Name: {
33
- text_value: string;
34
- } | undefined;
35
- polygon: object | undefined;
36
- Width: {
37
- text_value: number;
38
- } | undefined;
39
- Length: {
40
- text_value: number;
41
- } | undefined;
42
- });
43
- toXML(): {
44
- attr_id: string;
45
- attr_version: string;
46
- spotRows: {
47
- SpotRow: object[];
48
- };
49
- spotColumns: {
50
- SpotColumn: object[];
51
- };
52
- deckSpaces: any;
53
- DeckLevelRef: {
54
- attr_ref: string;
55
- attr_version: string;
56
- } | undefined;
57
- polygon: object | undefined;
58
- Name: {
59
- text_value: string;
60
- };
61
- Width: {
62
- text_value: number;
63
- };
64
- Length: {
65
- text_value: number;
66
- };
67
- };
68
- getBoundingBox(): {
69
- width: number;
70
- height: number;
71
- };
72
- getShape(scale: number): {
73
- x: number;
74
- y: number;
75
- width: number;
76
- height: number;
77
- fill: string;
78
- stroke: string;
79
- strokeWidth: number;
80
- cornerRadius: number;
81
- };
82
- }
@@ -1,25 +0,0 @@
1
- import { PassengerEntranceRef } from "./passengerEntrance";
2
- export declare class DeckEntranceCouple {
3
- attr_ref: string;
4
- attr_version: string;
5
- FromDeckEntranceRef: PassengerEntranceRef;
6
- ToDeckEntranceRef: PassengerEntranceRef;
7
- constructor({ attr_ref, attr_version, FromDeckEntranceRef, ToDeckEntranceRef }: {
8
- attr_ref: string;
9
- attr_version: string;
10
- FromDeckEntranceRef: any;
11
- ToDeckEntranceRef: any;
12
- });
13
- toXML(): {
14
- attr_ref: string;
15
- attr_version: string;
16
- FromDeckEntranceRef: {
17
- attr_ref: string;
18
- attr_version: string;
19
- };
20
- ToDeckEntranceRef: {
21
- attr_ref: string;
22
- attr_version: string;
23
- };
24
- };
25
- }
@@ -1,31 +0,0 @@
1
- import { ValidityCondition, ValidityConditionRef } from "./validityCondition";
2
- export declare class DeckEntranceUsage {
3
- attr_ref: string;
4
- attr_version: string;
5
- validityConditions: (ValidityCondition | ValidityConditionRef)[];
6
- Name: string;
7
- EntranceUsageType: "exit" | "entrance" | undefined;
8
- EntranceSetting: "shut" | "open" | undefined;
9
- ControlledLocking: boolean;
10
- constructor({ attr_ref, attr_version, validityConditions, Name, EntranceUsageType, EntranceSetting, ControlledLocking }: {
11
- attr_ref: string;
12
- attr_version: string;
13
- validityConditions: {
14
- ValidityConditionRef: any[];
15
- ValidityCondition: any[];
16
- };
17
- Name: string;
18
- EntranceUsageType: "exit" | "entrance" | undefined;
19
- EntranceSetting: "shut" | "open" | undefined;
20
- ControlledLocking: boolean;
21
- });
22
- toXML(): {
23
- attr_ref: string;
24
- attr_version: string;
25
- validityConditions: any;
26
- Name: string;
27
- EntranceUsageType: "exit" | "entrance" | undefined;
28
- EntranceSetting: "shut" | "open" | undefined;
29
- ControlledLocking: boolean;
30
- };
31
- }
@@ -1,27 +0,0 @@
1
- export declare class DeckLevel {
2
- attr_id: string;
3
- attr_version: string;
4
- Label: string;
5
- constructor({ Label, attr_id, attr_version, }: {
6
- attr_id: string;
7
- attr_version: string;
8
- Label: string;
9
- });
10
- toXML(): {
11
- attr_id: string;
12
- attr_version: string;
13
- Label: string;
14
- };
15
- }
16
- export declare class DeckLevelRef {
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,32 +0,0 @@
1
- import { Deck } from './deck';
2
- import { DeckLevel } from './deckLevel';
3
- export declare class DeckPlan {
4
- attr_id: string;
5
- attr_version: string;
6
- deckLevels: DeckLevel[];
7
- decks: Deck[];
8
- constructor({ attr_id, attr_version, decks, deckLevels, }: {
9
- attr_id: string;
10
- attr_version: string;
11
- deckLevels: {
12
- DeckLevel: any[];
13
- } | {
14
- DeckLevel: any;
15
- } | undefined;
16
- decks: {
17
- Deck: any[];
18
- } | {
19
- Deck: any;
20
- } | undefined;
21
- });
22
- toXML(): {
23
- attr_id: string;
24
- attr_version: string;
25
- decks: {
26
- Deck: object[];
27
- };
28
- deckLevels: {
29
- DeckLevel: object[];
30
- };
31
- };
32
- }
@@ -1,18 +0,0 @@
1
- export declare class DeckSpaceCapacity {
2
- attr_ref: string;
3
- attr_version: string;
4
- LocatableSpotType: 'seat' | undefined;
5
- capacity: number;
6
- constructor({ attr_ref, attr_version, LocatableSpotType, capacity }: {
7
- attr_ref: string;
8
- attr_version: string;
9
- LocatableSpotType: 'seat' | undefined;
10
- capacity: number;
11
- });
12
- toXML(): {
13
- attr_ref: string;
14
- attr_version: string;
15
- LocatableSpotType: "seat" | undefined;
16
- capacity: number;
17
- };
18
- }
@@ -1,12 +0,0 @@
1
- export declare class EquipmentRef {
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,30 +0,0 @@
1
- export declare class Text {
2
- value: string;
3
- constructor({ value }: {
4
- value: string;
5
- });
6
- toXML(): string;
7
- }
8
- export declare class Name {
9
- value: string;
10
- constructor(value: {
11
- "text_value": string;
12
- });
13
- toXML(): {
14
- text_value: string;
15
- };
16
- }
17
- export declare class Label {
18
- value: string;
19
- constructor({ value }: {
20
- value: string;
21
- });
22
- toXML(): string;
23
- }
24
- export declare function extractElementList<TInput, TOutput>(element: TInput | TInput[] | undefined, ElementConstructor: new (e: TInput) => TOutput): TOutput[];
25
- interface Serializable {
26
- toXML(): object;
27
- }
28
- export declare function serializeElements(elements: Serializable[]): object[];
29
- export declare function serializeElementsAndRefs(elementsAndRefs: Serializable[]): any;
30
- export {};
@@ -1,50 +0,0 @@
1
- import { ActualVehicleEquipment } from "./actualVehicleEquipment";
2
- import { SpotColumnRef as GeneralSpotColumnRef } from "./spotColumn";
3
- import { SpotRowRef as GeneralSpotRowRef } from "./spotRow";
4
- export declare class LuggageSpot {
5
- attr_id: string;
6
- attr_version: string;
7
- Label: string | undefined;
8
- Orientation: 'backwards' | 'forwards' | 'leftwards' | 'rightwards' | undefined;
9
- actualVehicleEquipments: ActualVehicleEquipment[];
10
- SpotColumnRef: GeneralSpotColumnRef | undefined;
11
- SpotRowRef: GeneralSpotRowRef | undefined;
12
- constructor({ attr_id, attr_version, Label, Orientation, actualVehicleEquipments, SpotColumnRef, SpotRowRef }: {
13
- attr_id: string;
14
- attr_version: string;
15
- Label: string | undefined;
16
- Orientation: 'backwards' | 'forwards' | 'leftwards' | 'rightwards' | undefined;
17
- actualVehicleEquipments: any[];
18
- SpotColumnRef: any;
19
- SpotRowRef: any;
20
- });
21
- toXML(): {
22
- attr_id: string;
23
- attr_version: string;
24
- Label: string | undefined;
25
- Orientation: "backwards" | "forwards" | "leftwards" | "rightwards" | undefined;
26
- actualVehicleEquipments: {
27
- ActualVehicleEquipment: object[];
28
- };
29
- SpotColumnRef: {
30
- attr_ref: string;
31
- attr_version: string;
32
- } | undefined;
33
- SpotRowRef: {
34
- attr_ref: string;
35
- attr_version: string;
36
- } | undefined;
37
- };
38
- }
39
- export declare class LuggageSpotRef {
40
- attr_ref: string;
41
- attr_version: string;
42
- constructor({ attr_ref, attr_version }: {
43
- attr_ref: string;
44
- attr_version: string;
45
- });
46
- toXML(): {
47
- attr_ref: string;
48
- attr_version: string;
49
- };
50
- }
@@ -1,33 +0,0 @@
1
- import { ActualVehicleEquipment } from './actualVehicleEquipment';
2
- import { Name as GeneralName } from './general';
3
- export declare class OtherDeckSpace {
4
- attr_id: string;
5
- attr_version: string;
6
- Name: GeneralName | undefined;
7
- PublicUse: boolean | undefined;
8
- TotalCapacity: number | undefined;
9
- actualVehicleEquipments: ActualVehicleEquipment[];
10
- constructor({ attr_id, attr_version, Name, PublicUse, TotalCapacity, actualVehicleEquipments, }: {
11
- attr_id: string;
12
- attr_version: string;
13
- Name: {
14
- text_value: string;
15
- };
16
- actualVehicleEquipments: {
17
- ActualVehicleEquipment: ActualVehicleEquipment[];
18
- };
19
- PublicUse: {
20
- text_value: boolean;
21
- };
22
- TotalCapacity: {
23
- text_value: number;
24
- };
25
- });
26
- toXML(): {
27
- attr_id: string;
28
- attr_version: string;
29
- Name: (() => {
30
- text_value: string;
31
- }) | undefined;
32
- };
33
- }