@finema/core 2.8.0 → 2.8.2

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": "2.8.0",
3
+ "version": "2.8.2",
4
4
  "configKey": "core",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
package/dist/module.mjs CHANGED
@@ -3,7 +3,7 @@ import defu from 'defu';
3
3
  import * as theme from '../dist/runtime/theme/index.js';
4
4
 
5
5
  const name = "@finema/core";
6
- const version = "2.8.0";
6
+ const version = "2.8.2";
7
7
 
8
8
  const nuxtAppOptions = {
9
9
  head: {
@@ -1,22 +1,22 @@
1
1
  <template>
2
- <div
2
+ <div
3
3
  :class="theme.base({
4
4
  class: [ui?.base, props.class]
5
- })"
6
- >
7
- <Icon
8
- :name="icon"
9
- :class="theme.icon({
10
- class: [ui?.icon]
11
- })"
12
- />
13
- <p
5
+ })"
6
+ >
7
+ <Icon
8
+ :name="icon"
9
+ :class="theme.iconSize({
10
+ class: [ui?.iconSize]
11
+ })"
12
+ />
13
+ <p
14
14
  :class="theme.message({
15
15
  class: [ui?.message]
16
- })"
17
- v-html="message"
18
- />
19
- </div>
16
+ })"
17
+ v-html="message"
18
+ />
19
+ </div>
20
20
  </template>
21
21
 
22
22
  <script setup>
@@ -25,7 +25,7 @@ import { useUiConfig } from "#core/composables/useConfig";
25
25
  import { emptyTheme } from "#core/theme/empty";
26
26
  const props = defineProps({
27
27
  message: { type: null, required: false, default: "\u0E44\u0E21\u0E48\u0E1E\u0E1A\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25!" },
28
- icon: { type: String, required: false },
28
+ icon: { type: String, required: false, default: "ph:table-thin" },
29
29
  ui: { type: null, required: false },
30
30
  class: { type: null, required: false }
31
31
  });
@@ -7,5 +7,6 @@ type __VLS_Props = {
7
7
  };
8
8
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
9
  message: any;
10
+ icon: string;
10
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
12
  export default _default;
@@ -93,8 +93,8 @@ const format = (date) => {
93
93
  return date.length > 0 ? TimeHelper.displayDateTime(date[0]) + " - " + TimeHelper.displayDateTime(date[1] ?? date[0]) : "";
94
94
  };
95
95
  const onInput = (_value) => {
96
- if (_value === null) {
97
- value.value = null;
96
+ if (_value === null || _value === void 0) {
97
+ value.value = void 0;
98
98
  return;
99
99
  }
100
100
  if (props.disabledTime && !props.isReturnISO) {
@@ -13,6 +13,7 @@ export type TableColumn<T extends Record<string, any> = Record<string, any>> = N
13
13
  type?: COLUMN_TYPES;
14
14
  component?: Component;
15
15
  accessorKey: string;
16
+ meta?: NuxtUiTableColumn<T>['meta'] & Record<string, any>;
16
17
  };
17
18
  export interface IBaseTableOptions<T extends Record<string, any> = Record<string, any>> {
18
19
  rawData: T[];
@@ -1,7 +1,7 @@
1
1
  export declare const emptyTheme: {
2
2
  slots: {
3
3
  base: string;
4
- icon: string;
4
+ iconSize: string;
5
5
  message: string;
6
6
  };
7
7
  };
@@ -1,7 +1,7 @@
1
1
  export const emptyTheme = {
2
2
  slots: {
3
3
  base: "flex flex-col items-center justify-center py-6 text-gray-400",
4
- icon: "text-[72px]",
4
+ iconSize: "text-[72px]",
5
5
  message: "mt-2"
6
6
  }
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "2.8.0",
3
+ "version": "2.8.2",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",