sprintify-ui 0.0.173 → 0.0.175
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 +7 -3
- package/dist/sprintify-ui.es.js +2685 -2686
- package/dist/types/src/components/BaseAutocomplete.vue.d.ts +6 -6
- package/dist/types/src/components/BaseAutocompleteDrawer.vue.d.ts +1 -1
- package/dist/types/src/components/BaseAutocompleteFetch.vue.d.ts +5 -5
- package/dist/types/src/components/BaseAvatarGroup.vue.d.ts +1 -1
- package/dist/types/src/components/BaseBelongsTo.vue.d.ts +3 -3
- package/dist/types/src/components/BaseButtonGroup.vue.d.ts +2 -2
- package/dist/types/src/components/BaseCharacterCounter.vue.d.ts +1 -1
- package/dist/types/src/components/BaseColor.vue.d.ts +2 -2
- package/dist/types/src/components/BaseDatePicker.vue.d.ts +1 -6
- package/dist/types/src/components/BaseDropdownAutocomplete.vue.d.ts +4 -4
- package/dist/types/src/components/BaseFieldI18n.vue.d.ts +4 -4
- package/dist/types/src/components/BaseFilePicker.vue.d.ts +1 -1
- package/dist/types/src/components/BaseFileUploader.vue.d.ts +1 -1
- package/dist/types/src/components/BaseForm.vue.d.ts +1 -1
- package/dist/types/src/components/BaseHasMany.vue.d.ts +2 -2
- package/dist/types/src/components/BaseInput.vue.d.ts +5 -5
- package/dist/types/src/components/BaseInputPercent.vue.d.ts +4 -4
- package/dist/types/src/components/BaseLoadingCover.vue.d.ts +1 -1
- package/dist/types/src/components/BaseMediaLibrary.vue.d.ts +3 -3
- package/dist/types/src/components/BaseModalCenter.vue.d.ts +1 -1
- package/dist/types/src/components/BaseModalSide.vue.d.ts +1 -1
- package/dist/types/src/components/BaseNumber.vue.d.ts +7 -7
- package/dist/types/src/components/BasePassword.vue.d.ts +2 -2
- package/dist/types/src/components/BaseRadioGroup.vue.d.ts +1 -1
- package/dist/types/src/components/BaseRichText.vue.d.ts +2 -2
- package/dist/types/src/components/BaseSelect.vue.d.ts +4 -4
- package/dist/types/src/components/BaseSwitch.vue.d.ts +1 -1
- package/dist/types/src/components/BaseTagAutocomplete.vue.d.ts +6 -6
- package/dist/types/src/components/BaseTagAutocompleteFetch.vue.d.ts +3 -3
- package/dist/types/src/components/BaseTextarea.vue.d.ts +3 -3
- package/dist/types/src/components/BaseTextareaAutoresize.vue.d.ts +3 -3
- package/package.json +1 -1
- package/src/components/BaseAutocomplete.vue +1 -1
- package/src/components/BaseAutocompleteDrawer.vue +1 -1
- package/src/components/BaseBadge.vue +1 -1
- package/src/components/BaseDatePicker.stories.js +0 -1
- package/src/components/BaseDatePicker.vue +10 -4
- package/src/components/BaseIconPicker.vue +1 -1
- package/src/components/BaseInput.vue +1 -1
- package/src/components/BaseLayoutNotificationDropdown.vue +1 -1
- package/src/components/BaseLayoutSidebar.vue +1 -1
- package/src/components/BaseMediaItem.vue +1 -1
- package/src/components/BaseMediaPreview.vue +1 -1
- package/src/components/BaseShortcut.vue +1 -1
- package/src/components/BaseStatistic.vue +1 -1
- package/src/components/BaseStepperItem.vue +1 -1
- package/src/components/BaseTimelineItem.vue +1 -1
|
@@ -100,7 +100,7 @@ import { useInfiniteScroll } from '@vueuse/core';
|
|
|
100
100
|
import { NormalizedOption } from '@/types';
|
|
101
101
|
import { isArray, isObject, throttle } from 'lodash';
|
|
102
102
|
import BaseSkeleton from './BaseSkeleton.vue';
|
|
103
|
-
import { BaseIcon } from '
|
|
103
|
+
import { Icon as BaseIcon } from '@iconify/vue';
|
|
104
104
|
import BaseSpinnerSmall from '../svg/BaseSpinnerSmall.vue';
|
|
105
105
|
|
|
106
106
|
const props = defineProps({
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
import { Ref } from 'vue';
|
|
37
37
|
import { isArray } from 'lodash';
|
|
38
38
|
import { DateTime } from 'luxon';
|
|
39
|
-
import { BaseIcon } from '
|
|
39
|
+
import { Icon as BaseIcon } from '@iconify/vue';
|
|
40
40
|
import { useField } from '@/composables/field';
|
|
41
41
|
import flatpickr from 'flatpickr';
|
|
42
42
|
import 'flatpickr/dist/flatpickr.css';
|
|
@@ -56,7 +56,6 @@ const props = withDefaults(
|
|
|
56
56
|
name?: string;
|
|
57
57
|
inline?: boolean;
|
|
58
58
|
enableTime?: boolean;
|
|
59
|
-
format?: string;
|
|
60
59
|
mode?: 'single' | 'multiple' | 'range' | 'time';
|
|
61
60
|
noCalendar?: boolean;
|
|
62
61
|
disableDates?: string[] | Date[];
|
|
@@ -71,7 +70,6 @@ const props = withDefaults(
|
|
|
71
70
|
name: undefined,
|
|
72
71
|
inline: false,
|
|
73
72
|
enableTime: false,
|
|
74
|
-
format: 'Y-m-d',
|
|
75
73
|
mode: 'single',
|
|
76
74
|
noCalendar: false,
|
|
77
75
|
disableDates() {
|
|
@@ -84,6 +82,14 @@ const i18n = useI18n();
|
|
|
84
82
|
|
|
85
83
|
const emit = defineEmits(['update:modelValue']);
|
|
86
84
|
|
|
85
|
+
const formatInternal = computed(() => {
|
|
86
|
+
if (props.enableTime) {
|
|
87
|
+
return 'Y-m-d H:i';
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return 'Y-m-d';
|
|
91
|
+
});
|
|
92
|
+
|
|
87
93
|
const { hasErrorInternal, emitUpdate } = useField({
|
|
88
94
|
name: computed(() => props.name),
|
|
89
95
|
required: computed(() => props.required),
|
|
@@ -148,7 +154,7 @@ let picker = null as Instance | null;
|
|
|
148
154
|
const flatpickrConfig = computed(() => {
|
|
149
155
|
return {
|
|
150
156
|
enableTime: props.enableTime,
|
|
151
|
-
dateFormat:
|
|
157
|
+
dateFormat: formatInternal.value,
|
|
152
158
|
mode: props.mode,
|
|
153
159
|
locale: locale.value,
|
|
154
160
|
minDate: props.minDate ?? undefined,
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
<script lang="ts" setup>
|
|
93
93
|
import { get } from 'lodash';
|
|
94
94
|
import { PropType } from 'vue';
|
|
95
|
-
import { BaseIcon } from '
|
|
95
|
+
import { Icon as BaseIcon } from '@iconify/vue';
|
|
96
96
|
import { useField } from '@/composables/field';
|
|
97
97
|
import { vMaska } from 'maska';
|
|
98
98
|
import BaseNumber from './BaseNumber.vue';
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
|
|
77
77
|
<script lang="ts" setup>
|
|
78
78
|
import { PropType } from 'vue';
|
|
79
|
-
import { BaseIcon } from '
|
|
79
|
+
import { Icon as BaseIcon } from '@iconify/vue';
|
|
80
80
|
import BaseCounter from './BaseCounter.vue';
|
|
81
81
|
import BaseLayoutNotificationItem from './BaseLayoutNotificationItem.vue';
|
|
82
82
|
import BaseMenu from './BaseMenu.vue';
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
} from '@headlessui/vue';
|
|
152
152
|
|
|
153
153
|
import { useSystemAlertStore } from '../stores/systemAlerts';
|
|
154
|
-
import { BaseIcon } from '
|
|
154
|
+
import { Icon as BaseIcon } from '@iconify/vue';
|
|
155
155
|
import BaseSystemAlert from './BaseSystemAlert.vue';
|
|
156
156
|
|
|
157
157
|
const props = defineProps({
|
|
@@ -38,7 +38,7 @@ import { UploadedFile } from '@/types/UploadedFile';
|
|
|
38
38
|
import { PropType } from 'vue';
|
|
39
39
|
import { fileSizeFormat } from '@/utils';
|
|
40
40
|
import BaseMediaPreview from './BaseMediaPreview.vue';
|
|
41
|
-
import { BaseIcon } from '
|
|
41
|
+
import { Icon as BaseIcon } from '@iconify/vue';
|
|
42
42
|
|
|
43
43
|
defineEmits(['remove']);
|
|
44
44
|
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
|
|
45
45
|
<script lang="ts" setup>
|
|
46
46
|
import { PropType } from 'vue';
|
|
47
|
-
import { BaseIcon } from '
|
|
47
|
+
import { Icon as BaseIcon } from '@iconify/vue';
|
|
48
48
|
import BaseCard from './BaseCard.vue';
|
|
49
49
|
import { RouteLocationRaw } from 'vue-router';
|
|
50
50
|
import { getColorConfig } from '@/utils/colors';
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
import { TimelineItem } from '../types/TimelineItem';
|
|
44
44
|
import { Color } from '../types/Color';
|
|
45
45
|
import { PropType } from 'vue';
|
|
46
|
-
import { BaseIcon } from '
|
|
46
|
+
import { Icon as BaseIcon } from '@iconify/vue';
|
|
47
47
|
|
|
48
48
|
const props = defineProps({
|
|
49
49
|
item: {
|