@finema/core 2.4.0 → 2.5.0

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.4.0",
3
+ "version": "2.5.0",
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.4.0";
6
+ const version = "2.5.0";
7
7
 
8
8
  const nuxtAppOptions = {
9
9
  head: {
@@ -59,6 +59,7 @@ import {
59
59
  import { computed, useAttrs } from "vue";
60
60
  import { useUiConfig } from "#core/composables/useConfig";
61
61
  import { dialogTheme } from "#core/theme/dialog";
62
+ import { DialogType } from "#core/composables/useDialog";
62
63
  const emits = defineEmits();
63
64
  const props = withDefaults(defineProps(), {
64
65
  confirmText: "\u0E15\u0E01\u0E25\u0E07",
@@ -1,8 +1,8 @@
1
1
  import { type PropType } from 'vue';
2
2
  import type { IFlexDeckOptions } from '#core/components/FlexDeck/types';
3
3
  declare var __VLS_1: {}, __VLS_6: {
4
- key: any;
5
- row: any;
4
+ key: number;
5
+ row: object;
6
6
  }, __VLS_8: {};
7
7
  type __VLS_Slots = {} & {
8
8
  'empty-state'?: (props: typeof __VLS_1) => any;
@@ -47,7 +47,47 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
47
47
  containerClass: {
48
48
  type: (ArrayConstructor | ObjectConstructor | StringConstructor)[];
49
49
  };
50
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
50
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
51
+ pageChange: (...args: any[]) => void;
52
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
53
+ status: {
54
+ type: PropType<IFlexDeckOptions["status"]>;
55
+ required: true;
56
+ };
57
+ pageOptions: {
58
+ type: PropType<IFlexDeckOptions["pageOptions"]>;
59
+ required: false;
60
+ };
61
+ rawData: {
62
+ type: PropType<IFlexDeckOptions["rawData"]>;
63
+ required: true;
64
+ };
65
+ isSimplePagination: {
66
+ type: PropType<IFlexDeckOptions["isSimplePagination"]>;
67
+ default: boolean;
68
+ };
69
+ isHideTopPagination: {
70
+ type: PropType<IFlexDeckOptions["isHideTopPagination"]>;
71
+ default: boolean;
72
+ };
73
+ isHideBottomPagination: {
74
+ type: PropType<IFlexDeckOptions["isHideBottomPagination"]>;
75
+ default: boolean;
76
+ };
77
+ isEnableInfiniteScroll: {
78
+ type: PropType<IFlexDeckOptions["isEnableInfiniteScroll"]>;
79
+ default: boolean;
80
+ };
81
+ isHideCaption: {
82
+ type: PropType<IFlexDeckOptions["isHideCaption"]>;
83
+ default: boolean;
84
+ };
85
+ containerClass: {
86
+ type: (ArrayConstructor | ObjectConstructor | StringConstructor)[];
87
+ };
88
+ }>> & Readonly<{
89
+ onPageChange?: ((...args: any[]) => any) | undefined;
90
+ }>, {
51
91
  isHideCaption: boolean | undefined;
52
92
  isHideBottomPagination: boolean | undefined;
53
93
  isHideTopPagination: boolean | undefined;
@@ -1,3 +1,7 @@
1
1
  import type { ICheckboxFieldProps } from '#core/components/Form/InputCheckbox/types';
2
- declare const _default: import("vue").DefineComponent<ICheckboxFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
+ declare const _default: import("vue").DefineComponent<ICheckboxFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ change: (...args: any[]) => void;
4
+ }, string, import("vue").PublicProps, Readonly<ICheckboxFieldProps> & Readonly<{
5
+ onChange?: ((...args: any[]) => any) | undefined;
6
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
7
  export default _default;
@@ -1,5 +1,9 @@
1
1
  import type { INumberFieldProps } from '#core/components/Form/InputNumber/types';
2
- declare const _default: import("vue").DefineComponent<INumberFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
2
+ declare const _default: import("vue").DefineComponent<INumberFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ change: (...args: any[]) => void;
4
+ }, string, import("vue").PublicProps, Readonly<INumberFieldProps> & Readonly<{
5
+ onChange?: ((...args: any[]) => any) | undefined;
6
+ }>, {
3
7
  orientation: "horizontal" | "vertical";
4
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
9
  export default _default;
@@ -1,5 +1,9 @@
1
1
  import type { ISelectFieldProps } from '#core/components/Form/InputSelect/types';
2
- declare const _default: import("vue").DefineComponent<ISelectFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
2
+ declare const _default: import("vue").DefineComponent<ISelectFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ change: (...args: any[]) => void;
4
+ }, string, import("vue").PublicProps, Readonly<ISelectFieldProps> & Readonly<{
5
+ onChange?: ((...args: any[]) => any) | undefined;
6
+ }>, {
3
7
  clearIcon: string;
4
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
9
  export default _default;
@@ -1,3 +1,7 @@
1
1
  import type { ISelectFieldProps } from '#core/components/Form/InputSelect/types';
2
- declare const _default: import("vue").DefineComponent<ISelectFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
+ declare const _default: import("vue").DefineComponent<ISelectFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ change: (...args: any[]) => void;
4
+ }, string, import("vue").PublicProps, Readonly<ISelectFieldProps> & Readonly<{
5
+ onChange?: ((...args: any[]) => any) | undefined;
6
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
7
  export default _default;
@@ -1,5 +1,9 @@
1
1
  import type { ITextFieldProps } from '#core/components/Form/InputText/types';
2
- declare const _default: import("vue").DefineComponent<ITextFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
2
+ declare const _default: import("vue").DefineComponent<ITextFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ change: (...args: any[]) => void;
4
+ }, string, import("vue").PublicProps, Readonly<ITextFieldProps> & Readonly<{
5
+ onChange?: ((...args: any[]) => any) | undefined;
6
+ }>, {
3
7
  type: "text" | "password" | "email";
4
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
9
  export default _default;
@@ -1,3 +1,7 @@
1
1
  import type { ITextareaFieldProps } from '#core/components/Form/InputTextarea/types';
2
- declare const _default: import("vue").DefineComponent<ITextareaFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
+ declare const _default: import("vue").DefineComponent<ITextareaFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ change: (...args: any[]) => void;
4
+ }, string, import("vue").PublicProps, Readonly<ITextareaFieldProps> & Readonly<{
5
+ onChange?: ((...args: any[]) => any) | undefined;
6
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
7
  export default _default;
@@ -1,3 +1,7 @@
1
1
  import type { IToggleFieldProps } from '#core/components/Form/InputToggle/types';
2
- declare const _default: import("vue").DefineComponent<IToggleFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
+ declare const _default: import("vue").DefineComponent<IToggleFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ change: (...args: any[]) => void;
4
+ }, string, import("vue").PublicProps, Readonly<IToggleFieldProps> & Readonly<{
5
+ onChange?: ((...args: any[]) => any) | undefined;
6
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
7
  export default _default;
@@ -1,18 +1,18 @@
1
1
  <template>
2
- <div
3
- v-if="loading"
2
+ <div
3
+ v-if="loading"
4
4
  :class="theme.base({
5
5
  class: [ui?.base, props.class]
6
- })"
7
- >
8
- <Icon
9
- :name="icon"
6
+ })"
7
+ >
8
+ <Icon
9
+ :name="icon"
10
10
  :class="[theme.icon({
11
11
  class: [ui?.icon]
12
- })]"
13
- />
14
- </div>
15
- <slot v-else />
12
+ })]"
13
+ />
14
+ </div>
15
+ <slot v-else />
16
16
  </template>
