@finema/core 1.3.24 → 1.3.26

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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.3.24",
3
+ "version": "1.3.26",
4
4
  "configKey": "core",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.7.4"
package/dist/module.mjs CHANGED
@@ -2,7 +2,7 @@ import { defineNuxtModule, createResolver, installModule, addPlugin, addComponen
2
2
  import { merge } from 'lodash-es';
3
3
 
4
4
  const name = "@finema/core";
5
- const version = "1.3.24";
5
+ const version = "1.3.26";
6
6
 
7
7
  const colors = {
8
8
  black: "#20243E",
@@ -69,12 +69,7 @@ const colors = {
69
69
 
70
70
  const ui = {
71
71
  strategy: "override",
72
- safelistColors: ["secondary"],
73
- icons: {
74
- dynamic: true
75
- },
76
72
  pagination: {
77
- wrapper: "flex items-center -space-x-px space-x-1",
78
73
  default: {
79
74
  activeButton: {
80
75
  color: "primary",
@@ -189,7 +184,7 @@ const module = defineNuxtModule({
189
184
  };
190
185
  });
191
186
  await installModule("@nuxt/ui");
192
- nuxt.options.appConfig.ui = _merge(ui, nuxt.options.appConfig.ui);
187
+ nuxt.options.appConfig.ui = _merge(nuxt.options.appConfig.ui || {}, ui);
193
188
  await installModule("@pinia/nuxt");
194
189
  await installModule("@vee-validate/nuxt", {
195
190
  // disable or enable auto imports
@@ -47,6 +47,7 @@
47
47
  ผลลัพธ์ {{ pageBetween }} ของ {{ totalCountWithComma }} รายการ
48
48
  </p>
49
49
  <UPagination
50
+ v-if="options.pageOptions.totalPage > 1"
50
51
  v-model="page"
51
52
  :page-count="options.pageOptions.totalPage"
52
53
  :total="options.pageOptions.totalCount"
@@ -2,6 +2,7 @@ import { defineNuxtPlugin } from "#app";
2
2
  import z from "zod";
3
3
  import { zodI18nMap } from "zod-i18n-map";
4
4
  import i18next from "i18next";
5
+ import en from "zod-i18n-map/locales/en/zod.json";
5
6
  export default defineNuxtPlugin((nuxtApp) => {
6
7
  console.log("Plugin injected by @finema/core module!");
7
8
  i18next.init({
@@ -119,7 +120,8 @@ export default defineNuxtPlugin((nuxtApp) => {
119
120
  map: "map",
120
121
  set: "set"
121
122
  }
122
- }
123
+ },
124
+ en
123
125
  }
124
126
  }
125
127
  });
package/package.json CHANGED
@@ -1,82 +1,82 @@
1
- {
2
- "name": "@finema/core",
3
- "version": "1.3.24",
4
- "repository": "https://gitlab.finema.co/finema/ui-kit",
5
- "license": "MIT",
6
- "author": "Finema Development 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 .",
29
- "lint:fix": "eslint . --fix",
30
- "test": "vitest run",
31
- "test:watch": "vitest watch",
32
- "release": "release-it --ci",
33
- "prepare": "husky install"
34
- },
35
- "dependencies": {
36
- "@headlessui/vue": "^1.7.16",
37
- "@iconify-json/mdi": "^1.1.54",
38
- "@iconify-json/simple-icons": "^1.1.76",
39
- "@nuxt/kit": "^3.7.4",
40
- "@nuxt/ui": "^2.11.1",
41
- "@pinia/nuxt": "^0.4.11",
42
- "@vee-validate/nuxt": "^4.11.8",
43
- "@vee-validate/zod": "^4.11.8",
44
- "@vuepic/vue-datepicker": "^7.4.0",
45
- "axios": "^1.5.1",
46
- "date-fns": "^3.0.0",
47
- "i18next": "^23.7.11",
48
- "lodash-es": "^4.17.21",
49
- "nuxt-security": "^0.14.4",
50
- "pinia": "^2.1.6",
51
- "url-join": "^5.0.0",
52
- "zod": "^3.22.4",
53
- "zod-i18n-map": "^2.23.0"
54
- },
55
- "devDependencies": {
56
- "@finema/eslint-config": "^1.2.0",
57
- "@nuxt/devtools": "latest",
58
- "@nuxt/eslint-config": "^0.2.0",
59
- "@nuxt/module-builder": "^0.5.2",
60
- "@nuxt/schema": "^3.7.4",
61
- "@nuxt/test-utils": "^3.7.4",
62
- "@release-it/conventional-changelog": "^7.0.2",
63
- "@types/lodash-es": "^4.17.12",
64
- "@types/node": "^18.18.1",
65
- "changelogen": "^0.5.5",
66
- "eslint": "^8.50.0",
67
- "husky": "^8.0.3",
68
- "lint-staged": "^14.0.1",
69
- "nuxt": "^3.7.4",
70
- "prettier": "^3.0.3",
71
- "release-it": "^16.2.1",
72
- "sass": "^1.69.5",
73
- "stylelint": "^15.10.3",
74
- "stylelint-config-prettier-scss": "^1.0.0",
75
- "stylelint-config-standard-scss": "^11.0.0",
76
- "vitest": "^0.33.0"
77
- },
78
- "lint-staged": {
79
- "*.{ts,vue,tsx,js}": "eslint --fix",
80
- "*.{html,json}": "prettier --write"
81
- }
82
- }
1
+ {
2
+ "name": "@finema/core",
3
+ "version": "1.3.26",
4
+ "repository": "https://gitlab.finema.co/finema/ui-kit",
5
+ "license": "MIT",
6
+ "author": "Finema Development 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 .",
29
+ "lint:fix": "eslint . --fix",
30
+ "test": "vitest run",
31
+ "test:watch": "vitest watch",
32
+ "release": "release-it --ci",
33
+ "prepare": "husky install"
34
+ },
35
+ "dependencies": {
36
+ "@headlessui/vue": "^1.7.16",
37
+ "@iconify-json/mdi": "^1.1.54",
38
+ "@iconify-json/simple-icons": "^1.1.76",
39
+ "@nuxt/kit": "^3.7.4",
40
+ "@nuxt/ui": "^2.11.1",
41
+ "@pinia/nuxt": "^0.4.11",
42
+ "@vee-validate/nuxt": "^4.11.8",
43
+ "@vee-validate/zod": "^4.11.8",
44
+ "@vuepic/vue-datepicker": "^7.4.0",
45
+ "axios": "^1.5.1",
46
+ "date-fns": "^3.0.0",
47
+ "i18next": "^23.7.11",
48
+ "lodash-es": "^4.17.21",
49
+ "nuxt-security": "^0.14.4",
50
+ "pinia": "^2.1.6",
51
+ "url-join": "^5.0.0",
52
+ "zod": "^3.22.4",
53
+ "zod-i18n-map": "^2.23.0"
54
+ },
55
+ "devDependencies": {
56
+ "@finema/eslint-config": "^1.2.0",
57
+ "@nuxt/devtools": "latest",
58
+ "@nuxt/eslint-config": "^0.2.0",
59
+ "@nuxt/module-builder": "^0.5.2",
60
+ "@nuxt/schema": "^3.7.4",
61
+ "@nuxt/test-utils": "^3.7.4",
62
+ "@release-it/conventional-changelog": "^7.0.2",
63
+ "@types/lodash-es": "^4.17.12",
64
+ "@types/node": "^18.18.1",
65
+ "changelogen": "^0.5.5",
66
+ "eslint": "^8.50.0",
67
+ "husky": "^8.0.3",
68
+ "lint-staged": "^14.0.1",
69
+ "nuxt": "^3.7.4",
70
+ "prettier": "^3.0.3",
71
+ "release-it": "^16.2.1",
72
+ "sass": "^1.69.5",
73
+ "stylelint": "^15.10.3",
74
+ "stylelint-config-prettier-scss": "^1.0.0",
75
+ "stylelint-config-standard-scss": "^11.0.0",
76
+ "vitest": "^0.33.0"
77
+ },
78
+ "lint-staged": {
79
+ "*.{ts,vue,tsx,js}": "eslint --fix",
80
+ "*.{html,json}": "prettier --write"
81
+ }
82
+ }