@fy-/fws-vue 1.0.3 → 1.0.4

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.
@@ -29,7 +29,7 @@ const eventBus = useEventBus();
29
29
  // Default date = 18y from now
30
30
  const currentDate = new Date();
31
31
  const defaultDate = new Date(
32
- currentDate.setFullYear(currentDate.getFullYear() + 18),
32
+ currentDate.setFullYear(currentDate.getFullYear() - 18),
33
33
  );
34
34
  const state = reactive({
35
35
  userData: {
@@ -224,8 +224,8 @@ function selectFile(e: Event) {
224
224
  v-model="state.userData.Birthdate"
225
225
  class="mb-4"
226
226
  type="datepicker"
227
- :dpOptions="{
228
- dateFormat: 'mm/dd/yyyy',
227
+ :dp-options="{
228
+ format: 'yyyy-mm-dd',
229
229
  }"
230
230
  :label="$t('fws_birthdate_label')"
231
231
  :error-vuelidate="v$.userData.Birthdate.$errors"
@@ -23,7 +23,7 @@ const props = withDefaults(
23
23
  );
24
24
  const currentDate = new Date();
25
25
  const defaultDate = new Date(
26
- currentDate.setFullYear(currentDate.getFullYear() + 18),
26
+ currentDate.setFullYear(currentDate.getFullYear() - 18),
27
27
  );
28
28
  const ageValidator = (value: any) => {
29
29
  const today = new Date();
@@ -135,8 +135,8 @@ const patchUser = async () => {
135
135
  id="birthdateFWS"
136
136
  v-model="state.userData.Birthdate"
137
137
  class="mb-4"
138
- :dpOptions="{
139
- dateFormat: 'mm/dd/yyyy',
138
+ :dp-options="{
139
+ format: 'yyyy-mm-dd',
140
140
  }"
141
141
  type="datepicker"
142
142
  :label="$t('fws_birthdate_label')"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {