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.
Files changed (49) hide show
  1. package/README.md +7 -3
  2. package/dist/sprintify-ui.es.js +2685 -2686
  3. package/dist/types/src/components/BaseAutocomplete.vue.d.ts +6 -6
  4. package/dist/types/src/components/BaseAutocompleteDrawer.vue.d.ts +1 -1
  5. package/dist/types/src/components/BaseAutocompleteFetch.vue.d.ts +5 -5
  6. package/dist/types/src/components/BaseAvatarGroup.vue.d.ts +1 -1
  7. package/dist/types/src/components/BaseBelongsTo.vue.d.ts +3 -3
  8. package/dist/types/src/components/BaseButtonGroup.vue.d.ts +2 -2
  9. package/dist/types/src/components/BaseCharacterCounter.vue.d.ts +1 -1
  10. package/dist/types/src/components/BaseColor.vue.d.ts +2 -2
  11. package/dist/types/src/components/BaseDatePicker.vue.d.ts +1 -6
  12. package/dist/types/src/components/BaseDropdownAutocomplete.vue.d.ts +4 -4
  13. package/dist/types/src/components/BaseFieldI18n.vue.d.ts +4 -4
  14. package/dist/types/src/components/BaseFilePicker.vue.d.ts +1 -1
  15. package/dist/types/src/components/BaseFileUploader.vue.d.ts +1 -1
  16. package/dist/types/src/components/BaseForm.vue.d.ts +1 -1
  17. package/dist/types/src/components/BaseHasMany.vue.d.ts +2 -2
  18. package/dist/types/src/components/BaseInput.vue.d.ts +5 -5
  19. package/dist/types/src/components/BaseInputPercent.vue.d.ts +4 -4
  20. package/dist/types/src/components/BaseLoadingCover.vue.d.ts +1 -1
  21. package/dist/types/src/components/BaseMediaLibrary.vue.d.ts +3 -3
  22. package/dist/types/src/components/BaseModalCenter.vue.d.ts +1 -1
  23. package/dist/types/src/components/BaseModalSide.vue.d.ts +1 -1
  24. package/dist/types/src/components/BaseNumber.vue.d.ts +7 -7
  25. package/dist/types/src/components/BasePassword.vue.d.ts +2 -2
  26. package/dist/types/src/components/BaseRadioGroup.vue.d.ts +1 -1
  27. package/dist/types/src/components/BaseRichText.vue.d.ts +2 -2
  28. package/dist/types/src/components/BaseSelect.vue.d.ts +4 -4
  29. package/dist/types/src/components/BaseSwitch.vue.d.ts +1 -1
  30. package/dist/types/src/components/BaseTagAutocomplete.vue.d.ts +6 -6
  31. package/dist/types/src/components/BaseTagAutocompleteFetch.vue.d.ts +3 -3
  32. package/dist/types/src/components/BaseTextarea.vue.d.ts +3 -3
  33. package/dist/types/src/components/BaseTextareaAutoresize.vue.d.ts +3 -3
  34. package/package.json +1 -1
  35. package/src/components/BaseAutocomplete.vue +1 -1
  36. package/src/components/BaseAutocompleteDrawer.vue +1 -1
  37. package/src/components/BaseBadge.vue +1 -1
  38. package/src/components/BaseDatePicker.stories.js +0 -1
  39. package/src/components/BaseDatePicker.vue +10 -4
  40. package/src/components/BaseIconPicker.vue +1 -1
  41. package/src/components/BaseInput.vue +1 -1
  42. package/src/components/BaseLayoutNotificationDropdown.vue +1 -1
  43. package/src/components/BaseLayoutSidebar.vue +1 -1
  44. package/src/components/BaseMediaItem.vue +1 -1
  45. package/src/components/BaseMediaPreview.vue +1 -1
  46. package/src/components/BaseShortcut.vue +1 -1
  47. package/src/components/BaseStatistic.vue +1 -1
  48. package/src/components/BaseStepperItem.vue +1 -1
  49. 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({
@@ -11,7 +11,7 @@
11
11
 
12
12
  <script lang="ts" setup>
13
13
  import { getColorConfig } from '@/utils/colors';
14
- import { BaseIcon } from '.';
14
+ import { Icon as BaseIcon } from '@iconify/vue';
15
15
 
16
16
  const props = withDefaults(
17
17
  defineProps<{
@@ -67,7 +67,6 @@ Multiple.args = {
67
67
  export const DateAndTime = Template.bind({});
68
68
  DateAndTime.args = {
69
69
  enableTime: true,
70
- format: 'Y-m-d H:i',
71
70
  };
72
71
 
73
72
  export const DisableDates = Template.bind({});
@@ -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: props.format,
157
+ dateFormat: formatInternal.value,
152
158
  mode: props.mode,
153
159
  locale: locale.value,
154
160
  minDate: props.minDate ?? undefined,
@@ -47,7 +47,7 @@
47
47
  </template>
48
48
 
49
49
  <script lang="ts" setup>
50
- import { BaseIcon } from '..';
50
+ import { Icon as BaseIcon } from '@iconify/vue';
51
51
 
52
52
  const props = withDefaults(
53
53
  defineProps<{
@@ -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 '@/index';
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
 
@@ -51,7 +51,7 @@
51
51
  import { Media } from '@/types/Media';
52
52
  import { UploadedFile } from '@/types/UploadedFile';
53
53
  import { PropType } from 'vue';
54
- import { BaseIcon } from './index';
54
+ import { Icon as BaseIcon } from '@iconify/vue';
55
55
 
56
56
  defineEmits(['delete']);
57
57
 
@@ -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';
@@ -33,7 +33,7 @@
33
33
 
34
34
  <script lang="ts">
35
35
  import { defineComponent, PropType } from 'vue';
36
- import { BaseIcon } from '.';
36
+ import { Icon as BaseIcon } from '@iconify/vue';
37
37
 
38
38
  export default defineComponent({
39
39
  components: { BaseIcon },
@@ -119,7 +119,7 @@
119
119
 
120
120
  <script lang="ts" setup>
121
121
  import { PropType } from 'vue';
122
- import { BaseIcon } from '.';
122
+ import { Icon as BaseIcon } from '@iconify/vue';
123
123
 
124
124
  defineProps({
125
125
  stepNumber: {
@@ -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: {