Skip to content

Commit cf0025e

Browse files
committed
feat(ts): new types to support QCalendarTask
1 parent 61cc837 commit cf0025e

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

ui/src/components/QCalendarTask.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
},
1717
"model-tasks": {
1818
"type": "Array",
19+
"tsType": "TaskObjectArray",
1920
"category": "model",
2021
"desc": "An array of Tasks that will be displayed",
2122
"required": true,
@@ -25,6 +26,7 @@
2526
},
2627
"model-title": {
2728
"type": "Array",
29+
"tsType": "TitleObjectArray",
2830
"category": "model",
2931
"desc": "An array of title items, each will be displayed via a slot in the title area",
3032
"examples": [
@@ -33,6 +35,7 @@
3335
},
3436
"model-footer": {
3537
"type": "Array",
38+
"tsType": "FooterObjectArray",
3639
"category": "model",
3740
"desc": "An array of footer items, each will be displayed via a slot in the footer (summary) area",
3841
"examples": [

ui/types/types.d.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,27 @@ export interface ResourceObject {
5555

5656
export type ResourceObjectArray = ResourceObject[]
5757

58+
export interface TaskObject {
59+
label?: string,
60+
height?: number,
61+
expanded?: boolean,
62+
children?: TaskObjectArray
63+
}
64+
65+
export type TaskObjectArray = TaskObject[]
66+
67+
export interface TitleObject {
68+
label?: string
69+
}
70+
71+
export type TitleObjectArray = TitleObject[]
72+
73+
export interface FooterObject {
74+
label?: string
75+
}
76+
77+
export type FooterObjectArray = FooterObject[]
78+
79+
5880
export type NumberArray = number[]
5981
export type StringArray = string[]

0 commit comments

Comments
 (0)