17
17
 
18
18
  <script setup>
@@ -21,7 +21,7 @@ import { loaderTheme } from "#core/theme/loader";
21
21
  import { useUiConfig } from "#core/composables/useConfig";
22
22
  const props = defineProps({
23
23
  loading: { type: Boolean, required: false, default: true },
24
- icon: { type: String, required: false },
24
+ icon: { type: String, required: false, default: "i-svg-spinners:180-ring-with-bg" },
25
25
  ui: { type: null, required: false },
26
26
  class: { type: null, required: false }
27
27
  });
@@ -11,6 +11,7 @@ type __VLS_Slots = {} & {
11
11
  };
12
12
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
13
  loading: boolean;
14
+ icon: string;
14
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
16
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
16
17
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { type PropType } from 'vue';
2
2
  import { type ITableOptions } from '#core/components/Table/types';
3
- declare var __VLS_20: any, __VLS_21: any;
3
+ declare var __VLS_20: string | number, __VLS_21: any;
4
4
  type __VLS_Slots = {} & {
5
5
  [K in NonNullable<typeof __VLS_20>]?: (props: typeof __VLS_21) => any;
6
6
  };
@@ -33,7 +33,40 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
33
33
  type: PropType<ITableOptions["isHideCaption"]>;
34
34
  default: boolean;
