@citruslime/ui 2.0.0-beta.7 → 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/README.md +5 -4
- package/dist/citrus-lime-ui.es.js +2612 -2214
- package/dist/citrus-lime-ui.umd.js +2 -1
- 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/{src/components → components}/accordion/types.d.ts +0 -0
- package/dist/{src/components → components}/app/cl-ui-app.vue.d.ts +19 -12
- package/dist/{src/components → components}/app/index.d.ts +0 -0
- package/dist/{src/components → components}/button/cl-ui-button.vue.d.ts +23 -12
- package/dist/{src/components → components}/button/index.d.ts +0 -0
- package/dist/{src/components → components}/button/types.d.ts +0 -0
- package/dist/{src/components → components}/calendar/cl-ui-calendar.vue.d.ts +0 -0
- package/dist/{src/components → components}/calendar/index.d.ts +0 -0
- package/dist/{src/components → components}/calendar/types.d.ts +1 -1
- package/dist/{src/components → components}/calendar/utils.d.ts +15 -0
- package/dist/{src/components → components}/card/cl-ui-card.vue.d.ts +4 -23
- package/dist/{src/components → components}/card/index.d.ts +1 -0
- package/dist/{src/components → components}/card/types.d.ts +0 -0
- package/dist/{src/components → components}/combo-box/cl-ui-combo-box.vue.d.ts +270 -211
- package/dist/{src/components → components}/combo-box/index.d.ts +0 -0
- package/dist/{src/components → components}/combo-box/search-container/cl-ui-combo-box-search.vue.d.ts +109 -63
- package/dist/{src/components → components}/combo-box/search-container/header/cl-ui-combo-box-header.vue.d.ts +17 -9
- package/dist/{src/components → components}/combo-box/search-container/selectable/cl-ui-combo-box-selectable.vue.d.ts +28 -15
- package/dist/{src/components → components}/combo-box/types.d.ts +0 -19
- package/dist/{src/components → components}/footer/index.d.ts +0 -0
- package/dist/{src/components → components}/grid/cell/cl-ui-grid-cell.vue.d.ts +16 -18
- package/dist/{src/components → components}/grid/cl-ui-grid.vue.d.ts +226 -220
- package/dist/components/grid/filter/cl-ui-grid-filter.vue.d.ts +72 -0
- package/dist/{src/utils → components/grid/filter}/filter-methods.d.ts +1 -1
- package/dist/components/grid/footer/cl-ui-grid-footer.vue.d.ts +63 -0
- package/dist/{src/components → components}/grid/header/cl-ui-grid-header.vue.d.ts +96 -68
- package/dist/{src/components → components}/grid/index.d.ts +0 -0
- package/dist/{src/components → components}/grid/types.d.ts +0 -47
- package/dist/components/grid/view-manager/cl-ui-grid-view-manager.vue.d.ts +88 -0
- package/dist/{src/components → components}/header/index.d.ts +0 -0
- package/dist/components/header/menu/cl-ui-header-menu.vue.d.ts +40 -0
- package/dist/{src/components → components}/header/menu/index.d.ts +0 -1
- package/dist/{src/components → components}/index.d.ts +2 -2
- 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/{src/components → components}/language-switcher/cl-ui-language-switcher.vue.d.ts +14 -20
- package/dist/{src/components → components}/language-switcher/index.d.ts +1 -0
- package/dist/{src/components → components}/language-switcher/types.d.ts +0 -1
- package/dist/{src/components → components}/loading-spinner/index.d.ts +0 -0
- package/dist/components/login/cl-ui-login.vue.d.ts +106 -0
- package/dist/{src/components → components}/login/index.d.ts +0 -0
- package/dist/components/login/types.d.ts +4 -0
- package/dist/components/modal/cl-ui-modal.vue.d.ts +49 -0
- package/dist/{src/components → components}/modal/index.d.ts +1 -0
- package/dist/{src/components → components}/modal/types.d.ts +2 -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/{src/components/footer/cl-ui-footer.vue.d.ts → components/navigation/icon/cl-ui-navigation-icon.vue.d.ts} +14 -16
- package/dist/components/navigation/index.d.ts +5 -0
- package/dist/{src/components → components}/notification/cl-ui-notification.vue.d.ts +12 -7
- package/dist/{src/components → components}/notification/index.d.ts +0 -0
- package/dist/{src/components → components}/notification/types.d.ts +0 -0
- package/dist/components/slider/cl-ui-slider.vue.d.ts +114 -0
- package/dist/{src/components → components}/slider/index.d.ts +0 -1
- 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/{src/composables → composables}/index.d.ts +0 -0
- package/dist/{src/composables → composables}/notification.d.ts +0 -0
- package/dist/{src/main.d.ts → main.d.ts} +0 -1
- 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 -0
- package/dist/utils/validation.d.ts +37 -0
- package/package.json +17 -14
- package/dist/.eslintrc.js +0 -455
- package/dist/.stylelintrc.js +0 -119
- package/dist/src/components/accordion/cl-ui-accordion.vue.d.ts +0 -47
- package/dist/src/components/accordion/index.d.ts +0 -2
- package/dist/src/components/grid/filter/cl-ui-grid-filter.vue.d.ts +0 -68
- package/dist/src/components/grid/footer/cl-ui-grid-footer.vue.d.ts +0 -62
- package/dist/src/components/grid/view-manager/cl-ui-grid-view-manager.vue.d.ts +0 -71
- package/dist/src/components/header/menu/cl-ui-header-menu.vue.d.ts +0 -16
- package/dist/src/components/header/menu/types.d.ts +0 -13
- package/dist/src/components/login/cl-ui-login.vue.d.ts +0 -170
- package/dist/src/components/login/types.d.ts +0 -11
- package/dist/src/components/modal/cl-ui-modal.vue.d.ts +0 -107
- package/dist/src/components/navigation/cl-ui-navigation.vue.d.ts +0 -669
- package/dist/src/components/navigation/index.d.ts +0 -2
- package/dist/src/components/navigation/types.d.ts +0 -18
- package/dist/src/components/slider/cl-ui-slider.vue.d.ts +0 -97
- package/dist/src/components/slider/types.d.ts +0 -3
- package/dist/src/utils/copy.d.ts +0 -8
- package/dist/src/utils/debouncer.d.ts +0 -13
- package/dist/src/utils/extensions/string/index.d.ts +0 -2
- package/dist/src/utils/extensions/string/utils.d.ts +0 -83
- package/dist/src/utils/i18n/datetime-formats.d.ts +0 -2
- package/dist/src/utils/i18n/index.d.ts +0 -3
- package/dist/src/utils/i18n/number-formats.d.ts +0 -2
- package/dist/src/utils/i18n/types.d.ts +0 -15
- package/dist/src/utils/id.d.ts +0 -6
- package/dist/src/utils/index.d.ts +0 -8
- package/dist/src/utils/name-of.d.ts +0 -7
- package/dist/src/utils/sort.d.ts +0 -9
- package/dist/src/utils/url-params.d.ts +0 -8
- package/dist/theme.js +0 -121
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { FilterOperation } from '../types';
|
|
2
|
+
import type { FilterRequest, GridColumn, FilterMethod, FilterMethodType } from '../types';
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
request: {
|
|
5
|
+
type: null;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
column: {
|
|
9
|
+
type: null;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
firstHalf: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
props: {
|
|
19
|
+
request: FilterRequest;
|
|
20
|
+
column: GridColumn;
|
|
21
|
+
firstHalf: boolean;
|
|
22
|
+
};
|
|
23
|
+
emit: (event: "update:request", ...args: any[]) => void;
|
|
24
|
+
locale: import("vue").WritableComputedRef<string>;
|
|
25
|
+
t: {
|
|
26
|
+
(key: string | number): string;
|
|
27
|
+
(key: string | number, plural: number, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
28
|
+
(key: string | number, defaultMsg: string, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
29
|
+
(key: string | number, list: unknown[], options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
30
|
+
(key: string | number, list: unknown[], plural: number): string;
|
|
31
|
+
(key: string | number, list: unknown[], defaultMsg: string): string;
|
|
32
|
+
(key: string | number, named: Record<string, unknown>, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
33
|
+
(key: string | number, named: Record<string, unknown>, plural: number): string;
|
|
34
|
+
(key: string | number, named: Record<string, unknown>, defaultMsg: string): string;
|
|
35
|
+
};
|
|
36
|
+
debounce: (event: Function, ...eventArgs: unknown[]) => void;
|
|
37
|
+
allowedFilterMethods: import("vue").ComputedRef<FilterMethod[]>;
|
|
38
|
+
currentFilterMethod: import("vue").ComputedRef<FilterMethod | undefined>;
|
|
39
|
+
currentFilter: import("vue").ComputedRef<string>;
|
|
40
|
+
currentDateFilter: import("vue").ComputedRef<Date | null>;
|
|
41
|
+
filterInput: import("vue").Ref<string>;
|
|
42
|
+
decimalSeparator: import("vue").ComputedRef<string>;
|
|
43
|
+
columnInputType: import("vue").ComputedRef<"number" | "search" | "text" | "datetime" | "date" | "time" | "button" | "checkbox" | "color" | "email" | "file" | "password" | "radio" | "range" | "reset" | "submit" | "tel" | "url">;
|
|
44
|
+
getDefaultFilterOperation: () => FilterOperation;
|
|
45
|
+
getAllowedMethods: () => FilterMethod[];
|
|
46
|
+
setFilterMethod: (filterMethod: FilterMethodType) => void;
|
|
47
|
+
setFilter: (target: EventTarget | null, defaultValue?: string | undefined) => void;
|
|
48
|
+
setNumberFilter: (target: EventTarget | null) => void;
|
|
49
|
+
setDateFilter: (value: Date | null) => void;
|
|
50
|
+
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>, {}>;
|
|
51
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
52
|
+
'update:request': null;
|
|
53
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
54
|
+
request: {
|
|
55
|
+
type: null;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
column: {
|
|
59
|
+
type: null;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
firstHalf: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
required: false;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
}>> & {
|
|
68
|
+
"onUpdate:request"?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
firstHalf: boolean;
|
|
71
|
+
}>;
|
|
72
|
+
export default _sfc_main;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FilterMethod } from '../
|
|
1
|
+
import type { FilterMethod } from '../types';
|
|
2
2
|
export declare const defaultFilterMethod: FilterMethod;
|
|
3
3
|
export declare const defaultStringFilterMethod: FilterMethod;
|
|
4
4
|
export declare const defaultDateTimeFilterMethod: FilterMethod;
|
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GridColumn
|
|
1
|
+
import type { GridColumn } from '../types';
|
|
2
2
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
3
|
columns: {
|
|
4
4
|
type: ArrayConstructor;
|
|
@@ -17,30 +17,25 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
17
17
|
required: false;
|
|
18
18
|
default: boolean;
|
|
19
19
|
};
|
|
20
|
-
localisations: {
|
|
21
|
-
type: ObjectConstructor;
|
|
22
|
-
required: false;
|
|
23
|
-
default: () => {
|
|
24
|
-
editData: string;
|
|
25
|
-
finishEditing: string;
|
|
26
|
-
clearFilters: string;
|
|
27
|
-
manageView: string;
|
|
28
|
-
modifyFilters: string;
|
|
29
|
-
column: string;
|
|
30
|
-
visible: string;
|
|
31
|
-
order: string;
|
|
32
|
-
hidden: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
20
|
}, {
|
|
36
21
|
props: {
|
|
37
22
|
columns: GridColumn[];
|
|
38
23
|
editMode: boolean;
|
|
39
24
|
editEnabled: boolean;
|
|
40
25
|
filterPanelOpen: boolean;
|
|
41
|
-
localisations: GridHeaderLocalisations & GridViewManagerLocalisations;
|
|
42
26
|
};
|
|
43
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
|
+
};
|
|
44
39
|
currentColumns: import("vue").WritableComputedRef<GridColumn[]>;
|
|
45
40
|
ClUiButton: import("vue").DefineComponent<{
|
|
46
41
|
colour: {
|
|
@@ -65,41 +60,58 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
65
60
|
};
|
|
66
61
|
}, {
|
|
67
62
|
ClUiLoadingSpinner: any;
|
|
68
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
69
|
-
colour
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
+
}>>, {
|
|
75
85
|
disabled: boolean;
|
|
76
|
-
size: any;
|
|
77
86
|
colour: any;
|
|
78
|
-
} & {}>, {
|
|
79
|
-
loading: boolean;
|
|
80
|
-
disabled: boolean;
|
|
81
87
|
size: any;
|
|
82
|
-
|
|
88
|
+
loading: boolean;
|
|
83
89
|
}>;
|
|
84
90
|
ClUiGridViewManager: import("vue").DefineComponent<{
|
|
85
|
-
localisations: {
|
|
86
|
-
type: null;
|
|
87
|
-
required: true;
|
|
88
|
-
};
|
|
89
91
|
columns: {
|
|
90
92
|
type: ArrayConstructor;
|
|
91
93
|
required: true;
|
|
92
94
|
};
|
|
93
95
|
}, {
|
|
94
96
|
props: {
|
|
95
|
-
localisations: GridViewManagerLocalisations;
|
|
96
97
|
columns: GridColumn[];
|
|
97
98
|
};
|
|
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
|
+
};
|
|
99
111
|
visible: import("vue").Ref<boolean>;
|
|
100
112
|
moveColumn: (columns: GridColumn[], oldIndex: number, newIndex: number) => void;
|
|
101
113
|
updateColumnVisibility: (target: EventTarget | null, column: GridColumn) => void;
|
|
102
|
-
changeColumnOrder: (columnIndex: number, direction: "
|
|
114
|
+
changeColumnOrder: (columnIndex: number, direction: "up" | "down") => void;
|
|
103
115
|
ClUiButton: import("vue").DefineComponent<{
|
|
104
116
|
colour: {
|
|
105
117
|
type: null;
|
|
@@ -123,31 +135,42 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
123
135
|
};
|
|
124
136
|
}, {
|
|
125
137
|
ClUiLoadingSpinner: any;
|
|
126
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
127
|
-
colour
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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
|
+
}>>, {
|
|
133
160
|
disabled: boolean;
|
|
134
|
-
size: any;
|
|
135
161
|
colour: any;
|
|
136
|
-
} & {}>, {
|
|
137
|
-
loading: boolean;
|
|
138
|
-
disabled: boolean;
|
|
139
162
|
size: any;
|
|
140
|
-
|
|
163
|
+
loading: boolean;
|
|
141
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>, {}>;
|
|
142
166
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
143
167
|
'update:columns': null;
|
|
144
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
} & {}> & {
|
|
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
|
+
}>> & {
|
|
151
174
|
"onUpdate:columns"?: ((...args: any[]) => any) | undefined;
|
|
152
175
|
}, {}>;
|
|
153
176
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -155,25 +178,30 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
155
178
|
'update:columns': null;
|
|
156
179
|
'update:edit-mode': null;
|
|
157
180
|
'update:filter-panel-open': null;
|
|
158
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
159
|
-
columns
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
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
|
+
}>> & {
|
|
171
200
|
"onUpdate:columns"?: ((...args: any[]) => any) | undefined;
|
|
172
201
|
"onReset-filters"?: ((...args: any[]) => any) | undefined;
|
|
173
202
|
"onUpdate:edit-mode"?: ((...args: any[]) => any) | undefined;
|
|
174
203
|
"onUpdate:filter-panel-open"?: ((...args: any[]) => any) | undefined;
|
|
175
204
|
}, {
|
|
176
|
-
localisations: Record<string, any>;
|
|
177
205
|
filterPanelOpen: boolean;
|
|
178
206
|
}>;
|
|
179
207
|
export default _sfc_main;
|
|
File without changes
|
|
@@ -37,53 +37,6 @@ export declare function isGridColumn(objectToTest: GridColumn): boolean;
|
|
|
37
37
|
export declare function isGridColumnArray(arrayToTest: GridColumn[]): boolean;
|
|
38
38
|
export declare const stringFormats: readonly ["ellipsis"];
|
|
39
39
|
export declare type StringFormat = typeof stringFormats[number];
|
|
40
|
-
export interface GridLocalisations {
|
|
41
|
-
confirmFilters: string;
|
|
42
|
-
manageView: string;
|
|
43
|
-
noData: string;
|
|
44
|
-
noDataFiltersPresent: string;
|
|
45
|
-
field: string;
|
|
46
|
-
filter: string;
|
|
47
|
-
sortBy: string;
|
|
48
|
-
gridTools: string;
|
|
49
|
-
}
|
|
50
|
-
export interface GridHeaderLocalisations {
|
|
51
|
-
editData: string;
|
|
52
|
-
finishEditing: string;
|
|
53
|
-
clearFilters: string;
|
|
54
|
-
modifyFilters: string;
|
|
55
|
-
}
|
|
56
|
-
export interface GridFilterLocalisations {
|
|
57
|
-
equal: string;
|
|
58
|
-
notequal: string;
|
|
59
|
-
contains: string;
|
|
60
|
-
notcontains: string;
|
|
61
|
-
startswith: string;
|
|
62
|
-
endswith: string;
|
|
63
|
-
lessthan: string;
|
|
64
|
-
greaterthan: string;
|
|
65
|
-
equalorlessthan: string;
|
|
66
|
-
equalorgreaterthan: string;
|
|
67
|
-
currentMethod: string;
|
|
68
|
-
availableMethods: string;
|
|
69
|
-
true: string;
|
|
70
|
-
false: string;
|
|
71
|
-
selectDate: string;
|
|
72
|
-
selectDateTime: string;
|
|
73
|
-
}
|
|
74
|
-
export interface GridFooterLocalisations {
|
|
75
|
-
page: string;
|
|
76
|
-
pageSize: string;
|
|
77
|
-
totalRecords: string;
|
|
78
|
-
jumpToPage: string;
|
|
79
|
-
}
|
|
80
|
-
export interface GridViewManagerLocalisations {
|
|
81
|
-
manageView: string;
|
|
82
|
-
column: string;
|
|
83
|
-
visible: string;
|
|
84
|
-
order: string;
|
|
85
|
-
hidden: string;
|
|
86
|
-
}
|
|
87
40
|
export declare enum FilterOperation {
|
|
88
41
|
CONTAINS = 0,
|
|
89
42
|
NOT_CONTAINS = 1,
|
|
@@ -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;
|
|
File without changes
|
|
@@ -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;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export * from './accordion';
|
|
2
2
|
export * from './app';
|
|
3
3
|
export * from './button';
|
|
4
|
-
export * from './calendar';
|
|
5
4
|
export * from './card';
|
|
6
5
|
export * from './combo-box';
|
|
7
6
|
export * from './footer';
|
|
8
7
|
export * from './grid';
|
|
9
8
|
export * from './header';
|
|
9
|
+
export * from './input';
|
|
10
10
|
export * from './language-switcher';
|
|
11
11
|
export * from './loading-spinner';
|
|
12
12
|
export * from './login';
|
|
13
13
|
export * from './modal';
|
|
14
14
|
export * from './navigation';
|
|
15
15
|
export * from './notification';
|
|
16
|
-
export * from './
|
|
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;
|