@fewangsit/wangsvue-fats 1.0.0-alpha.67 → 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.
- package/components/assetinfo/AssetInfo.vue.d.ts +5 -0
- package/components/index.d.ts +1 -0
- package/components/tagtype/TagType.vue.d.ts +26 -0
- package/components/timeline/Timeline.vue.d.ts +13 -1
- package/components/username/UserName.vue.d.ts +1 -1
- package/package.json +1 -1
- package/stats.html +1 -1
- package/wangsvue-fats.js +2379 -2364
- package/wangsvue-fats.system.js +45 -45
|
@@ -17,6 +17,11 @@ export interface AssetInfoProps {
|
|
|
17
17
|
* It will prevent dynamic fetch of asset information.
|
|
18
18
|
*/
|
|
19
19
|
transactionDetail?: Record<string, unknown>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
useNfc?: boolean;
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
declare class AssetInfo extends ClassComponent<
|
package/components/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export { default as MultiSelect } from './multiselect/MultiSelect.vue';
|
|
|
48
48
|
export { default as OverlayPanel } from './overlaypanel/OverlayPanel.vue';
|
|
49
49
|
export { default as Paginator } from './paginator/Paginator.vue';
|
|
50
50
|
export { default as TabMenu } from './tabmenu/TabMenu.vue';
|
|
51
|
+
export { default as TagType } from './tagtype/TagType.vue';
|
|
51
52
|
export { default as Textarea } from './textarea/Textarea.vue';
|
|
52
53
|
export { default as Timeline } from './timeline/Timeline.vue';
|
|
53
54
|
export { default as Toast } from './toast/Toast.vue';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ClassComponent } from 'primevue/ts-helpers';
|
|
2
|
+
|
|
3
|
+
export type AssetTagType =
|
|
4
|
+
| 'QR'
|
|
5
|
+
| 'RFID'
|
|
6
|
+
| 'NFC'
|
|
7
|
+
| 'RFID & NFC'
|
|
8
|
+
| 'RFID & QR'
|
|
9
|
+
| 'NFC & QR'
|
|
10
|
+
| 'RFID & NFC & QR'
|
|
11
|
+
| 'Non TAG';
|
|
12
|
+
|
|
13
|
+
export interface TagTypeProps {
|
|
14
|
+
type: AssetTagType;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
19
|
+
useNfc?: boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export default class TagType extends ClassComponent<
|
|
23
|
+
TagTypeProps,
|
|
24
|
+
unknown,
|
|
25
|
+
unknown
|
|
26
|
+
> {}
|
|
@@ -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
|
-
|
|
129
|
+
TimelineSlots,
|
|
118
130
|
unknown
|
|
119
131
|
> {}
|
|
120
132
|
|