@finema/core 3.16.2 → 3.16.3

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": "3.16.2",
3
+ "version": "3.16.3",
4
4
  "configKey": "core",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
package/dist/module.mjs CHANGED
@@ -4,7 +4,7 @@ import * as lodash from 'lodash-es';
4
4
  import * as theme from '../dist/runtime/theme/index.js';
5
5
 
6
6
  const name = "@finema/core";
7
- const version = "3.16.2";
7
+ const version = "3.16.3";
8
8
 
9
9
  const nuxtAppOptions = {
10
10
  head: {
@@ -1,20 +1,38 @@
1
1
  import { get } from "@vueuse/core";
2
2
  import { computed, ObjectHelper } from "#imports";
3
3
  export const useTable = (options) => computed(() => {
4
+ const {
5
+ repo,
6
+ columns,
7
+ transformItems,
8
+ options: nestedOptions,
9
+ ...inlineOptions
10
+ } = options;
4
11
  return createTableOptions(
5
- options.repo,
6
- options.columns(),
7
- typeof options.options === "function" ? options.options() : options.options ?? {},
8
- options.transformItems
12
+ repo,
13
+ columns(),
14
+ {
15
+ ...inlineOptions,
16
+ ...typeof nestedOptions === "function" ? nestedOptions() : nestedOptions ?? {}
17
+ },
18
+ transformItems
9
19
  );
10
20
  });
11
21
  export const useTableSimple = (options) => computed(() => {
22
+ const {
23
+ items,
24
+ status,
25
+ columns,
26
+ options: nestedOptions,
27
+ ...inlineOptions
28
+ } = options;
12
29
  return {
13
- items: options.items(),
14
- columns: options.columns(),
15
- rawData: options.items(),
16
- status: options.status ? options.status() : ObjectHelper.createStatus(),
17
- ...typeof options.options === "function" ? options.options() : options.options ?? {}
30
+ items: items(),
31
+ columns: columns(),
32
+ rawData: items(),
33
+ status: status ? status() : ObjectHelper.createStatus(),
34
+ ...inlineOptions,
35
+ ...typeof nestedOptions === "function" ? nestedOptions() : nestedOptions ?? {}
18
36
  };
19
37
  });
20
38
  export const createTableOptions = (repo, columns, options, transformItems) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "3.16.2",
3
+ "version": "3.16.3",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",