From e279af606e44ab93b9c4308c523fab586edca5df Mon Sep 17 00:00:00 2001 From: Philipp Lang Date: Fri, 15 Dec 2023 14:10:43 +0100 Subject: [PATCH] fix house --- assets/js/Stepper.vue | 364 +++++++++++++++------------- assets/js/components/Pagination.vue | 10 +- 2 files changed, 199 insertions(+), 175 deletions(-) diff --git a/assets/js/Stepper.vue b/assets/js/Stepper.vue index 38b0f48..c0e2837 100644 --- a/assets/js/Stepper.vue +++ b/assets/js/Stepper.vue @@ -1,203 +1,220 @@ @@ -217,8 +234,14 @@ export default { }, data: function () { return { + slideCount: { + 'Haus': 6, + 'Gewerbe': 6, + 'Wohnung': 6, + 'Grundstück': 3, + }, finished: true, - tooltips: [wNumb({decimals: 0})], + tooltips: [wNumb({ decimals: 0 })], pipsy: { mode: 'steps', density: 1, @@ -229,7 +252,7 @@ export default { decimals: 0, }), }, - range: {min: [1800, 1], max: [dayjs().year(), 1]}, + range: { min: [1800, 1], max: [dayjs().year(), 1] }, value: { category: null, living_area: null, @@ -249,10 +272,10 @@ export default { }, innerStep: 0, categories: [ - {key: 'Haus', label: 'Haus', icon: 'category-house'}, - {key: 'Grundstück', label: 'Grundstück', icon: 'category-plot'}, - {key: 'Wohnung', label: 'Wohnung', icon: 'category-apartment'}, - {key: 'Gewerbe', label: 'Gewerbe', icon: 'category-business'}, + { key: 'Haus', label: 'Haus', icon: 'category-house' }, + { key: 'Grundstück', label: 'Grundstück', icon: 'category-plot' }, + { key: 'Wohnung', label: 'Wohnung', icon: 'category-apartment' }, + { key: 'Gewerbe', label: 'Gewerbe', icon: 'category-business' }, ], kinds: { house: [ @@ -279,65 +302,65 @@ export default { ], }, livingAreas: [ - {key: 'bis 100 m²', label: 'bis 100 m²', icon: 'living-area-sm'}, - {key: '101 - 200 m²', label: 'bis 101 - 200 m²', icon: 'living-area-md'}, - {key: 'mehr als 200 m²', label: 'mehr als 200 m²', icon: 'living-area-lg'}, - {key: 'nicht bekannt', label: 'nicht bekannt', icon: 'unknown'}, + { key: 'bis 100 m²', label: 'bis 100 m²', icon: 'living-area-sm' }, + { key: '101 - 200 m²', label: 'bis 101 - 200 m²', icon: 'living-area-md' }, + { key: 'mehr als 200 m²', label: 'mehr als 200 m²', icon: 'living-area-lg' }, + { key: 'nicht bekannt', label: 'nicht bekannt', icon: 'unknown' }, ], apartmentLivingAreas: [ - {key: 'bis 65 m²', label: 'bis 65 m²', icon: 'living-area-sm'}, - {key: '66 - 150 m²', label: 'bis 66 - 150 m²', icon: 'living-area-md'}, - {key: 'mehr als 150 m²', label: 'mehr als 150 m²', icon: 'living-area-lg'}, - {key: 'nicht bekannt', label: 'nicht bekannt', icon: 'unknown'}, + { key: 'bis 65 m²', label: 'bis 65 m²', icon: 'living-area-sm' }, + { key: '66 - 150 m²', label: 'bis 66 - 150 m²', icon: 'living-area-md' }, + { key: 'mehr als 150 m²', label: 'mehr als 150 m²', icon: 'living-area-lg' }, + { key: 'nicht bekannt', label: 'nicht bekannt', icon: 'unknown' }, ], gewerbeLivingAreas: [ - {key: 'bis 150 m²', label: 'bis 150 m²', icon: 'living-area-sm'}, - {key: '151 - 350 m²', label: 'bis 151 - 350 m²', icon: 'living-area-md'}, - {key: '351 - 1000 m²', label: '351 - 1000 m²', icon: 'living-area-lg'}, - {key: 'mehr als 1000 m²', label: 'mehr als 1000 m²', icon: 'living-area-lg'}, - {key: 'nicht bekannt', label: 'nicht bekannt', icon: 'unknown'}, + { key: 'bis 150 m²', label: 'bis 150 m²', icon: 'living-area-sm' }, + { key: '151 - 350 m²', label: 'bis 151 - 350 m²', icon: 'living-area-md' }, + { key: '351 - 1000 m²', label: '351 - 1000 m²', icon: 'living-area-lg' }, + { key: 'mehr als 1000 m²', label: 'mehr als 1000 m²', icon: 'living-area-lg' }, + { key: 'nicht bekannt', label: 'nicht bekannt', icon: 'unknown' }, ], conditions: [ - {key: 'Sanierungsbedürftig', label: 'Sanierungsbedürftig', icon: 'living-area-md'}, - {key: 'Renovierungsbedürftig', label: 'Renovierungsbedürftig', icon: 'living-area-sm'}, - {key: 'Gepflegt', label: 'Gepflegt', icon: 'living-area-lg'}, - {key: 'Gehoben', label: 'Gehoben', icon: 'living-area-lg'}, - {key: 'Luxuroiös', label: 'Luxuriös', icon: 'living-area-lg'}, + { key: 'Sanierungsbedürftig', label: 'Sanierungsbedürftig', icon: 'living-area-md' }, + { key: 'Renovierungsbedürftig', label: 'Renovierungsbedürftig', icon: 'living-area-sm' }, + { key: 'Gepflegt', label: 'Gepflegt', icon: 'living-area-lg' }, + { key: 'Gehoben', label: 'Gehoben', icon: 'living-area-lg' }, + { key: 'Luxuroiös', label: 'Luxuriös', icon: 'living-area-lg' }, ], plotAreas: [ - {key: 'bis 200 m²', label: 'bis 200 m²', icon: 'plot-area-sm'}, - {key: '201 - 800 m²', label: '201 - 800 m²', icon: 'plot-area-md'}, - {key: 'mehr als 800 m²', label: 'mehr als 800 m²', icon: 'plot-area-lg'}, - {key: 'nicht bekannt', label: 'nicht bekannt', icon: 'unknown'}, + { key: 'bis 200 m²', label: 'bis 200 m²', icon: 'plot-area-sm' }, + { key: '201 - 800 m²', label: '201 - 800 m²', icon: 'plot-area-md' }, + { key: 'mehr als 800 m²', label: 'mehr als 800 m²', icon: 'plot-area-lg' }, + { key: 'nicht bekannt', label: 'nicht bekannt', icon: 'unknown' }, ], plotPlotAreas: [ - {key: 'bis 350 m²', label: 'bis 350 m²', icon: 'plot-area-sm'}, - {key: '351 - 1000 m²', label: '351 - 1000 m²', icon: 'plot-area-md'}, - {key: 'mehr als 1000 m²', label: 'mehr als 1000 m²', icon: 'plot-area-lg'}, - {key: 'nicht bekannt', label: 'nicht bekannt', icon: 'unknown'}, + { key: 'bis 350 m²', label: 'bis 350 m²', icon: 'plot-area-sm' }, + { key: '351 - 1000 m²', label: '351 - 1000 m²', icon: 'plot-area-md' }, + { key: 'mehr als 1000 m²', label: 'mehr als 1000 m²', icon: 'plot-area-lg' }, + { key: 'nicht bekannt', label: 'nicht bekannt', icon: 'unknown' }, ], numbersOfFloors: [ - {key: '1', label: '1', icon: 'plot-area-sm'}, - {key: '2', label: '2', icon: 'plot-area-md'}, - {key: '3', label: '3', icon: 'plot-area-lg'}, - {key: 'mehr als 3', label: 'mehr als 3', icon: 'plot-area-lg'}, + { key: '1', label: '1', icon: 'plot-area-sm' }, + { key: '2', label: '2', icon: 'plot-area-md' }, + { key: '3', label: '3', icon: 'plot-area-lg' }, + { key: 'mehr als 3', label: 'mehr als 3', icon: 'plot-area-lg' }, ], numbersOfRooms: [ - {key: '1-2', label: '1-2', icon: 'plot-area-sm'}, - {key: '3-5', label: '3-5', icon: 'plot-area-md'}, - {key: '5-8', label: '5-8', icon: 'plot-area-lg'}, - {key: 'mehr als 8', label: 'mehr als 8', icon: 'plot-area-lg'}, + { key: '1-2', label: '1-2', icon: 'plot-area-sm' }, + { key: '3-5', label: '3-5', icon: 'plot-area-md' }, + { key: '5-8', label: '5-8', icon: 'plot-area-lg' }, + { key: 'mehr als 8', label: 'mehr als 8', icon: 'plot-area-lg' }, ], apartmentNumbersOfRooms: [ - {key: '1-2', label: '1-2', icon: 'plot-area-sm'}, - {key: '3-5', label: '3-5', icon: 'plot-area-md'}, - {key: '6-8', label: '6-8', icon: 'plot-area-lg'}, - {key: 'nicht bekannt', label: 'nicht bekannt', icon: 'unknown'}, + { key: '1-2', label: '1-2', icon: 'plot-area-sm' }, + { key: '3-5', label: '3-5', icon: 'plot-area-md' }, + { key: '6-8', label: '6-8', icon: 'plot-area-lg' }, + { key: 'nicht bekannt', label: 'nicht bekannt', icon: 'unknown' }, ], - wohnflaechen: [{label: 'bis 50 m²'}, {label: '51 - 150 m²'}, {label: 'mehr als 151 m²'}, {label: 'nicht bekannt'}], - etagen: [{label: '1'}, {label: '2'}, {label: '3'}, {label: '4 oder mehr'}], - sellables: [{label: '3 Monate'}, {label: '6 Monate'}, {label: '12 Monate oder später'}], - furnishings: [{label: 'einfach'}, {label: 'gepflegt'}, {label: 'sehr gut'}, {label: 'luxuriös'}], + wohnflaechen: [{ label: 'bis 50 m²' }, { label: '51 - 150 m²' }, { label: 'mehr als 151 m²' }, { label: 'nicht bekannt' }], + etagen: [{ label: '1' }, { label: '2' }, { label: '3' }, { label: '4 oder mehr' }], + sellables: [{ label: '3 Monate' }, { label: '6 Monate' }, { label: '12 Monate oder später' }], + furnishings: [{ label: 'einfach' }, { label: 'gepflegt' }, { label: 'sehr gut' }, { label: 'luxuriös' }], }; }, methods: { @@ -362,5 +385,4 @@ export default { .radio-grid { display: grid; grid-gap: 1rem; -} - +} diff --git a/assets/js/components/Pagination.vue b/assets/js/components/Pagination.vue index 9b8fe5f..949319a 100644 --- a/assets/js/components/Pagination.vue +++ b/assets/js/components/Pagination.vue @@ -1,17 +1,19 @@