@finema/core 1.4.21 → 1.4.23
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 +63 -60
- package/dist/module.d.mts +4 -4
- package/dist/module.d.ts +4 -4
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -1
- package/dist/runtime/components/Alert.vue +49 -49
- package/dist/runtime/components/Avatar.vue +27 -27
- package/dist/runtime/components/Badge.vue +54 -54
- package/dist/runtime/components/Breadcrumb.vue +45 -45
- package/dist/runtime/components/Button/Group.vue +37 -37
- package/dist/runtime/components/Button/index.vue +77 -77
- package/dist/runtime/components/Card.vue +38 -38
- package/dist/runtime/components/Core.vue +13 -13
- package/dist/runtime/components/Dialog/index.vue +98 -98
- package/dist/runtime/components/Dropdown/index.vue +71 -81
- package/dist/runtime/components/Form/FieldWrapper.vue +21 -21
- package/dist/runtime/components/Form/Fields.vue +129 -129
- package/dist/runtime/components/Form/InputCheckbox/index.vue +21 -21
- package/dist/runtime/components/Form/InputDateTime/index.vue +51 -51
- package/dist/runtime/components/Form/InputRadio/index.vue +27 -27
- package/dist/runtime/components/Form/InputSelect/index.vue +37 -37
- package/dist/runtime/components/Form/InputStatic/index.vue +16 -16
- package/dist/runtime/components/Form/InputText/index.vue +27 -27
- package/dist/runtime/components/Form/InputTextarea/index.vue +25 -25
- package/dist/runtime/components/Form/InputToggle/index.vue +14 -14
- package/dist/runtime/components/Form/InputUploadFileClassic/index.vue +36 -36
- package/dist/runtime/components/Form/index.vue +6 -6
- package/dist/runtime/components/Icon.vue +23 -23
- package/dist/runtime/components/Image.vue +36 -36
- package/dist/runtime/components/Loader.vue +14 -4
- package/dist/runtime/components/Modal/index.vue +146 -146
- package/dist/runtime/components/SimplePagination.vue +96 -0
- package/dist/runtime/components/Slideover/index.vue +110 -110
- package/dist/runtime/components/Table/Base.vue +17 -3
- package/dist/runtime/components/Table/ColumnDate.vue +16 -16
- package/dist/runtime/components/Table/ColumnDateTime.vue +30 -30
- package/dist/runtime/components/Table/ColumnImage.vue +13 -13
- package/dist/runtime/components/Table/ColumnNumber.vue +14 -14
- package/dist/runtime/components/Table/Simple.vue +57 -53
- package/dist/runtime/components/Table/index.vue +52 -47
- package/dist/runtime/components/Table/types.d.ts +2 -2
- package/dist/runtime/components/Tabs/index.vue +65 -65
- package/dist/runtime/types/config.d.ts +1 -1
- package/dist/runtime/types/utils.d.ts +29 -29
- package/dist/runtime/ui.config/pagination.d.ts +1 -1
- package/dist/runtime/ui.config/pagination.mjs +3 -0
- package/dist/runtime/ui.css +32 -32
- package/package.json +86 -83
|
@@ -1,47 +1,52 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div v-if="options.isEnabledSearch" class="mb-4 flex justify-end">
|
|
4
|
-
<UInput
|
|
5
|
-
v-model="q"
|
|
6
|
-
icon="i-heroicons-magnifying-glass"
|
|
7
|
-
:placeholder="options.searchPlaceholder || 'ค้นหา...'"
|
|
8
|
-
/>
|
|
9
|
-
</div>
|
|
10
|
-
<Base
|
|
11
|
-
v-bind="$attrs"
|
|
12
|
-
:columns="options.columns"
|
|
13
|
-
:raw-data="options.rawData"
|
|
14
|
-
:status="options.status"
|
|
15
|
-
:page-options="options.pageOptions"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div v-if="options.isEnabledSearch" class="mb-4 flex justify-end">
|
|
4
|
+
<UInput
|
|
5
|
+
v-model="q"
|
|
6
|
+
icon="i-heroicons-magnifying-glass"
|
|
7
|
+
:placeholder="options.searchPlaceholder || 'ค้นหา...'"
|
|
8
|
+
/>
|
|
9
|
+
</div>
|
|
10
|
+
<Base
|
|
11
|
+
v-bind="$attrs"
|
|
12
|
+
:columns="options.columns"
|
|
13
|
+
:raw-data="options.rawData"
|
|
14
|
+
:status="options.status"
|
|
15
|
+
:page-options="options.pageOptions"
|
|
16
|
+
:is-simple-pagination="options.isSimplePagination"
|
|
17
|
+
@page-change="onPageChange"
|
|
18
|
+
>
|
|
19
|
+
<template v-for="(_, slot) of $slots" #[slot]="slotProps">
|
|
20
|
+
<slot :name="slot" v-bind="slotProps || {}" />
|
|
21
|
+
</template>
|
|
22
|
+
</Base>
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
25
|
+
<script lang="ts" setup>
|
|
26
|
+
import { type PropType } from 'vue'
|
|
27
|
+
import { type ITableOptions } from '#core/components/Table/types'
|
|
28
|
+
import { _debounce, ref, watch } from '#imports'
|
|
29
|
+
import Base from '#core/components/Table/Base.vue'
|
|
30
|
+
|
|
31
|
+
const emits = defineEmits<{
|
|
32
|
+
(event: 'pageChange', page: number): void
|
|
33
|
+
(event: 'search', q: string): void
|
|
34
|
+
}>()
|
|
35
|
+
|
|
36
|
+
const props = defineProps({
|
|
37
|
+
options: { type: Object as PropType<ITableOptions>, required: true },
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
const q = ref(props.options?.pageOptions.search ?? '')
|
|
41
|
+
|
|
42
|
+
watch(
|
|
43
|
+
q,
|
|
44
|
+
_debounce((value) => {
|
|
45
|
+
emits('search', value)
|
|
46
|
+
}, 500)
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
const onPageChange = (page: number) => {
|
|
50
|
+
emits('pageChange', page)
|
|
51
|
+
}
|
|
52
|
+
</script>
|
|
@@ -31,7 +31,6 @@ export interface IBaseTableOptions<T = object> {
|
|
|
31
31
|
primary: string;
|
|
32
32
|
status: IStatus;
|
|
33
33
|
columns: IColumn[];
|
|
34
|
-
isShowCheckbox?: boolean;
|
|
35
34
|
onRowClick?: (index: number, columns: Array<{
|
|
36
35
|
value: string;
|
|
37
36
|
}>) => void;
|
|
@@ -46,7 +45,8 @@ export interface ITableOptions<T = object> extends IBaseTableOptions<T> {
|
|
|
46
45
|
deleteStatus?: IStatus;
|
|
47
46
|
isHideBottomPagination?: boolean;
|
|
48
47
|
isHideTopPagination?: boolean;
|
|
49
|
-
|
|
48
|
+
isSimplePagination?: boolean;
|
|
49
|
+
isPreventRouteChange: boolean;
|
|
50
50
|
}
|
|
51
51
|
export interface ISimpleTableOptions<T = object> extends IBaseTableOptions<T> {
|
|
52
52
|
limit?: number;
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<UTabs
|
|
3
|
-
v-bind="attrs"
|
|
4
|
-
:model-value="modelValue"
|
|
5
|
-
:class="$props.class"
|
|
6
|
-
:items="items"
|
|
7
|
-
:orientation="orientation"
|
|
8
|
-
:default-index="defaultIndex"
|
|
9
|
-
:ui="ui"
|
|
10
|
-
@change="change"
|
|
11
|
-
>
|
|
12
|
-
<template #default="{ item, index, selected }">
|
|
13
|
-
<slot name="default" :item="item" :index="index" :selected="selected" />
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<template #item="{ item, index, selected }">
|
|
17
|
-
<slot name="item" :item="item" :index="index" :selected="selected" />
|
|
18
|
-
</template>
|
|
19
|
-
</UTabs>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<script setup lang="ts">
|
|
23
|
-
import { useUiConfig, type PropType, useUI, toRef } from '#imports'
|
|
24
|
-
import { type TabItem } from '#ui/types'
|
|
25
|
-
import type { Strategy } from '#core/types/utils'
|
|
26
|
-
import { tabs } from '#core/ui.config'
|
|
27
|
-
|
|
28
|
-
const config = useUiConfig<typeof tabs>(tabs, 'tabs')
|
|
29
|
-
|
|
30
|
-
const props = defineProps({
|
|
31
|
-
modelValue: {
|
|
32
|
-
type: Number,
|
|
33
|
-
default: undefined,
|
|
34
|
-
},
|
|
35
|
-
items: {
|
|
36
|
-
type: Array as PropType<TabItem[]>,
|
|
37
|
-
default: () => [],
|
|
38
|
-
},
|
|
39
|
-
orientation: {
|
|
40
|
-
type: String as PropType<'horizontal' | 'vertical'>,
|
|
41
|
-
default: 'horizontal',
|
|
42
|
-
validator: (value: string) => ['horizontal', 'vertical'].includes(value),
|
|
43
|
-
},
|
|
44
|
-
defaultIndex: {
|
|
45
|
-
type: Number,
|
|
46
|
-
default: 0,
|
|
47
|
-
},
|
|
48
|
-
class: {
|
|
49
|
-
type: [String, Object, Array] as PropType<any>,
|
|
50
|
-
default: () => '',
|
|
51
|
-
},
|
|
52
|
-
ui: {
|
|
53
|
-
type: Object as PropType<Partial<typeof config> & { strategy?: Strategy }>,
|
|
54
|
-
default: () => ({}),
|
|
55
|
-
},
|
|
56
|
-
})
|
|
57
|
-
|
|
58
|
-
const emits = defineEmits(['update:modelValue', 'change'])
|
|
59
|
-
|
|
60
|
-
const change = (index: number) => {
|
|
61
|
-
emits('change', index)
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const { ui, attrs } = useUI('tabs', toRef(props, 'ui'), config, toRef(props, 'class'))
|
|
65
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<UTabs
|
|
3
|
+
v-bind="attrs"
|
|
4
|
+
:model-value="modelValue"
|
|
5
|
+
:class="$props.class"
|
|
6
|
+
:items="items"
|
|
7
|
+
:orientation="orientation"
|
|
8
|
+
:default-index="defaultIndex"
|
|
9
|
+
:ui="ui"
|
|
10
|
+
@change="change"
|
|
11
|
+
>
|
|
12
|
+
<template #default="{ item, index, selected }">
|
|
13
|
+
<slot name="default" :item="item" :index="index" :selected="selected" />
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<template #item="{ item, index, selected }">
|
|
17
|
+
<slot name="item" :item="item" :index="index" :selected="selected" />
|
|
18
|
+
</template>
|
|
19
|
+
</UTabs>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script setup lang="ts">
|
|
23
|
+
import { useUiConfig, type PropType, useUI, toRef } from '#imports'
|
|
24
|
+
import { type TabItem } from '#ui/types'
|
|
25
|
+
import type { Strategy } from '#core/types/utils'
|
|
26
|
+
import { tabs } from '#core/ui.config'
|
|
27
|
+
|
|
28
|
+
const config = useUiConfig<typeof tabs>(tabs, 'tabs')
|
|
29
|
+
|
|
30
|
+
const props = defineProps({
|
|
31
|
+
modelValue: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: undefined,
|
|
34
|
+
},
|
|
35
|
+
items: {
|
|
36
|
+
type: Array as PropType<TabItem[]>,
|
|
37
|
+
default: () => [],
|
|
38
|
+
},
|
|
39
|
+
orientation: {
|
|
40
|
+
type: String as PropType<'horizontal' | 'vertical'>,
|
|
41
|
+
default: 'horizontal',
|
|
42
|
+
validator: (value: string) => ['horizontal', 'vertical'].includes(value),
|
|
43
|
+
},
|
|
44
|
+
defaultIndex: {
|
|
45
|
+
type: Number,
|
|
46
|
+
default: 0,
|
|
47
|
+
},
|
|
48
|
+
class: {
|
|
49
|
+
type: [String, Object, Array] as PropType<any>,
|
|
50
|
+
default: () => '',
|
|
51
|
+
},
|
|
52
|
+
ui: {
|
|
53
|
+
type: Object as PropType<Partial<typeof config> & { strategy?: Strategy }>,
|
|
54
|
+
default: () => ({}),
|
|
55
|
+
},
|
|
56
|
+
})
|
|
57
|
+
|
|
58
|
+
const emits = defineEmits(['update:modelValue', 'change'])
|
|
59
|
+
|
|
60
|
+
const change = (index: number) => {
|
|
61
|
+
emits('change', index)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const { ui, attrs } = useUI('tabs', toRef(props, 'ui'), config, toRef(props, 'class'))
|
|
65
|
+
</script>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type UIComponentList = 'modal' | 'slideover' | 'dropdown' | 'icon' | 'button' | 'buttonGroup' | 'tabs' | 'card' | 'breadcrumb' | 'badge' | 'input';
|
|
1
|
+
export type UIComponentList = 'modal' | 'slideover' | 'dropdown' | 'icon' | 'button' | 'buttonGroup' | 'tabs' | 'card' | 'breadcrumb' | 'badge' | 'input' | 'pagination';
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export type Strategy = 'merge' | 'override'
|
|
2
|
-
|
|
3
|
-
export type NestedKeyOf<ObjectType extends object> = {
|
|
4
|
-
[Key in keyof ObjectType]: ObjectType[Key] extends object ? NestedKeyOf<ObjectType[Key]> : Key
|
|
5
|
-
}[keyof ObjectType]
|
|
6
|
-
|
|
7
|
-
export type DeepPartial<T> = Partial<{
|
|
8
|
-
[P in keyof T]: DeepPartial<T[P]> | Record<string, string>
|
|
9
|
-
}>
|
|
10
|
-
|
|
11
|
-
type DeepKey<T, Keys extends string[]> = Keys extends [infer First, ...infer Rest]
|
|
12
|
-
? First extends keyof T
|
|
13
|
-
? Rest extends string[]
|
|
14
|
-
? DeepKey<T[First], Rest>
|
|
15
|
-
: never
|
|
16
|
-
: never
|
|
17
|
-
: T
|
|
18
|
-
|
|
19
|
-
export type ExtractDeepKey<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
|
|
20
|
-
? Result extends Record<string, any>
|
|
21
|
-
? keyof Result
|
|
22
|
-
: never
|
|
23
|
-
: never
|
|
24
|
-
|
|
25
|
-
export type ExtractDeepObject<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
|
|
26
|
-
? Result extends Record<string, any>
|
|
27
|
-
? Result
|
|
28
|
-
: never
|
|
29
|
-
: never
|
|
1
|
+
export type Strategy = 'merge' | 'override'
|
|
2
|
+
|
|
3
|
+
export type NestedKeyOf<ObjectType extends object> = {
|
|
4
|
+
[Key in keyof ObjectType]: ObjectType[Key] extends object ? NestedKeyOf<ObjectType[Key]> : Key
|
|
5
|
+
}[keyof ObjectType]
|
|
6
|
+
|
|
7
|
+
export type DeepPartial<T> = Partial<{
|
|
8
|
+
[P in keyof T]: DeepPartial<T[P]> | Record<string, string>
|
|
9
|
+
}>
|
|
10
|
+
|
|
11
|
+
type DeepKey<T, Keys extends string[]> = Keys extends [infer First, ...infer Rest]
|
|
12
|
+
? First extends keyof T
|
|
13
|
+
? Rest extends string[]
|
|
14
|
+
? DeepKey<T[First], Rest>
|
|
15
|
+
: never
|
|
16
|
+
: never
|
|
17
|
+
: T
|
|
18
|
+
|
|
19
|
+
export type ExtractDeepKey<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
|
|
20
|
+
? Result extends Record<string, any>
|
|
21
|
+
? keyof Result
|
|
22
|
+
: never
|
|
23
|
+
: never
|
|
24
|
+
|
|
25
|
+
export type ExtractDeepObject<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
|
|
26
|
+
? Result extends Record<string, any>
|
|
27
|
+
? Result
|
|
28
|
+
: never
|
|
29
|
+
: never
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const pagination = {
|
|
2
2
|
wrapper: "flex items-center space-x-1",
|
|
3
3
|
default: {
|
|
4
|
+
size: "sm",
|
|
4
5
|
activeButton: {
|
|
5
6
|
color: "primary",
|
|
6
7
|
class: "rounded-md px-3"
|
|
@@ -23,11 +24,13 @@ export const pagination = {
|
|
|
23
24
|
prevButton: {
|
|
24
25
|
color: "primary",
|
|
25
26
|
variant: "ghost",
|
|
27
|
+
icon: "i-heroicons-chevron-left-20-solid",
|
|
26
28
|
class: "rtl:[&_span:first-child]:rotate-180 rounded-md px-2 text-gray-500 hover:bg-primary-500 hover:text-white"
|
|
27
29
|
},
|
|
28
30
|
nextButton: {
|
|
29
31
|
color: "primary",
|
|
30
32
|
variant: "ghost",
|
|
33
|
+
icon: "i-heroicons-chevron-right-20-solid",
|
|
31
34
|
class: "rtl:[&_span:last-child]:rotate-180 rounded-md px-2 text-gray-500 hover:bg-primary-500 hover:text-white"
|
|
32
35
|
}
|
|
33
36
|
}
|
package/dist/runtime/ui.css
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--dp-font-family: inherit !important;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.dp__theme_light {
|
|
6
|
-
--dp-primary-color: rgb(var(--color-primary-DEFAULT)) !important;
|
|
7
|
-
--dp-primary-disabled-color: rgb(var(--color-primary-200)) !important;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
::-webkit-scrollbar {
|
|
11
|
-
-webkit-appearance: none;
|
|
12
|
-
width: 10px;
|
|
13
|
-
height: 10px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
::-webkit-scrollbar-thumb {
|
|
17
|
-
border-radius: 4px;
|
|
18
|
-
background-color: rgb(0 0 0 / 30%);
|
|
19
|
-
box-shadow: 0 0 1px rgb(255 255 255 / 50%);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
html,
|
|
24
|
-
body,
|
|
25
|
-
#__nuxt,
|
|
26
|
-
#__layout,
|
|
27
|
-
.root-container {
|
|
28
|
-
height: 100%;
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
}
|
|
32
|
-
|
|
1
|
+
:root {
|
|
2
|
+
--dp-font-family: inherit !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.dp__theme_light {
|
|
6
|
+
--dp-primary-color: rgb(var(--color-primary-DEFAULT)) !important;
|
|
7
|
+
--dp-primary-disabled-color: rgb(var(--color-primary-200)) !important;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
::-webkit-scrollbar {
|
|
11
|
+
-webkit-appearance: none;
|
|
12
|
+
width: 10px;
|
|
13
|
+
height: 10px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
::-webkit-scrollbar-thumb {
|
|
17
|
+
border-radius: 4px;
|
|
18
|
+
background-color: rgb(0 0 0 / 30%);
|
|
19
|
+
box-shadow: 0 0 1px rgb(255 255 255 / 50%);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
html,
|
|
24
|
+
body,
|
|
25
|
+
#__nuxt,
|
|
26
|
+
#__layout,
|
|
27
|
+
.root-container {
|
|
28
|
+
height: 100%;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
}
|
|
32
|
+
|
package/package.json
CHANGED
|
@@ -1,83 +1,86 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@finema/core",
|
|
3
|
-
"version": "1.4.
|
|
4
|
-
"repository": "https://gitlab.finema.co/finema/ui-kit",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"author": "Finema Dev Core Team",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/types.d.ts",
|
|
11
|
-
"import": "./dist/module.mjs",
|
|
12
|
-
"require": "./dist/module.cjs"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"main": "./dist/module.cjs",
|
|
16
|
-
"types": "./dist/types.d.ts",
|
|
17
|
-
"files": [
|
|
18
|
-
"dist"
|
|
19
|
-
],
|
|
20
|
-
"engines": {
|
|
21
|
-
"node": ">=18.0.0"
|
|
22
|
-
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"prepack": "nuxt-module-build build",
|
|
25
|
-
"dev": "nuxi dev playground",
|
|
26
|
-
"dev:build": "nuxi build playground",
|
|
27
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
28
|
-
"lint": "eslint . --cache",
|
|
29
|
-
"lint:fix": "eslint . --fix --cache",
|
|
30
|
-
"test": "vitest run",
|
|
31
|
-
"test:watch": "vitest watch",
|
|
32
|
-
"release": "release-it --ci",
|
|
33
|
-
"prepare": "husky install"
|
|
34
|
-
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"@nuxt/kit": "^3.7.4",
|
|
37
|
-
"@nuxt/ui": "^2.12.
|
|
38
|
-
"@pinia/nuxt": "^0.5.1",
|
|
39
|
-
"@vee-validate/nuxt": "^4.12.4",
|
|
40
|
-
"@vee-validate/zod": "^4.12.4",
|
|
41
|
-
"@vuepic/vue-datepicker": "^7.4.1",
|
|
42
|
-
"axios": "^1.6.5",
|
|
43
|
-
"date-fns": "^3.2.0",
|
|
44
|
-
"i18next": "^23.7.16",
|
|
45
|
-
"lodash-es": "^4.17.21",
|
|
46
|
-
"nuxt-security": "^1.0.0",
|
|
47
|
-
"pinia": "^2.1.7",
|
|
48
|
-
"qrcode.vue": "^3.4.1",
|
|
49
|
-
"url-join": "^5.0.0",
|
|
50
|
-
"zod": "^3.22.4",
|
|
51
|
-
"zod-i18n-map": "^2.25.0"
|
|
52
|
-
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
"@finema/eslint-config": "^1.2.0",
|
|
55
|
-
"@nuxt/devtools": "latest",
|
|
56
|
-
"@nuxt/eslint-config": "^0.2.0",
|
|
57
|
-
"@nuxt/module-builder": "^0.5.4",
|
|
58
|
-
"@nuxt/schema": "^3.7.4",
|
|
59
|
-
"@nuxt/test-utils": "^3.9.0",
|
|
60
|
-
"@release-it/conventional-changelog": "^8.0.1",
|
|
61
|
-
"@types/lodash-es": "^4.17.12",
|
|
62
|
-
"@types/node": "^20.10.8",
|
|
63
|
-
"@vue/test-utils": "^2.4.3",
|
|
64
|
-
"changelogen": "^0.5.5",
|
|
65
|
-
"eslint": "^8.56.0",
|
|
66
|
-
"happy-dom": "^13.0.0",
|
|
67
|
-
"husky": "^8.0.3",
|
|
68
|
-
"lint-staged": "^15.2.0",
|
|
69
|
-
"nuxt": "^3.9.1",
|
|
70
|
-
"playwright-core": "^1.40.1",
|
|
71
|
-
"prettier": "^3.1.1",
|
|
72
|
-
"release-it": "^17.0.1",
|
|
73
|
-
"sass": "^1.69.5",
|
|
74
|
-
"stylelint": "^16.1.0",
|
|
75
|
-
"stylelint-config-prettier-scss": "^1.0.0",
|
|
76
|
-
"stylelint-config-standard-scss": "^13.0.0",
|
|
77
|
-
"vitest": "^1.1.3"
|
|
78
|
-
},
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@finema/core",
|
|
3
|
+
"version": "1.4.23",
|
|
4
|
+
"repository": "https://gitlab.finema.co/finema/ui-kit",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Finema Dev Core Team",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/types.d.ts",
|
|
11
|
+
"import": "./dist/module.mjs",
|
|
12
|
+
"require": "./dist/module.cjs"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"main": "./dist/module.cjs",
|
|
16
|
+
"types": "./dist/types.d.ts",
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=18.0.0"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"prepack": "nuxt-module-build build",
|
|
25
|
+
"dev": "nuxi dev playground",
|
|
26
|
+
"dev:build": "nuxi build playground",
|
|
27
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
28
|
+
"lint": "eslint . --cache",
|
|
29
|
+
"lint:fix": "eslint . --fix --cache",
|
|
30
|
+
"test": "vitest run",
|
|
31
|
+
"test:watch": "vitest watch",
|
|
32
|
+
"release": "release-it --ci",
|
|
33
|
+
"prepare": "husky install"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@nuxt/kit": "^3.7.4",
|
|
37
|
+
"@nuxt/ui": "^2.12.3",
|
|
38
|
+
"@pinia/nuxt": "^0.5.1",
|
|
39
|
+
"@vee-validate/nuxt": "^4.12.4",
|
|
40
|
+
"@vee-validate/zod": "^4.12.4",
|
|
41
|
+
"@vuepic/vue-datepicker": "^7.4.1",
|
|
42
|
+
"axios": "^1.6.5",
|
|
43
|
+
"date-fns": "^3.2.0",
|
|
44
|
+
"i18next": "^23.7.16",
|
|
45
|
+
"lodash-es": "^4.17.21",
|
|
46
|
+
"nuxt-security": "^1.0.0",
|
|
47
|
+
"pinia": "^2.1.7",
|
|
48
|
+
"qrcode.vue": "^3.4.1",
|
|
49
|
+
"url-join": "^5.0.0",
|
|
50
|
+
"zod": "^3.22.4",
|
|
51
|
+
"zod-i18n-map": "^2.25.0"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@finema/eslint-config": "^1.2.0",
|
|
55
|
+
"@nuxt/devtools": "latest",
|
|
56
|
+
"@nuxt/eslint-config": "^0.2.0",
|
|
57
|
+
"@nuxt/module-builder": "^0.5.4",
|
|
58
|
+
"@nuxt/schema": "^3.7.4",
|
|
59
|
+
"@nuxt/test-utils": "^3.9.0",
|
|
60
|
+
"@release-it/conventional-changelog": "^8.0.1",
|
|
61
|
+
"@types/lodash-es": "^4.17.12",
|
|
62
|
+
"@types/node": "^20.10.8",
|
|
63
|
+
"@vue/test-utils": "^2.4.3",
|
|
64
|
+
"changelogen": "^0.5.5",
|
|
65
|
+
"eslint": "^8.56.0",
|
|
66
|
+
"happy-dom": "^13.0.0",
|
|
67
|
+
"husky": "^8.0.3",
|
|
68
|
+
"lint-staged": "^15.2.0",
|
|
69
|
+
"nuxt": "^3.9.1",
|
|
70
|
+
"playwright-core": "^1.40.1",
|
|
71
|
+
"prettier": "^3.1.1",
|
|
72
|
+
"release-it": "^17.0.1",
|
|
73
|
+
"sass": "^1.69.5",
|
|
74
|
+
"stylelint": "^16.1.0",
|
|
75
|
+
"stylelint-config-prettier-scss": "^1.0.0",
|
|
76
|
+
"stylelint-config-standard-scss": "^13.0.0",
|
|
77
|
+
"vitest": "^1.1.3"
|
|
78
|
+
},
|
|
79
|
+
"resolutions": {
|
|
80
|
+
"vue": "3.3.13"
|
|
81
|
+
},
|
|
82
|
+
"lint-staged": {
|
|
83
|
+
"*.{ts,vue,tsx,js}": "eslint --fix --cache",
|
|
84
|
+
"*.{html,json}": "prettier --write"
|
|
85
|
+
}
|
|
86
|
+
}
|