@citruslime/ui 1.2.1-beta.0 → 1.2.1
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/README.md +5 -4
- package/dist/citrus-lime-ui.es.js +4602 -0
- package/dist/citrus-lime-ui.umd.js +2 -0
- package/dist/components/accordion/cl-ui-accordion.vue.d.ts +26 -0
- package/dist/components/accordion/index.d.ts +4 -0
- package/dist/components/accordion/item/cl-ui-accordion-item.vue.d.ts +35 -0
- package/dist/{@types/components/accordion/item.d.ts → components/accordion/types.d.ts} +0 -0
- package/dist/components/app/cl-ui-app.vue.d.ts +51 -0
- package/dist/components/app/index.d.ts +1 -0
- package/dist/components/button/cl-ui-button.vue.d.ts +51 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/types.d.ts +4 -0
- package/dist/components/calendar/cl-ui-calendar.vue.d.ts +2 -0
- package/dist/components/calendar/index.d.ts +2 -0
- package/dist/components/calendar/types.d.ts +2 -0
- package/dist/components/calendar/utils.d.ts +38 -0
- package/dist/components/card/cl-ui-card.vue.d.ts +27 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/types.d.ts +2 -0
- package/dist/components/combo-box/cl-ui-combo-box.vue.d.ts +583 -0
- package/dist/components/combo-box/index.d.ts +2 -0
- package/dist/components/combo-box/search-container/cl-ui-combo-box-search.vue.d.ts +276 -0
- package/dist/components/combo-box/search-container/header/cl-ui-combo-box-header.vue.d.ts +42 -0
- package/dist/components/combo-box/search-container/selectable/cl-ui-combo-box-selectable.vue.d.ts +81 -0
- package/dist/{@types/components/combo-box/item.d.ts → components/combo-box/types.d.ts} +0 -0
- package/dist/components/footer/index.d.ts +1 -0
- package/dist/components/grid/cell/cl-ui-grid-cell.vue.d.ts +72 -0
- package/dist/components/grid/cl-ui-grid.vue.d.ts +550 -0
- package/dist/components/grid/filter/cl-ui-grid-filter.vue.d.ts +72 -0
- package/dist/components/grid/filter/filter-methods.d.ts +5 -0
- package/dist/components/grid/footer/cl-ui-grid-footer.vue.d.ts +63 -0
- package/dist/components/grid/header/cl-ui-grid-header.vue.d.ts +207 -0
- package/dist/components/grid/index.d.ts +2 -0
- package/dist/components/grid/types.d.ts +92 -0
- package/dist/components/grid/view-manager/cl-ui-grid-view-manager.vue.d.ts +88 -0
- package/dist/components/header/index.d.ts +2 -0
- package/dist/components/header/menu/cl-ui-header-menu.vue.d.ts +40 -0
- package/dist/components/header/menu/index.d.ts +1 -0
- package/dist/components/index.d.ts +16 -14
- package/dist/components/input/cl-ui-input.vue.d.ts +2 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/types.d.ts +6 -0
- package/dist/components/input/utils.d.ts +44 -0
- package/dist/components/language-switcher/cl-ui-language-switcher.vue.d.ts +37 -0
- package/dist/components/language-switcher/index.d.ts +2 -0
- package/dist/{@types/language.d.ts → components/language-switcher/types.d.ts} +0 -1
- package/dist/components/loading-spinner/index.d.ts +1 -0
- package/dist/components/login/cl-ui-login.vue.d.ts +106 -0
- package/dist/components/login/index.d.ts +2 -0
- package/dist/{@types/components/login/authentication.d.ts → components/login/types.d.ts} +0 -0
- package/dist/components/modal/cl-ui-modal.vue.d.ts +49 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/types.d.ts +4 -0
- package/dist/components/navigation/cl-ui-navigation.vue.d.ts +11 -0
- package/dist/components/navigation/group/cl-ui-navigation-group.vue.d.ts +12 -0
- package/dist/components/navigation/icon/cl-ui-navigation-icon.vue.d.ts +20 -0
- package/dist/components/navigation/index.d.ts +5 -0
- package/dist/components/notification/cl-ui-notification.vue.d.ts +36 -0
- package/dist/components/notification/index.d.ts +1 -0
- package/dist/components/notification/types.d.ts +9 -0
- package/dist/components/slider/cl-ui-slider.vue.d.ts +114 -0
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/tab/cl-ui-tab.vue.d.ts +52 -0
- package/dist/components/tab/header/cl-ui-tab-header.vue.d.ts +60 -0
- package/dist/components/tab/index.d.ts +4 -0
- package/dist/components/tab/types.d.ts +4 -0
- package/dist/composables/notification.d.ts +1 -1
- package/dist/main.d.ts +3 -5
- package/dist/style.css +1 -1
- package/dist/utils/i18n/config.d.ts +33 -0
- package/dist/utils/i18n/defaults.d.ts +4 -0
- package/dist/utils/i18n/index.d.ts +3 -0
- package/dist/utils/i18n/types.d.ts +97 -0
- package/dist/utils/index.d.ts +2 -6
- package/dist/utils/validation.d.ts +37 -0
- package/package.json +29 -13
- package/dist/.eslintrc.js +0 -448
- package/dist/.stylelintrc.js +0 -119
- package/dist/@types/appUser.d.ts +0 -10
- package/dist/@types/components/accordion/index.d.ts +0 -1
- package/dist/@types/components/combo-box/index.d.ts +0 -2
- package/dist/@types/components/combo-box/localisations.d.ts +0 -19
- package/dist/@types/components/grid/column.d.ts +0 -45
- package/dist/@types/components/grid/index.d.ts +0 -4
- package/dist/@types/components/grid/localisations.d.ts +0 -47
- package/dist/@types/components/grid/request.d.ts +0 -49
- package/dist/@types/components/grid/update.d.ts +0 -4
- package/dist/@types/components/header/index.d.ts +0 -2
- package/dist/@types/components/header/localisations.d.ts +0 -8
- package/dist/@types/components/header/navigation.d.ts +0 -15
- package/dist/@types/components/login/index.d.ts +0 -2
- package/dist/@types/components/login/localisations.d.ts +0 -7
- package/dist/@types/components/notification/index.d.ts +0 -1
- package/dist/@types/components/notification/item.d.ts +0 -7
- package/dist/@types/components/slider/index.d.ts +0 -1
- package/dist/@types/components/slider/localisations.d.ts +0 -3
- package/dist/@types/date-format.d.ts +0 -8
- package/dist/@types/debouncer.d.ts +0 -6
- package/dist/@types/index.d.ts +0 -15
- package/dist/@types/locale.d.ts +0 -10
- package/dist/@types/number-format.d.ts +0 -7
- package/dist/@types/string-format.d.ts +0 -3
- package/dist/@types/string.d.ts +0 -47
- package/dist/theme.js +0 -122
- package/dist/ui.es.js +0 -1
- package/dist/ui.umd.js +0 -1
- package/dist/utils/copy.d.ts +0 -8
- package/dist/utils/debouncer.d.ts +0 -8
- package/dist/utils/extensions/string-utilities.d.ts +0 -83
- package/dist/utils/extensions/string.d.ts +0 -1
- package/dist/utils/i18n/datetime-formats.d.ts +0 -3
- package/dist/utils/i18n/number-formats.d.ts +0 -3
- package/dist/utils/id.d.ts +0 -6
- package/dist/utils/name-of.d.ts +0 -7
- package/dist/utils/sort.d.ts +0 -9
- package/dist/utils/url-params.d.ts +0 -8
- package/src/components/accordion/accordion.vue +0 -30
- package/src/components/button/button.vue +0 -28
- package/src/components/calendar/calendar.vue +0 -35
- package/src/components/card/card.vue +0 -54
- package/src/components/combo-box/combo-box.vue +0 -79
- package/src/components/combo-box/search-container/header-option/header-option.vue +0 -21
- package/src/components/combo-box/search-container/search-container.vue +0 -57
- package/src/components/combo-box/search-container/selectable-option/selectable-option.vue +0 -27
- package/src/components/footer/footer.vue +0 -23
- package/src/components/grid/cell/cell.vue +0 -64
- package/src/components/grid/filter/filter.vue +0 -93
- package/src/components/grid/footer/footer.vue +0 -91
- package/src/components/grid/grid.vue +0 -194
- package/src/components/grid/header/header.vue +0 -39
- package/src/components/grid/view-manager/view-manager.vue +0 -73
- package/src/components/header/header-helper/header-helper.vue +0 -95
- package/src/components/header/header.vue +0 -33
- package/src/components/header/navigation/navigation.vue +0 -84
- package/src/components/language-switcher/language-switcher.vue +0 -36
- package/src/components/loading-spinner/loading-spinner.vue +0 -8
- package/src/components/login/login.vue +0 -101
- package/src/components/modal/modal.vue +0 -48
- package/src/components/notification/notification.vue +0 -36
- package/src/components/slider/slider.vue +0 -41
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { NumberFormat } from '../../../utils';
|
|
2
|
+
import type { FilterRequest, FilterResponse } from '../types';
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
request: {
|
|
5
|
+
type: null;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
data: {
|
|
9
|
+
type: null;
|
|
10
|
+
required: false;
|
|
11
|
+
default: null;
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
props: {
|
|
15
|
+
request: FilterRequest;
|
|
16
|
+
data: FilterResponse<unknown> | null;
|
|
17
|
+
};
|
|
18
|
+
emit: (event: "update:request", ...args: any[]) => void;
|
|
19
|
+
pageSizes: number[];
|
|
20
|
+
n: {
|
|
21
|
+
(value: number): string;
|
|
22
|
+
(value: number, key: string): string;
|
|
23
|
+
(value: number, key: string, locale: string): string;
|
|
24
|
+
(value: number, options: import("vue-i18n").NumberOptions): string;
|
|
25
|
+
};
|
|
26
|
+
t: {
|
|
27
|
+
(key: string | number): string;
|
|
28
|
+
(key: string | number, plural: number, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
29
|
+
(key: string | number, defaultMsg: string, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
30
|
+
(key: string | number, list: unknown[], options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
31
|
+
(key: string | number, list: unknown[], plural: number): string;
|
|
32
|
+
(key: string | number, list: unknown[], defaultMsg: string): string;
|
|
33
|
+
(key: string | number, named: Record<string, unknown>, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
34
|
+
(key: string | number, named: Record<string, unknown>, plural: number): string;
|
|
35
|
+
(key: string | number, named: Record<string, unknown>, defaultMsg: string): string;
|
|
36
|
+
};
|
|
37
|
+
debounce: (event: Function, ...eventArgs: unknown[]) => void;
|
|
38
|
+
currentPage: import("vue").Ref<number>;
|
|
39
|
+
totalPages: import("vue").ComputedRef<number>;
|
|
40
|
+
pageNumbers: import("vue").ComputedRef<number[]>;
|
|
41
|
+
setPage: (pageNumber: number) => void;
|
|
42
|
+
setPageFromInput: (target: EventTarget | HTMLInputElement | null) => void;
|
|
43
|
+
setPageSize: (pageSize: number) => void;
|
|
44
|
+
NumberFormat: typeof NumberFormat;
|
|
45
|
+
ClUiInput: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
|
|
46
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
|
+
'update:request': null;
|
|
48
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
|
+
request: {
|
|
50
|
+
type: null;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
data: {
|
|
54
|
+
type: null;
|
|
55
|
+
required: false;
|
|
56
|
+
default: null;
|
|
57
|
+
};
|
|
58
|
+
}>> & {
|
|
59
|
+
"onUpdate:request"?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
data: any;
|
|
62
|
+
}>;
|
|
63
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import type { GridColumn } from '../types';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
+
columns: {
|
|
4
|
+
type: ArrayConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
editMode: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
editEnabled: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
filterPanelOpen: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
props: {
|
|
22
|
+
columns: GridColumn[];
|
|
23
|
+
editMode: boolean;
|
|
24
|
+
editEnabled: boolean;
|
|
25
|
+
filterPanelOpen: boolean;
|
|
26
|
+
};
|
|
27
|
+
emit: ((event: "update:columns", ...args: any[]) => void) & ((event: "reset-filters", ...args: any[]) => void) & ((event: "update:edit-mode", ...args: any[]) => void) & ((event: "update:filter-panel-open", ...args: any[]) => void);
|
|
28
|
+
t: {
|
|
29
|
+
(key: string | number): string;
|
|
30
|
+
(key: string | number, plural: number, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
31
|
+
(key: string | number, defaultMsg: string, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
32
|
+
(key: string | number, list: unknown[], options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
33
|
+
(key: string | number, list: unknown[], plural: number): string;
|
|
34
|
+
(key: string | number, list: unknown[], defaultMsg: string): string;
|
|
35
|
+
(key: string | number, named: Record<string, unknown>, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
36
|
+
(key: string | number, named: Record<string, unknown>, plural: number): string;
|
|
37
|
+
(key: string | number, named: Record<string, unknown>, defaultMsg: string): string;
|
|
38
|
+
};
|
|
39
|
+
currentColumns: import("vue").WritableComputedRef<GridColumn[]>;
|
|
40
|
+
ClUiButton: import("vue").DefineComponent<{
|
|
41
|
+
colour: {
|
|
42
|
+
type: null;
|
|
43
|
+
required: false;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
size: {
|
|
47
|
+
type: null;
|
|
48
|
+
required: false;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
loading: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
required: false;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
disabled: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
required: false;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
}, {
|
|
62
|
+
ClUiLoadingSpinner: any;
|
|
63
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
64
|
+
colour: {
|
|
65
|
+
type: null;
|
|
66
|
+
required: false;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
size: {
|
|
70
|
+
type: null;
|
|
71
|
+
required: false;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
loading: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
required: false;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
disabled: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
required: false;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
}>>, {
|
|
85
|
+
disabled: boolean;
|
|
86
|
+
colour: any;
|
|
87
|
+
size: any;
|
|
88
|
+
loading: boolean;
|
|
89
|
+
}>;
|
|
90
|
+
ClUiGridViewManager: import("vue").DefineComponent<{
|
|
91
|
+
columns: {
|
|
92
|
+
type: ArrayConstructor;
|
|
93
|
+
required: true;
|
|
94
|
+
};
|
|
95
|
+
}, {
|
|
96
|
+
props: {
|
|
97
|
+
columns: GridColumn[];
|
|
98
|
+
};
|
|
99
|
+
emit: (event: "update:columns", ...args: any[]) => void;
|
|
100
|
+
t: {
|
|
101
|
+
(key: string | number): string;
|
|
102
|
+
(key: string | number, plural: number, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
103
|
+
(key: string | number, defaultMsg: string, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
104
|
+
(key: string | number, list: unknown[], options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
105
|
+
(key: string | number, list: unknown[], plural: number): string;
|
|
106
|
+
(key: string | number, list: unknown[], defaultMsg: string): string;
|
|
107
|
+
(key: string | number, named: Record<string, unknown>, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
108
|
+
(key: string | number, named: Record<string, unknown>, plural: number): string;
|
|
109
|
+
(key: string | number, named: Record<string, unknown>, defaultMsg: string): string;
|
|
110
|
+
};
|
|
111
|
+
visible: import("vue").Ref<boolean>;
|
|
112
|
+
moveColumn: (columns: GridColumn[], oldIndex: number, newIndex: number) => void;
|
|
113
|
+
updateColumnVisibility: (target: EventTarget | null, column: GridColumn) => void;
|
|
114
|
+
changeColumnOrder: (columnIndex: number, direction: "up" | "down") => void;
|
|
115
|
+
ClUiButton: import("vue").DefineComponent<{
|
|
116
|
+
colour: {
|
|
117
|
+
type: null;
|
|
118
|
+
required: false;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
size: {
|
|
122
|
+
type: null;
|
|
123
|
+
required: false;
|
|
124
|
+
default: string;
|
|
125
|
+
};
|
|
126
|
+
loading: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
required: false;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
disabled: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
required: false;
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
136
|
+
}, {
|
|
137
|
+
ClUiLoadingSpinner: any;
|
|
138
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
139
|
+
colour: {
|
|
140
|
+
type: null;
|
|
141
|
+
required: false;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
size: {
|
|
145
|
+
type: null;
|
|
146
|
+
required: false;
|
|
147
|
+
default: string;
|
|
148
|
+
};
|
|
149
|
+
loading: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
required: false;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
154
|
+
disabled: {
|
|
155
|
+
type: BooleanConstructor;
|
|
156
|
+
required: false;
|
|
157
|
+
default: boolean;
|
|
158
|
+
};
|
|
159
|
+
}>>, {
|
|
160
|
+
disabled: boolean;
|
|
161
|
+
colour: any;
|
|
162
|
+
size: any;
|
|
163
|
+
loading: boolean;
|
|
164
|
+
}>;
|
|
165
|
+
ClUiInput: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
|
|
166
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
167
|
+
'update:columns': null;
|
|
168
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
169
|
+
columns: {
|
|
170
|
+
type: ArrayConstructor;
|
|
171
|
+
required: true;
|
|
172
|
+
};
|
|
173
|
+
}>> & {
|
|
174
|
+
"onUpdate:columns"?: ((...args: any[]) => any) | undefined;
|
|
175
|
+
}, {}>;
|
|
176
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
177
|
+
'reset-filters': null;
|
|
178
|
+
'update:columns': null;
|
|
179
|
+
'update:edit-mode': null;
|
|
180
|
+
'update:filter-panel-open': null;
|
|
181
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
182
|
+
columns: {
|
|
183
|
+
type: ArrayConstructor;
|
|
184
|
+
required: true;
|
|
185
|
+
};
|
|
186
|
+
editMode: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
required: true;
|
|
189
|
+
};
|
|
190
|
+
editEnabled: {
|
|
191
|
+
type: BooleanConstructor;
|
|
192
|
+
required: true;
|
|
193
|
+
};
|
|
194
|
+
filterPanelOpen: {
|
|
195
|
+
type: BooleanConstructor;
|
|
196
|
+
required: false;
|
|
197
|
+
default: boolean;
|
|
198
|
+
};
|
|
199
|
+
}>> & {
|
|
200
|
+
"onUpdate:columns"?: ((...args: any[]) => any) | undefined;
|
|
201
|
+
"onReset-filters"?: ((...args: any[]) => any) | undefined;
|
|
202
|
+
"onUpdate:edit-mode"?: ((...args: any[]) => any) | undefined;
|
|
203
|
+
"onUpdate:filter-panel-open"?: ((...args: any[]) => any) | undefined;
|
|
204
|
+
}, {
|
|
205
|
+
filterPanelOpen: boolean;
|
|
206
|
+
}>;
|
|
207
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { DateFormat, NumberFormat } from '../../utils';
|
|
2
|
+
export declare const gridColumnTypes: readonly ["string", "boolean", "number", "date", "datetime", "slot"];
|
|
3
|
+
export declare type GridColumnType = typeof gridColumnTypes[number];
|
|
4
|
+
export interface GridColumn {
|
|
5
|
+
name: string;
|
|
6
|
+
field?: string;
|
|
7
|
+
caption: string;
|
|
8
|
+
type: GridColumnType;
|
|
9
|
+
slotType?: Exclude<GridColumnType, 'slot'>;
|
|
10
|
+
format?: StringFormat | DateFormat | NumberFormat;
|
|
11
|
+
maxLength?: number;
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
filterable?: boolean;
|
|
14
|
+
sortable?: boolean;
|
|
15
|
+
editable?: boolean;
|
|
16
|
+
width?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface FilterMethod {
|
|
19
|
+
method: FilterMethodType;
|
|
20
|
+
icon: string;
|
|
21
|
+
description: string;
|
|
22
|
+
allowedTypes: GridColumnType[];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Checks if the provided object is of type GridColumn.
|
|
26
|
+
*
|
|
27
|
+
* @param objectToTest The object to validate.
|
|
28
|
+
* @returns True if the object is a GridColumn; false otherwise.
|
|
29
|
+
*/
|
|
30
|
+
export declare function isGridColumn(objectToTest: GridColumn): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Checks if the provided array is an array of objects of type GridColumn.
|
|
33
|
+
*
|
|
34
|
+
* @param arrayToTest The array to validate.
|
|
35
|
+
* @returns True if the array is a GridColumn array; false otherwise.
|
|
36
|
+
*/
|
|
37
|
+
export declare function isGridColumnArray(arrayToTest: GridColumn[]): boolean;
|
|
38
|
+
export declare const stringFormats: readonly ["ellipsis"];
|
|
39
|
+
export declare type StringFormat = typeof stringFormats[number];
|
|
40
|
+
export declare enum FilterOperation {
|
|
41
|
+
CONTAINS = 0,
|
|
42
|
+
NOT_CONTAINS = 1,
|
|
43
|
+
EQUAL = 2,
|
|
44
|
+
NOT_EQUAL = 3,
|
|
45
|
+
STARTS_WITH = 4,
|
|
46
|
+
ENDS_WITH = 5,
|
|
47
|
+
GREATER_THAN = 6,
|
|
48
|
+
LESS_THAN = 7,
|
|
49
|
+
EQUAL_OR_GREATER_THAN = 8,
|
|
50
|
+
EQUAL_OR_LESS_THAN = 9
|
|
51
|
+
}
|
|
52
|
+
export declare const filterMethodTypes: readonly ["equal", "notequal", "contains", "notcontains", "lessthan", "greaterthan", "startswith", "endswith", "equalorlessthan", "equalorgreaterthan"];
|
|
53
|
+
export declare type FilterMethodType = typeof filterMethodTypes[number];
|
|
54
|
+
export interface FilterArg {
|
|
55
|
+
filterOnColumn: string;
|
|
56
|
+
filterMethod?: FilterMethodType;
|
|
57
|
+
filterOperation: FilterOperation;
|
|
58
|
+
filterValue: string;
|
|
59
|
+
}
|
|
60
|
+
export interface SortArg {
|
|
61
|
+
sortOnColumn: string;
|
|
62
|
+
sortByAscending: boolean;
|
|
63
|
+
}
|
|
64
|
+
export interface FilterRequest {
|
|
65
|
+
filters: FilterArg[];
|
|
66
|
+
pageNumber: number;
|
|
67
|
+
pageSize: number;
|
|
68
|
+
sort: SortArg | null;
|
|
69
|
+
}
|
|
70
|
+
export interface FilterResponse<T> {
|
|
71
|
+
results: T[];
|
|
72
|
+
totalRecords: number;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Checks if the provided object is of type FilterRequest.
|
|
76
|
+
*
|
|
77
|
+
* @param objectToTest The object to validate.
|
|
78
|
+
* @returns True if the object is a FilterRequest; false otherwise.
|
|
79
|
+
*/
|
|
80
|
+
export declare function isFilterRequest(objectToTest: FilterRequest): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Checks if the provided object is of type FilterResponse.
|
|
83
|
+
*
|
|
84
|
+
* @param objectToTest The object to validate.
|
|
85
|
+
* @param resultValidator Function to validate the list of Ts inside a FilterResponse.
|
|
86
|
+
* @returns True if the object is a FilterResponse; false otherwise.
|
|
87
|
+
*/
|
|
88
|
+
export declare function isFilterResponse<T>(objectToTest: FilterResponse<T>, resultValidator: (resultToTest: T) => boolean): boolean;
|
|
89
|
+
export interface GridUpdateModel {
|
|
90
|
+
index: number;
|
|
91
|
+
record: Record<string, unknown>;
|
|
92
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { GridColumn } from '../types';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
+
columns: {
|
|
4
|
+
type: ArrayConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
}, {
|
|
8
|
+
props: {
|
|
9
|
+
columns: GridColumn[];
|
|
10
|
+
};
|
|
11
|
+
emit: (event: "update:columns", ...args: any[]) => void;
|
|
12
|
+
t: {
|
|
13
|
+
(key: string | number): string;
|
|
14
|
+
(key: string | number, plural: number, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
15
|
+
(key: string | number, defaultMsg: string, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
16
|
+
(key: string | number, list: unknown[], options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
17
|
+
(key: string | number, list: unknown[], plural: number): string;
|
|
18
|
+
(key: string | number, list: unknown[], defaultMsg: string): string;
|
|
19
|
+
(key: string | number, named: Record<string, unknown>, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
20
|
+
(key: string | number, named: Record<string, unknown>, plural: number): string;
|
|
21
|
+
(key: string | number, named: Record<string, unknown>, defaultMsg: string): string;
|
|
22
|
+
};
|
|
23
|
+
visible: import("vue").Ref<boolean>;
|
|
24
|
+
moveColumn: (columns: GridColumn[], oldIndex: number, newIndex: number) => void;
|
|
25
|
+
updateColumnVisibility: (target: EventTarget | null, column: GridColumn) => void;
|
|
26
|
+
changeColumnOrder: (columnIndex: number, direction: 'up' | 'down') => void;
|
|
27
|
+
ClUiButton: import("vue").DefineComponent<{
|
|
28
|
+
colour: {
|
|
29
|
+
type: null;
|
|
30
|
+
required: false;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
size: {
|
|
34
|
+
type: null;
|
|
35
|
+
required: false;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
loading: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
required: false;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
disabled: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
required: false;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
}, {
|
|
49
|
+
ClUiLoadingSpinner: any;
|
|
50
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
+
colour: {
|
|
52
|
+
type: null;
|
|
53
|
+
required: false;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
size: {
|
|
57
|
+
type: null;
|
|
58
|
+
required: false;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
loading: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
required: false;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
disabled: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
required: false;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
}>>, {
|
|
72
|
+
disabled: boolean;
|
|
73
|
+
colour: any;
|
|
74
|
+
size: any;
|
|
75
|
+
loading: boolean;
|
|
76
|
+
}>;
|
|
77
|
+
ClUiInput: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
|
|
78
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
79
|
+
'update:columns': null;
|
|
80
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
81
|
+
columns: {
|
|
82
|
+
type: ArrayConstructor;
|
|
83
|
+
required: true;
|
|
84
|
+
};
|
|
85
|
+
}>> & {
|
|
86
|
+
"onUpdate:columns"?: ((...args: any[]) => any) | undefined;
|
|
87
|
+
}, {}>;
|
|
88
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
username: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
group: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
image: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
isOpen: import("vue").Ref<boolean>;
|
|
19
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
username: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
required: false;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
group: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: false;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
image: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
required: false;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
}>>, {
|
|
36
|
+
group: string;
|
|
37
|
+
username: string;
|
|
38
|
+
image: string;
|
|
39
|
+
}>;
|
|
40
|
+
export default _sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as clUiHeaderMenu } from './cl-ui-header-menu.vue';
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
1
|
+
export * from './accordion';
|
|
2
|
+
export * from './app';
|
|
3
|
+
export * from './button';
|
|
4
|
+
export * from './card';
|
|
5
|
+
export * from './combo-box';
|
|
6
|
+
export * from './footer';
|
|
7
|
+
export * from './grid';
|
|
8
|
+
export * from './header';
|
|
9
|
+
export * from './input';
|
|
10
|
+
export * from './language-switcher';
|
|
11
|
+
export * from './loading-spinner';
|
|
12
|
+
export * from './login';
|
|
13
|
+
export * from './modal';
|
|
14
|
+
export * from './navigation';
|
|
15
|
+
export * from './notification';
|
|
16
|
+
export * from './tab';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
|
|
2
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const inputTypes: readonly ["button", "checkbox", "color", "date", "datetime", "email", "file", "number", "password", "radio", "range", "reset", "search", "submit", "tel", "text", "time", "url"];
|
|
2
|
+
export declare type InputType = typeof inputTypes[number];
|
|
3
|
+
export interface InputValidationState {
|
|
4
|
+
valid: boolean;
|
|
5
|
+
message: string;
|
|
6
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { CalendarType } from '../calendar';
|
|
2
|
+
import type { InputType } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Get whether the input is text-based.
|
|
5
|
+
*
|
|
6
|
+
* @param type The type.
|
|
7
|
+
* @returns True if the input is a text, false if not.
|
|
8
|
+
*/
|
|
9
|
+
export declare function isInputText(type: InputType): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Get whether the input is numeric.
|
|
12
|
+
*
|
|
13
|
+
* @param type The type of input.
|
|
14
|
+
* @returns True if the input is numeric, false if not.
|
|
15
|
+
*/
|
|
16
|
+
export declare function isInputNumeric(type: InputType): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Get whether the input is a date that is supported by the calendar component.
|
|
19
|
+
*
|
|
20
|
+
* @param type The input type.
|
|
21
|
+
* @returns True if supported, false if not.
|
|
22
|
+
*/
|
|
23
|
+
export declare function isInputCalendarSupportedDate(type: InputType): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Get whether the input is a date.
|
|
26
|
+
*
|
|
27
|
+
* @param type The type of input.
|
|
28
|
+
* @returns True if the input is a date, false if not.
|
|
29
|
+
*/
|
|
30
|
+
export declare function isInputDate(type: InputType): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Get whether the input is a button.
|
|
33
|
+
*
|
|
34
|
+
* @param type The type of input.
|
|
35
|
+
* @returns True if the input is a button, false if not.
|
|
36
|
+
*/
|
|
37
|
+
export declare function isInputButton(type: InputType | string): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Get the InputType as a CalendarType.
|
|
40
|
+
*
|
|
41
|
+
* @param type The InputType.
|
|
42
|
+
* @returns The CalendarType.
|
|
43
|
+
*/
|
|
44
|
+
export declare function getInputTypeAsCalendarType(type: InputType): CalendarType;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Language } from './types';
|
|
2
|
+
import { isLanguageLocaleFormat } from './types';
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
supportedLanguages: {
|
|
5
|
+
type: ArrayConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
disabled: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
required: false;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
props: {
|
|
15
|
+
supportedLanguages: Language[];
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
};
|
|
18
|
+
locale: import("vue").WritableComputedRef<string>;
|
|
19
|
+
localeToggleOpen: import("vue").Ref<boolean>;
|
|
20
|
+
selectedLanguage: import("vue").ComputedRef<Language | null>;
|
|
21
|
+
validLanguages: import("vue").ComputedRef<Language[]>;
|
|
22
|
+
toggleLocaleSwitcher: () => void;
|
|
23
|
+
isLanguageLocaleFormat: typeof isLanguageLocaleFormat;
|
|
24
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
supportedLanguages: {
|
|
26
|
+
type: ArrayConstructor;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
disabled: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
required: false;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
}>>, {
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
}>;
|
|
37
|
+
export default _sfc_main;
|
|
@@ -2,7 +2,6 @@ export interface Language {
|
|
|
2
2
|
name: string;
|
|
3
3
|
nativeName: string;
|
|
4
4
|
localeCode: string;
|
|
5
|
-
svgCode: string;
|
|
6
5
|
}
|
|
7
6
|
/**
|
|
8
7
|
* Checks if a given language object contains the correct format of locale code (en-GB for example. 2 lowercase a-z chars, followed by a hyphen, followed by 2 uppercase A-Z chars).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as clUiLoadingSpinner } from './cl-ui-loading-spinner.vue';
|