Skip to content

Commit

Permalink
Merge branch 'main' into #2
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Nov 16, 2023
2 parents b7ebe3b + 9f6d08b commit 7d0e3fc
Show file tree
Hide file tree
Showing 8 changed files with 842 additions and 1 deletion.
96 changes: 96 additions & 0 deletions src/components/AddAddressModal.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<template>
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-button @click="closeModal()">
<ion-icon slot="icon-only" :icon="closeOutline" />
</ion-button>
</ion-buttons>
<ion-title>{{ translate("Address") }}</ion-title>
</ion-toolbar>
</ion-header>

<ion-content>
<ion-item>
<ion-label>{{ translate("Address line 1") }}</ion-label>
<ion-input />
</ion-item>
<ion-item class="ion-margin-bottom">
<ion-label>{{ translate("Address line 2") }}</ion-label>
<ion-input />
</ion-item>
<ion-item>
<ion-label>{{ translate("City") }}</ion-label>
<ion-input />
</ion-item>
<ion-item>
<ion-label>{{ translate("Country") }}</ion-label>
<ion-input />
</ion-item>
<ion-item>
<ion-label>{{ translate("State") }}</ion-label>
<ion-input />
</ion-item>
<ion-item>
<ion-label>{{ translate("Zipcode") }}</ion-label>
<ion-input />
</ion-item>
</ion-content>

<ion-fab vertical="bottom" horizontal="end" slot="fixed">
<ion-fab-button>
<ion-icon :icon="saveOutline" />
</ion-fab-button>
</ion-fab>
</template>

<script lang="ts">
import {
IonButton,
IonButtons,
IonContent,
IonFab,
IonFabButton,
IonHeader,
IonIcon,
IonInput,
IonItem,
IonLabel,
IonTitle,
IonToolbar,
modalController
} from "@ionic/vue";
import { defineComponent } from "vue";
import { closeOutline, saveOutline } from "ionicons/icons";
import { translate } from '@hotwax/dxp-components'
export default defineComponent({
name: "AddAddressModal",
components: {
IonButton,
IonButtons,
IonContent,
IonFab,
IonFabButton,
IonHeader,
IonIcon,
IonInput,
IonItem,
IonLabel,
IonTitle,
IonToolbar
},
methods: {
closeModal() {
modalController.dismiss()
}
},
setup() {
return {
closeOutline,
saveOutline,
translate
};
},
});
</script>
88 changes: 88 additions & 0 deletions src/components/AddGeoPointModal.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<template>
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-button @click="closeModal()">
<ion-icon slot="icon-only" :icon="closeOutline" />
</ion-button>
</ion-buttons>
<ion-title>{{ translate("Latitude & Longitude") }}</ion-title>
</ion-toolbar>
</ion-header>

<ion-content>
<ion-item class="ion-margin-bottom">
<ion-label>{{ "<postal code value>" }}</ion-label>
<ion-button fill="outline">
{{ translate("Generate") }}
<ion-icon slot="end" :icon="colorWandOutline" />
</ion-button>
</ion-item>
<ion-item>
<ion-label>{{ translate("Latitude") }}</ion-label>
<ion-input />
</ion-item>
<ion-item>
<ion-label>{{ translate("Longitude") }}</ion-label>
<ion-input />
</ion-item>
</ion-content>

<ion-fab vertical="bottom" horizontal="end" slot="fixed">
<ion-fab-button>
<ion-icon :icon="saveOutline" />
</ion-fab-button>
</ion-fab>
</template>

