@ghentcdh/ui 1.0.2 → 1.0.3

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.
Files changed (102) hide show
  1. package/alert/alert.model.d.ts +5 -0
  2. package/alert/alert.vue.d.ts +22 -0
  3. package/alert/index.d.ts +2 -0
  4. package/button/Btn.properties.d.ts +45 -0
  5. package/button/BtnBadge.properties.d.ts +27 -0
  6. package/button/btn-badge.vue.d.ts +62 -0
  7. package/button/btn.vue.d.ts +101 -0
  8. package/button/const.d.ts +9 -0
  9. package/button/index.d.ts +5 -0
  10. package/card/card.vue.d.ts +20 -0
  11. package/collapse/Collapse.properties.d.ts +35 -0
  12. package/collapse/Collapse.vue.d.ts +75 -0
  13. package/collapse/CollapseRow.properties.d.ts +17 -0
  14. package/collapse/CollapseRow.vue.d.ts +49 -0
  15. package/collapse/index.d.ts +3 -0
  16. package/composables/index.d.ts +2 -0
  17. package/composables/useFocusTrap.d.ts +8 -0
  18. package/const/colors.d.ts +8 -0
  19. package/const/index.d.ts +2 -0
  20. package/const/size.d.ts +4 -0
  21. package/directives/click-outside.directive.d.ts +6 -0
  22. package/drawer/drawer.properties.d.ts +18 -0
  23. package/drawer/drawer.vue.d.ts +58 -0
  24. package/drawer/index.d.ts +1 -0
  25. package/filter/Filter.properties.d.ts +46 -0
  26. package/filter/composables/useFilter.d.ts +8 -0
  27. package/filter/filter.vue.d.ts +84 -0
  28. package/filter/index.d.ts +3 -0
  29. package/form/Checkbox.properties.d.ts +83 -0
  30. package/form/Checkbox.vue.d.ts +216 -0
  31. package/form/Input.properties.d.ts +87 -0
  32. package/form/Input.vue.d.ts +225 -0
  33. package/form/InputNumber.properties.d.ts +87 -0
  34. package/form/InputNumber.vue.d.ts +225 -0
  35. package/form/Textarea.properties.d.ts +87 -0
  36. package/form/Textarea.vue.d.ts +225 -0
  37. package/form/core/ControlWrapper.properties.d.ts +84 -0
  38. package/form/core/ControlWrapper.vue.d.ts +221 -0
  39. package/form/core/emits.d.ts +7 -0
  40. package/form/core/properties.d.ts +25 -0
  41. package/form/core/styles.d.ts +36 -0
  42. package/form/core/utils/style.d.ts +6 -0
  43. package/form/index.d.ts +12 -0
  44. package/form/select/AutoComplete.properties.d.ts +139 -0
  45. package/form/select/AutoComplete.vue.d.ts +328 -0
  46. package/form/select/ListResults.properties.d.ts +24 -0
  47. package/form/select/ListResults.vue.d.ts +46 -0
  48. package/form/select/MultiSelect.vue.d.ts +295 -0
  49. package/form/select/SelectComponent.vue.d.ts +259 -0
  50. package/form/select/SelectWrapper.properties.d.ts +222 -0
  51. package/form/select/SelectWrapper.vue.d.ts +408 -0
  52. package/form/select/composables/useOptions.d.ts +19 -0
  53. package/form/select/composables/useSearch.d.ts +6 -0
  54. package/form/text/Markdown.vue.d.ts +234 -0
  55. package/form/text/MarkdownComponent.properties.d.ts +101 -0
  56. package/icons/Icon.properties.d.ts +11 -0
  57. package/icons/icon-list.d.ts +26 -0
  58. package/icons/icon.vue.d.ts +16 -0
  59. package/icons/index.d.ts +3 -0
  60. package/loading/index.d.ts +1 -0
  61. package/loading/loading.vue.d.ts +5 -0
  62. package/menu/dropdown.vue.d.ts +6 -0
  63. package/menu/index.d.ts +4 -0
  64. package/menu/menu-item.vue.d.ts +5 -0
  65. package/menu/menu.type.d.ts +15 -0
  66. package/menu/menu.vue.d.ts +7 -0
  67. package/menu/sub-menu.vue.d.ts +7 -0
  68. package/modal/confirmModal.vue.d.ts +10 -0
  69. package/modal/index.d.ts +6 -0
  70. package/modal/modal.model.d.ts +17 -0
  71. package/modal/modal.properties.d.ts +30 -0
  72. package/modal/modal.service.d.ts +15 -0
  73. package/modal/modal.vue.d.ts +82 -0
  74. package/modal/modalWrapper.vue.d.ts +2 -0
  75. package/package.json +21 -2
  76. package/shell/menu.type.d.ts +11 -0
  77. package/shell/shell.component.vue.d.ts +31 -0
  78. package/table/cells/boolean.cell.vue.d.ts +26 -0
  79. package/table/cells/text.cell.properties.d.ts +13 -0
  80. package/table/cells/text.cell.vue.d.ts +26 -0
  81. package/table/header/sort.header.properties.d.ts +15 -0
  82. package/table/header/sort.header.vue.d.ts +24 -0
  83. package/table/index.d.ts +9 -0
  84. package/table/pagination-button.component.properties.d.ts +30 -0
  85. package/table/pagination-button.component.vue.d.ts +47 -0
  86. package/table/pagination.component.properties.d.ts +15 -0
  87. package/table/pagination.component.vue.d.ts +32 -0
  88. package/table/table.component.properties.d.ts +34 -0
  89. package/table/table.component.vue.d.ts +46 -0
  90. package/table/table.model.d.ts +10 -0
  91. package/test-utils/withSetup.d.ts +4 -0
  92. package/toast/index.d.ts +3 -0
  93. package/toast/notification-message.d.ts +7 -0
  94. package/toast/notification-message.vue.d.ts +7 -0
  95. package/toast/notification.service.d.ts +24 -0
  96. package/toast/notifications.vue.d.ts +2 -0
  97. package/tree/TreeItem.vue.d.ts +15 -0
  98. package/tree/TreeView.vue.d.ts +7 -0
  99. package/tree/index.d.ts +1 -0
  100. package/tree/props.d.ts +13 -0
  101. package/utils/hasCustomEventListener.d.ts +1 -0
  102. package/utils/index.d.ts +1 -0
