@finema/core 1.3.2 → 1.3.5

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 (29) hide show
  1. package/README.md +88 -88
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +4 -31
  4. package/dist/runtime/components/Avatar.vue +27 -0
  5. package/dist/runtime/components/Button/Group.vue +31 -31
  6. package/dist/runtime/components/Button/index.vue +17 -17
  7. package/dist/runtime/components/Core.vue +4 -4
  8. package/dist/runtime/components/Dialog/index.vue +63 -63
  9. package/dist/runtime/components/Dropdown/index.vue +80 -0
  10. package/dist/runtime/components/Dropdown/types.d.ts +2 -0
  11. package/dist/runtime/components/Dropdown/types.mjs +17 -0
  12. package/dist/runtime/components/Form/FieldWrapper.vue +10 -10
  13. package/dist/runtime/components/Form/Fields.vue +41 -41
  14. package/dist/runtime/components/Form/InputSelect/SelectMenu.vue +11 -11
  15. package/dist/runtime/components/Form/InputSelect/index.vue +11 -11
  16. package/dist/runtime/components/Form/InputStatic/index.vue +16 -16
  17. package/dist/runtime/components/Form/InputText/index.vue +30 -28
  18. package/dist/runtime/components/Form/InputText/types.d.ts +2 -0
  19. package/dist/runtime/components/Form/InputToggle/index.vue +14 -14
  20. package/dist/runtime/components/Form/index.vue +6 -6
  21. package/dist/runtime/components/Loader.vue +6 -6
  22. package/dist/runtime/components/Modal/index.vue +145 -145
  23. package/dist/runtime/components/Slideover/index.vue +109 -109
  24. package/dist/runtime/components/Table/index.vue +84 -84
  25. package/dist/runtime/types/config.d.ts +1 -1
  26. package/dist/runtime/ui.css +14 -14
  27. package/dist/runtime/utils/lodash.d.ts +109 -29
  28. package/dist/runtime/utils/lodash.mjs +60 -30
  29. package/package.json +79 -79
