@fy-/fws-vue 0.9.8 → 1.0.0

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.
@@ -220,6 +220,9 @@ function selectFile(e: Event) {
220
220
  v-model="state.userData.Birthdate"
221
221
  class="mb-4"
222
222
  type="datepicker"
223
+ :dpOptions="{
224
+ dateFormat: 'mm/dd/yyyy',
225
+ }"
223
226
  :label="$t('fws_birthdate_label')"
224
227
  :error-vuelidate="v$.userData.Birthdate.$errors"
225
228
  />
@@ -132,6 +132,9 @@ const patchUser = async () => {
132
132
  id="birthdateFWS"
133
133
  v-model="state.userData.Birthdate"
134
134
  class="mb-4"
135
+ :dpOptions="{
136
+ dateFormat: 'mm/dd/yyyy',
137
+ }"
135
138
  type="datepicker"
136
139
  :label="$t('fws_birthdate_label')"
137
140
  :error-vuelidate="v$.userData.Birthdate.$errors"
@@ -25,6 +25,7 @@ const props = withDefaults(
25
25
  modelValue?: modelValueType;
26
26
  checkboxValue?: checkboxValueType;
27
27
  options?: string[][];
28
+ dpOptions?: Record<string, any>;
28
29
  help?: string;
29
30
  error?: string;
30
31
  color?: string;
@@ -41,6 +42,7 @@ const props = withDefaults(
41
42
  checkboxFalseValue: false,
42
43
  disabled: false,
43
44
  maxLengthPerTag: 0,
45
+ dpOptions: () => ({}),
44
46
  },
45
47
  );
46
48
  const translate = useTranslation();
@@ -100,6 +102,7 @@ onMounted(() => {
100
102
  dpRef.value = new Datepicker(inputRef.value, {
101
103
  format: "dd/mm/yyyy",
102
104
  autohide: true,
105
+ ...props.dpOptions,
103
106
  });
104
107
  }
105
108
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "0.9.8",
3
+ "version": "1.0.0",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {