-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented client-side validation. (#139)
* Created the AppInput client-validated component. * Refactored SignInView. * Refactored CountSelect. * Refactored CountSelect. * Fixed flag search parameter. * Implemented client-side validation & refactored number inputs. * Completed GtinInput validation. * CodeReview. * CodeReview. * Refactored IssuedOnInput. * Upgraded Logitar Vue3 UI. * Refactored textarea components. * Reset department modal on cancel. * Fixed postal code RegEx. * Refactored ArticleSelect and BannerSelect. * CodeReview. * Refactored inputs. * Refactored multiple selects. * TODO * Refactored StoreSelect. * CodeReview. * Completed TarSelect refactor. * TODO * Implemented a DateTimeInput. * Initial values. * Revert CountSelect and SortSelect. * Implementing client-server validation. * TODOs. * Refactored rules handling. * Completed client-validation.
- Loading branch information
Showing
59 changed files
with
1,062 additions
and
514 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
<script setup lang="ts"> | ||
import { TarInput, type InputOptions } from "logitar-vue3-ui"; | ||
import { useI18n } from "vue-i18n"; | ||
import AppInput from "@/components/shared/AppInput.vue"; | ||
const { t } = useI18n(); | ||
const props = withDefaults(defineProps<InputOptions>(), { | ||
floating: true, | ||
id: "gtin", | ||
label: "articles.gtin.label", | ||
max: 14, | ||
placeholder: "articles.gtin.label", | ||
}); | ||
defineProps<{ | ||
modelValue?: string; | ||
}>(); | ||
defineEmits<{ | ||
(e: "update:model-value", value?: string): void; | ||
}>(); | ||
</script> | ||
|
||
<template> | ||
<TarInput v-bind="props" :label="t(label)" :placeholder="t(placeholder)" @update:model-value="$emit('update:model-value', $event)" /> | ||
<AppInput | ||
floating | ||
id="gtin" | ||
label="articles.gtin.label" | ||
max="14" | ||
:model-value="modelValue" | ||
placeholder="articles.gtin.label" | ||
:rules="{ allowed_characters: '0123456789' }" | ||
@update:model-value="$emit('update:model-value', $event)" | ||
/> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
<script setup lang="ts"> | ||
import { TarInput, type InputOptions } from "logitar-vue3-ui"; | ||
import { useI18n } from "vue-i18n"; | ||
import AppInput from "@/components/shared/AppInput.vue"; | ||
const { t } = useI18n(); | ||
const props = withDefaults(defineProps<InputOptions>(), { | ||
floating: true, | ||
id: "sku", | ||
label: "products.sku.label", | ||
max: 32, | ||
placeholder: "products.sku.label", | ||
}); | ||
defineProps<{ | ||
modelValue?: string; | ||
}>(); | ||
defineEmits<{ | ||
(e: "update:model-value", value?: string): void; | ||
}>(); | ||
</script> | ||
|
||
<template> | ||
<TarInput v-bind="props" :label="t(label)" :placeholder="t(placeholder)" @update:model-value="$emit('update:model-value', $event)" /> | ||
<AppInput | ||
floating | ||
id="sku" | ||
label="products.sku.label" | ||
max="32" | ||
:model-value="modelValue" | ||
placeholder="products.sku.label" | ||
@update:model-value="$emit('update:model-value', $event)" | ||
/> | ||
</template> |
Oops, something went wrong.