@ghentcdh/ui 1.1.0 → 2.0.0
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/Markdown-C7ZNnPQB.js +1 -0
- package/Markdown-OZGmR-pI.js +76 -0
- package/button/Btn.properties.d.ts +6 -2
- package/button/btn.vue.d.ts +15 -5
- package/const/colors.d.ts +2 -1
- package/drawer/drawer.properties.d.ts +4 -0
- package/drawer/drawer.vue.d.ts +9 -0
- package/form/Checkbox.properties.d.ts +14 -1
- package/form/Checkbox.vue.d.ts +37 -4
- package/form/Input.properties.d.ts +18 -1
- package/form/Input.vue.d.ts +46 -4
- package/form/InputNumber.properties.d.ts +14 -1
- package/form/InputNumber.vue.d.ts +37 -4
- package/form/Textarea.properties.d.ts +26 -1
- package/form/Textarea.vue.d.ts +64 -4
- package/form/core/ControlWrapper.properties.d.ts +54 -1
- package/form/core/ControlWrapper.vue.d.ts +38 -4
- package/form/core/properties.d.ts +2 -16
- package/form/core/styles.d.ts +1 -1
- package/form/core/utils/style.d.ts +3 -3
- package/form/index.d.ts +273 -1
- package/form/select/AutoComplete.properties.d.ts +27 -2
- package/form/select/AutoComplete.vue.d.ts +67 -7
- package/form/select/ListResults.properties.d.ts +7 -1
- package/form/select/ListResults.vue.d.ts +12 -3
- package/form/select/MultiSelect.vue.d.ts +67 -7
- package/form/select/SelectComponent.vue.d.ts +55 -4
- package/form/select/SelectWrapper.properties.d.ts +57 -9
- package/form/select/SelectWrapper.vue.d.ts +93 -11
- package/form/text/Markdown.vue.d.ts +37 -4
- package/form/text/MarkdownComponent.properties.d.ts +14 -1
- package/form/text/MarkdownFallback.vue.d.ts +267 -0
- package/icons/icon-list.d.ts +3 -1
- package/index-NGeplssl.js +2 -0
- package/index-WrdKkd9c.js +2633 -0
- package/index.css +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -2
- package/index.mjs +66 -2370
- package/modal/modal.vue.d.ts +1 -0
- package/package.json +14 -7
- package/table/cells/text.cell.vue.d.ts +1 -1
- package/table/column.model.d.ts +6 -0
- package/table/header/sort.header.properties.d.ts +1 -1
- package/table/header/sort.header.vue.d.ts +2 -2
- package/table/index.d.ts +2 -0
- package/table/pagination.component.properties.d.ts +5 -0
- package/table/pagination.component.vue.d.ts +9 -0
- package/table/table.component.properties.d.ts +4 -0
- package/table/table.component.vue.d.ts +9 -0
- package/table/table.model.d.ts +4 -1
- package/test-utils/withSetup.d.ts +0 -4
package/modal/modal.vue.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ghentcdh/ui",
|
|
3
3
|
"author": "GhentCDH",
|
|
4
|
-
"version": "
|
|
5
|
-
"type": "module",
|
|
4
|
+
"version": "2.0.0",
|
|
6
5
|
"main": "./index.js",
|
|
7
6
|
"module": "./index.mjs",
|
|
8
7
|
"types": "./index.d.ts",
|
|
@@ -53,23 +52,32 @@
|
|
|
53
52
|
"peerDependenciesMeta": {
|
|
54
53
|
"@playwright/test": {
|
|
55
54
|
"optional": true
|
|
55
|
+
},
|
|
56
|
+
"@tiptap/pm": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
59
|
+
"@tiptap/starter-kit": {
|
|
60
|
+
"optional": true
|
|
61
|
+
},
|
|
62
|
+
"@tiptap/vue-3": {
|
|
63
|
+
"optional": true
|
|
64
|
+
},
|
|
65
|
+
"tiptap-markdown": {
|
|
66
|
+
"optional": true
|
|
56
67
|
}
|
|
57
68
|
},
|
|
58
69
|
"sideEffects": false,
|
|
59
70
|
"peerDependencies": {
|
|
60
|
-
"@ghentcdh/
|
|
71
|
+
"@ghentcdh/json-forms-core": ">=0.0.1",
|
|
61
72
|
"@playwright/test": ">=1.50.0",
|
|
62
|
-
"@heroicons/vue": "^2.2.0",
|
|
63
73
|
"@tiptap/pm": "^3.0.0",
|
|
64
74
|
"@tiptap/starter-kit": "^3.0.0",
|
|
65
75
|
"@tiptap/vue-3": "^3.0.0",
|
|
66
76
|
"tiptap-markdown": "^0.9.0",
|
|
67
|
-
"uuid": "^11.0.0",
|
|
68
77
|
"vue": "^3.5.0",
|
|
69
78
|
"vue-router": "^5.0.0"
|
|
70
79
|
},
|
|
71
80
|
"devDependencies": {
|
|
72
|
-
"@heroicons/vue": "2.2.0",
|
|
73
81
|
"@tailwindcss/postcss": "4.2.1",
|
|
74
82
|
"@tiptap/pm": "3.20.0",
|
|
75
83
|
"@tiptap/starter-kit": "3.20.0",
|
|
@@ -77,7 +85,6 @@
|
|
|
77
85
|
"daisyui": "5.5.19",
|
|
78
86
|
"tailwindcss": "4.2.1",
|
|
79
87
|
"tiptap-markdown": "0.9.0",
|
|
80
|
-
"uuid": "11.1.0",
|
|
81
88
|
"vue": "3.5.29",
|
|
82
89
|
"vue-router": "5.0.3"
|
|
83
90
|
},
|
|
@@ -22,5 +22,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
22
22
|
options: {
|
|
23
23
|
type: ObjectConstructor;
|
|
24
24
|
};
|
|
25
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
25
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
26
26
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
column: {
|
|
3
|
-
type: import('vue').PropType<import('
|
|
3
|
+
type: import('vue').PropType<import('..').ColumnDef>;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
sortColumn: {
|
|
@@ -11,7 +11,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
11
11
|
};
|
|
12
12
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
13
|
column: {
|
|
14
|
-
type: import('vue').PropType<import('
|
|
14
|
+
type: import('vue').PropType<import('..').ColumnDef>;
|
|
15
15
|
required: true;
|
|
16
16
|
};
|
|
17
17
|
sortColumn: {
|
package/table/index.d.ts
CHANGED
|
@@ -6,4 +6,6 @@ export { default as TableComponent } from './table.component.vue';
|
|
|
6
6
|
export { default as Table } from './table.component.vue';
|
|
7
7
|
export { default as TextCell } from './cells/text.cell.vue';
|
|
8
8
|
export { default as BooleanCell } from './cells/boolean.cell.vue';
|
|
9
|
+
export * from './column.model';
|
|
9
10
|
export * from './table.model';
|
|
11
|
+
export { type TablePage, type TableSort } from './table.component.properties';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
1
2
|
export declare const PaginationComponentProperties: {
|
|
2
3
|
totalItems: {
|
|
3
4
|
type: NumberConstructor;
|
|
@@ -11,5 +12,9 @@ export declare const PaginationComponentProperties: {
|
|
|
11
12
|
type: NumberConstructor;
|
|
12
13
|
default: number;
|
|
13
14
|
};
|
|
15
|
+
pageSizeOptions: {
|
|
16
|
+
type: PropType<number[]>;
|
|
17
|
+
default: () => number[];
|
|
18
|
+
};
|
|
14
19
|
};
|
|
15
20
|
export declare const PaginationComponentEmits: string[];
|
|
@@ -11,6 +11,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
11
11
|
type: NumberConstructor;
|
|
12
12
|
default: number;
|
|
13
13
|
};
|
|
14
|
+
pageSizeOptions: {
|
|
15
|
+
type: import('vue').PropType<number[]>;
|
|
16
|
+
default: () => number[];
|
|
17
|
+
};
|
|
14
18
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
15
19
|
totalItems: {
|
|
16
20
|
type: NumberConstructor;
|
|
@@ -24,9 +28,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
24
28
|
type: NumberConstructor;
|
|
25
29
|
default: number;
|
|
26
30
|
};
|
|
31
|
+
pageSizeOptions: {
|
|
32
|
+
type: import('vue').PropType<number[]>;
|
|
33
|
+
default: () => number[];
|
|
34
|
+
};
|
|
27
35
|
}>> & Readonly<{}>, {
|
|
28
36
|
currentPage: number;
|
|
29
37
|
totalItems: number;
|
|
30
38
|
itemsPerPage: number;
|
|
39
|
+
pageSizeOptions: number[];
|
|
31
40
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
32
41
|
export default _default;
|
|
@@ -3,6 +3,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
3
3
|
type: BooleanConstructor;
|
|
4
4
|
default: false;
|
|
5
5
|
};
|
|
6
|
+
multiselect: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: false;
|
|
9
|
+
};
|
|
6
10
|
actions: {
|
|
7
11
|
type: import('vue').PropType<import('./table.model').TableAction[]>;
|
|
8
12
|
};
|
|
@@ -24,6 +28,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
24
28
|
type: BooleanConstructor;
|
|
25
29
|
default: false;
|
|
26
30
|
};
|
|
31
|
+
multiselect: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: false;
|
|
34
|
+
};
|
|
27
35
|
actions: {
|
|
28
36
|
type: import('vue').PropType<import('./table.model').TableAction[]>;
|
|
29
37
|
};
|
|
@@ -41,6 +49,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
41
49
|
type: import('vue').PropType<import('./table.component.properties').TableSort>;
|
|
42
50
|
};
|
|
43
51
|
}>> & Readonly<{}>, {
|
|
52
|
+
multiselect: boolean;
|
|
44
53
|
loading: boolean;
|
|
45
54
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
46
55
|
export default _default;
|
package/table/table.model.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { ColumnDef } from '
|
|
1
|
+
import { ColumnDef } from './column.model';
|
|
2
2
|
import { IconEnum } from '../icons';
|
|
3
3
|
export type TableAction = {
|
|
4
4
|
label?: string;
|
|
5
|
+
tooltip?: string;
|
|
5
6
|
icon?: IconEnum;
|
|
6
7
|
action: <T>(data: T) => void;
|
|
8
|
+
/** Optional predicate — when provided, the button is only shown if this returns true for the row. */
|
|
9
|
+
visible?: <T>(data: T) => boolean;
|
|
7
10
|
};
|
|
8
11
|
export type DisplayColumn = ColumnDef & {
|
|
9
12
|
component: any;
|