@@ -1,32 +1,62 @@
1
- import lodash from "lodash";
2
- export const _get = lodash.get;
3
- export const _range = lodash.range;
4
- export const _concat = lodash.concat;
5
- export const _toNumber = lodash.toNumber;
6
- export const _isUndefined = lodash.isUndefined;
7
- export const _dropRight = lodash.dropRight;
8
- export const _intersection = lodash.intersection;
9
- export const _set = lodash.set;
10
- export const _map = lodash.map;
11
- export const _merge = lodash.merge;
12
- export const _flatDeep = lodash.flattenDeep;
13
- export const _uniq = lodash.uniq;
14
- export const _sortBy = lodash.sortBy;
15
- export const _uniqBy = lodash.uniqBy;
16
- export const _random = lodash.random;
17
- export const _cloneDeep = lodash.cloneDeep;
18
- export const _isEmpty = lodash.isEmpty;
19
- export const _isObject = lodash.isObject;
20
- export const _isArray = lodash.isArray;
21
- export const _findIndex = lodash.findIndex;
22
- export const _isEqual = lodash.isEqual;
23
- export const _difference = lodash.difference;
24
- export const _shuffle = lodash.shuffle;
25
- export const _size = lodash.size;
26
- export const _toPairs = lodash.toPairs;
27
- export const _orderBy = lodash.orderBy;
28
- export const _fromPairs = lodash.fromPairs;
29
- export const _xor = lodash.xor;
1
+ import {
2
+ concat,
3
+ dropRight,
4
+ range,
5
+ toNumber,
6
+ isUndefined,
7
+ set,
8
+ map,
9
+ merge,
10
+ flattenDeep,
11
+ uniq,
12
+ sortBy,
13
+ uniqBy,
14
+ random,
15
+ cloneDeep,
16
+ isEmpty,
17
+ isObject,
18
+ isArray,
19
+ findIndex,
20
+ isEqual,
21
+ difference,
22
+ shuffle,
23
+ size,
24
+ toPairs,
25
+ orderBy,
26
+ fromPairs,
27
+ xor,
28
+ debounce,
29
+ intersection,
30
+ get
31
+ } from "lodash-es";
32
+ export const _get = get;
33
+ export const _range = range;
34
+ export const _concat = concat;
35
+ export const _toNumber = toNumber;
36
+ export const _isUndefined = isUndefined;
37
+ export const _dropRight = dropRight;
38
+ export const _intersection = intersection;
39
+ export const _set = set;
40
+ export const _map = map;
41
+ export const _merge = merge;
42
+ export const _flatDeep = flattenDeep;
43
+ export const _uniq = uniq;
44
+ export const _sortBy = sortBy;
45
+ export const _uniqBy = uniqBy;
46
+ export const _random = random;
47
+ export const _cloneDeep = cloneDeep;
48
+ export const _isEmpty = isEmpty;
49
+ export const _isObject = isObject;
50
+ export const _isArray = isArray;
51
+ export const _findIndex = findIndex;
52
+ export const _isEqual = isEqual;
53
+ export const _difference = difference;
54
+ export const _shuffle = shuffle;
55
+ export const _size = size;
56
+ export const _toPairs = toPairs;
57
+ export const _orderBy = orderBy;
58
+ export const _fromPairs = fromPairs;
59
+ export const _xor = xor;
30
60
  export const _clone = (object) => {
31
61
  try {
32
62
  return JSON.parse(JSON.stringify(object || {}));
@@ -35,5 +65,5 @@ export const _clone = (object) => {
35
65
  }
36
66
  };
37
67
  export const _debounce = (func, wait = 150) => {
38
- return lodash.debounce(func, wait);
68
+ return debounce(func, wait);
39
69
  };
package/package.json CHANGED
@@ -1,79 +1,79 @@
1
- {
2
- "name": "@finema/core",
3
- "version": "1.3.2",
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",
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.9.0",
41
- "@pinia/nuxt": "^0.4.11",
42
- "@vee-validate/nuxt": "^4.11.8",
43
- "@vee-validate/zod": "^4.11.8",
44
- "axios": "^1.5.1",
45
- "dayjs": "^1.11.10",
46
- "lodash": "^4.17.21",
47
- "nuxt-security": "^0.14.4",
48
- "pinia": "^2.1.6",
49
- "url-join": "^5.0.0",
50
- "zod": "^3.22.4"
51
- },
52
- "devDependencies": {
53
- "@finema/eslint-config": "^1.2.0",
54
- "@nuxt/devtools": "latest",
55
- "@nuxt/eslint-config": "^0.2.0",
56
- "@nuxt/module-builder": "^0.5.2",
57
- "@nuxt/schema": "^3.7.4",
58
- "@nuxt/test-utils": "^3.7.4",
59
- "@release-it/conventional-changelog": "^7.0.2",
60
- "@types/lodash": "^4.14.199",
61
- "@types/node": "^18.18.1",
62
- "changelogen": "^0.5.5",
63
- "eslint": "^8.50.0",
64
- "husky": "^8.0.3",
65
- "lint-staged": "^14.0.1",
66
- "nuxt": "^3.7.4",
67
- "prettier": "^3.0.3",
68
- "release-it": "^16.2.1",
69
- "stylelint": "^15.10.3",
70
- "stylelint-config-prettier-scss": "^1.0.0",
71
- "stylelint-config-standard-scss": "^11.0.0",
72
- "vitest": "^0.33.0"
73
- },
74
- "lint-staged": {
75
- "*.{ts,vue,tsx,js}": "eslint --fix",
76
- "*.{css,scss}": "stylelint --fix",
77
- "*.{html,json}": "prettier --write"
78
- }
79
- }
1
+ {
2
+ "name": "@finema/core",
3
+ "version": "1.3.5",
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",
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
+ "axios": "^1.5.1",
45
+ "dayjs": "^1.11.10",
46
+ "lodash-es": "^4.17.21",
47
+ "nuxt-security": "^0.14.4",
48
+ "pinia": "^2.1.6",
49
+ "url-join": "^5.0.0",
50
+ "zod": "^3.22.4"
51
+ },
52
+ "devDependencies": {
53
+ "@finema/eslint-config": "^1.2.0",
54
+ "@nuxt/devtools": "latest",
55
+ "@nuxt/eslint-config": "^0.2.0",
56
+ "@nuxt/module-builder": "^0.5.2",
57
+ "@nuxt/schema": "^3.7.4",
58
+ "@nuxt/test-utils": "^3.7.4",
59
+ "@release-it/conventional-changelog": "^7.0.2",
60
+ "@types/lodash-es": "^4.17.12",
61
+ "@types/node": "^18.18.1",
62
+ "changelogen": "^0.5.5",
63
+ "eslint": "^8.50.0",
64
+ "husky": "^8.0.3",
65
+ "lint-staged": "^14.0.1",
66
+ "nuxt": "^3.7.4",
67
+ "prettier": "^3.0.3",
68
+ "release-it": "^16.2.1",
69
+ "stylelint": "^15.10.3",
70
+ "stylelint-config-prettier-scss": "^1.0.0",
71
+ "stylelint-config-standard-scss": "^11.0.0",
72
+ "vitest": "^0.33.0"
73
+ },
74
+ "lint-staged": {
75
+ "*.{ts,vue,tsx,js}": "eslint --fix",
76
+ "*.{css,scss}": "stylelint --fix",
77
+ "*.{html,json}": "prettier --write"
78
+ }
79
+ }