sprintify-ui 0.2.1 → 0.2.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.
- package/README.md +16 -0
- package/dist/sprintify-ui.es.js +2604 -2416
- package/dist/style.css +1 -1
- package/dist/types/src/components/BaseDatePicker.vue.d.ts +0 -1
- package/dist/types/src/components/index.d.ts +3 -1
- package/package.json +1 -1
- package/src/assets/flatpickr.css +238 -0
- package/src/assets/main.css +1 -0
- package/src/components/BaseDatePicker.vue +4 -100
- package/src/components/index.ts +4 -0
- package/src/lang/en.json +1 -1
- package/src/lang/fr.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="relative">
|
|
3
3
|
<div
|
|
4
4
|
class="pointer-events-none absolute top-0 left-0 flex h-[42px] items-center justify-center pl-2.5"
|
|
5
5
|
>
|
|
@@ -42,7 +42,6 @@ import { DateTime } from 'luxon';
|
|
|
42
42
|
import { Icon as BaseIcon } from '@iconify/vue';
|
|
43
43
|
import { useField } from '@/composables/field';
|
|
44
44
|
import flatpickr from 'flatpickr';
|
|
45
|
-
import 'flatpickr/dist/flatpickr.css';
|
|
46
45
|
|
|
47
46
|
import { t } from '@/i18n';
|
|
48
47
|
import { French } from 'flatpickr/dist/l10n/fr';
|
|
@@ -160,6 +159,7 @@ const flatpickrConfig = computed(() => {
|
|
|
160
159
|
dateFormat: formatInternal.value,
|
|
161
160
|
mode: props.mode,
|
|
162
161
|
locale: locale.value,
|
|
162
|
+
monthSelectorType: 'static',
|
|
163
163
|
minDate: props.minDate ?? undefined,
|
|
164
164
|
maxDate: props.maxDate ?? undefined,
|
|
165
165
|
noCalendar: props.noCalendar,
|
|
@@ -167,6 +167,8 @@ const flatpickrConfig = computed(() => {
|
|
|
167
167
|
inline: props.inline,
|
|
168
168
|
animate: false,
|
|
169
169
|
time_24hr: true,
|
|
170
|
+
prevArrow: '<svg class="fill-current" width="7" height="11" viewBox="0 0 7 11"><path d="M5.4 10.8l1.4-1.4-4-4 4-4L5.4 0 0 5.4z" /></svg>',
|
|
171
|
+
nextArrow: '<svg class="fill-current" width="7" height="11" viewBox="0 0 7 11"><path d="M1.4 10.8L0 9.4l4-4-4-4L1.4 0l5.4 5.4z" /></svg>',
|
|
170
172
|
} as any;
|
|
171
173
|
});
|
|
172
174
|
|
|
@@ -277,101 +279,3 @@ function clear() {
|
|
|
277
279
|
emitUpdate(null);
|
|
278
280
|
}
|
|
279
281
|
</script>
|
|
280
|
-
|
|
281
|
-
<style lang="postcss">
|
|
282
|
-
body .flatpickr-calendar {
|
|
283
|
-
width: 280px;
|
|
284
|
-
box-shadow: 1px 0 0 #cbd5e1, -1px 0 0 #cbd5e1, 0 1px 0 #cbd5e1,
|
|
285
|
-
0 -1px 0 #cbd5e1, 0 3px 13px rgb(0 0 0 / 10%);
|
|
286
|
-
|
|
287
|
-
&.inline {
|
|
288
|
-
width: 260px;
|
|
289
|
-
box-shadow: none;
|
|
290
|
-
border: none;
|
|
291
|
-
padding: 0;
|
|
292
|
-
|
|
293
|
-
.flatpickr-months {
|
|
294
|
-
width: 260px;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
.flatpickr-innerContainer {
|
|
298
|
-
padding: 0;
|
|
299
|
-
width: 260px;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.dayContainer {
|
|
304
|
-
width: 260px;
|
|
305
|
-
max-width: 260px;
|
|
306
|
-
min-width: 260px;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.flatpickr-day {
|
|
310
|
-
height: 36px;
|
|
311
|
-
line-height: 36px;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
.flatpickr-months {
|
|
315
|
-
width: 280px;
|
|
316
|
-
padding-top: 10px;
|
|
317
|
-
|
|
318
|
-
.flatpickr-prev-month,
|
|
319
|
-
.flatpickr-next-month {
|
|
320
|
-
top: 5px;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
.flatpickr-prev-month {
|
|
324
|
-
left: 2px;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
.flatpickr-next-month {
|
|
328
|
-
right: 2px;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
.flatpickr-prev-month:hover svg,
|
|
332
|
-
.flatpickr-next-month:hover svg {
|
|
333
|
-
fill: #888;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
.flatpickr-current-month {
|
|
338
|
-
padding-top: 1px;
|
|
339
|
-
|
|
340
|
-
.flatpickr-monthDropdown-months {
|
|
341
|
-
font-weight: 400;
|
|
342
|
-
height: 25px;
|
|
343
|
-
&:focus {
|
|
344
|
-
box-shadow: none;
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
input.cur-year {
|
|
349
|
-
font-weight: 400;
|
|
350
|
-
height: 25px;
|
|
351
|
-
&:focus {
|
|
352
|
-
box-shadow: none;
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
.flatpickr-innerContainer {
|
|
358
|
-
padding: 10px;
|
|
359
|
-
padding-top: 0;
|
|
360
|
-
width: 280px;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
.flatpickr-rContainer {
|
|
364
|
-
width: 260px;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
.numInput {
|
|
368
|
-
&:focus {
|
|
369
|
-
box-shadow: none;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
.flatpickr-calendar span.flatpickr-weekday {
|
|
375
|
-
@apply font-medium text-slate-400;
|
|
376
|
-
}
|
|
377
|
-
</style>
|
package/src/components/index.ts
CHANGED
|
@@ -74,6 +74,8 @@ import BaseSideNavigation from './BaseSideNavigation.vue';
|
|
|
74
74
|
import BaseSideNavigationItem from './BaseSideNavigationItem.vue';
|
|
75
75
|
import BaseSkeleton from './BaseSkeleton.vue';
|
|
76
76
|
import BaseStatistic from './BaseStatistic.vue';
|
|
77
|
+
import BaseStepper from './BaseStepper.vue';
|
|
78
|
+
import BaseStepperItem from './BaseStepperItem.vue';
|
|
77
79
|
import BaseSwitch from './BaseSwitch.vue';
|
|
78
80
|
import BaseSystemAlert from './BaseSystemAlert.vue';
|
|
79
81
|
import BaseTabs from './BaseTabs.vue';
|
|
@@ -169,6 +171,8 @@ export {
|
|
|
169
171
|
BaseSideNavigationItem,
|
|
170
172
|
BaseSkeleton,
|
|
171
173
|
BaseStatistic,
|
|
174
|
+
BaseStepper,
|
|
175
|
+
BaseStepperItem,
|
|
172
176
|
BaseSwitch,
|
|
173
177
|
BaseSystemAlert,
|
|
174
178
|
BaseTabs,
|
package/src/lang/en.json
CHANGED
package/src/lang/fr.json
CHANGED
|
@@ -84,4 +84,4 @@
|
|
|
84
84
|
"you_can_upload_up_to_n_files": "Vous pouvez télécharger un fichier au maximum|Vous pouvez télécharger jusqu'à {count} fichiers",
|
|
85
85
|
"you_cannot_select_more_than_x_items": "Vous ne pouvez pas sélectionner plus de un élément|Vous ne pouvez pas sélectionner plus de {count} éléments"
|
|
86
86
|
}
|
|
87
|
-
}
|
|
87
|
+
}
|