<script lang="ts">
import {
IonButton,
IonButtons,
IonContent,
IonFab,
IonFabButton,
IonHeader,
IonIcon,
IonInput,
IonItem,
IonLabel,
IonTitle,
IonToolbar,
modalController
} from "@ionic/vue";
import { defineComponent } from "vue";
import { closeOutline, colorWandOutline, saveOutline } from "ionicons/icons";
import { translate } from '@hotwax/dxp-components'
export default defineComponent({
name: "AddGeoPointModal",
components: {
IonButton,
IonButtons,
IonContent,
IonFab,
IonFabButton,
IonHeader,
IonIcon,
IonInput,
IonItem,
IonLabel,
IonTitle,
IonToolbar,
},
methods: {
closeModal() {
modalController.dismiss()
}
},
setup() {
return {
closeOutline,
colorWandOutline,
saveOutline,
translate
};
},
});
</script>
46 changes: 46 additions & 0 deletions src/components/OpenStorePopover.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<template>
<ion-content>
<ion-list>
<ion-list-header>{{ "NotNaked" }}</ion-list-header>
<ion-item button>
{{ translate("Make primary") }}
<ion-icon slot="end" :icon="starOutline" />
</ion-item>
<ion-item button lines="none">
{{ translate("Unlink") }}
<ion-icon slot="end" :icon="removeCircleOutline" />
</ion-item>
</ion-list>
</ion-content>
</template>

<script lang="ts">
import {
IonContent,
IonList,
IonListHeader,
IonIcon,
IonItem
} from "@ionic/vue";
import { defineComponent } from "vue";
import { starOutline, removeCircleOutline } from "ionicons/icons";
import { translate } from "@hotwax/dxp-components";
export default defineComponent({
name: "CreateMappingModal",
components: {
IonContent,
IonList,
IonListHeader,
IonIcon,
IonItem
},
setup() {
return {
removeCircleOutline,
starOutline,
translate
};
}
});
</script>
115 changes: 115 additions & 0 deletions src/components/SelectOperatingTimeModal.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<template>
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-button @click="closeModal">
<ion-icon slot="icon-only" :icon="closeOutline" />
</ion-button>
</ion-buttons>
<ion-title>{{ translate("Select time") }}</ion-title>
</ion-toolbar>
</ion-header>

<ion-content>
<ion-list>
<ion-item lines="none">
<ion-label>{{ translate("Opening Time") }}</ion-label>
<ion-button color="medium" @click="selectTime">{{ "10:45 am" }}</ion-button>
</ion-item>
<ion-item lines="none">
<ion-label>{{ translate("Closing Time") }}</ion-label>
<ion-button color="medium" @click="selectTime">{{ "10:45 am" }}</ion-button>
</ion-item>
</ion-list>
</ion-content>

<ion-modal class="date-time-modal" :is-open="isTimeModalOpen" @didDismiss="() => isTimeModalOpen = false">
<ion-content>
<ion-datetime
presentation="time"
show-default-buttons
hour-cycle="h12"
/>
</ion-content>
</ion-modal>

<ion-footer>
<ion-toolbar>
<ion-item lines="none">
<ion-button color="danger">{{ translate("Reset") }}</ion-button>
</ion-item>
<ion-item slot="end" lines="none">
<ion-button class="ion-margin-end" fill="outline">{{ translate("Cancel") }}</ion-button>
<ion-button >{{ translate("Save") }}</ion-button>
</ion-item>
</ion-toolbar>
</ion-footer>
</template>

<script lang="ts">
import {
IonButton,
IonButtons,
IonContent,
IonDatetime,
IonFooter,
IonHeader,
IonIcon,
IonItem,
IonLabel,
IonList,
IonModal,
IonTitle,
IonToolbar,
modalController
} from "@ionic/vue";
import { defineComponent } from "vue";
import { closeOutline } from "ionicons/icons";
import { translate } from '@hotwax/dxp-components'
export default defineComponent({
name: "SelectOperatingTimeModal",
components: {
IonButton,
IonButtons,
IonContent,
IonDatetime,
IonFooter,
IonHeader,
IonIcon,
IonItem,
IonLabel,
IonList,
IonModal,
IonTitle,
IonToolbar,
},
data() {
return {
isTimeModalOpen: false
}
},
methods: {
closeModal() {
modalController.dismiss({ dismissed: true});
},
selectTime() {
this.isTimeModalOpen = true
}
},
setup() {
return {
closeOutline,
translate
};
},
});
</script>

<style scoped>
ion-modal.date-time-modal {
--width: 290px;
--height: 440px;
--border-radius: 8px;
}
</style>
Loading

0 comments on commit 7d0e3fc

Please sign in to comment.