@fewangsit/wangsvue-fats 1.0.0-alpha.68 → 1.0.0-alpha.69

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.
@@ -1,3 +1,5 @@
1
+ import { VNode } from 'vue';
2
+
1
3
  import { BadgeProps } from '../badge/Badge.vue.d';
2
4
  import { JSONContent } from '../editor/Editor.vue.d';
3
5
  import { ClassComponent } from '../ts-helpers';
@@ -76,6 +78,7 @@ export type TimelineItem = {
76
78
  _id: string;
77
79
  action: string;
78
80
  createdAt: string;
81
+ username?: string;
79
82
  user?: {
80
83
  _id: string;
81
84
  nickName: string;
@@ -102,6 +105,15 @@ export type TimelineProps = {
102
105
  noFormatDate?: boolean;
103
106
  };
104
107
 
108
+ export type TimelineSlots = {
109
+ /**
110
+ * Custom detail template.
111
+ *
112
+ * Use this slot if you want to configure your own detail value in each timeline
113
+ */
114
+ detail(slotProps: { key: string; value?: TimelineItem['detail'] }): VNode[];
115
+ };
116
+
105
117
  /**
106
118
  * **WangsVue - Timeline**
107
119
  *
@@ -114,7 +126,7 @@ export type TimelineProps = {
114
126
  */
115
127
  declare class Timeline extends ClassComponent<
116
128
  TimelineProps,
117
- unknown,
129
+ TimelineSlots,
118
130
  unknown
119
131
  > {}
120
132
 
@@ -85,7 +85,7 @@ export interface UserNameProps extends Partial<UserNameComponentConfigs> {
85
85
  /**
86
86
  * The full user Object
87
87
  */
88
- user?: GeneralUser;
88
+ user?: Partial<GeneralUser>;
89
89
 
90
90
  /**
91
91
  * When it sets to false, the props.user will be used
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue-fats",
3
- "version": "1.0.0-alpha.68",
3
+ "version": "1.0.0-alpha.69",
4
4
  "author": "Wangsit FE Developer",
5
5
  "description": "Fixed Asset Tagsamurai VueJS Component Library",
6
6
  "type": "module",