@finema/core 2.26.4 → 2.26.6

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.26.4",
3
+ "version": "2.26.6",
4
4
  "configKey": "core",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
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 = "2.26.4";
7
+ const version = "2.26.6";
8
8
 
9
9
  const nuxtAppOptions = {
10
10
  head: {
@@ -1,17 +1,22 @@
1
1
  <template>
2
- <div
2
+ <slot
3
3
  v-if="loading"
4
- :class="theme.base({
4
+ name="loading"
5
+ >
6
+ <div
7
+
8
+ :class="theme.base({
5
9
  class: [ui?.base, props.class]
6
10
  })"
7
- >
8
- <Icon
9
- :name="icon"
10
- :class="[theme.icon({
11
+ >
12
+ <Icon
13
+ :name="icon"
14
+ :class="[theme.icon({
11
15
  class: [ui?.icon]
12
16
  })]"
13
- />
14
- </div>
17
+ />
18
+ </div>
19
+ </slot>
15
20
  <slot v-else />
16
21
  </template>
17
22
 
@@ -19,6 +24,7 @@
19
24
  import { computed } from "vue";
20
25
  import { loaderTheme } from "#core/theme/loader";
21
26
  import { useUiConfig } from "#core/composables/useConfig";
27
+ defineSlots();
22
28
  const props = defineProps({
23
29
  loading: { type: Boolean, required: false, default: true },
24
30
  icon: { type: String, required: false, default: "i-svg-spinners:180-ring-with-bg" },
@@ -1,14 +1,13 @@
1
1
  import { loaderTheme } from '#core/theme/loader';
2
+ type __VLS_Slots = {
3
+ loading: () => any;
4
+ };
2
5
  type __VLS_Props = {
3
6
  loading?: boolean;
4
7
  icon?: string;
5
8
  ui?: typeof loaderTheme['slots'];
6
9
  class?: any;
7
10
  };
8
- declare var __VLS_5: {};
9
- type __VLS_Slots = {} & {
10
- default?: (props: typeof __VLS_5) => any;
11
- };
12
11
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
12
  loading: boolean;
14
13
  icon: string;
@@ -76,8 +76,8 @@ export interface IUsePageLoader<T> {
76
76
  fetchSetLoading: () => void;
77
77
  findSetLoading: () => void;
78
78
  findRun: (id: string, opts?: IPageFindLoaderOptions) => Promise<void>;
79
- addRun: (payload: IPageAddLoaderOptions<T>) => Promise<void>;
80
- updateRun: (id: string, payload: IPageUpdateLoaderOptions<T>) => Promise<void>;
79
+ addRun: (payload: IPageAddLoaderOptions<Partial<T> | Record<string, any>>) => Promise<void>;
80
+ updateRun: (id: string, payload: IPageUpdateLoaderOptions<Partial<T> | Record<string, any>>) => Promise<void>;
81
81
  deleteRun: (id: string, opts?: IPageDeleteLoaderOptions) => Promise<void>;
82
82
  clearAll: () => void;
83
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "2.26.4",
3
+ "version": "2.26.6",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",