@fewangsit/wangsvue-fats 1.0.0-alpha.114 → 1.0.0-alpha.116

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.
@@ -0,0 +1,28 @@
1
+ import { ImageGallery } from '../image/Image.vue.d';
2
+ import { ClassComponent } from '../ts-helpers';
3
+
4
+ export interface CarouselProps {
5
+ /**
6
+ * An array of image object to be displayed.
7
+ */
8
+ value: ImageGallery[] | undefined;
9
+ }
10
+
11
+ /**
12
+ * **TSVue v2 - Carousel**
13
+ *
14
+ * _Carousel is a component for displaying a collection of images or content in a sliding or rotating fashion.
15
+ * You can navigate through the items using the provided next and previous functions._
16
+ *
17
+ * --- ---
18
+ * ![TSVue](https://ik.imagekit.io/kurniadev/TS-HEAD-BLACK.png)
19
+ *
20
+ * @group components
21
+ */
22
+ declare class Carousel extends ClassComponent<
23
+ CarouselProps,
24
+ unknown,
25
+ unknown
26
+ > {}
27
+
28
+ export default Carousel;
@@ -24,6 +24,14 @@ export type FilterMatchMode =
24
24
  | 'BETWEEN'
25
25
  | 'DATE_BETWEEN';
26
26
 
27
+ /**
28
+ * @param args - The query parameters to be passed to the fetchOptionFn.
29
+ */
30
+ export type FetchOptionFn =
31
+ | ((args: any) => Option[] | undefined) // Sync function to fetch options
32
+ | ((args: any) => Promise<Option[] | undefined>) // Async function
33
+ | ((args: any) => Promise<AxiosResponse<FetchOptionResponse<any>>>); // The service method handle fetching options
34
+
27
35
  // More specific filter field types
28
36
  export interface MultiSelectFilterField extends MultiSelectProps {
29
37
  type: 'multiselect';
@@ -37,14 +45,7 @@ export interface MultiSelectFilterField extends MultiSelectProps {
37
45
  field: string;
38
46
  optionField?: string; // @example - actionOptions
39
47
  params?: QueryParams; // Additional QueryParams for the fetchOptionFn
40
-
41
- /**
42
- * @param args - The query parameters to be passed to the fetchOptionFn.
43
- */
44
- fetchOptionFn?:
45
- | ((args?: any) => Option[] | undefined) // Sync function to fetch options
46
- | ((args?: any) => Promise<Option[] | undefined>) // Async function
47
- | ((args?: any) => Promise<AxiosResponse<FetchOptionResponse<any>>>); // The service method handle fetching options
48
+ fetchOptionFn?: FetchOptionFn;
48
49
  }
49
50
 
50
51
  export interface DropdownFilterField extends DropdownProps {
@@ -59,9 +60,7 @@ export interface DropdownFilterField extends DropdownProps {
59
60
  field: string;
60
61
  optionField?: string; // @example - actionOptions
61
62
  params?: QueryParams; // Additional QueryParams for the fetchOptionFn
62
- fetchOptionFn?:
63
- | ((args?: any) => Option[] | undefined) // Sync function to fetch options
64
- | ((args?: any) => Promise<Option[]> | undefined); // Async function
63
+ fetchOptionFn?: FetchOptionFn;
65
64
  }
66
65
 
67
66
  export interface RangeNumberFilterField extends InputRangeNumberProps {
@@ -17,6 +17,7 @@ export { default as ButtonSync } from './buttonsync/ButtonSync.vue';
17
17
  export { default as ButtonToggle } from './buttontoggle/ButtonToggle.vue';
18
18
  export { default as Calendar } from './calendar/Calendar.vue';
19
19
  export { default as Card } from './card/Card.vue';
20
+ export { default as Carousel } from './carousel/Carousel.vue';
20
21
  export { default as Checkbox } from './checkbox/Checkbox.vue';
21
22
  export { default as DataTable } from './datatable/DataTable.vue';
22
23
  export { default as Dialog } from './dialog/Dialog.vue';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue-fats",
3
- "version": "1.0.0-alpha.114",
3
+ "version": "1.0.0-alpha.116",
4
4
  "author": "Wangsit FE Developer",
5
5
  "description": "Fixed Asset Tagsamurai VueJS Component Library",
6
6
  "type": "module",