@@ -0,0 +1,47 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ currentPage: {
3
+ type: NumberConstructor;
4
+ required: true;
5
+ };
6
+ page: {
7
+ type: NumberConstructor;
8
+ required: true;
9
+ };
10
+ label: {
11
+ type: StringConstructor;
12
+ required: true;
13
+ };
14
+ neverActive: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ disabled: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ currentPage: {
24
+ type: NumberConstructor;
25
+ required: true;
26
+ };
27
+ page: {
28
+ type: NumberConstructor;
29
+ required: true;
30
+ };
31
+ label: {
32
+ type: StringConstructor;
33
+ required: true;
34
+ };
35
+ neverActive: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ disabled: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ }>> & Readonly<{}>, {
44
+ disabled: boolean;
45
+ neverActive: boolean;
46
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
47
+ export default _default;
@@ -0,0 +1,15 @@
1
+ export declare const PaginationComponentProperties: {
2
+ totalItems: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ itemsPerPage: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ currentPage: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ };
15
+ export declare const PaginationComponentEmits: string[];
@@ -0,0 +1,32 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ totalItems: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ itemsPerPage: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ currentPage: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
15
+ totalItems: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ itemsPerPage: {
20
+ type: NumberConstructor;
21
+ default: number;
22
+ };
23
+ currentPage: {
24
+ type: NumberConstructor;
25
+ default: number;
26
+ };
27
+ }>> & Readonly<{}>, {
28
+ currentPage: number;
29
+ totalItems: number;
30
+ itemsPerPage: number;
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
32
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import { PropType } from 'vue';
2
+ import { DisplayColumn, TableAction } from './table.model';
3
+ export type TablePage = {
4
+ count: number;
5
+ pageSize: number;
6
+ page: number;
7
+ };
8
+ export type TableSort = {
9
+ sortColumn?: string;
10
+ sortDirection: 'asc' | 'desc';
11
+ };
12
+ export declare const TableComponentProperties: {
13
+ loading: {
14
+ type: BooleanConstructor;
15
+ default: false;
16
+ };
17
+ actions: {
18
+ type: PropType<TableAction[]>;
19
+ };
20
+ data: {
21
+ type: PropType<any[]>;
22
+ };
23
+ displayColumns: {
24
+ type: PropType<DisplayColumn[]>;
25
+ required: true;
26
+ };
27
+ page: {
28
+ type: PropType<TablePage>;
29
+ };
30
+ sort: {
31
+ type: PropType<TableSort>;
32
+ };
33
+ };
34
+ export declare const TableComponentEmits: string[];
@@ -0,0 +1,46 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ loading: {
3
+ type: BooleanConstructor;
4
+ default: false;
5
+ };
6
+ actions: {
7
+ type: import('vue').PropType<import('./table.model').TableAction[]>;
8
+ };
9
+ data: {
10
+ type: import('vue').PropType<any[]>;
11
+ };
12
+ displayColumns: {
13
+ type: import('vue').PropType<import('./table.model').DisplayColumn[]>;
14
+ required: true;
15
+ };
16
+ page: {
17
+ type: import('vue').PropType<import('./table.component.properties').TablePage>;
18
+ };
19
+ sort: {
20
+ type: import('vue').PropType<import('./table.component.properties').TableSort>;
21
+ };
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ loading: {
24
+ type: BooleanConstructor;
25
+ default: false;
26
+ };
27
+ actions: {
28
+ type: import('vue').PropType<import('./table.model').TableAction[]>;
29
+ };
30
+ data: {
31
+ type: import('vue').PropType<any[]>;
32
+ };
33
+ displayColumns: {
34
+ type: import('vue').PropType<import('./table.model').DisplayColumn[]>;
35
+ required: true;
36
+ };
37
+ page: {
38
+ type: import('vue').PropType<import('./table.component.properties').TablePage>;
39
+ };
40
+ sort: {
41
+ type: import('vue').PropType<import('./table.component.properties').TableSort>;
42
+ };
43
+ }>> & Readonly<{}>, {
44
+ loading: boolean;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
46
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { ColumnDef } from '../../../core/types/src/index.ts';
2
+ import { IconEnum } from '../icons';
3
+ export type TableAction = {
4
+ label?: string;
5
+ icon?: IconEnum;
6
+ action: <T>(data: T) => void;
7
+ };
8
+ export type DisplayColumn = ColumnDef & {
9
+ component: any;
10
+ };
@@ -0,0 +1,4 @@
1
+ export declare const withSetup: (composable: () => void) => {
2
+ result: never;
3
+ app: import('vue').App<Element>;
4
+ };
@@ -0,0 +1,3 @@
1
+ export * from './notification.service';
2
+ export { default as NotificationMessage } from './notification-message.vue';
3
+ export { default as Notifications } from './notifications.vue';
@@ -0,0 +1,7 @@
1
+ export type NotificationType = 'success' | 'error' | 'info' | 'warning';
2
+ export type NotificationMessage = {
3
+ id: string;
4
+ message: string;
5
+ type: NotificationType;
6
+ duration: number;
7
+ };
@@ -0,0 +1,7 @@
1
+ import { NotificationType } from './notification-message.ts';
2
+ type __VLS_Props = {
3
+ message: string;
4
+ type: NotificationType;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
7
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import { NotificationMessage, NotificationType } from './notification-message.ts';
2
+ export declare class NotificationService {
3
+ private static instance;
4
+ notifications: import('vue').Ref<{
5
+ id: string;
6
+ message: string;
7
+ type: NotificationType;
8
+ duration: number;
9
+ }[], NotificationMessage[] | {
10
+ id: string;
11
+ message: string;
12
+ type: NotificationType;
13
+ duration: number;
14
+ }[]>;
15
+ private addNotification;
16
+ private removeNotificationAfterDuration;
17
+ private removeNotification;
18
+ static getInstance(): NotificationService;
19
+ static info(message: string): void;
20
+ static success(message: string): void;
21
+ static warning(message: string): void;
22
+ static error(message: string): void;
23
+ static removeNotification(id: string): void;
24
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { TreeNode } from './props';
2
+ type __VLS_Props = {
3
+ active?: string;
4
+ node: TreeNode;
5
+ expanded: Set<string>;
6
+ isExpanded: (id: string) => boolean;
7
+ };
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
+ select: (node: TreeNode) => any;
10
+ toggle: (node: TreeNode) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onSelect?: ((node: TreeNode) => any) | undefined;
13
+ onToggle?: ((node: TreeNode) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLIElement>;
15
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { TreeNode, TreeProps } from './props';
2
+ declare const _default: import('vue').DefineComponent<TreeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
+ select: (node: TreeNode) => any;
4
+ }, string, import('vue').PublicProps, Readonly<TreeProps> & Readonly<{
5
+ onSelect?: ((node: TreeNode) => any) | undefined;
6
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLUListElement>;
7
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as TreeView } from './TreeView.vue';
@@ -0,0 +1,13 @@
1
+ export interface TreeNode {
2
+ id: string;
3
+ label: string;
4
+ tag?: string;
5
+ children?: TreeNode[];
6
+ }
7
+ export type TreeProps = {
8
+ data: TreeNode[];
9
+ active?: string;
10
+ };
11
+ export type TreeEmits = {
12
+ select: [node: TreeNode];
13
+ };
@@ -0,0 +1 @@
1
+ export declare function hasCustomEventListener(eventName: string): boolean;
@@ -0,0 +1 @@
1
+ export * from './hasCustomEventListener';