@finema/core 1.4.105 → 1.4.107
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/dist/module.d.mts +1 -0
- package/dist/module.d.ts +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -2
- package/dist/runtime/components/Button/index.vue +0 -1
- package/dist/runtime/components/Form/InputUploadDropzoneImageAutoMultiple/item.vue +14 -2
- package/dist/runtime/components/Loader.vue +1 -1
- package/dist/runtime/components/QRCode.vue +22 -21
- package/package.json +4 -2
package/dist/module.d.mts
CHANGED
package/dist/module.d.ts
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineNuxtModule, createResolver, installModule, addPlugin, addComponentsDir, addImportsDir } from '@nuxt/kit';
|
|
2
2
|
|
|
3
3
|
const name = "@finema/core";
|
|
4
|
-
const version = "1.4.
|
|
4
|
+
const version = "1.4.107";
|
|
5
5
|
|
|
6
6
|
const colors = {
|
|
7
7
|
black: "#20243E",
|
|
@@ -398,7 +398,9 @@ const module = defineNuxtModule({
|
|
|
398
398
|
};
|
|
399
399
|
await installModule("@pinia/nuxt");
|
|
400
400
|
await installModule("@vee-validate/nuxt", veeValidateNuxtOptions);
|
|
401
|
-
|
|
401
|
+
if (!options.securityDisabled) {
|
|
402
|
+
await installModule("nuxt-security", nuxtSecurityOptions);
|
|
403
|
+
}
|
|
402
404
|
addPlugin({
|
|
403
405
|
src: resolve(runtimeDir, "plugin")
|
|
404
406
|
});
|
|
@@ -36,8 +36,20 @@
|
|
|
36
36
|
:class="[ui.imageItem.onPreview.actionBtnClass]"
|
|
37
37
|
@click="handleDeleteFile"
|
|
38
38
|
/>
|
|
39
|
-
<Modal v-model="isPreviewOpen"
|
|
40
|
-
<
|
|
39
|
+
<Modal v-model="isPreviewOpen" size="xl">
|
|
40
|
+
<div class="absolute -top-8 left-0 flex w-full justify-between text-gray-600">
|
|
41
|
+
<p>{{ selectedFile?.name }}</p>
|
|
42
|
+
<Icon
|
|
43
|
+
name="i-heroicons-x-mark"
|
|
44
|
+
class="size-6 cursor-pointer hover:text-gray-400"
|
|
45
|
+
@click="() => (isPreviewOpen = false)"
|
|
46
|
+
/>
|
|
47
|
+
</div>
|
|
48
|
+
<img
|
|
49
|
+
:src="upload.data.value[responseKey]"
|
|
50
|
+
alt="image-preview"
|
|
51
|
+
class="w-full rounded-lg"
|
|
52
|
+
/>
|
|
41
53
|
</Modal>
|
|
42
54
|
</div>
|
|
43
55
|
</div>
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<QrcodeVue :value="value" :level="level" :render-as="renderAs" class="size-[350px]" />
|
|
3
|
-
</template>
|
|
4
|
-
<script lang="ts" setup>
|
|
5
|
-
import QrcodeVue from 'qrcode.vue'
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<QrcodeVue :value="value" :level="level" :render-as="renderAs" class="size-[350px]" />
|
|
3
|
+
</template>
|
|
4
|
+
<script lang="ts" setup>
|
|
5
|
+
import QrcodeVue, { type RenderAs } from 'qrcode.vue'
|
|
6
|
+
import { type PropType } from 'vue'
|
|
7
|
+
|
|
8
|
+
defineProps({
|
|
9
|
+
value: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: true,
|
|
12
|
+
},
|
|
13
|
+
level: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: 'M',
|
|
16
|
+
},
|
|
17
|
+
renderAs: {
|
|
18
|
+
type: String as PropType<RenderAs>,
|
|
19
|
+
default: 'svg',
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
</script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finema/core",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.107",
|
|
4
4
|
"repository": "https://gitlab.finema.co/finema/ui-kit",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Finema Dev Core Team",
|
|
@@ -23,8 +23,10 @@
|
|
|
23
23
|
"scripts": {
|
|
24
24
|
"prepack": "nuxt-module-build build",
|
|
25
25
|
"dev": "nuxi dev playground",
|
|
26
|
+
"docs": "nuxi dev docs",
|
|
26
27
|
"dev:build": "nuxi build playground",
|
|
27
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
28
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && nuxi prepare docs",
|
|
29
|
+
"docs:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare docs",
|
|
28
30
|
"lint": "eslint . --cache",
|
|
29
31
|
"lint:fix": "eslint . --fix --cache",
|
|
30
32
|
"test": "vitest run",
|