sprintify-ui 0.0.1 → 0.0.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 +13 -2
- package/dist/sprintify-ui.es.js +4588 -1369
- package/dist/style.css +1 -1
- package/dist/types/src/components/BaseBelongsTo.vue.d.ts +12 -12
- package/dist/types/src/components/BaseInput.vue.d.ts +4 -4
- package/dist/types/src/components/BaseTableColumn.vue.d.ts +1 -1
- package/dist/types/src/components/BaseTextarea.vue.d.ts +4 -4
- package/dist/types/src/components/index.d.ts +20 -2
- package/dist/types/src/index.d.ts +1 -0
- package/package.json +3 -4
- package/src/components/BaseAlert.vue +4 -4
- package/src/components/BaseAutocomplete.vue +2 -2
- package/src/components/BaseAutocompleteFetch.vue +4 -1
- package/src/components/BaseAvatar.stories.js +1 -1
- package/src/components/BaseBelongsTo.vue +2 -2
- package/src/components/BaseBoolean.vue +2 -2
- package/src/components/BaseBreadcrumbs.vue +7 -7
- package/src/components/BaseClipboard.stories.js +1 -1
- package/src/components/BaseClipboard.vue +2 -2
- package/src/components/BaseDataIterator.vue +5 -5
- package/src/components/BaseDataTable.stories.js +1 -1
- package/src/components/BaseDataTable.vue +7 -4
- package/src/components/BaseDataTableToggleColumns.vue +1 -3
- package/src/components/BaseDatePicker.vue +2 -2
- package/src/components/BaseDialog.vue +4 -4
- package/src/components/BaseMediaLibrary.vue +1 -1
- package/src/components/BaseMenuItem.vue +1 -1
- package/src/components/BaseModalCenter.vue +1 -1
- package/src/components/BaseModalSide.vue +3 -3
- package/src/components/BaseNavbar.vue +2 -2
- package/src/components/BaseNavbarItemContent.vue +1 -1
- package/src/components/BasePagination.vue +2 -2
- package/src/components/BasePaginationSimple.vue +2 -2
- package/src/components/BasePassword.vue +6 -2
- package/src/components/BaseSystemAlert.vue +1 -1
- package/src/components/BaseTable.vue +5 -3
- package/src/components/BaseTagAutocomplete.vue +1 -0
- package/src/components/BaseTitle.vue +1 -1
- package/src/components/index.ts +44 -2
- package/src/composables/modal.ts +1 -1
- package/src/index.ts +2 -0
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
type="button"
|
|
57
57
|
@click="modal.close()"
|
|
58
58
|
>
|
|
59
|
-
<
|
|
59
|
+
<BaseIcon
|
|
60
60
|
class="h-8 w-8 text-white"
|
|
61
61
|
icon="heroicons:x-mark"
|
|
62
|
-
|
|
62
|
+
/>
|
|
63
63
|
</button>
|
|
64
64
|
<slot :close="modal.close" />
|
|
65
65
|
</div>
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
</template>
|
|
74
74
|
|
|
75
75
|
<script lang="ts" setup>
|
|
76
|
-
import { useBreakpoints } from '@/composables/breakpoints';
|
|
77
76
|
import { useModal } from '@/composables/modal';
|
|
77
|
+
import { useBreakpoints } from '@/composables/breakpoints';
|
|
78
78
|
|
|
79
79
|
const props = defineProps({
|
|
80
80
|
modelValue: {
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
@click="toggleMenu()"
|
|
16
16
|
>
|
|
17
17
|
<span class="sr-only">Open main menu</span>
|
|
18
|
-
<
|
|
18
|
+
<BaseIcon
|
|
19
19
|
v-if="!showMobileMenu"
|
|
20
20
|
icon="heroicons:bars-3"
|
|
21
21
|
class="block h-6 w-6"
|
|
22
22
|
aria-hidden="true"
|
|
23
23
|
/>
|
|
24
|
-
<
|
|
24
|
+
<BaseIcon
|
|
25
25
|
v-else
|
|
26
26
|
icon="heroicons:x-mark"
|
|
27
27
|
class="block h-6 w-6"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="classes">
|
|
3
3
|
<div class="flex grow items-center">
|
|
4
|
-
<
|
|
4
|
+
<BaseIcon v-if="icon" :icon="icon" :class="iconClasses" />
|
|
5
5
|
{{ label }}
|
|
6
6
|
</div>
|
|
7
7
|
<div v-if="count" class="relative -top-px ml-[5px]">
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
class="inline-flex items-center border-t-2 border-transparent px-1 py-4 text-sm font-medium text-slate-500 hover:enabled:border-slate-300 hover:enabled:text-slate-700 disabled:cursor-not-allowed disabled:opacity-60"
|
|
11
11
|
@click="previous()"
|
|
12
12
|
>
|
|
13
|
-
<
|
|
13
|
+
<BaseIcon
|
|
14
14
|
class="mr-3 h-5 w-5 text-slate-400"
|
|
15
15
|
icon="heroicons-solid:arrow-narrow-left"
|
|
16
16
|
/>
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
@click="next()"
|
|
41
41
|
>
|
|
42
42
|
{{ $t('sui.next') }}
|
|
43
|
-
<
|
|
43
|
+
<BaseIcon
|
|
44
44
|
class="ml-3 h-5 w-5 text-slate-400"
|
|
45
45
|
icon="heroicons-solid:arrow-narrow-right"
|
|
46
46
|
/>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
class="flex h-8 w-8 items-center justify-center rounded-md border border-slate-300 text-sm font-medium text-slate-400 outline-none hover:enabled:border-slate-400 hover:enabled:text-slate-700 disabled:cursor-not-allowed disabled:border-transparent disabled:opacity-60"
|
|
10
10
|
@click="previous()"
|
|
11
11
|
>
|
|
12
|
-
<
|
|
12
|
+
<BaseIcon
|
|
13
13
|
class="h-5 w-5 text-slate-400"
|
|
14
14
|
icon="heroicons-solid:chevron-left"
|
|
15
15
|
/>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
class="flex h-8 w-8 items-center justify-center rounded-md border border-slate-300 text-sm font-medium text-slate-400 outline-none hover:enabled:border-slate-400 hover:enabled:text-slate-700 disabled:cursor-not-allowed disabled:border-transparent disabled:opacity-60"
|
|
20
20
|
@click="next()"
|
|
21
21
|
>
|
|
22
|
-
<
|
|
22
|
+
<BaseIcon
|
|
23
23
|
class="h-5 w-5 text-slate-400"
|
|
24
24
|
icon="heroicons-solid:chevron-right"
|
|
25
25
|
/>
|
|
@@ -19,8 +19,12 @@
|
|
|
19
19
|
class="pr-3 text-slate-500"
|
|
20
20
|
@click="showPassword = !showPassword"
|
|
21
21
|
>
|
|
22
|
-
<
|
|
23
|
-
|
|
22
|
+
<BaseIcon
|
|
23
|
+
v-if="!showPassword"
|
|
24
|
+
icon="heroicons:eye-off"
|
|
25
|
+
class="h-5 w-5"
|
|
26
|
+
/>
|
|
27
|
+
<BaseIcon v-else icon="heroicons:eye" class="h-5 w-5" />
|
|
24
28
|
</button>
|
|
25
29
|
</div>
|
|
26
30
|
</div>
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
<span
|
|
53
53
|
v-show="column.sortable && currentSortColumn === column"
|
|
54
54
|
>
|
|
55
|
-
<
|
|
55
|
+
<BaseIcon
|
|
56
56
|
icon="mdi:chevron-down"
|
|
57
57
|
class="h-5 w-5 duration-300"
|
|
58
58
|
:class="{
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
: false,
|
|
129
129
|
]"
|
|
130
130
|
>
|
|
131
|
-
<
|
|
131
|
+
<BaseIcon icon="heroicons-solid:dots-vertical" />
|
|
132
132
|
</div>
|
|
133
133
|
</template>
|
|
134
134
|
</BaseMenu>
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
}"
|
|
154
154
|
@click.stop="toggleDetails(row)"
|
|
155
155
|
>
|
|
156
|
-
<
|
|
156
|
+
<BaseIcon
|
|
157
157
|
v-if="hasDetailedVisible(row)"
|
|
158
158
|
icon="mdi:chevron-down"
|
|
159
159
|
class="h-5 w-5"
|
|
@@ -266,6 +266,8 @@ import { BaseTableColumn, MenuItemInterface, Row } from '@/types/types';
|
|
|
266
266
|
import SlotComponent from './SlotComponent';
|
|
267
267
|
import { useResizeObserver } from '@vueuse/core';
|
|
268
268
|
import { debounce, isArray } from 'lodash';
|
|
269
|
+
import BaseLoadingCover from './BaseLoadingCover.vue';
|
|
270
|
+
import BaseMenu from './BaseMenu.vue';
|
|
269
271
|
|
|
270
272
|
const checkboxStyle =
|
|
271
273
|
'disabled:bg-slate-100 disabled:border-slate-300 disabled:cursor-not-allowed border-slate-400 rounded';
|
|
@@ -82,6 +82,7 @@ import { cloneDeep, get } from 'lodash';
|
|
|
82
82
|
import { PropType, Ref, ComputedRef } from 'vue';
|
|
83
83
|
import { NormalizedOption, Option, OptionValue } from '@/types/types';
|
|
84
84
|
import { useInfiniteScroll } from '@vueuse/core';
|
|
85
|
+
import BaseLoadingCover from './BaseLoadingCover.vue';
|
|
85
86
|
//import { useNotificationsStore } from '../../stores/notifications';
|
|
86
87
|
|
|
87
88
|
const props = defineProps({
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
:to="back"
|
|
6
6
|
class="block rounded-full border border-slate-200 bg-white p-2 shadow duration-150 hover:bg-slate-100"
|
|
7
7
|
>
|
|
8
|
-
<
|
|
8
|
+
<BaseIcon class="h-6 w-6" icon="mdi:chevron-left" />
|
|
9
9
|
</router-link>
|
|
10
10
|
</div>
|
|
11
11
|
<div class="grow sm:flex sm:items-start">
|
package/src/components/index.ts
CHANGED
|
@@ -1,6 +1,48 @@
|
|
|
1
1
|
import BaseAlert from './BaseAlert.vue';
|
|
2
2
|
import BaseAutocomplete from './BaseAutocomplete.vue';
|
|
3
|
+
import BaseAutocompleteFetch from './BaseAutocompleteFetch.vue';
|
|
4
|
+
import BaseAvatar from './BaseAvatar.vue';
|
|
5
|
+
import BaseBadge from './BaseBadge.vue';
|
|
6
|
+
import BaseBelongsTo from './BaseBelongsTo.vue';
|
|
7
|
+
import BaseBoolean from './BaseBoolean.vue';
|
|
8
|
+
import BaseBreadcrumbs from './BaseBreadcrumbs.vue';
|
|
3
9
|
import BaseButton from './BaseButton.vue';
|
|
4
|
-
import
|
|
10
|
+
import BaseCard from './BaseCard.vue';
|
|
11
|
+
import BaseCardRow from './BaseCardRow.vue';
|
|
12
|
+
import BaseClipboard from './BaseClipboard.vue';
|
|
13
|
+
import BaseContainer from './BaseContainer.vue';
|
|
14
|
+
import BaseCounter from './BaseCounter.vue';
|
|
15
|
+
import BaseDataIterator from './BaseDataIterator.vue';
|
|
16
|
+
import BaseDataTable from './BaseDataTable.vue';
|
|
5
17
|
|
|
6
|
-
|
|
18
|
+
import { Icon as BaseIcon } from '@iconify/vue';
|
|
19
|
+
import BaseLoadingCover from './BaseLoadingCover.vue';
|
|
20
|
+
import BaseMenu from './BaseMenu.vue';
|
|
21
|
+
import BaseMenuItem from './BaseMenuItem.vue';
|
|
22
|
+
import BaseTable from './BaseTable.vue';
|
|
23
|
+
import BaseTableColumn from './BaseTableColumn.vue';
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
BaseAlert,
|
|
27
|
+
BaseAutocomplete,
|
|
28
|
+
BaseAutocompleteFetch,
|
|
29
|
+
BaseAvatar,
|
|
30
|
+
BaseBadge,
|
|
31
|
+
BaseBelongsTo,
|
|
32
|
+
BaseBoolean,
|
|
33
|
+
BaseBreadcrumbs,
|
|
34
|
+
BaseButton,
|
|
35
|
+
BaseCard,
|
|
36
|
+
BaseCardRow,
|
|
37
|
+
BaseClipboard,
|
|
38
|
+
BaseContainer,
|
|
39
|
+
BaseCounter,
|
|
40
|
+
BaseDataIterator,
|
|
41
|
+
BaseDataTable,
|
|
42
|
+
BaseIcon,
|
|
43
|
+
BaseLoadingCover,
|
|
44
|
+
BaseMenu,
|
|
45
|
+
BaseMenuItem,
|
|
46
|
+
BaseTable,
|
|
47
|
+
BaseTableColumn,
|
|
48
|
+
};
|
package/src/composables/modal.ts
CHANGED