@citruslime/ui 2.0.0-beta.9 → 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 +2378 -1736
- 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 +22 -11
- 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 +12 -7
- package/dist/{src/components → components}/card/index.d.ts +0 -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 +240 -163
- 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 +92 -46
- package/dist/{src/components → components}/combo-box/search-container/header/cl-ui-combo-box-header.vue.d.ts +18 -10
- package/dist/{src/components → components}/combo-box/search-container/selectable/cl-ui-combo-box-selectable.vue.d.ts +27 -14
- package/dist/{src/components → components}/combo-box/types.d.ts +0 -0
- 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 +18 -11
- package/dist/{src/components → components}/grid/cl-ui-grid.vue.d.ts +165 -93
- package/dist/{src/components → components}/grid/filter/cl-ui-grid-filter.vue.d.ts +19 -11
- package/dist/{src/utils → components/grid/filter}/filter-methods.d.ts +1 -1
- package/dist/{src/components → components}/grid/footer/cl-ui-grid-footer.vue.d.ts +16 -10
- package/dist/{src/components → components}/grid/header/cl-ui-grid-header.vue.d.ts +70 -38
- package/dist/{src/components → components}/grid/index.d.ts +0 -0
- package/dist/{src/components → components}/grid/types.d.ts +0 -0
- package/dist/{src/components → components}/grid/view-manager/cl-ui-grid-view-manager.vue.d.ts +29 -16
- 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 +11 -7
- package/dist/{src/components → components}/language-switcher/index.d.ts +0 -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/{src/components → components}/login/cl-ui-login.vue.d.ts +39 -25
- package/dist/{src/components → components}/login/index.d.ts +0 -0
- package/dist/{src/components → components}/login/types.d.ts +0 -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/components/navigation/icon/cl-ui-navigation-icon.vue.d.ts +20 -0
- 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/{src/components → components}/slider/cl-ui-slider.vue.d.ts +43 -16
- package/dist/{src/components → components}/slider/index.d.ts +0 -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/{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 -0
- package/dist/style.css +1 -1
- package/dist/{src/utils → utils}/i18n/config.d.ts +0 -0
- package/dist/{src/utils → utils}/i18n/defaults.d.ts +0 -0
- package/dist/{src/utils → utils}/i18n/index.d.ts +0 -0
- package/dist/{src/utils → utils}/i18n/types.d.ts +5 -2
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/validation.d.ts +37 -0
- package/package.json +17 -15
- package/dist/.eslintrc.js +0 -456
- 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/header/menu/cl-ui-header-menu.vue.d.ts +0 -16
- package/dist/src/components/header/menu/types.d.ts +0 -5
- 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/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/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
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Component } from 'vue';
|
|
2
|
-
export interface NavigationGroup {
|
|
3
|
-
name: string;
|
|
4
|
-
caption: string;
|
|
5
|
-
icon: string;
|
|
6
|
-
sections: NavigationSection[];
|
|
7
|
-
}
|
|
8
|
-
export interface NavigationSection {
|
|
9
|
-
name: string;
|
|
10
|
-
caption: string;
|
|
11
|
-
records: NavigationRecord[];
|
|
12
|
-
}
|
|
13
|
-
export interface NavigationRecord {
|
|
14
|
-
name: string;
|
|
15
|
-
caption: string;
|
|
16
|
-
link: string;
|
|
17
|
-
component?: Component;
|
|
18
|
-
}
|
package/dist/src/utils/copy.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Ref } from 'vue';
|
|
2
|
-
export interface Debouncer {
|
|
3
|
-
debouncer: Ref<number | null>;
|
|
4
|
-
timeout: Ref<number>;
|
|
5
|
-
debounce(event: Function, eventArgs: unknown[]): void;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Composable for creating a debouncer.
|
|
9
|
-
*
|
|
10
|
-
* @param timeout The timeout, in milliseconds, to use when debouncing.
|
|
11
|
-
* @returns A debouncer composable.
|
|
12
|
-
*/
|
|
13
|
-
export declare function useDebouncer(timeout?: number): Debouncer;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Calculates the distance (number of insertions, replacements & deletions) between two strings.
|
|
3
|
-
*
|
|
4
|
-
* @param firstString First string to compare.
|
|
5
|
-
* @param secondString Second string to compare.
|
|
6
|
-
* @returns The distance between the two values.
|
|
7
|
-
*/
|
|
8
|
-
export declare function levenshtein(firstString: string, secondString: string): number;
|
|
9
|
-
/**
|
|
10
|
-
* Converts a string, in camelCase format, to an array of strings.
|
|
11
|
-
*
|
|
12
|
-
* @param camelCase The string to convert.
|
|
13
|
-
* @returns The string as an array.
|
|
14
|
-
*/
|
|
15
|
-
export declare function camelCaseToArray(camelCase: string): string[];
|
|
16
|
-
/**
|
|
17
|
-
* Converts a string, in kebab-case format, to an array of strings.
|
|
18
|
-
*
|
|
19
|
-
* @param kebabCase The string to convert.
|
|
20
|
-
* @returns The string as an array.
|
|
21
|
-
*/
|
|
22
|
-
export declare function kebabCaseToArray(kebabCase: string): string[];
|
|
23
|
-
/**
|
|
24
|
-
* Converts a string, in PascalCase format, to an array of strings.
|
|
25
|
-
*
|
|
26
|
-
* @param pascalCase The string to convert.
|
|
27
|
-
* @returns The string as an array.
|
|
28
|
-
*/
|
|
29
|
-
export declare function pascalCaseToArray(pascalCase: string): string[];
|
|
30
|
-
/**
|
|
31
|
-
* Converts a string, in Sentence case format, to an array of strings.
|
|
32
|
-
*
|
|
33
|
-
* @param sentenceCase The string to convert.
|
|
34
|
-
* @returns The string as an array.
|
|
35
|
-
*/
|
|
36
|
-
export declare function sentenceCaseToArray(sentenceCase: string): string[];
|
|
37
|
-
/**
|
|
38
|
-
* Converts a string, in snake_case format, to an array of strings.
|
|
39
|
-
*
|
|
40
|
-
* @param snakeCase The string to convert.
|
|
41
|
-
* @returns The string as an array.
|
|
42
|
-
*/
|
|
43
|
-
export declare function snakeCaseToArray(snakeCase: string): string[];
|
|
44
|
-
/**
|
|
45
|
-
* Converts a string, in Title Case format, to an array of strings.
|
|
46
|
-
*
|
|
47
|
-
* @param titleCase The string to convert.
|
|
48
|
-
* @returns The string as an array.
|
|
49
|
-
*/
|
|
50
|
-
export declare function titleCaseToArray(titleCase: string): string[];
|
|
51
|
-
/**
|
|
52
|
-
* Outputs an array of strings as a single string, in camelCase format.
|
|
53
|
-
*
|
|
54
|
-
* @param array The strings to join.
|
|
55
|
-
* @param locale The locale to use.
|
|
56
|
-
* @returns The array as a string.
|
|
57
|
-
*/
|
|
58
|
-
export declare function arrayToCamelCase(array: string[], locale?: string | string[]): string;
|
|
59
|
-
/**
|
|
60
|
-
* Outputs an array of strings as a single string, in kebab-case format.
|
|
61
|
-
*
|
|
62
|
-
* @param array The strings to join.
|
|
63
|
-
* @param lowerCase Whether the string is kebab-case or KEBAB-CASE.
|
|
64
|
-
* @param locale The locale to use.
|
|
65
|
-
* @returns The array as a string.
|
|
66
|
-
*/
|
|
67
|
-
export declare function arrayToKebabCase(array: string[], lowerCase: boolean, locale?: string | string[]): string;
|
|
68
|
-
/**
|
|
69
|
-
* Outputs an array of strings as a single string, in Sentence case format.
|
|
70
|
-
*
|
|
71
|
-
* @param array The strings to join.
|
|
72
|
-
* @param locale The locale to use.
|
|
73
|
-
* @returns The array as a string.
|
|
74
|
-
*/
|
|
75
|
-
export declare function arrayToSentenceCase(array: string[], locale?: string | string[]): string;
|
|
76
|
-
/**
|
|
77
|
-
* Outputs an array of strings as a single string, in Title Case format.
|
|
78
|
-
*
|
|
79
|
-
* @param array The strings to join.
|
|
80
|
-
* @param locale The locale to use.
|
|
81
|
-
* @returns The array as a string.
|
|
82
|
-
*/
|
|
83
|
-
export declare function arrayToTitleCase(array: string[], locale?: string | string[]): string;
|
package/dist/src/utils/id.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { copy } from './copy';
|
|
2
|
-
export { useDebouncer } from './debouncer';
|
|
3
|
-
export { generateStringId } from './id';
|
|
4
|
-
export { nameOf } from './name-of';
|
|
5
|
-
export { compareByProperty } from './sort';
|
|
6
|
-
export { getParamsByName } from './url-params';
|
|
7
|
-
export * from './extensions/string';
|
|
8
|
-
export * from './i18n';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wrapper to safely guarantee a string is the name of a property of an object.
|
|
3
|
-
*
|
|
4
|
-
* @param name The key of the provided type.
|
|
5
|
-
* @returns The provided key, if it belongs to the specified type.
|
|
6
|
-
*/
|
|
7
|
-
export declare function nameOf<T>(name: Extract<keyof T, string>): keyof T;
|
package/dist/src/utils/sort.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compares the two provided objects by the value of their specified property.
|
|
3
|
-
*
|
|
4
|
-
* @param firstValue The first object to compare.
|
|
5
|
-
* @param secondValue The second object to compare.
|
|
6
|
-
* @param property The property, of the two objects, to compare.
|
|
7
|
-
* @returns 0, if equal; 1, if the first is greater; -1, if the second is greater.
|
|
8
|
-
*/
|
|
9
|
-
export declare function compareByProperty<T>(firstValue: T, secondValue: T, property: keyof T): -1 | 0 | 1;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Searches the provided URL to for a specific parameter; returns it, if found.
|
|
3
|
-
*
|
|
4
|
-
* @param stringToSearch Encoded URL to search in.
|
|
5
|
-
* @param paramToFind Parameter to find.
|
|
6
|
-
* @returns The param, if found, or an empty string.
|
|
7
|
-
*/
|
|
8
|
-
export declare function getParamsByName(stringToSearch: string, paramToFind: string): string;
|
package/dist/theme.js
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2
|
-
const _ = require('lodash');
|
|
3
|
-
const colours = require('tailwindcss/colors');
|
|
4
|
-
|
|
5
|
-
module.exports = {
|
|
6
|
-
plugins: [
|
|
7
|
-
require('@tailwindcss/forms'),
|
|
8
|
-
function ({ addUtilities, theme, e }) {
|
|
9
|
-
const fontWeights = theme('fontWeight');
|
|
10
|
-
const padding = theme('padding');
|
|
11
|
-
|
|
12
|
-
const emphasisUtilities = _.flatMap(theme('colors'), (value, key) => {
|
|
13
|
-
const result = [];
|
|
14
|
-
|
|
15
|
-
if (typeof value !== 'undefined') {
|
|
16
|
-
if (typeof value.default !== 'undefined' && typeof value.light !== 'undefined') {
|
|
17
|
-
result.push({
|
|
18
|
-
[`.${e(`emphasis-${key}`)}`]: {
|
|
19
|
-
background: value.light,
|
|
20
|
-
color: value.default,
|
|
21
|
-
'font-weight': fontWeights.medium,
|
|
22
|
-
padding: padding['p-3']
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (typeof value.light !== 'undefined' && typeof value.lighter !== 'undefined') {
|
|
28
|
-
result.push({
|
|
29
|
-
[`.${e(`emphasis-${key}-light`)}`]: {
|
|
30
|
-
background: value.lighter,
|
|
31
|
-
color: value.light,
|
|
32
|
-
'font-weight': fontWeights.medium,
|
|
33
|
-
padding: padding['p-3']
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return result;
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
addUtilities(emphasisUtilities);
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
theme: {
|
|
46
|
-
colors: {
|
|
47
|
-
transparent: 'transparent',
|
|
48
|
-
black: colours.black,
|
|
49
|
-
white: colours.white,
|
|
50
|
-
'off-white': '#f5f5f5',
|
|
51
|
-
primary: {
|
|
52
|
-
default: '#9acd32',
|
|
53
|
-
light: '#a5d740',
|
|
54
|
-
lighter: '#e7f6e5'
|
|
55
|
-
},
|
|
56
|
-
secondary: {
|
|
57
|
-
default: '#30363e',
|
|
58
|
-
light: '#48515d'
|
|
59
|
-
},
|
|
60
|
-
danger: {
|
|
61
|
-
default: '#f0506e',
|
|
62
|
-
light: '#ffecf0',
|
|
63
|
-
dark: '#ce3552'
|
|
64
|
-
},
|
|
65
|
-
warning: {
|
|
66
|
-
default: '#ffeda9',
|
|
67
|
-
dark: '#87701c'
|
|
68
|
-
},
|
|
69
|
-
link: {
|
|
70
|
-
default: '#1e90ff',
|
|
71
|
-
light: '#51a9ff',
|
|
72
|
-
lighter: '#d7e5f5'
|
|
73
|
-
},
|
|
74
|
-
blue: {
|
|
75
|
-
default: '#335e91',
|
|
76
|
-
light: '#519df1'
|
|
77
|
-
},
|
|
78
|
-
grey: {
|
|
79
|
-
0: '#eee',
|
|
80
|
-
1: '#e5e5e5',
|
|
81
|
-
2: '#d7d7d7',
|
|
82
|
-
3: '#999',
|
|
83
|
-
4: '#666',
|
|
84
|
-
5: '#5a5a5a',
|
|
85
|
-
6: '#444',
|
|
86
|
-
7: '#333'
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
fontSize: {
|
|
90
|
-
xs: [ '.75rem' ],
|
|
91
|
-
sm: [ '.875rem' ],
|
|
92
|
-
base: [ '16px' ],
|
|
93
|
-
lg: [ '1.12rem' ],
|
|
94
|
-
xl: [ '1.25rem' ],
|
|
95
|
-
'2xl': [ '1.5rem' ],
|
|
96
|
-
'3xl': [ '1.875rem' ],
|
|
97
|
-
'4xl': [ '2rem' ],
|
|
98
|
-
'5xl': [ '3rem' ],
|
|
99
|
-
'6xl': [ '4rem' ],
|
|
100
|
-
'7xl': [ '5rem' ]
|
|
101
|
-
},
|
|
102
|
-
extend: {
|
|
103
|
-
fontFamily: {
|
|
104
|
-
sans: [
|
|
105
|
-
'Roboto',
|
|
106
|
-
'sans-serif'
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
|
-
scale: {
|
|
110
|
-
101: '1.01'
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
variants: {
|
|
115
|
-
extend: {
|
|
116
|
-
width: [ 'group-hover' ],
|
|
117
|
-
height: [ 'group-hover' ],
|
|
118
|
-
display: [ 'group-hover' ]
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
};
|