@finema/core 3.16.4 → 3.16.8

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.4",
3
+ "version": "3.16.8",
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.4";
7
+ const version = "3.16.8";
8
8
 
9
9
  const nuxtAppOptions = {
10
10
  head: {
@@ -7,11 +7,11 @@ type __VLS_Props = {
7
7
  target?: string | ((row: any) => string | undefined);
8
8
  preserveQuery?: boolean;
9
9
  };
10
- declare var __VLS_25: {}, __VLS_32: {}, __VLS_34: {}, __VLS_47: any, __VLS_48: any, __VLS_57: any, __VLS_58: any;
10
+ declare var __VLS_25: {}, __VLS_32: {}, __VLS_34: {}, __VLS_47: any, __VLS_48: any, __VLS_67: any, __VLS_68: any;
11
11
  type __VLS_Slots = {} & {
12
12
  [K in NonNullable<typeof __VLS_47>]?: (props: typeof __VLS_48) => any;
13
13
  } & {
14
- [K in NonNullable<typeof __VLS_57>]?: (props: typeof __VLS_58) => any;
14
+ [K in NonNullable<typeof __VLS_67>]?: (props: typeof __VLS_68) => any;
15
15
  } & {
16
16
  loading?: (props: typeof __VLS_25) => any;
17
17
  } & {
@@ -79,16 +79,25 @@
79
79
  v-bind="slotProps"
80
80
  >
81
81
  <component
82
- :is="
83
- column.type === COLUMN_TYPES.COMPONENT ? column.component : columnTypeComponents[column.type]
84
- "
85
- v-if="
86
- column.type === COLUMN_TYPES.COMPONENT || columnTypeComponents[column.type]
82
+ :is="column.component"
83
+ v-if="column.type === COLUMN_TYPES.COMPONENT && column.component"
84
+ :value="transformValue(column, slotProps.row)"
85
+ :column="column"
86
+ :row="slotProps.row"
87
+ />
88
+ <component
89
+ :is="columnTypeComponents[column.type]"
90
+ v-else-if="
91
+ column.type !== COLUMN_TYPES.COMPONENT && columnTypeComponents[column.type]
87
92
  "
88
93
  :value="transformValue(column, slotProps.row)"
89
94
  :column="column"
90
95
  :row="slotProps.row"
91
96
  />
97
+ <VNodeRenderer
98
+ v-else-if="typeof column.cell === 'function'"
99
+ :vnode="transformValue(column, slotProps.row)"
100
+ />
92
101
  <template v-else>
93
102
  {{ transformValue(column, slotProps.row) }}
94
103
  </template>
@@ -121,7 +130,7 @@
121
130
  </template>
122
131
 
123
132
  <script setup>
124
- import { computed, ref, useSlots } from "vue";
133
+ import { computed, defineComponent, ref, useSlots } from "vue";
125
134
  import {
126
135
  COLUMN_TYPES
127
136
  } from "#core/components/Table/types";
@@ -149,6 +158,17 @@ const props = defineProps({
149
158
  target: { type: [String, Function], required: false },
150
159
  preserveQuery: { type: Boolean, required: false }
151
160
  });
161
+ const VNodeRenderer = defineComponent({
162
+ props: {
163
+ vnode: {
164
+ type: null,
165
+ required: true
166
+ }
167
+ },
168
+ setup(props2) {
169
+ return () => props2.vnode;
170
+ }
171
+ });
152
172
  const route = useRoute();
153
173
  const slots = useSlots();
154
174
  const forwardedSlotNames = computed(
@@ -7,11 +7,11 @@ type __VLS_Props = {
7
7
  target?: string | ((row: any) => string | undefined);
8
8
  preserveQuery?: boolean;
9
9
  };
10
- declare var __VLS_25: {}, __VLS_32: {}, __VLS_34: {}, __VLS_47: any, __VLS_48: any, __VLS_57: any, __VLS_58: any;
10
+ declare var __VLS_25: {}, __VLS_32: {}, __VLS_34: {}, __VLS_47: any, __VLS_48: any, __VLS_67: any, __VLS_68: any;
11
11
  type __VLS_Slots = {} & {
12
12
  [K in NonNullable<typeof __VLS_47>]?: (props: typeof __VLS_48) => any;
13
13
  } & {
14
- [K in NonNullable<typeof __VLS_57>]?: (props: typeof __VLS_58) => any;
14
+ [K in NonNullable<typeof __VLS_67>]?: (props: typeof __VLS_68) => any;
15
15
  } & {
16
16
  loading?: (props: typeof __VLS_25) => any;
17
17
  } & {
@@ -75,7 +75,7 @@
75
75
  :label="String(NumberHelper.withComma(item.value))"
76
76
  :ui="{ label: themePagination.label }"
77
77
  square
78
- :to="to?.(item.value)"
78
+ :to="options.isRouteChange ? to?.(item.value) : void 0"
79
79
  :class="
80
80
  theme.buttonPagination({
81
81
  class: [ui?.buttonPagination]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "3.16.4",
3
+ "version": "3.16.8",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",