@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
package/dist/{src/components → components}/language-switcher/cl-ui-language-switcher.vue.d.ts
RENAMED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type { Language } from './types';
|
|
2
2
|
import { isLanguageLocaleFormat } from './types';
|
|
3
3
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
-
|
|
5
|
-
type: StringConstructor;
|
|
6
|
-
required: true;
|
|
7
|
-
};
|
|
8
|
-
supportedLocales: {
|
|
4
|
+
supportedLanguages: {
|
|
9
5
|
type: ArrayConstructor;
|
|
10
6
|
required: true;
|
|
11
7
|
};
|
|
@@ -16,28 +12,26 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
16
12
|
};
|
|
17
13
|
}, {
|
|
18
14
|
props: {
|
|
19
|
-
|
|
20
|
-
supportedLocales: Language[];
|
|
15
|
+
supportedLanguages: Language[];
|
|
21
16
|
disabled: boolean;
|
|
22
17
|
};
|
|
18
|
+
locale: import("vue").WritableComputedRef<string>;
|
|
23
19
|
localeToggleOpen: import("vue").Ref<boolean>;
|
|
24
20
|
selectedLanguage: import("vue").ComputedRef<Language | null>;
|
|
25
21
|
validLanguages: import("vue").ComputedRef<Language[]>;
|
|
26
22
|
toggleLocaleSwitcher: () => void;
|
|
27
23
|
isLanguageLocaleFormat: typeof isLanguageLocaleFormat;
|
|
28
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
disabled
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
"onUpdate:current-locale"?: ((...args: any[]) => any) | undefined;
|
|
40
|
-
}, {
|
|
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
|
+
}>>, {
|
|
41
35
|
disabled: boolean;
|
|
42
36
|
}>;
|
|
43
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).
|
|
File without changes
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { InputValidationState } from '..';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
+
errors: {
|
|
4
|
+
type: ArrayConstructor;
|
|
5
|
+
required: false;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
loading: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
required: false;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
emit: ((event: "login", ...args: any[]) => void) & ((event: "update:errors", ...args: any[]) => void);
|
|
15
|
+
t: {
|
|
16
|
+
(key: string | number): string;
|
|
17
|
+
(key: string | number, plural: number, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
18
|
+
(key: string | number, defaultMsg: string, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
19
|
+
(key: string | number, list: unknown[], options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
20
|
+
(key: string | number, list: unknown[], plural: number): string;
|
|
21
|
+
(key: string | number, list: unknown[], defaultMsg: string): string;
|
|
22
|
+
(key: string | number, named: Record<string, unknown>, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
23
|
+
(key: string | number, named: Record<string, unknown>, plural: number): string;
|
|
24
|
+
(key: string | number, named: Record<string, unknown>, defaultMsg: string): string;
|
|
25
|
+
};
|
|
26
|
+
username: import("vue").Ref<string>;
|
|
27
|
+
password: import("vue").Ref<string>;
|
|
28
|
+
passwordFieldType: import("vue").Ref<"text" | "password">;
|
|
29
|
+
usernameValid: import("vue").Ref<boolean | undefined>;
|
|
30
|
+
login: () => void;
|
|
31
|
+
clearErrors: () => void;
|
|
32
|
+
emptyIsInvalidValidation: (_: string, value: string | number | boolean | Date | null | undefined) => InputValidationState;
|
|
33
|
+
onUsernameValidated: (valid: boolean, _: string | number | boolean | Date | null) => void;
|
|
34
|
+
ClUiButton: import("vue").DefineComponent<{
|
|
35
|
+
colour: {
|
|
36
|
+
type: null;
|
|
37
|
+
required: false;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
size: {
|
|
41
|
+
type: null;
|
|
42
|
+
required: false;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
loading: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
required: false;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
disabled: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
required: false;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
}, {
|
|
56
|
+
ClUiLoadingSpinner: any;
|
|
57
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
+
colour: {
|
|
59
|
+
type: null;
|
|
60
|
+
required: false;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
size: {
|
|
64
|
+
type: null;
|
|
65
|
+
required: false;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
loading: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
required: false;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
disabled: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
required: false;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
}>>, {
|
|
79
|
+
disabled: boolean;
|
|
80
|
+
colour: any;
|
|
81
|
+
size: any;
|
|
82
|
+
loading: boolean;
|
|
83
|
+
}>;
|
|
84
|
+
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>, {}>;
|
|
85
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
86
|
+
login: null;
|
|
87
|
+
'update:errors': null;
|
|
88
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
89
|
+
errors: {
|
|
90
|
+
type: ArrayConstructor;
|
|
91
|
+
required: false;
|
|
92
|
+
default: () => never[];
|
|
93
|
+
};
|
|
94
|
+
loading: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
required: false;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
}>> & {
|
|
100
|
+
onLogin?: ((...args: any[]) => any) | undefined;
|
|
101
|
+
"onUpdate:errors"?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
loading: boolean;
|
|
104
|
+
errors: unknown[];
|
|
105
|
+
}>;
|
|
106
|
+
export default _sfc_main;
|
|
File without changes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ModalColour, ModalSize } from './types';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
+
headerColour: {
|
|
4
|
+
type: null;
|
|
5
|
+
required: false;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
preventClose: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
required: false;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
size: {
|
|
14
|
+
type: null;
|
|
15
|
+
required: false;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}, {
|
|
19
|
+
props: {
|
|
20
|
+
headerColour: ModalColour;
|
|
21
|
+
preventClose: boolean;
|
|
22
|
+
size: ModalSize;
|
|
23
|
+
};
|
|
24
|
+
visible: import("vue").Ref<boolean>;
|
|
25
|
+
open: () => void;
|
|
26
|
+
close: () => void;
|
|
27
|
+
closeOnKeyPress: (event: KeyboardEvent) => void;
|
|
28
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
headerColour: {
|
|
30
|
+
type: null;
|
|
31
|
+
required: false;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
preventClose: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
required: false;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
size: {
|
|
40
|
+
type: null;
|
|
41
|
+
required: false;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
}>>, {
|
|
45
|
+
size: any;
|
|
46
|
+
headerColour: any;
|
|
47
|
+
preventClose: boolean;
|
|
48
|
+
}>;
|
|
49
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
open: import("vue").ComputedRef<boolean>;
|
|
3
|
+
groups: import("vue").Ref<{
|
|
4
|
+
id: number;
|
|
5
|
+
open: boolean;
|
|
6
|
+
}[]>;
|
|
7
|
+
pinned: import("vue").Ref<boolean>;
|
|
8
|
+
groupIsOpen: (id: number) => boolean;
|
|
9
|
+
toggleOpen: (id: number) => void;
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
11
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
open: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
open: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}>>, {}>;
|
|
12
|
+
export default _sfc_main;
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
-
|
|
2
|
+
icon: {
|
|
3
3
|
type: StringConstructor;
|
|
4
|
-
required:
|
|
5
|
-
default: string;
|
|
4
|
+
required: true;
|
|
6
5
|
};
|
|
7
|
-
|
|
6
|
+
open: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
icon: {
|
|
8
12
|
type: StringConstructor;
|
|
9
|
-
required:
|
|
10
|
-
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
open: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
required: true;
|
|
11
18
|
};
|
|
12
|
-
}
|
|
13
|
-
leftText?: unknown;
|
|
14
|
-
rightText?: unknown;
|
|
15
|
-
} & {
|
|
16
|
-
leftText: string;
|
|
17
|
-
rightText: string;
|
|
18
|
-
} & {}>, {
|
|
19
|
-
leftText: string;
|
|
20
|
-
rightText: string;
|
|
21
|
-
}>;
|
|
19
|
+
}>>, {}>;
|
|
22
20
|
export default _sfc_main;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as clUiNavigation } from './cl-ui-navigation.vue';
|
|
2
|
+
export { default as clUiNavigationIcon } from './icon/cl-ui-navigation-icon.vue';
|
|
3
|
+
export { default as clUiNavigationGroup } from './group/cl-ui-navigation-group.vue';
|
|
4
|
+
export { default as clUiNavigationSection } from './section/cl-ui-navigation-section.vue';
|
|
5
|
+
export { default as clUiNavigationItem } from './item/cl-ui-navigation-item.vue';
|
|
@@ -18,13 +18,18 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
18
18
|
duration: number;
|
|
19
19
|
}[]>;
|
|
20
20
|
removeNotification: typeof removeNotification;
|
|
21
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
22
|
-
container
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
container: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
required: false;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
position: {
|
|
28
|
+
type: null;
|
|
29
|
+
required: false;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
}>>, {
|
|
28
33
|
container: string;
|
|
29
34
|
position: any;
|
|
30
35
|
}>;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { NumberFormat } from '../../utils';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
+
value: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
min: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
max: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
step: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
enforceStep: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
required: false;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
disabled: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
required: false;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
showNumericInput: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
required: false;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
props: {
|
|
37
|
+
value: number;
|
|
38
|
+
min: number;
|
|
39
|
+
max: number;
|
|
40
|
+
step: number;
|
|
41
|
+
enforceStep: boolean;
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
showNumericInput: boolean;
|
|
44
|
+
};
|
|
45
|
+
emit: (event: "update:value", ...args: any[]) => void;
|
|
46
|
+
n: {
|
|
47
|
+
(value: number): string;
|
|
48
|
+
(value: number, key: string): string;
|
|
49
|
+
(value: number, key: string, locale: string): string;
|
|
50
|
+
(value: number, options: import("vue-i18n").NumberOptions): string;
|
|
51
|
+
};
|
|
52
|
+
t: {
|
|
53
|
+
(key: string | number): string;
|
|
54
|
+
(key: string | number, plural: number, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
55
|
+
(key: string | number, defaultMsg: string, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
56
|
+
(key: string | number, list: unknown[], options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
57
|
+
(key: string | number, list: unknown[], plural: number): string;
|
|
58
|
+
(key: string | number, list: unknown[], defaultMsg: string): string;
|
|
59
|
+
(key: string | number, named: Record<string, unknown>, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
60
|
+
(key: string | number, named: Record<string, unknown>, plural: number): string;
|
|
61
|
+
(key: string | number, named: Record<string, unknown>, defaultMsg: string): string;
|
|
62
|
+
};
|
|
63
|
+
debounce: (event: Function, ...eventArgs: unknown[]) => void;
|
|
64
|
+
numericInputValue: import("vue").Ref<number>;
|
|
65
|
+
currentValue: import("vue").WritableComputedRef<number>;
|
|
66
|
+
colour: import("vue").ComputedRef<string>;
|
|
67
|
+
percentage: import("vue").ComputedRef<number>;
|
|
68
|
+
validProps: import("vue").ComputedRef<boolean>;
|
|
69
|
+
updateCurrentValue: (target: EventTarget | null, forceUpdate: Function) => void;
|
|
70
|
+
NumberFormat: typeof NumberFormat;
|
|
71
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
72
|
+
'update:value': null;
|
|
73
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
74
|
+
value: {
|
|
75
|
+
type: NumberConstructor;
|
|
76
|
+
required: true;
|
|
77
|
+
};
|
|
78
|
+
min: {
|
|
79
|
+
type: NumberConstructor;
|
|
80
|
+
required: true;
|
|
81
|
+
};
|
|
82
|
+
max: {
|
|
83
|
+
type: NumberConstructor;
|
|
84
|
+
required: true;
|
|
85
|
+
};
|
|
86
|
+
step: {
|
|
87
|
+
type: NumberConstructor;
|
|
88
|
+
required: false;
|
|
89
|
+
default: number;
|
|
90
|
+
};
|
|
91
|
+
enforceStep: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
required: false;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
disabled: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
required: false;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
showNumericInput: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
required: false;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
106
|
+
}>> & {
|
|
107
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
disabled: boolean;
|
|
110
|
+
step: number;
|
|
111
|
+
enforceStep: boolean;
|
|
112
|
+
showNumericInput: boolean;
|
|
113
|
+
}>;
|
|
114
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { TabColour, TabScroll } from './types';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
+
currentTab: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
required: false;
|
|
6
|
+
default: number;
|
|
7
|
+
};
|
|
8
|
+
disabled: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
required: false;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
colour: {
|
|
14
|
+
type: null;
|
|
15
|
+
required: false;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}, {
|
|
19
|
+
props: {
|
|
20
|
+
currentTab: number;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
colour: TabColour;
|
|
23
|
+
};
|
|
24
|
+
headerContainer: import("vue").Ref<HTMLDivElement | undefined>;
|
|
25
|
+
showLeftArrow: import("vue").Ref<boolean>;
|
|
26
|
+
showRightArrow: import("vue").Ref<boolean>;
|
|
27
|
+
isTabOpen: (tabId: number) => boolean;
|
|
28
|
+
onScroll: () => void;
|
|
29
|
+
initialiseScroll: () => void;
|
|
30
|
+
scrollOnClick: (direction: TabScroll) => void;
|
|
31
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
+
currentTab: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
disabled: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
required: false;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
colour: {
|
|
43
|
+
type: null;
|
|
44
|
+
required: false;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
}>>, {
|
|
48
|
+
disabled: boolean;
|
|
49
|
+
colour: any;
|
|
50
|
+
currentTab: number;
|
|
51
|
+
}>;
|
|
52
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { TabColour } from '../types';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
+
id: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
currentTab: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
disabled: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
required: false;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
colour: {
|
|
17
|
+
type: null;
|
|
18
|
+
required: false;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
props: {
|
|
23
|
+
id: number;
|
|
24
|
+
currentTab: number;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
colour: TabColour;
|
|
27
|
+
};
|
|
28
|
+
emit: (event: "update:currentTab", ...args: any[]) => void;
|
|
29
|
+
tabbed: import("vue").Ref<boolean | undefined>;
|
|
30
|
+
hovered: import("vue").Ref<boolean | undefined>;
|
|
31
|
+
open: import("vue").ComputedRef<boolean>;
|
|
32
|
+
tabClicked: () => void;
|
|
33
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
'update:currentTab': null;
|
|
35
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
id: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
currentTab: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
disabled: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
required: false;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
colour: {
|
|
50
|
+
type: null;
|
|
51
|
+
required: false;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
}>> & {
|
|
55
|
+
"onUpdate:currentTab"?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
disabled: boolean;
|
|
58
|
+
colour: any;
|
|
59
|
+
}>;
|
|
60
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const tabColours: readonly ["default", "primary", "secondary", "danger", "blue"];
|
|
2
|
+
export declare type TabColour = typeof tabColours[number];
|
|
3
|
+
export declare const tabScroll: readonly ["left", "right"];
|
|
4
|
+
export declare type TabScroll = typeof tabScroll[number];
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
2
|
declare const install: Plugin;
|
|
3
|
-
export declare const i18n: import("vue-i18n").I18n<unknown, import("vue-i18n").IntlDateTimeFormats, import("vue-i18n").IntlNumberFormats, true>;
|
|
4
3
|
export * from './components';
|
|
5
4
|
export * from './composables';
|
|
6
5
|
export * from './utils';
|