35
35
  };
36
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
36
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
+ pageChange: (...args: any[]) => void;
38
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
39
+ status: {
40
+ type: PropType<ITableOptions["status"]>;
41
+ required: true;
42
+ };
43
+ pageOptions: {
44
+ type: PropType<ITableOptions["pageOptions"]>;
45
+ required: false;
46
+ };
47
+ columns: {
48
+ type: PropType<ITableOptions["columns"]>;
49
+ required: true;
50
+ };
51
+ rawData: {
52
+ type: PropType<ITableOptions["rawData"]>;
53
+ required: true;
54
+ };
55
+ isSimplePagination: {
56
+ type: PropType<ITableOptions["isSimplePagination"]>;
57
+ default: boolean;
58
+ };
59
+ isHideBottomPagination: {
60
+ type: PropType<ITableOptions["isHideBottomPagination"]>;
61
+ default: boolean;
62
+ };
63
+ isHideCaption: {
64
+ type: PropType<ITableOptions["isHideCaption"]>;
65
+ default: boolean;
66
+ };
67
+ }>> & Readonly<{
68
+ onPageChange?: ((...args: any[]) => any) | undefined;
69
+ }>, {
37
70
  isHideCaption: boolean | undefined;
38
71
  isHideBottomPagination: boolean | undefined;
39
72
  isSimplePagination: boolean | undefined;
@@ -0,0 +1,3 @@
1
+ export declare const iconsTheme: {
2
+ loading: string;
3
+ };
@@ -0,0 +1 @@
1
+ export const iconsTheme = { loading: "i-svg-spinners:180-ring-with-bg" };
@@ -8,3 +8,4 @@ export { textareaTheme as textarea } from './textarea.js';
8
8
  export { tableTheme as table } from './table.js';
9
9
  export { formTheme as form } from './form.js';
10
10
  export { inputNumberTheme as inputNumber } from './inputNumber.js';
11
+ export { iconsTheme as icons } from './icons.js';
@@ -8,3 +8,4 @@ export { textareaTheme as textarea } from "./textarea.js";
8
8
  export { tableTheme as table } from "./table.js";
9
9
  export { formTheme as form } from "./form.js";
10
10
  export { inputNumberTheme as inputNumber } from "./inputNumber.js";
11
+ export { iconsTheme as icons } from "./icons.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",
@@ -60,6 +60,9 @@
60
60
  "defu": "^6.1.4",
61
61
  "maska": "^3.0.4",
62
62
  "nuxt-lodash": "^2.5.3",
63
+ "@iconify-json/heroicons": "^1.2.2",
64
+ "@iconify-json/ph": "^1.2.2",
65
+ "@iconify-json/svg-spinners": "^1.2.2",
63
66
  "url-join": "^5.0.0"
64
67
  },
65
68
  "devDependencies": {