diff --git a/package.json b/package.json
index 9197369..45095ac 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "genera-tor",
- "version": "1.2.1",
+ "version": "1.3.0",
"private": true,
"scripts": {
"dev": "vite --port 8080",
diff --git a/src/components/OrderS.vue b/src/components/OrderS.vue
index 41cdd73..5d73c91 100644
--- a/src/components/OrderS.vue
+++ b/src/components/OrderS.vue
@@ -207,9 +207,38 @@
- Inne:
-
-
+
+
+ Inne:
+
+ zezwalam na wyjazd poza
+
+ po torze szlakowym nr
+ do kilometra
+ . Powrót odbędzie się na
+
+
+ do godziny
+
+
+
|
@@ -293,6 +322,20 @@ export default defineComponent({
() => {
const row = order.rows[3];
+ if (row.w5.enabled) {
+ const { borderType, trackNo, maxHour, maxKm, returnWay, tmName } = row.w5;
+ const textArray = [];
+
+ textArray.push('Inne: zezwalam na wyjazd poza', borderType || '_', 'po torze szlakowym nr', trackNo || '_');
+ if (maxKm) textArray.push(`do kilometra ${maxKm}`);
+ textArray.push('.');
+ textArray.push('Powrót odbędzie się na', returnWay || '_');
+ if (returnWay.includes('tarczy')) textArray.push(tmName || '_');
+ textArray.push(`do godziny ${maxHour || '_'}`);
+
+ return textArray.join(' ').replace(/ \./, '.');
+ }
+
return `Inne: ${row.content}`;
},
];
diff --git a/src/store/store.ts b/src/store/store.ts
index 47bc620..bafe2dd 100644
--- a/src/store/store.ts
+++ b/src/store/store.ts
@@ -177,6 +177,15 @@ export const useStore = defineStore('store', {
{
enabled: false,
content: '',
+ w5: {
+ enabled: false,
+ maxHour: '',
+ borderType: 'wskaźnik przetaczania W5',
+ tmName: '',
+ maxKm: '',
+ returnWay: 'sygnał ręczny "Do mnie"',
+ trackNo: '',
+ },
},
],
} as IOrderS,
@@ -184,3 +193,5 @@ export const useStore = defineStore('store', {
},
});
+
+
diff --git a/src/styles/global.scss b/src/styles/global.scss
index 218ae10..9e146d8 100644
--- a/src/styles/global.scss
+++ b/src/styles/global.scss
@@ -56,6 +56,7 @@ button.g-button {
&.option {
margin: 0 0.25em;
+ padding: 0.25em;
&:focus-visible {
outline: 1px solid $accentCol;
@@ -65,6 +66,15 @@ button.g-button {
color: $accentCol;
}
}
+
+ &.text {
+ padding: 0;
+ color: #000;
+
+ &:focus-visible {
+ color: $accentCol;
+ }
+ }
}
// Text styles
diff --git a/src/types/orderTypes.ts b/src/types/orderTypes.ts
index cd4c9aa..ade7190 100644
--- a/src/types/orderTypes.ts
+++ b/src/types/orderTypes.ts
@@ -107,6 +107,16 @@ export interface IOrderS {
{
enabled: boolean;
content: string;
+
+ w5: {
+ enabled: boolean;
+ borderType: string;
+ trackNo: string;
+ maxKm: string;
+ returnWay: string;
+ maxHour: string;
+ tmName: string;
+ };
}
];
}
@@ -163,3 +173,5 @@ export interface IOrderO {
other: string;
}
+
+