@fy-/fws-vue 1.3.4 → 1.3.5

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.
@@ -229,7 +229,7 @@ function selectFile(e: Event) {
229
229
  id="birthdateFWS"
230
230
  v-model="state.userData.Birthdate"
231
231
  class="mb-4"
232
- type="datepicker"
232
+ type="date"
233
233
  :dp-options="{
234
234
  format: 'yyyy-mm-dd',
235
235
  }"
@@ -138,7 +138,7 @@ const patchUser = async () => {
138
138
  :dp-options="{
139
139
  format: 'yyyy-mm-dd',
140
140
  }"
141
- type="datepicker"
141
+ type="date"
142
142
  :label="$t('fws_birthdate_label')"
143
143
  :error-vuelidate="v$.userData.Birthdate.$errors"
144
144
  />
@@ -102,13 +102,6 @@ const modelCheckbox = computed({
102
102
  },
103
103
  });
104
104
  defineExpose({ focus, blur, getInputRef });
105
- const dpComponent = ref<any | null>(null);
106
-
107
- if (!import.meta.env.SSR) {
108
- dpComponent.value = defineAsyncComponent(
109
- () => import("@vuepic/vue-datepicker"),
110
- );
111
- }
112
105
  </script>
113
106
  <template>
114
107
  <div>
@@ -174,41 +167,7 @@ if (!import.meta.env.SSR) {
174
167
  @blur="handleBlur"
175
168
  />
176
169
  </div>
177
- <div v-if="type == 'datepicker'">
178
- <label
179
- :for="id"
180
- v-if="label || placeholder"
181
- class="block mb-2 text-sm font-medium text-fv-neutral-900 dark:text-white"
182
- >{{ label ? label : placeholder }}
183
- </label>
184
- <div class="relative max-w-xl">
185
- <div
186
- class="absolute inset-y-0 start-0 flex items-center ps-3.5 pointer-events-none"
187
- >
188
- <svg
189
- class="w-4 h-4 text-fv-neutral-500 dark:text-fv-neutral-400"
190
- aria-hidden="true"
191
- xmlns="http://www.w3.org/2000/svg"
192
- fill="currentColor"
193
- viewBox="0 0 20 20"
194
- >
195
- <path
196
- d="M20 4a2 2 0 0 0-2-2h-2V1a1 1 0 0 0-2 0v1h-3V1a1 1 0 0 0-2 0v1H6V1a1 1 0 0 0-2 0v1H2a2 2 0 0 0-2 2v2h20V4ZM0 18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8H0v10Zm5-8h10a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2Z"
197
- />
198
- </svg>
199
- </div>
200
- <component
201
- :is="dpComponent"
202
- v-if="dpComponent"
203
- v-model="model"
204
- auto-apply
205
- :placeholder="placeholder"
206
- year-first
207
- dark
208
- :enable-time-picker="false"
209
- ></component>
210
- </div>
211
- </div>
170
+
212
171
  <div v-if="type == 'chips' || type == 'tags'">
213
172
  <label
214
173
  :for="id"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {